/* Top navigation, Learning menu, home recommendations, analytics, themes, landing page. Load order matters: later files refine earlier ones (see docs/STRUCTURE.md). */
/* top-bar round icon toggles (sound effects, Zuno's voice) */
.tog { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid #c9cdf5; background: #eef0ff; color: #14142b; cursor: pointer; box-shadow: none; text-shadow: none; letter-spacing: 0; min-height: 0; }
.tog svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tog.on svg path:first-child { fill: currentColor; fill-opacity: .12; }
.tog.off { background: #f3f3f6; border-color: #dcdde8; color: #666b8a; }
.tog:hover { filter: brightness(.97); transform: translateY(-1px); } .tog:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* top-bar round icon toggles (sound effects, Zuno's voice) */
.tog { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid #c9cdf5; background: #eef0ff; color: #14142b; cursor: pointer; box-shadow: none; text-shadow: none; letter-spacing: 0; min-height: 0; }
.tog svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tog.on svg path:first-child { fill: currentColor; fill-opacity: .12; }
.tog.off { background: #f3f3f6; border-color: #dcdde8; color: #666b8a; }
.tog:hover { filter: brightness(.97); transform: translateY(-1px); } .tog:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Spanish conversations */
.dlg { display: grid; gap: 8px; margin: 10px 0; } .dl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.dl .who { font-weight: 800; color: #e4572e; min-width: 4.5em; } .dl .es { font-weight: 600; flex: 1; min-width: 12em; } .dl .en { color: #4a4f73; }
.dlen { margin: 6px 0 12px; } .dlen summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 6px 0; } .dlen .dl { background: #f7f8fe; }
.pic { font-size: 1.4rem; margin-right: 4px; vertical-align: middle; } .bigpic { display: inline-grid; place-items: center; font-size: 3.2rem; line-height: 1; padding: 6px 14px; margin: 6px 0; background: #fff8e1; border: 2px solid #ffe08a; border-radius: 18px; }

/* ───────── top navigation with the Learning menu ───────── */
.topnav { position: sticky; top: 0; z-index: 55; margin: 0 calc(-1 * clamp(28px, 4vw, 72px)); padding: 0 clamp(28px, 4vw, 72px); background: linear-gradient(90deg, var(--nav-a), var(--nav-b)); color: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 6px 18px rgba(26, 44, 128, .28); }
.tn-in { display: flex; align-items: center; gap: 18px; padding: 10px 0; flex-wrap: wrap; }
.topnav .brand { color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.tn-links { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.tn-links a, .tn-menu { color: #fff; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font: 600 1.02rem var(--head); cursor: pointer; border-radius: 10px 10px 0 0; text-decoration: none; box-shadow: none; text-shadow: none; letter-spacing: 0; min-height: 0; }
.tn-links a:hover, .tn-menu:hover { background: rgba(255, 255, 255, .12); } .tn-links .on { border-bottom-color: var(--y); background: rgba(255, 255, 255, .1); }
.tn-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topnav .tn-right .ghost.small { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.topnav .tog { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; } .topnav .tog.off { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55); }
.topnav .nbadge { background: var(--y); color: #14142b; border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 800; }
.tn-mega { position: absolute; left: clamp(16px, 3vw, 56px); right: clamp(16px, 3vw, 56px); top: 100%; background: #fff; color: var(--ink); border-radius: 0 0 20px 20px; box-shadow: 0 24px 50px rgba(20, 20, 60, .28); padding: 22px 26px 26px; }
.tn-mega[hidden] { display: none; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 26px; }
.tm-col h4 { margin: 0 0 8px; font: 700 1rem var(--head); color: var(--c, var(--navy)); cursor: pointer; } .tm-col h4 span { margin-right: 4px; }
.tm-col a { display: block; padding: 5px 0; color: var(--link); cursor: pointer; font-size: .95rem; text-decoration: none; } .tm-col a:hover { text-decoration: underline; }

/* ───────── home: recommendation wall ───────── */
.home-sec { margin: 18px 0 8px; } .hs-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.hs-head h2 { margin: 0 0 6px; } .hs-more { color: var(--link); cursor: pointer; font-weight: 600; } .hs-title { margin: 22px 0 10px; }
.rec-wall { columns: 300px; column-gap: 18px; } .rec-card { break-inside: avoid; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; margin: 0 0 18px; overflow: hidden; box-shadow: var(--shadow); }
.rec-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 12px 14px; background: color-mix(in srgb, var(--c) 14%, #fff); border-bottom: 1.5px solid color-mix(in srgb, var(--c) 25%, #fff); }
.rec-card header b { display: block; font-family: var(--head); color: var(--ink); } .rec-card header small { color: var(--muted); }
.rec-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--c); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.rec-body { padding: 12px 14px; } .rec-why { margin: 0 0 8px; color: #3a3d63; font-weight: 500; } .rec-q { margin: 0; padding: 10px 12px; background: #f7f8fe; border-radius: 10px; font-size: .88rem; color: #4a4f73; border-left: 4px solid var(--c); }
.rec-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1.5px solid var(--line); background: #fcfcff; }
.rec-go { border: 0; border-radius: 10px; padding: 8px 12px; font: 700 .88rem var(--head); cursor: pointer; color: #14142b; background: #e8eaff; box-shadow: none; text-shadow: none; letter-spacing: 0; min-height: 0; }
.rec-go.fresh { background: #d8f5e3; } .rec-go.keep { background: #e0ecff; } .rec-go.gold { background: #fff0b8; } .rec-go.fix { background: #ffe1e5; } .rec-go.prep { background: #ffd9b8; } .rec-go.refresh { background: #eadcff; }

/* ───────── analytics, scores, levels ───────── */
.an-page { padding: 18px 0 30px; } .an-title { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; margin: 4px 0 12px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.an-lead { color: #4a4f73; margin: 0 0 14px; } .an-h { text-transform: uppercase; font-weight: 600; font-size: 1.3rem; margin: 6px 0 4px; }
.an-tabs { display: flex; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--line); border-radius: 14px 14px 0 0; overflow: hidden; }
.an-tabs button { flex: 1; min-width: 120px; border: 0; background: #fff; padding: 14px 8px; font: 600 .95rem var(--head); color: #4a4f73; border-bottom: 3px solid transparent; cursor: pointer; box-shadow: none; text-shadow: none; letter-spacing: 0; border-radius: 0; min-height: 0; }
.an-tabs button.on { color: var(--link); border-bottom-color: #1d9bf0; background: #f4f9ff; } .an-tabs button span { margin-right: 4px; }
.an-filters { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; background: #f1f4fb; border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 10px 16px; margin-bottom: 18px; }
.an-filters label, .an-sel { font-size: .85rem; color: #5b607f; text-transform: uppercase; letter-spacing: .03em; display: flex; gap: 8px; align-items: center; }
.an select { font: 600 .95rem var(--head); border: 1.5px solid #d2d6ea; border-radius: 10px; padding: 6px 10px; background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }
.an-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 18px; box-shadow: var(--shadow); } .an-card h3 { margin-top: 0; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 10px 0 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.an-tiles > div { padding: 18px 22px; border-right: 1.5px solid var(--line); text-align: center; } .an-tiles > div:last-child { border-right: 0; }
.an-tiles span { display: block; color: #5b607f; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; } .an-tiles b { display: block; font: 600 2.4rem/1.15 var(--head); } .an-tiles em { font-style: normal; color: #5b607f; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.an-cols { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 18px; } @media (max-width: 760px) { .an-cols { grid-template-columns: 1fr; } }
.an-donut { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .an-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; } .an-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.an-donuts { display: flex; gap: 24px; flex-wrap: wrap; margin: 6px 0 14px; justify-content: center; } .an-donuts > div { text-align: center; } .an-donuts h4 { margin: 0 0 4px; font-size: .85rem; text-transform: uppercase; color: #5b607f; }
.an-bars { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 8px; border-bottom: 2px solid #d9dce8; } .an-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 6px; }
.an-bar i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; } .an-bar span { font-size: .65rem; color: #666b8a; margin-top: 4px; white-space: nowrap; height: 14px; }
.an-table { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin: 8px 0 18px; } .an-row { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .an-row:last-child { border-bottom: 0; }
.an-row.head { background: #d9efff; color: #355; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; } .an-grow { flex: 1; min-width: 160px; } .an-n { width: 110px; text-align: left; } .an-w { width: 190px; display: flex; gap: 8px; align-items: center; } .an-act { margin-left: auto; }
.an-meter { flex: 1; height: 10px; background: #e8eaf4; border-radius: 99px; overflow: hidden; min-width: 70px; } .an-meter i { display: block; height: 100%; background: var(--blue); border-radius: 99px; } .an-meter.good i { background: #7bc043; } .an-meter.warn i { background: #f5a623; } .an-meter.bad i { background: #e11d48; }
.an-chip { display: inline-block; background: color-mix(in srgb, var(--c) 16%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 600; }
.an-sub { margin-bottom: 20px; } .an-subhead { color: #fff; font: 700 1rem var(--head); padding: 10px 16px; border-radius: 14px 14px 0 0; margin-bottom: -8px; position: relative; z-index: 1; }
.an-empty { background: #f7f8fe; border: 1.5px dashed #cfd4ec; border-radius: 14px; padding: 22px; text-align: center; color: #4a4f73; margin: 8px 0 18px; } .up { color: #15803d; font-weight: 700; } .down { color: #b91c1c; font-weight: 700; }
.an-cert { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; } .an-certimg { font-size: 4rem; background: #fff8e1; border: 6px double #e4572e; border-radius: 12px; padding: 8px 18px; }
.an-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; } .an-subtabs button { border: 2px solid color-mix(in srgb, var(--c) 40%, #fff); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--head); cursor: pointer; box-shadow: none; text-shadow: none; letter-spacing: 0; min-height: 0; color: var(--ink); } .an-subtabs button.on { background: var(--c); color: #fff; } .an-subtabs b { margin-left: 4px; opacity: .85; }
.an-lvhead { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; } .an-bignum { font: 700 3.4rem/1 var(--head); } .an-bignum small { font-size: 1rem; color: var(--muted); } .an-line { width: 100%; max-width: 640px; height: auto; }
.an-lvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .an-lvcard { background: #fff; border: 1.5px solid var(--line); border-top: 5px solid var(--c); border-radius: 14px; padding: 14px 16px; } .an-lvcard h4 { margin: 0 0 6px; font-family: var(--head); } .an-lvnum { font: 700 2rem/1 var(--head); margin-bottom: 6px; } .an-lvnum small { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.lv-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, #bfe9ff, #c8f1d2); border-radius: 20px; padding: 22px 28px; margin-bottom: 18px; } .lv-banner h1 { margin: 0 0 4px; } .lv-banner p { margin: 0; color: #28406b; } .lv-art { font-size: 4.2rem; }
@media print { .topnav, .an-filters, .an-tabs, #bc-root, .calc-fab { display: none !important; } }
@media (max-width: 700px) {
  .topnav { position: static; border-radius: 22px 22px 0 0; } .tn-in { gap: 6px 10px; padding: 8px 0; } .tn-right { margin-left: auto; gap: 6px; } .tn-name { display: none; }
  .tn-links { order: 3; flex: 1 1 100%; width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 0; } .tn-links a, .tn-menu { padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
  .tn-mega { left: 8px; right: 8px; padding: 16px; } .topnav .tog { width: 38px; height: 38px; }
  .an-tabs button { min-width: 33%; padding: 10px 4px; font-size: .8rem; } .an-n { width: 80px; } .an-w { width: 130px; }
}

/* ───────── Learning menu, sub-navigation and the full recommendations page ───────── */
.tm-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px 36px; } .tm-subjects { display: grid; gap: 14px; } .tm-sub h4 { margin: 0 0 4px; font: 700 1.02rem var(--head); color: var(--link); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.tm-ic { width: 30px; height: 30px; border-radius: 8px; background: #eef6ff; display: inline-grid; place-items: center; font-size: 1.05rem; } .tm-links { padding-left: 40px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .tm-links i { color: #666b8a; font-style: normal; } .tm-links a { color: var(--link); cursor: pointer; font-size: .95rem; } .tm-links a:hover { text-decoration: underline; }
.tm-col h4 { color: var(--link); display: flex; align-items: center; gap: 10px; } .tm-col a { color: var(--link); padding: 9px 0 9px 40px; font-size: .98rem; }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } }
.subnav { display: flex; justify-content: space-around; flex-wrap: wrap; background: #fff; border-bottom: 1.5px solid var(--line); margin: 0 calc(-1 * clamp(28px, 4vw, 72px)); padding: 0 clamp(16px, 3vw, 56px); }
.subnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px 8px; color: #4a4f73; font-size: .86rem; cursor: pointer; border-bottom: 3px solid transparent; text-decoration: none; text-align: center; } .subnav a span { font-size: 1.25rem; } .subnav a:hover { background: #f4f9ff; } .subnav a.on { color: var(--link); border-bottom-color: var(--link); font-weight: 700; }
.rec-page { margin: 0 calc(-1 * clamp(28px, 4vw, 72px)); padding-bottom: 28px; } .rec-intro { background: #fff; padding: 22px clamp(28px, 4vw, 72px) 20px; } .rec-intro h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--link); font-weight: 500; margin: 0 0 8px; } .rec-intro p { margin: 0; max-width: 1100px; color: #1b2340; font-size: 1.02rem; line-height: 1.5; }
.rec-stage { padding: 26px clamp(20px, 4vw, 60px) 10px; background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .55) 0 2px, transparent 3px) 0 0 / 120px 120px, radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .45) 0 2px, transparent 3px) 0 0 / 170px 170px, linear-gradient(180deg, #a9d3dd, #b9dfd4 70%, #c9ecd0); }
.rec-wall.full { columns: 560px; column-gap: 28px; } .rec-wall.full .rec-card { margin-bottom: 28px; border-radius: 10px; border: 0; box-shadow: 0 3px 10px rgba(20, 50, 80, .18); }
.rec-wall.full .rec-card header { background: linear-gradient(180deg, #e8f5ff, #f4fbff); border-bottom: 0; padding: 14px 18px; } .rec-wall.full .rec-card header b { color: var(--link); font-weight: 500; font-size: 1.02rem; } .rec-wall.full .rec-ic { width: 50px; height: 28px; border-radius: 6px; font-size: 1rem; }
.rec-qfull { position: relative; max-height: 380px; overflow: hidden; } .rec-qfull::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); }
.rec-qtext { font-size: .98rem; line-height: 1.5; color: #1b2340; margin-bottom: 12px; pointer-events: none; } .rec-qtext svg { max-width: 100%; height: auto; } .rec-opts { display: grid; gap: 10px; } .rec-opt { border: 1.5px solid #a9d9ee; background: #fff; border-radius: 4px; padding: 10px 14px; color: #1b2340; font-size: .95rem; pointer-events: none; } .rec-opt svg { max-width: 100%; height: 60px; }
.rec-input { border: 1.5px solid #a9d9ee; border-radius: 4px; padding: 10px 14px; color: #666b8a; width: 70%; }
.rec-wall.full .rec-body { padding: 8px 18px 14px; } .rec-wall.full .rec-why { color: #5a6a8a; font-size: .85rem; } .rec-wall.full .rec-card footer { background: #f6fafd; border-top: 1px solid #e0edf5; }
.rec-arena { text-align: center; background: #fff; margin: 10px calc(-1 * clamp(20px, 4vw, 60px)) -10px; padding: 30px 20px 34px; } .rec-arena-ic { font-size: 3.4rem; } .rec-arena p { font-size: 1.05rem; margin: 8px 0 14px; }
@media (max-width: 700px) { .subnav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; } .subnav a { min-width: 84px; } .rec-wall.full { columns: 1; } }

/* ───────── spacing: the top bar floats above the page, and a screen's own breadcrumbs sit in a slim bar below it ───────── */
.topnav { margin-top: 0; margin-bottom: 22px; border-radius: 26px 26px 18px 18px; }
.topnav:has(+ .subnav) { margin-bottom: 0; border-radius: 26px 26px 0 0; }
.crumbbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 16px; padding: 8px 4px; border-bottom: 1.5px solid var(--line); }
.crumbbar .crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); } .crumbbar .crumbs a { color: var(--link); cursor: pointer; } .crumbbar .crumbs b { color: var(--ink); } .crumbbar .crumbs .sep:first-child { display: none; } .crumbbar .cb-title { font: 700 1.05rem var(--head); color: var(--ink); } .cb-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topnav + .card.hero, .topnav + .card, .topnav + .note, .topnav + .home-sec, .topnav + .an-page, .topnav + .pwrap, .topnav + div { margin-top: 0; }
.rec-page, .subnav { margin-top: 0; } .home-sec { margin-top: 26px; } .hs-title { margin-top: 28px; }
@media (max-width: 700px) { .topnav { margin-bottom: 16px; border-radius: 22px; } }

/* ───────── restraint: neutral surfaces, ONE accent per page. Subject colors only mark the subject you are looking at; status is shown with words and icons, not a rainbow ───────── */
.an-subtabs button { border-color: var(--line); color: var(--ink-2); background: #fff; } .an-subtabs button:hover { background: #f4f6fd; } .an-subtabs button.on { background: var(--c); border-color: var(--c); color: #fff; }
.an-lvcard { border-top-color: var(--c); } .an-lvcard .an-meter i { background: var(--c); }
.an-meter.good i, .an-meter.warn i { background: var(--blue); }
.an-subhead { background: var(--ink-2) !important; }
.an-chip { background: #f1f3fb; border: 1px solid #dfe3f3; color: var(--ink-2); } .an-chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.rec-card header { background: #f4f6fc; border-bottom-color: var(--line); }
.rec-go, .rec-go.fresh, .rec-go.keep, .rec-go.gold, .rec-go.fix, .rec-go.prep, .rec-go.refresh { background: var(--y-soft); border: 1.5px solid var(--y); color: var(--ink); }
.rec-wall.full .rec-card header { background: linear-gradient(180deg, #eef3ff, #f6f8ff); }

/* ───────── the chosen color theme (Profile → Color) also colors the top bar, links and page tint, so the whole page agrees ───────── */
html[data-accent=blue]   { --nav-a: #1f6fb5; --nav-b: #124a80; --link: #1b5fa3; --navy: #124a80; --page: #e8f2fb; --blue: #2f7fd0; }
html[data-accent=pink]   { --nav-a: #b83a72; --nav-b: #7d2150; --link: #a8325f; --navy: #7d2150; --page: #fbedf3; --blue: #c2477f; }
html[data-accent=green]  { --nav-a: #278048; --nav-b: #175c33; --link: #1f6e3d; --navy: #175c33; --page: #eaf6ee; --blue: #2f9457; }
html[data-accent=violet] { --nav-a: #6a4fd6; --nav-b: #46309a; --link: #5336b4; --navy: #46309a; --page: #f0ecfb; --blue: #7a5fe0; }
html[data-accent=blue] .rec-stage   { background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 120px 120px, linear-gradient(180deg, #b6d6f0, #c9e3f6); }
html[data-accent=pink] .rec-stage   { background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 120px 120px, linear-gradient(180deg, #f2c4d8, #f9dbe7); }
html[data-accent=green] .rec-stage  { background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 120px 120px, linear-gradient(180deg, #b9e0c6, #d0eddb); }
html[data-accent=violet] .rec-stage { background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 120px 120px, linear-gradient(180deg, #cfc4f2, #e2dbf8); }
.topnav { transition: background .3s; }

/* ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   Fresh skin: a flat, school-friendly look (inspired by modern learning sites): a green top bar, light gray pages, white cards with thin
   borders and small corners, slab-serif headings, link-blue text links and green action buttons. The old Sunny theme (amber) is still a choice.
   ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --head: "Roboto Slab", Georgia, serif; --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: #f3f4f6; --bg: #f3f4f6; --ink: #232b3a; --ink-2: #3f4858; --muted: #5a6475; --line: #dde1e7;
  --y: #2a8318; --y-soft: #e3f3dc; --y-deep: #1f6a12; --on-y: #ffffff; --navy: #1f6a12; --nav-a: #2a8318; --nav-b: #1f6a12;
  --link: #0f6db3; --blue: #2f7fd0; --radius: 6px; --shadow: 0 1px 3px rgba(20, 30, 50, .14);
  --hero-a: #dff1ff; --hero-b: #e2f6d9; --good: #187a42; --bad: #d3304f;
}
html[data-accent=amber] { --y: #ffb62e; --y-soft: #fff2d1; --y-deep: #b36e00; --on-y: #232b3a; --navy: #1c2f7a; --nav-a: #2a47c4; --nav-b: #1a2c80; --link: #2349c8; --blue: #3f63e6; --hero-a: #ffe9a8; --hero-b: #ffd166; }
html[data-accent=blue], html[data-accent=pink], html[data-accent=green], html[data-accent=violet] { --on-y: #232b3a; }
body { font-family: var(--body); background: var(--page); color: var(--ink); line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; color: var(--ink); letter-spacing: 0; } h1 { font-weight: 300; } b, strong { font-weight: 700; }
/* page frame: full-width green bar, content centered on the gray page */
#app { width: 100%; max-width: none; margin: 0; padding: 0 0 64px; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
#app > :not(.topnav):not(.subnav):not(.rec-page):not(.lp-top):not(.lp-hero):not(.lp-pills):not(.lp-cards):not(.celebrate) { width: min(1240px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.topnav { margin: 0 0 22px; padding: 0 max(20px, calc((100% - 1240px) / 2)); border-radius: 0; background: linear-gradient(180deg, var(--nav-a), var(--nav-b)); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.topnav:has(+ .subnav) { margin-bottom: 0; border-radius: 0; }
.tn-in { padding: 8px 0; gap: 14px 22px; } .topnav .brand { font-family: var(--head); font-weight: 500; font-size: 1.4rem; }
.tn-links a, .tn-menu { font-family: var(--head); font-weight: 300; font-size: 1.28rem; padding: 12px 20px 16px; border-bottom: 0; border-radius: 0; position: relative; }
.tn-links a:hover, .tn-menu:hover { background: rgba(255, 255, 255, .1); }
.tn-links .on { background: transparent; } .tn-links .on::after { content: ''; position: absolute; left: 50%; bottom: -1px; margin-left: -9px; border: 9px solid transparent; border-bottom-color: #fff; border-top: 0; }
.topnav .tn-right .ghost.small { border-radius: 999px; background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .35); font-weight: 600; }
.tn-mega { border-radius: 0 0 6px 6px; border: 1px solid var(--line); border-top: 0; }
.subnav { margin: 0 0 22px; padding: 0 max(20px, calc((100% - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; }
.subnav a.on { color: var(--link); border-bottom-color: var(--link); } .crumbbar { border-bottom: 1px solid var(--line); }
.rec-page { margin: 0; } .rec-intro { padding: 22px max(20px, calc((100% - 1240px) / 2)) 20px; } .rec-intro h1 { font-weight: 300; color: var(--link); }
/* surfaces */
.card, .an-card, .rec-card, .lp-card, .an-table, .an-tiles { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.card { padding: 20px; } .card.click:hover { box-shadow: 0 3px 10px rgba(20, 30, 50, .18); transform: none; }
.an-title, .an-h { font-family: var(--head); font-weight: 300; text-transform: none; color: var(--ink); } .an-title { font-size: 2.2rem; border-bottom: 1px solid var(--line); }
.an-tabs, .an-filters { border-radius: 0; } .an-tabs button { font-family: var(--body); font-weight: 600; } .an-tabs button.on { color: var(--link); border-bottom-color: var(--link); background: #fff; }
.an-row.head { background: #d6ecfa; } .an-subhead { border-radius: 4px 4px 0 0; font-family: var(--head); font-weight: 400; }
/* controls: flat, small corners, green actions */
button { font-family: var(--body); font-weight: 700; border-radius: 4px; box-shadow: none; text-shadow: none; letter-spacing: 0; color: var(--on-y); }
button:hover { filter: brightness(1.06); transform: none; } button:active { transform: none; box-shadow: none; }
button.ghost { background: #fff; color: var(--link); border: 1px solid #b5c4d6; } button.ghost:hover { background: #eef5fb; }
button.big { border-radius: 4px; padding: 14px 28px; font-size: 1.05rem; } button.small { border-radius: 4px; }
.dots i.done, .atabs button.on, .ptabs button.on, .cd.today b { color: var(--on-y); }
input, select, textarea { border-radius: 4px; border: 1px solid #b5bcc7; }
.choice { border-radius: 4px; } .qcard { border-radius: var(--radius); }
.chip { border-radius: 999px; }
/* the home hero becomes a calm sky panel */
.card.hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); border: 1px solid #cfe1ea; box-shadow: var(--shadow); }
.hero h1 { font-family: var(--head); font-weight: 300; } .hero .bar > i { background: var(--y); }
.home-sec .hs-head h2, .hs-title, .lp-h2 { font-family: var(--head); font-weight: 300; font-size: 1.9rem; }
.rec-wall.full .rec-card { border-radius: 4px; }
.rec-go, .rec-go.fresh, .rec-go.keep, .rec-go.gold, .rec-go.fix, .rec-go.prep, .rec-go.refresh { border-radius: 4px; background: var(--y-soft); border: 1px solid var(--y); color: var(--y-deep); }
html[data-accent=amber] .rec-go { color: var(--ink); }
/* ───────── landing page ───────── */
.lp-top { background: linear-gradient(180deg, var(--nav-a), var(--nav-b)); color: #fff; padding: 0 max(20px, calc((100% - 1240px) / 2)); }
.lp-in { display: flex; align-items: center; gap: 22px; padding: 12px 0; flex-wrap: wrap; } .lp-top .brand { color: #fff; font-family: var(--head); font-weight: 500; font-size: 1.5rem; display: flex; align-items: center; gap: 8px; }
.lp-links { display: flex; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; } .lp-links a { color: #fff; font: 300 1.25rem var(--head); padding: 8px 18px; cursor: pointer; border-radius: 4px; } .lp-links a:hover { background: rgba(255, 255, 255, .12); }
.lp-right { display: flex; gap: 10px; align-items: center; margin-left: auto; } .lp-top .tog { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.lp-btn { background: #fff; color: var(--y-deep); border: 0; padding: 9px 20px; border-radius: 999px; font-weight: 700; }
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #cfeaff 0%, #e6f6ff 55%, #eaf7e0 100%); padding: 38px max(20px, calc((100% - 1240px) / 2)) 120px; }
.lp-sky i { position: absolute; display: block; } .lp-sky .c1, .lp-sky .c2, .lp-sky .c3 { background: #fff; border-radius: 999px; opacity: .85; } .lp-sky .c1 { width: 240px; height: 64px; left: 6%; top: 26px; } .lp-sky .c2 { width: 180px; height: 50px; right: 12%; top: 54px; } .lp-sky .c3 { width: 140px; height: 40px; left: 44%; top: 8px; }
.lp-sky .hill { left: -5%; right: -5%; border-radius: 50% 50% 0 0; } .lp-sky .h1 { bottom: -150px; height: 220px; background: #b9e3a4; } .lp-sky .h2 { bottom: -170px; left: 25%; right: -15%; height: 230px; background: #9fd488; }
.lp-hero-in { position: relative; text-align: center; max-width: 1000px; margin: 0 auto; } .lp-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--link); margin: 10px 0 8px; font-weight: 300; } .lp-hero h1 b { font-weight: 700; }
.lp-lead { max-width: 680px; margin: 0 auto 26px; color: #34506b; font-size: 1.05rem; }
.lp-clouds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; } .lp-cloud { background: #fff; border-radius: 40px 40px 34px 34px; padding: 26px 24px 20px; box-shadow: 0 2px 10px rgba(30, 80, 120, .16); } .lp-cloud.mid { margin-top: -10px; }
.lp-cloud h3 { color: var(--link); font-size: 1.35rem; margin: 0 0 8px; } .lp-cloud p { margin: 0 0 8px; color: #3d4858; font-size: .95rem; } .lp-cloud small { color: var(--muted); }
.lp-fox { position: absolute; right: max(20px, calc((100% - 1240px) / 2)); bottom: -6px; width: 150px; opacity: .95; } .lp-fox svg { width: 100%; height: auto; } @media (max-width: 900px) { .lp-fox { display: none; } .lp-hero { padding-bottom: 70px; } }
.lp-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; width: min(1240px, calc(100% - 40px)); margin: 22px auto; }
.lp-pill { display: flex; gap: 18px; align-items: center; background: linear-gradient(90deg, #e2f6d4, #f1fbe6); border: 1px solid #cfe8c0; border-radius: 40px; padding: 18px 28px; } .lp-pill.alt { background: linear-gradient(90deg, #e2f0fb, #eef7fe); border-color: #c8dff2; }
.lp-pill h3 { margin: 0 0 2px; color: var(--y-deep); font-size: 1.25rem; } .lp-pill.alt h3 { color: var(--link); } .lp-pill p { margin: 0 0 4px; color: #3d4858; font-size: .92rem; } .lp-pill a { color: var(--link); font-weight: 600; cursor: pointer; } .lp-pill-ic { font-size: 2.6rem; flex: none; }
.lp-cards { width: min(1240px, calc(100% - 40px)); margin: 30px auto 10px; } .lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.lp-card { position: relative; background: #fff; border: 1px solid var(--c); border-radius: 4px; padding: 20px 22px 14px; box-shadow: none; } .lp-badge { position: absolute; left: -1px; top: 18px; min-width: 38px; height: 34px; padding: 0 12px 0 10px; border-radius: 0 17px 17px 0; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 1rem var(--head); }
.lp-card h3 { margin: 0 0 8px 46px; color: var(--c); font-size: 1.7rem; } .lp-desc { margin: 0 0 12px; color: #3d4858; } .lp-rows { border-top: 1px solid var(--line); padding-top: 8px; } .lp-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .95rem; } .lp-row a { color: var(--link); cursor: pointer; }
#who { width: min(1240px, calc(100% - 40px)); margin: 30px auto; }
@media (max-width: 700px) { .tn-links a, .tn-menu { font-size: 1.05rem; padding: 8px 12px; } .lp-links { order: 3; flex-basis: 100%; } }
.lp-clouds { max-width: 880px; margin: 0 auto; } .lp-fox { width: 130px; right: max(10px, calc((100% - 1240px) / 2 - 10px)); }

/* top menu: one tidy row. The brand, the links and the buttons share the line; below 1180px the links move to their own centred row instead of breaking mid-way. */
.topnav { padding-left: max(20px, calc((100% - 1400px) / 2)); padding-right: max(20px, calc((100% - 1400px) / 2)); }
.tn-in { flex-wrap: nowrap; align-items: center; gap: 12px 18px; }
.topnav .brand { flex: none; margin-right: 0; }
.tn-links { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: center; gap: 2px; align-items: center; }
.tn-links a, .tn-menu { white-space: nowrap; font-size: clamp(1rem, 1.25vw, 1.2rem); padding: 12px clamp(9px, 1.1vw, 16px) 16px; display: inline-flex; align-items: center; gap: 4px; }
.tn-right { flex: none; flex-wrap: nowrap; }
@media (max-width: 1180px) {
  .tn-in { flex-wrap: wrap; }
  .tn-links { order: 3; flex: 1 1 100%; width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: center; }
  .tn-links::-webkit-scrollbar { display: none; }
  .tn-right { margin-left: auto; }
}
@media (max-width: 700px) { .tn-links { justify-content: flex-start; } }
