:root, html[data-theme="light"] {
  --primary: #1F3A5F; --secondary: #132238; --accent: #D9C08F;
  --body-bg: #F6F2EA; --body-fg: #16213A; --body-quiet-color: #536172;
  --body-loud-color: #132238; --header-bg: #132238; --header-color: #D9C08F;
  --header-branding-color: #D9C08F; --header-link-color: #F6F2EA;
  --link-fg: #1F3A5F; --link-hover-color: #2F7A78; --link-selected-fg: #132238;
  --hairline-color: #e0dbd0; --border-color: #c9c4b9; --darkened-bg: #EFE8D9;
  --selected-bg: #EFE8D9; --selected-row: #e4ece8; --button-bg: #1F3A5F;
  --button-hover-bg: #2F7A78; --default-button-bg: #1F3A5F; --default-button-hover-bg: #2F7A78;
  --surface: #fff; --success-bg: #e1f0eb; --success-fg: #205d4c;
  --pending-bg: #f4e7cc; --pending-fg: #624912;
}
html[data-theme="dark"] {
  --primary: #263f5e; --secondary: #0e1b2c; --accent: #D9C08F;
  --body-bg: #101c2c; --body-fg: #e7ecf3; --body-quiet-color: #b6c3d3;
  --body-loud-color: #fff; --header-bg: #0e1b2c; --header-color: #D9C08F;
  --header-branding-color: #D9C08F; --header-link-color: #f6f2ea;
  --link-fg: #a6c8ef; --link-hover-color: #D9C08F; --link-selected-fg: #fff;
  --hairline-color: #34465c; --border-color: #43566e; --darkened-bg: #1d3047;
  --selected-bg: #263f5e; --selected-row: #2b455a; --button-bg: #345578;
  --button-hover-bg: #426c95; --default-button-bg: #345578; --default-button-hover-bg: #426c95;
  --surface: #17283b; --success-bg: #193e38; --success-fg: #a5e1cf;
  --pending-bg: #45371d; --pending-fg: #ead096;
}
body { font-family: system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --primary: #263f5e; --secondary: #0e1b2c; --accent: #D9C08F;
    --body-bg: #101c2c; --body-fg: #e7ecf3; --body-quiet-color: #b6c3d3;
    --body-loud-color: #fff; --header-bg: #0e1b2c; --header-color: #D9C08F;
    --header-branding-color: #D9C08F; --header-link-color: #f6f2ea;
    --link-fg: #a6c8ef; --link-hover-color: #D9C08F; --link-selected-fg: #fff;
    --hairline-color: #34465c; --border-color: #43566e; --darkened-bg: #1d3047;
    --selected-bg: #263f5e; --selected-row: #2b455a; --button-bg: #345578;
    --button-hover-bg: #426c95; --default-button-bg: #345578; --default-button-hover-bg: #426c95;
    --surface: #17283b; --success-bg: #193e38; --success-fg: #a5e1cf;
    --pending-bg: #45371d; --pending-fg: #ead096;
  }
}
#header { padding: 18px 28px; gap: 18px; }
.college-brand { display: flex; align-items: center; gap: 14px; max-width: 540px; font-size: 20px; font-weight: 650; line-height: 1.35; }
.college-brand img { flex-shrink: 0; object-fit: contain; }
#content { padding: 28px; }
.module, .inline-group, .submit-row, #changelist-filter { border-radius: 10px; overflow: hidden; border: 1px solid var(--hairline-color); background: var(--surface); box-shadow: 0 3px 15px #00000008; }
.module h2, .module caption, .inline-group h2 { padding: 14px 16px; }
#nav-sidebar { background: var(--surface); padding: 12px; box-sizing: border-box; }
#nav-sidebar .module { margin-bottom: 14px; }
#nav-sidebar th, #nav-sidebar td { padding: 11px 8px; }
.nav-icon { width: 15px; height: 15px; fill: currentColor; margin-right: 8px; vertical-align: middle; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { border-radius: 7px; padding: 10px; max-width: 100%; box-sizing: border-box; }
select:not([multiple]) { height: auto; min-height: 42px; padding: 8px 28px 8px 10px; line-height: 1.4; }
.aligned .form-row > div { min-width: 0; }
.aligned textarea, .aligned input.vTextField { width: min(100%, 760px); }
.button, input[type="submit"], .submit-row input, button { border-radius: 7px; transition: background-color .18s, box-shadow .18s; }
.button:hover, input[type="submit"]:hover { box-shadow: 0 3px 10px #0002; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--link-fg); outline-offset: 2px; }
#result_list tbody tr:hover td, #result_list tbody tr:hover th { background: var(--selected-row); }
#result_list td, #result_list th { padding: 13px 12px; vertical-align: middle; }
.status-badge { display: inline-block; border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 650; white-space: nowrap; margin: 2px 0; }
.is-success { color: var(--success-fg); background: var(--success-bg); }
.is-pending { color: var(--pending-fg); background: var(--pending-bg); }
.admin-thumbnail { display: block; width: 96px; height: 64px; object-fit: contain; border: 1px solid var(--border-color); border-radius: 8px; margin-top: 6px; }
.admin-thumbnail[hidden], fieldset.language-panel[hidden] { display: none; }
.language-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; }
.language-tabs button { padding: 12px 18px; border: 1px solid var(--border-color); color: var(--body-fg); background: var(--surface); cursor: pointer; font-weight: 650; }
.language-tabs button[aria-selected="true"] { color: #132238; background: #D9C08F; border-color: #B08D4F; box-shadow: inset 0 -3px #B08D4F; }
.language-panel .flex-container { flex-wrap: wrap; }
.language-panel .tox-tinymce { width: 100%; max-width: 950px; min-width: 0; }
.language-panel textarea { min-height: 180px; }
@media (max-width: 767px) { #content { padding: 16px; } #header { padding: 16px; } .college-brand { font-size: 16px; } .language-tabs button { flex: 1 1 40%; padding: 10px; } .aligned .form-row > div { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
