/* Design values from the Figma file (see docs/ee-design-tokens.md). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url("/static/fonts/lora-400.woff2") format("woff2"); }

:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --text: #17221e;
  --muted: #6b7973;
  --muted-on-dark: #94a19b;
  --sidebar: #153c32;
  --sidebar-line: #224d42;
  --sidebar-text: #fffdf7;
  --primary: #2f7d5d;
  --lime: #c9dc76;
  --soft: #e4f2e8;
  --card-featured: #092b20;
  --card-dark: #172c27;
  --card-light: #e9e6da;
  --on-dark: #fffdf7;
  --on-dark-muted: #e9e6da;
  --on-dark-soft: #9bb58f;
  --heading: #16352a;
  --eyebrow: #315b48;
  --sidebar-w: 248px;
  --radius-card: 22px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 "Inter", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar { background: var(--sidebar); color: var(--sidebar-text); padding: 28px 20px; display: flex; flex-direction: column; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.monogram { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sidebar); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.brand-name { font-weight: 700; font-size: 24px; letter-spacing: .01em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--on-dark-muted); }
.nav a:hover, .nav a:focus-visible { background: var(--sidebar-line); color: var(--sidebar-text); }
.nav a[aria-current="page"] { background: var(--sidebar-line); color: var(--sidebar-text); font-weight: 600; }
.profile { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--sidebar-line); display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.identity { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 700; font-size: 14px; }
.user-role { font-size: 11px; color: var(--muted-on-dark); }

.workspace { padding: 42px 52px 52px; min-width: 0; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 11px; color: var(--eyebrow); text-transform: uppercase; letter-spacing: .06em; }
.display { margin: 0; font: 400 clamp(32px, 4vw, 52px)/1.02 "Lora", Georgia, serif; color: var(--heading); max-width: 690px; }
.welcome { margin: 0; max-width: 228px; padding-top: 7px; border-top: 1px solid #ccd0c3; font-size: 12px; line-height: 1.5; color: var(--muted); }
.note { color: var(--muted); max-width: 60ch; }

.mosaic { display: grid; grid-template-columns: 5fr 3fr; grid-template-rows: auto auto; gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-card); padding: 28px; min-height: 410px; overflow: hidden; }
.card, .card-body { min-width: 0; }
.card-label { font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; gap: 10px; max-width: 475px; }
.card-title { font: 400 34px/1.1 "Lora", Georgia, serif; }
.card-copy { font-size: 12px; line-height: 1.45; }
.card-go { position: absolute; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--card-featured); display: grid; place-items: center; font-size: 20px; }
.card-featured { background: var(--card-featured); color: var(--on-dark); }
.card-featured .card-title { font-size: 39px; }
.card-featured .card-copy { color: var(--on-dark-muted); }
.card-dark { background: var(--card-dark); color: var(--on-dark); }
.card-dark .card-label, .card-dark .card-copy { color: var(--on-dark-soft); }
.card-light { grid-column: 1 / -1; min-height: 244px; background: var(--card-light); color: var(--heading); }
.card-light .card-label { color: var(--eyebrow); }
.card-light .card-title { font-size: 37px; }
.card-light .card-copy { color: #55625c; }
a.card:hover, a.card:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.card-inactive { cursor: default; }
.card-soon { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; font-size: 10px; font-weight: 600; }

.plain { max-width: 480px; margin: 20vh auto 0; padding: 0 16px; }
.plain h1 { font: 400 40px/1.1 "Lora", Georgia, serif; color: var(--heading); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .profile { margin: 0 0 0 auto; padding: 0; border: 0; }
  .workspace { padding: 28px 16px 40px; }
  .intro { flex-direction: column; align-items: flex-start; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .card, .card-light { min-height: 220px; }
  .card-title, .card-featured .card-title, .card-light .card-title { font-size: 28px; overflow-wrap: anywhere; }
  .card-body { padding-right: 56px; }
}

/* Project phases dashboard */
:root { --line: #dde5df; --lime-soft: #f0f4e8; --pill-bg: #f4f7f2; --muted-soft: #94a19b; --warn: #8a3b12; --warn-bg: #fbeadf; }
.journey { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.eyebrow-s { margin: 0; font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.h-18 { margin: 2px 0 4px; font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--text); }
.h-26 { margin: 3px 0 4px; font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--text); }
.muted-11 { margin: 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.setup { display: grid; grid-template-columns: minmax(200px, 1fr) 2.6fr; gap: 24px; align-items: start; }
.setup-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.selector { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.selector-label { display: flex; flex-direction: column; gap: 1px; }
.helper { font-size: 10px; color: var(--muted-soft); }
.selector select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: 600 13px "Inter", system-ui, sans-serif; }
.button { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: 600 13px "Inter", system-ui, sans-serif; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--sidebar); }
.selector select:focus-visible, .button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.notice { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }

.roadmap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.progress { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.meter { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--soft); appearance: none; -webkit-appearance: none; }
.meter::-webkit-progress-bar { background: var(--soft); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.progress-label { font-weight: 600; font-size: 11px; color: var(--primary); }

.timeline { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; background: var(--surface); border-radius: 18px; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 0; }
.step::before { content: ""; position: absolute; top: 16px; left: 0; right: -12px; height: 2px; background: var(--line); }
.step:last-child::before { right: 0; }
.step-complete::before { background: var(--primary); }
.marker { position: relative; z-index: 1; margin-left: 30px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 11px; color: var(--sidebar); }
.step-complete .marker { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-in-progress .marker { background: var(--lime); border-color: var(--primary); }
.phase-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.step-in-progress .phase-card { background: var(--lime-soft); border-color: var(--lime); }
.pill { display: inline-block; padding: 3px 7px; border-radius: 999px; font-weight: 700; font-size: 9px; background: var(--pill-bg); color: var(--muted); }
.pill-complete { background: var(--soft); color: var(--primary); }
.pill-in-progress { background: var(--lime); color: var(--primary); }
.phase-name { margin: 0; font-weight: 700; font-size: 12px; line-height: 1.3; color: var(--text); }
.phase-dates { margin: 0; font-weight: 600; font-size: 9px; color: var(--muted-soft); }
.step-in-progress .phase-dates { color: var(--primary); }

.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 10px; }
.ws-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ws-card { display: flex; flex-direction: column; gap: 9px; padding: 14px; min-height: 116px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-well { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--primary); font-weight: 700; font-size: 12px; }
.ws-title { margin: auto 0 0; font-weight: 700; font-size: 12px; color: var(--text); }
.ws-action { margin: 0; font-weight: 600; font-size: 9px; color: var(--muted); }
.ws-in-progress { background: var(--sidebar); border-color: var(--sidebar); }
.ws-in-progress .icon-well { background: var(--sidebar-line); color: var(--lime); }
.ws-in-progress .ws-title { color: #fff; }
.ws-in-progress .ws-action { color: #9bcfb0; }
.source { margin: 0; font-size: 11px; color: var(--muted); }
.source-stale { color: var(--warn); font-weight: 600; }

@media (max-width: 900px) {
  .setup, .setup-form { grid-template-columns: minmax(0, 1fr); }
  .roadmap-head, .ws-head { flex-direction: column; align-items: flex-start; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; align-items: flex-start; }
  .step::before { display: none; }
  .marker { margin-left: 0; flex: none; }
  .phase-card { flex: 1; }
  .ws-cards { grid-template-columns: minmax(0, 1fr); }
  .ws-card { min-height: 0; }
}
