/* Museum catalogue. Loaded last; existing behaviour and theme controls stay intact. */
:root {
  --bg: #faf9f6;
  --surface: #faf9f6;
  --surface-soft: #f1f0eb;
  --input: #fffefa;
  --ink: #262522;
  --muted: #75736d;
  --line: #dcd9d1;
  --hover: #efede7;
  --red: #a03933;
  --accent-text: #99362f;
  --accent-soft: #f3e8e3;
  --shadow: none;
  --catalogue-width: 1280px;
  --catalogue-gutter: 38px;
  --catalogue-header: 84px;
  --catalogue-radius: 2px;
  --catalogue-serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #1d1e1c;
  --surface: #1d1e1c;
  --surface-soft: #272825;
  --input: #222320;
  --ink: #eceae3;
  --muted: #aaa89f;
  --line: #41423b;
  --hover: #2d2e29;
  --red: #c67b6a;
  --accent-text: #e1a18e;
  --accent-soft: #362b26;
  --shadow: none;
  color-scheme: dark;
}
html { scroll-padding-top: calc(var(--catalogue-header) + 18px); scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--ink); }
button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
button, input, select, textarea { font-family: inherit; }
button:disabled { cursor: not-allowed; }
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.layout { display: block; min-height: 100vh; }
.layout > aside {
  position: sticky;
  top: 0;
  inset-inline: auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr) auto;
  align-items: center;
  gap: 26px;
  width: 100%;
  min-height: var(--catalogue-header);
  padding: 16px max(var(--catalogue-gutter), calc((100vw - var(--catalogue-width))/2));
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}
.layout > aside.is-scrolled {
  background: var(--surface);
  border-bottom-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
}
.brand {
  display: flex;
  gap: 13px;
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .3px;
  line-height: 1.07;
}
.brand .monogram, .side-label { display: none; }
.brand small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 1.7px; color: var(--muted); font-weight: 400; }
.layout > aside #nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
  width: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
#nav a, #nav a.active, #nav a:hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transform: none;
}
#nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}
#nav a.active, #nav a:hover { color: var(--ink); }
#nav a:is(.active,:hover,:focus-visible)::after { transform: scaleX(1); }
#nav .icon, #nav > a > .ui-icon { display: none; }
#nav .nav-count { margin: 0; }
.layout > aside .side-bottom {
  grid-column: 3;
  grid-row: 1;
  position: static;
  display: flex;
  align-items: center;
  gap: 15px;
  width: auto;
  margin: 0;
  padding: 0;
}
.layout > aside #theme-toggle, .layout > aside #admin-button {
  width: auto;
  max-width: 235px;
  min-height: 36px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.layout > aside #theme-toggle { color: var(--muted); }
