:root {
    --sidebar: #20252b;
    --sidebar-hover: #303840;
    --sidebar-text: #e8edf2;
    --sidebar-muted: #9aa4ae;
    --page: #f5f7f9;
    --surface: #ffffff;
    --border: #e1e5e9;
    --text: #1f2933;
    --muted: #68737d;
    --accent: #374151;
    --accent-hover: #1f2937;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Segoe UI", Arial, sans-serif; background: var(--page); color: var(--text); }
body { min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--sidebar); color: #fff; min-height: 100vh; }
.top-row { min-height: 72px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid #39414a; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.nav-scrollable { min-height: calc(100vh - 72px); padding: 12px 12px 18px; display: flex; flex-direction: column; }
.nav-section { font-size: 10px; letter-spacing: .12em; color: var(--sidebar-muted); font-weight: 700; margin: 18px 10px 7px; }
.nav-scrollable a,
.nav-scrollable button { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 9px 12px; margin: 2px 0; color: var(--sidebar-text); text-decoration: none; background: transparent; border: 0; text-align: left; border-radius: 7px; cursor: pointer; font-size: 14px; }
.nav-scrollable a:hover,
.nav-scrollable button:hover { background: var(--sidebar-hover); }
.nav-spacer { flex: 1; min-height: 24px; }
.nav-account { padding: 13px 12px; color: var(--sidebar-muted); font-size: 12px; border-top: 1px solid #39414a; margin-top: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.nav-account small { color: var(--sidebar-text); }

main { flex: 1; min-width: 0; }
.content { width: 100%; max-width: 1280px; padding: 36px 40px 50px; margin: 0 auto; }
.content h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 600; color: #18212a; }
.content h2 { color: #18212a; }
.content h3 { color: #18212a; }

/* Manager dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.dashboard-header h1 { margin-bottom: 7px; }
.dashboard-subtitle { margin: 0; color: var(--muted); font-size: 15px; }
.role-badge { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #374151; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.dashboard-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 142px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.dashboard-card:hover { border-color: #b8c0c8; box-shadow: 0 5px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.card-label { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .1em; font-weight: 700; color: #6b7280; }
.dashboard-card strong { display: block; margin: 4px 0 0; font-size: 34px; line-height: 1; font-weight: 650; color: #111827; }
.card-description { display: block; margin-top: auto; color: var(--muted); font-size: 13px; line-height: 1.35; }
.quick-links { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.quick-links h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #27313a; text-decoration: none; font-size: 14px; font-weight: 500; }
.quick-action:hover { background: #f3f4f6; border-color: #aeb6bf; }

/* General application controls */
.toolbar { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.toolbar input, .toolbar select, .modal-card input, .modal-card select { padding: 10px 11px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.content button { padding: 9px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
.content button:hover { background: var(--accent-hover); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cards > div { background: #fff; padding: 20px; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.table { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-top: 20px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr 2fr 2fr 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eee; }
.row.header { font-weight: 700; background: #f3f4f6; }
.notice { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.error-box { color: #991b1b; }

/* Login */
.login-layout { min-height: 100vh; display: grid; place-items: center; background: var(--page); }
.login-card { width: min(430px, 90vw); padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 35px rgba(0,0,0,.08); text-align: center; }
.marquis-logo { max-width: 220px; margin-bottom: 20px; }
.login-card input, .login-card textarea, .modal input, .modal textarea { display: block; width: 100%; padding: 11px; margin: 10px 0; border: 1px solid #d1d5db; border-radius: 6px; }
.login-card button { padding: 10px 16px; border: 0; border-radius: 6px; background: #333; color: #fff; cursor: pointer; margin: 5px; }
.login-card .secondary { background: #6b7280; }
.error { margin-top: 12px; color: #b91c1c; }

.assignment-table .row { grid-template-columns: 1fr 2fr 1fr 1fr 1fr; }
.records-table .row { grid-template-columns: 1fr 2fr .7fr 1fr 1fr 1fr; }
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); padding: 20px; z-index: 1000; }
.modal-card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); width: min(520px, 95vw); }
.modal-card select, .modal-card input { display: block; width: 100%; box-sizing: border-box; margin: 10px 0; }

@media (max-width: 1000px) {
    .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .sidebar { width: 210px; flex-basis: 210px; }
    .content { padding: 24px 20px 40px; }
    .dashboard-header { flex-direction: column; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .assignment-table .row, .records-table .row { grid-template-columns: 1fr 1fr; }
    .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .page { display: block; }
    .sidebar { width: 100%; min-height: auto; }
    .nav-scrollable { min-height: auto; }
    .nav-spacer { display: none; }
    .content { padding: 22px 16px 36px; }
}

/* Employee directory */
.page-header { margin-bottom: 24px; }
.page-subtitle { margin: 0; color: var(--muted); max-width: 820px; line-height: 1.5; }
.employee-search-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.employee-search-row { display: grid; grid-template-columns: minmax(280px, 1fr) 180px auto auto; gap: 12px; align-items: end; }
.employee-search-row label, .detail-grid label { display: block; margin-bottom: 7px; color: #6b7280; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.employee-search-row input, .employee-search-row select { width: 100%; box-sizing: border-box; height: 40px; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #1f2937; }
.employee-search-row input:focus, .employee-search-row select:focus { outline: none; border-color: #8a96a3; box-shadow: 0 0 0 3px rgba(107,114,128,.12); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; box-sizing: border-box; padding: 8px 14px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.primary-button { border: 1px solid #27313a; background: #27313a; color: #fff !important; }
.primary-button:hover { background: #111827; }
.secondary-button { border: 1px solid #d1d5db; background: #fff; color: #374151 !important; }
.secondary-button:hover { background: #f3f4f6; }
.search-button { border: 1px solid #27313a !important; }
.search-help { margin-top: 10px; color: #7a8490; font-size: 12px; }
.warning-box { display: flex; flex-direction: column; gap: 6px; border-color: #e4d7a4; background: #fffdf3; color: #6b5b18; }
.warning-box code { font-family: Consolas, monospace; }
.employee-results-header { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 10px; color: #374151; }
.results-note { color: #7a8490; font-size: 13px; }
.employee-table { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.employee-table-row { display: grid; grid-template-columns: 1.05fr 2fr 1.35fr 1.15fr 1fr 1.5fr; gap: 14px; align-items: center; width: 100%; box-sizing: border-box; padding: 13px 16px; border: 0; border-bottom: 1px solid #edf0f2; text-align: left; font: inherit; color: #27313a; }
.employee-table-header { background: #f7f8f9; color: #5f6973; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.employee-row-button { background: #fff; cursor: pointer; }
.employee-row-button:hover { background: #f8fafb; }
.employee-row-button:last-child { border-bottom: 0; }
.employee-row-button span { min-width: 0; overflow-wrap: anywhere; }
.employee-row-button strong { display: block; font-size: 14px; color: #18212a; }
.employee-row-button small { display: block; margin-top: 3px; color: #7a8490; font-size: 12px; }
.employee-id { font-family: Consolas, monospace; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-active { background: #eaf7ee; color: #216e39; }
.status-inactive { background: #f2f3f5; color: #5f6973; }
.status-terminated { background: #fdecec; color: #a12b2b; }
.status-other { background: #eef2f6; color: #52606d; }
.employee-detail-panel { margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #edf0f2; }
.detail-kicker { color: #6b7280; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.detail-header h2 { margin: 5px 0 2px; font-size: 24px; }
.detail-header p { margin: 0; color: #7a8490; font-family: Consolas, monospace; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 22px 0; }
.detail-grid > div { min-width: 0; }
.detail-grid strong { display: block; color: #27313a; font-size: 14px; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #edf0f2; }

@media (max-width: 1100px) {
    .employee-table-row { grid-template-columns: 1fr 1.7fr 1.2fr 1fr; }
    .employee-table-row > span:nth-child(5), .employee-table-row > span:nth-child(6) { display: none; }
}
@media (max-width: 800px) {
    .employee-search-row { grid-template-columns: 1fr 1fr; }
    .employee-search-row .search-field { grid-column: 1 / -1; }
    .employee-table-row { grid-template-columns: 1fr 1.7fr 1fr; }
    .employee-table-row > span:nth-child(3), .employee-table-row > span:nth-child(4) { display: none; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .employee-search-row { grid-template-columns: 1fr; }
    .employee-search-row .search-field { grid-column: auto; }
    .employee-results-header { align-items: flex-start; flex-direction: column; gap: 5px; }
    .employee-table-row { grid-template-columns: 1fr 1.6fr; }
    .employee-table-row > span:nth-child(n+3) { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* Administrator directory picker */
.page-toolbar { display:flex; justify-content:flex-end; margin:18px 0; }
.admin-table .row { grid-template-columns: 1.3fr 2fr 1.2fr .7fr; }
.administrator-modal { width:min(760px, 96vw); max-height:90vh; overflow:auto; }
.modal-header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:20px; }
.modal-header h2 { margin:4px 0 5px; font-size:24px; }
.modal-header p { margin:0; color:#6b7280; font-size:14px; line-height:1.45; }
.modal-kicker { color:#6b7280; font-size:11px; font-weight:700; letter-spacing:.1em; }
.modal-close { background:transparent !important; color:#6b7280 !important; font-size:26px; line-height:1; padding:0 4px !important; }
.entra-search { padding:16px; background:#f7f8f9; border:1px solid #e5e7eb; border-radius:9px; }
.entra-search label, .role-field label { display:block; margin-bottom:7px; color:#4b5563; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.entra-search-row { display:grid; grid-template-columns:1fr auto; gap:10px; }
.entra-search-row input { margin:0 !important; }
.entra-search small { display:block; margin-top:7px; color:#7a8490; }
.entra-results { margin-top:14px; border:1px solid #e5e7eb; border-radius:9px; overflow:hidden; }
.entra-result { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px !important; border:0 !important; border-bottom:1px solid #edf0f2 !important; border-radius:0 !important; background:#fff !important; color:#27313a !important; text-align:left; }
.entra-result:last-child { border-bottom:0 !important; }
.entra-result:hover { background:#f8fafb !important; }
.entra-avatar { display:flex; align-items:center; justify-content:center; flex:0 0 38px; width:38px; height:38px; border-radius:50%; background:#e8edf2; color:#34404b; font-size:12px; font-weight:700; }
.entra-person { display:flex; flex-direction:column; min-width:0; flex:1; }
.entra-person strong { color:#18212a; font-size:14px; }
.entra-person small { color:#6b7280; margin-top:2px; overflow-wrap:anywhere; }
.entra-select { color:#27313a; font-size:13px; font-weight:600; }
.search-empty { margin-top:14px; padding:15px; border:1px dashed #d1d5db; border-radius:8px; color:#6b7280; }
.selected-user { margin-top:18px; padding:15px; border:1px solid #d7e3d9; border-radius:9px; background:#f6fbf7; }
.selected-user-title { color:#5f6973; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.selected-user-name { margin-top:4px; font-weight:700; color:#18212a; }
.selected-user-email { margin-top:2px; color:#6b7280; font-size:13px; }
.role-field { margin-top:18px; }
.role-field select { width:100%; box-sizing:border-box; padding:10px 11px; border:1px solid #d1d5db; border-radius:6px; background:#fff; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid #edf0f2; }
@media (max-width:600px) { .entra-search-row { grid-template-columns:1fr; } .admin-table .row { grid-template-columns:1fr 1.4fr; } .admin-table .row > span:nth-child(3), .admin-table .row > span:nth-child(4) { display:none; } }

/* v15 visual cleanup */
.content h1:focus,
.login-card h1:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Employee search controls */
.employee-search-row .primary-button,
.employee-search-row .secondary-button {
    min-width: 82px;
}
.employee-search-row .secondary-button {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #cfd5dc !important;
}
.employee-search-row .secondary-button:hover {
    background: #f4f6f8 !important;
}

/* Employee results should look like a table, not dark buttons */
.content button.employee-row-button {
    display: grid;
    grid-template-columns: 1.05fr 2fr 1.35fr 1.15fr 1fr 1.5fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 66px;
    margin: 0;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    background: #ffffff !important;
    color: #27313a !important;
    text-align: left;
    font: inherit;
    box-shadow: none;
}
.content button.employee-row-button:hover,
.content button.employee-row-button:focus-visible {
    background: #f7f9fb !important;
    color: #27313a !important;
    box-shadow: none;
}
.content button.employee-row-button:last-child {
    border-bottom: 0;
}
.content button.employee-row-button .employee-id {
    color: #4b5563;
    font-family: Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}
.content button.employee-row-button strong {
    color: #18212a !important;
}
.content button.employee-row-button small {
    color: #7a8490 !important;
}

/* Cleaner employee directory header */
.employee-table-header {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
}
.employee-table-header span {
    white-space: nowrap;
}
.employee-results-header strong {
    color: #18212a;
    font-size: 18px;
}

/* Login screen polish */
.login-layout {
    background: linear-gradient(180deg, #f7f9fb 0%, #eef2f5 100%);
}
.login-card {
    width: min(440px, 92vw);
    padding: 38px 38px 34px;
    border-color: #dfe4e8;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(24,33,42,.10);
}
.login-card h1 {
    margin: 4px 0 10px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    color: #18212a;
}
.login-card p {
    margin: 0 0 22px;
    color: #68737d;
}
.login-card hr {
    border: 0;
    border-top: 1px solid #e4e8ec;
    margin: 24px 0 18px;
}
.login-card input {
    height: 44px;
    margin: 0 0 12px;
    border-color: #cfd5dc;
    border-radius: 8px;
    font-size: 15px;
}
.login-card input:focus {
    outline: none;
    border-color: #66727e;
    box-shadow: 0 0 0 3px rgba(55,65,81,.10);
}
.login-card button {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
}
.login-card .secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #cfd5dc;
}
.login-card .secondary:hover {
    background: #f4f6f8;
}
.marquis-logo {
    max-width: 235px;
    margin-bottom: 14px;
}

/* Administrator modal cleanup */
.content .modal-card button {
    min-height: 40px;
}
.content .modal-card .entra-result {
    min-height: 64px;
    padding: 12px 14px !important;
}
.content .modal-card .entra-result:hover,
.content .modal-card .entra-result:focus-visible {
    background: #f7f9fb !important;
    color: #27313a !important;
}

@media (max-width: 1100px) {
    .content button.employee-row-button {
        grid-template-columns: 1fr 1.7fr 1.2fr 1fr;
    }
    .content button.employee-row-button > span:nth-child(5),
    .content button.employee-row-button > span:nth-child(6) {
        display: none;
    }
}
@media (max-width: 800px) {
    .content button.employee-row-button {
        grid-template-columns: 1fr 1.7fr 1fr;
    }
    .content button.employee-row-button > span:nth-child(3),
    .content button.employee-row-button > span:nth-child(4) {
        display: none;
    }
}
@media (max-width: 560px) {
    .content button.employee-row-button {
        grid-template-columns: 1fr 1.6fr;
    }
    .content button.employee-row-button > span:nth-child(n+3) {
        display: none;
    }
}

/* v16 employee profile and assignment polish */
.content button.secondary-button {
    border: 1px solid #cfd5dc !important;
    background: #ffffff !important;
    color: #374151 !important;
}
.content button.secondary-button:hover {
    background: #f4f6f8 !important;
    color: #1f2937 !important;
}
.content button.modal-close-button {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #374151 !important;
    font-size: 24px;
    line-height: 1;
    box-shadow: none;
}
.content button.modal-close-button:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.employee-assign-modal {
    width: min(620px, 95vw);
}
.employee-assign-modal label {
    display: block;
    margin: 14px 0 7px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.employee-assign-modal select,
.employee-assign-modal input[type="date"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd5dc;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
}
.employee-assign-modal select:focus,
.employee-assign-modal input[type="date"]:focus {
    outline: none;
    border-color: #66727e;
    box-shadow: 0 0 0 3px rgba(55,65,81,.10);
}
.optional-label {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #7a8490;
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Content management forms */
.page-toolbar { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.course-table .row { grid-template-columns: 1.1fr 2.4fr 1.1fr 1fr; }
.program-table .row { grid-template-columns: 1.2fr 2.8fr 1fr; }
.empty-table { padding: 34px 20px; text-align: center; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-active { background: #ecfdf3; color: #16734a; }
.status-inactive { background: #f3f4f6; color: #6b7280; }

.form-modal { width: min(680px, 94vw); padding: 0; overflow: hidden; }
.form-modal .modal-header { padding: 24px 26px 20px; border-bottom: 1px solid var(--border); }
.form-modal .modal-header h2 { margin: 5px 0 6px; font-size: 23px; font-weight: 650; }
.form-modal .modal-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 560px; }
.form-modal .form-grid { padding: 22px 26px 8px; }
.form-field { min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { display: block; margin: 0 0 7px; color: #4b5563; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #cfd5dc; border-radius: 7px; padding: 10px 11px; background: #fff; color: #1f2937; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-field input { height: 42px; }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #7b8794; box-shadow: 0 0 0 3px rgba(75,85,99,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.small-field { max-width: 180px; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 32px; }
.input-with-suffix span { position: absolute; right: 12px; top: 11px; color: var(--muted); font-weight: 600; }
.form-modal .notice { margin: 4px 26px 0; }
.form-modal .modal-actions { padding: 18px 26px 22px; margin-top: 18px; border-top: 1px solid var(--border); background: #fafbfc; }

@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-field-full { grid-column: auto; }
    .small-field { max-width: none; }
    .course-table .row, .program-table .row { grid-template-columns: 1fr 1fr; }
}

/* Content management pages */
.content-selector-card { background:#fff; border:1px solid var(--border); border-radius:10px; padding:20px; box-shadow:0 1px 2px rgba(15,23,42,.04); margin-bottom:22px; }
.content-selector-card.two-selectors { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.content-selector-card select { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid #d1d5db; border-radius:7px; background:#fff; color:#111827; }
.content-selector-card select:disabled { background:#f3f4f6; color:#9ca3af; }
.content-empty-state { background:#fff; border:1px dashed #cfd6de; border-radius:10px; padding:58px 24px; text-align:center; color:#667085; }
.content-empty-state.compact { padding:38px 24px; }
.content-empty-state h2 { margin:8px 0 6px; color:#172033; font-size:20px; }
.content-empty-state p { margin:0; }
.empty-icon { width:44px; height:44px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#eef2f6; color:#344054; font-size:25px; }
.content-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:4px 0 18px; }
.content-toolbar h2 { margin:3px 0 0; font-size:21px; color:#172033; }
.content-list { display:flex; flex-direction:column; gap:14px; }
.content-card { background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.content-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:20px 22px; }
.content-card-header h3 { margin:4px 0 4px; font-size:18px; color:#172033; }
.content-card-header p { margin:0; color:#667085; font-size:13px; }
.content-number { display:block; color:#667085; font-size:10px; font-weight:700; letter-spacing:.11em; }
.content-card-footer { display:flex; justify-content:space-between; padding:11px 22px; border-top:1px solid #eef1f4; background:#fafbfc; color:#667085; font-size:12px; }
.lesson-list { border-top:1px solid #eef1f4; }
.lesson-row { display:flex; align-items:center; gap:14px; padding:12px 22px; border-bottom:1px solid #f0f2f5; }
.lesson-row:last-child { border-bottom:0; }
.lesson-row strong { display:block; font-size:13px; color:#253044; }
.lesson-row small { display:block; margin-top:2px; color:#8a93a3; font-size:11px; }
.lesson-number { width:26px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:6px; background:#eef2f6; color:#475467; font-size:12px; font-weight:700; }
.content-tabs { display:flex; gap:3px; padding:4px; background:#eef1f4; border-radius:8px; width:max-content; margin-bottom:20px; }
.content-tabs button { border:0; background:transparent; padding:9px 18px; border-radius:6px; color:#667085; cursor:pointer; font-weight:600; }
.content-tabs button.active { background:#fff; color:#172033; box-shadow:0 1px 3px rgba(15,23,42,.12); }
.answer-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:0 22px 20px; color:#475467; font-size:13px; }
.question-card .content-card-header { padding-bottom:14px; }
@media (max-width: 720px) { .content-selector-card.two-selectors { grid-template-columns:1fr; } .content-toolbar { align-items:flex-start; flex-direction:column; } .answer-grid { grid-template-columns:1fr; } }
