:root {
  color-scheme: light;
  --background: #f6f8fc;
  --surface: #fff;
  --tint: #ebf2fd;
  --tint-strong: #dce9ff;
  --ink: #161e2d;
  --muted: #536178;
  --navy: #183b80;
  --navy-dark: #142d62;
  --action: #2659ae;
  --line: #e0e6f0;
  --control-line: #bac7da;
  --success: #1e755a;
  --warning: #765316;
  --warning-bg: #fff6e5;
  --radius: 8px;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 0; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button { border: 0; }
a { color: var(--action); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
#main:focus, h1:focus { outline: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  background: var(--surface);
  padding: 12px 16px;
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(100% - 64px, 1168px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  max-width: 100%;
  padding-block: 13px;
  color: var(--navy);
  text-decoration: none;
}
.brand img { display: block; flex: none; width: 58px; height: auto; }
.brand-text { min-width: 0; display: grid; gap: 3px; line-height: 1.3; text-transform: uppercase; }
.brand-university { font-size: 13px; font-weight: 600; letter-spacing: .035em; }
.brand-name { font-size: 20px; font-weight: 700; }
.main-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  column-gap: 32px;
  border-top: 1px solid var(--line);
}
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-block: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:is([aria-current="page"], :focus-visible) { color: var(--navy); }
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--action);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}
.main-nav a:is([aria-current="page"], :focus-visible)::after { transform: scaleX(1); }
@media (hover: hover) {
  .main-nav a:hover { color: var(--navy); }
  .main-nav a:hover::after { transform: scaleX(1); }
}
.status-button {
  justify-self: end;
  min-height: 44px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
}
.status-button:hover { background: var(--tint); color: var(--navy); }
.status-button .icon { color: var(--navy); width: 18px; height: 18px; }
.connection { display: inline-flex; align-items: center; gap: 7px; }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.connection[data-state="ready"] { color: var(--success); }
.connection[data-state="offline"] { color: var(--warning); }

#main { width: 100%; flex: 1; }
.view { width: min(100% - 64px, 1168px); margin-inline: auto; padding-block: 48px 44px; }
.chat-view { max-width: 960px; }
.page-intro { margin-bottom: 26px; }
.page-intro h1 {
  color: var(--navy-dark);
  font-size: clamp(28px, 4vw, 39px);
  line-height: 1.25;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.page-intro p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.button, .primary-button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
}
.button-outline { border: 1px solid var(--line); color: var(--navy); background: var(--surface); }
.button-outline:hover { border-color: var(--control-line); background: var(--tint); }
.primary-button { background: var(--navy); color: var(--surface); }
.primary-button:hover, #send:hover { background: var(--navy-dark); }
button, .main-nav a { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }

.chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chat-header h2 { color: var(--navy-dark); font-size: 15px; flex: 1; }
.chat-header .button .icon { width: 16px; height: 16px; }
.person-initial {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--navy);
  background: var(--tint);
  border-radius: var(--radius);
}
.assistant-symbol { width: 26px; height: 26px; color: var(--navy); }
.welcome-symbol { display: block; width: clamp(48px, 8vw, 80px); height: auto; margin-bottom: 15px; }
.notice { margin: 12px 20px 0; padding: 10px 13px; border-radius: var(--radius); color: var(--warning); background: var(--warning-bg); font-size: 13px; }

#messages {
  min-height: 275px;
  height: clamp(275px, calc(100svh - 515px), 480px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 18%, #f4f8ff 0, var(--surface) 68%);
  outline-offset: -3px;
}
.welcome { display: grid; justify-items: center; align-content: center; min-height: 100%; text-align: center; }
.welcome h3 { color: var(--navy-dark); font-size: clamp(20px, 3vw, 25px); letter-spacing: -.025em; text-wrap: balance; }
.welcome p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.suggestions { width: min(100%, 735px); margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.suggestions button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  text-align: left;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-dark);
}
.suggestions button:hover { background: var(--tint); border-color: var(--control-line); }
.suggestions .icon { width: 17px; height: 17px; color: var(--action); }
.suggestions .suggestion-arrow { width: 14px; height: 14px; color: var(--muted); margin-left: auto; }

