/* /try/: the web demo (LOCK 54, C Sandbox). Page frame first (site tokens), then the device, then the app inside it.
   Inside the device 1 CSS px = 1 pt; values come from the app's locks (05, 07, 08, 14, 15, 29, 31, 32, 35, 51, 52, 53). */
.try { --line: #26262a; --line-strong: #3a3a40; --ink: #eef1ef; --ink-soft: #a9b0ad; --ink-dim: #8a918e; --surface: #151517;
  --mint: #7EF0C8; --cyan: #5BCDEB; --coral: #FF5A6E; --amber: #FFB829; --tab: #9A9AA0; --sec: #8E8E93;
  --opal: linear-gradient(100deg, #E4FCA6, #B9FBD6 30%, #A6F3EF 60%, #A8E1FC 85%, #AFF9FA);
  --opal-c: conic-gradient(from var(--halo, 0deg), #E4FCA6, #B9FBD6, #A6F3EF, #A8E1FC, #AFF9FA, #E4FCA6);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  margin: 0; min-height: 100vh; min-height: 100dvh; background: #000; color: var(--ink); overflow: hidden; }
:where(.try) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.try button:disabled { cursor: default; }
.try .ic { display: block; flex: none; }
.try :focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- the page frame (C1-C3) ---------- */
.try-bar { position: relative; z-index: 5; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #000; }
.try-back { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-soft); font-size: 15px; text-decoration: none; white-space: nowrap; }
.try-back:hover { color: var(--ink); }
.try-back img { width: 26px; height: 26px; border-radius: 7px; }
.try-back .icon { width: 18px; height: 18px; }
.try-controls { flex: 1; display: flex; justify-content: center; align-items: center; gap: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: #000; flex: none; }
.seg button { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; transition: background .2s, color .2s; }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { background: #232327; color: var(--ink); }
.seg button:disabled { color: #55595a; }
.seg button:not(:disabled):not([aria-pressed="true"]):hover { color: var(--ink); }
.try-icon { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong) !important; display: grid; place-items: center; color: var(--ink); flex: none; }
.try-icon svg { width: 20px; height: 20px; }
.try-icon:hover { background: #151517 !important; }
.try-soon { color: var(--ink-dim); font-size: 14px; white-space: nowrap; }
.try-back { flex: none; }
/* a narrower window keeps every key whole: the back label, then the note, step aside (the key keeps its aria-label) */
@media (max-width: 1000px) { .try-back span { display: none; } }
@media (max-width: 900px) { .try-soon { display: none; } }
.try-main { display: flex; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.try-stage { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse 46% 52% at 50% 52%, rgba(126,240,200,.08), rgba(126,240,200,0) 70%); }
.todo { width: 360px; flex: none; border-left: 1px solid var(--line); padding: 30px 28px; display: flex; flex-direction: column; overflow-y: auto; background: #000; }
.todo-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.todo-head h1 { margin: 0; font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: 0; }
.todo-count { font-size: 14px; color: var(--ink-dim); }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px !important; border-radius: 12px; text-align: left; color: var(--ink-soft) !important; transition: background .2s; }
.todo-item:hover, .todo-item.open { background: var(--surface) !important; color: var(--ink) !important; }
.todo-tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #4a4e4d; display: grid; place-items: center; flex: none; transition: background .25s, border-color .25s; }
.todo-tick svg { width: 15px; height: 15px; opacity: 0; color: #0b0b0b; stroke-width: 2.4; }
.todo-item[aria-pressed="true"] .todo-tick { background: var(--mint); border-color: var(--mint); }
.todo-item[aria-pressed="true"] .todo-tick svg { opacity: 1; }
.todo-item[aria-pressed="true"] .todo-name { color: var(--ink-dim); }
.todo-item.just .todo-tick { animation: tick-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes tick-pop { 40% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(126,240,200,.22); } }
.todo-text { flex: 1; min-width: 0; }
.todo-name { display: block; font-size: 15px; }
.todo-hint { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 1px; }
.todo-go { width: 16px; height: 16px; color: var(--ink-dim); }
.todo-note { margin: 22px 12px 0; font-size: 13px; color: var(--ink-dim); line-height: 1.45; }
.todo-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.todo-foot .textlink { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.todo-site, .todo-soon, .todo-grab, .todo-close, .todo-dev, .fkey, .todo-scrim, .duo-open, .full-x, .turn-ask { display: none; }
.try .todo-close { display: none; }
/* short desktop windows (1280 x 720): the whole list and its footer fit without scrolling */
@media (max-height: 780px) {
  .todo { padding: 18px 24px 16px; }
  .todo-item { padding: 7px 12px !important; }
  .todo-note { margin-top: 10px; }
  .todo-foot { padding-top: 8px; }
}

/* ---------- the drawn Duo ---------- */
.dev-box { position: relative; flex: none; }
.duo { position: absolute; inset: 0; }
.frame { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 46px; background: #1A1A1C; transform-origin: 50% 50%;
  box-shadow: inset 0 0 0 1px #303034, 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px #0b0b0c; }
.duo[data-layout="closed"] .frame { border-radius: 50px; }
.scr { position: absolute; left: var(--b); top: var(--b); overflow: hidden; background: #000; border-radius: 38px; isolation: isolate;
  font: 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.duo[data-layout="closed"] .scr { border-radius: 42px; }
.crease { position: absolute; display: none; pointer-events: none; z-index: 3; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.12), rgba(255,255,255,0)); }
.duo[data-layout="landscape"] .crease { display: block; top: var(--b); bottom: var(--b); left: calc(var(--b) + 474px); width: 3px; }
.duo[data-layout="portrait"] .crease { display: block; left: var(--b); right: var(--b); top: calc(var(--b) + 474px); height: 3px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.12), rgba(255,255,255,0)); }
.frame.turning { transition: transform .46s cubic-bezier(.45,.05,.2,1); }
.frame.opening, .frame.closing { perspective: 2600px; }
.frame.opening::before, .frame.closing::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: calc(50% + 2px); background: #000; z-index: 4; }
.frame.opening .scr { clip-path: inset(0 0 0 50%); }
/* the app blurs the window while folding, up to 8 pt at mid-fold (FoldBlurOverlay.swift, FoldLockDecision.maxBlurRadius) */
.frame.opening .scr, .frame.closing .scr { animation: fold-blur .65s linear; }
#app.refold { animation: fold-settle .4s ease-out; }
@keyframes fold-blur { 0%, 100% { filter: blur(0); } 50% { filter: blur(8px); } }
@keyframes fold-settle { from { filter: blur(8px); } to { filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .frame.opening .scr, .frame.closing .scr, #app.refold { animation: none; } }
.leaf { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; z-index: 5; transform-origin: 100% 50%; transform-style: preserve-3d; border-radius: 46px 0 0 46px; background: #1A1A1C; }
.frame .leaf > .scr, .frame.opening .leaf > .scr { backface-visibility: hidden; -webkit-backface-visibility: hidden; clip-path: inset(0 50% 0 0); border-radius: 38px 0 0 38px; }
.leaf::after { content: ""; position: absolute; inset: 0; border-radius: 0 46px 46px 0; background: linear-gradient(90deg, #0c0c0d, #202023 60%, #141416); transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.opening .leaf { animation: unfold .68s cubic-bezier(.3,.62,.2,1) both; }
.closing .leaf { animation: unfold .62s cubic-bezier(.5,.05,.6,.9) reverse both; }
@keyframes unfold { from { transform: rotateY(179deg); } to { transform: rotateY(0deg); } }
.app.relaid { animation: relaid .26s ease-out; }
@keyframes relaid { from { opacity: .4; } }

/* ---------- the app ---------- */
.app, .lockl { position: absolute; inset: 0; }
.scr h1, .scr h2, .scr h3 { color: #fff; }
.app { --pw: 382px; --top: 18px; }
/* the closed Duo: content starts 24 pt down (OpenLayout.topGap with a rail and no safe-area top) */
.app[data-l="closed"] { --top: 24px; }
.app[data-l="closed"] .v-top { padding-top: 27px; }
.app[data-l="closed"] .w-top { padding-top: 28px; }
.app[data-l="portrait"] { --pw: 585px; --top: 58px; }
/* open upright reads two Dynamic Type steps larger (OpenLayout.typeSize, VaultShell.swift:337): large -> xxLarge, ~1.2x */
.app[data-l="portrait"] .pg-scroll { zoom: 1.2; }
.app[data-l="landscape"] { --pw: 475.5px; --top: 54px; }
.app[data-l="phone"] { --pw: 100%; --top: calc(var(--sat) + 14px); }.bgplex { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; pointer-events: none; }
.app .ic, .lockl .ic { stroke-width: 1.5; }
.st { position: absolute; right: 0; top: 76px; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 95; pointer-events: none; }   /* the system status bar stays sharp over menus and sheets */
.st-time { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.st-ring { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; border-bottom-color: transparent; display: grid; place-items: center; position: relative; }
.st-ring::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 26px; margin-left: -13px; height: 4px; background: radial-gradient(circle, rgba(255,255,255,.65) 1.6px, transparent 2px) 0 0 / 6.5px 4px repeat-x; }
.app[data-l="portrait"] .st, .app[data-l="landscape"] .st { top: 0; left: 0; width: 100%; height: 44px; flex-direction: row; justify-content: space-between; padding: 0 30px; }
.app[data-l="portrait"] .st-ring, .app[data-l="landscape"] .st-ring { width: auto; height: auto; border: 0; }
.app[data-l="portrait"] .st-ring::after, .app[data-l="landscape"] .st-ring::after { display: none; }
.lockl > .st { top: 76px; }
.app[data-l="landscape"] ~ .lockl > .st, .app[data-l="portrait"] ~ .lockl > .st { top: 0; left: 0; width: 100%; height: 44px; flex-direction: row; justify-content: space-between; padding: 0 30px; }

.pg { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pw); z-index: 2; overflow: clip; }   /* a sliding page stays in its pane */
/* open wide Duo: Settings covers both panes, list left, overview or page right (SettingsView split) */
.app.cover .lib { display: none; }
.app.cover .pg { width: auto; right: 84px; }
.setsplit { position: absolute; inset: 0; display: flex; }
.setsplit > div { position: relative; flex: 1; min-width: 0; overflow: clip; }
.ss-list { padding: 30px 48px 18px 28.5px; }
/* split list: bare rows, no card, no separators; 13 pt headers; the open page's row gets the surface and a mint-grey
   border (SettingsView.swift:735-754, 474-490) */
.ss-list .grp { padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.ss-list .grp-h { margin: 16px 0 6px 12px; font-size: 13px; letter-spacing: .65px; }
.ss-list .srow { padding: 10px 12px !important; border-radius: 12px; }
.ss-list .srow + .srow::before { display: none; }
.ss-list .srow.cur { background: #151517; box-shadow: inset 0 0 0 1px #2F4A43; }
.ss-h { font-size: 28px; font-weight: 700; margin: 0 0 14px; min-height: 48px; display: flex; align-items: center; }
.pg-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: var(--top) 20px 40px; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.pg-scroll::-webkit-scrollbar { display: none; }
.app[data-l="phone"] .pg-scroll { padding-bottom: calc(96px + var(--sab)); }
.app[data-l="phone"] .pg.full { z-index: 40; }
.app.arriving .pg { animation: arrive .42s cubic-bezier(.2,.8,.2,1); }
@keyframes arrive { from { opacity: 0; transform: scale(1.04); } }
.lockl.leaving { animation: leave .42s ease forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: scale(.96); } }

/* the side rail (LOCK 32 / 35) */
.rail { position: absolute; top: 0; right: 0; width: 84px; height: 100%; z-index: 20; background: #000; }
.rail-line { position: absolute; left: 0; bottom: 26px; width: 1px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.1) 12%, rgba(255,255,255,.1) 88%, rgba(255,255,255,0)); }
.rail-light { position: absolute; left: -1.25px; width: 2.5px; height: 26px; border-radius: 1.25px; background: var(--mint); z-index: 2;
  box-shadow: 0 0 6px rgba(126,240,200,.9), 0 0 16px rgba(126,240,200,.45); transition: top .32s cubic-bezier(.3,1.25,.55,1); }
.rail-tab, .rail-back { position: absolute; left: 6px; width: 72px; display: grid; place-items: center; color: var(--tab); transition: color .2s ease-out, transform .12s; }
.rail-tab:active, .rail-back:active { transform: scale(.94); }
.rail-tab .cone { position: absolute; left: -6px; top: 50%; width: 76px; height: 50px; margin-top: -25px; background: radial-gradient(ellipse 100% 50% at 0 50%, rgba(126,240,200,.16), rgba(126,240,200,0)); opacity: 0; transition: opacity .2s; }
.rail-tab.sel { color: var(--mint); }
.rail-tab.sel svg { filter: drop-shadow(0 0 6px rgba(126,240,200,.45)); }
.rail-tab.sel .cone { opacity: 1; }
.rail-back { color: #fff; opacity: 0; visibility: hidden; transition: opacity .16s, visibility .16s; }
.rail-back.on { opacity: 1; visibility: visible; }
.rail-back i { position: absolute; left: 22px; right: 22px; bottom: -2px; height: 1px; background: rgba(255,255,255,.14); }
.rail-imp { position: absolute; left: 13px; width: 58px; height: 58px; border-radius: 16px; background: #000; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 22px rgba(166,243,239,.22); transition: transform .12s, background .2s; }
.rail-imp:active { transform: scale(.94); }
.rail-imp .ring, .rail-imp .prog { position: absolute; inset: 0; border-radius: 16px; padding: 2.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.rail-imp .ring { background: var(--opal-c); animation: halo 12s linear infinite; }
.rail-imp .prog { display: none; padding: 3px; background: conic-gradient(#E4FCA6, #A6F3EF calc(var(--p, 0%) * .6), #A8E1FC var(--p, 0%), #232327 0); }
.rail-imp.busy .ring { display: none; }
.rail-imp.busy .prog { display: block; }
.rail-imp .done { display: none; color: #0B0B0B; }
.rail-imp.done { background: var(--mint); animation: pop .32s; }
.rail-imp.done .ring { display: none; }
.rail-imp.done .done { display: block; stroke-width: 2.2; }
.rail-imp.done .plus { display: none; }
.rail-imp .plus { stroke-width: 2; }
@property --halo { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes halo { to { --halo: 360deg; } }
@keyframes pop { 50% { transform: scale(1.08); } }

/* the bottom tab bar (LOCK 29 B), single-screen phones */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(60px + max(var(--sab), 10px)); background: #000; z-index: 20; }
.tabbar[hidden], .app.notabs .tabbar { display: none; }
.app[data-l="phone"].notabs .pg-scroll { padding-bottom: calc(24px + var(--sab)); }
.app[data-l="phone"].notabs .pg-scroll.trashpg { bottom: calc(69px + max(var(--sab), 10px)); }
.app[data-l="phone"].notabs .tr-bar { bottom: 0; padding-bottom: calc(16px + max(var(--sab), 10px)); }
.tb-hair { position: absolute; left: 6px; right: 6px; top: 9.5px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.1) 12%, rgba(255,255,255,.1) 88%, rgba(255,255,255,0)); }
.tb-ind { position: absolute; top: 0; width: 76px; height: 52px; left: calc(6px + (var(--slot, 0) + .5) * (100% - 12px) / 5 - 38px); transition: left .32s cubic-bezier(.3,1.25,.55,1), opacity .16s; pointer-events: none; }
.tb-rail { position: absolute; left: 25px; top: 8.75px; width: 26px; height: 2.5px; border-radius: 1.25px; background: var(--mint); box-shadow: 0 0 6px rgba(126,240,200,.9); }
.tb-cone { position: absolute; left: 0; top: 10px; width: 76px; height: 50px; background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(126,240,200,.16), rgba(126,240,200,0)); }
.tb-tab { position: absolute; top: 10px; height: 50px; width: calc((100% - 12px) / 5); display: flex; flex-direction: column; align-items: center; padding-top: 5.7px !important; gap: 5.5px; color: var(--tab); transition: color .2s ease-out; }
.tb-tab span { font-size: 11px; line-height: 13px; color: var(--tab); }
.tb-tab.sel { color: var(--mint); }
.tb-tab.sel span { color: #fff; font-weight: 600; }
.tb-tab[data-tab="home"] { left: 6px; }
.tb-tab[data-tab="collections"] { left: calc(6px + (100% - 12px) / 5); }
.tb-tab[data-tab="web"] { left: calc(6px + 3 * (100% - 12px) / 5); }
.tb-tab[data-tab="favorites"] { left: calc(6px + 4 * (100% - 12px) / 5); }
.tb-imp { left: 50%; top: -4px; margin-left: -29px; }

/* glass and keys */
.key { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; color: #fff; flex: none; position: relative; transition: transform .12s; }
.key::after, .hbtn::after, .glass::after, .tbtn::after { content: ""; position: absolute; inset: -4px; }
.key:active { transform: scale(.94); }
.key:disabled { opacity: .45; }
.key.opal { background: var(--opal); box-shadow: 0 0 8px rgba(166,243,239,.3); color: #0B0B0B; }
.key.opal .ic { stroke-width: 2; }
.back-key { margin-right: 2px; }
.glass { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: #fff; flex: none; position: relative; }
.glass.big { width: 44px; height: 44px; }
.tbtn { color: var(--mint); font-size: 17px; min-height: 44px; padding: 0 2px !important; position: relative; }
.tbtn.strong { font-weight: 600; }
.tbtn:disabled { color: #4a4e4d; }
.v-sp { width: 40px; flex: none; }
.t1 { margin: 12px 0 0; font-size: 28px; font-weight: 700; line-height: 33.6px; }
.t1.lg { font-size: 32px; line-height: 38.4px; margin: 12px 0 14px; }
.sub { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: #8E8E93; }
.sec2 { margin: 26px 0 12px; font-size: 20px; font-weight: 600; }
.empty { margin: 40px 10px; text-align: center; color: var(--sec); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty.sm { margin: 0; text-align: left; align-items: flex-start; font-size: 14px; }
.keys { display: flex; align-items: center; gap: 10px; height: 44px; }
.keys > span { flex: 1; }
.opal-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 27px; background: var(--opal); color: #0B0B0B !important; font-size: 17px; font-weight: 600; transition: transform .12s, opacity .2s; }
.opal-btn:active { transform: scale(.97); }
.opal-btn:disabled { background: #5c5c60; color: #1a1a1c !important; }
.opal-btn.sm { width: auto; height: 46px; padding: 0 28px; font-size: 16px; }
.wide-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 26px; background: #1c1c1f; box-shadow: inset 0 0 0 1px #2c2c30; font-size: 17px; font-weight: 600; margin-top: 10px; }
.wide-btn.danger { color: var(--coral); margin-top: 24px; }
.badge { width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #0c0c0d);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 42%, transparent), 0 0 18px color-mix(in srgb, var(--c) 22%, transparent); }
.badge.dash { box-shadow: inset 0 0 0 1.5px rgba(126,240,200,.5); background: none; }

/* Home (LOCK 05; sizes from HomeScreen.swift at the default text size) */
.pg-scroll.home { padding-left: 22px; padding-right: 22px; }
.home-h { display: flex; align-items: center; gap: 14px; min-height: 30px; margin: -4px -10px 0 0; }
.home-h h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; }
.hbtn { width: 44px; height: 44px; margin: -7px -3px; display: grid; place-items: center; color: #8E8E93; position: relative; }
.hbtn.mint { color: var(--mint); }
.ring-wrap { display: flex; justify-content: center; margin-top: 12px; }
.ring-wrap .ring { width: 200px; height: 200px; }
.h-big { margin: 8px 0 0; text-align: center; font-size: 42px; font-weight: 300; color: #9FE9F2; line-height: 46.2px; }
.h-big span { font-variant-numeric: tabular-nums; }
.cap { margin: 4px 0 0; text-align: center; font-size: 10.5px; line-height: 15.75px; letter-spacing: .84px; color: #C9EEF2; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; text-align: center; }
.stats small { display: block; font-size: 10.5px; line-height: 15.75px; letter-spacing: .525px; color: #C9EEF2; }
.stats b { display: block; font-size: 20px; line-height: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chart { margin-top: 16px; }
.bars { display: flex; gap: 9px; height: 70px; border-top: 1px dashed #2E2E33; border-bottom: 1px dashed #2E2E33;
  background: repeating-linear-gradient(90deg, #2E2E33 0 3px, transparent 3px 5px) 0 33.3% / 100% 1px no-repeat, repeating-linear-gradient(90deg, #2E2E33 0 3px, transparent 3px 5px) 0 66.6% / 100% 1px no-repeat; }
.bar { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; background: #191919; border-radius: 4px; overflow: hidden; }
.bar i { display: block; border-radius: 3px; opacity: .38; }
.bar.today i { opacity: 1; }
.chart-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; line-height: 15.75px; color: #A8E1FC; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 12px !important; border-radius: 16px !important; background: #151517 !important; box-shadow: inset 0 0 0 1px #2A2A2E; text-align: left; transition: transform .12s; }
.cat:active, .ccard:active, .crow-card:active, .srow:active { transform: scale(.98); }
.cat-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex: none; }
.cat-tx { flex: 1; min-width: 0; }
.cat-tx b { display: block; font-size: 16px; font-weight: 600; }
.cat-tx small { display: block; margin-top: 3px; font-size: 12px; color: #8E8E93; }
.chev { color: #6A6A70; }
.sec-h { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin: 18px 0 0; }
.sec-h h2 { margin: 0; font-size: 16px; font-weight: 700; }
.see { color: var(--mint); font-size: 13px; display: flex; align-items: center; gap: 2px; min-height: 44px; margin: -10px 0; }
.crow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 24px; scrollbar-width: none; touch-action: pan-x pan-y; }
.crow::-webkit-scrollbar { display: none; }
.cpage { flex: none; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; scroll-snap-align: start; }
.cpage > div { display: flex; flex-direction: column; gap: 8px; }
.cdots { display: flex; justify-content: center; padding: 10px 0 14px; }
.cdots i { width: 15px; height: 20px; display: grid; place-items: center; }
.cdots i::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4A4A4F; }
.cdots i.on::before { background: var(--mint); }
.ccard { position: relative; display: block; width: 100%; padding: 12px 41px 12px 14px !important; border-radius: 14px !important; background: #151517 !important; box-shadow: inset 0 0 0 1px #2A2A2E; text-align: left; transition: transform .12s, box-shadow .3s; }
.ccard-tx { display: block; min-width: 0; }
.ccard-tx b { display: block; font-size: 13px; line-height: 19.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-tx small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 17.25px; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .badge { position: absolute; top: 10px; right: 10px; background: #0D0D0F; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 33%, transparent), 0 0 7px color-mix(in srgb, var(--c) 20%, transparent); }
.ccard.new { background: none !important; box-shadow: none; outline: 1px dashed #2A2A2E; outline-offset: -1px; }
.ccard.new .badge { box-shadow: inset 0 0 0 1px #2A2A2E; }
.ccard.glow, .crow-card.glow, .dropcol { box-shadow: inset 0 0 0 2px var(--mint), 0 0 24px rgba(126,240,200,.35) !important; }

/* Collections (LOCK 07; CollectionScreens.swift:21-445) */
.pg-scroll.cols { padding-left: 22px; padding-right: 22px; }
.cols-h { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.cols .t1 { margin-top: 12px; }
.segc { display: flex; margin-top: 14px; padding: 4px; border-radius: 12px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; }
.segc button { flex: 1; height: 33.5px; border-radius: 9px; font-size: 13px; color: #C8C8CC; }
.segc button[aria-pressed="true"] { background: #232327; color: #fff; font-weight: 600; }
.chips { display: flex; gap: 8px; margin-top: 10px; }
.chips button { display: flex; align-items: center; gap: 5px; min-height: 32.75px; padding: 6px 12px; border-radius: 17px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; font-size: 12.5px; color: #D8D8DC; }
.chips button svg { width: 14px; height: 14px; }
.chips button[aria-pressed="true"] { background: var(--opal); box-shadow: none; color: #0B0B0B; font-weight: 600; }
.crows { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
/* LOCK 07 swipe tray: two 64 pt tiles, gap 8, 10 from the card (146 pt) */
.cr-sw { position: relative; display: flex; flex-direction: column; }
.cr-sw .crow-card { position: relative; z-index: 1; touch-action: pan-y; }
.cr-tray { position: absolute; right: 2px; top: 1px; bottom: 1px; display: flex; gap: 8px; }   /* inset: no sliver at the card's rounder corners */
.cr-t { width: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; }
.cr-t.edit { background: #212125 !important; color: var(--mint); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cr-t.del { background: color-mix(in srgb, var(--coral) 16%, #000) !important; color: var(--coral); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 45%, transparent); }
.crow-card { display: flex; align-items: center; gap: 12px; padding: 11px 14px !important; border-radius: 18px !important; background: #1C1C1F !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: left; transition: transform .12s; }
.crow-card .badge { background: #0D0D0F; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 6.84px color-mix(in srgb, var(--c) 35%, transparent); }
.cr-tx { flex: 1; min-width: 0; }
.cr-tx b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cr-tx b em { font-style: normal; font-size: 9px; font-weight: 600; color: #8E8E93; background: #2B2D30; border-radius: 10px; padding: 4px 7px; line-height: 1; }
.cr-tx small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #8E8E93; margin-top: 1px; }
.cr-bar { display: block; height: 3px; margin-top: 6px; }
.cr-bar i { display: block; height: 100%; min-width: 3px; border-radius: 1.5px; background: var(--c); }
.cr-size { display: flex; align-items: baseline; gap: 2px; font-size: 18px; font-weight: 300; color: #9FE9F2; text-align: right; font-variant-numeric: tabular-nums; }
.cr-size small { font-size: 10.5px; color: #8E8E93; font-weight: 400; }
.trashrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 12px; padding: 0 14px !important; border-radius: 20px !important; background: #151517 !important; box-shadow: inset 0 0 0 1px #2A2A2E; text-align: left; }
.trashrow > svg:first-child { width: 26px; color: var(--coral); }
.trashrow b { flex: 1; font-size: 16px; font-weight: 500; }
.trashrow span { font-size: 14px; color: #8E8E93; }
.trashrow .chev { color: #6A6A70; }

/* a Collection page (LOCK 08 + 53; CollectionScreens.swift:447-950) */
.pg-scroll.colpage { padding-left: 22px; padding-right: 22px; }
.colpage .c-hero { text-align: center; margin-top: 4px; }
.colpage .c-hero .badge { margin: 0 auto; background: #0D0D0F; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 36px color-mix(in srgb, var(--c) 45%, transparent); }
.colpage .c-hero h1 { margin: 10px 0 0; font-size: 26px; line-height: 39px; font-weight: 700; }
.cap2 { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: #8E8E93; }
.cap2 b { color: #fff; font-weight: 600; }
.cbar { height: 6px; margin: 12px 35.8px 0; border-radius: 3px; background: #26262A; }
.cbar > span { display: flex; gap: 3px; height: 100%; }
.cbar > span i { display: block; height: 100%; border-radius: 3px; box-shadow: 0 0 4px currentColor; }
.c-legend { margin: 7px 0 0; font-size: 11px; color: #6A6A70; line-height: 1.35; }
.fcards { display: flex; gap: 7px; margin-top: 16px; }
.fcard { flex: 1 1 0; height: 58px; border-radius: 15px !important; background: #151517 !important; box-shadow: inset 0 0 0 1px #2A2A2E; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--c) !important; }
.fcard.allc { flex-grow: 1.1; }
.fcard svg { width: 19px; height: 19px; }
.fcard small { font-size: 12px; color: #D8D8DC; font-variant-numeric: tabular-nums; }
.fcard.allc b { font-size: 13.5px; font-weight: 600; color: #fff; }
.fcard[aria-pressed="true"] { background: var(--opal) !important; box-shadow: 0 0 8px rgba(166,243,239,.25); color: #0b0b0b !important; }
.fcard[aria-pressed="true"] b { color: #0b0b0b; }
.fcard[aria-pressed="true"] small { color: #2B3A36; }
.colpage .sec2 { margin: 16px 0 8px; font-size: 14px; line-height: 21px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 -22px; }
.app[data-l="portrait"] .grid { grid-template-columns: repeat(6, 1fr); }
.app[data-l="landscape"] .grid { grid-template-columns: repeat(5, 1fr); }
.cell { position: relative; aspect-ratio: 1; overflow: hidden; background: #111 !important; touch-action: pan-y; }
.tile { position: absolute; inset: 0; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tile.tdoc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--c); background: #111113; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.tile.tdoc svg { width: 22px; height: 22px; }
.tile.tdoc small { font-size: 9.5px; color: #C8C8CC; max-width: 100%; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.tdoc small.d { font-size: 9px; color: #8E8E93; }
.tile.sm { position: relative; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex: none; }
.cell .tile:not(.tdoc)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55)); pointer-events: none; opacity: 0; }
.cell .tile.isvid::after { opacity: 1; }
.dur { position: absolute; right: 5px; bottom: 4px; z-index: 1; display: flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.dur svg { width: 10px; height: 10px; }
.cell .fav { position: absolute; left: 5px; bottom: 4px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.cell.picked::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--mint); background: rgba(0,0,0,.18); }
.num { position: absolute; right: 6px; top: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--opal); color: #0b0b0b; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.days { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-align: left; }
.sel-h { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.sel-h b { font-size: 17px; font-weight: 700; }
.sel-h .tbtn { font-size: 15px; font-weight: 600; }
.colpage.selecting { padding-bottom: 170px; }
.selecting .grid .cell { touch-action: pan-y; }   /* a sideways slide selects, a vertical one scrolls */
.cat-t { display: flex; align-items: center; gap: 10px; }
.cat-t svg { color: var(--c); }

/* Select tray (LOCK 31 C) */
.tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; height: 162px; padding: 12px 16px 0; background: linear-gradient(rgba(0,0,0,0), #000 16%); animation: tray-in .32s cubic-bezier(.3,1.25,.55,1); }
.app[data-l="phone"] .tray { height: calc(128px + max(var(--sab), 14px)); }
@keyframes tray-in { from { transform: translateY(28px); opacity: 0; } }
.tr-main { position: relative; width: 100%; height: 50px; border-radius: 16px; background: #000; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mint); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1.5px #2A2A2E; }
.tr-main .ring { position: absolute; inset: 0; border-radius: 16px; padding: 2px; background: var(--opal-c); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .55s; }
.tray.on .tr-main .ring { opacity: 1; }
.tr-main:disabled { color: var(--sec); }
.tr-main:active { transform: scale(.97); }
.tr-rail { position: relative; display: flex; align-items: flex-start; margin: 12px -10px 0; padding-top: 6px; }
.tr-rail::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.1) 12%, rgba(255,255,255,.1) 88%, rgba(255,255,255,0)); }
.tr-slot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 52px; padding-top: 4px !important; color: #fff; transition: transform .12s; }
.tr-slot span { max-width: 100%; font-size: 11px; line-height: 13px; color: #B4B4BA; text-align: center; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* SelectionTray.swift:200-203: one line, #B4B4BA */
.tr-slot.danger svg { color: var(--coral); }
.tr-slot:disabled { opacity: .35; }
.tr-slot:active { transform: scale(.94); }
.tr-div { width: 1px; height: 24px; background: rgba(255,255,255,.1); margin-top: 8px; flex: none; }

/* the viewer (LOCK 14) */
.pg.full { width: var(--pw); }
.viewer { position: absolute; inset: 0; background: #000; overflow: hidden; }
.v-stage { position: absolute; left: 0; right: 0; top: 86px; bottom: 74px; touch-action: none; }
.app[data-l="phone"] .v-stage { top: 0; bottom: 0; }
.v-photo, .vid { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.v-photo { animation: vfade .22s ease-out; }
@keyframes vfade { from { opacity: .3; } }
.v-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; transition: opacity .2s; z-index: 2; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.app[data-l="phone"] .v-top { padding-top: calc(var(--sat) + 10px); }
.app:not([data-l="phone"]) .v-close { visibility: hidden; }
.v-name { flex: 1; min-width: 0; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.v-name b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-name small { display: block; font-size: 12px; color: #E0E0E4; margin-top: 1px; }
.v-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 14px; transition: opacity .2s; z-index: 2; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 45%); }
.app[data-l="phone"] .v-bot { padding-bottom: calc(var(--sab) + 4px); }
.viewer.bare .v-top, .viewer.bare .v-bot { opacity: 0; pointer-events: none; }
.strip { display: flex; justify-content: center; align-items: center; gap: 4px; height: 40px; margin-bottom: 14px; overflow: hidden; }
.st-th { width: 30px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; opacity: .6; display: grid; place-items: center; background: #1c1c1f !important; }
.st-th img { width: 100%; height: 100%; object-fit: cover; }
.st-th.cur { width: 44px; height: 44px; border-radius: 8px; border: 2px solid #fff; opacity: 1; }
.scrub { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: #e0e0e4; }
.sb { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); touch-action: none; }
.sb::before { content: ""; position: absolute; inset: -18px 0; }
.sb > i { display: block; height: 100%; border-radius: 2px; background: #fff; }
.v-acts { display: flex; justify-content: space-around; padding: 0 16px; }
.v-act { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; color: #E0E0E4; transition: transform .12s; }
.v-act span { font-size: 11.5px; }
.v-act.danger svg { color: var(--coral); }
.v-act.on svg { color: #ff7fc4; }
.v-act:active { transform: scale(.94); }
.v-bigplay { position: absolute; left: 50%; top: 46%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; }
.v-doc { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--c); text-align: center; padding: 0 30px; }
.v-doc b { color: #fff; font-size: 18px; }
.v-doc p { margin: 0; color: var(--sec); font-size: 14px; }

/* two panes on the open Duo (LOCK 52 A) */
.dual { position: absolute; left: 0; top: 0; bottom: 0; right: 84px; z-index: 22; pointer-events: none; }
.dual[hidden] { display: none; }
.pane { position: absolute; top: 0; bottom: 0; background: #000; overflow: hidden; animation: vfade .16s ease-out; pointer-events: auto; }
.pane[data-side="left"] { left: 0; width: 475.5px; }
.pane[data-side="right"] { left: 475.5px; right: 0; }
.pane.sound::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--mint); pointer-events: none; z-index: 3; }
.pane > img, .pane > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.p-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 14px 20px; z-index: 2; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0)); }
.app[data-l="landscape"] .p-top, .app[data-l="landscape"] .v-top, .app[data-l="portrait"] .v-top { padding-top: 46px; }
.pane.sound [data-act^="dsound"] { color: var(--mint); }
/* a drawn Duo scaled down on a phone: keys keep their look but take a ~34 css px finger (like iOS hit slop) */
.pane .glass::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, calc(34px * var(--ik, 1))); height: max(100%, calc(34px * var(--ik, 1))); transform: translate(-50%, -50%); }
.pane .sb::before { inset: calc(-9px * var(--ik, 1)) 0; }
.p-bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 20px 16px 16px; font-size: 12px; font-variant-numeric: tabular-nums; z-index: 2; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6)); }
.dropz { position: absolute; left: 0; top: 0; bottom: 0; right: 84px; z-index: 60; pointer-events: none; transition: opacity .16s; }
.dropz.aside { opacity: .3; }
.dz { position: absolute; top: 10px; bottom: 10px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 26px; transition: background .12s, box-shadow .12s; }
.dz[data-dz="left"] { left: 10px; width: 455px; }
.dz[data-dz="right"] { left: 485px; right: 10px; }
.dz.hot { box-shadow: inset 0 0 0 3px var(--mint); background: rgba(126,240,200,.1); }
.dz[data-replace] { background: rgba(0,0,0,.55); align-items: center; padding: 0; }
.dz-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: rgba(28,28,30,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 15px; font-weight: 600; }
.dz.hot .dz-pill { color: var(--mint); }
.dz-rep { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dz.hot .dz-rep svg { color: var(--mint); }
.ghost { position: absolute; left: 0; top: 0; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; z-index: 70; pointer-events: none; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.2); }
.ghost img { width: 100%; height: 100%; object-fit: cover; }
body.dragging { cursor: grabbing; }

/* the Library pane (open Duo, landscape; LOCK 35) */
/* LibraryPane.swift: padding top 30 (+ status strip), leading 48, trailing 28.5; VStack spacing 10; title 28 bold, min 48 */
.lib { position: absolute; left: 475.5px; right: 84px; top: 0; bottom: 0; padding: 54px 28.5px 0 48px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.lib-title { margin: 0; min-height: 48px; display: flex; align-items: center; font-size: 28px; font-weight: 700; }
.lib-menu { display: flex; flex-direction: column; gap: 0; }
.lib-row { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px !important; border-radius: 12px; color: var(--tab); text-align: left; }
.lib-row span { flex: 1; font-size: 17px; color: #fff; }
.lib-row em { font-style: normal; font-size: 15px; color: var(--sec); }
.lib-row.sel { background: #141416 !important; color: var(--mint); box-shadow: inset 0 0 0 1px #2F4A43; }
.lib-recent { margin: 6px 0 0 12px; font-size: 13px; letter-spacing: .65px; color: var(--sec); }
.lib-list { flex: 1; overflow-y: auto; margin: 0 -28.5px 0 -48px; padding: 0 28.5px 18px 48px; scrollbar-width: none; }
.lib-list::-webkit-scrollbar { display: none; }
.lib-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 8px 12px !important; border-radius: 12px; text-align: left; touch-action: pan-y; }
.lib-item .tile.sm { width: 34px; height: 34px; border-radius: 8px; }
.lib-item:hover { background: #111113 !important; }
.lib-item span:last-child { min-width: 0; }
.lib-item b { display: block; font-size: 15px; font-weight: 400; color: #E6E6EA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-item small { display: block; font-size: 12.5px; color: var(--sec); }

/* sheets, menus, alerts, HUD */
.ovl { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.ovl.on { pointer-events: auto; background: rgba(0,0,0,.5); animation: dim .2s; }
/* open wide Duo: sheets live in a rail cover (DuoRailCover pads for the rail, the rail stays on top); a CollectionSheet
   is up to 722 pt tall, so Move and New Collection fill the 669 pt height (CollectionSheet.swift) */
.app[data-l="landscape"] .ovl, .app[data-l="closed"] .ovl { right: 84px; }   /* the rail (tabs, time) stays beside a sheet */
.app[data-l="landscape"] .ovl .sheet.mv, .app[data-l="landscape"] .ovl .sheet.nc { max-height: 100%; height: 100%; }
@keyframes dim { from { background: rgba(0,0,0,0); } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; padding: 0 18px calc(18px + var(--sab)); border-radius: 26px 26px 0 0; background: #141416; box-shadow: inset 0 1px 0 #2a2a2e; animation: sheet-up .32s cubic-bezier(.2,.9,.25,1); }
.app[data-l="landscape"] .sheet { left: 120px; right: 204px; }
.sheet.tall { height: 86%; }
@keyframes sheet-up { from { transform: translateY(100%); } }
body.dragging { user-select: none; -webkit-user-select: none; }
/* the strip a finger drags the sheet down by (IV.dragToClose) must not pan the page */
.sh-grab, .sh-h, .mv-grab, .mv-h, .nc-grab, .nc-h, .share-h, .todo-grab, .todo-head { touch-action: none; }
.sh-grab { width: 36px; height: 5px; border-radius: 3px; background: #3a3a40; margin: 8px auto 6px; flex: none; }
.sh-h { display: flex; align-items: center; gap: 10px; min-height: 48px; flex: none; }
.sh-h > div { flex: 1; text-align: center; }
.sh-h b { display: block; font-size: 17px; font-weight: 600; }
.sh-h small { display: block; font-size: 13px; color: var(--sec); }
.sh-list { overflow-y: auto; margin: 6px -6px 14px; scrollbar-width: none; }
.sh-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 8px !important; border-radius: 14px; text-align: left; }
.sh-row > span:not(.badge) { flex: 1; min-width: 0; }
.sh-row b { display: block; font-size: 17px; font-weight: 500; }
.sh-row small { display: block; font-size: 13px; color: var(--sec); }
.sh-row[aria-pressed="true"] { background: #1d1d20 !important; }
.sh-row .tick { color: var(--mint); stroke-width: 2.2; }
.sh-row.add b { color: var(--mint); }
.sh-cap { margin: 18px 4px 8px; font-size: 13px; letter-spacing: .1em; color: var(--sec); }
.pg-scroll.trashpg { bottom: 69px; padding-bottom: 24px; }
.app[data-l="phone"] .pg-scroll.trashpg { bottom: calc(129px + max(var(--sab), 10px)); }
.trashpg .keys .key { width: 38px; height: 38px; }
.tbtn.mint { color: var(--mint); font-size: 15px; font-weight: 600; }
.tbtn.coral { color: var(--coral); font-size: 15px; font-weight: 600; }
.tbtn:disabled { opacity: .4; }
.trashpg .t1 { font-size: 28px; margin-top: 12px; }
.trashpg .sub { font-size: 13px; margin-top: 10px; }
.tr-selh { display: flex; justify-content: space-between; margin-top: 16px; font-size: 15px; font-weight: 600; }
.tr-day { display: flex; justify-content: space-between; align-items: baseline; min-height: 22.5px; margin: 16px 0 8px; }
.tr-day b { font-size: 15px; font-weight: 600; }
.tr-day span { font-size: 12px; color: #6a6a70; }
.tr-day span.soon { color: #ffb829; }
.tr-grid .tile { opacity: .75; }
.tr-grid .cell[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--mint); }
.tr-empty { margin: 40px 0 0; text-align: center; font-size: 15px; color: var(--sec); }
.tr-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 30px; background: rgba(21,21,23,.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.app[data-l="phone"] .tr-bar { bottom: calc(60px + max(var(--sab), 10px)); padding-bottom: 16px; }
.sheet.mv { background: #111113; border-radius: 26px 26px 0 0; box-shadow: inset 0 1px 0 #2a2a2e; padding: 0 22px calc(20px + var(--sab)); max-height: 90%; }
.mv-grab { width: 51px; height: 5px; border-radius: 3px; background: #2a2a2e; margin: 13px auto 15px; flex: none; }
.mv-h { display: flex; align-items: center; gap: 12px; min-height: 62px; flex: none; }
.mv-h > div { flex: 1; min-width: 0; }
.mv-h b { display: block; font-size: 21px; font-weight: 700; }
.mv-h small { display: block; margin-top: 2px; font-size: 14.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-stack { position: relative; width: 62px; height: 62px; flex: none; }
.mv-th { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #1c1c1f; display: grid; place-items: center; color: #c8c8cc; box-shadow: 0 0 0 1.5px #111113;
  transform: translate(calc(var(--k) * 4px), calc(var(--k) * -4px)) rotate(calc(var(--k) * 4deg)) scale(calc(1 - var(--k) * .06)); }
.mv-th img { width: 100%; height: 100%; object-fit: cover; }
.mv-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #8e8e93; background: #252529 !important; flex: none; }
.mv-scroll { overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: none; margin-top: 8px; }
.mv-new { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 59px; padding: 0 16px !important; border-radius: 21px; border: 1px dashed rgba(126,240,200,.45) !important; color: var(--mint); text-align: left; }
.mv-new b { font-size: 18px; font-weight: 600; }
.mv-card { margin-top: 11px; padding: 0 16px; border-radius: 21px; background: #1c1c1f; box-shadow: inset 0 0 0 1px #2a2a2e; }
.mv-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; text-align: left; position: relative; }
.mv-row + .mv-row::before { content: ""; position: absolute; left: 48px; right: 0; top: 0; height: 1px; background: #26262a; }
.mv-row:disabled { opacity: 1; }
.mv-row .badge.root { --s: 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0d0d0f; color: #c8c8cc; }
.mv-tx { flex: 1; min-width: 0; }
.mv-tx b { display: block; font-size: 18px; font-weight: 500; }
.mv-tx small { display: block; font-size: 14px; color: #8e8e93; }
.mv-row[aria-pressed="true"] .mv-tx b { color: var(--mint); font-weight: 600; }
.mv-radio { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #505056; display: grid; place-items: center; color: #0b0b0b; flex: none; }
.mv-row[aria-pressed="true"] .mv-radio { background: var(--mint); box-shadow: none; }
.mv-radio svg { stroke-width: 2.4; }
.mv-cur { font-style: normal; font-size: 12px; font-weight: 600; color: #8e8e93; background: #29292d; border-radius: 10px; padding: 4px 9px; }
.mv-go { min-height: 59px; margin-top: 16px; gap: 8px; font-size: 18.5px; font-weight: 700; flex: none; }
.mv-go:disabled { background: var(--opal) !important; opacity: .45; color: #0b0b0b !important; }
.sheet.nc { background: #111113; padding: 0 18px calc(14px + var(--sab)); }
.nc-grab { width: 40px; height: 5px; border-radius: 3px; background: #3a3a3e; margin: 11px auto 14px; flex: none; }
.nc-h { display: flex; align-items: center; justify-content: space-between; min-height: 35.5px; flex: none; }
.nc-h b { font-size: 17px; font-weight: 700; }
.nc-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #8e8e93; background: #1d1d20 !important; }
.nc-field { display: flex; align-items: center; gap: 12px; height: 56px; margin-top: 12px; padding: 0 12px; border-radius: 16px; background: #0c0c0e; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); flex: none; }
.nc-field .badge { background: #0d0d0f; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.nc-name { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 17px; font-weight: 600; outline: none; }
.nc-name::placeholder { color: #757575; font-weight: 600; }
.nc-cap { display: flex; justify-content: space-between; align-items: center; height: 16.5px; margin: 14px 2px 0; flex: none; }
.nc-cap span { font-size: 10.5px; letter-spacing: 1.05px; color: #c9eef2; }
.nc-cap em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .22px; color: #c9eef2; }
.nc-cap em.tint { color: var(--c); }
.nc-icons { display: grid; grid-template-columns: repeat(6, 42px); justify-content: space-between; gap: 9px; height: 204px; min-height: 96px; margin-top: 16px; padding: 4px 0; overflow-y: auto; scrollbar-width: none; flex: 0 1 204px;
  -webkit-mask: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent); mask: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.nc-icons::-webkit-scrollbar, .nc-colors::-webkit-scrollbar { display: none; }
.nc-i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #c8c8cc; background: #161618 !important; box-shadow: inset 0 0 0 1px #2a2a2e; }
.nc-i[aria-pressed="true"] { color: var(--c); background: #0d0d0f !important; box-shadow: inset 0 0 0 1px var(--c); }
.nc-i[aria-pressed="true"] svg { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--c) 45%, transparent)); }
.nc-colors { display: flex; gap: 12px; padding: 18px 8px; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; flex: none; }
.nc-c { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--c) !important; position: relative; transition: transform .15s; }
.nc-c[aria-pressed="true"] { transform: scale(1.08); box-shadow: 0 0 0 3px #111113, 0 0 0 5px #fff, 0 0 12px var(--c); }
.nc-lock { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; margin-top: 12px; color: #c8c8cc; text-align: left; flex: none; }
.nc-lock span { flex: 1; }
.nc-lock b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.nc-lock small { display: block; font-size: 12px; color: #8e8e93; }
.nc-sw { position: relative; width: 48px; height: 28px; border-radius: 14px; background: #2a2a2e; transition: background .2s; flex: none; }
.nc-sw i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.3,.5,1); }
.nc-lock[aria-pressed="true"] .nc-sw { background: var(--mint); }
.nc-lock[aria-pressed="true"] .nc-sw i { transform: translateX(20px); }
.nc-go { min-height: 56px; margin-top: 16px; font-size: 17px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 13px rgba(166,243,239,.22); flex: none; }
.nc-go:disabled { filter: saturate(.2) brightness(.55); background: var(--opal) !important; box-shadow: none; }
.info { margin: 4px 0 8px; }
.info > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 4px; border-bottom: 1px solid #232327; font-size: 15px; }
.info dt { color: var(--sec); }
.info dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.share-h { display: flex; align-items: center; gap: 12px; padding: 6px 2px 10px; border-bottom: 1px solid #232327; }
.share-h > span:not(.tile) { flex: 1; min-width: 0; }
.share-h b { display: block; font-size: 15px; }
.share-h small { color: var(--sec); font-size: 13px; }
.menu { position: absolute; right: 16px; top: 64px; width: 250px; border-radius: 16px; background: rgba(36,36,40,.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.6); transform-origin: top right; animation: menu-in .2s cubic-bezier(.2,.9,.3,1.2); }
@keyframes menu-in { from { transform: scale(.85); opacity: 0; } }
.mi { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px !important; font-size: 16px; text-align: left; }
.mi + .mi { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mi.danger { color: var(--coral) !important; }
.mi.mint { color: var(--mint) !important; }
.mi.sep { box-shadow: inset 0 8px 0 rgba(0,0,0,.45) !important; padding-top: 8px !important; min-height: 56px; }   /* Delete set apart (LOCK 21) */
.mi:active { background: rgba(255,255,255,.08) !important; }
.alert-l { position: absolute; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(0,0,0,.5); animation: dim .2s; }
.alert { width: 270px; border-radius: 16px; background: rgba(40,40,44,.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: center; overflow: hidden; animation: menu-in .22s; }
.alert > b { display: block; padding: 20px 16px 0; font-size: 17px; font-weight: 600; }
.alert p { margin: 4px 16px 18px; font-size: 13px; color: #d4d4d8; line-height: 1.35; }
.al-btns { display: flex; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.al-btns button { flex: 1; height: 46px; font-size: 17px; color: #4ea6ff; }
.al-btns button + button { box-shadow: inset 1px 0 0 rgba(255,255,255,.1); }
.al-btns .strong { font-weight: 600; }
.al-btns .danger { color: #ff453a; font-weight: 600; }
.hud { position: absolute; left: 50%; top: 42%; z-index: 96; min-width: 150px; max-width: 280px; padding: 18px 20px; border-radius: 18px; background: rgba(30,30,34,.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 15px; font-weight: 500; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.3,1.4,.5,1); }
.app:not([data-l="phone"]) .hud { left: calc(var(--pw) / 2); }
.hud svg { color: var(--mint); }
.hud.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lift { position: absolute; inset: 0; z-index: 90; background: rgba(0,0,0,0); transition: background .2s, backdrop-filter .2s; }
.lift.on { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lift > img { position: absolute; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.lift.on > img { transform: scale(1.03); }
.lift-m { right: auto; transform-origin: top left; }

/* Settings, Passcode, Decoy (LOCK 10 / 11 / 04) */
.prot { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 22px; background: radial-gradient(circle 230px at 15% 20%, rgba(126,240,200,.14), rgba(126,240,200,0)), #111113; box-shadow: inset 0 0 0 1px #2A2A2E; }
.prot-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--mint); background: radial-gradient(#1A1A1D, #070708); box-shadow: inset 0 0 0 1px rgba(126,240,200,.5), 0 0 14px rgba(126,240,200,.35); flex: none; }
.prot b { display: block; font-size: 17px; font-weight: 700; }
.prot p { margin: 3px 0 0; padding: 3px 0; font-size: 12.5px; color: #8E8E93; line-height: 17.5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; margin-top: 6px; padding: 0 9px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(126,240,200,.35); color: #D8F7EC; font-size: 12px; }
.chip svg { color: var(--mint); }
.grp-h { margin: 22px 4px 6px; font-size: 12px; letter-spacing: .9px; color: #8E8E93; }
.grp { padding: 0 14px; border-radius: 20px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; overflow: hidden; }
.srow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 0 !important; text-align: left; position: relative; }
.srow + .srow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #2A2A2E; }
.srow-ic { flex: none; width: 26px; display: grid; place-items: center; }
.srow-l { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }
.srow-l small { display: block; font-size: 13px; color: var(--sec); margin-top: 1px; }
.srow .val { color: #8E8E93; font-size: 14px; }
.srow .val.on { color: var(--mint); }
.srow-acc { flex: none; display: flex; align-items: center; gap: 8px; }
/* SettingsRow.rowAccessories ViewThatFits: accessories that do not fit beside the title stack (SettingsView.swift ~1023) */
@media (max-width: 380px) { .app[data-l="phone"] .srow-acc { flex-direction: column; align-items: flex-end; gap: 4px; } }
.srow.danger { color: var(--coral) !important; }
.plan { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #0b0b0b; padding: 4px 9px; border-radius: 10px; }
.plan.ultima { background: linear-gradient(90deg, #ffd23f, #ff9a5a 60%, #ff7fc4); }
.plan.premium { background: var(--opal); }
.prem { margin: 22px 0 0; padding: 18px; border-radius: 22px; text-align: center; background: #111113; box-shadow: inset 0 0 0 1px #A6F3EF, 0 0 30px rgba(166,243,239,.14); display: flex; flex-direction: column; align-items: center; }
.prem-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--opal); color: #0b0b0b; }
.prem b { margin-top: 12px; font-size: 20px; font-weight: 700; }
.prem p { margin: 6px 0 14px; color: #C8C8CC; font-size: 14px; }
.restore { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: #8E8E93; } .restore b { color: var(--mint); font-weight: 600; }
.settings .srow .chev { color: #5A5A60; }
.note2 { margin: 16px 4px; font-size: 14px; color: var(--sec); }
.tog { width: 51px; height: 31px; border-radius: 16px; background: #39393d !important; position: relative; flex: none; transition: background .2s; }
.tog i { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.3,1.3,.5,1); }
.tog.on { background: var(--mint) !important; }
.tog.on i { transform: translateX(20px); }
/* Settings rows the app has in full (SettingsView.swift:347-472) and their first pages (P'Ek 2026-11-18 "เพิ่มให้ครบ") */
.srow-appic { width: 26px; height: 26px; border-radius: 7px; }
.set-foot { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: #8E8E93; }
.ss-list .set-foot { padding: 0 12px; }
.plan-links { display: flex; justify-content: space-between; margin-top: 22px; font-size: 12.5px; }
.plan-links button { color: var(--mint) !important; }
.ver { margin: 26px 0 24px; text-align: center; font-size: 13px; line-height: 1.35; color: #5A5A60; }
.stg .t1.tm-h { font-size: 30px; margin-top: 14px; }
.tm-gh { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: #C9CDCB; }
.tm-gh.sec { margin-top: 0; color: #8E8E93; }
.tm-empty { margin-top: 16px; padding: 22px 18px; border-radius: 20px; border: 1.5px dashed rgba(255,255,255,.18); text-align: center; }
.tm-empty b { font-size: 16px; color: #F2F4F3; } .tm-empty p { margin: 4px 0 0; font-size: 14px; color: #8E8E93; }
.tm-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; margin-bottom: 12px; padding: 14px; border-radius: 20px; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: left; }
.tm-card:disabled { opacity: .45; }
.tm-card .chev { color: #5A5A60; flex: none; }
.tm-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--mint); background: rgba(126,240,200,.13); }
.tm-ic.bk { color: #BDF3FF; background: rgba(189,243,255,.12); }
.tm-t { flex: 1; min-width: 0; } .tm-t b { font-size: 16px; font-weight: 600; }
.tm-t em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mint); margin-left: 4px; }
.tm-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: #8E8E93; }
.tm-hint { margin: -4px 14px 8px; font-size: 12.5px; color: #8E8E93; }
.tm-bk { padding: 14px; border-radius: 20px; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tm-bkh { display: flex; align-items: center; gap: 14px; } .tm-bkh b { font-size: 16px; font-weight: 600; }
.stg ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.stg ul li { display: flex; gap: 8px; font-size: 14px; } .stg ul li svg { flex: none; color: #BDF3FF; margin-top: 1px; }
.tm-bk > p { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; line-height: 1.45; color: #8E8E93; }
.dsk-none { display: grid; place-items: center; min-height: 54px; border-radius: 18px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; font-size: 15px; color: #8E8E93; }
.bk-h { font-size: 29.5px; margin-top: 13px; min-height: 44px; }
.bk-delta { margin-top: 12px; padding: 16px 19px; border-radius: 24px; background: radial-gradient(circle 220px at 0 0, rgba(126,240,200,.14), transparent) #111113; box-shadow: inset 0 0 0 1px #2A2A2E; }
.bk-delta > p { margin: 0; font-size: 14px; color: #8E8E93; }
.bk-big { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; } .bk-big b { font-size: 40px; font-weight: 300; color: #BDF3FF; } .bk-big span { font-size: 17.5px; color: #C8C8CC; }
.bk-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: #2A2A2E; }
.bk-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 14px; }
.bk-legend span { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: #C8C8CC; } .bk-legend b { margin-left: auto; font-weight: 600; color: #fff; } .bk-legend i { display: grid; }
.bk-segs { display: flex; gap: 4px; margin-top: 16px; padding: 4px; min-height: 51px; border-radius: 16px; background: #111113; box-shadow: inset 0 0 0 1px #2A2A2E; }
.bk-seg { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; border-radius: 12px; font-size: 15px; color: #C8C8CC; white-space: nowrap; }
.bk-seg.on { background: #232327; color: #fff; font-weight: 600; }
.bk-go { margin-top: 16px; height: 59px; border-radius: 30px; font-size: 18px; font-weight: 700; }
.bk-chain { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 13px; min-height: 64px; padding: 0 16px; border-radius: 18px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; text-align: left; }
.bk-chain > svg:first-child { color: var(--mint); flex: none; } .bk-chain span { flex: 1; } .bk-chain b { display: block; font-size: 16px; } .bk-chain small { font-size: 14px; color: #8E8E93; }
.bk-chain em { font-style: normal; font-size: 14px; color: #C8C8CC; } .bk-chain .chev { color: #5A5A60; }
.bk-note { display: flex; gap: 8px; margin: 13px 3px 0; font-size: 14.7px; line-height: 1.4; color: #8E8E93; } .bk-note svg { flex: none; color: var(--mint); margin-top: 2px; }
.osv-h { margin-bottom: 20px; }
.osv-l { margin: 22px 0 8px; font-size: 13px; color: #8E8E93; } .osv-h + .osv-l { margin-top: 0; }
.osv-f { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: #151517; box-shadow: inset 0 0 0 1.5px #2A2A2E; color: #8E8E93; }
.osv-f span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: #5A5A60; }
.osv-f button { min-height: 44px; font-size: 15px; font-weight: 600; color: var(--mint) !important; }
.osv-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } .osv-code i { min-height: 56px; border-radius: 12px; background: #151517; box-shadow: inset 0 0 0 1.5px #2A2A2E; }
.osv-go { margin-top: 32px; height: 56px; border-radius: 16px; font-weight: 700; }
.osv-go:disabled { background: var(--opal); color: #0B0B0B !important; opacity: .4; }
.aic-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; } .aic-h .t1 { margin: 12px 0 0; } .aic-h .plan { margin-top: 12px; }
.aic-list { padding: 0 14px; }
.aic-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 5px 0; text-align: left; position: relative; }
.aic-row + .aic-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #2A2A2E; }
.aic-row img { width: 44px; height: 44px; border-radius: 11px; } .aic-row span { flex: 1; } .aic-row b { display: block; font-size: 16px; font-weight: 500; } .aic-row small { font-size: 13px; color: #8E8E93; }
.aic-row > svg { color: var(--mint); }
.aic-offer { margin-top: 14px; }
.aic-hide { margin-top: 14px; padding: 14px; border-radius: 18px; background: #111113; box-shadow: inset 0 0 0 1px #2A2A2E; }
.aic-hide b { font-size: 16px; } .aic-hide ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.aic-hide li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #C8C8CC; }
.aic-hide li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #222226; color: var(--mint); font-style: normal; font-size: 12px; font-weight: 700; }
.aic-hide p { margin: 12px 0 0; font-size: 13px; color: #8E8E93; }
.lg-cards { display: grid; gap: 10px; margin-top: 20px; }
.lg-card { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px; border-radius: 18px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; }
.lg-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.lg-card b { display: block; font-size: 16px; } .lg-card small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #8E8E93; }
.bug-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bug-chips span { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 14px; color: #F2F4F3; }
.bug-text { height: 150px; padding: 14px; border-radius: 18px; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 16px; color: #6C6C70; }
.bug-count { margin: 6px 0 0; text-align: right; font-size: 12px; color: #8E8E93; }
.bug-mail { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 15px; color: #6C6C70; }
.bug-priv { display: flex; gap: 10px; margin: 14px 0; font-size: 13px; line-height: 1.45; color: #8E8E93; } .bug-priv svg { flex: none; color: var(--mint); }
/* BugReportView.swift:176-183: Send is a bar pinned to the bottom (safeAreaInset), the page scrolls under it */
.stg.bug { display: flex; flex-direction: column; } .stg.bug > * { flex: none; }
.app .pg-scroll.stg.bug { padding-bottom: 0; }
.bug-send { position: sticky; bottom: 0; margin: auto -20px 0; padding: 12px 20px calc(10px + var(--sab, 0px)); background: #000; }
.bug-send button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 18px; background: #232327; color: #6C6C70 !important; font-size: 17px; font-weight: 700; }
.pinset .pin-block { display: flex; flex-direction: column; align-items: center; min-height: 100%; justify-content: center; padding-bottom: 20px; }
.pin-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--amber); background: #141416; box-shadow: inset 0 0 0 1px #2a2a2e; }
.steps { display: flex; gap: 6px; margin: 16px 0 4px; }
.steps i { width: 26px; height: 4px; border-radius: 2px; background: #2a2a2e; }
.steps i.on { background: var(--amber); }
.pin-cap { margin: 2px 0 0; font-size: 14px; color: var(--sec); text-align: center; min-height: 18px; }

/* the lock screen (LOCK 04 / 36) */
.lockl { z-index: 50; background: #000; display: flex; }
.lockl[hidden] { display: none; }
.plexus { position: absolute; inset: 0; width: 100%; height: 100%; }
.lk { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding-right: 84px; }
.lk[data-l="portrait"], .lk[data-l="phone"] { padding-right: 0; }
.lk[data-l="landscape"] { padding-right: 0; justify-content: space-around; }
.lk-cred { display: flex; flex-direction: column; align-items: center; }
.lk-icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 40px rgba(126,240,200,.25); }
.lk-title { margin: 10px 0 0; min-height: 27px; font-size: 17px; font-weight: 400; color: #8E8E93; text-align: center; }
.lk-dots { display: flex; gap: 18px; margin: 16px 0 44px; }
.lk-dots i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #5A5A60; transition: background .1s; }
.lk-dots i.on { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 5px rgba(126,240,200,.6); }
.lk-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 36px; }
.lk-key { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.045) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(126,240,200,.13); font-size: 32px !important; font-weight: 300; transition: background .1s; }
.lk-key:active { background: rgba(126,240,200,.3) !important; }
.lk-del { width: 76px; height: 76px; display: grid; place-items: center; color: #8E8E93; }
.lk-grid { position: relative; width: 280px; height: 280px; margin-top: 18px; touch-action: none; }
.lk-grid canvas { width: 280px; height: 280px; display: block; }
.lk-note { min-height: 20px; margin: 6px 0 0; color: var(--coral); font-size: 15px; }
.lk-foot { display: flex; gap: 22px; margin-top: 20px; }
.lk-link { font-size: 15px !important; color: #8E8E93 !important; min-height: 44px; }
.lk-link.mint { color: var(--mint) !important; }
.lk-face { width: 58px; height: 58px; margin-top: 26px; display: grid; place-items: center; color: var(--mint); border-radius: 50%; background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px rgba(126,240,200,.13); }
.lk-face.scan svg { animation: scan .7s ease-in-out; }
@keyframes scan { 50% { transform: scale(.85); filter: drop-shadow(0 0 10px var(--mint)); } }
.lk-side { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 300px; }
.lk-side .lk-face { width: 104px; height: 104px; box-shadow: inset 0 0 0 1.5px rgba(126,240,200,.3); }
.lk-side .lk-face svg { width: 64px !important; height: 64px !important; }
.lk-ft { margin: 8px 0 0; font-size: 20px; font-weight: 400; }
.lk-fs { margin: 0; color: var(--sec); font-size: 15px; }
.lk-toast { position: absolute; left: 50%; top: calc(var(--sat, 0px) + 20px); pointer-events: none; transform: translateX(-50%); max-width: 320px; padding: 12px 18px; border-radius: 14px; background: rgba(36,36,40,.94); font-size: 14px; text-align: center; animation: menu-in .2s; }
.lk-toast[hidden] { display: none; }
.duo[data-layout="closed"] .lk-toast { left: 191px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.lk[data-l="closed"] .lk-key, .lk[data-l="closed"] .lk-del { width: 68px; height: 68px; font-size: 29px !important; }
.lk[data-l="closed"] .lk-pad { grid-template-columns: repeat(3, 68px); gap: 10px 36px; }
.lk[data-l="portrait"] .lk-icon, .lk[data-l="landscape"] .lk-icon { width: 96px; height: 96px; border-radius: 22px; }
.lk[data-l="portrait"] .lk-title, .lk[data-l="landscape"] .lk-title { margin-top: 18px; min-height: 0; font-size: 24px; font-weight: 600; color: #E6E6EA; }
.lk[data-l="portrait"] .lk-dots, .lk[data-l="landscape"] .lk-dots { margin: 20px 0 42px; }
.lk[data-l="portrait"] .lk-dots i, .lk[data-l="landscape"] .lk-dots i { width: 16px; height: 16px; box-shadow: inset 0 0 0 2px #5A5A60; }
.lk[data-l="portrait"] .lk-pad, .lk[data-l="landscape"] .lk-pad { grid-template-columns: repeat(3, 82px); gap: 12px 36px; }
.lk[data-l="portrait"] .lk-key, .lk[data-l="landscape"] .lk-key, .lk[data-l="portrait"] .lk-del, .lk[data-l="landscape"] .lk-del { width: 82px; height: 82px; font-size: 32.8px !important; }
/* open wide: open-lock-landscape-en.png measures 76 pt keys on a 94 pt pitch and a medium title */
.lk[data-l="landscape"] .lk-pad { grid-template-columns: repeat(3, 76px); gap: 10px 18px; }
.lk[data-l="landscape"] .lk-key, .lk[data-l="landscape"] .lk-del { width: 76px; height: 76px; font-size: 31px !important; }
.lk[data-l="landscape"] .lk-title { font-weight: 500; }

/* Import picker and progress (LOCK 17 shot, LOCK 51) */
.picker { padding: 0 0 240px !important; }
.pk-h { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: var(--top) 20px 0; box-sizing: content-box; }
.pk-h b { font-size: 18px; font-weight: 700; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 10px; }
.app[data-l="portrait"] .pk-grid { grid-template-columns: repeat(4, 1fr); }
.pk { position: relative; aspect-ratio: 1; overflow: hidden; background: #111 !important; }
.pk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk.on img { opacity: .75; }
.pk.on::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--mint); }
.pk-n { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: #0b0b0b; font-size: 14px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pk-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 6px 20px 20px; border-radius: 24px 24px 0 0; background: rgba(20,20,22,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #2a2a2e; }
.app[data-l="phone"] .pk-sheet { padding-bottom: calc(14px + var(--sab)); }
.pk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; font-size: 17px; border-bottom: 1px solid #2a2a2e; text-align: left; }
.pk-into { display: flex; align-items: center; gap: 8px; color: #fff; }
.pk-sheet .opal-btn { margin-top: 16px; }
.importing { text-align: center; }
.pg-scroll.importing, .pg-scroll.imp-paused { padding-left: 22px; padding-right: 22px; }
/* FileImportRunPage topBar: spacing 12, min 44, top 12; heading 28 bold, leading */
.imp-h { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 12px; text-align: left; }
.imp-h b { flex: 1; min-width: 0; font-size: 28px; font-weight: 700; white-space: nowrap; }
.imp-pause { display: block; margin: 10px auto 0; min-height: 44px; padding: 0 12px !important; color: var(--mint); font-size: 15px; font-weight: 600; }
.imp-paused { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.imp-paused { justify-content: center; }
.imp-paused > b { font-size: 22px; font-weight: 700; }
.imp-paused p { margin: 0; color: var(--sec); font-size: 15px; line-height: 1.4; }
.imp-paused .opal-btn { align-self: stretch; }
.tbtn.danger { color: var(--coral); }
.imp-ring { --p: 0; position: relative; width: 168px; height: 168px; margin: 18px auto 0; border-radius: 50%; }
.imp-ring .trk, .imp-ring .arc { position: absolute; inset: 0; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 74px, #000 75px); mask: radial-gradient(circle, transparent 74px, #000 75px); }
.imp-ring .trk { background: #232327; }
.imp-ring .arc { background: conic-gradient(#E4FCA6, #A6F3EF calc(var(--p) * .6%), #A8E1FC calc(var(--p) * 1%), transparent 0); filter: drop-shadow(0 0 8px rgba(166,243,239,.45)); }
.importing:not(.done) .imp-ring .arc { animation: sheen 1.6s ease-in-out infinite; }
@keyframes sheen { 50% { filter: drop-shadow(0 0 14px rgba(166,243,239,.8)) brightness(1.15); } }
.imp-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.imp-c b { font-size: 34px; font-weight: 300; font-variant-numeric: tabular-nums; }
.imp-c small { font-size: 13px; color: var(--sec); }
.importing.done .imp-ring .trk { background: var(--mint); -webkit-mask: none; mask: none; animation: pop .32s; }
.importing.done .imp-ring .arc { display: none; }
.importing.done .imp-c { color: #0b0b0b; }
.importing.done .imp-c svg { stroke-width: 2.4; }
.imp-res { margin: 18px 0 0; font-size: 15px; color: var(--sec); animation: vfade .4s; }
.imp-res b { display: block; color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.imp-safe { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--mint); font-size: 15px; }
.imp-list { margin-top: 18px; text-align: left; }
.imp-row { display: flex; align-items: center; gap: 12px; height: 56px; border-bottom: 1px solid #1f1f22; }
.imp-row > span:not(.tile) { flex: 1; min-width: 0; }
.imp-row b { display: block; font-size: 15px; font-weight: 500; }
.imp-row small { font-size: 13px; color: var(--sec); }
.imp-row .ok { color: var(--mint); }
.imp-btns { margin-top: 22px; }

/* Private Browser (LOCK 15) */
.priv { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 30px; padding: 0 12px; border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(126,240,200,.55); color: var(--mint); font-size: 13px; }
/* Decoy setup steps (DecoySetupView.swift: explain 249-280, point 353, contents 474, DecoyChoiceLabel 1218) */
.dcset { display: flex; flex-direction: column; min-height: 100%; }
.dc-hrow { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; min-height: 44px; }
.dc-h { margin: 0; font-size: 29.5px; font-weight: 700; }
.dc-badge { margin-top: 8px; padding: 4px 8px; border-radius: 99px; background: var(--opal); color: #0B0B0B; font-style: normal; font-size: 11px; font-weight: 800; }
.dc-fork { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }
.dc-src { display: flex; align-items: center; justify-content: center; gap: 6px; width: 135px; height: 45px; border-radius: 99px; background: #151517; box-shadow: inset 0 0 0 1px #2A2A2E; font-size: 14.5px; }
.dc-brk { width: 160px; height: 22px; margin-top: 1px; border: 1.5px solid #3A3A40; border-bottom: 0; border-radius: 12px 12px 0 0; }
.dc-dests { display: flex; gap: 8px; align-self: stretch; margin-top: -1px; }
.dc-dest { flex: 1; min-width: 0; min-height: 104px; display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 14px; background: #151517; }
.dc-dest b { font-size: 16.1px; font-weight: 700; line-height: 1.2; }
.dc-dest small { font-size: 14px; color: var(--sec); line-height: 1.25; }
.dc-dest.mint { box-shadow: inset 0 0 0 1px rgba(126,240,200,.5); color: var(--mint); }
.dc-dest.vid { box-shadow: inset 0 0 0 1px rgba(91,205,235,.5); color: #5BCDEB; }
.dc-dest b { color: #fff; }
.dc-dest.mint small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-pts { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.dc-pt { display: flex; align-items: flex-start; gap: 16px; }
.dc-pt > span { color: var(--mint); flex: none; }
.dc-pt:first-child > span { color: #5BCDEB; }
.dc-pt:last-child > span { color: var(--sec); }
.dc-pt p { margin: 0; font-size: 16.75px; line-height: 1.35; color: #D8D8DC; }
.dc-lead { margin: 18px 0 0; font-size: 20px; line-height: 1.45; }
.dc-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dc-choice { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px 20px !important; border-radius: 16px; background: #1C1C1F !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: left; color: #C8C8CC; }
.dc-choice.on { box-shadow: inset 0 0 0 1px rgba(126,240,200,.8); color: var(--mint); }
.dc-choice > span { flex: 1; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.dc-choice b { font-size: 18.75px; font-weight: 700; }
.dc-choice small { font-size: 14.75px; color: var(--sec); }
.dc-radio { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sec); display: grid; place-items: center; color: #0B0B0B; }
.dc-choice.on .dc-radio { background: var(--mint); box-shadow: none; }
.dc-go { margin-top: auto; flex: none; }
.dc-pts, .dc-choices { margin-bottom: 24px; }

/* PrivateWebScreen.swift:185-300, 978: address field 52 pt r17, sectionLabel 12 pt caps, solid colour bookmark tiles */
.addr-big { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; margin-top: 14px; padding: 0 16px !important; border-radius: 17px; background: #1C1C1F !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--sec) !important; font-size: 16px; text-align: left; }
.scr .wsec { margin: 22px 0 6px; padding: 0 4px; min-height: 18px; font-size: 12px; font-weight: 400; letter-spacing: .72px; text-transform: uppercase; color: var(--sec); }
.scr .wsec-bm { margin-top: 37px; }
.bms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bm { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 80px; }
.bm span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #0B0B0B; background: var(--c); }
.bm.add span { color: var(--mint); background: none; box-shadow: inset 0 0 0 1.5px rgba(126,240,200,.35); }
.bm small { font-size: 12px; color: #c7c7cc; }
.saves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.saves .cell { border-radius: 10px; }
.web-pg { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.w-top { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px; background: rgba(22,22,24,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 -1px 0 rgba(255,255,255,.08); }
.app[data-l="phone"] .w-top { padding-top: calc(var(--sat) + 8px); }
.app:not([data-l="phone"]):not([data-l="closed"]) .w-top { padding-top: 46px; }
.wbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07) !important; color: #fff; flex: none; position: relative; }
.wbtn::after { content: ""; position: absolute; inset: -3px; }
.wbtn.mint { color: var(--mint); }
.w-addr { flex: 1; min-width: 0; height: 40px; border-radius: 14px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; color: #fff; white-space: nowrap; overflow: hidden; }
.w-addr svg { color: var(--mint); }
.w-addr b { font-size: 15px; font-weight: 600; }
.w-addr span { font-size: 13px; color: var(--sec); overflow: hidden; text-overflow: ellipsis; }
.w-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--mint); opacity: 0; }
.w-prog.go { animation: wprog .9s ease-out; }
@keyframes wprog { 0% { width: 0; opacity: 1; } 80% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.w-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.site { color: #1a1a1a; padding: 22px 20px 30px; font-family: Georgia, "Times New Roman", serif; user-select: none; }
.s-brand { margin: 0; font: 700 15px/1 -apple-system, Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; display: flex; justify-content: space-between; color: #0d5c4a; }
.s-brand small { font-weight: 400; letter-spacing: .04em; text-transform: none; color: #777; }
.site h1 { margin: 22px 0 6px; font-size: 30px; line-height: 1.12; font-weight: 700; }
.s-by { margin: 0 0 16px; font: 13px -apple-system, Inter, system-ui, sans-serif; color: #777; }
.s-tx { margin: 14px 0; font-size: 17px; line-height: 1.55; }
.s-img { display: block; width: 100%; height: auto; border-radius: 6px; margin: 14px 0; -webkit-touch-callout: none; cursor: context-menu; }
.w-bot { flex: none; display: flex; justify-content: space-around; padding: 6px 4px 14px; background: rgba(22,22,24,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.app[data-l="phone"] .w-bot { padding-bottom: max(var(--sab), 10px); }
.wbtn2 { width: 56px; height: 48px; display: grid; place-items: center; color: #fff; }
.wbtn2:disabled { color: #55555a; }

/* search */
.srch { display: flex; align-items: center; gap: 10px; height: 44px; }
.sfield { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: #1c1c1f; color: var(--sec); }
.sfield input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 17px; outline: none; -webkit-appearance: none; appearance: none; }

/* ---------- full screen on a phone: the open Duo, turned (frames A4, A4b) ---------- */
body.full .try-bar, body.full .todo, body.full .fkey, body.full .duo-open { display: none !important; }
body.full .try-main { height: 100vh; height: 100dvh; }
body.full .try-stage { position: fixed; inset: 0; z-index: 30; background: #000; flex-direction: column; }
body.full .full-x { display: grid; position: fixed; z-index: 40; right: max(10px, env(safe-area-inset-right)); top: max(10px, var(--sat)); width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(36,36,40,.9); color: #fff; }
body.full .full-x svg { width: 22px; height: 22px; }
body.full:not(.full-wide):not(.wide-now) .turn-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); max-width: 340px; }
.turn-ask > svg { width: 32px; height: 32px; color: var(--mint); animation: ask-turn 2.4s ease-in-out infinite; flex: none; }
.turn-ask p { flex: 1; min-width: 0; }
/* the wide Duo without turning: a window that does not turn (an in-app browser, a computer) still reaches it */
.turn-wide { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong) !important; color: var(--ink); font-size: 15px; }
.turn-wide svg { width: 18px; height: 18px; }
body:not(.handset) .turn-ask > svg, body:not(.handset) .turn-ask p { display: none; }   /* a computer has no phone to turn */
body:not(.handset).full .turn-ask { border: 0; padding: 0; }
body.phone:not(.handset) .todo-dev .seg { display: none; }   /* My phone / iPhone Duo is a phone's choice */
body.phone:not(.handset) .todo-dev { justify-content: flex-end; }
@keyframes ask-turn { 0%, 30% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
.turn-ask p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.turn-ask b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
body.full-wide .full-x { top: 50%; margin-top: -22px; }

/* ---------- a phone: the page's controls in one sheet from one floating key ---------- */
body.phone .try-bar { display: none; }
body.phone .try-main { height: 100vh; height: 100dvh; }
body.phone .try-stage { flex-direction: column; gap: 14px; background: none; }
body.phone:not(.own) .try-stage { background: radial-gradient(ellipse 60% 40% at 50% 45%, rgba(126,240,200,.08), rgba(126,240,200,0) 70%); }
body.phone:not(.own):not(.full) .duo-open { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 15px; }
.duo-open svg { width: 20px; height: 20px; color: var(--mint); }
body.phone.own .try-stage { position: fixed; inset: 0; display: block; }
body.phone.own .dev-box { position: absolute !important; left: 0; top: 0; }
body.own .frame { left: 0; top: 0; translate: none; border-radius: 0; background: #000; box-shadow: none; }
body.own .scr, body.own .duo[data-layout] .scr { border-radius: 0; }   /* the visitor's own screen is square, also when closed */
body.own .crease { display: none !important; }
body.phone .fkey { display: flex; position: fixed; z-index: 45; left: 0; top: 44%; width: 44px; height: 56px; padding: 0 0 0 2px !important; align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  border-radius: 0 16px 16px 0; background: rgba(30,30,34,.82) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset -1px 0 0 rgba(255,255,255,.1), 0 6px 20px rgba(0,0,0,.5); color: var(--mint); }
/* own phone: the empty top of the Duo rail, or the left edge just above the tab bar */
body.phone.own:not([data-l="phone"]) .fkey { left: auto; right: 20px; top: calc(var(--sat) + 12px); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
body.phone.own[data-l="phone"] .fkey { top: auto; bottom: calc(var(--sab) + 100px); }
body.phone:not(.own) .fkey { top: auto; bottom: max(16px, var(--sab)); left: 16px; width: auto; height: 44px; padding: 0 14px !important; border-radius: 22px; flex-direction: row; gap: 6px; }
body.phone .fkey { touch-action: none; transition: opacity .4s, transform .4s cubic-bezier(.2,.9,.25,1); }
body.phone .fkey.idle:not([aria-expanded="true"]) { opacity: .45; }
/* own phone: idle, the key slides behind the screen edge and leaves an 8 px tab with its mint handle on screen, so the
   page's controls stay findable while the app keeps the screen (r6-ux gap 3); a tap or a swipe in brings it back */
body.phone.own .fkey.idle:not([aria-expanded="true"]) { transform: translateX(calc(-100% + 8px)); opacity: 1; }
body.phone.own .fkey.right.idle:not([aria-expanded="true"]) { transform: translateX(calc(100% - 8px)); }
body.phone.own:not([data-l="phone"]) .fkey.idle:not([aria-expanded="true"]) { transform: translateX(calc(100% + 12px)); }
body.phone.own .fkey::before { content: ""; position: absolute; top: 50%; right: -5px; width: 3px; height: 28px; margin-top: -14px; border-radius: 2px; background: rgba(126,240,200,.55); opacity: 0; transition: opacity .3s; pointer-events: none; }
body.phone.own .fkey.right::before, body.phone.own:not([data-l="phone"]) .fkey::before { right: auto; left: -5px; }
body.phone.own:not([data-l="phone"]) .fkey::before { left: -8px; }
body.phone.own .fkey.idle:not([aria-expanded="true"])::before { opacity: 1; }
body.phone.own[data-l="phone"] .fkey.right { left: auto; right: 0; border-radius: 16px 0 0 16px; box-shadow: inset 1px 0 0 rgba(255,255,255,.1), 0 6px 20px rgba(0,0,0,.5); }
.fkey svg { width: 20px; height: 20px; }
.fkey span { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fkey.pulse { animation: tick-pop .6s cubic-bezier(.3,1.6,.5,1); }
/* an idle key off the screen must stay off: a tick only lights its edge handle */
body.phone.own .fkey.idle.pulse:not([aria-expanded="true"]) { animation: none; }
body.phone.own .fkey.idle.pulse:not([aria-expanded="true"])::before { animation: handle-ping .9s ease-out 2; }
@keyframes handle-ping { 50% { transform: scaleY(1.5); background: #7ef0c8; box-shadow: 0 0 10px rgba(126,240,200,.8); } }
body.phone .todo { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; max-height: 86dvh; padding: 6px 16px calc(18px + var(--sab)); border: 0; border-radius: 22px 22px 0 0;
  background: #121214; box-shadow: inset 0 1px 0 var(--line-strong); transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.9,.25,1), visibility .32s; }
body.phone.sheet-open .todo { transform: none; visibility: visible; }
body.phone .todo-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.phone.sheet-open .todo-scrim { opacity: 1; pointer-events: auto; }
body.phone .todo-grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: #3a3a40; margin: 4px auto 8px; flex: none; }
body.phone .todo-head { align-items: center; gap: 10px; margin-bottom: 8px; }
body.phone .todo-head h1 { flex: 1; }
body.phone .todo-close { display: grid; width: 44px; height: 44px; place-items: center; color: var(--ink-soft); }
body.phone .todo-close svg { width: 20px; height: 20px; }
body.phone .todo-dev { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
body.phone .todo-dev .seg { flex: 1; }
body.phone .todo-dev .seg button { flex: 1; justify-content: center; min-height: 40px; }
body.phone .todo-item { padding: 9px 8px !important; }
body.phone .todo-note { margin: 12px 8px 0; }
body.phone .todo-foot { margin-top: 12px; padding-top: 6px; }
body.phone .todo-site { display: inline-flex; color: var(--ink-soft); }
body.phone .todo-soon { display: block; margin: 4px 8px 0; font-size: 13px; color: var(--ink-dim); }
@media (prefers-reduced-motion: reduce) {
  .try *, .try *::before, .try *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .16s !important; }
}

/* a single-screen iPhone app is portrait only (INFOPLIST_KEY_UISupportedInterfaceOrientations = Portrait) */
.upright { display: none; }
@media (orientation: landscape) {
  body.phone.own[data-l="phone"] .upright { display: flex; position: fixed; inset: 0; z-index: 44; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #000; text-align: center; padding: 24px; }
  body.phone.own[data-l="phone"] .upright svg { width: 44px; height: 44px; color: var(--mint); transform: rotate(90deg); }
  body.phone.own[data-l="phone"] .upright b { display: block; font-size: 17px; font-weight: 600; }
  body.phone.own[data-l="phone"] .upright span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-dim); }
}
/* an open video full screen (sideways, or the Full Screen key): the whole viewer covers the screen, immersive -
   no header, no action row; the scrubber row with Exit Full Screen and the play key leave with the bars */
body.vfull .upright, body.vfull .fkey { display: none !important; }
body.vfull #app [data-viewer] { position: fixed; inset: 0; z-index: 46; }
body.vfull #app [data-viewer] .v-top, body.vfull #app [data-viewer] .v-acts { display: none; }
body.vfull #app [data-viewer] .v-stage { top: 0; bottom: 0; }
body.vfull #app [data-viewer] video { width: 100%; height: 100%; object-fit: contain; }
body.vfull #app [data-viewer].bare .v-bigplay { opacity: 0; pointer-events: none; }
body.vfull #app [data-viewer] .v-bot { padding: 0 max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.v-fs { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; color: #fff; }
.v-fs[hidden] { display: none; }

/* iPhone Pro Max (00/P'Ek 2026-11-18): 440 x 956 pt (ios-axiom layout-ref.md:614), the app's tab-bar layout. Corners and
   the Dynamic Island in the site's own iPhone proportions (video/src/iphone.css:3-9, 30-34: corner .15 W, bezel .025 W,
   island .298 W x .0875 W, .026 W below the glass); ios-axiom gives no Pro Max corner or island size */
.island { display: none; }
.duo[data-dev="pro"] .frame { border-radius: 69px; }
.duo[data-dev="pro"] .scr { border-radius: 58px; }
.duo[data-dev="pro"] .island { display: block; position: absolute; z-index: 5; left: 50%; top: calc(var(--b) + 12px); width: 138px; height: 40px; margin-left: -69px; border-radius: 20px; background: #000; pointer-events: none; }
.duo[data-dev="pro"][data-side] .island { left: calc(var(--b) + 12px); top: 50%; width: 40px; height: 138px; margin: -69px 0 0; }
.duo[data-dev="pro"] .app, .duo[data-dev="pro"] .lockl { --sat: 62px; --sab: 34px; }
.duo[data-dev="pro"][data-side] .app { --sat: 0px; --sab: 21px; }
/* measured against the real-app captures (Library title, Settings and Collection back keys): their top rows sit right
   under the 62 pt safe area, 14-18 pt higher than the own-phone layout's safe area + 14 */
.duo[data-dev="pro"] .app[data-l="phone"] { --top: calc(var(--sat) - 2px); }
.duo[data-dev="pro"] .st, .duo[data-dev="pro"] .lockl > .st { top: 0; left: 0; width: 100%; height: 64px; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 88px 0 66px; }
.duo[data-dev="pro"] .st-ring { width: auto; height: auto; border: 0; }
.duo[data-dev="pro"] .st-ring::after { display: none; }
.duo[data-dev="pro"][data-side] .st, body.vfull .duo[data-dev="pro"] .st { display: none; }   /* a full-screen video hides the status bar */
body.vfull:not(.own) #app [data-viewer] { position: absolute; }   /* the drawn phone: its own screen, not the window */
body[data-dev="pro"] [data-seg="fold"], body[data-dev="pro"] .duo-open { display: none !important; }
@media (max-width: 1100px) { .try-controls .seg button svg { display: none; } .try-controls .seg button { padding: 0 11px; } }
