:root {
  --ink: #071a31;
  --blue: #06468d;
  --blue-dark: #031a34;
  --line: rgba(9, 53, 96, 0.16);
  --muted: #607086;
  --paper: #fcfdff;
}

* { box-sizing: border-box; }

body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 16%, rgba(31, 116, 187, 0.2), transparent 27rem),
    linear-gradient(122deg, #eef3f9 0%, #dfe8f1 50%, #f8fafc 100%);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-shell,
.selector-shell,
.notice-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

body.login-page {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
}

.login-page .login-shell { min-height: 0; }

.site-registration {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-registration-inner {
  display: flex;
  width: min(100%, 1040px);
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.site-registration a { color: inherit; text-decoration: none; }
.site-registration a:hover { color: var(--blue); text-decoration: underline; }
.site-registration a,
.site-registration span { white-space: nowrap; }

.public-security-filing { display: inline-flex; align-items: center; gap: 5px; }
.public-security-icon { width: 18px; height: 20px; flex: 0 0 auto; object-fit: contain; }

.login-panel,
.selector-card {
  width: min(100%, 480px);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(3, 26, 52, 0.18);
}

.selector-card { width: min(100%, 900px); }

.login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.login-brand img {
  width: 82px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.login-brand span,
.login-brand strong { display: block; }
.login-brand span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.login-brand strong { margin-top: 3px; font-size: 16px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.login-heading h1,
.selector-card h1 { margin: 10px 0 8px; font-size: 34px; letter-spacing: 0.02em; }
.login-heading > p:last-child,
.selector-copy,
.login-note { color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-message { margin: 24px 0 0; padding: 11px 13px; color: #a1261d; border-left: 3px solid #c84e45; background: #fff5f3; font-size: 13px; line-height: 1.5; }

.login-form { display: grid; gap: 18px; margin-top: 28px; }
.login-form label { display: grid; gap: 8px; color: #2b4058; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid #becddd; border-radius: 5px; background: #fff; font: inherit; outline: none; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 70, 141, 0.12); }
.login-form button { height: 46px; border: 0; border-radius: 5px; color: #fff; background: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.login-form button:hover { background: #053c79; }
.login-note { margin: 24px 0 0; font-size: 12px; }
.release-meta { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; color: #7b8999; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.release-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.release-meta strong { color: #52677e; font-weight: 800; }
.release-ticker { min-width: 0; overflow: hidden; white-space: nowrap; }
.release-ticker-track { display: flex; width: max-content; animation: release-ticker 22s linear infinite; }
.release-ticker-track span { padding-right: 44px; color: #65778a; }
.release-ticker:hover .release-ticker-track { animation-play-state: paused; }
.release-log-trigger { padding: 0; color: var(--blue); border: 0; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.release-log-trigger:hover { text-decoration: underline; }
.release-time { justify-self: end; }

@keyframes release-ticker {
  to { transform: translateX(-50%); }
}

.release-log-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(78vh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(9, 53, 96, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(3, 26, 52, 0.24);
}
.release-log-dialog::backdrop { background: rgba(3, 18, 35, 0.55); }
.release-log-shell { display: grid; max-height: min(78vh, 720px); grid-template-rows: auto minmax(0, 1fr); }
.release-log-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.release-log-head span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.release-log-head h2 { margin: 5px 0 0; font-size: 22px; }
.release-log-head button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; padding: 0; place-items: center; color: #52677e; border: 1px solid var(--line); border-radius: 50%; background: #f7f9fc; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.release-log-head button:hover { color: var(--blue); border-color: var(--blue); }
.release-log-list { overflow: auto; padding: 4px 24px 22px; }
.release-log-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.release-log-entry:last-child { border-bottom: 0; }
.release-log-entry header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.release-log-entry header strong { color: var(--blue-dark); font-size: 15px; }
.release-log-entry time { color: #7b8999; font-size: 11px; }
.release-log-entry p { margin: 8px 0 0; color: #31465e; font-size: 13px; font-weight: 700; line-height: 1.55; }
.release-log-entry ul { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.notice-card {
  width: min(100%, 720px);
  padding: 38px 42px 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(3, 26, 52, 0.2);
}

.notice-card .login-brand { margin-bottom: 26px; }
.notice-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.notice-head h1 { margin: 9px 0 7px; color: var(--blue-dark); font-size: 30px; }
.notice-head > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.notice-release-list { display: grid; gap: 0; margin-top: 4px; }
.notice-release-entry { padding: 18px 0; border-bottom: 1px solid var(--line); }
.notice-release-entry header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.notice-release-entry header strong { color: var(--blue-dark); font-size: 15px; }
.notice-release-entry time { color: #7b8999; font-size: 11px; }
.notice-release-entry p { margin: 8px 0 0; color: #31465e; font-size: 13px; font-weight: 700; line-height: 1.55; }
.notice-release-entry ul { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notice-confirm { display: block; width: 100%; margin-top: 24px; padding: 13px 18px; color: #fff; border-radius: 5px; background: var(--blue); font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.notice-confirm:hover { background: #053c79; }

@media (prefers-reduced-motion: reduce) {
  .release-ticker-track { display: block; width: 100%; animation: none; }
  .release-ticker-track span:first-child { display: block; overflow: hidden; padding-right: 0; text-overflow: ellipsis; }
  .release-ticker-track span:last-child { display: none; }
}

.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.system-card { display: grid; min-height: 208px; align-content: start; padding: 23px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.system-card:hover { border-color: var(--blue); box-shadow: 0 14px 28px rgba(6, 70, 141, 0.13); transform: translateY(-2px); }
.system-card span { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.system-card strong { margin-top: 22px; font-size: 20px; }
.system-card small { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.system-card em { margin-top: auto; color: var(--blue); font-size: 13px; font-style: normal; font-weight: 700; }
.personal-history-link { display: inline-flex; margin-top: 20px; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.personal-history-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.text-button { margin-top: 24px; padding: 0; color: var(--muted); border: 0; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.text-button:hover { color: var(--blue); }

.audit-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.audit-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.audit-top .login-brand { margin-bottom: 22px; }
.audit-top > a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}


.audit-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(3, 26, 52, 0.14);
}

.audit-card h1 { margin: 10px 0 8px; font-size: 32px; }
.history-card { max-width: 1180px; }
.personal-history-card { max-width: 900px; }
.history-filters { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto auto auto; gap: 12px; align-items: end; margin-top: 28px; padding: 18px; border: 1px solid #d9e6f2; border-radius: 10px; background: #f7fafe; }
.personal-history-filters { grid-template-columns: minmax(150px, 1.3fr) minmax(130px, 1fr) minmax(130px, 1fr) auto auto auto; }
.history-filters label { display: grid; min-width: 0; gap: 7px; color: #52677e; font-size: 12px; font-weight: 800; }
.history-filters select, .history-filters input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; color: var(--ink); border: 1px solid #becddd; border-radius: 5px; background: #fff; font: inherit; font-size: 13px; outline: none; }
.history-filters select:focus, .history-filters input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 70, 141, 0.12); }
.history-filters button, .history-table button { height: 38px; padding: 0 14px; color: #fff; border: 0; border-radius: 5px; background: var(--blue); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.history-filters button:hover, .history-table button:hover { background: #053c79; }
.history-filters .history-reset { color: #52677e; border: 1px solid #bdcddd; background: #fff; }
.history-filters .history-reset:hover { color: var(--blue); border-color: var(--blue); background: #f7faff; }
.history-filters .history-export { background: #12365f; }
.history-filters .history-export:hover { background: #08284a; }
.history-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; margin-top: 18px; }
.history-kpis div { display: grid; gap: 5px; padding: 15px; border: 1px solid #d9e6f2; border-radius: 8px; background: linear-gradient(135deg, #fff 0%, #f5f9fd 100%); }
.history-kpis strong { color: var(--blue-dark); font-size: 25px; line-height: 1; }
.history-kpis span { color: var(--muted); font-size: 12px; font-weight: 700; }
.history-section { margin-top: 28px; }
.history-section > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.history-section > header div { display: grid; gap: 4px; }
.history-section > header span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.history-section > header strong { color: var(--blue-dark); font-size: 17px; }
.history-section > header small { color: var(--muted); font-size: 11px; }
.history-table-wrap { overflow-x: auto; border: 1px solid #dce6ef; border-top: 0; border-radius: 0 0 8px 8px; background: #fff; }
.history-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 12px; }
.history-table th, .history-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e5edf4; vertical-align: middle; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table th { color: #52677e; background: #f7fafe; font-size: 11px; letter-spacing: 0.04em; }
.history-table td { color: #40536a; }
.history-table td:first-child strong, .history-table td:first-child small { display: block; }
.history-table td:first-child strong { color: var(--ink); font-size: 13px; }
.history-table td:first-child small { margin-top: 3px; color: var(--muted); }
.history-table button { height: 30px; padding: 0 10px; font-size: 12px; }
.audit-tabs { display: flex; gap: 8px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.audit-tabs button { padding: 10px 14px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.audit-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.audit-summary { margin-top: 22px; padding: 18px; border: 1px solid #d9e6f2; border-radius: 8px; background: #f5f9fd; }
.audit-summary > strong { color: var(--blue-dark); font-size: 14px; }
.audit-summary > p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.audit-model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.audit-model-grid span { display: grid; gap: 4px; padding: 11px; border: 1px solid #dbe7f1; border-radius: 6px; background: #fff; }
.audit-model-grid b { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.audit-model-grid i { color: var(--blue); font-size: 13px; font-style: normal; font-weight: 800; }
.audit-model-grid small { color: var(--muted); font-size: 11px; }
.audit-list { display: grid; gap: 10px; margin-top: 18px; }
.audit-event { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: center; padding: 16px; border: 1px solid #dce6ef; border-radius: 8px; background: #fff; }
.audit-event > div { display: grid; gap: 6px; min-width: 0; }
.audit-event strong { color: var(--ink); font-size: 14px; }
.audit-event span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.audit-event aside { display: grid; gap: 5px; text-align: right; }
.audit-event aside b { color: var(--blue); font-size: 13px; }
.audit-event aside small { color: var(--muted); font-size: 11px; }
.audit-empty { padding: 34px 0; color: var(--muted); text-align: center; }
.history-admin-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.history-detail-button { height: 28px; justify-self: end; padding: 0 10px; color: var(--blue); border: 1px solid #bed0e2; border-radius: 4px; background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.history-detail-button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.history-attachment-count { color: var(--blue); font-size: 11px; font-weight: 700; }

.history-dialog { width: min(940px, calc(100% - 32px)); max-height: min(86vh, 850px); margin: auto; padding: 0; overflow: hidden; color: var(--ink); border: 1px solid rgba(9, 53, 96, 0.2); border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(3, 26, 52, 0.28); }
.history-dialog::backdrop { background: rgba(3, 18, 35, 0.56); }
.history-dialog-shell { display: grid; max-height: min(86vh, 850px); grid-template-rows: auto minmax(0, 1fr); }
.history-user-dialog .history-dialog-shell { grid-template-rows: auto auto minmax(0, 1fr); }
.history-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.history-dialog-head span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.history-dialog-head h2 { margin: 5px 0 0; color: var(--blue-dark); font-size: 22px; }
.history-dialog-head button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; padding: 0; place-items: center; color: #52677e; border: 1px solid var(--line); border-radius: 50%; background: #f7f9fc; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.history-dialog-head button:hover { color: var(--blue); border-color: var(--blue); }
.history-dialog-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 26px; border-bottom: 1px solid #dce6ef; background: #f7fafe; }
.history-dialog-toolbar small { color: var(--muted); font-size: 12px; }
.history-export-link { display: inline-flex; padding: 8px 11px; color: #fff; border-radius: 4px; background: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.history-export-link:hover { background: #053c79; }
.history-dialog-body { min-height: 0; overflow: auto; padding: 18px 26px 26px; }
.history-dialog .audit-list { margin-top: 0; }
.history-dialog .audit-event { grid-template-columns: minmax(0, 1fr) 230px; }
.history-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px; color: #52677e; border: 1px solid #dce6ef; border-radius: 6px; background: #f8fbfe; font-size: 12px; line-height: 1.5; }
.history-detail-meta b { color: var(--blue-dark); }
.history-detail-description { margin: 18px 0; color: #31465e; font-size: 14px; font-weight: 700; line-height: 1.65; }
.history-detail-fields { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.history-detail-fields > div { min-width: 0; padding: 12px; border: 1px solid #dce6ef; border-radius: 6px; background: #fff; }
.history-detail-fields dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.history-detail-fields dd { margin: 7px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.history-detail-fields pre { max-height: 240px; margin: 0; overflow: auto; padding: 10px; color: #233b57; border-radius: 4px; background: #f4f7fa; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.history-empty-value { color: var(--muted); }
.history-summary-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.history-summary-grid div { display: grid; gap: 4px; padding: 10px; border: 1px solid #d7e4f0; border-radius: 5px; background: #f7fafe; }
.history-summary-grid strong { color: var(--blue-dark); font-size: 20px; line-height: 1; }
.history-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 700; }
.history-profit-snapshot { display: grid; gap: 10px; }
.history-profit-snapshot > p { margin: 0; color: #52677e; font-size: 12px; }
.history-profit-snapshot > p b { color: var(--blue-dark); }
.history-profit-summary-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.history-profit-summary-grid div { display: grid; gap: 4px; padding: 10px; border: 1px solid #d7e4f0; border-radius: 5px; background: #f7fafe; }
.history-profit-summary-grid strong { color: var(--blue-dark); font-size: 15px; line-height: 1.2; }
.history-profit-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 700; }
.history-detail-item-list { display: grid; gap: 10px; }
.history-detail-item { overflow: hidden; border: 1px solid #dce6ef; border-radius: 6px; background: #fbfdff; }
.history-detail-item > header { display: grid; gap: 3px; padding: 10px 12px; border-bottom: 1px solid #dce6ef; background: #f4f8fc; }
.history-detail-item > header span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.history-detail-item > header strong { color: var(--blue-dark); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.history-detail-item dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.history-detail-item dl > div { display: grid; grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr); gap: 12px; padding: 8px 12px; border-bottom: 1px solid #edf2f6; }
.history-detail-item dl > div:last-child { border-bottom: 0; }
.history-detail-item dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.history-detail-item dd { margin: 0; color: #31465e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.history-value-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.history-value-tags span { padding: 4px 7px; color: #294968; border: 1px solid #c9d9e8; border-radius: 999px; background: #f7fafe; font-size: 11px; line-height: 1.35; }
.history-value-list { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: #40536a; }
.history-inline-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.history-inline-details > div { padding: 8px; border: 1px solid #e0e9f1; border-radius: 4px; background: #f9fbfd; }
.history-inline-details dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.history-inline-details dd { margin: 4px 0 0; color: #31465e; font-size: 11px; }
.history-attachments { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.history-attachments > strong { color: var(--blue-dark); font-size: 13px; }
.history-attachments a { display: grid; gap: 3px; padding: 11px 12px; color: var(--blue); border: 1px solid #bed0e2; border-radius: 5px; background: #f9fcff; font-size: 13px; font-weight: 800; text-decoration: none; }
.history-attachments a:hover { border-color: var(--blue); background: #f1f7fd; }
.history-attachments small { color: var(--muted); font-size: 11px; font-weight: 400; }

@media (max-width: 1100px) {
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filters .history-export { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .login-shell, .selector-shell, .notice-shell { padding: 16px; }
  .login-panel, .selector-card, .notice-card { padding: 28px 22px; }
  .login-brand { margin-bottom: 30px; }
  .site-registration { padding-right: 12px; padding-left: 12px; }
  .site-registration-inner { gap: 7px 14px; }
  .site-copyright { flex-basis: 100%; }
  .system-grid { grid-template-columns: 1fr; }
  .login-heading h1, .selector-card h1 { font-size: 28px; }
  .release-line { grid-template-columns: auto minmax(0, 1fr); }
  .release-log-trigger { grid-column: 1 / -1; justify-self: start; }
  .release-time { justify-self: start; }
  .release-log-head { padding: 18px; }
  .release-log-list { padding: 2px 18px 18px; }
  .notice-head h1 { font-size: 27px; }
  .audit-shell { padding: 16px; }
  .audit-card { padding: 24px 18px; }
  .audit-top { align-items: flex-start; flex-direction: column; gap: 0; }
  .audit-event { grid-template-columns: 1fr; }
  .audit-event aside { text-align: left; }
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filters button { width: 100%; }
  .history-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-section > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .history-dialog { width: min(calc(100% - 20px), 940px); }
  .history-dialog-head, .history-dialog-toolbar, .history-dialog-body { padding-left: 18px; padding-right: 18px; }
  .history-dialog-toolbar { align-items: flex-start; flex-direction: column; }
  .history-dialog .audit-event { grid-template-columns: 1fr; }
  .history-detail-button { justify-self: start; }
  .history-detail-fields { grid-template-columns: 1fr; }
  .history-summary-grid, .history-profit-summary-grid { grid-template-columns: 1fr; }
  .history-inline-details { grid-template-columns: 1fr; }
  .history-detail-item dl > div { grid-template-columns: 1fr; gap: 3px; }
}
