:root {
    --cucat-orange: #F56600;
    --cucat-orange-deep: #D95800;
    --cucat-green: #B7BF10;
    --cucat-black: #000000;
    --ink: #17191c;
    --muted: #636a73;
    --line: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #f6f7f8;
    --surface-dark: #181a1d;
    --success: #47721b;
    --radius-lg: 24px;
    --radius-md: 14px;
    --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Trade Gothic Next LT Pro", "Trade Gothic Next", "Arial Narrow", "Helvetica Neue Condensed Bold", "Helvetica Neue Condensed", "Aptos Narrow", "Roboto Condensed", "Liberation Sans Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--surface-soft); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 80% 15%, rgba(183, 191, 16, 0.12), transparent 30rem),
        linear-gradient(180deg, #fff 0, #f6f7f8 36rem);
}
a { color: inherit; }
button, a { font: inherit; }

.brand-bar {
    border-top: 6px solid var(--cucat-orange);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(17,24,39,0.08);
    backdrop-filter: blur(16px);
}
.brand-bar__inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand-bar__logo { width: min(390px, 52vw); height: auto; display: block; }
.brand-bar__product { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand-bar__eyebrow {
    color: var(--cucat-orange);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.brand-bar__title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: #31353a;
    letter-spacing: .045em;
    font-kerning: normal;
    font-stretch: condensed;
}

.setup-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 36px; }
.setup-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(17,24,39,0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.setup-card__primary { padding: clamp(34px, 5vw, 68px); }
.setup-card__aside {
    padding: clamp(28px, 4vw, 48px);
    color: white;
    background:
        radial-gradient(circle at top right, rgba(183,191,16,.24), transparent 16rem),
        var(--surface-dark);
}
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #dfe4c8;
    border-radius: 999px;
    background: #fbfce9;
    color: #4f5711;
    font-size: .82rem;
    font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cucat-green); box-shadow: 0 0 0 4px rgba(183,191,16,.16); }
