@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f5f7f5;
  --surface: #ffffff;
  --surface-soft: #f6f8f6;
  --ink: #20252c;
  --secondary: #626a75;
  --muted: #626a75;
  --line: #e6e9ed;
  --line-strong: #d4d9df;
  --accent: #167a65;
  --accent-dark: #106551;
  --accent-soft: #eaf4f0;
  --warning: #a05c31;
  --warning-soft: #fff3e9;
  --danger: #b24f43;
  --danger-soft: #fceeea;
  --blue: #486e99;
  --blue-soft: #edf3fa;
  --radius: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea, select { border-radius: 7px; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
button, a { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
input, textarea { caret-color: var(--accent); }
::selection { color: #0c493b; background: #cde8de; }
:focus-visible { outline: 3px solid #8dc9b9; outline-offset: 3px; }
::placeholder { color: #66707c; opacity: 1; }
svg { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-size: 26px; font-weight: 650; line-height: 1.4; letter-spacing: -.035em; }
h2 { font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.55; }
h4 { font-size: 13px; font-weight: 600; line-height: 1.5; }
small { font-size: 12px; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.muted { color: var(--secondary); }
.mono { font-variant-numeric: tabular-nums; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; color: var(--accent); font-size: 12px; font-weight: 500; border: 0; background: transparent; }
.text-link:hover { color: var(--accent-dark); text-decoration: underline; }
.text-link svg { width: 15px; height: 15px; }
.divider { height: 1px; margin: 20px 0; border: 0; background: var(--line); }
.stack { display: grid; gap: 20px; align-content: start; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 5px; color: var(--secondary); background: #eef0f2; font-size: 12px; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; gap: 4px; align-items: center; border-radius: 4px; padding: 2px 6px; background: #f0f2f5; color: var(--secondary); font-size: 12px; line-height: 1.6; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; width: 224px; display: flex; flex-direction: column; padding: 27px 16px 16px; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 25px; }
.brand-symbol { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 34px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; }
.brand-symbol svg { width: 22px; height: 22px; }
.brand-word { font-size: 19px; font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.brand-word span { font-size: 17px; font-weight: 450; color: var(--secondary); }
.brand-subtitle { margin-top: 4px; color: var(--secondary); font-size: 10px; letter-spacing: .12em; }
.workspace-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 26px; padding: 11px 12px; border: 1px solid var(--line); background: #fff; color: #424a55; font-size: 12px; }
.workspace-switch:hover { background: var(--surface-soft); }
.workspace-switch svg { width: 15px; height: 15px; color: var(--secondary); }
.nav-section-label { padding: 0 13px; margin: 0 0 9px; color: #66707c; font-size: 12px; font-weight: 600; letter-spacing: .05em; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 10px 13px; border: 0; border-radius: 7px; background: transparent; color: #626a75; text-align: left; font-size: 13px; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.7; }
.nav-item:hover { background: #f5f7f7; color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; margin-left: auto; padding: 0 5px; border-radius: 5px; font-size: 12px; font-weight: 600; color: #86502e; background: #fbecdf; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { color: var(--accent-dark); background: #d6eae2; }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 11px; border-radius: 7px; background: #f6f8f8; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.demo-note svg { margin-top: 2px; width: 14px; height: 14px; }
.profile { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 16px 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.profile strong { display: block; font-size: 12px; font-weight: 600; }
.profile p, .profile small { display: block; margin-top: 2px; color: var(--secondary); font-size: 12px; }
.profile > svg, .profile > button { margin-left: auto; }
.shell-main { margin-left: 224px; min-width: 0; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--secondary); font-size: 12px; white-space: nowrap; }
.breadcrumb svg { width: 13px; height: 13px; color: #9a9fa6; }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.topbar-actions { display: flex; gap: 16px; align-items: center; }
.searchbox { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; }
.searchbox svg { width: 15px; height: 15px; color: #626a75; }
.searchbox input { min-width: 0; width: 150px; height: 22px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.searchbox:focus-within { border-color: #8dc9b9; box-shadow: 0 0 0 2px #e0f0e9; }
.searchbox kbd { padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; color: #626a75; background: #fff; font-family: inherit; font-size: 10px; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; color: var(--secondary); background: transparent; }
.icon-button:hover { color: var(--ink); background: #f0f3f4; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button .notification-dot, .notification-dot { position: absolute; top: 5px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #c17b50; box-shadow: 0 0 0 2px #fff; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #e3ede7; color: #4f6e5d; font-size: 12px; font-weight: 600; }
.avatar.blue { color: #45617e; background: #e6edf5; }
.avatar.purple { color: #6f5b7c; background: #eee8f0; }
.avatar.amber { color: #805c40; background: #f2e9dc; }
.avatar.rose { color: #875850; background: #f3e8e4; }
.avatar.gray { color: #56626f; background: #e8ecef; }
.content { max-width: 1800px; margin: 0 auto; padding: 31px 34px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.eyebrow { display: none; }
.page-subtitle { margin-top: 8px; color: var(--secondary); font-size: 12px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #424a54; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.button svg, .button-icon { width: 15px; height: 15px; }
.button:hover { border-color: #bdc5cc; background: #f8faf9; }
.button:active { background: #edf0ef; }
.button.primary, button.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.button.primary:hover, button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button.secondary { background: #fff; }
.button.ghost { border-color: transparent; background: transparent; }
.button.ghost:hover { background: #edf1ef; }
.button.danger { border-color: #edc5bd; background: #fff; color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); }
.button.small { min-height: 29px; padding: 5px 10px; font-size: 12px; }
.button[aria-busy="true"] { opacity: .65; pointer-events: none; }
.button:disabled:hover { background: inherit; border-color: inherit; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.metric { min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--secondary); font-size: 12px; font-weight: 500; }
.metric-icon { display: grid; place-items: center; width: 26px; height: 26px; color: #65717e; border-radius: 6px; background: #f4f6f7; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-value { display: flex; align-items: baseline; gap: 4px; margin: 9px 0 7px; color: var(--ink); font-size: 31px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-unit { margin-left: 2px; color: var(--secondary); font-size: 13px; font-weight: 400; letter-spacing: normal; }
.metric-foot { display: flex; gap: 6px; align-items: center; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.metric-foot svg { width: 12px; height: 12px; }
.metric-foot .positive, .positive { color: var(--accent); }
.metric-foot .negative, .negative { color: var(--warning); }
.metric.highlight { border-color: #c7dfd6; background: #f4faf7; }
.metric.highlight .metric-icon { background: #e3f0e9; color: var(--accent); }
.metric.highlight .metric-value { color: #216b55; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.95fr) minmax(290px,1fr); gap: 22px; align-items: start; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 21px; }
.stack > .panel + .panel { margin-top: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 69px; padding: 19px 21px 16px; }
.panel-header h2 { display: flex; align-items: center; gap: 8px; }
.panel-header > .muted { font-size: 12px; }
.panel-subtitle { margin-top: 4px; color: var(--secondary); font-size: 12px; line-height: 1.7; }
.panel-body { padding: 0 21px 20px; }
.panel-header + .panel-body { padding-top: 1px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.section-heading h2 { font-size: 15px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-tabs { display: inline-flex; gap: 4px; align-items: center; border-radius: 7px; padding: 3px; background: #f1f3f5; }
.filter-tab { min-height: 29px; padding: 5px 12px; border: 0; border-radius: 5px; color: var(--secondary); background: transparent; font-size: 12px; white-space: nowrap; }
.filter-tab:hover { color: var(--ink); }
.filter-tab.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px #20252c0d; }
.select, select.select { min-height: 32px; padding: 5px 28px 5px 10px; border: 1px solid var(--line); background-color: #fff; color: var(--secondary); font-size: 12px; }
.project-list { display: grid; }
.project-row { display: flex; gap: 13px; align-items: center; padding: 18px 21px; border-top: 1px solid #edf0f2; }
.project-row[data-action], .project-card[data-action] { cursor: pointer; }
.project-row[data-action]:hover, .project-row:hover { background: #fbfcfc; }
.project-symbol { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; color: #577c70; background: #edf3f0; }
.project-symbol svg { width: 19px; height: 19px; stroke-width: 1.7; }
.project-symbol.blue { color: #4e6e8d; background: #edf2f8; }
.project-symbol.amber { color: #8b713f; background: #f8f3e8; }
.project-symbol.purple { color: #775d8a; background: #f3edf7; }
.project-symbol.rose { color: #8d5e54; background: #f8efec; }
.project-main { flex: 1 1 auto; min-width: 0; }
.project-main h3 { margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.project-main h3 button { padding: 0; border: 0; background: transparent; font-size: inherit; font-weight: inherit; text-align: left; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--secondary); font-size: 12px; }
.project-meta svg { width: 12px; height: 12px; }
.project-meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-progress { flex: 0 0 111px; min-width: 0; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.progress-label strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.progress-track { height: 5px; overflow: hidden; border-radius: 5px; background: #edf0f2; }
.progress-track > span { display: block; min-height: 100%; max-width: 100%; border-radius: inherit; background: #43917a; }
.progress-track.amber > span { background: #b78d52; }
.progress-track.blue > span { background: #7595b2; }
.project-side { flex: 0 0 80px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.member-stack { display: flex; padding-left: 5px; }
.member-stack > .avatar { width: 23px; height: 23px; margin-left: -5px; border: 2px solid #fff; font-size: 12px; }
.member-stack > .avatar:last-child { background: #eff2f4; color: #5e6875; }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 7px; border-radius: 5px; white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 1.5; }
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.green { color: #26795f; background: #edf6f0; }
.status.amber { color: #8b5e2f; background: #fbf3e6; }
.status.red { color: #a24f3e; background: #fbeee9; }
.status.blue { color: #41698b; background: #eef3f9; }
.status.gray { color: #5f6874; background: #f0f2f5; }
.mini-progress { width: 75px; min-width: 65px; height: 4px; border-radius: 5px; overflow: hidden; background: #edf0f2; }
.mini-progress > span { display: block; height: 100%; border-radius: inherit; background: #75a28d; }
.timeline { padding: 3px 21px 21px; }
.timeline-item { position: relative; display: flex; gap: 13px; padding: 0 0 21px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; top: 12px; left: 4px; bottom: 0; width: 1px; background: #e6eae8; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 9px; height: 9px; flex: 0 0 9px; margin-top: 5px; border: 2px solid #87aa9a; border-radius: 50%; background: #fff; }
.timeline-dot.green { border-color: #25826b; background: #25826b; }
.timeline-dot.amber { border-color: #bd9462; }
.timeline-dot.gray { border-color: #c3ccd0; }
.timeline-content { flex: 1; min-width: 0; }
.timeline-content h4 { margin: 4px 0; font-size: 12px; font-weight: 550; }
.timeline-content p { color: var(--secondary); font-size: 12px; line-height: 1.7; }
.timeline-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline-date strong { font-weight: 500; color: #58626f; }
.timeline-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 8px; }
.timeline-bottom .avatar { width: 21px; height: 21px; font-size: 12px; }
.timeline-bottom .status { padding: 2px 6px; font-size: 12px; }
.attention-list { padding: 0 21px 5px; }
.attention-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-top: 1px solid #edf0f2; }
.attention-item:first-child { border-top: 0; padding-top: 0; }
.attention-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 6px; background: #fcf0e7; color: #8b5e36; }
.attention-icon svg { width: 15px; height: 15px; }
.attention-icon.red { color: #a15749; background: #f9eeeb; }
.attention-body { flex: 1; min-width: 0; }
.attention-body h3, .attention-body h4 { margin-bottom: 4px; font-size: 12px; font-weight: 550; }
.attention-body p { color: var(--secondary); font-size: 12px; line-height: 1.7; }
.attention-action { align-self: center; border: 0; padding: 3px; background: transparent; color: #64717e; }
.attention-action:hover { color: var(--accent); }
.attention-action svg { width: 15px; height: 15px; }
.activity-list { padding: 0 21px 18px; }
.activity-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.activity-dot { width: 5px; height: 5px; flex: 0 0 5px; margin-top: 5px; border-radius: 50%; background: #9eb5aa; }
.activity-body { min-width: 0; flex: 1; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.activity-body strong { color: #48535c; font-weight: 500; }
.activity-time { margin-left: auto; color: var(--secondary); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; font-variant-numeric: tabular-nums; }
.data-table th { padding: 10px 17px; border-top: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; background: #fafbfc; color: var(--secondary); font-size: 12px; font-weight: 450; white-space: nowrap; }
.data-table td { height: 60px; padding: 12px 17px; border-bottom: 1px solid #eef0f2; color: #505a66; }
.data-table th:first-child, .data-table td:first-child { padding-left: 21px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 21px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfc; }
.person-cell { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.person-cell .avatar { width: 28px; height: 28px; font-size: 12px; }
.person-name { color: var(--ink); font-size: 12px; font-weight: 500; }
.cell-subtext { display: block; margin-top: 2px; color: var(--secondary); font-size: 12px; }
.rate { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rate.warning { color: var(--warning); }
.rate.red { color: var(--danger); }
.tabs { display: flex; gap: 25px; margin-bottom: 23px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { position: relative; padding: 12px 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--secondary); font-size: 12px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .filters { margin-bottom: 0; }
.toolbar > div { display: flex; gap: 9px; align-items: center; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.project-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
.project-card:hover { border-color: #bdd4ca; box-shadow: 0 4px 14px #19352b06; }
.project-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.project-card-head .project-symbol { width: 38px; height: 38px; flex-basis: 38px; }
.project-card-title { margin-bottom: 7px; color: var(--ink); font-size: 15px; font-weight: 600; }
.project-card-title button { padding: 0; border: 0; background: transparent; text-align: left; font-size: inherit; font-weight: inherit; }
.project-card-description { min-height: 40px; margin-bottom: 20px; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.project-card .progress-label { margin-bottom: 8px; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
.project-card-footer .avatar { width: 25px; height: 25px; }
.project-card .project-meta { margin-top: 12px; }
.detail-summary { margin-bottom: 23px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-summary > p { max-width: 75ch; color: var(--secondary); font-size: 12px; line-height: 1.9; }
.detail-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-top: 23px; }
.detail-stat { padding-right: 16px; border-right: 1px solid var(--line); }
.detail-stat:last-child { border: 0; }
.detail-stat > span, .detail-stat label { display: block; margin-bottom: 5px; color: var(--secondary); font-size: 12px; }
.detail-stat > strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 22px; align-items: start; }
.detail-grid .panel + .panel { margin-top: 20px; }
.task-list { display: grid; }
.task-row { display: flex; gap: 12px; align-items: center; padding: 17px 21px; border-top: 1px solid var(--line); }
.task-row:hover { background: #fcfdfd; }
.task-state { display: inline-grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #cdd5da; border-radius: 5px; background: #fff; color: var(--accent); }
.task-state svg { width: 14px; height: 14px; }
.task-state.is-done, .is-done .task-state { border-color: #b2d5c5; background: #eaf4ee; color: var(--accent); }
.task-main { min-width: 0; flex: 1; }
.task-title { font-size: 12px; font-weight: 500; }
.task-title.is-done, .is-done .task-title { color: #66707c; text-decoration: line-through; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 6px; color: var(--secondary); font-size: 12px; }
.task-meta span { display: inline-flex; gap: 4px; align-items: center; }
.task-meta svg { width: 12px; height: 12px; }
.task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-shrink: 0; }
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state > svg { width: 34px; height: 34px; margin-bottom: 15px; color: #6d8879; stroke-width: 1.4; }
.empty-state h3 { margin-bottom: 8px; font-size: 15px; }
.empty-state p { max-width: 44ch; margin: 0 auto; color: var(--secondary); font-size: 12px; line-height: 1.85; }
.empty-state .button { margin-top: 19px; }

.approval-card { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.approval-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.approval-head h3 { margin-bottom: 5px; font-size: 14px; }
.approval-head p { color: var(--secondary); font-size: 12px; }
.approval-head > div:first-child { flex: 1; }
.approval-body { padding: 21px 23px; }
.date-change { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.date-change > svg { color: #a4adb6; }
.date-box { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; }
.date-box > span, .date-box small { display: block; margin-bottom: 4px; color: var(--secondary); font-size: 12px; }
.date-box strong { color: #45505b; font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.date-box:last-child { border-color: #dbe8e0; background: #f4f9f6; }
.date-box:last-child strong { color: #3b7a60; }
.approval-reason, .approval-plan { margin-bottom: 17px; color: #5d6671; font-size: 12px; line-height: 1.9; }
.approval-reason h4, .approval-plan h4, .approval-reason label, .approval-plan label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 12px; font-weight: 600; }
.approval-reason p, .approval-plan p { max-width: 85ch; }
.approval-plan:last-child { margin-bottom: 0; }
.approval-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 23px; border-top: 1px solid var(--line); background: #fcfdfd; }
.approval-footer > p, .approval-footer > span { color: var(--secondary); font-size: 12px; }
.approval-footer > div { display: flex; gap: 8px; align-items: center; }
.week-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.milestone-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.milestone-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 19px 0; }
.milestone-title { padding: 18px 19px 8px; font-size: 14px; font-weight: 600; }
.milestone-meta { padding: 0 19px 18px; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.milestone-meta > span { display: block; margin-top: 4px; }
.milestone-tasks { display: grid; gap: 11px; padding: 16px 19px; border-top: 1px solid var(--line); background: #fcfdfd; font-size: 12px; color: var(--secondary); }
.milestone-tasks > div, .milestone-tasks > li { display: flex; gap: 8px; align-items: flex-start; }
.milestone-tasks svg { width: 14px; height: 14px; margin-top: 2px; color: #6b8b78; }
.people-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.person-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.person-card > header .avatar { width: 42px; height: 42px; font-size: 14px; }
.person-card h3 { font-size: 14px; }
.person-card > header p { margin-top: 4px; color: var(--secondary); font-size: 12px; }
.person-card .detail-stats { gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.person-card .detail-stat { padding: 0; border: 0; }
.person-card .detail-stat > strong { font-size: 20px; }
.person-card .detail-stat > span { font-size: 12px; }
.person-card .progress-label { margin-top: 20px; }
.report-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 22px 25px; border: 1px solid #d6e6de; border-radius: var(--radius); background: #f0f7f3; }
.report-summary > svg { color: var(--accent); width: 28px; height: 28px; }
.report-summary h2 { margin-bottom: 5px; }
.report-summary p { color: #52685e; font-size: 12px; line-height: 1.8; }
.report-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.report-block { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.report-block h2 { margin-bottom: 18px; }
.report-block h3 { margin: 20px 0 8px; font-size: 12px; }
.report-block p, .report-block li { color: var(--secondary); font-size: 12px; line-height: 1.9; }
.report-block ul { margin: 0; padding-left: 19px; }
.report-block li + li { margin-top: 8px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #dfe7ec; border-radius: 7px; color: #546574; background: #f4f7fa; font-size: 12px; line-height: 1.8; }
.notice svg { width: 16px; height: 16px; margin-top: 2px; }
.notice.warning { color: #815a35; background: #fff8ee; border-color: #eedfca; }
.notice.info { color: #4b647f; background: #f1f6fb; border-color: #dbe6f0; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.settings-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.settings-card h2 { margin-bottom: 8px; }
.settings-card > p { margin-bottom: 20px; color: var(--secondary); font-size: 12px; line-height: 1.8; }
.settings-card ul { padding-left: 17px; margin: 0; color: var(--secondary); font-size: 12px; line-height: 2.1; }
.settings-card .button { margin-top: 18px; }

dialog.modal { width: min(590px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid #dce2e2; border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 18px 70px #182b2530; }
dialog.modal::backdrop { background: #1b2b344d; }
.modal-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 25px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2 { font-size: 17px; }
.modal-close { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 6px; color: var(--secondary); background: transparent; }
.modal-close:hover { background: #f0f3f3; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 23px 25px; }
.modal-body > p { margin-bottom: 18px; color: var(--secondary); font-size: 12px; line-height: 1.85; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 25px; border-top: 1px solid var(--line); background: #fcfdfd; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.field { min-width: 0; }
.field.full, .form-grid > .full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 7px; color: #404a55; font-size: 12px; font-weight: 500; }
.field label .required { color: #a05040; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 38px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #73b49f; box-shadow: 0 0 0 3px #eaf4ee; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c97868; }
.field textarea { min-height: 88px; resize: vertical; }
.field input[type="checkbox"], .field input[type="radio"] { width: 15px; height: 15px; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--accent); }
.field-help { margin-top: 6px; color: var(--secondary); font-size: 12px; line-height: 1.7; }
.form-error { margin-top: 12px; color: var(--danger); font-size: 12px; line-height: 1.8; }
dialog.drawer { top: 0; right: 0; bottom: 0; left: auto; width: min(640px,100vw); height: 100dvh; max-height: none; margin: 0; border-radius: 0; border-right: 0; border-top: 0; border-bottom: 0; }
.toast, #toast { position: fixed; z-index: 100; left: calc(50% + 112px); bottom: 26px; display: flex; align-items: center; gap: 9px; max-width: min(500px,calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #dbe8e0; border-radius: 8px; color: #285b47; background: #fff; box-shadow: 0 7px 25px #172e2420; font-size: 12px; transform: translateX(-50%); }
.toast svg, #toast svg { width: 18px; height: 18px; color: var(--accent); }
.mobile-nav { display: none; }

@media (min-width: 1600px) {
  .content { padding: 36px 42px 48px; }
  .topbar { padding: 0 42px; }
  .project-row { padding-top: 21px; padding-bottom: 21px; }
  .metric { padding: 21px 24px 19px; }
  .dashboard-grid { gap: 25px; }
}

@media (max-width: 1240px) {
  .topbar { padding-right: 25px; padding-left: 25px; }
  .content { padding-right: 25px; padding-left: 25px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: 17px; }
  .metric { padding: 16px; }
  .metrics { gap: 12px; }
  .project-row { gap: 9px; padding: 17px 17px; }
  .project-progress { flex-basis: 80px; }
  .project-symbol { width: 31px; height: 33px; flex-basis: 31px; }
  .project-side { flex-basis: 69px; }
  .project-meta { gap: 4px 7px; }
  .panel-header { padding-left: 18px; padding-right: 18px; }
  .project-grid, .week-grid, .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .data-table .mini-progress { display: none; }
}

@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-grid > .stack:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid > .stack:last-child > .panel:last-child:nth-child(3) { grid-column: 1/-1; }
  .project-progress { flex-basis: 120px; }
  .project-side { flex-basis: 88px; }
  .project-row { padding: 19px 21px; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .searchbox input { width: 120px; }
  .metric-value { font-size: 28px; }
  .page-heading { align-items: flex-start; }
  .page-heading .heading-actions { padding-top: 2px; }
  .report-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar { width: 76px; padding: 25px 10px 16px; }
  .brand { justify-content: center; padding: 0 0 30px; }
  .brand-word, .brand-subtitle, .brand > div:not(.brand-symbol) { display: none; }
  .workspace-switch, .nav-section-label, .nav-label, .demo-note { display: none; }
  .nav-item { position: relative; justify-content: center; min-height: 46px; padding: 12px; }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-count { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; font-size: 12px; }
  .profile { justify-content: center; padding-left: 0; padding-right: 0; }
  .profile > :not(.avatar) { display: none; }
  .shell-main { margin-left: 76px; }
  .topbar { min-height: 64px; padding-left: 23px; padding-right: 23px; }
  .topbar-actions { gap: 10px; }
  .content { padding: 26px 23px 36px; }
  .toast, #toast { left: calc(50% + 38px); }
  .heading-actions { flex-wrap: wrap; }
  .page-heading { gap: 15px; }
  .metric-value { font-size: 27px; }
  .metric-label { font-size: 12px; }
  .metric-foot { font-size: 12px; }
  .metric-icon { width: 22px; height: 22px; }
}

@media (max-width: 740px) {
  h1 { font-size: 23px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .metric { padding: 17px 18px; }
  .metric-label { font-size: 12px; }
  .metric-foot { font-size: 12px; }
  .page-heading { flex-direction: column; align-items: stretch; }
  .heading-actions { justify-content: flex-start; }
  .project-row { gap: 11px; padding: 17px 18px; }
  .project-progress { flex-basis: 88px; }
  .project-side { flex-basis: 72px; }
  .project-grid, .week-grid, .people-grid, .settings-grid { gap: 14px; }
  .project-card, .person-card { padding: 18px; }
  .dashboard-grid > .stack:last-child { grid-template-columns: 1fr; }
  .dashboard-grid > .stack:last-child > .panel:last-child:nth-child(3) { grid-column: auto; }
  .searchbox { display: none; }
  .detail-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .detail-stat:nth-child(2) { border: 0; }
  .task-row { flex-wrap: wrap; }
  .task-main { flex-basis: calc(100% - 40px); }
  .task-actions { padding-left: 33px; }
  .toolbar { align-items: flex-start; }
}

@media (max-width: 620px) {
  html { scrollbar-gutter: auto; }
  .sidebar { display: none; }
  .shell-main { margin-left: 0; }
  .topbar { min-height: 59px; padding: 0 18px; }
  .breadcrumb { font-size: 12px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions > .avatar { margin-left: 6px; width: 29px; height: 29px; }
  .icon-button { width: 36px; height: 40px; }
  .mobile-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: 4px; overflow-x: auto; padding: 6px 13px; border-bottom: 1px solid var(--line); background: #fff; scrollbar-width: none; overscroll-behavior-x: contain; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav .nav-item { position: relative; display: inline-flex; flex: 0 0 auto; gap: 6px; width: auto; min-height: 40px; padding: 10px 11px; border-radius: 6px; font-size: 12px; }
  .mobile-nav .nav-label { display: inline; }
  .mobile-nav .nav-item svg { width: 15px; height: 15px; }
  .mobile-nav .nav-count { display: none; }
  .content { padding: 23px 17px 32px; }
  .page-heading { margin-bottom: 21px; gap: 17px; }
  .page-subtitle { margin-top: 6px; font-size: 12px; }
  h1 { font-size: 23px; }
  .heading-actions { gap: 8px; }
  .button { min-height: 40px; padding: 9px 12px; }
  .button.small { min-height: 36px; padding: 8px 10px; }
  .heading-actions > .button { flex: 1; }
  .metrics { gap: 10px; margin-bottom: 19px; }
  .metric { padding: 14px 15px; }
  .metric-value { margin-top: 9px; font-size: 29px; }
  .metric-foot { gap: 4px; font-size: 12px; }
  .metric-label { font-size: 12px; }
  .metric-icon { width: 23px; height: 23px; }
  .dashboard-grid { gap: 17px; }
  .stack { gap: 17px; }
  .panel + .panel { margin-top: 17px; }
  .panel-header { min-height: 66px; padding: 17px 17px 14px; }
  .panel-header h2 { font-size: 15px; }
  .panel-body { padding-right: 17px; padding-left: 17px; }
  .project-row { position: relative; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; column-gap: 10px; row-gap: 12px; padding: 17px; }
  .project-row .project-symbol { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; }
  .project-row .project-main { grid-column: 2; grid-row: 1; }
  .project-row .project-main h3 { font-size: 12px; }
  .project-row .project-progress { grid-column: 2/4; grid-row: 2; width: 100%; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; }
  .project-row .progress-label { margin: 0; min-width: 30px; }
  .project-row .progress-label > span { display: none; }
  .project-row .progress-track { flex: 1; }
  .project-row .project-side { grid-column: 3; grid-row: 1; align-self: start; gap: 7px; }
  .project-row .member-stack { display: none; }
  .project-meta { font-size: 12px; gap: 3px 7px; }
  .project-side .status { font-size: 12px; padding: 3px 5px; }
  .project-grid, .week-grid, .people-grid, .settings-grid { grid-template-columns: minmax(0,1fr); }
  .project-card { padding: 20px; }
  .project-card-description { min-height: 0; }
  .project-card-title { font-size: 15px; }
  .filters { align-items: flex-start; gap: 10px; }
  .filter-tabs { max-width: 100%; overflow-x: auto; }
  .filter-tab { min-height: 36px; padding: 7px 11px; }
  .filters .select { min-height: 42px; }
  .toolbar { gap: 12px; }
  .toolbar > div { width: 100%; overflow-x: auto; }
  .toolbar .filters { width: 100%; }
  .tabs { gap: 22px; margin-bottom: 18px; }
  .tab { min-height: 44px; }
  .timeline { padding-right: 17px; padding-left: 17px; }
  .timeline-content h4 { font-size: 12px; }
  .timeline-content p { font-size: 12px; }
  .attention-list, .activity-list { padding-right: 17px; padding-left: 17px; }
  .attention-body h3, .attention-body h4 { font-size: 12px; }
  .attention-body p { font-size: 12px; }
  .attention-action { min-width: 32px; min-height: 36px; }
  .activity-item { flex-wrap: wrap; gap: 4px 8px; }
  .activity-body { font-size: 12px; }
  .activity-time { width: calc(100% - 13px); margin-left: 13px; }
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding-left: 14px; padding-right: 14px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 17px; }
  .detail-summary { padding: 20px; }
  .detail-stats { gap: 18px 13px; }
  .detail-stat > strong { font-size: 17px; }
  .task-row { padding: 17px; }
  .task-state { min-height: 26px; min-width: 26px; flex-basis: 26px; }
  .task-main { flex-basis: calc(100% - 41px); }
  .task-actions { padding-left: 38px; flex-wrap: wrap; justify-content: flex-start; }
  .task-meta { line-height: 1.8; gap: 4px 10px; }
  .approval-head { align-items: flex-start; padding: 18px; }
  .approval-body { padding: 18px; }
  .approval-footer { padding: 14px 18px; flex-wrap: wrap; }
  .approval-footer > div { width: 100%; }
  .approval-footer .button { flex: 1; }
  .date-change { gap: 10px; margin-bottom: 18px; }
  .date-change > svg { width: 16px; height: 16px; }
  .date-box { padding: 11px; }
  .date-box strong { font-size: 14px; }
  .date-box > span, .date-box small { font-size: 12px; }
  .report-summary { padding: 17px; gap: 13px; }
  .report-summary h2 { font-size: 14px; }
  .report-summary p { font-size: 12px; }
  .report-columns { gap: 17px; }
  .report-block { padding: 19px; }
  .notice { padding: 12px; font-size: 12px; }
  dialog.modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .modal-header { padding: 18px; }
  .modal-close { width: 36px; height: 36px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { padding: 15px 18px; }
  .modal-footer .button { min-width: 90px; }
  .form-grid { gap: 17px; grid-template-columns: minmax(0,1fr); }
  .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { min-height: 44px; font-size: 16px; }
  .field label { font-size: 12px; }
  .field textarea { min-height: 98px; }
  dialog.drawer { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .toast, #toast { left: 50%; bottom: 18px; width: max-content; max-width: calc(100vw - 28px); padding: 13px 15px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .mobile-nav, .heading-actions, .toast, #toast, dialog { display: none !important; }
  .shell-main { margin-left: 0; }
  .content { padding: 0; max-width: none; }
  .panel, .metric, .project-card, .approval-card, .report-block { break-inside: avoid; box-shadow: none; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .data-table { min-width: 0; }
}
