:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: #17263a;
  background: #f2f5f9;
  line-height: 1.55;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #177d78; outline-offset: 3px;
}
[hidden] { display: none !important; }
.sidebar { padding: 28px 16px; background: #102335; color: #e5f1fb; display: flex; flex-direction: column; min-height: 100vh; }
.brand { padding: 0 10px; font-size: 19px; font-weight: 700; margin-bottom: 42px; display: flex; align-items: center; gap: 11px; }
.mark { width: 16px; height: 16px; background: #66d0bb; border-radius: 4px; transform: rotate(-8deg); }
nav { display: grid; gap: 7px; }
nav button { border: 0; color: #adc0d2; background: transparent; text-align: left; border-radius: 7px; padding: 11px 13px; }
nav button[aria-current="page"] { background: #233b50; color: #fff; font-weight: 650; }
.scope { margin: auto 12px 0; padding-top: 30px; color: #afc3d5; font-size: 12px; }
.scope span { width: 7px; height: 7px; background: #66d0bb; display: inline-block; border-radius: 50%; margin-right: 5px; }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px 36px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.04em; }
h2 { font-size: 17px; }
h3 { font-size: 13px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
.page-head p, .muted { color: #5b6b7e; }
.page-head p { margin-top: 3px; }
.primary, .secondary, .ghost { border-radius: 7px; padding: 9px 14px; font-weight: 645; min-height: 39px; }
.primary { border: 1px solid #086860; color: #fff; background: #086860; }
.primary:hover:not(:disabled) { background: #07544e; }
.secondary { color: #205b58; border: 1px solid #bcd1d0; background: #fff; }
.ghost { color: #526476; border: 0; background: transparent; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.metrics > div { background: #fff; border-radius: 10px; border: 1px solid #dce3eb; padding: 13px 17px; }
.metrics span { color: #526476; font-size: 12px; }
.metrics strong { display: block; margin-top: 3px; font-size: 24px; }
.workbench { display: grid; grid-template-columns: minmax(220px, .76fr) minmax(0, 1.65fr); align-items: start; gap: 16px; }
.panel { background: #fff; border: 1px solid #dce3eb; border-radius: 10px; min-width: 0; }
.panel-head { padding: 16px; border-bottom: 1px solid #e7edf3; }
.inbox { overflow: hidden; }
.ticket { width: 100%; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid #e9eef3; background: #fff; color: inherit; padding: 14px 15px; text-align: left; display: grid; justify-items: start; gap: 5px; }
.ticket[aria-pressed="true"] { border-left-color: #0b756b; background: #edf7f5; }
.ticket .muted { font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; color: #4d6073; background: #eaf0f5; font-size: 11px; font-weight: 650; }
.badge.done { color: #14594a; background: #dff3ea; }
.badge.queued { color: #79560e; background: #fff0ce; }
.badge.running { color: #185099; background: #e0edff; }
.badge.failed { color: #932628; background: #fde9e7; }
.detail { min-height: 338px; padding: 21px 23px; }
.detail-head h2 { font-size: 23px; margin: 3px 0 9px; line-height: 1.32; }
.detail-head { padding-bottom: 15px; border-bottom: 1px solid #e5ebf2; }
.site { color: #086860; font-size: 12px; font-weight: 650; }
.result-section { margin-top: 17px; }
.result-section h3 { margin-bottom: 6px; }
.result-section pre { white-space: pre-wrap; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; color: #45576a; }
code, pre { font: 12px ui-monospace, "SFMono-Regular", Consolas, monospace; color: #354f64; overflow-wrap: anywhere; }
pre { background: #f3f7fa; border-radius: 6px; padding: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.job-worker { margin-top: 8px; font-size: 12px; }
.empty { padding: 24px 14px; color: #5b6b7e; text-align: center; }
.settings { display: grid; gap: 14px; max-width: 646px; padding: 23px; justify-items: start; }
label { width: 100%; color: #35465a; font-weight: 600; display: grid; gap: 5px; }
input, select, textarea { width: 100%; border: 1px solid #cad6e0; border-radius: 6px; padding: 9px 10px; background: #fff; color: #1e3349; }
textarea { resize: vertical; }
dialog { border: 1px solid #cbd7e2; border-radius: 12px; width: min(560px, calc(100vw - 30px)); padding: 22px; color: inherit; }
dialog::backdrop { background: rgb(16 35 53 / .49); }
dialog form { display: grid; justify-items: start; gap: 13px; }
.dialog-head { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.notice { position: fixed; bottom: 20px; right: 24px; max-width: calc(100% - 48px); background: #102335; color: #fff; padding: 12px 15px; border-radius: 8px; z-index: 1; }
.notice.error { background: #972b29; }
@media (max-width: 880px) { body { grid-template-columns: 143px minmax(0, 1fr); } main { padding: 22px; } .workbench { grid-template-columns: 1fr; } }
@media (max-width: 540px) { body { display: block; } .sidebar { min-height: 0; padding: 11px 14px; flex-direction: row; gap: 15px; } .brand { margin: 0; padding: 0; white-space: nowrap; font-size: 17px; } nav { display: flex; } nav button { padding: 6px 9px; } .scope { display: none; } main { padding: 18px 12px; } .metrics { grid-template-columns: repeat(2, 1fr); } .detail { padding: 14px; } }
body.logged-out { display: block; }
.login { display: grid; min-height: calc(100vh - 68px); place-items: center; }
.login form { width: min(420px, 100%); display: grid; gap: 17px; padding: 25px; }
.login h1 { font-size: 25px; }
.scope .scope-dot { width: 7px; height: 7px; background: #66d0bb; display: inline-block; border-radius: 50%; margin-right: 5px; }
.sign-out { display: block; color: #c3d5e4; border: 0; background: none; padding: 5px 0; text-decoration: underline; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.attachment { display: grid; width: 139px; text-decoration: none; color: #245b59; border: 1px solid #dce3eb; border-radius: 7px; overflow: hidden; }
.attachment img { display: block; width: 100%; height: 96px; object-fit: contain; background: #f2f5f9; }
.attachment span { font-size: 11px; padding: 5px 8px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.download { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width:540px) { .sidebar .scope:has(.sign-out:not([hidden])) { display: block; margin: 0 0 0 auto; padding: 0; font-size: 0; } .scope .scope-dot { display: none; } .sign-out { font-size: 12px; } }
.monitor-group { margin-bottom: 15px; }
.monitor-head { display: flex; gap: 12px; align-items: baseline; }
.monitor-head .muted { font-size: 12px; }
.monitor-table-wrap { overflow-x: auto; }
.monitor-table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; }
.monitor-table th, .monitor-table td { border-bottom: 1px solid #e9eef3; padding: 11px 16px; vertical-align: top; }
.monitor-table th { color: #526476; font-size: 12px; background: #f7f9fc; }
.monitor-table tr:last-child td { border-bottom: 0; }
.monitor-table a { color: #086860; font-weight: 600; overflow-wrap: anywhere; }
.monitor-detail { display: block; margin-top: 3px; }
.monitor-note { border: 1px solid #efd3a6; background: #fff4df; color: #73470d; padding: 9px 12px; border-radius: 7px; margin: 0 0 14px; }
