/* Throw Central's presentation system. Existing engines and source geometry are unchanged. */
:root {
  --tc-background:#1b1b1a; --tc-surface:#242422; --tc-raised:#2e2e2a;
  --tc-line:#3e3d38; --tc-ink:#f3f1ea; --tc-muted:#b8b5a9; --tc-accent:#77d69a;
  --tc-accent-hover:color-mix(in srgb,var(--tc-accent) 86%,white);
  --tc-accent-ink:#102619; --tc-accent-soft:color-mix(in srgb,var(--tc-accent) 11%,transparent);
  --tc-body:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --tc-display:"Avenir Next Condensed","Arial Narrow","Avenir Next",sans-serif;
  --tc-data:"SFMono-Regular",Consolas,monospace;
  --tc-header-height:68px; --tc-command-height:54px;
  --tc-tool-height:52px; --tc-navigation-height:62px;
}
@media(max-width:700px), (max-width:1000px) and (max-height:600px) {
  :root {--tc-header-height:48px;--tc-command-height:48px;--tc-tool-height:44px;}
  @media(orientation:landscape) {
    :root {--tc-header-height:40px;--tc-command-height:44px;--tc-tool-height:40px;--tc-navigation-height:40px;}
  }
}
/* Bridge the legacy stylesheet's forced page background to this theme. */
html:has(.app.experience) { --background:var(--tc-background) !important; color-scheme:dark; background:var(--tc-background); }
html:has(.app.experience) body { display:block; margin:0; padding:0; height:100dvh; min-height:0; overflow:hidden; background:var(--tc-background); }
@scope (.app.experience, .experience-startup) {
  :scope {
    --ui-bg:var(--tc-background); --ui-panel:var(--tc-surface); --ui-raised:var(--tc-raised);
    --ui-line:var(--tc-line); --ui-text:var(--tc-ink); --ui-muted:var(--tc-muted);
    --ui-accent:var(--tc-accent); --ui-accent-text:var(--tc-accent);
    --ui-selected:var(--tc-accent-soft); --ui-radius:8px; --ui-data:var(--tc-data);
    --accent:var(--tc-accent); --accent-hover:var(--tc-accent-hover); --danger:#ff9b9b;
    display:grid; grid-template-rows:var(--tc-header-height) var(--tc-command-height) minmax(0,1fr);
    width:100%; max-width:none; height:100dvh; min-height:0; margin:0; padding:0;
    border:0; border-radius:0; background:var(--ui-bg); color:var(--ui-text);
    box-shadow:none; overflow:hidden; font:14px/1.5 var(--tc-body); letter-spacing:0;
  }
  *,*::before,*::after {box-sizing:border-box;}
  [hidden] {display:none !important;}
  button,input,select,textarea,summary {font:inherit;letter-spacing:0;}
  button,select,input,textarea {color:var(--ui-text);border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-panel);}
  button {min-height:36px;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;box-shadow:none;}
  button:hover {background:var(--ui-raised);border-color:#6a675e;}
  button:disabled {opacity:.45;cursor:default;}
  button,summary,a {transition:color 140ms ease,background 140ms ease,border-color 140ms ease;}
  :is(button,a,input,select,textarea,summary,[role="button"]):focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px;}
  input,select,textarea {min-width:0;max-width:100%;padding:8px 10px;}
  input::placeholder,textarea::placeholder {color:var(--ui-muted);}
  label {color:var(--ui-muted);font-size:12px;}
  svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;}
  h1,h2,h3,p {margin:0;}
  a {color:var(--ui-accent);}
  strong {font-weight:650;}
  .accent-action {background:var(--ui-accent);border-color:var(--ui-accent);color:var(--tc-accent-ink);font-weight:700;}
  .accent-action:hover {background:var(--tc-accent-hover);border-color:var(--tc-accent-hover);}
  .text-action,.quiet-action {border:0;background:transparent;padding-left:0;padding-right:0;color:var(--ui-text);}
  .text-action:hover,.quiet-action:hover {background:transparent;color:var(--ui-accent);}
  .eyebrow {font-size:11px;font-weight:650;letter-spacing:.07em;color:var(--ui-muted);}
  .topbar {display:grid;grid-template-columns:210px minmax(320px,1fr) minmax(200px,300px);gap:20px;align-items:center;padding:0 28px;z-index:30;border:0;border-bottom:1px solid var(--ui-line);background:var(--ui-bg);}
  .brand-strip {display:flex;align-items:center;gap:10px;}
  .brand-mark {width:32px;height:32px;background:transparent;color:var(--ui-accent);border:0;}
  .brand-mark svg {width:30px;height:30px;stroke-width:1.5;}
  .brand-copy strong {font:750 24px/1 var(--tc-display);letter-spacing:-.7px;}
  .brand-copy>span {display:none;}
  .primary-nav {grid-column:2;grid-row:1;display:flex;justify-content:center;align-self:stretch;gap:8px;}
  .primary-nav-button {display:flex;align-items:center;justify-content:center;gap:7px;min-width:85px;padding:0 12px;border:0;border-radius:0;background:transparent;color:var(--ui-muted);font-size:13px;font-weight:550;}
  .primary-nav-button:hover {color:var(--ui-text);background:transparent;}
  .primary-nav-button.active {color:var(--ui-text);background:transparent;}
  .primary-nav-button.active::after {left:12px;right:12px;bottom:12px;height:2px;background:var(--ui-accent);}
  .primary-nav-button svg {width:17px;height:17px;}
  .search-row {grid-column:3;grid-row:1;display:flex;gap:10px;align-items:center;min-width:0;}
  .project-search {max-width:none;min-width:100px;flex:1;}
  #projectSearch {height:36px;font-size:12px;padding:6px 8px 6px 32px;background:var(--ui-panel);border-color:var(--ui-line);border-radius:20px;}
  .project-search-icon {top:10px;left:11px;}
  .project-search-icon svg {width:15px;height:15px;}
  .search-filter {display:none;}
  .settings-button {display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ui-muted);}
  .search-suggestions {background:var(--ui-panel);border-color:var(--ui-line);}
  .workspace-command-bar {padding:0 20px;background:var(--ui-panel);border-bottom:1px solid var(--ui-line);z-index:20;}
  .main-controls {gap:8px;}
  .main-controls>button {font-size:11px;min-height:34px;}
  .project-menu {flex:1;min-width:0;}
  .project-menu-copy {min-width:0;overflow:hidden;flex:1;}
  .project-menu-label,.project-menu-avatar {display:none;}
  .project-menu>summary {height:40px;gap:8px;font-size:13px;}
  #projectMenuTitle {display:block;font-size:14px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:0;}
  #projectSaveState {font-size:10px;color:var(--ui-muted);}
  .project-tool-panel {background:var(--ui-panel);border-color:var(--ui-line);width:300px;max-height:60dvh;overflow:auto;}
  .sync-viewer-launch {background:var(--ui-accent);color:var(--tc-accent-ink);border-color:var(--ui-accent);min-width:114px;}
  .sync-viewer-launch:hover {background:var(--tc-accent-hover);}
  .experience-save {border-color:var(--ui-line);background:transparent;}
  #toggleVideoSetup {display:none;}
  .layout-toggle {background:transparent;border:0;}
  .layout-toggle button.active {background:var(--ui-raised);color:var(--ui-text);}
  .workspace-layout {display:grid;grid-template-columns:minmax(0,1fr) 302px;grid-template-rows:var(--tc-tool-height) minmax(0,1fr);gap:0;overflow:hidden;}
  .experience-tool-nav {grid-row:1;grid-column:1/-1;display:flex;align-items:center;gap:2px;padding:0 20px;border-bottom:1px solid var(--ui-line);background:var(--ui-bg);overflow-x:auto;scrollbar-width:none;}
  .experience-tool-button {display:flex;align-items:center;gap:7px;flex:none;min-height:38px;border:0;background:transparent;color:var(--ui-muted);font-size:12px;border-radius:7px;padding:8px 12px;}
  .experience-tool-button svg {width:17px;height:17px;}
  .experience-tool-button[aria-expanded="true"] {color:var(--ui-text);background:var(--ui-raised);}
  .experience-tool-button[aria-expanded="true"] svg {color:var(--ui-accent);}
  .experience-tool-button:hover {background:var(--ui-raised);}
  .video-column {display:grid;grid-row:2;grid-column:1;grid-template-rows:minmax(0,1fr) 48px 48px;height:auto;padding:14px 16px 0;min-height:0;background:var(--ui-bg);}
  .video-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px;min-width:0;min-height:0;overflow:hidden;}
  .video-grid:not(.single-video):not(.ghost-mode)[data-two-video-layout="stacked"] {grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));}
  .video-panel {display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;}
  .video-source-label {display:flex;flex-direction:column;justify-content:center;min-width:0;color:var(--ui-text);font-size:12px;line-height:1.15;}
  .video-stage {background:#11110f;border-radius:8px;}
  .video-source-label {font-size:12px;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;}
  .video-source-label small {font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .empty-state {border:1px dashed #4a4942;border-radius:8px;gap:10px;}
  .empty-state strong {font:700 23px var(--tc-display);}
  .empty-state span {font-size:11px;}
  .video-backdrop {display:block;}
  .analysis-transport {gap:10px;margin:0;padding:4px 0;border:0;}
  .transport-playback {gap:4px;}
  .transport-playback button {width:36px;height:36px;min-height:36px;}
  .transport-playback [data-analysis-undo],.transport-playback [data-analysis-redo] {width:auto;font-size:10px;}
  .reference-speed-controls {margin-left:auto;}
  .reference-speed-controls button {min-height:32px;}
  .floating-mark-toolbar {display:none;}
  .control-strip {height:48px;gap:12px;}
  input[type="range"] {accent-color:var(--ui-accent);}
  input[type="range"]::-webkit-slider-thumb {background:var(--ui-accent);}
  .analysis-column,.video-setup-sidebar {grid-row:2;grid-column:2;min-width:0;min-height:0;padding:0 16px 20px;overflow:auto;border:0;border-left:1px solid var(--ui-line);background:var(--ui-panel);}
  .video-setup-sidebar {padding-top:12px;}
  .workspace-view-options {grid-template-columns:1fr;gap:10px;margin:0;padding:0 0 16px;}
  .video-setup-heading strong {font-size:15px;}
  .file-picker {gap:12px;}
  .video-setup-card {padding:16px 0;}
  .project-video-removal {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--ui-line);}
  .project-video-removal[hidden] {display:none;}
  .project-video-removal strong,.project-video-removal span {display:block;}
  .project-video-removal strong {font-size:13px;}
  .project-video-removal span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-muted);font-size:12px;}
  .project-video-removal button {min-height:44px;padding-inline:10px;white-space:nowrap;}

  .setup-actions {grid-template-columns:1fr 70px;}
  .setup-reference-action {width:100%;color:var(--ui-accent);background:transparent;}
  .experience-tool-heading {display:flex;align-items:flex-start;gap:12px;padding:16px 0;margin:0 0 12px;border-bottom:1px solid var(--ui-line);}
  .tool-heading-copy {flex:1;min-width:0;}
  .tool-heading-copy strong {font-size:17px;}
  .tool-heading-copy p {font-size:11px;color:var(--ui-muted);margin-top:4px;line-height:1.6;}
  .tool-close {border:0;background:transparent;min-height:24px;padding:2px 0;color:var(--ui-muted);font-size:10px;}
  .analysis-column .analysis-section {border:0;background:transparent;}
  .analysis-column>.analysis-section>summary,.analysis-column>.coach-panel>details>summary,.analysis-column>.distance-panel>details>summary,.experience-view-menu>summary {display:none;}
  .analysis-column>.analysis-section[open],.analysis-column>.coach-panel,.analysis-column>.distance-panel {margin:0;padding:0;background:transparent;border:0;}
  .analysis-tools-panel {display:grid;gap:12px;padding:0;}
  .analysis-tools-panel>details>.tool-panel {padding:8px 0;}
  .analysis-tools-panel>details>summary {padding:0;font-size:12px;}
  .analysis-tools-panel>details {border:0;}
  .analysis-column .tool-panel {position:static;width:auto;max-width:100%;background:transparent;border:0;box-shadow:none;}
  .experience-view-menu>.tool-panel {padding:0;}
  .ghost-controls {display:grid;gap:14px;margin:16px 0 0;border:0;box-shadow:none;background:transparent;padding:0;}
  .ghost-control-group {border-top:1px solid var(--ui-line);padding-top:12px;}
  .experience-project-actions {display:grid;gap:8px;margin:16px 0;}
  .tool-description {font-size:12px;color:var(--ui-muted);line-height:1.7;}
  .analysis-column .library-grid {display:block;}
  .analysis-column .library-panel>summary {display:flex;font-size:12px;}
  .analysis-column .library-item {display:grid;grid-template-columns:1fr;gap:6px;padding:12px 0;border-bottom:1px solid var(--ui-line);background:transparent;}
  .analysis-column .library-item>.project-thumbnail {height:120px;}
  .analysis-column .library-item>strong,.analysis-column .library-item>small,.analysis-column .library-actions {grid-column:1;grid-row:auto;}
  .phone-tool-rail,.phone-project-panel {display:none;}
  :scope[data-tool-open="false"] .workspace-layout,:scope.analysis-focus .workspace-layout {grid-template-columns:minmax(0,1fr);}
  :scope[data-tool-open="false"] .analysis-column,:scope[data-tool-open="false"] .video-setup-sidebar {display:none;}
  :scope.analysis-focus .experience-tool-nav {display:none;}
  :scope.analysis-focus .workspace-layout {grid-template-rows:0 minmax(0,1fr);}
  :scope[data-active-tool="videos"] .analysis-column {display:none;}
  :scope[data-active-tool="videos"][data-tool-open="true"] .video-setup-sidebar {display:block;}
  .tips {display:none;}
  :scope:is([data-destination="home"],[data-destination="library"],[data-destination="practice"],[data-destination="settings"]) {grid-template-rows:var(--tc-header-height) minmax(0,1fr);}
  :scope:is([data-destination="home"],[data-destination="library"],[data-destination="practice"],[data-destination="settings"])>.workspace-command-bar,
  :scope:is([data-destination="home"],[data-destination="library"],[data-destination="practice"],[data-destination="settings"])>.workspace-layout {display:none;}
  :scope:not([data-destination="library"])>.search-page {display:none;}
  :scope:not([data-destination="settings"])>.settings-page {display:none;}
  :scope[data-destination="settings"]>.settings-page {display:block;}
  :scope[data-destination="library"]>.search-page {display:block;}
  :scope.coach-destination .workspace-layout {grid-template-columns:minmax(0,1fr) min(40vw,440px);}
  .experience-home {grid-row:2;overflow:auto;min-height:0;padding:32px clamp(20px,4vw,64px) 48px;background:var(--ui-bg);}
  .home-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px;}
  .home-heading h1 {font:750 clamp(30px,3vw,42px)/1.15 var(--tc-display);letter-spacing:-1px;margin:6px 0 10px;}
  .home-heading>div>p:last-child {color:var(--ui-muted);font-size:13px;}
  .home-feature-row {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:28px;align-items:stretch;}
  .home-continue {min-width:0;display:flex;flex-direction:column;gap:12px;}
  .home-continue-heading {display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--ui-muted);}
  .home-feature-thumbnail.project-thumbnail {aspect-ratio:16/6;min-height:160px;max-height:255px;height:auto;border:0;border-radius:10px;padding:0;overflow:hidden;background:var(--ui-raised);}
  .home-feature-thumbnail .project-thumbnail-label {display:none;}
  .home-continue-copy {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 20px;}
  .home-continue-copy h2 {font-size:17px;line-height:1.4;}
  .home-continue-copy p {grid-column:1;font-size:12px;color:var(--ui-muted);}
  .home-continue-copy button {grid-column:2;grid-row:1/3;align-self:center;color:var(--ui-accent);font-size:12px;}
  .home-continue-empty {justify-content:center;padding:28px;border-left:2px solid var(--ui-accent);background:var(--ui-panel);}
  .home-continue-empty h2 {font:700 30px/1.2 var(--tc-display);}
  .home-continue-empty>p:not(.eyebrow) {color:var(--ui-muted);max-width:440px;font-size:13px;}
  .home-continue-empty button {align-self:flex-start;}
  .home-start {padding:22px 26px;background:var(--ui-panel);border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
  .home-start-icon {color:var(--ui-accent);margin-bottom:4px;}
  .home-start-icon svg {width:26px;height:26px;}
  .home-start h2 {font:750 30px/1.2 var(--tc-display);letter-spacing:-.5px;}
  .home-start>p:not(.eyebrow) {color:var(--ui-muted);font-size:13px;max-width:320px;}
  .home-start .accent-action {width:100%;margin-top:auto;min-height:42px;display:flex;justify-content:space-between;align-items:center;}
  .home-start .text-action {font-size:11px;}
  .home-library-section {margin-top:32px;}
  .shelf-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;}
  .shelf-heading h2 {font:700 24px var(--tc-display);letter-spacing:-.3px;}
  .shelf-heading>span {font-size:12px;color:var(--ui-muted);}
  .shelf-heading .eyebrow {margin-bottom:3px;}
  .home-video-card {min-width:0;display:flex;flex-direction:column;gap:6px;padding:0;border:0;border-radius:0;background:transparent;text-align:left;}
  .home-video-card:hover {background:transparent;}
  .home-video-card>strong {width:100%;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .home-video-card small {font-size:11px;font-weight:400;color:var(--ui-muted);}
  .project-thumbnail {position:relative;display:flex;align-items:stretch;justify-content:stretch;width:100%;min-width:0;min-height:0;height:auto;aspect-ratio:16/10;padding:0;overflow:hidden;border:0;border-radius:8px;background:var(--ui-raised);}
  .project-thumbnail img {flex:1;min-width:0;width:100%;height:100%;object-fit:cover;}
  .project-thumbnail.dual-thumbnail img {width:50%;}
  .project-thumbnail-label {position:absolute;left:8px;right:8px;bottom:8px;max-width:calc(100% - 16px);padding:3px 7px;border-radius:4px;background:#151511d9;color:var(--ui-text);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .home-video-card .project-thumbnail-label,.reference-choice .project-thumbnail-label {display:none;}
  .home-tools-section {margin-top:26px;border-top:1px solid var(--ui-line);padding-top:24px;}
  .home-tool-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:20px;}
  .home-tool-link {display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-content:start;gap:4px 8px;padding:10px 0;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:0;background:transparent;}
  .home-tool-link:hover {background:transparent;}
  .home-tool-link svg {grid-column:1;grid-row:1/3;color:var(--ui-accent);}
  .home-tool-link strong {grid-column:2;font-size:13px;}
  .home-tool-link>span:not(.tool-arrow) {grid-column:2/-1;grid-row:2;font-size:11px;font-weight:400;color:var(--ui-muted);line-height:1.6;}
  .tool-arrow {grid-column:3;grid-row:1;color:var(--ui-muted);}
  .search-page,.settings-page {grid-row:2;min-height:0;height:100%;padding:28px clamp(20px,4vw,64px) 40px;margin:0;overflow:auto;background:var(--ui-bg);}
  .search-page-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0;min-height:36px;border:0;}
  .search-page-heading>strong,.settings-page h1 {font:750 34px var(--tc-display);letter-spacing:-.5px;}
  #addAthleteSearchButton,.startup-library .search-page-heading>button {background:transparent;color:var(--ui-text);font-size:12px;}
  .experience-library-tabs {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:24px;border-bottom:1px solid var(--ui-line);padding-bottom:12px;}
  .experience-library-tabs>button {border:0;background:transparent;color:var(--ui-muted);min-width:80px;}
  .experience-library-tabs>button[aria-pressed="true"] {background:var(--ui-raised);color:var(--ui-text);}
  .library-utilities {display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;}
  .library-utilities button {border:0;background:transparent;font-size:11px;color:var(--ui-muted);}
  .search-results-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:28px;}
  .search-results-grid>.library-section>strong {display:block;margin-bottom:16px;}
  .project-library {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;}
  .library-item {display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;padding:0 0 16px;background:transparent;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;}
  .library-item>.project-thumbnail {order:-1;aspect-ratio:16/10;align-self:auto;}
  .library-item>strong {font-size:15px;line-height:1.4;}
  .library-item>small {font-size:11px;color:var(--ui-muted);}
  .library-reference-action {align-self:flex-start;border:0;padding:5px 0;background:transparent;color:var(--ui-accent);min-height:28px;}
  .library-reference-action:hover {background:transparent;}
  .record-options {margin-top:2px;}
  .record-options>summary {font-size:11px;color:var(--ui-muted);padding:4px 0;min-height:28px;}
  .record-options>summary::after {margin-left:8px;}
  .record-options .library-visibility,.record-options .visibility-control {margin:8px 0;}
  .library-actions {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;}
  .library-actions button {font-size:11px;min-height:32px;}
  :scope[data-library-kind="personal"] .record-options {display:contents;}
  :scope[data-library-kind="personal"] .record-options>summary {display:none;}
  :scope[data-library-kind="personal"] .record-options>.library-actions,:scope[data-library-kind="personal"] .record-options>.library-visibility {display:flex;}
  :scope[data-library-kind="personal"] .record-options>.library-visibility {flex-direction:column;}
  .athlete-event-filters {margin:0 0 24px;max-width:460px;background:transparent;border:0;gap:6px;}
  .athlete-event-filters button {border:1px solid var(--ui-line);border-radius:20px;}
  .athlete-event-filters button.active {background:var(--ui-raised);color:var(--ui-text);}
  .athlete-item>strong {font:700 22px var(--tc-display);}
  .athlete-video-list {display:grid;grid-template-columns:1fr 1fr;gap:6px;}
  .athlete-video-list>strong,.athlete-video-list>small {grid-column:1/-1;}
  .athlete-project-row {display:flex;flex-wrap:wrap;gap:6px;}
  .athlete-project-row button {font-size:10px;}
  .athlete-card-actions {display:flex;gap:8px;margin-top:8px;}
  .show-all-results-button {grid-column:1/-1;justify-self:start;}
  .experience-recovery {margin-top:28px;border-top:1px solid var(--ui-line);padding-top:12px;}
  .experience-recovery>summary {padding:10px 0;font-size:12px;color:var(--ui-muted);}
  .experience-recovery .library-section>strong {display:block;margin:16px 0;}
  .settings-grid {gap:16px;}
  .settings-section {max-width:850px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;padding:24px 0;margin:0;}
  .settings-section h2 {font-size:17px;margin-bottom:16px;}
  .settings-section>p {font-size:12px;color:var(--ui-muted);}
  .settings-previews {margin:20px 0;}
  .experience-notice {position:fixed;left:50%;bottom:22px;transform:translateX(-50%);max-width:calc(100% - 40px);padding:10px 16px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);color:var(--ui-text);font-size:12px;z-index:100;box-shadow:0 8px 24px #0006;}
  :scope.compare-workspace-mounted>.search-page {display:block;grid-row:3;padding:16px;}
  @media(max-width:1100px) {
    .topbar {grid-template-columns:180px 1fr 200px;gap:12px;padding:0 20px;}
    .primary-nav-button {min-width:72px;padding:0 8px;}
    .workspace-layout {grid-template-columns:minmax(0,1fr) 276px;}
    #analysisPrivacy {max-width:140px;overflow:hidden;text-overflow:ellipsis;}
    #focusAnalysis,.reference-shortcut {display:none;}
    .home-feature-row {gap:20px;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);}
    .home-start {padding:20px;}
    .project-library {grid-template-columns:repeat(3,minmax(0,1fr));}
  }
  @media(max-width:700px), (max-width:1000px) and (max-height:600px) {
    :scope {grid-template-rows:48px 48px minmax(0,1fr);padding:env(safe-area-inset-top) env(safe-area-inset-right) calc(62px + env(safe-area-inset-bottom)) env(safe-area-inset-left);}
    :scope:is([data-destination="home"],[data-destination="library"],[data-destination="practice"],[data-destination="settings"]) {grid-template-rows:48px minmax(0,1fr);}
    .topbar {grid-template-columns:1fr auto;grid-template-rows:48px;gap:12px;padding:0 12px;}
    .brand-copy {display:block;}
    .brand-copy strong {font-size:22px;}
    .brand-mark {width:28px;height:28px;}
    .brand-mark svg {width:26px;height:26px;}
    .search-row {grid-column:2;grid-row:1;width:auto;}
    .project-search {display:none;}
    .primary-nav {position:fixed;bottom:0;left:0;right:0;height:calc(62px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);z-index:40;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;background:var(--ui-panel);border-top:1px solid var(--ui-line);}
    .primary-nav-button {flex-direction:column;gap:3px;min-height:54px;padding:8px 4px;font-size:10px;}
    .primary-nav-button svg {width:20px;height:20px;}
    .primary-nav-button.active {color:var(--ui-accent);}
    .primary-nav-button.active::after {display:none;}
    .workspace-command-bar {padding:0 10px;min-height:48px;}
    .main-controls {gap:6px;}
    .project-menu {min-width:50px;}
    .project-menu>summary {height:44px;padding:0;}
    .project-menu-copy {display:block;}
    #projectMenuTitle {max-width:100%;font-size:12px;}
    #projectSaveState {display:none;}
    .main-controls>#analysisPrivacy,.main-controls>.layout-toggle,#focusAnalysis,.reference-shortcut {display:none;}
    .main-controls>button {min-height:44px;padding:6px 8px;font-size:10px;}
    .sync-viewer-launch-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
    .sync-viewer-launch {min-width:80px;gap:4px;}
    .sync-viewer-launch svg {width:14px;height:14px;}
    .experience-save {min-width:76px;}
    .project-tool-panel {position:absolute;max-width:calc(100vw - 24px);max-height:50dvh;}
    .workspace-layout,:scope.coach-destination .workspace-layout {grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) min(29dvh,245px);}
    :scope[data-tool-open="false"] .workspace-layout,:scope.analysis-focus .workspace-layout {grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 0;}
    .experience-tool-nav {grid-column:1;grid-row:1;padding:0 6px;gap:0;}
    .experience-tool-button {min-height:44px;font-size:11px;padding:8px 10px;gap:5px;}
    .experience-tool-button svg {width:15px;height:15px;}
    .video-column {grid-column:1;grid-row:2;padding:4px 6px 0;grid-template-rows:minmax(0,1fr) 44px 36px;}
    .video-grid {gap:6px;}
    .video-panel {grid-template-rows:auto minmax(0,1fr);}
    .video-panel.crop-editing {grid-template-rows:auto minmax(0,1fr);}
    .video-source-label {font-size:11px;flex-direction:column;align-items:flex-start;gap:2px;padding-block:3px;}
    .video-source-label small {display:block;max-width:100%;}
    .empty-state {gap:6px;}
    .empty-state strong {font-size:18px;}
    .empty-state span {max-width:90%;font-size:9px;}
    .analysis-column,.video-setup-sidebar {grid-column:1;grid-row:3;padding:0 12px 16px;border:0;border-top:1px solid var(--ui-line);display:block;}
    .video-setup-sidebar {padding-top:12px;}
    .workspace-view-options {grid-template-columns:1fr 1fr;}
    .experience-tool-heading {padding:10px 0;margin:0 0 8px;align-items:center;}
    .tool-heading-copy {display:flex;align-items:baseline;gap:8px;}
    .tool-heading-copy strong {font-size:14px;}
    .tool-heading-copy p {font-size:10px;margin:0;}
    .tool-close {font-size:10px;white-space:nowrap;}
    .analysis-column button,.analysis-column select,.video-setup-sidebar button,.video-setup-sidebar select {min-height:44px;}
    .analysis-column select,.analysis-column input:not([type="range"]),.analysis-column textarea,.video-setup-sidebar select {font-size:16px;}
    .analysis-column summary {min-height:44px;}
    .analysis-column .analysis-tools-panel>details>summary {display:none;}
    .phone-source-transport {display:none;}
    :scope[data-active-tool="sync"] .phone-source-transport {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:2px;align-items:center;position:relative;min-width:0;}
    :scope[data-active-tool="sync"] .video-panel {grid-template-rows:auto minmax(0,1fr) 44px;}
    .phone-source-transport button {height:44px;min-height:44px;padding:0;}
    .phone-source-transport input {margin:0;min-width:0;}
    .phone-source-transport output {position:absolute;bottom:100%;left:4px;padding:2px 4px;background:#151511dd;pointer-events:none;font-size:9px;}
    .analysis-transport {gap:4px;overflow-x:auto;flex-wrap:nowrap;}
    .transport-playback {gap:0;}
    .transport-playback button {width:36px;min-height:44px;height:44px;}
    .transport-playback [data-analysis-undo],.transport-playback [data-analysis-redo] {display:none;}
    .reference-speed-controls {flex:none;gap:0;}
    .reference-speed-controls button {min-width:38px;min-height:44px;font-size:10px;padding:4px;}
    #mobileFullScreen {display:block;font-size:9px;padding:4px;min-width:54px;}
    .control-strip {height:36px;gap:4px;}
    .control-strip span {font-size:9px;min-width:43px;}
    .advanced-sync-row {min-height:44px;}
    .sync-strip-body {--checkpoint-number-width:28px;--checkpoint-action-width:36px;}
    .experience-home,.search-page,.settings-page {padding:22px 16px 32px;}
    .home-heading {display:block;margin-bottom:22px;}
    .home-heading h1 {font-size:30px;max-width:340px;}
    .home-heading .quiet-action {display:none;}
    .home-heading>div>p:last-child {font-size:12px;}
    .home-feature-row {grid-template-columns:1fr;gap:22px;}
    .home-continue-copy {gap:4px 12px;}
    .home-continue-copy h2 {font-size:15px;}
    .home-continue-copy button {font-size:11px;}
    .home-start {display:grid;grid-template-columns:1fr auto;padding:18px;gap:8px 12px;}
    .home-start-icon {display:none;}
    .home-start .eyebrow {grid-column:1/-1;}
    .home-start h2 {font-size:25px;grid-column:1/-1;}
    .home-start>p:not(.eyebrow) {font-size:12px;grid-column:1/-1;}
    .home-start .accent-action {grid-column:1/-1;margin:8px 0 0;min-height:44px;}
    .home-start .text-action {grid-column:1/-1;justify-self:start;}
    .shelf-heading h2 {font-size:22px;}
    .shelf-heading>span {display:none;}
    .home-tool-links {gap:12px;}
    .home-tool-link {padding:10px 0;}
    .search-page-heading>strong,.settings-page h1 {font-size:30px;}
    :scope[data-destination="library"] .project-search {display:block;position:absolute;top:66px;left:16px;right:16px;max-width:none;z-index:2;}
    :scope[data-destination="library"] .search-page-heading {margin-top:52px;}
    #projectSearch {height:40px;font-size:16px;}
    .experience-library-tabs {gap:0;margin-bottom:20px;}
    .experience-library-tabs>button {min-width:70px;min-height:44px;}
    .library-utilities {width:100%;margin:6px 0 0;justify-content:flex-start;}
    .library-utilities button {min-height:36px;padding:4px 8px;}
    .project-library {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;}
    .library-item>strong {font-size:13px;}
    .library-reference-action {font-size:11px;min-height:40px;}
    .record-options>summary {min-height:40px;font-size:10px;}
    .athlete-item {grid-column:1/-1;}
    .record-options input,.record-options select,.settings-page input,.settings-page select {font-size:16px;}
    .record-options .library-actions {gap:6px;}
    .record-options .library-actions button {min-height:44px;white-space:normal;}
    .experience-notice {bottom:76px;}
    .crop-time-editor {grid-column:1/-1;}
    :scope.phone-focus {grid-template-rows:0 48px minmax(0,1fr);}
    :scope.phone-focus .topbar {visibility:hidden;}
    @media(orientation:landscape) {
      :scope {padding-bottom:env(safe-area-inset-bottom);grid-template-rows:40px 44px minmax(0,1fr);}
      :scope:is([data-destination="home"],[data-destination="library"],[data-destination="practice"],[data-destination="settings"]) {grid-template-rows:40px minmax(0,1fr);}
      .topbar {grid-template-columns:160px 1fr 34px;grid-template-rows:40px;}
      .search-row {grid-column:3;}
      .primary-nav {position:static;grid-column:2;grid-row:1;height:40px;padding:0;border:0;background:transparent;display:flex;justify-content:center;}
      .primary-nav-button {flex-direction:row;font-size:10px;gap:4px;padding:0 8px;min-height:40px;min-width:66px;}
      .primary-nav-button svg {width:16px;height:16px;}
      .workspace-layout,:scope.coach-destination .workspace-layout {grid-template-columns:minmax(0,1fr) min(38vw,300px);grid-template-rows:40px minmax(0,1fr);}
      .experience-tool-nav {grid-column:1/-1;grid-row:1;}
      .analysis-column,.video-setup-sidebar {grid-column:2;grid-row:2;border-left:1px solid var(--ui-line);border-top:0;}
      .video-column {grid-row:2;grid-template-rows:minmax(0,1fr) 40px 32px;}
      :scope[data-tool-open="false"] .workspace-layout {grid-template-rows:40px minmax(0,1fr);}
      :scope[data-destination="library"] .project-search {top:50px;left:20px;right:20px;}
      .experience-notice {bottom:16px;}
    }
  }
  @media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none;animation:none;scroll-behavior:auto;}}
}
/* Dialogs live outside the app but share its design tokens and existing forms. */
body:has(.experience) :is(.app-dialog,.visibility-dialog,.project-delete-confirmation,.sync-viewer-dialog) {font-family:var(--tc-body);color:var(--tc-ink);background:var(--tc-surface);border-color:var(--tc-line);}
body:has(.experience) dialog:not(.experience-dialog) :is(button,input,select,textarea) {font-family:var(--tc-body);color:var(--tc-ink);background:var(--tc-raised);border:1px solid var(--tc-line);border-radius:8px;}
body:has(.experience) dialog:not(.experience-dialog) button {cursor:pointer;min-height:40px;padding:8px 12px;font-size:12px;}
body:has(.experience) dialog:not(.experience-dialog) :is(button,input,select,textarea):focus-visible {outline:2px solid var(--tc-accent);outline-offset:2px;}
/* Save-related dialogs are body siblings of the workspace. This scope owns
   their presentation and is a boundary for both legacy theme stylesheets. */
