:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: #242135; background: #f6f3ed; --ink: #38294b; --muted: #665f70; --line: #ded8e5; --paper: #fff; --accent: #dce9b9; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
[hidden] { display: none !important; }
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); background: #eee8f2; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 720; letter-spacing: -.5px; }
.brand img { border-radius: 12px; }
main { max-width: 760px; margin: auto; padding: 18px max(18px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; margin: 0 -7px 12px; }
nav button:last-child { margin-left: auto; }
.quiet { background: transparent; color: var(--ink); border: 0; border-radius: 10px; padding: 8px; min-height: 44px; font-size: .85rem; font-weight: 650; }
.quiet:active { background: #ebe4ef; }
h1 { margin: 4px 0 18px; color: var(--ink); font-size: clamp(1.7rem, 6vw, 2.45rem); letter-spacing: -.04em; line-height: 1.12; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.login { max-width: 470px; margin: 32px auto; }
form { display: grid; align-items: start; gap: 12px; }
label { font-size: .88rem; font-weight: 650; }
label small { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; color: #241e2e; background: #fff; border: 1px solid #c9c0d0; border-radius: 11px; padding: 12px; font-size: 16px; }
textarea { resize: vertical; min-height: 110px; }
.primary { min-height: 48px; padding: 12px 16px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 11px; font-weight: 640; }
.blocks { display: grid; gap: 12px; }
.block, .form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.copy { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.copy a { overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.rows { display: grid; gap: 8px; }
.copy+.rows, h2+.rows { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.action { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 7px; background: #f8f6fa; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: .9rem; font-weight: 560; line-height: 1.3; text-decoration: none; text-align: left; overflow-wrap: anywhere; }
.action span { min-width: 0; }
.action::after { content: '›'; flex: none; color: #756985; }
.action:active { background: #efe8f4; }
.home .blocks { gap: 0; }
.home .block { padding: 0; border: 0; background: transparent; }
.home .rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.home .row { display: contents; }
.home .action { background: #fff; min-height: 68px; }
.form-panel { margin-top: 12px; }
.form .block { border: 0; background: transparent; padding: 0; color: var(--muted); }
#preview { border-radius: 12px; padding: 10px 12px; background: #ebe4f0; margin-bottom: 12px; }
#preview strong { display: block; font-size: .86rem; }
.error { background: #f7e4e6; border: 1px solid #e8bec5; color: #721f34; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.result .block { border-color: #bac997; background: #f1f6e5; }
.file-note { font-size: .8rem; color: var(--muted); margin: 0; }
button:disabled, input:disabled, textarea:disabled { opacity: .58; }
:focus-visible { outline: 2px solid #69548a; outline-offset: 3px; }
@media (min-width: 600px) { .home .rows { grid-template-columns: repeat(3,minmax(0,1fr)); } }

:root { color-scheme:dark; color:#f1eef2; background:#101013; --ink:#f4eef3; --muted:#c0b9c3; --line:#40373f; --paper:#19181c; --accent:#d57c8d; }
.top { background:#151418; }
.brand { letter-spacing:.12em; text-transform:uppercase; font-weight:720; }
.quiet:active { background:#2d242b; }
input,textarea { color:#f7f0f3; background:#151418; border-color:#60515c; }
.action,.home .action { color:#f1e7ec; background:#211e23; border-color:#443740; }
.action::after { color:#e48a99; }
.action:active { background:#39232c; }
.primary { color:#1b1216; background:#efd5df; border-color:#efd5df; }
#preview { background:#392430; }
.error { color:#ffdbe1; background:#44252d; border-color:#864453; }
.result .block { color:#eee8ed; background:#28252a; border-color:#51404c; }
:focus-visible { outline-color:#e48a99; }
