:root {
  color-scheme: light dark;
  --bg: #fff; --surface: #fff; --fg: #23342f; --muted: #65746e; --line: #e8ece9;
  --accent: #276754; --soft: #edf4ef; --error: #a43334; --attention: #8a5c20;
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--fg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration: none; }
a:hover { text-decoration: underline; }
button, textarea, input { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; padding: 8px 17px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.quiet { background: transparent; color: var(--accent); border-color: var(--line); }
.workspace { min-width: 0; width: 100%; max-width: 1100px; padding: 38px 48px 30px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0 21px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 650; color: var(--fg); }
.brand span { color: var(--muted); font-weight: 400; margin-left: 14px; }
#identity { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.heading { margin: 36px 0 26px; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: 30px; line-height: 1.45; font-weight: 550; letter-spacing: -.7px; margin: 0 0 12px; }
.task-status, .next-step { overflow-wrap: anywhere; }
.task-status { color: var(--muted); font-size: 15px; }
.task-status a { margin-right: 18px; }
.next-step { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.flow-link { display: inline-block; margin-top: 14px; font-size: 14px; }
.status-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 12px 1px; font-weight: 550; }
.tabs button[aria-selected=true] { border-bottom-color: var(--accent); color: var(--accent); }
.tabs span { font-size: 13px; font-weight: 400; }
.compose { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.compose > summary { cursor: pointer; padding: 15px 20px; color: var(--accent); font-weight: 550; }
.compose > summary span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 14px; }
.compose form { padding: 0 20px 20px; }
label { display: block; font-size: 14px; font-weight: 550; margin: 0 0 8px; }
textarea { width: 100%; min-height: 88px; padding: 11px 13px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--fg); vertical-align: top; }
textarea::placeholder { color: var(--muted); }
textarea[readonly] { opacity: .7; }
.compose-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.compose-bottom p { color: var(--muted); font-size: 12px; margin: 0; }
.records { margin-top: 8px; }
.card { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.card:focus { outline: none; }

.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.card h2 { font-size: 18px; line-height: 1.6; font-weight: 550; margin: 0 0 5px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-block; border: 1px solid var(--line); padding: 2px 9px; border-radius: 5px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.badge.attention { color: var(--attention); border-color: currentColor; }
.badge.ready { background: var(--soft); color: var(--accent); border-color: transparent; }
.description, .message p, .summary, .state-note, .verdict p { white-space: pre-wrap; overflow-wrap: anywhere; }
.description, .summary { margin: 13px 0; }
.state-note { color: var(--muted); font-size: 14px; margin: 12px 0; }
.card details { margin-top: 13px; }
.card summary { cursor: pointer; color: var(--accent); font-size: 14px; }
h3 { font-size: 15px; font-weight: 550; margin: 18px 0 7px; }
.proposal ul { padding-left: 22px; margin-top: 5px; }
.proposal p { margin: 6px 0; }
.message { border-left: 2px solid var(--line); padding-left: 14px; margin: 15px 0; }
.message.question { border-left-color: var(--attention); }
.message p { margin: 4px 0; }
.reply-form, .review-form { margin-top: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.task-links { list-style: none; padding: 0; margin: 12px 0 0; }
.task-links li { margin-top: 7px; overflow-wrap: anywhere; }
.task-links .meta { display: block; }
.error { color: var(--error); border: 1px solid currentColor; border-radius: 7px; padding: 13px 16px; overflow-wrap: anywhere; }
.error p { margin: 0 0 10px; white-space: pre-wrap; }
.inline-status { font-size: 14px; color: var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.inline-status:empty { display: none; }
.inline-status[data-error=true] { color: var(--error); }
.empty { padding: 34px 8px; color: var(--muted); text-align: center; font-size: 14px; }
.sha, .hash { font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; color: var(--muted); }
.artifact { padding: 15px 0; border-top: 1px solid var(--line); }
.artifact a { display: inline-block; overflow-wrap: anywhere; }
.artifact img, .artifact video { max-width: 100%; max-height: 480px; display: block; background: #14191c; border-radius: 6px; margin: 12px 0; }
.artifact .hash { margin: 5px 0; }
.verdict { border-left: 2px solid var(--accent); padding-left: 14px; margin-top: 18px; }
.verdict p { margin: 5px 0; }
.explanation { color: var(--muted); font-size: 13px; }
footer { margin-top: 28px; color: var(--muted); font-size: 12px; }

:root { --side: #f7f8f7; --on-accent: #fff; }
.shell { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 100dvh; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); padding: 30px 16px 20px; display: flex; flex-direction: column; gap: 36px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; gap: 9px; align-items: center; font-size: 16px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--on-accent); }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; min-height: 44px; border-radius: 7px; color: var(--muted); }
.nav a[aria-current=page], .nav a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }
.nav span { font-size: 12px; }
.account { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 10px 0; display: grid; gap: 6px; }
.account #identity { font-size: 14px; color: var(--fg); }
.text-button { padding: 3px 0; border: 0; min-height: 36px; font-size: 13px; background: transparent; color: var(--accent); justify-content: start; }
.page-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 34px; }
h1 { font-size: 26px; font-weight: 600; }
.page-header p { margin: 0; }
.eyebrow { margin-bottom: 9px !important; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.section-heading a { font-size: 13px; }
.inbox { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.progress-section { margin-top: 36px; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
a.record-row:hover { text-decoration: none; background: var(--soft); }
.record-row > div { min-width: 0; }
.record-title { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.record-row .meta { margin-top: 5px; }
.inbox .record-row { padding: 20px; }
.inbox .record-row:last-child { border-bottom: 0; }
.list-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.detail { max-width: 680px; margin: 0 auto; }
.back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.detail .card { border-bottom: 0; padding-top: 0; }
.detail .card h2 { font-size: 23px; }
#compose { border: 0; background: transparent; }
#compose form { padding: 0; }
#compose textarea { min-height: 190px; }
.status-bar { margin-top: 40px; align-items: center; }
.status-bar > div { display: grid; gap: 4px; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 36px 24px; background: var(--side); }
.login-card { width: 100%; max-width: 370px; }
.login-card .brand { margin-bottom: 36px; }
.login-card h1 { margin-bottom: 8px; }
#login-intro { margin: 0 0 27px; }
.login-card label { margin-bottom: 8px; }
input { display: block; width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; color: var(--fg); background: var(--surface); }
.password-label { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.password-label label { margin: 0; }
.password-input { display: flex; position: relative; }
.password-input input { padding-right: 64px; }
.password-input button { position: absolute; right: 13px; top: 5px; }
#login-submit { width: 100%; margin-top: 24px; }
.login-note { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
@media (prefers-color-scheme:dark) {
  :root { --bg: #191d1c; --side: #141817; --surface: #202724; --fg: #eef1ef; --muted: #a2ada6; --line: #303a34; --accent: #93cdb0; --on-accent: #17291e; --soft: #243d2e; --error: #ffa7a0; --attention: #e8bd83; }
  button, .button { color: var(--on-accent); }
  .quiet, .text-button { color: var(--accent); }
}
@media (max-width:720px) {
  .shell { display: block; }
  .sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px 8px; gap: 16px; }
  .sidebar > .brand { font-size: 15px; }
  .nav { display: flex; justify-content: space-between; gap: 2px; }
  .nav a { padding: 8px 10px; gap: 6px; font-size: 13px; }
  .account { position: absolute; top: 12px; right: 20px; padding: 0; border: 0; gap: 0; text-align: right; max-width: 42%; }
  .account #identity { font-size: 11px; }
  .account button { min-height: 28px; justify-content: end; font-size: 11px; }
  .workspace { padding: 25px 20px; }
  .page-header { gap: 12px; margin-bottom: 27px; }
  .page-header .button { padding: 8px 10px; font-size: 12px; }
  h1 { font-size: 24px; }
  .record-row { gap: 12px; padding: 19px 0; }
  .record-row .badge { font-size: 11px; padding: 2px 6px; }
  .inbox .record-row { padding: 17px 14px; }
  .card-heading { flex-direction: column-reverse; gap: 10px; }
  .compose-bottom { align-items: stretch; flex-direction: column; gap: 12px; }
  .actions button { flex: 1; }
  .section-heading .meta { font-size: 11px; }
}
