/* Selected Meld direction. This file owns the candidate's shell and surface refinements. */
:root{--ink3:#646864;--ink4:#687068;--candidate-gap:24px;--focus:#0000ff}
body{background:var(--bg);background-image:none;caret-color:var(--blue)}
*{scrollbar-color:#babeba transparent;scrollbar-width:thin}
::selection{background:#d9d9ff;color:#191945}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
input::placeholder,textarea::placeholder{color:#6b706b;opacity:1}
button[disabled]{opacity:.45;cursor:default;transform:none}
h1,h2,h3{font-weight:400}
button svg,summary svg{flex-shrink:0}
[hidden]{display:none!important}
body>.topnav{height:80px;grid-template-columns:minmax(0,1fr) clamp(240px,calc(100vw - 680px),520px) minmax(0,1fr);grid-template-areas:none;gap:16px;padding:0 24px;background:var(--bg);backdrop-filter:none}
.topnav .nav-left{gap:12px;grid-area:auto;min-width:0}
.topnav .logo{font-size:24px;letter-spacing:-.03em}
.topnav .nav-tabs{gap:2px}
.topnav .nav-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px;min-height:40px;font-size:14px;white-space:nowrap}
.topnav .nav-tab svg{width:18px;height:18px}
.topnav .hsearch{height:44px;min-width:0;grid-area:auto;background:#e8eae7}
.topnav .hsearch:focus-within{background:#fff;box-shadow:0 2px 12px #171c1712}
.topnav .hsearch input{font-size:15px;min-width:0}
.topnav .search-shortcut{flex:0 0 auto;padding:4px 6px;border:1px solid #cdd2ca;border-radius:5px;color:var(--ink2);font:12px/1.2 var(--sans);white-space:nowrap;user-select:none}
.topnav .nav-right{grid-area:auto;gap:4px}
.topnav #ask-nav{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;padding:10px}
.topnav #ask-nav>svg{width:16px;height:16px;flex-shrink:0}
.topnav #add-nav{display:none}
.topnav #account{display:grid;width:32px;height:32px;min-height:32px;margin-left:8px;font-size:11px}
.topnav #bell{display:grid}
.meld-search-ui{padding:20px 32px 96px}
.ms-top{flex-direction:row;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.ms-segment{padding:3px;background:#e8eae7}
.ms-segment button{color:var(--ink2);font-size:14px;min-height:34px;padding:0 14px}
.ms-segment button span{color:var(--ink3);font-size:12px}
.ms-segment button.is-active{box-shadow:0 1px 3px #19261914}
.ms-scope{gap:6px;font-size:13px;line-height:1.3;min-height:36px}
.ms-scope-link{padding:0 3px;gap:6px;text-decoration:none;min-height:36px}
.ms-scope-link[data-open-sources]>span:last-child{text-decoration:underline;text-decoration-color:#afb6af;text-underline-offset:4px}
.ms-scope-link[data-open-filters]{gap:6px;padding:0 9px;margin-left:6px;border-radius:var(--pill)}
.ms-scope-link[data-open-filters]:hover{background:var(--fill)}
.ms-scope-link svg{width:15px;height:15px}
.ms-favicons{padding-inline-start:4px}
.ms-favicons .ms-source-icon{width:17px;height:17px;outline-width:2px}
.ms-filter-chip{font-size:13px;min-height:32px;background:#e5e8e4}
.ms-filter-chip svg{width:12px;height:12px}
.ms-reset{font-size:12px;color:var(--ink2)}
.ms-workspace-strip{margin-top:28px}
.ms-section-heading{margin-bottom:12px;align-items:center}
.ms-section-heading h2,.ms-results-heading h2{font-family:var(--serif);font-size:21px;color:var(--ink)}
.ms-section-heading button{font-size:13px;min-height:32px;color:var(--ink2)}
.ms-collection-row{gap:16px;padding:0 0 8px}
.ms-workspace-strip .ms-collection-card{flex:0 0 220px;min-width:0;max-width:none}
.ms-workspace-strip .ms-collection-collage{height:116px;gap:3px;border-radius:10px}
.ms-collection-card:hover .ms-collection-collage{transform:none;filter:brightness(.97)}
.ms-collection-name{font-size:15px;margin-top:8px;line-height:1.3}
.ms-collection-card small{font-size:12px;color:var(--ink3);line-height:1.4;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-results{margin-top:28px}
.ms-results-heading{margin-bottom:16px}
.ms-results-heading h1{font:32px/1.2 var(--serif)}
.reference-grid{column-gap:20px}
.reference-grid .card{display:block;margin-bottom:22px}
.reference-grid .card .media{border-radius:12px;background:#e6e9e4}
.reference-grid .card .cap{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0;font-size:12px;line-height:1.45;padding:9px 2px 0;color:var(--ink2);white-space:normal;overflow:visible}
.reference-grid .card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-width:0}
.reference-grid .card-activity{display:flex;align-items:center;gap:8px;flex-shrink:0;padding-top:1px;font-size:11px;line-height:16px;font-variant-numeric:tabular-nums}
.reference-grid .card-activity-count{display:inline-flex;align-items:center;gap:3px}
.reference-grid .card-activity-count svg{width:14px;height:14px}
.reference-grid .card-source{display:block;max-width:100%;margin:2px 0 0;padding:0 2px;color:var(--ink3);font-size:11px;line-height:1.5;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-grid .card-source:hover{text-decoration:underline;text-underline-offset:3px}
.reference-grid .card .media img{min-height:120px}
.reference-grid .card .save-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;box-shadow:0 2px 8px #0002}
.reference-grid .card .save-btn svg{width:15px;height:15px}
.ms-popover{box-shadow:0 14px 48px #14221426;border:0;border-radius:16px;max-height:var(--ms-panel-space,calc(100dvh - 32px))}
.ms-filters-popover{width:min(420px,calc(100vw - 32px));padding:0;display:flex;flex-direction:column;overflow:hidden}
.ms-filters-popover .ms-panel-body{min-height:0;flex:1 1 auto;max-height:none;overflow-y:auto;overflow-x:hidden;padding:0 24px 24px;scrollbar-gutter:stable;overscroll-behavior:contain}
.ms-facets{display:grid;grid-template-columns:1fr;gap:24px}
.ms-facets section{display:block;padding:0;border:0}
.ms-facets h3{font-size:13px;font-weight:500;margin:0 0 10px;color:var(--ink2);text-transform:none;letter-spacing:0}
.ms-filter-head{flex:0 0 auto;align-items:center;margin:0;padding:20px 24px 16px}
.ms-filter-head h2{font:24px/1.2 var(--serif)}
.ms-facet-chip{font-size:13px;line-height:1.4;min-height:40px;padding:10px 14px;border:0;background:#eff1ed;color:var(--ink2)}
.ms-facet-chip.is-active{background:#e3e3ff;color:#0000ba}
.ms-facet-chip.is-active:hover{background:#dadaff}
.ms-facet-chips{gap:8px}
.ms-hues{gap:12px;margin-bottom:12px}
.ms-hue{width:26px;height:26px;min-width:26px;min-height:26px;box-shadow:none;border:3px solid white;outline:1px solid transparent;outline-offset:2px}
.ms-hue::before{inset:0;box-shadow:none}.ms-hue.is-active{outline-color:var(--ink);box-shadow:none}
.ms-hue-any{background:conic-gradient(#b44636,#d3a82b,#458459,#547dad,#8256a3,#b44636)}
.ms-person-picker{position:relative;z-index:1}
.ms-person-picker summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:#eff1ed;border-radius:10px;cursor:pointer;font-size:14px;line-height:1.4;min-height:48px}
.ms-person-picker summary::-webkit-details-marker{display:none}
.ms-person-picker[open] summary{border-radius:10px 10px 0 0}
.ms-person-picker-body{padding:0 12px 12px;background:#eff1ed;border-radius:0 0 10px 10px}
.ms-person-search{display:flex;align-items:center;gap:8px;background:#fff;border-radius:8px;padding:10px 12px}
.ms-person-search input{width:100%;min-width:0;font-size:14px}
.ms-person-search svg{width:16px;height:16px;color:var(--ink3)}
.ms-person-filters{display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;margin-top:8px;max-height:192px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.ms-person-filter{display:flex;align-items:center;gap:10px;width:100%;min-width:0;border-radius:8px;padding:10px 12px;min-height:48px;flex:none;background:none;border:0}
.ms-person-filter>span:not(.avatar){flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
.ms-person-filter .avatar{width:26px;height:26px;margin:0;font-size:10px}
.ms-person-filter.is-active{background:#e0e2de;color:var(--ink)}
.ms-person-filter span{font-size:13px}
.ms-person-filter svg{width:16px;height:16px;flex-shrink:0}
.ms-no-people{padding:12px;font-size:13px;color:var(--ink2)}
.ms-filter-footer{position:static;flex:0 0 auto;bottom:auto;margin:0;padding:16px 24px;background:var(--surface);backdrop-filter:none;border-top:1px solid var(--line);box-shadow:none}
.ms-filter-footer .btn{min-height:44px;font-size:14px;padding-inline:18px}
.ms-sources-popover{width:min(860px,calc(100vw - 32px));padding:0}
.ms-source-picker{grid-template-columns:300px minmax(0,1fr);gap:0;height:min(520px,var(--ms-panel-space,calc(100dvh - 180px)));min-height:0;max-height:none}
.ms-source-left{padding:20px 16px;background:#f6f7f4;gap:2px;min-width:0;scrollbar-gutter:stable}
/* Scroll the sidebar; never compress its rows around wrapped labels. */
.ms-source-left>*{flex-shrink:0}
.ms-source-left h3{margin:12px 0 4px;padding-inline:16px;line-height:1.4}
.ms-source-right{padding:24px;min-width:0;scrollbar-gutter:stable}
.ms-source-primary{display:grid;grid-template-columns:16px 18px minmax(0,1fr) auto;min-height:72px;padding:16px;gap:8px}
.ms-source-primary small,.ms-category small{color:var(--ink3)}
.ms-source-primary b{font-size:14px}
.ms-source-primary small{font-size:12px;margin-top:3px}
.ms-source-primary em{flex-shrink:0;margin-left:4px;line-height:1.4}
.ms-source-primary>span:last-of-type{overflow-wrap:anywhere}
.ms-category{padding:16px;border-radius:8px;min-height:68px}
.ms-category>span{padding-inline-start:0}
.ms-category b{font-size:13px}
.ms-category small{font-size:12px;margin-top:3px}
.ms-category.is-current{background:#e6e9e3;color:var(--ink)}
.ms-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ms-archive{min-height:48px;padding:12px;gap:8px;border-radius:8px;font-size:13px;line-height:1.4;border:0}
.ms-archive>span:not(.ms-check):not(.ms-source-icon){min-width:0;white-space:normal;overflow-wrap:anywhere}
.ms-archive.is-quiet{opacity:1}
.ms-archive.is-active{background:#eff1eb}
.ms-check{width:16px;height:16px;min-width:16px;border-radius:4px}
.ms-source-actions{font-size:12px;margin:16px 0;padding:0}
.ms-source-search{height:48px;padding-inline:16px;flex-shrink:0}
#meld-search-suggestions{padding:12px;border-radius:16px;background:#fff;box-shadow:0 8px 28px #14221420}
.ms-suggestion-box{border:0;border-radius:0;background:transparent;box-shadow:none}
.ms-suggestion-jumps:empty{display:none}
.ms-suggestion-terms{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0 10px}
.ms-suggestion-terms>span{font-size:12px;color:var(--ink3);align-self:center;margin-right:4px}
.ms-suggestion-terms button{background:#eff1ed;border-radius:var(--pill);padding:6px 11px;font-size:13px}
.ms-suggestion-box h3{font-size:12px;color:var(--ink3);text-transform:none;letter-spacing:0}
.ms-suggestion-refs button{border-radius:8px}
.ms-empty{padding:60px 16px}
.ms-empty h2{font:28px/1.3 var(--serif)}
/* Collections */
#app-main .cu-page{max-width:none;padding:24px 32px 112px}
.cu-page-head{margin-bottom:22px}
.cu-page h1{font:38px/1.15 var(--serif);letter-spacing:-.02em}
.cu-saved-shortcut{margin-bottom:28px}
.cu-saved-shortcut>a{display:flex;align-items:center;gap:14px;padding:16px 20px;background:#e9ece5;border-radius:12px;width:100%}
.cu-saved-shortcut>a:hover{background:#e2e6dd}
.cu-saved-symbol{display:grid;place-items:center;width:38px;height:42px;background:#f4f6f0;border-radius:8px;color:var(--ink)}
.cu-saved-symbol,.cu-saved-count{flex-shrink:0}
.cu-saved-label{min-width:0}
.cu-saved-stack{position:relative;width:72px;height:44px;flex:0 0 72px}
.cu-saved-preview{position:absolute;inset:0 auto auto 16px;display:grid;place-items:center;width:38px;height:44px;border-radius:5px;background:#f9faf7;box-shadow:0 2px 5px #17201226;overflow:hidden;transform-origin:50% 80%;transition:transform 240ms cubic-bezier(.16,1,.3,1)}
.cu-saved-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cu-saved-preview>svg{width:16px;height:16px;color:var(--ink3)}
.cu-saved-preview:nth-child(1){z-index:3;transform:translate(10px,1px) rotate(8deg)}
.cu-saved-preview:nth-child(2){z-index:2;transform:translate(-2px,-2px) rotate(-4deg)}
.cu-saved-preview:nth-child(3){z-index:1;transform:translate(-12px,1px) rotate(-13deg)}
.cu-saved-preview:only-child{transform:none}
@media(min-width:761px) and (prefers-reduced-motion:no-preference){
 .cu-saved-shortcut>a:focus-visible .cu-saved-preview:nth-child(1){transform:translate(17px,0) rotate(15deg)}
 .cu-saved-shortcut>a:focus-visible .cu-saved-preview:nth-child(2){transform:translate(0,-4px) rotate(0)}
 .cu-saved-shortcut>a:focus-visible .cu-saved-preview:nth-child(3){transform:translate(-18px,0) rotate(-19deg)}
 @media(hover:hover) and (pointer:fine){
  .cu-saved-shortcut>a:hover .cu-saved-preview:nth-child(1){transform:translate(17px,0) rotate(15deg)}
  .cu-saved-shortcut>a:hover .cu-saved-preview:nth-child(2){transform:translate(0,-4px) rotate(0)}
  .cu-saved-shortcut>a:hover .cu-saved-preview:nth-child(3){transform:translate(-18px,0) rotate(-19deg)}
 }
}
.cu-saved-shortcut strong{display:block;font-size:16px;font-weight:500}
.cu-saved-shortcut small{display:block;font-size:13px;color:var(--ink2);margin-top:2px}
.cu-saved-count{font-size:13px;margin-left:auto;color:var(--ink2)}
.cu-saved-inline-count{display:none}
.cu-index-tools{margin:0 0 24px;gap:16px;align-items:center}
.cu-index-tools .cu-search{margin-left:auto;max-width:270px;min-width:170px}
.cu-index-tools [data-cu-result-count]{font-size:12px;color:var(--ink3);white-space:nowrap}
.cu-collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}
.cu-collage{height:190px;border-radius:12px;gap:3px}
.cu-card-title{font-size:18px;line-height:1.3;margin-top:12px}
.cu-card-meta{font-size:13px;color:var(--ink2);margin-top:4px}
.cu-audience{font-size:12px;color:var(--ink3);margin-top:3px}
.cu-detail-head{align-items:center;margin-top:16px;gap:24px}
.cu-detail-head h1{margin-bottom:12px}
.cu-detail-meta{font-size:14px;margin:0;gap:9px}
.cu-detail-meta .avatar{width:24px;height:24px;margin:0}
.cu-detail-actions{gap:8px;flex-shrink:0}
.cu-detail-actions .btn{height:40px;font-size:14px;padding:0 15px}
.collection-copy-pop:not(.handoff-mobile-overlay){width:264px;padding:0;border-radius:14px;box-shadow:0 10px 36px #14221426}
.collection-copy-pop .action-list{gap:2px;padding:6px}
.collection-copy-pop .action-list button{min-height:40px;border-radius:8px;padding:9px 12px;font-size:14px;gap:10px}
.collection-copy-pop .action-list button svg{width:17px;height:17px;flex-shrink:0}
.collection-copy-pop [data-collection-copy="ask"]{margin-bottom:5px}
.collection-copy-pop [data-collection-copy="json"]{margin-top:5px}
@media(max-width:760px){
 .collection-copy-pop .action-list{padding:8px 12px 16px}
 .collection-copy-pop .action-list button{min-height:48px;padding:12px 14px;border-radius:12px;font-size:16px;gap:14px}
 .collection-copy-pop .action-list button svg{width:20px;height:20px}
}
.cu-tabs{margin-top:26px;margin-bottom:26px;gap:28px}
.cu-tabs [role=tab]{font-size:15px;padding:12px 0}
.cu-tab-count{margin-left:7px;font-size:12px;color:var(--ink3);font-variant-numeric:tabular-nums}
.cu-takeaway-card{cursor:default}
.cu-takeaway-card:hover{background:var(--fill)}
.cu-takeaway-card h3{font-size:16px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.cu-takeaway-card p{display:block;-webkit-line-clamp:unset;overflow:visible;margin:10px 0 16px}
.cu-takeaway-links{margin-top:auto}
.cu-reading-reference{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;line-height:1.4;color:var(--ink2)}
.cu-reading-reference svg{width:15px;height:15px;flex-shrink:0}
button.cu-reading-reference:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.cu-editorial{display:grid;grid-template-columns:minmax(0,1fr) 310px;column-gap:64px;row-gap:40px;max-width:1120px;padding-top:12px}
.cu-editorial>section{margin:0;padding:0;border:0;min-width:0}
.cu-editorial h2{font:24px/1.3 var(--serif);margin-bottom:16px}
.cu-overview-intro{grid-column:1;max-width:720px}
.cu-editorial .cu-overview-intro h2{font:32px/1.2 var(--serif);max-width:26ch;margin-bottom:16px}
.cu-overview-intro>p{font-size:16px;line-height:1.7;color:var(--ink2);max-width:65ch}
.cu-directions{grid-column:1;grid-row:2/span 2}
.cu-direction{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px;padding:22px 0;border-top:1px solid var(--line)}
.cu-direction h3{font-size:17px;font-weight:500;line-height:1.4;margin-bottom:8px}
.cu-direction p{font-size:14px;line-height:1.65;color:var(--ink2)}
.cu-example-list{display:flex;flex-direction:column;gap:12px}
.cu-example{display:grid;grid-template-columns:64px minmax(0,1fr) 16px;align-items:center;gap:10px;text-align:left;font-size:13px;line-height:1.4;border-radius:8px}
.cu-example:hover{color:var(--blue)}
.cu-example-image{display:block;overflow:hidden;border-radius:8px;height:56px;background:#e6e9e4}
.cu-example img{width:100%;height:100%;object-fit:cover}
.cu-example svg{width:15px}
.cu-overview-notes{grid-column:2;grid-row:1/span 2}
.cu-overview-notes article{padding:16px 0 20px;border-top:1px solid var(--line)}
.cu-overview-notes blockquote{font:18px/1.5 var(--serif);margin:0 0 14px;color:var(--ink)}
.cu-overview-notes article>button{display:flex;gap:8px;align-items:center;text-align:left;width:100%;font-size:12px;color:var(--ink2)}
.cu-overview-notes .avatar{width:26px;height:26px;margin:0;font-size:10px}
.cu-overview-notes small{display:block;font-size:11px;color:var(--ink3);margin-top:2px}
.cu-overview-notes article>button>svg{width:14px;margin-left:auto}
.cu-overview-next{grid-column:2;font-size:14px;line-height:1.6;color:var(--ink2)}
.cu-overview-next h2{font-size:20px}
/* Media stays foremost, with further controls and metadata on demand. */
.mv-view-controls{position:relative;z-index:8;color:inherit}
.mv-view-controls>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 12px;min-height:36px;border-radius:var(--pill);cursor:pointer;background:var(--fill);font-size:14px}
.mv-view-controls summary::-webkit-details-marker{display:none}
.mv-view-controls>summary svg{width:14px;height:14px}
.mv-view-controls>summary svg:first-child{width:18px;height:18px}
.mv-view-controls>.mv-media-tools{position:absolute;top:calc(100% + 8px);right:0;white-space:nowrap;flex-wrap:nowrap!important;background:#fff;color:var(--ink);border-radius:12px;padding:8px;box-shadow:0 8px 28px #0003}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools button{background:#f0f2ec;color:#1f1f1f}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools output{color:#1f1f1f}
.mv-fullscreen-layer .mv-view-controls>.mv-media-tools{left:0;right:auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:254px;max-width:calc(100vw - 88px)}
.mv-view-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mv-view-zoom{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px}
.mv-view-zoom output{text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding-inline:10px;font-size:13px}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools button svg{width:16px;height:16px;flex-shrink:0}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools [data-image-mode][aria-pressed=true]{background:#e3e3ff;color:#0000ba}
.mv-fullscreen-layer .mv-media-topbar>.mv-expand-media{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0}
.mv-expand-media svg{width:18px;height:18px}
.mv-fullscreen-layer .mv-media-topbar>.mv-annotations-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding-inline:12px;font-variant-numeric:tabular-nums}
.mv-annotations-toggle svg{width:17px;height:17px}
.mv-annotations-toggle[aria-pressed=false]{color:var(--ink3)}.cu-detail-actions [data-cu-copy]>svg{width:16px;height:16px;flex-shrink:0}
.up-queue-toolbar [data-up-select-mode],.up-group-actions .up-button,.up-add-more>summary{display:inline-flex;align-items:center;gap:7px}
.up-queue-toolbar [data-up-select-mode]>svg,.up-group-actions .up-button>svg,.up-add-more>summary>svg{width:16px;height:16px;flex-shrink:0}
@media(max-width:760px){
 .mv-fullscreen-layer .mv-media-topbar>.mv-expand-media,.mv-fullscreen-layer .mv-media-topbar>.mv-annotations-toggle{min-width:44px;min-height:44px;height:44px}
 .mv-fullscreen-layer .mv-media-topbar>.mv-annotations-toggle[aria-pressed=false]{color:#b6bdb3}
 .mv-fullscreen-layer .mv-view-controls .mv-media-tools button{min-height:44px}
}
/* Direct capture */
.mc-corner .mc-fab{width:56px;height:56px;background:var(--blue);color:#fff;box-shadow:0 6px 20px #0000a329}
.mc-corner .mc-fab:hover{background:var(--blue-deep)}
.mc-corner .mc-fab svg{width:25px;height:25px}
.creation-flow .up-section-head p{font-size:14px;line-height:1.5;color:var(--ink2)}
.up-extra-fields{grid-column:1/-1}
.up-extra-fields>summary{font-size:13px;color:var(--ink2);min-height:40px;cursor:pointer;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.up-extra-fields>.up-detail-fields{padding-top:10px}
.up-destination-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;background:#f1f3ee;border:1px solid #dce0d9;border-radius:10px;padding:10px 12px;font-size:14px;text-align:left}
.up-destination-list button span{flex:1;text-align:left}
.up-destination-list [hidden]{display:none!important}
/* Ask and shared dialog finish */
.ask-layer .meld-dialog{width:480px;max-width:100%;box-shadow:-12px 0 40px #0001}
.ask-layer .dialog-header{padding:24px 24px 12px}
.ask-layer .dialog-header h2{font-size:28px}
.ask-layer .dialog-body{padding:12px 24px 24px}
.ask-welcome{margin:auto 0;padding:42px 0 36px;max-width:340px}
.ask-welcome h2{font:32px/1.18 var(--serif);letter-spacing:-.02em;margin-bottom:16px}
.ask-welcome p{font-size:15px;line-height:1.6;color:var(--ink2);max-width:34ch}
.ask-chat:has(.ask-welcome){display:flex;align-items:center}
.ask-suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:18px}
.ask-suggestions button{background:#e9ece5;border-radius:var(--pill);padding:9px 13px;font-size:13px;text-align:left}
.handoff-ask .ask-form{background:transparent;padding:0}
.ask-form textarea{font-size:15px;line-height:1.5;padding:0;min-height:60px}
.ask-user{background:#e9ece5;padding:12px 16px;border-radius:14px;line-height:1.5}
.ask-answer{font-size:14px;line-height:1.7}
.ask-answer>p{margin-top:16px}
.ask-result-grid{gap:12px}
.ask-result-grid img{border-radius:8px;aspect-ratio:4/3;object-fit:cover}
.ask-result-grid button{font-size:12px;line-height:1.4;text-align:left}
.meld-dialog:not(.mv-dialog) .dialog-header h2{letter-spacing:-.02em}
@media(min-width:761px) and (max-width:1100px){
 .topnav #ask-nav{font-size:13px;padding-inline:4px}.topnav #bell{width:32px}
 .meld-search-ui,#app-main .cu-page{padding-inline:24px}
 .ms-top{gap:12px}.ms-scope{font-size:12px}
 .cu-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cu-collage{height:165px}
 .cu-detail-head{align-items:flex-start;flex-wrap:wrap}.cu-detail-actions{flex-wrap:wrap}
 .cu-editorial{gap:32px;grid-template-columns:minmax(0,1fr) 250px}
 .cu-direction{grid-template-columns:1fr}.cu-example-list{flex-direction:row;flex-wrap:wrap}.cu-example{max-width:240px}
}
@media(max-width:760px){
 body>.topnav{height:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 48px;grid-template-areas:'brand actions' 'search search';padding:8px 16px 10px;gap:8px 12px}
 .topnav .nav-left{display:flex;grid-area:brand;height:44px;gap:0}.topnav .logo{font-size:25px;min-height:44px;grid-area:auto}
 .topnav .nav-tabs{display:none}.topnav .nav-right{grid-area:actions;height:44px}
 .topnav .nav-right #ask-nav{display:inline-flex;font-size:13px;padding:0 8px;min-height:44px}.topnav #account{width:36px;height:36px;min-height:36px;min-width:36px;margin-left:6px;font-size:12px}
 .topnav #bell{width:44px;height:44px;min-width:44px}
 .topnav .hsearch{grid-area:search;height:48px;min-height:48px;margin:0;padding:0 14px}
 .topnav .hsearch input{font-size:16px;min-height:48px}
 .topnav .search-shortcut{display:none}
 .meld-search-ui{padding:8px 16px 100px;min-height:0}
 .ms-top{flex-direction:column;align-items:stretch;gap:8px}
 .ms-types{display:block}.ms-segment{display:flex;width:100%;padding:3px;gap:1px}
 .ms-segment button{flex:1;flex-direction:row;justify-content:center;min-height:40px;gap:5px;padding:0 8px;font-size:14px;line-height:1.4}
 .ms-segment button span{font-size:11px}
 .ms-scope{gap:2px 4px;font-size:12px;min-height:44px}
 .ms-scope-link{min-height:44px;gap:4px;padding-inline:1px}
 .ms-scope-link[data-open-filters]{margin-left:auto;gap:5px;padding:0 4px;min-height:44px;font-size:12px}
 .ms-scope-link[data-open-filters] svg{width:14px}
 .ms-favicons .ms-source-icon{width:15px;height:15px;margin-inline-start:-5px}
 .ms-favicons .ms-source-icon:nth-child(n+4){display:none}
 .ms-filter-chip{min-height:36px;margin-right:3px;padding:0 9px}.ms-reset{min-height:44px}
 .ms-workspace-strip{margin-top:16px}
 .ms-section-heading{margin-bottom:8px;gap:8px}
 .ms-section-heading h2,.ms-results-heading h2{font-size:20px}
 .ms-section-heading button{font-size:12px;min-height:44px}
 .ms-collection-row{gap:12px;padding:0 0 4px;margin-right:-16px;scroll-padding-left:16px}
 .ms-workspace-strip .ms-collection-card{flex:0 0 172px;padding-right:0}
 .ms-workspace-strip .ms-collection-collage{height:92px;border-radius:9px}
 .ms-collection-name{font-size:14px;margin-top:7px}
 .ms-collection-card small{font-size:11px;margin-top:2px;line-height:1.35}
 .ms-results{margin-top:24px}.ms-results-heading{margin-bottom:14px}
 .reference-grid{column-count:2;column-gap:12px}.reference-grid .card{margin-bottom:18px}
 .reference-grid .card .media{border-radius:10px}.reference-grid .card .cap{font-size:12px;padding-top:6px}
 .reference-grid .card .media img{min-height:95px}
 .ms-mobile-sheet .ms-sheet-header{flex-basis:28px;min-height:28px}.ms-mobile-sheet .ms-sheet-handle{height:28px;min-height:28px}
 .ms-mobile-sheet .ms-filter-head{padding:0 16px 16px;min-height:48px}
 .ms-mobile-sheet .ms-filter-head h2{font-size:25px}
 .ms-mobile-sheet .ms-panel-body{max-height:none;padding:0 16px 20px;scrollbar-gutter:auto}
 .ms-mobile-sheet .ms-facets{gap:24px}
 .ms-mobile-sheet .ms-facets section{padding:0}
 .ms-mobile-sheet .ms-facets h3{font-size:14px;margin-bottom:10px}
 .ms-mobile-sheet .ms-facet-chip{font-size:14px;min-height:44px;padding:9px 13px}
 .ms-person-picker summary{font-size:16px;min-height:48px}
 .ms-person-search input{font-size:16px;min-height:28px}
 .ms-person-filter{min-height:44px}.ms-person-filter span{font-size:14px}
 .ms-hues{gap:10px}.ms-hue{width:30px;height:30px;min-width:30px;min-height:30px;border-width:3px;position:relative}
 .ms-mobile-sheet .ms-hue{width:36px;height:36px;min-width:36px;min-height:36px}.ms-mobile-sheet .ms-hue::before{inset:3px}.ms-hues{gap:8px}.ms-hue::after{content:'';position:absolute;inset:-4px;border-radius:50%}
 .ms-mobile-sheet .ms-source-picker{height:auto;min-height:0;max-height:none;grid-template-columns:1fr}
 .ms-mobile-sheet .ms-source-left{padding:0 0 8px;background:white;scrollbar-gutter:auto}
 .ms-mobile-sheet .ms-source-right{padding:0;scrollbar-gutter:auto}
 .ms-mobile-sheet .ms-source-primary{padding:16px;min-height:64px;margin-bottom:0}
 .ms-mobile-sheet .ms-archive-grid{grid-template-columns:1fr}
 .ms-mobile-sheet .ms-archive{font-size:13px;min-height:48px}
 .ms-mobile-sheet .ms-filter-footer{padding:16px 16px calc(16px + env(safe-area-inset-bottom));margin:0}.ms-mobile-sheet .ms-filter-footer .btn{min-height:44px;font-size:15px}
 #app-main .cu-page{padding:20px 16px 112px}.cu-page-head{gap:12px;align-items:center;margin-bottom:20px}
 .cu-page h1{font-size:32px}.cu-page-head .btn{min-height:44px;padding:0 12px;font-size:13px;gap:6px}
 .cu-saved-shortcut{margin-bottom:24px}.cu-saved-shortcut>a{padding:14px 12px;gap:10px}
 .cu-saved-symbol{width:32px;height:40px}.cu-saved-shortcut strong{font-size:16px}
 .cu-saved-stack{width:52px;height:40px;flex-basis:52px}
 .cu-saved-preview{left:10px;width:32px;height:40px}
 .cu-saved-preview:nth-child(1){transform:translate(7px,1px) rotate(8deg)}
 .cu-saved-preview:nth-child(2){transform:translate(-1px,-1px) rotate(-4deg)}
 .cu-saved-preview:nth-child(3){transform:translate(-7px,1px) rotate(-13deg)}
 .cu-saved-preview:only-child{transform:none}
 .cu-saved-label{flex:1}
 .cu-saved-shortcut strong{display:flex;align-items:baseline;gap:8px}
 .cu-saved-inline-count{display:inline;font-size:14px;font-weight:400;color:var(--ink2);white-space:nowrap}
 .cu-saved-shortcut small{font-size:12px;max-width:none}
 .cu-saved-count{display:none}
 .cu-saved-shortcut>a>svg{width:14px;flex-shrink:0}
 .cu-index-tools{flex-direction:row;gap:12px;flex-wrap:wrap;margin-bottom:20px}
 .cu-index-tools .seg{flex:0 0 auto}.cu-index-tools .seg button{min-height:44px;font-size:14px;padding-inline:14px}
 .cu-index-tools .cu-search{flex:1 0 100%;order:3;width:100%;max-width:none;min-height:44px;margin:0}
 .cu-index-tools .cu-search input{font-size:16px}
 .cu-index-tools [data-cu-result-count]{margin-left:auto}
 .cu-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 .cu-collage{height:122px;border-radius:10px;gap:2px}
 .cu-card-title{font-size:17px;margin-top:9px}.cu-card-meta{font-size:12px;line-height:1.5}.cu-audience{font-size:11px}
 .cu-back{min-height:44px;margin-bottom:6px;font-size:14px}
 .cu-detail-head{margin-top:4px;gap:18px;align-items:stretch;flex-direction:column}
 .cu-detail-head h1{margin-bottom:10px}.cu-detail-meta{font-size:13px!important}
 .cu-detail-actions{display:flex;flex-wrap:wrap;row-gap:4px;gap:8px;justify-content:flex-start}
 .cu-detail-actions .btn{min-height:44px;font-size:13px;padding:0 13px}
 .cu-detail-actions [data-cu-add]{order:3}.cu-detail-actions .cu-icon-button{order:4;min-height:44px;width:44px}
 .cu-tabs{margin-top:20px;margin-bottom:22px;gap:28px}.cu-tabs [role=tab]{min-height:48px;font-size:15px;padding:10px 0}
 .cu-editorial{display:flex;flex-direction:column;gap:32px;padding-top:0}
 .cu-editorial .cu-overview-intro h2{font-size:29px;max-width:24ch}
 .cu-overview-intro>p{font-size:15px;line-height:1.65}
 .cu-editorial h2{font-size:23px}.cu-direction{grid-template-columns:1fr;gap:16px;padding:20px 0}
 .cu-direction h3{font-size:17px}.cu-direction p{font-size:15px}
 .cu-example-list{flex-direction:column;gap:12px}.cu-example{grid-template-columns:72px minmax(0,1fr) 16px;font-size:14px;min-height:56px}
 .cu-overview-notes blockquote{font-size:19px}.cu-overview-notes article>button{min-height:44px;font-size:13px}
 .cu-overview-notes small{font-size:12px}
 .mv-fullscreen-layer .mv-view-controls>summary{min-height:44px;background:#252725;color:#f5f6f3;font-size:14px}
 .mv-fullscreen-layer .mv-media-topbar{position:relative}
 .mv-fullscreen-layer .mv-view-controls{position:static}
 .mv-fullscreen-layer .mv-view-controls>.mv-media-tools{right:12px;left:auto;max-width:calc(100vw - 24px)}
 .mv-fullscreen-layer .mv-view-controls .mv-media-tools button{min-height:44px}
 .creation-flow .up-section-head p{font-size:14px}.creation-flow .up-section-head h3{font-size:20px}
 .up-destination-picker{font-size:16px;min-height:48px}
 .cu-invite-form{grid-template-columns:minmax(0,1fr) 122px}
 .cu-invite-form>button[type=submit]{background:var(--blue);color:#fff;min-height:44px}
 .creation-flow .up-queue,.creation-flow .up-details,.creation-flow .up-scroll>.up-destination{margin-top:24px}
 .up-extra-fields>summary{font-size:14px;min-height:44px}
 .mc-corner .mc-fab{width:52px;height:52px}
 .ask-layer .dialog-header{padding:12px 16px}.ask-layer .dialog-body{padding:12px 16px 20px}
 .ask-welcome h2{font-size:31px}.ask-welcome p{font-size:16px}
 .ask-suggestions button{min-height:44px;font-size:14px}.ask-form textarea{font-size:16px}
 .ask-answer{font-size:15px}.ask-result-grid button{font-size:13px}
 #mn-nav a{font-size:12px;gap:3px;border-radius:999px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Capture is a visual sequence; file-management controls appear only on request. */
.creation-flow .up-visual-queue{margin-top:0}
.up-queue-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.up-queue-toolbar h3{font:23px/1.3 var(--serif);margin:0}
.up-queue-toolbar h3>span{font:14px/1.4 var(--sans);color:var(--ink2);margin-left:6px}
.creation-flow .up-queue-hint{font:13px/1.5 var(--sans);color:var(--ink2);margin:0 0 16px}
.creation-flow .up-visual-queue .up-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px;align-items:start}
.creation-flow .up-visual-queue .up-item{display:block;min-width:0;min-height:0;padding:0;background:none;box-shadow:none;border-radius:0;position:relative;transition:opacity .15s}
.creation-flow .up-visual-queue .up-preview{display:grid;width:100%;height:auto;aspect-ratio:1;grid-column:auto;grid-row:auto;border:0;border-radius:10px;background:#e8ebe5;box-shadow:none;overflow:hidden;position:relative;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.creation-flow .up-visual-queue .up-preview:active{cursor:grabbing;transform:none}
.creation-flow .up-visual-queue .up-preview img,.creation-flow .up-visual-queue .up-preview video{object-fit:contain;width:100%;height:100%;pointer-events:none}
.creation-flow .up-visual-queue .up-preview:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.up-preview-caption{display:flex;align-items:baseline;gap:6px;font-size:12px;line-height:1.5;margin-top:8px;min-width:0;color:var(--ink2)}
.up-preview-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.up-position{font-variant-numeric:tabular-nums;color:var(--ink2)}
.up-preview-caption .up-set-badge{font-size:10px;background:#e0e5da;color:#333c2e;margin-left:auto;white-space:nowrap}
.creation-flow .up-visual-queue .up-select{display:block;width:100%;height:auto;position:relative}
.creation-flow .up-visual-queue .up-select .up-preview{pointer-events:none;touch-action:pan-y;cursor:pointer}
.creation-flow .up-visual-queue .up-select input{position:absolute;z-index:2;top:8px;left:8px;width:24px;height:24px;border-radius:50%;border-color:#72776e}
.creation-flow .up-visual-queue .up-select input:checked{background:var(--blue);border-color:var(--blue)}
.creation-flow .up-visual-queue .is-selected .up-preview{outline:2px solid var(--blue);outline-offset:2px}
.creation-flow .up-visual-queue .up-group-actions{margin-top:16px;justify-content:flex-start;gap:8px}
.creation-flow .up-visual-queue .up-group-actions>span{margin-right:auto;color:var(--ink2);font-size:13px}
.up-item-options{display:flex;flex-direction:column;gap:4px;margin-top:8px;background:#fff;border-radius:10px;padding:8px}
.up-item-options label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.up-item-options select{font:inherit;min-width:58px;min-height:40px;background:#f0f2ec;border:0;border-radius:8px;padding:4px}
.up-item-options>.up-button{min-height:40px;justify-content:flex-start;padding:4px}
.up-visual-queue .up-error-copy{font-size:13px;line-height:1.5;margin-top:8px;color:#9b251d}
.up-visual-queue .up-item-error .up-preview{outline:1px solid #9b251d}
.creation-flow .up-add-more{margin:16px 0 0}
.creation-flow .up-add-more>summary{display:flex;align-items:center;min-height:44px;list-style:none;font-size:14px;cursor:pointer;gap:8px;width:max-content;color:var(--ink2)}
.creation-flow .up-add-more[open]>summary>svg{transform:rotate(45deg)}
.creation-flow .up-add-more>summary::-webkit-details-marker{display:none}
.creation-flow .up-add-more>.up-source{padding-top:12px}
.up-drag-ghost{position:fixed!important;z-index:10000;pointer-events:none!important;margin:0!important;padding:0!important;display:block!important;box-shadow:none!important;background:none!important;opacity:.96!important;transform:rotate(2deg)}
.up-drag-ghost .up-preview{width:100%;height:auto;aspect-ratio:1;border:0;border-radius:10px;overflow:hidden;display:block;box-shadow:0 10px 24px #0003}
.up-drag-ghost .up-preview img,.up-drag-ghost .up-preview video{width:100%;height:100%;object-fit:contain;pointer-events:none}
.up-drag-ghost .up-item-options{display:none}
@media(max-width:760px){
 .creation-flow .up-visual-queue{margin-top:0}
 .creation-flow .up-visual-queue .up-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
 .creation-flow .up-visual-queue .up-queue-toolbar .up-button{min-height:44px;font-size:14px}
 .creation-flow .up-queue-hint{font-size:14px}
 .creation-flow .up-item-options select{font-size:16px;min-height:44px}
 .creation-flow .up-item-options>.up-button{min-height:44px}
 .creation-flow .up-visual-queue .up-group-actions .up-button{font-size:14px;min-height:44px;padding-inline:12px}
 .creation-flow .up-add-more>summary{font-size:16px}
}
.mv-annotation-tools{display:flex;justify-content:center;flex:0 0 auto;padding:4px 24px 20px}
.mv-annotation-tools .mv-annotate{margin-inline:0;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;background:#fff;border:1px solid #dce0d7;font-size:14px;color:var(--ink)}
.mv-annotation-tools .mv-annotate:hover{background:#eaede6}
.mv-annotation-tools .mv-annotate.is-active{background:#1f1f1f;border-color:#1f1f1f;color:#fff}
.mv-annotation-tools .mv-annotate svg{flex:none}
.mv-fullscreen-layer .mv-annotate-help{flex-shrink:0;margin:0;padding:8px 16px;text-align:center}
@media(min-width:761px){
 .mv-fullscreen-layer .mv-stage-image{container-type:size}
 .mv-fullscreen-layer .mv-image-frame.mv-fit{display:inline-grid;max-height:100%;max-width:100%;min-height:0}
 .mv-fullscreen-layer .mv-viewer .mv-image-frame.mv-fit img{max-height:100cqh;max-width:100cqw}
}
@media(max-width:760px){
 .mv-fullscreen-layer .mv-annotation-tools{padding:0 16px 16px;background:#0a0a0a}
 .mv-fullscreen-layer .mv-annotation-tools .mv-annotate{background:#252822;color:#eff3e8;border-color:#464e3c}
 .mv-fullscreen-layer .mv-annotation-tools .mv-annotate.is-active{background:#eff3e8;color:#20251a}
 .mv-fullscreen-layer .mv-media-topbar{flex-wrap:nowrap;gap:6px}
 .mv-fullscreen-layer .mv-media-topbar .mv-annotations-toggle{font-size:12px;padding-inline:10px}
}

.mv-stage.is-annotating .mv-pin-capture{z-index:4}
/* Only the content region scrolls; focusing a transformed phone sheet must not scroll its canvas. */
@media(max-width:760px){
 .mv-fullscreen-layer .mv-viewer,.mv-fullscreen-layer .mv-details{overflow:clip}
}
@media(min-width:761px){
 .mv-fullscreen-layer .mv-media-pane{display:flex;flex-direction:column;height:100%}
 .mv-fullscreen-layer .mv-stage{flex:1;min-height:0}
 .mv-fullscreen-layer .mv-media-topbar,.mv-fullscreen-layer .mv-thumbs{flex:0 0 auto}
 .mv-annotation-tools{align-items:center}
}

/* Capture: one composer, with media and the user's note leading. */
@media(min-width:761px){.mc-corner .mc-fab{width:auto;min-width:150px;height:52px}}
.creation-flow.creation-a .meld-dialog{width:600px;max-width:100%;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden;border-radius:16px}
.creation-flow.creation-a .dialog-header{flex:none;padding:22px 24px 16px;align-items:center}
.creation-flow.creation-a .dialog-header h2{font:26px/1.2 var(--serif)}
.creation-flow.creation-a .dialog-body{padding:0;min-height:0;display:flex;overflow:hidden}
.creation-flow.creation-a .up-flow{width:100%;max-height:none;min-height:0;background:var(--surface)}
.creation-flow.creation-a .up-scroll{padding:0 24px 24px;min-height:0;overflow-y:auto;scrollbar-gutter:auto}
.up-identity{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.up-identity>.avatar{width:36px;height:36px;flex:0 0 36px}
.up-identity strong{display:block;font:500 14px/1.4 var(--sans)}
.up-identity-access{display:flex;align-items:center;gap:5px;color:var(--ink2);font-size:12px;line-height:1.5}
.up-identity-access svg{width:13px;height:13px}
.up-identity-access select{font:inherit;background:transparent;border:0;color:inherit;padding:2px 16px 2px 0;max-width:100%;cursor:pointer}
.up-identity-access select:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.up-composer-note{display:block;margin-bottom:20px}
.up-composer-note textarea{display:block;width:100%;min-height:84px;max-height:180px;resize:vertical;font:16px/1.5 var(--sans);padding:12px 14px;background:var(--bg);border:1px solid transparent;border-radius:10px;color:var(--ink)}
.up-composer-note textarea::placeholder{color:var(--ink2);opacity:1}
.up-composer-note textarea:focus{border-color:var(--ink3);outline:0;background:var(--surface)}
.up-source-tabs{display:flex;gap:6px;margin-bottom:14px}
.up-source-tabs button{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;min-height:38px;font-size:13px;border-radius:999px;color:var(--ink2)}
.up-source-tabs button[aria-pressed=true]{background:var(--fill);color:var(--ink)}
.up-source-tabs button:hover{background:var(--fill)}
.up-source-tabs svg{width:16px;height:16px}
.creation-flow.creation-a .up-add-grid{display:block}
.creation-flow.creation-a .up-source [hidden]{display:none!important}
.creation-flow.creation-a .up-drop{min-height:204px;padding:22px;gap:10px;border:1px dashed #b5bab0;border-radius:12px;background:var(--bg)}
.creation-flow.creation-a .up-drop-active{border-color:var(--blue);background:#eeeeff}
.creation-flow.creation-a .up-drop-icon{width:30px;height:30px;color:var(--ink2)}
.creation-flow.creation-a .up-drop-icon svg{width:26px;height:26px}
.creation-flow.creation-a .up-drop strong{font-size:15px;line-height:1.4;font-weight:400;color:var(--ink)}
.creation-flow.creation-a .up-file-formats{display:block;font:12px/1.5 var(--sans);color:var(--ink2)}
.creation-flow.creation-a .up-link-block{padding:0;background:none;border-radius:0}
.creation-flow.creation-a .up-link-block>label{font:500 13px/1.4 var(--sans);text-transform:none;letter-spacing:0;color:var(--ink);margin:0 0 8px}
.creation-flow.creation-a .up-link-row{height:48px;display:flex;flex-wrap:nowrap;gap:8px;padding:0;box-shadow:none;background:none;border-radius:0}
.creation-flow.creation-a .up-link-field{height:48px;min-width:0;padding:0 12px;box-shadow:inset 0 0 0 1px #c6ccc1;border-radius:10px;background:var(--surface);display:flex;gap:8px}
.creation-flow.creation-a .up-link-field:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.creation-flow.creation-a .up-link-icon{display:grid}
.creation-flow.creation-a .up-link-field input{height:100%;min-height:0;width:100%;font-size:15px;padding:0;box-shadow:none;background:transparent}
.creation-flow.creation-a .up-link-field input:focus-visible{outline:0}
.creation-flow.creation-a .up-link-row .up-button{width:auto;min-height:44px;flex-shrink:0;padding:10px 16px}
.creation-flow.creation-a .up-field-help{font:12px/1.5 var(--sans);color:var(--ink2);margin:8px 0 0}
.creation-flow.creation-a .up-footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:0;flex-shrink:0;gap:12px;padding:16px 24px;background:var(--surface);box-shadow:none;border-top:1px solid var(--line)}
.creation-flow.creation-a .up-footer .up-destination{display:flex;align-items:center;flex:1;min-width:0;gap:8px}
.creation-flow.creation-a .up-destination>.up-field{width:auto;max-width:100%;min-width:0}
.creation-flow.creation-a .up-destination select[hidden],.creation-flow.creation-a .up-destination button[hidden]{display:none!important}
.creation-flow.creation-a .up-destination-picker{min-height:42px;border:0;box-shadow:none;background:var(--fill);border-radius:999px;padding:10px 12px;gap:8px;max-width:290px;min-width:0;width:auto;font:14px/1.4 var(--sans)}
.creation-flow.creation-a .up-destination-picker>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.creation-flow.creation-a .up-destination-picker>svg{flex-shrink:0;width:16px;height:16px}
.creation-flow.creation-a .up-footer-actions{width:auto;margin-left:auto;flex:none}
.creation-flow.creation-a .up-footer-actions>button{min-width:86px;min-height:44px;font-size:14px}
.creation-flow.creation-a button[type=submit]:disabled{background:var(--fill);color:var(--ink3);opacity:1}
.creation-flow.creation-a .up-visual-queue{margin:0}
.creation-flow.creation-a .up-queue-toolbar{margin-bottom:10px}
.creation-flow.creation-a .up-queue-toolbar h3{font:500 14px/1.4 var(--sans)}
.creation-flow.creation-a .up-queue-toolbar h3>span{font-size:13px;margin-left:4px}
.creation-flow.creation-a .up-queue-toolbar .up-button{font-size:13px;min-height:36px;padding:6px 10px}
.creation-flow.creation-a .up-visual-queue .up-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.creation-flow.creation-a .up-list:has(>.up-item:only-child){grid-template-columns:1fr}
.creation-flow.creation-a .up-list>.up-item:only-child .up-preview{aspect-ratio:auto;height:240px;cursor:pointer}
.creation-flow.creation-a .up-visual-queue .up-preview{background:var(--bg)}
.creation-flow.creation-a .up-preview-caption{font-size:12px}
.creation-flow.creation-a .up-queue-hint{font-size:12px;margin:0 0 12px}
.creation-flow.creation-a .up-details{margin:12px 0 0;padding-top:6px;box-shadow:none}
.creation-flow.creation-a .up-details>summary{display:flex;align-items:center;list-style:none;gap:8px;min-height:40px;font-size:13px;color:var(--ink2);cursor:pointer}
.creation-flow.creation-a .up-details>summary svg{width:16px;height:16px}
.creation-flow.creation-a .up-details>summary svg:last-child{margin-left:auto;width:12px;height:12px}
.creation-flow.creation-a .up-details[open]>summary svg:last-child{transform:rotate(180deg)}
.creation-flow.creation-a .up-details>summary::-webkit-details-marker{display:none}
.creation-flow.creation-a .up-detail{border-radius:0;box-shadow:none;border-top:1px solid var(--line)}
.creation-flow.creation-a .up-detail summary{padding:12px 0;grid-template-columns:minmax(0,1fr) auto;min-height:48px}
.creation-flow.creation-a .up-detail summary::after{grid-column:2}
.creation-flow.creation-a .up-detail summary strong{font-size:13px}
.creation-flow.creation-a .up-detail summary small{display:none}
.creation-flow.creation-a .up-fields{padding:8px 0 0;gap:16px}
.creation-flow.creation-a .up-field>span:not(.up-visually-hidden){font-size:13px;text-transform:none;letter-spacing:0;color:var(--ink2)}
.creation-flow.creation-a .up-field input,.creation-flow.creation-a .up-field textarea{font-size:14px}
.creation-flow.creation-a .up-add-more{margin-top:10px}
.creation-flow.creation-a .up-add-more>summary{min-height:40px;font-size:13px}
.creation-flow.creation-a .up-new-collection{margin-top:12px;grid-template-columns:minmax(0,1fr) 120px;width:100%;min-width:0}
.creation-flow.creation-a .up-new-collection-actions{grid-column:1/-1}
.creation-flow.creation-a .up-list>.up-item-link{grid-column:1/-1}
.creation-flow.creation-a .up-list>.up-item-link .up-preview{height:80px;aspect-ratio:auto;display:flex;padding:16px;gap:12px;align-items:center;text-align:left;cursor:pointer}
.up-link-preview-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.up-link-preview-copy strong{font:500 14px/1.4 var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-link-preview-copy small{font:12px/1.4 var(--sans);color:var(--ink2)}
.creation-flow.creation-a .up-item-link .up-preview-caption{display:none}

/* Approved search direction: Discover owns global search. */
.topnav .hsearch[hidden],.cu-index-tools [hidden],.ms-popover [hidden]{display:none!important}
body>.topnav.is-browse-only{grid-template-columns:1fr auto}
#q-main::-webkit-search-cancel-button{display:none}
.cu-index-tools{justify-content:flex-start;flex-wrap:wrap;gap:12px}
.cu-index-tools [data-cu-result-count]{margin-left:auto}
.cu-search-toggle{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--fill);color:var(--ink2)}
.cu-search-toggle:hover,.cu-search-toggle[aria-expanded=true]{background:var(--surface);color:var(--ink)}
.cu-search-toggle svg{width:19px;height:19px}
.cu-index-tools .cu-search{order:3;flex:1 0 100%;max-width:none;min-width:0;margin:0;min-height:44px}

/* Three distinct result rows, on one shared dropdown surface. */
#meld-search-suggestions{padding:16px;scroll-padding:16px;overflow-x:hidden;scrollbar-gutter:stable}
.ms-suggestion-box{gap:0}
.ms-suggestion-box>section{min-width:0;padding:0 0 16px}
.ms-suggestion-box>section+section{padding-top:12px;border-top:1px solid var(--line)}
.ms-suggestion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.ms-suggestion-box section .ms-suggestion-heading h3{padding:0;font:500 13px/1.4 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink2)}
.ms-suggestion-heading>button{font:13px/1.4 var(--sans);min-height:32px;padding:4px 0 4px 12px;color:var(--ink2)}
.ms-suggestion-heading>button:hover{text-decoration:underline;text-underline-offset:3px}
.ms-visual-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.ms-visual-result{display:flex;flex-direction:column;min-width:0;text-align:left;gap:6px;border-radius:8px;background:transparent}
.ms-result-preview{display:flex;align-items:center;justify-content:center;width:100%;height:100px;overflow:hidden;border-radius:8px;background:var(--fill)}
.ms-result-preview>img{width:100%;height:100%;object-fit:contain}
.ms-result-preview>svg,.ms-suggestion-fallback svg{width:24px;height:24px;color:var(--ink3)}
.ms-visual-result>b{font:400 13px/1.4 var(--sans);color:var(--ink);overflow-wrap:anywhere}
.ms-visual-result:hover>b{text-decoration:underline;text-underline-offset:3px}
.ms-visual-result>small{font:12px/1.4 var(--sans);color:var(--ink3);margin-top:-3px;overflow-wrap:anywhere}
.ms-result-collage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px;height:76px}
.ms-result-collage>img{min-height:0;min-width:0;object-fit:cover}
.ms-result-collage>:only-child{grid-column:1/-1;grid-row:1/-1}
.ms-source-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
.ms-source-suggestions>button{display:flex;align-items:center;gap:10px;min-width:0;min-height:52px;padding:8px;border-radius:8px;text-align:left}
.ms-source-suggestions>button:hover{background:var(--fill)}
.ms-source-suggestions>button>.ms-source-icon{width:26px;height:26px;min-width:26px;flex:0 0 26px;border-radius:6px}
.ms-source-suggestions>button>.ms-source-fallback{display:grid;place-items:center}
.ms-source-suggestions>button>span:not(.ms-source-icon){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ms-source-suggestions b{font:400 13px/1.4 var(--sans);color:var(--ink);overflow-wrap:anywhere}
.ms-source-suggestions small{font:12px/1.4 var(--sans);color:var(--ink3);overflow-wrap:anywhere}
.ms-source-suggestions>button>svg{width:16px;height:16px;flex-shrink:0;color:var(--ink3)}
.ms-suggestion-empty{grid-column:1/-1;padding:8px 0;margin:0;font:13px/1.5 var(--sans);color:var(--ink3)}
.ms-universal-search{display:flex;align-items:center;gap:10px;min-height:44px;padding:12px 0 0;border-top:1px solid var(--line);font:14px/1.4 var(--sans);text-align:left}
.ms-universal-search>span{flex:1;min-width:0;overflow-wrap:anywhere}
.ms-universal-search>svg{width:18px;height:18px;flex-shrink:0}

/* Saved by is a step in the existing filter surface, with a draft until Apply. */
.ms-filters-popover{height:min(620px,var(--ms-panel-space,calc(100dvh - 32px)))}
.ms-filters-popover .ms-panel-close{width:auto;min-width:0;height:44px;min-height:44px;padding:0 4px;background:transparent;border-radius:6px;font:14px/1.4 var(--sans);color:var(--ink2)}
.ms-person-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 14px;border-radius:10px;background:var(--fill);font:14px/1.4 var(--sans);text-align:left}
.ms-person-trigger:hover{background:#e4e8e0}
.ms-person-trigger>svg{width:18px;height:18px;flex-shrink:0;color:var(--ink2)}
.ms-panel-back{display:flex;align-items:center;gap:4px;min-height:44px;padding:0 4px 0 0;font:14px/1.4 var(--sans);color:var(--ink2);border-radius:6px}
.ms-panel-back>svg{width:18px;height:18px}
.ms-people-step .ms-filter-head{display:grid;grid-template-columns:1fr auto 1fr;gap:12px}
.ms-people-step .ms-panel-back{justify-self:start}
.ms-people-step .ms-filter-head h2{font-size:22px}
.ms-people-step .ms-panel-body{overflow:hidden;display:flex;padding-bottom:0;scrollbar-gutter:auto}
.ms-people-picker{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:12px}
.ms-people-picker .ms-person-search{flex-shrink:0;min-height:44px;padding:10px 14px;background:var(--fill);border-radius:var(--pill)}
.ms-people-picker .ms-person-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.ms-people-picker .ms-person-search input{font:14px/1.5 var(--sans)}
.ms-people-picker .ms-person-search input:focus-visible{outline:none}
.ms-people-list{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 0 16px;scrollbar-gutter:stable}
.ms-person-choice{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 8px;cursor:pointer;border-radius:8px;font:14px/1.4 var(--sans)}
.ms-person-choice:hover{background:var(--bg)}
.ms-person-choice:has(input:checked){background:#eeeeff}
.ms-person-choice:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:-2px}
.ms-person-choice>.avatar{width:32px;height:32px;flex-shrink:0;margin:0;font-size:12px}
.ms-person-choice>span:not(.avatar){flex:1;min-width:0;overflow-wrap:anywhere}
.ms-person-choice>input{appearance:auto;-webkit-appearance:checkbox;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;accent-color:var(--blue);cursor:pointer}
.ms-no-people{font:14px/1.5 var(--sans);color:var(--ink3);padding:12px 8px}
.ms-filters-popover .ms-filter-footer{position:static;flex:0 0 auto;margin:0;padding:16px 24px;background:var(--surface);backdrop-filter:none;border-top:1px solid var(--line);box-shadow:none}
.ms-filters-popover [data-people-count]{font:13px/1.4 var(--sans);color:var(--ink2)}
@media(max-width:860px){#meld-search-suggestions{left:16px!important;right:16px;width:auto!important}}
@media(max-width:760px){
 body>.topnav.is-browse-only{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px;grid-template-areas:'brand actions'}
 .cu-index-tools{gap:8px;margin-bottom:16px}
 .cu-index-tools .seg button{padding-inline:12px}
 .cu-index-tools [data-cu-result-count]{font-size:12px}
 #meld-search-suggestions{padding:12px;scroll-padding:12px;scrollbar-gutter:auto}
 .ms-suggestion-box>section{padding-bottom:12px}
 .ms-suggestion-box section .ms-suggestion-heading h3,.ms-suggestion-heading>button{font-size:13px}
 .ms-suggestion-heading>button{min-height:44px}
 .ms-suggestion-heading{margin-bottom:2px}
 .ms-visual-row{grid-auto-flow:column;grid-auto-columns:42%;grid-template-columns:none;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 8px;scroll-snap-type:x proximity}
 .ms-visual-result{scroll-snap-align:start}
 .ms-result-preview{height:96px}
 .ms-result-collage{height:72px}
 .ms-source-suggestions{grid-template-columns:1fr}
 .ms-source-suggestions>button{min-height:56px;padding-inline:2px}
 .ms-suggestion-empty{min-width:240px}
 .ms-mobile-sheet.ms-filters-popover{height:min(80dvh,calc(var(--mc-vh,100dvh) - max(24px,env(safe-area-inset-top))));max-height:calc(var(--mc-vh,100dvh) - max(24px,env(safe-area-inset-top)))}
 .ms-mobile-sheet.ms-filters-popover .ms-panel-body{flex:1 1 auto}
 .ms-mobile-sheet.ms-people-step .ms-panel-body{overflow:hidden;padding-bottom:0}
 .ms-mobile-sheet.ms-filters-popover .ms-filter-head{padding:0 16px 12px}
 .ms-mobile-sheet.ms-filters-popover .ms-filter-footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom))}
 .ms-mobile-sheet.ms-filters-popover .ms-panel-close{min-width:0;height:44px;min-height:44px}
 .ms-people-picker .ms-person-search input{font-size:16px}
 .ms-person-choice{min-height:56px;font-size:15px}
}
@media(max-width:760px){
 .creation-flow.creation-a .meld-dialog{max-height:none}
 .creation-flow.creation-a .dialog-header{padding:0 16px;min-height:60px}
 .creation-flow.creation-a .dialog-header h2{font:22px/1.2 var(--serif)}
 .creation-flow.creation-a .dialog-body{flex:1;min-height:0}
 .creation-flow.creation-a .up-flow{height:100%;background:var(--surface)}
 .creation-flow.creation-a .up-scroll{flex:1;padding:16px 16px 24px}
 .creation-flow.creation-a .up-footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);gap:8px}
 .creation-flow.creation-a .up-destination-picker{font-size:14px;min-height:44px;max-width:210px}
 .creation-flow.creation-a .up-footer-actions{width:auto}
 .creation-flow.creation-a .up-footer-actions>button{min-width:80px;min-height:44px;font-size:16px}
 .creation-flow.creation-a .up-link-field input,.creation-flow.creation-a .up-field input,.creation-flow.creation-a .up-field textarea,.up-identity-access select{font-size:16px}
 .up-identity strong{font-size:15px}.up-identity-access{font-size:14px}.up-identity-access select{padding-block:4px}
 .up-composer-note textarea{background:var(--fill);min-height:92px}
 .up-source-tabs button{min-height:44px;font-size:14px}
 .creation-flow.creation-a .up-drop{min-height:218px;background:var(--bg)}
 .creation-flow.creation-a .up-drop .up-button{min-height:44px}
 .creation-flow.creation-a .up-link-field{background:var(--surface)}
 .creation-flow.creation-a .up-visual-queue .up-preview{background:#e9ece6}
 .creation-flow.creation-a .up-queue-toolbar .up-button,.creation-flow.creation-a .up-details>summary,.creation-flow.creation-a .up-add-more>summary{min-height:44px;font-size:14px}
 .creation-flow.creation-a .up-file-formats,.creation-flow.creation-a .up-field-help,.creation-flow.creation-a .up-queue-hint{font-size:13px}
 .creation-flow.creation-a .up-new-collection{grid-template-columns:1fr}
 .creation-flow.creation-a .up-new-collection-actions{flex-wrap:wrap}
}
@media(max-width:360px){.creation-flow.creation-a .up-destination-picker{max-width:170px}}

@media(min-width:761px){.creation-flow.creation-a .up-visual-queue .up-preview{aspect-ratio:1.2}}
.creation-flow.creation-a .up-scroll>.up-new-collection{margin-top:20px;padding:16px;background:var(--bg)}
.creation-flow.creation-a .up-visual-queue .up-preview>img,.creation-flow.creation-a .up-visual-queue .up-preview>video{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}

/* Approved round two: image-led capture, access before share, quieter metadata. */
.cu-card-meta{display:flex;align-items:center;gap:6px;min-width:0}
.cu-card-meta>.avatar{width:18px;height:18px;min-width:18px;margin:0;font-size:8px}
.cu-card-meta>span:last-child{min-width:0}
.creation-flow .up-visual-queue .up-item{position:relative}
.creation-flow .up-delete-image{position:absolute;top:10px;right:10px;z-index:2;display:flex;align-items:center;gap:6px;min-height:44px;border:0;border-radius:999px;padding:10px 14px;background:var(--surface);color:#a12724;font:14px/1.4 var(--sans);box-shadow:0 3px 12px #0002}
.creation-flow .up-delete-image svg{width:16px;height:16px}
.creation-flow .up-visual-queue .up-preview.up-held{transform:scale(.97);box-shadow:0 5px 16px #0002;transition:transform 140ms ease-out}
.creation-flow .up-media-summary{display:flex;align-items:center;gap:12px;width:100%;padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font:14px/1.5 var(--sans);text-align:left}
.creation-flow .up-media-summary>span:last-child{margin-left:auto;text-decoration:underline;text-underline-offset:3px}
.up-summary-previews{display:flex;gap:4px}
.up-summary-previews>span{width:42px;height:48px;overflow:hidden;border-radius:6px;background:var(--fill)}
.up-summary-previews img,.up-summary-previews video{width:100%;height:100%;object-fit:cover}
.creation-flow .up-arrange-count{font:14px/1.4 var(--sans);color:var(--ink2)}
.creation-flow .up-arrange [data-up-next]>svg{transform:rotate(-90deg);width:18px;height:18px}
.cu-share-dialog .meld-dialog{width:min(520px,calc(100vw - 32px))}
.cu-share-dialog .dialog-body{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.cu-share-scroll{padding:8px 24px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}
.cu-share-dialog .cu-share-title{margin:0 0 24px;font:20px/1.3 var(--serif)}
.cu-share-dialog .cu-access-control{margin:0 0 24px;gap:12px}
.cu-share-dialog .cu-people{margin:0}
.cu-share-dialog .cu-people h2{margin:0 0 8px;font:500 14px/1.4 var(--sans)}
.cu-share-dialog .cu-member-row{padding:10px 0;gap:10px}
.cu-share-dialog .cu-member-row select{min-height:40px}
.cu-share-dialog .cu-invite-form{grid-template-columns:minmax(0,1fr) 106px auto;margin-top:20px;gap:8px}
.cu-share-dialog .cu-invite-form .field{font-size:13px}
.cu-share-dialog .cu-email-access{margin-top:20px}
.cu-share-dialog .cu-email-access>summary{font:14px/1.5 var(--sans);cursor:pointer;min-height:40px;display:flex;align-items:center}
.cu-share-dialog .cu-email-access[open]>summary{margin-bottom:8px}
.cu-share-dialog .cu-email-access .cu-invite-form{margin:0}
.cu-share-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding:16px 24px;background:var(--surface);flex-shrink:0}
.cu-share-footer .btn{min-height:44px}
.cu-share-dialog [hidden]{display:none!important}
.reference-grid .card .media video{width:100%;height:auto;display:block;object-fit:contain;pointer-events:none;background:var(--bg)}
.card-video-label{display:none;font:11px/1.5 var(--sans);color:var(--ink3);margin-left:6px}
.preview-still .card-video-label{display:inline-block}
@media(max-width:760px){
 .creation-flow.creation-a .up-arrange .up-scroll{padding-top:8px}
 .creation-flow.creation-a .up-arrange .up-queue-toolbar h3{font-size:20px}
 .creation-flow.creation-a .up-arrange .up-list{gap:16px 12px}
 .creation-flow.creation-a .up-arrange .up-preview-caption{margin-top:6px}
 .creation-flow.creation-a .up-arrange .up-preview-name{display:none}
 .creation-flow.creation-a .up-arrange .up-preview{aspect-ratio:4/5;background:var(--surface)}
 .creation-flow .up-arrange .up-position{color:var(--ink3)}
 .cu-card-meta{align-items:flex-start}
 .cu-card-meta>.avatar{margin-top:1px;width:16px;height:16px;min-width:16px}
 .cu-share-dialog .meld-dialog{width:100%;max-height:min(90dvh,780px)}
 .cu-share-scroll{padding:4px 16px 24px}
 .cu-share-dialog .dialog-header{padding:16px}
 .cu-share-dialog .cu-invite-form{grid-template-columns:minmax(0,1fr) 106px}
 .cu-share-dialog .cu-invite-form>.field:first-child{grid-column:1/-1}
 .cu-share-dialog .cu-invite-form>.btn{margin-left:auto;min-width:80px}
 .cu-share-dialog input,.cu-share-dialog select{font-size:16px;min-height:44px}
 .cu-share-dialog .cu-member-row select{font-size:14px}
 .cu-share-footer{padding:12px 16px calc(16px + env(safe-area-inset-bottom));gap:8px}
 .cu-share-footer:has([data-cu-native-share]:not([hidden])) [data-cu-open-link]{display:none}
 .cu-share-footer .primary{margin-left:auto;min-width:100px}
}
@media(prefers-reduced-motion:reduce){.creation-flow .up-visual-queue .up-preview.up-held{transition:none}}
/* Keep one content inset and one primary action in Access & sharing. */
.meld-dialog-layer.cu-share-dialog[data-mn-surface] .dialog-body{padding:0;overflow:hidden}
.cu-share-dialog .cu-invite-form>.btn{grid-column:auto;background:var(--fill);color:var(--ink)}
.creation-flow .up-list>.up-item:only-child .up-preview{touch-action:pan-y}
#cu-detail-content{position:relative}
@media(max-width:760px){
 .cu-share-dialog .cu-invite-form>.btn{grid-column:2;grid-row:2;align-self:end}
 .cu-share-dialog .cu-share-footer{background:var(--surface)}
}
.cu-share-dialog .field{margin:0}

/* Playback never changes card geometry: the still frame owns the media size. */
.reference-grid .card .media.is-video:has(.video-poster) video{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto!important}
.reference-grid .card .media .video-poster{width:100%;height:auto;display:block}

/* Shared control geometry and the approved September 9 action hierarchy. */
:root{--control-caret-size:18px;--control-icon-gap:8px}
svg[data-icon="chevron"]{width:var(--control-caret-size)!important;height:var(--control-caret-size)!important;flex:0 0 var(--control-caret-size)!important}
button:has(>svg[data-icon]),summary:has(>svg[data-icon]){column-gap:var(--control-icon-gap)}
select:not([multiple]){appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:18px 18px;background-position:right 12px center;padding-right:40px!important}
.btn.surface{background:var(--surface);color:var(--ink)}
.btn.surface:hover{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.cu-split .btn:last-child{border-inline-start:1px solid var(--line);min-width:40px;padding-inline:11px}
.cu-split .btn svg{width:18px;height:18px}
.workspace-switcher{display:inline-flex;align-items:center;min-width:0;max-width:210px;min-height:44px;gap:8px;padding:4px 8px 4px 0;border-radius:8px;font:15px/1.4 var(--sans);text-align:left}
.workspace-switcher:hover,.workspace-switcher[aria-expanded=true]{background:var(--fill)}
.workspace-switcher:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.workspace-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:761px){
 .topnav .workspace-name{display:none}
 .topnav .nav-right{white-space:nowrap}
}
@media(min-width:761px) and (max-width:920px){
 .topnav .nav-tab{width:44px;min-height:44px;padding:0}
 .topnav .nav-tab>span{display:none}
}
.acctpop [data-preview-state]{margin-inline-start:auto;color:var(--ink3);font-size:13px}
.workspace-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:var(--fill2);color:var(--ink);font:500 14px/1 var(--sans)}
.workspace-menu:not(.handoff-mobile-overlay){width:250px;padding:8px}
.workspace-menu .action-list{gap:2px}
.workspace-menu .action-list button{display:flex;align-items:center;min-height:48px;padding:10px 12px;gap:12px;border-radius:8px;text-align:left}
.workspace-menu .action-list button>span:nth-child(2){flex:1}
.workspace-menu .action-list button[aria-current=true]{background:var(--fill)}
.workspace-menu .action-list button:hover{background:var(--fill2)}
.workspace-menu .action-list button>svg{width:18px;height:18px}
/* Ask uses a visual recap instead of a second workspace switcher. */
.ask-attachments[hidden],.ask-context-picker [hidden]{display:none!important}
.ask-attachment-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:14px}
.ask-attachment-head>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ask-attachment-head small{font-size:12px;color:var(--ink2);margin-left:6px}
.ask-attachment-head button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--ink2)}
.ask-attachment-head button:hover{background:var(--fill)}
.ask-attachment-list{position:relative}
.ask-attachment-list.is-stacked{height:96px}
.ask-attachment-list.is-expanded{display:flex;flex-direction:column;gap:8px;max-height:224px;overflow:auto;overscroll-behavior:contain}
.ask-attachment-card{display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.ask-attachment-list.is-stacked .ask-attachment-card{position:absolute;top:0;left:0;right:0;z-index:calc(3 - var(--stack));transform:translateY(calc(var(--stack)*9px)) scale(calc(1 - var(--stack)*.035));transform-origin:bottom center;pointer-events:none}
.ask-attachment-card>span:last-child{min-width:0;flex:1}
.ask-attachment-card strong,.ask-context-picker strong{display:block;font:400 14px/1.4 var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ask-attachment-card small,.ask-context-picker small{display:block;font:12px/1.5 var(--sans);color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ask-attachment-toggle{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:40px;margin-left:auto;font-size:13px;color:var(--ink2)}
.ask-attachment-toggle svg{width:16px;height:16px}
.ask-context-thumb{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;overflow:hidden;border-radius:8px;background:var(--fill);color:var(--ink2)}
.ask-context-thumb img{width:100%;height:100%;object-fit:cover}
.ask-context-thumb.is-mosaic{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:1px}
.ask-context-thumb.is-mosaic>span{height:100%;min-width:0;overflow:hidden}
.ask-context-layer .dialog-body{display:flex;min-height:0;overflow:hidden}
.ask-context-picker{display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0;width:100%}
.ask-context-picker>.cu-search{flex-shrink:0;margin:0}
.ask-context-picker [data-context-list]{overflow:auto;min-height:0;max-height:55dvh;overscroll-behavior:contain}
.ask-context-picker section+section{margin-top:20px}
.ask-context-picker h3{font:500 13px/1.4 var(--sans);padding:0 12px 8px;color:var(--ink2)}
.ask-context-picker [data-kind]{display:flex;align-items:center;gap:12px;width:100%;min-width:0;text-align:left;padding:10px 12px;border-radius:8px}
.ask-context-picker [data-kind]>span:last-child{flex:1;min-width:0}
.ask-context-picker [data-kind]:hover,.ask-context-picker [data-kind]:focus-visible{background:var(--fill)}
.ask-layer .ask-welcome{padding:24px 0;margin:0}
.ask-layer .ask-welcome h2{font-size:26px;margin-bottom:10px}
.ask-layer .ask-welcome p{font-size:14px}
.ask-layer .ask-chat:has(.ask-welcome){align-items:flex-start;flex:1}
.ask-layer .ask-suggestions button,.ask-layer .ask-user{background:var(--fill)}
.ask-layer .dialog-header .ask-history{font:400 16px/1.4 var(--sans);min-height:44px}
@media(max-width:760px){
 .workspace-switcher{max-width:100%;padding-right:0;font-size:14px;gap:6px}
 .workspace-avatar{width:26px;height:26px;flex-basis:26px;font-size:13px}
 .workspace-menu .action-list{padding:8px 16px 16px}
 .workspace-menu .action-list button{min-height:56px;font-size:16px}
 .cu-index-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
 .cu-index-tools .seg{grid-column:1/-1;width:100%;display:flex}
 .cu-index-tools .seg button{flex:1}
 .cu-index-tools [data-cu-result-count]{grid-column:1;grid-row:2;margin-left:0;justify-self:start}
 .cu-index-tools .cu-search-toggle{grid-column:2;grid-row:2;justify-self:end}
 .cu-index-tools .cu-search{grid-column:1/-1;grid-row:3;width:100%}
 .ask-layer[data-mn-surface=task] .dialog-header .ask-history{grid-column:3;grid-row:1;justify-self:end;padding:0;font-size:16px;color:var(--ink2)}
 .ask-layer[data-mn-surface=task] .dialog-header .dialog-close{font-size:16px}
 .ask-attachment-head button{min-width:44px;height:44px}
 .ask-attachment-toggle{min-height:44px;font-size:14px}
 .ask-context-picker [data-kind]{min-height:68px}
}

.ask-context-thumb.is-mosaic:has(>svg){display:flex;align-items:center;justify-content:center}
.ask-layer .ask-chat:has(.ask-welcome){scroll-padding-top:0}

/* Reference inspection: readable notes and compact, persistent metadata. */
.mv-mount .mv-pin{
 width:32px;height:32px;min-height:32px;padding:0;
 background:#1f1f1f;color:#fff;border:2px solid #fff;
 font:500 13px/1 var(--sans);font-variant-numeric:tabular-nums;
 transform:translate(-50%,-50%) scale(var(--mv-pin-scale,1)) translateX(var(--mv-pin-offset,0px));
}
.mv-mount .mv-pin:hover,.mv-mount .mv-pin.is-selected{background:#0000ff;color:#fff;border-color:#fff;z-index:4}
.mv-mount .mv-pin:focus-visible{outline:2px solid #0000ff;outline-offset:3px}
.mv-mount .mv-pin.is-pending{background:#fff;color:#0000ff;border:2px dashed #0000ff;pointer-events:none}
.mv-fullscreen-layer .mv-view-controls .mv-media-tools button:disabled{opacity:.4;cursor:default}
@media(max-width:760px){
 .mv-fullscreen-layer .dialog-close{background:#252725;color:#fff}
 .mv-fullscreen-layer:has(.mv-details[data-sheet-state=full]) .dialog-close{background:#f0f0f0;color:#1f1f1f}
}

.mv-fullscreen-layer .mv-stage-page{justify-items:start}
.mv-fullscreen-layer .mv-image-frame.mv-page{margin-inline:auto}
