/* Omni desktop workspace: current native behavior with the approved desktop presentation. */
:root{
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;
 --background:#131517;--surface:#202326;--inset:#292c30;--selection:#3c424a;--board:#35332f;
 --secondary:#adb1b8;--text:#f0f1f3;--accent:#64d2ff;--brand:#64d2ff;--brand-ink:#08232d;
 --line:color-mix(in srgb,var(--text) 10%,transparent);--quiet:color-mix(in srgb,var(--surface) 60%,var(--background));
 color:var(--text);background:var(--background);color-scheme:dark
}
:root[data-appearance=light]{--background:#f4f1eb;--surface:#fbf8f3;--inset:#ebe7e0;--selection:#e1dbd2;--board:#dad3c8;--secondary:#6b685f;--text:#37352f;--accent:#006b94;--brand:#006b94;--brand-ink:#fff;color-scheme:light}
:root[data-board=tension]{--accent:#ed8b98}:root[data-board=moonboard]{--accent:#d6b66b}
:root[data-appearance=light][data-board=tension]{--accent:#a61f30}:root[data-appearance=light][data-board=moonboard]{--accent:#7a5705}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select{min-height:44px}button{border:1px solid transparent;background:transparent;cursor:pointer;border-radius:8px;padding:9px 13px;line-height:1.35}
button:hover{background:var(--inset)}button:disabled{opacity:.45;cursor:default}
:where(button,a,input,select,summary,textarea):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
[hidden]{display:none!important}h1,h2,h3{letter-spacing:-.025em}h1{font-size:30px;line-height:1.15}h2{font-size:20px}p{color:var(--secondary);line-height:1.55}
input,select,textarea{border:1px solid var(--line);border-radius:8px;background:var(--inset);padding:10px;min-width:0}
input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--brand)}
input[type=range]{accent-color:var(--accent)}
dialog{border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);width:min(560px,calc(100vw - 32px));padding:0;max-height:85vh}
dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}dialog header{display:flex;align-items:center;padding:16px 24px;justify-content:space-between}
#panel-content{padding:0 24px 30px;display:grid;gap:12px;overflow:auto}.option{width:100%;text-align:left;padding:14px}
.field{display:flex;align-items:center;justify-content:space-between;gap:16px}.field input,.field select{max-width:55%}
.chips{display:flex;flex-wrap:wrap;background:var(--surface);border-radius:8px;padding:4px;gap:6px;margin:20px 0}.chips button{flex:1}
.chips [aria-selected=true]{background:var(--selection)}
.card{width:100%;display:flex;text-align:left;padding:14px;border-radius:8px;background:var(--surface);gap:12px;margin:10px 0}
.card strong{color:var(--accent);font-size:20px}.card small{display:block;color:var(--secondary);margin-top:6px}.card[aria-pressed=true]{background:var(--selection)}
.floating{display:flex;gap:8px;padding:8px;background:var(--surface);border-radius:8px;max-width:100%}
#native-handoff{max-width:440px;margin:20vh auto;padding:24px}#native-handoff a{color:inherit;display:inline-block;padding:12px;border-radius:24px;background:var(--surface)}

/* Existing native component presentation follows; controllers and board geometry are unchanged. */

/* Native diagram controls translated for pointer and keyboard input. */
.board{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}.board canvas{display:block;touch-action:none;flex:none}.board.selection-ready{outline:2px solid var(--accent);outline-offset:-2px}.diagram-tools{position:absolute;right:8px;bottom:8px;display:flex;gap:2px;background:var(--surface);border-radius:24px;opacity:.95}.diagram-tools button{font-size:11px;padding:4px 10px}.diagram-notice{position:absolute;left:10px;top:8px;pointer-events:none;font-size:11px;margin:0;background:var(--surface);border-radius:12px;padding:4px 8px;max-width:80%}
.board{background:transparent}.board canvas{background:var(--board);border-radius:12px}.board.selection-ready{outline:0}.board.selection-ready canvas{outline:2px solid var(--accent);outline-offset:-2px}.board .diagram-notice{padding:4px 8px;max-width:75%}

.catalogue-source{font-size:12px;color:var(--secondary);margin-block:8px 14px}#panel-content h3{font-size:13px;color:var(--secondary);font-weight:500;margin:12px 0 0}

