@font-face {
  font-family: Montserrat;
  src: url("/static/fonts/Montserrat-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/static/fonts/Montserrat-Italic-Variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --focus: #00253f;
  --navy: #00253f;
  --green: #94b962;
  --lime: #b2c761;
  --blue: #74a1b7;
  --sky: #9ac8d8;
  --charcoal: #444243;
  --ink: var(--navy);
  --muted: var(--charcoal);
  --ocean: var(--navy);
  --ocean-dark: var(--navy);
  --bg: #f2f7f9;
  --line: #cadde5;
  --white: #fff;
  --tint: #eaf2df;
  --warning: #855300;
  --error: #a93636;
  --surface-main: #f8fbfc;
  --surface-panel: #fff;
  --surface-sidebar: #e5f0f4;
  --surface-soft: #f6fafb;
  --surface-hover: #d3e7ef;
  --surface-user: #e5f0f4;
  --track: #cadde5;
  --warning-bg: #fff5dc;
  --error-bg: #fff0f0;
  --error-line: #edc7c7;
  --input-bg: #f8fbfc;
  --shadow: #00253f0a;
  --mobile-shadow: #00253f33;
  --code-bg: var(--navy);
  --code-text: #f2f7f9;
  --on-accent: var(--navy);
  --login-glow: #d9ecf2;
  --dw-series-1: #2a78d6;
  --dw-series-2: #eb6834;
  --dw-series-3: #1baf7a;
  --dw-series-4: #eda100;
  --dw-series-5: #e87ba4;
  --dw-series-other: #8a9aa3;
  --dw-series-total: #00253f;
  --dw-heat-0: #eef5fd;
  --dw-heat-1: #cde2fb;
  --dw-heat-2: #9ec5f4;
  --dw-heat-3: #5598e7;
  --dw-heat-4: #256abf;
  --dw-heat-5: #104281;
  --dw-heat-ink-strong: #fff;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --focus: #9ac8d8;
  --ink: #edf6f7;
  --muted: var(--sky);
  --ocean: var(--lime);
  --ocean-dark: #d9eaef;
  --bg: #071923;
  --line: #31586a;
  --white: #102c3b;
  --tint: #1c3b2b;
  --warning: #f1ca77;
  --error: #ffaaaa;
  --surface-main: #081e2b;
  --surface-panel: #102c3b;
  --surface-sidebar: #0b2534;
  --surface-soft: #0e2b3b;
  --surface-hover: #173a49;
  --surface-user: #143646;
  --track: #31586a;
  --warning-bg: #372d18;
  --error-bg: #3b2227;
  --error-line: #7a4650;
  --input-bg: #0c2635;
  --shadow: #0007;
  --mobile-shadow: #0009;
  --code-bg: #04121c;
  --code-text: #edf6f7;
  --login-glow: #12394b;
  --dw-series-1: #3987e5;
  --dw-series-2: #d95926;
  --dw-series-3: #199e70;
  --dw-series-4: #c98500;
  --dw-series-5: #d55181;
  --dw-series-other: #6b8592;
  --dw-series-total: #d9eaef;
  --dw-heat-0: #0f2f42;
  --dw-heat-1: #0d366b;
  --dw-heat-2: #184f95;
  --dw-heat-3: #256abf;
  --dw-heat-4: #5598e7;
  --dw-heat-5: #9ec5f4;
  --dw-heat-ink-strong: #04121c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  color: var(--ink);
  background: var(--input-bg);
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: var(--ink);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--ocean);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 17px;
  margin: 5px 0 0;
  font-weight: 600;
}
.eyebrow,
.nav-label {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface-panel);
  color: var(--ink);
  padding: 11px 16px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.button:hover {
  background: var(--bg);
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.button.danger {
  color: var(--error);
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.theme-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-panel);
  color: var(--ocean);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.theme-toggle:hover {
  border-color: var(--green);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.theme-toggle:active {
  transform: translateY(0);
}
.login-screen > .theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand .brand-logo {
  width: min(320px, 100%);
}
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background:
    radial-gradient(ellipse at 80% 10%, var(--login-glow), transparent 60%), var(--bg);
}
.login-brand {
  display: flex;
  align-items: center;
  width: min(320px, 100%);
  margin-bottom: 42px;
}
.login-card {
  max-width: 540px;
}
.login-card h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 20px 0;
}
.login-card > p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}
.login-card .primary {
  margin: 16px 0 20px;
}
.small {
  font-size: 12px !important;
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100dvh;
}
.sidebar {
  background: var(--surface-sidebar);
  border-right: 1px solid var(--line);
  padding: 28px 19px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 31px;
}
.brand .brand-logo {
  max-width: 210px;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 9px;
  letter-spacing: 0.4px;
}
.new-chat {
  justify-content: flex-start;
  margin-bottom: 31px;
  border-color: var(--blue);
  background: var(--surface-soft);
}
.nav-label {
  margin: 0 9px 14px;
}
#conversation-list {
  overflow-y: auto;
  flex: 1;
  min-height: 70px;
}
.conversation-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  border-radius: 6px;
}
.conversation-item.active {
  background: var(--surface-hover);
  box-shadow: inset 3px 0 var(--green);
}
.conversation-item button {
  background: none;
  border: 0;
  text-align: left;
  padding: 11px;
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-item > button:first-child {
  flex: 1;
  min-width: 0;
}
.conversation-item .delete {
  padding: 8px;
  color: var(--muted);
  opacity: 0.5;
}
.sidebar-bottom {
  margin-top: 18px;
}
.nav-button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  padding: 12px 9px;
  border-radius: 6px;
}
.nav-button:hover {
  background: var(--surface-hover);
}
.budget-summary {
  padding: 18px 9px 20px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.budget-summary strong {
  display: block;
  font:
    13px Consolas,
    monospace;
  color: var(--ink);
  margin: 7px 0 11px;
}
progress {
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: var(--track);
}
progress::-webkit-progress-bar {
  background: var(--track);
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 4px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.identity div {
  flex: 1;
  min-width: 0;
}
.identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.identity button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 17px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ocean-dark);
  font-weight: 700;
}
.main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-main);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 21px 38px;
  background: var(--surface-panel);
}
.badge {
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid var(--green);
  color: var(--ocean-dark);
  border-radius: 30px;
  background: var(--tint);
}
.notice {
  background: var(--warning-bg);
  padding: 10px 24px;
  color: var(--warning);
  font-size: 12px;
}
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-height: 0;
}
.welcome {
  width: 100%;
  max-width: 830px;
  margin: auto;
  padding: 35px 38px 20px;
}
.welcome-symbol {
  display: block;
  color: var(--ocean);
  font-size: 36px;
  margin-bottom: 13px;
}
.welcome h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 15px 0 20px;
}
.welcome > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.suggestions button {
  text-align: left;
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.15s;
}
.suggestions button:hover {
  border-color: var(--ocean);
}
.suggestions span {
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--ocean);
  font-weight: 700;
}
.suggestions strong {
  display: block;
  font-size: 14px;
  margin: 10px 0 7px;
}
.suggestions p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 240px;
}
.suggestions b {
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: 400;
  color: var(--ocean);
}
.messages {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 38px;
  flex: 1;
}
.message {
  margin: 18px 0 28px;
}
.message-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.message.user .message-body {
  background: var(--surface-user);
  padding: 17px 20px;
  border-radius: 9px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
}
.message.hidden .message-body {
  color: var(--muted);
  font-style: italic;
}
.sources {
  margin-top: 13px;
  font-size: 12px;
}
.sources summary {
  width: fit-content;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.sources[open] summary {
  margin-bottom: 9px;
}
.sources .source-item + .source-item {
  margin-top: 9px;
}
.source-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  max-width: 100%;
}
.sources .source-label {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 4px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mask-note {
  font-size: 11px;
  color: var(--warning);
  margin-top: 10px;
}
.composer-wrap {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 10px 38px 17px;
  position: sticky;
  bottom: 0;
  background: var(--surface-main);
}
.composer {
  background: var(--surface-panel);
  border: 1px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 6px 24px var(--shadow);
  padding: 14px 16px;
}
.composer textarea {
  width: 100%;
  resize: vertical;
  max-height: 200px;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.composer textarea:focus-visible {
  outline-offset: 0;
}
.composer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.composer-controls label {
  font-size: 11px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--input-bg);
  color: var(--ink);
  padding: 7px;
  font-size: 12px;
}
.composer-controls select {
  border: 0;
  margin-left: 5px;
}
.composer-note {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin: 11px 0 0;
}
.error {
  background: var(--error-bg);
  border: 1px solid var(--error-line);
  color: var(--error);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  margin-bottom: 12px;
  white-space: pre-line;
}
.markdown-body {
  white-space: normal;
}
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p { margin: 0 0 14px; }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-family: inherit;
  letter-spacing: normal;
  font-weight: 650;
  line-height: 1.4;
  margin: 24px 0 12px;
}
.markdown-body h1 { font-size: 25px; }
.markdown-body h2 { font-size: 21px; }
.markdown-body h3 { font-size: 18px; }
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 { font-size: 15px; }
.markdown-body ul,
.markdown-body ol { padding-left: 25px; margin: 0 0 16px; }
.markdown-body li { padding-left: 4px; margin: 5px 0; }
.markdown-body li > p { margin-bottom: 6px; }
.markdown-body blockquote {
  border-left: 3px solid var(--green);
  padding: 6px 16px;
  margin: 16px 0;
  color: var(--muted);
  background: var(--bg);
}
.markdown-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: var(--surface-user);
  border-radius: 4px;
  padding: 2px 5px;
}
.markdown-body pre {
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
  line-height: 1.6;
  white-space: pre;
}
.markdown-body pre code { background: none; padding: 0; color: inherit; }
.markdown-table { overflow-x: auto; margin: 16px 0; }
.markdown-body table { background: var(--surface-panel); }
.markdown-body th { background: var(--surface-sidebar); letter-spacing: normal; font-size: 12px; }
.markdown-body td,
.markdown-body th { min-width: 100px; }
.message.optimistic .message-body {
  border: 1px solid var(--sky);
}
.pending-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px 18px;
  color: var(--muted);
  font-size: 12px;
}
.pending-cancel {
  min-height: 0;
  padding: 3px 8px;
  color: var(--error);
  font-size: 11px;
}
.pending-elapsed {
  color: var(--ocean);
  font-family: Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.pending-track {
  grid-column: 1 / -1;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}
.pending-bar {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--sky));
  animation: pending-slide 1.3s ease-in-out infinite;
}
.message.failed .pending-status,
.message.optimistic.failed .message-heading {
  color: var(--error);
}
@keyframes pending-slide {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(365%);
  }
}
.admin-panel {
  padding: 30px 38px;
  overflow: auto;
  flex: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-heading h1 {
  font-size: 34px;
  margin: 10px 0 24px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 12px;
  padding: 12px 0;
  white-space: nowrap;
  color: var(--muted);
}
.tabs button.active {
  border-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 14px;
}
.card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.metric {
  font:
    30px Consolas,
    monospace;
  letter-spacing: -1px;
  margin: 17px 0;
  color: var(--ink);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
}
.admin-panel .form-grid > .button {
  justify-self: start;
  align-self: end;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
}
.admin-panel fieldset.department-picker,
.admin-dialog fieldset.department-picker {
  min-width: 0;
  grid-column: 1 / -1;
  padding: 16px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.department-picker legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}
.department-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.department-toolbar .department-bulk-action {
  padding: 7px 10px;
  font-size: 11px;
}
.department-search {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.department-picker input[type="search"] {
  width: 100%;
  padding: 9px 10px;
  margin: 6px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
}
.department-summary {
  margin: 2px 0 10px;
}
.department-options {
  max-height: 340px;
  overflow: auto;
  padding: 5px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-panel);
}
.department-node[hidden] {
  display: none;
}
.department-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  border-radius: 5px;
}
.department-row:hover {
  background: var(--surface-hover);
}
.department-expand {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.department-leaf-marker {
  width: 26px;
}
.department-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px 7px 2px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.department-option input {
  flex: none;
}
.department-option span {
  overflow-wrap: anywhere;
}
.department-children {
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.department-help {
  margin: 10px 0 0;
  line-height: 1.6;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 5px;
  padding: 10px;
  color: var(--ink);
  font-size: 12px;
}
.field.check {
  flex-direction: row;
  align-items: center;
}
.field.check input {
  width: auto;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
td pre {
  white-space: pre-wrap;
  max-width: 450px;
  font-size: 11px;
}
pre.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: var(--bg);
  padding: 18px;
  line-height: 1.7;
  max-height: 400px;
  overflow: auto;
}
.documents-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  margin-top: 14px;
}
.documents-toolbar .field {
  flex: 1 1 180px;
}
.documents-bulk {
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}
.documents-table td:first-child,
.documents-table th:first-child {
  width: 32px;
}
.documents-table td {
  vertical-align: middle;
}
.documents-table tr[hidden] {
  display: none;
}
.document-open {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  cursor: pointer;
}
.document-open:hover {
  text-decoration-color: currentColor;
}
.document-origin {
  display: block;
  margin-top: 3px;
}
@media (max-width: 1100px) {
  .documents-table th:nth-child(5),
  .documents-table td:nth-child(5) {
    display: none;
  }
}
@media (max-width: 640px) {
  .documents-table th:nth-child(4),
  .documents-table td:nth-child(4),
  .documents-table th:nth-child(5),
  .documents-table td:nth-child(5) {
    display: none;
  }
}
.empty {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .welcome {
    max-width: 930px;
  }
  .welcome h1 {
    font-size: 58px;
  }
  .suggestions button {
    padding: 24px;
  }
  .messages,
  .composer-wrap {
    max-width: 930px;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 23px 12px;
  }
  .topbar {
    padding: 18px 23px;
  }
  .welcome,
  .messages {
    padding: 24px;
  }
  .composer-wrap {
    padding: 10px 24px;
  }
  .welcome h1 {
    font-size: 39px;
  }
  .suggestions p {
    font-size: 11px;
  }
  .admin-panel {
    padding: 24px;
  }
  .badge {
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .workspace {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }
  .sidebar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 17px;
    margin: 0;
    gap: 8px;
  }
  .brand .brand-logo {
    width: 126px;
  }
  .brand-sub {
    font-size: 12px;
  }
  .new-chat {
    margin: 0;
    padding: 9px;
    margin-left: auto;
    font-size: 11px;
  }
  .nav-label,
  #conversation-list,
  .budget-summary,
  .identity {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
    display: flex;
  }
  .nav-button {
    padding: 7px;
    font-size: 12px;
  }
  #open-audit {
    display: none;
  }
  .main {
    flex: 1;
  }
  .topbar {
    padding: 13px 18px;
  }
  .topbar h2 {
    font-size: 14px;
  }
  .topbar .eyebrow {
    font-size: 11px;
  }
  .badge {
    padding: 5px 7px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .topbar .theme-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .welcome {
    padding: 22px 20px;
  }
  .welcome-symbol {
    font-size: 28px;
  }
  .welcome h1 {
    font-size: 36px;
    margin: 12px 0;
  }
  .welcome > p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .suggestions {
    gap: 9px;
  }
  .suggestions button {
    padding: 14px 12px;
  }
  .suggestions strong {
    font-size: 12px;
    max-width: 130px;
  }
  .suggestions span {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .suggestions b {
    right: 9px;
    top: 10px;
  }
  .suggestions p {
    font-size: 12px;
  }
  .messages {
    padding: 15px 20px;
  }
  .composer-wrap {
    padding: 8px 15px 10px;
  }
  .composer-note {
    font-size: 12px;
  }
  .admin-panel {
    padding: 21px 17px;
  }
  .section-heading h1 {
    font-size: 28px;
  }
  .tabs {
    gap: 16px;
  }
  .login-card h1 {
    font-size: 39px;
  }
  .notice {
    font-size: 12px;
    padding: 8px 18px;
  }
  .card {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .pending-bar {
    width: 100%;
    animation: none;
  }
}
.mobile-menu {
  display: none;
}
@media (max-width: 640px) {
  .mobile-menu {
    display: inline-flex;
    padding: 8px 11px;
  }
  .sidebar-bottom {
    display: none;
  }
  .sidebar.mobile-open {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    flex-wrap: wrap;
    max-height: 85dvh;
    overflow: auto;
    box-shadow: 0 12px 32px var(--mobile-shadow);
  }
  .sidebar.mobile-open #conversation-list {
    display: block;
    flex-basis: 100%;
    max-height: 28dvh;
  }
  .sidebar.mobile-open .sidebar-bottom {
    display: block;
    width: 100%;
  }
  .sidebar.mobile-open .budget-summary {
    display: block;
  }
  .sidebar.mobile-open .identity {
    display: flex;
  }
  .sidebar.mobile-open #open-audit {
    display: block;
  }
}

.chat-tools,.message-actions {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.message-actions .button,.chat-tools .button {padding:6px 10px;font-size:.8rem}
#conversation-search {width:100%;padding:10px;border:1px solid var(--blue);border-radius:8px;margin-bottom:10px;background:var(--input-bg);color:var(--ink)}
.conversation-item > button:first-child {min-width:0;flex:1}
.conversation-item > button:not(:first-child) {flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0}
.sources .small {margin:0}
.message-body pre .button {display:block;margin-top:10px;background:var(--blue);color:var(--on-accent)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid var(--focus);outline-offset:3px}
@media(prefers-reduced-motion:reduce) {* {animation:none!important;scroll-behavior:auto!important}}

.message-actions .icon-button,.message-body pre .icon-button {width:36px;height:36px;padding:7px;display:inline-flex;align-items:center;justify-content:center}
.icon-button svg {width:20px;height:20px;pointer-events:none}
.icon-button[aria-pressed="true"] {background:var(--green);color:var(--on-accent);border-color:var(--green)}
.icon-button:hover {background:var(--sky);color:var(--on-accent)}


/* Chat workspace: a quiet frame around the existing conversation flow. */
.workspace {
  width: min(1520px, calc(100% - 48px));
  height: calc(100dvh - 48px);
  min-height: 520px;
  margin: 24px auto;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-panel);
  box-shadow: 0 24px 80px var(--shadow);
}
body:has(.workspace:not([hidden])) {
  background: radial-gradient(ellipse at 12% 8%, var(--login-glow), transparent 48%),
    radial-gradient(ellipse at 92% 88%, var(--tint), transparent 48%), var(--bg);
}
.sidebar {
  padding: 22px 16px 16px;
  background: var(--surface-soft);
}
.brand { margin-bottom: 24px; }
.brand .brand-logo { max-width: 168px; }
.brand-sub { margin-top: 3px; }
.new-chat {
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
}
.new-chat:hover { background: var(--ocean); color: var(--surface-panel); }
:root[data-theme="dark"] .new-chat {
  border-color: var(--green);
  background: var(--green);
  color: var(--navy);
}
.nav-label { margin-bottom: 8px; }
#conversation-search { margin-bottom: 14px; border-color: var(--line); }
.conversation-item button { padding-top: 9px; padding-bottom: 9px; }
.main { min-width: 0; background: var(--surface-panel); }
.topbar {
  min-height: 68px;
  padding: 14px 28px;
  border-bottom-color: var(--line);
}
.topbar .eyebrow { font-size: 11px; }
.topbar h2 { font-size: 14px; margin-top: 2px; }
.chat-panel { background: var(--surface-panel); }
.chat-panel:has(#welcome:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 24px;
}
.chat-panel:has(#welcome:not([hidden])) .welcome { display: contents; }
.chat-panel:has(#welcome:not([hidden])) .welcome-intro {
  grid-row: 1;
  width: min(100%, 720px);
  text-align: center;
}
.chat-panel:has(#welcome:not([hidden])) .messages { display: none; }
.chat-panel:has(#welcome:not([hidden])) .composer-wrap {
  grid-row: 2;
  position: static;
  width: min(100%, 720px);
  max-width: none;
  padding: 0;
  background: transparent;
}
.chat-panel:has(#welcome:not([hidden])) .suggestions {
  grid-row: 3;
  width: min(100%, 720px);
}
.welcome-symbol {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 27%, #fff 0%, var(--sky) 18%,
    var(--blue) 44%, var(--navy) 75%, var(--green) 100%);
  box-shadow: inset -11px -13px 19px #00253f5c, inset 7px 7px 15px #ffffffad,
    0 0 0 7px var(--surface-soft), 0 0 38px var(--sky);
}
:root[data-theme="dark"] .welcome-symbol {
  background: radial-gradient(circle at 32% 24%, #e7f3e7 0%, var(--sky) 23%,
    var(--blue) 48%, var(--navy) 78%, var(--green) 100%);
}
.welcome-intro .eyebrow { color: var(--ocean); }
.welcome h1 {
  margin: 8px 0 7px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.18;
}
.welcome > .welcome-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.composer-wrap { max-width: 800px; }
.composer {
  border-color: var(--line);
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 7px 27px var(--shadow);
}
.composer:focus-within { border-color: var(--blue); }
.composer textarea { min-height: 68px; background: transparent; }
.composer textarea:focus-visible,
.composer-controls select:focus-visible { outline: none; }
.composer-controls select:focus-visible { box-shadow: inset 0 -2px var(--blue); }
.composer-controls { border-top: 1px solid var(--line); padding-top: 10px; }
.composer-controls .primary { border-radius: 9px; }
.composer-wrap { display: flex; flex-direction: column; }
.composer-wrap .composer { order: 1; }
.composer-wrap .chat-tools { order: 2; margin: 10px 0 0; }
.composer-wrap .composer-note { order: 3; }
.chat-tools .button {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
.suggestions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.suggestions button {
  min-height: 122px;
  padding: 15px;
  border-radius: 13px;
  box-shadow: 0 3px 14px var(--shadow);
}
.suggestions button:hover { border-color: var(--blue); background: var(--surface-soft); }
.suggestions strong { margin: 11px 0 5px; font-size: 12px; }
.suggestions p { font-size: 12px; line-height: 1.45; }
.suggestions b { top: 14px; right: 13px; }
.messages { max-width: 800px; }

@media (max-width: 1050px) {
  .workspace { width: calc(100% - 24px); height: calc(100dvh - 24px); margin: 12px auto; }
  .suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggestions button { min-height: 100px; }
}
@media (max-width: 640px) {
  .workspace { width: 100%; height: 100dvh; min-height: 0; margin: 0; border: 0; border-radius: 0; }
  .sidebar { padding: 10px 14px; }
  .brand { margin: 0; }
  .brand .brand-logo { width: 110px; }
  .new-chat { margin: 0 0 0 auto; }
  #conversation-search { display: none; }
  .sidebar.mobile-open #conversation-search { display: block; flex-basis: 100%; margin: 0; }
  .topbar { min-height: 58px; padding: 10px 16px; }
  .topbar .eyebrow, .topbar .badge { display: none; }
  .chat-panel:has(#welcome:not([hidden])) { align-content: start; gap: 15px; padding: 24px 16px; }
  .welcome-symbol { width: 62px; height: 62px; margin-bottom: 15px; }
  .welcome h1 { font-size: 26px; }
  .composer-wrap { padding: 8px 16px 12px; }
  .composer { padding: 12px; }
  .composer textarea { min-height: 55px; }
  .suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggestions button { min-height: 105px; padding: 12px; }
  .suggestions strong { max-width: none; }
}

/* Data warehouse analyses chat */
.dw-chat {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.dw-chat[hidden] {
  display: none;
}
.dw-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}
.dw-sidebar nav {
  flex: 1;
}
.dw-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.dw-thread {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 38px;
  flex: 1;
}
.dw-welcome {
  padding: 40px 0 10px;
}
.dw-welcome h1 {
  font-size: 32px;
  margin: 10px 0 12px;
}
.dw-welcome p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 620px;
}
.dw-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.dw-suggestions .button {
  text-align: left;
  white-space: normal;
}
.dw-message .message-body.markdown-body {
  white-space: normal;
}
.dw-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.dw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dw-chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.dw-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.dw-progress li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dw-progress li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  box-sizing: border-box;
}
.dw-progress li.done::before {
  background: var(--green);
  border-color: var(--green);
}
.dw-progress li.current {
  color: var(--ink);
  font-weight: 700;
}
.dw-progress li.current::before {
  border-color: var(--green);
  animation: dw-pulse 1.2s ease-in-out infinite;
}
@keyframes dw-pulse {
  50% {
    background: var(--green);
  }
}
.dw-report {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 12px 16px;
}
.dw-report figcaption {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.dw-report td:first-child {
  white-space: nowrap;
}
.dw-report .dw-report-subtotal td {
  font-weight: 700;
  border-top: 2px solid var(--line);
}
.dw-criteria,
.dw-evidence {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  margin-top: 12px;
  padding: 10px 16px;
}
.dw-criteria summary,
.dw-evidence > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.dw-evidence > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.dw-evidence[open] > summary {
  margin-bottom: 12px;
}
.dw-criteria ul {
  margin: 8px 0 4px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
}
.dw-composer-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 38px 17px;
  position: sticky;
  bottom: 0;
  background: var(--surface-main);
}
.dw-composer {
  background: var(--surface-panel);
  border: 1px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 6px 24px var(--shadow);
  padding: 12px 16px;
}
.dw-composer textarea {
  width: 100%;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.dw-filter-box summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.dw-filter-box .form-grid {
  margin-top: 10px;
}
.dw-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.dw-composer-actions p {
  margin: 0 auto 0 0;
}
.dw-toggle {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
}
.dw-toggle .button {
  padding: 6px 14px;
  font-size: 12px;
}
.dw-toggle .button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--code-text);
}
.dw-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dw-table tfoot td {
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid var(--line);
}
.dw-more {
  margin-top: 10px;
}
.dw-chart {
  margin: 4px 0 8px;
}
.dw-chart figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.dw-bar-plot {
  display: grid;
  gap: 7px;
}
.dw-bar {
  display: grid;
  grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.dw-bar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-bar-track {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-soft);
  overflow: hidden;
}
.dw-bar-fill {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 6px;
}
.dw-bar .number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dw-column-plot {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 200px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.dw-column {
  flex: 1 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 34px;
}
.dw-column-value {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dw-column-track {
  flex: 1;
  width: 100%;
  max-width: 44px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-soft);
  border-radius: 6px 6px 0 0;
}
.dw-column-fill {
  width: 100%;
  background: var(--green);
  border-radius: 6px 6px 0 0;
}
.dw-column-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.dw-bar-fill.negative,
.dw-column-fill.negative {
  background: var(--error);
}
.dw-details {
  margin-top: 14px;
  font-size: 12px;
}
.dw-details summary {
  cursor: pointer;
  color: var(--muted);
}
.dw-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 14px;
  border-radius: 6px;
}
@media (max-width: 900px) {
  .dw-chat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .dw-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 190px;
    padding: 12px 16px;
  }
  .dw-thread,
  .dw-composer-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 640px) {
  .dw-filter-box .form-grid {
    max-height: 38vh;
    overflow-y: auto;
  }
  .dw-bar {
    grid-template-columns: minmax(60px, 110px) minmax(0, 1fr) auto;
  }
  .dw-column-value {
    display: none;
  }
  .dw-welcome h1 {
    font-size: 25px;
  }
}