.kicker {
    margin: 28px 0 8px;
    color: var(--cucat-orange);
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: .025em; font-kerning: normal; font-stretch: condensed; }
.lede { max-width: 700px; margin: 24px 0 30px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }
.notice {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-left: 4px solid var(--cucat-green);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: #f8f9eb;
    color: #454a31;
    line-height: 1.5;
}
.notice strong { color: #262a16; }

.notice--warning { border-left-color: var(--cucat-orange); background: #fff5ed; color: #69401f; }
.notice--warning strong { color: #44270f; }
.path-status { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.path-status > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.path-status > div:last-child { border-bottom: 0; }
.path-status span { color: var(--muted); font-size: .9rem; }
.path-status strong { color: #30343a; font-size: .9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }

.directory-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.directory-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfb;
}
.directory-item strong { display: block; color: #30343a; font-size: .88rem; }
.directory-item small { display: block; margin-top: 2px; color: #7b818a; font-size: .76rem; line-height: 1.3; }
.directory-item__icon { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; font-size: .76rem; font-weight: 900; }
.directory-item__icon--ready { background: rgba(183,191,16,.16); color: #66700d; }
.directory-item__icon--warning { background: rgba(245,102,0,.12); color: var(--cucat-orange-deep); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button--primary { background: var(--cucat-orange); color: white; box-shadow: 0 8px 22px rgba(245,102,0,.22); }
.button--primary:not(:disabled):hover { transform: translateY(-1px); background: var(--cucat-orange-deep); }
.button--primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.button--secondary { border-color: #d9dde2; background: white; color: #30343a; }
.button--secondary:hover { background: #f7f8f9; }
.button:focus-visible { outline: 3px solid rgba(245,102,0,.28); outline-offset: 3px; }
.fine-print { margin: 14px 0 0; color: #7b818a; font-size: .82rem; line-height: 1.5; }
.setup-stage-note { display: inline-flex; align-items: center; min-height: 46px; padding: 0 2px; color: #6d737b; font-size: .84rem; font-weight: 650; }
.aside-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.aside-heading__label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .035em; font-stretch: condensed; }
.aside-heading__version { color: #b9bec6; font-size: .78rem; }
.check-list { margin: 14px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.check-list strong { display: block; font-size: .94rem; }
.check-list small { display: block; margin-top: 3px; color: #aeb4bd; line-height: 1.35; }
.check, .pending { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: .78rem; }
.check { background: rgba(183,191,16,.18); color: #d8df59; }
.pending { background: rgba(245,102,0,.15); color: #ff9a55; }
.setup-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 4px 0; color: #777d85; font-size: .78rem; }

.error-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.error-card { width: min(600px, 100%); padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); text-align: center; }
.error-logo { width: min(320px, 80%); }
.error-code { margin: 30px 0 4px; color: var(--cucat-orange); font-weight: 900; letter-spacing: .1em; }
.error-card h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
.error-card p:not(.error-code) { color: var(--muted); line-height: 1.6; }
.error-card .button { margin-top: 15px; }

@media (max-width: 840px) {
    .brand-bar__inner { min-height: 82px; }
    .brand-bar__product { display: none; }
    .brand-bar__logo { width: min(430px, 80vw); }
    .setup-main { padding-top: 36px; }
    .setup-card { grid-template-columns: 1fr; }
    .setup-footer { flex-direction: column; }
}

@media (max-width: 520px) {
    .brand-bar__inner, .setup-main { width: min(100% - 24px, 1180px); }
    .setup-main { padding-top: 20px; }
    .setup-card { border-radius: 18px; }
    .setup-card__primary, .setup-card__aside { padding: 28px 22px; }
    .directory-grid { grid-template-columns: 1fr; }
    .actions { flex-direction: column; }
    .button { width: 100%; }
    .setup-footer { padding-inline: 2px; }
}

.request-id {
    display: grid;
    gap: 6px;
    margin: 18px 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    text-align: left;
}
.request-id strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.request-id code { overflow-wrap: anywhere; color: var(--ink); }

/* Work Package 1I: reusable CU-CAT application interface foundation. */
:root {
    --font-display: "Trade Gothic Next LT Pro", "Trade Gothic Next", "Arial Narrow", "Helvetica Neue Condensed Bold", "Helvetica Neue Condensed", "Roboto Condensed", "Aptos Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --sidebar-width: 252px;
    --topbar-height: 76px;
    --surface-raised: #ffffff;
    --surface-subtle: #f9fafb;
    --line-strong: #d8dde3;
    --danger: #b42318;
    --warning: #9a6700;
    --info: #175cd3;
}

button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; }

.ui-preview-shell { min-height: 100vh; background: #f4f5f6; }
.admin-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 25% 0%, rgba(183,191,16,.13), transparent 18rem),
        #151719;
    border-top: 5px solid var(--cucat-orange);
}
.admin-sidebar__brand {
    display: grid;
    gap: 10px;
    padding: 2px 8px 22px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar__brand img { display: block; width: 100%; max-width: 206px; height: auto; }
.admin-sidebar__brand span {
    color: #d9dde2;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.admin-nav { flex: 1; overflow-y: auto; padding: 18px 0; }
.admin-nav__group + .admin-nav__group { margin-top: 22px; }
.admin-nav__label {
    display: block;
    padding: 0 11px 8px;
    color: #858b94;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.admin-nav__item {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0;
    padding: 0 11px;
    border-radius: 9px;
    color: #d6dae0;
    font-size: .91rem;
    font-weight: 650;
    text-decoration: none;
}
.admin-nav__item:hover { background: rgba(255,255,255,.06); color: white; }
.admin-nav__item--active { color: white; background: rgba(245,102,0,.16); box-shadow: inset 3px 0 0 var(--cucat-orange); }
.nav-count { min-width: 24px; padding: 2px 7px; border-radius: 999px; color: #dfe56a; background: rgba(183,191,16,.12); font-size: .71rem; text-align: center; }
.admin-sidebar__footer { display: grid; gap: 8px; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.1); color: #9298a0; }
.environment-badge { width: max-content; padding: 5px 8px; border: 1px solid rgba(183,191,16,.25); border-radius: 999px; color: #dce36e; background: rgba(183,191,16,.08); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }

.admin-workspace { min-width: 0; }
.admin-topbar {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(22px, 3vw, 42px);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
}
.admin-topbar__eyebrow { margin: 0 0 2px; color: var(--cucat-orange); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-topbar__title { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .025em; }
.admin-topbar__actions { display: flex; align-items: center; gap: 12px; }
.admin-user-chip { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.admin-user-chip__avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #fff2e8; color: var(--cucat-orange-deep); font-size: .72rem; font-weight: 900; }
.admin-user-chip strong, .admin-user-chip small { display: block; white-space: nowrap; }
.admin-user-chip strong { color: #34383e; font-size: .78rem; }
.admin-user-chip small { margin-top: 1px; color: #8a9098; font-size: .67rem; }

.admin-content { width: min(1480px, 100%); margin: 0 auto; padding: clamp(28px, 4vw, 48px); }
.page-heading { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(2.25rem, 4vw, 3.55rem); }
.page-heading p:not(.kicker) { max-width: 760px; margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.page-heading__actions { display: flex; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.kicker--compact { margin-top: 0; }

.button--compact { min-height: 38px; padding-inline: 13px; border-radius: 8px; font-size: .82rem; }
.button--block { width: 100%; }
.button--danger { color: white; background: var(--danger); }

.alert { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; margin: 16px 0; padding: 14px 16px; border: 1px solid; border-radius: 11px; font-size: .87rem; line-height: 1.45; }
.alert__marker { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.alert--info { color: #18427a; border-color: #bfd4f5; background: #f1f6fd; }
.alert--info .alert__marker { color: #fff; background: var(--info); }
.alert--success { color: #37551b; border-color: #d8e3b2; background: #f8faed; }
.alert--success .alert__marker { color: #fff; background: #6e7a11; }
.alert--warning { color: #674817; border-color: #efd49e; background: #fff8e8; }
.alert--warning .alert__marker { color: #fff; background: #b7791f; }
.alert--danger { color: #7d2520; border-color: #efc6c2; background: #fff3f2; }
.alert--danger .alert__marker { color: #fff; background: var(--danger); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.metric-card { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); box-shadow: 0 4px 16px rgba(17,24,39,.035); }
.metric-card__label { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
.metric-card__value { display: block; margin: 8px 0 7px; color: #24272b; font-family: var(--font-display); font-size: 1.95rem; line-height: 1; letter-spacing: .02em; }
.metric-card__value--small { font-size: 1.42rem; }
.metric-card__meta { display: flex; align-items: center; gap: 6px; color: #7a8088; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-indicator { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a5abb2; }
.status-indicator--good { background: var(--cucat-green); box-shadow: 0 0 0 3px rgba(183,191,16,.13); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .68fr); gap: 16px; margin: 16px 0; }
.content-grid--wide { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: 0 4px 18px rgba(17,24,39,.035); }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel__eyebrow { margin: 0 0 4px; color: var(--cucat-orange); font-size: .67rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.panel h2, .panel h3 { margin: 0; font-family: var(--font-display); letter-spacing: .02em; }
.panel h2 { font-size: 1.55rem; }
.panel h3 { font-size: 1.45rem; }

.table-wrap { overflow-x: auto; margin: 0 -22px -22px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { padding: 11px 18px; color: #767d86; background: #f8f9fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid #edf0f2; color: #4a4f56; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfbfc; }
.data-table td strong, .data-table td small { display: block; }
.data-table td strong { color: #25282d; font-size: .84rem; }
.data-table td small { margin-top: 3px; color: #858b93; font-size: .72rem; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.badge--success { color: #53600e; border-color: #d9df9c; background: #f8f9df; }
.badge--warning { color: #824f13; border-color: #efd0a7; background: #fff5e7; }
.badge--neutral { color: #60666e; border-color: #dfe2e6; background: #f5f6f7; }
.badge--danger { color: #912b24; border-color: #efc6c2; background: #fff3f2; }

.setting-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row strong { color: #30343a; font-size: .82rem; }
.setting-row small { margin-top: 2px; color: #858b93; font-size: .7rem; }
.toggle { width: 36px; height: 21px; flex: 0 0 auto; display: flex; align-items: center; padding: 3px; border-radius: 999px; background: #cfd4da; }
.toggle span { width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.22); }
.toggle--on { justify-content: flex-end; background: var(--cucat-green); }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { min-width: 0; display: grid; gap: 7px; color: #3d4249; font-size: .76rem; font-weight: 750; }
.field > span small { color: #999fa6; font-weight: 550; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 9px 11px; color: #282c31; background: #fff; border: 1px solid #cfd4da; border-radius: 8px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #a2a7ae; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cucat-orange); box-shadow: 0 0 0 3px rgba(245,102,0,.12); }
.field--span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 3px; }

.login-pattern { background: #fafafa; }
.login-preview { max-width: 400px; margin: 0 auto; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 9px 28px rgba(17,24,39,.06); }
.login-preview > img { display: block; width: min(290px, 100%); height: auto; margin: 0 auto 22px; }
.login-preview h3 { text-align: center; }
.login-preview > p { margin: 7px 0 20px; color: var(--muted); font-size: .8rem; text-align: center; }
.login-preview .field + .field { margin-top: 12px; }
.login-preview .button { margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 15px 0 1px; color: #979da4; font-size: .69rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.tabs { display: flex; gap: 3px; overflow-x: auto; margin: 0 -4px 18px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.tab { min-height: 36px; padding: 0 11px; border: 0; border-radius: 7px; color: #656c74; background: transparent; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.tab:hover { color: #292d32; background: #f5f6f7; }
.tab--active { color: #8b3d08; background: #fff0e5; }
.detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.detail-grid > div { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--line); background: #fbfbfc; }
.detail-grid > div:last-child { border-right: 0; }
.detail-grid span:not(.badge), .detail-grid strong { display: block; }
.detail-grid span:not(.badge) { color: #838992; font-size: .68rem; }
.detail-grid strong { margin-top: 6px; color: #32363c; font-size: .78rem; overflow-wrap: anywhere; }

.admin-content__footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 2px 0; color: #8b9199; font-size: .69rem; }

@media (max-width: 1120px) {
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .content-grid, .content-grid--wide { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-grid > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; }
    .admin-sidebar__brand { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; }
    .admin-sidebar__brand img { width: min(285px, 70vw); }
    .admin-sidebar__brand span { display: none; }
    .admin-nav { display: flex; gap: 7px; overflow-x: auto; padding: 12px 0 0; }
    .admin-nav__group { display: contents; }
    .admin-nav__group + .admin-nav__group { margin-top: 0; }
    .admin-nav__label, .admin-sidebar__footer { display: none; }
    .admin-nav__item { flex: 0 0 auto; min-height: 36px; padding: 0 10px; }
    .admin-nav__item--active { box-shadow: inset 0 -3px 0 var(--cucat-orange); }
    .admin-topbar { min-height: 66px; }
    .admin-user-chip { display: none; }
    .page-heading { display: block; }
    .page-heading__actions { margin-top: 18px; align-items: center; }
}
@media (max-width: 560px) {
    .admin-content { padding: 22px 14px 30px; }
    .admin-topbar { padding-inline: 14px; }
    .admin-topbar__actions .button { width: auto; }
    .metric-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .field--span-2 { grid-column: auto; }
    .form-actions { flex-direction: column-reverse; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid > div { border-right: 0; }
    .page-heading__actions { flex-direction: column; align-items: stretch; }
    .admin-content__footer { flex-direction: column; }
}

/* Work Package 1J: browser installer, environment-check step. */
.notice--info { border-left-color: #5d6875; background: #f4f6f8; color: #4d5864; }
.notice--info strong { color: #252b31; }
.installer-main { padding-top: 42px; }
.installer-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}
.installer-progress__item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #858b93;
    border: 1px solid #e4e7ea;
    border-radius: 11px;
    background: rgba(255,255,255,.72);
    font-size: .76rem;
}
.installer-progress__item span {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eceff1;
    color: #717780;
    font-weight: 800;
}
.installer-progress__item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.installer-progress__item--active { color: #383d43; border-color: rgba(245,102,0,.35); background: #fff8f3; }
.installer-progress__item--active span { color: #fff; background: var(--cucat-orange); }
.environment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 14px;
}
.environment-summary > div {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-subtle);
}
.environment-summary strong { display: block; color: #25292e; font-size: 1.15rem; }
.environment-summary span { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.environment-checks { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.environment-check {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border-bottom: 1px solid var(--line);
}
.environment-check:last-child { border-bottom: 0; }
.environment-check__status {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 900;
}
.environment-check--pass .environment-check__status { color: #60690c; background: rgba(183,191,16,.18); }
.environment-check--fail .environment-check__status { color: #a74809; background: rgba(245,102,0,.13); }
.environment-check__body strong { display: block; color: #30343a; font-size: .9rem; }
.environment-check__body small { display: block; margin-top: 3px; color: #737a83; line-height: 1.35; }
.environment-check__result { color: #707780; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.environment-check--fail .environment-check__result { color: #a74809; }
.installer-actions button { border: 0; }
.pending--muted { color: #aab0b7; background: rgba(255,255,255,.08); }
.installer-existing-foundation { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.installer-existing-foundation__title { display: block; margin-bottom: 9px; color: #c6cbd1; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.installer-existing-foundation > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #aeb4bd; font-size: .76rem; }
.installer-existing-foundation strong { color: #fff; font-weight: 650; }

@media (max-width: 980px) {
    .installer-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .installer-progress { grid-template-columns: 1fr 1fr; }
    .installer-progress__item strong { white-space: normal; }
    .environment-summary { grid-template-columns: 1fr; }
    .environment-check { grid-template-columns: 30px minmax(0, 1fr); }
    .environment-check__result { grid-column: 2; }
}

/* Work Package 1K: Storage & Database installer step. */
.installer-progress__item--complete { color: #59610d; border-color: rgba(183,191,16,.35); background: #fbfce9; }
.installer-progress__item--complete span { color: #fff; background: #737b0e; }
.installer-actions { flex-wrap: wrap; }
.installer-actions form { margin: 0; }
.button--next { margin-left: auto; }
.storage-setup-grid { display: grid; gap: 10px; margin: 24px 0 18px; }
.storage-component {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.storage-component__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #757c84;
    background: #eceff1;
    font-size: .78rem;
    font-weight: 900;
}
.storage-component strong { display: block; color: #30343a; font-size: .9rem; }
.storage-component small { display: block; margin-top: 3px; color: #737a83; line-height: 1.35; }
.storage-component b { color: #7a8088; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.storage-component--ready { border-color: rgba(183,191,16,.35); background: #fcfdf4; }
.storage-component--ready .storage-component__icon { color: #fff; background: #737b0e; }
.storage-component--ready b { color: #626a0d; }
.installer-errors { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(245,102,0,.25); border-radius: 12px; background: #fff8f3; color: #70401e; }
.installer-errors strong { color: #4c2a12; }
.installer-errors ul { margin: 9px 0 0; padding-left: 20px; }
.installer-errors li + li { margin-top: 5px; }
@media (max-width: 600px) {
    .button--next { margin-left: 0; }
    .storage-component { grid-template-columns: 30px minmax(0, 1fr); }
    .storage-component b { grid-column: 2; }
}


/* Work Package 1M: First Super Administrator installer step. */
.installer-admin-form { margin-top: 24px; }
.installer-admin-form .form-grid { margin-bottom: 18px; }
.administrator-password-note { margin: 18px 0; border-left-color: var(--cucat-orange); background: #fff8f3; }
.administrator-summary { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.administrator-summary > div { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1.3fr); gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.administrator-summary > div:last-child { border-bottom: 0; }
.administrator-summary span { color: var(--muted); font-size: .86rem; }
.administrator-summary strong { min-width: 0; color: #30343a; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 620px) { .administrator-summary > div { grid-template-columns: 1fr; gap: 4px; } }

/* Work Package 1N: live administration shell and dashboard. */
.admin-nav__item--disabled {
    color: #858b94;
    cursor: default;
    opacity: .82;
}
.admin-nav__item--disabled:hover { color: #858b94; background: transparent; }
.status-indicator--warning { background: var(--cucat-orange); box-shadow: 0 0 0 3px rgba(245,102,0,.13); }
.setting-row > b { color: #30343a; font-size: .85rem; }
.admin-empty-state {
    display: grid;
    gap: 5px;
    padding: 26px 18px;
    border: 1px dashed #d7dbe0;
    border-radius: 11px;
    color: #777e87;
    background: #fafbfb;
    text-align: center;
}
.admin-empty-state strong { color: #34383e; }
.admin-empty-state span { font-size: .78rem; line-height: 1.45; }
.audit-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.audit-list__item {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}
.audit-list__item:last-child { border-bottom: 0; }
.audit-list__marker { width: 7px; height: 7px; border-radius: 50%; background: var(--cucat-green); box-shadow: 0 0 0 3px rgba(183,191,16,.13); }
.audit-list__item strong, .audit-list__item small { display: block; }
.audit-list__item strong { color: #30343a; font-size: .82rem; }
.audit-list__item small { margin-top: 3px; color: #858b93; font-size: .7rem; overflow-wrap: anywhere; }
.foundation-list { display: grid; gap: 9px; }
.foundation-list__item {
    display: grid;
    grid-template-columns: 29px minmax(0,1fr);
    gap: 11px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfb;
}
.foundation-list__item > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #737980;
    background: #eceff1;
    font-size: .72rem;
    font-weight: 900;
}
.foundation-list__item--ready { border-color: rgba(183,191,16,.32); background: #fcfdf4; }
.foundation-list__item--ready > span { color: #fff; background: #737b0e; }
.foundation-list__item strong, .foundation-list__item small { display: block; }
.foundation-list__item strong { color: #30343a; font-size: .82rem; }
.foundation-list__item small { margin-top: 3px; color: #7e858e; font-size: .7rem; line-height: 1.4; }
.admin-warning-list { margin: 0; padding-left: 20px; color: #70401e; line-height: 1.6; }
.admin-diagnostic-panel { margin-top: 18px; }
@media (max-width: 640px) {
    .audit-list__item { grid-template-columns: 10px minmax(0,1fr); }
    .audit-list__item .badge { grid-column: 2; width: max-content; }
}

/* Formal audit framework and read-only Audit Log. */
.audit-filter-panel {
    margin-top: 1.25rem;
}

.audit-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.audit-filter-actions {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding-bottom: .05rem;
}

.audit-event-panel {
    margin-top: 1.25rem;
}

.audit-event-table-wrap {
    overflow-x: auto;
}

.audit-event-table {
    min-width: 980px;
}

.audit-event-table td {
    vertical-align: top;
}

.audit-event-table td small {
    display: block;
    margin-top: .3rem;
    color: var(--muted);
}

.audit-event-details-row td {
    padding-top: 0;
    border-top: 0;
}

.audit-event-details {
    margin: -.2rem 0 .4rem;
    border-left: 3px solid var(--line-strong);
    padding: .55rem .8rem .65rem;
    background: var(--surface-subtle);
}

.audit-event-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

.audit-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin-top: .8rem;
}

.audit-detail-grid > div,
.audit-metadata {
    min-width: 0;
}

.audit-detail-grid span,
.audit-metadata > span {
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.audit-detail-grid code {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.audit-metadata {
    margin-top: .9rem;
}

.audit-metadata pre {
    max-height: 22rem;
    overflow: auto;
    margin: 0;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--surface);
    font-size: .8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .audit-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .audit-filter-form,
    .audit-detail-grid {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions {
        flex-wrap: wrap;
    }
}

/* Work Package 2A: read-only User Administration catalog. */
.users-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.users-filter-panel, .users-list-panel { margin-top: 1.25rem; }
.users-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(145px, .7fr)) auto;
    gap: 1rem;
    align-items: end;
}
.users-filter-actions { display: flex; gap: .6rem; align-items: center; padding-bottom: .05rem; }
.users-list-header { align-items: flex-end; }
.users-result-summary { color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.users-table-wrap { margin-top: 0; }
.users-table { min-width: 930px; }
.users-id {
    display: block;
    width: max-content;
    max-width: 320px;
    margin-top: 5px;
    color: #777e87;
    background: transparent;
    font-size: .68rem;
    overflow-wrap: anywhere;
    white-space: normal;
}
.users-expiration--expired { color: var(--danger) !important; }
.users-empty-state { margin: 0; }
.users-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.users-pagination > div { display: flex; gap: .55rem; }
@media (max-width: 1120px) {
    .users-filter-form { grid-template-columns: 1fr 1fr 1fr; }
    .users-search-field { grid-column: span 2; }
    .users-filter-actions { grid-column: span 2; }
}
@media (max-width: 720px) {
    .users-metric-grid, .users-filter-form { grid-template-columns: 1fr; }
    .users-search-field, .users-filter-actions { grid-column: auto; }
    .users-filter-actions { flex-wrap: wrap; }
    .users-list-header, .users-pagination { align-items: flex-start; flex-direction: column; }
}


/* Work Package 2B: administrator-created user identities. */
.page-heading--actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.create-user-panel { margin-top: 1.25rem; max-width: 900px; }
.create-user-form .form-grid { margin-bottom: 1.2rem; }
.create-user-errors { margin-top: .9rem; max-width: 900px; }
.create-user-defaults {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin: 0 0 1.2rem;
}
.create-user-defaults > div { padding: .85rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); display: grid; gap: .25rem; }
.create-user-defaults span { color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.create-user-defaults strong { font-size: .9rem; }
.create-user-actions { display: flex; gap: .65rem; align-items: center; margin-top: 1.2rem; }
@media (max-width: 760px) {
    .page-heading--actions { flex-direction: column; }
    .create-user-defaults { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .create-user-defaults { grid-template-columns: 1fr; }
    .create-user-actions { flex-wrap: wrap; }
}

/* Work Package 2C: email identity management. */
.email-remove-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e6e8; }

.users-row-actions { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.create-user-defaults small { color: var(--muted); line-height: 1.45; }

/* 2D.1 temporary bootstrap administration re-entry */
.bootstrap-access-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.bootstrap-access-form .form-actions { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .bootstrap-access-form { grid-template-columns: 1fr; }
    .bootstrap-access-form .form-actions { grid-column: auto; }
}

/* Work Package 2E: account expiration controls */
.expiration-options { border: 0; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.expiration-options legend { font-size: .82rem; font-weight: 800; margin-bottom: .55rem; color: var(--text); }
.expiration-option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); cursor: pointer; }
.expiration-option input { margin-top: .2rem; }
.expiration-option span { display: grid; gap: .2rem; }
.expiration-option strong { font-size: .92rem; }
.expiration-option small { color: var(--muted); line-height: 1.45; }

/* Work Package 2I: consolidated user detail/edit surface. */
.user-detail-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.user-detail-grid { align-items: start; }
.user-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
.user-detail-facts > div:nth-child(2n) { border-right: 0; }
.user-profile-form { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.user-control-list { display: grid; gap: .65rem; }
.user-control-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface-subtle);
    text-decoration: none;
}
.user-control-list a:hover { border-color: #c9ced4; background: #fff; }
.user-control-list strong, .user-control-list small { display: block; }
.user-control-list small { margin-top: .25rem; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.user-control-list b { color: var(--cucat-orange-deep); font-size: .75rem; }
.user-detail-future { margin-top: 1rem; }
@media (max-width: 980px) {
    .user-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .user-detail-metrics, .user-detail-facts { grid-template-columns: 1fr; }
    .user-detail-facts > div { border-right: 0; }
}

/* Work Package 3A: production CU-CAT sign-in surface. */
.login-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 84% 14%, rgba(183, 191, 16, .13), transparent 26rem),
        linear-gradient(180deg, #fff 0, #f4f5f6 44rem);
}
.login-brandbar {
    border-top: 6px solid var(--cucat-orange);
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: rgba(255, 255, 255, .94);
}
.login-brandbar__brand {
    width: min(1120px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    color: inherit;
    text-decoration: none;
}
.login-brandbar__brand img { width: min(350px, 58vw); height: auto; display: block; }
.login-brandbar__brand span {
    padding-left: 22px;
    border-left: 1px solid var(--line);
    color: #3a3e43;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.login-main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 7vw, 84px) 0 34px; }
.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .78fr);
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.login-card__form { padding: clamp(34px, 5vw, 62px); }
.login-card__form h1 { font-size: clamp(2.35rem, 5vw, 3.8rem); }
.login-lede { max-width: 600px; margin: 18px 0 28px; color: var(--muted); font-size: 1.03rem; line-height: 1.62; }
.login-form { display: grid; gap: 18px; margin-top: 24px; }
.login-form .field { display: grid; gap: 8px; }
.login-form .field > span { color: #30343a; font-size: .83rem; font-weight: 800; }
.login-form input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #cfd4da;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.login-form input:focus { outline: 3px solid rgba(245, 102, 0, .16); border-color: var(--cucat-orange); }
.login-submit { width: 100%; min-height: 50px; margin-top: 2px; }
.login-security-note, .login-bootstrap-note { margin: 18px 0 0; color: #707780; font-size: .8rem; line-height: 1.55; }
.login-bootstrap-note a { color: var(--cucat-orange-deep); font-weight: 750; }
.login-admin-actions { margin-top: 18px; }
.login-card__aside {
    position: relative;
    padding: clamp(34px, 5vw, 58px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(183, 191, 16, .28), transparent 14rem),
        linear-gradient(155deg, #17191c 0%, #23262a 100%);
}
.login-card__aside::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 42px solid rgba(245, 102, 0, .12);
    border-radius: 50%;
}
.login-card__mark { color: #d7de56; font-size: .74rem; font-weight: 900; letter-spacing: .14em; }
.login-card__aside h2 { position: relative; z-index: 1; margin: 22px 0 18px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: .025em; }
.login-card__aside p { position: relative; z-index: 1; color: #c2c7ce; line-height: 1.65; }
.login-feature-list { position: relative; z-index: 1; display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; color: #f1f2f3; font-size: .9rem; font-weight: 700; }
.login-feature-list li { display: flex; gap: 10px; align-items: center; }
.login-feature-list span { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(183, 191, 16, .17); color: #d7de56; font-size: .72rem; }
.login-version { position: absolute; z-index: 1; left: clamp(34px, 5vw, 58px); bottom: 28px; color: #8f969f; font-size: .74rem; }
.login-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 4px 0; color: #777d85; font-size: .76rem; }
.alert--success { border-color: #cadcaa; background: #f4f9ec; color: #36551c; }
.alert--success .alert__marker { background: #e2efcf; color: #47721b; }
@media (max-width: 820px) {
    .login-brandbar__brand span { display: none; }
    .login-card { grid-template-columns: 1fr; }
    .login-card__aside { min-height: 340px; }
    .login-version { position: static; margin-top: 32px; }
}
@media (max-width: 560px) {
    .login-brandbar__brand, .login-main { width: min(100% - 24px, 1040px); }
    .login-main { padding-top: 24px; }
    .login-card { border-radius: 18px; }
    .login-card__form, .login-card__aside { padding: 28px 22px; }
    .login-footer { flex-direction: column; }
}

/* Work Package 3E: password recovery */
.login-link-row { margin-top: 16px; text-align: right; font-size: .84rem; }
.login-link-row a { color: var(--cucat-orange-deep); font-weight: 800; text-decoration: none; }
.login-link-row a:hover { text-decoration: underline; }
.reset-link-panel { margin-bottom: 22px; }
.reset-link-value { display: block; overflow-wrap: anywhere; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f6; color: #25282c; font-size: .82rem; line-height: 1.55; user-select: all; }

/* Work Package 3H: central logout */
.logout-actions { display: grid; gap: 12px; margin-top: 24px; }
.logout-actions .button { width: 100%; min-height: 50px; }

/* Work Package 4C — local TOTP QR enrollment */
.totp-enrollment-layout {
    display: grid;
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 20px 0;
}

.totp-qr-frame {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 20px;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    background: #ffffff;
    overflow: auto;
}

.totp-qr-table {
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
}

.totp-qr-table tr,
.totp-qr-table td {
    padding: 0;
    border: 0;
}

.totp-qr-module {
    width: 4px;
    min-width: 4px;
    height: 4px;
    background: #ffffff;
}

.totp-qr-module--dark {
    background: #000000;
}

.totp-enrollment-details {
    display: grid;
    gap: 18px;
}

.totp-manual-key {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    background: #f7f8fa;
}

.totp-manual-key > span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5d6772;
}

.totp-manual-key code {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #15191e;
}

.totp-manual-key small {
    color: #6b737c;
}

@media (max-width: 900px) {
    .totp-enrollment-layout {
        grid-template-columns: 1fr;
    }
}

/* Work Package 6A: read-only Applications administration foundation. */
.applications-readonly-badge { align-self: center; }
.applications-boundary-note { margin: 1.1rem 0 0; }
.applications-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.applications-filter-panel, .applications-list-panel { margin-top: 1.25rem; }
.applications-filter-form {
    display: grid;
    grid-template-columns: minmax(300px, 1.7fr) minmax(150px, .65fr) minmax(130px, .55fr) auto;
    gap: 1rem;
    align-items: end;
}
.applications-filter-actions { display: flex; gap: .6rem; align-items: center; padding-bottom: .05rem; }
.applications-list-header { align-items: flex-end; }
.applications-result-summary { color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.applications-table-wrap { margin-top: 0; }
.applications-table code { overflow-wrap: anywhere; white-space: normal; }
.applications-table td small { max-width: 360px; overflow-wrap: anywhere; }
.applications-empty-state { margin: 0; }
.applications-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.applications-pagination > div { display: flex; gap: .55rem; }
@media (max-width: 1120px) {
    .applications-filter-form { grid-template-columns: 1fr 1fr; }
    .applications-search-field { grid-column: span 2; }
}
@media (max-width: 720px) {
    .applications-metric-grid, .applications-filter-form { grid-template-columns: 1fr; }
    .applications-search-field { grid-column: auto; }
    .applications-filter-actions { flex-wrap: wrap; }
    .applications-list-header, .applications-pagination { align-items: flex-start; flex-direction: column; }
}

/* Work Package 6B: application registration. */
.application-create-panel { margin-top: 1.25rem; max-width: 980px; }
.application-create-errors { margin-top: .9rem; max-width: 980px; }
.application-create-form .form-grid { margin-bottom: 1rem; }
.application-create-wide-field { grid-column: 1 / -1; }
.application-create-trust-option { margin: 0 0 1rem; }
.application-create-defaults { margin-top: 0; }
@media (max-width: 720px) {
    .application-create-wide-field { grid-column: auto; }
}

/* Work Package 6C — application detail/editing */
.application-detail-metrics { margin-top: 1.1rem; }
.application-detail-panel { max-width: 1060px; }
.application-detail-status-value { font-size: 1.35rem; }
.application-detail-integration-value { font-size: 1.2rem; }
.application-detail-defaults code { overflow-wrap: anywhere; white-space: normal; }
.applications-table .application-manage-cell { white-space: nowrap; }
@media (max-width: 760px) {
    .application-detail-panel { max-width: none; }
}

/* Work Package 14C: standalone top-bar user chips do not need a separator. */

/* Work Package 14E — backup catalog/history. */
.backup-catalog-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin: 22px 0 18px;
}
.backup-catalog-filters__actions { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
.backup-catalog-pagination { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; color: var(--muted); font-size: .82rem; }
.backup-catalog-pagination > div { display: flex; gap: 8px; }
.backup-detail-card { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-subtle); }
.backup-detail-card h3 { margin: 0; }
.backup-detail-hash { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .76rem; }
@media (max-width: 780px) {
    .backup-catalog-filters { grid-template-columns: 1fr; }
    .backup-catalog-filters__actions, .backup-catalog-pagination { flex-wrap: wrap; }
}

/* Work Package 15A: browser update staging interface. */
.update-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; margin: 22px 0; align-items: start; }
.update-upload-form { display: grid; gap: 15px; margin-top: 18px; }
.update-gate-list { display: grid; gap: 11px; margin: 0 0 18px; padding: 0; list-style: none; }
.update-gate-list li { display: grid; gap: 3px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.update-gate-list li::before { content: "LOCKED"; justify-self: start; color: #7b6260; font-size: .61rem; font-weight: 900; letter-spacing: .08em; }
.update-gate-list li.update-gate-list__ready { border-color: #d8e3b2; background: #f8faed; }
.update-gate-list li.update-gate-list__ready::before { content: "READY"; color: #53600e; }
.update-gate-list strong { color: #30343a; font-size: .82rem; }
.update-gate-list span { color: #747b84; font-size: .74rem; line-height: 1.45; }
.update-lock-note { margin: 10px 0 0; color: #858b93; font-size: .72rem; text-align: center; }
.update-catalog-panel { margin-top: 18px; }
.update-selected-panel { margin-top: 18px; }
.update-checksum { display: grid; gap: 7px; margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.update-checksum span { color: #7d838b; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.update-checksum code { color: #31363c; font-size: .75rem; overflow-wrap: anywhere; }
@media (max-width: 980px) { .update-workspace-grid { grid-template-columns: 1fr; } }
