:root {
    --bg: #06101b;
    --bg-deep: #030a12;
    --panel: #0b1927;
    --panel-soft: #0e2031;
    --panel-raised: #12283a;
    --line: rgba(153, 184, 205, 0.16);
    --line-strong: rgba(153, 184, 205, 0.31);
    --text: #f1f7fa;
    --muted: #91a7b6;
    --muted-strong: #b8c7d1;
    --green: #6ce7bd;
    --green-bright: #92f4d1;
    --green-dark: #143c34;
    --amber: #f2bd69;
    --amber-dark: #432f19;
    --red: #ff817d;
    --red-dark: #421d22;
    --blue: #78bff7;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 20px;
    --radius-small: 11px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 8%, rgba(54, 137, 127, 0.14), transparent 28rem),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(125, 159, 181, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 159, 181, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.62; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; }
p { color: var(--muted-strong); }
code, .mono { font-family: var(--mono); }

::selection { color: #05120e; background: var(--green); }
:focus-visible { outline: 3px solid rgba(108, 231, 189, 0.55); outline-offset: 3px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    color: #04110d;
    background: var(--green);
    border-radius: 0.5rem;
    font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
#main-content { flex: 1; }
.page-width { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 13, 22, 0.88);
    backdrop-filter: blur(18px);
}
.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 74px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: max-content; }
.brand-mark {
    width: 36px;
    height: 36px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(108, 231, 189, 0.46);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(108, 231, 189, 0.17), rgba(108, 231, 189, 0.025));
    box-shadow: inset 0 0 18px rgba(108, 231, 189, 0.06);
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--green); opacity: 0.75; }
.brand-mark::before { width: 18px; height: 2px; }
.brand-mark::after { width: 2px; height: 18px; }
.brand-mark span { width: 7px; height: 7px; border: 2px solid var(--green); border-radius: 50%; background: var(--bg); z-index: 1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { letter-spacing: -0.025em; font-size: 1rem; }
.brand-copy small { margin-top: 0.25rem; color: var(--muted); font: 0.58rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 0.35rem; }
.primary-nav > a, .nav-signout {
    padding: 0.62rem 0.75rem;
    color: var(--muted-strong);
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 0.86rem;
    transition: color 160ms ease, background 160ms ease;
}
.primary-nav > a:hover, .primary-nav > a.is-current, .nav-signout:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.primary-nav > a.is-current { color: var(--green-bright); }
.nav-form { margin: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 11px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; }

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    letter-spacing: -0.01em;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #04120e; background: var(--green); border-color: var(--green); box-shadow: 0 12px 30px rgba(46, 175, 135, 0.16); }
.button-primary:hover { background: var(--green-bright); }
.button-outline { color: var(--green-bright); border-color: rgba(108, 231, 189, 0.38); background: rgba(108, 231, 189, 0.045); }
.button-quiet { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.025); }
.button-small { min-height: 38px; padding: 0.55rem 0.85rem !important; }
.button-block { width: 100%; }
.text-link { color: var(--green-bright); font-weight: 750; }

.hero { padding: 6.3rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr); gap: 5rem; align-items: center; }
.eyebrow, .kicker { color: var(--green); font: 700 0.69rem/1.2 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 0.58rem; margin-bottom: 1.25rem; }
.status-light { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px var(--green); }
.hero h1 { max-width: 760px; margin-bottom: 1.4rem; font-size: clamp(2.7rem, 5.2vw, 5rem); }
.hero-lede { max-width: 680px; margin-bottom: 2rem; font-size: 1.14rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.boundary-note, .boundary-banner {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(120, 191, 247, 0.25);
    border-radius: 12px;
    background: rgba(41, 104, 148, 0.08);
}
.boundary-note { max-width: 680px; margin-top: 2.2rem; }
.boundary-note p, .boundary-banner p { margin: 0; color: var(--muted-strong); font-size: 0.85rem; }
.boundary-note strong, .boundary-banner strong { color: var(--text); }
.boundary-icon { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue); border: 1px solid rgba(120, 191, 247, 0.45); border-radius: 50%; font: 800 0.75rem var(--mono); }

