/* The app window, rebuilt in HTML/CSS at the app's own sizes (web/src/styles), then scaled to fit.
   Desktop design space: 1200 x 760. Phone design space: 390 x 800 (the app's < 860px layout).
   Everything inside moves only through transform/opacity, driven by timeline.js. */

.win {
  --dw: 1200; --dh: 760; --s: 1;
  position: relative; width: 100%; height: calc(var(--dh) * var(--s) * 1px);
  margin: 0 auto; border-radius: calc(14px * var(--s)); background: var(--bg); box-shadow: var(--shadow-win);
}
.win-scale {
  position: absolute; left: 0; top: 0; width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px);
  transform: scale(var(--s)); transform-origin: 0 0;
  font-family: var(--font-sans); font-size: 14px; line-height: 1.45; color: var(--text); letter-spacing: 0;
  -webkit-user-select: none; user-select: none;
}
.win-scale .i { width: 16px; height: 16px; }
.win-scale svg { max-width: none; }
.a-mono, .a-kbd, .a-carry-badge, .a-hud-k span, .a-bo-meta, .a-num, .do-sp, .art-meta span, .art-head { font-family: var(--font-mono); font-variant-ligatures: none; font-feature-settings: normal; }

/* window chrome */
.win-bar { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 14px 14px 0 0; background: var(--bg); border-bottom: 1px solid var(--divider); }
.win-dots { position: absolute; left: 14px; top: 50%; display: flex; gap: 8px; margin-top: -6px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06); }
.win-title { font-size: 12.5px; font-weight: 600; color: var(--text-3); }

.a-app { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; display: grid; grid-template-columns: 274px minmax(0, 1fr); overflow: hidden; border-radius: 0 0 14px 14px; background: var(--bg); isolation: isolate; }
.a-ambient {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--ambient-opacity);
  background: radial-gradient(55% 60% at 0% 0%, #c9a58f 0%, transparent 70%), radial-gradient(45% 50% at 100% 0%, #9fa7c9 0%, transparent 70%), radial-gradient(60% 45% at 50% 110%, #d9c3a2 0%, transparent 70%);
}
.a-topbar { display: none; }

/* sidebar */
.a-sb { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 12px 12px; padding: 12px 10px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); min-height: 0; }
.a-sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px 6px; }
.a-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.a-mark { width: 20px; height: 20px; }
.a-sb-acts { display: inline-flex; gap: 12px; padding-right: 6px; color: var(--text-3); }
.a-sb-acts .i { width: 15px; height: 15px; }
.a-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border-radius: 9px; background: var(--glass-strong); border: 1px solid var(--border); color: var(--text-3); font-size: 13.5px; }
.a-search .i { width: 15px; height: 15px; }
.a-search > span:first-of-type { flex: 1; white-space: nowrap; overflow: hidden; }
.a-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; font: 500 10.5px/1 var(--font-mono); color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 1.5px; border-radius: 4px; flex: none; }
.a-nav-group { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; }
.a-nav-group + .a-nav-group { border-top: 1px solid var(--divider); }
.a-nav-head { display: flex; justify-content: space-between; padding: 7px 8px 3px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.a-nav-head span:last-child { font-weight: 400; }
.a-nav { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 8px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.a-nav .i { color: var(--text-3); }
.a-nav > span:nth-of-type(1) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.a-nav .a-count { font-size: 11.5px; font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.a-sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--divider); }

/* main + screens */
.a-main { position: relative; min-width: 0; overflow: hidden; }
.a-screen { position: absolute; inset: 0; padding: 34px 40px 0; }
.a-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--text); }
.a-link .i { width: 14px; height: 14px; }

/* home */
.a-home-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.a-home-label .a-mono { font-size: 12.5px; color: var(--text-3); }
.a-home-label .a-link { color: var(--text-3); font-weight: 400; }
.a-input-row { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-strong); }
.a-big-input { flex: 1; min-width: 0; font-size: 40px; letter-spacing: -0.025em; line-height: 1.1; color: var(--text-3); opacity: 0.85; white-space: nowrap; overflow: hidden; }
.a-input-row .a-kbd { margin-bottom: 8px; }
.a-btn-sec { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; margin-bottom: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 500; flex: none; }
.a-btn-sec .i { width: 15px; height: 15px; }
.a-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; font-size: 13.5px; font-weight: 600; }
.a-shelf { display: flex; align-items: flex-end; gap: 36px; height: 194px; }
.a-bo { display: flex; flex-direction: column; gap: 10px; flex: none; }
.a-thing { display: flex; align-items: flex-end; height: 150px; }
.a-bo-name { font-size: 14px; font-weight: 500; white-space: nowrap; }
.a-bo-meta { font: 400 11.5px/1.3 var(--font-mono); color: var(--text-3); white-space: nowrap; margin-top: -8px; }