/* Compact composer: full controls on the welcome screen, a slimmer bar inside a conversation. */
.composer textarea {
  resize: none;
  max-height: 200px;
  overflow-y: auto;
}
.composer-controls {
  gap: 10px;
}
.composer-controls label {
  margin-right: auto;
}
.tools-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-panel);
  color: var(--ink);
}
.tools-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.15s;
}
.tools-toggle[aria-expanded="true"] svg {
  transform: rotate(45deg);
}
.chat-panel:has(#welcome:not([hidden])) .tools-toggle {
  display: none;
}
.chat-panel:has(#welcome[hidden]) .composer {
  padding: 10px 12px;
}
.chat-panel:has(#welcome[hidden]) .composer textarea {
  min-height: 26px;
}
.chat-panel:has(#welcome[hidden]) .composer-controls {
  margin-top: 6px;
  padding-top: 8px;
}
.chat-panel:has(#welcome[hidden]) .composer-controls label .small,
.chat-panel:has(#welcome[hidden]) .composer-note,
.chat-panel:has(#welcome[hidden]) .composer-wrap:not(.tools-open) .chat-tools {
  display: none;
}
.chat-panel:has(#welcome[hidden]) #send {
  padding: 9px 16px;
}
.chat-status {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
}
.conversation-state {
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
}
.conversation-state.failed p {
  color: var(--error);
  margin: 0 0 12px;
}
.chat-busy .conversation-item > button,
.chat-busy #new-chat {
  opacity: 0.6;
  cursor: not-allowed;
}
#send {
  white-space: nowrap;
}
.conversation-rename {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.feedback-comment {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.feedback-comment textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.feedback-comment .actions {
  margin-top: 8px;
}
.chat-tools .integration {
  border-color: var(--blue);
  font-weight: 600;
}
.tools-separator {
  align-self: stretch;
  width: 1px;
  background: var(--line);
}

/* Admin: grouped tabs and pickers that replace typed IDs. */
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 22px;
}
.subtabs button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.subtabs button.active {
  border-color: var(--blue);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
}
.admin-panel fieldset.checklist {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.checklist legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}
.checklist input[type="search"] {
  width: 100%;
  margin: 4px 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
}
.checklist-options {
  max-height: 220px;
  overflow: auto;
}
.checklist-options label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 2px;
  font-size: 12px;
  color: var(--ink);
}
.checklist-options label[hidden] {
  display: none;
}
.config-ok::before,
.config-pending::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
}
.config-ok::before {
  background: var(--green);
}
.config-pending::before {
  background: var(--warning);
}
.audit-subject {
  display: block;
  margin-top: 3px;
}
.audit-table details {
  margin-top: 6px;
}

