:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; }
.auth { width: min(500px, calc(100% - 32px)); margin: 72px auto; }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #176b87; color: white; font-weight: 800; letter-spacing: -.05em; }
.brand h1 { margin: 0; font-size: 20px; } .brand p { margin: 3px 0 0; color: #667085; font-size: 13px; }
.panel, .metric, .table-wrap { background: #fff; border: 1px solid #e8edf4; border-radius: 16px; box-shadow: 0 5px 20px rgba(28, 50, 79, .04); }
.panel { padding: 28px; } .panel h2 { margin: 0 0 8px; font-size: 21px; } .muted { color: #667085; }
.form { display: grid; gap: 15px; margin-top: 22px; } label { display: grid; gap: 7px; color: #344054; font-weight: 600; font-size: 14px; }
input, select { width: 100%; border: 1px solid #d9e2ec; background: #fff; border-radius: 9px; padding: 11px 12px; color: #172033; outline: none; }
input:focus, select:focus { border-color: #176b87; box-shadow: 0 0 0 3px rgba(23,107,135,.12); }
.button { border: 0; border-radius: 9px; padding: 11px 15px; background: #176b87; color: white; font-weight: 700; } .button:hover { background: #105b75; }
.button.secondary { color: #176b87; background: #e9f4f7; } .button.danger { color: #b42318; background: #fff0ef; } .button.small { padding: 7px 10px; font-size: 13px; }
.notice { border-radius: 10px; padding: 11px 12px; margin-top: 15px; font-size: 14px; } .notice.error { background: #fff1f0; color: #b42318; } .notice.info { background: #eef8fa; color: #0e5e78; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { padding: 24px 16px; background: #15202b; color: #fff; } .sidebar .brand { margin: 0 8px 33px; } .sidebar .brand p { color: #9aacba; }
.nav { display: grid; gap: 5px; } .nav button { text-align: left; border: 0; color: #c5d2dc; background: transparent; padding: 11px 12px; border-radius: 8px; } .nav button.active, .nav button:hover { color: #fff; background: #274354; }
.sidebar-footer { position: fixed; bottom: 20px; width: 205px; color: #a9b8c4; font-size: 13px; } .sidebar-footer strong { color: #fff; display: block; margin-bottom: 3px; }
.content { padding: 34px; max-width: 1500px; width: 100%; margin: 0 auto; } .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.topbar h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; } .topbar p { margin: 7px 0 0; color: #667085; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .metric { padding: 20px; } .metric span { color: #667085; font-size: 13px; } .metric strong { font-size: 25px; display: block; margin-top: 11px; letter-spacing: -.04em; } .metric small { display: block; margin-top: 8px; color: #8592a3; }
.section { margin-top: 27px; } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; } .section-header h3 { margin: 0; font-size: 18px; } .section-header p { margin: 4px 0 0; font-size: 13px; color: #667085; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 680px; } th, td { text-align: left; padding: 14px 17px; border-bottom: 1px solid #edf1f5; font-size: 14px; } th { color: #667085; font-weight: 600; background: #fbfcfd; } tr:last-child td { border: 0; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef8f0; color: #177746; font-size: 12px; font-weight: 700; } .badge.frozen, .badge.pending { background: #fff8e7; color: #9a6700; } .badge.closed, .badge.failed, .badge.disabled { background: #fff1f0; color: #b42318; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; } .empty { color: #667085; padding: 34px; text-align: center; }
.dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21,32,43,.43); z-index: 2; } .dialog { width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.card-name { font-weight: 700; } .sub { display: block; color: #7e8999; margin-top: 3px; font-size: 12px; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } .sidebar { padding: 15px; position: sticky; top: 0; z-index: 1; } .sidebar .brand { display: none; } .nav { grid-template-columns: repeat(4, 1fr); overflow: auto; } .nav button { white-space: nowrap; text-align: center; } .sidebar-footer { display: none; } .content { padding: 22px 16px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .topbar { align-items: stretch; flex-direction: column; } .topbar .button { width: 100%; } }