/* bench drawings (web/src/styles/home.css, at shelf scale) */
.bo-stack { position: relative; width: 116px; height: 146px; }
.bo-sheet { position: absolute; left: 0; top: 0; width: 104px; height: 138px; background: var(--paper); box-shadow: 0 1px 2px rgba(40, 30, 20, 0.1), 0 14px 26px -16px rgba(40, 30, 20, 0.4); }
.bo-sheet-3 { left: 9px; top: 7px; transform: rotate(3deg); background: var(--paper-2); }
.bo-sheet-2 { left: 4px; top: 3px; transform: rotate(1.4deg); background: var(--paper-2); }
.bo-page { box-sizing: border-box; padding: 16px 12px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow-object); }
.bo-line { display: block; height: 3px; background: var(--paper-line); }
.bo-title { height: 5px; width: 70%; background: var(--paper-ink); margin-bottom: 2px; }
.bo-w40 { width: 42%; } .bo-w60 { width: 62%; } .bo-w80 { width: 82%; } .bo-w90 { width: 92%; }
.bo-film { width: 196px; height: 128px; padding: 9px 0; background: #1c1b19; border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-object); }
.bo-sprockets { height: 7px; margin: 0 8px; background: repeating-linear-gradient(90deg, #e8e4dc 0 7px, transparent 7px 14px); opacity: 0.85; }
.bo-frame { display: block; height: 82px; overflow: hidden; background: #33312d; }
.bo-frame svg { width: 100%; height: 100%; }
.bo-wave { display: flex; align-items: center; gap: 3px; width: 196px; height: 58px; padding: 0 11px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow-object); overflow: hidden; }
.bo-wave span { width: 2px; flex: none; background: var(--paper-ink); border-radius: 1px; }
.bo-grid { width: 146px; height: 104px; background-color: var(--paper); box-shadow: var(--shadow-object);
  background-image: linear-gradient(#f1efea 0 15px, transparent 15px), linear-gradient(#eceae4 1px, transparent 1px), linear-gradient(90deg, #eceae4 1px, transparent 1px);
  background-size: 100% 100%, 36px 15px, 36px 15px; }

.a-module { width: 470px; margin-top: 30px; padding: 16px 20px 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); }
.a-module-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; }
.a-module-head .a-link { font-weight: 500; }
.a-run { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.a-run:last-child { border-bottom: 0; }
.a-run .a-mono { font-size: 12px; color: var(--text-2); }
.a-run span:last-child { font-size: 12.5px; color: var(--text-3); text-align: right; }

/* drop screen */
.a-back { margin-bottom: 24px; }
.a-intent-grid { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 48px; align-items: start; }
.a-figure { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 22px 24px; border-radius: 18px; background: var(--surface-sunken); }
.a-fig-files { display: grid; place-items: end center; width: 100%; height: 232px; }
.a-print { display: block; width: 300px; height: 201px; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-object); background: #6b5079; }
.a-print svg { width: 100%; height: 100%; }
.a-fig-cap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.a-fig-cap b { font-size: 13.5px; font-weight: 600; }
.a-fig-cap .a-mono { font-size: 12px; color: var(--text-3); }
.a-intent-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.a-intent-input { position: relative; display: flex; align-items: center; height: 46px; padding: 0 14px; overflow: hidden; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; margin-bottom: 14px; }
.a-intent-input.is-focus { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.a-typed { white-space: pre; color: var(--text); }
/* typing: stays left until it overflows, then the start scrolls out of view, like a real input */
.a-typing { display: flex; align-items: center; justify-content: flex-end; min-width: 0; overflow: hidden; }
.a-typing > * { flex: none; }
.a-caret { display: inline-block; width: 1.5px; height: 18px; margin-left: 1px; background: var(--text); opacity: 0; }
.a-ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); white-space: nowrap; pointer-events: none; }
.a-keys { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 11px; }
.a-opts { position: relative; height: 232px; }
.a-opt-hl { position: absolute; left: 0; right: 0; top: 0; height: 56px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-card); }
.a-opt { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.a-num { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); font: 500 11.5px/1 var(--font-mono); color: var(--text-2); }
.a-opt.is-active .a-num { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); }
.a-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a-opt-n { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.a-pin { width: 11px !important; height: 11px !important; color: var(--text-3); }
.a-opt-h { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-go { color: var(--text); opacity: 0; width: 15px !important; height: 15px !important; }
.a-opt.is-active .a-go { opacity: 1; }
.a-intent-foot { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--divider); color: var(--text-3); font-size: 12.5px; }

/* tool page */
.a-tool { padding-top: 18px; }
.a-tool-top { display: flex; align-items: center; gap: 10px; height: 42px; }
.a-round { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); color: var(--text-2); flex: none; }
.a-tabs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 42px; padding: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); overflow: hidden; }
.a-file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.a-thumb { display: block; width: 30px; height: 22px; border-radius: 4px; overflow: hidden; flex: none; }
.a-thumb svg { width: 100%; height: 100%; }
.a-thumb-lg { width: 40px; height: 30px; }
.a-tab { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.a-tab.is-on { background: var(--accent); color: var(--text-inverse); }
.a-fade-tab { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.a-search-sm { display: flex; align-items: center; gap: 8px; width: 236px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--border); color: var(--text-3); font-size: 13px; flex: none; }
.a-search-sm .i { width: 15px; height: 15px; }
.a-search-sm > span:nth-of-type(1) { flex: 1; }
.a-compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.a-pane-img { position: relative; height: 250px; border-radius: 9px; overflow: hidden; background: var(--surface-sunken); }
.a-pane-img > svg { width: 100%; height: 100%; }
.a-pane-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13px; }
.a-pane-cap .a-mono { font-size: 11.5px; color: var(--text-3); }
.a-ok { color: var(--success); font-weight: 500; }
.a-result { box-shadow: inset 0 0 0 1px var(--border); }
.a-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-3); font-size: 13px; }
.a-prog { position: relative; width: 220px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.a-prog i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.a-wait-p { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.a-res-img { position: absolute; inset: 0; }
.a-res-img svg { width: 100%; height: 100%; }
.a-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 18px 4px rgba(255, 244, 228, 0.7); opacity: 0; }
.a-callout {
  position: absolute; left: 0; right: 0; top: 98px; margin: 0 auto; width: max-content; display: flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 10px 0 22px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-pop);
}
.a-co-sz { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.a-co-sz .i { width: 18px; height: 18px; color: var(--text-3); }
.a-co-pct { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.a-card { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); }
.a-tool-card { margin-top: 26px; padding: 20px 22px 22px; }
.a-tc-head { display: flex; justify-content: space-between; gap: 20px; }
.a-tc-title { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.a-tc-title .i { width: 14px; height: 14px; color: var(--text-3); }
.a-tc-desc { margin-top: 4px; font-size: 13.5px; color: var(--text-2); max-width: 520px; }
.a-run-row { display: flex; align-items: center; gap: 6px; flex: none; align-self: flex-start; }
.a-btn-ink { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--text-inverse); font-size: 14px; font-weight: 500; margin-right: 4px; }
.a-btn-ink .i { width: 14px; height: 14px; }
.a-run-row .a-link { margin-left: 12px; color: var(--text-2); }
.a-field-l { margin: 16px 0 8px; font-size: 13.5px; font-weight: 600; }
.a-field-l b { color: var(--danger); font-weight: 600; }
.a-filechip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.a-fc-t { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.a-fc-t b { font-size: 13.5px; font-weight: 500; }
.a-fc-t span { font-size: 11.5px; color: var(--text-3); }
.a-filechip .i { color: var(--text-3); width: 14px; height: 14px; }
.a-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.a-slider { position: relative; display: flex; align-items: center; gap: 14px; height: 34px; }
.a-track { position: relative; width: 170px; height: 4px; border-radius: 4px; background: var(--border); }
.a-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 75%; border-radius: inherit; background: var(--text); }
.a-thumbk { position: absolute; left: 120px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), 0 1px 3px rgba(0, 0, 0, 0.2); }
.a-num-in, .a-select, .a-text-in { display: flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; }
.a-num-in { width: 100px; }
.a-select { justify-content: space-between; }
.a-select .i { width: 14px; height: 14px; color: var(--text-3); }
.a-text-in { width: 160px; color: var(--text-3); }