@scope (.experience-dialog) {
  :scope {box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-surface);color:var(--tc-ink);font:14px/1.5 var(--tc-body);box-shadow:0 20px 60px #0005;overflow:auto;}
  *,*::before,*::after {box-sizing:border-box;}
  [hidden] {display:none !important;}
  form {display:grid;gap:20px;margin:0;padding:24px;background:transparent;}
  .dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;}
  .dialog-heading strong {font:700 28px/1.12 var(--tc-display);letter-spacing:-.3px;}
  p,.dialog-copy {margin:0;color:var(--tc-muted);font-size:13px;line-height:1.6;font-weight:400;overflow-wrap:anywhere;}
  label,legend {color:var(--tc-muted);font-size:12px;}
  button,input,select,textarea {font:inherit;min-width:0;max-width:100%;color:var(--tc-ink);border:1px solid var(--tc-line);border-radius:8px;}
  button {min-height:40px;padding:8px 12px;background:transparent;font-size:12px;font-weight:650;cursor:pointer;}
  button:hover:not(:disabled) {background:var(--tc-raised);}
  button:disabled {opacity:.45;cursor:default;}
  :is(button,input,select,textarea):focus-visible {outline:2px solid var(--tc-accent);outline-offset:2px;}
  .icon-button {display:grid;place-items:center;flex:none;width:40px;height:40px;min-width:40px;padding:0;border:0;font-size:24px;font-weight:400;line-height:1;}
  input:not([type="checkbox"]),select,textarea {width:100%;min-height:40px;padding:8px 10px;background:var(--tc-raised);}
  input::placeholder,textarea::placeholder {color:var(--tc-muted);}
  input[type="checkbox"] {flex:none;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--tc-accent);}
  .project-athlete-fieldset {min-width:0;margin:0;padding:0;border:0;background:transparent;}
  .project-athlete-fieldset legend {margin-bottom:12px;padding:0;font-weight:650;}
  .project-athlete-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:min(340px,45dvh);overflow:auto;padding:3px;}
  .project-athlete-options>small {grid-column:1/-1;color:var(--tc-muted);font-size:13px;}
  .project-athlete-option {display:flex;align-items:center;gap:12px;min-width:0;min-height:48px;padding:12px;border:1px solid var(--tc-line);border-radius:8px;background:transparent;color:var(--tc-ink);font-size:13px;font-weight:550;cursor:pointer;}
  .project-athlete-option span {min-width:0;overflow-wrap:anywhere;}
  .project-athlete-option:hover {background:var(--tc-raised);}
  .project-athlete-option:has(input:checked) {background:var(--tc-accent-soft);border-color:var(--tc-accent);}
  .dialog-actions {display:flex;flex-wrap:wrap;gap:8px;}
  .dialog-actions>button {flex:1 1 130px;}
  .project-menu-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  :is(#attachExistingAthlete,#saveAthleteButton,[data-unsaved-action="save"]) {background:var(--tc-accent);border-color:var(--tc-accent);color:var(--tc-accent-ink);font-weight:700;}
  :is(#attachExistingAthlete,#saveAthleteButton,[data-unsaved-action="save"]):hover:not(:disabled) {background:var(--tc-accent-hover);}
  .danger-button {color:#ff9b9b;}
  .athlete-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
  .athlete-form-grid label {display:grid;gap:6px;min-width:0;}
  .unit-input {display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;min-width:0;}
  .athlete-name-tools {position:relative;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
  #athleteLookupStatus {color:var(--tc-muted);font-size:12px;}
  .athlete-name-suggestions {position:absolute;top:100%;left:0;right:0;z-index:1;max-height:240px;padding:8px;overflow:auto;border:1px solid var(--tc-line);border-radius:8px;background:var(--tc-raised);}
  .athlete-name-suggestions>button {display:grid;gap:4px;width:100%;text-align:left;}
  .athlete-name-suggestions>button>span {color:var(--tc-muted);font-size:11px;font-weight:400;}
  .athlete-pr-rows {grid-column:1/-1;display:grid;gap:16px;}
  .athlete-pr-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:16px;border-top:1px solid var(--tc-line);}
  .athlete-pr-row>label:first-of-type {grid-column:1/-1;}
  .athlete-pr-row>strong {grid-column:1/-1;font-size:13px;}
  .athlete-country-field {grid-column:1/-1;}
  @media(max-width:700px) {
    :scope {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}
    form {padding:20px;gap:18px;}
    .dialog-heading strong {font-size:26px;}
    .project-athlete-options,.athlete-form-grid,.athlete-pr-row,.project-menu-actions {grid-template-columns:minmax(0,1fr);}
    .dialog-actions {display:grid;grid-template-columns:minmax(0,1fr);}
    button {min-height:44px;}
    .icon-button {width:44px;height:44px;min-width:44px;}
    input:not([type="checkbox"]),select,textarea {font-size:16px;min-height:44px;}
  }
}
.experience-signin[open] {box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:60px;align-items:center;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:clamp(32px,7vw,100px);border:0;border-radius:0;overflow:auto;background:var(--tc-background);box-shadow:none;}
.signin-intro {height:100%;min-height:360px;display:flex;flex-direction:column;justify-content:space-between;gap:48px;max-width:600px;}
.signin-wordmark {color:var(--tc-ink);font:750 30px var(--tc-display);letter-spacing:-1px;}
.signin-wordmark span {display:block;font:12px var(--tc-body);letter-spacing:0;color:var(--tc-muted);margin-top:5px;}
.signin-intro h1 {color:var(--tc-ink);font:750 clamp(40px,5vw,70px)/1.02 var(--tc-display);letter-spacing:-2px;margin:14px 0 22px;}
.signin-intro>div>p:not(.eyebrow) {font:14px/1.8 var(--tc-body);max-width:390px;color:var(--tc-muted);}
.signin-intro .eyebrow {color:var(--tc-accent);font:11px var(--tc-body);}
.signin-features {display:flex;gap:20px;flex-wrap:wrap;margin-top:32px;color:var(--tc-muted);font:11px var(--tc-body);}
.experience-signin #loginForm {width:100%;max-width:400px;margin:auto;padding:32px;background:var(--tc-surface);border-radius:12px;}
.experience-signin .dialog-heading {font:700 30px var(--tc-display);margin-bottom:8px;}
.experience-signin .dialog-copy {font:13px/1.7 var(--tc-body);color:var(--tc-muted);margin:0 0 24px;}
.experience-signin .settings-grid {display:grid;grid-template-columns:1fr;gap:16px;}
.experience-signin label {min-height:0;padding:0;border:0;border-radius:0;background:transparent;display:grid;gap:6px;font:12px var(--tc-body);color:var(--tc-muted);}
.experience-signin input,.experience-signin select {width:100%;min-height:44px;padding:10px 12px;font-size:15px;}
.experience-signin .dialog-actions {display:flex;flex-direction:column;gap:10px;margin-top:24px;}
body:has(.experience) #loginButton {background:var(--tc-accent);border-color:var(--tc-accent);color:var(--tc-accent-ink);font-weight:700;}
.experience-reference-dialog {box-sizing:border-box;width:min(940px,calc(100vw - 40px));max-height:85dvh;padding:24px;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-surface);color:var(--tc-ink);font:13px/1.5 var(--tc-body);}
.reference-picker-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;}
.reference-picker-heading h2 {font:700 28px var(--tc-display);margin:0;}
.experience-reference-dialog [hidden] {display:none;}
.experience-reference-dialog button:not(.reference-choice) {min-height:44px;}
.reference-search {display:grid;gap:6px;color:var(--tc-muted);font-size:12px;}
.reference-search input {width:100%;min-height:44px;padding:10px;font-size:16px;}
#referencePickerStatus {min-height:24px;margin:14px 0;color:var(--tc-muted);font-size:12px;}
.reference-choices {max-height:48dvh;overflow:auto;padding:3px;overscroll-behavior:contain;}
.reference-choices .project-collection-heading {font-size:15px;}
.reference-choices [data-reference-group="recent"] .reference-choice {max-width:180px;}
body:has(.experience) .reference-choice {display:flex;flex-direction:column;gap:7px;min-width:0;padding:0 0 10px;text-align:left;border:0;background:transparent;}
.reference-choice .project-thumbnail {position:relative;display:flex;width:100%;aspect-ratio:16/10;overflow:hidden;background:var(--tc-raised);border-radius:8px;}
.reference-choice img {width:100%;height:100%;object-fit:cover;min-width:0;}
.reference-choice .project-thumbnail-label {display:none;}
.reference-choice strong {font-size:13px;white-space:normal;}
.reference-choice small {color:var(--tc-muted);font-size:11px;white-space:normal;overflow-wrap:anywhere;}
.experience-reference-dialog footer {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;border-top:1px solid var(--tc-line);padding-top:12px;}
.main-controls > .compare-with-pro {background:var(--tc-accent);color:var(--tc-accent-ink);border-color:var(--tc-accent);font-weight:700;}
@media(max-width:700px) {
  .experience-signin[open] {grid-template-columns:1fr;align-content:start;gap:28px;padding:28px 20px;}
  .signin-intro {height:auto;min-height:0;gap:28px;}
  .signin-wordmark {font-size:26px;}
  .signin-intro h1 {font-size:38px;letter-spacing:-1px;margin:10px 0 12px;}
  .signin-intro>div>p:not(.eyebrow) {font-size:12px;}
  .signin-features {display:none;}
  .experience-signin #loginForm {padding:24px;max-width:none;}
  .experience-signin input,.experience-signin select {font-size:16px;}
  .experience-reference-dialog {width:calc(100vw - 20px);max-height:88dvh;padding:18px;}
  .reference-picker-heading {gap:12px;margin-bottom:14px;}
  .reference-picker-heading h2 {font-size:23px;}
  .experience-reference-dialog footer button {font-size:12px;padding-inline:10px;}
}

