:root {
    --canvas:#f5f5f7;
    --surface:#fff;
    --ink:#25262a;
    --muted:#696b73;
    --border:#e6e6eb;
    --accent:#313d4e;
    --radius:20px;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--canvas);
    font-synthesis:none;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    font-size:15px;
    line-height:1.55;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input,textarea,select {
    font:inherit;
}

button,a,input,textarea,select {
    -webkit-tap-highlight-color:transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline:3px solid #496d9c;
    outline-offset:4px;
}

button {
    cursor:pointer;
}

h1,h2,p {
    margin:0;
}

h1 {
    font-size:clamp(36px,4.5vw,58px);
    font-weight:550;
    line-height:1.12;
    letter-spacing:-2px;
}

h2 {
    font-size:21px;
    font-weight:600;
    letter-spacing:-.45px;
}

.muted {
    color:var(--muted);
}

.site-header {
    border-bottom:1px solid var(--border);
    background:rgba(255,255,255,.72);
}

.header-inner {
    max-width:1200px;
    min-height:88px;
    padding:18px 40px;
    margin:auto;
    display:flex;
    align-items:center;
    gap:40px;
}

.brand {
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:19px;
    font-weight:650;
    letter-spacing:-.6px;
    white-space:nowrap;
}

.brand-light {
    font-weight:400;
    color:var(--muted);
}

.brand-mark {
    display:flex;
    gap:3px;
    align-items:center;
    margin-right:6px;
    transform:rotate(-12deg);
}

.brand-mark i {
    width:5px;
    height:22px;
    background:var(--accent);
    border-radius:3px;
}

.brand-mark i:first-child,.brand-mark i:last-child {
    height:14px;
}

nav {
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:28px;
    margin-left:auto;
}

nav a {
    font-size:14px;
    color:var(--muted);
    padding:10px 0;
    position:relative;
}

nav a[aria-current=page] {
    color:var(--ink);
    font-weight:600;
}

nav > a[aria-current=page]:after {
    content:"";
    height:3px;
    width:16px;
    position:absolute;
    bottom:0;
    left:calc(50% - 8px);
    background:var(--ink);
    border-radius:3px;
}

.nav-operations {
    position:relative;
}

.nav-operations summary {
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 0;
    color:var(--muted);
    font-size:14px;
    cursor:pointer;
    list-style:none;
}

.nav-operations summary::-webkit-details-marker {
    display:none;
}

.nav-operations summary:focus-visible {
    outline:3px solid #496d9c;
    outline-offset:4px;
}

.nav-operations[open] > summary,
.nav-operations-current > summary {
    color:var(--ink);
    font-weight:600;
}

.nav-operations-chevron {
    width:6px;
    height:6px;
    border-right:1px solid currentColor;
    border-bottom:1px solid currentColor;
    transform:translateY(-1px) rotate(45deg);
}

.nav-operations[open] .nav-operations-chevron {
    transform:translateY(1px) rotate(225deg);
}

.nav-operations-links {
    position:absolute;
    z-index:5;
    top:calc(100% + 4px);
    left:0;
    min-width:156px;
    padding:5px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    box-shadow:0 8px 24px rgba(25,31,42,.08);
}

.nav-operations-links a {
    display:block;
    padding:9px 12px;
    border-radius:8px;
}

.nav-operations-links a:hover,
.nav-operations-links a[aria-current=page] {
    background:#f2f4f7;
}

.main {
    max-width:1200px;
    margin:0 auto;
    padding:64px 40px 90px;
    min-height:calc(100vh - 170px);
}

.site-footer {
    max-width:1200px;
    padding:24px 40px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    gap:16px;
    color:var(--muted);
    font-size:12px;
    border-top:1px solid var(--border);
}

.eyebrow {
    font-size:10px;
    letter-spacing:2px;
    font-weight:650;
    color:var(--muted);
    margin-bottom:18px;
}

.lede {
    font-size:16px;
    color:var(--muted);
    margin-top:18px;
    line-height:1.65;
}

.surface {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:0 5px 20px #20243803;
}

