:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #1f2623;
  background: #eef0ed;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: wait; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
.eyebrow { margin: 0; color: #727c77; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw; background: #17362e; color: white; }
.login-copy .eyebrow { color: #9eb8ae; }
.login-copy h1 { margin: 14px 0; font-size: clamp(36px, 5vw, 64px); max-width: 620px; }
.login-copy p:last-child { max-width: 560px; color: #c4d3cd; font-size: 18px; line-height: 1.7; }
.login-form { align-self: center; width: min(420px, calc(100% - 48px)); margin: auto; padding: 32px; background: white; border: 1px solid #d9ddda; border-radius: 8px; }
.login-form h2 { margin: 0 0 24px; }
label { display: grid; gap: 7px; margin-bottom: 15px; color: #525e58; font-size: 13px; font-weight: 700; }
input { width: 100%; padding: 11px 12px; border: 1px solid #cbd1cd; border-radius: 5px; outline: none; }
input:focus { border-color: #20755a; box-shadow: 0 0 0 3px rgba(32,117,90,.12); }
.primary, .secondary, .ghost, .danger { min-height: 40px; padding: 9px 14px; border: 0; border-radius: 5px; font-weight: 750; }
.primary { background: #176f53; color: white; width: 100%; }
.secondary { background: #e4e8e5; color: #254137; }
.ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.25); }
.danger { background: #a74037; color: white; }
.error { color: #ad3d34; min-height: 20px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 32px; background: #17362e; color: white; }
.topbar .eyebrow { color: #9eb8ae; }
.topbar h1 { margin: 3px 0 0; font-size: 23px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a { color: #d8e6e0; }
.content { padding: 26px 32px 42px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #d6dbd7; background: white; }
.metrics div { padding: 20px 22px; border-right: 1px solid #e0e4e1; }
.metrics div:last-child { border: 0; }
.metrics span { display: block; color: #6a746f; font-size: 13px; }
.metrics strong { display: block; margin-top: 8px; font-size: 30px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 22px; align-items: start; }
.table-panel, .create-panel { background: white; border: 1px solid #d6dbd7; border-radius: 7px; }
.runtime-panel { margin-top: 22px; background: white; border: 1px solid #d6dbd7; border-radius: 7px; }
.runtime-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #e1e5e2; }
.runtime-grid div { padding: 18px 22px; border-right: 1px solid #e1e5e2; }
.runtime-grid div:last-child { border: 0; }
.runtime-grid span { display: block; color: #6a746f; font-size: 12px; }
.runtime-grid strong { display: block; margin-top: 7px; font-size: 25px; }
.runtime-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 20px 22px; }
.runtime-columns h3 { margin: 0 0 10px; font-size: 15px; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #edf0ee; font-size: 12px; }
.summary-list span { color: #6b7670; }
.table-panel { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #e1e5e2; }
.section-heading h2, .create-panel h2 { margin: 4px 0 0; font-size: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 18px; border-bottom: 1px solid #e6e9e7; text-align: left; font-size: 13px; }
th { color: #69736e; background: #f6f7f5; font-size: 12px; }
.status { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.status.active { background: #dceee5; color: #146347; }
.status.disabled { background: #f1dfdd; color: #94392f; }
.actions { display: flex; gap: 7px; }
.actions button { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.create-panel { padding: 22px; }
.create-panel form { margin-top: 22px; }
.hint { color: #78817d; font-size: 12px; line-height: 1.6; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 11px 15px; background: #17251f; color: white; border-radius: 5px; opacity: 0; transform: translateY(12px); transition: .18s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-copy { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid #e0e4e1; }
  .content { padding: 18px; }
  .runtime-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .runtime-grid { grid-template-columns: 1fr; } .runtime-grid div { border-right: 0; border-bottom: 1px solid #e1e5e2; } }

