/* SSO 1.2.3: layouts grow with content; local transparent artwork. */
:root {
  --muted: #52617e;
  --line: #dce5f2;
  --surface: var(--card);
  --surface-soft: var(--bg);
  --radius: 20px;
  --mobile-nav-height: 76px;
}
:root.dark { --muted: #b8c7df; --line: #3c4d68; }
html { scroll-padding-top: 100px; }
body { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.65; }
button, a { touch-action: manipulation; }
button, input, select, textarea { max-width: 100%; }
input, select, textarea { min-width: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { font-size: 16px; min-height: 48px; }
input[type=file] { overflow: hidden; padding: 10px; }
input[type=file]::file-selector-button { min-height: 32px; margin-right: 8px; border: 0; border-radius: 7px; padding: 5px 9px; background: var(--primary-soft); color: var(--text); cursor: pointer; }
label { font-size: 14px; line-height: 1.5; }
label small, small.muted, .row-note { font-size: 12px; line-height: 1.65; }
summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
summary:focus-visible { outline-offset: 2px; }
details > summary + * { margin-top: 12px; }
.primary-btn, .outline-btn, .danger-btn { min-height: 46px; font-size: 14px; padding: 11px 18px; border-radius: 13px; white-space: normal; line-height: 1.45; text-align: center; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 8px; }
.icon-btn, .top-icon, #menuToggle { width: 44px; height: 44px; min-width: 44px; }
.icon-btn:active, .top-icon:active { background: var(--primary-soft); }
.primary-btn:active, .outline-btn:active { transform: translateY(1px); }
.edu-workspace, .main-content, .page-head > div, .profile-summary > div { min-width: 0; }
.main-content { padding: 24px clamp(20px, 3vw, 42px) 32px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(24px, 2vw, 30px); line-height: 1.35; }
.breadcrumb { font-size: 12px; }
.status-pill { font-size: 12px; }
.topbar { border-bottom: 1px solid var(--line); padding-inline: clamp(20px, 3vw, 42px); }
.edu-search { font-size: 13px; height: 46px; }
.edu-search kbd { font-size: 11px; }
.edu-date { font-size: 12px; }
.profile-trigger { min-height: 44px; }
.profile-trigger strong { font-size: 13px; }
.profile-trigger small { font-size: 12px; }
.sidebar-brand { padding-inline: 20px; }
.sidebar-nav .nav-item { font-size: 13px; min-height: 46px; }
.nav-label { font-size: 10px; color: #a8b8d4; }
.sidebar-service { position: relative; margin-bottom: 12px; }
.sidebar-service picture { height: 78px; background: transparent; }
.sidebar-service img { height: 100%; width: 100%; object-fit: contain; padding: 5px; }
.sidebar-service strong { font-size: 16px; }
.sidebar-service p { font-size: 12px; }
.sidebar-service .primary-btn { font-size: 13px; min-height: 44px; }
.sidebar-account strong { font-size: 13px; }
.sidebar-account small { font-size: 11px; }
.main-footer, .main-footer strong, .main-footer > span { font-size: 11px; }
.card { margin-bottom: 22px; }
.pad { padding: clamp(20px, 2.5vw, 28px); }
.card-header h2, .chart-head h2 { font-size: 18px; }
.card-header p, .chart-head p { font-size: 13px; }
.content-grid { gap: 0 22px; }
.stat-card { min-height: 108px; }
.stat-main { min-width: 0; }
.stat-main span { font-size: 13px; line-height: 1.5; }
.stat-main strong { font-size: clamp(26px, 3vw, 34px); }
.stat-icon { flex-shrink: 0; }
.welcome-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 27%);
  gap: 12px 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
  min-height: 250px;
  border: 1px solid rgba(var(--accent-rgb), .16);
  background: linear-gradient(115deg, var(--hero-start), var(--hero-mid) 64%, var(--hero-end));
  border-radius: 24px;
}
.dark .welcome-banner { background: linear-gradient(115deg, var(--hero-start), var(--hero-mid) 64%, var(--hero-end)); color: var(--text); border-color: var(--line); }
.welcome-content { width: 100%; max-width: none; display: contents; }
.welcome-content > .eyebrow, .welcome-content > h2, .welcome-content > p { grid-column: 1; position: relative; z-index: 1; }
.welcome-content > .eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: 1px; align-self: end; }
.welcome-banner h2 { font-size: clamp(24px, 2.6vw, 34px); max-width: none; margin: 0; line-height: 1.3; }
.welcome-name { display: block; }
.welcome-banner p { font-size: 14px; max-width: 520px; line-height: 1.7; }
.hero-illustration { position: relative; grid-column: 2; grid-row: 1 / 5; width: 100%; height: 230px; inset: auto; mask-image: none; pointer-events: none; align-self: center; }
.hero-illustration img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-actions { position: static; grid-column: 1; display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.hero-actions .primary-btn, .hero-actions .outline-btn { min-height: 46px; font-size: 14px !important; padding: 12px 16px; }
.hero-actions svg { flex-shrink: 0; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; }
.app-card h2 { font-size: 20px; }
.app-card p { font-size: 14px; flex: 1; }
.app-card .primary-btn { width: 100%; margin-top: auto; }
.quick-links a { min-height: 48px; font-size: 14px; padding: 12px 16px; }
.form-grid, .filter-grid, .access-filters { gap: 0 20px; }
.form-grid > *, .filter-grid > *, .access-filters > *, .inline-form > *, .toolbar > * { min-width: 0; }
.form-section { font-size: 18px; }
.filter-grid { margin-top: 20px; }
.filter-grid > a { display: inline-flex; align-items: center; min-height: 46px; margin-bottom: 20px; }
.table-scroll { overscroll-behavior-inline: contain; }
.table-scroll th { font-size: 12px; }
.table-scroll td { font-size: 14px; line-height: 1.65; }
.table-scroll.is-scrollable:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.table-hint { color: var(--muted); font-size: 12px; margin: 10px 0 8px; }
.pagination { flex-wrap: wrap; gap: 10px; font-size: 13px; }
.pagination a { min-height: 46px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.access-account strong { font-size: 15px; }
.access-account > span:not(.badge), .access-account small { font-size: 13px; }
.access-feature-header > span { white-space: normal; }
.access-intro p, .access-heading p, .student-intro, .access-legend p { font-size: 14px; }
.access-bulk-actions button, .learning-row-actions button, .learning-row-actions a { min-height: 44px; font-size: 13px; white-space: normal; }
.learning-row-actions { min-width: 190px; gap: 10px; }
.learning-row-actions form { max-width: 100%; }
.access-row-form button { min-height: 46px; font-size: 13px; }
.access-stats span { font-size: 13px; }
.learning-tabs a { background: var(--card); }
.learning-tabs a.active { color: var(--accent-ink, #fff); }
.learning-bulk, .sync-progress { background: var(--bg); }
.badge { max-width: 100%; white-space: normal; line-height: 1.6; }
.check-label { min-height: 44px; padding-block: 6px; }
.profile-summary code { font-size: 12px; word-break: break-all; }
.secret, code.wrap { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.edu-popover { overscroll-behavior: contain; padding: 18px; }
.popover-heading h2 { font-size: 18px; }
.popover-heading .badge { font-size: 11px; }
.profile-menu-head strong { font-size: 15px; }
.profile-menu-head small { font-size: 12px; }
.profile-popover .profile-menu-head { padding-right: 42px; }
.popover-close { position: absolute; right: 14px; top: 14px; z-index: 1; }
.profile-menu-link { font-size: 14px; min-height: 48px; }
.notification-help, .notification-item small { font-size: 13px; }
.notification-item strong { font-size: 14px; }
.notification-item time { font-size: 12px; }
.notification-actions button { min-height: 44px; font-size: 13px; }
.popover-footer { min-height: 44px; font-size: 13px; }
.edu-dialog { padding: 28px; scroll-padding-block: 20px; overscroll-behavior: contain; }
.edu-dialog > p, .confirmation-dialog #confirmText { font-size: 14px; }
.edu-theme-option strong { font-size: 13px; }
.edu-theme-option small { font-size: 12px; }
.edu-theme-option input { width: 20px; height: 20px; min-height: 20px; }
.appearance-row { min-height: 54px; }
.appearance-row strong { font-size: 14px; }
.appearance-row small { font-size: 12px; }
.appearance-row .switch { width: 48px !important; height: 28px; min-height: 28px; }
.switch:before { width: 22px; height: 22px; }
.switch:checked:before { transform: translateX(20px); }
.dialog-kicker { font-size: 11px; }
.confirm-art, .error-art { object-fit: contain; mix-blend-mode: normal; mask-image: none; width: 96px; height: 96px; animation: none; }
.auth-intro-content { padding-right: 0; }
.auth-illustration { object-fit: contain; width: 260px; height: 220px; mask-image: none; border-radius: 0; }
.auth-intro h1 { font-size: clamp(32px, 3.8vw, 52px); }
.auth-intro .eyebrow { font-size: 11px; }
.intro-chips span { font-size: 12px; }
.auth-card { padding: 36px; width: 100%; }
.auth-card label { font-size: 14px; }
.auth-card > .muted { font-size: 14px; }
.auth-card .auth-note { font-size: 12px; }
.auth-card > p:not(.muted):not(.auth-note):not(.center) { font-size: 14px; }
.auth-card .center, .form-links { font-size: 14px; }
.auth-card .center a, .form-links a { display: inline-flex; min-height: 44px; align-items: center; }
.auth-card .center { margin-bottom: 0; }
.auth-card .security-tag { font-size: 11px; letter-spacing: 1px; }
.password-toggle { font-size: 13px; min-width: 64px; min-height: 44px; top: 2px; right: 2px; }
.password-wrap input { padding-right: 76px; }
.auth-card .primary-btn, .auth-card .outline-btn, .auth-card .danger-btn { min-height: 50px; font-size: 15px; }
.auth-benefits { display: flex; align-items: center; gap: 8px; color: #c4d3ee; font-size: 12px; margin-top: 16px; }
.auth-benefits svg { width: 16px; height: 16px; flex-shrink: 0; }
.auth-card-header { margin-bottom: 24px; }
.auth-card-header h2 { margin-bottom: 9px; }
.auth-card-header p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.setup-hero img { object-fit: contain; opacity: 1; mask-image: none; padding: 24px; }
.setup-hero .setup-title, .setup-hero .setup-lead { max-width: 65%; }
.setup-hero .setup-lead, .setup-checks p, .requirements { font-size: 14px; }
.error-card p { font-size: 15px; }
.report-metadata { font-size: 14px; }

@media (min-width: 851px) and (max-width: 1100px) {
  .sidebar-service { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-banner { grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; padding: 24px; }
  .hero-illustration { height: 190px; }
  .hero-actions { grid-column: 1 / -1; }
  .hero-illustration { grid-row: 1 / 4; }
}
@media (max-width: 850px) {
  html { scrollbar-gutter: auto; scroll-padding-top: 90px; }
  .topbar { padding-inline: 16px; gap: 8px; }
  .topbar-left { gap: 4px; }
  .topbar-right { gap: 2px; }
  .mobile-brand { min-height: 44px; gap: 6px; }
  .mobile-brand .edu-logo { width: 28px; height: 28px; }
  .mobile-brand .brand-copy strong { font-size: 17px; }
  .mobile-brand .brand-copy small { font-size: 8px; letter-spacing: .4px; }
  .mobile-brand .mobile-menu-icon { width: 19px; height: 19px; }
  .edu-search { min-width: 44px; width: 44px; max-width: 44px; height: 44px; }
  .profile-trigger { min-width: 44px; justify-content: center; margin-left: 0; }
  .sidebar { width: min(88vw, 330px); }
  .sidebar-brand { padding-top: calc(16px + env(safe-area-inset-top, 0px)); height: calc(80px + env(safe-area-inset-top, 0px)); }
  .sidebar .sidebar-service { display: none !important; }
  .sidebar .nav-item { min-height: 48px; font-size: 14px; }
  .sidebar-account { min-height: 76px; }
  .main-content { padding: 22px 20px calc(var(--mobile-nav-height) + 32px + env(safe-area-inset-bottom, 0px)); }
  .page-head h1 { font-size: 25px; }
  .page-head .status-pill { display: none; }
  .breadcrumb { font-size: 12px; }
  .mobile-tabs {
    min-height: var(--mobile-nav-height); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
    background: var(--card); box-shadow: 0 -8px 30px #1b35500a;
  }
  .mobile-tab { min-height: 56px; border-radius: 14px; font-size: 11px; gap: 4px; padding: 6px 2px; }
  .mobile-tab svg { width: 22px; height: 22px; }
  .mobile-tab.active { background: var(--primary-soft); color: var(--text); font-weight: 700; }
  .mobile-tab.active svg { color: var(--primary); filter: none; }
  .mobile-tab:active { background: var(--primary-soft); }
  .welcome-banner { grid-template-columns: minmax(0, 1fr) 145px; gap: 10px 16px; padding: 24px; min-height: 0; }
  .welcome-banner h2 { font-size: 27px; }
  .hero-illustration { grid-row: 1 / 4; height: 190px; }
  .hero-actions { grid-column: 1 / -1; margin-top: 10px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px 16px; min-height: 106px; gap: 12px; }
  .stat-main span { font-size: 12px; }
  .stat-main strong { font-size: 28px; }
  .dashboard-charts { grid-template-columns: 1fr; gap: 0; }
  .account-donut { flex-direction: row; gap: 24px; justify-content: center; }
  .account-donut svg { width: 140px; height: 140px; }
  .donut-legend { display: grid; font-size: 12px; gap: 12px; }
  .card-header { padding: 22px 22px 0; }
  .chart-head h2 { font-size: 18px; }
  .chart-head p, .chart-legend { font-size: 12px; }
  .pad { padding: 22px; }
  .access-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-filter-actions { grid-column: 1 / -1; }
  .learning-stats.access-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .access-stats article { margin: 0; padding: 16px; }
  .access-stats { margin-bottom: 22px; }
  .pagination > span { max-width: 100%; overflow-wrap: anywhere; }
  .auth-layout { display: block; }
  .auth-intro { min-height: 0; padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 26px; gap: 0; }
  .auth-intro-content { margin-top: 16px; padding-right: 0; }
  .auth-intro h1 { font-size: 30px; margin: 0; line-height: 1.25; letter-spacing: -.7px; }
  .auth-intro h1 br { display: none; }
  .auth-intro-content > .eyebrow, .auth-intro-content > p, .intro-chips, .auth-illustration, .auth-benefits { display: none; }
  .login-custom-banner { width: 100%; max-height: 120px; margin: 16px 0 0; object-fit: contain; }
  .auth-panel { padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .auth-card { max-width: 530px; padding: 30px; border-radius: 22px; }
  .auth-card h2 { font-size: 28px; }
  .auth-card > .muted { margin-bottom: 24px; }
  .auth-card .auth-note { margin-top: 20px; }
  .auth-card .form-links { margin-bottom: 12px; }
  .auth-card .center { margin-top: 14px; }
  .edu-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px; }
  .edu-popover { border-radius: 20px; }
  .notification-item { align-items: flex-start; }
  .notification-item .notification-icon { flex-shrink: 0; }
  .navigation-results { max-height: 48dvh; }
  .navigation-results a { min-height: 50px; font-size: 14px; }
  .setup-hero img { width: 28%; padding: 16px; }
  .setup-hero .setup-title, .setup-hero .setup-lead { max-width: 72%; }
}
@media (max-width: 650px) {
  .main-content { padding-inline: 16px; }
  .topbar { padding-inline: 12px; }
  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-size: 24px; margin-bottom: 8px; }
  .welcome-banner { grid-template-columns: minmax(0, 1fr) 94px; gap: 10px 12px; padding: 22px 20px; border-radius: 22px; }
  .welcome-content > .eyebrow { font-size: 10px; grid-column: 1 / -1; }
  .welcome-banner h2 { font-size: 25px; max-width: none; grid-column: 1; }
  .welcome-name { font-size: 21px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; }
  .welcome-banner p { font-size: 14px; max-width: none; grid-column: 1 / -1; }
  .hero-illustration { grid-row: 2; height: 125px; width: 100%; align-self: center; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; gap: 10px; margin-top: 6px; }
  .hero-actions .primary-btn, .hero-actions .outline-btn { font-size: 13px !important; padding: 12px 9px; min-height: 48px; }
  .hero-actions svg { width: 18px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
  .stat-card { flex-direction: column; align-items: flex-start; min-height: 0; padding: 16px; gap: 12px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-icon svg { width: 22px; height: 22px; }
  .stat-main span { font-size: 12px; margin-bottom: 4px; }
  .stat-main strong { font-size: 29px; }
  .card { margin-bottom: 20px; }
  .pad { padding: 20px; }
  .card-header { padding: 20px 20px 0; }
  .card-header h2 { font-size: 18px; }
  .content-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .form-grid, .filter-grid, .access-filters { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-grid .span-all, .access-search, .access-filter-actions { grid-column: auto; }
  .filter-grid { padding: 16px; }
  .toolbar { display: flex; align-items: stretch; gap: 10px; }
  .toolbar > :is(a, button, form) { flex: 1 1 140px; }
  .toolbar form button { width: 100%; }
  .toolbar > .muted { flex-basis: 100%; }
  .toolbar .primary-btn, .toolbar .outline-btn, .toolbar .danger-btn { min-height: 46px; font-size: 14px; }
  .form-grid .span-all > .outline-btn { margin-block: 8px; }
  .filter-grid button { margin-bottom: 10px; }
  .table-scroll, .access-table.table-scroll { overflow: visible; border: 0; }
  .table-scroll table { display: block; width: 100%; min-width: 0 !important; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; display: table-header-group; }
  .table-scroll tbody { display: block; width: 100%; }
  .table-scroll tr { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 8px 16px; margin: 0 0 14px; background: var(--card); overflow: visible; }
  .table-scroll td { display: block; width: 100%; max-width: 100%; min-width: 0; padding: 10px 0; border: 0; font-size: 14px; }
  .table-scroll td + td { border-top: 1px solid var(--line); }
  .table-scroll td:before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
  .table-scroll td.empty { text-align: center; padding: 20px 0; }
  .table-scroll td.empty:before { display: none; }
  .table-scroll td input, .table-scroll td select { width: 100%; min-width: 0; }
  .table-scroll td input[type=checkbox] { width: 22px; height: 22px; min-height: 22px; }
  .table-scroll td label.access-account-selector { justify-content: flex-start; }
  .card > .table-scroll { margin: 0 20px 20px; }
  .pad > .table-scroll { margin: 18px 0 0; }
  .access-table .account-selected { box-shadow: inset 3px 0 0 var(--primary); }
  .learning-row-actions { min-width: 0; width: 100%; display: flex; gap: 10px; }
  .learning-row-actions > :is(a, button, form) { flex: 1 1 140px; }
  .learning-row-actions form button { width: 100%; }
  .learning-row-actions .row-note { flex-basis: 100%; }
  .access-row-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .access-row-form select { min-width: 0; width: 100%; }
  .learning-purge { width: 100%; }
  .learning-purge form { width: 100%; }
  .learning-purge input { min-width: 0; }
  .access-filter-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .access-filter-actions > * { min-width: 0; font-size: 13px; }
  .access-heading, .access-feature-header { flex-direction: column; align-items: stretch; }
  .access-heading h2, .access-feature-header h2 { font-size: 20px; }
  .access-bulk-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .selection-bar { align-items: flex-start; }
  .learning-tabs { gap: 10px; }
  .learning-tabs a { font-size: 13px; min-width: 0; padding: 12px 10px; }
  .learning-tabs span { flex-shrink: 0; }
  .learning-bulk { padding: 14px; }
  .learning-page-jump label { width: 100%; flex-direction: row; margin-bottom: 0; }
  .learning-page-jump input { width: 80px; }
  .learning-page-jump button { width: 100%; }
  .pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pagination > span { padding: 8px 0; font-size: 12px; text-align: center; }
  .pagination a { width: 100%; font-size: 13px; padding: 10px 8px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card { padding: 24px; }
  .profile-summary { gap: 14px; align-items: flex-start; }
  .profile-summary h2 { font-size: 21px; }
  .profile-summary p { font-size: 13px; }
  .profile-photo, .avatar-initial.large { width: 58px; height: 58px; flex-shrink: 0; }
  .profile-summary code { font-size: 11px; }
  .template-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .template-card span, .import-help { font-size: 13px; }
  .inline-form label { flex-basis: 100%; }
  .student-tabs { gap: 10px; }
  .student-tabs a { font-size: 14px; min-height: 46px; }
  .student-filter-actions > *, .student-preview-actions > * { width: 100%; }
  .student-filter-actions > form button, .student-preview-actions > form button { width: 100%; }
  .main-footer { display: flex; flex-direction: column; gap: 5px; text-align: center; }
  .main-footer > span { font-size: 11px; }
  .edu-theme-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .edu-theme-option { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; padding: 12px; gap: 5px 14px; min-height: 84px; }
  .theme-preview { grid-row: 1 / 3; height: 60px; }
  .edu-theme-option strong { padding-right: 22px; font-size: 14px; }
  .edu-theme-option small { font-size: 12px; }
  .edu-theme-option input { top: 15px; right: 12px; width: 20px; height: 20px; min-height: 20px; }
  .dialog-actions { gap: 10px; }
  .dialog-actions > * { min-width: 0; }
  .appearance-row small { font-size: 12px; }
  .auth-intro { padding-inline: 20px; padding-bottom: 24px; }
  .auth-intro h1 { font-size: 25px; max-width: 100%; }
  .auth-intro .brand-copy small { font-size: 9px; }
  .auth-panel { padding-inline: 16px; }
  .auth-card { padding: 26px 22px; }
  .auth-card h2 { font-size: 27px; }
  .auth-card label, .auth-card > .muted { font-size: 14px; }
  .auth-note { line-height: 1.7; }
  .login-custom-banner { max-height: 100px; }
  .has-login-banner .auth-intro h1 { font-size: 25px; }
  .setup-shell { padding: 24px 16px; }
  .setup-hero { padding: 22px; }
  .setup-hero img { display: none; }
  .setup-hero .setup-title, .setup-hero .setup-lead { max-width: 100%; }
  .setup-hero .setup-lead, .setup-checks p, .requirements { font-size: 14px; }
  .report-metadata { grid-template-columns: minmax(0, 1fr); }
  .report-metadata dd { margin-bottom: 12px; }
  .error-body { padding: 18px; }
  .error-card { padding: 28px 22px; }
  .error-card h1 { font-size: 24px; }
  .error-card .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 8px; gap: 0; }
  .topbar-left { flex: 0 1 auto; gap: 0; }
  .topbar-right { gap: 0; }
  .mobile-brand { gap: 4px; }
  .mobile-brand .edu-logo { width: 24px; }
  .mobile-brand .brand-copy strong { font-size: 15px; }
  .mobile-brand .brand-copy small { font-size: 7px; }
  .edu-search { display: flex; }
  .mobile-tab { font-size: 10px; }
  .main-content { padding-inline: 12px; }
  .pad { padding: 17px; }
  .welcome-banner { padding: 20px 16px; grid-template-columns: minmax(0, 1fr) 76px; }
  .welcome-banner h2 { font-size: 23px; }
  .hero-illustration { height: 110px; }
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .stat-card { padding: 14px; }
  .stat-main span { font-size: 12px; }
  .stat-main strong { font-size: 27px; }
  .auth-card { padding: 24px 18px; }
  .account-donut { gap: 14px; }
  .account-donut svg { width: 112px; height: 112px; }
}
@media (max-height: 520px) and (max-width: 850px) {
  .mobile-tabs { padding-block: 4px; min-height: 60px; }
  .mobile-tab { min-height: 48px; }
  .sidebar-brand { height: 64px; }
  .sidebar-account { min-height: 64px; }
}
/* The keyboard hides only fixed tabs; the whole form remains scrollable. */
html.keyboard-open .mobile-tabs { display: none; }
[data-motion=off] *, [data-motion=off] *:before, [data-motion=off] *:after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .table-hint { display: none !important; }
  .main-content { padding: 0; }
  .table-scroll table { display: table; }
  .table-scroll thead { position: static; width: auto; height: auto; margin: 0; clip-path: none; display: table-header-group; }
  .table-scroll tbody { display: table-row-group; }
  .table-scroll tr { display: table-row; }
  .table-scroll td { display: table-cell; }
  .table-scroll td:before { display: none; }
}

/* SSO 1.3.2 — Authenticator di ponsel yang sama (halaman login & Keamanan) */
.mfa-same-phone{display:grid;gap:8px;margin:14px 0;padding:14px;border-radius:16px;background:var(--primary-soft,#eef3ff);border:1px solid rgba(36,91,255,.16)}
.mfa-same-phone p{margin:0;font-size:12.5px;line-height:1.65}
.mfa-open-app{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:46px}
@media (hover:hover) and (pointer:fine){.mfa-same-phone{display:none}}
