.frame { max-width: 720px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 0 10px; min-height: 68px; }
.topbar a { text-decoration: none; color: inherit; }
.topbar__tools { display: flex; gap: 8px; }
.topbar__back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; font-weight: 700; color: var(--brand) !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font-size: 1.45rem; letter-spacing: -.01em; } .brand__name b { font-weight: 800; color: var(--ink); } .brand__name { color: var(--brand); font-weight: 600; }
.logo { border-radius: 10px; display: block; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; cursor: pointer; font: inherit; text-decoration: none; }
.icon-btn.is-off { visibility: hidden; }
.aa { font-weight: 800; font-size: 1.05rem; }
.demo-banner { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 700; font-size: .82rem; margin: 0 0 6px; text-align: center; }
.content { padding-top: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.notice { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 12px 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 24px; border-radius: 16px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.btn-big { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }

.big-action { display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 92px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.big-action:hover { border-color: var(--brand); }
.big-action__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); flex: none; }
.big-action__body { display: grid; flex: 1; min-width: 0; } .big-action__body strong { font-size: 1.15rem; } .big-action__body span { color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.big-action > .icon:last-child { color: var(--ink-2); }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.pill-warn { background: var(--warn-soft); color: var(--warn); } .pill-info { background: var(--brand-soft); color: var(--brand); } .pill-ok { background: var(--ok-soft); color: var(--ok); }

.field { display: grid; gap: 6px; } .field__label { font-weight: 700; } .field__hint { color: var(--ink-2); font-size: .88rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 14px; min-height: var(--tap); padding: 0 16px; width: 100%; }
input:focus { border-color: var(--brand); }

.facts { display: grid; gap: 10px; margin: 8px 0 0; } .facts div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { color: var(--ink-2); } .facts dd { margin: 0; font-weight: 800; font-size: 1.15rem; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.login__card { width: min(440px, 100%); display: grid; gap: 14px; padding: 28px 22px; }
.login__brand { display: flex; justify-content: center; } .login__brand .brand__name { font-size: 2rem; } .login__brand .logo { width: 56px; height: 56px; }
.login .lead { text-align: center; margin: 0; } .login .small { text-align: center; margin: 0; }

.wizard { display: grid; gap: 18px; }
.wizard__month { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.1rem; }
.wizard__title { font-size: 1.8rem; margin: 0; }
.wizard__nav { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, transparent); }
.stepper__count { font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.stepper__dots { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.stepper__dots li { flex: 1; } .stepper__dots a { display: grid; place-items: center; height: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 800; color: var(--ink-2); }
.stepper__dots .is-done a { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.stepper__dots .is-current a { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; } .checklist li { display: flex; gap: 10px; align-items: flex-start; } .checklist .icon { color: var(--ok); margin-top: 2px; }

.overlay { position: fixed; inset: 0; background: rgb(10 18 24 / .6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dialog { background: var(--surface); border-radius: 22px; padding: 24px; width: min(460px, 100%); display: grid; gap: 10px; }
.dialog__actions { display: grid; gap: 10px; margin-top: 8px; }
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; z-index: 60; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 14px; font-weight: 700; max-width: 520px; box-shadow: var(--shadow); }
.toast-error { background: var(--danger); color: #fff; } .toast-warn { background: var(--warn); color: #fff; }
@media (min-width: 720px) { .frame { padding-bottom: 48px; } }
