/* Lớp giao diện mới: hiện đại, hỗ trợ tối/sáng và ưu tiên màn hình cảm ứng. */
:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #e4e9f1;
    --nav: #111a2f;
    --nav2: #1d2943;
    --primary: #4f66ee;
    --primary2: #394fd0;
    --shadow: 0 14px 40px rgba(20, 32, 62, .07);
    --field: #ffffff;
    --field-border: #dbe2ec;
    --soft: #f8fafc;
    --table-head: #f8fafc;
    --row-hover: #f7f9fe;
}

/* Workspace user two-step security */
.user-security-panel { overflow: hidden; }
.security-shield { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #315ef0, #754fd7); box-shadow: 0 8px 22px rgba(49,94,240,.24); }
.security-status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.security-status-card { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb,var(--panel) 92%,var(--bg)); }
.security-status-card > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--bg); font-weight: 900; }
.security-status-card.is-good > span { color: #16885c; background: color-mix(in srgb,#25b878 14%,var(--panel)); }
.security-status-card.is-warn > span { color: #c94350; background: color-mix(in srgb,#dc4c5a 12%,var(--panel)); }
.security-status-card small,.security-status-card strong { display: block; }
.security-status-card small { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.security-action-block { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.security-action-block h3 { margin: 0 0 5px; font-size: 13px; }
.security-action-block p { max-width: 740px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.security-emergency-block { align-items: flex-start; }
.security-action-copy { min-width: 230px; flex: 1; }
.security-reauth { width: min(100%,650px); }
.security-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.security-code-form { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.security-code-form .form-grid { margin-bottom: 12px; }
.backup-code-sheet { max-width: 760px; margin: 0 auto; padding: 28px; }
.backup-code-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.backup-code-head h2 { margin: 1px 0 6px; font-size: 18px; }
.backup-code-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.backup-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.backup-code-grid code { padding: 13px 16px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--text); background: var(--bg); font-size: 17px; font-weight: 800; letter-spacing: 1.6px; }
.backup-code-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media(max-width:760px) {
    .security-status-grid,.backup-code-grid { grid-template-columns: 1fr; }
    .security-action-block { align-items: stretch; flex-direction: column; }
    .security-inline-form { grid-template-columns: 1fr; }
    .security-action-copy { min-width: 0; }
    .backup-code-sheet { padding: 18px; }
}
@media print {
    .sidebar,.topbar,.no-print { display:none!important; }
    .main { margin:0!important; }
    .content { padding:0!important; }
    .backup-code-sheet { border:0; box-shadow:none; }
}

html[data-theme="dark"] {
    --bg: #0d1320;
    --panel: #151d2c;
    --text: #edf2fb;
    --muted: #9ca9bd;
    --line: #273247;
    --nav: #090e18;
    --nav2: #151f32;
    --primary: #7185ff;
    --primary2: #5e72ef;
    --shadow: 0 18px 48px rgba(0, 0, 0, .25);
    --field: #111827;
    --field-border: #303c52;
    --soft: #111827;
    --table-head: #111827;
    --row-hover: #1a2436;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --bg: #0d1320;
        --panel: #151d2c;
        --text: #edf2fb;
        --muted: #9ca9bd;
        --line: #273247;
        --nav: #090e18;
        --nav2: #151f32;
        --primary: #7185ff;
        --primary2: #5e72ef;
        --shadow: 0 18px 48px rgba(0, 0, 0, .25);
        --field: #111827;
        --field-border: #303c52;
        --soft: #111827;
        --table-head: #111827;
        --row-hover: #1a2436;
    }
}

html, body { background: var(--bg); color: var(--text); }
body { line-height: 1.45; transition: background-color .2s ease, color .2s ease; }
.sidebar { background: linear-gradient(180deg, var(--nav), var(--nav2)); width: 260px; }
.main { margin-left: 260px; }
.brand { height: 76px; }
.brand strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a { min-height: 42px; height: auto; padding: 9px 12px; border-radius: 10px; }
.nav a.active { background: linear-gradient(135deg, #546df2, #3854d8); }
.topbar {
    height: 68px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    border-color: var(--line);
}
.content { padding-top: 26px; }
.page-head h1 { font-size: clamp(22px, 2vw, 28px); }
.page-head p { max-width: 760px; line-height: 1.6; }
.panel, .stat-card { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow); }
.button { min-height: 40px; height: auto; border-radius: 10px; background: var(--field); border-color: var(--field-border); color: var(--text); }
.button:hover { background: var(--soft); }
.button.primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; }
.button.danger { background: color-mix(in srgb, #dc4c5a 10%, var(--panel)); border-color: color-mix(in srgb, #dc4c5a 35%, var(--line)); }
.jobs-filter { padding: 13px; display: flex; align-items: center; gap: 9px; background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 5%, var(--panel)), var(--panel)); }
.jobs-user-search { min-width: 260px; flex: 1 1 420px; }
.jobs-user-search .input { width: 100%; }
.jobs-filter .select { min-width: 170px; }
.job-user-email { display: inline-block; max-width: 260px; color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.round-button, .icon-button { color: var(--text); }
.round-button { border-color: var(--line); background: var(--field); cursor: pointer; }
.theme-toggle { font-size: 16px; }
.topbar-logout-form { margin: 0; }
.logout-button {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid color-mix(in srgb, #dc4c5a 72%, #9e2531);
    border-radius: 10px;
    background: linear-gradient(135deg, #e05764, #c83b49);
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 59, 73, .22);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.logout-button:hover { background: linear-gradient(135deg, #cf4654, #b92e3c); box-shadow: 0 7px 18px rgba(185, 46, 60, .3); }
.logout-button:focus-visible { outline: 3px solid color-mix(in srgb, #dc4c5a 28%, transparent); outline-offset: 2px; }
.input, .select, .textarea { min-height: 42px; background: var(--field); border-color: var(--field-border); color: var(--text); border-radius: 10px; }
.input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field label { color: var(--text); }
.form-footer, .data-table th { background: var(--table-head); }
.form-footer, .form-section + .form-section, .data-table th, .data-table td, .panel-head, .filter-bar, .pagination, .detail-grid, .detail-item { border-color: var(--line); }
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table td { border-color: var(--line); }
.pagination a, .pagination button { background: var(--field); color: var(--text); border-color: var(--line); }
.live-dot { background: var(--soft); border-color: var(--line); color: var(--muted); }
.detail-item code, code { color: color-mix(in srgb, var(--primary) 85%, var(--text)); }
.detail-item { min-width: 0; }
.login-page { background: var(--panel); }
.login-form-side { background: var(--panel); }
.login-visual { background: radial-gradient(circle at 80% 10%, #344f94 0, transparent 34%), linear-gradient(145deg, #0d1527, #172540 58%, #1f3264); }
.brand-preview { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); display: flex; align-items: center; gap: 14px; }
.brand-preview small, .brand-preview strong { display: block; }
.brand-preview small { color: var(--muted); margin-bottom: 3px; }
.brand-preview strong { font-size: 18px; }
.invoice-total-preview { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-total-preview span { color: var(--muted); }
.invoice-total-preview strong { font-size: 18px; }
.invoice-actions { min-width: 245px; display: grid; gap: 10px; }
.invoice-action-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.invoice-payment-form { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.invoice-payment-form label, .invoice-payment-form small { display: block; font-size: 10px; color: var(--muted); }
.invoice-payment-form label { margin-bottom: 5px; font-weight: 700; }
.invoice-payment-form small { margin-top: 5px; }
.invoice-payment-form > div { display: flex; gap: 6px; }
.invoice-payment-form .input { min-height: 34px; height: 34px; min-width: 125px; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-option { position: relative; border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--soft); }
.theme-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.theme-option input { accent-color: var(--primary); }
.theme-swatch { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; }
.theme-swatch.light { background: #fff; color: #d17d00; border: 1px solid #e5e7eb; }
.theme-swatch.dark { background: #111827; color: #dce6ff; }
.theme-swatch.system { background: linear-gradient(135deg, #fff 50%, #111827 50%); color: #6576df; border: 1px solid var(--line); }
.sidebar-backdrop { display: none; }
.locale-switch { height: 34px; min-width: 60px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--text); font-size: 12px; font-weight: 800; cursor: pointer; }
.translation-tools { overflow: hidden; }
.locale-create { display: grid; grid-template-columns: auto 150px auto minmax(220px, 1fr); gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--soft); }
.locale-create label { font-size: 13px; font-weight: 800; }
.locale-create small { color: var(--muted); }
.translation-table { min-width: 1050px; }
.translation-table th:first-child { width: 245px; }
.translation-table th:nth-child(2) { width: 28%; }
.translation-table th:nth-child(3) { width: 35%; }
.translation-path { display: block; max-width: 240px; margin-top: 7px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.translation-source { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.translation-source-detail { color: var(--text); }
.translation-editor { min-width: 280px; resize: vertical; line-height: 1.45; }

html[data-theme="dark"] .alert[style],
html[data-theme="dark"] .demo-box,
html[data-theme="dark"] .stat-icon,
html[data-theme="dark"] .entity-avatar { color: var(--text) !important; border-color: var(--line) !important; }

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .alert[style],
    html[data-theme="system"] .demo-box,
    html[data-theme="system"] .stat-icon,
    html[data-theme="system"] .entity-avatar { color: var(--text) !important; border-color: var(--line) !important; }
}

@media (max-width: 1100px) {
    .sidebar { width: 238px; }
    .main { margin-left: 238px; }
    .content { padding-left: 20px; padding-right: 20px; }
    .head-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 760px) {
    body.menu-open { overflow: hidden; }
    .sidebar { width: min(88vw, 320px); transform: translateX(-105%); z-index: 60; box-shadow: 18px 0 48px rgba(0, 0, 0, .28); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 50; border: 0; background: rgba(4, 9, 18, .58); backdrop-filter: blur(2px); }
    body.menu-open .sidebar-backdrop { display: block; }
    .main { margin-left: 0; width: 100%; }
    .topbar { height: 60px; padding: 0 14px; }
    .menu-button { display: grid; place-items: center; width: 42px; height: 42px; color: var(--text); border-radius: 10px; cursor: pointer; }
    .menu-button:hover { background: var(--soft); }
    .content { padding: 18px 12px 42px; }
    .page-head { gap: 14px; margin-bottom: 16px; }
    .page-head > div, .head-actions { width: 100%; }
    .head-actions { justify-content: stretch; }
    .head-actions .button { flex: 1 1 auto; }
    .panel, .stat-card { border-radius: 12px; }
    .panel-head { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
    .panel-head > * { min-width: 0; }
    .filter-bar { padding: 12px; }
    .filter-bar .search, .filter-bar .select, .filter-bar > .input, .filter-bar > select { flex: 1 1 100%; min-width: 0; width: 100%; }
    .filter-bar .button { flex: 1; }
    .jobs-filter { align-items: stretch; }
    .jobs-user-search, .jobs-filter .select { min-width: 0; width: 100%; flex: 1 1 100%; }
    .table-wrap { -webkit-overflow-scrolling: touch; }
    .data-table { min-width: 720px; }
    .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
    .form-section { padding: 16px; }
    .form-footer { padding: 12px 16px; flex-wrap: wrap; }
    .form-footer .button { flex: 1 1 130px; }
    .detail-grid { grid-template-columns: 1fr; }
    .theme-options { grid-template-columns: 1fr; }
    .locale-create { grid-template-columns: 1fr; padding: 14px; }
    .locale-create .button { width: 100%; }
    .locale-switch { min-width: 54px; }
    .invoice-actions { min-width: 220px; }
    .pagination { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
    .pagination > * { max-width: 100%; }
    .kpi-row { flex-wrap: wrap; }
    .kpi { min-width: 120px; }
    .login-form-side { align-items: start; padding: 34px 20px; }
    .login-box { max-width: 440px; }
    .login-box h2 { font-size: 23px; }
}

@media (max-width: 390px) {
    .topbar-actions { gap: 7px; }
    .round-button { width: 32px; height: 32px; }
    .topbar-account-button { display: none; }
    .logout-button { min-height: 36px; padding: 0 11px; }
    .content { padding-left: 10px; padding-right: 10px; }
    .page-head h1 { font-size: 21px; }
}

/* Compact language editor */
.translation-page-head { margin-bottom: 14px; }
.translation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.translation-summary > div { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.translation-summary small, .translation-summary strong { display: block; }
.translation-summary small { color: var(--muted); font-size: 11px; font-weight: 700; }
.translation-summary strong { margin-top: 3px; font-size: 21px; line-height: 1.1; }
.translation-summary .needs-attention strong { color: #d18a13; }
.translation-workspace { box-shadow: none; overflow: visible; }
.translation-locale-bar { min-height: 54px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.locale-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.locale-tab { min-width: 48px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; text-decoration: none; }
.locale-tab:hover { background: var(--soft); color: var(--text); }
.locale-tab.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--primary) 9%, var(--panel)); }
.locale-add-popover { position: relative; flex: 0 0 auto; }
.locale-add-popover > summary { list-style: none; cursor: pointer; }
.locale-add-popover > summary::-webkit-details-marker { display: none; }
.locale-add-popover[open] > form { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; width: min(340px, 86vw); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.locale-add-popover form label, .locale-add-popover form small { display: block; }
.locale-add-popover form label { margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.locale-add-popover form > div { display: flex; gap: 7px; }
.locale-add-popover form .input { min-width: 0; }
.locale-add-popover form small { margin-top: 7px; color: var(--muted); }
.translation-filter { padding: 10px 12px; display: grid; grid-template-columns: minmax(240px, 1fr) 180px 110px auto auto; gap: 8px; align-items: center; }
.translation-search { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--field); }
.translation-search span { color: var(--muted); font-size: 20px; line-height: 1; }
.translation-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.translation-editor-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.translation-editor-heading { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--table-head); color: var(--muted); font-size: 12px; }
.translation-editor-heading > div { display: flex; align-items: center; gap: 9px; }
.translation-editor-heading strong { padding: 5px 8px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 12%, var(--panel)); color: var(--primary); }
.translation-list { display: grid; }
.translation-card { padding: 12px 14px; display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.translation-card:hover { background: var(--row-hover); }
.translation-card-meta { min-width: 0; }
.translation-code-line { display: flex; align-items: center; gap: 7px; }
.translation-code-line code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.translation-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c8cfda; }
.translation-dot.on { background: #27a566; box-shadow: 0 0 0 3px color-mix(in srgb, #27a566 14%, transparent); }
.translation-card-meta p { margin: 6px 0 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.translation-card-meta small { display: block; margin-top: 4px; overflow: hidden; color: color-mix(in srgb, var(--muted) 75%, transparent); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.translation-card-editor { min-width: 0; }
.translation-card-editor > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.translation-card-editor textarea { width: 100%; min-height: 58px; padding: 9px 11px; resize: vertical; line-height: 1.35; }
.translation-card-actions { display: flex; gap: 5px; }
.translation-save-bar { position: sticky; z-index: 8; bottom: 0; padding: 10px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px); }
.translation-save-bar span { color: var(--muted); font-size: 11px; }
.translation-empty { padding: 42px 18px; }

/* Local QR code for Authenticator */
.two-factor-setup { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 16px; }
.two-factor-qr { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.two-factor-qr svg { display: block; width: 100%; height: auto; }
.two-factor-qr small { display: block; margin-top: 8px; color: #566173; font-size: 10px; }
.two-factor-steps { min-width: 0; }
.two-factor-steps ol { margin: 0 0 14px; padding-left: 20px; }
.two-factor-steps li { margin-bottom: 7px; }
.setup-secret { padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--primary) 7%, var(--panel)); }
.setup-secret label, .setup-secret code { display: block; }
.setup-secret label { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.setup-secret code { font-size: 16px; letter-spacing: .08em; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .translation-filter { grid-template-columns: minmax(200px, 1fr) 160px 100px; }
    .translation-filter .button { grid-row: 2; }
    .translation-card { grid-template-columns: minmax(190px, .75fr) minmax(280px, 1.25fr); }
    .translation-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
    .translation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .translation-summary > div { padding: 11px 13px; }
    .translation-filter { grid-template-columns: 1fr 1fr; }
    .translation-search { grid-column: 1 / -1; }
    .translation-filter .select { width: 100%; min-width: 0; }
    .translation-filter .button { grid-row: auto; }
    .translation-editor-heading { align-items: flex-start; flex-direction: column; }
    .translation-card { grid-template-columns: 1fr; gap: 10px; }
    .translation-card-actions { grid-column: auto; }
    .translation-save-bar { justify-content: space-between; }
    .two-factor-setup { grid-template-columns: 1fr; }
    .two-factor-qr { width: min(240px, 100%); margin: 0 auto; }
}

/* Language management — compact, responsive editor */
.language-page-head { margin-bottom: 14px; }
.language-control-panel { overflow: visible; box-shadow: none; }
.language-topline { min-height: 58px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.language-tabs { min-width: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.language-tab { min-width: 64px; padding: 7px 11px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 800; }
.language-tab small { padding: 2px 5px; border-radius: 5px; background: var(--soft); font-size: 8px; text-transform: uppercase; }
.language-tab:hover { color: var(--text); background: var(--soft); }
.language-tab.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); background: color-mix(in srgb, var(--primary) 9%, var(--panel)); }
.language-add { position: relative; flex: 0 0 auto; }
.language-add > summary { list-style: none; cursor: pointer; }
.language-add > summary::-webkit-details-marker { display: none; }
.language-add[open] > form { position: absolute; z-index: 15; top: calc(100% + 8px); right: 0; width: min(340px, 88vw); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 18px 48px rgba(0,0,0,.2); }
.language-add form label, .language-add form small { display: block; }
.language-add form label { margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.language-add form > div { display: flex; gap: 7px; }
.language-add form .input { min-width: 0; }
.language-add form small { margin-top: 7px; color: var(--muted); }
.language-metrics { padding: 10px 12px; display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); background: var(--table-head); overflow-x: auto; }
.language-metrics > span { min-width: 116px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.language-metrics small { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.language-metrics strong { font-size: 16px; }
.language-metrics .warning strong { color: #c77b08; }
.language-filter { padding: 10px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.language-search { min-width: 210px; min-height: 42px; flex: 1 1 320px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--field); }
.language-search span { color: var(--muted); font-size: 20px; line-height: 1; }
.language-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.language-filter .select { width: auto; min-width: 130px; }
.language-editor { margin-top: 14px; overflow: hidden; }
.language-editor-head { min-height: 50px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--table-head); }
.language-editor-head > div { display: flex; align-items: center; gap: 10px; }
.language-editor-head b { padding: 5px 8px; border-radius: 7px; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--panel)); font-size: 11px; }
.language-editor-head strong { font-size: 12px; }
.language-editor-head > span { color: var(--muted); font-size: 11px; }
.language-list { display: grid; }
.language-row { min-width: 0; padding: 12px 14px; display: grid; grid-template-columns: minmax(190px, .65fr) minmax(250px, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.language-row:hover { background: var(--row-hover); }
.language-key, .language-value { min-width: 0; }
.language-key > div { display: flex; align-items: center; gap: 7px; }
.language-key code { display: block; min-width: 0; max-width: 100%; overflow: hidden; color: var(--primary); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.language-state { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #c8cfda; }
.language-state.on { background: #27a566; box-shadow: 0 0 0 3px color-mix(in srgb, #27a566 14%, transparent); }
.language-key p { margin: 6px 0 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.language-key details { margin-top: 5px; color: var(--muted); font-size: 9px; }
.language-key summary { width: fit-content; cursor: pointer; }
.language-key details small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.language-value > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.language-value textarea { width: 100%; min-height: 58px; padding: 9px 11px; resize: vertical; line-height: 1.35; }
.language-actions { display: flex; gap: 6px; }
.language-save { position: sticky; z-index: 8; bottom: 0; padding: 10px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px); }
.language-save span { color: var(--muted); font-size: 11px; }
.language-empty { padding: 42px 18px; }

/* Appearance, custom CSS and safe cache */
.appearance-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.appearance-editor { min-width: 0; }
.section-title { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-title h3, .section-title p { margin: 0; }
.section-title p { margin-top: 4px; max-width: 650px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.custom-css-section { border-top: 1px solid var(--line); }
.css-shortcuts { margin-bottom: 10px; display: flex; gap: 7px; flex-wrap: wrap; }
.code-editor { min-height: 260px; padding: 14px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.6; resize: vertical; tab-size: 4; }
.safe-css-note { margin-top: 14px; padding: 12px 14px; display: grid; gap: 3px; border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--primary) 6%, var(--panel)); }
.safe-css-note strong { font-size: 12px; }
.safe-css-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.safe-css-note a { color: var(--primary); font-weight: 700; }
.appearance-side { display: grid; gap: 14px; }
.settings-card { padding: 18px; }
.settings-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--primary) 11%, var(--panel)); color: var(--primary); font-size: 19px; font-weight: 800; }
.settings-card-icon.neutral { background: var(--soft); color: var(--muted); }
.settings-card h3 { margin: 13px 0 5px; font-size: 15px; }
.settings-card p { min-height: 74px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.full-width { width: 100%; justify-content: center; }
.data-protection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.data-protection-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.data-protection-item strong, .data-protection-item span { display: block; }
.data-protection-item strong { margin-bottom: 6px; font-size: 13px; }
.data-protection-item span { color: var(--muted); font-size: 11px; line-height: 1.5; }

/* Support center and Vietnamese Excel export */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.support-card { min-width: 0; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.support-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 11%, var(--panel)); color: var(--primary); font-size: 19px; font-weight: 900; }
.support-card h2 { margin: 15px 0 7px; font-size: 17px; }
.support-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.support-card .button { width: 100%; justify-content: center; }
.support-guide { margin-top: 15px; }
.support-guide ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.support-guide li { min-width: 0; padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.support-guide li strong { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, var(--panel)); color: var(--primary); font-size: 11px; }
.support-guide li span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.export-columns { margin-top: 14px; padding: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.export-columns strong { grid-column: 1 / -1; margin-bottom: 2px; font-size: 12px; }
.export-columns span { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font-size: 11px; }

/* Personal account */
.account-page-head { margin-bottom: 15px; }
.account-hero { margin-bottom: 16px; padding: 22px; display: flex; align-items: center; gap: 16px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--panel)), var(--panel) 58%); }
.account-avatar { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 28%, transparent); font-size: 25px; font-weight: 900; }
.account-identity { min-width: 0; flex: 1; }
.account-identity > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.account-identity h2 { margin: 3px 0 2px; font-size: 21px; }
.account-identity p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-hero-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.account-badge { min-height: 34px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb, #26a269 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, #26a269 8%, var(--panel)); color: #25815a; font-size: 10px; font-weight: 800; }
.account-badge i { width: 7px; height: 7px; border-radius: 50%; background: #d48a11; }
.account-badge i.on { background: #26a269; box-shadow: 0 0 0 3px color-mix(in srgb, #26a269 15%, transparent); }
.account-badge.muted { border-color: var(--line); background: var(--soft); color: var(--muted); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.account-main, .account-sidebar { min-width: 0; display: grid; gap: 16px; }
.account-card { overflow: hidden; box-shadow: none; }
.account-card-head { min-height: 74px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 5%, var(--panel)), var(--panel)); }
.account-card-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 11%, var(--panel)); color: var(--primary); font-size: 18px; font-weight: 900; }
.account-card-head h2, .account-card-head p { margin: 0; }
.account-card-head h2 { font-size: 15px; }
.account-card-head p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-card-body { padding: 18px; }
.account-card-footer { min-height: 64px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); background: var(--table-head); }
.account-card-footer > span { max-width: 520px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.account-email-field, .password-input { position: relative; }
.account-email-field > span { position: absolute; z-index: 1; top: 50%; left: 13px; color: var(--muted); transform: translateY(-50%); }
.account-email-field .input { padding-left: 38px; }
.password-input .input { padding-right: 42px; }
.password-input button { position: absolute; top: 50%; right: 5px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.password-input button:hover, .password-input button.active { background: var(--soft); color: var(--primary); }
.password-guidance { padding: 11px 13px; display: flex; gap: 10px; border: 1px solid color-mix(in srgb, #26a269 25%, var(--line)); border-radius: 11px; background: color-mix(in srgb, #26a269 6%, var(--panel)); }
.password-guidance > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #26a269; color: #fff; font-size: 10px; font-weight: 900; }
.password-guidance strong, .password-guidance p { display: block; margin: 0; }
.password-guidance strong { font-size: 11px; }
.password-guidance p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.account-summary-card, .account-preference-card { padding: 17px; box-shadow: none; }
.account-summary-card h3, .account-preference-card h3 { margin: 0 0 14px; font-size: 13px; }
.security-score { display: flex; align-items: center; gap: 11px; }
.security-score-ring { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border: 4px solid #e3a12b; border-radius: 50%; color: #c27b0a; font-size: 11px; font-weight: 900; }
.security-score-ring.strong { border-color: #28a66b; color: #228456; }
.security-score strong, .security-score small { display: block; }
.security-score strong { font-size: 12px; }
.security-score small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.account-summary-card ul { margin: 15px 0; padding: 12px 0; display: grid; gap: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.account-summary-card li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.account-summary-card li > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, #26a269 11%, var(--panel)); color: #25815a; font-size: 8px; font-weight: 900; }
.account-summary-card li.attention > span { background: color-mix(in srgb, #d79018 12%, var(--panel)); color: #b96f05; }
.compact-theme-options { margin-bottom: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.compact-theme-options label { min-width: 0; padding: 8px 5px; display: grid; place-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); cursor: pointer; }
.compact-theme-options label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--panel)); color: var(--primary); }
.compact-theme-options input { position: absolute; opacity: 0; pointer-events: none; }
.compact-theme-options span { font-size: 16px; }
.compact-theme-options b { font-size: 9px; }
.account-preference-card > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.account-preference-card .select { margin-bottom: 10px; }
.account-two-factor { margin-top: 16px; overflow: hidden; }
.mfa-enabled-banner, .mfa-email-banner { padding: 14px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid color-mix(in srgb, #27a566 28%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #27a566 7%, var(--panel)); }
.mfa-email-banner { border-color: color-mix(in srgb, #d78c15 30%, var(--line)); background: color-mix(in srgb, #d78c15 7%, var(--panel)); }
.mfa-enabled-banner > span, .mfa-email-banner > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #27a566; color: #fff; font-weight: 900; }
.mfa-email-banner > span { background: #d78c15; }
.mfa-enabled-banner strong, .mfa-enabled-banner p, .mfa-email-banner strong, .mfa-email-banner p { margin: 0; }
.mfa-enabled-banner strong, .mfa-email-banner strong { font-size: 12px; }
.mfa-enabled-banner p, .mfa-email-banner p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mfa-disable-form { margin-top: 16px; }
.mfa-danger-zone { margin-top: 13px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.mfa-danger-zone span { color: var(--muted); font-size: 10px; }
.otp-input { font-size: 18px; font-weight: 900; letter-spacing: .18em; }
.setup-link { margin: 10px 0 14px; color: var(--muted); font-size: 10px; }
.setup-link summary { cursor: pointer; }
.setup-link code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.email-verify-shell { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 20px 0; }
.email-verify-card { width: min(580px, 100%); padding: 28px; text-align: center; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 7%, var(--panel)), var(--panel) 45%); }
.email-verify-icon { width: 58px; height: 58px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 28%, transparent); font-size: 24px; }
.email-verify-step { color: var(--primary); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.email-verify-card h1 { margin: 6px 0; font-size: 22px; }
.email-verify-card > p { max-width: 470px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.55; }
.email-change-map { margin: 20px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 9px; align-items: center; text-align: left; }
.email-change-map > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.email-change-map > div.new { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); background: color-mix(in srgb, var(--primary) 6%, var(--panel)); }
.email-change-map span, .email-change-map strong { display: block; }
.email-change-map span { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; }
.email-change-map strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.email-change-map > b { color: var(--muted); }
.email-otp-note { padding: 11px 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid color-mix(in srgb, #26a269 26%, var(--line)); border-radius: 11px; background: color-mix(in srgb, #26a269 6%, var(--panel)); text-align: left; }
.email-otp-note > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #26a269; color: #fff; font-size: 9px; font-weight: 900; }
.email-otp-note strong, .email-otp-note p { margin: 0; }
.email-otp-note strong { font-size: 10px; }
.email-otp-note p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.email-verify-form { margin-top: 17px; text-align: left; }
.email-verify-form label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; }
.email-otp-input { height: 54px; margin-bottom: 10px; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: .3em; }
.email-verify-actions { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.email-verify-actions .button { width: 100%; justify-content: center; }
.email-verify-security { display: block; margin-top: 16px; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* Cloudflare R2 · ee.org.vn */
.r2-status-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px }
.r2-status-card { display:flex;align-items:center;gap:13px;padding:17px }
.r2-status-icon { width:43px;height:43px;border-radius:14px;background:var(--soft);color:var(--muted);display:grid;place-items:center;font-weight:900;font-size:17px;flex:0 0 auto }
.r2-status-icon.success { background:#dcfce7;color:#15803d }
.r2-status-card div { min-width:0;display:grid;gap:2px }
.r2-status-card small { color:var(--muted);font-size:12px;font-weight:700 }
.r2-status-card strong { color:var(--ink);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis }
.r2-status-card div>span { color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis }
.r2-layout { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start }
.r2-section-heading { display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px }
.r2-section-heading h2 { margin:0 0 5px }
.r2-section-heading p { margin:0;color:var(--muted);max-width:660px }
.r2-toggle { display:flex;align-items:center;gap:9px;cursor:pointer;white-space:nowrap }
.r2-toggle input { position:absolute;opacity:0;pointer-events:none }
.r2-toggle span { width:42px;height:24px;border-radius:999px;background:#cbd5e1;position:relative;transition:.2s }
.r2-toggle span:after { content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:.2s }
.r2-toggle input:checked+span { background:var(--primary) }
.r2-toggle input:checked+span:after { transform:translateX(18px) }
.r2-toggle em { color:var(--ink);font-style:normal;font-size:13px;font-weight:700 }
.r2-side-stack { display:grid;gap:12px }
.r2-schedule-panel { padding:22px;text-align:center;background:linear-gradient(145deg,var(--panel),var(--soft)) }
.r2-cloud-mark { width:54px;height:54px;margin:0 auto 13px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#f6821f,#faae40);color:white;font-weight:900;box-shadow:0 10px 22px #f6821f33 }
.r2-schedule-panel h3 { margin:0 0 7px }
.r2-schedule-panel>strong { color:var(--primary);font-size:20px }
.r2-schedule-panel p { color:var(--muted);font-size:13px;line-height:1.55;margin:10px 0 0 }
.r2-code-panel { padding: 17px; display: grid; gap: 12px; box-shadow: none; }
.r2-code-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #273a60, #415b91); color: #fff; box-shadow: 0 9px 20px rgba(36, 54, 91, .2); font-size: 11px; font-weight: 900; }
.r2-code-panel strong, .r2-code-panel p { margin: 0; }
.r2-code-panel strong { font-size: 12px; }
.r2-code-panel p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.button.r2-code-button { border-color: color-mix(in srgb, #40598d 36%, var(--line)); background: color-mix(in srgb, #40598d 9%, var(--panel)); color: color-mix(in srgb, #40598d 82%, var(--text)); }
.button.r2-code-button:hover { background: color-mix(in srgb, #40598d 15%, var(--panel)); }
.r2-cron-panel { margin-top: 18px; overflow: hidden; }
.r2-cron-head { padding: 18px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(105deg, color-mix(in srgb, #25a56a 6%, var(--panel)), var(--panel)); }
.r2-cron-head > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, #25a56a 11%, var(--panel)); color: #218354; font-size: 19px; font-weight: 900; }
.r2-cron-head h2, .r2-cron-head p { margin: 0; }
.r2-cron-head h2 { font-size: 14px; }
.r2-cron-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.r2-cron-command { margin: 18px 20px 0; padding: 8px 8px 8px 13px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #111827; }
.r2-cron-command code { min-width: 0; flex: 1; overflow-x: auto; color: #d6e1f5; font-size: 10px; line-height: 1.5; white-space: nowrap; scrollbar-width: thin; }
.r2-cron-command .button { flex: 0 0 auto; border-color: #3b4659; background: #202b3d; color: #e7edf8; }
.r2-cron-steps { margin: 0; padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; }
.r2-cron-steps li { min-width: 0; padding: 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.r2-cron-steps li > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--panel)); color: var(--primary); font-size: 9px; font-weight: 900; }
.r2-cron-steps p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

/* Database restore */
.restore-console {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
    border-color: color-mix(in srgb, #dc4c5a 18%, var(--line));
    box-shadow: 0 18px 46px rgba(20, 32, 62, .08);
}
.restore-console::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e05260, #f08c65 62%, #e8b34a);
    content: "";
}
.restore-console-head {
    min-height: 82px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(110deg, color-mix(in srgb, #dc4c5a 6%, var(--panel)), var(--panel) 56%);
}
.restore-console-title { min-width: 0; display: flex; align-items: center; gap: 14px; }
.restore-console-title > div { min-width: 0; }
.restore-console-title h2, .restore-console-title p { margin: 0; }
.restore-console-title h2 { font-size: 16px; letter-spacing: -.2px; }
.restore-console-title p { max-width: 780px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.restore-console-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, #dc4c5a 24%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, #dc4c5a 10%, var(--panel));
    color: #cf4050;
    font-size: 21px;
    font-weight: 900;
}
.restore-runtime {
    flex: 0 0 auto;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.restore-runtime i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent); }
.restore-runtime.is-ready { border-color: color-mix(in srgb, #25a56a 26%, var(--line)); background: color-mix(in srgb, #25a56a 7%, var(--panel)); color: #218354; }
.restore-runtime.needs-attention { border-color: color-mix(in srgb, #d98b13 28%, var(--line)); background: color-mix(in srgb, #d98b13 8%, var(--panel)); color: #b56e09; }
.restore-form { display: block; }
.restore-form-body { padding: 22px; display: grid; gap: 16px; }
.restore-step {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--soft) 62%, var(--panel));
}
.restore-step-head { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.restore-step-head > span {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 11%, var(--panel));
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}
.restore-step-head div { min-width: 0; }
.restore-step-head strong, .restore-step-head small { display: block; }
.restore-step-head strong { font-size: 12px; }
.restore-step-head small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.restore-source-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.restore-source-card {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.restore-source-card:focus-within, .restore-source-card.is-selected {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    background: color-mix(in srgb, var(--primary) 4%, var(--panel));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}
.restore-source-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, var(--panel));
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}
.restore-source-icon.upload { background: color-mix(in srgb, #2aa56d 10%, var(--panel)); color: #23845a; }
.restore-source-divider { display: grid; place-items: center; color: color-mix(in srgb, var(--muted) 62%, transparent); font-size: 15px; }
.restore-source-card .field { min-width: 0; }
.restore-source-card .field label { margin-bottom: 7px; }
.restore-source-card .input { min-width: 0; height: 42px; }
.restore-file-input { padding: 5px 7px; color: var(--muted); }
.restore-file-input::file-selector-button {
    height: 30px;
    margin-right: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: var(--soft);
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.restore-key-step { background: color-mix(in srgb, var(--primary) 3%, var(--panel)); }
.restore-key-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.restore-key-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 9px 20px color-mix(in srgb, var(--primary) 25%, transparent);
    font-size: 17px;
    font-weight: 900;
}
.restore-key-control {
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    background: var(--field);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.restore-key-control:focus-within { border-color: #718df0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.restore-key-control .input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.restore-key-toggle {
    min-width: 58px;
    height: 32px;
    margin-right: 4px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.restore-key-toggle:hover { background: color-mix(in srgb, var(--primary) 9%, var(--panel)); }
.restore-confirmation {
    position: relative;
    min-width: 0;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid color-mix(in srgb, #dc4c5a 24%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, #dc4c5a 5%, var(--panel));
    cursor: pointer;
}
.restore-confirmation > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.restore-check {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, #dc4c5a 42%, var(--line));
    border-radius: 7px;
    background: var(--panel);
    color: #fff;
    transition: .16s ease;
}
.restore-confirmation > input:checked + .restore-check { border-color: #d84655; background: #d84655; box-shadow: 0 0 0 3px color-mix(in srgb, #dc4c5a 13%, transparent); }
.restore-confirmation > input:checked + .restore-check::after { content: "✓"; font-size: 12px; font-weight: 900; }
.restore-confirmation > input:focus-visible + .restore-check { outline: 2px solid var(--primary); outline-offset: 2px; }
.restore-confirmation strong, .restore-confirmation small { display: block; }
.restore-confirmation strong { color: color-mix(in srgb, #c83b49 82%, var(--text)); font-size: 11px; }
.restore-confirmation small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.restore-fileinfo-note { padding: 12px 13px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid color-mix(in srgb, #d98b13 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, #d98b13 7%, var(--panel)); color: #a96709; font-size: 10px; line-height: 1.5; }
.restore-fileinfo-note > span { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #d98b13; color: #fff; font-weight: 900; }
.restore-actions {
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    background: var(--table-head);
}
.restore-safety-note { min-width: 0; display: flex; align-items: center; gap: 10px; }
.restore-safety-note > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, #25a56a 10%, var(--panel)); color: #218354; font-size: 11px; font-weight: 900; }
.restore-safety-note strong, .restore-safety-note small { display: block; }
.restore-safety-note strong { font-size: 10px; }
.restore-safety-note small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.button.restore-submit {
    min-height: 42px;
    padding: 0 18px;
    border-color: transparent;
    background: linear-gradient(135deg, #dd4a59, #c73545);
    color: #fff;
    box-shadow: 0 9px 20px rgba(199, 53, 69, .2);
}
.button.restore-submit:hover { background: linear-gradient(135deg, #d13d4c, #b82d3d); }
.button.restore-submit > span { font-size: 15px; }

@media (max-width: 920px) {
    .restore-source-grid { grid-template-columns: 1fr; gap: 9px; }
    .restore-source-divider { height: 18px; transform: rotate(90deg); }
}

@media (max-width: 760px) {
    .restore-console-head { padding: 17px 15px; align-items: flex-start; flex-direction: column; gap: 12px; }
    .restore-console-title { align-items: flex-start; }
    .restore-console-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 18px; }
    .restore-runtime { margin-left: 53px; }
    .restore-form-body { padding: 13px; gap: 12px; }
    .restore-step { padding: 13px; }
    .restore-source-card { padding: 12px; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
    .restore-source-icon { width: 32px; height: 32px; }
    .restore-key-row { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
    .restore-key-icon { width: 34px; height: 34px; border-radius: 10px; }
    .restore-confirmation { padding: 13px; }
    .restore-actions { padding: 13px; align-items: stretch; flex-direction: column; }
    .restore-actions .restore-submit { width: 100%; }
}

@media (max-width: 420px) {
    .restore-console-title p { font-size: 10px; }
    .restore-runtime { margin-left: 0; }
    .restore-key-row { grid-template-columns: 1fr; }
    .restore-key-icon { display: none; }
    .restore-key-control { align-items: stretch; flex-direction: column; padding: 3px; }
    .restore-key-control .input { min-height: 40px; }
    .restore-key-toggle { width: 100%; margin: 0; }
}

/* Support tickets */
.ticket-metrics { margin: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ticket-metrics > div { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.ticket-metrics span { color: var(--muted); font-size: 10px; font-weight: 700; }
.ticket-metrics strong { font-size: 20px; }
.ticket-list-panel { overflow: hidden; }
.ticket-list-head form, .ticket-list-head .select { min-width: 190px; }
.ticket-list { display: grid; }
.ticket-row { min-width: 0; padding: 13px 16px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ticket-row:hover { background: var(--row-hover); }
.ticket-priority { width: 7px; height: 32px; border-radius: 8px; background: #7d899b; }
.ticket-priority.priority-high, .ticket-priority-label.priority-high { background: color-mix(in srgb, #e68423 13%, var(--panel)); color: #b9650e; }
.ticket-priority.priority-urgent, .ticket-priority-label.priority-urgent { background: color-mix(in srgb, #df4655 13%, var(--panel)); color: #c43040; }
.ticket-priority.priority-normal { background: var(--primary); }
.ticket-priority.priority-low { background: #7d899b; }
.ticket-main, .ticket-main > span, .ticket-main small, .ticket-side { min-width: 0; display: flex; }
.ticket-main { flex-direction: column; gap: 5px; }
.ticket-main > span { align-items: baseline; gap: 9px; }
.ticket-main code { flex: 0 0 auto; font-size: 10px; }
.ticket-main b { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-main small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-side { align-items: flex-end; flex-direction: column; gap: 5px; }
.ticket-side small { color: var(--muted); font-size: 9px; }
.ticket-status { width: fit-content; padding: 4px 8px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.ticket-status.status-open { background: color-mix(in srgb, #4e6cef 11%, var(--panel)); color: var(--primary); }
.ticket-status.status-in_progress { background: color-mix(in srgb, #d98b13 12%, var(--panel)); color: #b76c03; }
.ticket-status.status-waiting_customer { background: color-mix(in srgb, #8c59d7 11%, var(--panel)); color: #7a42c4; }
.ticket-status.status-resolved { background: color-mix(in srgb, #24a466 11%, var(--panel)); color: #218251; }
.ticket-status.status-closed { background: color-mix(in srgb, #687487 12%, var(--panel)); color: var(--muted); }
.ticket-empty { padding: 42px 18px; display: grid; justify-items: center; text-align: center; }
.ticket-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, #26a269 10%, var(--panel)); color: #25815a; font-weight: 900; }
.ticket-empty strong { margin-top: 12px; font-size: 13px; }
.ticket-empty p { max-width: 520px; margin: 5px 0 14px; color: var(--muted); font-size: 10px; }
.ticket-create-card { max-width: 860px; margin: 0 auto; overflow: hidden; }
.ticket-form-heading { padding: 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 6%, var(--panel)), var(--panel)); }
.ticket-form-heading h2, .ticket-form-heading p { margin: 0; }
.ticket-form-heading h2 { font-size: 15px; }
.ticket-form-heading p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ticket-customer-box { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.ticket-customer-box strong { font-size: 12px; }
.ticket-customer-box span { color: var(--muted); font-size: 10px; }
.ticket-message-input { min-height: 180px; resize: vertical; }
.ticket-title-code { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ticket-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 15px; align-items: start; }
.ticket-conversation { min-width: 0; overflow: hidden; }
.ticket-messages { padding: 18px; display: grid; gap: 16px; }
.ticket-message { display: flex; align-items: flex-start; gap: 10px; }
.ticket-message-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 900; }
.ticket-message.from-admin .ticket-message-avatar { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; }
.ticket-message-body { min-width: 0; max-width: min(760px, calc(100% - 44px)); padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px 13px 13px; background: var(--soft); }
.ticket-message.from-admin .ticket-message-body { background: color-mix(in srgb, var(--primary) 6%, var(--panel)); border-color: color-mix(in srgb, var(--primary) 20%, var(--line)); }
.ticket-message-body > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-message-body strong { font-size: 11px; }
.ticket-message-body span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.ticket-message-body p { margin: 8px 0 0; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.ticket-reply-form { padding: 16px 18px; border-top: 1px solid var(--line); background: var(--table-head); }
.ticket-reply-form > label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.ticket-reply-form textarea { min-height: 120px; resize: vertical; }
.ticket-reply-form > div { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-reply-form small { color: var(--muted); font-size: 9px; }
.ticket-closed-note { margin: 0 18px 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 10px; text-align: center; }
.ticket-sidebar { display: grid; gap: 13px; }
.ticket-meta-card, .ticket-status-card { padding: 16px; box-shadow: none; }
.ticket-meta-card h3, .ticket-status-card h3 { margin: 0 0 13px; font-size: 13px; }
.ticket-meta-card dl { margin: 0; display: grid; gap: 11px; }
.ticket-meta-card dl > div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ticket-meta-card dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.ticket-meta-card dt { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }
.ticket-meta-card dd { margin: 0; font-size: 11px; font-weight: 700; }
.ticket-meta-card dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; overflow-wrap: anywhere; }
.ticket-priority-label { padding: 4px 7px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 9px; }
.ticket-status-card label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.ticket-status-card .select { margin-bottom: 10px; }

/* Classroom management */
.classroom-head { padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: 18px; background: radial-gradient(circle at 90% 0, color-mix(in srgb, var(--primary) 14%, transparent), transparent 36%), linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--panel)), var(--panel)); }
.classroom-head .eyebrow { color: var(--primary); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.classroom-flow { margin: 16px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.classroom-flow a { min-width: 0; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: inherit; text-decoration: none; transition: .18s ease; }
.classroom-flow a:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--line)); transform: translateY(-1px); }
.classroom-flow b { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--panel)); color: var(--primary); font-size: 9px; }
.classroom-flow span { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.classroom-admin-filter {
    margin-bottom: 15px;
    padding: 13px;
    display: grid;
    grid-template-columns: 42px minmax(220px, .72fr) minmax(280px, 1fr) auto;
    align-items: end;
    gap: 11px;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--primary) 16%, var(--line));
    border-radius: 15px;
    background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--primary) 10%, transparent), transparent 28%), linear-gradient(105deg, color-mix(in srgb, var(--primary) 4%, var(--panel)), var(--panel));
    box-shadow: 0 11px 28px color-mix(in srgb, #0b1833 6%, transparent);
}
.classroom-admin-filter .field { min-width: 0; }
.classroom-admin-filter .field label,
.classroom-report-filter .field label { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .02em; }
.classroom-admin-filter .input,
.classroom-report-filter .input { height: 42px; border-radius: 10px; background: var(--panel); }
.classroom-filter-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 9%, var(--panel));
    color: var(--primary);
}
.classroom-filter-icon svg { width: 20px; height: 20px; }
.classroom-filter-icon.report { color: #16805f; border-color: color-mix(in srgb, #1a9b72 24%, var(--line)); background: color-mix(in srgb, #1a9b72 9%, var(--panel)); }
.classroom-admin-filter__submit { min-width: 82px; height: 42px; border-radius: 10px; }
.classroom-account-filter {
    margin-bottom: 16px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    border-radius: 14px;
    background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 4%, var(--panel)), var(--panel));
    box-shadow: 0 10px 26px color-mix(in srgb, #0b1833 5%, transparent);
}
.classroom-account-filter .field { min-width: 0; }
.classroom-account-filter .field label { margin-bottom: 6px; font-size: 9px; font-weight: 850; }
.classroom-account-filter .input { height: 38px; border-radius: 9px; background: var(--panel); }
.classroom-account-filter__tenant { flex: 0 1 280px; }
.classroom-account-filter__search { flex: 1 1 440px; }
.classroom-account-filter__size { flex: 0 0 92px; }
.classroom-account-filter__submit { min-width: 82px; border-radius: 9px; }
.classroom-search-input { position: relative; }
.classroom-search-input > span {
    width: 34px;
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 17px;
    pointer-events: none;
}
.classroom-search-input .input { padding-left: 34px; }
.classroom-search-input:focus-within > span { color: var(--primary); }
.pagination-wrap { overflow: hidden; border-top: 1px solid var(--line); }
.pagination-wrap .pagination { border-top: 0; }
.pagination-modern {
    min-height: 70px;
    padding: 13px 16px;
    gap: 18px;
    background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 3%, var(--panel)), var(--panel));
}
.pagination-modern .pagination-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}
.pagination-summary-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 8%, var(--panel));
    color: var(--primary);
}
.pagination-summary-icon svg { width: 17px; height: 17px; }
.pagination-summary strong { color: var(--text); font-size: 12px; }
.pagination-summary i { margin: 0 2px; color: var(--muted); font-style: normal; }
.pagination-modern .pagination-controls { display: flex; align-items: center; gap: 7px; }
.pagination-modern .pagination-action {
    min-height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 3px 10px color-mix(in srgb, #0b1833 5%, transparent);
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.pagination-modern a.pagination-action:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
    background: color-mix(in srgb, var(--primary) 7%, var(--panel));
    color: var(--primary);
    transform: translateY(-1px);
}
.pagination-modern .pagination-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 20%, transparent); outline-offset: 2px; }
.pagination-modern .pagination-action:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.pagination-action svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pagination-page-status {
    min-height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 6%, var(--panel));
    white-space: nowrap;
}
.pagination-page-status small { color: var(--muted); font-size: 9px; font-weight: 800; }
.pagination-page-status strong { color: var(--primary); font-size: 13px; }
.pagination-page-status i, .pagination-page-status b { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.classroom-kpis {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}
.classroom-kpis .kpi-card {
    min-width: 0;
    min-height: 86px;
    padding: 15px 17px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 10px 25px color-mix(in srgb, #0b1833 6%, transparent);
}
.classroom-kpis .kpi-card small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; }
.classroom-kpis .kpi-card strong { font-size: 23px; line-height: 1.1; letter-spacing: -.03em; }
.classroom-kpis .kpi-card::after { content: ''; width: 48px; height: 48px; position: absolute; right: -18px; bottom: -20px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 8%, transparent); }
.table-sub { margin-top: 3px; display: block; color: var(--muted); font-size: 9px; }
.member-pills { display: flex; gap: 5px; }
.member-pills i { padding: 4px 7px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.status.active, .status.synced { background: color-mix(in srgb, #28a767 12%, var(--panel)); color: #238452; }
.status.archived { background: color-mix(in srgb, #778196 13%, var(--panel)); color: var(--muted); }
.status.provisioned, .status.partial { background: color-mix(in srgb, #d59019 13%, var(--panel)); color: #a66602; }
.bulk-toolbar { padding: 10px 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); background: var(--table-head); }
.bulk-toolbar .input { width: auto; min-width: 190px; }
.classroom-create-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; }
.classroom-lines { min-height: 310px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.75; }
.classroom-email-picker { max-height: 610px; position: sticky; top: 78px; overflow: hidden; }
.email-chip-list { max-height: 530px; padding: 10px; display: grid; gap: 6px; overflow: auto; }
.email-chip { width: 100%; padding: 10px 11px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: inherit; text-align: left; cursor: pointer; }
.email-chip:hover, .email-chip.copied { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--panel)); }
.email-chip b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.email-chip span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.course-state-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.course-overview { margin: 0 0 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.course-overview > div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.course-overview > div:last-child { border-right: 0; }
.course-overview small, .course-overview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-overview small { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.course-overview strong { font-size: 12px; }
.classroom-member-forms { align-items: stretch; }
.classroom-invitation-note { margin-bottom: 16px; background: color-mix(in srgb, #4e6cef 7%, var(--panel)); border-color: color-mix(in srgb, #4e6cef 22%, var(--line)); color: var(--text); }
.classroom-artifact-compact { margin-bottom: 16px; overflow: hidden; border-color: color-mix(in srgb, #4e6cef 24%, var(--line)); }
.artifact-section-head { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(105deg, color-mix(in srgb, #4e6cef 8%, var(--panel)), var(--panel)); }
.artifact-section-head h2 { margin: 0 0 4px; font-size: 14px; }
.artifact-section-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.artifact-sync-error { margin: 0 14px 12px; }
.session-artifact-table th,.session-artifact-table td { padding: 9px 11px; vertical-align: middle; white-space: nowrap; }
.session-artifact-table td:first-child strong { font-size: 10px; }
.session-artifact-table th:last-child,.session-artifact-table td:last-child { width: 1%; padding-left: 5px; }
.session-artifact-table td:last-child form { display: inline-flex; }
.session-folder-cell { display: flex; align-items: center; gap: 9px; }
.session-folder-cell > div { display: grid; gap: 2px; }
.session-folder-cell small { color: var(--muted); font-size: 8px; }
.session-folder-icon { width: 30px; height: 26px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, #e3a314 35%, var(--line)); border-radius: 7px; background: color-mix(in srgb, #e3a314 12%, var(--panel)); color: #d18d00; font-size: 14px; }
.session-file-actions { display: flex; align-items: center; gap: 5px; }
.session-file-actions .button { min-height: 29px; padding: 5px 8px; white-space: nowrap; }
.session-file-actions .icon-only { width: 29px; padding: 5px; }
.session-file-actions .muted { color: var(--muted); }
.classroom-media-dialog { width: min(920px,calc(100vw - 28px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 30px 90px rgba(7,16,35,.35); }
.classroom-media-dialog::backdrop { background: rgba(7,13,26,.72); backdrop-filter: blur(4px); }
.media-dialog-head { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.media-dialog-head strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-dialog-head button { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 9px; background: var(--soft); color: var(--text); font-size: 20px; cursor: pointer; }
.classroom-media-dialog video { width: 100%; max-height: 72vh; display: block; background: #080d18; }
.classroom-media-dialog > p { margin: 0; padding: 9px 15px; color: var(--muted); font-size: 8px; }
.personal-gmail-badge { width: max-content; margin-top: 4px; padding: 2px 6px; display: block; border: 1px solid color-mix(in srgb, #4e6cef 25%, var(--line)); border-radius: 999px; background: color-mix(in srgb, #4e6cef 8%, var(--panel)); color: #4e6cef; font-size: 7px; font-weight: 800; }
.member-invite-error { max-width: 340px; margin-top: 6px; display: block; color: #c94350; font-size: 8px; line-height: 1.45; }
.classroom-member-actions { display: flex; justify-content: flex-end; gap: 6px; }
.classroom-member-actions form { display: inline-flex; }
.classroom-member-forms .panel { padding-bottom: 15px; }
.classroom-member-forms > form > .field, .classroom-member-forms > form > .button { margin-left: 15px; margin-right: 15px; }
.classroom-member-forms > form > .button { width: calc(100% - 30px); justify-content: center; }
.timeline-list { padding: 15px 18px; display: grid; gap: 13px; }
.timeline-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; }
.timeline-item > span { width: 8px; height: 8px; margin-top: 4px; border: 2px solid color-mix(in srgb, var(--primary) 40%, var(--panel)); border-radius: 50%; background: var(--primary); }
.timeline-item strong { font-size: 10px; }
.timeline-item p { margin: 2px 0; font-size: 10px; }
.timeline-item small { color: var(--muted); font-size: 8px; }
.danger-zone { margin-top: 18px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid color-mix(in srgb, #dc4656 28%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #dc4656 5%, var(--panel)); }
.danger-zone strong { font-size: 11px; }
.danger-zone p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.classroom-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.classroom-report-head {
    padding: 22px 24px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 18px;
    background: radial-gradient(circle at 92% 0, color-mix(in srgb, var(--primary) 14%, transparent), transparent 34%), linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, var(--panel)), var(--panel));
    box-shadow: 0 14px 34px color-mix(in srgb, #0b1833 7%, transparent);
}
.classroom-report-head .eyebrow { display: block; margin-bottom: 7px; color: var(--primary); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.classroom-report-filter {
    margin-bottom: 14px;
    padding: 13px;
    display: grid;
    grid-template-columns: 42px minmax(220px, 1fr) minmax(260px, .82fr);
    align-items: end;
    gap: 12px;
    border-color: color-mix(in srgb, #1a9b72 18%, var(--line));
    border-radius: 15px;
    background: linear-gradient(105deg, color-mix(in srgb, #1a9b72 5%, var(--panel)), var(--panel));
    box-shadow: 0 11px 28px color-mix(in srgb, #0b1833 5%, transparent);
}
.classroom-report-filter__copy { min-width: 0; align-self: center; }
.classroom-report-filter__copy strong,
.classroom-report-filter__copy small { display: block; }
.classroom-report-filter__copy strong { margin-bottom: 4px; font-size: 11px; }
.classroom-report-filter__copy small { max-width: 570px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.classroom-report-filter__select { min-width: 0; }
.classroom-report-summary {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.classroom-report-summary > div {
    min-width: 0;
    min-height: 82px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 10px 25px color-mix(in srgb, #0b1833 6%, transparent);
}
.classroom-report-summary > div > span {
    width: 38px;
    height: 38px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--panel));
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
}
.classroom-report-summary small { align-self: end; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.classroom-report-summary strong { align-self: start; font-size: 19px; }
.classroom-report-nav {
    margin-bottom: 14px;
    padding: 7px;
    position: sticky;
    top: 68px;
    z-index: 9;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
    border-radius: 13px;
    background: color-mix(in srgb, var(--panel) 89%, transparent);
    box-shadow: 0 9px 25px color-mix(in srgb, #0b1833 6%, transparent);
    backdrop-filter: blur(12px);
}
.classroom-report-nav a { padding: 8px 11px; flex: 0 0 auto; border-radius: 8px; color: var(--muted); font-size: 9px; font-weight: 850; white-space: nowrap; }
.classroom-report-nav a:hover { background: color-mix(in srgb, var(--primary) 9%, var(--panel)); color: var(--primary); }
.classroom-report-sections { display: grid; gap: 16px; }
.classroom-report-sections > .panel + .panel { margin-top: 0; }
.classroom-report-panel { overflow: hidden; scroll-margin-top: 120px; border-radius: 17px; box-shadow: 0 13px 32px color-mix(in srgb, #0b1833 6%, transparent); }
.classroom-report-panel > .panel-head { background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 4%, var(--panel)), var(--panel)); }
.report-count-pill { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--primary) 7%, var(--panel)); color: var(--primary); font-size: 8px; font-weight: 900; white-space: nowrap; }
.classroom-report-table { min-width: 920px; }
.classroom-session-report-table { min-width: 1180px; }
.classroom-report-table tbody tr { transition: background .18s ease; }
.classroom-report-table td > a { color: inherit; }
.account-role-pills,
.session-artifact-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.account-role-pills i,
.session-artifact-pills i { padding: 4px 6px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.account-role-pills i:first-child { background: color-mix(in srgb, #4e6cef 9%, var(--panel)); color: color-mix(in srgb, #4e6cef 86%, var(--text)); }
.account-role-pills i:last-child { background: color-mix(in srgb, #1a9b72 9%, var(--panel)); color: #16805f; }
.session-artifact-pills i:nth-child(1) { color: #16805f; }
.session-artifact-pills i:nth-child(2) { color: color-mix(in srgb, #4e6cef 86%, var(--text)); }
.session-artifact-pills i:nth-child(3) { color: color-mix(in srgb, #8b5bd7 86%, var(--text)); }
.classroom-hierarchy-report {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 15px 38px color-mix(in srgb, #0b1833 7%, transparent);
}
.hierarchy-report-head {
    background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 5%, var(--panel)), var(--panel));
}
.classroom-hierarchy-list { padding: 12px; display: grid; gap: 9px; }
.owner-account-level,
.course-report-level {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}
.owner-account-level > summary,
.course-report-level > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.owner-account-level > summary::-webkit-details-marker,
.course-report-level > summary::-webkit-details-marker { display: none; }
.owner-account-level > summary {
    min-height: 68px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 20px 42px minmax(210px, 1fr) max-content 62px 62px;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--soft) 46%, var(--panel));
    transition: background .18s ease;
}
.owner-account-level[open] > summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--primary) 5%, var(--panel)); }
.owner-account-level > summary:hover,
.course-report-level > summary:hover { background: color-mix(in srgb, var(--primary) 7%, var(--panel)); }
.hierarchy-caret {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 20px;
    transition: transform .18s ease;
}
details[open] > summary > .hierarchy-caret { transform: rotate(90deg); }
.owner-account-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 20%, transparent);
    font-size: 15px;
    font-weight: 900;
}
.owner-account-identity { min-width: 0; display: grid; gap: 3px; }
.owner-account-identity strong,
.owner-account-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-account-identity strong { font-size: 11px; }
.owner-account-identity small { color: var(--muted); font-size: 8px; }
.owner-account-role {
    padding: 6px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, #1a9b72 10%, var(--panel));
    color: #16805f;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}
.owner-account-total,
.course-report-stat { display: grid; justify-items: center; gap: 1px; }
.owner-account-total b,
.course-report-stat b { font-size: 13px; }
.owner-account-total small,
.course-report-stat small { color: var(--muted); font-size: 7px; white-space: nowrap; }
.owner-account-courses { padding: 10px; display: grid; gap: 8px; background: color-mix(in srgb, var(--soft) 42%, var(--panel)); }
.course-report-level { border-radius: 12px; }
.course-report-level > summary {
    min-height: 61px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: 20px 34px minmax(150px, .8fr) minmax(260px, 1.35fr) 58px 58px 58px;
    align-items: center;
    gap: 9px;
}
.course-report-level[open] > summary { border-bottom: 1px solid var(--line); }
.course-report-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 9%, var(--panel));
    color: var(--primary);
    font-size: 14px;
}
.course-report-title { min-width: 0; display: grid; gap: 2px; }
.course-report-title strong,
.course-report-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-report-title strong { font-size: 10px; }
.course-report-title small { color: var(--muted); font-size: 8px; }
.course-report-ownership {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 2px 1px;
}
.course-report-ownership i {
    min-width: 0;
    max-width: 220px;
    padding: 5px 8px;
    display: grid;
    gap: 1px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, #8b5bd7 18%, var(--line));
    border-radius: 9px;
    background: color-mix(in srgb, #8b5bd7 7%, var(--panel));
    font-style: normal;
}
.course-report-ownership i.owner {
    border-color: color-mix(in srgb, #1a9b72 22%, var(--line));
    background: color-mix(in srgb, #1a9b72 8%, var(--panel));
}
.course-report-ownership small { color: var(--muted); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.course-report-ownership strong { overflow: hidden; color: var(--text); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.course-session-report { background: var(--panel); }
.course-session-meta {
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--soft) 55%, var(--panel));
    color: var(--muted);
    font-size: 8px;
}
.course-session-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-session-meta .button { margin-left: auto; }
.hierarchy-session-table { min-width: 980px; }
.attendance-count-badge {
    width: max-content;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: color-mix(in srgb, #1a9b72 10%, var(--panel));
    color: #16805f;
    font-size: 9px;
    font-weight: 900;
}
.hierarchy-empty { margin: 0; border: 1px dashed var(--line); border-radius: 12px; }
.workspace-scope-item { background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 4%, var(--panel)), var(--panel)); }
.workspace-scope-copy { margin: 8px 0; display: flex; align-items: stretch; gap: 8px; }
.workspace-scope-copy code { min-width: 0; max-height: 116px; padding: 11px 12px; flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--primary); font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.workspace-scope-copy .button { flex: 0 0 auto; }
.workspace-scope-item > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 1180px) {
    .language-row { grid-template-columns: minmax(170px, .55fr) minmax(240px, 1fr); }
    .language-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .appearance-grid { grid-template-columns: 1fr; }
    .appearance-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-card p { min-height: 0; }
    .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-layout, .ticket-detail-layout { grid-template-columns: 1fr; }
    .account-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ticket-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .course-overview > div:nth-child(3) { border-right: 0; }
    .course-overview > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .classroom-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .language-page-head .head-actions form { flex: 1 1 auto; }
    .language-page-head .head-actions form .button { width: 100%; }
    .language-topline { align-items: flex-start; }
    .language-metrics { padding: 9px 10px; }
    .language-metrics > span { min-width: 105px; }
    .language-filter { padding: 10px; }
    .language-search { flex-basis: 100%; }
    .language-filter .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .language-filter > .button { flex: 1 1 auto; }
    .language-editor-head { align-items: flex-start; flex-direction: column; }
    .language-row { padding: 13px 12px; grid-template-columns: 1fr; gap: 10px; }
    .language-actions { grid-column: auto; justify-content: flex-start; }
    .language-save { justify-content: space-between; }
    .appearance-side { grid-template-columns: 1fr; }
    .section-title { flex-direction: column; }
    .data-protection-grid { grid-template-columns: 1fr; }
    .support-grid, .support-guide ol, .export-columns { grid-template-columns: 1fr; }
    .export-columns strong { grid-column: auto; }
    .support-card { padding: 17px; }
    .account-hero { padding: 17px; align-items: flex-start; flex-wrap: wrap; }
    .account-avatar { width: 54px; height: 54px; border-radius: 17px; }
    .account-hero-badges { width: 100%; justify-content: flex-start; }
    .account-sidebar, .ticket-sidebar, .ticket-metrics { grid-template-columns: 1fr; }
    .account-card-head, .account-card-body { padding-left: 15px; padding-right: 15px; }
    .account-card-footer, .mfa-danger-zone { align-items: stretch; flex-direction: column; }
    .account-card-footer .button, .mfa-danger-zone .button { width: 100%; justify-content: center; }
    .email-verify-card { padding: 22px 15px; }
    .email-change-map { grid-template-columns: 1fr; text-align: center; }
    .email-change-map > b { transform: rotate(90deg); }
    .email-verify-actions { grid-template-columns: 1fr; }
    .r2-status-grid,.r2-layout { grid-template-columns:1fr }
    .r2-section-heading { display:grid;gap:14px }
    .r2-toggle { white-space:normal }
    .r2-cron-head { padding: 15px; align-items: flex-start; }
    .r2-cron-command { margin: 14px 13px 0; align-items: stretch; flex-direction: column; }
    .r2-cron-command .button { width: 100%; }
    .r2-cron-steps { padding: 13px; grid-template-columns: 1fr; }
    .ticket-row { padding: 12px; grid-template-columns: 7px minmax(0, 1fr); }
    .ticket-side { grid-column: 2; align-items: flex-start; flex-direction: row; justify-content: space-between; }
    .ticket-list-head form, .ticket-list-head .select { width: 100%; min-width: 0; }
    .ticket-message-body > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .ticket-message-body span { white-space: normal; }
    .ticket-reply-form > div { align-items: stretch; flex-direction: column; }
    .ticket-reply-form .button { width: 100%; justify-content: center; }
    .classroom-head { padding: 16px; }
    .classroom-flow { grid-template-columns: repeat(5, minmax(62px, 1fr)); overflow-x: auto; }
    .classroom-flow a { padding: 9px; flex-direction: column; text-align: center; }
    .classroom-flow span { width: 100%; font-size: 8px; }
    .classroom-account-filter {
        padding: 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 76px auto;
        align-items: end;
        gap: 8px;
    }
    .classroom-account-filter__tenant { grid-column: 1 / -1; }
    .classroom-account-filter__search { grid-column: 1; }
    .classroom-account-filter__size { grid-column: 2; }
    .classroom-account-filter__submit { min-width: 68px; grid-column: 3; padding-inline: 11px; }
    .classroom-admin-filter {
        padding: 10px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 9px;
    }
    .classroom-admin-filter__tenant { grid-column: 2 / 4; }
    .classroom-admin-filter__search { grid-column: 1 / 3; }
    .classroom-admin-filter__submit { min-width: 70px; grid-column: 3; padding-inline: 11px; }
    .classroom-report-filter { padding: 11px; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; }
    .classroom-report-filter__copy { grid-column: 2; }
    .classroom-report-filter__select { grid-column: 1 / -1; }
    .workspace-scope-copy { align-items: stretch; flex-direction: column; }
    .workspace-scope-copy .button { width: 100%; }
    .pagination-modern { min-height: 0; padding: 12px; align-items: stretch; flex-direction: column; gap: 11px; }
    .pagination-modern .pagination-summary { width: 100%; }
    .pagination-modern .pagination-controls { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .pagination-modern .pagination-action { width: 100%; padding-inline: 9px; }
    .pagination-modern .pagination-action span { display: none; }
    .pagination-modern .pagination-action svg { width: 18px; height: 18px; }
    .bulk-toolbar { align-items: stretch; flex-direction: column; }
    .bulk-toolbar .input, .bulk-toolbar .button { width: 100%; }
    .classroom-create-grid { grid-template-columns: 1fr; }
    .classroom-email-picker { max-height: none; position: static; }
    .email-chip-list { max-height: 320px; }
    .course-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-overview > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .course-overview > div:nth-child(2n) { border-right: 0; }
    .course-overview > div:nth-last-child(-n+2) { border-bottom: 0; }
    .classroom-member-forms { grid-template-columns: 1fr; }
    .artifact-section-head { align-items: flex-start; flex-direction: column; }
    .classroom-media-dialog { width: calc(100vw - 16px); }
    .classroom-media-dialog video { max-height: 64vh; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .danger-zone .button { width: 100%; justify-content: center; }
}

/* Classroom course detail — modern responsive workspace */
.classroom-course-dashboard {
    display: grid;
    gap: 18px;
    scroll-behavior: smooth;
}
.classroom-course-dashboard > * { scroll-margin-top: 92px; }
.classroom-course-hero {
    min-height: 190px;
    padding: 28px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--primary) 22%, transparent) 0, transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, var(--panel)) 0%, var(--panel) 64%);
    box-shadow: 0 22px 55px color-mix(in srgb, #0b1833 11%, transparent);
}
.classroom-course-hero::before {
    content: '';
    width: 250px;
    height: 250px;
    position: absolute;
    right: -88px;
    bottom: -138px;
    z-index: -1;
    border: 42px solid color-mix(in srgb, var(--primary) 9%, transparent);
    border-radius: 50%;
}
.classroom-course-hero::after {
    content: '';
    width: 130px;
    height: 130px;
    position: absolute;
    right: 210px;
    top: -76px;
    z-index: -1;
    border-radius: 34px;
    background: color-mix(in srgb, var(--primary2) 7%, transparent);
    transform: rotate(24deg);
}
.course-hero-copy { min-width: 0; max-width: 760px; }
.course-hero-copy .course-state-line { margin-bottom: 14px; flex-wrap: wrap; }
.course-hero-copy h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.course-hero-copy > p {
    max-width: 680px;
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}
.course-owner-line {
    width: max-content;
    max-width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, #0b1833 6%, transparent);
}
.course-owner-line > span { color: var(--primary); }
.course-owner-line small { color: var(--muted); font-size: 9px; font-weight: 800; }
.course-owner-line strong { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.course-hero-actions {
    max-width: 390px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.course-hero-actions form { display: inline-flex; }
.course-hero-actions .button { min-height: 38px; border-radius: 11px; backdrop-filter: blur(8px); }
.course-overview {
    margin: -5px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.course-overview > div,
.course-overview > div:nth-child(n) {
    min-width: 0;
    min-height: 76px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    box-shadow: 0 10px 24px color-mix(in srgb, #0b1833 6%, transparent);
}
.course-overview .overview-icon {
    width: 38px;
    height: 38px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--panel));
    color: var(--primary);
    font-size: 17px;
    font-weight: 900;
}
.course-overview small,
.course-overview strong { min-width: 0; margin: 0; }
.course-overview small { align-self: end; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
.course-overview strong { align-self: start; font-size: 13px; }
.classroom-detail-nav {
    padding: 8px;
    position: sticky;
    top: 68px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: 0 10px 28px color-mix(in srgb, #0b1833 7%, transparent);
    backdrop-filter: blur(14px);
    scrollbar-width: thin;
}
.classroom-detail-nav a {
    min-height: 34px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.classroom-detail-nav a:hover,
.classroom-detail-nav a:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, var(--panel));
    color: var(--primary);
    outline: 0;
    transform: translateY(-1px);
}
.classroom-course-dashboard .classroom-invitation-note { margin: 0; border-radius: 13px; }
.classroom-course-dashboard .classroom-artifact-compact {
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 14px 34px color-mix(in srgb, #0b1833 7%, transparent);
}
.classroom-course-dashboard .artifact-section-head {
    padding: 19px 20px;
    align-items: flex-start;
    background:
        radial-gradient(circle at 96% 0, color-mix(in srgb, var(--primary) 12%, transparent), transparent 30%),
        linear-gradient(105deg, color-mix(in srgb, var(--primary) 7%, var(--panel)), var(--panel));
}
.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
}
.classroom-course-dashboard .artifact-section-head h2 { margin-bottom: 5px; font-size: 18px; }
.classroom-course-dashboard .artifact-section-head p { max-width: 680px; font-size: 10px; }
.artifact-head-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.session-count {
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, var(--panel));
    color: var(--primary);
    font-size: 9px;
    font-weight: 900;
}
.session-permission-note {
    margin: 12px 14px 0;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid color-mix(in srgb, #d59019 22%, var(--line));
    border-radius: 11px;
    background: color-mix(in srgb, #d59019 6%, var(--panel));
}
.session-permission-note > span {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, #d59019 17%, var(--panel));
    color: #a66602;
    font-size: 9px;
    font-weight: 900;
}
.session-permission-note p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.classroom-artifact-compact > .table-wrap { padding: 7px 11px 12px; }
.session-artifact-table { border-collapse: separate; border-spacing: 0 7px; }
.session-artifact-table thead th {
    padding-top: 8px;
    padding-bottom: 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .04em;
}
.session-artifact-table tbody td {
    padding: 11px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--soft) 55%, var(--panel));
    transition: border-color .18s ease, background .18s ease;
}
.session-artifact-table tbody td:first-child {
    border-left: 1px solid var(--line);
    border-radius: 12px 0 0 12px;
}
.session-artifact-table tbody td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 12px 12px 0;
}
.session-artifact-table tbody tr:hover td {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
    background: color-mix(in srgb, var(--primary) 4%, var(--panel));
}
.session-folder-icon {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, color-mix(in srgb, #e3a314 18%, var(--panel)), color-mix(in srgb, #e3a314 8%, var(--panel)));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #e3a314 25%, var(--line));
}
.session-folder-cell > div { gap: 3px; }
.session-folder-cell > div > strong { font-size: 10px; }
.session-folder-cell > div > small { font-size: 8px; }
.duration-badge {
    width: max-content;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: color-mix(in srgb, #7c5ce7 9%, var(--panel));
    color: color-mix(in srgb, #7c5ce7 85%, var(--text));
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}
.session-file-actions { flex-wrap: wrap; }
.session-file-actions .file-action { border-color: transparent; }
.session-file-actions .attendance { background: color-mix(in srgb, #1a9b72 10%, var(--panel)); color: #16805f; }
.session-file-actions .video { background: color-mix(in srgb, #4e6cef 12%, var(--panel)); color: color-mix(in srgb, #4e6cef 86%, var(--text)); }
.session-file-actions .transcript { background: color-mix(in srgb, #8b5bd7 10%, var(--panel)); color: color-mix(in srgb, #8b5bd7 86%, var(--text)); }
.session-file-actions .icon-only { border-color: var(--line); background: var(--panel); }
.direct-file-actions { flex-wrap: nowrap; }
.direct-file-actions .file-download-action {
    border-color: var(--line);
    background: var(--panel);
    color: var(--muted);
}
.direct-file-actions .file-download-action:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
    background: color-mix(in srgb, var(--primary) 5%, var(--panel));
    color: var(--primary);
}
.file-empty {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    color: var(--muted);
    font-size: 8px;
    font-style: italic;
}
.classroom-section-title {
    padding: 7px 2px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.classroom-section-title h2 { margin: 0; font-size: 20px; }
.classroom-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modern-member-forms { margin: 0; gap: 14px; }
.modern-member-forms > form {
    overflow: hidden;
    border-radius: 17px;
    box-shadow: 0 12px 30px color-mix(in srgb, #0b1833 6%, transparent);
}
.modern-member-forms .panel-head { background: color-mix(in srgb, var(--primary) 4%, var(--panel)); }
.modern-member-forms textarea { min-height: 142px; border-radius: 11px; }
.modern-member-forms > form > .button { margin-bottom: 15px; min-height: 38px; border-radius: 10px; }
.classroom-list-panel,
.classroom-audit-panel {
    margin-top: 0 !important;
    overflow: hidden;
    border-radius: 17px;
    box-shadow: 0 12px 30px color-mix(in srgb, #0b1833 6%, transparent);
}
.classroom-list-panel .panel-head,
.classroom-audit-panel .panel-head { background: color-mix(in srgb, var(--soft) 55%, var(--panel)); }
.classroom-media-dialog {
    width: min(1080px, calc(100vw - 30px));
    border-radius: 18px;
    box-shadow: 0 34px 110px rgba(3, 10, 24, .46);
}
.classroom-media-dialog .media-dialog-head { min-height: 54px; padding: 12px 16px; background: var(--panel); }
.classroom-media-dialog .media-dialog-head strong { font-size: 13px; }
.classroom-course-dashboard .danger-zone { margin: 0; border-radius: 15px; }
.classroom-course-list-panel {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 34px color-mix(in srgb, #0b1833 7%, transparent);
}
.classroom-course-list-panel > .panel-head {
    background: linear-gradient(105deg, color-mix(in srgb, var(--primary) 5%, var(--panel)), var(--panel));
}
.classroom-course-table tbody tr { transition: background .18s ease; }
.classroom-course-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, var(--panel)); }
.classroom-course-table td:nth-child(2) > a { color: inherit; text-decoration: none; }
.classroom-course-table td:nth-child(2) > a strong { color: var(--text); }
.course-select-cell,
.course-manage-cell { width: 1%; }

/* Classroom course editor */
.classroom-edit-head {
    padding: 22px 24px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0, color-mix(in srgb, var(--primary) 14%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, var(--panel)), var(--panel));
    box-shadow: 0 14px 34px color-mix(in srgb, #0b1833 7%, transparent);
}
.classroom-edit-head .eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
}
.classroom-edit-head h1 { margin-bottom: 4px; }
.classroom-edit-head p { margin: 0; }
.classroom-edit-card {
    max-width: 1220px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 48px color-mix(in srgb, #0b1833 9%, transparent);
}
.classroom-edit-banner {
    min-height: 92px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 33%),
        color-mix(in srgb, var(--primary) 5%, var(--panel));
}
.classroom-edit-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 24%, transparent);
    font-size: 21px;
    font-weight: 900;
}
.classroom-edit-banner > div { min-width: 0; display: grid; gap: 2px; }
.classroom-edit-banner small { color: var(--muted); font-size: 8px; font-weight: 800; }
.classroom-edit-banner strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.classroom-edit-banner div > span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.classroom-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
}
.classroom-edit-main { min-width: 0; padding: 24px; }
.classroom-edit-section-head {
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-bottom: 1px solid var(--line);
}
.classroom-edit-section-head > span {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--primary) 10%, var(--panel));
    color: var(--primary);
    font-size: 14px;
}
.classroom-edit-section-head h2 { margin: 0 0 3px; font-size: 15px; }
.classroom-edit-section-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.classroom-edit-grid { gap: 17px; }
.classroom-edit-grid .field label { margin-bottom: 7px; font-size: 10px; font-weight: 850; }
.classroom-edit-grid .field label em { color: #d94b59; font-style: normal; }
.classroom-edit-grid .input,
.classroom-edit-grid .textarea { width: 100%; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.classroom-edit-grid .input:focus,
.classroom-edit-grid .textarea:focus {
    border-color: color-mix(in srgb, var(--primary) 68%, var(--field-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent);
    outline: 0;
}
.classroom-edit-grid .field-help { margin-top: 7px; display: block; color: var(--muted); font-size: 8px; line-height: 1.5; }
.classroom-edit-description { min-height: 180px; resize: vertical; line-height: 1.65; }
.classroom-edit-aside {
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 13px;
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--soft) 55%, var(--panel));
}
.classroom-edit-tip {
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid color-mix(in srgb, #1a9b72 24%, var(--line));
    border-radius: 13px;
    background: color-mix(in srgb, #1a9b72 7%, var(--panel));
}
.classroom-edit-tip > span {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, #1a9b72 17%, var(--panel));
    color: #16805f;
    font-size: 9px;
    font-weight: 900;
}
.classroom-edit-tip strong { display: block; font-size: 10px; }
.classroom-edit-tip p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.classroom-edit-facts {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
}
.classroom-edit-facts h3 { margin: 0 0 12px; font-size: 11px; }
.classroom-edit-facts dl { margin: 0; display: grid; gap: 10px; }
.classroom-edit-facts dl > div { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.classroom-edit-facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.classroom-edit-facts dt { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; }
.classroom-edit-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 750; }
.classroom-edit-footer {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid var(--line);
}
.classroom-edit-footer .button { min-width: 130px; justify-content: center; }

@media (max-width: 1180px) {
    .course-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .course-overview .overview-wide { grid-column: span 2; }
    .classroom-edit-layout { grid-template-columns: minmax(0, 1fr) 260px; }
    .classroom-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-account-level > summary { grid-template-columns: 20px 42px minmax(170px, 1fr) max-content 55px 55px; }
    .course-report-level > summary { grid-template-columns: 20px 34px minmax(135px, .7fr) minmax(220px, 1fr) 52px 52px 52px; }
}

@media (max-width: 760px) {
    .classroom-course-dashboard { gap: 13px; }
    .classroom-course-hero { min-height: 0; padding: 19px 16px; flex-direction: column; gap: 19px; border-radius: 18px; }
    .classroom-course-hero::before { width: 180px; height: 180px; right: -95px; bottom: -110px; }
    .course-hero-copy h1 { font-size: 25px; }
    .course-hero-copy > p { margin: 9px 0 14px; font-size: 11px; }
    .course-owner-line { width: 100%; border-radius: 11px; }
    .course-hero-actions { width: 100%; max-width: none; justify-content: flex-start; }
    .course-hero-actions form { flex: 1 1 calc(50% - 4px); }
    .course-hero-actions .button { flex: 1 1 calc(50% - 4px); justify-content: center; }
    .course-hero-actions form .button { width: 100%; }
    .course-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .course-overview > div,
    .course-overview > div:nth-child(n) { min-height: 68px; padding: 10px; grid-template-columns: 33px minmax(0, 1fr); column-gap: 8px; border: 1px solid var(--line); border-radius: 13px; }
    .course-overview .overview-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 14px; }
    .course-overview .overview-wide { grid-column: 1 / -1; }
    .classroom-detail-nav { top: 58px; margin-left: -2px; margin-right: -2px; border-radius: 12px; }
    .classroom-detail-nav a { min-height: 32px; padding: 7px 10px; }
    .classroom-course-dashboard .artifact-section-head { padding: 16px; }
    .artifact-head-meta { width: 100%; justify-content: flex-start; }
    .session-permission-note { margin: 10px 10px 0; }
    .classroom-artifact-compact > .table-wrap { padding: 4px 9px 9px; overflow: visible; }
    .session-artifact-table,
    .session-artifact-table tbody,
    .session-artifact-table tr,
    .session-artifact-table td { width: 100%; display: block; }
    .session-artifact-table { border-spacing: 0; }
    .session-artifact-table thead { display: none; }
    .session-artifact-table tbody tr {
        margin: 8px 0 11px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: color-mix(in srgb, var(--soft) 45%, var(--panel));
        box-shadow: 0 8px 20px color-mix(in srgb, #0b1833 5%, transparent);
    }
    .session-artifact-table tbody td,
    .session-artifact-table tbody td:first-child,
    .session-artifact-table tbody td:last-child {
        min-height: 36px;
        padding: 8px 0;
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        border: 0;
        border-bottom: 1px dashed var(--line);
        border-radius: 0;
        background: transparent;
        white-space: normal;
    }
    .session-artifact-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
    }
    .session-artifact-table tbody td:first-child { display: block; padding-top: 1px; }
    .session-artifact-table tbody td:first-child::before { display: none; }
    .session-artifact-table tbody td:last-child { border-bottom: 0; }
    .session-artifact-table tbody tr:hover td { border-color: var(--line); background: transparent; }
    .session-file-actions { justify-content: flex-start; }
    .session-file-actions .file-action { white-space: normal; text-align: left; }
    .duration-badge { max-width: 100%; }
    .classroom-section-title { padding: 7px 3px 0; }
    .classroom-section-title h2 { font-size: 17px; }
    .modern-member-forms { gap: 11px; }
    .classroom-list-panel .table-wrap { overflow-x: auto; }
    .classroom-media-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 14px; }
    .direct-file-actions { flex-wrap: wrap; }
    .classroom-course-list-panel > .panel-head { align-items: stretch; flex-direction: column; }
    .classroom-course-list-panel > .panel-head .button { width: 100%; justify-content: center; }
    .classroom-course-list-panel > form > .table-wrap { padding: 9px; overflow: visible; }
    .classroom-course-table,
    .classroom-course-table tbody,
    .classroom-course-table tr,
    .classroom-course-table td { width: 100%; display: block; }
    .classroom-course-table thead { display: none; }
    .classroom-course-table tbody tr {
        margin-bottom: 10px;
        padding: 12px;
        position: relative;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: color-mix(in srgb, var(--soft) 42%, var(--panel));
        box-shadow: 0 8px 20px color-mix(in srgb, #0b1833 5%, transparent);
    }
    .classroom-course-table tbody td {
        min-height: 35px;
        padding: 8px 0;
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        border: 0;
        border-bottom: 1px dashed var(--line);
        white-space: normal;
    }
    .classroom-course-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 8px;
        font-weight: 900;
    }
    .classroom-course-table .course-select-cell {
        width: auto;
        min-height: 0;
        padding: 0;
        position: absolute;
        top: 15px;
        right: 14px;
        display: block;
        border: 0;
    }
    .classroom-course-table .course-select-cell::before,
    .classroom-course-table .course-manage-cell::before { display: none; }
    .classroom-course-table tbody td:nth-child(2) { padding-top: 2px; padding-right: 36px; display: block; }
    .classroom-course-table tbody td:nth-child(2)::before { display: none; }
    .classroom-course-table .course-manage-cell { padding-top: 11px; display: block; border-bottom: 0; }
    .classroom-course-table .course-manage-cell .button { width: 100%; justify-content: center; }
    .classroom-edit-head { padding: 17px 15px; align-items: stretch; flex-direction: column; border-radius: 15px; }
    .classroom-edit-head > .button { width: 100%; justify-content: center; }
    .classroom-edit-card { border-radius: 15px; }
    .classroom-edit-banner { padding: 15px; grid-template-columns: 44px minmax(0, 1fr); }
    .classroom-edit-avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
    .classroom-edit-banner > .status { width: max-content; grid-column: 2; }
    .classroom-edit-layout { grid-template-columns: 1fr; }
    .classroom-edit-main { padding: 17px 15px; }
    .classroom-edit-grid { grid-template-columns: 1fr; gap: 14px; }
    .classroom-edit-grid .field,
    .classroom-edit-grid .field.full { grid-column: auto; }
    .classroom-edit-aside { padding: 14px; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 0; }
    .classroom-edit-footer { padding: 13px 14px; align-items: stretch; flex-direction: column-reverse; }
    .classroom-edit-footer .button { width: 100%; }
    .classroom-kpis {
        margin-left: -2px;
        margin-right: -2px;
        padding: 2px 2px 8px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }
    .classroom-kpis .kpi-card { min-width: 155px; min-height: 76px; padding: 12px 13px; flex: 0 0 42vw; scroll-snap-align: start; }
    .classroom-kpis .kpi-card strong { font-size: 20px; }
    .classroom-report-head { padding: 17px 15px; align-items: stretch; flex-direction: column; border-radius: 15px; }
    .classroom-report-head > .button { width: 100%; justify-content: center; }
    .classroom-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .classroom-report-summary > div { min-height: 70px; padding: 10px; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; }
    .classroom-report-summary > div > span { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
    .classroom-report-summary strong { font-size: 17px; }
    .classroom-report-nav { top: 58px; }
    .classroom-report-panel > .panel-head { align-items: flex-start; flex-direction: column; }
    .report-count-pill { width: max-content; }
    .classroom-hierarchy-list { padding: 8px; }
    .owner-account-level > summary {
        padding: 11px;
        grid-template-columns: 18px 38px minmax(0, 1fr) auto;
        gap: 8px;
    }
    .owner-account-avatar { width: 38px; height: 38px; border-radius: 11px; }
    .owner-account-role { padding: 5px 7px; font-size: 7px; }
    .owner-account-total { display: none; }
    .owner-account-courses { padding: 7px; }
    .course-report-level > summary {
        padding: 9px;
        grid-template-columns: 18px 32px minmax(0, 1fr);
        gap: 7px;
    }
    .course-report-icon { width: 32px; height: 32px; }
    .course-report-ownership { width: 100%; grid-column: 3; }
    .course-report-stat { display: none; }
    .course-session-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .course-session-meta > span { width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .course-session-meta .button { width: 100%; margin-left: 0; justify-content: center; }
}

@media (max-width: 460px) {
    .course-hero-actions form,
    .course-hero-actions .button { flex-basis: 100%; }
    .course-overview { grid-template-columns: 1fr; }
    .course-overview .overview-wide { grid-column: auto; }
    .session-artifact-table tbody td,
    .session-artifact-table tbody td:last-child { grid-template-columns: 92px minmax(0, 1fr); }
    .classroom-report-summary { grid-template-columns: 1fr; }
}
