:root {
    --white: #FFFFFF;
    --off-white: #EDEFF1;
    --light-grey: #DADFE3;
    --silver-grey: #C7C8CA;
    --medium-grey: #B1B2B4;
    --dark-grey: #8C919B;
    --sky-blue: #ADD1E1;
    --soft-blue: #89ACC2;
    --steel-blue: #567DA4;
    --deep-blue: #385378;
    --ink: #26374d;
    --success: #38785f;
    --danger: #a64e55;
    --shadow: 0 20px 50px rgba(56, 83, 120, .13);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--steel-blue); text-decoration: none; }
a:hover { color: var(--deep-blue); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--deep-blue); line-height: 1.15; letter-spacing: -.025em; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow-shell { max-width: 650px; }
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 999;
    background: var(--deep-blue);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(110deg, var(--sky-blue), #c5dde7 50%, var(--soft-blue));
    border-bottom: 1px solid rgba(56, 83, 120, .18);
}
.header-inner, .footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--deep-blue); }
.brand:hover { color: var(--deep-blue); }
.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(145deg, var(--steel-blue), var(--deep-blue));
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 14px 6px 14px 6px;
    box-shadow: 0 7px 18px rgba(56, 83, 120, .22);
    transform: rotate(-4deg);
}
.brand-mark span { font-size: 23px; font-weight: 800; transform: rotate(4deg); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 18px; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: rgba(38, 55, 77, .7); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.secure-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--deep-blue);
    background: rgba(255, 255, 255, .38);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.secure-label span { color: var(--success); font-size: 9px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 96px;
    background:
        radial-gradient(circle at 5% 20%, rgba(173,209,225,.35), transparent 30%),
        linear-gradient(135deg, #fff 0%, var(--off-white) 100%);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(86, 125, 164, .12);
    border-radius: 50%;
}
.hero::before { width: 460px; height: 460px; left: -280px; bottom: -250px; }
.hero::after { width: 320px; height: 320px; right: -180px; top: -160px; }
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: clamp(55px, 8vw, 110px);
    align-items: center;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--steel-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-copy h1 {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: clamp(42px, 5.3vw, 68px);
    font-weight: 760;
}
.hero-copy h1 span { color: var(--steel-blue); }
.hero-copy > p {
    max-width: 590px;
    margin-bottom: 32px;
    color: #617083;
    font-size: 18px;
    line-height: 1.7;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 24px; color: #59687a; font-size: 13px; font-weight: 650; }
.trust-row i {
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    place-items: center;
    color: var(--white);
    background: var(--steel-blue);
    border-radius: 50%;
    font-size: 11px;
    font-style: normal;
}
.portal-card, .status-card, .login-card, .admin-panel {
    background: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.portal-card {
    position: relative;
    padding: 36px;
    overflow: hidden;
}
.portal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--soft-blue), var(--deep-blue));
}
.card-icon {
    position: absolute;
    top: 30px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--steel-blue);
    background: var(--off-white);
    border-radius: 50%;
    font-size: 26px;
}
.card-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 29px; padding-right: 50px; }
.card-heading h2 { margin: 0 0 5px; font-size: 24px; }
.card-heading p { margin: 0; color: var(--dark-grey); font-size: 13px; }
.step-number { color: var(--soft-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; padding-top: 5px; }
.license-form label, .stack-form > label:not(.file-drop), .stack-form label:not(.file-drop) {
    display: block;
    margin-bottom: 7px;
    color: var(--deep-blue);
    font-size: 12px;
    font-weight: 750;
}
.key-input-wrap { position: relative; }
.key-input-wrap > span {
    position: absolute;
    left: 15px;
    top: 50%;
    color: var(--steel-blue);
    transform: translateY(-50%);
}
input, textarea {
    width: 100%;
    color: var(--ink);
    background: #fafbfc;
    border: 1px solid var(--light-grey);
    border-radius: 9px;
    outline: 0;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input { height: 47px; padding: 0 14px; }
textarea { padding: 11px 14px; resize: vertical; }
.key-input-wrap input {
    padding-left: 42px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    letter-spacing: .035em;
    text-transform: uppercase;
}
input:focus, textarea:focus {
    background: var(--white);
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 4px rgba(137, 172, 194, .16);
}
.field-hint { margin: 7px 0 21px; color: var(--dark-grey); font-size: 11px; }
.button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    font-size: 13px;
    transition: transform .16s, background .16s, box-shadow .16s;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, a:focus-visible {
    outline: 3px solid rgba(86, 125, 164, .3);
    outline-offset: 2px;
}
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button--primary { color: var(--white); background: linear-gradient(135deg, var(--steel-blue), var(--deep-blue)); box-shadow: 0 9px 20px rgba(56, 83, 120, .18); }
.button--primary:hover { color: var(--white); background: linear-gradient(135deg, #6389ad, #304b6e); }
.button--secondary { color: var(--deep-blue); background: var(--off-white); border-color: var(--light-grey); }
.button--quiet { min-height: 36px; color: var(--deep-blue); background: rgba(255,255,255,.5); border-color: rgba(255,255,255,.4); }
.button--full { width: 100%; }
.button--large { min-height: 54px; font-size: 15px; }
.button--small { min-height: 33px; padding: 6px 10px; font-size: 11px; }
.card-security {
    margin: 24px -36px -36px;
    padding: 15px 36px;
    color: var(--dark-grey);
    background: #f5f6f7;
    border-top: 1px solid var(--light-grey);
    text-align: center;
    font-size: 11px;
}
.card-security span { margin-right: 6px; color: var(--steel-blue); }

.instructions { padding: 82px 0 95px; background: var(--white); }
.section-heading { margin-bottom: 40px; text-align: center; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(28px, 3.2vw, 39px); }
.instruction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.instruction-grid article {
    position: relative;
    min-height: 245px;
    padding: 34px;
    background: linear-gradient(150deg, #f8f9fa, var(--off-white));
    border: 1px solid var(--light-grey);
    border-radius: 14px;
}
.instruction-number {
    position: absolute;
    top: 21px;
    right: 24px;
    color: var(--silver-grey);
    font-size: 12px;
    font-weight: 800;
}
.instruction-icon {
    width: 48px;
    height: 48px;
    display: grid;
    margin-bottom: 28px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(145deg, var(--soft-blue), var(--steel-blue));
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(86,125,164,.18);
    font-size: 22px;
}
.instruction-grid h3 { margin-bottom: 11px; font-size: 19px; }
.instruction-grid p { margin: 0; color: #6f7987; font-size: 13px; line-height: 1.65; }
.site-footer { color: #697586; background: var(--off-white); border-top: 1px solid var(--light-grey); font-size: 12px; }
.footer-inner { min-height: 72px; }

.status-section {
    min-height: calc(100vh - 156px);
    padding: 62px 0 90px;
    background:
        radial-gradient(circle at 80% 5%, rgba(173,209,225,.3), transparent 30%),
        linear-gradient(150deg, #fff, var(--off-white));
}
.status-shell { max-width: 780px; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 13px; font-weight: 700; }
.status-card { padding: 42px; }
.status-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.status-card-top h1 { margin: 0 0 9px; font-size: 34px; }
.masked-key { margin: 0; color: var(--dark-grey); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #647080;
    background: var(--off-white);
    border: 1px solid var(--light-grey);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.status-pill--active { color: #2f7158; background: #e9f4ee; border-color: #cce5d8; }
.status-pill--revoked { color: #98474e; background: #f8eaeb; border-color: #edcdd0; }
.usage-panel { padding: 24px; background: var(--off-white); border: 1px solid var(--light-grey); border-radius: 12px; }
.usage-copy, .usage-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.usage-copy span { color: #667586; font-size: 12px; font-weight: 700; }
.usage-copy strong { color: var(--deep-blue); font-size: 16px; }
.progress-track { height: 9px; margin: 17px 0 11px; overflow: hidden; background: var(--light-grey); border-radius: 20px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--soft-blue), var(--steel-blue)); border-radius: inherit; transition: width .4s ease; }
.progress-used-0 { width: 0; }
.progress-used-1 { width: 20%; }
.progress-used-2 { width: 40%; }
.progress-used-3 { width: 60%; }
.progress-used-4 { width: 80%; }
.progress-used-5 { width: 100%; }
.usage-footer { color: var(--dark-grey); font-size: 11px; }
.usage-footer strong { color: var(--steel-blue); }
.warning-panel {
    display: flex;
    gap: 15px;
    margin: 23px 0;
    padding: 18px;
    background: #f6f4ed;
    border: 1px solid #e7dfc7;
    border-radius: 11px;
}
.warning-icon { flex: 0 0 29px; height: 29px; display: grid; place-items: center; color: #765f2f; background: #e8dcae; border-radius: 50%; font-weight: 900; }
.warning-panel strong { display: block; margin: 1px 0 3px; color: #6f5d34; font-size: 13px; }
.warning-panel p { margin: 0; color: #7a715b; font-size: 12px; }
.activation-note { margin: 11px 0 0; color: var(--dark-grey); text-align: center; font-size: 11px; }
.blocked-message { padding: 17px; color: #82464d; background: #f8eaeb; border: 1px solid #edcdd0; border-radius: 9px; text-align: center; font-weight: 700; }
.error-card { text-align: center; }
.error-card .card-icon { position: static; margin: 0 auto 18px; }
.error-card p { max-width: 470px; margin: 0 auto 28px; color: #687688; }
.card-icon--error { color: var(--danger); background: #f8eaeb; }

.activation-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 25px;
    background: rgba(38, 55, 77, .72);
    backdrop-filter: blur(7px);
}
.activation-overlay[hidden] { display: none; }
.activation-dialog {
    width: min(440px, 100%);
    padding: 45px 38px 38px;
    background: var(--white);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(19,35,54,.35);
    text-align: center;
}
.activation-dialog h2 { margin: 3px 0 11px; font-size: 27px; }
.activation-dialog p { color: #6f7c8c; font-size: 13px; }
.spinner-rings { position: relative; width: 78px; height: 78px; margin: 0 auto 25px; }
.spinner-rings span { position: absolute; inset: 0; border: 3px solid transparent; border-top-color: var(--deep-blue); border-radius: 50%; animation: spin 1s linear infinite; }
.spinner-rings span:nth-child(2) { inset: 9px; border-top-color: var(--steel-blue); animation-duration: .8s; animation-direction: reverse; }
.spinner-rings span:nth-child(3) { inset: 19px; border-top-color: var(--soft-blue); animation-duration: .65s; }
.loading-track { height: 5px; margin-top: 24px; overflow: hidden; background: var(--off-white); border-radius: 5px; }
.loading-track span { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, var(--soft-blue), var(--deep-blue)); border-radius: inherit; animation: load 1.15s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(410%); } }

.flash {
    position: relative;
    z-index: 100;
    width: min(760px, calc(100% - 36px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 18px auto;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
}
.flash--success { color: #2e6d55; background: #ebf6f0; border-color: #c6e3d3; }
.flash--error { color: #8c4148; background: #faedef; border-color: #ebc7ca; }
.flash-close { color: inherit; background: none; border: 0; cursor: pointer; font-size: 20px; }

/* Administration */
.admin-body { background: var(--off-white); }
.admin-header {
    min-height: 72px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 10px 28px;
    background: linear-gradient(105deg, var(--sky-blue), var(--soft-blue));
    border-bottom: 1px solid rgba(56,83,120,.24);
}
.brand--admin .brand-mark { width: 40px; height: 40px; border-radius: 12px 5px; }
.brand--admin .brand-mark span { font-size: 20px; }
.admin-nav { display: flex; justify-content: center; gap: 5px; }
.admin-nav a { padding: 8px 13px; color: var(--deep-blue); border-radius: 7px; font-size: 12px; font-weight: 750; }
.admin-nav a:hover { background: rgba(255,255,255,.35); }
.logout-form { margin: 0; }
.admin-main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 45px 0 80px; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.admin-page-heading h1 { margin: 0 0 6px; font-size: 36px; }
.admin-page-heading p { margin: 0; color: #6d7887; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-grid article { padding: 24px; background: var(--white); border: 1px solid var(--light-grey); border-radius: 13px; box-shadow: 0 8px 25px rgba(56,83,120,.06); }
.stat-grid span, .stat-grid small { display: block; color: #778291; font-size: 11px; }
.stat-grid strong { display: block; margin: 8px 0 3px; color: var(--deep-blue); font-size: 31px; }
.stat-grid .stat-version { overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.admin-panel { margin-bottom: 22px; padding: 25px; box-shadow: 0 9px 28px rgba(56,83,120,.06); border-radius: 13px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0 0 4px; font-size: 19px; }
.panel-heading p { margin: 0; color: #7b8592; font-size: 12px; }
.panel-heading > a { font-size: 12px; font-weight: 750; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 12px; color: #75808e; background: #f3f4f5; border-bottom: 1px solid var(--light-grey); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid #e6e9eb; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: #87909c; }
.event-name { color: var(--steel-blue); font-weight: 750; text-transform: capitalize; }
.empty-state { padding: 45px 20px; color: #7f8996; background: #f7f8f8; border: 1px dashed var(--light-grey); border-radius: 9px; text-align: center; }
.admin-two-column { display: grid; grid-template-columns: 1.55fr .75fr; gap: 22px; }
.admin-two-column--release { grid-template-columns: 1fr 1fr; }
.two-field-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; }
.stack-form > input, .stack-form > textarea, .stack-form > label { margin-bottom: 15px; }
.stack-form label input, .stack-form label textarea { display: block; margin-top: 6px; }
.full-field { grid-column: 1 / -1; }
.license-policy ul { margin: 0; padding: 0; list-style: none; }
.license-policy li { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--off-white); font-size: 12px; }
.license-policy li:last-child { border-bottom: 0; }
.license-policy span { color: #7b8592; }
.license-policy strong { color: var(--deep-blue); }
.key-reveal-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 18px 22px; color: var(--deep-blue); background: linear-gradient(100deg, #dcebf1, var(--sky-blue)); border: 1px solid var(--soft-blue); border-radius: 11px; box-shadow: 0 8px 24px rgba(56,83,120,.08); }
.key-reveal-banner span, .key-reveal-banner strong { display: block; }
.key-reveal-banner span { margin-bottom: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.key-reveal-banner strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: .05em; }
.panel-heading--search { align-items: flex-end; }
.search-form { display: flex; gap: 7px; width: min(500px, 100%); }
.search-form input { height: 40px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.action-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.action-row form { display: inline; }
.text-button { padding: 0; color: var(--steel-blue); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--deep-blue); text-decoration: underline; }
.reveal-form { min-width: 220px; margin-top: 11px; padding: 12px; background: var(--off-white); border: 1px solid var(--light-grey); border-radius: 7px; }
.reveal-form label { display: block; color: #657283; font-size: 10px; font-weight: 700; }
.reveal-form input { height: 36px; margin: 5px 0 8px; background: var(--white); }
.file-drop {
    min-height: 165px;
    display: grid !important;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 20px;
    color: var(--deep-blue) !important;
    background: #f7f9fa;
    border: 2px dashed var(--light-grey);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}
.file-drop:hover { border-color: var(--soft-blue); background: #f1f6f8; }
.file-drop > span { font-size: 30px; color: var(--steel-blue); }
.file-drop small { color: #7e8995; font-weight: 400; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.storage-note > p { color: #6e7a89; font-size: 13px; }
.storage-note dl { margin: 20px 0 0; }
.storage-note dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid var(--off-white); font-size: 11px; }
.storage-note dt { color: #7e8995; }
.storage-note dd { max-width: 70%; margin: 0; overflow-wrap: anywhere; color: var(--deep-blue); font-weight: 700; text-align: right; }
code { padding: 3px 5px; color: var(--deep-blue); background: var(--off-white); border-radius: 4px; font-size: 10px; }
.metadata { display: block; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }

.login-shell { min-height: calc(100vh - 90px); width: min(900px, calc(100% - 40px)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; margin: 0 auto; }
.login-brand { text-align: center; }
.brand-mark--large { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 22px 8px; }
.brand-mark--large span { font-size: 36px; }
.login-brand h1 { margin-bottom: 14px; font-size: 38px; }
.login-brand p { color: #758190; }
.login-card { padding: 34px; }
.login-card h2 { margin-bottom: 7px; }
.login-card > p { margin-bottom: 25px; color: #7a8491; font-size: 12px; }
.login-card .back-link { display: block; margin: 20px 0 0; text-align: center; }

@media (max-width: 950px) {
    .hero-grid { grid-template-columns: 1fr; gap: 55px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .trust-row { justify-content: center; }
    .portal-card { width: min(510px, 100%); margin-inline: auto; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-header { grid-template-columns: 1fr auto; }
    .admin-nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; justify-content: flex-start; }
    .admin-two-column { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
    .shell, .admin-main { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 74px; }
    .secure-label { display: none; }
    .hero { padding: 62px 0 70px; }
    .hero-copy h1 { font-size: 39px; }
    .hero-copy > p { font-size: 16px; }
    .portal-card, .status-card { padding: 27px 22px; }
    .card-security { margin: 24px -22px -27px; padding-inline: 22px; }
    .instruction-grid { grid-template-columns: 1fr; }
    .instructions { padding: 60px 0; }
    .instruction-grid article { min-height: 210px; }
    .footer-inner { padding: 18px 0; flex-direction: column; justify-content: center; text-align: center; }
    .status-card-top, .usage-copy, .usage-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
    .status-card-top h1 { font-size: 28px; }
    .activation-dialog { padding-inline: 25px; }
    .admin-header { padding: 11px 15px; gap: 10px; }
    .brand--admin small { display: none; }
    .admin-main { padding-top: 28px; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .admin-page-heading h1 { font-size: 31px; }
    .stat-grid { grid-template-columns: 1fr; }
    .panel-heading--search { align-items: flex-start; flex-direction: column; }
    .search-form { flex-direction: column; }
    .two-field-form { grid-template-columns: 1fr; }
    .key-reveal-banner { align-items: stretch; flex-direction: column; }
    .login-shell { grid-template-columns: 1fr; gap: 35px; padding: 45px 0; }
    .login-brand h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Gammadyne heritage treatment — based on the supplied brand reference. */
body {
    color: #55585c;
    background: #ebecef;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
h1, h2, h3 { color: #44484d; }
a { color: #087da8; }
a:hover { color: #075f80; }
.shell { width: min(1180px, calc(100% - 36px)); }

.site-header {
    overflow: visible;
    background: #fff;
    border-bottom: 0;
}
.header-inner {
    min-height: 132px;
    align-items: center;
}
.brand {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 16px;
}
.brand-logo {
    width: clamp(285px, 35vw, 425px);
    height: auto;
    display: block;
}
.brand-subtitle {
    margin-bottom: 24px;
    padding-left: 16px;
    color: #6d7074;
    border-left: 1px solid #d4d7da;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.classic-nav {
    position: relative;
    z-index: 5;
    height: 58px;
    margin-bottom: -29px;
    border-top: 1px solid #d0d2d4;
}
.classic-nav-inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -1px;
    padding: 0 22px;
    background:
        linear-gradient(180deg, #fdfdfd 0%, #efefef 32%, #d3d3d3 64%, #bababa 100%);
    border: 1px solid #aaa;
    border-radius: 11px;
    box-shadow: 0 6px 10px rgba(40, 43, 46, .32), inset 0 1px 0 #fff;
}
.classic-nav-accent {
    width: 170px;
    height: 7px;
    background: linear-gradient(90deg, #1ca8c7, #3f9eb5 70%, transparent);
    border-radius: 10px;
}
.secure-label {
    padding: 7px 12px;
    color: #4d5155;
    background: rgba(255,255,255,.32);
    border-color: rgba(110,110,110,.18);
}

.hero {
    padding: 70px 0 42px;
    background: #ebecef;
}
.hero::before, .hero::after { display: none; }
.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5d7d9;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(45, 48, 51, .17);
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 58px;
    border-right: 1px solid #dfe1e3;
}
.hero-copy h1 {
    margin-bottom: 22px;
    color: #44484d;
    font-size: clamp(40px, 4.2vw, 58px);
    text-shadow: 0 1px 0 #fff;
}
.hero-copy h1 span { color: #1185aa; }
.hero-copy > p {
    color: #62666a;
    font-size: 17px;
    line-height: 1.65;
}
.eyebrow {
    color: #0780aa;
    letter-spacing: .12em;
}
.trust-row { color: #61656a; }
.trust-row i {
    background: linear-gradient(#37acd0, #087da8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.portal-card {
    min-height: 455px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 42px 39px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.portal-card::before {
    z-index: 0;
    height: 92px;
    background: linear-gradient(180deg, #91d1e4 0%, #c8e8f1 58%, rgba(255,255,255,0) 100%);
}
.portal-card > * { position: relative; z-index: 1; }
.portal-card .card-icon {
    top: 24px;
    right: 29px;
    color: #087da8;
    background: rgba(255,255,255,.65);
}
.card-heading h2 { color: #45494d; font-size: 27px; }
.card-heading p, .field-hint { color: #72767a; }
input, textarea {
    background: #fff;
    border-color: #aaaeb1;
    border-radius: 7px;
    box-shadow: inset 0 1px 2px rgba(30,30,30,.06);
}
.button { border-radius: 7px; }
.button--primary {
    background: linear-gradient(180deg, #22a0c3 0%, #087da8 52%, #076988 100%);
    border-color: #056b8e;
    box-shadow: 0 2px 4px rgba(33, 56, 65, .25), inset 0 1px 0 rgba(255,255,255,.35);
}
.button--primary:hover {
    background: linear-gradient(180deg, #35acd0 0%, #087da8 58%, #055d7c 100%);
}
.card-security {
    margin-top: 25px;
    background: linear-gradient(#f8f8f8, #e8e8e8);
    border-color: #d1d3d5;
}

.instructions {
    padding: 28px 0 80px;
    background: #ebecef;
}
.section-heading {
    margin: 0;
    padding: 25px 30px 22px;
    background: linear-gradient(180deg, #9ed7e7 0%, #d6eef4 72%, #fff 100%);
    border: 1px solid #d5d7d9;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    text-align: center;
}
.section-heading h2 { color: #4b4f53; font-size: 34px; }
.instruction-grid {
    gap: 0;
    background: #fff;
    border: 1px solid #d5d7d9;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 7px rgba(45, 48, 51, .13);
}
.instruction-grid article {
    min-height: 235px;
    padding: 38px;
    background: #fff;
    border: 0;
    border-right: 1px solid #dfe1e3;
    border-radius: 0;
}
.instruction-grid article:last-child { border-right: 0; }
.instruction-icon {
    color: #fff;
    background: linear-gradient(145deg, #42b4d1, #087da8);
    border-radius: 50%;
}
.instruction-grid h3 { color: #087da8; }
.instruction-grid p { color: #606469; }
.site-footer { background: #e2e3e6; border-top-color: #c8cace; }

.status-section {
    min-height: calc(100vh - 210px);
    padding: 72px 0 90px;
    background: #ebecef;
}
.status-card {
    overflow: hidden;
    padding: 0 42px 42px;
    border-color: #cfd2d4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(42,45,48,.18);
}
.status-card-top {
    margin: 0 -42px 30px;
    padding: 34px 42px 37px;
    background: linear-gradient(180deg, #99d4e5 0%, #d3edf4 75%, #fff 100%);
}
.status-card-top h1 { color: #464a4e; }
.usage-panel { background: #f1f1f2; border-color: #d3d5d7; }
.progress-track span { background: linear-gradient(90deg, #27a5c7, #087da8); }
.warning-panel { background: #f5f3e9; }
.activation-dialog {
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.admin-body { background: #ebecef; }
.admin-header {
    min-height: 105px;
    grid-template-columns: 285px 1fr auto;
    background: #fff;
    border-bottom: 1px solid #c7c9cb;
    box-shadow: 0 3px 8px rgba(40,43,46,.15);
}
.brand--admin {
    width: 250px;
    display: block;
}
.brand-logo--admin { width: 250px; }
.brand--admin > span {
    display: block;
    margin-top: -7px;
    text-align: right;
}
.brand--admin small {
    margin: 0;
    color: #767a7e;
    letter-spacing: .04em;
}
.admin-nav {
    padding: 4px;
    background: linear-gradient(#f9f9f9, #cecece);
    border: 1px solid #aaa;
    border-radius: 9px;
    box-shadow: 0 3px 6px rgba(0,0,0,.18);
}
.admin-nav a { color: #4e5256; }
.admin-nav a:hover { color: #087da8; background: rgba(255,255,255,.55); }
.admin-panel, .stat-grid article, .login-card {
    border-color: #cfd1d3;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(45,48,51,.12);
}
.admin-page-heading h1, .panel-heading h2 { color: #484c50; }
.stat-grid strong, .license-policy strong { color: #087da8; }
th { background: linear-gradient(#f7f7f7, #dedede); color: #55595d; }
.login-shell { gap: 65px; }
.login-logo {
    width: min(420px, 100%);
    height: auto;
    display: block;
    margin: 0 auto 20px;
}
.login-brand h1 { color: #484c50; }

@media (max-width: 950px) {
    .header-inner { min-height: 116px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { border-right: 0; border-bottom: 1px solid #dfe1e3; }
    .portal-card { width: 100%; }
    .admin-header { grid-template-columns: 1fr auto; }
}
@media (max-width: 740px) {
    .shell, .admin-main { width: min(100% - 22px, 1180px); }
    .header-inner { min-height: 100px; }
    .brand-logo { width: min(285px, 70vw); }
    .brand-subtitle { display: none; }
    .classic-nav { height: 48px; margin-bottom: -24px; }
    .classic-nav-inner { height: 47px; padding-inline: 15px; }
    .classic-nav-accent { width: 105px; }
    .classic-nav .secure-label { display: flex; }
    .hero { padding-top: 52px; }
    .hero-copy { padding: 40px 25px; }
    .hero-copy h1 { font-size: 37px; }
    .portal-card { min-height: auto; padding: 52px 23px 34px; }
    .instruction-grid article { border-right: 0; border-bottom: 1px solid #dfe1e3; }
    .instruction-grid article:last-child { border-bottom: 0; }
    .section-heading h2 { font-size: 28px; }
    .status-card { padding-inline: 22px; }
    .status-card-top { margin-inline: -22px; padding-inline: 22px; }
    .admin-header { min-height: 90px; }
    .brand-logo--admin { width: 210px; }
}
