:root {
  color-scheme: light;
  --ink: #252930;
  --muted: #59616b;
  --canvas: #f4f6f9;
  --surface: #fff;
  --line: #e2e7ee;
  --accent: #ff6b26;
  --accent-hover: #f95914;
  --danger: #a72721;
  --radius: 15px;
  --shadow: 0 1px 3px #2539540a;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); min-width: 280px; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #bc3d06;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
}
.muted, .field-help { color: var(--muted); }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.plate { letter-spacing: .04em; white-space: nowrap; }
.full-width { width: 100%; }

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 34px 19px 22px;
  background: var(--surface);
  color: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  align-self: start;
  top: 0;
  min-height: 100vh;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand > span { font-size: 14px; font-weight: 580; letter-spacing: .035em; }
.wordmark { display: block; width: 104px; height: auto; }
.sidebar-brand { margin: 0 12px; }
.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 44px 0 30px;
}
.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  min-height: 43px;
  padding: 10px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.primary-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a0aab7;
  flex: none;
}
.primary-nav a:hover { background: var(--canvas); color: var(--ink); }
.primary-nav a[aria-current] { background: #fff0e7; color: #8c350d; font-weight: 680; }
.primary-nav a[aria-current]::before { background: var(--accent); }
.session {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.session-user { min-width: 0; display: grid; }
.session-user strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-user small { color: var(--muted); font-size: 12px; }
.logout {
  background: var(--surface);
  color: var(--ink);
  padding: 7px 9px;
  white-space: nowrap;
  border: 1px solid #d8dfe8;
  border-radius: 7px;
  font-size: 12px;
}
.logout:hover { background: var(--canvas); }
.app-main { padding: 46px clamp(24px, 4.2vw, 64px) 68px; min-width: 0; }
.main-frame { max-width: 1360px; margin: auto; }

.demo-banner {
  color: #77330e;
  background: #ffeadb;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  width: fit-content;
  border-radius: 5px;
  margin: 0 0 17px;
}
.demo-banner span { background: #b14a17; width: 6px; height: 6px; border-radius: 50%; }
.page-header { display: flex; gap: 15px 24px; justify-content: space-between; align-items: flex-end; margin: 0 0 26px; }
.page-header h1 { font-size: clamp(29px, 3.24vw, 46px); line-height: 1.15; font-weight: 750; letter-spacing: -.045em; overflow-wrap: anywhere; }
.page-header p { color: var(--muted); margin-top: 11px; font-size: 14px; }
.page-label { font-size: 13px; color: var(--muted); font-weight: 620; margin-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 17px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 41px;
  padding: 8px 15px;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 690;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

[data-submitting] { cursor: progress; }
[data-submitting]::after {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: submitting 700ms linear infinite;
}
@keyframes submitting { to { transform: rotate(360deg); } }
.button.primary { background: var(--accent); color: #231004; }
.button.primary:hover { background: var(--accent-hover); }
.button.outline { background: var(--surface); border-color: #d9dbde; }
.button.outline:hover { background: #f3f3f4; border-color: #babcc0; }
.button.danger { border-color: #edd1ce; color: var(--danger); background: #fff7f6; }
.button.danger:hover { background: #ffe7e3; }
.text-link { color: #973907; font-size: 13px; font-weight: 680; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: #491700; }

.panel, .stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-heading {
  padding: 17px clamp(16px, 2.1vw, 25px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 13px;
}
.panel-heading h2 { flex: 0 1 auto; font-size: 17px; font-weight: 720; }
.section-body { padding: clamp(17px, 2.3vw, 26px); }
.section-gap { margin-top: 20px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  padding: 17px clamp(13px, 2vw, 24px) 18px;
  min-height: 111px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}
.stat-label { color: var(--muted); font-size: 13px; font-weight: 620; }
.stat strong { font: 710 clamp(26px, 3vw, 38px)/1.05 system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.stat-alert {
  border-color: #f0d5c4;
  background: linear-gradient(140deg, #fff9f5, #fff);
}
.stat-alert strong { color: #b1450e; }
.notices { margin-bottom: 20px; }
.notice-list {
  list-style: none;
  max-height: 190px;
  overflow: auto;
  padding: 4px clamp(16px, 2.1vw, 25px);
  margin: 0;
}
.notice-list li { display: flex; gap: 14px; align-items: baseline; justify-content: space-between; padding: 10px 0; font-size: 13px; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-list a { font-weight: 620; text-underline-offset: 3px; }
.notice-list time { color: var(--muted); white-space: nowrap; font-size: 12px; }

.filter-form { display: flex; align-items: flex-end; gap: 7px; max-width: 100%; }
.filter-form input { width: min(205px, 100%); }
.filter-form select { width: auto; }
.filter-form input, .filter-form select, .filter-form .button { min-height: 38px; font-size: 13px; }
.audit-filter input { width: min(230px, 100%); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 13px 11px; vertical-align: middle; overflow-wrap: anywhere; }
.data-table th:first-child, .data-table td:first-child { padding-left: clamp(16px, 2vw, 25px); }
.data-table th:last-child, .data-table td:last-child { padding-right: clamp(16px, 2vw, 25px); }
.data-table th {
  background: #f8f8f9;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.data-table tr + tr td { border-top: 1px solid var(--line); }
.data-table tbody tr:hover { background: #fafafa; }
.data-table strong { font-weight: 700; }
.cell-subtext { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.data-table time, .table-action { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .table-action { text-align: right; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  border-radius: 20px;
  background: #eff0f1;
  color: #474a50;
  padding: 5px 9px;
  width: fit-content;
}
.status::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: currentColor; flex: none; }
.status-pending { background: #fff0db; color: #805000; }
.status-active { background: #e5f5ec; color: #1c6342; }
.status-redeemed { background: #e9effa; color: #31528c; }
.status-rejected { background: #ffe9e5; color: #923226; }
.status-expired, .status-void { background: #eeeef0; color: #595b63; }
.empty { display: grid; gap: 5px; text-align: center; color: var(--muted); font-size: 13px; padding: 42px 20px; }
.empty strong { color: var(--ink); font-size: 15px; }
.pagination { display: flex; gap: 15px; justify-content: center; align-items: center; padding: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination a { font-weight: 670; text-underline-offset: 3px; color: var(--ink); }

.form-panel { max-width: 720px; }
.form-stack { display: grid; gap: 17px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-check label { font-size: 14px; font-weight: 660; }
.required { color: #a94010; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  display: block;
  max-width: 100%;
  min-height: 43px;
  border: 1px solid #d7d9dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea { width: 100%; }
input::placeholder, textarea::placeholder { color: #696b72; opacity: 1; }
input[readonly] { background: #f6f6f7; color: #4e5055; }
textarea { resize: vertical; min-height: 79px; }
.field-help { font-size: 12px; overflow-wrap: anywhere; }
.field-help ul { margin: 0; padding-left: 17px; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #c65147; }
.errorlist {
  list-style: none;
  color: #9c241e;
  font-size: 13px;
  margin: 0;
  padding: 0;
}
.errorlist.nonfield { background: #fff1ee; border: 1px solid #f3cbc5; border-radius: 8px; padding: 10px 12px; }
.field-check label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
input[type="checkbox"] { accent-color: #c84d15; width: 17px; height: 17px; flex: none; margin: 3px 0 0; }
.messages { display: grid; gap: 7px; margin: 0 0 16px; }
.message { background: #edf1f8; border: 1px solid #dbe2ed; border-radius: 8px; color: #2d4265; padding: 10px 13px; font-size: 13px; }
.message.success { background: #e9f7ed; border-color: #cce5d2; color: #235937; }
.message.warning { background: #fff2df; border-color: #f7dfbe; color: #794809; }
.message.error { background: #fff1ee; border-color: #f3cbc5; color: #9c241e; }

.detail-layout, .manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.detail-layout > :only-child { grid-column: 1 / -1; }
.side-stack, .management-actions { display: grid; gap: 14px; min-width: 0; }
.management-actions { max-width: 720px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px min(4vw, 32px); }
.facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.facts dd { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.account-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact-wide { grid-column: 1 / -1; }
.internal-code { font-size: clamp(21px, 3vw, 29px); line-height: 1.3; font-weight: 740; letter-spacing: .065em; overflow-wrap: anywhere; }
.copy-result { font-size: 12px; color: var(--muted); }
.copy-result:empty { display: none; }
.disclosure { border-top: 1px solid var(--line); padding-top: 10px; }
.disclosure summary { cursor: pointer; min-height: 34px; display: list-item; font-weight: 670; font-size: 14px; }
.disclosure form { margin-top: 8px; }
.activity-list { list-style: none; margin: 0; }
.activity-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.activity-list li + li { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.activity-list time { color: var(--muted); white-space: nowrap; font-size: 12px; }
.activity-list p, .activity-actor { color: var(--muted); }
.activity-actor { margin-inline-start: 8px; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.lookup-form .button { min-height: 43px; }
.lookup-form .errorlist.nonfield { margin-bottom: 9px; }
.confirm-form { display: grid; justify-items: start; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }

.management-list details + details { border-top: 1px solid var(--line); }
.management-list summary {
  padding: 13px clamp(15px, 2vw, 24px);
  cursor: pointer;
  list-style: none;
  font-weight: 630;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  overflow-wrap: anywhere;
}
.management-list summary::-webkit-details-marker { display: none; }
.management-list summary::after { content: "+"; flex: none; color: var(--muted); font-size: 19px; }
.management-list details[open] summary::after { content: "−"; }
.management-list summary > span:first-child { flex: 1; min-width: 0; }
.management-list summary > span:first-child small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.management-list details > .form-stack, .managed-user { padding: 5px clamp(15px, 2vw, 24px) 18px; }
.managed-user { display: grid; gap: 15px; font-size: 13px; }
.managed-user a { text-underline-offset: 3px; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, 1fr);
  min-height: 100vh;
  background: var(--surface);
}
.login-intro {
  background: linear-gradient(146deg, #f9fafc, #eef2f7 75%);
  color: var(--ink);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(26px, 5vw, 70px);
  min-height: 550px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
}
.login-brand .wordmark { width: 128px; }
.login-brand > span { color: var(--muted); }
.login-intro-content { align-self: center; position: relative; z-index: 1; }
.login-intro h1 { font-size: clamp(49px, 6.7vw, 100px); line-height: 1.04; font-weight: 760; letter-spacing: -.07em; }
.login-intro p { margin-top: 24px; color: var(--muted); font-size: clamp(14px, 1.55vw, 19px); }
.login-graphic {
  position: absolute;
  z-index: -1;
  width: 69%;
  height: 86%;
  bottom: -15%;
  right: -13%;
  transform: skewX(-24deg);
  display: flex;
  gap: clamp(10px, 2.5vw, 34px);
  justify-content: flex-end;
  pointer-events: none;
  opacity: .72;
}
.login-graphic span { display: block; width: 13%; background: linear-gradient(to bottom, #ff6b2600, #ff6b2675 89%); }
.login-graphic span:nth-child(2) { width: 21%; opacity: .66; transform: translateY(-15%); }
.login-graphic span:nth-child(3) { width: 44%; opacity: .42; transform: translateY(-31%); }
.login-panel { align-self: center; padding: 43px clamp(24px, 6vw, 90px); }
.login-form { max-width: 385px; margin: auto; }
.login-form h2 { font-size: 32px; font-weight: 740; letter-spacing: -.04em; line-height: 1.2; }
.login-form .muted { margin: 10px 0 22px; font-size: 14px; }
.login-form .button.primary { min-height: 45px; margin-top: 1px; }
.demo-access { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-access h3 { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.demo-options { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-options .button { font-size: 13px; min-height: 36px; padding: 7px 11px; }

.public-shell {
  min-height: 100vh;
  padding: clamp(22px, 7vh, 68px) 15px 40px;
  color: var(--ink);
  background: var(--canvas);
}
.public-frame { max-width: 460px; margin: 0 auto; }
.public-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 3px 23px; }
.public-brand { gap: 8px; }
.public-brand .wordmark { width: 115px; }
.public-brand > span { color: var(--muted); }
.public-demo { color: #8c350d; background: #fff1e7; border: 1px solid #f2d8c7; border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.ticket { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 32px #25395412; }
.ticket-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(125deg, #ffece0 0%, #ffe2d1 59%, #ffd1b7 100%);
  padding: 23px clamp(18px, 6vw, 29px) 25px;
}
.ticket-top::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -12px -35px -12px auto;
  width: 32%;
  background: linear-gradient(90deg, #ff8b5066, #ff8b5024 23%, transparent 23%, transparent 32%, #ffffff52 32%, #fff4ec66);
  transform: skewX(-23deg);
}
.ticket-status { margin-bottom: 13px; }
.ticket-status .status { box-shadow: 0 1px 3px #7a330114; }
.ticket-top h1 { font-size: clamp(32px, 7.7vw, 42px); font-weight: 790; letter-spacing: -.055em; line-height: 1.16; overflow-wrap: anywhere; }
.ticket-top p { color: #6d422b; font-size: 15px; font-weight: 620; margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.ticket-body { background: #fff; color: var(--ink); padding: 22px clamp(18px, 6vw, 29px) 24px; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ticket-expiry { grid-column: 1 / -1; }
.ticket-facts dt { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.ticket-facts dd { font-weight: 680; font-size: 16px; overflow-wrap: anywhere; }
.ticket-code {
  position: relative;
  background: #fafbfd;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 14px clamp(18px, 6vw, 29px) 21px;
  border-top: 1px dashed #d4dce6;
}
.ticket-code::before, .ticket-code::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  background: var(--canvas);
  top: -9px;
}
.ticket-code::before { left: -9px; }
.ticket-code::after { right: -9px; }
.ticket-code-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.ticket-code strong { letter-spacing: .065em; font-size: clamp(23px, 6.2vw, 34px); line-height: 1.3; overflow-wrap: anywhere; }
.ticket-copy {
  color: #823206;
  background: #ffeddf;
  border: 1px solid #edd4c3;
  border-radius: 7px;
  font-weight: 690;
  padding: 5px 11px;
  min-height: 32px;
}
.ticket-copy:hover { background: #ffdfc8; }
.ticket-note { margin: 20px 3px 0; }
.ticket-note h2 { font-size: 14px; font-weight: 710; margin-bottom: 5px; }
.ticket-note p { color: var(--muted); font-size: 13px; }
.ticket-note p + p { margin-top: 8px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 191px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .app-main { padding-inline: 23px; }
  .list-heading { align-items: start; }
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar {
    min-height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 12px;
    padding: 16px 20px 0;
  }
  .sidebar-brand { margin: 0; gap: 7px; justify-content: center; }
  .sidebar-brand .wordmark { width: 88px; }
  .sidebar-brand span { font-size: 12px; }
  .session { grid-column: 2; grid-row: 1; border: 0; padding: 0; margin: 0; justify-content: flex-end; max-width: 43vw; }
  .session-user { text-align: right; }
  .session-user strong { font-size: 13px; }
  .primary-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    margin: 0 -20px;
    grid-column: 1 / -1;
    padding: 0 16px;
    scrollbar-color: #c1c9d4 var(--surface);
  }
  .primary-nav a {
    min-height: 38px;
    border-radius: 6px 6px 0 0;
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
    position: relative;
  }
  .primary-nav a[aria-current]::after { content: ""; background: var(--accent); position: absolute; height: 2px; inset: auto 0 0; }
  .primary-nav a:focus-visible { outline-offset: -3px; }
  .primary-nav a::before { display: none; }
  .app-main { padding-top: 24px; }
}
@media (max-width: 700px) {
  .manage-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-intro { min-height: 227px; grid-template-rows: auto 1fr; gap: 20px; padding: 23px 23px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-brand { gap: 7px; }
  .login-brand .wordmark { width: 94px; }
  .login-brand > span { font-size: 12px; }
  .login-intro-content { align-self: end; }
  .login-intro h1 { font-size: clamp(37px, 9.5vw, 53px); }
  .login-intro h1 br { display: none; }
  .login-intro p { margin-top: 10px; }
  .login-panel { align-self: start; padding: 25px 23px 36px; }
  .login-form { max-width: 440px; }
  .login-form h2 { font-size: 27px; }
  .login-form .muted { margin-bottom: 17px; }
  .login-form .form-stack { gap: 13px; }
  .login-layout { align-content: start; }
  .login-graphic { height: 110%; right: -20%; }
}
@media (max-width: 620px) {
  .app-main { padding: 20px 14px 43px; }
  .page-header { align-items: center; margin-bottom: 19px; }
  .page-header h1 { font-size: clamp(24px, 7vw, 34px); }
  .page-header .button { font-size: 13px; padding-inline: 10px; min-height: 37px; }
  .page-header p { margin-top: 8px; }
  .page-label { margin-bottom: 5px; font-size: 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .stat { min-height: 76px; padding: 11px 12px 12px; border-radius: 11px; }
  .stat strong { font-size: 27px; }
  .notices { margin-bottom: 14px; }
  .panel-heading { padding: 13px 13px; }
  .panel-heading h2 { font-size: 16px; }
  .form-columns { grid-template-columns: minmax(0, 1fr); }
  .filter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; gap: 5px; }
  .filter-form input { width: 100%; }
  .filter-form select { width: 100%; max-width: 112px; padding-inline: 5px; }
  .filter-form .button { padding-inline: 8px; }
  .audit-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .responsive-table, .responsive-table tbody, .responsive-table tr { display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .responsive-table tbody tr { padding: 13px; }
  .responsive-table tbody tr + tr { border-top: 1px solid var(--line); }
  .data-table td, .data-table td:first-child, .data-table td:last-child, .data-table tr + tr td {
    border: none;
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(0, 2.4fr);
    align-items: baseline;
    gap: 9px;
    padding: 3px 0;
  }
  .data-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .data-table td .cell-subtext { grid-column: 2; margin-top: -6px; }
  .data-table .table-action { display: block; padding-top: 7px; text-align: right; }
  .activity-list li { align-items: flex-start; }
  .data-table time { white-space: normal; }
  .section-gap { margin-top: 14px; }
  .detail-layout, .manage-layout { gap: 14px; }
  .confirm-form .button { width: 100%; min-height: 43px; }
  .form-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .form-panel select, .form-panel textarea,
  .login-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { font-size: 16px; }
}
@media (max-width: 480px) {
  .primary-nav { flex-wrap: wrap; }
  .primary-nav a { font-size: 12px; padding-inline: 7px; }
}
@media (max-width: 350px) {
  .sidebar { padding-inline: 14px; }
  .primary-nav { margin-inline: -14px; padding-inline: 10px; }
  .account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  [data-submitting]::after { animation: none; }
}