/* Accessibility and layout order. */
.composer:has(textarea:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.chat-panel:has(#welcome[hidden]) .suggestions {
  display: none;
}
.conversation-item svg,
.logout svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.conversation-item svg.filled {
  fill: currentColor;
}
.logout {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
}
.search-empty {
  padding: 8px 2px;
}
.menu-backdrop {
  display: none;
}
@media (max-width: 640px) {
  .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgb(0 20 32 / 45%);
  }
}

/* Dialogs: fixed header and footer around a scrolling body. */
.app-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-panel);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(0 20 32 / 28%);
}
.app-dialog[open] {
  display: flex;
  flex-direction: column;
}
.app-dialog::backdrop {
  background: rgb(0 20 32 / 55%);
}
.app-dialog.admin-dialog {
  width: min(780px, calc(100vw - 32px));
}
.app-dialog.confirm-dialog,
.app-dialog.narrow {
  width: min(480px, calc(100vw - 32px));
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 16px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-titles {
  flex: 1;
  min-width: 0;
}
.dialog-header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}
.dialog-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
}
.dialog-close:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}
.dialog-body > :first-child {
  margin-top: 0;
}
.dialog-body > :last-child {
  margin-bottom: 0;
}
.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.dialog-footer:empty {
  display: none;
}
.dialog-footer .footer-start {
  margin-right: auto;
}
.confirm-dialog .dialog-header {
  border-bottom: 0;
}
.confirm-dialog .dialog-body:empty {
  display: none;
}
.confirm-dialog .dialog-footer {
  background: none;
  border-top: 0;
  padding-top: 4px;
}

