/* V2 is opt-in; none of these rules affect the original layout. */
body.v2 {
  /* byDIDI brand palette: Teal #004646 for text and actions, Burnt Orange #DC4B00 for accents, Cream #FAF5EB for surfaces. */
  --teal:#004646; --teal-dark:#003030; --teal-hover:#005a5a; --teal-tint:rgba(0,70,70,.09);
  --orange:#dc4b00; --orange-dark:#bf4000; --orange-tint:#fdeee5; --orange-ring:rgba(220,75,0,.32);
  --cream:#faf5eb;
  /* app.css reads --blue for links and checkboxes; point it at the action colour. */
  --blue:var(--teal); --blue-dark:var(--teal-dark);
  --ink:#14292a; --ink-2:#3d5655; --muted:#657876; --faint:#a1adab;
  --line:#e1e9e8; --hairline:rgba(0,70,70,.12); --fill:rgba(0,70,70,.07); --fill-2:rgba(0,70,70,.045);
  --red:#c8243b;
  --canvas:#fff; --sidebar:var(--teal); --grouped:#f0f5f4;
  --sidebar-w:232px; --radius:16px;
  --shadow-pop:0 24px 70px rgba(0,30,30,.2),0 4px 16px rgba(0,30,30,.08);
  --ease:cubic-bezier(.2,.8,.2,1); --spring:cubic-bezier(.32,.72,0,1);
  margin:0; color:var(--ink); background:var(--canvas);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:14px; line-height:1.4; letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;
}
.v2 ::selection { background:#f8d2bb; }
.v2 a:hover { text-decoration:none; }
.v2 button { letter-spacing:inherit; touch-action:manipulation; }
.v2 button:disabled { opacity:.38; cursor:default; }
.v2 :focus-visible { outline:3px solid var(--orange-ring); outline-offset:2px; }
.v2 kbd { font-family:inherit; }
.v2-icon { display:inline-block; width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
.v2-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Shell and sidebar */
.v2-shell { display:grid; grid-template-columns:var(--sidebar-w) minmax(0,1fr); min-height:100vh; min-height:100dvh; }
.v2-sidebar { position:sticky; top:0; height:100vh; height:100dvh; padding:20px 12px 12px; display:flex; flex-direction:column; background:var(--sidebar); border-right:1px solid var(--line); }
.v2-brand { display:flex; align-items:center; gap:9px; align-self:flex-start; padding:8px 10px; margin:2px 0 20px; color:var(--ink); border-radius:10px; }
.v2-brand small { padding:2px 6px 1px; font-size:10px; font-weight:650; letter-spacing:.06em; color:var(--teal); background:var(--teal-tint); border-radius:5px; align-self:flex-end; margin-bottom:3px; }
.v2-brand-logo { display:block; width:96px; height:auto; }
.v2-sidebar > nav { flex:1; overflow:auto; margin:0 -12px; padding:0 12px 20px; scrollbar-width:none; -webkit-mask-image:linear-gradient(#000 calc(100% - 20px),transparent); mask-image:linear-gradient(#000 calc(100% - 20px),transparent); }
.v2-sidebar > nav::-webkit-scrollbar { display:none; }
.v2-nav-item { position:relative; display:flex; align-items:center; gap:10px; min-height:38px; padding:8px 10px; margin:1px 0; color:var(--ink-2); border-radius:9px; font-weight:500; transition:background-color .15s; }
.v2-nav-item > .v2-icon { color:var(--orange); }
.v2-nav-label { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v2-nav-item small { margin-left:auto; min-width:18px; text-align:right; color:var(--faint); font-size:12.5px; font-weight:500; font-variant-numeric:tabular-nums; transition:opacity .15s; }
.v2-nav-item:active { background:var(--fill); }
.v2-nav-item.active { color:var(--teal); background:var(--teal-tint); font-weight:600; }
.v2-nav-item.active small { color:var(--teal); opacity:.8; }
.v2-nav-row { position:relative; }
.v2-nav-more { position:absolute; top:50%; right:5px; width:28px; height:28px; margin-top:-14px; display:grid; place-items:center; padding:0; border:0; border-radius:7px; color:var(--muted); background:none; opacity:0; pointer-events:none; cursor:pointer; transition:opacity .15s,background-color .15s; }
.v2-nav-more .v2-icon { width:17px; height:17px; }
.v2-nav-more:hover { color:var(--ink); background:var(--fill); }
.v2-nav-item.active + .v2-nav-more { color:var(--teal); }
@media (hover:hover) {
  .v2-nav-row:hover .v2-nav-more,.v2-nav-row:focus-within .v2-nav-more { opacity:1; pointer-events:auto; }
  .v2-nav-row:hover .v2-nav-item small,.v2-nav-row:focus-within .v2-nav-item small { opacity:0; }
}
.v2-nav-row.is-renaming .v2-nav-more { display:none; }
.v2-nav-heading { display:flex; align-items:center; justify-content:space-between; height:30px; margin:22px 0 2px; padding:0 3px 0 10px; color:var(--muted); font-size:12px; font-weight:600; }
.v2-nav-heading .v2-icon-button { width:28px; height:28px; border-radius:7px; color:var(--orange); }
.v2-nav-heading .v2-icon-button .v2-icon { width:18px; height:18px; stroke-width:1.9; }
.v2-nav-bottom { margin-top:14px; padding-top:12px; border-top:1px solid var(--hairline); }
.v2-nav-bottom:empty { display:none; }
.v2-nav-row.is-new { animation:v2-pop .3s var(--spring); }
.v2-profile { display:flex; align-items:center; gap:10px; width:100%; margin-top:8px; padding:8px; border:0; border-radius:12px; background:none; color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:background-color .15s; }
.v2-profile:hover { background:var(--fill-2); }
.v2-profile:active { background:var(--fill); }
.v2-profile-text { display:flex; flex-direction:column; flex:1; min-width:0; line-height:1.25; }
.v2-profile-text strong { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v2-profile-text small { color:var(--muted); font-size:12px; }
.v2-profile > .v2-icon { width:18px; height:18px; color:var(--faint); transition:transform .4s var(--ease),color .15s; }
.v2-profile:hover > .v2-icon { color:var(--muted); transform:rotate(45deg); }
.v2-avatar { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:50%; color:var(--cream); font-size:12.5px; font-weight:600; letter-spacing:.02em; background:linear-gradient(180deg,#0b6363,#004646); box-shadow:inset 0 0 0 .5px rgba(0,0,0,.12); }
.v2-avatar-large { width:52px; height:52px; font-size:19px; }

/* Teal sidebar, as in the card's header: cream text, a white active pill, orange accents. The phone nav sheet keeps the light styles. */
.v2-sidebar { border-right:0; }
.v2-sidebar .v2-brand small { color:var(--cream); background:rgba(250,245,235,.16); }
.v2-sidebar .v2-nav-item { color:rgba(250,245,235,.84); }
.v2-sidebar .v2-nav-item > .v2-icon { color:var(--cream); }
.v2-sidebar .v2-nav-item small { color:rgba(250,245,235,.58); }
.v2-sidebar .v2-nav-item:active { background:rgba(255,255,255,.14); }
.v2-sidebar .v2-nav-item.active { color:var(--teal); background:#fff; }
.v2-sidebar .v2-nav-item.active > .v2-icon { color:var(--orange); }
.v2-sidebar .v2-nav-item.active small { color:var(--teal); opacity:.75; }
.v2-sidebar .v2-nav-more { color:rgba(250,245,235,.8); }
.v2-sidebar .v2-nav-more:hover { color:#fff; background:rgba(255,255,255,.14); }
.v2-sidebar .v2-nav-item.active + .v2-nav-more { color:var(--teal); }
.v2-sidebar .v2-nav-item.active + .v2-nav-more:hover { color:var(--teal); background:var(--teal-tint); }
.v2-sidebar .v2-nav-heading { color:rgba(250,245,235,.6); }
.v2-sidebar .v2-nav-heading .v2-icon-button { width:24px; height:24px; border-radius:50%; color:#fff; background:var(--orange); }
.v2-sidebar .v2-nav-heading .v2-icon-button:hover { background:var(--orange-dark); }
.v2-sidebar .v2-nav-heading .v2-icon-button .v2-icon { width:15px; height:15px; stroke-width:2.4; }
.v2-sidebar .v2-nav-bottom { border-top-color:rgba(250,245,235,.16); }
.v2-sidebar .v2-nav-item.is-drop-target { color:#fff; }
.v2-sidebar .v2-rename-input { color:var(--ink); }
.v2-sidebar .v2-profile { color:#fff; }
.v2-sidebar .v2-profile:hover { background:rgba(255,255,255,.09); }
.v2-sidebar .v2-profile:active { background:rgba(255,255,255,.15); }
.v2-sidebar .v2-profile-text small { color:rgba(250,245,235,.62); }
.v2-sidebar .v2-profile > .v2-icon { color:rgba(250,245,235,.6); }
.v2-sidebar .v2-profile:hover > .v2-icon { color:#fff; }
.v2-avatar { color:#fff; background:var(--orange); box-shadow:inset 0 0 0 .5px rgba(0,0,0,.12); }

/* Content and headings */
.v2-content { min-width:0; }
.v2-library { max-width:1160px; margin:0 auto; padding:48px clamp(24px,4vw,64px) 128px; }
.v2-library-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:48px; margin-bottom:22px; }
.v2-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
.v2-library h1 { margin:0; min-width:0; color:var(--teal); font-size:34px; line-height:1.18; letter-spacing:-.032em; font-weight:700; overflow-wrap:anywhere; }
.v2-title-button { display:inline-flex; align-items:center; gap:8px; max-width:calc(100% + 16px); margin:-3px -8px; padding:3px 8px; border:0; border-radius:10px; background:none; color:inherit; font:inherit; letter-spacing:inherit; text-align:left; cursor:text; transition:background-color .15s; }
.v2-title-button > span { min-width:0; overflow-wrap:anywhere; }
.v2-title-button > .v2-icon { width:20px; height:20px; color:var(--faint); opacity:0; transition:opacity .15s; }
.v2-title-button:focus-visible > .v2-icon { opacity:1; }
.v2-title-button.is-renaming { background:none; }
.v2-title-button.is-renaming > .v2-icon { display:none; }
.v2-title-more { width:36px; height:36px; color:var(--teal); }
.v2-title-more .v2-icon { width:25px; height:25px; stroke-width:1.5; }
.v2-badge { flex-shrink:0; padding:3px 9px; color:var(--muted); background:var(--fill); border-radius:999px; font-size:12px; font-weight:600; letter-spacing:0; }

/* Buttons */
.v2 .button { min-height:40px; padding:0 16px; gap:6px; border-radius:11px; font-size:14.5px; font-weight:600; letter-spacing:-.01em; transition:background-color .15s,transform .2s var(--ease),box-shadow .15s; }
.v2 .button:active { transform:scale(.97); }
.v2 .button.primary { background:var(--teal); box-shadow:0 1px 2px rgba(0,50,50,.3),inset 0 1px 0 rgba(255,255,255,.1); }
.v2 .button.primary:hover { background:var(--teal-hover); }
.v2 .button.secondary { color:var(--ink); background:var(--fill); border-color:transparent; }
.v2 .button.secondary:hover { background:rgba(0,70,70,.14); }
.v2 .button .v2-icon { width:18px; height:18px; stroke-width:2; margin-left:-3px; }
.v2-new-button { white-space:nowrap; }
.v2-icon-button { display:inline-grid; place-items:center; flex-shrink:0; width:36px; height:36px; padding:0; border:0; border-radius:10px; color:var(--muted); background:none; cursor:pointer; transition:background-color .15s,color .15s; }
.v2-icon-button:hover { color:var(--teal); background:var(--teal-tint); }
.v2-icon-button:active { background:rgba(0,70,70,.15); }
.v2-text-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:0 10px; color:var(--teal); background:none; border:0; border-radius:10px; font-weight:600; cursor:pointer; transition:background-color .15s; }
.v2-text-button:hover { background:var(--teal-tint); }
.v2-text-button:active { background:rgba(0,70,70,.15); }
.v2-pill-button { height:30px; padding:0 13px; border:0; border-radius:999px; color:var(--teal); background:var(--teal-tint); font-size:13px; font-weight:600; cursor:pointer; }
.v2-pill-button:hover { background:rgba(0,70,70,.15); }

/* Toolbar */
.v2-toolbar { display:flex; align-items:center; gap:10px; }
.v2-search { position:relative; display:flex; align-items:center; flex:1; min-width:0; height:40px; padding:0 9px 0 11px; gap:7px; color:#8a9795; background:var(--fill); border-radius:11px; transition:background-color .2s,box-shadow .2s; }
.v2-search:focus-within { background:#fff; box-shadow:0 0 0 1px rgba(220,75,0,.6),0 0 0 4px rgba(220,75,0,.14); }
.v2-search > .v2-icon { width:18px; height:18px; }
.v2 .v2-search input { flex:1; min-width:0; height:100%; margin:0; padding:0; border:0; border-radius:0; color:var(--ink); background:none; box-shadow:none; outline:0; font-size:15px; -webkit-appearance:none; appearance:none; }
.v2 .v2-search input::-webkit-search-cancel-button,.v2 .v2-search input::-webkit-search-decoration { -webkit-appearance:none; display:none; }
.v2 .v2-search input::placeholder { color:#8a9795; }
.v2-search-key { flex-shrink:0; padding:1px 6px; color:#8a9795; background:rgba(255,255,255,.75); border:.5px solid rgba(0,0,0,.1); border-radius:6px; box-shadow:0 1px 0 rgba(0,0,0,.04); font-size:11.5px; font-weight:500; line-height:1.5; letter-spacing:.02em; }
.v2-search-clear { display:grid; place-items:center; flex-shrink:0; width:26px; height:26px; margin-right:-4px; padding:0; border:0; border-radius:50%; color:#b3bcb9; background:none; cursor:pointer; }
.v2-search-clear:hover { color:#8a9795; }
.v2-search-clear .v2-icon { width:17px; height:17px; }
.v2-search input[type=search]:placeholder-shown ~ .v2-search-clear { display:none; }
.v2-search input[type=search]:not(:placeholder-shown) ~ .v2-search-key,.v2-search:focus-within .v2-search-key { display:none; }
.v2-filter-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:40px; padding:0 13px 0 11px; color:var(--ink-2); background:#fff; border:1px solid var(--line); border-radius:11px; font-weight:500; cursor:pointer; transition:background-color .15s,border-color .15s,color .15s; }
.v2-filter-button:hover { background:#f3f7f6; }
.v2-filter-button:active { background:#e8efee; }
.v2-filter-button .v2-icon { width:19px; height:19px; }
.v2-filter-button.has-filters { color:var(--teal); background:var(--teal-tint); border-color:rgba(0,70,70,.28); font-weight:600; }
.v2-select-toggle { min-width:64px; }
.v2-overview-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:62px; padding:0 2px; }
.v2-list-meta { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.v2-list-meta a { font-weight:500; }
.v2-view-switch { display:flex; flex-shrink:0; gap:2px; padding:2px; background:var(--fill); border-radius:9px; }
.v2-view-switch a { display:flex; align-items:center; gap:5px; height:28px; padding:0 11px 0 9px; color:var(--ink-2); font-size:13px; font-weight:500; border-radius:7px; transition:background-color .15s,color .15s; }
.v2-view-switch a .v2-icon { width:16px; height:16px; }
.v2-view-switch a:not([aria-current]):hover { color:var(--ink); }
.v2-view-switch [aria-current] { color:var(--ink); background:#fff; font-weight:600; box-shadow:0 3px 8px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.03),0 0 0 .5px rgba(0,0,0,.04); }

/* Group overview */
.v2-group-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(186px,1fr)); gap:16px; }
.v2-folder-card { position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; padding:22px 14px 18px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:18px; text-align:center; transition:border-color .2s,box-shadow .25s,transform .25s var(--ease),background-color .2s; }
.v2-folder-card:active { transform:scale(.98); }
.v2-folder-art { position:relative; display:block; width:128px; height:100px; margin-bottom:15px; }
.v2-folder-back { position:absolute; inset:0; width:100%; height:100%; fill:#b7d2cf; }
.v2-folder-papers { position:absolute; inset:7px 0 0; z-index:0; }
.v2-paper { position:absolute; top:0; left:50%; width:46px; height:46px; margin-left:-23px; padding:4px; background:#fff; border-radius:7px; box-shadow:0 0 0 .5px rgba(0,0,0,.07),0 2px 6px rgba(0,50,50,.14); transition:translate .45s var(--spring); }
.v2-paper img { display:block; width:100%; height:100%; }
.papers-2 .v2-paper:nth-child(1) { rotate:-8deg; translate:-15px 2px; }
.papers-2 .v2-paper:nth-child(2) { rotate:6deg; translate:15px 0; }
.papers-3 .v2-paper:nth-child(1) { rotate:-11deg; translate:-27px 5px; }
.papers-3 .v2-paper:nth-child(2) { translate:0 -1px; z-index:1; }
.papers-3 .v2-paper:nth-child(3) { rotate:10deg; translate:27px 5px; }
.v2-folder-front { position:absolute; inset:40px 0 0; border-radius:9px; background:linear-gradient(180deg,#e9f3f1,#d4e6e3); box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 .5px rgba(0,90,90,.15),0 -1px 3px rgba(0,60,60,.1); transform-origin:50% 100%; transition:transform .45s var(--spring); }
.is-ungrouped .v2-folder-back { fill:#d4d8d8; }
.is-ungrouped .v2-folder-front { background:linear-gradient(180deg,#f5f6f6,#e4e7e7); box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 .5px rgba(0,0,0,.06),0 -1px 3px rgba(0,0,0,.05); }
.is-archived { filter:grayscale(1); opacity:.6; }
.v2-folder-name { max-width:100%; font-size:15px; font-weight:600; line-height:1.3; letter-spacing:-.015em; overflow-wrap:anywhere; }
.v2-folder-count { margin-top:3px; color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; }
.v2-add-folder { justify-content:center; gap:12px; min-height:206px; color:var(--teal); background:transparent; border:1.5px dashed #cbd9d7; font:inherit; font-weight:600; cursor:pointer; }
.v2-add-folder:hover { background:rgba(220,75,0,.04); border-color:rgba(220,75,0,.45); box-shadow:none; }
.v2-add-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:50%; color:var(--orange); background:rgba(220,75,0,.12); transition:transform .3s var(--spring); }
.v2-add-folder:hover .v2-add-icon { transform:scale(1.06); }
.v2-add-icon .v2-icon { width:24px; height:24px; stroke-width:2; }
.v2-folder-card.is-new { border-color:rgba(220,75,0,.5); box-shadow:0 0 0 4px rgba(220,75,0,.12); animation:v2-pop .4s var(--spring); }
.v2-folder-card.is-renaming { transform:none; }
.v2-folder-card.is-renaming .v2-paper { translate:none; }

/* QR list */
.v2-qr-list { background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.v2-qr-row { --pad:18px; --thumb:52px; --gap:16px; position:relative; display:flex; align-items:center; gap:14px; min-height:84px; padding:14px 10px 14px var(--pad); transition:background-color .15s; }
.v2-qr-row + .v2-qr-row::before { content:""; position:absolute; top:0; right:0; left:calc(var(--pad) + var(--thumb) + var(--gap)); height:1px; background:var(--hairline); }
.v2-qr-row:first-child { border-radius:var(--radius) var(--radius) 0 0; }
.v2-qr-row:last-child { border-radius:0 0 var(--radius) var(--radius); }
.v2-qr-row:only-child { border-radius:var(--radius); }
.v2-qr-row.is-selected { background:#fff4ec; }
.v2-qr-row[draggable=true] { -webkit-touch-callout:none; cursor:grab; }
.v2-qr-row[draggable=true] .v2-record-link { cursor:inherit; }
.v2-qr-row.is-dragging { opacity:.45; }
.v2-record-link { display:flex; align-items:center; gap:var(--gap); flex:1; min-width:0; color:inherit; border-radius:10px; }
.v2-record-link:focus-visible { outline-offset:4px; }
.v2-qr-thumb { display:grid; place-items:center; flex-shrink:0; width:var(--thumb); height:var(--thumb); padding:4px; background:#fff; border-radius:10px; box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 2px rgba(0,30,30,.05); }
.v2-qr-thumb img { width:100%; height:100%; object-fit:contain; }
.v2-record-info { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.v2-record-info strong { font-size:15px; font-weight:600; line-height:1.3; letter-spacing:-.015em; overflow-wrap:anywhere; }
.v2-record-subtitle { color:var(--muted); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v2-mobile-tags { display:none; }
.v2-row-labels { display:flex; flex-direction:column; align-items:flex-start; gap:6px; width:120px; flex-shrink:0; }
.v2-type-label { display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px 0 6px; color:#0b5656; background:#e4efed; border-radius:6px; font-size:11.5px; font-weight:600; letter-spacing:0; white-space:nowrap; }
.v2-type-label.type-4 { color:#a33a00; background:#fcebe0; }
.v2-type-label .v2-icon { width:14px; height:14px; stroke-width:1.9; }
.v2-group-label { display:inline-flex; align-items:center; gap:4px; max-width:120px; padding-left:5px; color:var(--muted); font-size:12px; }
.v2-group-label > span { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v2-group-label .v2-icon { width:14px; height:14px; color:var(--faint); }
.v2-group-label:hover { color:var(--teal); }
.v2-group-label:hover .v2-icon { color:currentColor; }
.v2-row-actions { display:flex; align-items:center; }
.v2-row-more { display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:50%; color:var(--muted); background:none; cursor:pointer; transition:background-color .15s,color .15s; }
.v2-row-more:hover { color:var(--teal); background:var(--teal-tint); }
.v2-row-more:active { background:rgba(0,70,70,.15); }
.v2-open-record { display:grid; place-items:center; width:24px; height:34px; color:#cbd1ce; }
.v2-open-record .v2-icon { width:15px; height:15px; stroke-width:2.2; }
.v2-readonly { display:inline-flex; align-items:center; gap:4px; margin-right:6px; color:var(--faint); font-size:12px; white-space:nowrap; }
.v2-readonly .v2-icon { width:15px; height:15px; }
.v2-qr-row.is-renaming { background:#fff; cursor:auto; }

/* Selection */
.v2-selection-check { display:grid; place-items:center; flex-shrink:0; width:24px; margin:0; cursor:pointer; }
.v2 .v2-selection-check input,.v2 .v2-select-all input { -webkit-appearance:none; appearance:none; flex-shrink:0; width:22px; height:22px; margin:0; padding:0; border:1.5px solid #c8cfcc; border-radius:50%; background:#fff center/13px no-repeat; cursor:pointer; transition:background-color .15s,border-color .15s,transform .2s var(--spring); }
.v2 .v2-selection-check input:checked,.v2 .v2-select-all input:checked { border-color:var(--orange); background-color:var(--orange); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.25 4.25L18.5 7.5'/%3E%3C/svg%3E"); }
.v2 .v2-select-all input:indeterminate { border-color:var(--orange); background-color:var(--orange); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }
.v2 .v2-selection-check input:active,.v2 .v2-select-all input:active { transform:scale(.88); }
.v2 .v2-selection-check input:disabled { opacity:.35; cursor:default; }
.v2-selection-mode .v2-row-actions { display:none; }
.v2-selection-mode .v2-qr-row { cursor:pointer; }
.v2-selection-mode .v2-qr-row + .v2-qr-row::before { left:calc(var(--pad) + 38px + var(--thumb) + var(--gap)); }
.v2-selection-mode .v2-record-link { pointer-events:none; }
.v2-selection-bar { position:fixed; z-index:60; bottom:max(24px,env(safe-area-inset-bottom)); left:calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); translate:-50% 0; display:flex; align-items:center; gap:16px; padding:7px 7px 7px 14px; background:rgba(255,255,255,.88); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); border:.5px solid rgba(0,0,0,.08); border-radius:999px; box-shadow:0 14px 40px rgba(0,30,30,.16),0 2px 6px rgba(0,30,30,.06); animation:v2-rise .45s var(--spring); }
.v2-selection-bar label { display:flex; align-items:center; gap:9px; margin:0; color:var(--ink); font-size:14px; font-weight:500; white-space:nowrap; cursor:pointer; }
.v2-selection-bar > span { min-width:78px; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.v2-selection-bar .button { min-height:38px; border-radius:999px; }

/* Inline rename */
.v2-rename { position:relative; display:inline-grid; min-width:0; max-width:100%; vertical-align:top; }
.v2-rename::after { content:attr(data-value) " "; grid-area:1/1; padding:0 6px; visibility:hidden; white-space:pre; overflow:hidden; font:inherit; letter-spacing:inherit; }
.v2-rename.is-block { display:grid; width:100%; }
.v2-rename.is-block::after { display:none; }
.v2 .v2-rename-input { grid-area:1/1; width:100%; min-width:3ch; height:auto; margin:0 -6px; padding:0 6px; color:inherit; background:#fff; border:0; border-radius:6px; font:inherit; letter-spacing:inherit; line-height:inherit; text-align:inherit; box-shadow:0 0 0 2px var(--orange),0 0 0 5px rgba(220,75,0,.18); outline:none; }
.v2 .v2-rename.is-block .v2-rename-input { width:calc(100% + 12px); }
.v2 .v2-rename-input:focus { border:0; outline:none; box-shadow:0 0 0 2px var(--orange),0 0 0 5px rgba(220,75,0,.18); }
.v2 .v2-rename-input::selection { background:#f8d2bb; }
.v2-rename.is-invalid .v2-rename-input,.v2 .v2-rename.is-invalid .v2-rename-input:focus { box-shadow:0 0 0 2px var(--red),0 0 0 5px rgba(200,36,59,.15); }
.v2-rename.is-invalid { animation:v2-shake .4s var(--ease); }
.v2-rename-error { position:absolute; top:calc(100% + 10px); left:-6px; z-index:5; width:max-content; max-width:min(300px,78vw); padding:7px 11px; color:#fff; background:var(--red); border-radius:9px; box-shadow:0 8px 24px rgba(200,36,59,.28); font-size:12.5px; font-weight:500; line-height:1.35; letter-spacing:-.005em; text-align:left; white-space:normal; animation:v2-pop .3s var(--spring); }
.v2-rename-error::before { content:""; position:absolute; top:-4px; left:16px; width:9px; height:9px; background:inherit; border-radius:2px; transform:rotate(45deg); }
.v2 .is-editing { overflow:visible; text-overflow:clip; }
.v2-nav-item .v2-rename-input { font-weight:500; }
.v2-nav-item.is-renaming small { display:none; }
.v2-nav-item.is-renaming:hover { background:none; }
.v2-nav-item .v2-rename-error { left:-36px; width:calc(100% + 44px); max-width:none; }
.v2-nav-item .v2-rename-error::before { left:46px; }
.v2-folder-name .v2-rename-error { left:50%; translate:-50% 0; }
.v2-folder-name .v2-rename-error::before { left:calc(50% - 4px); }
.is-saving { opacity:.5; transition:opacity .2s; }

/* Dialogs and sheets */
.v2-dialog { width:min(420px,calc(100% - 32px)); max-height:min(86dvh,780px); padding:0 20px 20px; color:var(--ink); background:#fff; border:0; border-radius:22px; box-shadow:var(--shadow-pop),0 0 0 .5px rgba(0,0,0,.06); overflow:auto; overscroll-behavior:contain; outline:none; }
.v2-dialog::backdrop { background:rgba(0,35,35,.38); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.v2-dialog-menu { background:var(--grouped); }
/* The dialog itself takes focus when it opens; it should not draw a ring around the whole sheet. */
.v2 .v2-dialog:focus-visible,.v2 .v2-alert:focus-visible { outline:none; }
.v2-dialog-heading { position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:12px; margin:0 -20px 6px; padding:18px 16px 12px 20px; background:inherit; }
.v2-dialog-titles { flex:1; min-width:0; }
.v2-dialog-heading h2 { margin:0; font-size:19px; font-weight:700; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.v2-dialog-meta { margin:2px 0 0; color:var(--muted); font-size:13px; }
.v2-dialog-thumb { flex-shrink:0; width:46px; height:46px; padding:3px; background:#fff; border-radius:10px; box-shadow:0 0 0 .5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.06); }
.v2-close { display:grid; place-items:center; align-self:flex-start; flex-shrink:0; width:30px; height:30px; padding:0; border:0; border-radius:50%; color:#586c6b; background:var(--fill); cursor:pointer; transition:background-color .15s,color .15s; }
.v2-close .v2-icon { width:15px; height:15px; stroke-width:2.3; }
.v2-close:hover { color:var(--ink); background:rgba(0,70,70,.15); }
.v2-dialog-menu .v2-close { background:rgba(0,70,70,.11); }
.v2-grabber { display:none; }
.v2-menu { display:grid; gap:12px; }
.v2-menu-group { display:grid; overflow:hidden; background:#fff; border-radius:13px; }
.v2-menu-group > form { position:relative; margin:0; }
.v2-menu-group > a,.v2-menu-group > button,.v2-menu-group > form > button { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:48px; margin:0; padding:12px 16px; color:var(--ink); background:none; border:0; border-radius:0; font:inherit; font-size:15px; letter-spacing:-.015em; text-align:left; cursor:pointer; transition:background-color .12s; }
.v2-menu-group > :not(:first-child)::before { content:""; position:absolute; top:0; right:0; left:16px; height:1px; background:var(--hairline); z-index:1; }
.v2-list .v2-menu-group > :not(:first-child)::before { left:50px; }
.v2-menu-group > a:active,.v2-menu-group > button:active,.v2-menu-group > form > button:active { background:var(--fill); }
.v2-menu-group > a:focus-visible,.v2-menu-group > button:focus-visible,.v2-menu-group > form > button:focus-visible { outline:none; background:rgba(220,75,0,.1); }
.v2-menu-label { flex:1; min-width:0; overflow-wrap:anywhere; }
.v2-menu-value { color:var(--muted); font-variant-numeric:tabular-nums; }
.v2-menu-group .v2-icon { width:21px; height:21px; color:var(--ink-2); }
.v2-list .v2-menu-group .v2-icon:first-child { width:22px; height:22px; color:var(--orange); }
.v2-menu-group .v2-chevron { width:15px; height:15px; color:#c8cfcc; stroke-width:2.2; }
.v2-menu-group .is-destructive,.v2-menu-group .is-destructive .v2-icon,.v2-list .v2-menu-group .is-destructive .v2-icon:first-child { color:var(--red); }
.v2-profile-card { display:flex; align-items:center; gap:14px; margin-bottom:12px; padding:14px 16px; background:#fff; border-radius:13px; }
.v2-profile-card > span:last-child { display:flex; flex-direction:column; min-width:0; }
.v2-profile-card strong { font-size:17px; font-weight:600; letter-spacing:-.02em; overflow-wrap:anywhere; }
.v2-profile-card small { color:var(--muted); font-size:13px; }
.v2-archive-list { display:grid; overflow:hidden; background:#fff; border-radius:13px; }
.v2-archive-row { position:relative; display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 12px 8px 16px; }
.v2-archive-row + .v2-archive-row::before { content:""; position:absolute; top:0; right:0; left:50px; height:1px; background:var(--hairline); }
.v2-archive-row > a { display:flex; align-items:center; gap:12px; flex:1; min-width:0; color:var(--ink); font-size:15px; }
.v2-archive-row > a .v2-icon { width:22px; height:22px; color:var(--faint); }
.v2-archive-row > a > span { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
.v2-archive-row small { color:var(--muted); font-size:12.5px; }
.v2-archive-row form { margin:0; }
.v2-sheet-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:28px 0 18px; color:var(--muted); }
.v2-sheet-empty .v2-icon { width:34px; height:34px; color:var(--faint); stroke-width:1.4; }
.v2-sheet-empty p { margin:0; font-size:15px; }
.v2-sheet-nav { padding:6px; background:#fff; border-radius:13px; }
.v2-sheet-nav .v2-nav-item { min-height:44px; }
.v2-sheet-nav .v2-nav-heading { margin-top:14px; }
.v2-form-note { margin:-4px 0 16px; color:var(--muted); font-size:14px; }
.v2-alert { width:min(300px,calc(100% - 48px)); padding:22px 18px 16px; color:var(--ink); background:rgba(255,255,255,.97); border:0; border-radius:20px; box-shadow:var(--shadow-pop),0 0 0 .5px rgba(0,0,0,.06); text-align:center; }
.v2-alert::backdrop { background:rgba(0,35,35,.38); }
.v2-alert h2 { margin:0 0 6px; font-size:17px; font-weight:600; line-height:1.3; letter-spacing:-.02em; overflow-wrap:anywhere; }
.v2-alert p { margin:0 0 18px; color:var(--ink-2); font-size:13.5px; line-height:1.4; }
.v2-alert p:empty { display:none; }
.v2-alert-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.v2-alert-actions button { height:42px; padding:0 10px; border:0; border-radius:12px; font:inherit; font-size:15px; font-weight:600; cursor:pointer; transition:background-color .15s,transform .2s var(--ease); }
.v2-alert-actions button:active { transform:scale(.97); }
.v2-alert-cancel { color:var(--ink); background:var(--fill); }
.v2-alert-cancel:hover { background:rgba(0,70,70,.14); }
.v2-alert-confirm { color:#fff; background:var(--teal); }
.v2-alert-confirm:hover { background:var(--teal-hover); }
.v2-alert-confirm.is-destructive { background:var(--red); }
.v2-alert-confirm.is-destructive:hover { background:#ad1f33; }

/* Forms */
.v2 :where(form label) { margin-bottom:16px; color:var(--ink-2); font-size:13px; font-weight:600; }
/* :where() keeps these defaults below component rules such as the search field and inline rename. */
.v2 :where(input:not([type=checkbox],[type=radio],[type=file]),select,textarea) { margin-top:6px; padding:11px 12px; color:var(--ink); background-color:#fff; border:1px solid #d2dcdb; border-radius:10px; font-size:15px; font-weight:400; transition:border-color .15s,box-shadow .15s; }
body.v2 :where(input:not([type=checkbox],[type=radio],[type=file]),select,textarea):focus { border-color:var(--orange); outline:none; box-shadow:0 0 0 4px rgba(220,75,0,.14); }
.v2 input::placeholder,.v2 textarea::placeholder { color:#a2aeab; }
.v2 select { -webkit-appearance:none; appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8e96' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position:right 12px center; background-repeat:no-repeat; background-size:16px; cursor:pointer; }
.v2 input[type=checkbox] { accent-color:var(--orange); }
.v2-dialog .form-actions { margin-top:24px; }
.v2-dialog form > label:last-of-type { margin-bottom:0; }
.v2-type-picker { display:flex; gap:2px; margin:0 0 20px; padding:2px; background:var(--fill); border:0; border-radius:10px; }
.v2 .v2-type-picker label { position:relative; flex:1; margin:0; cursor:pointer; }
.v2-type-picker label > span { display:flex; align-items:center; justify-content:center; gap:7px; height:36px; color:var(--ink-2); border-radius:8px; font-size:14px; font-weight:500; transition:background-color .2s,color .2s,box-shadow .2s; }
.v2-type-picker label > span .v2-icon { width:18px; height:18px; }
.v2-type-picker input { position:absolute; width:1px; height:1px; opacity:0; }
.v2-type-picker input:checked + span { color:var(--ink); background:#fff; font-weight:600; box-shadow:0 3px 8px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.03),0 0 0 .5px rgba(0,0,0,.04); }
.v2-type-picker input:checked + span .v2-icon { color:var(--orange); }
.v2-type-picker input:focus-visible + span { outline:3px solid var(--orange-ring); }

/* Name card design picker */
.v2-template-picker { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 0 22px; padding:0; border:0; }
.v2-template-picker legend { margin-bottom:8px; padding:0; color:var(--ink-2); font-size:13px; font-weight:600; }
.v2 .v2-template-picker label { position:relative; margin:0; cursor:pointer; }
.v2-template-picker input { position:absolute; width:1px; height:1px; opacity:0; }
.v2-template-card { position:relative; display:flex; flex-direction:column; gap:10px; height:100%; padding:10px 10px 12px; background:#fff; border:1px solid var(--line); border-radius:14px; transition:border-color .15s,box-shadow .15s; }
.v2-template-picker label:hover .v2-template-card { border-color:#cddad9; }
.v2-template-picker input:checked + .v2-template-card { border-color:var(--orange); box-shadow:0 0 0 3px rgba(220,75,0,.16); }
.v2-template-picker input:focus-visible + .v2-template-card { outline:3px solid var(--orange-ring); outline-offset:2px; }
.v2-template-name { display:flex; flex-direction:column; padding:0 2px; color:var(--ink); font-size:14px; font-weight:600; line-height:1.25; }
.v2-template-name small { color:var(--muted); font-size:12px; font-weight:400; }
.v2-template-check { position:absolute; top:-7px; right:-7px; width:22px; height:22px; color:var(--orange); background:#fff; border-radius:50%; opacity:0; transform:scale(.6); transition:opacity .15s,transform .25s var(--spring); }
.v2-template-picker input:checked + .v2-template-card .v2-template-check { opacity:1; transform:none; }
.v2-thumb-classic,.v2-thumb-brand { position:relative; display:block; height:112px; overflow:hidden; border-radius:9px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); }
.v2-thumb-classic { background:#fff; }
.v2-thumb-classic i { position:absolute; inset:0 0 auto; height:56px; background:linear-gradient(138deg,#b93356,#e43644 35%,#fc723e); clip-path:polygon(0 0,100% 0,100% 62%,0 100%); }
.v2-thumb-classic b { position:absolute; top:30px; right:12px; width:40px; height:40px; background:#ddd; border:3px solid #f58746; border-radius:50%; }
.v2-thumb-classic u,.v2-thumb-brand u { position:absolute; height:5px; border-radius:3px; background:#d8dade; }
.v2-thumb-classic u:nth-of-type(1) { left:10px; top:78px; width:46px; background:#9aa0aa; }
.v2-thumb-classic u:nth-of-type(2) { left:10px; top:90px; width:64px; }
.v2-thumb-brand { background:#004646; }
.v2-thumb-brand img { position:absolute; display:block; max-width:none; }
.v2-thumb-brand img:first-child { top:11px; left:50%; width:30px; transform:translateX(-50%); }
.v2-thumb-brand img:nth-child(2) { top:31px; left:50%; width:50px; height:45px; transform:translateX(-50%); z-index:2; }
.v2-thumb-brand i { position:absolute; inset:48px 0 0; background:#fff; border-radius:14px 14px 0 0; }
.v2-thumb-brand u { left:50%; transform:translateX(-50%); }
.v2-thumb-brand u:nth-of-type(1) { top:84px; width:44px; background:#004646; }
.v2-thumb-brand u:nth-of-type(2) { top:95px; width:60px; background:#9bb3b3; }
.v2-field-hint { display:none; margin:-8px 0 16px; color:var(--muted); font-size:12.5px; line-height:1.45; }
.v2 form:has(input[name=template][value="2"]:checked) .v2-field-hint { display:block; }
.v2 form:has(input[name=template][value="2"]:checked) [data-v2-logo-field] { display:none; }

/* Empty state, pager, toasts */
.v2-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:64px 24px 68px; text-align:center; }
.v2-empty-icon { display:grid; place-items:center; width:64px; height:64px; margin-bottom:10px; border-radius:20px; color:var(--orange); background:var(--orange-tint); }
.v2-empty-icon .v2-icon { width:30px; height:30px; stroke-width:1.5; }
.v2-empty h2 { margin:0; font-size:19px; font-weight:650; letter-spacing:-.02em; }
.v2-empty p { max-width:320px; margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.v2-pager { display:flex; align-items:center; justify-content:center; gap:10px; padding:22px 0 0; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.v2-pager span.v2-icon-button { opacity:.3; cursor:default; }
.v2-pager span.v2-icon-button:hover { background:none; color:var(--muted); }
.v2-toasts { position:fixed; z-index:120; bottom:max(24px,env(safe-area-inset-bottom)); left:calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); translate:-50% 0; display:flex; flex-direction:column; align-items:center; gap:8px; width:max-content; max-width:calc(100vw - 32px); pointer-events:none; }
.v2-toast { display:flex; align-items:center; gap:10px; min-height:44px; max-width:100%; padding:9px 18px 9px 12px; color:var(--ink); background:rgba(255,255,255,.9); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); border:.5px solid rgba(0,0,0,.08); border-radius:999px; box-shadow:0 12px 34px rgba(0,30,30,.15),0 1px 3px rgba(0,30,30,.08); font-size:14px; font-weight:500; pointer-events:auto; animation:v2-toast-in .5s var(--spring) both,v2-toast-out .3s ease-in 3.6s forwards; }
/* Hover holds the toast on screen without freezing its entrance. */
.v2-toast:hover { animation-play-state:running,paused; }
/* Toasts rise above the floating selection bar instead of covering it. */
body.v2:has([data-v2-selection-bar]:not([hidden])) .v2-toasts { bottom:calc(max(24px,env(safe-area-inset-bottom)) + 62px); }
.v2-toast .v2-icon { width:22px; height:22px; }
.v2-toast-ok { color:var(--teal); }
.v2-toast-error { display:none; color:var(--red); }
.v2-toast.is-error .v2-toast-ok { display:none; }
.v2-toast.is-error .v2-toast-error { display:inline-block; }
.v2-toast.has-action { padding-right:7px; animation-delay:0s,8s; }
.v2-toast.is-error { animation-delay:0s,6.5s; }
/* Saving: the form stays put and shows progress on its button. */
.v2 form.is-sending { cursor:progress; }
.v2 form.is-sending button { pointer-events:none; }
.v2 .button.primary .v2-icon { stroke-width:2.4; }
/* On pages with a Save row the notice sits above it, and plain notices never block clicks on what is beneath them. */
.v2-toast:not(.has-action) { pointer-events:none; }
body.v2:has(.v2-content .form-actions) .v2-toasts { bottom:calc(max(24px,env(safe-area-inset-bottom)) + 76px); }
.v2-toast-text { min-width:0; overflow-wrap:anywhere; }
.v2-toast-action { height:30px; margin-left:4px; padding:0 13px; border:0; border-radius:999px; color:var(--teal); background:var(--teal-tint); font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; }
.v2-toast-action:hover { background:rgba(0,70,70,.16); }
.v2 .alert { padding:12px 16px; border-radius:12px; font-size:13.5px; }

/* Drag and drop */
.v2 .v2-nav-item.is-drop-target,.v2 .v2-drop-target.is-drop-target { color:var(--teal); background:rgba(220,75,0,.13); box-shadow:inset 0 0 0 2px var(--orange); }
.v2 .v2-folder-card.is-drop-target { border-color:var(--orange); background:#fffaf6; box-shadow:0 0 0 4px rgba(220,75,0,.16); }
.v2-folder-card.is-drop-target .v2-folder-front { transform:perspective(420px) rotateX(-24deg); }
.v2-folder-card.is-drop-target .v2-paper { translate:0 -8px; }
.v2-drop-tray { position:fixed; z-index:80; right:26px; bottom:22px; left:calc(var(--sidebar-w) + 26px); padding:16px; background:rgba(255,255,255,.92); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); border:.5px solid rgba(0,0,0,.08); border-radius:20px; box-shadow:0 18px 60px rgba(0,40,40,.18); animation:v2-rise .4s var(--spring); }
.v2-drop-tray > strong { display:block; margin:0 0 12px 2px; color:var(--muted); font-size:13px; font-weight:600; }
.v2-drop-tray > div { display:flex; flex-wrap:wrap; gap:8px; max-height:30vh; overflow:auto; padding:3px; }
.v2-drop-target { display:flex; align-items:center; gap:8px; max-width:100%; min-height:48px; padding:0 16px 0 12px; color:var(--ink-2); background:#fff; border:0; border-radius:12px; box-shadow:0 0 0 1px var(--line); font:inherit; font-size:14px; font-weight:500; overflow-wrap:anywhere; transition:background-color .15s,box-shadow .15s,color .15s; }
.v2-drop-target .v2-icon { color:var(--orange); }
.v2-drag-ghost { position:fixed; top:0; left:0; z-index:90; max-width:220px; padding:12px 16px; color:var(--teal); background:#fff; border-radius:13px; box-shadow:0 12px 32px rgba(0,40,40,.22),0 0 0 1px rgba(220,75,0,.3); font-size:13px; font-weight:600; pointer-events:none; }
[data-v2-group-context] { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
[data-v2-group-context] .v2-rename-input { -webkit-user-select:text; user-select:text; }

/* Secondary pages inside the shell */
.v2-mobile-header { display:none; }
.v2-back { display:inline-flex; align-items:center; gap:2px; margin:28px 32px 0 26px; padding:6px 8px 6px 2px; color:var(--teal); font-size:15px; font-weight:500; border-radius:8px; }
.v2-back .v2-icon { width:20px; height:20px; stroke-width:2; }
.v2-back:hover { background:var(--teal-tint); }
.v2-content > .container,.v2-content > .narrow { width:calc(100% - 64px); max-width:1050px; margin-top:18px; }
.v2-content > .narrow { max-width:640px; }
.v2 .page-heading .eyebrow { display:none; }
.v2 .page-heading h1 { color:var(--teal); font-size:30px; font-weight:700; letter-spacing:-.03em; }
.v2 .page-heading p.muted { display:none; }
.v2 .page-heading p.v2-context { display:block; }
.v2 .page-heading > form { margin:0; flex:none; }
.v2 .panel { border-color:var(--line); border-radius:var(--radius); box-shadow:none; }
.v2 .edit-grid { grid-template-columns:200px minmax(0,600px); gap:20px; }
.v2 .qr-preview img { width:152px; padding:8px; background:#fff; border-radius:14px; box-shadow:0 0 0 1px var(--line); }
.v2 .qr-preview p { display:none; }
.v2-field-section { border-top:1px solid var(--line); }
.v2-field-section summary { display:flex; align-items:center; justify-content:space-between; min-height:54px; padding:12px 0; color:var(--ink-2); font-weight:600; list-style:none; cursor:pointer; }
.v2-field-section summary::-webkit-details-marker { display:none; }
.v2-field-section summary .v2-icon { width:18px; height:18px; color:var(--faint); transition:transform .3s var(--ease); }
.v2-field-section[open] summary .v2-icon { transform:rotate(180deg); }
.v2-field-section > div { padding:10px 0; }
.v2 .edit-grid .form-actions { position:sticky; bottom:0; margin-bottom:-14px; padding:14px 0; background:rgba(255,255,255,.92); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border-top:1px solid var(--line); }
.v2 .table-wrap { background:#fff; border:1px solid var(--line); border-radius:14px; }
/* Shared management pages: v1's slate, blue and green swapped for the brand palette (v2 only). */
.v2 th { color:var(--teal); background:#f0f5f4; border-bottom-color:var(--line); }
.v2 td { border-bottom-color:var(--line); }
.v2 tbody tr:hover { background:#f8fbfa; }
.v2 code { color:var(--ink-2); background:var(--fill); }
.v2 .badge { color:var(--ink-2); background:var(--fill); }
.v2 .group-chip { color:var(--teal); background:var(--teal-tint); }
.v2 .status-pill { color:var(--teal); background:var(--teal-tint); }
.v2 .status-pill.inactive { color:var(--muted); background:var(--fill); }
.v2 .info-note { color:var(--teal); background:var(--teal-tint); }
.v2 .alert.success { color:var(--teal); background:rgba(0,70,70,.07); border-color:rgba(0,70,70,.18); }
.v2 .alert.error { color:#9c1b2e; background:#fdecee; border-color:#f4c3ca; }
.v2 .check-label:hover { background:#f3f7f6; }
.v2 .permission-box { border-color:var(--line); }
.v2 .org-row.is-saved { border-color:rgba(0,70,70,.35); box-shadow:0 4px 20px rgba(0,70,70,.1); }
.v2 .save-status { color:var(--teal); background:rgba(0,70,70,.07); border-color:rgba(0,70,70,.18); }
.v2 .org-logo-frame { background:var(--teal); border-color:var(--teal); }
.v2 .org-logo-picker:hover .org-logo-frame,.v2 .org-logo-picker:focus-within .org-logo-frame { border-color:var(--orange); box-shadow:0 0 0 3px rgba(220,75,0,.16); }
.v2 .org-logo-overlay { background:rgba(0,40,40,.78); }
.v2 .activity-item summary,.v2 .disclosure-title { color:var(--teal); }
.v2 .password-toggle:hover { color:var(--teal); background:var(--fill); }

/* Signed-out v2 screens: the login is a byDIDI name card on the teal backdrop. */
body.v2.login-page { background:#003a3a; overflow-x:clip; touch-action:manipulation; }
/* Never let a phone inflate or double-tap-zoom this page; inputs below are 16px so focusing one doesn't zoom either. */
html:has(.v2-login) { -webkit-text-size-adjust:100%; text-size-adjust:100%; touch-action:manipulation; }
.v2-login { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; min-height:100dvh; padding:28px 20px; }
.v2-login-ambient { position:fixed; inset:0; overflow:hidden; pointer-events:none; background:radial-gradient(120% 80% at 50% 0%,#005252 0%,#004040 45%,#003030 100%); }
.v2-login-ambient span { position:absolute; border-radius:50%; will-change:transform; }
.v2-login-ambient span:nth-child(1) { width:70vmax; height:70vmax; left:-28vmax; bottom:-38vmax; background:radial-gradient(closest-side,rgba(220,75,0,.34),rgba(220,75,0,0)); animation:v2-drift-a 26s ease-in-out infinite alternate; }
.v2-login-ambient span:nth-child(2) { width:80vmax; height:80vmax; right:-34vmax; top:-46vmax; background:radial-gradient(closest-side,rgba(64,160,150,.26),rgba(64,160,150,0)); animation:v2-drift-b 32s ease-in-out infinite alternate; }
/* Film grain keeps the large teal field from looking flat. */
.v2-login-ambient span:nth-child(3) { inset:-50%; width:auto; height:auto; border-radius:0; opacity:.09; mix-blend-mode:overlay; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.v2-login-stage { position:relative; z-index:1; width:min(400px,100%); animation:v2-login-in 1.1s var(--spring) backwards; }
.v2-login-card { position:relative; overflow:hidden; display:flex; flex-direction:column; background:var(--teal); border-radius:22px; box-shadow:0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.14),0 50px 90px -30px rgba(0,0,0,.6),0 22px 40px -22px rgba(0,0,0,.45);  }
.v2-login-head { position:relative; height:150px; flex:none; display:flex; align-items:flex-start; justify-content:center; padding-top:38px; background:radial-gradient(110% 100% at 50% 0%,rgba(255,255,255,.09),rgba(255,255,255,0) 70%); }
.v2-login-logo { display:block; width:104px; height:auto; animation:v2-fade-down .9s var(--ease) .25s backwards; }
/* The D sits where the portrait does on the card, overlapping the white sheet. */
.v2-login-mark { position:absolute; z-index:3; top:92px; left:50%; width:210px; aspect-ratio:1851/1658; margin-left:-105px; filter:drop-shadow(0 18px 26px rgba(150,45,0,.28)); animation:v2-mark-in 1.2s var(--spring) .15s backwards; }
.v2-login-mark > img { display:block; width:100%; height:100%; }
.v2 .v2-login-qr { position:absolute; left:36%; top:25%; width:34%; height:auto; color:#fff; stroke-width:1.5; opacity:.95; filter:drop-shadow(0 2px 6px rgba(120,35,0,.3)); }
.v2-login-sheen { position:absolute; inset:0; -webkit-mask:url("/static/img/namecard/element.svg") 0 0/100% 100% no-repeat; mask:url("/static/img/namecard/element.svg") 0 0/100% 100% no-repeat; background:linear-gradient(110deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.34) 50%,rgba(255,255,255,0) 62%) 0 0/300% 100% no-repeat; background-position:150% 0; animation:v2-sheen 8s ease-in-out 1.8s infinite; }
.v2-login-body { position:relative; z-index:2; flex:1; display:flex; flex-direction:column; padding:152px 34px 26px; background:#fff; border-radius:50px 50px 0 0; text-align:center; }
.v2-login-body > * { animation:v2-rise-in .8s var(--spring) backwards; }
.v2-login-body > :nth-child(1) { animation-delay:.32s; } .v2-login-body > :nth-child(2) { animation-delay:.38s; }
.v2-login-body > :nth-child(3) { animation-delay:.44s; } .v2-login-body > :nth-child(4) { animation-delay:.48s; }
.v2-login-body > :nth-child(5) { animation-delay:.52s; } .v2-login-body > :nth-child(6) { animation-delay:.56s; }
.v2-login-body > :nth-child(7) { animation-delay:.6s; } .v2-login-body > :nth-child(8) { animation-delay:.64s; }
.v2-login-body > :nth-child(9) { animation-delay:.68s; }
.v2-login-title { margin:0; color:var(--teal); font-family:Exo,-apple-system,BlinkMacSystemFont,sans-serif; font-size:34px; font-style:italic; font-weight:400; line-height:1; letter-spacing:-.05em; text-transform:uppercase; }
.v2-login-title b { font-weight:700; }
.v2-login-role { margin:10px 0 24px; color:var(--teal); font-family:Exo,-apple-system,BlinkMacSystemFont,sans-serif; font-size:16px; font-weight:700; line-height:1.2; letter-spacing:.03em; }
.v2-login-error { display:flex; align-items:flex-start; gap:8px; margin:-6px 0 14px; padding:10px 12px; color:#9c1b2e; background:#fdecee; border-radius:12px; font-size:13.5px; line-height:1.4; text-align:left; }
.v2-login-error .v2-icon { width:18px; height:18px; margin-top:1px; color:var(--red); }
.has-error .v2-login-error { animation:v2-rise-in .6s var(--spring) .4s backwards,v2-shake .45s var(--ease) 1s; }
.v2 .v2-login-field { position:relative; display:flex; align-items:center; gap:2px; height:56px; margin:0 0 12px; padding:0 8px 0 10px; color:var(--ink); background:#f4f8f7; border:1px solid #dfe8e7; border-radius:16px; font-size:15px; font-weight:400; text-align:left; cursor:text; transition:border-color .2s,background-color .2s,box-shadow .25s; }
.v2 .v2-login-field:hover { border-color:#cfdcda; }
.v2 .v2-login-field:focus-within { background:#fff; border-color:var(--orange); box-shadow:0 0 0 4px rgba(220,75,0,.12),0 8px 20px -12px rgba(220,75,0,.5); }
.v2 .v2-login-chip { display:grid; place-items:center; flex:none; margin:0; cursor:pointer; width:34px; height:34px; color:#fff; background:var(--orange); border-radius:50%; box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 10px -4px rgba(220,75,0,.7); transition:transform .3s var(--spring); }
.v2-login-chip .v2-icon { width:18px; height:18px; stroke-width:1.9; }
.v2 .v2-login-field:focus-within .v2-login-chip { transform:scale(1.06); }
.v2 .v2-login-field input { flex:1; min-width:0; height:100%; margin:0; padding:19px 10px 5px 12px; color:var(--ink); background:none; border:0; border-radius:0; box-shadow:none; outline:none; font-size:16px; font-weight:500; letter-spacing:.005em; }
.v2 .v2-login-field input:focus { border:0; box-shadow:none; outline:none; }
.v2 .v2-login-field input:-webkit-autofill { -webkit-box-shadow:0 0 0 40px #f4f8f7 inset; -webkit-text-fill-color:var(--ink); caret-color:var(--ink); }
.v2 .v2-login-field:focus-within input:-webkit-autofill { -webkit-box-shadow:0 0 0 40px #fff inset; }
.v2 .v2-login-label { position:absolute; top:50%; left:58px; margin:0; color:var(--muted); font-size:15px; font-weight:500; pointer-events:none; transform:translateY(-50%); transform-origin:0 50%; transition:top .22s var(--ease),transform .22s var(--ease),color .2s; }
.v2 .v2-login-field input:focus ~ .v2-login-label,.v2 .v2-login-field input:not(:placeholder-shown) ~ .v2-login-label { top:17px; color:var(--teal); transform:translateY(-50%) scale(.76); }
.v2 .v2-login-field input:-webkit-autofill ~ .v2-login-label { top:17px; transform:translateY(-50%) scale(.76); }
.v2 .v2-login-field input:focus ~ .v2-login-label { color:var(--orange-dark); }
.v2-login .password-toggle { position:static; flex:none; width:40px; height:40px; color:var(--faint); border-radius:12px; }
.v2-login .password-toggle:hover { color:var(--teal); background:var(--fill); }
.v2-login-caps { display:flex; align-items:center; gap:6px; margin:-4px 0 10px 4px; color:var(--orange-dark); font-size:12.5px; font-weight:600; text-align:left; }
.v2-login-caps::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--orange); }
.v2-login-submit { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:54px; margin-top:6px; color:#fff; background:linear-gradient(180deg,#085858 0%,#004646 100%); border:0; border-radius:999px; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 14px 26px -14px rgba(0,40,40,.85); font-family:Exo,-apple-system,BlinkMacSystemFont,sans-serif; font-size:16.5px; font-weight:700; letter-spacing:.02em; cursor:pointer; transition:transform .35s var(--spring),box-shadow .35s var(--ease),background-color .2s; }
.v2-login-submit::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,rgba(255,255,255,0) 35%,rgba(255,255,255,.22) 50%,rgba(255,255,255,0) 65%) 150% 0/300% 100% no-repeat; transition:background-position .9s var(--ease); }
.v2-login-submit:hover { box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 20px 32px -14px rgba(0,40,40,.9); }
.v2-login-submit:hover::after { background-position:-50% 0; }
.v2-login-submit:active { transform:scale(.985); }
.v2-login-spinner { display:none; width:18px; height:18px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:v2-spin .8s linear infinite; }
.v2-login.is-submitting .v2-login-submit { pointer-events:none; }
.v2-login.is-submitting .v2-login-spinner { display:block; }
.v2-login-foot { display:flex; align-items:center; justify-content:center; gap:6px; margin:18px 0 0; color:var(--muted); font-size:12.5px; }
.v2-login-foot .v2-icon { width:14px; height:14px; color:var(--teal); stroke-width:1.9; }
@keyframes v2-login-in { from { opacity:0; transform:translateY(28px) scale(.97); } }
@keyframes v2-mark-in { from { opacity:0; transform:translateY(46px) rotate(-4deg); } }
@keyframes v2-fade-down { from { opacity:0; transform:translateY(-8px); } }
@keyframes v2-rise-in { from { opacity:0; transform:translateY(12px); } }
@keyframes v2-sheen { 0% { background-position:150% 0; } 22%,100% { background-position:-50% 0; } }
@keyframes v2-spin { to { transform:rotate(360deg); } }
@keyframes v2-drift-a { to { transform:translate(10vmax,-6vmax) scale(1.12); } }
@keyframes v2-drift-b { to { transform:translate(-8vmax,7vmax) scale(.92); } }
@media (max-height:740px) and (min-width:521px) {
  .v2-login-head { height:132px; padding-top:30px; }
  .v2-login-mark { top:74px; width:180px; margin-left:-90px; }
  .v2-login-body { padding-top:124px; }
  .v2-login-role { margin-bottom:18px; }
}
@media (max-height:520px) and (orientation:landscape) and (max-width:900px) {
  .v2-login { padding:16px 20px; }
  .v2-login-head { height:96px; padding-top:20px; }
  .v2-login-logo { width:88px; }
  .v2-login-mark { top:54px; width:122px; margin-left:-61px; }
  .v2-login-body { padding-top:86px; }
  .v2-login-title { font-size:28px; }
  .v2-login-role { margin:6px 0 14px; font-size:14px; }
}
@media (max-width:520px) {
  body.v2.login-page { background:#fff; }
  .v2-login { align-items:stretch; justify-content:flex-start; padding:0; }
  .v2-login-ambient { display:none; }
  .v2-login-stage { width:100%; animation:v2-fade-in .6s ease backwards; }
  .v2-login-card { flex:1; min-height:100vh; min-height:100dvh; overflow:visible; border-radius:0; box-shadow:none; }
  /* Teal continues above the card, so pulling the page down never exposes white above the header. */
  .v2-login-card::before { content:""; position:absolute; left:0; right:0; bottom:100%; height:100vh; background:var(--teal); }
  .v2-login-head { height:150px; padding-top:38px; }
  .v2-login-mark { top:92px; }
  .v2-login-body { padding:152px 24px max(32px,calc(20px + env(safe-area-inset-bottom))); border-radius:44px 44px 0 0; }
}
@media (max-width:520px) and (max-height:700px) {
  .v2-login-head { height:128px; padding-top:28px; }
  .v2-login-mark { top:74px; width:176px; margin-left:-88px; }
  .v2-login-body { padding-top:124px; }
  .v2-login-role { margin-bottom:16px; }
}
/* Taller phones: a larger header and D, and the form settles into the middle of the sheet rather than hugging the top. */
@media (max-width:520px) and (min-height:800px) {
  .v2-login-head { height:176px; padding-top:46px; }
  .v2-login-logo { width:112px; }
  .v2-login-mark { top:108px; width:236px; margin-left:-118px; }
  .v2-login-body { justify-content:center; padding-top:196px; padding-bottom:max(56px,calc(40px + env(safe-area-inset-bottom))); }
  .v2-login-title { font-size:37px; }
  .v2-login-role { margin:12px 0 28px; font-size:17px; }
  .v2 .v2-login-field { height:58px; margin-bottom:14px; }
  .v2-login-submit { height:56px; margin-top:8px; }
  .v2-login-foot { margin-top:22px; }
}
@media (max-width:520px) and (max-height:620px) {
  .v2-login-head { height:112px; padding-top:22px; }
  .v2-login-logo { width:92px; }
  .v2-login-mark { top:60px; width:150px; margin-left:-75px; }
  .v2-login-body { padding-top:104px; }
  .v2-login-title { font-size:30px; }
  .v2-login-role { margin:8px 0 12px; font-size:14.5px; }
  .v2 .v2-login-field { height:52px; margin-bottom:10px; }
  .v2-login-submit { height:50px; }
  .v2-login-foot { margin-top:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .v2-login-ambient span,.v2-login-sheen { animation:none !important; }
}

/* Hover effects only where a pointer can hover, so taps never leave rows tinted. */
@media (hover:hover) {
  .v2-folder-card:hover { border-color:#cfe0dd; box-shadow:0 10px 30px rgba(0,70,70,.1),0 1px 3px rgba(0,70,70,.05); }
  .v2-folder-card:hover .v2-paper { translate:0 -6px; }
  .v2-folder-card:hover .papers-2 .v2-paper:nth-child(1) { translate:-17px -3px; }
  .v2-folder-card:hover .papers-2 .v2-paper:nth-child(2) { translate:17px -5px; }
  .v2-folder-card:hover .papers-3 .v2-paper:nth-child(1) { translate:-30px 1px; }
  .v2-folder-card:hover .papers-3 .v2-paper:nth-child(2) { translate:0 -7px; }
  .v2-folder-card:hover .papers-3 .v2-paper:nth-child(3) { translate:30px 1px; }
  .v2-qr-row:hover { background:#f8fbfa; }
  .v2-qr-row:hover .v2-open-record { color:#a9b4b1; }
  .v2-nav-item:hover { background:var(--fill-2); }
  .v2-menu-group > a:hover,.v2-menu-group > button:hover,.v2-menu-group > form > button:hover { background:var(--fill-2); }
  .v2-title-button:hover { background:var(--fill-2); }
  .v2-title-button:hover > .v2-icon,.v2-title-button:focus-visible > .v2-icon { opacity:1; }
}

/* Motion */
@keyframes v2-dialog-in { from { opacity:0; transform:scale(.95); } }
@keyframes v2-dialog-out { to { opacity:0; transform:scale(.97); } }
@keyframes v2-sheet-in { from { transform:translateY(100%); } }
@keyframes v2-sheet-out { to { transform:translateY(100%); } }
@keyframes v2-fade-in { from { opacity:0; } }
@keyframes v2-fade-out { to { opacity:0; } }
@keyframes v2-toast-in { from { opacity:0; transform:translateY(18px) scale(.94); } }
@keyframes v2-toast-out { to { opacity:0; transform:translateY(10px) scale(.97); visibility:hidden; } }
@keyframes v2-rise { from { opacity:0; transform:translateY(18px); } }
@keyframes v2-pop { from { opacity:0; transform:scale(.92); } }
@keyframes v2-shake { 20% { transform:translateX(-6px); } 40% { transform:translateX(5px); } 60% { transform:translateX(-3px); } 80% { transform:translateX(2px); } }
.v2-dialog[open],.v2-alert[open] { animation:v2-dialog-in .28s var(--spring); }
.v2-dialog[open]::backdrop,.v2-alert[open]::backdrop { animation:v2-fade-in .24s ease-out; }
.v2-dialog.is-closing,.v2-alert.is-closing { animation:v2-dialog-out .18s ease-in forwards; pointer-events:none; }
.v2-dialog.is-closing::backdrop,.v2-alert.is-closing::backdrop { animation:v2-fade-out .18s ease-in forwards; }

/* Responsive */
@media (min-width:1350px) { .v2-qr-row { min-height:88px; } }
@media (max-width:1000px) {
  body.v2 { --sidebar-w:208px; }
  .v2-sidebar { padding-left:10px; padding-right:10px; }
  .v2-library { padding:40px 28px 120px; }
  .v2-row-labels { width:96px; }
  .v2-group-label { max-width:96px; }
  .v2-qr-row { gap:10px; }
  .v2-readonly { display:none; }
  .v2 .edit-grid { grid-template-columns:1fr; }
  .v2 .qr-preview { display:none; }
}
@media (max-width:760px) {
  body.v2 { --sidebar-w:0px; }
  .v2-shell { display:block; }
  .v2-sidebar { display:none; }
  .v2-mobile-header { display:flex; justify-content:space-between; align-items:center; padding:max(10px,env(safe-area-inset-top)) 12px 10px 8px; background:var(--teal); }
  .v2-mobile-header .v2-text-button { color:var(--cream); font-size:16px; font-weight:500; }
  .v2-mobile-header .v2-text-button:hover,.v2-mobile-header .v2-text-button:active { background:rgba(255,255,255,.12); }
  .v2-mobile-header .v2-text-button .v2-icon { width:22px; height:22px; }
  .v2-avatar-button { display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; border-radius:50%; background:none; cursor:pointer; }
  .v2-avatar-button .v2-avatar { width:30px; height:30px; font-size:11.5px; }
  .v2-library { padding:18px 20px 120px; }
  .v2-library-heading { gap:12px; margin-bottom:18px; }
  .v2-library h1 { font-size:31px; }
  .v2-drop-tray { right:12px; bottom:12px; left:12px; }
  .v2-content > .container,.v2-content > .narrow { width:calc(100% - 32px); }
  .v2-back { margin:12px 16px 0 10px; }
  .v2-dialog { max-height:88dvh; }
}
@media (max-width:520px) {
  .v2-library { padding-right:16px; padding-left:16px; }
  .v2-library h1 { font-size:30px; }
  .v2 .v2-new-button { width:40px; padding:0; border-radius:50%; }
  .v2 .v2-new-button .v2-icon { width:21px; height:21px; margin:0; stroke-width:2.1; }
  .v2-new-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .v2-toolbar { gap:8px; }
  .v2-filter-button { width:40px; padding:0; }
  .v2-filter-button > span { display:none; }
  .v2-select-toggle { min-width:0; padding:0 6px; }
  .v2-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .v2-folder-card { padding:18px 10px 14px; border-radius:16px; }
  .v2-folder-art { width:112px; height:88px; margin-bottom:12px; }
  .v2-folder-papers { inset:6px 0 0; }
  .v2-paper { width:40px; height:40px; margin-left:-20px; padding:3.5px; border-radius:6px; }
  .papers-3 .v2-paper:nth-child(1) { translate:-23px 4px; }
  .papers-3 .v2-paper:nth-child(3) { translate:23px 4px; }
  .v2-folder-front { inset:35px 0 0; border-radius:8px; }
  .v2-folder-name { font-size:14px; }
  .v2-add-folder { min-height:176px; }
  .v2-qr-row { --pad:14px; --thumb:46px; --gap:12px; min-height:76px; padding:12px 6px 12px var(--pad); gap:8px; }
  .v2-qr-thumb { padding:3px; border-radius:9px; }
  .v2-record-info strong { font-size:15px; }
  .v2-record-subtitle,.v2-row-labels,.v2-open-record { display:none; }
  .v2-mobile-tags { display:block; color:var(--muted); font-size:12.5px; line-height:1.35; overflow-wrap:anywhere; }
  .v2-selection-mode .v2-qr-row + .v2-qr-row::before { left:calc(var(--pad) + 32px + var(--thumb) + var(--gap)); }
  .v2-selection-bar { left:50%; gap:10px; max-width:calc(100vw - 24px); }
  .v2-selection-bar > span { min-width:0; }
  .v2-dialog,.v2-dialog-menu { width:100%; max-width:none; max-height:92dvh; margin:auto 0 0; padding:0 16px max(20px,env(safe-area-inset-bottom)); border-radius:20px 20px 0 0; }
  .v2-dialog-heading { margin:0 -16px 6px; padding:24px 14px 12px 18px; }
  .v2-grabber { display:block; position:absolute; top:7px; left:50%; z-index:3; width:36px; height:5px; margin-left:-18px; border-radius:3px; background:rgba(0,70,70,.25); }
  .v2-dialog[open] { animation:v2-sheet-in .42s var(--spring); }
  .v2-dialog.is-closing { animation:v2-sheet-out .26s cubic-bezier(.4,0,1,1) forwards; }
  .v2-dialog.is-dragging { transition:none; }
  .v2-grabber,.v2-dialog-heading { touch-action:none; }
  .v2-dialog.is-settling { transition:transform .32s var(--spring); }
  .v2 .page-heading h1 { font-size:27px; }
  .v2 .page-heading > form { margin-top:15px; }
  .v2-dialog .form-actions .button { flex:1; min-height:46px; border-radius:13px; }
}
/* Without hover, keep the rename affordance faintly visible on titles. */
@media (hover:none) { .v2-search-key { display:none; } .v2-title-button > .v2-icon { opacity:.55; } }
@media (prefers-reduced-motion:reduce) {
  .v2 *,.v2 *::before,.v2 *::after,.v2 ::backdrop { animation-duration:.01ms !important; animation-delay:0s !important; transition-duration:.01ms !important; }
  .v2-toast { animation:none !important; }
}

/* Check-ins */
.ci-page { padding-bottom:56px; }
.ci-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.ci-eyebrow { margin:0 0 2px; color:var(--muted); font-size:13px; font-weight:500; }
.ci-head h1 { margin:0; color:var(--teal); font-size:30px; font-weight:700; line-height:1.15; letter-spacing:-.03em; overflow-wrap:anywhere; }
.ci-head .button { flex:none; }
.ci-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
.ci-range a { padding:0 11px; }
.ci-chip { display:inline-flex; align-items:center; gap:3px; min-height:32px; max-width:100%; padding:0 7px 0 12px; color:var(--teal); background:var(--teal-tint); border-radius:999px; font-size:13px; font-weight:600; }
.ci-chip .v2-icon { width:14px; height:14px; stroke-width:2.2; opacity:.7; }
.ci-chip:hover { background:rgba(0,70,70,.14); }
.ci-empty { padding:56px 24px; text-align:center; border:1px solid var(--line); border-radius:var(--radius); }
.ci-empty strong { display:block; color:var(--ink); font-size:16px; font-weight:600; }
.ci-empty p { margin:4px 0 0; color:var(--muted); }

.ci-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:36px; }
.ci-stat { display:flex; flex-direction:column; min-width:0; padding:15px 18px 14px; border:1px solid var(--line); border-radius:var(--radius); }
.ci-stat-label { color:var(--muted); font-size:12.5px; font-weight:500; }
.ci-stat strong { margin:3px 0 1px; overflow:hidden; color:var(--ink); font-size:28px; font-weight:700; line-height:34px; letter-spacing:-.03em; font-variant-numeric:tabular-nums; white-space:nowrap; text-overflow:ellipsis; }
.ci-stat.is-text strong { font-size:20px; letter-spacing:-.02em; }
.ci-stat-sub { color:var(--muted); font-size:12.5px; }

.ci-card { min-width:0; padding:18px 20px 16px; border:1px solid var(--line); border-radius:var(--radius); }
.ci-card-title { margin:0; color:var(--ink); font-size:15px; font-weight:600; letter-spacing:-.01em; }
.ci-card-sub { margin:1px 0 0; color:var(--muted); font-size:12.5px; }
.ci-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0 36px; }


.ci-rank { margin:10px -8px 0; padding:0; list-style:none; }
.ci-rank-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:5px 12px; padding:7px 8px 9px; color:inherit; border-radius:9px; }
a.ci-rank-row { transition:background-color .12s; }
a.ci-rank-row:hover { background:var(--fill-2); }
.ci-rank-label { overflow:hidden; color:var(--ink); font-size:14px; white-space:nowrap; text-overflow:ellipsis; }
.ci-rank-label .ci-flag { display:inline-block; margin-right:6px; text-align:left; }
.ci-rank-label small { margin-left:3px; color:var(--muted); font-size:12.5px; }
.ci-rank-value { color:var(--ink); font-size:13.5px; font-weight:600; font-variant-numeric:tabular-nums; }
.ci-rank-value small { display:inline-block; min-width:36px; color:var(--muted); font-size:12.5px; font-weight:400; text-align:right; }
.ci-bar { grid-column:1 / -1; display:block; width:100%; height:5px; }
.ci-bar-track { fill:var(--fill); }
.ci-bar-fill { fill:var(--teal); }
.ci-bar-fill.is-rest { fill:var(--faint); }

.ci-log { scroll-margin-top:16px; }
.ci-log-title { margin:0; color:var(--ink); font-size:20px; font-weight:700; letter-spacing:-.02em; }
.ci-day { display:flex; align-items:baseline; gap:7px; margin:18px 0 7px; padding:0 2px; color:var(--ink-2); font-size:13px; font-weight:600; }
.ci-day small { color:var(--muted); font-size:12.5px; font-weight:400; font-variant-numeric:tabular-nums; }
.ci-list { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); container-type:inline-size; }
.ci-row + .ci-row { border-top:1px solid var(--line); }
.ci-row summary { display:grid; grid-template-columns:66px minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,.65fr) 64px 16px; align-items:center; gap:12px; min-height:50px; padding:7px 14px 7px 16px; cursor:pointer; list-style:none; transition:background-color .12s; }
.ci-row summary::-webkit-details-marker { display:none; }
.ci-row summary:hover,.ci-row[open] summary { background:var(--fill-2); }
.ci-row summary:focus-visible { outline-offset:-3px; }
.ci-time { color:var(--ink); font-size:13.5px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ci-place,.ci-device { display:flex; align-items:center; gap:7px; min-width:0; color:var(--ink); }
.ci-device { color:var(--ink-2); }
.ci-text { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ci-network { color:var(--muted); }
.ci-flag { flex:none; width:18px; font-size:15px; line-height:1; text-align:center; }
.ci-row-icon { flex:none; width:18px; height:18px; color:var(--faint); }
.ci-tag-slot { display:flex; justify-content:flex-end; }
.ci-tag { padding:2px 8px; color:var(--teal); background:var(--teal-tint); border-radius:999px; font-size:11.5px; font-weight:600; white-space:nowrap; }
.ci-chevron { width:16px; height:16px; color:var(--faint); transition:transform .25s var(--ease); }
.ci-row[open] .ci-chevron { transform:rotate(90deg); }
.ci-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 20px; margin:0; padding:12px 16px 16px; background:var(--fill-2); }
.ci-facts dt { color:var(--muted); font-size:12px; font-weight:500; }
.ci-facts dd { margin:1px 0 0; color:var(--ink); overflow-wrap:anywhere; }
.ci-facts .is-wide { grid-column:1 / -1; }
.ci-ua { color:var(--ink-2) !important; font-size:12px; line-height:1.45; }
.ci-note { margin-top:22px; color:var(--muted); font-size:12.5px; line-height:1.5; }
.ci-note p { margin:0 0 4px; max-width:720px; }
.ci-note a { color:var(--teal); text-decoration:underline; text-underline-offset:2px; }
@container (max-width:760px) {
  .ci-row summary { grid-template-columns:66px minmax(0,1fr) minmax(0,1fr) 64px 16px; }
  .ci-network { display:none; }
}
@container (max-width:600px) {
  .ci-row summary { grid-template-columns:minmax(0,1fr) auto 16px; grid-template-areas:"time tag chevron" "place place chevron" "device device chevron"; gap:3px 8px; padding:10px 12px 11px 14px; }
  .ci-time { grid-area:time; }
  .ci-place { grid-area:place; }
  .ci-device { grid-area:device; }
  .ci-tag-slot { grid-area:tag; }
  .ci-chevron { grid-area:chevron; }
  .ci-facts { grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px 14px 14px; }
}
@media (max-width:1000px) {
  .ci-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .ci-panels { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px) {
  .ci-head { align-items:flex-start; flex-direction:column; gap:12px; }
  .ci-head h1 { font-size:27px; }
  .ci-stats { gap:8px; }
  .ci-panels { gap:8px; }
  .ci-stat { padding:12px 14px; }
  .ci-stat strong { font-size:24px; line-height:30px; }
  .ci-stat.is-text strong { font-size:17px; }
  .ci-card { padding:15px 15px 13px; }
  .ci-facts { grid-template-columns:minmax(0,1fr); }
}
