/* OmniOrca, the one version: a Mac. Menu bar, desktop, Finder, a window per piece, the Dock.
   Finder is drawn to the measure of the founder's own (references/real-mac-finder.jpg, 2000 px = 1440 pt):
   a 52 pt toolbar, 28 pt sidebar rows, 245 pt columns of 22 pt rows, #2861d4 selection with white text. */
:root {
  --menu: 24px;
  --bar: 52px;
  --side: 168px;
  --sel: #2861d4;            /* selection in the focused list (sampled) */
  --sel-dim: #dcdcdc;        /* the same selection when another column or window has focus (sampled) */
  --accent: #2f7cf6;         /* the Mac's blue: sidebar glyphs, links, default buttons */
  --hair: #e2e2e2;           /* toolbar hairline (sampled) */
  --colsep: #e8e8e8;         /* column separators (sampled) */
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #9a9a9f;
  --win-r: 10px;
  --mark: #ffd60a;           /* every mark, every reviewer: a highlighter's yellow */
  --mark-edge: #c48c00;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
html, body { font-family: var(--sys); color: var(--text); }
body { background: #3d6f93; font-size: 13px; letter-spacing: -.003em; }
#root { position: fixed; inset: 0; }
button { letter-spacing: inherit; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(47,124,246,.5); outline-offset: 1px; border-radius: 6px; }

/* ================= the desktop ================= */
/* the desktop with nothing on it yet: one quiet line, centred, like an empty Finder window's */
.empty-note { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(420px, calc(100% - 40px)); padding: 18px 22px; border-radius: 14px; text-align: center;
  background: rgba(246,246,246,.86); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 14px 44px rgba(0,0,0,.22); }
.empty-note b { display: block; font-size: 15px; margin-bottom: 4px; }
.empty-note span { font-size: 13px; line-height: 1.45; color: var(--text2); }
.desk { position: fixed; inset: 0; z-index: 1; isolation: isolate; overflow: hidden; background: #3d6f93 url("wallpaper.svg") center / cover no-repeat; }
.dicon { position: absolute; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; user-select: none; -webkit-user-select: none; z-index: 1; cursor: default; }
.dicon.glide { transition: left .3s cubic-bezier(.3,.1,.2,1), top .3s cubic-bezier(.3,.1,.2,1); }
.dicon.moving { opacity: .85; z-index: 2; }
.dicon:focus-visible { outline: none; }
.di-art { padding: 3px 6px 2px; border-radius: 5px; display: grid; place-items: center; }
.di-name { max-width: 92px; font-size: 12px; font-weight: 500; line-height: 15px; color: #fff; text-align: center; padding: 0 4px; border-radius: 3px; text-shadow: 0 0 1px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.6); }
.di-info { font-size: 11px; line-height: 13px; color: #c2e6ff; text-shadow: 0 0 1px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.65), 0 0 6px rgba(0,30,60,.35); white-space: nowrap; }
.dicon.sel .di-art { background: rgba(0,0,0,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dicon.sel .di-name { background: var(--sel); text-shadow: none; }
body:has(.win.active) .dicon.sel .di-name { background: rgba(110,110,115,.85); }

/* ================= the menu bar ================= */
.menubar { position: fixed; left: 0; right: 0; top: 0; height: var(--menu); z-index: 50; display: flex; align-items: center; padding: 0 8px 0 10px; gap: 0;
  background: rgba(246,246,246,.55); -webkit-backdrop-filter: saturate(1.8) blur(30px); backdrop-filter: saturate(1.8) blur(30px);
  font-size: 13px; color: #000; user-select: none; -webkit-user-select: none; transition: transform .28s cubic-bezier(.3,.8,.2,1); }
.mb-mark { display: inline-flex; align-items: center; height: 22px; padding: 0 10px 0 6px; }
.mb-mark .mark svg { width: 15px; height: 15px; }
.mb-title, .mb-item { height: 22px; padding: 0 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 22px; }
.mb-title.app { font-weight: 700; }
.mb-title:hover:not(.open) { background: transparent; }
.mb-title.open, .mb-item.open, .mb-item:active { background: rgba(0,0,0,.12); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mb-right .presence { margin-right: 6px; padding: 0 2px; }
.mb-right .pr { margin-left: -4px; cursor: default; }
.mb-right .pr:not(.me) { cursor: pointer; }
.mb-right .pr .face, .mb-right .pr .face svg { width: 19px !important; height: 19px !important; }
.mb-right .pr .face { box-shadow: 0 0 0 1.5px rgba(246,246,246,.9); }
.mb-right .pr:hover { transform: none; }
.mb-right .pr:not(.me):hover .face { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px rgba(0,0,0,.18); }
.pr-tip { top: calc(100% + 9px); background: rgba(246,246,246,.92); color: var(--text); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.18); border-radius: 8px; font-size: 12px; padding: 6px 10px; }
.pr-tip span { color: var(--text2); }
.pr-tip .pr-go { color: var(--accent); }
.pr-tip em { color: var(--text3); }
.mb-prog { font-variant-numeric: tabular-nums; }
.mb-prog .ring { display: inline-flex; color: #000; }
.mb-prog.ready .ring { color: #000; }
.mb-act { width: 0; height: 22px; }
.mb-act .act-btn { display: none; }
.mb-act .act-pop { top: calc(100% + 2px); right: 150px; border-radius: 10px; }
.mb-clock { padding: 0 8px 0 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-hot { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 49; display: none; }

/* a status item's drop-down: a menu holding a little more */
.status-menu { width: 300px; padding: 6px; }
.sm-head { padding: 6px 10px 2px; display: flex; flex-direction: column; gap: 1px; }
.sm-head b { font-size: 13px; font-weight: 600; }
.sm-head span { font-size: 12px; color: var(--text2); }
.sm-total { height: 5px; margin: 8px 10px 6px; border-radius: 3px; background: rgba(0,0,0,.1); overflow: hidden; }
.sm-total i, .sm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.sm-round { font-size: 11.5px; color: var(--text2); padding: 2px 10px 4px; }
.sm-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 26px; padding: 0 10px; border-radius: 5px; text-align: left; }
.sm-row:hover { background: var(--sel); color: #fff; }
.sm-row:hover .sm-n, .sm-row:hover .sm-n .gi { color: #fff; }
.sm-row:hover .sm-bar { background: rgba(255,255,255,.3); }
.sm-row:hover .sm-bar i { background: #fff; }
.sm-name { flex: 1; }
.sm-bar { width: 64px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.1); overflow: hidden; }
.sm-n { width: 46px; text-align: right; font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; display: inline-flex; justify-content: flex-end; }
.sm-n .gi { color: #30b453; }
.sm-send { padding: 4px 10px 8px; }
.sm-send p { margin: 2px 0 10px; font-size: 12px; line-height: 1.4; color: var(--text2); }
.sm-send .mac-btn { width: 100%; }

/* the Mac's push button; the default one is blue */
.mac-btn { height: 24px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 1px 1.5px rgba(0,0,0,.12); }
.mac-btn.default { color: #fff; background: linear-gradient(#3b8cf7, #2475f0); box-shadow: 0 0 0 .5px rgba(0,60,180,.4), 0 1px 1.5px rgba(0,0,0,.18); }
.mac-btn.default:active { background: #1d64d4; }

/* menus: the Mac's, translucent, rounded, blue under the pointer */
.menu { position: fixed; z-index: 75; min-width: 220px; padding: 5px; border-radius: 9px; background: rgba(240,240,240,.82); color: #000;
  -webkit-backdrop-filter: saturate(1.8) blur(40px); backdrop-filter: saturate(1.8) blur(40px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.24), inset 0 0 0 .5px rgba(255,255,255,.5), 0 12px 36px rgba(0,0,0,.24); font-size: 13px; animation: menuIn .1s ease-out; }
@keyframes menuIn { from { opacity: 0; } }
.menu.sub { position: absolute; }
.mi { display: flex; align-items: center; gap: 8px; width: 100%; height: 22px; padding: 0 10px 0 22px; border-radius: 4px; text-align: left; position: relative; white-space: nowrap; }
.mi .k { margin-left: auto; padding-left: 28px; color: rgba(0,0,0,.42); font-size: 13px; }
.mi.check::before { content: "✓"; position: absolute; left: 8px; font-size: 12px; font-weight: 600; }
.mi:hover:not(:disabled), .mi.has-sub:focus-within { background: var(--sel); color: #fff; }
.mi:hover:not(:disabled) .k, .mi:hover:not(:disabled) .sub { color: rgba(255,255,255,.75); }
.mi:disabled { color: rgba(0,0,0,.28); cursor: default; }
.mi.tall { height: auto; padding-top: 3px; padding-bottom: 3px; flex-direction: column; align-items: flex-start; gap: 0; }
.mi .sub { font-size: 11px; color: var(--text2); }
.mi-dot { flex: none; width: 10px; height: 10px; margin-right: -2px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.mi-sep { height: 1px; margin: 5px 10px; background: rgba(0,0,0,.1); }
.mi-label { padding: 3px 10px 2px; font-size: 11px; color: rgba(0,0,0,.45); font-weight: 600; white-space: nowrap; }

/* full screen: the window owns the screen; the menu bar and Dock come back when you touch the top edge */
body.fullscreen .menubar { transform: translateY(-100%); }
body.fullscreen.reveal .menubar { transform: none; box-shadow: 0 1px 10px rgba(0,0,0,.15); background: rgba(246,246,246,.92); }
body.fullscreen .dock { transform: translate(-50%, calc(100% + 60px)); }   /* far enough that its shadow is gone too */
body.fullscreen .mb-hot { display: block; }

/* ================= windows ================= */
.win { position: absolute; display: flex; flex-direction: column; background: #fff; border-radius: var(--win-r); contain: layout;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.28), 0 22px 70px rgba(0,0,0,.32), 0 4px 14px rgba(0,0,0,.14); min-width: 0; }
.win:not(.active) { box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 12px 36px rgba(0,0,0,.18); }
.win.anim { transition: left .26s cubic-bezier(.3,.8,.2,1), top .26s cubic-bezier(.3,.8,.2,1), width .26s cubic-bezier(.3,.8,.2,1), height .26s cubic-bezier(.3,.8,.2,1), border-radius .26s; }
.win.full { border-radius: 0; box-shadow: none; }
.win.called { animation: called .7s cubic-bezier(.2,1.2,.4,1); }
@keyframes called { 30% { transform: scale(1.012); } }
.win.dragging, .win.resizing { user-select: none; }
.win.dragging iframe, .win.resizing iframe, body.wm-busy iframe { pointer-events: none; }
.win-bar { position: relative; flex: none; height: var(--bar); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 20px; border-radius: var(--win-r) var(--win-r) 0 0;
  background: #fdfdfd; box-shadow: 0 1px 0 var(--hair); cursor: default; user-select: none; -webkit-user-select: none; z-index: 6; }
.win.full .win-bar { border-radius: 0; }
.win:not(.active) .win-bar { background: #f6f6f6; }
.win:not(.active) .win-bar > :not(.lights) { opacity: .55; }
.win-body { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 var(--win-r) var(--win-r); }
.win.full .win-body { border-radius: 0; }
.lights { display: flex; gap: 8px; flex: none; position: relative; margin-right: 6px; }
.light { width: 12px; height: 12px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.l-close { background: #ff5f57; } .l-min { background: #febc2e; } .l-zoom { background: #28c840; }
.win:not(.active) .light { background: #d6d6d6; }
.lights:hover .light { background-repeat: no-repeat; background-position: center; }
.lights:hover .l-close { background-color: #ff5f57; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.7 3.7l4.6 4.6M8.3 3.7L3.7 8.3' stroke='%234d0000' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lights:hover .l-min { background-color: #febc2e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23985700' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lights:hover .l-zoom { background-color: #28c840; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.7 4.4v3.9h3.9zM8.3 7.6V3.7H4.4z' fill='%23006500'/%3E%3C/svg%3E"); }
.win.full .lights { opacity: 0; transition: opacity .2s; }
body.reveal .win.full .lights { opacity: 1; }
.win.full .win-bar { transition: transform .28s cubic-bezier(.3,.8,.2,1); }
body.reveal .win.full .win-bar { transform: translateY(var(--menu)); }
.wb-left, .wb-right { display: flex; align-items: center; gap: 2px; flex: none; }
.wb-mid { flex: 1; min-width: 60px; display: flex; align-items: center; gap: 8px; }
.wb-right { margin-left: auto; gap: 4px; }
.wb-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wb-title b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-title span { font-size: 11px; color: var(--text2); white-space: nowrap; }
.wb-faces { display: flex; margin-right: 4px; }
.wb-faces .face + .face { margin-left: -5px; }
.wb-faces .face { box-shadow: 0 0 0 1.5px #fdfdfd; border-radius: 50%; animation: pop .35s var(--spring); }

/* resize handles, all eight edges */
.rz { position: absolute; z-index: 9; }
.rz-n, .rz-s { left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.rz-n { top: -4px; } .rz-s { bottom: -4px; }
.rz-e, .rz-w { top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.rz-e { right: -4px; } .rz-w { left: -4px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 14px; height: 14px; }
.rz-ne { right: -5px; top: -5px; cursor: nesw-resize; } .rz-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.rz-nw { left: -5px; top: -5px; cursor: nwse-resize; } .rz-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.win.full .rz { display: none; }

.snap-ghost { position: absolute; z-index: 9999; border-radius: 12px; background: rgba(255,255,255,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 10px 40px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .15s, left .18s var(--ease), top .18s var(--ease), width .18s var(--ease), height .18s var(--ease); }
.snap-ghost.on { opacity: 1; }
.zoom-menu { position: absolute; left: 30px; top: 18px; z-index: 30; width: 200px; padding: 5px; border-radius: 9px; background: rgba(240,240,240,.88);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 0 0 0 .5px rgba(0,0,0,.24), 0 12px 36px rgba(0,0,0,.22); animation: menuIn .1s ease-out; }
.zm-title { font-size: 11px; color: rgba(0,0,0,.45); font-weight: 600; padding: 3px 8px; }
.zm-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 13px; }
.zm-item .gi svg { width: 15px; height: 15px; }
.zm-item:hover { background: var(--sel); color: #fff; }

/* toolbar buttons: borderless until you touch them, like every Mac toolbar */
.tb-btn { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 5px; border-radius: 6px; color: #5b5b5f; transition: background .12s; }
.tb-btn:hover:not(:disabled) { background: rgba(0,0,0,.05); }
.tb-btn:active:not(:disabled) { background: rgba(0,0,0,.1); }
.tb-btn:disabled { color: #c4c4c6; cursor: default; }
.tb-btn.on { background: rgba(0,0,0,.06); color: #2c2c2e; }
.tb-btn .gi { display: inline-flex; }
.tb-gap { width: 8px; }

/* ================= the Dock ================= */
.dock { position: fixed; left: 50%; bottom: 5px; transform: translateX(-50%); z-index: 40; display: flex; align-items: flex-end; gap: 4px; height: 70px; padding: 4px 5px 5px;
  border-radius: 20px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: saturate(1.6) blur(30px); backdrop-filter: saturate(1.6) blur(30px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), inset 0 0 0 .5px rgba(255,255,255,.45), 0 10px 30px rgba(0,0,0,.18); transition: transform .3s cubic-bezier(.3,.8,.2,1); }
.dk { position: relative; width: 60px; height: 60px; display: grid; place-items: center; transition: transform .18s var(--ease); }
.dk:hover { transform: translateY(-3px); }
.dk:active { filter: brightness(.8); }
.dk-ic { display: grid; place-items: center; }
.dk-ic.win-th { width: 52px; height: 52px; }
.dk-ic.win-th .th { box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.dk-dot { position: absolute; bottom: -3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0,0,0,.6); }
.dk-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; padding: 2px 10px; border-radius: 6px;
  background: rgba(240,240,240,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .1s; }
.dk:hover .dk-tip { opacity: 1; }
.dk-sep { width: 1px; align-self: stretch; margin: 8px 4px; background: rgba(0,0,0,.2); }
.app-ic { display: inline-block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* ================= Finder ================= */
.win.finder { background: transparent; }
.win.finder .win-bar { position: absolute; left: 0; right: 0; top: 0; height: var(--bar); background: transparent; box-shadow: none; padding: 0 12px 0 20px; z-index: 6; }
.win.finder .win-bar::after { content: ""; position: absolute; left: var(--side); right: 0; top: 0; bottom: 0; z-index: -1; background: #fdfdfd; box-shadow: 0 1px 0 var(--hair); border-top-right-radius: var(--win-r); }
.win.finder.full .win-bar::after { border-radius: 0; }
.win.finder:not(.active) .win-bar::after { background: #f6f6f6; }
.win.finder .win-bar .wb-left { position: absolute; left: calc(var(--side) + 12px); top: 12px; gap: 3px; }
.win.finder .win-bar .wb-mid { display: none; }
.win.finder .win-body { display: flex; border-radius: var(--win-r); overflow: hidden; }
.win.finder.full .win-body { border-radius: 0; }
.fd-side { flex: none; height: 100%; padding: 52px 10px 12px; overflow: auto; user-select: none; -webkit-user-select: none;
  background: rgba(234,234,236,.88); -webkit-backdrop-filter: saturate(1.6) blur(40px); backdrop-filter: saturate(1.6) blur(40px); box-shadow: inset -1px 0 0 rgba(0,0,0,.09); }
.win.finder.full .fd-side { background: #cfcfcf; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset -1px 0 0 #bfbfbf; }
.fs-h { font-size: 11px; font-weight: 700; color: rgba(0,0,0,.42); padding: 14px 8px 3px; white-space: nowrap; }
.fs-h:first-child { padding-top: 3px; }
.fs-row { display: flex; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 13px; text-align: left; white-space: nowrap; color: var(--text); }
.fs-row .gi { color: var(--accent); flex: none; display: inline-flex; width: 20px; justify-content: center; }
.fs-row .gi svg { width: 17px; height: 17px; }
.fs-l { overflow: hidden; text-overflow: ellipsis; }
.fs-row.on { background: rgba(0,0,0,.115); }
.win.finder.full .fs-row.on { background: #b6b6b6; }
.tag-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; margin: 0 4.5px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }

.fd-side-edge { flex: none; width: 8px; margin: 0 -4px; position: relative; z-index: 7; cursor: col-resize; }
body.col-resize, body.col-resize * { cursor: col-resize !important; }
.fd-wrap { display: contents; }
.fd-main { flex: 1; min-width: 0; display: flex; padding-top: 53px; position: relative; background: #fff; }
.fd-content { flex: 1; min-height: 0; min-width: 0; overflow: auto; position: relative; outline: none !important; }
.fd-tb-title { font-size: 15px; font-weight: 700; letter-spacing: -.012em; white-space: nowrap; margin-left: 6px; color: var(--text); max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.win.finder .wb-right { position: absolute; right: 12px; top: 12px; gap: 6px; }
.tb-views { display: flex; gap: 1px; margin-right: 22px; }
.tb-view { width: 37px; height: 28px; }
.tb-view.on { background: #f0f0f0; }
.win.finder:not(.active) .tb-view.on { background: #ececec; }
.tb-pop { width: auto; gap: 1px; padding: 0 4px 0 6px; display: inline-flex; align-items: center; }
.tb-pop .gi + .gi { margin-left: 2px; }
.tb-tag { margin-right: 2px; }
.tb-search { display: flex; align-items: center; gap: 6px; width: clamp(150px, 22vw, 324px); height: 28px; margin-left: 30px; padding: 0 8px; border-radius: 8px; box-shadow: 0 0 0 1px #ececec; background: transparent; color: #8a8a8e; }
.tb-search:focus-within { box-shadow: 0 0 0 3.5px rgba(47,124,246,.45); background: #fff; }
.tb-search .gi { display: flex; }
.tb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 13px var(--sys); color: var(--text); }
.tb-search input::placeholder { color: #b0b0b4; }
.tb-search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }

/* columns: one per folder down the trail, Finder's preview as the last */
.fd-content.v-columns { overflow-x: auto; overflow-y: hidden; }
.fc-strip { display: flex; height: 100%; min-width: 100%; }
.fc-col { flex: none; height: 100%; overflow-y: auto; overflow-x: hidden; padding: 5px 0 16px; box-shadow: inset -1px 0 0 var(--colsep); user-select: none; -webkit-user-select: none; }
.fc-row { position: relative; display: flex; align-items: center; gap: 6px; height: 22px; margin: 0 10px; padding: 0 6px 0 7px; border-radius: 5px; font-size: 13px; white-space: nowrap; color: var(--text); }
.fc-row.sel { background: var(--sel); color: #fff; }
.fc-row.sel-dim { background: var(--sel-dim); }
.fd-content:not(:focus-within):not(:focus) .fc-row.sel { background: var(--sel-dim); color: var(--text); }
.win.finder:not(.active) .fc-row.sel { background: var(--sel-dim); color: var(--text); }
.fc-ic { position: relative; flex: none; width: 18px; height: 16px; display: grid; place-items: center; }
.fc-ic .look { left: -9px; top: -6px; }
.fc-name { flex: 1; min-width: 0; overflow: hidden; }
.fc-chev { flex: none; color: #9a9a9e; display: inline-flex; }
.fc-chev svg { width: 9px; height: 9px; }
.fc-row.sel .fc-chev { color: rgba(255,255,255,.85); }
.fc-row .tag-dots { margin-left: 2px; }
.fc-empty { padding: 10px 18px; font-size: 12px; color: var(--text3); white-space: normal; }
/* Finder's preview column takes whatever room the columns leave (his is 245 only because his columns fill the screen) */
.fc-prev { flex: 1 0 245px; min-width: 245px; box-shadow: none; overflow-y: auto; padding: 0; container-type: size; }
.fc-fill { flex: 1 0 0; }
.fc-prev ~ .fc-fill { display: none; }

/* small file icons, at list size */
.file-th { display: block; overflow: hidden; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.28); background: #fff; }
.file-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-ic { position: relative; display: block; background: #fff; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.32), 0 .5px 1px rgba(0,0,0,.1); }
.doc-ic::after { content: ""; position: absolute; left: 22%; right: 22%; top: 34%; height: 40%; background: repeating-linear-gradient(#c9c9cc 0 1px, transparent 1px 2.5px); }
.doc-ic.page::after { background: repeating-linear-gradient(#a8c4ec 0 1px, transparent 1px 2.5px); }
.doc-ic-ear { position: absolute; right: 0; top: 0; width: 30%; height: 24%; background: linear-gradient(225deg, #fff 50%, #d8d8db 50%); }
.doc-ic-tag { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); font-size: 8px; font-weight: 700; color: #6a6a6e; letter-spacing: .02em; }
.tag-dots { display: inline-flex; flex: none; }
.tag-dots i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.fc-row.sel .tag-dots i { box-shadow: 0 0 0 1px var(--sel); }
.folder-ic { display: inline-block; flex: none; line-height: 0; }
.folder-ic svg { display: block; overflow: visible; }

/* the preview: Finder's own */
.fd-prev { flex: none; width: 262px; overflow: auto; box-shadow: inset 1px 0 0 var(--colsep); }
.pv-pane { min-height: 100%; display: flex; flex-direction: column; padding: 16px 11px 10px; user-select: text; }
.pv-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 120px; margin-bottom: 14px; }
.pv-art .th { border-radius: 6px; box-shadow: 0 0 0 .5px rgba(0,0,0,.14); max-width: 100%; height: auto !important; }
.pv-art .th img { height: auto; }
/* the picture gets the height the name, Information, Tags and quick actions (about 390 pt) leave it */
.pv-art .th.image, .pv-art .th.video, .pv-art .th.page { width: min(100%, calc(clamp(160px, 100cqh - 390px, 440px) * var(--ar, 1))) !important; aspect-ratio: var(--ar); }
.pv-art .look { left: 6px; top: 6px; }
.pv-art.pv-folder { min-height: 160px; }
.pv-stack { position: relative; width: 200px; height: 180px; }
.pv-stack .th { position: absolute; left: 50%; top: 50%; box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 4px 14px rgba(0,0,0,.14); }
.pv-name { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; word-break: break-all; }
.pv-kind { font-size: 13px; color: var(--text2); margin-top: 3px; }
.pv-sec { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 700; margin: 18px 0 6px; }
.pv-more { font-size: 13px; font-weight: 400; color: var(--accent); }
.pv-info { margin: 0; }
.pv-irow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; box-shadow: 0 .5px 0 #e5e5e5; font-size: 12px; }
.pv-irow:first-child { box-shadow: 0 -.5px 0 #e5e5e5, 0 .5px 0 #e5e5e5; }
.pv-irow dt { color: var(--text2); }
.pv-irow dd { margin: 0; text-align: right; color: var(--text); }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.tag-pill i { width: 10px; height: 10px; border-radius: 50%; }
.pv-comments { display: flex; flex-direction: column; gap: 8px; }
.pv-c { display: flex; gap: 7px; font-size: 12px; line-height: 1.35; }
.pv-c p { margin: 0; color: var(--text); }
.pv-c-more { font-size: 12px; color: var(--text2); }
.pv-grow { flex: 1; min-height: 24px; }
/* a centred group, 76 pt apart like his, however wide the column */
.pv-qa { display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-top: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 1 76px; min-width: 0; font-size: 11.5px; line-height: 1.2; color: var(--text2); text-align: center; }
.qa .gi { display: grid; place-items: center; width: 30px; height: 26px; color: #6a6a6e; }
.qa .gi svg { width: 21px; height: 21px; }
.qa:hover:not(:disabled) .gi { color: var(--text); }
.qa:disabled { opacity: .45; cursor: default; }
.qa.on { color: #1f8a3c; }

/* icons view: free arrangement */
.fd-icons { position: relative; min-height: 100%; }
.fi { position: absolute; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; user-select: none; -webkit-user-select: none; }
.fi.moving { z-index: 3; opacity: .85; }
.fi-art { position: relative; width: 76px; height: 70px; display: grid; place-items: center; border-radius: 6px; }
.fi.sel .fi-art { background: rgba(0,0,0,.08); }
.fi-name { max-width: 96px; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 15px; text-align: center; padding: 0 4px; border-radius: 4px; }
.fi-name span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.fi.sel .fi-name { background: var(--sel); color: #fff; }
.fd-content:not(:focus-within):not(:focus) .fi.sel .fi-name, .win.finder:not(.active) .fi.sel .fi-name { background: var(--sel-dim); color: var(--text); }
.fi-info { font-size: 11px; color: var(--accent); white-space: nowrap; }
.fd-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text3); font-size: 13px; text-align: center; padding: 20px; }
.marquee { position: absolute; z-index: 4; border: 1px solid rgba(255,255,255,.7); outline: 1px solid rgba(40,97,212,.55); background: rgba(40,97,212,.12); pointer-events: none; }

/* thumbnails, the way Finder draws them */
.th { display: block; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.12); border-radius: 2px; overflow: hidden; position: relative; }
.th img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.th .th-play { position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th .th-play svg { width: 52%; height: 52%; margin-left: 8%; }
.doc-thumb { position: relative; display: flex; flex-direction: column; gap: 5px; width: 76px; height: 96px; padding: 12px 9px 8px; background: #fff; overflow: hidden; text-align: left; }
.doc-thumb b { font: 700 8.5px/1.15 var(--sys); letter-spacing: -.01em; }
.doc-thumb .doc-lines { font-size: 5.5px; line-height: 1.45; color: var(--text2); }
.doc-ear { position: absolute; right: 0; top: 0; width: 13px; height: 13px; background: linear-gradient(225deg, #fff 50%, #e3e3e0 50%); box-shadow: -.5px .5px 0 rgba(0,0,0,.12); }
.look { position: absolute; left: -7px; top: -7px; z-index: 2; display: flex; animation: pop .35s var(--spring); }
.look .face { box-shadow: 0 0 0 1.5px #fff; border-radius: 50%; }
.look .face + .face { margin-left: -4px; }

/* list view */
.fd-list { padding: 0 0 20px; font-size: 13px; min-width: 560px; }
.fl-head, .fl-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) minmax(140px, 1fr) 80px minmax(100px, .8fr); align-items: center; gap: 0; padding: 0 10px; }
.fl-head { height: 28px; position: sticky; top: 0; z-index: 1; background: #fff; box-shadow: 0 1px 0 #e5e5e5; }
.fl-h { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; font-size: 12px; color: var(--text2); text-align: left; box-shadow: inset 1px 0 0 #e5e5e5; }
.fl-h:first-child { box-shadow: none; }
.fl-h.on { color: var(--text); font-weight: 600; }
.fl-h .gi svg { width: 9px; height: 9px; }
.fl-row { height: 24px; margin: 0 10px; padding: 0; border-radius: 5px; user-select: none; -webkit-user-select: none; }
.fl-row:nth-child(odd) { background: #f4f5f5; }
.fl-row.sel { background: var(--sel); color: #fff; }
.fl-row.sel .fl-dim { color: rgba(255,255,255,.85); }
.fd-content:not(:focus-within):not(:focus) .fl-row.sel, .win.finder:not(.active) .fl-row.sel { background: var(--sel-dim); color: var(--text); }
.fl-name { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 8px; white-space: nowrap; overflow: hidden; position: relative; }
.fl-ic { flex: none; width: 18px; display: grid; place-items: center; }
.fl-n { overflow: hidden; text-overflow: ellipsis; }
.fl-dim { padding: 0 8px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row .look { position: static; animation: none; margin-left: 4px; }

/* gallery view */
.fg { height: 100%; display: flex; flex-direction: column; }
.fg-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 20px; }
.fg-stage .th { max-width: 100%; max-height: 100%; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 6px 24px rgba(0,0,0,.14); border-radius: 4px; }
.fg-strip { flex: none; display: flex; gap: 6px; padding: 8px 14px 14px; overflow-x: auto; justify-content: center; }
.fg-th { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 6px; }
.fg-th.sel { box-shadow: 0 0 0 3px var(--sel); }

.drag-ghost { position: fixed; z-index: 70; pointer-events: none; opacity: .8; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.dg-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; padding: 2px 6px; }
.drag-ghost:has(.dg-row) { transform: translate(-12px, -50%); filter: none; opacity: .7; }

/* ================= a piece in its own window ================= */
.win.piece .win-body { background: #f2f2f2; }
.win.piece[data-kind="video"] .win-body { background: #1c1c1e; }
.win.piece[data-kind="copy"] .win-body { background: #fff; }
.win.piece .wb-right .tb-btn { color: #5b5b5f; }
.it { position: absolute; inset: 0; overflow: hidden; }
.it-stage { position: absolute; inset: 0; }
.tb-tools { display: flex; align-items: center; gap: 2px; padding-left: 6px; }
.tb-tools.ro { opacity: .4; pointer-events: none; }
.tb-tools .tool.on { background: rgba(0,0,0,.08); color: #1d1d1f; }
.tb-brush { position: relative; display: inline-flex; }
.brush-size { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%) translateY(-4px); display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; z-index: 40;
  background: rgba(246,246,246,.94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 10px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.brush-size::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: inherit; box-shadow: -.5px -.5px 0 rgba(0,0,0,.14); border-radius: 2px 0 0 0; }
.brush-size.on { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.bs-l { font-size: 12px; color: var(--text2); }
.bs-range { width: 120px; accent-color: var(--accent); }
.bs-prev { width: 26px; height: 26px; display: grid; place-items: center; }
.bs-dot { display: block; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 1px rgba(196,140,0,.6); }
.tb-notes { position: relative; display: inline-flex; align-items: center; width: auto; min-width: 34px; gap: 4px; padding: 0 7px; }
.tb-count { font-size: 12px; font-weight: 500; color: var(--text2); font-variant-numeric: tabular-nums; }
.tb-count:empty { display: none; }
/* Approve: a native toolbar button, then a green ✓ Approved */
.tb-approve { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 7px; margin-left: 6px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #2c2c2e; background: rgba(0,0,0,.05); transition: background .15s, color .15s; }
.tb-approve:hover:not(:disabled) { background: rgba(0,0,0,.09); }
.tb-approve .gi svg { width: 17px; height: 17px; }
.tb-approve.is-ok { color: #1f8a3c; background: rgba(48,180,83,.12); }
.tb-approve.has-notes { color: #b25e00; background: rgba(255,159,10,.13); }
.tb-approve:disabled { cursor: default; }
.tb-approve.has-notes:disabled { opacity: 1; }
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; margin: 0 2px; }
.tb-approve.just { animation: approved .5s var(--spring); }
@keyframes approved { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } }

/* the picture or video, fitted, on Preview's gray */
.it-media { position: absolute; border-radius: 3px; overflow: hidden; background: #e4e4e4; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 4px 18px rgba(0,0,0,.12); cursor: crosshair; touch-action: none; }
.win.piece[data-kind="video"] .it-media { box-shadow: none; border-radius: 4px; }
.it-media.zoomed { cursor: grab; }
.it[data-tool="brush"] .it-media { cursor: none; }
.it-zoom { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.it-zoom > img, .it-zoom > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.it-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* the selector's box: yellow, a dotted edge (the Mac's own marching ants while it's a draft) */
.m-box { fill: rgba(255,214,10,.22); stroke: var(--mark-edge); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; transition: fill .15s, opacity .2s; }
.m-box.draft { fill: rgba(255,214,10,.28); animation: ants .6s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -7; } }
.m-box.lit { fill: rgba(255,214,10,.42); }
/* the brush: a highlighter, yellow, multiplied into the picture */
.m-paint path { fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round; opacity: .48; transition: opacity .15s; }
.m-paint.lit path { opacity: .78; }
.m-pt { fill: var(--mark); stroke: var(--mark-edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.it-marks .away { opacity: .12; }
.it-faces { position: absolute; inset: 0; pointer-events: none; }
.it-face { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; display: grid; place-items: center; pointer-events: auto; scale: calc(1 / var(--z, 1));
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.28); animation: pop .35s var(--spring); transition: transform .15s, opacity .2s; }
.it-face .face, .it-face .face svg { width: 24px !important; height: 24px !important; }
.it-face.lit, .it-face:hover { transform: scale(1.15); }
.it-face.away { opacity: 0; pointer-events: none; }
.fit-chip { position: absolute; right: 8px; top: 8px; z-index: 2; height: 22px; padding: 0 10px; border-radius: 11px; font-size: 12px; font-weight: 500; background: rgba(246,246,246,.92); box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .2s; }
.it-media.zoomed .fit-chip { opacity: 1; pointer-events: auto; }
.brush-cursor { position: absolute; left: 0; top: 0; z-index: 4; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.5); background: rgba(255,214,10,.18); display: none; }
.brush-cursor.on { display: block; }

/* QuickTime's floating controls */
.qt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(92%, 440px); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 8px; border-radius: 12px; z-index: 3;
  background: rgba(30,30,32,.55); -webkit-backdrop-filter: saturate(1.4) blur(22px); backdrop-filter: saturate(1.4) blur(22px); box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 6px 20px rgba(0,0,0,.3); color: #fff; cursor: default; transition: opacity .3s; }
.it-media.playing:not(.awake) .qt { opacity: 0; }
.qt-play { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #fff; }
.qt-play:hover { background: rgba(255,255,255,.12); }
.qt-t { font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.9); min-width: 30px; }
.qt-track { position: relative; flex: 1; height: 22px; cursor: pointer; }
.qt-rail { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.qt-fill { height: 100%; background: rgba(255,255,255,.92); }
.qt-mark { position: absolute; top: 3px; width: 6px; height: 16px; margin-left: -3px; border-radius: 3px; background: var(--mark); box-shadow: 0 0 0 1px rgba(0,0,0,.35); z-index: 1; transition: transform .15s; }
.qt-mark:hover, .qt-mark.lit { transform: scaleY(1.2); }

/* the note field: Messages' field, at the bottom of every piece */
.notebar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(560px, calc(100% - 28px)); z-index: 8; transition: opacity .2s, transform .25s cubic-bezier(.3,.8,.2,1); }
.notebar.away { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
.cmp { position: relative; }
.cmp.in-bar .cmp-head, .cmp.in-bar .cmp-change-row { display: none; }
.cmp-row { position: relative; display: flex; align-items: flex-end; gap: 0; min-height: 34px; padding-right: 3px; border-radius: 17px; background: rgba(255,255,255,.97);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: box-shadow .15s; }
.notebar.focus .cmp-row { box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 0 0 3.5px rgba(47,124,246,.35), 0 4px 16px rgba(0,0,0,.12); }
.pop .cmp-row { box-shadow: 0 0 0 .5px rgba(0,0,0,.2); background: #fff; }
.pop .cmp-row:focus-within { box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 0 0 3.5px rgba(47,124,246,.35); }
.cmp-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; min-height: 34px; }
.cmp textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 14px; font: 13px/18px var(--sys); color: var(--text); max-height: 120px; }
.cmp textarea::placeholder { color: #9a9a9f; }
.cmp textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-mic, .cmp-send { flex: none; width: 28px; height: 28px; margin: 3px 0; border-radius: 50%; display: grid; place-items: center; }
.cmp-mic { color: #6e6e73; }
.cmp-mic:hover { color: var(--text); background: rgba(0,0,0,.05); }
.cmp-mic.on { color: #fff; background: #ff3b30; animation: breathe 1.4s ease-in-out infinite; }
.cmp-send { width: 0; margin-left: 0; color: #fff; background: var(--accent); transform: scale(.6); opacity: 0; pointer-events: none; transition: all .15s; overflow: hidden; }
.cmp-send.on { width: 28px; margin-left: 4px; opacity: 1; transform: none; pointer-events: auto; }
.cmp-rec { display: none; flex: 1; align-items: center; gap: 8px; padding: 0 12px; height: 34px; }
.cmp.recording .cmp-rec { display: flex; }
.cmp.recording textarea { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.12); }
.cmp.recording textarea:placeholder-shown { display: none; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.rec-wave { flex: 1; min-width: 0; height: 22px; }
.rec-t { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text2); }
.cmp-voice:empty { display: none; }
.cmp-voice { margin-bottom: 6px; }
.cmp.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(255,59,48,.12); } }
/* the words are on their way back: the field says so and breathes, the mic waits */
.cmp.transcribing textarea::placeholder { color: var(--text2); animation: blink 1.4s ease-in-out infinite; }
.cmp.transcribing .cmp-mic { opacity: .35; pointer-events: none; }
/* Send pressed before the recording is stored: a spinner in the button until it is */
.cmp-send.busy { pointer-events: none; color: transparent; position: relative; }
.cmp-send.busy::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* beside a mark: the same field, in a Mac popover with an arrow */
.pop { position: absolute; z-index: 20; padding: 10px; border-radius: 12px; background: rgba(246,246,246,.96); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 14px 44px rgba(0,0,0,.26); animation: popIn .18s cubic-bezier(.2,.9,.3,1.2); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
.pop-arrow { position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.pop[data-side="left"] .pop-arrow { left: -6px; margin-top: -7px; box-shadow: -.5px .5px 0 rgba(0,0,0,.16); }
.pop[data-side="right"] .pop-arrow { right: -6px; margin-top: -7px; box-shadow: .5px -.5px 0 rgba(0,0,0,.16); }
.pop[data-side="top"] .pop-arrow { top: -6px; margin-left: -7px; box-shadow: -.5px -.5px 0 rgba(0,0,0,.16); }
.pop[data-side="bottom"] .pop-arrow { bottom: -6px; margin-left: -7px; box-shadow: .5px .5px 0 rgba(0,0,0,.16); }
.pop[data-side="none"] .pop-arrow { display: none; }
.pop.docked { left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important; width: auto !important; }
.pop.docked .pop-arrow { display: none; }
.cmp-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; min-width: 0; font-size: 12px; }
.cmp-head b { font-weight: 600; }
.cmp-chip { margin-left: auto; min-width: 0; font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-change-row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; color: var(--text2); }
.cmp-change-row span { flex: none; }
.cmp-change { flex: 1; min-width: 0; height: 26px; border: 0; border-radius: 6px; padding: 0 8px; font: 13px var(--sys); outline: 0; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.22); }
.cmp-change:focus { box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 0 0 3.5px rgba(47,124,246,.35); }
.cmp:not(.has-change) .cmp-change-row { display: none; }

/* a voice note: Messages' voice message */
.vbubble { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; background: var(--accent); color: #fff; max-width: 100%; }
.vb-play { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.vb-play svg { width: 14px; height: 14px; }
.vb-wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.vb-wave i { width: 2.5px; border-radius: 2px; background: rgba(255,255,255,.55); }
.vb-wave i.done { background: #fff; }
.vb-t { font-size: 12px; font-variant-numeric: tabular-nums; }
.vb-x { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff; margin-left: 2px; }
.vb-x svg { width: 9px; height: 9px; }
.vbubble.missing { opacity: .6; }

/* a note, read: face, name, when, then the words or the voice */
.nrow { display: flex; gap: 9px; padding: 8px; border-radius: 8px; cursor: default; }
.it-insp .nrow:hover { background: rgba(0,0,0,.045); cursor: pointer; }
.nrow + .nrow { box-shadow: 0 -.5px 0 rgba(0,0,0,.08); }
.nmain { flex: 1; min-width: 0; }
.nhead { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.nhead b { font-weight: 600; }
.nwhen { color: var(--text3); font-size: 11.5px; }
.ndel { margin-left: auto; font-size: 11.5px; color: var(--text3); padding: 0 4px; border-radius: 4px; }
.ndel:hover { color: #d70015; }
.ntext { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
.nchange { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
.nchange del { color: var(--text3); }
.nchange ins { text-decoration: none; background: rgba(255,214,10,.45); border-radius: 2px; padding: 0 1px; }
.nrow .vbubble { margin-top: 5px; }
.nanchor { font-size: 11px; color: var(--text3); margin-top: 4px; }
.pop.viewer { width: 300px; padding: 4px; }

/* the notes list: Preview's sidebar for highlights and notes, on the right */
.it-insp { position: absolute; top: 0; right: 0; bottom: 0; width: 280px; z-index: 9; display: flex; flex-direction: column; background: rgba(246,246,246,.9); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: inset 1px 0 0 rgba(0,0,0,.1); transform: translateX(100%); transition: transform .26s cubic-bezier(.3,.8,.2,1); }
.it.insp-on .it-insp { transform: none; }
.it.insp-on .notebar { width: min(560px, calc(100% - 308px)); left: calc((100% - 280px) / 2); }
.insp-head { display: flex; align-items: baseline; gap: 6px; padding: 14px 14px 8px; font-size: 13px; }
.insp-head span { color: var(--text3); font-size: 12px; }
.insp-list { flex: 1; overflow: auto; padding: 0 6px 10px; }
.insp-empty { padding: 4px 14px; font-size: 12px; color: var(--text2); line-height: 1.45; }

/* a landing page: Safari */
.addr { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; width: min(480px, 100%); height: 30px; margin: 0 auto; padding: 0 30px; border-radius: 8px; background: rgba(0,0,0,.05); font-size: 13px; color: var(--text); }
.addr > .gi { color: #8a8a8e; }
.addr-reload { position: absolute; right: 4px; top: 3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: #6a6a6e; }
.addr-reload:hover { background: rgba(0,0,0,.06); }
.tb-seg { display: flex; gap: 2px; }
.tb-seg .tb-btn { min-width: 30px; }
.it-page .it-stage { background: #fff; }
.pg-stage { position: absolute; transform: none; transition: none; }
.pg-stage[data-framed="on"] { }
.it-page .pg-device { box-shadow: none; border-radius: 0; }
.it-page .pg-stage[data-framed="on"] .pg-device { border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 10px 40px rgba(0,0,0,.14); }
.it-page .pg-device[data-device="phone"] { border-radius: 44px; box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 10px #1c1c1e, 0 0 0 11px #3a3a3c; }
.it-page .pg-device[data-device="tablet"] { border-radius: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.16), 0 0 0 12px #1c1c1e; }
.it-page:has(.pg-stage[data-framed="on"]) .it-stage { background: #f2f2f2; }
.it-page[data-tool="browse"] .tb-tools .tool { }

/* copy: a document, like TextEdit */
.copy-scroll { position: absolute; inset: 0; overflow: auto; padding: 36px 24px 110px; }
.copy-doc { max-width: 600px; margin: 0 auto; }
.cf { position: relative; padding: 10px 46px 14px 12px; margin: 0 -12px; border-radius: 6px; cursor: text; }
.cf + .cf { margin-top: 10px; }
.cf:hover { background: rgba(0,0,0,.025); }
.cf.editing { background: rgba(255,214,10,.08); box-shadow: inset 0 0 0 1.5px var(--mark); }
.cf-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; font-weight: 500; }
.cf-text { font-size: 15px; line-height: 1.55; outline: none; }
.cf-headline .cf-text { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.cf-description .cf-text { font-size: 14px; color: var(--text2); }
.cf-text mark { background: rgba(255,214,10,.45); color: inherit; border-radius: 2px; padding: 0 1px; }
.cf-text mark.draft { background: rgba(255,214,10,.6); box-shadow: 0 0 0 1px var(--mark-edge); }
.cf-text mark.ch { background: linear-gradient(transparent 55%, rgba(255,214,10,.65) 55%); }
.cf-faces { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.cf-face { display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.2); animation: pop .35s var(--spring); }
.cf-face.lit { transform: scale(1.15); }
.cf.called { animation: cfCalled 1.4s cubic-bezier(.2,.8,.2,1); }
@keyframes cfCalled { 0%, 40% { background: rgba(47,124,246,.1); box-shadow: inset 0 0 0 1.5px rgba(47,124,246,.45); } }

/* ================= sheets, toasts, cursors ================= */
.toast { top: calc(var(--menu) + 12px); background: rgba(40,40,42,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 10px; font-size: 13px; }
.cursor.off { opacity: 0; }
.cursor.ping .cursor-arrow::after { content: ""; position: absolute; left: -14px; top: -14px; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--c); animation: ping 1.4s cubic-bezier(.2,.8,.2,1) 2; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sheet-wrap { z-index: 80; }
.act-pop { font-size: 13px; }
.ti-thumb { width: 150px; height: auto; max-height: 190px; border-radius: 8px; }
.ti-thumb img { position: absolute; inset: 0; }
.ti-paint { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ti-paint path { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .42; }
.ti-paint .ti-box { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .9; }
.ti-paint .ti-box.fill { fill: rgba(255,214,10,.25); }
.ti-thumb.copy { width: 150px; height: 110px; }
.signin { z-index: 100; }

/* ================= the phone (<700 px): Files, one piece full screen ================= */
.phone { position: fixed; inset: 0; background: #f2f2f7; overflow: hidden; }
.pv { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f2f2f7; transition: transform .38s cubic-bezier(.3,.8,.2,1), filter .38s; will-change: transform; }
.pv.under { transform: translateX(-28%); filter: brightness(.96); }
.pv.enter { transform: translateX(100%); }
.pv-nav { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; min-height: 50px; background: rgba(242,242,247,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 4; }
.pv-back { display: inline-flex; align-items: center; gap: 0; height: 36px; padding: 0 8px 0 2px; color: #007aff; font-size: 17px; border-radius: 10px; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-back .gi svg { width: 22px; height: 22px; }
.pv-title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-right { display: flex; align-items: center; gap: 6px; min-width: 40px; justify-content: flex-end; }
.pv-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.pv-big { font: 700 34px/1.1 var(--sys); letter-spacing: -.025em; margin: 6px 4px 2px; }
.pv-lede { color: #6e6e73; margin: 0 4px 18px; font-size: 15px; }
.pv-h { font-size: 13px; color: #6e6e73; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; margin: 24px 16px 6px; }
.pv-group { background: #fff; border-radius: 10px; overflow: hidden; }
.pr-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px; text-align: left; position: relative; }
.pr-row + .pr-row::before { content: ""; position: absolute; left: 62px; right: 0; top: 0; height: .5px; background: rgba(60,60,67,.29); }
.pr-row:active { background: #e5e5ea; }
.pr-row .pr-art { flex: none; width: 36px; display: grid; place-items: center; position: relative; }
.pr-row.item .pr-art { width: 52px; height: 52px; }
.pr-row.item + .pr-row.item::before { left: 80px; }
.pr-row .pr-main { flex: 1; min-width: 0; }
.pr-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sub { font-size: 13px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-end { display: flex; align-items: center; gap: 8px; color: #c4c4c7; font-size: 13px; }
.pr-end .gi svg { width: 13px; height: 13px; }
.pr-state { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: #f2f2f7; color: #6e6e73; white-space: nowrap; }
.pr-state.ok { background: rgba(48,180,83,.14); color: #1f8a3c; }
.pr-state.notes { background: rgba(255,159,10,.16); color: #9a5a00; }
.pr-row .look { left: -6px; top: -6px; }
.pv-finish { position: absolute; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; }
.pv-finish .finish { width: 100%; height: 50px; border-radius: 14px; font-size: 17px; }
.pv-finish .finish.ready { background: #007aff; border-color: #007aff; }
.pv-banner { background: #fff; border-radius: 10px; padding: 14px 16px; margin: 0 0 6px; font-size: 15px; }
.pv-banner b { display: block; font-size: 16px; margin-bottom: 2px; }
.pv-banner .pv-link { display: inline-flex; margin-top: 10px; font-size: 13px; color: #6e6e73; border: 1px dashed rgba(0,0,0,.2); border-radius: 999px; padding: 5px 12px; }
.pv.piece { background: #f2f2f2; }
.pv-stage { flex: 1; min-height: 0; position: relative; }
.pv-stage .it { position: absolute; inset: 0; }
.pv-bottom { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(249,249,249,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 -.5px 0 rgba(0,0,0,.15); z-index: 4; }
.pv-bottom .tb-tools { flex: 1; min-width: 0; padding: 0; gap: 4px; }
.pv-bottom .tb-btn { height: 40px; min-width: 44px; }
.pv-bottom .tb-btn .gi svg { width: 22px; height: 22px; }
.pv-bottom .brush-size { position: fixed; left: 50%; top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); }
.pv-bottom .brush-size::before { top: auto; bottom: -6px; }
.pv-bottom .tb-approve { flex: none; height: 40px; border-radius: 10px; padding: 0 14px 0 10px; font-size: 15px; }
.pv-bottom .btn { font-size: 15px; }
.pv-nav .tb-notes { height: 34px; }
.pv-nav .wb-faces { margin-right: 2px; }
.phone .notebar { bottom: 10px; }
.phone .it-insp { width: auto; left: 0; top: 0; background: rgba(246,246,246,.97); }
.phone .it.insp-on .notebar { left: 50%; width: min(560px, calc(100% - 28px)); opacity: 0; pointer-events: none; }
.phone .it-media { cursor: default; }
.phone .qt { bottom: 10px; }
.phone .cursors { display: none; }
.phone .pop.docked { z-index: 30; }
.pv-me { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.pv-me:active { background: #e5e5ea; }
@media (max-width: 640px) {
  .team-item { flex-direction: column; }
  .ti-thumb { width: 100%; max-height: none; }
  .ti-thumb.copy { width: 100%; height: auto; padding: 14px; font-size: 15px; }
}
