.enterprise-shell {
  --surface: #fff; --canvas: #f5f7f9; --text: #243244; --text-muted: #566579; --border: #dfe5eb;
  --primary: var(--green, #166f5b); --primary-soft: #e9f4ef; --focus: #1767b0;
  font: 14px/1.5 Inter, Roboto, Arial, sans-serif; letter-spacing: 0;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--canvas); min-height: 100dvh;
}
.app-shell.enterprise-shell .main { margin: 0; padding: 0; width: auto; min-width: 0; background: var(--canvas); }
.enterprise-shell .sidebar { width: 248px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); }
.enterprise-shell .sidebar-head { padding: 24px 16px 18px; }
.enterprise-shell .brand-row { font-size: 14px; }
.enterprise-shell .nav { min-height: 0; flex: 1; padding: 8px 12px; }
.enterprise-shell .nav-group-label { font-size: 12px; font-weight: 600; padding: 14px 8px 8px; text-transform: none; }
.enterprise-shell .nav button { min-height: 44px; font-size: 13px; width: 100%; padding: 10px 12px; gap: 10px; border-radius: 6px; text-align: left; }
.enterprise-shell .nav button.active { color: var(--primary); background: var(--primary-soft); }
.enterprise-shell .nav-label { white-space: normal; overflow-wrap: anywhere; }
.enterprise-shell .nav-svg { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }
.enterprise-shell .sidebar-foot { padding: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.enterprise-shell .topbar.enterprise-topbar { min-height: 64px; padding: 10px 24px; gap: 16px; display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); }
.enterprise-shell button, .enterprise-dialog button { border: 0; font: inherit; cursor: pointer; }
.enterprise-shell button:disabled, .enterprise-dialog button:disabled { cursor: default; }
.enterprise-breadcrumb { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 13px; flex-wrap: wrap; }
.enterprise-breadcrumb span { color: var(--text-muted); }
.enterprise-breadcrumb strong { font-weight: 600; color: var(--text); }
.enterprise-topbar .command-trigger { display: flex; align-items: center; gap: 8px; background: var(--canvas); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text-muted); min-width: 44px; max-width: 350px; margin-left: auto; }
.command-trigger span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.command-trigger kbd { font: 12px Inter, sans-serif; white-space: nowrap; }
.enterprise-topbar .top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: none; }
.enterprise-shell .enterprise-topbar .top-actions button { font-size: 12px; }
.enterprise-shell .icon-button, .enterprise-dialog [data-dialog-close] { display: inline-flex; align-items: center; justify-content: center; padding: 8px; min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); border-radius: 8px; font-size: 18px; }
.enterprise-shell .icon-button:hover { background: var(--canvas); }
.semester-context { display: flex; align-items: center; gap: 8px; background: transparent; color: var(--text); min-height: 44px; font-size: 12px; max-width: 170px; }
.notification-trigger { position: relative; }
.notification-count { position: absolute; right: 1px; top: 0; font-size: 12px; padding: 0 4px; background: #a82937; color: white; border-radius: 8px; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eaf0f8; color: #2b527e; font-size: 13px; font-weight: 600; flex: none; }
.account-identity { display: grid; max-width: 150px; }
.account-identity strong { font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.account-identity small { font-size: 12px; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.account-popover { position: absolute; top: calc(100% + 12px); right: 0; width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 32px #182f491f; padding: 8px; z-index: 80; }
.account-popover > button, .account-popover > label { width: 100%; min-height: 44px; padding: 10px 12px; background: none; color: var(--text); text-align: left; font-size: 14px; }
.account-popover > button:hover { background: var(--canvas); }
.account-popover .workspace-switcher { display: grid; }
.account-popover .workspace-switcher select { max-width: none; width: 100%; font-size: 13px; }
.theme-setting { display: flex; justify-content: space-between; align-items: center; }
.theme-setting input { width: 20px; height: 20px; }
.enterprise-shell .workspace-content { padding: 28px 28px 48px; min-width: 0; }
.enterprise-shell .workspace-content :is(p, label, input, select, textarea, button, td) { font-size: 14px; line-height: 1.5; }
.enterprise-shell .workspace-content :is(small, .muted, .badge, th, .metric > span, .metric small, .dashboard-kpi-card small, .dashboard-bar-item small, .field > span) { font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.enterprise-shell .workspace-content .view-title h1 { font-size: 24px; line-height: 1.5; }
.enterprise-shell .workspace-content :is(h2, .panel-head h2) { font-size: 18px; line-height: 1.5; }
.enterprise-shell .workspace-content h3 { font-size: 16px; }
.enterprise-shell .workspace-content .view-title .eyebrow { display: none; }
.enterprise-shell .workspace-content .metric strong { font-size: 26px; }
.enterprise-shell .workspace-content .metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.enterprise-shell .workspace-content :is(.primary-btn, .secondary-btn, .ghost-btn) { min-height: 40px; }
.enterprise-shell .workspace-content .field :is(input, select) { min-height: 44px; }
.enterprise-shell .workspace-content input[type=color] { width: 100%; padding: 5px; }
.enterprise-shell .workspace-content :is(.panel, .dashboard-panel) { background: var(--surface); box-shadow: none; border-radius: 0; }
.family-nav { display: flex; flex-wrap: nowrap; gap: 24px; padding: 0 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow: auto; }
.family-nav button { flex: none; background: transparent; color: var(--text-muted); border-radius: 0; min-height: 40px; padding: 8px 0; }
.family-nav button[aria-current] { color: var(--primary); box-shadow: inset 0 -2px var(--primary); font-weight: 600; }
.enterprise-shell [data-tone=success] { color: #17623f; background: #e7f4ec; }
.enterprise-shell [data-tone=danger] { color: #9d2638; background: #fdeef0; }
.enterprise-shell [data-tone=warning] { color: #825108; background: #fff3d9; }
.enterprise-shell [data-tone=neutral] { color: #465569; background: #edf1f5; }
.enterprise-shell .offline-banner { background: #fff3d9; color: #70450b; padding: 12px 24px; }
.enterprise-shell :focus-visible, .enterprise-dialog :focus-visible { outline: 3px solid var(--focus, #1767b0); outline-offset: 3px; }
.enterprise-dialog { font: 14px/1.5 Inter, Roboto, sans-serif; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dfe5eb; border-radius: 8px; color: var(--text, #243244); background: var(--surface, #fff); box-shadow: 0 24px 64px #16334b29; }
.enterprise-dialog::backdrop { background: #172c4566; }
.enterprise-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border, #dfe5eb); }
.enterprise-dialog h2 { font-size: 18px; margin: 0; }
.enterprise-dialog .dialog-body { padding: 24px; overflow: auto; }
.enterprise-dialog footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.enterprise-dialog :is(button, input, select, textarea) { font-size: 14px; min-height: 44px; }
.enterprise-dialog [type=search] { width: 100%; padding: 12px; background: #f4f6f9; border: 1px solid #ccd5df; border-radius: 8px; }
.command-results { margin-top: 16px; max-height: 50dvh; overflow: auto; }
.command-results h3 { color: #566579; font-size: 12px; margin: 16px 8px 8px; }
.command-results button { display: grid; text-align: left; width: 100%; background: none; padding: 10px 12px; border-radius: 6px; }
.command-results button:hover { background: #e9f4ef; }
.command-results button span { font-size: 12px; color: #566579; }
.notification-list article { border-bottom: 1px solid #dfe5eb; padding-block: 12px; }
.campus-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.campus-media-grid img { width: 100%; height: 150px; object-fit: contain; background: #f4f6f9; }
.loading-skeleton { padding-block: 12px; }
.loading-skeleton i, .skeleton-heading { display: block; background: linear-gradient(100deg, #e8edf2 25%, #f3f6f9 45%, #e8edf2 65%); background-size: 200% 100%; animation: skeleton-pulse 1.5s linear infinite; border-radius: 6px; }
.skeleton-heading { width: 35%; height: 30px; margin-bottom: 28px; }
.skeleton-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.skeleton-metrics i { height: 110px; }
.skeleton-table { display: grid; gap: 12px; }
.skeleton-table i { height: 44px; }
@keyframes skeleton-pulse { to { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.data-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.data-filter-bar .table-search { flex: 1 1 200px; }
.data-filter-bar input[type=search] { width: 100%; }
.data-filter-bar :is(input, select) { background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; }
.data-filter-bar > button { background: transparent; color: var(--primary); }
.table-column-menu { position: relative; }
.table-column-menu > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; }
.table-column-menu > div { position: absolute; z-index: 10; top: 100%; right: 0; background: var(--surface); border: 1px solid var(--border); min-width: 220px; padding: 12px; border-radius: 8px; }
.table-column-menu label { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.table-column-menu input { width: 18px; height: 18px; min-height: 0; }
.data-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; font-size: 13px; }
.data-pagination > span:first-child { margin-right: auto; }
.data-pagination label { display: flex; align-items: center; gap: 8px; }
.data-pagination button { min-width: 44px; min-height: 44px; font-size: 18px; background: var(--canvas); color: var(--text); }
.data-pagination button:disabled { opacity: .4; cursor: default; }
.data-table th button { padding: 0; text-align: left; font-weight: 600; min-height: 24px; background: transparent; color: inherit; }
.data-table tbody button { padding: 8px 12px; border-radius: 6px; color: var(--primary); background: var(--primary-soft); }
.data-table .table-wrap { overflow-x: auto; }
.data-table table { min-width: 680px; }
.data-table th { position: sticky; top: 0; z-index: 1; }
.data-table :is(th, td):first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.data-table th:first-child { z-index: 3; }
.enterprise-shell .data-table th { background: #edf2f7; }
.enterprise-shell .section-grid.drawer-single-column { grid-template-columns: minmax(0, 1fr); }
.enterprise-shell .data-table .table-selection { width: 44px; min-width: 44px; padding: 12px; }
.enterprise-shell .data-table input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; }
.enterprise-shell .data-table tbody button:disabled { opacity: .45; }
.enterprise-shell .data-table [data-krs-decision=REJECTED] { color: #9d2638; background: #fdeef0; }
.enterprise-dialog [data-decision-error] { color: #9d2638; }
.record-details { display: grid; gap: 16px; margin: 0; }
.record-details > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 16px; }
.record-details dt { color: var(--text-muted, #566579); }
.record-details dd { margin: 0; overflow-wrap: anywhere; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.overview-main { display: grid; gap: 28px; min-width: 0; }
.overview-section { background: var(--surface); padding: 24px; min-width: 0; }
.overview-section > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.overview-section > header h2 { margin: 0; font-size: 18px; }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.attention-list li:last-child { border: 0; }
.single-category-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0; }
.single-category-summary strong { font-size: 26px; }
.dashboard-overview .dashboard-kpi-strip { margin-bottom: 28px; }
.dashboard-overview .dashboard-kpi-card { text-align: left; color: var(--text); }
.dashboard-overview button.dashboard-kpi-card:hover { outline: 1px solid var(--border); }
@media (max-width: 1100px) { .overview-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .overview-section { padding: 16px; } .attention-list li { gap: 8px; } }
.enterprise-shell .form-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(640px, 100vw); max-height: 100dvh; height: 100dvh; border-radius: 0; }
.form-drawer .dialog-body { height: calc(100dvh - 80px); overflow-y: auto; }
.form-drawer .form-action-bar { position: sticky; bottom: -24px; background: var(--surface, #fff); padding: 16px 0; z-index: 2; }
.enterprise-shell .sidebar-backdrop, .enterprise-shell .mobile-menu-toggle, .enterprise-shell .mobile-bottom-nav { display: none; }
.enterprise-shell.is-nav-compact { grid-template-columns: 72px minmax(0, 1fr); }
.enterprise-shell.is-nav-compact .sidebar { width: 72px; }
.enterprise-shell.is-nav-compact :is(.nav-label, .brand-row > span:last-child, .nav-group-label, .sidebar-version) { display: none; }
.enterprise-shell.is-nav-compact .sidebar-head { padding: 20px 12px; }
.enterprise-shell.is-nav-compact .nav { padding-inline: 8px; }
.enterprise-shell.is-nav-compact details > button { display: flex; }
[data-theme=dark] .enterprise-shell, [data-theme=dark] .enterprise-dialog { --surface: #202a32; --canvas: #172027; --text: #edf2f6; --text-muted: #b4c1cd; --border: #3c4955; --primary: #8ad3b6; --primary-soft: #24483c; color-scheme: dark; }
[data-theme=dark] .enterprise-shell :is(.panel, .metric, .dashboard-kpi-card, .table-wrap, .panel-body, .module-section) { background: var(--surface); color: var(--text); }
[data-theme=dark] .enterprise-shell :is(h1, h2, h3, strong, td, .muted, .brand-row, .nav button) { color: var(--text); }
[data-theme=dark] .enterprise-shell :is(input, select, textarea, th, tbody tr:nth-child(even), .sidebar-foot) { background: var(--canvas); color: var(--text); }
[data-theme=dark] .enterprise-shell tbody tr:nth-child(odd) { background: var(--surface); }
@media (min-width: 1024px) and (max-width: 1279px) {
  .enterprise-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .enterprise-shell .sidebar { width: 72px; }
  .enterprise-shell :is(.nav-label, .brand-row > span:last-child, .nav-group-label, .sidebar-version) { display: none; }
  .enterprise-shell .nav { padding-inline: 8px; }
  .enterprise-shell .sidebar-head { padding-inline: 12px; }
  .enterprise-shell .nav-group > button { display: flex; }
  .account-identity { display: none; }
}
@media (max-width: 1023px) {
  .app-shell.enterprise-shell { display: block; }
  .enterprise-shell .sidebar { position: fixed; top: 64px; bottom: 0; left: 0; height: calc(100dvh - 64px); z-index: 65; width: min(300px, 85vw); transform: translateX(-100%); transition: transform .15s ease; }
  .enterprise-shell .sidebar.is-menu-open { transform: translateX(0); }
  .enterprise-shell .sidebar .nav { display: block; overflow-y: auto; }
  .enterprise-shell .sidebar .nav-label { display: inline; }
  .enterprise-shell .sidebar .nav-group-label { display: block; }
  .enterprise-shell .mobile-menu-toggle { display: inline-flex; flex: none; }
  .enterprise-shell:has(.sidebar.is-menu-open) .sidebar-backdrop { display: block; position: fixed; inset: 64px 0 0; z-index: 60; background: #172c4555; border-radius: 0; }
  .enterprise-shell .enterprise-topbar { padding: 8px 12px; height: 64px; gap: 8px; }
  .enterprise-breadcrumb { flex: 1; font-size: 12px; overflow: hidden; }
  .enterprise-breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .enterprise-breadcrumb > span { display: none; }
  .account-identity, .semester-context, .enterprise-shell .help-trigger, .command-trigger span, .command-trigger kbd { display: none; }
  .enterprise-topbar .command-trigger { padding: 10px; background: none; border: 0; margin-left: 0; }
  .enterprise-shell .workspace-content { padding: 20px 16px 80px; }
  .enterprise-shell .sidebar-foot [data-nav-compact] { display: none; }
}
@media (max-width: 767px) {
  .enterprise-shell .workspace-content .metrics, .skeleton-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-media-grid { grid-template-columns: 1fr; }
  .enterprise-shell .workspace-content .view-title h1 { font-size: 22px; }
  .enterprise-shell .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); display: flex; justify-content: space-around; z-index: 50; background: var(--surface); border-top: 1px solid var(--border); }
  .mobile-bottom-nav button { display: grid; justify-items: center; gap: 4px; font-size: 12px; min-width: 44px; min-height: 44px; background: none; color: var(--text-muted); padding: 6px; }
  .mobile-bottom-nav button[aria-current] { color: var(--primary); }
  .enterprise-dialog { max-height: calc(100dvh - 24px); width: calc(100vw - 24px); }
  .enterprise-dialog .dialog-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .loading-skeleton i, .skeleton-heading { animation: none; } .enterprise-shell .sidebar { transition: none; } }
.semester-picker { display: grid; gap: 2px; min-width: 0; }
.semester-picker > span { display: none; font-size: 12px; color: var(--text-muted); }
.semester-picker select { max-width: 210px; min-height: 40px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; }
.semester-archive-notice { padding: 12px 16px; background: #fff3d9; color: #70450b; border-radius: 6px; }
.archive-fields { border: 0; margin: 0; padding: 0; min-width: 0; grid-column: 1 / -1; display: contents; }
.archive-fields:disabled :is(input, select, textarea, button) { opacity: .6; cursor: not-allowed; }
@media (max-width: 1023px) {
  .enterprise-shell:has(.semester-picker) .enterprise-topbar { flex-wrap: wrap; height: 120px; min-height: 120px; }
  .enterprise-shell:has(.semester-picker) .top-actions { display: contents; }
  .enterprise-shell .semester-picker { order: 10; flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .semester-picker > span { display: inline; }
  .semester-picker select { flex: 1; max-width: 230px; min-width: 0; min-height: 40px; }
  .enterprise-shell:has(.semester-picker) .sidebar { top: 120px; height: calc(100dvh - 120px); }
  .enterprise-shell:has(.semester-picker) .sidebar-backdrop { top: 120px; }
}