/* Native focused overlay/scrubber/panel hierarchy, adapted to a desktop viewport. */
.native-result{display:flex;align-items:center;gap:6px;margin:10px 0}.native-result .card{flex:1;min-width:0;margin:0}.native-result .open-focus{background:var(--surface);font-size:12px}
.focused-climb{width:84vw;max-width:none;height:82dvh;max-height:none;border-radius:26px;padding:0 0 16px;overflow:hidden}.focused-climb[open]{display:flex;flex-direction:column;gap:8px}.focused-climb.expanded{width:100vw;height:100dvh;margin:0;border-radius:0}.focused-climb header{padding:12px 16px;gap:12px;flex:none}.focused-climb header>div{flex:1;min-width:0}.focused-climb h2{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.focused-climb header p{margin:4px 0 0;font-size:12px}.focused-scrubber{display:flex;align-items:center;gap:8px;padding:0 12px;flex:none}.focused-scrubber input{flex:1;min-width:0;accent-color:var(--accent)}.focused-scrubber span{font-size:12px;color:var(--secondary);font-variant-numeric:tabular-nums}.focused-board{flex:1;min-height:80px;margin:0 16px}.focused-metadata{font-size:12px;margin:4px 16px;flex:none}.focused-limits{font-size:12px;margin:0 16px;color:var(--secondary);flex:none}.focused-climb>button{margin:0 16px;flex:none}.hold-measure{width:min(90vw,760px);max-width:none;padding:0 20px 24px}.hold-measure header{padding-inline:0}.hold-measure>p{font-size:13px}.measure-board{height:390px;max-height:52dvh}.hold-distance-value{font-size:24px!important;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}@media(max-height:550px){.focused-climb{overflow:auto}.focused-board{flex:none;height:200px}}

.hold-measure header,.focused-climb header{position:sticky;top:0;background:var(--surface);z-index:2}

/* Current native Account/Profile groups, fields, capsule actions and playlist colors. */
.native-account{display:grid;gap:18px;min-width:0}.native-account>header{padding:0;gap:12px}.native-account>header h2{margin:0}.account-group{display:grid;gap:12px;padding:16px;background:var(--background);border-radius:18px}.account-group h3{margin:0;color:var(--secondary);font-size:13px;font-weight:500}.account-group p,.native-account>p{margin:0;font-size:13px}.account-field{display:grid;gap:8px;font-size:14px}.account-field input,.account-field select{width:100%;min-width:0}.account-primary{background:var(--accent);color:white;border-radius:28px;font-weight:600}.account-method{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-destructive{color:#e36d69}.account-sync{font-size:12px}.native-playlists{display:grid;gap:12px}.native-playlist-row,.native-playlist-climb{display:flex;align-items:center;gap:10px;padding:10px 0}.native-playlist-row>button:first-child,.native-playlist-climb>button:first-child{flex:1;text-align:left}.native-playlists [data-color]{border-inline-start:4px solid var(--playlist-color,#30b0c7);padding-inline-start:12px}.native-playlists [data-color=green]{--playlist-color:#34c759}.native-playlists [data-color=blue]{--playlist-color:#007aff}.native-playlists [data-color=purple]{--playlist-color:#af52de}.native-playlists [data-color=orange]{--playlist-color:#ff9500}.native-playlists [data-color=pink]{--playlist-color:#ff2d55}.native-playlists input{max-width:100%}#profile-content{max-width:100%;min-width:0}#profile-content>.native-activity{max-width:960px}#profile-content>.native-playlists{max-width:760px}

.focused-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 16px;flex:none}.focused-actions button{flex:1;min-width:90px;background:var(--inset);font-size:12px}.native-log{display:grid;gap:12px}.native-log h2,.native-log h3,.native-log p{margin:0}.native-log label{display:grid;gap:8px}.native-log input,.native-log select,.native-log textarea{width:100%;min-width:0;font:inherit}.native-log textarea{padding:12px;background:var(--inset);color:var(--text);border:0;border-radius:12px}.native-log button{background:var(--inset)}

/* Native Add climbs sheet, with explicit desktop preview controls. */
.playlist-add-dialog{width:min(880px,92vw);padding:0 22px 24px;overflow:auto}.native-playlist-add{display:grid;gap:14px}.native-playlist-add>header{padding:16px 0;position:sticky;top:0;background:var(--surface);z-index:1}.native-playlist-add h2,.native-playlist-add p{margin:0}.native-playlist-add>label{display:grid;gap:7px;font-size:14px}.native-playlist-add input,.native-playlist-add select{width:100%;min-width:0}.native-playlist-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:12px 0;border-bottom:1px solid var(--inset)}.native-playlist-add-row>small{grid-column:1/-1;color:var(--secondary)}.native-playlist-add-row>button:first-of-type{text-align:left;font-weight:600;padding-left:0}.native-playlist-add-row>button:last-child{grid-column:2;grid-row:1/4;align-self:center;background:var(--inset)}.native-playlist-add-row>p{grid-column:1;font-size:12px;color:var(--secondary)}

.native-heatmap{margin-block:16px}.native-heatmap-board{min-height:0;height:auto;display:flex;align-items:center;justify-content:center}.native-heatmap-board canvas{max-height:480px}.native-heatmap .chips{display:flex;gap:8px;flex-wrap:wrap;margin-block:10px}.native-heatmap label{display:inline-flex;align-items:center;gap:8px;margin:8px 12px 8px 0}.native-heatmap [aria-label="Used holds"]{display:flex;gap:8px;flex-wrap:wrap;margin-block:12px}

.preset-host{min-width:0}.native-session-panel{display:grid;gap:10px}.native-session-panel button{white-space:normal}.native-session-panel input{max-width:100%;width:100%}#session-status{font-size:13px;color:var(--secondary)}

.native-sharing-host section{display:grid;gap:14px}.native-sharing-host label{display:grid;gap:7px}.native-sharing-host textarea{font:inherit;padding:12px;background:var(--inset);color:var(--text);border:0;border-radius:12px}.native-sharing-host article{padding-block:12px;border-bottom:1px solid var(--inset)}#viewed-status{font-size:13px;color:var(--secondary)}


/* Native party groups and fields translated to desktop; physical controls deferred. */
.native-party-panel{display:grid;gap:12px;min-width:0}.native-party-panel h2{display:none}.native-party-panel h3,.native-party-panel p{margin:0}.native-party-panel label{display:grid;gap:7px}.native-party-panel input{width:100%;min-width:0}.native-party-panel button{background:var(--inset);white-space:normal}.native-party-panel [role=status]{font-size:13px}

/* Native Morpho measurements, profile cards and focused aggregate. */
.native-morpho-host{min-width:0}.native-morpho-panel{display:grid;gap:12px}.native-morpho-panel>header{padding:16px 0}.native-morpho-panel h2,.native-morpho-panel h3,.native-morpho-panel p{margin:0}.native-morpho-field{display:grid;gap:7px;font-size:14px}.native-morpho-field input:not([type=checkbox]){width:100%;min-width:0}.native-morpho-panel button{background:var(--inset)}.native-morpho-measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.native-morpho-card{display:grid;gap:7px;padding:14px;background:var(--inset);border-radius:14px}.native-morpho-card span,.measurement-status{font-size:12px;color:var(--secondary)}.native-morpho-card strong{font-size:20px}.focused-morpho{min-height:18px;margin:0 16px;text-align:center;font-size:12px}.native-morpho small{margin-inline-start:8px}.profile-name{padding:0;font-size:inherit;font-weight:inherit;text-align:left}


/* Native spray cloud/community groups translated for the desktop panel. */
#panel-content>section:has(.native-spray){min-width:0}#panel-content>section:has(.native-spray) nav{display:flex;flex-wrap:wrap;gap:8px;margin-block:12px}#panel-content>section:has(.native-spray) button{white-space:normal;overflow-wrap:anywhere}#panel-content>section:has(.native-spray) [role=status]{font-size:13px;overflow-wrap:anywhere}.native-spray-community,.native-spray-publishing{display:grid;gap:12px;min-width:0;color:var(--text)}.native-spray-community h2,.native-spray-publishing h2,.native-spray-community p,.native-spray-publishing p{margin:0}.native-spray-community label,.native-spray-publishing label{display:grid;gap:7px;font-size:14px}.native-spray-community input:not([type=checkbox]),.native-spray-community select,.native-spray-publishing select{width:100%;min-width:0}.native-spray-community button,.native-spray-publishing button{background:var(--inset)}.native-spray-publishing label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.native-spray-publishing input[type=checkbox]{flex:none}.spray-community-preview{min-width:0;overflow:hidden}

/* Native focused log rows: 90-point compact / 130-point expanded caps,
   translated to bounded desktop pixels and shrinkable modal space. */
.focused-history{display:grid;gap:8px;flex:0 1 auto;min-height:0;max-height:90px;overflow:auto;overscroll-behavior:contain;margin:0 12px;font-size:12px}.focused-history[hidden]{display:none}.focused-history>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:12px;background:var(--inset);border-radius:12px}.focused-history time{color:var(--secondary);margin-inline-end:auto}.focused-climb.expanded .focused-history{max-height:130px}


