* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #342d24; --muted: #817665; --paper: #f7f3e9; --card: #fffdf8; --line: #e8dfd0; --accent: #806044; --accent-dark: #60472f; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(100% - 36px, 440px); min-height: 100vh; margin: 0 auto; padding: max(42px, env(safe-area-inset-top)) 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jar { width: 150px; margin: 8px auto 10px; } .jar svg { display: block; width: 100%; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0; }
h1 { font-size: clamp(29px, 8vw, 38px); line-height: 1.1; letter-spacing: -.04em; margin: 4px 0 24px; }
h2 { font-size: 22px; margin: 8px 0; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.55; }
.panel { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 8px 28px rgba(65, 48, 29, .045); }
.panel p { margin: 8px 0 20px; }
.icon { font-size: 30px; margin-bottom: 8px; }
button { border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.primary { width: 100%; background: var(--accent); color: white; } .primary:hover { background: var(--accent-dark); }
.note { font-size: 12px; margin: 14px 0 0 !important; }
.done { width: 100%; padding: 28px 16px; } .done p { max-width: 290px; margin: 8px auto; }
.check { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px; background: #e4efdf; color: #477044; font-size: 30px; font-weight: 700; }
.error { color: #a33e32; font-size: 13px; margin: 14px 0; }
footer { margin-top: auto; padding-top: 42px; color: #9b907f; font-size: 12px; }
a { color: var(--accent-dark); text-decoration: none; } [hidden] { display: none !important; }
.admin-shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: 24px 0 40px; }
.admin-header, .admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--ink); font-weight: 800; }
.admin-tag { border-radius: 99px; background: #eee6d9; color: #73583e; padding: 6px 10px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.admin-panel { margin-top: 54px; }
.admin-panel h1, .admin-title-row h1 { margin-bottom: 10px; font-size: 30px; }
form { display: grid; gap: 10px; } label { font-size: 13px; font-weight: 700; margin-top: 8px; }
input, textarea { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 13px; font: inherit; outline-color: var(--accent); }
textarea { resize: vertical; }
.admin-title-row { margin: 42px 0 20px; } .admin-title-row h1 { margin: 0; }
.secondary { background: #eee6d9; color: var(--ink); } .small { padding: 10px 13px; font-size: 12px; }
.stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding: 16px 20px; }
.stat-number { font-size: 28px; font-weight: 800; } .stat-label, .muted { color: var(--muted); font-size: 13px; }
.composer { gap: 10px; }
.preview { border: 1px solid var(--line); background: #f8f5ee; border-radius: 12px; padding: 14px; margin: 8px 0; }
.preview-label { display: block; font-size: 10px; color: var(--muted); letter-spacing: .12em; margin-bottom: 8px; font-weight: 800; }
.preview p { margin: 5px 0 0; font-size: 13px; } .result { font-size: 13px; margin: 0; }
.history-panel { margin-top: 18px; } .history-panel h2 { font-size: 18px; }
.history-item { padding: 12px 0; border-top: 1px solid var(--line); }
.history-item strong { display: block; } .history-item p { margin: 4px 0; font-size: 13px; } .history-item small { color: var(--muted); }
