:root { font: 15px/1.5 system-ui, sans-serif; color: #192b3b; background: #f5f7fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #e2e7ed; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; line-height: 1.15; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.15rem; letter-spacing: -.03em; }
.brand small { color: #647487; margin-top: .2rem; font-size: .77rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: #136a65; font-size: 1.3rem; font-weight: 800; }
main { padding: 2rem 0 4rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -.04em; margin-bottom: .25rem; }
h2 { font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: .8rem; }
p { color: #566779; }
.eyebrow { color: #147369; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.muted { color: #718093; font-size: .82rem; word-break: break-all; }
.card { border: 1px solid #e1e7ed; border-radius: 14px; background: #fff; box-shadow: 0 3px 15px #1b365008; padding: 1.35rem; margin-bottom: 1rem; }
.login-card { max-width: 480px; margin: min(10vh, 5rem) auto 0; padding: 2rem; }
.login-card p { margin: 1rem 0 1.5rem; }
.login-card form { display: grid; gap: .7rem; }
.login-card .button { margin-top: .4rem; }
label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .35rem; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 42px; border: 1px solid #bac6d1; border-radius: 8px; padding: .55rem .7rem; background: #fff; color: #192b3b; }
input:focus, select:focus, button:focus-visible { outline: 2px solid #2c8d82; outline-offset: 2px; }
.button { border: 1px solid transparent; border-radius: 8px; padding: .58rem .95rem; min-height: 42px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { color: #fff; background: #136a65; }
.primary:hover { background: #0e5955; }
.subtle { color: #174c59; background: #e8f4f2; border-color: #d0e6e2; }
.subtle:hover { background: #d6ebe7; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.45rem; }
.page-heading p { margin-bottom: 0; }
.tenant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tenant-card { display: block; width: 100%; text-align: left; padding: 1.2rem; cursor: pointer; }
.tenant-card:hover { border-color: #78b8ae; box-shadow: 0 7px 22px #1b365015; }
.tenant-card strong { display: block; font-size: 1.12rem; margin-bottom: .35rem; }
.tenant-card small { display: block; color: #617286; margin-bottom: 1.25rem; word-break: break-all; }
.tenant-card span { color: #235f64; font-size: .83rem; font-weight: 650; }
.create-tenant { max-width: 550px; }
.form-row { display: flex; align-items: end; gap: .8rem; }
.form-row > div { flex: 1; }
.back-button { border: 0; background: none; color: #186b65; font-weight: 650; padding: 0; margin-bottom: 1.3rem; cursor: pointer; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid #d8e0e7; margin-bottom: 1.3rem; }
.tabs button { border: 0; background: none; color: #607184; padding: .8rem 1rem; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 650; }
.tabs button[aria-current="page"] { color: #136a65; border-bottom-color: #136a65; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stack { display: grid; gap: .75rem; max-width: 390px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .9rem; max-width: 700px; }
.form-grid .button { justify-self: start; }
.help-card { background: #edf6f4; border-color: #d2e9e3; }
.help-card p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem .5rem; border-bottom: 1px solid #e9edf1; text-align: left; vertical-align: middle; }
th { color: #617286; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
tbody tr:last-child td { border-bottom: 0; }
.row-action { border: 0; padding: .3rem 0; background: none; color: #146d68; font-weight: 700; cursor: pointer; }
.row-action:hover { text-decoration: underline; }
.badge { display: inline-block; border-radius: 99px; padding: .17rem .55rem; font-size: .76rem; font-weight: 750; background: #eef1f4; color: #536475; }
.badge.good { background: #def3e9; color: #126044; }
.badge.warn { background: #fff0db; color: #8d570d; }
.badge.bad { background: #fbe4e5; color: #9d3039; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.summary-card { border: 1px solid #e1e7ed; border-radius: 12px; background: #fff; padding: 1rem; }
.summary-card strong { display: block; font-size: 1.8rem; line-height: 1.2; }
.summary-card span { color: #617286; font-size: .82rem; }
.notice { border-radius: 9px; padding: .7rem 1rem; margin: 0 0 1.2rem; background: #e8f4f2; color: #14554f; font-weight: 600; }
.notice.error { background: #fceced; color: #92333b; }
.empty { padding: 1.2rem; color: #6d7d8c; text-align: center; }
code { font-size: .9em; background: #eef2f4; padding: .1rem .3rem; border-radius: 4px; }
@media (max-width: 700px) { .two-column, .form-grid { grid-template-columns: 1fr; } .form-row { align-items: stretch; flex-direction: column; } .form-row .button { align-self: start; } .page-heading { align-items: start; flex-direction: column; } .login-card { margin-top: 2rem; padding: 1.4rem; } }
