:root {
  --nav:#153e59;
  --nav-muted:#adc6d5;
  --accent:#167d8d;
  --accent-dark:#106371;
  --canvas:#f3f6f8;
  --paper:#fff;
  --text:#203441;
  --muted:#687c89;
  --line:#dfe7ec;
  --green:#227a5a;
  --amber:#956722;
  --red:#b34747;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--canvas);
  color:var(--text);
  font:14px/1.6 var(--font)}
[hidden] {
  display:none!important}
button,input,textarea,select {
  font:inherit}
button,a,input,textarea,select {
   -webkit-tap-highlight-color:transparent}
button {
  cursor:pointer;
  min-height:44px;
  border:1px solid transparent;
  border-radius:6px;
  padding:9px 16px;
  font-weight:550;
  background:transparent;
  color:inherit}
button:disabled {
  opacity:.5;
  cursor:wait}
button:hover:not(:disabled) {
  filter:brightness(.96)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #64bbcf;
  outline-offset:3px}
button.primary {
  background:var(--accent);
  color:#fff}
button.secondary {
  background:#fff;
  border-color:#ccd9e1}
button.danger {
  background:var(--red);
  color:white}
button.text-button {
  color:var(--accent);
  padding:8px}
button.icon-button {
  font-size:26px;
  line-height:1;
  width:44px;
  padding:8px;
  color:var(--muted)}
input,textarea,select {
  width:100%;
  border:1px solid #c9d5de;
  border-radius:5px;
  background:white;
  padding:10px 12px;
  min-height:44px;
  color:var(--text)}
textarea {
  resize:vertical}
label {
  display:block;
  font-weight:550;
  margin:20px 0 8px}
h1,h2,h3,p {
  margin-top:0}
h1 {
  font-size:28px;
  line-height:1.3;
  letter-spacing:-.6px;
  font-weight:650;
  margin-bottom:8px}
h2 {
  font-size:20px;
  line-height:1.4;
  margin-bottom:16px}
h3 {
  font-size:15px;
  margin-bottom:12px}
.muted {
  color:var(--muted)}
.login-screen {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(320px,.85fr) 1.15fr}
.login-intro {
  background:var(--nav);
  padding:64px;
  color:white;
  display:flex;
  flex-direction:column;
  align-items:flex-start}
.brand-symbol {
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  font-size:20px;
  font-weight:700;
  letter-spacing:-2px;
  background:#2c627b;
  color:white;
  border-radius:9px;
  padding-right:2px}
.brand-name {
  font-size:18px;
  font-weight:600;
  margin:12px 0 80px}
.login-intro h1 {
  font-size:38px;
  line-height:1.45;
  letter-spacing:-1px;
  margin-bottom:24px}
.login-intro>p:not(.brand-name) {
  color:#bed4e0;
  font-size:16px;
  line-height:1.9}
.login-note {
  margin-top:auto;
  padding-top:64px;
  color:#a9c5d5;
  font-size:13px}
.login-main {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px}
.login-form {
  width:100%;
  max-width:360px}
.login-form h2 {
  font-size:26px;
  margin-bottom:8px}
.login-form>.primary {
  width:100%;
  margin-top:8px}
.login-help {
  font-size:12px;
  color:var(--muted);
  margin-top:24px;
  line-height:1.8}
.error-message {
  color:var(--red);
  min-height:20px;
  margin:12px 0;
  font-size:13px}
.app {
  display:grid;
  grid-template-columns:208px minmax(0,1fr);
  min-height:100vh}
.sidebar {
  background:var(--nav);
  color:white;
  padding:28px 16px;
  position:fixed;
  inset:0 auto 0 0;
  width:208px;
  display:flex;
  flex-direction:column}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  color:white;
  text-decoration:none;
  font-size:16px;
  font-weight:650;
  margin:0 8px 40px;
  white-space:nowrap}
.brand small {
  display:block;
  font-size:11px;
  color:var(--nav-muted);
  font-weight:400;
  margin-top:2px}
.brand .brand-symbol {
  width:36px;
  height:36px;
  flex-shrink:0}
.sidebar nav {
  display:grid;
  gap:8px}
.nav-item {
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  color:#bed1dd;
  min-height:48px;
  padding:12px 16px;
  border-radius:6px}
.nav-item.active {
  background:#2b5771;
  color:white}
.nav-item:hover {
  background:#244f68}
.nav-mark {
  font-size:19px;
  font-weight:400;
  width:20px;
  text-align:center}
.sidebar-bottom {
  margin-top:auto;
  font-size:12px;
  padding:24px 12px 0;
  color:#cfdee7}
.sidebar-bottom small {
  display:block;
  color:#92b0c1;
  font-size:10px;
  margin-top:8px}
.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#67c8bc;
  margin-right:8px}
.workspace {
  grid-column:2;
  min-width:0}
.topbar {
  height:76px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  font-size:13px;
  color:var(--muted)}
.divider {
  color:#bdcbd4;
  margin:0 12px}
.topbar strong {
  color:var(--text);
  font-weight:550}
.account {
  display:flex;
  align-items:center;
  gap:20px}
main#main {
  padding:36px 40px;
  max-width:1600px;
  margin:auto}
.page-heading {
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
  align-items:center}
.page-heading p {
  color:var(--muted);
  margin-bottom:0;
  font-size:13px}
.heading-actions {
  display:flex;
  gap:10px;
  flex-shrink:0}
.notice {
  padding:12px 16px;
  background:#fff8e9;
  border:1px solid #ecd8ac;
  color:#825f20;
  margin-bottom:20px;
  border-radius:5px;
  white-space:pre-line}
.notice.success {
  background:#eaf6f0;
  color:#286e52;
  border-color:#cae4d7}
.notice.error {
  background:#fff1f0;
  color:#9c4541;
  border-color:#ebcdca}
.stats-strip {
  display:flex;
  gap:40px;
  padding:20px 24px;
  background:#fff;
  border:1px solid var(--line);
  margin-bottom:24px;
  border-radius:8px}
.stat-item {
  display:flex;
  align-items:baseline;
  gap:12px}
.stat-item strong {
  font-size:26px;
  font-weight:600;
  line-height:1.2}
.stat-item span {
  font-size:12px;
  color:var(--muted)}
.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  margin-bottom:24px}
.panel-heading {
  padding:20px 24px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px}
.panel-heading h2 {
  font-size:15px;
  margin:0}
.panel-heading input {
  max-width:260px}
.table-scroll {
  overflow-x:auto}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap}
th {
  font-size:12px;
  font-weight:500;
  color:var(--muted);
  background:#fafcfd;
  padding:12px 24px;
  border-bottom:1px solid var(--line)}
td {
  padding:16px 24px;
  border-bottom:1px solid #edf1f4;
  font-size:13px}
tr:last-child td {
  border-bottom:0}
tbody tr:hover {
  background:#f8fbfc}
.row-name {
  font-weight:600;
  color:#244757}
.row-id {
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px}
.status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  white-space:nowrap;
  color:var(--muted)}
.status:before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#9aaab4}
.status.green {
  color:var(--green)}
.status.green:before {
  background:#3e9c77}
.status.amber {
  color:var(--amber)}
.status.amber:before {
  background:#c99843}
.status.red {
  color:var(--red)}
.status.red:before {
  background:#cd6d66}
.empty {
  padding:64px 24px;
  text-align:center;
  color:var(--muted)}
.empty h3 {
  font-size:17px;
  color:#526a78;
  margin-bottom:8px}
.empty p {
  margin-bottom:0;
  font-size:13px}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#82939e;
  font-size:11px;
  margin-top:28px}
.pager {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 24px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted)}
.filters {
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px 24px;
  border-bottom:1px solid var(--line)}
.filters select {
  max-width:240px}
.detail-dialog {
  position:fixed;
  margin:0 0 0 auto;
  inset:0 0 0 auto;
  height:100dvh;
  max-height:100dvh;
  width:min(540px,100vw);
  max-width:100vw;
  border:0;
  border-left:1px solid var(--line);
  padding:0;
  color:var(--text)}
dialog::backdrop {
  background:rgba(18,40,54,.28)}
.dialog-header {
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:sticky;
  top:0;
  z-index:1}
.dialog-header h2 {
  font-size:18px;
  margin:0}
.dialog-body {
  padding:24px}
.form-dialog {
  padding:0;
  border:0;
  border-radius:10px;
  width:min(480px,calc(100vw - 32px));
  max-height:90dvh;
  color:var(--text)}
.form-dialog h2 {
  margin-top:0}
.detail-section {
  border-bottom:1px solid var(--line);
  padding-bottom:24px;
  margin-bottom:24px}
.detail-section:last-child {
  border:0;
  margin-bottom:0}
.detail-section>p {
  font-size:13px}
.detail-grid {
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:12px;
  font-size:13px;
  margin:0}
.detail-grid dt {
  color:var(--muted)}
.detail-grid dd {
  margin:0;
  overflow-wrap:anywhere;
  white-space:pre-wrap}
.button-row {
  display:flex;
  gap:12px;
  margin:16px 0;
  flex-wrap:wrap}
.inline-message {
  font-size:12px;
  white-space:pre-line;
  color:var(--muted)}
pre {
  background:#f5f8fa;
  border:1px solid var(--line);
  padding:16px;
  border-radius:5px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
  max-height:360px;
  overflow:auto}
meter {
  width:100%;
  height:16px;
  margin:8px 0}
.wide-note {
  padding:16px 24px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  background:#fafcfd}
.system-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px}
.system-grid .panel {
  margin-bottom:0}
.system-body {
  padding:24px}
.budget-row {
  display:flex;
  justify-content:space-between;
  margin:10px 0;
  font-size:13px}
.value-large {
  font-size:24px;
  margin-bottom:8px;
  font-weight:600}
.break-text {
  overflow-wrap:anywhere;
  white-space:normal;
  max-width:320px}
.task-link {
  font-size:12px;
  padding:8px;
  color:var(--accent);
  text-align:left;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis}
.task-id {
  display:block;
  font-size:11px;
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--muted)}
.section-description {
  font-size:12px;
  color:var(--muted)}
@media(max-width:1000px) {
  main#main {
  padding:28px 24px}
.topbar {
  padding:0 24px}
.app {
  grid-template-columns:176px minmax(0,1fr)}
.sidebar {
  width:176px;
  padding:24px 12px}
.brand {
  font-size:14px;
  gap:8px;
  margin-left:4px}
.brand small {
  font-size:10px}
.stats-strip {
  gap:24px}
.system-grid {
  grid-template-columns:1fr}
.login-intro {
  padding:48px 32px}
}
@media(max-width:700px) {
  .app {
  display:block}
.sidebar {
  position:static;
  width:auto;
  padding:16px}
.brand {
  margin:0 0 16px}
.sidebar nav {
  display:flex;
  gap:4px;
  overflow-x:auto}
.nav-item {
  padding:8px 12px;
  white-space:nowrap;
  min-height:44px;
  gap:6px}
.nav-mark {
  display:none}
.sidebar-bottom {
  display:none}
.topbar {
  height:60px;
  padding:0 20px}
.account {
  gap:8px}
.workspace {
  width:100%}
main#main {
  padding:24px 16px}
.page-heading {
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap}
.page-heading h1 {
  font-size:24px}
.heading-actions {
  margin-left:auto}
.stats-strip {
  gap:16px;
  justify-content:space-between;
  padding:16px;
  flex-wrap:wrap}
.stat-item {
  gap:6px}
.stat-item strong {
  font-size:22px}
.panel-heading {
  padding:16px;
  flex-wrap:wrap}
.panel-heading input {
  max-width:none}
th,td {
  padding:12px 16px}
.filters {
  padding:12px 16px}
.page-footer {
  flex-wrap:wrap}
.login-screen {
  display:block}
.login-intro {
  padding:24px}
.login-intro .brand-symbol {
  width:32px;
  height:32px;
  font-size:17px}
.brand-name {
  margin:8px 0 16px}
.login-intro h1 {
  font-size:26px;
  margin-bottom:8px}
.login-intro>p:not(.brand-name) {
  font-size:13px;
  margin:0}
.login-note {
  display:none}
.login-main {
  padding:32px 24px}
.dialog-body {
  padding:20px}
.detail-grid {
  grid-template-columns:96px 1fr}
}
@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto}
}

