:root { --bg: #F3F6F5; --ink: #12211D; --muted: #4C5C57; --line: #D6DEDB; --field: #A9B7B2; --accent: #0B5F52; --soft: #E4F0ED; --bad: #8F2F18; --card: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root { --bg: #0F1917; --ink: #E8F0ED; --muted: #A5B4AF; --line: #2B3A36; --field: #51625D; --accent: #2E9C89; --soft: #1B2F2B; --bad: #EE9A84; --card: #182522; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
#root { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
h1 { margin: 0; font-size: 24px; font-weight: 600; } h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; } p { margin: 0; }
code { font: 13px/1.45 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 14px; } .small { font-size: 13px; } .empty { color: var(--muted); text-align: center; margin: 40px 16px; }
.center { padding: 40px 20px 24px; display: flex; flex-direction: column; gap: 18px; } .center form { display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack0 { display: flex; flex-direction: column; gap: 2px; } .page { padding: 8px 16px 24px; }
.home { display: flex; flex-direction: column; min-height: 100dvh; }
.top { padding: 24px 20px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .top p { margin-top: 4px; }
.sub { display: flex; align-items: center; gap: 4px; padding: 12px 8px 4px; } .sub h1 { font-size: 20px; overflow-wrap: anywhere; }
.back { width: 44px; height: 44px; flex-shrink: 0; background: none; border: 0; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; min-height: 44px; cursor: pointer; text-decoration: underline; }
.list { flex: 1; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.card { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; overflow-wrap: anywhere; }
.pending { border-style: dashed; } .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .tag { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
.bar { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--card); border-top: 1px solid var(--line); padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
.nav { min-height: 52px; font: inherit; font-size: 13px; font-weight: 500; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.nav.on { background: var(--soft); color: var(--accent); } .nav.new { background: #0B5F52; color: #FFF; font-weight: 600; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=file]), textarea { min-height: 44px; font: inherit; font-weight: 400; padding: 10px 12px; background: var(--card); border: 1px solid var(--field); border-radius: 10px; color: var(--ink); width: 100%; }
textarea { resize: vertical; } input:focus-visible, textarea:focus-visible, button:focus-visible, .filelabel:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.codeinput { min-height: 56px; font: 26px ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .4em; text-align: center; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } legend { padding: 0 0 6px; font-size: 14px; font-weight: 500; }
.grid2, .grid3 { display: grid; gap: 8px; } .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pill { min-height: 44px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--card); border: 1px solid var(--field); border-radius: 10px; cursor: pointer; padding: 0 4px; }
.pill.on { background: #0B5F52; color: #FFF; border-color: #0B5F52; }
.check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 400; } .check input { width: 20px; height: 20px; accent-color: #0B5F52; }
.primary, .soft, .danger, .dashed, .filelabel { min-height: 50px; padding: 12px; font: inherit; font-weight: 600; border-radius: 12px; cursor: pointer; text-align: center; justify-content: center; align-items: center; overflow-wrap: anywhere; }
.primary { color: #FFF; background: #0B5F52; border: 0; } .primary:disabled { opacity: .65; cursor: wait; }
.soft, .filelabel { color: var(--accent); background: var(--soft); border: 0; font-weight: 500; }
.danger { color: var(--bad); background: none; border: 1px solid var(--bad); font-weight: 500; } .dashed { color: var(--accent); background: none; border: 1px dashed var(--accent); font-weight: 500; }
.hide { position: absolute; width: 1px; height: 1px; opacity: 0; }
.box, .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.stat { display: flex; flex-direction: column; } .stat b { font-size: 24px; font-weight: 600; }
.logrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); } .logrow:last-child { border-bottom: 0; }
.ok { color: var(--accent); font-size: 13px; font-weight: 500; } .bad, .error { color: var(--bad); font-size: 14px; font-weight: 500; }
