:root {
  color-scheme: light;
  --surface: #f2f6f1;
  --paper: #fff;
  --ink: #172d27;
  --muted: #4e6660;
  --line: #ccd9d1;
  --forest: #174b3e;
  --stage: #1e3631;
  --mint: #dcedde;
  --red: #8c402a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 16px; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 15px/1.55 var(--sans); }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #30896a; outline-offset: 3px; }
p, h1, h2, h3, dl, dd { margin: 0; }
.frame { width: min(calc(100% - 72px), 1360px); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 4; background: white; padding: 8px; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }
.site-header { background: #f9fbf7; border-bottom: 1px solid var(--line); }
.nav-frame { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 65px; }
.nav-frame > .button { justify-self: end; }
.brand { width: fit-content; display: inline-flex; gap: 9px; align-items: center; font-weight: 760; font-size: 22px; line-height: 1; letter-spacing: -.055em; text-decoration: none; }
.mark { display: inline-block; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 8px; background: url('/assets/mark.svg') center/cover; }
.site-header nav { display: flex; gap: clamp(12px, 3.2vw, 38px); align-items: center; }
.site-header nav a { font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--forest); text-decoration: underline; }
.button { min-height: 38px; padding: 6px 11px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.outline { color: var(--forest); background: var(--paper); border-color: #bdcfc4; }
.outline:hover:not(:disabled) { background: #eaf3ec; }
.primary { color: #fff; background: var(--forest); }
.primary:hover:not(:disabled) { background: #22624f; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding-block: 27px 23px; }
.intro h1 { font: 400 clamp(42px, 4.65vw, 73px)/.95 var(--serif); letter-spacing: -.068em; text-wrap: balance; }
.intro h1 br { display: none; }
.intro div > p { color: var(--muted); margin-top: 11px; font-size: 16px; }
.privacy-badge { max-width: max-content; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 1px; border: 1px solid #b9d5c3; border-radius: 6px; background: var(--mint); color: #244f3d; font-size: 11px; font-weight: 740; }
.privacy-badge > span, .plan > span:first-child { color: #367858; font-size: .85em; }
.workbench { display: grid; grid-template-columns: minmax(206px, 20fr) minmax(0, 54fr) minmax(230px, 26fr); border: 1px solid #c1d0c6; border-radius: 13px; overflow: clip; background: var(--paper); box-shadow: 0 12px 30px #19362a14; }
.panel { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 14px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.panel h2, .preview h2 { font-size: 14px; line-height: 1.25; }
.count { display: inline-grid; min-width: 23px; min-height: 22px; place-items: center; padding-inline: 6px; border-radius: 100px; background: #e9f2eb; color: #335744; font: 700 11px var(--mono); }
.drop-zone { display: grid; place-items: center; min-height: 110px; padding: 9px; border: 1px dashed #9cb8a9; border-radius: 8px; background: #f5faf6; font-size: 13px; line-height: 1.35; }
.drop-zone.dragging { background: #dfefe3; border-color: #286a4d; }
.import-icon { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 6px; background: #e0eee5; color: var(--forest); font-size: 17px; font-weight: 750; }
.small, .empty { color: var(--muted); font-size: 11px; }
.text-button { padding: 4px; min-height: 26px; border: 0; background: none; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 700; }
.sample { width: 100%; min-height: 33px; font-size: 12px; }
.file-list { margin: 0; padding: 0; display: grid; gap: 5px; list-style: none; max-height: 165px; overflow: auto; }
.file-list:empty { display: none; }
.file-list li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; padding: 3px; }
.file-list li.active { background: #edf5ef; border-color: #94b5a3; }
.file-select { text-align: left; border: 0; background: none; color: var(--ink); padding: 4px; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.remove { align-self: center; min-width: 25px; min-height: 26px; padding: 2px; font-size: 15px; }
.naming { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
label { display: block; color: #35544b; font-size: 11px; font-weight: 700; }
select, input:not([type="file"]) { width: 100%; min-height: 33px; margin-top: 3px; padding: 4px 7px; border: 1px solid #bbcec2; border-radius: 5px; background: #fafcf9; color: var(--ink); font-size: 12px; }
.template-label { margin-top: 7px; }
#name-hint { margin-top: 3px; }
.plan { color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 9px; }
.preview { min-width: 0; display: flex; flex-direction: column; color: #edf7ef; background: var(--stage); }
.preview :focus-visible { outline-color: #a3f1cb; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 45px; padding: 6px 13px; background: #263d37; border-bottom: 1px solid #52655d; }
.switch { display: inline-flex; align-items: center; border: 1px solid #688075; border-radius: 7px; padding: 2px; }
.switch button { border: 0; padding: 5px 8px; min-height: 25px; border-radius: 4px; background: transparent; color: #e0ece5; font-size: 11px; font-weight: 650; }
.switch button[aria-pressed="true"] { color: #193a30; background: #d8e9df; }
.photo-surface { min-height: 352px; flex: 1; padding: 16px; display: grid; place-items: center; background: radial-gradient(circle, #bed8c830 1px, transparent 1px) 0 0/16px 16px; }
.photo-surface img { display: block; width: 100%; height: 100%; max-height: 332px; object-fit: contain; border-radius: 3px; }
.photo-surface p { font-size: 13px; text-align: center; }
.preview-detail { display: flex; justify-content: space-between; padding: 6px 13px; gap: 8px; color: #deeee6; font-size: 11px; background: #263d37; }
.preview-detail span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-detail span:last-child { white-space: nowrap; }
.process-bar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 8px 13px 11px; background: #263d37; border-top: 1px solid #52655d; }
.process-bar label { color: #e6f1e9; }
.process-bar select { max-width: 205px; }
.process-bar .primary { min-height: 33px; background: #d8ecdb; color: #12392b; }
.process-bar .primary:hover:enabled { background: #effaf0; }
.result { padding: 8px 9px; border: 1px solid #ead6ce; border-radius: 6px; font-size: 12px; font-weight: 700; color: #773b25; background: #fcf3ee; }
.result[data-clean] { color: #245944; border-color: #c1dac8; background: #eaf5ec; }
.fields { min-height: 38px; max-height: 220px; overflow: auto; padding-right: 2px; }
.field { padding: 6px 0; border-bottom: 1px solid #e3ece5; }
.field dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.field dd { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.field[data-kind="location"] dd, .field[data-kind="device"] dd { color: var(--red); }
.field[data-kind="location"] dd, .field[data-kind="time"] dd { font-family: var(--mono); }
.map-link { color: var(--forest); font-size: 11px; font-weight: 700; }
.block-detail { color: var(--muted); font-size: 11px; }
.block-detail ul { max-height: 75px; overflow: auto; margin: 4px 0; padding-inline-start: 17px; }
.downloads { margin-top: auto; display: grid; gap: 6px; }
.downloads .button { min-height: 32px; font-size: 11px; }
#zip-tier { color: #375d48; font-size: 10px; background: #e4efe6; border-radius: 4px; padding: 2px 4px; }
.status { min-height: 27px; color: var(--muted); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.status[data-error], .error { color: #882f35; }
.comparison, .pricing, .scene-content { padding-block: 31px 38px; }
.comparison h2, .scenes h2, .pricing h2, .scene-content h2 { font: 400 clamp(29px, 3.5vw, 48px)/1.12 var(--serif); letter-spacing: -.05em; }
.comparison p, .pricing > div:first-child p, .scene-content p { margin-top: 6px; color: var(--muted); max-width: 72ch; }
.comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 13px; background: white; }
.comparison thead { background: #e2ece4; }
.comparison :is(th, td) { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comparison tr :first-child { width: 20%; }
.scenes { padding-block: 30px; background: #e2ede5; }
.scenes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.scenes-grid a { display: grid; gap: 5px; align-content: start; padding: 15px; border: 1px solid #bfcec4; border-radius: 8px; background: white; text-decoration: none; }
.scenes-grid a:hover strong { text-decoration: underline; }
.scenes-grid span { color: var(--muted); font-size: 13px; }
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 335px); gap: 20px; align-items: center; }
.price-card { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.price-card p strong { font: 400 40px/1.2 var(--serif); }
.price-card ul { padding-inline-start: 18px; font-size: 14px; }
.price-card .button { width: 100%; }
.site-footer { border-top: 1px solid var(--line); background: #f9fbf7; }
.footer-frame { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 15px; }
.footer-frame > a:last-child { font-size: 12px; color: var(--muted); }
dialog { color: var(--ink); padding: 20px; border: 1px solid var(--line); border-radius: 10px; width: min(440px, calc(100% - 25px)); }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: #0e251db8; overflow: hidden; overscroll-behavior: contain; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 9px; margin-bottom: 8px; }
.dialog-heading h2 { font: 400 29px/1.15 var(--serif); }
.close { min-width: 32px; min-height: 31px; font-size: 18px; padding: 0; }
.checkout, #checkout-note, #license-form { margin-top: 9px; }
#license-form > button { margin-top: 4px; }
#license-error { min-height: 18px; }
#clean-free { margin-top: 6px; }
.scene-intro { padding: 39px 0 28px; }
.scene-intro .back { color: var(--forest); font-weight: 700; font-size: 13px; }
.scene-intro h1 { font: 400 clamp(38px, 6vw, 69px)/1.04 var(--serif); max-width: 20ch; letter-spacing: -.062em; margin-top: 11px; text-wrap: balance; }
.scene-intro p { color: var(--muted); max-width: 64ch; margin: 10px 0 15px; }
.scene-content { border-top: 1px solid var(--line); padding-block: 23px; }
.scene-content ol { max-width: 80ch; padding-inline-start: 23px; }
.scene-content li { padding: 5px 0; }
.scene-content details { padding: 8px 0; border-bottom: 1px solid var(--line); }
.scene-content summary { font-weight: 700; }
@media (max-width: 1120px) {
  .frame { width: calc(100% - 40px); }
  .intro { flex-direction: column; align-items: start; gap: 6px; }
  .panel { padding: 11px; }
  .photo-surface { min-height: 310px; }
}
@media (max-width: 860px) {
  .workbench { grid-template-columns: minmax(190px, 1fr) minmax(0, 2.2fr); }
  .inspector { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .frame { width: calc(100% - 28px); }
  .nav-frame { grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; gap: 8px; }
  .nav-frame nav { display: none; }
  .brand { font-size: 21px; }
  .intro { padding-block: 20px 15px; }
  .intro h1 { font-size: clamp(36px, 10vw, 52px); }
  .intro h1 br { display: initial; }
  .intro div > p { font-size: 14px; margin-top: 7px; }
  .privacy-badge { font-size: 10px; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .source { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .source > :is(.panel-title, .empty, .file-list, .naming, .plan) { grid-column: 1 / -1; }
  .drop-zone { min-height: 77px; }
  .import-icon { display: none; }
  .sample { align-self: center; }
  .naming { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; padding-top: 6px; align-items: end; }
  .naming > label:first-child { grid-row: 1; }
  .naming select { grid-column: 1; grid-row: 2; }
  .template-label { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  #name-hint { grid-column: 2; }
  .photo-surface { min-height: 0; aspect-ratio: 1.45; padding: 9px; }
  .photo-surface img { max-height: 232px; }
  .preview-heading, .preview-detail, .process-bar { padding-inline: 9px; }
  .comparison, .pricing, .scenes { padding-block: 22px; }
  .comparison :is(th, td) { padding: 5px; font-size: 11px; }
  .comparison tr :first-child { width: 23%; }
  .pricing { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scenes-grid { grid-template-columns: minmax(0, 1fr); }
}
