@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/hanken-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/hanken-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --grey: #6B6B6B;
  --hairline: #E6E6E6;
  --tint: #F5F5F5;
  --yellow: #F8FF22;
  --blue: #00AEFF;
  --purple: #C300FF;
  --pink: #EE0087;
  --navy: #1E0051;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  padding: 28px 40px 72px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1380px; margin: 0 auto; }
.zone { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey); }
.topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 22px; height: 22px; background: url('/raven.svg') center / contain no-repeat; display: inline-block; }
.brand .word { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.topline .right { display: flex; gap: 16px; align-items: center; }
.stamp { font-size: 12.5px; color: var(--grey); }
.linkbtn { font: inherit; font-size: 12.5px; font-weight: 600; background: none; border: none; color: var(--navy); cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--pink); }
.stats { display: flex; align-items: flex-end; padding: 30px 0 26px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; row-gap: 24px; }
.stat { padding-right: 44px; }
.stat + .stat { border-left: 1px solid var(--hairline); padding-left: 44px; }
.stat .num { font-size: 66px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .num.alert { color: var(--pink); }
.stat .zone { margin-top: 10px; }
.milestones { margin-left: auto; padding-left: 44px; align-self: center; }
.milestones .zone { margin-bottom: 6px; }
.ms { font-size: 16px; line-height: 1.85; }
.ms .kick { color: var(--navy); font-weight: 800; box-shadow: inset 0 -0.35em 0 var(--yellow); }
.ms .when { color: var(--grey); font-size: 12.5px; }
.wsdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.tab { appearance: none; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 0 12px; font: inherit; font-size: 15px; font-weight: 500; color: var(--grey); cursor: pointer; display: inline-flex; align-items: center; }
.tab .count { color: var(--grey); font-size: 12.5px; margin-left: 5px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--blue); }
.context { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 26px 0 28px; }
.context.ruled { border-bottom: 1px solid var(--hairline); }
.context .zone { margin-bottom: 12px; }
.state h3 { font-size: 15px; font-weight: 700; margin: 14px 0 3px; }
.state h3:first-child { margin-top: 0; }
.state p, .state li { margin: 3px 0; }
.state ul { list-style: none; }
.insight { display: flex; gap: 14px; margin: 0 0 9px; }
.insight .date { color: var(--grey); font-size: 12.5px; white-space: nowrap; padding-top: 2px; }
.quiet { color: var(--grey); }
.meeting { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.meeting:last-child { border-bottom: none; }
.meeting .time { color: var(--grey); font-size: 12.5px; white-space: nowrap; padding-top: 3px; min-width: 44px; font-variant-numeric: tabular-nums; }
.meeting .who { color: var(--grey); font-size: 12.5px; }
.meeting .m-title { font-weight: 600; }
.meeting .note { margin-top: 2px; }
.meeting .warn { color: var(--pink); font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.flagrow { padding: 8px 0 8px 14px; border-bottom: 1px solid var(--hairline); border-left: 3px solid transparent; }
.flagrow:last-child { border-bottom: none; }
.flagrow.p-overdue { border-left-color: var(--pink); }
.flagrow .why { font-size: 12.5px; }
.red { color: var(--pink); }
.stack-section { padding: 26px 0 8px; }
.stack-section .zone { margin-bottom: 4px; }
.stackrow { display: flex; align-items: baseline; gap: 18px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--hairline); border-left: 3px solid transparent; }
.stackrow.p-overdue { border-left-color: var(--pink); }
.stackrow.p-high { border-left-color: var(--blue); }
.stackrow.p-medium { border-left-color: var(--purple); }
.stackrow.p-low { border-left-color: var(--hairline); }
.rank { font-size: 22px; font-weight: 800; color: var(--ink); min-width: 30px; font-variant-numeric: tabular-nums; }
.stackrow .left { min-width: 0; flex: 1; }
.stackrow .s-title { font-weight: 600; }
.stackrow .s-meta { font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.stackrow .s-meta .reason { color: var(--ink); font-weight: 700; }
.stackrow .s-meta .reason.red { color: var(--pink); }
.stackrow .s-meta .reason.marine { color: var(--navy); }
.pri { font-weight: 700; }
.pri.marine { color: var(--navy); }
.pri.red { color: var(--pink); }
.stackrow .ws { white-space: nowrap; }
.zone-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.goalrow { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0 12px 14px; border-left: 3px solid var(--navy); border-bottom: 1px solid var(--hairline); }
.goalrow .g-label { font-weight: 700; }
.goalrow .g-outcome { font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.goalcount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.goalcount .n { font-size: 20px; font-weight: 800; margin-right: 6px; }
.goalcount .none { font-weight: 700; font-size: 12.5px; color: var(--pink); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; padding: 22px 0 2px; }
.leg-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--grey); }
.leg-bar { width: 16px; height: 8px; border-radius: 2px; background: var(--hairline); display: inline-block; }
.leg-bar.p-overdue { background: var(--pink); }
.leg-bar.p-high { background: var(--blue); }
.leg-bar.p-medium { background: var(--purple); }
.leg-bar.p-low { background: var(--hairline); }
.boardwrap { overflow-x: auto; }
.board { display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 20px; padding-top: 18px; min-width: 1080px; align-items: start; }
.col { background: #FBFBFB; border: 1px solid var(--hairline); border-radius: 6px; padding: 12px 12px 6px; }
.col .zone { padding-bottom: 10px; border-bottom: 1px solid var(--hairline); margin-bottom: 12px; }
.colempty { font-size: 12.5px; padding: 2px 0 10px; }
.card .cardws { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.card { border: 1px solid var(--hairline); border-left: 3px solid var(--hairline); border-radius: 3px; padding: 10px 12px 9px; margin-bottom: 10px; background: var(--bg); }
.card.p-overdue { border-left-color: var(--pink); }
.card.p-high { border-left-color: var(--blue); }
.card.p-medium { border-left-color: var(--purple); }
.card .title { font-weight: 600; line-height: 1.4; }
.card .meta { font-size: 12.5px; color: var(--grey); margin-top: 6px; line-height: 1.5; }
.card .meta .due-overdue { color: var(--pink); font-weight: 700; }
.card .meta .waiting { color: var(--pink); }
.people { padding-top: 26px; }
.person { padding: 20px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person:last-child { border-bottom: none; }
.person .who-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.person .who-role { font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.person .sub { margin-top: 14px; }
.person .sub .zone { margin-bottom: 6px; }
.person ul { list-style: none; }
.person li { margin: 3px 0; }
.person .watch { color: var(--pink); font-weight: 600; }
.person .chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.person .chip { font-size: 12.5px; display: inline-flex; align-items: center; }
.person .act { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.person .act .a-status { font-size: 12px; color: var(--grey); white-space: nowrap; }
.person .conv .date { color: var(--grey); font-size: 12.5px; }
.ctl { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.ctl select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--bg); color: var(--ink); cursor: pointer; }
.ctl .donebtn, .ctl .notebtn { font: inherit; font-size: 12.5px; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; color: var(--navy); }
.ctl .donebtn:hover, .ctl .notebtn:hover { color: var(--pink); }
.ctl .donebtn.set { color: var(--grey); text-decoration: line-through; }
.noteedit { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.noteedit textarea { flex: 1; font: inherit; font-size: 13.5px; border: 1px solid var(--hairline); border-radius: 3px; padding: 7px 9px; resize: vertical; color: var(--ink); background: var(--bg); }
.noteedit button { font: inherit; font-size: 12.5px; font-weight: 600; border: none; background: var(--ink); color: #fff; border-radius: 3px; padding: 6px 12px; cursor: pointer; }
.addrow { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.addrow input { font: inherit; font-size: 13px; border: 1px solid var(--hairline); border-radius: 3px; padding: 7px 9px; background: var(--bg); color: var(--ink); min-width: 150px; flex: 1; }
.addrow input:focus { outline: none; border-color: var(--blue); }
.addrow button { font: inherit; font-size: 13px; font-weight: 600; border: 1.5px solid var(--ink); background: none; color: var(--ink); border-radius: 3px; padding: 6px 14px; cursor: pointer; }
.addrow button:hover { background: var(--ink); color: #fff; }
.saving { opacity: 0.5; transition: opacity 0.15s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--yellow); color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 5px; box-shadow: 4px 4px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 80; }
.toast.show { opacity: 1; }
.toast.err { background: var(--pink); color: #fff; }
.login-wrap { max-width: 360px; margin: 12vh auto 0; }
.login-wrap .brand { margin-bottom: 26px; }
.login-wrap h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.login-wrap p { color: var(--grey); font-size: 13.5px; margin-bottom: 22px; }
.login-wrap input { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--bg); color: var(--ink); }
.login-wrap input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); border-color: var(--blue); }
.login-wrap button { width: 100%; margin-top: 12px; font: inherit; font-size: 15px; font-weight: 700; padding: 12px; border: none; border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; }
.login-wrap button:hover { background: var(--navy); }
.login-wrap .msg { color: var(--pink); font-size: 13px; font-weight: 600; margin-top: 12px; min-height: 18px; }
.center-note { text-align: center; color: var(--grey); padding: 60px 0; }
@media (max-width: 760px) {
  body { padding: 18px 16px 56px; }
  .stat { padding-right: 22px; }
  .stat + .stat { padding-left: 22px; }
  .stat .num { font-size: 44px; }
  .milestones { margin-left: 0; padding-left: 0; flex-basis: 100%; }
  .context { grid-template-columns: 1fr; gap: 26px; }
  .person { grid-template-columns: 1fr; gap: 20px; }
  .tabs { gap: 16px; }
  .rank { min-width: 24px; font-size: 18px; }
  .stackrow { flex-wrap: wrap; gap: 0 14px; }
  .stackrow .ws { flex-basis: 100%; text-align: left; margin-top: 5px; padding-left: 38px; }
}