/* Current native FocusedClimb.swift:23–53,63–67: compact heading, generous
   board, scrollable details, 8/12 spacing and bounded 90/130 log history.
   Desktop uses the available width; narrow/zoomed viewports keep reading order. */
.focused-climb{width:min(94vw,1600px);height:92dvh;padding-bottom:12px}
.focused-climb>header{padding:8px 12px}
.focused-climb h2{font-size:14px;line-height:1.3}
.focused-climb.expanded h2{font-size:16px}
.focused-climb header p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.focused-climb button,.focused-climb input{min-height:44px}
.focused-scrubber{min-width:0;flex-wrap:wrap}
.focused-body{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;padding:0 12px}
.focused-body>.focused-board{grid-area:auto;flex:none;height:clamp(240px,50dvh,560px);min-height:240px;max-height:none;margin:0}
.focused-details{grid-area:auto;display:flex;flex-direction:column;gap:8px;min-width:0}
.focused-details>*{flex:none}
.focused-details>.focused-actions,.focused-details>.focused-metadata,.focused-details>.focused-morpho,.focused-details>.focused-history,.focused-details>.focused-notice,.focused-details>.focused-limits{margin:0}
.focused-details>.focused-actions{gap:8px}
.focused-details>.focused-notice{font-size:12px}
.focused-details>button{min-height:44px;background:var(--inset)}
.focused-body:focus-visible,.focused-details:focus-visible{outline:2px solid var(--secondary);outline-offset:-2px}
@media(min-width:1000px) and (min-height:560px){
 .focused-body{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,25vw,360px);grid-template-rows:minmax(0,1fr);gap:20px;overflow:hidden}
 .focused-body>.focused-board{grid-area:1/1/2/2;height:100%;min-height:0;min-width:0}
 .focused-details{grid-area:1/2/2/3;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 8px}
}
@media(max-width:600px){.focused-scrubber span{flex-basis:100%;text-align:center}}

