/* The editor demo (/editor and the frame on the home page): a compact studio with tools on the left, settings on the
   right and sections below. Phones: tools in a strip under the canvas, settings in a bottom sheet. */
:root { color-scheme: dark; --blue: #1688ff; --line: #ffffff12; --text: #e4e8f0; --muted: #788393; --panel: #202228; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0c0e12; color: var(--text); font-size: 12px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #60b1ff; outline-offset: 2px; }
button:disabled { cursor: default; opacity: .35; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
kbd { background: #343c49; color: #c5d5ec; border: 1px solid #ffffff12; padding: 2px 6px; border-radius: 4px; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid #ffffff15; border-radius: 6px; background: linear-gradient(#393d45, #30343b); color: #dce4f0; box-shadow: inset 0 1px #ffffff05; font-size: 11px; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn.blue { background: linear-gradient(#1992ff, #0673fa); border-color: #3ba3ff55; color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.wide { width: 100%; }
.btn .icon { width: 14px; height: 14px; }
.icon-btn { display: grid; place-items: center; padding: 6px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: #98a3b4; }
.icon-btn:hover:not(:disabled) { background: #ffffff09; color: #d6e2f4; }
.icon-btn .icon { width: 16px; height: 16px; }

/* Top navigation of the full page */
.topnav { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: #0c0e12; color: #8794a8; border-bottom: 1px solid #ffffff0a; font-size: 11px; }
.topnav-brand { display: flex; align-items: center; gap: 8px; color: #c9d4e4; font-weight: 600; white-space: nowrap; }
.topnav-brand img { width: 22px; height: 22px; }
.topnav-brand .sep { color: #4c5b70; font-weight: 400; }
.topnav-brand .dim { color: #8794a8; font-weight: 400; }
.topnav-links { display: flex; align-items: center; gap: 16px; }
.topnav .tag { font-size: 10px; letter-spacing: .4px; color: #6f7d91; }
.get-app { color: #8fc0ff; white-space: nowrap; }
.get-app:hover { color: #c3dcff; }
body.embed .topnav { display: none; }

/* The window */
.app { position: relative; height: calc(100dvh - 44px); min-height: 480px; display: flex; flex-direction: column; background: #1b1d22; overflow: hidden; }
body.embed .app { height: 100dvh; min-height: 420px; }
.titlebar { height: 48px; flex-shrink: 0; display: flex; align-items: center; padding: 0 16px; gap: 14px; background: linear-gradient(#292c32, #23262b); border-bottom: 1px solid #0006; box-shadow: inset 0 1px #ffffff08; position: relative; }
.traffic { display: flex; gap: 7px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #f16b63; }
.traffic i:nth-child(2) { background: #efc04b; }
.traffic i:nth-child(3) { background: #56bd65; }
.appname { font-size: 12px; font-weight: 600; }
.docname { position: absolute; left: 45%; transform: translateX(-50%); font-size: 11px; color: #c4cbd5; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docname small { color: #757e8b; margin-left: 6px; }
.title-actions { margin-left: auto; display: flex; gap: 7px; align-items: center; }

.workspace { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) 220px; flex: 1; min-height: 0; }
.main-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.view { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* Tool rail */
.tool-rail { background: #22252b; border-right: 1px solid var(--line); padding: 10px 7px; overflow: auto; min-height: 0; }
.tool-rail-title { font-size: 9px; letter-spacing: 1.5px; color: #758296; padding: 2px 5px 9px; }
.dock { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tool { position: relative; width: 100%; height: 41px; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #b9c2d0; }
.tool .icon { width: 17px; height: 17px; }
.tool-label { font-size: 8px; line-height: 10px; }
.tool:hover { background: #ffffff0b; color: #fff; }
.tool.active { color: #fff; background: linear-gradient(#1697ff, #0075fb); box-shadow: inset 0 1px #ffffff40, 0 2px 5px #001e5866; }
.tool-secure:not(.active) { color: #91c6ff; background: #1688ff0c; }
.soon-dot { position: absolute; top: 2px; right: 3px; font-size: 7px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #1688ff33; color: #a9d2ff; }
.tool.active .soon-dot { background: #ffffff30; color: #fff; }
.dock-divider { grid-column: 1 / -1; height: 1px; margin: 4px 2px; background: #ffffff12; }
.rail-key-hint { font-size: 8px; line-height: 1.5; color: #6f7d91; text-align: center; margin-top: 12px; }
.app:not([data-section="edit"]) .tool-rail, .app:not([data-section="edit"]) .inspector { visibility: hidden; }

/* Utility bar, canvas, hints */
.utilitybar { display: flex; align-items: center; gap: 3px; padding: 6px 8px; border-bottom: 1px solid #ffffff08; flex-shrink: 0; }
.utilitybar .spacer { flex: 1; min-width: 6px; }
.utility { position: relative; display: flex; gap: 5px; align-items: center; padding: 6px 8px; font-size: 10px; border: 0; background: transparent; color: #9aa7b9; border-radius: 5px; white-space: nowrap; }
.utility:hover { background: #ffffff08; color: #d1e1f9; }
.utility .icon { width: 14px; height: 14px; }
.utility .count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff5a5f; color: #fff; font-size: 9px; font-weight: 700; display: inline-grid; place-items: center; }
.sheet-toggle { display: none; }
.viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 45%, #252930, #1a1d23 70%); padding: 16px 20px; }
.viewport.zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.canvas-wrap { position: relative; flex-shrink: 0; }
#canvas { display: block; touch-action: none; border-radius: 3px; }
.canvas-wrap.dragover { outline: 2px dashed var(--blue); outline-offset: 10px; }
.hintbar { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; flex-shrink: 0; background: #1a1d23; color: #637084; font-size: 9px; }
.tool-hint { color: #8d9bb0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hint-end { white-space: nowrap; }
.crop-actions { display: flex; gap: 6px; flex-shrink: 0; }
.crop-actions .btn { padding: 4px 10px; font-size: 10px; }

/* Text typed on the image */
.inline-text { position: absolute; z-index: 5; margin: 0; padding: 0; border: 0; outline: none; background: transparent; resize: none; overflow: hidden; white-space: pre; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 600; caret-color: currentColor; box-shadow: 0 0 0 1px #1688ff66; border-radius: 2px; }
.inline-text.hand { font-family: Noteworthy, "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-weight: 400; text-align: center; }
.inline-text::selection { background: #1688ff40; }

/* Inspector */
.inspector { background: #21242a; border-left: 1px solid #ffffff12; overflow: auto; padding: 12px 13px; }
.sheet-head { display: none; }
.inspector h3 { font-size: 11px; font-weight: 600; margin: 0 0 10px; }
.control-group { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.control-group:last-child { border: 0; margin: 0; }
.control-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 5px; color: #a1aab9; font-size: 10px; gap: 10px; min-height: 14px; }
.control-row output { color: #cbd5e5; font-size: 10px; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid #21242a; outline: 1px solid #ffffff25; }
.swatch.active { outline: 2px solid var(--blue); }
.range { width: 100%; height: 4px; accent-color: var(--blue); cursor: pointer; margin: 5px 0; }
.seg { display: flex; gap: 4px; }
.seg-wrap { flex-wrap: wrap; }
.seg button { flex: 1; background: linear-gradient(#373c44, #2d3138); border: 1px solid #ffffff09; border-radius: 6px; padding: 6px 4px; color: #aeb8c8; font-size: 10px; white-space: nowrap; }
.seg button.active { border-color: var(--blue); background: #1688ff18; color: #b9ddff; box-shadow: 0 0 0 1px #1688ff44; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #a1aab9; margin: 9px 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 29px; height: 17px; border-radius: 14px; background: #454c58; position: relative; cursor: pointer; margin: 0; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; background: #e1e7ee; border-radius: 50%; box-shadow: 0 1px 3px #0004; transition: transform .12s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(12px); }
.size-fields { display: flex; align-items: center; gap: 6px; color: #8391a6; }
.size-fields .field { padding: 6px; }
.backgrounds { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 4px; }
.bg-chips { display: contents; }
.bg-chip { width: 27px; height: 22px; padding: 0; border: 2px solid #ffffff12; border-radius: 5px; background: #252a34; position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
.bg-chip.active { border-color: var(--blue); }
.bg-chip.bg-none { background: repeating-conic-gradient(#6b6f78 0% 25%, #a2a6ae 0% 50%) 0 0 / 8px 8px; }
.bg-colour { background: conic-gradient(#ff3b30, #ffcc00, #34c759, #1db6c9, #1688ff, #af52de, #ff3b30); }
.bg-colour input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
#frameControls.muted { opacity: .6; }
.field { background: #14171d; border: 1px solid #ffffff17; border-radius: 5px; color: #d5e1f2; padding: 8px; width: 100%; font-size: 11px; }
.field:focus { outline: 1px solid var(--blue); }
.inspector-note { color: #75839a; font-size: 9px; line-height: 1.5; margin: 8px 0 0; }
.redact-info p { font-size: 10px; line-height: 1.55; color: #a9b8cb; margin: 10px 0; }
.redact-info small { display: block; color: #8290a3; font-size: 9px; line-height: 1.55; }
.redact-info a { color: #89c1ff; font-size: 10px; display: block; margin-top: 10px; }
.redact-badge { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; color: #91c6ff; font-size: 8px; line-height: 1.5; letter-spacing: .3px; }
.redact-badge .icon { width: 16px; height: 16px; }
.badge { font-size: 8px; padding: 2px 5px; border-radius: 4px; border: 1px solid #316fb54d; background: #16488128; color: #8dbdff; letter-spacing: 0; white-space: nowrap; }
.badge.soon { border-color: #ffffff25; background: #ffffff08; color: #b5c1d3; }

/* Capture, History, Shortcuts */
.page-view { padding: 34px 40px; overflow: auto; }
.page-heading { margin: 0 0 8px; font-size: 25px; font-weight: 550; letter-spacing: -.7px; }
.page-desc { font-size: 12px; color: #7d8ba0; line-height: 1.75; margin: 0 0 22px; max-width: 620px; }
.sub-heading { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #6f8fb9; margin: 30px 0 14px; font-weight: 600; }
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: 760px; }
.capture-card { border: 1px solid #ffffff15; background: linear-gradient(140deg, #292f39, #1d222b); border-radius: 10px; padding: 22px; text-align: left; display: flex; flex-direction: column; align-items: start; gap: 10px; color: var(--text); }
.capture-card .icon { width: 26px; height: 26px; color: #7cb9ff; }
.capture-card strong { font-size: 13px; font-weight: 550; }
.capture-card small { font-size: 10px; line-height: 1.7; color: #7a8ba4; }
.capture-card:hover { border-color: #1688ff88; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; }
.mode { border: 1px solid #ffffff0e; border-radius: 9px; padding: 14px; background: #ffffff04; display: flex; flex-direction: column; gap: 7px; }
.mode .icon { color: #6f9fd6; }
.mode strong { font-size: 12px; font-weight: 550; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mode small { font-size: 10px; line-height: 1.6; color: #7a8ba4; }
.history-search { max-width: 420px; margin-bottom: 18px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.history-card { border: 1px solid #ffffff15; border-radius: 8px; overflow: hidden; background: #242a34; }
.history-shot { background: #15191f; display: grid; place-items: center; aspect-ratio: 1.6; padding: 8px; }
.history-shot canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.history-info { padding: 12px; }
.history-info h4 { font-size: 12px; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-info p { font-size: 9px; color: #7b8ba2; margin: 0 0 10px; }
.empty h3 { font-size: 15px; margin: 0 0 8px; }
.settings-block { max-width: 560px; border: 1px solid #ffffff12; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; background: #222730; }
.settings-block h3 { margin: 0 0 14px; font-size: 12px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 11px; color: #8e9db2; }
.keys span { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* Bottom navigation and status bar */
.bottomnav { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-top: 1px solid var(--line); background: #22252b; }
.rail-button { border: 1px solid transparent; border-radius: 7px; background: none; padding: 6px 11px; color: #939dae; display: flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.rail-button .icon { width: 15px; height: 15px; }
.rail-button.active { background: linear-gradient(#25467588, #20375888); border-color: #5489d033; color: #c5e0ff; }
.rail-button:hover { background-color: #ffffff08; }
.bottomnav-end { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.statusbar { height: 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 0 15px; background: #24272d; font-size: 9px; color: #8693a7; flex-shrink: 0; }
.statusbar > div { display: flex; align-items: center; gap: 15px; }
.statusbar select { background: none; border: 0; color: #a0acc0; font-size: 9px; }
.statusbar .local { color: #7ea4d5; }

/* Dialogs and notices */
dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #ffffff26; border-radius: 13px; background: #242831; color: #d9e3f2; box-shadow: 0 30px 100px #000a; }
dialog::backdrop { background: #05080dbb; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #ffffff0c; }
.modal-head h2 { font-size: 15px; margin: 0; }
.modal-body { padding: 18px 20px; }
.modal-body p { font-size: 12px; line-height: 1.75; color: #9aabc3; margin-top: 0; }
.modal-body label { font-size: 11px; color: #9baec8; display: block; margin: 12px 0 6px; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 20px; background: #00000012; border-top: 1px solid #ffffff0c; }
.export-preview { display: block; width: 100%; height: 150px; object-fit: contain; background: #141820; border-radius: 7px; margin-bottom: 4px; }
.export-fields { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.export-redact-note { display: flex; gap: 9px; background: #1688ff0d; border: 1px solid #1688ff25; padding: 10px; border-radius: 6px; color: #a7c5e8; font-size: 10px; line-height: 1.6; margin-top: 12px; }
.modal-body .checksum-option { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checksum-option input { accent-color: var(--blue); }
.modal-body .caption { font-size: 10px; line-height: 1.6; color: #8a9bb2; margin: 8px 0 0; }
.hash { display: block; overflow-wrap: anywhere; background: #15191f; padding: 12px; border-radius: 6px; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ocr-text { height: 190px; resize: vertical; line-height: 1.6; }
.level { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; font-size: 12px; }
.level span { font-size: 9px; color: #8cbfff; }
.level .planned { color: #98a2b1; }
.modal-body .link { color: #89c1ff; font-size: 11px; }
.toast { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); padding: 10px 16px; background: #344256; border: 1px solid #7d9fc83b; color: #e2efff; border-radius: 8px; font-size: 11px; max-width: min(520px, 90vw); text-align: center; opacity: 0; pointer-events: none; z-index: 50; transition: opacity .2s; box-shadow: 0 8px 20px #0006; }
.toast.show { opacity: 1; }
body:not(.embed) .toast { position: fixed; }

/* The floating thumbnail and a pinned capture */
.float-thumb { position: absolute; right: 18px; bottom: 16px; z-index: 8; padding: 8px; border-radius: 12px; background: #2a2f39ee; border: 1px solid #ffffff22; box-shadow: 0 18px 40px #0009; transform: translateY(12px); opacity: 0; transition: transform .25s, opacity .25s; }
.float-thumb.in { transform: none; opacity: 1; }
.float-thumb canvas { display: block; border-radius: 6px; }
.thumb-actions { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; margin-top: 7px; }
.thumb-actions button { border: 0; border-radius: 5px; background: #ffffff10; color: #dbe6f6; font-size: 10px; padding: 5px 6px; }
.thumb-actions button:hover { background: #1688ff; color: #fff; }
.thumb-close { position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid #ffffff30; background: #3a404b; color: #dfe7f3; }
.thumb-close .icon { width: 11px; height: 11px; }
.pinned { position: absolute; right: 236px; top: 104px; z-index: 30; border: 1px solid #64748b; border-radius: 10px; background: #232a36; box-shadow: 0 20px 50px #0008; overflow: hidden; }
.pinned header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 6px 5px 10px; font-size: 10px; color: #9fb4d0; cursor: move; touch-action: none; }
.pinned canvas { display: block; }

/* In the home page's frame: a little tighter */
body.embed .titlebar { height: 46px; }
body.embed .viewport { padding: 14px 18px; }
body.embed .workspace { grid-template-columns: 104px minmax(0, 1fr) 206px; }

@media (prefers-reduced-motion: reduce) { .float-thumb, .switch input::after, .toast { transition: none; } }
@media (max-height: 720px) {
  .tool, body.embed .tool { height: 35px; }
  .rail-key-hint { display: none; }
  .inspector { padding: 10px 12px; }
  .control-group { padding-bottom: 10px; margin-bottom: 10px; }
  .control-row { margin: 6px 0 4px; }
  .switch { margin: 7px 0; }
  .hint-end { display: none; }
}
@media (max-height: 600px) and (min-width: 621px) {
  .statusbar { display: none; }
  .tool-rail .dock { gap: 3px; }
  .tool, body.embed .tool { height: 31px; }
  .tool-label { display: none; }
  .tool-rail-title { padding-bottom: 5px; }
}
@media (max-width: 980px) {
  .workspace, body.embed .workspace { grid-template-columns: 96px minmax(0, 1fr) 196px; }
  .utility .label { display: none; }
  .hint-end { display: none; }
  .docname { display: none; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones: the canvas full width, tools in a strip under it, settings in a sheet. */
@media (max-width: 620px) {
  .topnav { height: 40px; padding: 0 12px; }
  .topnav .tag { display: none; }
  .app { height: calc(100dvh - 40px); }
  .titlebar, body.embed .titlebar { height: 44px; padding: 0 10px; gap: 8px; }
  .traffic { gap: 4px; }
  .traffic i { width: 8px; height: 8px; }
  .appname { display: none; }
  .title-actions { gap: 4px; }
  .title-actions .btn { padding: 7px 9px; }
  .title-actions .btn:not(.blue) .label { display: none; }
  .workspace, body.embed .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .main-panel { grid-row: 1; }
  .tool-rail { grid-row: 2; border-right: 0; border-top: 1px solid var(--line); padding: 5px 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tool-rail::-webkit-scrollbar { display: none; }
  .tool-rail-title, .rail-key-hint { display: none; }
  .dock { display: flex; gap: 3px; width: max-content; }
  .tool, body.embed .tool { width: 52px; height: 46px; flex-shrink: 0; }
  .tool-label { font-size: 9px; display: block; }
  .dock-divider { width: 1px; height: 30px; margin: 8px 3px; align-self: center; }
  .app:not([data-section="edit"]) .tool-rail { display: none; }
  .utilitybar { padding: 4px 6px; gap: 1px; overflow-x: auto; scrollbar-width: none; }
  .utilitybar::-webkit-scrollbar { display: none; }
  .utility { padding: 8px; }
  .utility .icon, .icon-btn .icon { width: 17px; height: 17px; }
  .icon-btn { padding: 7px; }
  .sheet-toggle { display: grid; color: #a9c9f0; }
  #pinBtn, #shareBtn, #backgroundBtn { display: none; }
  .viewport, body.embed .viewport { padding: 8px; }
  .hintbar { padding: 4px 8px; min-height: 32px; }
  .tool-hint { white-space: normal; line-height: 1.35; font-size: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .statusbar { display: none; }
  .bottomnav { height: 42px; padding: 3px 4px; gap: 0; }
  .rail-button { padding: 7px 8px; font-size: 10px; gap: 5px; }
  .bottomnav .get-app { display: none; }
  .inspector { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; z-index: 20; border: 1px solid #ffffff1c; border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px #0008; padding: 6px 14px 14px; transform: translateY(105%); visibility: hidden; transition: transform .22s, visibility .22s; }
  .inspector.open { transform: none; visibility: visible; }
  .app:not([data-section="edit"]) .inspector.open { visibility: hidden; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -6px; background: #21242a; padding: 6px 0; margin-bottom: 4px; z-index: 1; }
  .sheet-head strong { font-size: 12px; }
  .swatch { width: 28px; height: 28px; }
  .seg button { padding: 9px 4px; font-size: 11px; }
  .bg-chip { width: 36px; height: 30px; }
  .page-view { padding: 20px 16px; }
  .capture-grid, .mode-grid, .keys { grid-template-columns: 1fr; }
  .export-fields { grid-template-columns: 1fr 104px; }
  .float-thumb { right: 10px; bottom: 10px; padding: 6px; }
  .pinned { right: 10px; top: 60px; }
  .toast { bottom: 100px; font-size: 10px; }
}