/* drop screen with several files: fanned like a small stack in a hand */
.a-fan { position: relative; display: block; }
.a-fan .a-print { position: absolute; left: 50%; bottom: 8px; width: 236px; height: 158px; margin-left: -118px; transform-origin: 50% 100%;
  transform: translateX(calc((var(--i) - 1.5) * 30px)) rotate(calc((var(--i) - 1.5) * 4deg)); }
.a-fan .a-print:nth-child(1) { z-index: 4; } .a-fan .a-print:nth-child(2) { z-index: 3; } .a-fan .a-print:nth-child(3) { z-index: 2; }
.a-opt-do .a-do-ic { border-color: transparent; background: var(--surface-sunken); color: var(--text-2); }
.a-opt-do.is-active .a-do-ic { color: var(--text-inverse); }
.a-do-ic .i { width: 13px; height: 13px; }
.a-do-n { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the words, carried out (web/src/pages/Do.tsx) */
.a-do { padding-top: 30px; }
.a-do .a-back { margin-bottom: 18px; }
.do-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.do-file { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-sunken); font-size: 12.5px; }
.do-file .i { width: 12px; height: 12px; color: var(--text-3); }
.do-file .a-mono { font-size: 11px; color: var(--text-3); }
.do-request { max-width: 720px; margin-bottom: 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.do-steps { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.do-step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); overflow: hidden; }
.do-ic { position: relative; flex: none; width: 18px; height: 18px; color: var(--success); }
.do-spin { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--border-strong); border-top-color: var(--text); }
.win-scale .do-ok { position: absolute; left: 0; top: 0; width: 18px; height: 18px; }
.do-st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.do-sn { font-size: 13.5px; font-weight: 500; }
.do-sp { font-size: 12px; line-height: 1.45; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.do-tg { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; font-size: 12.5px; color: var(--text-2); }
.win-scale .do-tg .i { width: 13px; height: 13px; }
.do-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--divider); }
.do-prog i { position: absolute; inset: 0; background: var(--text); transform-origin: 0 50%; transform: scaleX(0); }
.do-thinking { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; height: 24px; font-size: 13.5px; color: var(--text-2); }
.win-scale .do-thinking .i { width: 14px; height: 14px; }
.do-out { max-width: 760px; margin-top: 22px; }
.do-out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.do-out-t { font-size: 13.5px; font-weight: 600; }
.a-btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--hover); color: var(--text); font-size: 13px; font-weight: 500; }
.win-scale .a-btn-ghost .i { width: 14px; height: 14px; }
.do-orig { margin: 4px 0 10px; font-size: 12.5px; color: var(--text-3); }
.art { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.art-head { padding: 9px 12px; border-bottom: 1px solid var(--divider); font-size: 11.5px; color: var(--text-3); }
.art-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--divider); }
.art-row:last-child { border-bottom: 0; }
.art-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--surface-sunken); color: var(--text-2); flex: none; }
.win-scale .art-ic .i { width: 15px; height: 15px; }
.art-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.art-meta b { font-size: 13.5px; font-weight: 550; }
.art-meta span { font-size: 11.5px; color: var(--text-3); }
.art-acts { display: inline-flex; align-items: center; gap: 14px; color: var(--text-3); }
.art-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; }
.win-scale .art-btn .i { width: 13px; height: 13px; }

