/* Team dashboard. Tokens follow docs/design/guidelines/visual-system.md. */
:root {
  --canvas: #f9f8f6;
  --surface: #fff;
  --border: #e2ded6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --brand: #008437;
  --brand-dark: #007832;
  --brand-tint: #e8f4ec;
  --pending-bg: #fff4dc;
  --pending-text: #7a4b00;
  --pending-border: #f0d9a8;
  --done-bg: #e6f4ea;
  --done-text: #0b5d2a;
  --error: #b42318;
  --focus: #b87b2e;
  --gold: #8a5a00;
  --gold-bg: #fdf3da;
  color-scheme: light;
  font-family: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 6px 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Top bar and tabs */
.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--brand); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand .logo { width: 26px; height: 26px; color: var(--brand); }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.rank-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--gold-bg); color: var(--gold); border: 1px solid #ecd9a6; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; vertical-align: middle; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.who select { width: auto; min-width: 150px; }
.folder { display: flex; align-items: center; }
.tabs { display: flex; gap: 4px; padding: 8px 24px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--border); }
.tabs button { border: 0; background: transparent; border-radius: 12px; white-space: nowrap; font-weight: 600; color: var(--muted); }
.tabs button[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
main { max-width: 1200px; margin: 0 auto; padding: 24px; }
.foot { margin-top: 32px; color: var(--muted); font-size: 12px; }

/* Controls */
button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
button:hover { border-color: var(--brand); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--brand-dark); }
button.small { min-height: 36px; padding: 4px 12px; font-size: 13px; }
button.icon { min-width: 44px; padding: 0; font-size: 22px; line-height: 1; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
select[multiple] { min-height: 120px; }
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--brand); }
.field { margin: 14px 0; }
.field > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field.check > label { display: flex; align-items: center; font-weight: 500; }
.hint, .muted { color: var(--muted); font-size: 12px; }
.actions, .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }

