:root { color-scheme: light; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; color: #202522; background: #f6f7f5; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
[hidden] { display: none !important; }
button,input { font: inherit; }
button { cursor: pointer; }
button:focus-visible,input:focus-visible { outline: 2px solid #628a65; outline-offset: 2px; }
.topbar { min-height: 68px; padding: 0 max(24px,calc((100% - 1200px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e5df; background: #fff; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.brand-mark { display: grid; place-items: center; background: #242b25; color: #fff; width: 46px; height: 46px; border-radius: 6px; font: 700 23px Georgia,serif; }
.brand-mark.small { width: 32px; height: 32px; font-size: 17px; }
.brand-sub,.eyebrow { font-size: 10px; font-weight: 700; color: #929b92; letter-spacing: 0; }
.brand-sub { margin-left: 5px; }
main { width: min(1200px,calc(100% - 48px)); margin: 0 auto; padding: 60px 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 12px; }
h1,h2,p { margin-top: 0; }
h1 { font-size: 30px; margin-bottom: 0; }
h2 { font-size: 20px; margin-bottom: 0; }
.primary,.secondary,.quiet { min-height: 40px; border-radius: 4px; padding: 0 17px; font-weight: 600; }
.primary { background: #25392a; color: white; border: 1px solid #25392a; }
.primary:hover { background: #36543c; }
.secondary { background: #fff; color: #343b35; border: 1px solid #d8ddd7; }
.quiet { color: #59645b; border: 1px solid transparent; background: transparent; }
.quiet:hover,.secondary:hover { background: #f2f4f1; }
.summary { margin: 35px 0 0; padding: 16px 0; display: flex; align-items: center; gap: 15px; color: #737d74; font-size: 13px; border-top: 1px solid #dfe4de; border-bottom: 1px solid #dfe4de; }
.separator { height: 15px; width: 1px; background: #dce1db; }
.summary-right { margin-left: auto; color: #99a099; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 680px; text-align: left; }
th { color: #8b948c; font-size: 12px; font-weight: 500; padding: 16px 12px; }
td { border-top: 1px solid #e7ebe6; padding: 19px 12px; font-size: 14px; vertical-align: middle; }
th:first-child,td:first-child { padding-left: 0; }
th:last-child,td:last-child { padding-right: 0; }
.account-name { font-weight: 600; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #4d7252; font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #72a679; }
.status.off { color: #858a85; }
.status.off::before { background: #aeb4ae; }
.status.pending { color: #a17832; }
.status.pending::before { background: #d3a34b; }
.status.failed { color: #a2544e; }
.status.failed::before { background: #c76d65; }
.subtle { color: #8d978e; font-size: 12px; margin-top: 5px; }
.actions-head,.actions { text-align: right; white-space: nowrap; }
.text-button { background: none; border: 0; color: #45664b; padding: 5px; font-size: 13px; font-weight: 600; }
.text-button:hover { color: #1f3423; text-decoration: underline; }
.actions .text-button + .text-button { margin-left: 10px; }
.empty { text-align: center; padding: 90px 20px; color: #79827a; font-size: 14px; }
.empty strong { display: block; font-weight: 500; margin-bottom: 10px; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-form { width: min(100%,360px); }
.login-form .brand-mark { margin-bottom: 42px; }
.login-form h1 { margin-bottom: 40px; }
label,.field-head { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input[type=text],input[type=password],input[type=number] { width: 100%; height: 44px; border: 1px solid #d9dfd9; background: #fff; border-radius: 4px; padding: 0 12px; color: #202522; }
.quota-label { margin-top: 20px; }
input[type=checkbox] { accent-color: #416d49; width: 16px; height: 16px; }
.wide { width: 100%; }
.error { color: #aa4942; min-height: 20px; font-size: 13px; margin: 9px 0; }
dialog { border: 1px solid #e1e5e0; border-radius: 6px; padding: 0; width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 18px 80px #1113; }
dialog::backdrop { background: #20272080; }
dialog form { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; margin-bottom: 28px; }
.dialog-head .eyebrow { margin-bottom: 8px; }
.close { border: 0; background: none; font-size: 26px; color: #7d867e; width: 32px; height: 32px; line-height: 1; }
.field-head { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.node-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; border-top: 1px solid #e8ece7; }
.node-list label,.enable-line { min-height: 44px; display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; border-bottom: 1px solid #e8ece7; }
.enable-line { margin-top: 20px; border: 0; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 15px; color: #fff; background: #253329; border-radius: 4px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
#toast.show { opacity: 1; }
@media (max-width: 600px) {
  .topbar { padding: 0 18px; }
  .brand-sub { display: none; }
  main { width: calc(100% - 36px); padding-top: 40px; }
  h1 { font-size: 25px; }
  .summary-right { display: none; }
  .node-list { grid-template-columns: 1fr; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 13px 10px; padding: 20px 0; border-bottom: 1px solid #e4e9e3; }
  tbody td,tbody td:first-child,tbody td:last-child { border: 0; padding: 0; }
  .name-cell { grid-column: 1; }
  .status-cell { grid-column: 2; text-align: right; }
  .node-cell,.traffic-cell { color: #626d63; font-size: 13px; }
  .node-cell::before,.traffic-cell::before { content: attr(data-label) "  "; color: #9aa29a; }
  .traffic-cell { text-align: right; }
  .traffic-cell > div:first-child { display: inline; }
  .actions { grid-column: 1 / -1; text-align: left; }
  .actions .text-button:first-child { padding-left: 0; }
}
