:root {
    color: #182129;
    background: #f3f5f4;
    font-family: Tahoma, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #e0eee8, transparent 38rem), #f3f5f4;
    direction: rtl;
    text-align: right;
}
.shell { width: min(100% - 2rem, 92rem); margin: 0 auto; padding: 2rem 0 4rem; }
.brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 3.5rem; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; color: white; background: #116149; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: .05rem; color: #64706a; font-size: .7rem; letter-spacing: .16em; }
.card { border: 1px solid #dce3df; border-radius: 1.1rem; background: rgba(255,255,255,.94); box-shadow: 0 1.5rem 4rem rgba(24,33,41,.08); padding: clamp(1.4rem, 4vw, 2.5rem); }
.auth-card { width: min(100%, 28rem); margin: 0 auto; }
.card-heading { margin-bottom: 1.7rem; }
.eyebrow { margin: 0 0 .45rem; color: #116149; font-size: .78rem; font-weight: 800; }
h1 { margin: 0 0 .65rem; color: #111a20; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.12; }
h2 { margin: 2rem 0 .5rem; font-size: 1.15rem; }
p { line-height: 1.6; }
.card-heading p:last-child, .muted { color: #64706a; }
label { display: block; margin: 1rem 0 .4rem; font-size: .88rem; font-weight: 700; }
input, select { width: 100%; min-height: 3rem; border: 1px solid #bcc8c2; border-radius: .65rem; padding: .7rem .85rem; background: white; color: #111a20; font: inherit; }
input:focus { border-color: #116149; outline: 3px solid rgba(17,97,73,.14); }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; margin-top: 1.35rem; border: 0; border-radius: .65rem; padding: .7rem 1.1rem; background: #116149; color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
form:not(.inline-form) button { width: 100%; }
button:hover, .button:hover { background: #0b4d39; }
button.secondary { background: #e7eeea; color: #183d31; }
.alert { border: 1px solid #e8b7b7; border-radius: .65rem; padding: .8rem .9rem; background: #fff2f2; color: #842b2b; font-size: .9rem; line-height: 1.45; }
.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.account-summary div { padding: 1rem; border-radius: .75rem; background: #f3f7f5; }
dt { color: #64706a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
dd { margin: .4rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
th, td { border-bottom: 1px solid #dce3df; padding: .8rem .65rem; text-align: right; }
th { color: #52615a; font-size: .8rem; }
.technical-value { direction: ltr; text-align: left; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.wide-card { padding-inline: clamp(1rem, 3vw, 2rem); }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.text-link { color: #116149; font-weight: 750; text-decoration: none; white-space: nowrap; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { min-width: 68rem; }
.summary-cell { min-width: 15rem; white-space: normal; }
.empty-state { padding: 2rem; color: #64706a; text-align: center; }
.module-grid, .gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.module-card { display: block; border: 1px solid #dce3df; border-radius: .85rem; padding: 1.1rem; background: #f7faf8; color: #182129; text-decoration: none; }
.module-card:hover { border-color: #116149; background: #eff7f3; }
.module-card strong, .module-card span { display: block; }
.module-card span { margin-top: .4rem; color: #64706a; font-size: .85rem; }
.gate-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: .75rem; background: #f3f7f5; }
.gate-on { color: #116149; }
.gate-off { color: #9b3030; }
.status-badge { display: inline-block; border-radius: 999px; padding: .25rem .55rem; background: #eef3f0; font-size: .75rem; white-space: nowrap; }
@media (max-width: 36rem) {
    .shell { padding-top: 1.25rem; }
    .brand { margin-bottom: 2rem; }
    .account-summary { grid-template-columns: 1fr; }
    .module-grid, .gate-grid { grid-template-columns: 1fr; }
    .page-heading { display: block; }
}
