:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17202a; background: #f3f5f7; }
* { box-sizing: border-box; }
body { margin: 0; }
button, .button, input, select { font: inherit; }
button, .button { border: 0; border-radius: 6px; min-height: 36px; padding: 0 13px; background: #087f5b; color: #fff; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:disabled { cursor: wait; background: #98a2ab; }
.secondary { background: #e9edf0; color: #26333d; }
.danger { background: #c92a2a; color: #fff; }
.quiet { background: transparent; color: #fff; min-height: 30px; }
.topbar { height: 56px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; background: #17202a; color: #fff; }
.shell { min-height: calc(100vh - 56px); display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.sidebar { padding: 18px 10px; background: #fff; border-right: 1px solid #dfe4e8; }
.sidebar a { display: block; padding: 9px 12px; margin-bottom: 3px; border-radius: 5px; color: #36434f; text-decoration: none; font-size: 14px; }
.sidebar a.active { background: #e2f3ed; color: #076b4c; font-weight: 700; }
.content { min-width: 0; padding: 24px; }
.page-title { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-title h1 { margin: 0 0 4px; font-size: 23px; letter-spacing: 0; }
.page-title p, .muted { margin: 0; color: #63717d; }
.page-actions, .actions, .scan-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.actions form { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metrics > div { padding: 15px; background: #fff; border: 1px solid #dfe4e8; border-radius: 6px; }
.metrics span { display: block; color: #63717d; font-size: 12px; margin-bottom: 5px; }
.metrics strong { font-size: 21px; }
.metrics.compact { margin-top: 18px; }
.panel { background: #fff; border: 1px solid #dfe4e8; border-radius: 6px; padding: 17px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 14px; font-size: 16px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 12px; }
.stack label, .inline-form label { display: grid; gap: 5px; color: #4c5964; font-size: 13px; }
input, select { width: 100%; height: 38px; border: 1px solid #cbd3d9; border-radius: 5px; padding: 0 10px; color: #17202a; background: #fff; }
.category-filter { display: flex; align-items: center; gap: 7px; }
.category-filter label { color: #63717d; font-size: 13px; }
.category-filter select { width: 140px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.inline-form label { min-width: 220px; }
.table-panel { padding: 0; overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #edf0f2; font-size: 13px; vertical-align: middle; }
th { background: #f8f9fa; color: #596670; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.clip { max-width: 370px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.badge { display: inline-flex; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650; }
.badge.good { color: #087f5b; background: #dff5ec; }
.badge.bad { color: #b42318; background: #fee4e2; }
.badge.off { color: #596670; background: #edf0f2; }
.notice { padding: 10px 12px; margin-bottom: 14px; border-radius: 5px; background: #e9edf0; }
.notice.success { color: #087f5b; background: #dff5ec; }
.notice.error, .error-text { color: #b42318; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid #edf0f2; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: #63717d; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.progress { height: 9px; margin-top: 18px; overflow: hidden; background: #e1e6e9; border-radius: 5px; }
.progress div { height: 100%; width: 0; background: #087f5b; transition: width .2s; }
.copy-field { display: flex; min-width: 330px; }
.copy-field input { border-radius: 5px 0 0 5px; }
.copy-field button { border-radius: 0 5px 5px 0; white-space: nowrap; }
.expiry-form { display: flex; min-width: 240px; }
.expiry-form input { border-radius: 5px 0 0 5px; }
.expiry-form button { border-radius: 0 5px 5px 0; white-space: nowrap; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #edf1f3; }
.login-panel { width: min(380px, 100%); padding: 28px; border: 1px solid #d8dee3; border-radius: 7px; background: #fff; }
.login-panel h1 { margin: 0 0 5px; font-size: 24px; }
.login-panel > p { margin: 0 0 20px; color: #63717d; }
@media (max-width: 780px) { .shell { grid-template-columns: 1fr; } .sidebar { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #dfe4e8; padding: 8px; } .sidebar a { flex: 0 0 auto; margin: 0 3px 0 0; } .content { padding: 16px 10px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-column { grid-template-columns: 1fr; } .page-title { align-items: flex-start; flex-direction: column; } }
