/* Functional DOM bridge for imported approved source. No player descendants. */
:root{--cc-cover-height:148px}
.cc-card{position:relative;color:var(--cc-text);font-family:var(--cc-font);isolation:isolate}
.cc-card h3{margin:0}.cc-card-body{pointer-events:auto}.cc-card-title-button{cursor:pointer}
.cc-card-art{pointer-events:none}.cc-card-cover{pointer-events:auto}
.cc-card-tag[hidden],.cc-tags-more[hidden]{display:none!important}
.cc-card-controls .cc-action{color:var(--cc-muted);border:1px solid transparent;border-radius:8px;padding:0}
.cc-card-controls .cc-action svg{width:20px;height:20px}
.cc-card-controls .cc-favorite{color:var(--cc-secondary-text)}
@media(hover:hover) and (pointer:fine){.cc-card-controls .cc-action:not(:disabled):hover{color:var(--cc-secondary-text);background:var(--cc-secondary);border-color:var(--cc-border)}}
.cc-card-controls .cc-action:not(:disabled):active{color:var(--cc-secondary-text);background:var(--cc-secondary);border-color:var(--cc-border)}
.cc-card .cc-card-remove{position:absolute;right:3px;top:3px;z-index:3;width:44px;height:44px}
.cc-card [data-cc-tooltip-kind=metadata]{pointer-events:auto;position:relative;z-index:2}
.cc-smart-card .cc-card-footer{justify-content:center;background:var(--cc-smart-footer)}
.cc-smart-card .cc-card-date{display:block;margin-top:5px;color:var(--cc-muted);font-size:13px;line-height:18px}
.cc-smart-card .cc-card-title{font:var(--cc-title-weight) 18px/24px var(--cc-display);letter-spacing:-.3px}
.cc-tooltip{z-index:10000}.cc-tooltip[data-placement=below]::after{top:-5px;bottom:auto;transform:translateX(-50%) rotate(225deg)}
html[data-cc-theme=sweet] .cc-tooltip{border-color:#85b89e}
.cc-hopper .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.cc-hopper .section-head h2{margin:0}
.cc-hopper .cc-queues>section{padding:18px!important;border-radius:18px}
.cc-hopper .cc-queue-cards{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;gap:16px!important;padding:5px 4px 12px!important;margin:-5px -4px 0;grid-auto-columns:var(--queue-card-width,340px)!important}
.cc-hopper .cc-queue-cards>.cc-card{width:auto;flex:none}
.cc-hopper #activityResults{gap:20px;padding:0!important}
.cc-hopper .cc-queue-controls{margin:0;gap:8px}.cc-hopper .cc-queue-controls[hidden]{display:none!important}
.cc-hopper .cc-queue-count{font:650 11px/1 var(--cc-font)}
.cc-hopper .library-search-panel>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cc-hopper #courtActivitiesSection:focus:not(:focus-visible),.cc-hopper #activityResults:focus:not(:focus-visible){outline:none;box-shadow:none}
.cc-hopper .hopper-filter-popover.filter-picker{right:auto;transform:none;z-index:1000}
.cc-court-heading{display:block}.cc-court-heading h2{margin:0}.cc-court-heading p{margin-bottom:0}
#captureView .cc-court-bar{justify-content:flex-start;gap:14px;padding:16px 18px!important;border-radius:16px;margin-top:22px!important;box-shadow:0 4px 18px #173d5905}
.court-capture-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:var(--cc-secondary);color:var(--cc-secondary-text)}
.court-capture-icon svg{width:22px;height:22px}.court-capture-icon[hidden]{display:none}
.cc-court-capture-copy{flex:1;min-width:0}.cc-court-capture-copy strong{font:var(--cc-heading-weight) 20px/1.2 var(--cc-display);letter-spacing:-.4px}
.cc-court-capture-copy p{font-size:12px;line-height:1.5;margin-top:4px}
#courtMatchCapture{min-width:174px;padding:10px 16px;font:650 13px/1.2 var(--cc-font)}
.cc-court-recent{margin-top:22px}.cc-court-link{font-size:16px;font-weight:650}
.cc-directory-card{display:block;position:relative;gap:normal;font-family:var(--cc-font)}
.cc-directory-name p{margin-bottom:0}.cc-directory-person .cc-profile-pills{flex:none}
.cc-directory-person .cc-profile-avatar{background:#d4efe0;color:#204937}
.cc-profile-record{display:block;border:0}.cc-profile-record strong{font-family:var(--cc-font)}
.cc-players .search-wrap{max-width:none}.cc-players .library-search-row{padding:14px;border:1px solid var(--cc-border);border-radius:14px;background:var(--cc-surface)}
.cc-players .history-intro{font-size:13px}.cc-players #newPlayer{font-size:12px;font-weight:650}
.cc-players .player-profile-grid{gap:20px}
@media(max-width:900px){.cc-hopper .cc-queue-cards{grid-auto-columns:min(340px,90%)!important}.cc-hopper .cc-queue-cards:has(>:only-child){grid-auto-columns:min(340px,100%)!important}.cc-players .player-profile-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#captureView .cc-court-bar{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px!important}.court-capture-icon{width:36px;height:36px}#courtMatchCapture{grid-column:1/-1;width:100%!important;min-width:0}.cc-court-capture-copy{align-self:center}.cc-court-saved{grid-column:1/-1}.cc-hopper .cc-queues>section{padding:12px!important;border-radius:16px}.cc-hopper #activityResults{gap:18px!important}.cc-players #newPlayer{font-size:11px;padding:8px 10px}}

.cc-hopper #instantReplaysSection{border:0;padding:0;background:none;box-shadow:none;margin:20px 0 0}.cc-hopper #instantReplaysSection:has(.empty-state):not(:has([data-export-id],[data-activity-id])){display:none}

.cc-settings [hidden]{display:none!important}.cc-settings input,.cc-settings select,.cc-settings button{font-family:var(--cc-font)}
.cc-settings .st-theme-grid label{gap:0}.cc-settings .st-theme-tile{font-size:inherit;line-height:normal}

.cc-settings{font-family:var(--cc-font)}.cc-settings .st-panel{display:block;gap:normal;flex-direction:row}.cc-settings-panel>#appearanceCard{margin:0}.cc-settings .st-theme-tile{position:static;font-size:13px;gap:normal}.cc-settings .st-theme-status{line-height:normal}.cc-settings .st-theme-status .cc-muted{font-size:13px}
.cc-player-dialog.pw-profile .cc-profile-records{margin:0}.cc-player-dialog .cc-profile-pills{position:static}.cc-player-dialog .cc-profile-record{background:var(--cc-surface);border:1px solid var(--cc-border)}
.cc-capture-details{display:block}.cc-capture-details>h3{margin-bottom:10px}.cc-capture-details>.cc-capture-field:not(:last-child){margin-bottom:20px}.cc-capture-details .cc-capture-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.cc-capture-details .cc-capture-slots.opponent-layout{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)}
.cc-capture-slots[data-type=doubles] [data-slot]{grid-column:auto;grid-row:auto}.cc-capture-slots[data-type=doubles] .cc-capture-versus{grid-column:auto;grid-row:auto}.cc-capture-player .cc-player-unit{display:contents}.cc-capture-player .cc-player-caption{flex:1}.cc-capture-player .cc-player-name{max-width:100%;padding:0;box-shadow:none;background:transparent;color:var(--cc-text);font-size:13px}.cc-capture-player .cc-portrait{border:0}.cc-capture-picker::before{content:none}.cc-capture-picker{display:block}.cc-capture-picker[hidden]{display:none}.cc-capture-picker .picker-option{font-size:12px}
@media(max-width:600px){.cc-capture-details .cc-capture-slots.opponent-layout{grid-template-columns:minmax(0,1fr);gap:12px}}

.cc-player-dialog .cc-profile-body h3:not(.pw-records>h3){margin:0}.cc-player-dialog .cc-profile-history-head h3{font-family:var(--cc-display)}.cc-player-dialog .pw-field-grid .player-form-field{margin:0}.cc-player-dialog .player-photo-editor{display:flex}.cc-player-dialog .player-photo-editor input[hidden]{display:none}.cc-player-dialog .pw-photo-button{width:88px;height:88px;overflow:hidden}.cc-player-dialog .pw-photo-button img{width:100%;height:100%;object-fit:cover}.cc-player-dialog .pw-photo-actions label{cursor:pointer}.cc-player-dialog [hidden]{display:none!important}.cc-player-dialog .pw-crop-stage{display:block;margin:0}.cc-player-dialog #playerCropCanvas{max-width:none;width:100%;height:100%}#playerCropPreviewLarge{width:72px;height:72px}#playerCropPreviewSmall{width:44px;height:44px}

.cc-player-dialog .pw-photo-editor h3{margin:0 0 9px}.cc-player-dialog .pw-photo-button .cc-profile-avatar{box-sizing:border-box;box-shadow:0 4px 7px #16364e18}.cc-player-dialog .pw-photo-button .initials{display:grid;place-items:center;width:100%;height:100%}

/* Approved application font stack, scoped away from the media player. */
.cc-hopper,.cc-sharing-dialog.cc-sharing-dialog{font-family:var(--cc-font)}

/* Owner round 2: preserve approved anatomy against legacy element defaults. */
.cc-directory-name h3{margin:0}
.cc-players .library-header{margin-bottom:22px}
.cc-hopper .hopper-collection-actions :is(#favoritesFilter,#showRecentlyDeleted)[aria-pressed="true"]{background:var(--cc-secondary);color:var(--cc-secondary-text);border-color:var(--cc-primary)}

/* Pointer focus must not display keyboard cues; the player owns its own controls. */
html[data-cc-input="pointer"] :is(#appShell,dialog) :focus:where(:not(.ccp-player,.ccp-player *)){outline:none!important;box-shadow:none!important}
html[data-cc-input="keyboard"] :is(#appShell,dialog) :is(button,a,input,select,textarea,summary,[tabindex="0"]):focus:where(:not(.ccp-player,.ccp-player *)){outline:3px solid var(--cc-accent);outline-offset:3px}

/* Latest owner requirement: equal panel heights in paired AND stacked layouts. */
.cc-hopper .cc-queues{grid-auto-rows:1fr}
.cc-hopper .cc-queues[hidden]{display:none!important}
.cc-hopper .cc-queues>section{display:flex;flex-direction:column}
.cc-hopper .cc-queues .cc-queue-cards{margin-top:auto;flex:none}
/* Legacy #smartMatchCandidates margins must not consume the approved carousel gutters. */
.cc-hopper #smartMatchCandidates.cc-queue-cards{margin:auto -4px 0;scrollbar-gutter:auto}
.cc-hopper .cc-queues>.cc-queue-panel>.section-head{padding:0;align-items:flex-start;gap:12px;flex:none}

/* Owner card-name refinement: equal slots use the available court width. */
.cc-card-cover .cc-card-lineup.doubles .cc-card-team{max-width:none}
.cc-card-cover .cc-card-lineup:is(.singles,.doubles) .cc-player-unit{max-width:none;flex:1}
.cc-card-cover .cc-player-caption[data-check-layout="below"]{flex-direction:column;gap:2px;width:max-content;max-width:max(100%,var(--card-portrait-size))}
/* Size the stacked name independently; WebKit otherwise retains the inline check shrink. */
.cc-card-cover .cc-player-caption[data-check-layout="below"]>.cc-player-name{width:max-content;flex:none}
.cc-card-cover.cc-checks-below .cc-player-unit{gap:3px}
.cc-card-cover.cc-checks-below{padding-top:35px;padding-bottom:8px;min-height:calc(43px + var(--cc-lineup-height,0px))}

/* Approved photo section uses a normal block, not the legacy grid copy column. */
.cc-player-dialog .player-photo-editor>div:last-child{display:block}
.cc-player-dialog .player-photo-editor h3{margin:0 0 9px}
/* Let exceptional narrow-card names grow their artwork row without crossing the title. */
.cc-card:has(.cc-checks-below){grid-template-rows:minmax(var(--cc-cover-height),auto) 64px 57px}

/* Apply the design's reset within these imported presentation surfaces. */
.format-review p{margin-bottom:0}
.cc-court-progress-main h3,.cc-court-progress-main .cc-court-no-players{margin:0}
.cc-court-progress-main .cc-court-progress-meta{margin-bottom:0}
.cc-view-capture-label::before{display:none!important}
.cc-summary-players .score-avatars{gap:0}

@media(max-width:760px){.cc-player-dialog .pw-photo-button{width:70px;height:70px}}

/* Frozen finalize anatomy; browser defaults differ from the design reset. */
.finalize-summary h3,.finalize-summary p{margin:0}
.finalize-media-note{margin-bottom:0}
#finalizePlayerEditor:empty{display:none}
#finalizeScoreSlot .cc-capture-score-only{padding:0}

/* Reset margins/widths supplied by legacy forms but absent from frozen Players. */
.cc-player-dialog .player-photo-editor{margin-top:0}
.cc-player-dialog #playerAssignMemberRow{margin-bottom:0}
.cc-player-dialog #playerUnassign{width:auto}
#finalizeScoreSlot .cc-capture-score{margin-bottom:0}
#finalizeScoreSlot .final-score-heading .court-section-label{font-size:12px;font-weight:650;color:var(--cc-text)}
#finalizeScoreSlot .final-score-heading .final-format{margin-left:auto}

#smartReviewParts:empty{display:none}

/* The saved bar uses the approved capture-bar children in the existing layout. */
.cc-court-saved{display:contents}.court-capture-icon[hidden]{display:none!important}

/* Approved dismissal target remains transparent; only its 28px mark changes on hover. */
.sh-dismiss:hover{background:transparent;box-shadow:none}

/* Approved cancel-capture copy also lives in a body-level modal outside #appShell. */
.court-dialog.confirm-dialog .court-subtitle{font-size:13px;line-height:1.6;color:var(--cc-muted);margin-bottom:20px}
/* Compact scored empty-player invitation: retain room for the score surface. */
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-player-invite{min-height:0;height:100%;display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 32px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-player-invite-art{min-height:0;grid-row:1/3}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-invite-court{inset:10px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-invite-person{width:48px;height:48px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-invite-person svg{width:27px;height:27px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-player-invite-copy{padding:8px 10px;justify-content:center;gap:4px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-player-invite-copy>strong{font-size:16px}
#activityScoreSlot.hl-matchup-panel .hl-matchup-unassigned .hl-player-invite-footer{min-height:32px;padding:0 10px;font-size:11px}
.cc-live-score-mount{min-width:0}

/* Owner request: score entry retains focus/tab behavior without a visual focus ring. */
html[data-cc-input] :is(#appShell,dialog) .cc-scoreboard :is(input,textarea):focus{outline:none!important;box-shadow:none!important}
.cc-view-capture-label [data-active-elapsed]{display:inline-block;min-width:5ch;font-variant-numeric:tabular-nums;contain:layout paint}

/* Preserve the approved highlights.css roster scope: without its dialog ID,
   the older dialogs.css padding wins and constricts the empty invitation. */
:is(#appShell,#activityViewDialog) .hl-players-panel .court-viewer-roster{width:100%;padding:0}

/* Safari must size the approved player form and crop dialog from content before limiting their
   scroll body. A zero flex basis can collapse an auto-height dialog to padding. */
.cc-player-dialog:is(.pw-form,.pw-crop) .cc-player-form-scroll{flex:1 1 auto}