.hero-console {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(16, 37, 53, 0.95), rgba(7, 18, 29, 0.98));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
}
.hero-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(108, 231, 189, 0.045), transparent 35%); }
.console-topline { min-height: 43px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 0.6rem var(--mono); letter-spacing: 0.12em; }
.console-live { color: var(--green); }
.console-customer { padding: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; border-bottom: 1px solid var(--line); }
.customer-initials, .record-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(108, 231, 189, 0.28); border-radius: 10px; color: var(--green-bright); background: var(--green-dark); font: 750 0.75rem var(--mono); }
.console-customer div { display: flex; flex-direction: column; }
.console-customer small, .console-grid small { color: var(--muted); font: 0.56rem var(--mono); letter-spacing: 0.12em; }
.console-customer strong { margin-top: 0.25rem; }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; }
.console-grid > div { min-height: 105px; padding: 1rem 1.1rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.console-grid > div:nth-child(2n) { border-right: 0; }
.console-grid strong { margin: 0.62rem 0 0.1rem; font-size: 1.08rem; }
.console-grid span { color: var(--muted); font-size: 0.74rem; }
.console-checks { padding: 0.65rem 1.1rem 1rem; }
.console-checks > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; min-height: 39px; border-bottom: 1px solid rgba(153, 184, 205, 0.09); font-size: 0.72rem; }
.console-checks > div:last-child { border: 0; }
.console-checks span { color: var(--muted); font: 0.6rem var(--mono); }
.console-checks p { margin: 0; color: var(--muted-strong); }
.console-checks b { color: var(--green); font: 700 0.6rem var(--mono); text-transform: uppercase; }