.chat-form { padding: 14px 20px 13px; border-top: 1px solid var(--line); }
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--control-line);
  background: var(--surface);
  font-size: 13px;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  padding: 8px;
}
.composer:focus-within { border-color: var(--action); box-shadow: 0 0 0 2px var(--tint-strong); }
.composer textarea {
  flex: 1;
  width: 0;
  min-height: 50px;
  max-height: 180px;
  padding: 6px 7px;
  resize: vertical;
  border: 0;
  background: transparent;
  font-size: 15px;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder, .search-field input::placeholder { color: var(--muted); opacity: 1; }
#send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
  background: var(--navy);
  color: var(--surface);
  border-radius: var(--radius);
}
.composer-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.message { width: fit-content; max-width: min(100%, 740px); margin-bottom: 18px; overflow-wrap: anywhere; }
.message:last-child { margin-bottom: 0; }
.message.user { margin-left: auto; max-width: min(90%, 680px); }
.message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--navy-dark); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.message.user .message-meta { justify-content: flex-end; }
.message-mode { color: var(--muted); font-size: 11px; font-weight: 400; background: var(--background); border-radius: 4px; padding: 2px 7px; }
.message-body { white-space: pre-wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.message.user .message-body { background: var(--tint); border-color: transparent; }
.message-markdown { white-space: normal; }
.message-markdown :where(p, h1, h2, h3, h4, h5, h6, ul, ol, pre, blockquote, hr) { margin-block: 0; }
.message-markdown > * + * { margin-block-start: .7em; }
.message-markdown :where(h1, h2, h3, h4, h5, h6) { color: var(--navy-dark); font-size: 1.15em; line-height: 1.4; }
.message-markdown :where(ul, ol) { padding-inline-start: 1.5em; }
.message-markdown li + li, .message-markdown li > * + * { margin-block-start: .25em; }
.message-markdown blockquote { padding-inline-start: .8em; border-inline-start: 3px solid var(--control-line); color: var(--muted); }
.message-markdown code { padding: .1em .25em; border-radius: 4px; background: var(--background); font-size: .9em; }
.message-markdown pre { max-width: 100%; overflow-x: auto; padding: .65em; border-radius: var(--radius); background: var(--background); }
.message-markdown pre code { padding: 0; }
.message-markdown table { width: 100%; border-collapse: collapse; text-align: left; }
.message-markdown :where(th, td) { padding: .35em .5em; border: 1px solid var(--line); }
.message-markdown th { background: var(--tint); }
.thinking { color: var(--muted); }
.citation { display: inline-block; min-height: 24px; padding: 3px 7px; margin-inline: 2px; border-radius: 4px; color: var(--navy); background: var(--tint); font-size: 12px; font-weight: 600; vertical-align: baseline; }
.citation:hover { background: var(--tint-strong); }
.message-sources { display: inline-block; color: var(--navy); background: transparent; padding: 8px 0; min-height: 44px; font-size: 12px; font-weight: 600; }
.message-sources:hover { text-decoration: underline; text-underline-offset: .18em; }

.directory-intro { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.directory-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px) minmax(0, 190px); gap: 12px; }
.directory-tools select { min-height: 48px; }
:is(.directory-tools, .directory-pagination, .graph-tools) select {
  appearance: none;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23536178' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 14px;
  text-overflow: ellipsis;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 0;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
}
.search-field:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.search-field input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block: 22px 14px; }
#directory-count { color: var(--muted); font-size: 13px; font-weight: 600; scroll-margin-top: 14px; }
.view-controls { display: inline-flex; padding: 3px; gap: 3px; background: var(--tint); border-radius: var(--radius); }
.view-controls button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.view-controls button:hover { color: var(--navy); background: var(--background); }
.view-controls button[aria-pressed="true"] { color: var(--navy); background: var(--surface); border-color: var(--line); }
.view-controls .icon { width: 16px; height: 16px; }
.empty-state { grid-column: 1 / -1; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--surface); color: var(--muted); }
.empty-state .button { margin: 12px auto 0; display: flex; width: fit-content; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lecturer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.lecturer-card:focus-within, .lecturer-card:hover { border-color: var(--control-line); }
.lecturer-top { display: flex; align-items: flex-start; gap: 11px; }
.person-initial { width: 44px; height: 44px; font-size: 14px; font-weight: 700; }
.lecturer-card h3 { color: var(--navy-dark); font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.lecturer-position { margin-top: 4px; color: var(--muted); font-size: 12px; }
.lecturer-unit { margin-top: 14px; color: var(--muted); font-size: 13px; margin-bottom: auto; overflow-wrap: anywhere; }
.card-counts { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 13px; }
.card-counts span { padding: 4px 8px; border-radius: 4px; color: var(--navy); background: var(--tint); font-size: 11px; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; border-top: 1px solid var(--line); }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 0; border-radius: 4px; color: var(--navy); background: transparent; font-size: 12px; font-weight: 600; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: .18em; }
.text-button .icon { width: 15px; height: 15px; }

.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-scroll table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 13px; text-align: left; }
.table-scroll :is(th, td) { padding: 6px 14px; border-bottom: 1px solid var(--line); }
.table-scroll thead th { padding-block: 13px; background: var(--tint); color: var(--navy-dark); font-size: 12px; white-space: nowrap; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll tbody tr:hover { background: var(--background); }
.table-scroll tbody th { color: var(--navy-dark); }
.table-scroll .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll td .card-actions { justify-content: flex-end; border: 0; flex-wrap: nowrap; white-space: nowrap; }

.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
  font-size: 13px;
}
.directory-page-size, .directory-page-navigation, .directory-page-position { display: flex; align-items: center; gap: 8px; }
.directory-page-size { color: var(--muted); }
.directory-page-navigation { flex-wrap: wrap; }
.directory-pagination select { width: auto; min-width: 54px; color: var(--ink); font-variant-numeric: tabular-nums; }
.directory-pagination .button:disabled { cursor: default; background: var(--surface); border-color: var(--line); }
.directory-pagination select:disabled { cursor: default; }
#directory-page-summary { white-space: nowrap; }

