:root {
    --oses-navy: #0f2744;
    --oses-accent: #2563eb;
    --oses-header-h: 56px;
}

* { box-sizing: border-box; }

body.oses-app {
    margin: 0;
    min-height: 100vh;
    background: #e8edf3;
    font-family: 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
    color: #0f172a;
}

body.oses-login,
body.oses-login-v3 {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, Roboto, Arial, sans-serif;
    color: #0f172a;
}

body.oses-login-v3 {
    background: #e8edf3;
}

.oses-header {
    background: linear-gradient(90deg, #0a1f38 0%, #153456 55%, #1a3d5c 100%);
    color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(10, 25, 45, .25);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.oses-header-bar {
    min-height: var(--oses-header-h);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.oses-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oses-brand-mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff; font-weight: 800; font-size: 11px;
    display: flex; align-items: center; justify-content: center; letter-spacing: .5px;
}
.oses-brand-text { line-height: 1.15; }
.oses-brand-text strong { display: block; font-size: 14px; color: #fff; font-weight: 700; }
.oses-brand-text span,
.oses-brand-sub { font-size: 11px; color: #94a3b8; }

.oses-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #f1f5f9;
    cursor: pointer;
    flex-shrink: 0;
}
.oses-nav-toggle:hover,
.oses-nav-toggle:focus { background: rgba(255, 255, 255, .14); color: #fff; outline: none; }

.oses-nav-desktop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
}

.oses-nav-mobile-panel { display: none; }

.oses-nav a,
.oses-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.oses-nav a:hover,
.oses-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.oses-nav a.active,
.oses-nav-link.active { color: #fff; background: rgba(37, 99, 235, .35); }

.oses-nav-drop { display: inline-block; }

/* Dropdown essentials — keeps header menus hidden when Bootstrap CDN fails */
.oses-header .dropdown { position: relative; }
.oses-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.oses-header .dropdown-menu.dropdown-menu-right {
    right: 0;
    left: auto;
}
.oses-header .dropdown.open > .dropdown-menu { display: block; }
.oses-header .dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}
.oses-header .dropdown-toggle .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.oses-nav-drop.active > .oses-nav-link,
.oses-nav-drop.open > .oses-nav-link { color: #fff; background: rgba(37, 99, 235, .35); }
.oses-nav-drop .dropdown-menu {
    border-radius: 10px;
    border: 1px solid #dbe3ec;
    box-shadow: 0 10px 28px rgba(15, 39, 68, .14);
    padding: 6px 0;
    min-width: 190px;
}
.oses-nav-drop .dropdown-menu > li > a {
    padding: 8px 16px;
    font-size: 13px;
    color: #334155;
}
.oses-nav-drop .dropdown-menu > li.active > a,
.oses-nav-drop .dropdown-menu > li > a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.oses-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.oses-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.oses-badge-meta { background: rgba(255, 255, 255, .08); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .14); }

.oses-profile {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    padding: 4px 10px 4px 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    color: #f1f5f9; max-width: 220px;
    cursor: pointer;
}
.oses-profile:hover,
.oses-profile:focus { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; outline: none; }
.oses-user-menu { display: inline-block; }
.oses-user-menu .oses-profile .caret {
    margin-left: 2px;
    border-top-color: #cbd5e1;
}
.oses-user-menu.open > .oses-profile,
.oses-user-menu.open > .oses-profile:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}
.oses-user-menu-panel {
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid #dbe3ec;
    box-shadow: 0 12px 32px rgba(15, 39, 68, .16);
    padding: 6px 0;
    margin-top: 8px;
}
.oses-user-menu-panel > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: #334155;
}
.oses-user-menu-panel > li > a .fa {
    width: 16px;
    text-align: center;
    color: #64748b;
}
.oses-user-menu-panel > li > a:hover,
.oses-user-menu-panel > li > a:focus {
    background: #eff6ff;
    color: #1d4ed8;
}
.oses-user-menu-panel > li > a:hover .fa,
.oses-user-menu-panel > li > a:focus .fa { color: #2563eb; }
.oses-user-menu-head {
    padding: 10px 16px 8px;
    pointer-events: none;
}
.oses-user-menu-head strong {
    display: block;
    font-size: 13px;
    color: #0f2744;
    line-height: 1.35;
    word-break: break-word;
}
.oses-user-menu-head span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}
.oses-user-menu-logout,
.oses-nav-mobile-logout { color: #b91c1c !important; }
.oses-user-menu-logout .fa,
.oses-nav-mobile-logout .fa { color: #dc2626 !important; }
.oses-user-menu-logout:hover,
.oses-nav-mobile-logout:hover { background: #fef2f2 !important; color: #991b1b !important; }

.oses-nav-mobile-user {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.oses-nav-mobile-user .oses-nav-mobile-link .fa {
    width: 18px;
    margin-right: 4px;
    text-align: center;
}
.oses-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.oses-profile-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.oses-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .35);
    color: #fecaca; text-decoration: none;
}
.oses-icon-btn:hover { background: rgba(239, 68, 68, .28); color: #fff; text-decoration: none; }

.oses-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.oses-page-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f2744;
}
.oses-page-sub {
    margin: 0 0 20px;
    font-size: 13px;
    color: #64748b;
}

.oses-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 39, 68, .06);
    padding: 20px;
    margin-bottom: 18px;
}

.oses-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.oses-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.oses-alert-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.oses-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.oses-table-wrap { overflow-x: auto; }
.oses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.oses-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #dbe3ec;
    white-space: nowrap;
}
.oses-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.oses-table tbody tr:hover { background: #f8fafc; }

.oses-status-ok { color: #15803d; font-weight: 700; }
.oses-status-pending { color: #dc2626; font-weight: 700; }
.oses-status-progress { color: #b45309; font-weight: 700; }
.oses-status-submitted { color: #1d4ed8; font-weight: 700; }
.oses-status-exception { color: #be123c; font-weight: 700; }
.oses-status-issue { color: #c2410c; font-weight: 700; }
.oses-status-absent { color: #64748b; font-weight: 700; }
.oses-muted { color: #94a3b8; font-size: 12px; font-weight: 600; }

.oses-progress-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
}
.oses-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.oses-progress-head h3 { margin: 0; font-size: 15px; color: #0f2744; }
.oses-progress-pct { font-size: 22px; font-weight: 800; color: var(--oses-accent, #2563eb); }
.oses-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.oses-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 999px;
    transition: width .3s ease;
}
.oses-progress-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}
.oses-progress-stats strong { color: #0f2744; font-size: 14px; }
.oses-progress-compact { margin-bottom: 0; }

.oses-notice-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #78350f;
}
.oses-notice-card h3 { margin: 0 0 10px; font-size: 14px; color: #92400e; }
.oses-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}
.oses-announcement { line-height: 1.55; }
.oses-announcement p { margin: 0 0 8px; }
.oses-announcement p:last-child { margin-bottom: 0; }

.oses-tile { position: relative; }
.oses-paper-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.oses-paper-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: #0f2744;
    box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.oses-paper-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
    text-decoration: none;
    color: #0f2744;
}
.oses-paper-card--action {
    border-color: #fdba74;
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
    box-shadow: 0 4px 16px rgba(234, 88, 12, .1);
}
.oses-paper-card--action:hover { border-color: #f97316; }
.oses-paper-card--done {
    border-color: #86efac;
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}
.oses-paper-card--done:hover { border-color: #22c55e; }
.oses-paper-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.oses-paper-code {
    font-size: 18px;
    font-weight: 800;
    color: var(--oses-accent, #2563eb);
}
.oses-paper-etype {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
}
.oses-paper-name {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    min-height: 2.8em;
}
.oses-paper-dues {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: #64748b;
}
.oses-paper-dues strong { color: #0f2744; font-size: 14px; }
.oses-paper-due-warn strong { color: #dc2626; }
.oses-paper-due-ok strong { color: #15803d; }
.oses-paper-final-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.oses-paper-final-pending {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.oses-paper-final-done {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.oses-paper-final-eval {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.oses-paper-final-exception {
    background: #fce7f3;
    color: #be123c;
    border: 1px solid #f9a8d4;
}
.oses-paper-progress-wrap { margin-top: 2px; }
.oses-paper-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}
.oses-paper-progress-head span:last-child { color: #0f2744; font-weight: 800; }
.oses-paper-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.oses-paper-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width .3s ease;
}
.oses-paper-progress-fill--final_pending {
    background: linear-gradient(90deg, #ea580c, #fbbf24);
}
.oses-paper-progress-fill--final_done {
    background: linear-gradient(90deg, #059669, #34d399);
}
.oses-paper-progress-fill--eval_pending {
    background: linear-gradient(90deg, #dc2626, #f87171);
}
.oses-paper-progress-fill--exception {
    background: linear-gradient(90deg, #be123c, #f472b6);
}
.oses-paper-go {
    font-size: 12px;
    font-weight: 700;
    color: var(--oses-accent, #2563eb);
    margin-top: 4px;
}

.oses-tile-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}
.oses-link {
    color: var(--oses-accent);
    font-weight: 600;
    text-decoration: none;
}
.oses-link:hover { text-decoration: underline; }

.oses-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.oses-btn-primary {
    background: linear-gradient(90deg, #ea580c, #f97316);
    color: #fff;
}
.oses-btn-primary:hover { color: #fff; opacity: .95; }
.oses-btn-success {
    background: linear-gradient(90deg, #047857, #059669);
    color: #fff;
}
.oses-btn-block { width: 100%; }

.oses-dashboard {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.oses-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.oses-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-height: 130px;
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 18px 12px; text-align: center;
    color: #0f2744; text-decoration: none; font-weight: 600; font-size: 13px;
    box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.oses-tile:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .12);
    color: var(--oses-accent); text-decoration: none;
}
.oses-tile-icon { font-size: 36px; color: var(--oses-accent); line-height: 1; }

.oses-help-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}
.oses-help-card h3 { margin: 0 0 10px; font-size: 14px; color: #0f2744; }

/* Login — OSES 3.0 */
.oses-login-v3-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.oses-login-v3-hero,
.oses-login-v3-main {
    min-width: 0;
}

.oses-login-v3-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #071525 0%, #0f2744 38%, #153456 72%, #1a4a6e 100%);
    color: #e2e8f0;
    padding: 36px 40px 32px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
}

.oses-login-v3-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(59, 130, 246, .18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(99, 102, 241, .12) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    pointer-events: none;
}

/* Classic (default) — left-aligned, top-to-bottom */
.oses-login-v3-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    min-height: 100%;
}

.oses-login-v3-hero-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex-shrink: 0;
}

.oses-login-v3-hero-mid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    padding: 4px 0;
}

.oses-login-v3-hero-bottom {
    width: 100%;
    flex-shrink: 0;
}

.oses-login-v3-inst-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    padding: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.oses-login-v3-institution {
    margin: 12px 0 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
    letter-spacing: .01em;
}

.oses-login-v3-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
}

.oses-site-helpline,
.oses-login-v3-helpline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
}

.oses-site-helpline strong,
.oses-login-v3-helpline strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-size: 13px;
    margin-bottom: 2px;
}

.oses-site-helpline a,
.oses-login-v3-helpline a {
    color: #93c5fd;
    text-decoration: none;
}

.oses-site-helpline a:hover,
.oses-login-v3-helpline a:hover {
    color: #fff;
    text-decoration: underline;
}

.oses-stats-helpline .oses-site-helpline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 13px;
}

.oses-login-v3-hero .oses-site-helpline {
    width: 100%;
    text-align: left;
    align-items: flex-start;
}

.oses-login-v3-hero .oses-site-helpline strong {
    justify-content: flex-start;
}

.oses-login-v3-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 4px;
}

.oses-login-v3-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .06em;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}

.oses-login-v3-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.oses-login-v3-version {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .25);
    border: 1px solid rgba(147, 197, 253, .45);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oses-login-v3-tagline {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.55;
    letter-spacing: .01em;
    max-width: 42ch;
}

.oses-login-v3-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
}

.oses-login-v3-feature-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    padding: 12px 12px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s, transform .2s;
    min-height: 84px;
}

.oses-login-v3-feature-tile:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(147, 197, 253, .35);
    transform: translateY(-1px);
}

.oses-login-v3-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(37, 99, 235, .2));
    border: 1px solid rgba(147, 197, 253, .3);
    color: #bfdbfe;
    font-size: 15px;
}

.oses-login-v3-feature-icon-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, .35), rgba(99, 102, 241, .22));
    border-color: rgba(216, 180, 254, .35);
    color: #e9d5ff;
}

.oses-login-v3-feature-label {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: .02em;
}

.oses-login-v3-feature-desc {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.35;
}

.oses-login-v3-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
    width: 100%;
}

/* Centered — compact block in the middle of the panel */
.oses-login-v3-hero--layout-centered {
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-hero-inner {
    max-width: 440px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: auto;
    gap: 22px;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-hero-top,
.oses-login-v3-hero--layout-centered .oses-login-v3-hero-mid {
    align-items: center;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-brand {
    justify-content: center;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-institution {
    max-width: 36ch;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-tagline {
    max-width: 36ch;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-address {
    align-items: center;
    max-width: 38ch;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-feature-tile {
    align-items: center;
    text-align: center;
    min-height: 88px;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-trust-bar {
    justify-content: center;
}

.oses-login-v3-hero--layout-centered .oses-site-helpline {
    text-align: center;
    align-items: center;
}

.oses-login-v3-hero--layout-centered .oses-site-helpline strong {
    justify-content: center;
}

.oses-login-v3-hero--layout-centered .oses-login-v3-hero-mid {
    flex: none;
    padding: 0;
}

/* Spotlight — frosted card, centered institution header */
.oses-login-v3-hero--layout-spotlight {
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-hero-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 26px 24px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    align-items: stretch;
    text-align: left;
    justify-content: flex-start;
    gap: 18px;
    min-height: auto;
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-hero-top {
    align-items: center;
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-brand {
    justify-content: center;
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-address {
    align-items: center;
    text-align: center;
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-hero-mid {
    flex: none;
    padding: 0;
}

.oses-login-v3-hero--layout-spotlight .oses-login-v3-trust-bar {
    justify-content: center;
}

.oses-login-v3-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #cbd5e1;
    background: rgba(15, 39, 68, .45);
    border: 1px solid rgba(255, 255, 255, .1);
}

.oses-login-v3-trust-pill .fa {
    font-size: 11px;
    color: #60a5fa;
}

.oses-login-v3-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 28px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, .06) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.oses-login-v3-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 18px;
    box-shadow:
        0 4px 6px rgba(15, 39, 68, .04),
        0 20px 50px rgba(15, 39, 68, .1);
    padding: 28px 28px 26px;
    overflow: hidden;
}

.oses-login-v3-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6, #6366f1, #8b5cf6);
}

.oses-login-v3-card-accent-agency {
    background: linear-gradient(90deg, #0f766e, #14b8a6, #06b6d4, #0891b2);
}

.oses-login-v3-card-icon-agency {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #0f766e;
}

.oses-login-v3-card-accent-university {
    background: linear-gradient(90deg, #b45309, #d97706, #f59e0b, #fbbf24);
}

.oses-login-v3-card-icon-university {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.oses-login-v3-hero--agency .oses-login-v3-hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(20, 184, 166, .2) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(6, 182, 212, .14) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
}

.oses-login-v3-hero--university .oses-login-v3-hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(245, 158, 11, .16) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(234, 88, 12, .12) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
}

.oses-login-v3-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.oses-login-v3-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

.oses-login-v3-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #0f2744;
}

.oses-login-v3-card .oses-login-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.oses-login-v3-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.oses-login-v3-cap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.oses-login-v3-cap .fa {
    font-size: 12px;
    color: #2563eb;
}

.oses-login-v3-cap-ai {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
    color: #5b21b6;
}

.oses-login-v3-cap-ai .fa { color: #7c3aed; }

.oses-login-v3-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

.oses-login-v3-notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 16px;
    color: #d97706;
}

.oses-login-v3-notice strong { display: block; margin-bottom: 2px; }

.oses-form-row { margin-bottom: 16px; }
.oses-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.oses-form-row .form-control {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    font-size: 14px;
}

.oses-form-row select.form-control { padding-top: 10px; padding-bottom: 10px; }

.oses-form-row .form-control:focus {
    border-color: var(--oses-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.oses-login-v3-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.oses-login-v3-actions .oses-btn { flex: 1; padding: 12px 18px; font-size: 14px; }

.oses-login-v3-footer {
    text-align: center;
    padding: 12px 16px;
    font-size: 11px;
    color: #64748b;
    background: #e8edf3;
}

.oses-login-v3-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.oses-login-v3-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.oses-login-v3-error-actions {
    margin: 0 0 14px;
    text-align: center;
}

.oses-login-v3-error-actions .oses-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
}

.oses-login-otp-name {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 14px;
    color: #0f2744;
}

.oses-login-otp-name strong { color: #1d4ed8; }

.oses-login-v3-mobile-strip {
    display: none;
}

.oses-login-v3-hero-more {
    width: 100%;
}

.oses-login-v3-hero-more > summary {
    list-style: none;
}

.oses-login-v3-hero-more > summary::-webkit-details-marker {
    display: none;
}

.oses-login-v3-hero-more-summary {
    display: none;
}

@media (min-width: 768px) {
    .oses-login-v3-mobile-strip {
        display: none !important;
    }

    .oses-login-v3-hero-more > summary {
        display: none !important;
    }

    .oses-login-v3-hero-more > .oses-login-v3-hero-mid,
    .oses-login-v3-hero-more > .oses-login-v3-hero-bottom {
        display: block !important;
    }

    .oses-login-v3-hero-more[open] > .oses-login-v3-hero-mid,
    .oses-login-v3-hero-more[open] > .oses-login-v3-hero-bottom {
        display: block !important;
    }

    /* Desktop: full hero panel (not mobile summary) */
    .oses-login-v3-hero {
        overflow-y: auto;
    }

    .oses-login-v3-hero-inner {
        min-height: calc(100vh - 48px);
        justify-content: space-between;
    }

    .oses-login-v3-hero--layout-spotlight .oses-login-v3-hero-inner {
        min-height: auto;
        max-width: 500px;
        padding: 28px 26px 24px;
    }

    .oses-login-v3-hero--layout-spotlight .oses-login-v3-hero-mid {
        padding-top: 4px;
    }

    .oses-login-v3-hero-more .oses-login-v3-feature-desc {
        display: block;
    }

    .oses-login-v3-hero-more .oses-login-v3-feature-tile {
        min-height: 84px;
    }
}

@media (max-width: 900px) {
    .oses-login-v3-page { grid-template-columns: 1fr; min-height: auto; }
    .oses-login-v3-hero { min-height: auto; padding: 32px 24px 28px; }
    .oses-login-v3-hero-inner { max-width: 480px; gap: 20px; }
    .oses-login-v3-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .oses-login-v3-main { min-height: auto; padding: 24px 16px 32px; }
    .oses-login-v3-institution { font-size: 18px; }
}

@media (max-width: 767px) {
    .oses-login-v3-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .oses-login-v3-main {
        order: -1;
        flex: 0 0 auto;
        flex-direction: column;
        min-height: 0;
        padding: 12px 14px 18px;
        align-items: stretch;
        justify-content: flex-start;
        background: linear-gradient(180deg, #071525 0%, #0f2744 38%, #f8fafc 38%, #eef2f7 100%);
    }

    .oses-login-v3-mobile-strip {
        display: block;
        margin: 0 auto 14px;
        width: 100%;
        max-width: 460px;
        color: #e2e8f0;
    }

    .oses-login-v3-mobile-strip .oses-login-v3-brand {
        margin-bottom: 0;
    }

    .oses-login-v3-mobile-strip .oses-login-v3-inst-logo,
    .oses-login-v3-mobile-strip .oses-login-v3-logo {
        width: 44px;
        height: 44px;
        font-size: 11px;
    }

    .oses-login-v3-mobile-strip .oses-login-v3-title {
        font-size: 16px;
        line-height: 1.25;
    }

    .oses-login-v3-mobile-strip .oses-login-v3-version {
        margin-top: 2px;
        font-size: 10px;
        padding: 1px 8px;
    }

    .oses-login-v3-mobile-inst {
        margin: 8px 0 0;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        color: #f8fafc;
    }

    .oses-login-v3-mobile-tagline {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.45;
        color: #94a3b8;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .oses-login-v3-main > .oses-login-v3-card {
        margin: 0 auto;
    }

    .oses-login-v3-hero {
        order: 0;
        flex: 0 0 auto;
        min-height: 0;
        padding: 0 14px 16px;
        background: #eef2f7;
    }

    .oses-login-v3-hero-bg {
        display: none;
    }

    .oses-login-v3-hero-inner {
        max-width: 460px;
        margin: 0 auto;
        min-height: 0;
        gap: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .oses-login-v3-hero--layout-spotlight,
    .oses-login-v3-hero--layout-centered {
        padding: 0 14px 16px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .oses-login-v3-hero-top {
        display: none;
    }

    .oses-login-v3-hero-more-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 12px;
        background: #fff;
        border: 1px solid #dbe3ec;
        color: #0f2744;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
        box-shadow: 0 2px 8px rgba(15, 39, 68, .06);
    }

    .oses-login-v3-hero-more-summary::after {
        content: '\f078';
        font-family: FontAwesome;
        font-size: 12px;
        color: #64748b;
        transition: transform .2s ease;
    }

    .oses-login-v3-hero-more[open] > .oses-login-v3-hero-more-summary::after {
        transform: rotate(180deg);
    }

    .oses-login-v3-hero-more[open] > .oses-login-v3-hero-mid,
    .oses-login-v3-hero-more[open] > .oses-login-v3-hero-bottom {
        margin-top: 10px;
        padding: 14px;
        border-radius: 14px;
        background: linear-gradient(155deg, #071525 0%, #0f2744 55%, #153456 100%);
        color: #e2e8f0;
    }

    .oses-login-v3-hero-more .oses-login-v3-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .oses-login-v3-hero-more .oses-login-v3-feature-tile {
        min-height: 0;
        padding: 10px;
    }

    .oses-login-v3-hero-more .oses-login-v3-feature-desc {
        display: none;
    }

    .oses-login-v3-hero-more .oses-login-v3-trust-bar {
        margin-top: 10px;
        gap: 6px;
    }

    .oses-login-v3-card {
        padding: 20px 16px 18px;
        border-radius: 16px;
    }

    .oses-login-v3-card-head {
        margin-bottom: 12px;
        gap: 10px;
    }

    .oses-login-v3-card-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
        border-radius: 12px;
    }

    .oses-login-v3-card h1 {
        font-size: 20px;
    }

    .oses-login-v3-card .oses-login-sub {
        font-size: 12px;
        line-height: 1.4;
    }

    .oses-login-v3-capabilities,
    .oses-login-v3-notice {
        display: none;
    }

    .oses-form-row {
        margin-bottom: 12px;
    }

    .oses-form-row .form-control {
        height: 42px;
    }

    .oses-login-v3-actions {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .oses-login-v3-hero-more .oses-login-v3-feature-grid { grid-template-columns: 1fr; }
    .oses-login-v3-trust-bar { gap: 6px; }
    .oses-login-v3-card { padding: 18px 14px 16px; }
    .oses-login-v3-card-head { flex-direction: row; gap: 10px; }
}

.oses-footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: #64748b;
}

.oses-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.oses-profile-grid .oses-form-row-full { grid-column: 1 / -1; }
.oses-form-row .form-control {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}
.oses-form-row .form-control:focus {
    border-color: var(--oses-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.oses-form-row .form-control[readonly] {
    background: #f1f5f9;
    color: #64748b;
}
.oses-field-error {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
}
.oses-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}
.oses-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}
.oses-form-row.has-error .form-control {
    border-color: #dc2626;
    background: #fef2f2;
}

@media (max-width: 768px) {
    .oses-profile-grid { grid-template-columns: 1fr; }
}

.oses-print-sheet {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 24px;
    max-width: 100%;
    min-width: 0;
}
.oses-print-sheet .oses-table th,
.oses-print-sheet .oses-table td { font-size: 12px; }
.oses-bill-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
}
.oses-form-actions {
    margin-top: 12px;
    text-align: left;
}
.oses-form-actions .btn,
.oses-form-actions input[type="submit"] {
    width: 100%;
    max-width: 100%;
}
@media (min-width: 768px) {
    .oses-form-actions .btn,
    .oses-form-actions input[type="submit"] {
        width: auto;
    }
}

@media (max-width: 960px) {
    .oses-dashboard { grid-template-columns: 1fr; }
    .oses-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media print {
    .oses-header, .oses-footer, .oses-no-print { display: none !important; }
    body.oses-app { background: #fff; }
    .oses-main { max-width: none; padding: 0; }
    .oses-print-sheet { border: none; box-shadow: none; padding: 0; }
}

/* OSES 3.0 — university / agency panel dashboards */
.oses-panel-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.oses-panel-tile-grid > .oses-panel-tile {
    min-width: 0;
    max-width: 100%;
}
.oses-panel-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 130px;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    color: #0f2744;
    text-decoration: none;
    transition: box-shadow .15s, border-color .15s;
}
.oses-panel-tile:hover {
    text-decoration: none;
    color: var(--oses-accent);
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}
.oses-panel-tile .fa { font-size: 36px; margin-bottom: 10px; color: var(--oses-accent); }
.oses-panel-tile strong { display: block; font-size: 14px; }
.oses-panel-tile-sub { display: block; font-size: 11px; color: #64748b; margin-top: 4px; }
.oses-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.oses-stat-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.oses-stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--oses-navy); }
.oses-stat-lbl { display: block; font-size: 11px; color: #64748b; margin-top: 4px; }
.oses-page-head h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.oses-muted { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.oses-badge-info { background: #dbeafe; color: #1e40af; }
.oses-badge-warn { background: #fef3c7; color: #92400e; }

/* University panel — full-width, centered content shell */
body.oses-panel-university .oses-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px clamp(20px, 4vw, 48px) 48px;
}

.oses-panel-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

/* University home dashboard — wider, full pipeline layout */
.oses-up-home {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
body.oses-panel-university .oses-panel-shell:has(> .oses-up-home) {
    max-width: min(1360px, 100%);
}
.oses-dash-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.oses-dash-card-intro {
    margin: -8px 0 16px;
    font-size: 12px;
}
.oses-dash-section-title {
    margin: 18px 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}
.oses-dash-section-title:first-of-type {
    margin-top: 0;
}
.oses-panel-tile-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
    gap: 10px;
    margin-bottom: 4px;
}
.oses-panel-tile-grid-compact .oses-panel-tile {
    min-height: 108px;
    padding: 14px 10px;
}
.oses-panel-tile-grid-compact .oses-panel-tile .fa {
    font-size: 28px;
    margin-bottom: 8px;
}
.oses-panel-tile-grid-compact .oses-panel-tile strong {
    font-size: 13px;
}
.oses-up-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.oses-up-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(15, 39, 68, .04);
}
.oses-up-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}
.oses-up-kpi-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--oses-navy);
    line-height: 1.1;
}
.oses-up-kpi-lbl {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.oses-dash-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

body.oses-panel-university .oses-page-head {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(15, 39, 68, .04);
}

body.oses-panel-university .oses-page-head .oses-muted {
    margin-bottom: 0;
}

body.oses-panel-university .oses-card {
    width: 100%;
    max-width: none;
}

body.oses-panel-university .alert {
    border-radius: 10px;
    margin-bottom: 18px;
}

.oses-panel-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: start;
}

@media (max-width: 992px) {
    .oses-panel-settings-grid { grid-template-columns: 1fr; }
}

/* Notification templates registry */
.nt-registry-card {
    padding: 0;
    overflow: hidden;
}

.nt-registry-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.nt-registry-toolbar p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.nt-registry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nt-registry-table-wrap {
    overflow-x: auto;
}

.nt-registry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.nt-registry-table thead th {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.nt-registry-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
    color: #334155;
}

.nt-registry-table tbody tr:hover {
    background: #fafbfc;
}

.nt-registry-table tbody tr.is-active {
    background: #f0fdf4;
}

.nt-registry-table tbody tr.is-active:hover {
    background: #ecfdf5;
}

.nt-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.nt-cat-badge--sms { background: #dbeafe; color: #1d4ed8; }
.nt-cat-badge--email { background: #fce7f3; color: #be185d; }
.nt-cat-badge--whatsapp { background: #d1fae5; color: #047857; }

.nt-cell-title strong {
    display: block;
    font-size: 14px;
    color: #0f2744;
    margin-bottom: 2px;
}

.nt-cell-title code {
    font-size: 11px;
    color: #94a3b8;
    background: transparent;
    padding: 0;
}

.nt-cell-preview {
    max-width: 360px;
    line-height: 1.5;
    color: #64748b;
}

.nt-cell-config {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    min-width: 140px;
}

.nt-cell-config strong {
    color: #334155;
    font-weight: 600;
}

.nt-status-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
}

.nt-status-pill.is-active {
    background: #22c55e;
    color: #fff;
}

.nt-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 168px;
}

.nt-row-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
}

.nt-form-drawer {
    margin-top: 20px;
}

.nt-form-drawer .oses-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0f2744;
}

.nt-form-drawer .oses-card-sub {
    margin: 0 0 18px;
    font-size: 12px;
    color: #64748b;
}

.nt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

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

@media (max-width: 768px) {
    .nt-form-grid,
    .nt-form-grid--3 { grid-template-columns: 1fr; }
    .nt-row-actions { justify-content: flex-start; }
}

.nt-preview-box {
    font-size: 13px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a5f;
    line-height: 1.5;
    margin-bottom: 14px;
}

.nt-preview-box strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #3b82f6;
    margin-bottom: 6px;
}

.nt-empty-row td {
    text-align: center;
    padding: 28px 16px !important;
    color: #94a3b8;
}


.oses-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.oses-fieldset legend {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    border: none;
    color: var(--oses-navy);
    padding: 0;
}

.oses-radio-option {
    display: block;
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.oses-radio-option:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
}

.oses-radio-option.selected {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .12);
}

.oses-radio-option input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

.oses-radio-option strong {
    font-size: 14px;
    color: #0f2744;
}

.oses-radio-option .oses-radio-desc {
    display: block;
    margin: 6px 0 0 28px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.oses-radio-option.is-disabled {
    opacity: .82;
}

.oses-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #e8edf3;
}

.oses-status-table td:first-child {
    width: 38%;
    color: #64748b;
    font-weight: 600;
}

.oses-status-table code {
    font-size: 12px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.oses-instructions-card {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.oses-instruction-lead {
    margin: 0 0 12px;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
}

.oses-instruction-list {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.65;
}

.oses-instruction-list li {
    margin-bottom: 8px;
}

.oses-instruction-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.5;
}

.oses-instruction-note .fa {
    margin-top: 2px;
    flex-shrink: 0;
}

.oses-ai-fail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oses-ai-fail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8edf3;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.oses-ai-fail-list li:last-child {
    border-bottom: none;
}

.oses-ai-fail-count {
    flex-shrink: 0;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.oses-ai-log-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8edf3;
}

.oses-ai-log-filters label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.oses-ai-log-filters .form-group {
    margin-bottom: 0;
}

.oses-ai-log-search {
    flex: 1;
    min-width: 180px;
}

.oses-ai-log-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.oses-ai-log-table {
    font-size: 12px;
    margin-bottom: 0;
}

.oses-ai-log-table thead th {
    background: #f8fafc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0 !important;
}

.oses-ai-log-row-error {
    background: #fffbfb !important;
}

.oses-ai-log-when {
    white-space: nowrap;
    font-size: 11px;
    color: #64748b;
}

.oses-ai-log-error-cell {
    max-width: 320px;
    font-size: 11px;
}

.oses-ai-log-cat {
    display: block;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 4px;
}

.oses-ai-log-error-cell details summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
}

.oses-ai-log-pre {
    margin: 8px 0 0;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 160px;
    overflow: auto;
}

/* Courses & papers — sidebar + editor workspace */
body.oses-panel-university .oses-panel-shell:has(> .oses-cp-page) {
    max-width: min(1360px, 100%);
}
.oses-cp-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .oses-cp-layout { grid-template-columns: 1fr; }
    .oses-cp-sidebar { max-height: 280px !important; }
}
.oses-cp-sidebar {
    padding: 14px 12px !important;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 160px);
    position: sticky;
    top: 12px;
}
.oses-cp-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.oses-cp-sidebar-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f2744;
}
.oses-cp-search {
    margin-bottom: 10px;
}
.oses-cp-sidebar-list {
    overflow-y: auto;
    flex: 1;
    margin: 0 -4px;
    padding: 0 4px;
}
.oses-cp-course-row {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.oses-cp-course-row.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
}
.oses-cp-course-item {
    display: block;
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.oses-cp-course-item:hover {
    text-decoration: none;
    background: #f8fafc;
}
.oses-cp-course-row.is-active .oses-cp-course-item:hover {
    background: transparent;
}
.oses-cp-course-item strong {
    display: inline-block;
    min-width: 36px;
    font-size: 13px;
    color: #0f2744;
}
.oses-cp-course-name {
    display: block;
    font-size: 11px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oses-cp-course-meta {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}
.oses-cp-course-row-actions {
    display: flex;
    align-items: center;
    padding-right: 6px;
}
.oses-cp-course-row-actions a {
    color: #64748b;
    padding: 6px;
}
.oses-cp-course-row-actions a:hover {
    color: #2563eb;
}
.oses-cp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.oses-cp-editor {
    border: 2px solid #93c5fd !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .1);
}
.oses-cp-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.oses-cp-editor-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f2744;
}
.oses-cp-papers-card {
    margin-bottom: 0;
}

.oses-cp-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.oses-cp-section-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f2744;
}

.oses-cp-section-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.oses-cp-form-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.oses-cp-form-panel h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0f2744;
}

.oses-cp-table {
    font-size: 13px;
    margin-bottom: 0;
}

.oses-cp-table thead th {
    background: #f8fafc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}

.oses-cp-row-selected {
    background: #eff6ff !important;
}

.oses-cp-actions {
    white-space: nowrap;
    font-size: 12px;
}

.oses-cp-actions a {
    margin-right: 8px;
}

.oses-cp-inline-form {
    display: inline;
}

/* Telecaller & pipeline */
.oses-tc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.oses-tc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dbe3ec;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.oses-tc-tab:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    text-decoration: none;
}

.oses-tc-tab.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.oses-tc-tab-muted {
    background: transparent;
    color: #64748b;
}

.oses-tc-tab-badge {
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
}

.oses-tc-pipeline-table {
    font-size: 12px;
}

.oses-tc-round-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.oses-tc-round-orig { background: #eff6ff; color: #1e40af; }
.oses-tc-round-rev1 { background: #fef3c7; color: #92400e; }
.oses-tc-round-rev2 { background: #fce7f3; color: #9d174d; }

.oses-tc-sub {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.oses-tc-ok { color: #166534; }
.oses-tc-warn { color: #b91c1c; font-size: 11px; }

.oses-tc-overdue {
    background: #fffbfb !important;
}

.oses-tc-overdue td:first-child {
    box-shadow: inset 3px 0 0 #dc2626;
}

.oses-tc-meta-sample {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: Consolas, 'Courier New', monospace;
}

.oses-tc-meta-guide summary {
    color: #1d4ed8;
}

.oses-tc-filters {
    margin-bottom: 16px;
    padding: 16px 18px;
}

.oses-tc-call-panel {
    margin-bottom: 16px;
    border: 1px solid #93c5fd;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.oses-tc-call-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 13px;
    color: #475569;
}

.oses-tc-history {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

.oses-tc-queue-table .oses-ab-tel {
    font-weight: 600;
    color: #1d4ed8;
}

/* Agency dashboard (members.php) */
.oses-dash-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
}
.oses-dash-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--oses-navy); }
.oses-dash-cta { font-weight: 600; }
.oses-dash-pipeline {
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
}
.oses-dash-pipeline-hdr {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; font-weight: 600; color: var(--oses-navy);
}
.oses-dash-stages {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.oses-dash-stage {
    display: block; padding: 12px; border-radius: 10px; background: #f8fafc;
    border: 1px solid #e2e8f0; text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.oses-dash-stage:hover { text-decoration: none; border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, .1); }
.oses-dash-stage-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.oses-dash-stage-num { font-size: 22px; font-weight: 800; color: var(--oses-navy); }
.oses-dash-stage-lbl { font-size: 12px; font-weight: 600; color: #64748b; }
.oses-dash-stage-pct { font-size: 11px; color: #94a3b8; }
.oses-dash-alert {
    margin-top: 14px; padding: 10px 14px; border-radius: 8px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px;
}
.oses-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 900px) { .oses-dash-grid { grid-template-columns: minmax(0, 1fr); } }
.oses-dash-card {
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 18px; box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
    min-width: 0;
    max-width: 100%;
}
.oses-dash-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--oses-navy); }
.oses-dash-table { font-size: 13px; margin: 0; }
.oses-progress-track {
    height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.oses-progress-track.sm { height: 6px; }
.oses-progress-fill {
    height: 100%; background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px; transition: width .3s ease;
}

/* Answer-book statistics pages */
.oses-stats-public .oses-stats-main,
.oses-ab-stats-wrap { max-width: 1140px; margin: 0 auto; }

.oses-ab-head { margin-bottom: 20px; }
.oses-ab-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--oses-navy); }
.oses-ab-crumb {
    font-size: 12px; color: #64748b; margin-bottom: 8px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.oses-ab-crumb a { color: #2563eb; text-decoration: none; }
.oses-ab-crumb a:hover { text-decoration: underline; }
.oses-ab-crumb-sep { color: #cbd5e1; }

.oses-ab-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid #e2e8f0;
}
.oses-ab-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: #f1f5f9; color: #475569; text-decoration: none;
    border: 1px solid transparent; transition: all .15s ease;
}
.oses-ab-tab:hover { background: #e2e8f0; color: #1e293b; text-decoration: none; }
.oses-ab-tab.active { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }

.oses-ab-kpi-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px; margin-bottom: 18px;
}
.oses-ab-kpi {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px 16px; text-align: center;
}
.oses-ab-kpi-val { display: block; font-size: 26px; font-weight: 800; color: var(--oses-navy); line-height: 1.1; }
.oses-ab-kpi-lbl { display: block; font-size: 11px; font-weight: 600; color: #64748b; margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.oses-ab-kpi--ok .oses-ab-kpi-val { color: #16a34a; }
.oses-ab-kpi--warn .oses-ab-kpi-val { color: #d97706; }
.oses-ab-kpi--danger .oses-ab-kpi-val { color: #dc2626; }

.oses-ab-pending-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.oses-ab-pending-chip {
    font-size: 12px; padding: 6px 12px; border-radius: 999px;
    background: #f1f5f9; color: #475569;
}
.oses-ab-pending-chip--warn { background: #fef3c7; color: #92400e; }
.oses-ab-pending-chip--danger { background: #fee2e2; color: #991b1b; }

.oses-ab-card {
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    margin-bottom: 20px; overflow: hidden;
}
.oses-ab-card-hdr {
    padding: 14px 18px; border-bottom: 1px solid #e8edf2; background: #f8fafc;
}
.oses-ab-card-hdr h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--oses-navy); }
.oses-ab-card-body { padding: 16px 18px; }

.oses-ab-course-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; margin-bottom: 20px;
}
.oses-ab-course-card {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 18px; text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.oses-ab-course-card:hover {
    border-color: #93c5fd; box-shadow: 0 4px 14px rgba(37, 99, 235, .1);
    text-decoration: none; color: inherit;
}
.oses-ab-course-card-top { display: flex; align-items: flex-start; gap: 12px; }
.oses-ab-course-card-top .fa { font-size: 22px; color: #2563eb; margin-top: 2px; }
.oses-ab-course-card-top strong { font-size: 14px; line-height: 1.4; color: var(--oses-navy); }
.oses-ab-course-card-stats {
    display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: #64748b;
}
.oses-ab-course-card-stats b { color: #1e293b; }
.oses-ab-pending-tag {
    background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.oses-ab-course-empty { margin: 0; font-size: 12px; }
.oses-ab-course-cta {
    margin-top: auto; font-size: 12px; font-weight: 600; color: #2563eb;
}
.oses-ab-progress { margin-top: 4px; }
.oses-ab-progress-meta {
    display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-bottom: 4px;
}

.oses-ab-data-table { font-size: 13px; margin: 0; }
.oses-ab-data-table thead th {
    background: #f8fafc; border-bottom: 2px solid #e2e8f0 !important;
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
}
.oses-ab-data-table tbody tr:hover { background: #f8fafc; }
.oses-ab-tfoot td { font-weight: 700; background: #f1f5f9; }
.oses-ab-actions { white-space: nowrap; }
.oses-ab-actions .btn { margin: 1px 0; }
.oses-ab-num-ok { color: #16a34a; font-weight: 700; }
.oses-ab-num-warn { color: #dc2626; font-weight: 700; }

.oses-ab-examiner-table .oses-ab-examiner-done { background: #f0fdf4; }
.oses-ab-examiner-table .oses-ab-examiner-late { background: #fef2f2; }
.oses-ab-examiner-table .oses-ab-examiner-late td { color: #7f1d1d; }
.oses-ab-examiner-table .oses-ab-examiner-late a { color: #991b1b; }
.oses-ab-tel { font-weight: 600; text-decoration: none; }
.oses-ab-tel:hover { text-decoration: underline; }

.oses-ab-footer-links {
    margin-top: 8px; padding-top: 16px; border-top: 1px solid #e8edf2;
    font-size: 13px;
}
.oses-ab-footer-links a { color: #2563eb; font-weight: 600; }
.oses-ab-footer-sep { margin: 0 10px; color: #cbd5e1; }

.oses-stats-helpline {
    margin-top: 24px; padding: 14px 16px; border-radius: 10px;
    background: #eff6ff; border: 1px solid #bfdbfe; font-size: 13px;
    display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}

/* Bulk upload wizard */
.oses-upload-wizard { background: #fff; border: 1px solid #dbe3ec; border-radius: 12px; padding: 20px; }
.oses-upload-steps {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid #e2e8f0;
}
.oses-upload-step {
    padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #f1f5f9; color: #64748b;
}
.oses-upload-step.active { background: #dbeafe; color: #1e40af; }
.oses-upload-step.done { background: #dcfce7; color: #166534; }
.oses-upload-panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.oses-upload-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8edf2;
}
.oses-lbl { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #475569; }
.oses-upload-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 768px) { .oses-upload-zones { grid-template-columns: 1fr; } }
.oses-upload-zone {
    padding: 16px; border: 2px dashed #cbd5e1; border-radius: 10px; background: #f8fafc;
}
.oses-upload-progress { margin: 12px 0; }
.oses-upload-table { font-size: 13px; }
.oses-upload-summary { margin-bottom: 14px; }
.oses-upload-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.oses-import-modes { margin: 14px 0; }
.oses-import-mode {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
    border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; cursor: pointer;
}
.oses-import-mode:hover { background: #f8fafc; }
.oses-import-mode input { margin-top: 3px; }
.oses-upload-result-list { margin: 0; padding-left: 20px; line-height: 1.8; }
.oses-upload-path-hint { margin-top: 12px; }

/* Import status (step 3 → 4) */
.oses-import-status {
    margin: 16px 0; padding: 20px; border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe;
}
.oses-import-status-inner { text-align: center; max-width: 480px; margin: 0 auto; }
.oses-import-status h4 { margin: 0 0 6px; color: var(--oses-navy); font-weight: 700; }
.oses-import-spinner {
    width: 40px; height: 40px; margin: 0 auto 12px;
    border: 3px solid #dbeafe; border-top-color: #2563eb;
    border-radius: 50%; animation: oses-spin .8s linear infinite;
}
@keyframes oses-spin { to { transform: rotate(360deg); } }
.oses-progress-indeterminate {
    width: 40% !important; animation: oses-indeterminate 1.2s ease-in-out infinite;
}
@keyframes oses-indeterminate {
    0% { margin-left: 0; width: 30%; }
    50% { margin-left: 35%; width: 50%; }
    100% { margin-left: 70%; width: 30%; }
}
.oses-import-steps {
    list-style: none; margin: 14px 0 0; padding: 0; text-align: left; font-size: 13px;
}
.oses-import-steps li {
    padding: 6px 0; color: #94a3b8; display: flex; align-items: center; gap: 8px;
}
.oses-import-steps li.active { color: #1d4ed8; font-weight: 600; }
.oses-import-steps li.done { color: #166534; }
.oses-import-step-icon { width: 18px; text-align: center; font-size: 12px; }
.oses-import-result-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px;
}
.oses-import-result-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px 10px; text-align: center;
}
.oses-import-result-card.ok { background: #ecfdf5; border-color: #86efac; }
.oses-import-result-card.warn { background: #fff7ed; border-color: #fed7aa; }
.oses-import-result-card .num { display: block; font-size: 24px; font-weight: 800; color: var(--oses-navy); }
.oses-import-result-card .lbl { display: block; font-size: 11px; color: #64748b; margin-top: 4px; }

/* Agency copy QA review (ap/evaluate.php) */
body.oses-app-wide {
    width: 100%;
    overflow-x: hidden;
}
main.oses-main.oses-main-wide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px 8px 16px !important;
    box-sizing: border-box;
}
.oses-qa-page {
    width: 100% !important;
    max-width: none !important;
}
.oses-qa-page form,
.oses-qa-page form > table,
.oses-qa-page > table {
    width: 100% !important;
    max-width: none !important;
}
.oses-qa-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.oses-qa-head h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--oses-navy); }
.oses-qa-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oses-qa-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: #fff; border: 1px solid #dbe3ec; color: #334155;
}
.oses-qa-chip strong { color: var(--oses-navy); }
.oses-qa-chip.pending { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.oses-qa-layout {
    display: grid; grid-template-columns: minmax(280px, 1fr) 340px;
    gap: 16px; align-items: start;
}
@media (max-width: 992px) {
    .oses-qa-layout { grid-template-columns: 1fr; }
}
.oses-qa-preview {
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 18px rgba(15, 39, 68, .06);
}
.oses-qa-preview-bar {
    padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    font-size: 12px; font-weight: 600; color: #64748b;
}
.oses-qa-cover-wrap {
    max-height: 420px; overflow: hidden; background: #f1f5f9;
    display: flex; align-items: flex-start; justify-content: center; cursor: zoom-in;
}
.oses-qa-cover-wrap img { width: 100%; max-width: 720px; height: auto; display: block; }
.oses-qa-side {
    position: sticky; top: 12px;
    background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 18px; box-shadow: 0 4px 18px rgba(15, 39, 68, .06);
}
.oses-qa-uid-block {
    text-align: center; padding: 14px; margin-bottom: 16px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #bfdbfe; border-radius: 10px;
}
.oses-qa-uid-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 4px; }
.oses-qa-uid-value { font-size: 28px; font-weight: 800; letter-spacing: 2px; color: #1e3a8a; margin: 0; }
.oses-qa-pages { font-size: 13px; color: #64748b; margin-top: 6px; }
.oses-qa-field { margin-bottom: 14px; }
.oses-qa-field label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.oses-qa-field select,
.oses-qa-field input[type="text"] {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 14px;
}
.oses-qa-field select:focus,
.oses-qa-field input[type="text"]:focus {
    outline: none; border-color: var(--oses-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.oses-qa-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.oses-qa-btn {
    display: block; width: 100%; padding: 12px 16px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
}
.oses-qa-btn-approve { background: #16a34a; color: #fff; }
.oses-qa-btn-approve:hover { background: #15803d; }
.oses-qa-btn-primary { background: linear-gradient(90deg, #d97706, #f59e0b); color: #fff; font-weight: 700; }
.oses-qa-btn-primary:hover { background: linear-gradient(90deg, #b45309, #d97706); color: #fff; }
.oses-qa-status {
    min-height: 20px; font-size: 12px; margin-top: 8px; padding: 8px 10px; border-radius: 6px; display: none;
}
.oses-qa-status.show { display: block; }
.oses-qa-status.ok { background: #dcfce7; color: #166534; }
.oses-qa-status.err { background: #fee2e2; color: #991b1b; }
.oses-qa-status.busy { background: #e0f2fe; color: #075985; }
.oses-qa-filmstrip {
    margin-top: 16px; background: #fff; border: 1px solid #dbe3ec; border-radius: 12px;
    padding: 14px; box-shadow: 0 4px 18px rgba(15, 39, 68, .06);
}
.oses-qa-filmstrip h2 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--oses-navy); }
.oses-qa-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px;
    max-height: 520px; overflow-y: auto; padding-right: 4px;
}
.oses-qa-thumb {
    position: relative; border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden;
    cursor: pointer; background: #f8fafc; aspect-ratio: 3/4;
}
.oses-qa-thumb:hover, .oses-qa-thumb.active { border-color: var(--oses-accent); }
.oses-qa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oses-qa-thumb-num {
    position: absolute; top: 4px; right: 4px; background: rgba(15, 39, 68, .75);
    color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.oses-qa-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(15, 23, 42, .92); align-items: center; justify-content: center; padding: 20px;
}
.oses-qa-lightbox.open { display: flex; }
.oses-qa-lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.oses-qa-lightbox-close {
    position: absolute; top: 16px; right: 20px; background: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; font-weight: 700;
}
.oses-qa-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.9); border: none; width: 44px; height: 44px;
    border-radius: 50%; font-size: 22px; cursor: pointer; font-weight: 700;
}
.oses-qa-lightbox-nav.prev { left: 16px; }
.oses-qa-lightbox-nav.next { right: 16px; }
.oses-qa-lightbox-cap {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    color: #e2e8f0; font-size: 13px; font-weight: 600;
}

/* University — register examiner paper picker */
.oses-paper-picker-admin { margin-top: 8px; }
.oses-paper-picker-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0;
}
.oses-paper-picker-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oses-course-accordion .panel-title { font-size: 13px; line-height: 1.4; }
.oses-course-accordion .panel-title > a { display: inline-block; max-width: calc(100% - 140px); }
.oses-course-badge { margin-left: 8px; background: #e2e8f0; color: #334155; }
.oses-course-actions { margin-top: -2px; }
.oses-paper-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 12px;
}
.oses-paper-check {
    display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 400;
    font-size: 12px; cursor: pointer; padding: 4px 0;
}
.oses-paper-check input { margin-top: 2px; }
.oses-paper-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
    padding: 10px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.oses-paper-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
    background: #dbeafe; color: #1e40af; border-radius: 6px; font-size: 11px;
}
.oses-paper-chip-remove {
    border: none; background: transparent; color: #1e40af; font-size: 14px;
    line-height: 1; padding: 0 2px; cursor: pointer;
}
.oses-examiner-hint {
    padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px;
}
.oses-examiner-hint-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.oses-examiner-hint-warn { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }

/* University — examiner list */
.oses-examiner-list-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-bottom: 14px;
}
.oses-examiner-list-toolbar input[type="search"] { flex: 1 1 220px; max-width: 360px; min-width: 180px; }
.oses-examiner-list-toolbar select.examiner-list-sort { flex: 0 1 220px; max-width: 240px; min-width: 160px; }
.oses-examiner-list-toolbar input[type="search"]:focus {
    border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}
.oses-examiner-papers {
    font-size: 11px; color: #64748b; max-width: 220px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oses-examiner-papers[title] { cursor: help; }
.oses-examiner-actions .btn { margin-right: 4px; margin-bottom: 4px; }
.oses-examiner-profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}
.oses-examiner-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oses-examiner-profile-section { margin-bottom: 16px; }
.oses-examiner-profile-section .oses-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.oses-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 0;
}
.oses-detail-item dt {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}
.oses-detail-item dd { margin: 0; font-size: 14px; color: #1e293b; line-height: 1.45; word-break: break-word; }
.oses-detail-item-full { grid-column: 1 / -1; }
.oses-examiner-paper-table code { font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 768px) {
    .oses-detail-grid { grid-template-columns: 1fr; }
    .oses-examiner-profile-head { flex-direction: column; }
}
@media print {
    .oses-examiner-profile-section { break-inside: avoid; page-break-inside: avoid; }
}

.oses-examiner-empty {
    text-align: center; padding: 32px 16px; color: #64748b;
}

/* University — assign copies */
.oses-assign-stats {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px;
    max-height: 220px; overflow: auto;
}
.oses-assign-panel {
    border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px;
    max-height: 520px; overflow: auto;
}
.oses-assign-panel h4 { margin-top: 0; font-size: 15px; }
.oses-assign-panel .table { margin-bottom: 0; font-size: 12px; }
.oses-assign-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 12px;
    font-size: 11px;
}
.oses-assign-key {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.08);
}
.oses-assign-row-available { background: #ffffff; }
.oses-assign-row-done { background: #f3f4f6; }
.oses-assign-row-assigned { background: #e9d5ff; }
.oses-assign-row-prior { background: #fde68a; }
.oses-assign-row-denied { background: #fecaca; }
.oses-assign-examiner-table tr[title] { cursor: help; }
.oses-assign-examiner-table input[type="checkbox"]:disabled { cursor: not-allowed; }

/* University — paper marking schemes */
.oses-scheme-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.oses-scheme-ref-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
}
.oses-scheme-ref-card strong {
    display: block;
    margin: 6px 0 4px;
    font-size: 13px;
    color: #0f2744;
}
.oses-scheme-ref-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}
.oses-scheme-part-fields {
    display: none;
    margin-bottom: 8px;
}
.oses-scheme-part-fields.show {
    display: block;
}
.oses-scheme-q-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin: 8px 0 16px;
}
.oses-scheme-q-item label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}
.oses-qp-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 14px;
    max-height: 360px;
    overflow: auto;
}
.oses-qp-preview-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: block;
    background: #f8fafc;
}
.oses-qp-preview-grid a:hover img {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}

/* University — evaluation bills */
.oses-eval-bills-table { font-size: 11px; }
.oses-eval-bills-table th { white-space: nowrap; }
.oses-eval-row-unpaid { background: #fff1f2 !important; }
.oses-eval-row-paid { background: #f0fdf4 !important; }
.oses-eval-totals-row td {
    border-top: 2px solid #e2e8f0;
    background: #f8fafc !important;
}
.oses-eval-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}
.oses-eval-pagination a,
.oses-eval-pagination span.current {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    color: #2563eb;
}
.oses-eval-pagination span.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ——— Responsive: navigation + site-wide mobile ——— */
@media (max-width: 991px) {
    .oses-nav-toggle { display: inline-flex; }
    .oses-nav-desktop { display: none; }

    .oses-nav-mobile-panel {
        display: none;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        padding: 0 10px 12px;
        border-top: 1px solid rgba(255, 255, 255, .1);
        background: rgba(7, 21, 37, .98);
    }

    .oses-header.nav-open .oses-nav-mobile-panel { display: flex; }

    .oses-nav-mobile-group {
        padding: 8px 0 4px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .oses-nav-mobile-group:first-child { border-top: none; padding-top: 4px; }

    .oses-nav-mobile-label {
        padding: 6px 12px 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #64748b;
    }

    .oses-nav-mobile-link {
        display: block;
        padding: 11px 12px;
        border-radius: 8px;
        color: #e2e8f0;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
    .oses-nav-mobile-link:hover,
    .oses-nav-mobile-link:focus {
        color: #fff;
        background: rgba(255, 255, 255, .08);
        text-decoration: none;
    }
    .oses-nav-mobile-link.active {
        color: #fff;
        background: rgba(37, 99, 235, .35);
    }

    .oses-brand-sub { display: none; }
    .oses-panel-badge { display: none; }
    .oses-header-meta { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
    .oses-profile { max-width: 140px; }
}

@media (max-width: 767px) {
    body.oses-app,
    body.oses-panel-university,
    body.oses-panel-agency {
        overflow-x: clip;
    }

    .oses-main,
    body.oses-panel-university .oses-main,
    body.oses-panel-agency .oses-main {
        padding: 16px 12px 32px;
        max-width: 100%;
        min-width: 0;
    }

    .oses-panel-shell {
        max-width: 100%;
        min-width: 0;
    }

    .oses-panel-shell > *,
    .oses-card,
    .oses-page-head,
    .oses-dash-pipeline,
    .oses-up-kpi-row {
        max-width: 100%;
        min-width: 0;
    }

    .oses-card { padding: 16px; }

    .oses-dash-head {
        flex-direction: column;
        align-items: stretch;
    }
    .oses-dash-head-actions {
        width: 100%;
    }
    .oses-dash-head-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
    .oses-dash-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .oses-dash-pipeline-hdr {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .oses-dash-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oses-stat-grid,
    .oses-panel-tile-grid,
    .oses-panel-tile-grid-compact,
    .oses-ab-kpi-row,
    .oses-up-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oses-up-home,
    .oses-panel-shell,
    .oses-dash-grid,
    .oses-dash-card {
        max-width: 100%;
        min-width: 0;
    }

    .oses-dash-card .table-responsive {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .oses-panel-tile-grid .oses-panel-tile,
    .oses-panel-tile-grid-compact .oses-panel-tile {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: start;
        text-align: left;
        min-height: 0;
        padding: 12px 14px;
        column-gap: 12px;
        row-gap: 2px;
    }
    .oses-panel-tile-grid .oses-panel-tile .fa,
    .oses-panel-tile-grid-compact .oses-panel-tile .fa {
        grid-row: 1 / -1;
        grid-column: 1;
        margin-bottom: 0;
        justify-self: center;
        align-self: center;
    }
    .oses-panel-tile-grid .oses-panel-tile strong,
    .oses-panel-tile-grid-compact .oses-panel-tile strong {
        grid-column: 2;
        grid-row: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .oses-panel-tile-grid .oses-panel-tile-sub,
    .oses-panel-tile-grid-compact .oses-panel-tile-sub {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .oses-page-head h1,
    .oses-dash-head h1,
    .oses-ab-head h1 { font-size: 20px; }

    .oses-profile-name { display: none; }

    .form-inline {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .form-inline .form-control,
    .form-inline .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .oses-examiner-pw-row .form-control,
    .oses-examiner-pw-row .btn {
        width: 100%;
        min-width: 0 !important;
    }

    .table-responsive,
    .oses-table-wrap {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        margin-bottom: 12px;
    }

    .oses-table th,
    .oses-table td,
    .oses-dash-table th,
    .oses-dash-table td {
        font-size: 12px;
        padding: 8px 10px;
    }

    .oses-ab-tabs {
        gap: 6px;
    }
    .oses-ab-tab {
        padding: 7px 12px;
        font-size: 12px;
    }

    .btn-group-vertical,
    .oses-login-v3-actions {
        width: 100%;
    }
    .oses-login-v3-actions .oses-btn,
    .oses-login-v3-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .oses-login-v3-page { grid-template-columns: 1fr; min-height: auto; }
    .oses-login-v3-hero { min-height: auto; }
    .oses-login-v3-main { min-height: auto; }
}

@media (max-width: 480px) {
    .oses-dash-stages,
    .oses-stat-grid,
    .oses-panel-tile-grid,
    .oses-panel-tile-grid-compact,
    .oses-up-kpi-row {
        grid-template-columns: 1fr;
    }

    .oses-brand-text strong {
        font-size: 12px;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .oses-qa-page-card { width: calc(50% - 5px); }
    .oses-examiner-list-toolbar input[type="search"],
    .oses-examiner-list-toolbar select.examiner-list-sort {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 360px) {
    .oses-qa-page-card { width: 100%; }
}

/* Mobile card layout for wide data tables (.oses-responsive-cards) */
@media (max-width: 767px) {
    .oses-table-wrap:has(.oses-responsive-cards) {
        overflow-x: visible;
    }
    table.oses-responsive-cards {
        border: 0;
        background: transparent;
    }
    table.oses-responsive-cards thead {
        display: none;
    }
    table.oses-responsive-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    table.oses-responsive-cards tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #dbe3ec;
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
    }
    table.oses-responsive-cards tbody tr.danger,
    table.oses-responsive-cards tbody tr.oses-tc-overdue {
        border-color: #fecaca;
        background: #fef2f2;
    }
    table.oses-responsive-cards tbody tr.oses-eval-row-unpaid {
        border-color: #fde68a;
        background: #fffbeb;
    }
    table.oses-responsive-cards tbody tr.oses-rc-skip {
        display: none;
    }
    table.oses-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 5px 0;
        border: none !important;
        text-align: right;
        font-size: 13px;
    }
    table.oses-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #64748b;
        text-align: left;
        flex: 0 0 40%;
        max-width: 40%;
        padding-top: 2px;
    }
    table.oses-responsive-cards td.oses-rc-primary {
        display: block;
        text-align: left;
        font-size: 15px;
        font-weight: 700;
        color: var(--oses-navy);
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    table.oses-responsive-cards td.oses-rc-primary::before {
        display: none;
    }
    table.oses-responsive-cards td.oses-rc-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 10px;
        margin-top: 6px;
        border-top: 1px solid #e2e8f0 !important;
    }
    table.oses-responsive-cards td.oses-rc-actions::before {
        margin-bottom: 2px;
        flex: none;
        max-width: none;
    }
    table.oses-responsive-cards td.oses-rc-empty {
        display: block;
        text-align: center;
        padding: 20px 8px;
    }
    table.oses-responsive-cards td.oses-rc-empty::before {
        display: none;
    }
    table.oses-responsive-cards td.oses-rc-hide-mobile {
        display: none !important;
    }
    table.oses-responsive-cards .btn {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    table.oses-responsive-cards .oses-examiner-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .oses-rc-mobile-totals {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 13px;
    }
    .oses-rc-mobile-totals strong {
        color: var(--oses-navy);
    }
    .oses-tc-pipeline-desktop {
        display: none !important;
    }
    .oses-tc-pipeline-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}
@media (min-width: 768px) {
    .oses-tc-pipeline-mobile {
        display: none !important;
    }
    .oses-rc-mobile-totals {
        display: none !important;
    }
}
.oses-data-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(15, 39, 68, .05);
}
.oses-data-card-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.oses-data-card-head strong {
    display: block;
    font-size: 15px;
    color: var(--oses-navy);
}
.oses-data-card-block {
    margin-bottom: 12px;
}
.oses-data-card-block-title {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 6px;
}
.oses-data-card-block-title.oses-tc-round-orig { color: #1d4ed8; }
.oses-data-card-block-title.oses-tc-round-rev1 { color: #7c3aed; }
.oses-data-card-block-title.oses-tc-round-rev2 { color: #0d9488; }
.oses-data-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}
.oses-data-card-metric {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}
.oses-data-card-metric dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
}
.oses-data-card-metric dd {
    margin: 0;
    font-weight: 700;
    color: var(--oses-navy);
}
.oses-data-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}
.oses-data-card-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
}

/* Agency accounts (/up/agency_accounts.php) */
.oses-agency-row-active {
    background: #eff6ff !important;
}
.oses-agency-row-actions form {
    display: inline-block;
    margin: 0 0 0 4px;
    vertical-align: middle;
}
.oses-agency-creds-box code {
    font-size: 14px;
    font-weight: 600;
    color: #0f2744;
}
.oses-agency-empty {
    padding: 20px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}
@media (max-width: 767px) {
    .oses-agency-row-actions .btn {
        width: 100%;
        margin: 4px 0 0;
    }
    .oses-agency-row-actions form {
        display: block;
        width: 100%;
        margin: 4px 0 0;
    }
}

/* Legacy AJAX fragments — prevent horizontal page overflow */
.oses-legacy-ajax-panel,
div[style*="width: 740px"],
div[style*="width:1000px"] {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box;
}
body.oses-app select[style*="width:350px"],
body.oses-app select[style*="width:360px"],
body.oses-app input[style*="width: 350px"] {
    max-width: 100%;
    width: 100% !important;
}

/* Admin profile (/up/profile.php, /ap/profile.php) */
.oses-admin-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.oses-admin-profile-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .25);
}
.oses-pw-toggle-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}
.oses-pw-toggle-wrap .form-control { flex: 1 1 180px; min-width: 0; }
.oses-pw-toggle-wrap .oses-pw-toggle-btn { flex: 0 0 auto; align-self: stretch; }
@media (max-width: 767px) {
    .oses-admin-profile-hero { flex-direction: column; align-items: flex-start; text-align: left; }
    .oses-pw-toggle-wrap { flex-direction: column; }
    .oses-pw-toggle-wrap .oses-pw-toggle-btn { width: 100%; }
}

/* Mobile — print/bill previews, legacy forms, wide tables */
@media (max-width: 767px) {
    .oses-print-sheet {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .oses-bill-table {
        margin-top: 16px;
        font-size: 12px;
    }
    .oses-bill-table td,
    .oses-bill-table th {
        padding: 6px 8px;
        word-break: break-word;
    }
    .oses-ab-final-actions .oses-btn,
    .oses-ab-final-actions button.oses-btn {
        width: 100%;
        min-width: 0 !important;
    }
    body.oses-app .col-md-12[style*="min-height: 450px"] {
        padding: 16px 12px !important;
        min-height: 0 !important;
        max-width: 100%;
    }
    body.oses-app div[style*="margin-left: 400px"] {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .oses-assign-examiner-panel,
    #assign-examiner-panel {
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .doc-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
    }
    .doc-toc a { margin-right: 0; }
    .oses-paper-search-input {
        width: 100% !important;
        max-width: 100%;
        display: block !important;
    }
    body.oses-app .oses-panel-shell > form,
    body.oses-app .oses-panel-shell .col-md-12 > form {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* AI evaluation status dock — stack on narrow screens */
@media (max-width: 520px) {
    .ai-status-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ai-status-item-uid { font-size: 12px; }
    .ai-status-item-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