.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:11px 18px;
    min-height:44px;
    border:1px solid transparent;
    border-radius:10px;
    font-weight:550;
    font-size:13px;
    line-height:1.4;
    white-space:nowrap;
    transition:background .16s,border-color .16s;
}

.button-primary {
    background:var(--accent);
    color:white;
}

.button-primary:hover {
    background:#1f2c3c;
}

.button-secondary {
    border-color:var(--border);
    background:#fff;
    color:var(--ink);
}

.button-secondary:hover {
    background:#f0f1f4;
}

.button-quiet {
    background:transparent;
    color:var(--muted);
}

.button-quiet:hover {
    background:#ececf0;
    color:var(--ink);
}

.button-full {
    width:100%;
    justify-content:space-between;
}

.login-grid {
    display:grid;
    grid-template-columns:1fr 420px;
    gap:100px;
    align-items:center;
    max-width:1000px;
    margin:40px auto 50px;
}

.login-intro h1 {
    font-size:clamp(42px,4.5vw,61px);
}

.login-intro .lede {
    max-width:320px;
}

.intro-detail {
    margin-top:76px;
    display:flex;
    gap:16px;
    align-items:center;
    font-size:12px;
    color:var(--muted);
}

.detail-line {
    height:38px;
    width:2px;
    background:#aeb8c5;
    border-radius:2px;
}

.login-panel {
    padding:38px;
}

.login-panel h2 {
    font-size:27px;
}

.login-panel>.muted {
    margin-top:7px;
    font-size:13px;
}

.stack-form {
    display:flex;
    flex-direction:column;
    gap:23px;
}

.login-panel form {
    margin-top:28px;
}

.field {
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.field label {
    font-size:13px;
    font-weight:550;
}

.field input,.field textarea,.field select {
    width:100%;
    background:#fcfcfd;
    border:1px solid #d8d9df;
    border-radius:9px;
    min-height:46px;
    padding:11px 13px;
    color:var(--ink);
}

.field input::placeholder,.field textarea::placeholder {
    color:#858790;
}

.field textarea {
    resize:vertical;
    min-height:130px;
}

.form-footnote {
    font-size:11px;
    line-height:1.7;
    color:var(--muted);
    margin-top:25px;
    border-top:1px solid var(--border);
    padding-top:22px;
}

.validation {
    color:#a42c34;
    font-size:12px;
}

.validation:empty,.validation-summary-valid {
    display:none;
}

.input-validation-error {
    border-color:#a42c34!important;
}

.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    margin-bottom:56px;
}

.section-label {
    border:1px solid #dcdde3;
    padding:8px 16px;
    border-radius:24px;
    font-size:12px;
    color:var(--muted);
}

.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.section-heading h2 {
    font-size:17px;
}

.count {
    font-size:12px;
    color:var(--muted);
}

.release-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.release-card {
    padding:28px;
    display:flex;
    flex-direction:column;
}

.card-top,.card-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.platform {
    font-size:11px;
    font-weight:550;
    background:#f0f1f4;
    padding:5px 10px;
    border-radius:6px;
}

.version {
    font-size:12px;
    color:var(--muted);
}

.product-symbol {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#edf0f4;
    width:64px;
    height:64px;
    border-radius:17px;
    margin:32px 0 20px;
    font-size:31px;
    font-weight:600;
    letter-spacing:-4px;
    color:#465367;
}

.product-symbol span {
    font-size:20px;
    margin-left:2px;
}

.release-card h2 {
    font-size:23px;
}

.release-notes {
    font-size:13px;
    color:var(--muted);
    margin-top:12px;
    white-space:pre-line;
    overflow-wrap:anywhere;
    flex:1;
}

.card-bottom {
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid var(--border);
    font-size:11px;
}

.unavailable {
    font-size:12px;
    color:var(--muted);
}

.empty-state {
    text-align:center;
    padding:64px 30px;
}

.empty-state p {
    max-width:420px;
    margin:12px auto 24px;
    color:var(--muted);
    font-size:14px;
}

.empty-symbol {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:54px;
    height:54px;
    background:#f1f2f5;
    border-radius:16px;
    font-size:25px;
    margin-bottom:22px;
    color:#59677b;
}

.empty-state h2 {
    font-size:22px;
}

