:root {
  --indigo: #4338ca; --violet: #7c3aed; --ink: #1e1b4b; --text: #312e81; --muted: #5b5f86;
  --saffron: #f59e0b; --saffron-soft: #fef3c7; --bg: #fafaff; --line: #e0e7ff; --card: #fff;
  --ok: #15803d; --ok-soft: #dcfce7; --bad: #b91c1c; --bad-soft: #fee2e2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Source Serif 4", Georgia, serif; font-size: 17px; line-height: 1.6; min-height: 100vh; }
h1, h2, h3, .btn, label, .eyebrow, .tag, .wm, .pill { font-family: "Plus Jakarta Sans", Arial, sans-serif; }
h1 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
h2 { color: var(--ink); font-size: 1.25rem; margin: 0 0 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.abar { display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(250,250,255,.95); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm small { font-size: .55rem; letter-spacing: .26em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.wm b { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.abar .who { margin-left: auto; font-family: "Plus Jakarta Sans", Arial, sans-serif; font-size: .9rem; color: var(--muted); }
.wrap { max-width: 980px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 60px; }
.eyebrow { color: var(--violet); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 10px 22px -10px rgba(67,56,202,.6); }
.btn-ghost { background: #fff; color: var(--indigo); border: 1.5px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 12px 30px -22px rgba(30,27,75,.35); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
.err { color: var(--bad); font-family: "Plus Jakarta Sans", Arial, sans-serif; font-weight: 600; min-height: 1.4em; }
.muted { color: var(--muted); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #eef2ff; color: var(--indigo); }

/* Sign-in */
.accounts { display: grid; gap: 10px; margin-top: 14px; }
.acct { display: flex; justify-content: space-between; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.acct:hover { border-color: var(--violet); }
.acct small { color: var(--muted); font-family: "Plus Jakarta Sans", Arial, sans-serif; }
.devnote { font-size: .85rem; color: var(--muted); background: var(--saffron-soft); border-radius: 10px; padding: 8px 12px; }

/* Welcome */
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field select { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-family: inherit; font-weight: 400; }
.choice input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--violet); }
.langs { display: flex; gap: 10px; flex-wrap: wrap; }
.langs label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; cursor: pointer; background: #fff; font-weight: 700; color: var(--ink); }
.langs input:checked + span { color: var(--violet); }
.notice { max-height: 220px; overflow: auto; font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }

/* Today */
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.stats { display: flex; gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; font-family: "Plus Jakarta Sans", Arial, sans-serif; }
.stat b { display: block; font-size: 1.3rem; color: var(--indigo); }
.stat span { font-size: .78rem; color: var(--muted); }
.lcard { display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--c, var(--violet)); }
.lcard .tag { font-size: .78rem; font-weight: 800; color: var(--c, var(--violet)); text-transform: uppercase; letter-spacing: .06em; }
.lcard h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.lcard .state { font-size: .9rem; color: var(--muted); }
.lcard .btn { align-self: flex-start; margin-top: 6px; }
.lcard.m-code { --c: #6d28d9; } .lcard.m-apt { --c: #b45309; } .lcard.m-cse { --c: #1d4ed8; } .lcard.m-ess { --c: #be123c; } .lcard.m-comp { --c: #047857; } .lcard.m-test { --c: #92400e; }
.done-tick { color: var(--ok); font-weight: 700; font-family: "Plus Jakarta Sans", Arial, sans-serif; }
.daybox { margin-top: 18px; }
.abar .btn { white-space: nowrap; padding: 8px 16px; }
.abar .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.np { margin: 0; }
.np dt { font-family: "Plus Jakarta Sans", Arial, sans-serif; font-weight: 800; color: var(--ink); font-size: .88rem; margin-top: 10px; }
.np dt:first-child { margin-top: 0; }
.np dd { margin: 2px 0 0; }
.notice { max-height: none; }
