
  :root {
    --ink: #122233; --muted: #516175; --faint: #dce4ec; --page: #f4f6f9;
    --navy: #0a111e; --nav-line: #253347; --mint: #4fdec5; --paper: #fff;
    --radius: 15px;
    font: 15px/1.5 Inter, system-ui, sans-serif;
    color: var(--ink); background: var(--page);
  }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  button, input, select { font: inherit; }
  a { color: #086657; text-underline-offset: .18em; overflow-wrap: anywhere; }
  :focus-visible { outline: 3px solid #126d97; outline-offset: 3px; }
  h1, h2, h3, p { margin: 0; }
  button { cursor: pointer; }
  button, a, label[for] { -webkit-tap-highlight-color: transparent; }
  .skip { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 14px; background: var(--paper); transform: translateY(-160%); }
  .skip:focus { transform: translateY(0); }
  .workspace { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: 100dvh; }
  .sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; min-height: 100dvh; padding: 25px 14px 18px; color: #f5f9fb; background: var(--navy); }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 25px; font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
  .brand img { width: 37px; height: 37px; border: 1px solid #304356; border-radius: 10px; }
  .team-nav { padding-bottom: 17px; margin-bottom: 15px; border-bottom: 1px solid var(--nav-line); }
  .sidebar nav { display: grid; gap: 4px; }
  .sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 11px; border-radius: 8px; color: #aabacc; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .sidebar nav a:hover, .sidebar nav a[aria-current] { color: #f1fbff; background: #17263a; }
  .sidebar nav a[hidden] { display: none; }
  .sidebar nav a[aria-current] .nav-mark { background: var(--mint); border-color: var(--mint); }
  .nav-mark { width: 8px; height: 8px; border: 1px solid #879ab0; border-radius: 2px; }
  .sidebar a:focus-visible { outline-color: var(--mint); }
  .sidebar-meta { margin-top: auto; padding: 15px 10px 0; border-top: 1px solid var(--nav-line); color: #aabacc; font-size: 12px; }
  .main { width: min(100%, 1840px); padding: 30px clamp(20px, 2.25vw, 44px) 64px; }
  .top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
  h1 { font-size: clamp(29px, 3vw, 42px); font-weight: 720; letter-spacing: -.045em; line-height: 1.12; }
  .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 12px; border: 1px solid #cdd8e2; border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 700; text-decoration: none; }
  .action[hidden] { display: none; }
  .action:hover { border-color: #108171; color: #086657; }
  .notice { display: block; padding: 9px 11px; margin: -12px 0 14px; border: 1px solid #eed9cf; border-radius: 9px; color: #853326; background: #fff1ec; font-size: 13px; }
  .notice[hidden] { display: none; }
  .notice.success { color: #0b5949; border-color: #b8ded2; background: #e9f8f3; }
  .overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--faint); border-radius: var(--radius); background: var(--paper); }
  .sprint-context, .progress-card { min-width: 0; padding: 17px 20px; }
  .sprint-context { border-right: 1px solid var(--faint); }
  .sprint-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
  .sprint-control label, .epic-control label { color: var(--ink); font-size: 13px; font-weight: 700; }
  .sprint-dates { margin-top: 9px; color: #176653; font-size: 12px; font-weight: 700; }
  .sprint-goal { margin-top: 4px; max-width: 60ch; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
  .progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 700; }
  .progress-head h2 { font-size: 15px; }
  .progress-head strong { color: #176653; font-size: 14px; font-variant-numeric: tabular-nums; }
  .progress-figure { display: flex; align-items: baseline; gap: 9px; margin: 2px 0 9px; }
  .progress-figure b { font-size: 34px; line-height: 1.14; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
  .progress-figure span { color: var(--muted); font-size: 13px; }
  .progress-meter { display: flex; gap: 3px; height: 9px; overflow: hidden; border-radius: 100px; background: #e7eef3; }
  .progress-meter span { min-width: 0; background: var(--fill); }
  .legend { display: flex; flex-wrap: wrap; gap: 3px 13px; margin: 9px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
  .legend li { display: flex; align-items: center; gap: 5px; }
  .legend b, .lane-count { font-variant-numeric: tabular-nums; }
  .status-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--fill); }
  .next-task { grid-column: 1/-1; display: flex; gap: 3px 10px; flex-wrap: wrap; padding: 9px 20px; border-top: 1px solid var(--faint); background: #f8fafc; color: var(--muted); font-size: 13px; }
  .next-task[hidden] { display: none; }
  .next-task button { padding: 0; border: 0; color: #086657; background: transparent; text-align: left; font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
  .ceremony-section { margin-top: 17px; }
  .ceremony-section .section-heading h2 { font-size: 17px; }
  .ceremony-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
  .ceremony { min-width: 0; padding: 10px 13px; border: 1px solid var(--faint); border-radius: 9px; background: var(--paper); }
  .ceremony h3 { font-size: 13.5px; }
  .ceremony-time { color: #176653; font-size: 12px; font-weight: 700; }
  .ceremony p { color: var(--muted); font-size: 12px; }
  .section { margin-top: 25px; scroll-margin-top: 12px; }
  .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
  .section-heading h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
  .section-heading p { color: var(--muted); font-size: 13px; }
  .board-tools { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-bottom: 11px; }
  .search, .select { min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid #cbd6e2; border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 13px; }
  .search { width: min(100%, 230px); }
  .search::placeholder { color: #536579; }
  .select { max-width: 100%; }
  .epic-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; }
  .filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; flex-basis: 100%; }
  .filter { min-height: 34px; padding: 4px 10px; border: 1px solid var(--faint); border-radius: 7px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 650; }
  .filter[aria-pressed="true"] { background: #dff6ef; border-color: #9ad7c7; color: #124e42; }
  .lanes { display: grid; grid-template-columns: repeat(var(--columns, 6), minmax(172px, 1fr)); align-items: stretch; gap: 9px; overflow-x: auto; padding: 3px 3px 12px; margin-inline: -3px; scrollbar-color: #a5b8c9 transparent; }
  .lane { min-width: 0; min-height: 156px; padding: 8px; border: 1px solid var(--faint); border-radius: 11px; background: #edf1f5; }
  .lane-heading { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 5px; padding: 0 5px; margin-bottom: 7px; }
  .lane-heading h3 { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; line-height: 1.2; white-space: nowrap; }
  .lane-count { padding: 1px 7px; border-radius: 6px; color: var(--label); background: var(--lane-bg); border: 1px solid var(--edge); font-size: 11px; font-weight: 750; }
  .lane-tasks, .epic-group { display: grid; gap: 7px; }
  .epic-group + .epic-group { margin-top: 3px; }
  .epic-heading { margin: 0; padding-inline: 4px; color: #455971; font-size: 11px; font-weight: 720; overflow-wrap: anywhere; }
  .card { width: 100%; padding: 9px 10px 10px; border: 1px solid var(--faint); border-radius: 8px; color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px #14253608; text-align: left; }
  .card:hover { border-color: var(--fill); box-shadow: 0 3px 9px #14253612; }
  .card-title { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 700; line-height: 1.28; overflow-wrap: anywhere; }
  .card-next { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  .card-owner { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #45586a; font-size: 10.75px; font-weight: 720; line-height: 1.3; }
  .lane-more { width: 100%; min-height: 42px; margin-top: 9px; padding: 5px; border: 1px solid #cbd6e2; border-radius: 7px; color: #1b4c63; background: var(--paper); font-size: 12px; font-weight: 700; }
  .lane-more:hover { border-color: #368283; background: #f5fafb; }
  .empty-lane { margin: 0; padding: 12px 7px; color: var(--muted); font-size: 12px; text-align: center; border: 1px dashed var(--edge); border-radius: 8px; }
  .team-tier + .team-tier { margin-top: 16px; }
  .team-tier h3 { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
  .team-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
  .team-role { display: flex; gap: 11px; align-items: flex-start; min-width: 0; padding: 12px; border: 1px solid var(--faint); border-radius: 11px; background: var(--paper); }
  .team-role.is-lead { border-color: #badfd7; background: #edf9f6; }
  .team-role h4 { margin: 0; font-size: 16px; line-height: 1.2; }
  .team-role .team-position { margin-top: 3px; color: #176653; font-size: 12px; font-weight: 700; }
  .team-responsibility, .team-report { margin-top: 4px; color: var(--muted); font-size: 12px; }
  .team-report { font-size: 11px; }
  .daily-progress-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 9px; }
  .daily-progress-controls label { color: var(--muted); font-size: 13px; font-weight: 700; }
  .daily-progress-status { color: var(--muted); font-size: 13px; }
  .daily-progress-rows, .daily-progress-fields { padding: 0; margin: 0; }
  .daily-progress-rows { list-style: none; }
  .daily-progress-row { display: grid; grid-template-columns: minmax(126px, 1fr) minmax(0, 3fr); gap: 12px 20px; padding: 13px 0; border-bottom: 1px solid var(--faint); }
  .daily-progress-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .daily-progress-member { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
  .daily-progress-count { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
  .daily-progress-count .progress-meter { flex: 1; max-width: 130px; }
  .daily-progress-count b { font-variant-numeric: tabular-nums; }
  .daily-progress-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; font-size: 13px; }
  .daily-progress-fields dt { margin-bottom: 2px; color: var(--ink); font-size: 12px; font-weight: 700; }
  .daily-progress-fields dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
  .daily-progress-sources { margin-top: 6px; font-size: 12px; }
  .avatar { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background-color: #dfeae8; color: #176653; font-size: 17px; font-weight: 700; }
  .avatar.has-portrait { background-size: 300% 300%; }
  .owner-avatar { width: 22px; height: 22px; font-size: 10px; }
  #detail-owner { display: flex; align-items: center; gap: 6px; }
  .empty-board { grid-column: 1/-1; padding: 20px; border: 1px solid var(--faint); border-radius: 12px; background: var(--paper); color: var(--muted); }
  .state-ready { --fill: #5186bf; --lane-bg: #edf4fb; --label: #244d77; --edge: #cfdfee; }
  .state-progress { --fill: #3c9b89; --lane-bg: #eaf6f3; --label: #155b4e; --edge: #cce4dc; }
  .state-review { --fill: #8d72ba; --lane-bg: #f2eef9; --label: #59417c; --edge: #ded5ed; }
  .state-blocked { --fill: #c87663; --lane-bg: #faf0eb; --label: #813f31; --edge: #edd7cc; }
  .state-done { --fill: #49a379; --lane-bg: #eaf6ef; --label: #1d6041; --edge: #cce4d5; }
  .state-backlog { --fill: #8193a7; --lane-bg: #edf1f5; --label: #4b5e72; --edge: #d7e1e9; }
  .supplement { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 12px; align-items: start; }
  .supplement.is-single { grid-template-columns: minmax(0, 1fr); }
  .panel { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--faint); border-radius: var(--radius); background: var(--paper); }
  .panel h2 { font-size: 19px; letter-spacing: -.025em; }
  .cadence { list-style: none; padding: 0; margin: 9px 0 0; }
  .cadence li { display: grid; grid-template-columns: minmax(80px, .38fr) minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--faint); font-size: 12px; }
  .cadence li:last-child { border-bottom: 0; padding-bottom: 0; }
  .cadence span { color: var(--muted); }
  .table-wrap { margin-top: 7px; overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
  th, td { padding: 8px 9px 8px 0; border-bottom: 1px solid var(--faint); vertical-align: top; }
  thead th { color: var(--muted); font-size: 11px; }
  tbody th { width: 24%; }
  tbody td { color: var(--muted); }
  .metric-label { display: none; }
  tbody tr:last-child > * { border-bottom: 0; }
  .notes-links { display: block; margin-top: 8px; font-size: 12px; }
  .reviews { display: grid; gap: 8px; margin-top: 7px; }
  .review-entry { border-top: 1px solid var(--faint); padding-top: 7px; }
  .review-entry summary { padding: 4px 0; cursor: pointer; font-size: 14px; font-weight: 720; }
  .review-entry ul { padding-inline-start: 20px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
  .review-entry li { margin-bottom: 5px; }
  dialog { width: min(490px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 21px; border: 1px solid var(--faint); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px #0a111e4d; }
  dialog::backdrop { background: #0a111e8c; }
  .detail-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .detail-status { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 6px; color: var(--label); background: var(--lane-bg); border: 1px solid var(--edge); font-size: 12px; font-weight: 700; }
  .detail-close { min-width: 42px; min-height: 42px; padding: 4px 9px; border: 1px solid var(--faint); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 21px; line-height: 1; }
  .detail-title { margin-top: 12px; font-size: 26px; letter-spacing: -.032em; line-height: 1.16; }
  .detail-fields { margin: 16px 0 0; }
  .detail-fields dt { font-weight: 750; margin-top: 12px; }
  .detail-fields dd { color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }
  @media (max-width: 1080px) {
    .workspace { grid-template-columns: 174px minmax(0, 1fr); }
    .supplement { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 730px) {
    .workspace { display: block; }
    .sidebar { position: static; min-height: 0; padding: 9px 13px; }
    .brand { padding: 0 3px 4px; font-size: 16px; }
    .brand img { width: 30px; height: 30px; }
    .sidebar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
    .team-nav { padding-bottom: 4px; margin-bottom: 4px; }
    .daily-progress-row, .daily-progress-fields { grid-template-columns: 1fr; }
    .sidebar nav a { min-height: 44px; padding: 6px 8px; font-size: 12px; gap: 5px; }
    .nav-mark, .sidebar-meta { display: none; }
    .main { padding: 18px 15px 40px; }
    .top { margin-bottom: 13px; gap: 10px; }
    .overview { grid-template-columns: 1fr; }
    .sprint-context, .progress-card { padding: 12px 14px; }
    .sprint-context { border-right: 0; border-bottom: 1px solid var(--faint); }
    .next-task { padding-inline: 14px; }
    .progress-figure b { font-size: 29px; }
    .section { margin-top: 18px; }
    .ceremony-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 77%); overflow-x: auto; padding: 3px 3px 8px; margin-inline: -3px; scroll-snap-type: x proximity; }
    .ceremony { scroll-snap-align: start; }
    .action, .filter, .search, .select, .lane-more { min-height: 44px; }
    .search { width: 100%; }
    .lanes { grid-template-columns: repeat(var(--columns, 6), minmax(205px, 1fr)); scroll-snap-type: x proximity; }
    .lane { scroll-snap-align: start; }
    #metrics, #metrics tbody, #metrics tr, #metrics td, #metrics th { display: block; }
    #metrics thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    #metrics tr { padding: 8px 0; border-bottom: 1px solid var(--faint); }
    #metrics tbody tr:last-child { border-bottom: 0; }
    #metrics th, #metrics td { width: auto; padding: 2px 0; border: 0; }
    #metrics tbody th { font-size: 13px; }
    .metric-label { display: block; color: var(--ink); font-size: 11px; font-weight: 720; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