/* drop overlay */
.a-drop { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); opacity: 0; }
.a-drop-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 400px; padding: 34px 30px 28px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-float); }
.a-tray { position: relative; width: 120px; height: 72px; margin-bottom: 14px; border: 3px solid var(--text); border-top: 0; border-radius: 0 0 14px 14px; }
.a-tray-sheet { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 70px; background: var(--paper); box-shadow: var(--shadow-object); }
.a-drop-title { font-size: 20px; font-weight: 600; }
.a-drop-sub { font-size: 12.5px; color: var(--text-2); }

/* palette */
.a-scrim { position: absolute; inset: 0; z-index: 30; background: var(--scrim); opacity: 0; }
.a-pal-wrap { position: absolute; left: 0; right: 0; top: 62px; z-index: 31; display: flex; justify-content: center; pointer-events: none; }
.a-pal { width: 640px; border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow-pop); overflow: hidden; opacity: 0; transform-origin: 50% 0; }
.a-pal-in { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-bottom: 1px solid var(--divider); font-size: 15.5px; color: var(--text-3); }
.a-pal-in .a-ph { left: 40px; }
.a-pal-in .a-kbd { margin-left: auto; }
.a-pal-in .a-caret { height: 20px; }
.a-pal-sec { padding: 10px 16px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.a-pal-rows { position: relative; height: 356px; padding: 0 6px 6px; }
.a-pal-hl { position: absolute; left: 6px; right: 6px; top: 0; height: 50px; border-radius: 9px; background: var(--accent-soft); }
.a-pal-row { position: absolute; left: 6px; right: 6px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.a-pal-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--surface-sunken); color: var(--text-2); flex: none; }
.a-pal-ic .i { width: 15px; height: 15px; }
.a-pal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-pal-l { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pal-l b { font-weight: 700; }
.a-pal-s { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pal-c { font-size: 11.5px; color: var(--text-3); white-space: nowrap; flex: none; }
.a-pal-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--divider); font-size: 11.5px; color: var(--text-3); }
.a-pal-foot > span { display: inline-flex; align-items: center; gap: 4px; }

