:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #748198;
  --line: #e7ebf1;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --navy: #101a2b;
  --teal: #18a990;
  --green: #199b7b;
  --red: #dc5a5a;
  --amber: #dc9a39;
  --blue: #4a86d9;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[data-dashboard-view][hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 238px;
  padding: 25px 17px 17px;
  color: #dce5f2;
  background: var(--navy);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(140deg, #18aa91, #287acb); font-size: 20px; font-weight: 800; }
.brand strong, .brand small, .project-switcher strong, .project-switcher small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .06em; }
.brand small { margin-top: 3px; color: #8594ab; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.workspace-label { margin: 44px 9px 10px; color: #78889f; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.project-switcher { display: flex; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid #29364a; border-radius: 10px; background: #172338; }
.project-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #d1fff5; background: #195e59; font-weight: 700; }
.project-switcher strong { color: #f2f5fa; font-size: 12px; }
.project-switcher small { margin-top: 3px; color: #91a0b4; font-size: 10px; }
.switcher-caret { margin-left: auto; color: #91a0b4; }
.side-nav { display: grid; gap: 5px; margin-top: 29px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 8px; color: #a9b5c7; text-decoration: none; font-size: 12px; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: #fff; background: #1d2c40; }
.nav-link.active { box-shadow: inset 3px 0 #28bea4; }
.nav-icon { width: 17px; color: #7f91a9; text-align: center; font-size: 16px; }
.nav-link.active .nav-icon { color: #58d7bd; }
.sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 13px 10px; border: 1px solid #29364a; border-radius: 9px; background: #172338; }
.live-dot, .eyebrow-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: #32c49b; box-shadow: 0 0 0 3px rgb(50 196 155 / 13%); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { color: #dbe5f1; font-size: 11px; }
.sidebar-note small { margin-top: 4px; color: #8594ab; font-size: 10px; }
.sidebar-footer { padding: 18px 4px 0; color: #64748a; font-size: 8px; font-weight: 700; letter-spacing: .14em; }

.main-content { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 63px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.breadcrumbs { color: #8792a3; font-size: 11px; }
.breadcrumbs span { margin: 0 8px; color: #c3cad4; }
.breadcrumbs strong { color: #344158; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.snapshot-time { color: #8a95a7; font-size: 10px; }
.button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 7px; font-size: 11px; font-weight: 650; }
.button-secondary { border: 1px solid #dfe5ec; color: #4c5a70; background: #fff; }
.button-secondary:hover { border-color: #9dcfc5; color: #137e6a; }
.button:disabled { cursor: wait; opacity: .65; }
.page-content { max-width: 1640px; margin: 0 auto; padding: 24px 28px 20px; }
.page-heading, .section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-heading { margin-bottom: 23px; }
.page-heading-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #76849a; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.eyebrow-dot { width: 6px; height: 6px; flex-basis: 6px; margin: 0; }
h1, h2, p { margin: 0; }
h1 { margin-top: 8px; color: #18243a; font-size: 26px; letter-spacing: -.04em; }
.subtitle { margin-top: 6px; color: #7c8798; font-size: 12px; }
.sprint-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 310px; padding: 9px 12px; border: 1px solid #e1e9ed; border-radius: 20px; color: #526379; background: #fff; font-size: 10px; font-weight: 650; }
.chip-icon { color: #189c82; font-size: 14px; }
.notice { margin: 0 0 16px; padding: 11px 13px; border-radius: 8px; font-size: 11px; }
.notice-info { border: 1px solid #dceaf0; color: #5c7180; background: #f0f8fa; }
.notice-error { border: 1px solid #f1cccc; color: #a83c3c; background: #fff2f2; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 2px 6px rgb(26 39 61 / 2%); }
.metric-card { min-height: 130px; padding: 16px 17px 14px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: #8b96a7; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.metric-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 700; }
.icon-blue { color: #4a86d9; background: #edf4ff; }
.icon-violet { color: #8062cc; background: #f2efff; }
.icon-green { color: #179978; background: #e9f8f2; }
.icon-orange { color: #d8872b; background: #fff4e6; }
.metric-value { margin-top: 9px; color: #19263b; font-size: 28px; font-weight: 750; letter-spacing: -.05em; }
.metric-foot { margin-top: 6px; color: #8993a3; font-size: 10px; }
.metric-emphasis { color: #4c5a70; font-weight: 700; }
.metric-progress { height: 5px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: #edf0f4; }
.metric-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #21b494, #39c7a2); transition: width .3s ease; }
.metric-card-alert .metric-value { color: #c45c36; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; margin-top: 14px; }
.panel { min-height: 206px; padding: 18px 19px; }
.panel-heading { align-items: flex-start; }
.panel h2, .section-heading h2 { color: #1c2940; font-size: 14px; letter-spacing: -.02em; }
.panel-heading p { margin-top: 5px; color: #8993a3; font-size: 10px; }
.subtle-count { color: #8a95a7; font-size: 10px; }
.status-chart { display: grid; gap: 12px; margin-top: 17px; }
.status-row { display: grid; grid-template-columns: minmax(88px, 1fr) minmax(80px, 3fr) 28px; align-items: center; gap: 10px; color: #5b687d; font-size: 10px; }
.status-track { height: 7px; overflow: hidden; border-radius: 8px; background: #f0f2f6; }
.status-track span { display: block; height: 100%; border-radius: inherit; background: #58bba6; }
.status-row:nth-child(3n + 2) .status-track span { background: #6a9bdd; }
.status-row:nth-child(3n) .status-track span { background: #aaa0db; }
.status-count { color: #8691a3; text-align: right; font-variant-numeric: tabular-nums; }
.panel-icon { color: #188f7a; font-size: 18px; }
.worklog-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 23px; }
.worklog-summary > div { padding: 12px; border-radius: 8px; background: #f6f9fb; }
.worklog-summary strong, .worklog-summary span { display: block; }
.worklog-summary strong { color: #1c2940; font-size: 20px; letter-spacing: -.04em; }
.worklog-summary span { margin-top: 4px; color: #8a95a7; font-size: 10px; }
.worklog-note { margin-top: 13px; color: #929cad; font-size: 9px; line-height: 1.5; }

.section-block { margin-top: 29px; scroll-margin-top: 80px; }
.sprint-performance-block { margin-top: 22px; }
.team-sprint-filters { display: grid; width: 270px; gap: 5px; }
.team-filter-label { color: #78859a; font-size: 10px; font-weight: 650; }
.sprint-filter-label { color: #78859a; font-size: 10px; font-weight: 650; }
.sprint-filter { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #e1e6ed; border-radius: 7px; color: #59677c; background: #fff; font-size: 10px; }
.sprint-performance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.sprint-performance-card { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.sprint-performance-card span, .sprint-performance-card strong, .sprint-performance-card small { display: block; }
.sprint-performance-card span { color: #8994a5; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.sprint-performance-card strong { margin-top: 8px; color: #1c2940; font-size: 21px; letter-spacing: -.04em; }
.sprint-performance-card small { margin-top: 4px; color: #8993a3; font-size: 9px; }
.sprint-team-panel { min-height: 0; margin-bottom: 12px; padding: 15px 17px; }
.sprint-team-table { min-width: 720px; }
.sprint-team-table td:first-child { color: #2f3d54; font-weight: 700; }
.sprint-burndown-panel { min-height: 0; padding: 15px 17px; }
.burndown-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.burndown-chart-grid h3 { margin: 0 0 5px; color: #647187; font-size: 9px; font-weight: 650; }
.burndown-chart { min-height: 150px; }
.burndown-chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.burndown-gridline { stroke: #e9edf2; stroke-width: 1; }
.burndown-line { fill: none; stroke: #159b81; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.burndown-dot { fill: #159b81; stroke: #fff; stroke-width: 1.5; }
.burndown-axis-label { fill: #8993a3; font-family: inherit; font-size: 8px; }
.burndown-empty { display: grid; min-height: 130px; place-items: center; color: #8993a3; font-size: 10px; text-align: center; }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { margin-top: 6px; font-size: 17px; }
.section-description { margin: -4px 0 11px; color: #8993a3; font-size: 10px; }
.target-pill { padding: 6px 9px; border: 1px solid #d8eee8; border-radius: 15px; color: #19886f; background: #f1faf7; font-size: 10px; font-weight: 650; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: #8490a2; background: #fafbfd; font-size: 8px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #eef1f5; color: #59667b; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.team-name { color: #2f3d54; font-weight: 700; }
.count-badge { display: inline-flex; min-width: 22px; justify-content: center; padding: 3px 6px; border-radius: 6px; color: #54647b; background: #f1f3f7; font-size: 9px; font-weight: 700; }
.blocked-count { color: #bd5a43; background: #fff0ec; }
.worklog-cell { min-width: 105px; }
.mini-progress { height: 5px; margin-bottom: 4px; overflow: hidden; border-radius: 5px; background: #edf0f3; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: #36b698; }
.worklog-cell small { color: #8994a4; font-size: 9px; }
.release-table { min-width: 900px; }
.release-progress-cell { min-width: 155px; }
.release-progress-bar { display: flex; height: 8px; overflow: hidden; border-radius: 8px; background: #edf0f3; }
.release-segment { height: 100%; }
.release-segment.done { background: #6f9c2c; }
.release-segment.in_progress { background: #3479e3; }
.release-segment.to_do { background: #747c88; }
.release-progress-cell small { color: #8994a4; font-size: 9px; }
.release-controls { display: flex; align-items: center; gap: 8px; }
.release-search, .release-controls select, .team-multiselect > summary { height: 32px; padding: 0 9px; border: 1px solid #e1e6ed; border-radius: 7px; color: #59677c; background: #fff; font-size: 10px; }
.release-controls select { max-width: 150px; }
.team-multiselect { position: relative; width: 100%; }
.team-multiselect > summary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 145px; cursor: pointer; list-style: none; white-space: nowrap; }
.team-multiselect > summary::-webkit-details-marker { display: none; }
.team-filter-options { position: absolute; top: 37px; right: 0; z-index: 5; display: grid; min-width: 210px; max-height: 250px; gap: 2px; overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(26 39 61 / 14%); }
.team-filter-clear { padding: 7px; border: 0; border-bottom: 1px solid var(--line); color: #53627a; background: transparent; text-align: left; font-size: 10px; }
.team-filter-clear:hover:not(:disabled) { background: #f5f8fb; }
.team-filter-clear:disabled { color: #a0a9b7; cursor: default; }
.team-filter-option { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 5px; color: #4c5a70; font-size: 10px; cursor: pointer; }
.team-filter-option:hover { background: #f5f8fb; }
.team-filter-option input { accent-color: #159b81; }
.release-search input { width: 140px; border: 0; outline: 0; color: #3d4b62; background: transparent; font-size: 10px; }
.release-chart-panel { min-height: auto; margin-bottom: 12px; padding: 15px 17px; }
.release-chart-legend { display: flex; flex-wrap: wrap; gap: 13px; color: #8390a2; font-size: 9px; }
.release-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.legend-swatch.released { background: #6f9c2c; }
.legend-swatch.unreleased { background: #3479e3; }
.legend-swatch.archived { background: #747c88; }
.release-status-chart { display: grid; gap: 8px; margin-top: 15px; }
.release-quarter-row { display: grid; grid-template-columns: 90px minmax(100px, 1fr) 55px; align-items: center; gap: 10px; color: #68758a; font-size: 9px; }
.release-quarter-bar { display: flex; height: 11px; overflow: hidden; border-radius: 7px; background: #edf0f3; }
.release-quarter-segment { height: 100%; }
.release-quarter-segment.released { background: #6f9c2c; }
.release-quarter-segment.unreleased { background: #3479e3; }
.release-quarter-segment.archived { background: #747c88; }
.release-quarter-total { color: #8a95a7; text-align: right; font-variant-numeric: tabular-nums; }
.release-badge { display: inline-block; padding: 4px 7px; border-radius: 10px; font-size: 9px; white-space: nowrap; }
.release-badge.released { color: #17836b; background: #eaf8f3; }
.release-badge.unreleased { color: #637493; background: #eef3fb; }
.release-badge.archived { color: #707786; background: #f0f1f3; }
.release-name { color: #344158; font-weight: 700; }
.release-description { max-width: 390px; color: #647187; line-height: 1.45; }
.worklog-team-list { display: grid; gap: 8px; }
.worklog-team { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.worklog-team summary { display: grid; grid-template-columns: minmax(140px, 1fr) 130px 190px 110px 12px; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.worklog-team summary::-webkit-details-marker { display: none; }
.worklog-team summary::after { content: "+"; color: #8b97a8; font-size: 15px; text-align: right; }
.worklog-team[open] summary::after { content: "−"; }
.worklog-team-title { color: #344158; font-size: 11px; font-weight: 700; }
.worklog-summary-stat { color: #8993a3; font-size: 9px; }
.worklog-summary-stat strong { display: block; margin-bottom: 2px; color: #4b5a70; font-size: 10px; }
.worklog-team-period { padding: 9px 14px; border-top: 1px solid #f0f2f5; color: #8993a3; font-size: 9px; }
.member-list { padding: 0 14px 10px; border-top: 1px solid #f0f2f5; }
.member-row { display: grid; grid-template-columns: minmax(140px, 1fr) 115px 110px minmax(190px, 1.4fr) 110px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f3f6; color: #5d6a7d; font-size: 10px; }
.member-row:last-child { border-bottom: 0; }
.member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-hours { color: #59677c; font-variant-numeric: tabular-nums; }
.member-coverage { color: #778398; line-height: 1.4; }
.member-state { justify-self: end; padding: 4px 7px; border-radius: 12px; font-size: 8px; font-weight: 700; text-align: right; }
.member-state.pending { color: #b07324; background: #fff5e8; }
.member-state.complete { color: #138167; background: #eaf8f3; }

.issue-heading { align-items: end; }
.issue-controls { display: flex; gap: 8px; }
.search-box, .issue-controls select { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid #e1e6ed; border-radius: 7px; color: #8a95a6; background: #fff; }
.search-box { gap: 7px; }
.search-box input { width: 170px; padding: 0; border: 0; outline: 0; color: #3d4b62; background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #a3acb9; }
.issue-controls select { min-width: 145px; color: #59677c; font-size: 10px; }
.issue-key { color: #527cb7; font-weight: 700; white-space: nowrap; }
.issue-summary { display: block; max-width: 420px; margin-top: 4px; overflow: hidden; color: #344158; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.issue-type { color: #9aa3b0; font-size: 9px; }
.status-pill { display: inline-block; padding: 4px 7px; border-radius: 10px; color: #586780; background: #f0f2f6; font-size: 9px; white-space: nowrap; }
.status-pill.done, .status-pill.closed, .status-pill.resolved { color: #17836b; background: #eaf8f3; }
.status-pill.blocked { color: #b74e3c; background: #fff0ed; }
.priority { color: #68768b; }
.priority.high, .priority.highest, .priority.critical { color: #ca613f; }
.empty-state { padding: 24px; color: #8a95a7; text-align: center; font-size: 11px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; color: #8993a3; font-size: 9px; }
.pagination-controls { display: flex; align-items: center; gap: 9px; }
.page-button { padding: 5px 8px; border: 1px solid #e1e6ed; border-radius: 6px; color: #58667c; background: #fff; font-size: 9px; }
.page-button:hover:not(:disabled) { border-color: #9dcfc5; color: #137e6a; }
.page-button:disabled { cursor: default; opacity: .45; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding: 14px 0 5px; border-top: 1px solid #e4e8ee; color: #98a1af; font-size: 9px; }
.page-footer span:first-child { font-weight: 750; letter-spacing: .12em; }

@media (max-width: 1050px) {
  .sidebar { width: 205px; }
  .main-content { margin-left: 205px; }
  .page-content { padding-right: 22px; padding-left: 22px; }
  .topbar { padding-right: 22px; padding-left: 22px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sprint-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-table { min-width: 700px; }
}
@media (max-width: 720px) {
  .sidebar { position: static; width: auto; min-height: auto; padding: 13px 16px; }
  .workspace-label, .project-switcher, .sidebar-note, .sidebar-footer { display: none; }
  .brand { padding: 0; }
  .side-nav { display: flex; gap: 4px; margin-top: 13px; overflow: auto; }
  .nav-link { flex: 0 0 auto; padding: 8px; font-size: 10px; }
  .nav-link.active { box-shadow: inset 0 -2px #28bea4; }
  .nav-icon { display: none; }
  .main-content { margin-left: 0; }
  .topbar { position: static; min-height: 52px; padding: 0 16px; }
  .snapshot-time { display: none; }
  .page-content { padding: 22px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .team-sprint-filters { width: 100%; max-width: 360px; }
  .sprint-chip { max-width: 100%; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 116px; padding: 13px; }
  .metric-value { font-size: 24px; }
  .content-grid { grid-template-columns: 1fr; }
  .burndown-chart-grid { grid-template-columns: 1fr; gap: 7px; }
  .section-heading, .issue-heading { align-items: flex-start; flex-direction: column; }
  .release-controls { width: 100%; flex-wrap: wrap; }
  .team-filter-options { right: 0; left: 0; }
  .release-search { flex: 1; }
  .release-search input { width: 100%; }
  .issue-controls { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; min-width: 0; }
  .issue-controls select { min-width: 130px; }
  .table-footer { align-items: flex-start; flex-direction: column; }
  .worklog-summary { grid-template-columns: 1fr; gap: 7px; margin-top: 14px; }
  .worklog-team summary { grid-template-columns: minmax(90px, 1fr) 90px 130px 85px 12px; gap: 6px; padding: 11px 9px; }
  .worklog-summary-stat { font-size: 8px; }
  .member-list { padding-right: 9px; padding-left: 9px; }
  .member-row { grid-template-columns: minmax(90px, 1fr) 1fr 1fr; gap: 6px; font-size: 9px; }
  .member-coverage { grid-column: span 2; }
  .member-state { justify-self: start; }
  .page-footer { flex-direction: column; }
}