/* Native AngleWheel/OmniLogToast; independent notice host follows modal top layer. */
.focused-angle{flex:none;max-width:94px;min-width:68px;padding:8px}
.focused-grade-status{margin:0;font-size:12px;color:var(--secondary)}
.native-log-notice-host{position:fixed;inset:auto 12px 16px;z-index:20;display:flex;justify-content:center;pointer-events:none}
.native-log-notice-host .native-log-notice{max-width:min(520px,100%);padding:12px 18px;border-radius:22px;background:var(--surface);box-shadow:0 6px 24px #0005;pointer-events:auto}
.native-log-notice-host .native-log-notice[hidden]{display:none}
.native-log-notice p{margin:4px 0}.native-log-notice button{min-height:44px}

.native-installed-sets{border:0;padding:12px 0;margin:0;display:grid;gap:8px}.native-installed-sets legend{font-weight:600}.native-installed-sets label{display:flex;align-items:center;gap:12px;min-height:44px}.native-installed-sets input{flex:none}.catalogue-filter-notice,.account-resource-status{font-size:12px;color:var(--secondary)}


/* One desktop shell, with a labeled rail, browse surface and persistent board/selection. */
#workspace{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:start;width:100%;min-height:100dvh;margin:0}
.desktop-rail{grid-column:1;grid-row:1;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:26px;padding:28px 16px 18px;background:var(--surface);border-right:1px solid var(--line);overflow:auto;scrollbar-width:thin}
.omni-home{display:flex;align-items:center;gap:11px;flex:none;min-height:50px;padding:0 10px 10px;color:var(--text);text-decoration:none;font-size:24px;font-weight:650;letter-spacing:-.045em}
.omni-home img{width:34px;height:34px;object-fit:contain}.brand-caption{display:block;margin-top:4px;font-size:10px;font-weight:400;letter-spacing:.02em;color:var(--secondary)}
.rail-group{display:grid;gap:4px}.rail-heading{padding:0 12px;margin:0 0 7px;color:var(--secondary);font:10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase}
.desktop-rail button{position:relative;display:flex;align-items:center;gap:11px;width:100%;min-width:0;min-height:44px;text-align:left;padding:10px 12px;border-radius:8px;color:var(--secondary);font-weight:500}
.desktop-rail button:hover{color:var(--text)}.desktop-rail button:disabled{color:var(--secondary)}
.desktop-rail button:is([aria-current=page],[aria-pressed=true]){color:var(--brand);background:color-mix(in srgb,var(--brand) 9%,var(--surface));border-color:color-mix(in srgb,var(--brand) 14%,transparent)}
.desktop-rail button:is([aria-current=page],[aria-pressed=true])::before{content:"";position:absolute;left:-17px;top:10px;bottom:10px;width:3px;border-radius:0 2px 2px 0;background:var(--brand)}
.rail-icon,.search-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rail-label{min-width:0}.rail-account{margin-top:auto;padding-top:22px;border-top:1px solid var(--line)}.rail-footnote{display:block;padding:18px 12px 0;font-size:10px;line-height:1.5;color:var(--secondary)}
.page{grid-column:2;grid-row:1;min-width:0;padding:32px}
.page>h1{margin:0 0 24px}.eyebrow{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--secondary)}
#climbs{display:grid;grid-template-columns:minmax(360px,1fr) clamp(380px,34vw,520px);gap:28px;align-items:start;padding:28px 32px}
.results{min-width:0;padding:0}.results-toolbar{position:relative;padding:0 0 12px;border-bottom:1px solid var(--line)}
.results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.results-heading h1{margin:0;font-size:30px;font-weight:600;letter-spacing:-.04em}
.quiet-action{border-color:var(--line);color:var(--secondary);font-size:12px}.quiet-action span{margin-left:14px;color:var(--brand)}
#search{display:flex;align-items:center;gap:6px;position:static;width:100%;max-width:none;padding:4px 5px 4px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);transform:none;box-shadow:none}
.search-icon{color:var(--secondary);width:18px;height:18px}#search input{flex:1;width:0;min-width:70px;border:0;background:transparent;padding:10px 6px;font-size:14px}
#search input,#search button{min-height:36px}#search input{padding-block:7px}
#search input:focus-visible{outline-offset:-3px}#search button{font-size:12px;padding-inline:12px;white-space:nowrap}#search button[type=submit]{background:var(--inset)}
#filters[aria-expanded=true]{color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,transparent)}
.workspace-filters{margin-top:12px}.common-filter-controls{display:grid;grid-template-columns:minmax(62px,1fr) minmax(62px,1fr) minmax(98px,1.3fr) minmax(62px,1fr) minmax(62px,1fr) minmax(80px,1fr);gap:8px}.common-filter-controls>button{position:absolute;right:0;bottom:10px;min-height:28px;padding:3px 0 3px 8px;font-size:11px;color:var(--secondary);text-decoration:underline;text-underline-offset:3px}
.workspace-filters .field{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;min-width:0;font-size:10px;color:var(--secondary)}
.workspace-filters .field input:not([type=checkbox]),.workspace-filters .field select{width:100%;max-width:none;min-height:36px;padding:6px 7px;border-color:var(--line);background:var(--surface);color:var(--text);font-size:12px}
.workspace-filters .field:has(input[type=checkbox]){flex-direction:row;align-items:center;justify-content:space-between;align-self:end;min-height:36px;padding:6px 7px;border:1px solid var(--line);border-radius:8px}
.workspace-filters .field input[type=checkbox]{flex:none;margin:0}.workspace-filters .field:has(:disabled){opacity:.65}
.workspace-advanced:not([open]){display:none}.workspace-advanced>summary{display:none!important}
.workspace-advanced{margin-top:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.workspace-advanced>summary{display:flex;align-items:center;gap:10px;min-height:44px;list-style:none;cursor:pointer;color:var(--text);font-size:12px}
.workspace-advanced>summary::-webkit-details-marker{display:none}.workspace-advanced>summary::before{content:"+";width:16px;font-size:17px;color:var(--brand)}
.workspace-advanced[open]>summary::before{content:"−"}.workspace-advanced>summary>span{margin-left:auto;color:var(--secondary);font-size:11px}
#advanced-filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:8px 0 20px}
#advanced-filter-controls>button,#advanced-filter-controls>.native-installed-sets,#advanced-filter-controls>p{grid-column:1/-1}
#advanced-filter-controls>button{justify-self:start;border:1px solid var(--line);font-size:12px}
#preset-controls{padding:18px 0;border-top:1px solid var(--line)}#preset-controls:empty{display:none}#preset-controls .native-session-panel{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
#preset-controls .native-session-panel>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0}
#preset-controls .native-session-panel>header h2{margin:0;font-size:17px}
#preset-controls .native-session-panel>header button{min-height:34px;padding:6px 10px;border:1px solid var(--line);font-size:12px}
#preset-controls .native-session-panel>label{display:grid;gap:6px;min-width:0;font-size:12px;color:var(--secondary)}
#preset-controls .native-session-panel>label input{width:100%;min-height:40px;color:var(--text)}
#preset-controls .native-session-panel>button{justify-self:start;min-height:40px;padding:8px 12px;border:1px solid var(--line);background:var(--surface);font-size:12px}
#preset-controls .native-session-panel>p,#preset-controls .native-session-panel>h2,#preset-controls .native-session-panel>h3,#preset-controls .native-session-panel>div{grid-column:1/-1}
#preset-controls .native-session-panel>p{margin:0;font-size:12px}#preset-controls .native-session-panel>p:empty{display:none}
#preset-controls .native-session-preset{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}#preset-controls .native-session-preset>span{overflow-wrap:anywhere}
.workspace-filter-notice,.catalogue-filter-notice{font-size:12px;line-height:1.6;margin:12px 0;color:var(--secondary)}
.filter-summary{min-height:28px;padding-right:100px;font-size:11px;margin:8px 0 0;color:var(--secondary);line-height:1.6;overflow-wrap:anywhere}
#status,#session-status,#viewed-status,.catalogue-source{font-size:12px;line-height:1.5;margin:10px 0;color:var(--secondary)}#status:empty,.catalogue-source:empty{display:none}
#rows{min-width:0;max-height:calc(100dvh - 300px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
#rows .native-result{gap:6px;margin:0;padding:5px 0;border-bottom:1px solid var(--line);min-width:0}
#rows .native-result .card{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:16px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:7px;background:transparent;min-height:58px}
#rows .native-result .card:hover{background:var(--quiet)}#rows .native-result .card[aria-pressed=true]{background:color-mix(in srgb,var(--brand) 7%,var(--background));border-color:color-mix(in srgb,var(--brand) 20%,transparent)}
#rows .native-result .card>strong{font-size:18px;line-height:1.3;letter-spacing:-.035em;color:var(--accent);font-variant-numeric:tabular-nums}
#rows .native-result .card>span{min-width:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}#rows .native-result .card>span>span{display:block}#rows .native-result .card small{display:inline;margin-top:3px;font-size:11px;line-height:1.5;font-weight:400}#rows .native-result .card small+small::before{content:" · ";white-space:pre}
#rows .native-result .open-focus{flex:none;padding:8px 10px;border:1px solid var(--line);background:transparent;color:var(--secondary);font-size:11px;border-radius:7px}
.catalogue-state{margin:28px 0;padding:28px 20px;border:1px dashed var(--line);border-radius:10px;background:transparent}
.empty-state-mark{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:8px;margin-bottom:16px;color:var(--brand);font-size:20px}
.catalogue-state h2{font-size:20px;line-height:1.25;margin:0 0 10px}.catalogue-state p{font-size:13px;max-width:48ch;margin:0 0 18px}
.state-actions{display:flex;flex-wrap:wrap;gap:8px}.state-actions button{font-size:12px;border:1px solid var(--line)}
#catalogue-account{background:var(--brand);color:var(--brand-ink);border-color:transparent;font-weight:600}
/* The board is stationary and aspect-fitted by the existing native diagram renderer. */
.selected-pane{position:sticky;top:20px;min-width:0;padding:18px;background:var(--quiet);border:1px solid var(--line);border-radius:12px}
.board-pane{min-width:0}.board-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.board-pane-hint{font-size:10px;color:var(--secondary)}.setup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.setup-options{display:contents}.setup-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:10px;color:var(--secondary)}
.setup-field select{width:100%;max-width:100%;min-height:36px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);padding:6px 18px 6px 7px;font-size:12px;text-overflow:ellipsis}
#climbs .selected-pane .board{height:clamp(260px,52dvh,620px);max-height:none;min-height:0;margin:0;grid-area:auto;border-radius:8px}
#climbs .selected-pane .board canvas{border-radius:8px}
.resize{display:flex;align-items:center;gap:10px;min-height:32px;margin-top:4px;font-size:10px;color:var(--secondary)}
.resize input{flex:1;min-width:0;width:0;padding:0;background:transparent;border:0;max-width:none}.resize label{white-space:nowrap}
.selected-climb{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid var(--line);background:transparent}
.selected-climb>div{min-width:0}.selected-climb h2{font-size:17px;line-height:1.25;margin:5px 0;overflow-wrap:anywhere}.selected-climb p{font-size:11px;line-height:1.4;margin:0}
.selected-climb>button{min-height:34px;flex:none;padding:7px 9px;border:1px solid var(--line);background:var(--surface);font-size:11px}.selected-climb>button span{margin-left:6px;color:var(--brand)}
.selected-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.selected-actions:empty{display:none}.selected-actions button{min-height:34px;padding:6px 9px;border:1px solid var(--line);background:var(--surface);font-size:11px}
.selection-idle{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid var(--line)}.selection-idle h2{font-size:16px;margin:5px 0}.selection-idle p{font-size:11px;margin:0;max-width:42ch}
.selected-pane:has(#selected-climb:not([hidden])) .selection-idle{display:none}
.profile-heading,.desktop-feature-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.profile-heading h1,.desktop-feature-heading h1{margin:8px 0 0;font-weight:600;font-size:32px;letter-spacing:-.04em}
.profile-heading p{font-size:13px;margin:10px 0 0}.profile-heading button,.desktop-feature-heading>button{border:1px solid var(--line);font-size:12px}
#profile-content,#desktop-feature-content{min-width:0;max-width:none}#profile-content>.native-activity,#profile-content>.native-playlists{max-width:none}
#desktop-feature-content{display:grid;gap:12px;max-width:1040px}#desktop-feature-content>section{min-width:0}.desktop-feature-body{display:grid;gap:12px;width:100%;min-width:0}.desktop-feature-body>section{min-width:0}
#desktop-feature-content .field{display:grid;grid-template-columns:160px minmax(160px,260px);justify-content:start;min-height:40px;max-width:640px;gap:16px;font-size:13px}
#desktop-feature-content .field input,#desktop-feature-content .field select{width:100%;max-width:100%}
#desktop-feature-content .desktop-feature-body>h3{margin:12px 0 0;font-size:13px;color:var(--secondary)}
#desktop-feature-content .desktop-feature-body>p{margin:0;max-width:70ch;font-size:13px}
#desktop-feature-content .native-party-panel,#desktop-feature-content .native-sharing-host{width:100%;max-width:760px}
#desktop-feature-content .desktop-feature-body>button,#desktop-feature-content .native-party-panel>button{justify-self:start;min-width:160px;max-width:100%;border:1px solid var(--line)}
#desktop-feature-content .native-party-panel label,#desktop-feature-content .native-sharing-host label{max-width:640px}
#desktop-feature-content .native-spray>header{display:none}
#profile-status .profile-name{min-height:28px;padding:0;color:var(--secondary);font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}
.desktop-analysis-grid{display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(320px,1fr);gap:24px;align-items:start}
.desktop-analysis-grid>div{min-width:0}.desktop-analysis-grades>.native-activity{display:flex;flex-direction:column;gap:12px}.desktop-analysis-grades>.native-activity>.native-surface{order:0;margin:0!important}.desktop-analysis-grades>.native-activity>p{order:1;margin:0;font-size:12px}.desktop-analysis-grid .native-surface,.desktop-analysis-grid .native-heatmap{border-radius:10px!important;border:1px solid var(--line)!important;padding:14px!important}.desktop-analysis-heatmap .native-heatmap{margin-top:0}
.desktop-analysis-heatmap .native-heatmap-board canvas{max-height:560px}
.account-primary{background:var(--brand);color:var(--brand-ink)}
@media(min-width:1600px){#workspace{grid-template-columns:208px minmax(0,1fr)}#climbs{gap:36px;padding:36px 40px}.page{padding:36px 40px}.results-heading{margin-bottom:16px}}
@media(max-width:1200px){#climbs{grid-template-columns:minmax(360px,1fr) minmax(340px,.88fr);gap:20px;padding:24px}.page{padding:24px}.selected-pane{padding:14px}.common-filter-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.board-pane-hint{display:none}}
@media(max-width:1024px){
 #workspace{grid-template-columns:88px minmax(0,1fr)}.desktop-rail{padding:20px 8px 14px;gap:20px}
 .omni-home{justify-content:center;padding:0 0 8px}.omni-home>span{display:none}.rail-heading{padding:0;text-align:center;font-size:8px;letter-spacing:.04em}
 .desktop-rail button{flex-direction:column;justify-content:center;gap:5px;padding:9px 3px;min-height:58px;font-size:10px;line-height:1.2;text-align:center}
 .desktop-rail button:is([aria-current=page],[aria-pressed=true])::before{left:-9px}.rail-icon{width:18px;height:18px}.rail-footnote{display:none}.rail-account{padding-top:14px}
 #climbs{grid-template-columns:minmax(320px,1fr) minmax(300px,.85fr);gap:16px;padding:20px}.page{padding:20px}
 .results-heading{margin-bottom:18px}.results-heading h1,.profile-heading h1,.desktop-feature-heading h1{font-size:28px}
 #search{flex-wrap:wrap}#search input{min-width:120px}#search button{padding-inline:9px}#search #filters{margin-left:auto}
 .selected-climb{flex-wrap:wrap}.desktop-analysis-grid{grid-template-columns:1fr}.desktop-analysis-heatmap{max-width:620px}
}
@media(max-width:860px){
 #climbs{grid-template-columns:minmax(0,1fr);gap:24px}.selected-pane{position:static;max-width:none}
 #climbs .selected-pane .board{height:clamp(280px,60dvh,540px)}#rows{max-height:460px}
 .common-filter-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.board-pane-hint{display:inline}.results-toolbar{position:relative}
 .selected-pane .setup{grid-template-columns:repeat(4,minmax(0,1fr))}.selected-climb{flex-wrap:nowrap}
}
@media(max-width:600px){
 #climbs,.page{padding:16px}.desktop-rail{gap:16px}.common-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 #search{padding:5px 6px 5px 10px}#search input{min-width:80px;flex-basis:calc(100% - 36px)}#search button{flex:1}#search #filters{margin-left:0}
 .results-heading h1,.profile-heading h1,.desktop-feature-heading h1{font-size:26px}.results-heading{gap:10px}.quiet-action span{margin-left:4px}
 .workspace-advanced>summary>span{font-size:10px;max-width:17ch;text-align:right}
 #advanced-filter-controls,#preset-controls .native-session-panel{grid-template-columns:minmax(0,1fr)}
 .selected-pane .setup{grid-template-columns:repeat(2,minmax(0,1fr))}.board-pane-hint{display:none}.selected-climb{flex-wrap:wrap}
 .profile-heading,.desktop-feature-heading{flex-wrap:wrap;gap:12px}.catalogue-state{padding:24px 16px}.state-actions{display:grid}.state-actions button{width:100%}
}
@media(prefers-reduced-motion:no-preference){
 #workspace :where(button,a,select,input,summary){transition:background-color .18s cubic-bezier(.2,.7,.2,1),border-color .18s cubic-bezier(.2,.7,.2,1),color .18s cubic-bezier(.2,.7,.2,1)}
}
@media(prefers-reduced-motion:reduce){#workspace *,#workspace *::before,#workspace *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){
 .desktop-rail,.selected-pane,.catalogue-state,#search,.workspace-advanced,.results-toolbar,#rows .native-result{border-color:CanvasText}
 .desktop-rail button:is([aria-current=page],[aria-pressed=true]),#rows .card[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}
 .desktop-rail button::before{display:none}#catalogue-account,.account-primary{color:ButtonText;background:ButtonFace;border:1px solid ButtonText}.rail-icon,.search-icon{forced-color-adjust:auto}
}


@media(min-width:861px) and (max-height:820px){#climbs .selected-pane .board{height:48dvh;min-height:240px}.selected-pane{top:12px;padding:14px}.board-pane-heading{margin-bottom:8px}}
@media(max-width:600px){#desktop-feature-content .field{grid-template-columns:minmax(0,1fr);gap:6px}.selected-climb{grid-template-columns:minmax(0,1fr) auto}}