.site-footer {
  width: 100%;
  padding: 10px 16px;
  border-top: 1px solid var(--navy-dark);
  background: var(--navy);
  color: var(--surface);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

dialog {
  width: min(100% - 32px, 695px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 55px rgb(20 45 98 / 17%);
}
dialog::backdrop { background: rgb(15 27 50 / 44%); }
dialog h2 { color: var(--navy-dark); font-size: clamp(19px, 3vw, 24px); padding-right: 42px; margin-bottom: 12px; }
.close-dialog { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: var(--radius); background: transparent; color: var(--navy); }
.close-dialog:hover { background: var(--tint); }
.profile-subtitle { color: var(--muted); font-size: 13px; }
.profile-contacts { display: grid; gap: 3px; margin: 14px 0; padding: 13px; border-radius: var(--radius); background: var(--background); font-size: 13px; overflow-wrap: anywhere; }
.profile-source { font-size: 13px; font-weight: 600; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 16px 12px; }
.profile-tabs button { min-height: 44px; padding: 6px 10px; border-radius: 6px; background: var(--background); color: var(--navy); font-size: 12px; font-weight: 600; }
.profile-tabs button:hover, .profile-tabs button[aria-pressed="true"] { background: var(--tint-strong); }
.profile-record { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.profile-record small { display: block; margin-bottom: 4px; color: var(--muted); }
.profile-ask { margin-top: 18px; }
.status-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.status-help { margin-block: 10px; color: var(--warning); font-size: 13px; }
#reindex { margin-top: 14px; }
.source-list { display: grid; gap: 10px; }
.source-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; }
.source-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy-dark); }
.source-badge { border-radius: 4px; padding: 2px 6px; color: var(--navy); background: var(--tint); font-weight: 600; }
.source-card p { margin: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.source-card details, .source-card > a { font-size: 13px; }
.source-card summary { color: var(--navy); cursor: pointer; min-height: 34px; padding-top: 5px; }

.graph-dialog { width: min(100% - 32px, 1050px); }
.graph-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.graph-tools label { font-size: 12px; color: var(--muted); font-weight: 600; }
.graph-tools select { display: block; margin-top: 4px; color: var(--ink); font-weight: 400; }
.graph-shell { border: 1px solid var(--line); border-radius: var(--radius); }
.graph-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.graph-meta, .graph-detail { padding: 10px 12px; background: var(--background); font-size: 12px; color: var(--muted); }
.graph-legend { display: flex; gap: 12px; }
.graph-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--navy); }
.graph-legend span:last-child::before { background: var(--action); }
.graph-navigation { display: flex; flex-wrap: wrap; gap: 6px; }
.graph-navigation .button { min-width: 44px; }
.graph-navigation .button .icon { width: 16px; height: 16px; }
.graph-navigation .button:disabled { cursor: default; }
.graph-scroll {
  height: min(460px, 45dvh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  user-select: none;
}
.graph-scroll:focus-visible { outline-offset: -3px; }
.graph-scroll.is-interactive { cursor: grab; }
.graph-scroll.is-dragging, .graph-scroll.is-dragging .graph-node { cursor: grabbing; }
#network { display: block; width: 100%; }
.graph-node { cursor: pointer; }
.graph-node text { font-size: 14px; fill: var(--navy-dark); }
.graph-node:hover text, .graph-node:focus text { text-decoration: underline; }
#toast { position: fixed; z-index: 1; right: 16px; bottom: 16px; max-width: min(440px, 100% - 32px); padding: 12px 16px; color: var(--surface); background: var(--navy-dark); border-radius: var(--radius); font-size: 13px; }

@media (max-width: 950px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-inner, .view { width: calc(100% - 32px); }
  .header-inner { column-gap: 8px; }
  .brand { gap: 10px; padding-block: 9px; }
  .brand img { width: 42px; }
  .brand-university { font-size: 11px; }
  .brand-name { font-size: 16px; }
  .connection { display: none; }
  .status-button { width: 44px; justify-content: center; padding: 0; }
  .main-nav { column-gap: 22px; }
  .main-nav a { min-height: 44px; font-size: 13px; }
  .view { padding-block: 29px 32px; }
  .page-intro { margin-bottom: 18px; }
  #messages { padding: 18px 14px; }
  .suggestions { max-width: 355px; grid-template-columns: 1fr; gap: 7px; margin-top: 15px; }
  .suggestions button { min-height: 44px; }
  .welcome-symbol { margin-bottom: 6px; }
  .chat-header, .chat-form { padding-inline: 12px; }
  .notice { margin-inline: 12px; }
  .directory-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .search-field { grid-column: 1 / -1; }
  .directory-intro { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .brand-university { font-size: 10px; }
  .brand-name { font-size: 14px; }
  .main-nav { column-gap: 16px; }
  .main-nav a { font-size: 12px; }
  .chat-header { gap: 8px; padding-block: 8px; }
  .chat-view { padding-top: 22px; }
  .chat-view .page-intro p { font-size: 14px; }
  .chat-header .button { width: 44px; padding: 0; }
  .chat-header .button span { display: none; }
  #messages { height: 285px; padding-block: 12px; }
  .welcome p { font-size: 13px; }
  .suggestions { margin-top: 11px; }
  .composer-note { display: none; }
  .composer textarea, .search-field input, select { font-size: 16px; }
  .directory-grid { grid-template-columns: 1fr; gap: 10px; }
  .directory-heading { margin-top: 17px; }
  .directory-page-navigation { width: 100%; justify-content: space-between; gap: 4px; font-size: 12px; }
  .directory-page-position { gap: 4px; }
  .directory-page-navigation .button { padding-inline: 6px; font-size: inherit; }
  .view-controls button { padding-inline: 7px; }
  dialog { padding: 20px 15px; }
  .graph-tools { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .directory-page-position select {
    padding-inline: 8px 22px;
    background-position: right 8px center;
    background-size: 12px;
  }
}
@media (forced-colors: active) {
  :is(.directory-tools, .directory-pagination, .graph-tools) select { appearance: auto; background-image: none; padding-inline-end: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