/* keystroke HUD */
.a-hud { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 40; display: flex; justify-content: center; opacity: 0; pointer-events: none; }
.a-hud-k { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px; border-radius: 14px; background: rgba(22, 21, 19, 0.88); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 18px 40px -16px rgba(0, 0, 0, 0.5); }
.a-hud-k span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #f2efe9; font: 500 13px/1 var(--font-mono); }

/* the dragged photo and the pointer */
.a-carry { position: absolute; left: 0; top: 0; z-index: 8; width: 0; height: 0; opacity: 0; will-change: transform; }
.a-carry .a-print { position: absolute; left: -96px; top: -64px; width: 192px; height: 129px; box-shadow: 0 2px 4px rgba(40, 30, 20, 0.15), 0 30px 50px -18px rgba(40, 30, 20, 0.55); }
.a-carry-many .a-print { transform: rotate(calc((var(--i) - 1.5) * -5deg)) translate(calc((var(--i) - 1.5) * -6px), calc(var(--i) * -2px)); }
.a-carry-badge { position: absolute; left: 14px; top: 58px; padding: 3px 8px; border-radius: 6px; background: rgba(22, 21, 19, 0.82); color: #f2efe9; font: 500 11px/1.3 var(--font-mono); white-space: nowrap; }
.a-cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 0; height: 0; will-change: transform; }
.a-arrow { position: absolute; left: -6px; top: -4px; width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28)); }
.a-touch { display: none; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: rgba(22, 22, 22, 0.28); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(0, 0, 0, 0.25); }
.a-ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--text); opacity: 0; }