@scope (.app.experience) {
 .sync-strip-body {display:flex;flex-direction:column;}
 #syncTotalComparison {order:5;margin-top:16px;}
 .analysis-column .tool-panel input {width:100%;}
}

@scope (.app.experience) {
 .video-setup-sidebar>.layout-toggle {display:flex;margin-bottom:16px;}
 .video-setup-sidebar>.layout-toggle button {flex:1;min-height:44px;}
 .experience-project-panel>#analysisPrivacy {display:block;width:100%;margin:12px 0;max-width:none;}
}
@media(max-width:700px) {
 .app.experience #automaticSyncDialog:not(.auto-sync-workspace)[open] {bottom:calc(62px + env(safe-area-inset-bottom));height:min(29dvh,245px);}
}

body:has(.experience) #autoSyncProgress {accent-color:var(--tc-accent);}
body:has(.experience) #autoSyncProgress::-webkit-progress-value {background:var(--tc-accent);}
body:has(.experience) #autoSyncProgress::-moz-progress-bar {background:var(--tc-accent);}

@scope (.app.experience, .experience-startup) {
 .library-utilities .search-filter {display:flex;align-items:center;gap:8px;font-size:11px;}
 .library-utilities .search-filter select {min-width:105px;min-height:36px;padding:6px;font-size:11px;}
}

@media(max-width:700px), (max-width:1000px) and (max-height:600px) {
 .app.experience.phone-analysis #automaticSyncDialog:not(.auto-sync-workspace)[open] {position:fixed;inset:auto 0 calc(62px + env(safe-area-inset-bottom));width:100%;height:min(29dvh,245px);max-height:none;margin:0;z-index:50;}
 .app.experience.phone-analysis #automaticSyncDialog .auto-sync-panel {max-height:100%;height:100%;}
 .app.experience.phone-analysis #automaticSyncDialog .auto-sync-panel>header,.app.experience.phone-analysis #automaticSyncDialog .auto-sync-footer {padding:6px 10px;}
 .app.experience.phone-analysis #automaticSyncDialog .auto-sync-body {padding:0 10px 8px;}
 @media(orientation:landscape) {
  .app.experience.phone-analysis #automaticSyncDialog:not(.auto-sync-workspace)[open] {inset:124px 0 0 auto;width:min(38vw,300px);height:calc(100dvh - 124px);}
 }
}

body:has(.experience) :is(.experience-signin,.experience-reference-dialog) * {box-sizing:border-box;}