.table-surface {
    overflow:hidden;
}

.table-scroll {
    position:relative;
    overflow-x:auto;
}

table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    min-width:680px;
}

thead {
    background:#fafafb;
}

th,td {
    padding:21px 25px;
    border-bottom:1px solid var(--border);
    font-size:13px;
}

thead th {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:var(--muted);
    font-weight:550;
}

tbody tr:last-child>* {
    border-bottom:0;
}

.table-title {
    display:block;
    font-weight:550;
    font-size:14px;
}

.table-subtitle {
    display:block;
    font-size:11px;
    color:var(--muted);
    font-weight:400;
    margin-top:4px;
}

.table-action {
    text-align:right;
}

.status {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:5px 10px;
    font-size:11px;
    border-radius:6px;
    white-space:nowrap;
}

.status:before {
    content:"";
    width:5px;
    height:5px;
    border-radius:50%;
    background:currentColor;
}

.status-published {
    background:#edf4ef;
    color:#366148;
}

.status-draft {
    background:#f0f0f3;
    color:#656570;
}

.back-link {
    display:inline-block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:27px;
}

.back-link:hover {
    text-decoration:underline;
}

.create-heading {
    margin-bottom:35px;
}

.create-heading h1 {
    font-size:43px;
}

.editor-form {
    overflow:hidden;
}

.editor-section {
    display:grid;
    grid-template-columns:1fr 1.6fr;
    gap:60px;
    padding:35px;
    border-bottom:1px solid var(--border);
}

.editor-description h2 {
    font-size:17px;
}

.editor-description p {
    font-size:13px;
    color:var(--muted);
    margin-top:8px;
    max-width:225px;
}

.field-pair {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.optional {
    color:var(--muted);
    font-weight:400;
    font-size:11px;
    margin-left:7px;
}

.field-hint {
    font-size:11px;
    color:var(--muted);
    line-height:1.6;
}

.editor-footer {
    padding:24px 35px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:#fdfdfe;
}

.editor-footer p {
    font-size:11px;
    max-width:320px;
}

.form-actions {
    display:flex;
    align-items:center;
    gap:10px;
}

.notice {
    background:#eaf3ec;
    border:1px solid #d2e3d6;
    padding:15px 20px;
    border-radius:12px;
    margin-bottom:25px;
    color:#31583e;
    font-size:13px;
}

.skip-link {
    position:fixed;
    top:-80px;
    left:20px;
    z-index:10;
    background:var(--ink);
    color:white;
    padding:12px 20px;
    border-radius:8px;
}

.skip-link:focus {
    top:12px;
}

.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;
}

@media(min-width:1500px) {
    .login-grid {
        margin-top:80px;
    }
}

@media(max-width:900px) {
    .header-inner {
        gap:20px;
        padding-inline:28px;
    }
    .main {
        padding:45px 28px 65px;
    }
    .site-footer {
        padding-inline:28px;
    }
    .login-grid {
        gap:45px;
        grid-template-columns:1fr 380px;
    }
    .login-intro h1 {
        font-size:43px;
    }
    .login-panel {
        padding:30px;
    }
    .editor-section {
        gap:30px;
        grid-template-columns:1fr 1.7fr;
    }
    .editor-footer p {
        max-width:240px;
    }
}