/* ---------------------------------------------------------------- phone layout (the app below 860px) */
.win.is-phone { --dw: 390; --dh: 800; border-radius: calc(50px * var(--s)); background: transparent; box-shadow: none; max-width: calc(390px * var(--s-max, 1)); }
.is-phone .win-scale { border: 10px solid #141312; border-radius: 50px; background: var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(0, 0, 0, 0.3), var(--shadow-win); overflow: hidden; }
.is-phone .win-scale::before { content: ""; position: absolute; left: 50%; top: 9px; z-index: 60; width: 96px; height: 26px; margin-left: -48px; border-radius: 14px; background: #141312; }
.is-phone .win-bar { display: none; }
.is-phone .a-app { top: 0; padding-top: 40px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr); border-radius: 40px; }
.is-phone .a-topbar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--glass-edge); background: var(--glass-strong); }
.is-phone .a-topbar .i { width: 20px; height: 20px; color: var(--text-2); }
.a-tb-btn { display: grid; place-items: center; width: 28px; height: 28px; }
.is-phone .a-topbar .a-brand { font-size: 16px; }
.is-phone .a-sb { display: none; }
.is-phone .a-screen { padding: 20px 18px 0; }
.is-phone .a-hide-p { display: none !important; }
.is-phone .a-big-input { font-size: 21px; white-space: normal; line-height: 1.25; }
.is-phone .a-input-row { gap: 10px; padding-bottom: 12px; }
.is-phone .a-btn-sec { width: 40px; height: 40px; padding: 0; justify-content: center; margin-bottom: 0; }
.is-phone .a-btn-sec .i { width: 18px; height: 18px; }
.is-phone .a-sec-head { margin: 30px 0 14px; }
.is-phone .a-shelf { gap: 24px; height: 180px; }
.is-phone .a-module { width: auto; margin-top: 26px; }
.is-phone .a-run { grid-template-columns: minmax(0, 1fr) auto 72px; }
.is-phone .a-back { margin-bottom: 14px; }
.is-phone .a-intent-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.is-phone .a-figure { padding: 22px 16px 14px; gap: 12px; }
.is-phone .a-fig-files { height: 150px; }
.is-phone .a-print { width: 216px; height: 145px; }
.is-phone .a-intent-title { font-size: 20px; margin-bottom: 12px; }
.is-phone .a-intent-input { height: 44px; margin-bottom: 10px; font-size: 13px; }
.is-phone .a-keys { display: none; }
.is-phone .a-intent-foot { display: none; }
.is-phone .a-tool { padding-top: 14px; }
.is-phone .a-search-sm, .is-phone .a-round { display: none; }
.is-phone .a-tabs { height: 40px; }
.is-phone .a-compare { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.is-phone .a-pane-img { height: 118px; }
.is-phone .a-pane-cap { flex-direction: column; gap: 1px; font-size: 12px; margin-top: 6px; }
.is-phone .a-pane-cap .a-mono { font-size: 10.5px; }
.is-phone .a-prog { width: 110px; }
.is-phone .a-wait { font-size: 11.5px; gap: 8px; text-align: center; padding: 0 8px; }
.is-phone .a-callout { top: 34px; height: 46px; padding: 0 6px 0 16px; gap: 10px; }
.is-phone .a-co-sz { font-size: 16px; gap: 6px; }
.is-phone .a-co-sz .i { width: 14px; height: 14px; }
.is-phone .a-co-pct { height: 32px; padding: 0 10px; font-size: 12.5px; }
.is-phone .a-tool-card { margin-top: 20px; padding: 16px; }
.is-phone .a-tc-head { flex-direction: column; gap: 12px; }
.is-phone .a-tc-title { font-size: 18px; }
.is-phone .a-tc-desc { font-size: 12.5px; }
.is-phone .a-row3 { grid-template-columns: minmax(0, 1fr); }
.is-phone .a-track { width: 150px; }
.is-phone .a-thumbk { left: 105px; }
.is-phone .a-num-in { width: 80px; }
.is-phone .a-drop-card { width: 300px; padding: 28px 20px 22px; }
.is-phone .a-drop-title { font-size: 17px; }
.is-phone .a-pal-wrap { top: 98px; padding: 0 10px; }
.is-phone .a-pal { width: 100%; }
.is-phone .a-pal-c { display: none; }
.is-phone .a-pal-foot { display: none; }
.is-phone .a-pal-rows { height: 356px; }
.is-phone .a-hud { bottom: 26px; }
.is-phone .a-arrow { display: none; }
.is-phone .a-touch { display: block; }
.is-phone .a-carry .a-print { left: -80px; top: -54px; width: 160px; height: 108px; }
.is-phone .a-carry-badge { top: 48px; }
.is-phone .a-fan .a-print { width: 168px; height: 112px; margin-left: -84px; bottom: 4px; transform: translateX(calc((var(--i) - 1.5) * 22px)) rotate(calc((var(--i) - 1.5) * 4deg)); }
.is-phone .a-do { padding-top: 16px; }
.is-phone .a-do .a-back { margin-bottom: 12px; }
.is-phone .do-files { gap: 5px; margin-bottom: 12px; }
.is-phone .do-file { height: 24px; padding: 0 8px; font-size: 11.5px; }
.is-phone .do-request { font-size: 19px; margin-bottom: 14px; }
.is-phone .do-step { min-height: 0; align-items: flex-start; }
.is-phone .do-sp { white-space: normal; }
.is-phone .do-tg { display: none; }
.is-phone .do-out { margin-top: 16px; }
.is-phone .do-orig { font-size: 11.5px; margin-bottom: 8px; }
.is-phone .art-row { height: 42px; }
.is-phone .art-acts > .i { display: none; }
.is-phone .art-btn { width: 30px; padding: 0; justify-content: center; }