.status-pill { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 0.32rem 0.53rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 700 0.58rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.status-active { color: var(--green-bright); border-color: rgba(108, 231, 189, 0.32); background: rgba(108, 231, 189, 0.1); }
.status-warning { color: var(--amber); border-color: rgba(242, 189, 105, 0.34); background: rgba(242, 189, 105, 0.09); }
.status-danger { color: var(--red); border-color: rgba(255, 129, 125, 0.34); background: rgba(255, 129, 125, 0.09); }
.status-neutral { color: var(--muted-strong); }
.status-large { padding: 0.52rem 0.8rem; font-size: 0.68rem; }

.proof-strip { border-block: 1px solid var(--line); background: rgba(10, 25, 38, 0.72); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { min-height: 110px; padding: 1rem 1.4rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof-grid > div:last-child { border: 0; }
.proof-grid strong { font-size: 1.08rem; }
.proof-grid span { color: var(--muted); font: 0.64rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.content-section { padding-block: 7rem; scroll-margin-top: 76px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.65fr); gap: 4rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .security-panel h2, .cta-inner h2 { max-width: 750px; margin: 0.75rem 0 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.section-heading > p { margin: 0; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.feature-card { min-height: 260px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 38, 55, 0.74), rgba(8, 20, 32, 0.8)); }
.feature-card h3 { margin: 2.8rem 0 0.8rem; font-size: 1.45rem; }
.feature-card p { margin-bottom: 0; }
.feature-number { color: var(--green); font: 0.65rem var(--mono); }
.feature-wide { grid-row: span 2; min-height: 536px; display: flex; flex-direction: column; }
.feature-wide h3 { margin-top: auto; font-size: 2.2rem; }
.signal-list { display: grid; gap: 0.6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.signal-list li { padding-top: 0.6rem; border-top: 1px solid var(--line); color: var(--muted-strong); font: 0.68rem var(--mono); text-transform: uppercase; }
.onboarding-section { width: 100%; max-width: none; background: rgba(8, 22, 34, 0.78); border-block: 1px solid var(--line); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline li { min-height: 255px; padding: 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.timeline li:last-child { border: 0; }
.timeline > li > span { color: var(--green); font: 0.7rem var(--mono); }
.timeline div { margin-top: auto; }
.timeline strong { font-size: 1.03rem; }
.timeline p { margin: 0.7rem 0 0; font-size: 0.85rem; }
.security-panel { display: grid; grid-template-columns: 1fr 0.8fr; gap: 5rem; padding: 3rem; border: 1px solid rgba(108, 231, 189, 0.22); border-radius: var(--radius); background: linear-gradient(125deg, rgba(24, 67, 59, 0.34), rgba(7, 20, 31, 0.9)); }
.security-panel p { margin: 1.2rem 0 0; max-width: 680px; }
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.security-list > div { min-height: 115px; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 15, 23, 0.45); }
.security-list span { color: var(--green); font: 0.62rem var(--mono); letter-spacing: 0.1em; }
.security-list p { margin-top: 1rem; font-size: 0.8rem; }
.cta-band { padding: 5rem 0; border-top: 1px solid var(--line); background: linear-gradient(100deg, rgba(27, 76, 65, 0.3), rgba(8, 21, 33, 0.75)); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

.auth-page { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 5rem 0; }
.auth-layout { display: grid; grid-template-columns: 0.9fr minmax(400px, 0.62fr); gap: 6rem; align-items: center; }
.auth-context h1 { margin: 0.85rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.auth-context > p { max-width: 620px; font-size: 1.05rem; }
.auth-boundary { max-width: 520px; margin-top: 2.2rem; padding: 1rem; display: flex; flex-direction: column; border-left: 2px solid var(--green); background: rgba(108, 231, 189, 0.045); }
.auth-boundary strong { font-size: 0.85rem; }
.auth-boundary span { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }
.auth-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(12, 29, 43, 0.96); box-shadow: var(--shadow); overflow: hidden; }
.card-topline { min-height: 45px; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.1em; }
.stack-form { display: grid; gap: 1.05rem; padding: 1.55rem; }
.auth-foot { padding: 1rem 1.55rem; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 0.78rem; }
.auth-foot a { color: var(--muted-strong); }
.auth-foot a:hover { color: var(--green); }
.auth-privacy { margin: 0; padding: 0 1.55rem 1.5rem; font-size: 0.72rem; }

.field { display: flex; flex-direction: column; gap: 0.42rem; min-width: 0; }
.field > span:first-child { color: var(--muted-strong); font-size: 0.76rem; font-weight: 700; }
.field small { color: var(--muted); font-size: 0.68rem; }
.field input, .field select, .field textarea, .search-field input, .inline-control select {
    width: 100%;
    min-height: 45px;
    padding: 0.7rem 0.78rem;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(3, 12, 20, 0.72);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #617685; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: rgba(108, 231, 189, 0.62); outline: 0; box-shadow: 0 0 0 3px rgba(108, 231, 189, 0.1); }
.password-field { display: grid; grid-template-columns: 1fr auto; padding: 0 !important; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(3, 12, 20, 0.72); overflow: hidden; }
.password-field input { border: 0; border-radius: 0; background: transparent; }
.password-field button { padding: 0 0.8rem; color: var(--green); border: 0; border-left: 1px solid var(--line); background: transparent; font-size: 0.7rem; font-weight: 750; }

.portal-page { padding-block: 3rem 6rem; }
.portal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.portal-heading h1 { margin: 0.65rem 0 0.6rem; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.portal-heading p { max-width: 740px; margin-bottom: 0; }
.operator-chip, .count-chip { flex: 0 0 auto; display: flex; flex-direction: column; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.operator-chip span, .count-chip span { color: var(--muted); font: 0.56rem var(--mono); letter-spacing: 0.1em; }
.operator-chip strong { margin-top: 0.2rem; font-size: 0.77rem; }
.count-chip { min-width: 100px; text-align: center; }
.count-chip strong { color: var(--green); font: 1.5rem var(--mono); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.metric-card { min-height: 150px; padding: 1.15rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.metric-card span { color: var(--muted); font: 0.58rem var(--mono); letter-spacing: 0.09em; }
.metric-card strong { margin-top: auto; color: var(--green-bright); font: 2.3rem var(--mono); }
.metric-card small { color: var(--muted); font-size: 0.68rem; }
.metric-warning strong { color: var(--amber); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 0.8rem 0 2rem; }
.quick-actions a { min-height: 84px; padding: 1rem; display: flex; align-items: center; gap: 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 29, 43, 0.7); transition: border-color 150ms ease, transform 150ms ease; }
.quick-actions a:hover { border-color: rgba(108, 231, 189, 0.4); transform: translateY(-1px); }
.quick-actions a > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); border: 1px solid rgba(108, 231, 189, 0.24); border-radius: 9px; background: rgba(108, 231, 189, 0.06); font: 1rem var(--mono); }
.quick-actions div { display: flex; flex-direction: column; }
.quick-actions strong { font-size: 0.88rem; }
.quick-actions small { color: var(--muted); font-size: 0.67rem; }
.dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel, .form-panel, .license-card, .environment-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 25, 39, 0.86); }
.panel { padding: 1.25rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0.35rem 0 0; font-size: 1.2rem; }
.panel-heading > a, .panel-heading > span { color: var(--green); font-size: 0.72rem; }
.record-list { display: grid; }
.record-row { min-height: 70px; display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid var(--line); }
.record-row:first-child { border-top: 0; }
.record-icon { width: 35px; height: 35px; font-size: 0.64rem; }
.record-icon-key { color: var(--amber); border-color: rgba(242, 189, 105, 0.27); background: var(--amber-dark); }
.record-main { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.record-main strong, .record-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-main strong { font-size: 0.82rem; }
.record-main small { color: var(--muted); font-size: 0.68rem; }
.empty-state { padding: 2rem 1rem; text-align: center; }
.empty-state p { margin: 0.4rem auto 0; font-size: 0.8rem; }
.empty-state.compact { padding: 1rem 0; text-align: left; }

.form-panel { margin-bottom: 1.2rem; overflow: hidden; }
.form-panel-intro { padding: 1.4rem; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(108, 231, 189, 0.055), transparent); }
.form-panel-intro h2 { margin: 0.45rem 0; }
.form-panel-intro p { max-width: 760px; margin: 0; font-size: 0.84rem; }
.data-form { padding: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.3rem; }
.form-actions p { margin: 0; font-size: 0.72rem; }
.form-actions .status-light { margin-right: 0.4rem; }
.data-panel { padding: 0; overflow: hidden; }
.data-panel > .panel-heading { padding: 1.2rem 1.3rem 0; }
.search-field input { width: min(250px, 100%); min-height: 39px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.data-table th { padding: 0.72rem 1rem; color: var(--muted); border-block: 1px solid var(--line); background: rgba(4, 14, 23, 0.6); text-align: left; font: 0.57rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.data-table td { min-height: 70px; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > small { color: var(--muted); }
.table-identity { display: flex; align-items: center; gap: 0.65rem; }
.table-identity > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); border: 1px solid rgba(108, 231, 189, 0.25); border-radius: 8px; background: var(--green-dark); font: 0.6rem var(--mono); }
.table-identity div { display: flex; flex-direction: column; }
.table-identity small { color: var(--muted); }
.table-action { text-align: right; }
.inline-control { display: inline-flex; gap: 0.45rem; align-items: center; }
.inline-control select { width: auto; min-height: 36px; padding: 0.42rem 2rem 0.42rem 0.6rem; font-size: 0.7rem; }
.inline-control button { min-height: 36px; padding: 0.4rem 0.7rem; color: var(--green); border: 1px solid rgba(108, 231, 189, 0.28); border-radius: 7px; background: rgba(108, 231, 189, 0.06); font-size: 0.67rem; font-weight: 750; }
.inline-control button:hover { background: rgba(108, 231, 189, 0.12); }
.action-status { min-height: 1.5rem; margin-top: 0.7rem; color: var(--green); font-size: 0.76rem; }

.license-grid, .environment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.license-card, .environment-card { padding: 1.25rem; }
.license-card-head, .environment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.license-card-head h2, .environment-head h2 { margin: 0.35rem 0 0; font-size: 1.15rem; }
.masked-key { margin: 1rem 0; padding: 0.8rem; display: flex; flex-direction: column; border: 1px dashed var(--line-strong); border-radius: 9px; background: rgba(3, 12, 20, 0.45); }
.masked-key span { color: var(--muted); font: 0.55rem var(--mono); }
.masked-key code { margin-top: 0.25rem; color: var(--muted-strong); font-size: 0.75rem; letter-spacing: 0.05em; }
.license-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; }
.license-facts > div { padding: 0.7rem; border: 1px solid var(--line); border-right: 0; }
.license-facts > div:first-child { border-radius: 8px 0 0 8px; }
.license-facts > div:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.license-facts dt, .detail-list dt, .customer-license-list dt { color: var(--muted); font: 0.55rem var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.license-facts dd, .detail-list dd, .customer-license-list dd { margin: 0.25rem 0 0; font-weight: 750; font-size: 0.77rem; }
.license-status-control { width: 100%; display: grid; grid-template-columns: 1fr auto; }
.license-status-control select { width: 100%; }
.activation-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.activation-heading, .activation-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.activation-heading span { color: var(--muted); font-size: 0.65rem; }
.activation-row { min-height: 54px; border-top: 1px solid rgba(153, 184, 205, 0.09); }
.activation-row > div { min-width: 0; display: flex; flex-direction: column; }
.activation-row strong { overflow: hidden; color: var(--muted-strong); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.activation-row small, .muted-line { color: var(--muted); font-size: 0.64rem; }
.muted-line { margin: 0.8rem 0 0; }
.danger-link { padding: 0.3rem 0.5rem; color: var(--red); border: 1px solid rgba(255, 129, 125, 0.24); border-radius: 6px; background: rgba(255, 129, 125, 0.06); font-size: 0.62rem; }

.boundary-banner { margin-bottom: 1.2rem; }
.boundary-banner > div { min-width: 0; }
.boundary-warning { border-color: rgba(242, 189, 105, 0.28); background: rgba(242, 189, 105, 0.07); }
.boundary-warning .boundary-icon { color: var(--amber); border-color: rgba(242, 189, 105, 0.4); }
.environment-head { align-items: center; }
.environment-head > div { min-width: 0; flex: 1; }
.environment-head h2, .environment-head code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.environment-head code { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.65rem; }
.environment-checks { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; border: 1px solid var(--line); border-radius: 8px; }
.environment-checks > div { min-width: 0; padding: 0.7rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.environment-checks > div:last-child { border: 0; }
.environment-checks span { color: var(--muted); font: 0.54rem var(--mono); }
.environment-checks strong { margin-top: 0.2rem; overflow: hidden; font-size: 0.73rem; text-overflow: ellipsis; white-space: nowrap; }
.text-good { color: var(--green); }
.text-warning { color: var(--amber); }

.customer-heading { align-items: center; }
.customer-summary-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; margin-bottom: 1rem; }
.detail-list { display: grid; margin: 0; }
.detail-list > div { padding: 0.75rem 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.detail-list > div:first-child { border-top: 0; }
.detail-list dd { text-align: right; }
.customer-license-panel { margin-top: 1rem; }
.customer-license-list { display: grid; gap: 0.7rem; }
.customer-license-list article { padding: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 14, 23, 0.45); }
.customer-license-list article h3 { margin: 0.7rem 0 0.25rem; }
.customer-license-list article code { color: var(--muted); font-size: 0.7rem; }
.customer-license-list article dl { display: grid; grid-template-columns: repeat(3, minmax(85px, 1fr)); gap: 1.3rem; margin: 0; text-align: right; }
.support-strip { margin-top: 1rem; padding: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid rgba(108, 231, 189, 0.2); border-radius: var(--radius); background: rgba(108, 231, 189, 0.045); }
.support-strip h2 { margin: 0.4rem 0; }
.support-strip p { margin: 0; font-size: 0.8rem; }

.flash-wrap { position: relative; z-index: 50; width: min(1180px, calc(100% - 40px)); margin: 1rem auto 0; }
.flash { padding: 0.9rem 1rem; display: flex; justify-content: space-between; gap: 1rem; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--panel-raised); box-shadow: var(--shadow); }
.flash-success { border-color: rgba(108, 231, 189, 0.32); }
.flash-error { border-color: rgba(255, 129, 125, 0.4); }
.flash-warning { border-color: rgba(242, 189, 105, 0.4); }
.flash strong { font-size: 0.84rem; }
.flash-close { align-self: flex-start; color: var(--muted); border: 0; background: transparent; font-size: 1.2rem; }
.one-time-data { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.one-time-data > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; }
.one-time-data span { color: var(--muted); font: 0.55rem var(--mono); text-transform: uppercase; }
.one-time-data code { overflow-wrap: anywhere; color: var(--green-bright); font-size: 0.72rem; }
.copy-button { padding: 0.3rem 0.55rem; color: var(--green); border: 1px solid rgba(108, 231, 189, 0.25); border-radius: 6px; background: rgba(108, 231, 189, 0.05); font-size: 0.62rem; }
.flash-note { margin: 0.6rem 0 0; font-size: 0.67rem; }

.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 5rem; }
.error-code { color: rgba(108, 231, 189, 0.1); font: 9rem/0.8 var(--mono); }
.error-page h1 { margin: 0.9rem 0; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.error-page p { max-width: 620px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(3, 10, 17, 0.75); }
.footer-inner { width: min(1180px, calc(100% - 40px)); min-height: 170px; margin-inline: auto; padding: 2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.footer-inner p { margin: 0.9rem 0 0; font-size: 0.76rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; color: var(--muted); font-size: 0.72rem; }
.footer-links a:hover { color: var(--green); }

[hidden] { display: none !important; }
.is-filtered { display: none !important; }
.is-busy { opacity: 0.66; pointer-events: none; }

@media (max-width: 980px) {
    .hero-grid, .auth-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero-console { width: min(650px, 100%); }
    .hero { padding-top: 4.5rem; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .section-heading, .security-panel, .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-wide { grid-column: span 2; grid-row: auto; min-height: 400px; }
    .timeline { grid-template-columns: 1fr 1fr; }
    .timeline li:nth-child(2) { border-right: 0; }
    .timeline li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .license-grid, .environment-grid { grid-template-columns: 1fr; }
    .auth-context { max-width: 700px; }
    .auth-card { width: min(580px, 100%); }
}

@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 0.7rem 20px 1rem; display: none; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: rgba(4, 13, 22, 0.98); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28); }
    .primary-nav.is-open { display: flex; }
    .primary-nav > a, .nav-signout { width: 100%; text-align: left; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid > div:nth-child(2) { border-right: 0; }
    .proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .dashboard-columns, .customer-summary-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .customer-license-list article { grid-template-columns: 1fr; gap: 1rem; }
    .customer-license-list article dl { text-align: left; }
    .portal-heading { align-items: flex-start; }
    .data-table { min-width: 760px; }
}

@media (max-width: 620px) {
    .page-width, .header-inner, .footer-inner, .flash-wrap { width: min(100% - 26px, 1180px); }
    .header-inner { min-height: 66px; }
    .brand-copy small { display: none; }
    .hero { padding: 3.6rem 0; }
    .hero h1 { font-size: 2.55rem; }
    .hero-actions, .hero-actions .button { width: 100%; }
    .console-customer { grid-template-columns: auto 1fr; }
    .console-customer > .status-pill { grid-column: span 2; }
    .console-grid { grid-template-columns: 1fr; }
    .console-grid > div { border-right: 0; }
    .proof-grid, .metric-grid, .feature-grid, .timeline, .security-list { grid-template-columns: 1fr; }
    .proof-grid > div, .proof-grid > div:nth-child(2), .timeline li, .timeline li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .proof-grid > div:last-child, .timeline li:last-child { border-bottom: 0; }
    .feature-wide { grid-column: auto; min-height: 330px; }
    .content-section { padding-block: 4.5rem; }
    .section-heading { margin-bottom: 2rem; }
    .security-panel { padding: 1.35rem; }
    .form-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: auto; }
    .form-actions, .portal-heading, .support-strip, .footer-inner { align-items: stretch; flex-direction: column; }
    .form-actions .button { width: 100%; }
    .operator-chip, .count-chip { align-self: flex-start; }
    .license-facts, .environment-checks { grid-template-columns: 1fr; }
    .license-facts > div, .environment-checks > div { border-right: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
    .license-facts > div:first-child { border-radius: 8px 8px 0 0; }
    .license-facts > div:last-child { border-radius: 0 0 8px 8px; }
    .license-status-control { grid-template-columns: 1fr; }
    .customer-license-list article dl { grid-template-columns: 1fr 1fr; }
    .footer-links { align-items: flex-start; }
    .one-time-data > div { grid-template-columns: 1fr auto; }
    .one-time-data span { grid-column: span 2; }
    .error-code { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

