:root {
    --navy-950: #061426;
    --navy-900: #0a1e38;
    --navy-800: #0d2d53;
    --navy-700: #154472;
    --gold-500: #caa94f;
    --gold-400: #dfc46f;
    --gold-100: #f7efd8;
    --surface: #ffffff;
    --canvas: #f2f5f9;
    --line: #dbe3ed;
    --text: #132238;
    --muted: #6b7789;
    --success: #16836a;
    --danger: #b63e4d;
    --shadow: 0 18px 50px rgba(6, 20, 38, .11);
    --radius-lg: 24px;
    --radius-md: 16px;
    font-family: Tahoma, Arial, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.auth-body {
    min-height: 100vh;
    background: var(--navy-950);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 48px clamp(32px, 6vw, 88px);
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(202,169,79,.22), transparent 32%),
        linear-gradient(145deg, var(--navy-800), var(--navy-950) 66%);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    inset-inline-end: -210px;
    bottom: 8%;
    border: 1px solid rgba(223,196,111,.26);
    border-radius: 50%;
    box-shadow: 0 0 0 56px rgba(223,196,111,.04), 0 0 0 112px rgba(223,196,111,.03);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.brand-lockup > span:last-child { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 22px; letter-spacing: .08em; }
.brand-lockup small { color: var(--gold-400); font-size: 11px; letter-spacing: .08em; }
.brand-seal {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-400);
    font-weight: 800;
    box-shadow: inset 0 0 0 5px rgba(202,169,79,.12);
}