/* One look for every form control inside a dialog. */
.dialog-form,
.dialog-optional {
  display: grid;
  gap: 14px;
}
.dialog-body label:not(.choice):not(.department-option),
.dialog-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.dialog-body input:not([type="checkbox"]):not([type="radio"]),
.dialog-body textarea,
.dialog-body select {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}
.dialog-body textarea {
  resize: vertical;
  line-height: 1.5;
}
.dialog-body input:not([type="checkbox"]):focus-visible,
.dialog-body textarea:focus-visible,
.dialog-body select:focus-visible {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 0;
}
.dialog-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
}
.dialog-body input:not([type="checkbox"]):not([type="radio"]),
.dialog-body select {
  min-height: 42px;
}
.dialog-optional {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.dialog-optional > .small {
  margin: 0;
}
.dialog-hint {
  margin: 0;
}
.dialog-status:empty {
  display: none;
}
.dialog-section-title {
  margin: 0 0 12px;
  font-size: 15px;
}
.task-result-title {
  font-weight: 600;
}
.dialog-empty {
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.dialog-recent {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.dialog-recent summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dialog-recent[open] summary {
  margin-bottom: 10px;
}

/* Lists inside dialogs: searchable checkboxes and clickable rows. */
.dialog-search {
  margin-bottom: 10px;
}
.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.button.subtle {
  padding: 5px 10px;
  border-color: transparent;
  background: none;
  font-size: 12px;
}
.choice-list {
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.choice:hover {
  background: var(--surface-hover);
}
.choice[hidden] {
  display: none;
}
.choice input {
  flex: none;
  margin-top: 2px;
}
.saved-list {
  display: grid;
  gap: 8px;
}
.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-panel);
  color: var(--ink);
  text-align: left;
}
.saved-item:hover {
  border-color: var(--blue);
  background: var(--surface-soft);
}
.saved-snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.5;
}
.saved-open,
.status-chip {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.status-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
}
.status-created {
  color: var(--ink);
}
.status-creating,
.status-uncertain,
.status-checklist_incomplete {
  background: var(--warning-bg);
  color: var(--warning);
}
.tips {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.tips dt {
  font-weight: 700;
}
.tips dd {
  margin: 0;
  color: var(--muted);
}
.admin-dialog .document-version {
  overflow-wrap: anywhere;
}
.admin-dialog details {
  margin-top: 16px;
}
@media (max-width: 640px) {
  .app-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }
  .dialog-header,
  .dialog-body,
  .dialog-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .dialog-footer .button {
    flex: 1 1 auto;
  }
  .tips {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tips dd {
    margin-bottom: 10px;
  }
}

/* Attachments: paperclip button, chips above the prompt, tags under sent questions. */
.attach-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-panel);
  color: var(--ink);
}
.attach-button[hidden] {
  display: none;
}
.attach-button:hover {
  border-color: var(--blue);
}
.attach-button svg,
.attachment-chip svg,
.attachment-tag svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attach-button svg {
  width: 18px;
  height: 18px;
}
.attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.attachment-chips[hidden] {
  display: none;
}
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 340px);
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.attachment-chip > svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.attachment-chip.reading > svg {
  animation: attachment-pulse 1.2s ease-in-out infinite;
}
.attachment-chip.failed {
  border-color: var(--error-line);
  background: var(--error-bg);
}
.attachment-chip.failed .attachment-status {
  color: var(--error);
}
.attachment-text {
  display: grid;
  min-width: 0;
}
.attachment-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.attachment-remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
}
.attachment-remove:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.attachment-remove svg {
  width: 14px;
  height: 14px;
}
.attachment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.attachment-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}
.attachment-tag svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.attachment-tag .attachment-name {
  font-weight: 500;
}
.attachment-tag.expired {
  opacity: 0.7;
}
.attachment-reuse {
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.attachment-reuse:hover {
  background: var(--surface-hover);
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  border: 3px dashed var(--blue);
  background: rgb(0 20 32 / 45%);
  pointer-events: none;
}
.drop-overlay[hidden] {
  display: none;
}
.drop-overlay span {
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--surface-panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
@keyframes attachment-pulse {
  50% {
    opacity: 0.35;
  }
}
.attachment-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
}
.attachment-metric {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.attachment-metric strong {
  font-size: 14px;
}
.attachment-rejections {
  margin-top: 14px;
}
.attachment-rejections h4 {
  margin: 0 0 6px;
  font-size: 13px;
}
.attachment-rejections p {
  margin: 2px 0;
}

.dw-feedback .message-actions {
  align-items: center;
  margin: 10px 0 0;
}
.dw-reasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.dw-reason {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.dw-reason[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-accent);
}

/* Visuals chosen by the analyses agent. */
.dw-visual {
  position: relative;
}
.dw-s1 { --dw-color: var(--dw-series-1); }
.dw-s2 { --dw-color: var(--dw-series-2); }
.dw-s3 { --dw-color: var(--dw-series-3); }
.dw-s4 { --dw-color: var(--dw-series-4); }
.dw-s5 { --dw-color: var(--dw-series-5); }
.dw-s-other { --dw-color: var(--dw-series-other); }
.dw-s-total { --dw-color: var(--dw-series-total); }
.dw-bar-fill.dw-s1,
.dw-bar-fill.dw-s2,
.dw-bar-fill.dw-s3,
.dw-bar-fill.dw-s4,
.dw-bar-fill.dw-s5,
.dw-bar-fill.dw-s-other,
.dw-swatch,
.dw-stack-part,
.dw-float {
  background: var(--dw-color);
}
.dw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.dw-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dw-swatch {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.dw-legend-values {
  display: grid;
  gap: 6px;
}
.dw-legend-values li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
}
.dw-legend-values .number,
.dw-share {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dw-svg-wrap {
  position: relative;
  overflow-x: auto;
}
.dw-svg {
  display: block;
  width: 100%;
  min-width: 440px;
  max-width: 640px;
  height: auto;
}
.dw-svg .dw-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.dw-svg .dw-axis {
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.6;
}
.dw-svg .dw-tick {
  fill: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dw-svg .dw-line {
  fill: none;
  stroke: var(--dw-color);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dw-svg .dw-dot {
  fill: var(--dw-color);
  stroke: var(--surface-panel);
  stroke-width: 2;
}
.dw-svg .dw-fill {
  fill: var(--dw-color);
}
.dw-svg .dw-fill.negative {
  fill: var(--error);
}
.dw-svg .dw-hit {
  fill: transparent;
}
.dw-svg .dw-group:hover .dw-fill {
  opacity: 0.85;
}
.dw-svg .dw-cross {
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.5;
}
.dw-tooltip {
  position: absolute;
  top: 4px;
  z-index: 2;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-panel);
  box-shadow: 0 4px 14px var(--mobile-shadow);
  font-size: 12px;
  pointer-events: none;
}
.dw-tooltip strong {
  display: block;
  margin-bottom: 4px;
}
.dw-tooltip div {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dw-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.dw-kpi {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.dw-kpi-label {
  font-size: 12px;
  color: var(--muted);
}
.dw-kpi strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.dw-stack {
  display: flex;
  gap: 2px;
  height: 18px;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}
.dw-stack-part {
  flex-basis: 0;
  min-width: 2px;
}
.dw-compare {
  display: grid;
  gap: 12px;
}
.dw-compare-group {
  display: grid;
  gap: 4px;
}
.dw-compare-label {
  font-size: 12px;
  font-weight: 600;
}
.dw-compare-group .dw-bar > span:first-child {
  color: var(--muted);
}
.dw-float-track {
  position: relative;
}
.dw-float {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.dw-total-row {
  font-weight: 700;
}
.dw-cross th[scope="row"] {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.dw-cross td.dw-cross-total {
  font-weight: 700;
}
.dw-cross .dw-heat-0 { background: var(--dw-heat-0); }
.dw-cross .dw-heat-1 { background: var(--dw-heat-1); }
.dw-cross .dw-heat-2 { background: var(--dw-heat-2); }
.dw-cross .dw-heat-3 { background: var(--dw-heat-3); color: var(--dw-heat-ink-strong); }
.dw-cross .dw-heat-4 { background: var(--dw-heat-4); color: var(--dw-heat-ink-strong); }
.dw-cross .dw-heat-5 { background: var(--dw-heat-5); color: var(--dw-heat-ink-strong); }
:root[data-theme="dark"] .dw-cross .dw-heat-0,
:root[data-theme="dark"] .dw-cross .dw-heat-1,
:root[data-theme="dark"] .dw-cross .dw-heat-2,
:root[data-theme="dark"] .dw-cross .dw-heat-3 {
  color: var(--ink);
}
@media (max-width: 600px) {
  /* Names get their own line above the bar on phones. */
  .dw-visual .dw-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 3px;
  }
  .dw-visual .dw-bar > span:first-child {
    grid-column: 1 / -1;
  }
}
.badge.dw-reused {
  border-color: var(--blue);
  background: var(--surface-hover);
}
/* Analyses widget shown in an iframe of another internal system. */
body.embed {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-main);
}
.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-panel);
}
.embed-title {
  font-size: 14px;
  font-weight: 700;
}
.embed-header .theme-toggle {
  width: 32px;
  height: 32px;
}
body.embed .dw-chat {
  flex: 1;
  min-height: 0;
}
.embed-gate {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
}
.embed-gate .card {
  max-width: 420px;
  display: grid;
  gap: 12px;
  text-align: center;
}
.embed-gate h1 {
  margin: 0;
  font-size: 20px;
}
.embed-gate p {
  margin: 0;
}
/* Overdue access review on the admin overview. */
.card.review-due {
  border-left: 4px solid var(--warning);
}
.access-review td:nth-child(4) {
  text-align: right;
}
/* Admin performance card. */
.performance-table td:nth-child(n + 2):not(:last-child) {
  white-space: nowrap;
}
.card h4 {
  margin: 16px 0 8px;
  font-size: 13px;
}
/* Answer shown while it is being written. */
.message.pending .message-body.streaming {
  margin-bottom: 10px;
}
.message.pending .message-body.streaming > :last-child::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  opacity: 0.5;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .message.pending .message-body.streaming > :last-child::after {
    animation: none;
  }
}
/* Startup screen while the session is checked. */
.boot-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--surface-main);
}
.boot-screen[hidden] {
  display: none;
}
.boot-screen .brand-logo {
  width: 180px;
  height: auto;
}
.boot-spinner,
.button[aria-busy="true"]::after {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.button[aria-busy="true"] {
  cursor: progress;
}
.button[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Placeholders while lists and panels load. */
.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--line) 25%, var(--surface-panel) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-line {
  height: 34px;
  margin: 6px 0;
}
.skeleton-card {
  height: 140px;
  margin-bottom: 16px;
  border-radius: 12px;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .boot-spinner,
  .button[aria-busy="true"]::after {
    animation: none;
  }
}