/* Cards and lists */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid > .card { margin: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.next { background: var(--brand-tint); border-color: #bfdfc9; }
.next .step { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 8px 0; margin: 0; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
pre, .copy-box { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--canvas); border: 1px solid var(--border); padding: 12px; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Status pills: background, border and label; never colour alone */
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--border); background: var(--canvas); white-space: nowrap; }
.pill.pending { background: var(--pending-bg); color: var(--pending-text); border-color: var(--pending-border); }
.pill.done { background: var(--done-bg); color: var(--done-text); border-color: #b9dcc4; }
.pill.priority { background: var(--surface); }
.pill.xp { background: var(--brand-tint); color: var(--brand-dark); border-color: #bfdfc9; }

/* Game elements */
.meter { height: 10px; background: #eeeae3; border-radius: 999px; overflow: hidden; margin: 6px 0 10px; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.learning > span { background: #2f6fb3; }
.stat { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats .card { margin: 0; padding: 16px; }
.trek svg { width: 100%; height: auto; display: block; }
.camp-name { font-size: 22px; font-weight: 800; margin: 0; }
.route { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 12px; }
.route li.current { font-weight: 800; color: var(--brand-dark); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: var(--surface); }
.badge .emoji { font-size: 26px; display: block; }
.badge.locked { background: var(--canvas); color: var(--muted); }
.badge.locked .emoji { filter: grayscale(1); opacity: 0.45; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--pending-bg); color: var(--pending-text); font-weight: 600; font-size: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark); font-size: 12px; font-weight: 600; border: 1px solid #bfdfc9; }
.badge-icon { font-size: 20px; line-height: 1; }
.trek-row .meter { max-width: 420px; }
.member-card h3 { font-size: 18px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board .column { background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 120px; }
.board .column h3 { font-size: 13px; }
.task-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; margin: 0 0 8px; min-height: 44px; }
table.hours td, table.hours th { text-align: center; white-space: nowrap; }
table.hours td:first-child, table.hours th:first-child { text-align: left; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }

/* Notices, dialog, toast */
#notice { padding: 10px 14px; background: var(--pending-bg); border: 1px solid var(--pending-border); color: var(--pending-text); border-radius: 12px; margin: 0 0 16px; font-size: 13px; }
#notice:empty { display: none; }
#notice.ok { background: var(--done-bg); border-color: #b9dcc4; color: var(--done-text); }
dialog { width: min(720px, 94vw); max-height: 90vh; border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; color: var(--text); }
dialog::backdrop { background: rgba(26, 26, 26, 0.45); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#form-help { color: var(--muted); }
#form-error { color: var(--error); font-weight: 600; }
#form-error:empty { display: none; }
.screenshots { display: flex; flex-wrap: wrap; gap: 8px; }
.screenshots img { max-width: 180px; max-height: 140px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; }
iframe { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--border); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, 92vw); background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); white-space: pre-line; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#toast.show { opacity: 1; }

@media (max-width: 700px) {
  .top { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .who { margin-left: 0; order: 3; width: 100%; }
  .folder { order: 4; width: 100%; }
  .folder button { width: 100%; }
  .who select { flex: 1; }
  #close-day { margin-left: auto; }
  .tabs { padding: 6px 16px; }
  main { padding: 16px; }
  .row { flex-wrap: wrap; }
  .card { padding: 16px; }
  iframe { height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Warrior expedition: a compact identity banner above the daily mission board. */
body { background: radial-gradient(ellipse at 85% 0, #e6ede4 0, transparent 45%), var(--canvas); }
.top { border-top: 3px solid #b89a53; }
main { max-width: 1120px; }
button.small { min-height: 44px; }
h1, h2, h3 { text-wrap: balance; }
.stat, .banner-progress, .pill { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 20; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.warrior-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; padding: 28px; border: 1px solid #36594a; border-radius: 18px; background: #153b2f; color: #fff; box-shadow: 0 10px 28px #17382c16; }
.warrior-banner::after { content: ''; position: absolute; z-index: -1; inset: 0 0 0 45%; background: linear-gradient(145deg, transparent 45%, #234f3f 46%, #234f3f 60%, transparent 61%), linear-gradient(35deg, transparent 40%, #1c4436 41%, #1c4436 66%, transparent 67%); opacity: .7; }
.warrior-seal { position: relative; flex: 0 0 76px; width: 76px; }
.warrior-seal svg { width: 100%; display: block; fill: #234a3a; stroke: #d2b46f; stroke-width: 2; }
.warrior-seal .seal-mountain { fill: #d2b46f; stroke: none; }
.warrior-seal span { position: absolute; left: 0; right: 0; top: 15px; text-align: center; color: #f6e7b9; font-size: 12px; font-weight: 700; }
.warrior-identity { flex: 1; min-width: 0; }
.warrior-identity h1 { font-size: clamp(21px, 3vw, 28px); margin: 0 0 6px; color: white; }
.warrior-identity p { margin: 0 0 8px; color: #d2e3d9; }
.warrior-banner .eyebrow { color: #e6ca87; letter-spacing: 1.8px; font-size: 10px; }
.banner-progress { max-width: 440px; font-size: 12px; color: #d2e3d9; }
.banner-progress .meter { background: #39614f; height: 6px; margin: 12px 0 6px; }
.banner-progress .meter > span { background: #e2be70; }
.banner-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 11px; color: #d2e3d9; }
.banner-aside button { background: #244d3d; border-color: #8caa98; color: white; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin-bottom: 8px; }
.mission-board .row { padding: 18px 0; }
.mission-board .row-main strong { font-size: 15px; }
.mission-board .row-main .muted { margin-top: 5px; }
.training-next { border-left: 3px solid #547fbd; }
.training-header { padding: 8px 0 24px; }
.training-header h1 { margin: 4px 0 12px; font-size: clamp(25px, 4vw, 34px); }
.academy-path { border-top: 3px solid #386a54; }
.learning-topics { margin-top: 20px; }
.academy-path > .meter { height: 6px; }
#main:focus { outline: none; }
@media (max-width: 700px) {
  .warrior-banner { padding: 20px; gap: 14px; flex-wrap: wrap; }
  .warrior-seal { flex-basis: 52px; width: 52px; }
  .warrior-seal span { top: 9px; font-size: 10px; }
  .banner-aside { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .banner-aside > span:last-child { display: none; }
  .section-heading { align-items: flex-start; }
  .section-heading .pill { white-space: normal; }
}

/* Expedition basecamp: illustrated identity, quieter controls and a desktop rail. */
:root { --canvas: #f3f2ed; --border: #e0e2d9; --text: #20352e; --muted: #626e65; }
body { background: var(--canvas); }
.top { height: 80px; padding: 16px 28px; background: #fbfcf8; border-top: 0; }
.brand { min-width: 195px; }
.brand span { font-size: 10px; }
.tabs { position: fixed; top: 80px; bottom: 0; left: 0; width: 220px; flex-direction: column; gap: 7px; padding: 32px 18px; border-right: 1px solid var(--border); border-bottom: 0; background: #fbfcf8; }
.nav-caption { margin: 0 14px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; color: #737e73; }
.tabs button { display: flex; gap: 15px; align-items: center; text-align: left; padding: 13px 16px; border-radius: 9px; font-weight: 500; }
.tabs button span { font: 10px ui-monospace, monospace; opacity: .65; }
.tabs button[aria-current="page"] { background: #214b3b; color: #fff; box-shadow: 0 4px 9px #1b48371a; }
.nav-motto { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--border); font-size: 12px; }
.nav-motto p { color: var(--muted); line-height: 1.8; }
main { max-width: 1460px; margin: 0 auto 0 220px; padding: 28px clamp(22px,4vw,64px); }
.daily-heading { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; }
.daily-heading h2 { font-size: 24px; font-weight: 700; letter-spacing: -.7px; margin: 0; }
.daily-heading .eyebrow { font-size: 9px; letter-spacing: 2px; margin-bottom: 9px; }
.daily-date { font: 12px ui-monospace, monospace; color: var(--muted); }
.warrior-banner { min-height: 254px; padding: 30px 34px; gap: 18px; background: #123b31; border: 0; border-radius: 16px; margin-bottom: 0; box-shadow: 0 9px 25px #183c3115; }
.warrior-banner::after { inset: 0; background: linear-gradient(90deg,#133b32 0%,#133b32f5 32%,#133b3280 58%,transparent 82%); opacity: 1; }
.expedition-art { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.warrior-seal { display: none; }
.warrior-identity { max-width: 490px; }
.warrior-identity h1 { font-size: clamp(28px,3.6vw,43px); line-height: 1.1; letter-spacing: -1.5px; margin: 12px 0; }
.warrior-identity .eyebrow { font-size: 10px; letter-spacing: 2px; }
.rank-line { font-size: 12px; }
.rank-line span { display: inline-block; color: #ffe8a9; padding-right: 10px; margin-right: 7px; border-right: 1px solid #71917b; }
.banner-progress { max-width: 275px; margin-top: 17px; font-size: 11px; }
.banner-progress .meter { height: 5px; }
.banner-aside { margin-left: auto; align-self: flex-end; padding-bottom: 6px; }
.banner-aside .summit-label { color: #f8e6b5; font: 9px ui-monospace, monospace; letter-spacing: 2px; }
.banner-aside button { background: #12382de8; border-color: #7e9c83; font-size: 11px; }
.personal-stats { display: grid; grid-template-columns: repeat(4,1fr); margin: 14px 0 28px; gap: 12px; }
.personal-stats > div { padding: 15px 18px; background: #fcfdf9; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.personal-stats span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.personal-stats strong { font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.personal-stats small { font-size: 10px; color: var(--muted); font-weight: 400; }
.card { border-radius: 13px; padding: 22px 24px; box-shadow: 0 2px 4px #1c3e2c03; }
.mission-board { border-top: 3px solid #234c3b; }
.section-heading h2 { font-size: 20px; letter-spacing: -.45px; }
.mission-board .empty { padding: 30px 18px; border: 1px dashed #ccd6c8; border-radius: 9px; background: #f8faf5; margin: 16px 0 2px; text-align: center; font-size: 13px; }
.mission-board .row { padding: 20px 4px; }
.mission-board .row-main strong { font-size: 15px; font-weight: 600; }
.next { background: #eaf0e5; border-color: #d4dfcc; box-shadow: none; }
.next .step { font-size: 16px; font-weight: 500; }
.training-next { background: #fcfbf6; border-left-color: #bd9d53; }
.training-next .eyebrow { color: #806528; }
#notice { font-size: 11px; background: #eeeee5; border-color: #dddccb; color: #626747; padding: 8px 12px; }
.training-header { background: #163c31; color: #f8faf3; padding: 30px; border-radius: 14px; margin-bottom: 24px; }
.training-header .eyebrow { color: #dfc182; }
.training-header .muted { color: #d0ddce; }
.training-header .pill { color: #2d4b36; }
.academy-path { border-top-color: #c2a166; }
@media(min-width:1600px) { main { margin-right: auto; } }
@media(max-width:1000px) {
  .tabs { width: 180px; padding: 28px 12px; }
  main { margin-left: 180px; padding: 24px; }
  .brand { min-width: 150px; }
  .personal-stats { gap: 8px; }
  .personal-stats > div { padding: 12px; }
  .personal-stats small { display: block; }
  .banner-aside .summit-label { display: none; }
}
@media(max-width:700px) {
  .top { position: relative; height: auto; padding: 14px 16px; }
  .tabs { position: static; flex-direction: row; width: 100%; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .tabs button { padding: 10px 14px; min-width: max-content; }
  .tabs button span, .nav-caption, .nav-motto { display: none; }
  main { margin: 0; padding: 20px 16px; }
  .daily-heading { margin-bottom: 18px; }
  .daily-heading h2 { font-size: 22px; }
  .daily-date { font-size: 10px; }
  .warrior-banner { padding: 25px 22px; min-height: 265px; }
  .warrior-identity { width: 100%; }
  .warrior-identity h1 { font-size: 33px; }
  .warrior-banner::after { background: linear-gradient(90deg,#133b32 0%,#133b32e0 45%,#133b3260 100%); }
  .banner-aside { width: auto; margin-left: 0; }
  .personal-stats { grid-template-columns: repeat(2,1fr); margin-bottom: 22px; }
  .personal-stats strong { font-size: 21px; }
  .personal-stats small { display: inline; }
  .card { padding: 18px; }
  .training-header { padding: 23px; }
}

[hidden] { display: none !important; }
@media(max-width:700px) {
  .top .who { width: auto; flex: 1; order: 3; min-width: 0; }
  .top .who select { min-width: 0; width: 100%; }
  .top .folder { width: auto; order: 3; }
  .top .folder button { width: auto; padding: 8px 10px; font-size: 11px; }
  .warrior-banner { min-height: 224px; padding: 23px; }
  .warrior-identity { flex: 1 0 100%; width: 100%; }
  .warrior-identity h1 { font-size: 30px; letter-spacing: -.8px; }
  .warrior-identity .rank-line { font-size: 11px; }
  .banner-progress { max-width: 175px; }
  .banner-aside { position: absolute; right: 16px; bottom: 21px; }
  .banner-aside button { padding: 8px; min-height: 44px; font-size: 10px; }
  .personal-stats { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .personal-stats > div { padding: 10px 8px; }
  .personal-stats span { font-size: 9px; min-height: 27px; line-height: 1.4; }
  .personal-stats strong { font-size: 18px; }
  .personal-stats small { display: block; font-size: 9px; line-height: 1.3; }
}
@media(max-width:700px) {
  .top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .top .brand { min-width: 0; font-size: 20px; }
  .top .brand span { font-size: 8px; letter-spacing: 1px; }
  .top .who { grid-column: 1; grid-row: 2; margin: 0; }
  .top .who > span { white-space: nowrap; }
  .top .folder { grid-column: 2; grid-row: 2; }
  .top .folder button { width: 100%; }
  #close-day { grid-column: 2; grid-row: 1; font-size: 11px; padding: 8px 10px; }
}

/* The actual NepWalk logo and a fixed identity replace the demo brand and selector. */
.brand-logo { width: 130px; height: 26px; object-fit: contain; }
#member { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media(max-width:700px) {
  .brand-logo { width: 112px; height: auto; }
  .brand { flex-wrap: wrap; column-gap: 7px; row-gap: 2px; }
  #member { font-size: 11px; }
}

/* My growth hero */
.trek-hero .rank-title { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; color: var(--brand-dark); margin: 4px 0 2px; }
.trek-hero .camp-line { color: var(--muted); margin: 0 0 10px; }
.trek-hero .next-goal { font-size: 16px; margin: 8px 0 4px; }
.later-paths > summary { font-size: 15px; }
.later-paths .academy-path { margin-top: 12px; }
@media (max-width: 700px) { .trek-hero .rank-title { font-size: 32px; } }
.badge-strip { margin-top: 12px; } .badge-strip p { margin-bottom: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; vertical-align: middle; margin-left: 6px; color: var(--brand-dark); }

/* Growth: collectible emblems, a readable trail and a compact daily starting point. */
.emblem { --medal-metal: #d6ad65; --medal-light: #fff0bc; --medal-ink: #64441c; position: relative; display: inline-flex; width: 92px; flex-shrink: 0; color: var(--medal-ink); }
.emblem svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 3px #33290e20); }
.medal-ribbon { fill: #205541; stroke: #d2b472; stroke-width: 2; }
.medal-edge { fill: var(--medal-metal); stroke: var(--medal-ink); stroke-width: 1.4; }
.medal-face { fill: var(--medal-light); stroke: var(--medal-ink); stroke-width: 1; }
.medal-engraving { fill: none; stroke: var(--medal-metal); stroke-width: 1; stroke-dasharray: 2 3; }
.medal-glyph { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.emblem.locked { --medal-metal: #c9cfca; --medal-light: #f3f5f0; --medal-ink: #68766b; }
.emblem.locked .medal-ribbon { fill: #d5ded6; stroke: #a4afa7; }
.emblem-number { position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%); min-width: 25px; padding: 1px 5px; border-radius: 8px; background: #205541; color: #fff3cb; font: 700 13px ui-monospace, monospace; text-align: center; }
.emblem.locked .emblem-number { background: #607367; color: #fff; }
.flame-count { display: inline-flex; align-items: center; font-size: 0.6em; vertical-align: middle; color: #fff1bc; background: #61431c; border: 1px solid #c89955; padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.daily-banner { min-height: 154px; display: grid; grid-template-columns: 76px minmax(0,1fr) auto; padding: 22px 26px; gap: 20px; align-items: center; }
.daily-banner .emblem { width: 76px; }
.daily-banner .warrior-identity { width: auto; max-width: none; min-width: 0; }
.daily-banner .warrior-identity h1 { font-size: 30px; margin: 5px 0 8px; letter-spacing: -0.8px; }
.daily-banner .warrior-identity .eyebrow { color: #e0e9d9; font-size: 10px; letter-spacing: 1.3px; }
.daily-banner .banner-progress { margin-top: 8px; max-width: 330px; font-size: 12px; }
.daily-banner .banner-progress .meter { background: #ffffff26; margin-bottom: 7px; }
.daily-banner .banner-progress .meter > span { background: #e4c27b; }
.daily-banner .banner-aside { position: static; margin: 0; align-self: center; padding: 0; }
.daily-banner .banner-aside button { font-size: 12px; min-height: 44px; background: #163d32; }
.daily-rewards { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 22px; padding: 0 4px; color: var(--muted); font-size: 12px; }
.daily-rewards strong { color: #214a38; font-size: 15px; }
.daily-rewards > span:last-child { margin-left: auto; }
.growth-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.growth-heading h1 { font-size: 32px; letter-spacing: -1px; }
.growth-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.growth-heading button { flex-shrink: 0; min-height: 44px; }
.growth-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) 235px; align-items: center; gap: 40px; background: #123b31; color: #fff; padding: 38px 42px; border-radius: 22px; border: 1px solid #3c6451; box-shadow: 0 12px 32px #143c301a; }
.growth-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg,#102e28f5 5%,#163d32dd 48%,#163d3230 100%); }
.growth-hero-copy { max-width: 610px; }
.growth-hero .eyebrow { color: #ebd39a; font-size: 10px; letter-spacing: 2px; }
.growth-hero h2 { font-size: clamp(30px,4vw,50px); line-height: 1.05; letter-spacing: -1.5px; margin: 13px 0; text-wrap: balance; overflow-wrap: anywhere; }
.growth-hero-copy > p:not(.eyebrow) { color: #e1e9dd; max-width: 490px; }
.growth-xp { font-size: 32px; font-weight: 750; margin: 23px 0 12px; font-variant-numeric: tabular-nums; }
.growth-xp > span:not(.flame-count) { font-size: 12px; color: #e0e9dc; font-weight: 400; }
.growth-hero .meter { max-width: 420px; height: 7px; background: #ffffff26; }
.growth-hero .meter > span { background: #e6c47c; }
.growth-next { font-size: 12px; margin: 9px 0 0; }
.growth-hero-emblem { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.growth-hero-emblem .emblem { width: 190px; filter: drop-shadow(0 0 28px #efd48a30); }
.growth-hero-emblem .emblem-number { font-size: 22px; min-width: 46px; }
.growth-hero-emblem > span:last-child { color: #f8e7bb; font: 10px ui-monospace, monospace; letter-spacing: 2px; }
.growth-hero.at-summit { border-color: #b18a45; }
.growth-hero.at-summit .emblem { --medal-light: #fff0ba; --medal-metal: #edbc56; --medal-ink: #7c4012; }
.growth-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 18px 0 30px; }
.growth-stats > div { background: var(--surface); padding: 18px 24px; display: flex; flex-direction: column; gap: 4px; }
.growth-stats strong { font-size: 27px; color: #244e3b; font-variant-numeric: tabular-nums; }
.growth-stats strong span { font-size: 14px; color: var(--muted); font-weight: 400; }
.growth-stats > div > span { font-size: 12px; color: var(--muted); }
.summit-trail { padding: 26px; }
.milestone-trail { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.rank-stop { height: 100%; margin: 0; text-align: center; border: 1px solid #e3e7de; border-radius: 14px; background: #f8faf6; padding: 14px 8px; }
.rank-stop.current { border: 2px solid #9b793a; background: #fffaf0; }
.rank-stop summary { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 44px; }
.rank-stop summary::-webkit-details-marker, .trophy summary::-webkit-details-marker { display: none; }
.rank-stop .emblem { width: 68px; margin-bottom: 5px; }
.rank-stop strong { font-size: 12px; }
.rank-stop summary > span:not(.emblem) { font-size: 10px; color: #637064; }
.rank-stop .rank-status { font-weight: 650; margin-top: 4px; }
.rank-stop p { font-size: 12px; margin: 10px 2px 0; }
.summit-promise { display: flex; align-items: center; gap: 24px; padding: 24px 30px; border: 1px solid #e2c997; border-radius: 16px; background: linear-gradient(120deg,#fffaf0,#f5f1e5); margin: 22px 0; }
.summit-promise .emblem { width: 88px; }
.summit-promise h2 { margin-bottom: 8px; }
.summit-promise p:last-child { margin-bottom: 0; }
.unlock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.unlock-grid > div { display: flex; align-items: flex-start; gap: 14px; }
.unlock-grid .emblem { width: 48px; }
.unlock-grid p { font-size: 12px; margin: 6px 0; color: var(--muted); }
.trophy-room { padding: 28px; }
.badge-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.badge-filters button { min-height: 44px; font-size: 12px; }
.badge-filters button[aria-pressed="true"] { background: #214d3b; color: #fff; border-color: #214d3b; }
.trophy-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; align-items: start; }
.trophy { border: 1px solid #dce3d8; border-radius: 16px; background: #fbfcf8; margin: 0; overflow: hidden; }
.trophy.unlocked { background: radial-gradient(ellipse at 50% 0%,#fff2c9,transparent 65%),#fffdf8; border-color: #d4b975; }
.trophy summary { list-style: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px; min-height: 44px; }
.trophy .emblem { width: 84px; margin-bottom: 10px; transition: transform 180ms ease; }
.trophy summary:hover .emblem, .trophy summary:focus-visible .emblem { transform: translateY(-3px); }
.trophy .eyebrow { font-size: 9px; color: #617064; letter-spacing: 1.5px; margin: 3px 0 7px; }
.trophy strong { font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.trophy-state { margin: 4px 0 8px; font: 11px ui-monospace, monospace; color: #536453; }
.trophy .meter { width: 80%; height: 4px; }
.trophy .trophy-detail-label { font-size: 10px; font-weight: 500; color: #536453; margin-top: 12px; }
.trophy > p { margin: 0; padding: 0 18px 16px; font-size: 12px; }
.trophy[data-group="Learning"] .emblem.earned { --medal-light: #e5eee1; --medal-metal: #a7bea0; --medal-ink: #34553d; }
.trophy[data-group="Quality"] .emblem.earned, .trophy[data-group="Teamwork"] .emblem.earned { --medal-light: #e4efef; --medal-metal: #9ebbc0; --medal-ink: #325a61; }
.trophy[data-group="Summit"] .emblem.earned { --medal-light: #fff0ba; --medal-metal: #edbc56; --medal-ink: #7c4012; }
.academy-reward { display: flex; align-items: center; gap: 18px; border: 1px solid #d3dfcb; border-radius: 14px; padding: 18px 24px; background: #f1f5ec; margin-bottom: 22px; }
.academy-reward .emblem { width: 55px; }
.academy-reward p { font-size: 12px; margin: 5px 0 0; color: #566451; }
.academy-reward button { margin-left: auto; flex-shrink: 0; min-height: 44px; }
@media(max-width:1100px) {
  .growth-hero { grid-template-columns: minmax(0,1fr) 150px; gap: 20px; padding: 30px; }
  .growth-hero-emblem .emblem { width: 140px; }
  .milestone-trail { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .trophy-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .daily-banner { grid-template-columns: 64px minmax(0,1fr); }
  .daily-banner .emblem { width: 64px; grid-row: 1 / 3; }
  .daily-banner .banner-aside { grid-column: 2; }
  .unlock-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media(max-width:700px) {
  .daily-heading { margin-bottom: 12px; }
  .daily-banner { padding: 18px; gap: 8px 16px; min-height: 0; }
  .daily-banner .warrior-identity h1 { font-size: 26px; }
  .daily-banner .banner-progress { max-width: none; font-size: 10px; margin-top: 6px; }
  .daily-banner .warrior-identity .eyebrow { font-size: 9px; }
  .daily-banner .banner-aside button { font-size: 11px; padding: 6px 10px; }
  .daily-rewards { gap: 6px 16px; font-size: 10px; margin: 10px 0 18px; }
  .daily-rewards > span:last-child { width: 100%; margin: 0; }
  .growth-heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .growth-heading h1 { font-size: 27px; }
  .growth-heading .eyebrow { font-size: 9px; }
  .growth-heading p:last-child { font-size: 12px; }
  .growth-heading button { padding: 6px 10px; font-size: 11px; }
  .growth-hero { grid-template-columns: minmax(0,1fr) 85px; gap: 12px; padding: 24px 20px; border-radius: 18px; }
  .growth-hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .growth-hero h2 { font-size: 28px; letter-spacing: -1px; }
  .growth-hero-copy > p:not(.eyebrow) { font-size: 12px; }
  .growth-hero-emblem .emblem { width: 85px; }
  .growth-hero-emblem > span:last-child { font-size: 8px; letter-spacing: 1px; }
  .growth-hero-emblem .emblem-number { font-size: 13px; min-width: 24px; }
  .growth-xp { font-size: 24px; margin-top: 18px; }
  .growth-xp .flame-count { margin-top: 8px; }
  .growth-next { font-size: 11px; }
  .growth-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 14px 0 22px; }
  .growth-stats > div { padding: 12px 18px; }
  .growth-stats strong { font-size: 24px; }
  .growth-stats > div > span { font-size: 11px; }
  .summit-trail, .trophy-room { padding: 18px 14px; }
  .milestone-trail { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .rank-stop { padding: 12px 4px; }
  .rank-stop .emblem { width: 55px; }
  .rank-stop strong { font-size: 10px; }
  .rank-stop summary > span:not(.emblem) { font-size: 9px; }
  .summit-promise { align-items: flex-start; gap: 14px; padding: 20px 16px; }
  .summit-promise .emblem { width: 50px; }
  .summit-promise h2 { font-size: 16px; }
  .summit-promise p { font-size: 12px; }
  .trophy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .trophy summary { padding: 18px 10px 14px; }
  .trophy .emblem { width: 72px; }
  .trophy strong { font-size: 12px; }
  .academy-reward { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .academy-reward > div { flex: 1; min-width: 0; }
  .academy-reward button { margin-left: 67px; }
  .growth-hero .expedition-art { object-position: 70% center; }
}

.emblem.earned.rank-copper { --medal-metal: #c99c78; --medal-light: #fbe5cb; --medal-ink: #67452d; }
.emblem.earned.rank-silver { --medal-metal: #b7c8ce; --medal-light: #edf5f5; --medal-ink: #3c5a63; }
.rank-stop, .trophy { scroll-margin-top: 96px; }

.flame-mark { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.flame-count { gap: 4px; }
.flame-example { white-space: nowrap; color: #775218; }
.badge-row .badge-icon .emblem { width: 32px; }
.trek-row .flame-count { font-size: 11px; }

/* Growth has one level journey. Detailed collections are optional. */
.growth-summary { margin: 16px 4px 24px; color: var(--muted); font-size: 12px; }
.next-badge { display: flex; gap: 22px; align-items: center; padding: 24px 28px; background: #fffdf5; border-color: #e0d2af; }
.next-badge > div:first-child { flex-shrink: 0; }
.next-badge .emblem { width: 66px; }
.next-badge h2 { margin-bottom: 8px; }
.next-badge p { margin-bottom: 8px; }
.next-badge button { min-height: 44px; }
.earned-badge-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.earned-badge-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.earned-badge-list .emblem { width: 45px; }
.earned-badge-list li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.level-guide > summary, .badge-library > summary { min-height: 44px; display: list-item; align-content: center; font-size: 14px; }
.level-list { list-style: none; padding: 0; margin: 16px 0 0; }
.level-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.level-number { width: 30px; height: 30px; border-radius: 50%; background: #eef1eb; color: #586459; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.level-row.reached .level-number { background: #dfeee0; color: #215032; }
.level-row > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.level-row > span:last-child { font-size: 12px; flex-shrink: 0; }
.badge-library .trophy-room { margin-top: 18px; padding: 0; }
@media(max-width:700px) {
  .next-badge { align-items: flex-start; gap: 14px; padding: 20px 16px; }
  .next-badge .emblem { width: 50px; }
  .next-badge h2 { font-size: 17px; }
  .earned-badge-list { grid-template-columns: 1fr; }
}

/* Teammate profiles are full pages; the signed-in identity never changes. */
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.button-link:hover { border-color: var(--brand); color: var(--brand-dark); }
.button-link.small { padding: 6px 12px; font-size: 12px; }
.button-link.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.member-heading h1 { overflow-wrap: anywhere; }
.member-heading > div { min-width: 0; }
.member-heading > a { flex-shrink: 0; }
.profile-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.profile-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: #31533e; text-decoration: none; font-size: 12px; }
.profile-sections a:hover { background: var(--brand-tint); border-color: var(--brand); }
.member-growth { padding-top: 26px; padding-bottom: 26px; }
.member-growth .growth-hero-emblem .emblem { width: 145px; }
#member-growth, #member-tasks, #member-activity, #member-learning, #member-tickets { scroll-margin-top: 100px; }
.profile-date-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.profile-date-filter label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.profile-date-filter input { min-width: 180px; }
.member-day { content-visibility: auto; contain-intrinsic-size: auto 220px; }
.member-day h3 { margin: 0; font-size: 17px; }
.member-day h4 { margin: 16px 0 8px; font-size: 14px; }
.member-day .section-heading p { margin: 6px 0 0; }
.dated-task { margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.dated-task:last-child { border-bottom: none; }
.dated-task .row { border-bottom: 0; padding-bottom: 6px; }
.planned-note { padding: 8px 12px; background: var(--pending-bg); color: var(--pending-text); border: 1px solid var(--pending-border); border-radius: 9px; font-size: 12px; }
.task-events { list-style: none; padding: 0; margin: 14px 0 0; }
.task-events li { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.task-events .event-time { font: 11px ui-monospace, monospace; color: var(--muted); min-width: 68px; padding-top: 3px; }
.task-events li > div { min-width: 0; font-size: 12px; }
.task-events p { margin: 5px 0 0; overflow-wrap: anywhere; }
.handoff-note { padding: 12px 14px; border-left: 3px solid #b79a5a; background: #faf8ed; overflow-wrap: anywhere; }
.profile-topic { padding: 12px 0; border-bottom: 1px solid var(--border); }
.profile-topic > summary { min-height: 44px; align-content: center; font-size: 13px; }
.learning-review { margin: 12px 0; border-left: 2px solid var(--border); padding-left: 14px; }
.learning-review p { overflow-wrap: anywhere; }
@media(max-width:700px) {
  .member-heading { flex-wrap: wrap; }
  .member-heading > div { width: 100%; }
  .member-growth { grid-template-columns: minmax(0,1fr) 82px; }
  .member-growth .growth-hero-emblem .emblem { width: 82px; }
  .member-day .section-heading { align-items: flex-start; }
  .member-day h3 { font-size: 15px; }
  .profile-date-filter > div { flex: 1 0 100%; }
  .task-events li { gap: 9px; }
  .task-events .event-time { min-width: 62px; }
}
/* Shared workspace finish: clear hierarchy, compact progress and room for the work. */
:root {
  --canvas: #f9f8f6;
  --border: #e2ded6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --ink-green: #163c31;
  --quiet-surface: #f6f7f3;
}
[hidden] { display: none !important; }
html { scroll-padding-top: 104px; }
.top { height: 76px; background: var(--surface); gap: 20px; }
.brand { gap: 20px; }
.brand-logo { object-fit: contain; }
.brand span { border-left: 1px solid var(--border); padding-left: 20px; }
.who { max-width: 36%; }
#member { overflow-wrap: anywhere; }
.tabs { top: 76px; background: var(--surface); padding-top: 28px; }
.tabs button { min-height: 48px; border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.tabs button:hover { background: var(--quiet-surface); color: var(--brand-dark); }
.tabs button[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); border-color: #c8dfcf; box-shadow: none; }
.nav-caption { color: var(--muted); }
.nav-motto { line-height: 1.5; }
main { width: auto; max-width: 1510px; padding-top: 32px; }
#view { min-width: 0; }
#view > section, #view > header { min-width: 0; }
h1 { font-size: clamp(26px, 2.6vw, 30px); letter-spacing: -.8px; text-wrap: balance; }
h2 { letter-spacing: -.3px; }
p { line-height: 1.65; }
.card { border-radius: 16px; box-shadow: none; }
.page-heading, .growth-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 0 26px; }
.page-heading > div, .growth-heading > div { min-width: 0; }
.page-heading h1 { margin: 0 0 8px; }
.page-heading p:last-child, .growth-heading p:last-child { color: var(--muted); margin-bottom: 0; max-width: 64ch; }
.page-heading-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.date-chip { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; }
button, .button-link, summary { transition: background-color .15s, border-color .15s, color .15s; }
button.small, .button-link.small { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.button-link:hover { background: var(--quiet-surface); }
.row { gap: 12px; }
.row-main { min-width: 0; overflow-wrap: anywhere; }
.empty { padding: 20px 0; line-height: 1.65; color: var(--muted); font-style: normal; }
#notice:empty { display: none; }
#notice { font-size: 12px; background: var(--pending-bg); color: var(--pending-text); border-color: var(--pending-border); }
#record-source { padding-top: 16px; margin-top: 26px; border-top: 1px solid var(--border); }
.foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.foot a { padding: 8px 0; text-underline-offset: 3px; }
summary { min-height: 44px; align-content: center; line-height: 1.5; cursor: pointer; }
details.card > summary { font-weight: 600; }
details.card[open] > summary { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
details.card > .card:last-child { margin-bottom: 0; }

/* The daily page starts with a little progress, then today's tasks. */
.warrior-banner { min-height: 178px; padding: 24px 28px; }
.warrior-identity h1 { font-size: 30px; letter-spacing: -.8px; }
.banner-progress { margin-top: 12px; }
.daily-rewards { flex-wrap: wrap; padding: 13px 4px 20px; gap: 12px 24px; }
.daily-rewards span { font-size: 12px; }
.mission-board { border-top: 3px solid var(--brand-dark); }
.mission-board .empty { background: var(--quiet-surface); border-color: var(--border); }
.next { background: var(--brand-tint); border-color: #c8dfcf; }
.training-next { background: var(--surface); border-left-color: var(--gold); }

/* One team page: delivery and growth live on the same member card. */
.team-banner { display: flex; position: relative; isolation: isolate; overflow: hidden; min-height: 180px; padding: 28px 32px; margin-bottom: 20px; border-radius: 16px; background: var(--ink-green); color: white; }
.team-banner > div { position: relative; z-index: 1; max-width: 54%; }
.team-banner .eyebrow { color: #ead39d; }
.team-banner h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 10px; text-wrap: balance; }
.team-banner p:last-child { color: #d4e5da; font-size: 13px; max-width: 44ch; margin-bottom: 0; }
.team-banner img { position: absolute; right: 0; bottom: 0; width: 45%; height: 100%; object-fit: cover; object-position: right center; opacity: .8; }
.team-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 30px; }
.team-stats .card { margin: 0; padding: 18px 22px; border-bottom: 3px solid var(--border); }
.team-stats .stat { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0 0 7px; }
.team-stats .muted { margin: 0; }
.member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 16px; margin-bottom: 28px; }
.member-card { display: flex; flex-direction: column; min-width: 0; }
.member-card-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.member-card-heading > div:nth-child(2) { flex: 1; min-width: 0; }
.member-card-heading h3 { font-size: 18px; overflow-wrap: anywhere; }
.member-card-heading .eyebrow { margin: 0 0 4px; }
.member-card-heading .pill { font-size: 11px; }
.member-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--brand-tint); color: var(--brand-dark); font-size: 20px; font-weight: 700; }
.member-level { display: flex; gap: 14px; align-items: center; padding: 18px 0 8px; }
.member-level .emblem { width: 48px; flex-shrink: 0; }
.member-level p { margin: 2px 0 0; }
.member-next { margin: 4px 0 18px; }
.member-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; background: var(--quiet-surface); border-radius: 12px; min-height: 88px; }
.member-current .eyebrow { width: 100%; margin: 0; color: var(--muted); }
.member-current strong { flex: 1; min-width: 100px; overflow-wrap: anywhere; }
.member-current p { margin: 0; }
.member-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.member-metrics dt { font-size: 11px; line-height: 1.5; color: var(--muted); }
.member-metrics dd { font-size: 22px; font-weight: 650; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.member-metrics dd span { font-size: 12px; font-weight: 400; color: var(--muted); }
.member-alert { padding: 10px; background: var(--pending-bg); color: var(--pending-text); border-radius: 10px; overflow-wrap: anywhere; }
.member-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.member-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.member-footer .button-link { width: 100%; }
.team-attention { grid-template-columns: repeat(2,minmax(0,1fr)); }
.team-wins .feed li { display: flex; align-items: flex-start; gap: 12px; }
.team-wins .feed p { margin: 3px 0 0; }
.team-details > .card { margin-top: 12px; border: 0; padding: 0; }
.team-details .column { min-width: 155px; }
.growth-explainer > p { max-width: 82ch; }

/* Academy, tickets, growth and profiles share the same reading rhythm. */
.training-header { background: var(--surface); color: var(--text); padding: 26px 28px; border: 1px solid var(--border); border-left: 4px solid var(--brand-dark); border-radius: 16px; }
.training-header h1 { font-size: clamp(26px,2.6vw,30px); max-width: 30ch; }
.training-header .eyebrow { color: var(--brand-dark); }
.training-header .muted { color: var(--muted); }
.academy-reward { border-radius: 16px; }
.academy-path > .row { padding: 20px 0; }
.learning-topics { gap: 12px; }
.learning-topics .card { background: var(--quiet-surface); }
.profile-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.profile-sections a { min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.profile-sections a:hover { background: var(--brand-tint); }
.profile-date-filter { gap: 12px; }
.member-day { scroll-margin-top: 100px; }
.member-day h3 { font-size: 18px; }
.growth-hero { border-radius: 16px; }
.trophy-grid { grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); }
.trophy { min-width: 0; }
.trophy > summary { min-height: 240px; }
pre { max-width: 100%; overflow-x: auto; }
.table-wrap { max-width: 100%; }
@media(min-width:1600px) { .member-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:1100px) {
  .page-heading { flex-wrap: wrap; }
  .team-stats .card { padding: 16px; }
  .member-grid { gap: 14px; }
  .member-card { padding: 18px; }
}
@media(max-width:700px) {
  html { scroll-padding-top: 20px; }
  .top { height: auto; gap: 10px; }
  .brand { min-width: 0; gap: 12px; }
  .brand span { padding-left: 12px; }
  .who { max-width: 100%; font-size: 12px; }
  .tabs { top: auto; padding: 8px 12px; gap: 4px; }
  .tabs button { min-height: 44px; padding: 10px 14px; }
  main { padding: 24px 16px; }
  .page-heading, .growth-heading { flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
  .page-heading-actions { flex-wrap: wrap; }
  .warrior-banner { min-height: 172px; padding: 22px; gap: 8px; }
  .warrior-identity h1 { font-size: 28px; }
  .banner-aside { margin: 6px 0 0; }
  .daily-rewards { gap: 8px 18px; }
  .team-banner { padding: 24px; min-height: 200px; }
  .team-banner > div { max-width: 78%; }
  .team-banner img { width: 40%; opacity: .3; }
  .team-banner h2 { font-size: 24px; }
  .team-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
  .team-stats .card { padding: 16px; }
  .member-grid, .team-attention { grid-template-columns: minmax(0,1fr); }
  .member-grid { gap: 16px; }
  .member-card { padding: 20px; }
  .card { padding: 20px; }
  .training-header { padding: 22px; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .member-day h3 { font-size: 16px; }
  .trophy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { button, .button-link, summary { transition: none; } }

@media(max-width:700px) {
  /* Keep text readable instead of squeezing it between status and action controls. */
  .row > .row-main { flex: 1 0 100%; width: 100%; }
  .row > .button-link, .row > button { max-width: 100%; }
}

/* One Work destination; linked sections stay bookmarkable and keyboard accessible. */
.work-actions { margin-bottom: 22px; }
.work-sections { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.work-sections a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 600; }
.work-sections a:hover { color: var(--brand-dark); border-color: var(--brand); }
.work-sections a[aria-current="page"] { background: var(--brand-tint); border-color: #c8dfcf; color: var(--brand-dark); }
.work-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; padding: 0 6px; border-radius: 6px; background: var(--quiet-surface); font-size: 11px; font-variant-numeric: tabular-nums; }
@media(max-width:700px) {
  .work-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .work-sections a { justify-content: space-between; padding: 10px 12px; }
}

/* Courses reveal the next step; prerequisites remain visible without offering locked actions. */
.academy-course-heading { margin: 28px 0 18px; }
.locked-courses { margin: 28px 0; }
.locked-courses > .section-heading { margin-bottom: 18px; }
.locked-courses .grid, .course-catalog .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.locked-course, .course-outline { min-width: 0; }
.locked-course { background: var(--quiet-surface); border-style: dashed; }
.locked-course h3, .course-outline h3 { font-size: 18px; }
.locked-course .eyebrow { color: var(--muted); }
.course-requirement { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; line-height: 1.6; }
.locked-course ul { padding-left: 20px; }
.locked-course li { padding: 5px 0; }
.course-catalog { margin-top: 28px; }
@media(max-width:700px) { .locked-courses .grid, .course-catalog .grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width:700px) {
  .academy-reward { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: start; }
  .academy-reward .emblem { width: 48px; }
  .academy-reward > button { grid-column: 2; justify-self: start; }
}

/* Learning dialog: read the guide, then learn with AI */
.learn-steps { padding-left: 22px; }
.learn-steps li { margin: 0 0 16px; }
.learn-steps h3 { margin: 0 0 2px; }
.learn-steps p { margin: 0 0 8px; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); }
.button-link.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button-link.primary:hover { background: var(--brand-dark); }

/* A visible milestone route and a complete, earned-only achievement shelf. */
.earned-collection { border-top: 3px solid var(--gold); }
.earned-collection .eyebrow { color: var(--gold); }
.earned-badge-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 14px; margin-top: 20px; }
.earned-badge-list li { display: block; min-width: 0; }
.earned-badge { height: 100%; background: #fffdf5; border: 1px solid #e8dabb; border-radius: 14px; }
.earned-badge summary { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 12px; list-style: none; }
.earned-badge summary::-webkit-details-marker { display: none; }
.earned-badge summary:hover { background: var(--gold-bg); border-radius: 14px; }
.earned-badge-list .emblem { width: 74px; flex-shrink: 0; }
.earned-badge strong { font-size: 14px; line-height: 1.4; }
.earned-badge .eyebrow { font-size: 9px; margin: 0; }
.earned-confirmation { color: var(--brand-dark); font-size: 11px; font-weight: 600; }
.earned-badge > p { border-top: 1px solid #e8dabb; padding: 14px; margin: 0; font-size: 12px; }
.collection-note { margin: 16px 0 0; }
.level-guide { overflow: hidden; }
.journey-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 4px; color: var(--muted); font-size: 12px; }
.journey-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.journey-key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid var(--border); }
.journey-key.reached { background: var(--brand-dark); border-color: var(--brand-dark); }
.journey-key.current { background: #e3bc6b; border-color: var(--gold); }
.journey-key.locked { background: var(--quiet-surface); border-color: #a5aaa3; }
.journey-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #b8c9bd var(--quiet-surface); scrollbar-width: thin; border-radius: 12px; }
.journey-chart { display: block; width: 100%; min-width: 1000px; height: auto; }
.journey-chart text { text-anchor: middle; font-family: inherit; }
.journey-area { fill: var(--brand-tint); }
.journey-route { fill: none; stroke: #c9d3cb; stroke-width: 3; stroke-dasharray: 5 7; stroke-linecap: round; }
.journey-progress { fill: none; stroke: var(--brand-dark); stroke-width: 4; stroke-linecap: round; }
.journey-flag { stroke: var(--gold); fill: #e3bc6b; stroke-width: 2; }
.journey-dot { fill: var(--surface); stroke: #a5aaa3; stroke-width: 2; }
.journey-halo { fill: transparent; }
.journey-number { font-size: 12px; font-weight: 700; fill: var(--muted); }
.journey-stop.reached .journey-dot { fill: var(--brand-dark); stroke: var(--brand-dark); }
.journey-stop.reached .journey-number { fill: white; }
.journey-stop.current .journey-dot { fill: #f8e8bf; stroke: var(--gold); stroke-width: 2; }
.journey-stop.current .journey-halo { fill: #fdf3da; stroke: #e3bc6b; stroke-width: 1; }
.journey-stop.current .journey-number { fill: var(--gold); }
.journey-rank { font-size: 11px; font-weight: 700; fill: var(--text); }
.journey-place { font-size: 10px; fill: var(--muted); }
.journey-xp { font-size: 11px; font-weight: 600; fill: var(--text); }
.journey-state { font-size: 8px; letter-spacing: .6px; fill: var(--muted); }
.journey-stop.current .journey-state { fill: var(--gold); font-weight: 700; }
.journey-help { margin-bottom: 0; }
.journey-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:700px) {
  .earned-badge-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .earned-badge summary { padding: 16px 10px; }
  .earned-badge-list .emblem { width: 64px; }
}

/* Delivery is the primary measure; learning stays visible beside it. */
.delivery-progress { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin: 20px 0 24px; }
.delivery-progress .card { margin: 0; min-width: 0; }
.task-progress { border-left: 4px solid var(--brand-dark); }
.learning-progress { background: var(--quiet-surface); }
.delivery-progress h2 { font-size: 18px; margin-bottom: 12px; }
.delivery-progress .eyebrow { color: var(--muted); font-size: 9px; }
.progress-total { margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.progress-total strong { font-size: 30px; line-height: 1.2; }
.progress-total > span { color: var(--muted); font-size: 13px; }
.delivery-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin: 14px 0 0; }
.delivery-stages dt { color: var(--muted); font-size: 11px; }
.delivery-stages dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
@media(max-width:700px) {
  .delivery-progress { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .delivery-progress .card { padding: 18px; }
  .delivery-stages { gap: 8px; }
}
/* Today keeps this overview short so assigned work remains near the top. */
.delivery-progress.compact { grid-template-columns: 1.2fr 1fr; gap: 12px; margin: 10px 0 22px; }
.delivery-progress.compact .card { padding: 14px 16px; }
.delivery-progress.compact h2 { font-size: 14px; margin-bottom: 6px; }
.delivery-progress.compact .eyebrow, .delivery-progress.compact .delivery-stages, .delivery-progress.compact .card > .muted { display: none; }
.delivery-progress.compact .progress-total { margin-bottom: 8px; }
.delivery-progress.compact .progress-total strong { font-size: 25px; }
.delivery-progress.compact .progress-total > span { font-size: 11px; }
@media(max-width:700px) { .delivery-progress.compact .card { padding: 14px 12px; } }
.delivery-progress.compact .task-progress > .muted { display: block; margin: 6px 0 0; font-size: 10px; }