@media(max-width:700px) {
    .header-inner {
        padding:17px 20px;
        min-height:76px;
        flex-wrap:wrap;
        gap:12px;
    }
    .brand {
        font-size:17px;
    }
    nav {
        order:3;
        width:100%;
        margin:0;
        gap:2px 20px;
    }
    .nav-operations-links {
        position:static;
        min-width:0;
        box-shadow:none;
    }
    .header-inner>form {
        margin-left:auto;
    }
    .header-inner .button {
        padding:8px 11px;
        font-size:12px;
    }
    .main {
        padding:35px 20px 55px;
    }
    .site-footer {
        padding:22px 20px;
    }
    .login-grid {
        display:block;
        margin:5px auto 0;
        max-width:430px;
    }
    .login-intro {
        margin:10px 5px 32px;
    }
    .login-intro h1 {
        font-size:42px;
    }
    .login-intro .lede {
        font-size:14px;
        margin-top:14px;
    }
    .intro-detail {
        display:none;
    }
    .login-panel {
        padding:28px;
    }
    .page-heading {
        align-items:flex-start;
        flex-direction:column;
        gap:22px;
        margin-bottom:35px;
    }
    .page-heading h1 {
        font-size:39px;
        letter-spacing:-1.4px;
    }
    .page-heading .lede {
        font-size:14px;
        margin-top:14px;
    }
    .section-label {
        display:none;
    }
    .eyebrow {
        margin-bottom:14px;
        font-size:9px;
    }
    .release-grid {
        grid-template-columns:1fr;
        gap:18px;
    }
    .release-card {
        padding:24px;
    }
    .product-symbol {
        margin-top:25px;
    }
    .empty-state {
        padding:40px 22px;
    }
    .empty-state h2 {
        font-size:20px;
    }
    .editor-section {
        display:block;
        padding:25px;
    }
    .editor-description {
        margin-bottom:24px;
    }
    .editor-description p {
        max-width:none;
    }
    .editor-footer {
        padding:22px 25px;
        align-items:flex-start;
        flex-direction:column;
    }
    .editor-footer p {
        max-width:none;
    }
    .form-actions {
        width:100%;
        justify-content:flex-end;
    }
    .field-pair {
        gap:14px;
    }
    .create-heading {
        gap:16px;
    }
    .create-heading .status {
        align-self:flex-start;
    }
    .site-footer {
        font-size:10px;
    }
}

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

/* Release details share the existing editor and card components. */
.mandatory-fields { display:flex; flex-direction:column; gap:16px; border-top:1px solid var(--border); padding-top:20px; }
.check-field { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:550; }
.check-field input { width:18px; height:18px; accent-color:var(--accent); }
.release-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; }
.release-description { white-space:pre-line; overflow-wrap:anywhere; }
.table-subtitle.release-description { max-width:300px; }
.status-mandatory { background:#fff2df; color:#81511c; margin-top:6px; }
.release-card h2 { margin-top:16px; overflow-wrap:anywhere; }
.package-type { font-size:12px; color:var(--muted); margin:4px 0 12px; }
.mandatory-notice { margin-top:16px; padding:14px; border:1px solid #ead8bb; border-radius:10px; background:#fff9f0; color:#70481c; font-size:13px; }
.mandatory-notice p { margin-top:6px; }
.release-notes strong { display:block; margin-bottom:6px; color:var(--ink); }
.release-card .card-bottom { margin-top:auto; padding-top:22px; }
.release-card .release-notes,.release-card .mandatory-notice,.release-card>.release-description { margin-bottom:22px; }
@media(max-width:450px) { .editor-form .field-pair { grid-template-columns:1fr; } .release-card .card-bottom { flex-wrap:wrap; } .release-card .card-top { flex-wrap:wrap; } }

.audit-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 16px;
}

.audit-filters .field {
    flex: 1 1 160px;
    min-width: 0;
}

.audit-changes {
    max-width: 36ch;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* SMTP settings reuse the shared editor without enlarging native checkboxes. */
.notification-settings .editor-fields,
.notification-settings .smtp-auth-fields { gap:18px; min-width:0; }
.notification-settings .check-field { align-self:flex-start; cursor:pointer; line-height:1.5; }
.notification-settings .check-field input[type="checkbox"] {
    width:18px; height:18px; min-height:18px; max-width:18px;
    flex:0 0 18px; padding:0; margin:0; accent-color:var(--accent);
}
.notification-settings .field-pair { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.notification-settings .field-hint { overflow-wrap:anywhere; }
.notification-settings [hidden] { display:none!important; }
@media(max-width:640px) {
    .notification-settings .field-pair { grid-template-columns:minmax(0,1fr); gap:18px; }
}


.mfa-enrollment { max-width: 480px; margin-inline: auto; }
.mfa-qr { display: block; width: 220px; max-width: 100%; height: auto; }
.mfa-setup-key { margin-block: 12px 20px; }
.mfa-setup-key code { overflow-wrap: anywhere; }
.mfa-recovery-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px 16px;
    padding: 0;
    list-style: none;
}
