:root{--accent: #166534;--accent-ink: #14532d;--bg: #f6f7f4;--card: #ffffff;--ink: #1c2420;--muted: #6b7280;--line: #e3e6e0;--radius: 16px;--ok: #166534;--err: #b3261e;--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .05)}*{box-sizing:border-box}html,body{overscroll-behavior:none}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}input,textarea,select,[contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}h1,h2,h3{font-family:Georgia,Times New Roman,serif;line-height:1.2;margin:0}a{color:var(--accent)}button{font:inherit}.app{min-height:100vh}.appbar{display:flex;align-items:center;gap:.6rem;min-height:60px;padding:calc(env(safe-area-inset-top) + .55rem) .9rem .55rem;background:var(--bg)}.appbar-logo{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--accent);color:#fff;font-family:Georgia,serif;font-weight:700;font-size:1.25rem}.appbar-title{font-family:Georgia,serif;font-weight:700;font-size:1.15rem;letter-spacing:.02em}.appbar-spacer{flex:1}.main-nav{display:flex;flex-wrap:wrap;gap:.4rem;padding:.25rem .9rem .75rem;border-bottom:1px solid var(--line)}.nav-link{padding:.5rem .8rem;border-radius:999px;color:var(--muted);text-decoration:none;font-size:.9rem;font-weight:600;border:1px solid transparent}.nav-link-on{color:var(--accent-ink);background:#e3efe4;border-color:#bcd8bf}.content{padding:1rem .9rem 3rem;max-width:720px;margin:0 auto}.page{display:flex;flex-direction:column;gap:1rem}.page-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.page-title{font-size:1.6rem}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.1rem;box-shadow:var(--shadow)}.stack{display:flex;flex-direction:column;gap:.85rem}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:.85rem}.hero-card{display:flex;flex-direction:column;gap:.25rem}.hero-amount{font-family:Georgia,serif;font-size:2.2rem;font-weight:700;color:var(--accent-ink);line-height:1.15}.big{font-size:1.5rem;font-weight:700;color:var(--accent-ink)}.stat-card{display:flex;flex-direction:column;gap:.25rem}.stat-card strong{font-size:1.3rem}.kv{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.35rem 0}.muted{color:var(--muted)}.small{font-size:.85rem}.bad{color:var(--err);font-weight:600}.btn{min-height:48px;padding:.6rem 1.1rem;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-weight:700;cursor:pointer}.btn:active{transform:scale(.99)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff;width:100%}.btn-ghost{color:var(--accent-ink);border-color:#bcd8bf;background:#f0f6f0}.link{background:none;border:none;padding:.4rem .2rem;color:var(--accent);font-weight:700;cursor:pointer}.link.danger{color:var(--err)}.chips{display:flex;flex-wrap:wrap;gap:.4rem}.chip{min-height:40px;padding:.45rem .9rem;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--muted);font-weight:600;cursor:pointer}.chip-on{color:#fff;background:var(--accent);border-color:var(--accent)}.tag{display:inline-block;padding:.15rem .55rem;border-radius:999px;background:#eef2ee;color:var(--accent-ink);font-size:.78rem;font-weight:700}.tag-ok{background:#e3efe4;color:var(--accent-ink)}.field{display:flex;flex-direction:column;gap:.3rem}.field-label{font-weight:700;font-size:.92rem}.field-hint{color:var(--muted);font-size:.85rem}input{font:inherit;min-height:48px;padding:.55rem .75rem;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);width:100%}input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.list-row{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.6rem 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:none}.card-list{gap:.85rem;background:none;border:none;box-shadow:none;padding:0}.card-list .card{display:flex;flex-direction:column;gap:.5rem}.row-end{display:flex;align-items:center;gap:.75rem}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#00000073;display:flex;align-items:flex-end;justify-content:center;padding:1rem}.modal{width:min(94vw,480px);max-height:88vh;overflow-y:auto;background:var(--card);border-radius:20px;padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.9rem}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.modal-head h2{font-size:1.35rem}.modal-x{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--bg);font-size:1.4rem;line-height:1;cursor:pointer}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem 1rem}.login-card{width:min(94vw,420px);text-align:center}.login-mark{width:64px;height:64px;margin:0 auto .75rem;border-radius:18px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:2rem;font-weight:700}.login-title{font-size:1.7rem;letter-spacing:.03em}.login-sub{margin:.25rem 0 1.25rem}.login-card form{text-align:left}@media (min-width: 700px){.overlay{align-items:center}}