.layout > aside #theme-toggle:hover, .layout > aside #admin-button:hover { color: var(--red); background: transparent; }
.layout > aside #theme-toggle .ui-icon { width: 16px; height: 16px; }
.profile-menu { position: relative; }
.profile-menu > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13px; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary::after { content: "⌄"; color: var(--muted); font-size: 15px; }
.profile-menu > :is(.profile-dropdown,.profile-actions,.profile-panel), .profile-menu > div {
  position: absolute;
  inset: calc(100% + 17px) 0 auto auto;
  z-index: 90;
  width: 238px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--catalogue-radius);
  box-shadow: none;
}
.profile-menu :is(a,button) { display: flex; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: 13px; text-align: left; color: var(--ink); }
.profile-menu :is(a,button):last-child { border-bottom: 0; }
.profile-menu :is(a,button):hover { color: var(--red); }
.workspace { width: 100%; margin: 0; background: none; }
.workspace > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  height: auto;
  padding: 9px max(var(--catalogue-gutter), calc((100vw - var(--catalogue-width))/2));
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.workspace > header > span { max-width: none; color: var(--muted); font-size: 11px; letter-spacing: .35px; }
.header-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin: 0 0 0 auto; width: auto; }
.header-controls select { width: auto; max-width: 245px; min-height: 28px; padding: 3px 23px 3px 0; border: 0; border-radius: 0; background-color: transparent; font-size: 11px; }
.header-controls .theme-toggle { min-height: 26px; padding: 3px 0; border: 0; background: none; border-radius: 0; font-size: 11px; color: var(--muted); }
.header-controls .ui-icon { width: 14px; height: 14px; }
.live-sync { width: auto; gap: 11px; font-size: 10px; }
.live-refresh { padding: 3px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--muted); font-size: 10px; }
.live-refresh:hover { color: var(--ink); background: none; }
main { width: 100%; max-width: calc(var(--catalogue-width) + 2*var(--catalogue-gutter)); margin: 0 auto; padding: 46px var(--catalogue-gutter) 84px; min-height: calc(100vh - 265px); }
.heading { align-items: flex-end; gap: 28px; margin: 0 0 39px; }
.heading h1, .museum-welcome h1 {
  margin: 0;
  font-family: var(--catalogue-serif);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 400;
  letter-spacing: -1.7px;
  line-height: 1.1;
}
.heading .subtitle { max-width: 640px; margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 9px; line-height: 1.5; font-weight: 400; letter-spacing: 1.8px; }
.heading .date-label { font-size: 11px; }
h2, h3 { font-weight: 500; letter-spacing: -.25px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
/* Keep geometry out of :hover resets so specialised sections keep their spacing. */
.card, .request-card, .chat-promo, .monitor, .account-auth {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.btn, .btn.secondary, .btn.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 41px;
  padding: 10px 19px;
  border: 1px solid var(--red);
  border-radius: var(--catalogue-radius);
  background: var(--red);
  color: var(--bg);
  box-shadow: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}
.btn:hover { background: var(--accent-text); border-color: var(--accent-text); box-shadow: none; transform: none; }
.btn:active { transform: none; }
.btn.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.btn.secondary:hover { border-color: var(--ink); background: var(--hover); }
.btn.danger { border-color: transparent; background: transparent; color: var(--accent-text); }
.btn.danger:hover { border-color: var(--line); background: var(--accent-soft); }
.btn .ui-icon { width: 15px; height: 15px; }
.theme-toggle, .admin-link, .chip, .badge, .notice, .global-banner, .choices, .rich-editor, .editor-tools, .editor-tools button { border-radius: var(--catalogue-radius); box-shadow: none; }
.field { gap: 9px; margin-bottom: 23px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.field > span { display: block; }
.field .required { display: inline; margin: 0 0 0 2px; color: var(--red); }
input, textarea, select, .request-card input, .request-card select, .request-card textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--catalogue-radius);
  background-color: var(--input);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
}
input:focus, textarea:focus, select:focus, .request-card :is(input,select,textarea):focus { border-color: var(--muted); outline: none; box-shadow: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .request-card :is(input,select,textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea, .request-card textarea { min-height: 138px; line-height: 1.7; }
.help { color: var(--muted); font-size: 11px; line-height: 1.7; }
.notice { padding: 13px 16px; border-left: 2px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 23px; padding: 3px 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; font-weight: 400; }
.badge.new { color: var(--accent-text); border-color: color-mix(in srgb,var(--red) 35%,var(--line)); background: transparent; }
.badge.done, :root[data-theme=dark] .badge.done { color: var(--muted); background: transparent; border-color: var(--line); }
.nav-count { padding: 1px 4px; border-radius: 0; background: transparent; color: var(--red); font-size: 10px; }
.list-tabs, .detail-tabs, .account-tabs, .central-tabs, .settings-subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  width: auto;
  margin: 0 0 29px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
:is(.list-tabs,.detail-tabs,.account-tabs,.central-tabs,.settings-subnav) :is(button,a) { min-height: 42px; padding: 11px 0; margin-bottom: -1px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
:is(.list-tabs,.detail-tabs,.account-tabs,.central-tabs,.settings-subnav) :is(.active,.selected,[aria-selected=true],[aria-current=page]) { border-bottom-color: var(--ink); color: var(--ink); background: transparent; box-shadow: none; }
:is(.list-tabs,.detail-tabs,.account-tabs,.central-tabs,.settings-subnav) :is(button,a):hover { color: var(--ink); background: transparent; }
.list-tabs b, .detail-tabs b { margin-left: 6px; font-size: 10px; font-weight: 400; color: var(--muted); }
.work-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin: -5px 0 29px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.work-overview > :is(div,a,span) { display: inline-flex; align-items: baseline; gap: 8px; }
.work-overview strong { color: var(--ink); font-size: 21px; font-weight: 400; }
.work-overview :is(.attention,.is-overdue) strong { color: var(--red); }
.desk-tools, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin: 0 0 24px; }
.desk-tools input, .toolbar input { max-width: 330px; min-height: 38px; padding: 8px 10px; background-color: transparent; font-size: 12px; }
.desk-tools select, .toolbar select { width: auto; min-height: 38px; max-width: 200px; padding: 8px 25px 8px 10px; background-color: transparent; font-size: 12px; }
.desk-tools > .btn { margin-left: auto; }
.desk-tools details { font-size: 12px; color: var(--muted); }
.desk-tools details summary { cursor: pointer; }
.ticket-table-head, .ticket-row {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) minmax(130px,180px) 133px 23px;
  align-items: center;
  gap: 21px;
  width: 100%;
  text-align: left;
}
.ticket-table-head { min-height: 37px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .7px; }
.ticket-row { position: relative; min-height: 86px; padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; line-height: 1.55; }
.ticket-row:hover { background: var(--surface-soft); transform: none; }
.ticket-row :is(.ticket-number,.ticket-id), .ticket-row > .help { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ticket-row :is(.ticket-subject,.ticket-title) { min-width: 0; color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
.ticket-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.6; }
.ticket-row :is(.ticket-department,.ticket-dept) { color: var(--muted); font-size: 11px; }
.ticket-row :is(.ticket-arrow,.row-arrow) { color: var(--muted); font-size: 17px; text-align: right; transition: color 180ms ease; }
.ticket-row:hover :is(.ticket-arrow,.row-arrow) { color: var(--red); transform: none; }
.ticket-row > .badge { justify-self: start; }
.deadline-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.deadline-badge { padding: 1px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 9px; }
.deadline-badge + .deadline-badge::before { content: "·"; margin-right: 5px; }
.deadline-badge.deadline-overdue, .deadline-badge.deadline-soon { color: var(--accent-text); background: transparent; }
.deadline-filters { margin: 0 0 22px; }
.deadline-filters .help { max-width: 720px; font-size: 10px; }
.chip { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--catalogue-radius); background: transparent; font-size: 11px; }
.chip.selected { border-color: var(--muted); background: transparent; color: var(--ink); }
.pagination { padding: 23px 0 0; color: var(--muted); font-size: 10px; }
.pagination-info, .pagination-info label { gap: 9px; }
.pagination select { min-width: 55px; min-height: 31px; padding: 4px 7px; background: transparent; font-size: 11px; }
.pagination-buttons { gap: 4px; }
.pagination-buttons button, .pagination-buttons button[aria-current=page] { min-width: 31px; min-height: 31px; padding: 5px 8px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 11px; }
.pagination-buttons button[aria-current=page] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.pagination-buttons button:not(:disabled):hover { background: var(--hover); }
.empty { padding: 65px 18px; text-align: left; }
.empty .symbol { display: none; }
.empty h2 { margin: 0 0 14px; font-family: var(--catalogue-serif); font-size: 29px; font-weight: 400; }
.empty p { max-width: 420px; margin: 0 0 22px; font-size: 13px; }
.auth-shell { max-width: 440px; margin: 26px auto 70px; }
.auth-panel { padding: 0; background: transparent; border: 0; }
.auth-shell h1 { margin: 0 0 28px; font-family: var(--catalogue-serif); font-size: 43px; line-height: 1.15; font-weight: 400; letter-spacing: -1px; }
.auth-shell .btn { width: 100%; margin-top: 7px; }
.auth-shell .help { margin-top: 21px; }
.auth-shell .account-tabs { margin: 0 0 28px; gap: 26px; }
.auth-shell .field { margin-bottom: 22px; }
.password-input { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line); border-radius: var(--catalogue-radius); background: var(--input); }
.password-input:focus-within { outline: 2px solid var(--red); outline-offset: 3px; border-color: var(--muted); }
.password-input input, .password-input input:focus { flex: 1; min-width: 0; width: 0; min-height: 44px; padding: 11px 13px; border: 0; outline: none; background: transparent; }
.password-input > button { display: inline-flex; flex: 0 0 43px; align-items: center; justify-content: center; width: 43px; min-height: 44px; padding: 9px; border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.password-input > button:hover { color: var(--ink); background: var(--hover); }
.password-input svg { width: 18px; height: 18px; stroke-width: 1.4; }
.auth-switch { display: block; width: fit-content; margin: 23px auto 0; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.auth-switch:hover { color: var(--red); border-bottom-color: var(--red); }
.quiet-link { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; color: var(--muted); font-size: 12px; }
.quiet-link:hover { color: var(--red); }
.quiet-link .ui-icon { width: 14px; height: 14px; }
.auth-shell .quiet-link { display: flex; justify-content: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; }
.quiet-button:hover { color: var(--red); background: transparent; }
.profile-page { max-width: 760px; }
.profile-menu > summary::after { display: none; }
.profile-menu > summary > span { margin-left: 3px; color: var(--muted); font-size: 13px; }
.profile-popover { animation: catalogue-page-in 180ms ease both; }
.footer-copy { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.work-overview b { margin-left: 2px; color: var(--ink); font-size: 21px; font-weight: 400; }
.desk-tools > .list-tabs { flex: 1; margin: 0; border: 0; }
.desk-search { width: 280px; max-width: 100%; }
.desk-search input { width: 100%; }
.list-tabs button > span { margin-left: 5px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.desk-filters { margin: -7px 0 23px; }
.desk-filters > summary { width: fit-content; padding: 0 0 10px; color: var(--muted); font-size: 11px; }
.desk-filters > .field { width: min(250px,100%); margin: 8px 0 16px; }
.desk-filters > .field select { min-height: 36px; padding: 8px 10px; font-size: 11px; }
.desk-filters .field > span { font-size: 10px; }
.desk-filters .action-group { margin: 0 0 15px; }
.list-bottom { display: flex; align-items: center; justify-content: space-between; gap: 23px; flex-wrap: wrap; margin-top: 33px; }
.list-bottom a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.list-bottom a:hover { color: var(--red); }
.list-bottom .ui-icon { width: 14px; height: 14px; }
.disclosure > summary { cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "+"; display: inline-block; width: 17px; margin-right: 3px; color: var(--muted); font-size: 14px; line-height: 1; font-weight: 400; }
.disclosure[open] > summary::before { content: "−"; }
.request-extra > .field-grid { margin-bottom: 23px; }
.ticket-description { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ticket-description h3 { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .2px; }
.ticket-description p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-quick-info { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 0 27px; color: var(--muted); font-size: 11px; }
.ticket-quick-info b { color: var(--ink); font-weight: 400; }
.ticket-quick-info .deadline-badges { margin-top: 0; }
.ticket-conversation > h3 { margin: 0 0 18px; font-size: 13px; font-weight: 400; }
.ticket-conversation > .messages { min-height: 100px; max-height: 460px; height: auto; padding: 0 0 8px; }
.ticket-detail-top > .field { flex: 0 0 155px; min-width: 155px; margin: 0; font-size: 10px; }
.ticket-detail-top > .field select { min-height: 36px; padding: 8px 10px; font-size: 11px; background: transparent; }
.ticket-meta, .ticket-administration { padding: 17px 0; border-bottom: 1px solid var(--line); }
.ticket-meta > summary, .ticket-administration > summary { font-size: 12px; color: var(--muted); }
.ticket-meta > .ticket-fields { margin-top: 8px; }
.ticket-meta .ticket-field:last-child { border-bottom: 0; }
.ticket-administration #assignment-form { margin: 16px; }
.ticket-administration #assignment-form .field { max-width: 100%; margin-bottom: 16px; }
.ticket-administration #assignment-form select { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.drawer-backdrop { width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; cursor: default; }
.drawer-top :is(#close-ticket-drawer,.close-ticket-drawer) { width: auto; min-width: 75px; height: 32px; padding: 6px 0 6px 12px; font-size: 11px; color: var(--muted); }
.drawer-top :is(#close-ticket-drawer,.close-ticket-drawer):hover { color: var(--ink); background: transparent; }
.loading-state { margin: 25px 0; color: var(--muted); font-size: 12px; }
.account-auth { grid-template-columns: minmax(0,1fr); max-width: 440px; gap: 28px; margin: 24px auto 65px; }
.account-auth h2 { font-family: var(--catalogue-serif); font-size: 35px; font-weight: 400; }
.account-summary { margin-bottom: 29px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.account-summary h2 { font-family: var(--catalogue-serif); font-size: 27px; font-weight: 400; }
.password-settings { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.password-settings summary { font-size: 12px; font-weight: 400; }
.password-settings form { margin-bottom: 10px; }
.request-shell, .request-card { max-width: 760px; margin: 0 auto; padding: 0; }
.request-shell .heading { margin-bottom: 36px; }
.request-form { padding: 0; }
.request-form .field { margin-bottom: 24px; }
.request-form .field-grid { gap: 23px; }
.request-form .field-grid .field { margin-bottom: 0; }
.request-form > .field-grid { margin-bottom: 24px; }
.request-extra { margin: 4px 0 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.request-extra > summary { display: block; padding: 16px 0; cursor: pointer; color: var(--muted); font-size: 12px; }
.request-extra[open] > summary { padding-bottom: 23px; }
.request-extra > summary::marker { color: var(--red); }
.request-extra .field { margin-bottom: 23px; }
.request-subject { grid-template-columns: minmax(0,1fr) 180px; gap: 23px; margin-bottom: 24px; }
.request-subject :is(input,select) { min-height: 45px; }
.request-subject #custom-topic-field { grid-column: 1/-1; }
.request-step { margin: 0 0 31px; padding-top: 24px; border-top: 1px solid var(--line); }
.request-step legend { padding-right: 18px; font-size: 14px; font-weight: 400; }
.request-step legend b { width: auto; height: auto; margin-right: 9px; border: 0; border-radius: 0; font-size: 10px; color: var(--muted); background: none; }
.request-intro { margin-bottom: 30px; }
.request-intro h2 { font-family: var(--catalogue-serif); font-size: 35px; font-weight: 400; }
.request-card .form-bottom, .request-form .form-bottom { align-items: center; margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); }
.request-shortcuts { display: block; max-width: 760px; margin: 39px auto 0; }
.request-shortcuts .card { padding: 18px 0; border-top: 1px solid var(--line); }
.request-shortcuts strong { font-size: 13px; font-weight: 400; }
.request-shortcuts p { margin: 8px 0 0; font-size: 11px; }
.museum-welcome { display: none; }
.department-details { margin: 24px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.department-details summary { padding: 16px 0; font-size: 12px; font-weight: 400; }
.department-details[open] summary { margin-bottom: 0; border-bottom: 0; }
.department-details .department-overview { padding: 0; max-height: none; }
.department-overview { display: block; }
.department-overview .card { padding: 21px 0; border-top: 1px solid var(--line); }
.department-overview h3 { font-size: 15px; }
.monitor { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.monitor .eyebrow { display: none; }
.monitor-counts { gap: 22px; font-size: 11px; }
.monitor-counts strong { font-size: 24px; font-weight: 400; }
.stats { display: flex; gap: 28px; padding: 17px 0; margin-bottom: 27px; border-bottom: 1px solid var(--line); }
.stat { flex: 1; padding: 0; overflow: visible; }
.stat::after { display: none; }
.stat span { font-size: 10px; }
.stat strong { margin-top: 6px; font-size: 27px; font-weight: 400; }
.attention-toolbar { margin: 22px 0; padding: 0; }
.attention-toolbar h2 { font-size: 15px; }
.attention-toolbar .help { font-size: 10px; }
.settings-grid { display: block; margin: 0 0 32px; }
.settings-grid > .card { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); gap: 0 35px; padding: 25px 0; border-top: 1px solid var(--line); }
.settings-grid h2 { margin: 0 0 7px; font-size: 17px; }
.settings-grid .subtitle { grid-column: 1; margin: 0; font-size: 11px; }
.settings-grid .quick { grid-column: 2; padding: 9px 0; border-top: 0; font-size: 13px; }
.settings-grid .quick:first-of-type { grid-row: 1; }
.central-tabs { margin-bottom: 29px; gap: 25px; }
.settings-subnav { border: 0; margin: -12px 0 25px; gap: 21px; }
.management-list { display: block; }
.management-row, .management-list > .card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.management-row h3 { margin: 0 0 5px; font-size: 15px; font-weight: 400; }
.management-row .help { font-size: 11px; }
.management-row .btn { min-height: 33px; padding: 6px 11px; font-size: 11px; }
.management-row .action-group { flex-wrap: nowrap; }
.management-list > .empty { display: block; }
.list-search { margin: 0 0 21px; }
.list-search .field { max-width: 420px; }
.list-search .help { font-size: 10px; }
.section-catalog, .article-grid { display: block; padding: 0; }
.section-catalog .card, .article-grid > .article { display: block; min-height: 0; padding: 23px 0; border-bottom: 1px solid var(--line); background: transparent; }
.section-catalog .card:hover, .article:hover, .section-catalog a:hover, .request-shortcuts a:hover { transform: none; border-color: var(--line); }
.section-catalog strong { font-family: var(--catalogue-serif); font-size: 25px; font-weight: 400; }
.section-catalog small { margin-top: 8px; font-size: 11px; }
.article h2 { margin: 11px 0; font-family: var(--catalogue-serif); font-size: 28px; font-weight: 400; }
.article small { font-size: 10px; }
.article-grid .pagination { display: flex; }
.metric-section { padding: 28px 0; border-top: 1px solid var(--line); }
.metric-section h2 { font-family: var(--catalogue-serif); font-size: 29px; font-weight: 400; }
.metric-table th, .metric-table td { background: transparent; font-size: 12px; }
.metric-table th { font-weight: 400; }
.chat-layout { grid-template-columns: 240px minmax(0,1fr); gap: 32px; align-items: start; }
.conversations { max-height: none; padding: 0; border-right: 1px solid var(--line); padding-right: 23px; }
.conversations h3 { margin: 0 0 15px; font-size: 12px; font-weight: 400; }
.conversation { padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.conversation:hover { background: var(--surface-soft); }
.conversation.active { background: transparent; color: var(--red); }
.conversation strong { font-size: 13px; font-weight: 400; }
.conversation small { font-size: 10px; }
.conversation .badge { margin-top: 8px; font-size: 9px; }
.chat-panel { padding: 0; overflow: visible; border: 0; background: transparent; }
.chat-header { padding: 0 0 18px; background: transparent; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 400; }
.chat-header small { font-size: 10px; }
.chat-header .presence { font-size: 10px; }
.chat-actions { width: auto; }
.chat-actions .btn { min-height: 31px; padding: 6px 10px; font-size: 10px; }
.messages { height: 410px; padding: 24px 0; gap: 18px; background: transparent; }
.bubble { max-width: 87%; padding: 12px 14px; border: 0; border-radius: 2px; background: var(--surface-soft); font-size: 13px; box-shadow: none; }
.bubble.mine { border: 0; border-radius: 2px; background: var(--accent-soft); }
.bubble small { font-size: 9px; }
.compose { padding: 16px 0 0; gap: 12px; background: transparent; border-top: 1px solid var(--line); }
.compose textarea { min-height: 64px; }
.chat-intro { padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: 31px; }
.chat-intro h2 { font-family: var(--catalogue-serif); font-size: 29px; font-weight: 400; }
.chat-intro form { max-width: 820px; gap: 0 23px; }
.chat-intro form > .btn { min-height: 40px; margin-bottom: 23px; }
.presence-dot { width: 5px; height: 5px; }
.presence.is-online .presence-dot { box-shadow: none; background: #6c8971; }
.ticket-drawer {
  position: fixed;
  z-index: 110;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(760px,100vw);
  height: 100dvh;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  animation: catalogue-drawer-in 280ms cubic-bezier(.2,.7,.2,1) both;
}
.drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: rgb(20 21 18 / .32); backdrop-filter: blur(1px); animation: catalogue-backdrop-in 220ms ease both; }
.drawer-backdrop.closing, .drawer-backdrop.is-closing { animation: catalogue-backdrop-out 180ms ease forwards; }
.ticket-drawer.closing, .ticket-drawer.is-closing { animation: catalogue-drawer-out 220ms ease forwards; }
body.drawer-open { overflow: hidden; }
.ticket-drawer :is(#drawer-content,.drawer-content) { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 35px 38px; scrollbar-gutter: stable; }
.drawer-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 18px 35px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; }
.drawer-top button { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5px; border: 1px solid transparent; border-radius: 0; background: none; color: var(--ink); font-size: 22px; }
.drawer-top button:hover { background: var(--hover); }
.ticket-drawer .heading { margin: 27px 0 24px; }
.ticket-drawer .heading h1 { font-size: 32px; letter-spacing: -.8px; }
.ticket-drawer .heading .subtitle, .ticket-drawer .heading .date-label, .ticket-drawer .back { display: none; }
.ticket-drawer .ticket-detail { max-width: none; margin: 0; }
.ticket-drawer .ticket-detail-top { gap: 23px; padding-bottom: 24px; }
.ticket-detail-top h2 { font-family: var(--catalogue-serif); font-size: 30px; line-height: 1.25; font-weight: 400; }
.ticket-detail-top .section-label { font-size: 10px; }
.ticket-status { min-width: 150px; gap: 8px; }
.ticket-status > span:first-child { font-size: 10px; }
.ticket-status select { min-height: 35px; padding: 8px 10px; background: transparent; color: var(--ink); font-size: 11px; }
.ticket-fields { gap: 0 28px; }
.ticket-field { padding: 18px 0; }
.ticket-field dt { margin-bottom: 7px; font-size: 10px; letter-spacing: .2px; }
.ticket-field dd { font-size: 13px; line-height: 1.8; }
.ticket-delete-area { padding-top: 14px; }
.ticket-delete-area .help { font-size: 10px; }
.responsibility { align-items: flex-start; margin: 24px 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.responsibility h2 { margin-top: 0; font-size: 12px; font-weight: 400; }
.responsibility p { font-size: 13px; }
.responsibility form { min-width: 235px; }
.responsibility form .field { margin-bottom: 10px; font-size: 10px; }
.responsibility form select { min-height: 36px; padding: 8px 10px; font-size: 11px; }
.responsibility .btn { min-height: 33px; padding: 7px 10px; font-size: 10px; }
.ticket-lifecycle { margin: 24px 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.ticket-lifecycle strong { font-size: 12px; font-weight: 400; }
.ticket-lifecycle .btn { min-height: 35px; padding: 8px 12px; font-size: 11px; }
.ticket-timeline { margin: 0; padding: 0 0 0 17px; border-left: 1px solid var(--line); }
.ticket-timeline li { margin: 0 0 24px; padding: 0 0 0 6px; border: 0; border-radius: 0; background: transparent; }
.ticket-timeline li::before { left: -20px; top: 5px; width: 5px; height: 5px; background: var(--muted); }
.ticket-timeline li > div { align-items: baseline; gap: 16px; font-size: 11px; }
.ticket-timeline strong { font-weight: 500; }
.ticket-timeline time { flex-shrink: 0; font-size: 9px; }
.ticket-timeline p { margin-top: 8px; font-size: 13px; line-height: 1.75; }
.ticket-timeline :is(.timeline-status,.timeline-assignment) p { font-size: 11px; color: var(--muted); }
.deadline-detail { margin: 22px 0; padding: 13px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.deadline-detail > strong { font-size: 11px; font-weight: 500; }
.deadline-detail .help { font-size: 10px; }
.deadline-detail dd { font-size: 12px; }
.ticket-receipt { padding: 14px 16px; border-left: 2px solid var(--red); }
.ticket-receipt strong { font-size: 16px; font-weight: 400; }
.ticket-receipt p { margin-bottom: 0; font-size: 12px; }
.detail-tabs { margin-top: 25px; gap: 24px; }
.detail-tabs :is(button,a) { font-size: 11px; }
.divider { margin: 26px 0; }
.global-banner { max-width: var(--catalogue-width); width: auto; margin: 10px max(var(--catalogue-gutter), calc((100vw - var(--catalogue-width))/2)) 0; padding: 12px 15px; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: var(--surface-soft); font-size: 12px; }
.global-banner.warning { border-left-color: var(--red); }
.global-banner.info { border-left-color: var(--muted); }
.global-banner button { font-size: 19px; }
.notification { padding: 14px 0; font-size: 12px; }
.notification.unread { padding-left: 12px; border-left-width: 2px; }
.notification small { font-size: 10px; }
dialog { width: min(560px,calc(100vw - 32px)); padding: 29px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: none; }
dialog h2 { font-family: var(--catalogue-serif); font-size: 29px; font-weight: 400; }
dialog p { font-size: 13px; }
dialog::backdrop { background: rgb(20 21 18 / .32); }
#toast { z-index: 200; bottom: 24px; max-width: min(540px,calc(100vw - 32px)); padding: 13px 19px; border-radius: 2px; background: var(--ink); color: var(--bg); box-shadow: none; font-size: 12px; line-height: 1.6; }
.form-error, .error-box { padding: 12px 14px; border: 0; border-left: 2px solid var(--red); border-radius: 0; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; }
.choices { border-width: 1px 0; padding: 17px 0; }
.check { font-size: 12px; }
.check input { min-height: 18px; padding: 0; }
.editor-tools { border-radius: 0; background: transparent; }
.editor-tools button { border-radius: 1px; background: transparent; font-size: 12px; }
.rich-editor { padding: 20px; border-radius: 0; font-size: 14px; }
.rich-content img { border-radius: 1px; }
footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  padding: 20px max(var(--catalogue-gutter), calc((100vw - var(--catalogue-width))/2));
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
footer span:last-child { display: block; }
.museum-panorama { position: relative; width: 100%; height: 80px; margin: 0; overflow: hidden; background: var(--surface-soft); }
.museum-panorama img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: grayscale(.78) saturate(.5); opacity: .65; }
:root[data-theme=dark] .museum-panorama img { opacity: .36; }
footer .museum-panorama { flex: 0 0 100%; }
.museum-panorama figcaption { position: absolute; left: 17px; bottom: 12px; color: #fff; font-size: 10px; text-shadow: 0 1px 4px #0006; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; width: 100%; }
.page-enter { animation: catalogue-page-in 280ms ease both; }
@keyframes catalogue-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes catalogue-drawer-in { from { opacity: .7; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes catalogue-drawer-out { to { opacity: 0; transform: translateX(36px); } }
@keyframes catalogue-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes catalogue-backdrop-out { to { opacity: 0; } }
@media (max-width: 1190px) {
  :root { --catalogue-gutter: 30px; }
  .layout > aside { grid-template-columns: 155px minmax(0,1fr) auto; gap: 22px; }
  .layout > aside #nav { gap: 21px; }
  .layout > aside #nav a { font-size: 13px; }
  .layout > aside .side-bottom { gap: 11px; }
  .layout > aside #theme-toggle { font-size: 0; gap: 0; }
  .layout > aside #theme-toggle .ui-icon { width: 18px; height: 18px; }
  .ticket-table-head, .ticket-row { grid-template-columns: 72px minmax(0,1fr) 145px 118px 18px; gap: 17px; }
}
@media (max-width: 920px) {
  :root { --catalogue-gutter: 25px; --catalogue-header: 115px; }
  .layout > aside { grid-template-columns: minmax(120px,1fr) auto; gap: 10px 20px; padding-top: 16px; padding-bottom: 0; }
  .layout > aside #nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; gap: 26px; width: 100%; padding: 0; overflow-x: auto; }
  .layout > aside #nav a { min-height: 43px; font-size: 13px; }
  .layout > aside .side-bottom { grid-column: 2; grid-row: 1; margin: 0; }
  .layout > aside #admin-button { max-width: 240px; }
  .layout > aside #theme-toggle { font-size: 11px; gap: 7px; }
  .heading h1 { font-size: 44px; }
  .heading { margin-bottom: 31px; }
  main { padding-top: 34px; padding-bottom: 65px; }
  .ticket-table-head, .ticket-row { grid-template-columns: 66px minmax(0,1fr) 118px 115px 17px; gap: 13px; }
  .ticket-table-head { font-size: 8px; }
  .ticket-row { font-size: 12px; }
  .work-overview { gap: 19px; }
  .chat-layout { grid-template-columns: 210px minmax(0,1fr); gap: 24px; }
  .conversations { padding-right: 17px; }
}
@media (max-width: 700px) {
  :root { --catalogue-gutter: 20px; }
  .heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .heading h1 { font-size: 36px; letter-spacing: -1px; }
  .heading .subtitle { font-size: 13px; }
  .ticket-table-head { grid-template-columns: 57px minmax(0,1fr) 100px 16px; gap: 10px; }
  .ticket-table-head > :nth-child(3) { display: none; }
  .ticket-row { grid-template-columns: 57px minmax(0,1fr) 100px 16px; min-height: 89px; gap: 10px; padding: 17px 0; }
  .ticket-row > :nth-child(3) { display: none; }
  .ticket-row > .badge { grid-column: auto; }
  .ticket-row :is(.ticket-number,.ticket-id), .ticket-row > .help { font-size: 10px; }
  .ticket-row small { font-size: 9px; }
  .ticket-row > .badge { font-size: 9px; padding: 3px 5px; }
  .desk-tools { gap: 12px; }
  .desk-tools input { flex: 1; width: auto; min-width: 135px; }
  .desk-tools > .btn { min-height: 38px; padding: 8px 12px; }
  .desk-tools select { max-width: 170px; }
  .work-overview { gap: 12px 20px; font-size: 10px; }
  .work-overview strong { font-size: 19px; }
  .request-subject { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .request-subject #custom-topic-field { grid-column: 1; }
  .request-form .field-grid, .request-card .field-grid { grid-template-columns: minmax(0,1fr); }
  .request-form .field-grid .field { margin: 0; }
  .request-form > .field-grid { margin-bottom: 24px; }
  .request-card .form-bottom, .request-form .form-bottom { flex-direction: column; align-items: stretch; gap: 13px; }
  .request-intro { align-items: flex-start; flex-direction: column; }
  .request-intro h2 { font-size: 31px; }
  .request-shortcuts { margin-top: 30px; }
  .settings-grid > .card { display: block; padding: 22px 0; }
  .settings-grid .subtitle { margin-bottom: 14px; }
  .management-row, .management-list > .card { align-items: flex-start; flex-direction: column; gap: 15px; }
  .management-row .action-group { width: auto; flex-wrap: wrap; }
  .stats { flex-wrap: wrap; gap: 20px; }
  .stat { flex: 1 0 40%; }
  .attention-toolbar { flex-direction: column; align-items: stretch; gap: 15px; }
  .chat-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .conversations { max-height: 245px; overflow-y: auto; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation { padding: 13px 0; }
  .chat-intro form { grid-template-columns: minmax(0,1fr); }
  .chat-intro #recipient-notice, .chat-intro #recipient-online { grid-column: 1; }
  .messages { height: 365px; }
  .ticket-drawer :is(#drawer-content,.drawer-content) { padding: 0 23px 30px; }
  .drawer-top { min-height: 60px; padding: 13px 23px; }
  .ticket-detail-top { flex-direction: column; gap: 20px; }
  .ticket-detail-top > .field { flex: initial; width: 100%; min-width: 0; max-width: 250px; }
  .ticket-detail-top h2 { font-size: 27px; }
  .ticket-status { width: 100%; max-width: 250px; }
  .ticket-fields { grid-template-columns: minmax(0,1fr); }
  .responsibility { flex-direction: column; align-items: stretch; gap: 8px; }
  .responsibility form { min-width: 0; }
  .ticket-timeline li > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .central-tabs, .settings-subnav { gap: 9px 20px; }
  .central-tabs :is(a,button), .settings-subnav :is(a,button) { min-height: 36px; padding: 9px 0; font-size: 11px; }
  .pagination { gap: 18px; }
  .pagination-info { width: 100%; justify-content: space-between; }
  footer { padding-top: 17px; padding-bottom: 17px; }
}
@media (max-width: 480px) {
  :root { --catalogue-gutter: 18px; --catalogue-header: 111px; }
  .layout > aside { gap: 8px 15px; padding-top: 13px; }
  .brand { font-size: 15px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .layout > aside #nav { gap: 23px; }
  .layout > aside #nav a { font-size: 12px; }
  .layout > aside #theme-toggle { font-size: 0; gap: 0; }
  .layout > aside #admin-button { max-width: 152px; font-size: 11px; white-space: normal; }
  .profile-menu > summary { max-width: 150px; font-size: 11px; }
  .profile-menu > div { width: 220px; }
  .workspace > header { gap: 8px; align-items: flex-start; min-height: 36px; }
  .workspace > header > span { max-width: 145px; font-size: 9px; }
  .header-controls { flex: 1; gap: 9px; flex-wrap: wrap; }
  .header-controls select { max-width: 150px; font-size: 10px; }
  .header-controls .theme-toggle { font-size: 10px; }
  .live-sync { width: auto; gap: 8px; font-size: 9px; }
  .live-sync span { max-width: 135px; }
  .live-refresh { font-size: 9px; }
  main { padding-top: 29px; padding-bottom: 52px; }
  .heading h1 { font-size: 36px; }
  .heading { margin-bottom: 27px; }
  .ticket-table-head, .ticket-row { grid-template-columns: 47px minmax(0,1fr) 84px 11px; gap: 9px; }
  .ticket-row { font-size: 11px; }
  .ticket-row .badge { max-width: 84px; white-space: normal; font-size: 8px; }
  .ticket-table-head { font-size: 7px; letter-spacing: .4px; }
  .ticket-row small { margin-top: 4px; font-size: 8px; }
  .list-tabs, .detail-tabs, .account-tabs { gap: 20px; }
  .list-tabs :is(button,a), .detail-tabs :is(button,a) { font-size: 11px; }
  .desk-tools input { max-width: none; flex: 1 1 100%; }
  .desk-tools > .list-tabs { flex-basis: 100%; }
  .desk-search { width: 100%; }
  .desk-search input { width: 100%; min-width: 0; }
  .desk-tools select { flex: 1; max-width: none; }
  .desk-tools > .btn { margin-left: auto; }
  .auth-shell { margin-top: 18px; }
  .auth-shell h1 { font-size: 36px; }
  .compose { gap: 8px; }
  .compose .btn { padding: 10px 11px; font-size: 11px; }
  .ticket-drawer :is(#drawer-content,.drawer-content) { padding-right: 19px; padding-left: 19px; }
  .drawer-top { padding-right: 19px; padding-left: 19px; }
  .ticket-drawer .heading h1 { font-size: 28px; }
  .ticket-detail-top h2 { font-size: 25px; }
  .ticket-quick-info { align-items: flex-start; flex-direction: column; gap: 9px; }
  .bubble { max-width: 94%; }
}
/* Keep the editorial rhythm readable at ordinary laptop and phone scales. */
body { font-size: 16px; }
.brand { font-size: 18px; font-weight: 700; }
.layout > aside #nav a { font-size: 15px; }
.layout > aside #admin-button { font-size: 14px; }
.workspace > header { min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
.workspace > header > span, .header-controls select, .header-controls .theme-toggle { font-size: 12px; }
.live-sync, .live-refresh { font-size: 11px; }
main { padding-top: 36px; }
.field { font-size: 14px; }
input, textarea, select, .request-card :is(input,select,textarea) { font-size: 15px; }
.password-input input, .password-input input:focus { font-size: 15px; }
.help, .notice, .form-error, .error-box { font-size: 12px; }
.btn, .btn.secondary, .btn.danger { font-size: 14px; }
.quiet-link, .quiet-button, .auth-switch { font-size: 13px; }
.auth-shell .quiet-link { font-size: 12px; }
.profile-menu > summary, .profile-menu :is(a,button) { font-size: 14px; }
.heading .date-label { font-size: 12px; }
.desk-tools { display: flex; align-items: center; gap: 20px; }
.desk-tools > .list-tabs { flex: 0 1 auto; }
.desk-search { width: min(320px,100%); max-width: 320px; margin-left: auto; }
.desk-search input, .desk-tools input { font-size: 14px; }
.desk-search input { width: 100%; max-width: none; }
:is(.list-tabs,.detail-tabs,.account-tabs,.central-tabs,.settings-subnav) :is(button,a) { font-size: 14px; }
.list-tabs button > span { font-size: 12px; }
.desk-filters > summary { padding-bottom: 9px; font-size: 12px; }
.desk-filters .field > span { font-size: 12px; }
.desk-filters > .field select { font-size: 14px; }
.ticket-table-head { font-size: 11px; }
.ticket-row { min-height: 95px; font-size: 15px; }
.ticket-row .ticket-subject, .ticket-row .ticket-title { font-size: 15px; line-height: 1.55; }
.ticket-row small { margin-top: 5px; font-size: 12px; line-height: 1.65; }
.ticket-row :is(.ticket-number,.ticket-id), .ticket-row > .help { font-size: 12px; }
.ticket-row :is(.ticket-department,.ticket-dept) { font-size: 13px; }
.badge, .ticket-row .badge { min-height: 26px; padding: 4px 7px; font-size: 12px; }
.deadline-badge { font-size: 11px; }
.work-overview { font-size: 12px; }
.work-overview b { font-size: 23px; }
.chip { font-size: 12px; }
.pagination { font-size: 12px; }
.pagination select, .pagination-buttons button, .pagination-buttons button[aria-current=page] { font-size: 12px; }
.list-bottom a { font-size: 12px; }
.request-extra > summary, .request-form .help { font-size: 13px; }
.department-details summary { font-size: 13px; }
.management-row .help { font-size: 12px; }
.management-row .btn { min-height: 37px; font-size: 12px; }
.settings-grid .subtitle { font-size: 12px; }
.settings-grid .quick { font-size: 14px; }
.section-catalog small, .article small { font-size: 12px; }
.ticket-detail-top > .field { font-size: 12px; }
.ticket-detail-top > .field select { min-height: 40px; font-size: 14px; }
.ticket-description h3 { font-size: 12px; }
.ticket-description p { font-size: 15px; }
.ticket-quick-info { font-size: 13px; }
.ticket-conversation > h3 { font-size: 15px; }
.ticket-timeline li > div { font-size: 13px; }
.ticket-timeline time { font-size: 12px; }
.ticket-timeline p { font-size: 14px; }
.ticket-timeline :is(.timeline-status,.timeline-assignment) p { font-size: 12px; }
.ticket-meta > summary, .ticket-administration > summary { font-size: 13px; }
.ticket-field dt { font-size: 12px; }
.ticket-field dd { font-size: 14px; }
.drawer-top, .drawer-top :is(#close-ticket-drawer,.close-ticket-drawer) { font-size: 12px; }
.chat-header small, .chat-header .presence, .conversations h3, .conversation small { font-size: 12px; }
.conversation strong { font-size: 14px; }
.conversation .badge { font-size: 11px; }
.bubble { font-size: 14px; }
.bubble small { font-size: 12px; }
.footer-copy { font-size: 12px; }
@media (max-width: 920px) {
  .layout > aside #nav a { font-size: 14px; }
  .layout > aside #admin-button { font-size: 13px; }
  .ticket-row { font-size: 15px; }
}
@media (max-width: 700px) {
  .desk-tools { gap: 16px; }
  .desk-tools > .list-tabs { flex: 1 1 100%; }
  .desk-search { width: 100%; max-width: none; margin-left: 0; }
  .desk-search input { width: 100%; min-width: 0; }
  .ticket-table-head, .ticket-row { grid-template-columns: 58px minmax(0,1fr) 112px 16px; gap: 11px; }
  .ticket-table-head { font-size: 10px; }
  .ticket-row { min-height: 103px; font-size: 14px; }
  .ticket-row .ticket-subject, .ticket-row .ticket-title { font-size: 14px; }
  .ticket-row small, .ticket-row > .help, .ticket-row :is(.ticket-number,.ticket-id) { font-size: 12px; }
  .ticket-row .badge { max-width: 112px; font-size: 12px; }
  .ticket-quick-info { font-size: 12px; }
  .ticket-timeline time, .ticket-timeline :is(.timeline-status,.timeline-assignment) p { font-size: 12px; }
  .central-tabs :is(a,button), .settings-subnav :is(a,button) { font-size: 13px; }
}
@media (max-width: 480px) {
  .layout > aside #nav a { font-size: 14px; }
  .layout > aside #admin-button, .profile-menu > summary { font-size: 12px; }
  .workspace > header > span { font-size: 10px; }
  .header-controls select, .header-controls .theme-toggle { font-size: 11px; }
  .ticket-table-head, .ticket-row { grid-template-columns: 52px minmax(0,1fr) 90px 11px; gap: 9px; }
  .ticket-table-head { font-size: 10px; letter-spacing: 0; }
  .ticket-row .badge { max-width: 90px; padding: 4px 5px; font-size: 12px; }
  .ticket-row small { font-size: 12px; }
  .list-tabs :is(button,a), .detail-tabs :is(button,a) { font-size: 13px; }
  .live-sync, .live-refresh { font-size: 10px; }
  .ticket-description p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #nav a:hover, .ticket-row:hover .ticket-arrow, .ticket-row:hover .row-arrow { transform: none; }
}

.list-tabs,.central-tabs,.settings-subnav,.account-tabs{overflow-y:hidden;scrollbar-width:none}.list-tabs::-webkit-scrollbar,.central-tabs::-webkit-scrollbar,.settings-subnav::-webkit-scrollbar,.account-tabs::-webkit-scrollbar{display:none}

/* A quiet museum panorama, semantic statuses and a readable correspondence. */
:root {
  --status-new-ink: #365b78;
  --status-new-bg: #eaf0f4;
  --status-new-line: #bfccd5;
  --status-progress-ink: #795a23;
  --status-progress-bg: #f4eddf;
  --status-progress-line: #d8c8a4;
  --status-waiting-ink: #70617f;
  --status-waiting-bg: #efebf3;
  --status-waiting-line: #cec4d8;
  --status-resolved-ink: #3e6850;
  --status-resolved-bg: #e9f0e9;
  --status-resolved-line: #bfd0c0;
  --status-closed-ink: #64665f;
  --status-closed-bg: #edede8;
  --status-closed-line: #cecec4;
  --message-incoming-bg: #f3f2ed;
  --message-outgoing-bg: #edf2f4;
  --message-line: #dcded6;
  --message-support-line: #8b9d88;
  --message-employee-line: #91a3b0;
  --message-muted: #686c65;
}
:root[data-theme=dark] {
  --status-new-ink: #aac8dd;
  --status-new-bg: #26343d;
  --status-new-line: #435764;
  --status-progress-ink: #d8bf8b;
  --status-progress-bg: #383325;
  --status-progress-line: #60543b;
  --status-waiting-ink: #c9b5db;
  --status-waiting-bg: #332d3a;
  --status-waiting-line: #55475f;
  --status-resolved-ink: #abd0b3;
  --status-resolved-bg: #29372d;
  --status-resolved-line: #435a48;
  --status-closed-ink: #b6b8ae;
  --status-closed-bg: #30322d;
  --status-closed-line: #505249;
  --message-incoming-bg: #272924;
  --message-outgoing-bg: #283238;
  --message-line: #42473e;
  --message-support-line: #849a80;
  --message-employee-line: #859eaf;
  --message-muted: #b1b4a9;
}
.portal-panorama {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 144px;
  margin: -9px 0 31px;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  background: var(--surface-soft);
}
.portal-panorama img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  filter: saturate(.55) contrast(.96) brightness(.93);
}
.portal-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(24 28 26 / .03) 25%, rgb(24 28 26 / .38));
}
.portal-panorama figcaption {
  position: absolute;
  z-index: 2;
  inset: auto auto 15px 19px;
  color: #fffefa;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .2px;
}
:root[data-theme=dark] .portal-panorama img { filter: saturate(.45) contrast(.96) brightness(.7); }
.badge.status-new, select.status-new { --badge-ink: var(--status-new-ink); --badge-bg: var(--status-new-bg); --badge-line: var(--status-new-line); }
.badge.status-progress, select.status-progress { --badge-ink: var(--status-progress-ink); --badge-bg: var(--status-progress-bg); --badge-line: var(--status-progress-line); }
.badge.status-waiting, select.status-waiting { --badge-ink: var(--status-waiting-ink); --badge-bg: var(--status-waiting-bg); --badge-line: var(--status-waiting-line); }
.badge.status-resolved, select.status-resolved { --badge-ink: var(--status-resolved-ink); --badge-bg: var(--status-resolved-bg); --badge-line: var(--status-resolved-line); }
.badge.status-closed, select.status-closed { --badge-ink: var(--status-closed-ink); --badge-bg: var(--status-closed-bg); --badge-line: var(--status-closed-line); }
:root .badge:is(.status-new,.status-progress,.status-waiting,.status-resolved,.status-closed),
:root[data-theme] .badge:is(.status-new,.status-progress,.status-waiting,.status-resolved,.status-closed) {
  color: var(--badge-ink);
  background: var(--badge-bg);
  border-color: var(--badge-line);
}
.ticket-detail-top > .field select:is(.status-new,.status-progress,.status-waiting,.status-resolved,.status-closed) {
  color: var(--badge-ink);
  background-color: var(--badge-bg);
  border-color: var(--badge-line);
}
.ticket-detail-top > .field select:is(.status-new,.status-progress,.status-waiting,.status-resolved,.status-closed) option { color: var(--ink); background: var(--input); }
.ticket-timeline li.timeline-message {
  margin-bottom: 20px;
  padding: 15px 17px;
  border: 1px solid var(--message-line);
  border-left: 2px solid var(--message-employee-line);
  border-radius: 2px;
  background: var(--message-incoming-bg);
}
.ticket-timeline li.timeline-message::before { left: -21px; top: 22px; width: 5px; height: 5px; background: var(--message-employee-line); }
.ticket-timeline li.timeline-outgoing { background: var(--message-outgoing-bg); }
.ticket-timeline li.timeline-support { border-left-color: var(--message-support-line); }
.ticket-timeline li.timeline-support::before { background: var(--message-support-line); }
.ticket-timeline li.timeline-message > div, .bubble .message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  white-space: normal;
}
.message-author {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.message-author .message-role, .bubble .message-role {
  display: block;
  margin: 3px 0 0;
  color: var(--message-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.ticket-timeline li.timeline-message time, .bubble .message-meta time {
  flex: 0 0 auto;
  color: var(--message-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  white-space: nowrap;
}
.ticket-timeline li.timeline-message p { margin: 12px 0 0; font-size: 14px; line-height: 1.8; }
.ticket-timeline li:not(.timeline-message) { margin-bottom: 20px; padding: 0 0 0 6px; border: 0; background: transparent; color: var(--muted); }
.ticket-timeline li:not(.timeline-message)::before { width: 3px; height: 3px; left: -19px; top: 8px; background: var(--muted); }
.ticket-timeline li:not(.timeline-message) strong { color: var(--muted); font-size: 12px; font-weight: 400; }
.ticket-timeline li:not(.timeline-message) p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.bubble {
  min-width: min(220px,100%);
  padding: 14px 16px;
  border: 1px solid var(--message-line);
  border-radius: 2px;
  background: var(--message-incoming-bg);
  font-size: 14px;
  line-height: 1.8;
}
.bubble.mine { border: 1px solid var(--message-line); border-radius: 2px; background: var(--message-outgoing-bg); }
.bubble .message-meta { margin: 0 0 11px; }
.bubble .message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.message-author strong { font-weight: 500; }
.compose-hint { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 920px) {
  .portal-panorama { height: 132px; margin-bottom: 27px; }
}
@media (max-width: 700px) {
  .portal-panorama { height: 108px; margin: -4px 0 26px; }
  .portal-panorama figcaption { inset: auto auto 12px 14px; font-size: 12px; }
  .ticket-timeline li.timeline-message { padding: 13px 14px; }
  .ticket-timeline li.timeline-message > div { flex-direction: row; align-items: flex-start; gap: 10px; }
  .ticket-timeline li.timeline-message time, .bubble .message-meta time { font-size: 12px; }
  .message-author { font-size: 14px; }
  .bubble { max-width: 95%; padding: 13px 14px; }
}
@media (max-width: 390px) {
  .ticket-timeline li.timeline-message > div, .bubble .message-meta { flex-direction: column; align-items: flex-start; gap: 7px; }
  .ticket-timeline li.timeline-message time, .bubble .message-meta time { align-self: flex-start; }
  .ticket-timeline li.timeline-message { padding: 12px; }
}

/* User supplied Museum of Moscow logo; the uploaded artwork includes its wordmark. */
.brand { align-items: center; gap: 0; min-width: 0; max-width: 100%; }
.brand .museum-mark { display: block; position: relative; flex: 0 0 auto; width: 94px; height: 51px; }
.brand .museum-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand .museum-logo-paper { display: none !important; }
:root[data-theme=dark] .brand .museum-logo-ink { display: none !important; }
:root[data-theme=dark] .brand .museum-logo-paper { display: block !important; }
.empty.museum-empty {
  padding: 28px 0 34px;
  border: 0;
  background: transparent;
  text-align: left;
}
.museum-empty .museum-illustration {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  color: var(--muted);
}
.museum-illustration .art-accent { color: var(--red); }
.museum-empty h2 {
  margin: 17px 0 9px;
  font-family: var(--catalogue-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.4px;
}
.museum-empty p {
  max-width: 43ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.museum-empty > :is(.btn,.quiet-link) { margin-top: 18px; }
.ticket-row .ticket-next-action {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  color: var(--next-action-ink, var(--muted));
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: normal;
}
.next-action-dot {
  align-self: center;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.next-action-reply, .next-step-reply { --next-action-ink: var(--status-new-ink); }
.next-action-review, .next-step-review { --next-action-ink: var(--accent-text); }
.next-action-assign, .next-step-assign { --next-action-ink: var(--status-progress-ink); }
.next-action-wait, .next-step-wait { --next-action-ink: var(--muted); }
.next-action-done, .next-step-done { --next-action-ink: var(--status-resolved-ink); }
.ticket-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 19px 0 24px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid color-mix(in srgb, var(--next-action-ink, var(--muted)) 55%, var(--line));
  background: transparent;
}
.ticket-next-step > div { min-width: 0; }
.next-step-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .2px;
}
.ticket-next-step strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.ticket-next-step p {
  max-width: 58ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.ticket-next-step > .quiet-button {
  flex: 0 0 auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.ticket-next-step > .quiet-button:hover { color: var(--red); border-bottom-color: var(--red); }
@media (max-width: 700px) {
  .brand { gap: 0; }
  .brand .museum-mark { width: 70.15px; height: 38px; }
  .empty.museum-empty { padding: 24px 0 29px; }
  .museum-empty .museum-illustration { width: 164px; }
  .museum-empty h2 { font-size: 23px; }
  .ticket-next-step { align-items: flex-start; flex-direction: column; gap: 9px; padding-left: 12px; }
  .ticket-next-step > .quiet-button { align-self: flex-start; }
}