.auth-brand-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: block; color: var(--gold-500); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.auth-brand-copy h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.12; }
.auth-brand-copy p { margin: 0; max-width: 520px; color: #c8d2df; font-size: 18px; line-height: 1.9; }
.security-note, .sidebar-footer { display: flex; align-items: center; gap: 9px; color: #b8c6d7; font-size: 13px; position: relative; z-index: 1; }
.status-dot { width: 9px; height: 9px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #45d2aa; box-shadow: 0 0 0 5px rgba(69,210,170,.12); }

.auth-form-panel {
    min-height: 100vh;
    padding: 32px clamp(24px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f7f9fc;
}

.language-nav { display: flex; gap: 8px; margin: 0 0 28px; }
.language-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.language-nav a.active { color: var(--navy-950); border-color: var(--gold-500); background: var(--gold-100); }
.auth-card { width: min(100%, 520px); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.card-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 30px; }
.section-mark { width: 5px; height: 52px; flex: 0 0 auto; border-radius: 4px; background: linear-gradient(var(--gold-400), var(--gold-500)); }
.card-heading h2 { margin: 0 0 8px; color: var(--navy-950); font-size: 28px; }
.card-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.form-stack { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; color: var(--navy-900); font-size: 13px; font-weight: 700; }
.field input { width: 100%; height: 50px; border: 1px solid #cfd9e6; border-radius: 12px; padding: 0 15px; color: var(--text); background: #fbfcfe; outline: none; transition: .2s ease; }
.field input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(202,169,79,.14); background: #fff; }
.check-field { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.check-field input { width: 17px; height: 17px; accent-color: var(--navy-800); }
.primary-button { height: 52px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); font-weight: 800; cursor: pointer; box-shadow: 0 12px 24px rgba(6,20,38,.2); }
.primary-button:hover { background: var(--navy-800); }
.alert { padding: 13px 15px; margin-bottom: 20px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.alert ul { margin: 0; padding-inline-start: 20px; }
.alert-error { color: #862b38; border: 1px solid #efbdc5; background: #fff1f3; }
.alert-success { color: #126651; border: 1px solid #a9dfd0; background: #edfbf7; }

.control-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
[dir="rtl"] .control-shell { grid-template-columns: minmax(0, 1fr) 280px; }
[dir="rtl"] .sidebar { grid-column: 2; grid-row: 1; }
[dir="rtl"] .main-panel { grid-column: 1; grid-row: 1; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(180deg, var(--navy-950), #0b284a); }
.sidebar-brand { padding: 0 8px 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { display: grid; gap: 7px; padding: 24px 0; overflow-y: auto; }
.sidebar-nav a, .nav-pending { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 13px; border-radius: 11px; font-size: 13px; font-weight: 700; }
.sidebar-nav a.active { color: var(--gold-400); background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--gold-500); }
[dir="rtl"] .sidebar-nav a.active { box-shadow: inset -3px 0 0 var(--gold-500); }
.nav-pending { color: #aab9ca; }
.nav-symbol { color: var(--gold-500); font-size: 10px; }
.nav-section { padding: 15px 13px 4px; color: #70849c; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.sidebar-footer { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.main-panel { min-width: 0; }
.topbar { min-height: 72px; padding: 12px clamp(20px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.topbar > div:first-child { display: grid; gap: 5px; }
.topbar > div:first-child strong { color: var(--navy-950); font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.language-nav.compact { margin: 0; }
.language-nav.compact a { padding: 6px 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); font-size: 12px; font-weight: 700; background: #fff; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); background: var(--gold-100); font-weight: 900; }
.text-button { border: 0; padding: 8px 10px; color: var(--danger); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.page-content { padding: clamp(22px, 4vw, 48px); }
.hero-card { position: relative; overflow: hidden; min-height: 220px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(125deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; inset-inline-end: -70px; top: -100px; border: 1px solid rgba(223,196,111,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(223,196,111,.04), 0 0 0 70px rgba(223,196,111,.03); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h1 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 48px); }
.hero-card p { margin: 0; max-width: 710px; color: #c8d3df; line-height: 1.8; }
.status-panel { min-width: 190px; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.status-panel > span { display: block; margin-bottom: 10px; color: #aebed0; font-size: 11px; }
.status-panel strong { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 15px; margin-top: 22px; }
.kpi-card { min-height: 140px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.kpi-card > span { color: var(--muted); font-size: 12px; }
.kpi-card strong { margin: auto 0 6px; color: var(--navy-950); font-size: 32px; }
.kpi-card small { color: var(--success); font-size: 11px; font-weight: 800; }
.section-heading { margin: 42px 0 18px; }
.section-heading h2 { margin: 7px 0; color: var(--navy-950); font-size: 25px; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.module-card { position: relative; min-height: 190px; padding: 23px; display: grid; grid-template-columns: 48px 1fr; align-content: start; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(6,20,38,.09); }
.module-card.is-ready { border-color: #b9dfd5; }
.module-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--gold-500); background: var(--navy-950); font-weight: 900; }
.module-copy h3 { margin: 3px 0 8px; color: var(--navy-950); font-size: 16px; }
.module-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.module-status { position: absolute; inset-inline-end: 20px; bottom: 18px; padding: 5px 9px; border-radius: 999px; color: var(--navy-700); background: #edf2f8; font-size: 10px; font-weight: 800; }
.is-ready .module-status { color: #126651; background: #e8f8f3; }
.assurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 22px; }
.assurance-grid article { display: flex; align-items: center; gap: 11px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: #fff; font-size: 12px; }

@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 330px; padding: 30px 24px; }
    .auth-brand-copy h1 { font-size: 35px; }
    .auth-form-panel { min-height: auto; padding: 28px 20px 50px; }
    .control-shell, [dir="rtl"] .control-shell { display: block; }
    .sidebar, [dir="rtl"] .sidebar { position: static; height: auto; padding: 16px; }
    .sidebar-brand { padding-bottom: 14px; }
    .sidebar-nav { display: flex; overflow-x: auto; padding: 14px 0 2px; }
    .sidebar-nav a, .nav-pending { white-space: nowrap; padding: 0 12px; }
    .nav-section, .sidebar-footer { display: none; }
    .topbar { align-items: flex-start; }
    .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
    .user-chip span:last-child { display: none; }
    .hero-card { align-items: flex-start; flex-direction: column; }
    .status-panel { width: 100%; }
}

@media (max-width: 620px) {
    .auth-card { padding: 26px 20px; }
    .topbar { padding: 11px 15px; }
    .topbar > div:first-child { display: none; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .page-content { padding: 16px; }
    .hero-card { min-height: 0; padding: 28px 22px; }
    .hero-card h1 { font-size: 28px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .module-grid, .assurance-grid { grid-template-columns: 1fr; }
    .kpi-card { min-height: 125px; }
}

/* IUOAMC_OFFICIAL_TRANSPARENT_LOGO_BEGIN */
.official-brand-lockup {
    position: relative;
    z-index: 2;
}

.brand-lockup .brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: transparent;
}

.auth-logo-lockup {
    width: min(100%, 430px);
}

.auth-brand-logo {
    max-height: 174px;
    object-position: left center;
}

[dir="rtl"] .auth-brand-logo {
    object-position: right center;
}

.sidebar-brand.official-brand-lockup {
    width: 100%;
    min-height: 104px;
    justify-content: center;
    padding: 0 4px 22px;
}

.sidebar-brand-logo {
    max-width: 226px;
    max-height: 92px;
    object-position: center;
}

@media (max-width: 820px) {
    .auth-logo-lockup {
        width: min(78vw, 330px);
    }

    .auth-brand-logo {
        max-height: 134px;
    }

    .sidebar-brand.official-brand-lockup {
        min-height: 70px;
        justify-content: flex-start;
        padding: 0 0 13px;
    }

    [dir="rtl"] .sidebar-brand.official-brand-lockup {
        justify-content: flex-end;
    }

    .sidebar-brand-logo {
        max-width: 180px;
        max-height: 68px;
    }
}
/* IUOAMC_OFFICIAL_TRANSPARENT_LOGO_END */

/* IUOAMC_AUTH_TYPOGRAPHY_BEGIN */
.auth-brand-panel {
    align-items: center;
    text-align: center;
}

.auth-logo-lockup {
    margin-inline: auto;
}

.auth-brand-copy {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    text-align: center;
}

.auth-brand-copy > .eyebrow {
    margin-bottom: 18px;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2em;
    text-align: center;
}

.auth-brand-copy h1 {
    width: 100%;
    max-width: 740px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 3.2vw, 58px);
    font-weight: 900;
    line-height: 1.22;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .24);
}

.auth-brand-copy h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin: 22px auto;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-400),
        transparent
    );
}

.auth-brand-copy p {
    max-width: 620px;
    margin: 0 auto;
    color: #dce5ef;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.9;
    text-align: center;
}

.auth-brand-panel .security-note {
    align-self: center;
    justify-content: center;
}

@media (max-width: 820px) {
    .auth-brand-copy > .eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .auth-brand-copy h1 {
        font-size: clamp(32px, 8vw, 43px);
    }

    .auth-brand-copy h1::after {
        margin: 16px auto;
    }

    .auth-brand-copy p {
        font-size: 15px;
    }
}
/* IUOAMC_AUTH_TYPOGRAPHY_END */

/* IUOAMC_SIDEBAR_V2_BEGIN */
.control-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    direction: ltr;
}

.sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 24px 18px 20px;
    overflow: hidden;
    border-right: 1px solid rgba(223, 196, 111, .18);
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(202, 169, 79, .14),
            transparent 30%
        ),
        linear-gradient(180deg, #071c35 0%, #0b294a 100%);
    box-shadow: 12px 0 35px rgba(6, 20, 38, .08);
    direction: ltr;
}

.main-panel {
    grid-column: 2;
    grid-row: 1;
    direction: ltr;
}

html[dir="rtl"] .control-shell {
    grid-template-columns: minmax(0, 1fr) 292px;
    direction: ltr;
}

html[dir="rtl"] .sidebar {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    border-right: 0;
    border-left: 1px solid rgba(223, 196, 111, .18);
    box-shadow: -12px 0 35px rgba(6, 20, 38, .08);
}

html[dir="rtl"] .main-panel {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
}

.sidebar-brand.official-brand-lockup {
    width: 100%;
    min-height: 102px;
    margin: 0 0 14px;
    padding: 0 6px 20px;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.sidebar-brand-logo {
    max-width: 220px;
    max-height: 90px;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 8px 2px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(202, 169, 79, .45) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(202, 169, 79, .45);
}

.sidebar-nav a,
.sidebar-nav .nav-pending {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #c3cfdd;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    border-color: rgba(223, 196, 111, .18);
    background: rgba(255, 255, 255, .065);
    transform: translateX(2px);
}

html[dir="rtl"] .sidebar-nav a:hover {
    transform: translateX(-2px);
}

.sidebar-nav a.active {
    color: #f1d67e;
    border-color: rgba(223, 196, 111, .28);
    background:
        linear-gradient(
            90deg,
            rgba(202, 169, 79, .18),
            rgba(255, 255, 255, .07)
        );
    box-shadow:
        inset 3px 0 0 var(--gold-500),
        0 8px 20px rgba(0, 0, 0, .12);
}

html[dir="rtl"] .sidebar-nav a.active {
    background:
        linear-gradient(
            270deg,
            rgba(202, 169, 79, .18),
            rgba(255, 255, 255, .07)
        );
    box-shadow:
        inset -3px 0 0 var(--gold-500),
        0 8px 20px rgba(0, 0, 0, .12);
}

.sidebar-nav .nav-pending {
    color: #91a4b9;
    background: rgba(255, 255, 255, .025);
}

.sidebar-nav .nav-symbol {
    width: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    color: var(--gold-500);
    font-size: 11px;
}

.sidebar-nav .nav-section {
    margin-top: 9px;
    padding: 13px 14px 6px;
    color: #d0ae55;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    opacity: .9;
}

html[dir="rtl"] .sidebar-nav a,
html[dir="rtl"] .sidebar-nav .nav-pending,
html[dir="rtl"] .sidebar-nav .nav-section {
    text-align: right;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
}

html[dir="rtl"] .sidebar-footer {
    direction: rtl;
    justify-content: flex-start;
}

@media (max-width: 820px) {
    .control-shell,
    html[dir="rtl"] .control-shell {
        display: block;
        direction: inherit;
    }

    .sidebar,
    html[dir="rtl"] .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 14px 16px;
        border: 0;
        box-shadow: 0 8px 25px rgba(6, 20, 38, .12);
    }

    .sidebar-brand.official-brand-lockup {
        min-height: 66px;
        margin-bottom: 5px;
        padding-bottom: 12px;
    }

    .sidebar-brand-logo {
        max-width: 175px;
        max-height: 66px;
    }

    .sidebar-nav {
        display: flex;
        gap: 8px;
        padding: 10px 0 2px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-nav a,
    .sidebar-nav .nav-pending {
        width: auto;
        min-width: max-content;
        min-height: 42px;
        padding: 0 13px;
    }

    .sidebar-nav .nav-section,
    .sidebar-footer {
        display: none;
    }
}
/* IUOAMC_SIDEBAR_V2_END */

/* IUOAMC_PRODUCTION_UI_SHELL_1_0_0_BEGIN */
.control-shell {
    transition: grid-template-columns .28s ease;
}

.main-panel {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 68px;
    padding: 9px clamp(16px, 3vw, 38px);
    gap: 18px;
    border-bottom: 1px solid rgba(10, 30, 56, .1);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 30px rgba(6, 20, 38, .055);
    backdrop-filter: blur(16px);
}

.topbar-primary,
.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar > div.topbar-primary:first-child {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar > .topbar-actions {
    width: auto;
    justify-content: flex-end;
}

.topbar-heading {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.topbar-heading strong {
    overflow: hidden;
    color: var(--navy-950);
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #d4deea;
    border-radius: 12px;
    color: var(--navy-900);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(6, 20, 38, .07);
    cursor: pointer;
    transition: .2s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    color: var(--gold-500);
    border-color: var(--gold-500);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 20, 38, .11);
}

.sidebar-toggle svg,
.logout-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-actions {
    gap: 10px;
}

.topbar .language-nav.compact {
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f6f8fb;
}

.topbar .language-nav.compact a {
    min-width: 34px;
    padding: 7px 8px;
    border: 0;
    border-radius: 9px;
    text-align: center;
}

.topbar .language-nav.compact a.active {
    color: var(--navy-950);
    background: var(--gold-100);
    box-shadow: inset 0 0 0 1px rgba(202, 169, 79, .45);
}

.topbar .user-chip {
    min-height: 44px;
    padding: 4px 11px 4px 5px;
    border-radius: 13px;
}

html[dir="rtl"] .topbar .user-chip {
    padding: 4px 5px 4px 11px;
}

.topbar .user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.user-identity {
    max-width: 160px;
    display: grid;
    gap: 1px;
    overflow: hidden;
    line-height: 1.25;
}

.user-identity bdi {
    overflow: hidden;
    color: var(--navy-950);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.logout-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #efd5d9;
    border-radius: 12px;
    color: var(--danger);
    background: #fff7f8;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s ease;
}

.logout-button:hover,
.logout-button:focus-visible {
    color: #ffffff;
    border-color: var(--danger);
    outline: none;
    background: var(--danger);
}

.welcome-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .22em;
}

.welcome-name {
    direction: ltr;
    unicode-bidi: isolate;
}

.sidebar-overlay {
    display: none;
}

@media (min-width: 821px) {
    .control-shell.is-sidebar-collapsed {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    html[dir="rtl"] .control-shell.is-sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr) 0;
    }

    .control-shell.is-sidebar-collapsed .sidebar {
        width: 0;
        min-width: 0;
        padding-inline: 0;
        border: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
    }

    html[dir="rtl"] .control-shell.is-sidebar-collapsed .sidebar {
        transform: translateX(100%);
    }

    .sidebar {
        transition:
            width .28s ease,
            padding .28s ease,
            opacity .2s ease,
            transform .28s ease;
    }
}

@media (max-width: 1050px) {
    .user-identity,
    .logout-button span {
        display: none;
    }

    .topbar .user-chip,
    .logout-button {
        width: 42px;
        padding: 0;
    }
}

@media (max-width: 820px) {
    body.sidebar-lock {
        overflow: hidden;
    }

    .topbar {
        min-height: 62px;
        padding: 8px 12px;
    }

    .topbar-heading .eyebrow {
        display: none;
    }

    .topbar-heading strong {
        max-width: 210px;
        font-size: 13px;
    }

    .sidebar,
    html[dir="rtl"] .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: min(86vw, 320px);
        height: 100dvh;
        padding: 20px 17px;
        overflow: hidden;
        opacity: 1;
        pointer-events: auto;
        transition: transform .28s ease;
    }

    html[dir="ltr"] .sidebar {
        left: 0;
        right: auto;
        transform: translateX(-105%);
    }

    html[dir="rtl"] .sidebar {
        right: 0;
        left: auto;
        transform: translateX(105%);
    }

    .control-shell.is-sidebar-open .sidebar,
    html[dir="rtl"] .control-shell.is-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-nav {
        display: grid;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .sidebar-nav a,
    .sidebar-nav .nav-pending {
        width: 100%;
        min-width: 0;
    }

    .sidebar-nav .nav-section,
    .sidebar-footer {
        display: flex;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        padding: 0;
        border: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(4, 15, 29, .62);
        backdrop-filter: blur(3px);
        cursor: pointer;
        transition: .25s ease;
    }

    .control-shell.is-sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 620px) {
    .topbar > div.topbar-primary:first-child {
        display: flex;
    }

    .topbar > .topbar-actions {
        width: auto;
        margin-inline-start: auto;
        justify-content: flex-end;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar .language-nav.compact a {
        min-width: 30px;
        padding: 6px;
    }

    .topbar .user-chip {
        display: none;
    }

    .topbar-heading strong {
        max-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .control-shell,
    .sidebar,
    .sidebar-overlay,
    .sidebar-toggle,
    .logout-button {
        scroll-behavior: auto;
        transition-duration: .01ms !important;
    }
}
/* IUOAMC_PRODUCTION_UI_SHELL_1_0_0_END */

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

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

.page-heading > div {
    min-width: 0;
}

.page-heading h1 {
    margin: 5px 0 7px;
    color: var(--navy-950);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.compact-heading {
    align-items: center;
}

.compact-heading h1 {
    font-size: clamp(26px, 2.7vw, 36px);
}

.primary-action,
.secondary-action,
.text-action {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.primary-action {
    border: 1px solid var(--navy-900);
    color: #ffffff;
    background: var(--navy-900);
    box-shadow: 0 10px 24px rgba(6, 20, 38, .16);
}

.primary-action:hover,
.primary-action:focus-visible {
    color: var(--navy-950);
    border-color: var(--gold-500);
    outline: none;
    background: var(--gold-400);
    transform: translateY(-1px);
}

.secondary-action {
    border: 1px solid var(--line);
    color: var(--navy-900);
    background: #ffffff;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    border-color: var(--gold-500);
    outline: none;
    box-shadow: 0 7px 18px rgba(6, 20, 38, .08);
}

.text-action {
    min-height: 40px;
    padding-inline: 10px;
    color: var(--muted);
}

.text-action:hover,
.text-action:focus-visible {
    color: var(--navy-950);
    outline: none;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(165px, .3fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 17px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 26px rgba(6, 20, 38, .045);
}

.filter-bar input,
.filter-bar select,
.institutional-form input,
.institutional-form select,
.institutional-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #cad6e4;
    border-radius: 11px;
    color: var(--navy-950);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus,
.institutional-form input:focus,
.institutional-form select:focus,
.institutional-form textarea:focus {
    border-color: var(--gold-500);
    outline: none;
    box-shadow: 0 0 0 4px rgba(202, 169, 79, .15);
}

.data-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(6, 20, 38, .07);
}

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

.data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 17px;
    border-bottom: 1px solid #e7edf4;
    text-align: start;
    vertical-align: middle;
}

.data-table th {
    color: #718097;
    background: #f7f9fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:hover {
    background: #fbfcfe;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.record-title {
    display: block;
    color: var(--navy-950);
    font-size: 14px;
    font-weight: 850;
}

.data-table td > small,
.record-title + small {
    display: block;
    max-width: 320px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-code,
.event-code {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    padding: 5px 8px;
    border-radius: 7px;
    color: var(--navy-800);
    background: #edf3f9;
    font-size: 11px;
}

.event-code {
    color: #795f15;
    background: var(--gold-100);
}

.status-badge,
.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #4f5f73;
    background: #eef2f6;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.status-badge.is-active {
    color: #087b62;
    background: #e7f8f3;
}

.status-badge.is-inactive,
.status-badge.is-suspended {
    color: #a33d4c;
    background: #fff0f2;
}

.status-badge.is-archived {
    color: #6b7280;
    background: #f1f3f5;
}

.mini-badge.is-gold {
    margin-top: 7px;
    color: #74570a;
    background: var(--gold-100);
}

.table-actions {
    text-align: end !important;
}

.table-actions a {
    color: var(--navy-700);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.table-actions a:hover,
.table-actions a:focus-visible {
    color: #9a7514;
    outline: none;
    text-decoration: underline;
}

.empty-state {
    padding: 48px 20px !important;
    color: var(--muted);
    text-align: center !important;
}

.tag-list {
    max-width: 260px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-list span {
    padding: 4px 7px;
    border: 1px solid #dce5ef;
    border-radius: 7px;
    color: #53647a;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 750;
}

.simple-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 17px;
    border-top: 1px solid #e7edf4;
    color: var(--muted);
    font-size: 12px;
}

.simple-pagination > div {
    display: flex;
    gap: 7px;
}

.simple-pagination a,
.simple-pagination .is-disabled {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--navy-900);
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.simple-pagination .is-disabled {
    color: #a0aabc;
    background: #f5f7fa;
}

.institutional-form {
    display: grid;
    gap: 18px;
}

.form-card {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 42px rgba(6, 20, 38, .06);
}

.form-card > header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e7edf4;
}

.form-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: 19px;
    font-weight: 900;
}

.form-card header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-step {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    color: var(--navy-950);
    background: var(--gold-100);
    font-size: 11px;
    font-weight: 900;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

.institutional-form .field {
    display: grid;
    gap: 7px;
}

.institutional-form .field > span,
.choice-group legend,
.permission-group legend {
    color: var(--navy-950);
    font-size: 12px;
    font-weight: 850;
}

.institutional-form .field > small,
.form-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.institutional-form .field-error {
    color: var(--danger) !important;
    font-weight: 750;
}

.ltr-input {
    direction: ltr;
    text-align: left;
}

.form-note {
    margin: 16px 0 0;
    padding: 11px 13px;
    border-inline-start: 3px solid var(--gold-500);
    border-radius: 8px;
    background: #fbf8ef;
}

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

.choice-group,
.permission-group {
    min-width: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #f9fbfd;
}

.choice-group legend,
.permission-group legend {
    padding: 0 7px;
}

.choice-card,
.permission-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.choice-card:has(input:checked),
.permission-choice:has(input:checked) {
    border-color: rgba(202, 169, 79, .7);
    background: #fffdf7;
}

.choice-card input,
.permission-choice input {
    width: 17px;
    min-height: 17px;
    margin-top: 2px;
    accent-color: var(--gold-500);
}

.choice-card span,
.permission-choice span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.choice-card strong,
.permission-choice strong {
    color: var(--navy-950);
    font-size: 12px;
}

.choice-card small,
.permission-choice code {
    direction: ltr;
    color: var(--muted);
    font-size: 10px;
}

.primary-entity-field {
    max-width: 560px;
    margin-top: 20px;
}

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

.form-footer {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 17px;
    border: 1px solid rgba(202, 169, 79, .45);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(6, 20, 38, .13);
    backdrop-filter: blur(14px);
}

.form-footer p,
.form-footer > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.form-footer p {
    color: var(--muted);
    font-size: 11px;
}

.immutable-seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(202, 169, 79, .5);
    border-radius: 999px;
    color: #7a5c0d;
    background: var(--gold-100);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.audit-filters {
    grid-template-columns: minmax(190px, 1fr) minmax(180px, .7fr) 150px 150px auto auto;
}

.date-filter {
    display: grid;
    gap: 5px;
}

.date-filter span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.subject-ref {
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 12px;
}

.audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.audit-summary-grid article,
.payload-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(6, 20, 38, .05);
}

.audit-summary-grid span,
.payload-card h2 {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.audit-summary-grid strong {
    display: block;
    overflow: hidden;
    color: var(--navy-950);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-summary-grid small {
    color: var(--muted);
    font-size: 10px;
}

.integrity-card {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(36, 176, 130, .38);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(232, 250, 243, .96), #ffffff);
    box-shadow: 0 12px 34px rgba(6, 20, 38, .06);
}

.integrity-card.is-failed {
    border-color: rgba(190, 48, 48, .42);
    background: linear-gradient(135deg, rgba(255, 237, 237, .98), #ffffff);
}

.integrity-card > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid rgba(6, 20, 38, .09);
}

.integrity-card > header > div {
    display: grid;
    gap: 2px;
    flex: 1;
}

.integrity-card > header span:not(.integrity-icon) {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.integrity-card > header strong {
    color: #12684d;
    font-size: 14px;
}

.integrity-card.is-failed > header strong {
    color: #9f2525;
}

.integrity-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #16835f;
    font-weight: 950;
}

.is-failed .integrity-icon {
    background: #b52d2d;
}

.integrity-card > header > code {
    color: #6f550e;
    font-size: 10px;
    font-weight: 850;
}

.integrity-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: rgba(6, 20, 38, .08);
}

.integrity-card dl > div {
    min-width: 0;
    padding: 13px 18px;
    background: rgba(255, 255, 255, .98);
}

.integrity-card dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.integrity-card dd {
    margin: 0;
    overflow: hidden;
    color: var(--navy-950);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integrity-card dd code {
    direction: ltr;
    unicode-bidi: isolate;
}

.audit-payload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.payload-card pre {
    max-height: 420px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-radius: 10px;
    color: #dbe8f8;
    background: var(--navy-950);
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1180px) {
    .audit-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-summary-grid,
    .audit-payload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-heading,
    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .page-heading .primary-action {
        width: 100%;
    }

    .filter-bar,
    .audit-filters,
    .form-grid.two-columns,
    .access-grid,
    .permission-groups,
    .audit-summary-grid,
    .audit-payload-grid,
    .integrity-card dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .integrity-card > header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .filter-bar .secondary-action,
    .filter-bar .text-action {
        width: 100%;
    }

    .form-footer > div {
        width: 100%;
    }

    .form-footer > div > * {
        flex: 1;
    }

    .form-footer p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-action,
    .secondary-action,
    .data-table tbody tr {
        transition-duration: .01ms !important;
    }
}
/* IUOAMC_INSTITUTIONAL_CORE_1_0_0_END */
