:root { color-scheme: light; --pine:#005639; --ink:#173c2e; --muted:#6d7b72; --paper:#f4f5ef; --line:#dce2d9; --soft:#e9eee5; --lime:#dcf18a; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible { outline:3px solid #81a434; outline-offset:4px; }
button { -webkit-tap-highlight-color:transparent; }
.app-shell { max-width:1500px; padding:0 44px 30px; margin:0 auto; }
.header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:27px 0; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:13px; font-size:15px; font-weight:800; letter-spacing:.045em; }
.brand-symbol { width:46px; height:46px; background:var(--pine); border-radius:50%; overflow:hidden; display:flex; }
.brand-symbol svg { width:100%; height:100%; }
.brand-subtitle { display:block; font-size:10px; margin-top:6px; font-weight:500; letter-spacing:.22em; color:var(--muted); }
.header-note { font-size:13px; color:var(--muted); }
.workspace { display:grid; grid-template-columns:280px minmax(0,1fr); gap:44px; padding-top:36px; align-items:start; }
.intro { margin-bottom:30px; }
.eyebrow { font-size:10px; font-weight:650; letter-spacing:.12em; color:var(--muted); }
h1 { font-size:35px; line-height:1.08; letter-spacing:-.045em; margin:10px 0 0; font-weight:650; }
h2 { font-size:14px; margin:0; font-weight:600; }
.control-section { padding:0 0 25px; margin-bottom:25px; border-bottom:1px solid var(--line); }
.section-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px; }
.step { font-size:10px; color:#91a092; font-variant-numeric:tabular-nums; }
.font-options { display:grid; gap:8px; }
.font-choice { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 55px; align-items:center; gap:10px; width:100%; padding:15px 13px; border:1px solid var(--line); border-radius:10px; background:transparent; color:var(--ink); text-align:left; transition:background .15s,border-color .15s; }
.font-choice:hover { background:#e9eee2; }
.font-choice[aria-pressed="true"] { background:var(--pine); color:white; border-color:var(--pine); }
.font-label { display:block; font-size:13px; font-weight:650; }
.font-detail { display:block; margin-top:5px; font-size:11px; color:var(--muted); line-height:1.4; }
.font-choice[aria-pressed="true"] .font-detail { color:#bfd6c7; }
.font-sample svg { display:block; width:55px; max-height:38px; height:auto; }
.angle-value-row { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:13px; }
.angle-input-wrap { display:flex; align-items:center; font-size:31px; font-weight:550; letter-spacing:-.045em; }
#angle-number { width:85px; padding:0; background:transparent; color:var(--ink); border:none; border-radius:4px; font-size:31px; font-weight:550; letter-spacing:-.045em; font-variant-numeric:tabular-nums; appearance:textfield; }
#angle-number::-webkit-inner-spin-button,#angle-number::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.text-button { border:0; background:transparent; color:var(--muted); font-size:12px; padding:10px 0 10px 8px; text-decoration:underline; text-decoration-color:#bdc8be; text-underline-offset:4px; }
#angle-range { display:block; width:100%; margin:5px 0 10px; accent-color:var(--pine); cursor:ew-resize; min-height:24px; }
.range-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); font-variant-numeric:tabular-nums; }
.toggle-row { display:flex; gap:12px; align-items:center; position:relative; font-size:13px; font-weight:550; cursor:pointer; }
.toggle-row > span:first-child { flex:1; }
.toggle-row input { position:absolute; right:0; width:40px; height:25px; opacity:0; cursor:pointer; z-index:2; }
.toggle-track { width:40px; height:24px; border-radius:15px; background:#cdd6ca; position:relative; transition:background .15s; }
.toggle-track::after { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:white; border-radius:50%; box-shadow:0 1px 3px #0002; transition:transform .15s; }
.toggle-row input:checked + .toggle-track { background:var(--pine); }
.toggle-row input:checked + .toggle-track::after { transform:translateX(16px); }
.toggle-row input:focus-visible + .toggle-track { outline:3px solid #81a434; outline-offset:4px; }
.helper,.controls-footnote { color:var(--muted); font-size:11px; line-height:1.6; margin:11px 0 0; }
.controls-footnote { margin-top:-7px; }
.color-presets { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; margin-bottom:14px; }
.color-swatch { aspect-ratio:1; min-width:0; border:2px solid transparent; border-radius:50%; padding:0; position:relative; box-shadow:inset 0 0 0 1px #0001; }
.color-swatch[aria-pressed="true"]::after { content:""; position:absolute; inset:-5px; border:1px solid var(--ink); border-radius:50%; }
.color-picker-row { display:flex; align-items:center; gap:8px; font-size:12px; margin:12px 0; }
.color-picker-row > span:first-child { flex:1; }
.hex-value { font-size:10px; color:var(--muted); font-variant-numeric:tabular-nums; }
input[type="color"] { width:31px; height:31px; padding:3px; border:1px solid var(--line); border-radius:6px; background:white; cursor:pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding:0; }
input[type="color"]::-webkit-color-swatch { border:0; border-radius:3px; }
.background-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:3px; gap:3px; border:1px solid var(--line); border-radius:7px; margin:16px 0; }
.background-modes button { border:0; border-radius:4px; background:transparent; color:var(--muted); font-size:11px; padding:8px 2px; }
.background-modes button[aria-pressed="true"] { background:var(--pine); color:white; }
.select-row { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; margin:13px 0; }
.select-row select { max-width:155px; background:white; border:1px solid var(--line); border-radius:6px; padding:7px 6px; color:var(--ink); font-size:11px; }
[hidden] { display:none !important; }
.negative-row { margin-top:18px; }
.previews { display:grid; gap:20px; min-width:0; }
.mobile-preview-switch { display:none; }
@media(min-width:761px) { .previews { position:sticky; top:22px; } }
.preview-card { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:13px; }
.preview-heading { padding:20px 23px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.preview-heading .eyebrow { font-size:9px; }
.preview-heading h2 { margin-top:6px; font-size:14px; }
.download-button { display:inline-flex; gap:8px; align-items:center; white-space:nowrap; border:1px solid var(--line); border-radius:7px; padding:9px 12px; background:transparent; color:var(--ink); font-size:11px; font-weight:600; }
.download-button:hover { background:var(--soft); border-color:#b7c8b8; }
.download-button span { font-size:17px; line-height:1; font-weight:400; }
.preview-stage { display:flex; align-items:center; justify-content:center; background:var(--pine); padding:26px; }
.preview-stage svg { display:block; max-width:100%; height:auto; }
.full-stage { min-height:245px; }
.full-stage svg { width:100%; }
.pf-stage { min-height:246px; padding:19px; }
.pf-stage svg { width:390px; }
.preview-stage.is-transparent { background-color:#405b4e; background-image:linear-gradient(45deg,#4c665933 25%,transparent 25%),linear-gradient(-45deg,#4c665933 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#4c665933 75%),linear-gradient(-45deg,transparent 75%,#4c665933 75%); background-size:22px 22px; background-position:0 0,0 11px,11px -11px,-11px 0; }
.preview-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; color:var(--muted); font-size:11px; }
#current-style { color:var(--ink); font-weight:550; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:white; border-radius:8px; padding:12px 18px; font-size:13px; box-shadow:0 5px 25px #0002; z-index:10; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1450px) { .workspace { grid-template-columns:290px minmax(0,1fr); gap:64px; } .full-stage { min-height:280px; } }
@media(max-width:1000px) { .app-shell { padding:0 25px 24px; } .workspace { grid-template-columns:245px minmax(0,1fr); gap:25px; } .preview-stage { padding:15px; } .full-stage { min-height:225px; } .preview-heading { padding:17px; } }
@media(max-width:760px) { .app-shell { padding:0 20px 24px; } .header { padding:22px 0; } .header-note { display:none; } .workspace { display:flex; flex-direction:column; padding-top:24px; gap:24px; } .controls,.previews { width:100%; } .intro { display:none; } .controls { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px 22px; } .control-section { padding-bottom:0; margin:0; border-bottom:0; } .controls .control-section:first-of-type { grid-column:1/-1; } .font-options { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; } .font-choice { display:flex; flex-direction:column-reverse; align-items:flex-start; padding:12px 10px; gap:9px; min-height:101px; } .font-detail { display:none; } .font-label { font-size:12px; } .font-sample svg { width:50px; height:30px; } .angle-section { grid-column:1/-1; } .angle-value-row { margin-bottom:1px; } .angle-section .section-heading { margin-bottom:8px; } .export-section { grid-column:1/-1; border-top:1px solid var(--line); padding-top:17px; } .export-section .helper,.controls-footnote { display:none; } .full-stage { min-height:185px; padding:12px 4px; } .pf-stage { min-height:230px; } .pf-stage svg { max-width:350px; } .preview-heading { padding:16px; } .preview-footer span:last-child { display:none; } }
@media(max-width:390px) { .app-shell { padding:0 12px 18px; } .font-label { font-size:11px; } .preview-heading { padding:13px 12px; gap:8px; } .preview-heading h2 { font-size:12px; } .download-button { padding:8px; font-size:10px; gap:4px; } .brand { font-size:14px; } .full-stage { min-height:155px; } }
@media(max-width:760px) { .color-section { grid-column:1/-1; border-top:1px solid var(--line); padding-top:17px; } .color-presets { max-width:420px; gap:12px; } .color-swatch { min-height:28px; } .color-picker-row { max-width:420px; } .background-modes { max-width:420px; } .select-row { max-width:420px; } .select-row select { flex:1; max-width:220px; } .negative-row { margin-top:18px; } }
@media(max-width:760px) {
  html { scroll-padding-top:285px; }
  .previews { order:-1; position:sticky; top:0; z-index:3; padding:10px 0; gap:10px; background:var(--paper); }
  .mobile-preview-switch { display:flex; gap:5px; }
  .mobile-preview-switch button { border:1px solid var(--line); border-radius:6px; background:transparent; color:var(--ink); font-size:11px; padding:7px 10px; }
  .mobile-preview-switch button[aria-pressed="true"] { background:var(--pine); border-color:var(--pine); color:white; }
  .previews[data-mobile-view="full"] .pf-card,.previews[data-mobile-view="pf"] .full-card { display:none; }
  .previews .preview-footer { display:none; }
  .full-stage { min-height:125px; }
  .pf-stage { min-height:145px; padding:8px; }
  .pf-stage svg { width:250px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; } }
