:root { font-family: Inter, "Segoe UI", sans-serif; color: #d7e0eb; background: #10151d; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: #10151d; overflow-x: hidden; }
button, input { font: inherit; }
.shell { max-width: 1780px; margin: 0 auto; padding: 18px 24px; }
.brand { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.eyebrow { color: #78a6cf; font-size: 12px; font-weight: 800; letter-spacing: 1.25px; }
h1 { font-size: 27px; line-height: 1.15; margin: 5px 0; } h2 { margin: 0 0 8px; font-size: 16px; }
.muted { color: #8d9bab; font-size: 13px; }
.actions { display: flex; gap: 7px; align-items: center; }
.search { width: 220px; padding: 8px 10px; border: 1px solid #3b4b5b; border-radius: 7px; background: #151e29; color: #dce6ee; font-size: 12px; }
.search::placeholder { color: #77899b; }
button { border: 1px solid #3d5065; border-radius: 7px; padding: 8px 11px; background: #314b63; color: #eef5fc; font-size: 12px; font-weight: 750; cursor: pointer; }
button:hover { background: #3a5872; } button:disabled { opacity: .5; cursor: default; }
button.secondary { background: #19232e; border-color: #344352; color: #bfd0df; }
.status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: -4px 0 10px; }
.status-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; border: 1px solid #2b3a4a; border-radius: 8px; background: #141d27; color: #93a4b5; font-size: 11px; line-height: 1.15; }
.status-item strong { color: #f0f6fb; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #35b979; box-shadow: 0 0 0 3px rgba(53, 185, 121, .13); }
.status-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f8294; }
.ai-status.green .status-dot, .backup-status.green .status-dot, .status-sync .status-dot { background: #35b979; box-shadow: 0 0 0 3px rgba(53, 185, 121, .13); }
.ai-status.amber .status-dot, .backup-status.amber .status-dot { background: #d8a13a; box-shadow: 0 0 0 3px rgba(216, 161, 58, .14); }
.ai-status.red .status-dot, .backup-status.red .status-dot { background: #df5b57; box-shadow: 0 0 0 3px rgba(223, 91, 87, .14); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.metric, .card, .notice, .error { background: #151e29; border: 1px solid #2b3a4a; border-radius: 9px; box-shadow: none; }
.metric { padding: 8px 12px; display: flex; align-items: baseline; gap: 7px; min-height: 36px; } .metric strong { display: inline; font-size: 22px; line-height: 1; color: #f2f7fb; } .metric span { color: #91a0af; font-size: 12px; }
.notice { background: #252218; border-color: #5d512d; padding: 11px; margin-bottom: 12px; }.error { color: #ffb1aa; background: #2b1d22; border-color: #643740; padding: 11px; margin-bottom: 12px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work { margin-bottom: 8px; padding: 11px 14px 10px; }.work-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.work-name { font-weight: 800; font-size: 14px; line-height: 1.25; color: #f1f5f9; }.work-meta { color: #8493a3; font-size: 11px; margin-top: 2px; }
.pill { border-radius: 999px; padding: 3px 7px; background: #283746; color: #b7c7d6; font-weight: 750; font-size: 10px; white-space: nowrap; }.pill.done { background: #1f4538; color: #a7e3c1; }
.bar { background: #2d3b4a; height: 4px; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }.bar i { display: block; height: 100%; background: #238b5b; }
.ite-work .bar i { background: #356f9f; }.ite-work .check.checked { border-color: #356f9f; background: #356f9f; color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 16px; }
button.step { width: 100%; display: grid; grid-template-columns: 17px 1fr; gap: 7px; align-items: center; margin: 0; padding: 5px 0; border: 0; border-radius: 0; border-top: 1px solid #23303e; background: transparent; color: #cbd7e3; text-align: left; font-size: 12px; font-weight: 500; } button.step:nth-child(-n+2) { border-top: 0; } button.step:hover { background: #192430; }
.check { width: 14px; height: 14px; border: 1px solid #667788; border-radius: 3px; color: transparent; display: grid; place-items: center; font-size: 11px; font-weight: 900; }.check.checked { border-color: #238b5b; background: #238b5b; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.step-title { font-weight: 700; color: #dce6ee; }.evidence, .next { color: #718294; font-size: 11px; margin-left: 7px; }.evidence::before { content: "· "; }.next::before { content: "· "; }.next { color: #a8b5c1; }
button.archive { margin-top: 7px; padding: 4px 8px; background: transparent; border-color: #3b4a59; color: #9fb3c5; font-size: 10px; } button.archive:hover { background: #202d39; }
.login { width: 390px; margin: 120px auto; padding: 20px; }.login h1 { font-size: 24px; }.login input { width: 100%; display: block; color: #e8eef7; background: #101820; border: 1px solid #344352; border-radius: 7px; padding: 10px; margin: 8px 0; }
.footer { margin-top: 13px; font-size: 11px; color: #8392a1; }

@media (max-width: 900px) {
  .shell { padding: 12px; }
  .brand { display: block; margin-bottom: 10px; }
  .actions { margin-top: 10px; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: stretch; }
  .search { width: 100%; min-width: 0; }
  .status-strip { gap: 6px; margin-bottom: 9px; }
  .status-item { padding: 6px 7px; gap: 6px; font-size: 11px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .metric { padding: 7px 8px; min-height: 34px; gap: 5px; }
  .metric strong { font-size: 19px; }
  .columns { grid-template-columns: 1fr; gap: 10px; }
  .work { padding: 10px; }
}

@media (max-width: 640px) {
  .shell { padding: 9px; }
  .eyebrow { font-size: 12px; letter-spacing: .9px; }
  h1 { font-size: 22px; margin: 4px 0; }
  h2 { font-size: 14px; margin: 0 0 6px; }
  .muted { font-size: 13px; }
  .actions { grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; }
  .search { grid-column: auto; padding: 8px 8px; font-size: 13px; }
  button { padding: 8px 8px; font-size: 12px; white-space: nowrap; }
  .status-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .status-item { justify-content: flex-start; padding: 6px 5px; gap: 4px; font-size: 12px; }
  .status-detail { display: none; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { padding: 6px 7px; border-radius: 7px; min-height: 32px; gap: 4px; }
  .metric strong { font-size: 18px; }
  .work { margin-bottom: 7px; padding: 9px; border-radius: 7px; }
  .work-head { gap: 7px; }
  .work-name { font-size: 13px; line-height: 1.2; }
  .pill { padding: 3px 6px; font-size: 11px; }
  .steps-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; column-gap: 0; }
  button.step { grid-template-columns: 16px 1fr; gap: 6px; padding: 6px 0; font-size: 12px; }
  button.step:nth-child(-n+2) { border-top: 1px solid #23303e; }
  button.step:first-child { border-top: 0; }
  .login { width: auto; margin: 70px 12px; padding: 16px; }
}

@media (max-width: 420px) {
  .shell { padding: 7px; }
  h1 { font-size: 20px; }
  .actions { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; }
  .search { padding: 7px 6px; font-size: 13px; }
  button { padding: 7px 6px; font-size: 11px; }
  .status-item { font-size: 11px; padding: 5px 4px; }
  .status-dot { width: 7px; height: 7px; flex-basis: 7px; box-shadow: none; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .metric { padding: 5px 6px; min-height: 30px; }
  .metric strong { font-size: 17px; }
  .work-head { align-items: flex-start; }
  .work-name { font-size: 12px; overflow-wrap: anywhere; }
  .work-meta { font-size: 12px; }
  .step-title { overflow-wrap: anywhere; }
  button.archive { width: 100%; padding: 7px 8px; font-size: 13px; }
}
