/* Account pages (login, onboarding, dashboard) — matches the home page: paper cream, ink, teal. */
:root {
  --paper: #fbf4e6; --paper-2: #f3e8d2; --card: #fffdf8; --line: #eadfca;
  --ink: #23201c; --ink-2: #5d564c; --teal: #0f766e; --teal-2: #0b5a54; --teal-soft: #e3f2ef;
  --saffron: #f2b705; --coral: #e8590c; --red: #b42318; --red-soft: #fdecea; --ok: #2f7d4a;
}
body { background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); padding: .5rem 1rem; border-radius: 8px; z-index: 2000; color: var(--ink); }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }

.acc-nav { border-bottom: 1px solid var(--line); background: rgba(251, 244, 230, .92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.acc-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand .ic { width: 1.8rem; height: 1.8rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

main { flex: 1; }
.center { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter, 1rem); }
.panel { width: min(100%, 30rem); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 24px 50px -32px rgba(35, 32, 28, .45); position: relative; overflow: hidden; }
.panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--teal) 0 60%, var(--saffron) 60% 80%, var(--coral) 80%); }
.panel.wide { width: min(100%, 46rem); }
.panel h1 { font-size: var(--fs-xl, 1.7rem); margin: .2rem 0 .3rem; line-height: 1.35; }
.panel-ic { width: 3.4rem; height: 3.4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 3.1rem; padding: .5rem 1.2rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-teal { background: var(--teal); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #c9c2b5; }
.btn-google:hover { background: #f7f4ee; }
.btn-google svg { width: 1.3rem; height: 1.3rem; flex: none; }
.btn-sm { width: auto; min-height: 2.3rem; padding: .2rem 1rem; font-size: var(--fs-sm); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--ink-2); text-decoration: none; cursor: default; }

.divider { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0; color: var(--ink-2); font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; }
.field input { font: inherit; width: 100%; padding: .7rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); }
.code-input { text-align: center; font-size: 1.8rem !important; letter-spacing: .5em; font-weight: 700; padding-left: 1.4rem !important; }
.alert { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 600; }
.alert.ok { background: var(--teal-soft); color: var(--teal-2); }
.alert:empty { display: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; font-size: var(--fs-sm); }
.fine { font-size: .85rem; color: var(--ink-2); margin-top: 1.2rem; line-height: 1.7; }
[hidden] { display: none !important; }

/* onboarding */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .9rem; margin: 1rem 0; }
.choice { position: relative; display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 1.2rem 1rem; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(35, 32, 28, .5); }
.choice[aria-checked="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.choice .ic { width: 3.2rem; height: 3.2rem; }
.choice b { font-size: 1.15rem; }
.choice small { color: var(--ink-2); }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); gap: .5rem; margin: .7rem 0 1rem; }
.cls { padding: .6rem .3rem; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.cls small { display: block; font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.cls[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.cls[aria-checked="true"] small { color: #d6f1ec; }
.warn { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 12px; background: #fff6da; border: 1px solid #f3dc8a; font-size: var(--fs-sm); margin: .4rem 0 1rem; }
.warn .ic { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.step-title { font-weight: 800; margin: 1rem 0 .2rem; }

/* dashboard */
.dash { padding: clamp(1.4rem, 4vw, 2.6rem) 0 3rem; }
.hello { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.avatar { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello h1 { margin: 0; font-size: var(--fs-xl, 1.7rem); line-height: 1.3; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .7rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal-2); font-weight: 700; font-size: .85rem; }
.badge.alt { background: #fff1d6; color: #8a5a00; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; }
.tile h2 { font-size: var(--fs-lg, 1.25rem); margin: 0 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.tile h2 .ic { width: 1.8rem; height: 1.8rem; }
.tile.soon { border-style: dashed; background: transparent; }
.tile.soon p { color: var(--ink-2); }
.soon-tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 .55rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.cls-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cls-row select { font: inherit; padding: .45rem .8rem; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.spinner { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--teal); animation: spin .8s linear infinite; margin: 3rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .choice:hover { transform: none; } }
