@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
:root {
  --canvas: #eef2f5;
  --paper: #ffffff;
  --mat: #e2e8ee;
  --ink: #0f1720;
  --ink-soft: #516070;
  --rule: #d5dce3;
  --cyan: #0b7fa6;
  --cyan-deep: #075f7d;
  --cyan-soft: #e1f2f8;
  --pass: #117a4f;
  --pass-soft: #e3f4eb;
  --warn: #945700;
  --warn-soft: #fff2d9;
  --fail: #b8322a;
  --fail-soft: #fce8e6;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--cyan-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--ink); color: #fff; z-index: 9; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--cyan); color: #fff; }
.brand-mark svg { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-group { position: relative; }
.nav-group summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--ink-soft); white-space: nowrap; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-group[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-group summary:hover, .nav-group[open] summary { color: var(--ink); }
.nav-group[data-current] summary { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; min-width: 250px; padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 32, .14); }
.nav-menu a { padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-menu a:hover { background: var(--canvas); }
.nav-menu a[aria-current="page"] { background: var(--cyan-soft); color: var(--cyan-deep); font-weight: 700; }
.nav-direct { display: none; padding: 8px 0; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-direct:hover { color: var(--ink); }
.nav-direct[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--cyan); }
@media (min-width: 981px) {
  .nav-direct { display: inline-flex; align-items: center; }
  .nav-group.is-phone { display: none; }
}

/* Hero */
.hero { padding: 44px 0 28px; }
.hero h1 { max-width: 16ch; margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.hero-intro { max-width: 640px; margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: #2c3a47; }
.is-plain .hero { padding-bottom: 8px; }
.has-tool .hero { padding: 26px 0 16px; }
.has-tool .hero h1 { max-width: 34ch; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }
.tool-intro { max-width: 760px; margin: 44px 0 0; }
.tool-intro + .content-layout { margin-top: 40px; }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px 24px; align-items: start; }
.studio-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.doc-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 46px; padding: 0 14px 0 16px; border: 1.5px solid #b7c2cc; border-radius: 999px; background: var(--paper); cursor: pointer; }
.doc-chip:hover { border-color: var(--ink-soft); }
.doc-chip:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.doc-chip-label { flex: none; margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.doc-chip select { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; padding: 11px 24px 11px 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23516070' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px 8px no-repeat; color: var(--ink); font: 700 15.5px/1.3 var(--sans); text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
.doc-chip select:focus { outline: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #b7c2cc; transition: background-color .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 32, .3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--cyan); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--cyan); outline-offset: 2px; }

.inapp { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--warn); border-radius: 0 8px 8px 0; background: var(--warn-soft); font-size: 15px; line-height: 1.45; }
.inapp-text { margin: 0; font-weight: 700; color: #6b3f00; }
.inapp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inapp-actions .button { text-decoration: none; }
.save-image { display: block; width: min(100%, 360px); height: auto; justify-self: center; border: 1px solid var(--rule); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.stage { min-width: 0; }
.stage-frame { position: relative; display: grid; place-items: center; min-height: 520px; padding: 36px; background: var(--mat); border-radius: var(--radius); overflow: hidden; }
.studio[data-stage="empty"] .stage-frame { place-items: start center; min-height: 0; padding-block: 32px; }
.crop-mark { position: absolute; width: 22px; height: 22px; border-color: var(--cyan); border-style: solid; border-width: 0; pointer-events: none; }
.crop-mark.is-tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.crop-mark.is-tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.crop-mark.is-bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.crop-mark.is-br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.stage-empty { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 460px; text-align: center; }
.studio.is-dragging .stage-frame { outline: 3px dashed var(--cyan); outline-offset: -10px; }
.drop-note { display: none; margin: -2px 0 0; font-size: 14.5px; color: var(--ink-soft); }
@media (pointer: fine) { .drop-note { display: block; } }
.empty-art svg { width: 132px; height: 132px; }
.art-frame { fill: var(--paper); stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 4 3; }
.art-head, .art-body { fill: #c9d4dd; }
.art-eye { stroke: var(--cyan); stroke-width: 1.5; }
.empty-title { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.empty-text { margin: 0; color: var(--ink-soft); }
.tips { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.notice { display: grid; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 8px; background: var(--cyan-soft); color: var(--ink); font-size: 15px; line-height: 1.45; text-align: left; }
.notice:focus { outline: none; }
.notice:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.notice[data-tone="error"] { background: var(--fail-soft); color: #8e241e; }
.notice-text { display: grid; gap: 2px; margin: 0; font-weight: 600; }
.notice-text span:first-child { font-weight: 800; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-actions:empty { display: none; }
.notice-actions .button { min-height: 44px; padding: 0 16px; font-size: 15px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2px; }
.helper-link { display: none; margin: 0; font-size: 15px; }
@media (pointer: coarse) { .helper-link { display: block; } }
.empty-hint { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.empty-note { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-wrap: balance; }
.empty-note .icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--cyan); }
.boot-note { max-height: 0; margin: -10px 0 0; overflow: hidden; opacity: 0; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--fail); }
.studio:not([data-ready]) .boot-note { animation: boot-note 0s 8s forwards; }
@keyframes boot-note { to { max-height: 160px; margin-top: 0; opacity: 1; } }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 16px/1.2 var(--sans); text-align: center; cursor: pointer; transition: background-color .15s, transform .1s; }
.button:hover { background: var(--cyan-soft); }
.button:active { transform: translateY(1px); }
.button-primary { border-color: var(--cyan); background: var(--cyan); color: #fff; }
.button-primary:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); }
.button:disabled { opacity: .55; cursor: progress; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 6px; border: 0; background: none; color: var(--ink-soft); font: 600 15px var(--sans); cursor: pointer; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.text-button[aria-pressed="true"] { color: var(--cyan-deep); }
.link-button { display: inline-block; margin: -11px 0; padding: 11px 2px; border: 0; background: none; color: var(--cyan-deep); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }

.camera { position: relative; width: min(100%, 560px, calc((100vh - 40px) * .75)); aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #0b1117; }
@supports (height: 100svh) { .camera { width: min(100%, 560px, calc((100svh - 40px) * .75)); } }
.camera video, .camera-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera.is-mirrored video, .camera.is-mirrored .camera-overlay { transform: scaleX(-1); }
.camera-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.camera-hint { max-width: 100%; margin: 0; padding: 8px 16px; border-radius: 16px; background: rgba(15, 23, 32, .84); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.camera-hint[data-tone="good"] { background: rgba(13, 104, 67, .95); }
.camera-hint[data-tone="muted"] { font-size: 16px; font-weight: 600; }
.camera-tip { max-width: 100%; margin: 0; padding: 6px 14px; border-radius: 14px; background: rgba(122, 70, 0, .95); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.camera-say { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; }
.camera-arrow { display: grid; flex: none; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(15, 23, 32, .84); box-shadow: 0 0 0 3px #fff; color: #fff; }
.camera-arrow svg { width: 48px; height: 48px; }
.camera-arrow[data-arrow="down"] svg { transform: rotate(180deg); }
.camera-arrow[data-arrow="left"] svg { transform: rotate(-90deg); }
.camera-arrow[data-arrow="right"] svg { transform: rotate(90deg); }
.camera-arrow .arrow-in, .camera-arrow .arrow-out, .camera-arrow[data-arrow="closer"] .arrow-up, .camera-arrow[data-arrow="back"] .arrow-up { display: none; }
.camera-arrow[data-arrow="closer"] .arrow-out, .camera-arrow[data-arrow="back"] .arrow-in { display: block; }
.countdown { position: absolute; left: 50%; bottom: 108px; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 0 0 -56px; border-radius: 50%; background: rgba(15, 23, 32, .66); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); color: #fff; font: 800 76px/1 var(--sans); pointer-events: none; }
.camera.is-handsfree::after { content: ""; position: absolute; inset: 0; border: 8px solid #f0a020; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(15, 23, 32, .7); pointer-events: none; }
.camera.is-handsfree.is-aligned::after { border-color: #2bd192; }
.camera-controls { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 23, 32, .6); }
.camera-side { display: flex; justify-content: center; gap: 6px; }
.round-button { display: grid; justify-items: center; gap: 4px; min-width: 58px; padding: 0; border: 0; background: none; color: #fff; font: 700 13px/1.2 var(--sans); cursor: pointer; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(15, 23, 32, .75); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
.round .icon { width: 22px; height: 22px; }
.round-button:hover .round { background: rgba(15, 23, 32, .92); }
.round-button[aria-pressed="true"] .round { background: #f0a020; color: var(--ink); box-shadow: 0 0 0 1.5px #fff; }
.shutter { width: 76px; height: 76px; padding: 0; border: 5px solid #fff; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px rgba(15, 23, 32, .8), 0 0 0 2px rgba(15, 23, 32, .5); cursor: pointer; transition: transform .1s; }
.shutter:active { transform: scale(.94); }
.voice-button .icon + .icon, .voice-button[aria-pressed="false"] .icon:first-child { display: none; }
.voice-button[aria-pressed="false"] .icon + .icon { display: block; }
html.camera-open { overflow: hidden; }
.camera.is-paused .camera-top, .camera.is-paused .shutter, .camera.is-paused [data-timer], .camera.is-paused [data-flip] { visibility: hidden; }
.camera-controls { z-index: 3; }
.camera-paused { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: rgba(15, 23, 32, .88); color: #fff; font-weight: 700; text-align: center; }
.camera-paused p { margin: 0; font-size: 18px; }
.camera.is-aligned .shutter { background: #2bd192; }

.result { display: grid; justify-items: center; gap: 10px; width: 100%; }
.print { position: relative; width: min(100%, 420px); aspect-ratio: var(--aspect, 1 / 1); background: var(--paper); box-shadow: 0 1px 2px rgba(15, 23, 32, .12), 0 16px 40px rgba(15, 23, 32, .14); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.print canvas { display: block; width: 100%; height: 100%; }
.print .highlight { position: absolute; inset: 0; pointer-events: none; }
.guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark { vector-effect: non-scaling-stroke; }
.mark.is-pass { color: #16a068; }
.mark.is-warn { color: #d99a1e; }
.mark.is-fail { color: #e0402f; }
.mark.is-zone { fill: currentColor; fill-opacity: .32; }
.mark.is-bracket, .mark.is-tick { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.guide-chip { position: absolute; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--pass); font: 500 12.5px/1.3 var(--mono); white-space: nowrap; box-shadow: 0 1px 3px rgba(15, 23, 32, .28); pointer-events: none; }
.guide-chip.is-left { left: 8px; }
.guide-chip.is-right { right: 8px; }
.guide-chip[data-status="warn"] { color: var(--warn); }
.guide-chip[data-status="fail"] { background: var(--fail); color: #fff; }
.print .is-temporary { opacity: 0; transition: opacity .45s; }
.print.show-guides .is-temporary, .print.is-adjusting .is-temporary, .print.is-highlighting .is-temporary { opacity: 1; }
.print.is-highlighting .guides { animation: blink 1s ease-in-out 3; }
@keyframes blink { 50% { opacity: .35; } }
.photo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: min(100%, 420px); }
.verdict-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; padding: 0 14px; border-radius: 999px; background: var(--canvas); color: var(--ink); font-weight: 800; text-decoration: none; }
.verdict-link[data-status="pass"], .bar-chip[data-status="pass"] { background: var(--pass-soft); color: var(--pass); }
.verdict-link[data-status="warn"], .bar-chip[data-status="warn"] { background: var(--warn-soft); color: var(--warn); }
.verdict-link[data-status="fail"], .bar-chip[data-status="fail"] { background: var(--fail-soft); color: var(--fail); }
.photo-note { display: grid; gap: 4px; width: min(100%, 420px); font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.photo-note p { margin: 0; }
.adjust, .backdrop { width: min(100%, 420px); border-top: 1px solid #c9d3dc; }
.adjust summary, .backdrop summary { display: flex; align-items: center; min-height: 46px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.adjust summary::-webkit-details-marker, .backdrop summary::-webkit-details-marker { display: none; }
.adjust summary::after, .backdrop summary::after { content: "+"; margin-left: auto; font: 500 18px var(--mono); color: var(--ink-soft); }
.adjust[open] summary::after, .backdrop[open] summary::after { content: "−"; }
.adjust-body { display: grid; gap: 12px; padding: 2px 0 14px; }
.zoom { display: flex; align-items: flex-end; gap: 10px; }
.zoom-label { display: grid; flex: 1; gap: 2px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.zoom input { width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.zoom input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #c3ccd4 var(--zone-from, 0%), #7fd3ab var(--zone-from, 0%), #7fd3ab var(--zone-to, 100%), #c3ccd4 var(--zone-to, 100%)); }
.zoom input::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #c3ccd4 var(--zone-from, 0%), #7fd3ab var(--zone-from, 0%), #7fd3ab var(--zone-to, 100%), #c3ccd4 var(--zone-to, 100%)); }
.zoom input::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; border: 3px solid #fff; border-radius: 50%; background: var(--cyan); box-shadow: 0 1px 4px rgba(15, 23, 32, .35); -webkit-appearance: none; appearance: none; }
.zoom input::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--cyan); box-shadow: 0 1px 4px rgba(15, 23, 32, .35); }
.zoom input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.nudges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.nudge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 22px/1 var(--sans); cursor: pointer; }
.nudge:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.fit-note { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--fail); }
.backdrop-warning { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--warn); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 14px 5px 7px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-size: 14.5px; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.swatch-chip { width: 26px; height: 26px; border-radius: 50%; background: var(--chip, #fff); box-shadow: inset 0 0 0 1px rgba(15, 23, 32, .22); }
.swatch-chip.is-original { background: linear-gradient(135deg, #d7c6ad 0 50%, #93a7b8 50% 100%); }
.swatch-color { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch:hover { border-color: var(--ink-soft); }
.swatch:has(input:checked) { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-soft); font-weight: 700; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.backdrop-hint, .backdrop-error { margin: 10px 0 12px; font-size: 14px; color: var(--ink-soft); }
.backdrop-error { font-weight: 700; color: var(--fail); }

.busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: rgba(238, 242, 245, .92); text-align: center; font-weight: 600; }
.busy p { margin: 0; max-width: 320px; }
.spinner { width: 38px; height: 38px; border: 4px solid var(--cyan-soft); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.taps { display: grid; justify-items: center; gap: 10px; width: 100%; }
.taps-hint { display: grid; gap: 2px; width: min(100%, 480px); margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--cyan-soft); font-size: 15.5px; line-height: 1.4; text-align: center; }
.taps-hint:focus { outline: none; }
.taps-hint strong { font-size: 17px; }
.taps-photo { display: block; max-width: 100%; max-height: 70vh; cursor: crosshair; touch-action: manipulation; box-shadow: 0 1px 2px rgba(15, 23, 32, .12), 0 16px 40px rgba(15, 23, 32, .14); }
.taps-actions { display: flex; gap: 16px; }

/* Panel */
.panel { display: grid; gap: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); position: sticky; top: 16px; }
.spec { display: grid; gap: 0; margin: 0 0 4px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; font: 500 13.5px/1.5 var(--mono); text-align: right; }
.spec-source { margin: 8px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.spec-source a { display: inline-block; margin: -14px 0; padding: 14px 0; }
.report { margin: -6px 0 0; font-size: 14px; }
.report a { display: inline-block; padding: 12px 0; color: var(--ink-soft); }
.verdict { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--canvas); font-weight: 700; line-height: 1.4; }
.verdict:focus { outline: none; }
.authority { margin: -6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.verdict:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.verdict[data-status="pass"] { background: var(--pass-soft); color: var(--pass); }
.verdict[data-status="warn"] { background: var(--warn-soft); color: var(--warn); }
.verdict[data-status="fail"] { background: var(--fail-soft); color: var(--fail); }
.check-list { display: grid; gap: 4px; }
.check-list:empty { display: none; }
.checks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.passed summary, .spec-box summary, .save-formats summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; color: var(--pass); }
.spec-box summary, .save-formats summary { color: var(--ink-soft); }
.passed summary::-webkit-details-marker, .spec-box summary::-webkit-details-marker, .save-formats summary::-webkit-details-marker { display: none; }
.passed summary::after, .spec-box summary::after, .save-formats summary::after { content: "+"; margin-left: auto; font: 500 18px var(--mono); color: var(--ink-soft); }
.passed[open] summary::after, .spec-box[open] summary::after, .save-formats[open] summary::after { content: "−"; }
.spec-box { border-top: 1px solid var(--rule); }
.check { border-bottom: 1px solid var(--rule); }
.check-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; min-height: 44px; padding: 9px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.check-row { cursor: pointer; }
button.check-row:hover .check-show, button.check-row[aria-pressed="true"] .check-show { color: var(--ink); }
.check-show { font-size: 13.5px; font-weight: 700; color: var(--cyan-deep); text-decoration: underline; text-underline-offset: 3px; }
.check-mark { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--pass) center/14px no-repeat; }
.is-pass .check-mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l2.8 2.7L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.is-warn .check-mark { background-color: #d99a1e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.2' fill='white'/%3E%3C/svg%3E"); }
.is-fail .check-mark { background-color: var(--fail); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.check-body { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.check-body strong { font-size: 15.5px; color: var(--ink); }
.check-status { font: 500 12px/20px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--pass); }
.is-warn .check-status { color: var(--warn); }
.is-fail .check-status { color: var(--fail); }
.save { display: grid; gap: 10px; }
.save .button { width: 100%; }
.save-main { min-height: 56px; font-size: 17px; }
.save-sub, .save-alt { margin: -4px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.save-more { display: grid; gap: 8px; }
.save-more:empty { display: none; }
.save-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 0; font-size: 14.5px; }
.save-links .link-button { margin: 0; }
.save-list { display: grid; gap: 8px; padding: 4px 0 6px; }
.save-formats { border-top: 1px solid var(--rule); }
.reminder { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--canvas); font-size: 14px; line-height: 1.45; color: #34414d; }
.next-step { display: grid; gap: 8px; padding: 12px 14px; border-left: 4px solid var(--pass); border-radius: 0 8px 8px 0; background: var(--pass-soft); font-size: 15px; line-height: 1.45; }
.next-step:empty { padding: 0; border: 0; }
.next-step p { margin: 0; }
.next-title { font-weight: 800; color: var(--pass); }
.next-error { font-weight: 700; color: var(--fail); }
.save > .text-button { justify-self: center; }
.result-bar { display: none; }

/* Article */
.content-layout { display: grid; grid-template-columns: minmax(0, 760px); gap: 64px; margin-top: 72px; }
.content-layout.has-toc { grid-template-columns: minmax(0, 1fr) 240px; }
.content-layout.has-toc .toc { grid-column: 2; grid-row: 1; }
.content-layout.has-toc .content { grid-column: 1; grid-row: 1; }
.toc { align-self: start; position: sticky; top: 20px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.toc p { margin: 0 0 8px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-deep); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.content { max-width: 760px; }
.content h2 { margin: 56px 0 14px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.content > h2:first-child, .content > p:first-child { margin-top: 0; }
.content h3 { margin: 28px 0 8px; font-size: 20px; line-height: 1.25; }
.content p, .content li { color: #26323d; font-size: 17px; line-height: 1.7; }
.content li + li { margin-top: 6px; }
.content ol, .content ul { padding-left: 24px; }
.content ol li::marker { font-weight: 800; color: var(--cyan-deep); }
.content table { width: 100%; margin: 20px 0; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.content th, .content td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.content th { background: #f5f8fa; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.table-wrap { margin: 20px 0; overflow-x: auto; }
.content .table-wrap table { margin: 0; }
.content td:first-child { font-weight: 600; }
.hero-cta { margin-top: 22px; }
.callout { margin: 22px 0; padding: 16px 18px; border-left: 4px solid var(--cyan); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 16px 40px 16px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 500 22px var(--mono); color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 18px; }
.content .updated { margin: 0 0 32px; font: 500 13px/1.6 var(--mono); color: var(--ink-soft); }
.related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--rule); }
.related h2 { margin-top: 24px; }
.example { margin: 22px 0 12px; }
.example img { display: block; width: 100%; max-width: 280px; height: auto; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.example figcaption { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.content .more { margin-top: 10px; font-weight: 600; }

.site-footer { margin-top: 96px; padding: 36px 0 56px; background: var(--paper); border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 14px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }
.site-footer p { max-width: 760px; margin: 0; }

@media (max-width: 800px), (max-height: 800px) {
  .empty-art, .empty-title, .empty-text { display: none; }
}
@media (max-width: 980px) {
  .studio { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .panel { position: static; }
  .studio[data-stage="result"] .result-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 calc(50% - 50vw); padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); box-shadow: 0 -8px 22px rgba(15, 23, 32, .1); }
  .bar-chip { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 999px; background: var(--canvas); color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .result-bar .button { flex: none; min-height: 48px; padding: 0 18px; }
  .studio[data-stage="result"] .verdict-link { display: none; }
  .content-layout.has-toc { grid-template-columns: minmax(0, 760px); gap: 32px; }
  .content-layout.has-toc .toc, .content-layout.has-toc .content { grid-column: 1; grid-row: auto; }
  .toc { position: static; }
  .header-inner { position: relative; flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 12px 0; }
  .site-nav { gap: 22px; }
  .nav-group { position: static; }
  .nav-group summary { padding: 6px 0 10px; }
  .nav-menu { top: 100%; left: 0; right: 0; min-width: 0; }
  .nav-menu a { white-space: normal; padding-block: 11px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { gap: 18px; font-size: 14.5px; }
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 22px 0 18px; }
  .hero h1 { font-size: 36px; }
  .hero-intro { margin-top: 12px; font-size: 17px; }
  .has-tool .hero { padding: 18px 0 12px; }
  .has-tool .hero h1 { font-size: 32px; }
  .tool-intro { margin-top: 32px; }
  .stage-frame, .studio[data-stage="empty"] .stage-frame { min-height: 0; padding: 22px 16px 20px; }
  .studio[data-stage="camera"] .stage-frame { padding: 0; background: #0b1117; }
  .studio[data-stage="camera"] .crop-mark { display: none; }
  .studio[data-stage="camera"] .camera { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
  .studio[data-stage="camera"] .busy { position: fixed; z-index: 61; }
  .doc-chip { width: 100%; padding: 0 12px 0 14px; }
  .doc-chip select { font-size: 15px; }
  .tips { font-size: 15px; }
  .crop-mark { width: 16px; height: 16px; }
  .crop-mark.is-tl, .crop-mark.is-tr { top: 10px; }
  .crop-mark.is-bl, .crop-mark.is-br { bottom: 10px; }
  .crop-mark.is-tl, .crop-mark.is-bl { left: 10px; }
  .crop-mark.is-tr, .crop-mark.is-br { right: 10px; }
  .camera { width: min(100%, calc(100svh * .75)); max-height: 100svh; }
  .camera-hint { font-size: 17px; }
  .empty-title { font-size: 24px; }
  .empty-actions { width: 100%; }
  .empty-actions .button { flex: 1 1 100%; }
  .empty-note { font-size: 13px; }
  .swatches { gap: 6px; }
  .zoom input { height: 44px; }
  .taps-hint { min-height: 7.4em; align-content: center; }
  .swatch-color { width: 34px; height: 34px; }
  .panel { padding: 16px; }
  .check-body { font-size: 15px; }
  .content-layout { margin-top: 56px; }
  .content p, .content li { font-size: 16px; }
  .content th, .content td { padding: 8px 10px; }
}
.print-sheet { display: none; }
@page photo-sheet { size: 8.5in 11in; margin: 0; }
@media print {
  body.has-print-sheet { margin: 0; background: #fff; }
  body.has-print-sheet > :not(.print-sheet) { display: none !important; }
  body.has-print-sheet .print-sheet { page: photo-sheet; position: relative; display: block; width: 8.5in; height: 10.95in; overflow: hidden; color: #000; font-family: Helvetica, Arial, sans-serif; }
  .print-sheet img { position: absolute; display: block; outline: 0.5pt solid #b8b8b8; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sheet-title { position: absolute; margin: 0; font-size: 9pt; color: #555; text-align: center; }
  .sheet-ruler { position: absolute; }
  .ruler-bar { position: absolute; left: 0; top: 50%; width: 1in; height: 0.16in; margin-top: -0.08in; border-left: 0.01in solid #000; border-right: 0.01in solid #000; background: linear-gradient(#000, #000) center / 100% 0.02in no-repeat; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ruler-label { position: absolute; left: 1.12in; top: 50%; width: 4.5in; transform: translateY(-50%); font-size: 7pt; line-height: 1.3; }
}
@media (max-width: 400px) {
  .brand { white-space: normal; font-size: 16px; line-height: 1.2; }
  .site-nav { flex-wrap: wrap; gap: 0 16px; }
  .content table { font-size: 14.5px; }
  .content th { letter-spacing: .03em; }
  .content th, .content td { padding: 6px 8px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 320px) {
  .camera-controls { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .shutter { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 64px; height: 64px; }
  .round-button { min-width: 48px; font-size: 12px; }
  .round { width: 44px; height: 44px; }
  .camera-arrow { width: 56px; height: 56px; }
  .camera-arrow svg { width: 38px; height: 38px; }
  .camera-hint { padding: 6px 10px; font-size: 16px; }
  .countdown { bottom: 150px; }
  .studio[data-stage="result"] .result-bar { flex-wrap: wrap; }
  .bar-chip, .result-bar .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  .button, .shutter, .switch-track, .switch-track::after, .print .is-temporary { transition: none; }
  .print.is-highlighting .guides { animation: none; }
}
