1/* SPDX-License-Identifier: AGPL-3.0-or-later */23:root {4 color-scheme: dark;5 --bg: #000;6 --surface: #1a1a1a;7 --surface-2: #2c2c2c;8 --hairline: rgba(255,255,255,.12);9 --label: #f2f2f2;10 --label-2: #9b9b9b;11 --label-3: #5e5e5e;12 --tint: #f0c04a;13 --tint-ink: #1a1400;14 --danger: #ff6b5c;15 --track: rgba(255,255,255,.22);16 --radius: 14px;17 --nav-h: 48px;18 --safe-top: env(safe-area-inset-top, 0px);19 --safe-bottom: env(safe-area-inset-bottom, 0px);20 --safe-left: env(safe-area-inset-left, 0px);21 --safe-right: env(safe-area-inset-right, 0px);22 font-family: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;23 font-size: 15px;24 line-height: 1.35;25 color: var(--label);26 background: var(--bg);27 font-synthesis: none;28 -webkit-text-size-adjust: 100%;29 text-size-adjust: 100%;30 -webkit-font-smoothing: antialiased;31}32* { box-sizing: border-box; }33html, body { margin: 0; height: 100%; background: var(--bg); overscroll-behavior: none; }34/* Nothing on these pages is meant to be selected, dragged or zoomed. */35body { -webkit-tap-highlight-color: transparent; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }36img, canvas, svg { -webkit-user-drag: none; user-drag: none; }37.tool-body { touch-action: none; }38.chips { touch-action: pan-x; }39input[type=range] { touch-action: none; }40dialog.sheet { touch-action: pan-y; }41button, input, select { font: inherit; color: inherit; }42button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 8px; }43button:disabled { cursor: default; }44a { color: var(--tint); text-decoration: none; }45:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }46[hidden] { display: none ; }47svg { display: block; }48h1, h2, h3, p { margin: 0; }4950/* ---------- Landing ---------- */5152.home {53 min-height: 100%;54 padding: calc(var(--safe-top) + 24px) calc(var(--safe-right) + 20px) calc(var(--safe-bottom) + 32px) calc(var(--safe-left) + 20px);55 max-width: 720px;56 margin: 0 auto;57}58.home-title { font-size: 34px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }59.home-lede { color: var(--label-2); margin-top: 6px; font-size: 15px; max-width: 32em; }60.tools {61 list-style: none; padding: 0;62 margin: 28px 0 0;63 display: grid;64 grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));65 gap: 12px;66}67.tool-card {68 position: relative;69 background: var(--surface);70 border-radius: 20px;71 aspect-ratio: 1;72 transition: transform .12s, background .12s;73}74.tool-card:active { transform: scale(.97); background: var(--surface-2); }75.tool-link { display: flex; flex-direction: column; justify-content: space-between; height: 100%; color: inherit; padding: 18px; border-radius: 20px; }76.tool-info { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--label-2); border-radius: 50%; }77.tool-info:active { color: var(--label); }78.tool-glyph { display: block; color: var(--tint); }79.tool-glyph svg { width: 56px; height: 56px; }80.tool-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }81#tool-text p { font-size: 15px; line-height: 1.5; color: var(--label-2); margin-top: 12px; }82.tool-card p { font-size: 13px; color: var(--label-2); margin-top: 3px; }8384.list { margin-top: 32px; }85.list-title { font-size: 13px; color: var(--label-2); padding: 0 4px 8px; }86.rows { background: var(--surface); border-radius: var(--radius); overflow: hidden; }87.row {88 display: flex; align-items: center; gap: 12px;89 width: 100%; min-height: 48px; padding: 0 16px;90 text-align: left; border-radius: 0;91 color: var(--label);92}93.row + .row { border-top: 1px solid var(--hairline); }94.rows .row:focus-visible { outline-offset: -3px; }95.row:active { background: var(--surface-2); }96.row .chev { margin-left: auto; color: var(--label-3); flex: none; }97.row-note { padding: 10px 4px 0; font-size: 12px; color: var(--label-3); }9899/* ---------- Tool shell ---------- */100101.tool-body { position: fixed; inset: 0; overflow: hidden; }102.tool {103 height: 100%; height: var(--app-height, 100%);104 display: flex; flex-direction: column;105 padding-left: var(--safe-left); padding-right: var(--safe-right);106}107.nav {108 flex: none;109 height: calc(var(--nav-h) + var(--safe-top));110 padding-top: var(--safe-top);111 display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;112 background: var(--surface);113}114.nav-title { text-align: center; font-size: 17px; font-weight: 600; }115.nav-btn {116 display: inline-flex; align-items: center; gap: 2px;117 height: var(--nav-h); padding: 0 14px;118 font-size: 17px; color: var(--tint);119}120.nav-btn:last-child { justify-self: end; }121.nav-btn:disabled { color: var(--label-3); }122.nav-btn:active:not(:disabled) { opacity: .5; }123124125.stage {126 flex: 1 1 0; min-height: 0; position: relative;127 display: flex; align-items: center; justify-content: center;128 background: var(--bg);129 touch-action: none;130}131.canvas-wrap { position: relative; }132#canvas { display: block; }133#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }134.tool[data-state="empty"] .canvas-wrap { display: none; }135136.empty {137 position: absolute; inset: 16px;138 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;139 border: 2px dashed var(--label-3); border-radius: 20px;140 color: var(--label-3);141 transition: border-color .15s, background .15s, color .15s;142}143.empty .plus { color: var(--tint); }144.empty:active, .empty.over { border-color: var(--tint); background: rgba(240,192,74,.06); color: var(--label-2); }145.empty:disabled { opacity: .4; }146.tool:not([data-state="empty"]) .empty { display: none; }147148.hud { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; pointer-events: none; }149.tool[data-state="empty"] .hud { display: none; }150.compare {151 pointer-events: auto;152 width: 40px; height: 40px; border-radius: 50%;153 display: grid; place-items: center;154 background: rgba(20,20,20,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);155}156.compare[aria-pressed="true"] { background: var(--tint); color: var(--tint-ink); }157.compare:disabled { opacity: .35; }158159.busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); }160.spinner { width: 24px; height: 24px; border: 2.5px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }161@keyframes spin { to { transform: rotate(360deg); } }162163/* ---------- Control panel ---------- */164165.panel {166 flex: none;167 background: var(--surface);168 padding: 8px 16px calc(var(--safe-bottom) + 6px);169 display: flex; flex-direction: column; gap: 6px;170}171.toast {172 position: absolute; top: 12px; left: 50%; transform: translateX(-50%);173 max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 10px;174 background: rgba(20,20,20,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);175 font-size: 13px; font-weight: 500; text-align: center; pointer-events: none;176}177.toast.error { color: var(--danger); }178.chip {179 pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;180 height: 32px; padding: 0 12px; border-radius: 16px;181 background: rgba(20,20,20,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);182 font-size: 13px; font-weight: 500; color: var(--label); font-variant-numeric: tabular-nums;183}184.chip:active { opacity: .6; }185.tool:not([data-state="detected"]) .chip { display: none; }186.hud .chip { margin-right: auto; }187188.primary {189 height: 48px; border-radius: 12px;190 background: var(--tint); color: var(--tint-ink);191 font-size: 16px; font-weight: 600;192 display: flex; align-items: center; justify-content: center; gap: 8px;193}194.primary:active:not(:disabled) { opacity: .8; }195.primary:disabled { background: var(--surface-2); color: var(--label-3); }196.tool[data-state="detected"] .primary { display: none; }197198.segment {199 display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;200 height: 40px; padding: 2px; border-radius: 10px; background: var(--surface-2);201}202.segment button { border-radius: 8px; display: grid; place-items: center; color: var(--label-2); }203.segment svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }204.segment button[aria-pressed="true"] { background: #4a4a4a; color: var(--label); box-shadow: 0 1px 3px rgba(0,0,0,.4); }205.segment button:disabled { color: var(--label-3); }206.tool:not([data-state="detected"]) .segment { display: none; }207208.slider { display: grid; grid-template-columns: 1fr auto; align-items: center; font-size: 14px; }209.slider label { color: var(--label); display: flex; align-items: center; }210.slider output { color: var(--label-2); font-variant-numeric: tabular-nums; font-size: 13px; }211.slider input { grid-column: 1 / -1; }212.slider.disabled { color: var(--label-3); }213.slider.disabled output { color: var(--label-3); }214input[type=range] {215 -webkit-appearance: none; appearance: none;216 width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer;217}218input[type=range]:disabled { cursor: default; opacity: .4; }219input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--track); }220input[type=range]::-webkit-slider-thumb {221 -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px;222 border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5);223}224input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--track); }225input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }226.slider.centered { position: relative; }227.slider.centered::after {228 content: ""; position: absolute; left: 50%; bottom: 14px; width: 2px; height: 8px;229 transform: translateX(-50%); background: var(--track); border-radius: 1px; pointer-events: none;230}231232.toolbar {233 display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;234 margin: 4px -8px 0;235}236.tb { display: grid; place-items: center; height: 50px; color: var(--label-2); }237.tb:active:not(:disabled) { opacity: .5; }238.tb:disabled { color: var(--label-3); }239.tb[aria-pressed="true"]:not(:disabled) { color: var(--tint); }240.tb svg { width: 26px; height: 26px; }241242/* ---------- Fuji ---------- */243244#photo { display: block; }245.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px; margin: 0 -16px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }246.chips::-webkit-scrollbar { display: none; }247.chip-btn { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--label); white-space: nowrap; scroll-snap-align: center; }248.chip-btn[aria-checked="true"] { background: var(--tint); color: var(--tint-ink); font-weight: 600; }249.chip-btn:disabled { color: var(--label-3); }250.chip-btn:active:not(:disabled) { opacity: .7; }251.tool[data-state="empty"] .chips { opacity: .4; }252.chips-sticky { position: relative; padding-right: 0; }253.chip-list { display: flex; gap: 8px; align-items: center; padding-right: 56px; }254.chip-group { flex: none; font-size: 12px; color: var(--label-2); padding: 0 2px 0 8px; }255.chip-pin { position: sticky; right: 0; margin-left: auto; width: 44px; padding: 0; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 0 0 8px var(--surface), -20px 0 12px -4px var(--surface); }256257/* ---------- Sheets ---------- */258259dialog.sheet {260 position: fixed; inset: auto 0 0 0; margin: 0; padding: 0;261 width: 100%; max-width: none; max-height: 85dvh;262 border: 0; border-radius: 16px 16px 0 0;263 background: var(--surface); color: var(--label);264 overflow: auto; overscroll-behavior: contain;265}266dialog.sheet::backdrop { background: rgba(0,0,0,.55); }267dialog.sheet[open] { animation: rise .26s cubic-bezier(.2,.8,.2,1); }268@keyframes rise { from { transform: translateY(40px); opacity: 0; } }269.sheet-body { padding: 10px 20px calc(var(--safe-bottom) + 16px); outline: none; }270.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 0 auto 10px; }271.sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }272.sheet-head h2 { font-size: 20px; font-weight: 700; }273.sheet-close { height: 36px; padding: 0 4px; color: var(--tint); font-size: 16px; font-weight: 600; }274.sheet p { font-size: 15px; line-height: 1.5; color: var(--label-2); margin-top: 12px; }275.sheet h3 { font-size: 15px; font-weight: 600; margin-top: 20px; }276.sheet .links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }277278.actions { margin-top: 10px; }279.actions .rows { background: var(--surface-2); }280.actions .row { justify-content: center; font-size: 17px; color: var(--tint); }281.actions .row[aria-checked="true"] { font-weight: 600; }282.actions .row .check { margin-left: auto; visibility: hidden; }283.actions .row[aria-checked="true"] .check { visibility: visible; }284.actions .cancel { margin-top: 8px; width: 100%; height: 50px; border-radius: var(--radius); background: var(--surface-2); font-size: 17px; font-weight: 600; color: var(--label); }285.actions .cancel:active { background: #383838; }286.actions .row:active { background: #383838; }287.action-title { text-align: center; font-size: 13px; color: var(--label-2); padding: 8px 0 12px; }288289.switch-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 15px; }290.switch { position: relative; width: 51px; height: 31px; -webkit-appearance: none; appearance: none; margin: 0; border-radius: 16px; background: var(--surface-2); transition: background .2s; cursor: pointer; }291.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .2s; }292.switch:checked { background: var(--tint); }293.switch:checked::after { transform: translateX(20px); }294295.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 0 6px; font-size: 13px; color: var(--label-2); }296.legend span { display: flex; align-items: center; gap: 8px; }297.legend i { display: block; width: 18px; height: 3px; border-radius: 2px; }298.lv { background: #6af074; } .lh { background: #5e9dff; } .lr { background: #ff706b; } .ly { background: #ffe15c; } .lg { background: #8d979a; }299.counts { font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; margin-top: 6px; }300301/* ---------- Wide screens ---------- */302303@media (min-width: 840px) {304 .home { padding-top: 56px; }305 .tool { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); }306 .nav { grid-column: 1 / -1; }307 .stage { padding: 24px; }308 .panel { border-left: 1px solid var(--hairline); padding: 16px 20px; gap: 12px; justify-content: flex-end; }309 .toolbar { margin-top: 8px; }310 dialog.sheet { inset: 0; margin: auto; width: min(440px, calc(100% - 32px)); border-radius: 16px; }311 dialog.sheet[open] { animation-name: pop; }312 @keyframes pop { from { transform: scale(.96); opacity: 0; } }313 .grabber { display: none; }314 .sheet-body { padding: 18px 22px 22px; }315}316@media (hover: hover) {317 .tool-card:hover { background: var(--surface-2); }318 .row:hover, .tb:hover:not(:disabled) { background: rgba(255,255,255,.05); }319 .nav-btn:hover:not(:disabled), .sheet-close:hover { opacity: .8; }320}321@media (prefers-reduced-motion: reduce) {322 *, ::after { transition: none ; animation-duration: .01s ; }323 .spinner { animation-duration: 1.5s ; }324}