:root {
  color-scheme: light;
  --ink: #192e28;
  --muted: #687a73;
  --border: #dce5df;
  --canvas: #f4f7f4;
  --accent: #14664b;
  --dark: #112c24;
  --shadow: 0 2px 5px #193b2710;
  font:
    14px/1.55 Inter,
    "Noto Sans CJK SC",
    "Noto Sans CJK JP",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
:root[data-admin-theme="forest"] {
  --focus: #34785e;
  --series-secondary: #7964a0;
}
:root[data-admin-theme="ocean"] {
  --accent: #205db0;
  --dark: #142942;
  --ink: #192c42;
  --muted: #53667b;
  --border: #d7e1eb;
  --canvas: #f2f6fa;
  --accent-strong: #174780;
  --focus: #3971b2;
  --accent-soft: #e1edfb;
  --accent-faint: #f1f6fd;
  --surface-subtle: #f7f9fc;
  --control-border: #bbcbdc;
  --control-hover: #869fbd;
  --side-on-dark: #e3edf9;
  --side-muted: #bacce1;
  --side-tile: #2d4867;
  --highlight: #bedfff;
  --highlight-ink: #163452;
  --series-secondary: #b36925;
  --art-light: #e2f4ff;
  --art-mid: #93c6f8;
  --art-shade: #527fb2;
  --art-rim: #74a1cf;
  --art-edge: #385c84;
  --art-glow: #294e78;
  --focus-halo: #205db026;
  --tinted-shadow: #152e480f;
  --shadow: 0 2px 5px var(--tinted-shadow);
}
:root[data-admin-theme="plum"] {
  --accent: #7046a0;
  --dark: #30233e;
  --ink: #302539;
  --muted: #695a73;
  --border: #e2dbe8;
  --canvas: #f7f4f9;
  --accent-strong: #57337e;
  --focus: #8052a9;
  --accent-soft: #eee4f5;
  --accent-faint: #f7f2fa;
  --surface-subtle: #faf8fb;
  --control-border: #ccbed6;
  --control-hover: #ac94ba;
  --side-on-dark: #f1e8f8;
  --side-muted: #d6c6df;
  --side-tile: #513d61;
  --highlight: #e6cbfa;
  --highlight-ink: #3c254a;
  --series-secondary: #367c87;
  --art-light: #f8e7ff;
  --art-mid: #cfaaed;
  --art-shade: #9669ad;
  --art-rim: #b48ac9;
  --art-edge: #704f83;
  --art-glow: #5a4069;
  --focus-halo: #7046a026;
  --tinted-shadow: #3827400f;
  --shadow: 0 2px 5px var(--tinted-shadow);
}
:root:is([data-admin-theme="ocean"], [data-admin-theme="plum"]) {
  --accent-detail: var(--accent);
  --subtle-ink: var(--muted);
  --art-dark: var(--dark);
  --divider: var(--border);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus, #4c9c80);
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 720;
  font-size: 24px;
  letter-spacing: -1.3px;
  line-height: 1;
}
.brand > span {
  font-weight: 400;
}
.brand > i {
  display: grid;
  place-items: center;
  color: var(--highlight-ink, #133c2d);
  background: var(--highlight, #bef399);
  width: 35px;
  height: 35px;
  margin-right: 10px;
  border-radius: 10px;
}
.brand svg {
  width: 29px;
  height: 29px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 226px;
  flex: 0 0 226px;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: var(--side-on-dark, #dbe9df);
}
.side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 23px 32px;
}
.sidebar nav {
  padding: 0 14px;
  overflow: auto;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 45px;
  margin: 3px 0;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 530;
  color: var(--side-muted, #c4d5cc);
}
.navitem:hover,
.side-foot .icon-btn:hover {
  background: #ffffff0d;
  color: white;
}
.navitem.current {
  background: var(--highlight, #c8f3aa);
  color: var(--highlight-ink, #163629);
}
.navitem:nth-child(7) {
  margin-top: 20px;
}
.side-foot {
  margin: auto 15px 0;
  border-top: 1px solid #ffffff24;
  padding: 20px 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  flex: none;
  width: 35px;
  height: 35px;
  border: 1px solid var(--control-hover, #638473);
  color: var(--side-on-dark, #ddf4df);
  border-radius: 11px;
  background: var(--side-tile, #335344);
  display: grid;
  place-items: center;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.identity-name {
  min-width: 0;
}
.side-foot a {
  min-width: 0;
  flex: 1;
}
.side-foot strong,
.side-foot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-foot small {
  font-size: 11px;
  color: var(--side-muted, #adc4b7);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border-radius: 7px;
  min-width: 34px;
  min-height: 34px;
}
.icon-btn:hover,
.language:hover {
  background: var(--accent-faint, #e6ede7);
}
.main {
  min-width: 0;
  flex: 1;
}
.topbar {
  min-height: 68px;
  padding: 12px clamp(18px, 3vw, 46px);
  background: #ffffffec;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar > div,
.language {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .crumb,
.topbar svg {
  color: var(--muted);
}
.topbar strong {
  font-size: 13px;
  font-weight: 600;
}
.language {
  padding: 7px 10px;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  gap: 7px;
}
.content {
  container-type: inline-size;
  max-width: 1620px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 46px);
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.titlebar > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.titlebar h1,
.thread-top strong,
.actionbox p {
  overflow-wrap: anywhere;
}
.titlebar .actions {
  flex: 0 0 auto;
  max-width: 100%;
}
.titlebar .actions:empty {
  display: none;
}
.titlebar p,
.login-card > p,
.guest-intro > p {
  color: var(--muted);
  margin-top: 8px;
}
.actions,
.inline-actions,
.form-actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.date,
.range,
.legend,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.date,
.range,
.chart-meta,
.pager {
  font-size: 12px;
  color: var(--muted);
}
.date {
  margin-right: 4px;
}
.range {
  padding: 4px 10px;
  background: var(--accent-faint, #f2f6f1);
  border-radius: 6px;
}
.btn {
  border: 1px solid var(--control-border, #cddad1);
  background: white;
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 570;
  font-size: 13px;
}
.btn:hover {
  background: var(--accent-faint, #f0f6ef);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-strong, #0e543d);
}
.textlink,
.link,
.history {
  color: var(--accent);
  font-weight: 600;
}
.textlink:hover,
.history:hover {
  text-decoration: underline;
}
.link {
  border: 0;
  background: none;
  padding: 2px;
  min-height: unset;
}
.drawer-close,
.scrim {
  display: none;
}
.panel,
.kpi,
.guest-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.panel {
  min-width: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--divider, #e9eee9);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.kpi {
  container-type: inline-size;
  min-width: 0;
  padding: 19px 20px 14px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: var(--control-hover, #a7c3b0);
}
.kpi > div,
.chart-meta,
.pager,
.pager > div,
.thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kpi > div > svg {
  color: var(--subtle-ink, #9caca1);
}
.icon-tile,
.login-mark,
.queue-item i {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}
.icon-tile {
  width: 36px;
  height: 36px;
}
.mint {
  background: var(--accent-soft, #dbf1df);
  color: var(--accent-detail, #30714c);
}
.blue {
  background: #e6edf8;
  color: #4b7299;
}
.amber {
  background: #fff1d7;
  color: #9c6c24;
}
.lilac {
  background: #ede7f5;
  color: #765694;
}
.kpi p {
  font-size: 13px;
  color: var(--subtle-ink, #566b60);
  margin: 12px 0 3px;
}
.kpi strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  font-size: clamp(25px, 2.1vw, 34px);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.kpi.long .kpi-number {
  font-size: clamp(16px, 12cqi, 32px);
}
.kpi.extra-long .kpi-number {
  font-size: clamp(14px, 8cqi, 24px);
}
.kpi strong small {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 550;
}
.kpi footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}
.kpi footer b {
  color: var(--ink);
  margin-left: 4px;
}
.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr);
  gap: 18px;
}
.dashboard-row > .panel:only-child {
  grid-column: 1/-1;
}
.chart-meta {
  padding: 16px 22px 3px;
  flex-wrap: wrap;
}
.legend {
  margin-left: 12px;
  font-size: 11px;
}
.legend:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-detail, #25845f);
}
.legend.withdrawals:before {
  background: var(--series-secondary, #a99cda);
}
.chart {
  container-type: inline-size;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  align-items: stretch;
  padding: 16px 22px 18px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.chart svg {
  display: block;
  width: 100%;
  height: 164px;
  margin-block: 6px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: end;
}
.chart-axis span,
.chart-dates span {
  line-height: 16px;
}
.chart-dates {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
}
.chart line,
.chart polyline {
  vector-effect: non-scaling-stroke;
}
@container (max-width: 380px) {
  .chart-dates span:nth-child(even) {
    display: none;
  }
}
.gridline {
  stroke: var(--divider, #dce6de);
  stroke-dasharray: 4 5;
}
.chart polyline {
  stroke-width: 3;
  fill: none;
  stroke-linejoin: round;
}
.line-deposits {
  stroke: var(--accent-detail, #25845f);
}
.line-withdrawals {
  stroke: var(--series-secondary, #a99cda);
  stroke-dasharray: 6 4;
}
.queue {
  padding: 3px 18px;
}
.queue-item {
  min-height: 58px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--divider, #ebefeb);
}
.queue-item:last-child {
  border-bottom: 0;
}
.queue-item:hover {
  color: var(--accent);
}
.queue-item i {
  background: var(--accent-faint, #f1f5ef);
  width: 31px;
  height: 31px;
  color: var(--subtle-ink, #54715c);
}
.queue-item span {
  flex: 1;
}
.queue-item b {
  font-variant-numeric: tabular-nums;
}
.queue-item > svg {
  color: var(--subtle-ink, #87978c);
}
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, var(--surface-subtle, #f8faf8));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}
.field > span:first-child {
  font-weight: 600;
}
.field input, .field select, .field textarea, .composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--control-border, #c5d3cb);
  border-radius: 9px;
  padding: 8px 12px;
  background: #fff;
}
.field textarea, .composer textarea { resize: vertical; }
.field input[readonly] { background: var(--surface-subtle, #f3f6f2); }
.filters .field > span:first-child {
  color: var(--subtle-ink, #51665a);
  font-size: 12px;
}
.filter-query { flex: 1 1 180px; }
.search, .desk-search, .range-inputs, .select-control select {
  border: 1px solid var(--control-border, #bdcfc3);
  border-radius: 9px;
  background: white;
  box-shadow: 0 1px 2px var(--tinted-shadow, #1a382809);
  transition: border-color .15s, box-shadow .15s;
}
.search, .desk-search {
  display: flex;
  align-items: center;
  height: 42px;
}
.search {
  gap: 8px;
  padding-inline: 12px 8px;
  color: var(--subtle-ink, #617c6c);
}
.search input, .desk-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
}
.search input::placeholder, .desk-search input::placeholder { color: var(--subtle-ink, #65796e); opacity: 1; }
.search input:focus, .desk-search input:focus, .date-endpoint input:focus { outline: none; }
.select-control { display: block; position: relative; }
.select-control select {
  appearance: none;
  display: block;
  padding-inline-end: 34px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.select-control > svg {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle-ink, #51705b);
  pointer-events: none;
}
@supports (appearance: base-select) {
  @media (pointer: fine) {
    .select-control select, .select-control select::picker(select) { appearance: base-select; }
    .select-control select { align-content: center; }
    .select-control select::picker-icon { display: none; }
    .select-control select::picker(select) {
      margin-block: 4px;
      padding: 4px;
      border: 1px solid var(--control-border, #c4d5c9);
      border-radius: 10px;
      background: white;
      color: var(--ink);
      box-shadow: 0 7px 24px #142d251f;
      max-height: min(18rem, 50vh);
      max-width: calc(100vw - 20px);
      overflow: auto;
    }
    .select-control option {
      padding: 8px 10px;
      border-radius: 6px;
      overflow-wrap: anywhere;
      white-space: normal;
    }
    .select-control option:checked { background: var(--accent-soft, #e6f1eb); color: var(--accent-strong, #17563e); font-weight: 600; }
    .select-control option:hover, .select-control option:focus-visible { background: var(--accent-faint, #eff5f0); }
    .select-control option::checkmark { order: 1; margin-inline-start: auto; }
    .select-control:has(select:open) > svg { transform: translateY(-50%) rotate(180deg); }
  }
}
.search:hover, .desk-search:hover, .range-inputs:hover, .select-control select:hover { border-color: var(--control-hover, #90ad9a); }
.search:focus-within, .desk-search:focus-within, .range-inputs:focus-within, .select-control select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-halo, #14664b20);
  outline: none;
}
.filters .btn { height: 42px; border-radius: 9px; white-space: nowrap; }
.range-inputs {
  display: flex;
  align-items: center;
  height: 42px;
  padding-inline: 4px;
}
.range-inputs > svg { color: var(--subtle-ink, #82968a); }
.date-endpoint {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.date-endpoint input {
  width: 132px;
  max-width: 100%;
  height: 36px;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0 5px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.date-endpoint input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
.date-endpoint.enhanced input { width: 100px; }
.date-endpoint.enhanced input::-webkit-calendar-picker-indicator { display: none; }
.calendar-trigger {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  color: var(--subtle-ink, #577564);
}
.calendar-trigger[hidden], .date-hint { display: none; }
.calendar-trigger:hover, .calendar-trigger[aria-expanded="true"] { background: var(--accent-faint, #e9f2ec); color: var(--accent); }
.date-endpoint.enhanced.date-blank:not(:focus-within) input { opacity: 0; }
.date-endpoint.enhanced.date-blank:not(:focus-within) .date-hint {
  display: block;
  position: absolute;
  inset-inline-start: 7px;
  pointer-events: none;
  font-size: 13px;
  color: var(--subtle-ink, #65796e);
}
.form-grid {
  align-items: end;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.panel:has(.password-form) {
  max-width: 800px;
}
.password-form .field:first-of-type {
  grid-column: 1 / -1;
}
.wide,
.form-actions {
  grid-column: 1/-1;
}
.form-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.inline {
  display: inline;
}
.inline-actions,
.chat-tools {
  padding: 16px 21px;
}
.perm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}
.perm-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  cursor: pointer;
  background: var(--canvas);
  padding: 9px;
  border-radius: 6px;
}
.perm-list input {
  accent-color: var(--accent);
  flex: none;
  margin: 3px 0 0;
}
.cell-value {
  width: max-content;
  max-width: clamp(12rem, 22vw, 22rem);
  white-space: normal;
  overflow-wrap: anywhere;
}
.list-panel th:last-child,
.list-panel td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -1px 0 var(--border);
}
.list-panel th:last-child {
  background: var(--surface-subtle, #f7f9f6);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 13px 17px;
  white-space: nowrap;
  border-bottom: 1px solid var(--divider, #e7eee8);
}
th {
  background: var(--surface-subtle, #f7f9f6);
  color: var(--subtle-ink, #64766b);
  font-weight: 600;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-subtle, #f9fbf8);
}
.pager {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 19px;
  margin: 0;
  padding: 21px;
}
.details dt {
  font-size: 12px;
  color: var(--muted);
}
.details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--subtle-ink, #728579);
  font-size: 13px;
}
.empty svg {
  color: var(--control-hover, #93a99a);
}
.pill {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  background: #eef2ee;
  color: #5f7066;
}
.pill b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.p-active,
.p-done,
.p-open {
  background: #e3f3e8;
  color: #286644;
}
.p-pending,
.p-waiting {
  background: #fff1d2;
  color: #8a611b;
}
.p-processing {
  background: #e3ecff;
  color: #436597;
}
.p-rejected,
.p-reversed {
  background: #fae7e3;
  color: #964c3c;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fbeeeb;
  color: #873b31;
}
.notice.success {
  background: #e1f2e4;
  color: #275d3c;
}
.tabs {
  margin-bottom: 12px;
}
.tab {
  padding: 6px 12px;
  border-radius: 7px;
}
.tab.selected {
  background: var(--accent-soft, #dcebdc);
  color: var(--accent-strong, #235b3c);
}
.actionbox {
  border-bottom: 1px solid var(--border);
}
.actionbox:last-child {
  border: 0;
}
.actionbox[open] summary svg {
  transform: rotate(180deg);
}
.actionbox summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 13px 21px;
  font-weight: 600;
}
.actionbox > .stack {
  padding: 0 21px 18px;
}
.actionbox p {
  font-size: 13px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 46%) 1fr;
  background: var(--surface-subtle, #fcfdfb);
}
.login-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 70px);
  min-height: 550px;
  color: var(--side-on-dark, #f2f6ed);
  background: radial-gradient(ellipse at 50% 49%, var(--art-glow, #265c46) 0%, var(--side-tile, #173e30) 48%, var(--art-dark, #102b23) 83%);
}
.login-art:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#b6d9c309 1px, transparent 1px), linear-gradient(90deg, #b6d9c309 1px, transparent 1px);
  background-size: 42px 42px;
}
.art-stage {
  width: min(35vw, 455px);
  aspect-ratio: 1;
  align-self: center;
  position: relative;
  margin: 20px 0;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid #badab738;
  border-radius: 50%;
  transform: rotate(-33deg) scaleY(0.58);
}
.o1 {
  inset: 0;
}
.o2 {
  inset: 10%;
}
.o3 {
  inset: 20%;
  border-style: dashed;
}
.orbit:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--highlight, #c3f89c);
  border-radius: 50%;
  left: 14%;
  top: 13%;
}
.console {
  position: relative;
  width: 58%;
  height: 42%;
  border-radius: 25% 25% 35% 35%;
  transform: rotate(-23deg) skewX(5deg);
  background: linear-gradient(155deg, var(--art-light, #e7f6bb), var(--art-mid, #a1d799) 44%, var(--art-shade, #559e73));
  box-shadow:
    inset -3px -7px 0 var(--art-shade, #55966c),
    0 8px 0 var(--art-rim, #69a97c),
    0 14px 0 var(--art-edge, #38694e),
    0 36px 40px #041d1499;
}
.console:before,
.console:after {
  content: "";
  position: absolute;
  left: 15%;
  top: 43%;
  width: 24%;
  height: 11%;
  background: var(--art-edge, #244d35);
  border-radius: 3px;
  box-shadow: 1px 2px 1px var(--art-mid, #9ec792);
}
.console:after {
  transform: rotate(90deg);
}
.console i,
.console b {
  position: absolute;
  right: 14%;
  top: 33%;
  width: 10%;
  aspect-ratio: 1;
  background: var(--art-edge, #255f47);
  border-radius: 50%;
  box-shadow: 1px 3px 0 var(--art-mid, #98c398);
}
.console b {
  right: 25%;
  top: 51%;
  background: var(--art-shade, #568c5d);
}
.console em {
  position: absolute;
  left: 46%;
  bottom: 22%;
  width: 11%;
  height: 4%;
  background: var(--art-shade, #618765);
  border-radius: 4px;
}
.art-copy h2 {
  font-size: clamp(27px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.055em;
}
.art-copy p {
  color: var(--side-muted, #b9d2c2);
  margin-top: 8px;
}
.rule {
  width: 40px;
  height: 4px;
  background: var(--highlight, #c7f6a4);
  margin: 0 0 18px;
}
.login-main {
  display: flex;
  flex-direction: column;
  padding: 24px clamp(25px, 5vw, 80px);
}
.login-main > header {
  align-self: flex-end;
}
.login-card {
  width: 100%;
  max-width: 375px;
  margin: auto;
  padding: 32px 0;
}
.login-mark {
  width: 49px;
  height: 49px;
  color: var(--accent-strong, #305f42);
  background: var(--accent-soft, #e5f1df);
  margin-bottom: 19px;
}
.login-card > p {
  margin-bottom: 26px;
}
.login-card .btn {
  margin-top: 5px;
  min-height: 44px;
}
.login-main footer {
  color: var(--subtle-ink, #7d8c80);
  font-size: 12px;
}
.guest {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}
.guest > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 22px;
}
.guest-body {
  padding: 24px;
}
.guest-intro {
  margin-bottom: 20px;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
}
.thread-top strong {
  min-width: 0;
}
.thread-top {
  padding: 15px 19px;
  border-bottom: 1px solid var(--border);
}
.messages {
  height: clamp(220px, 52vh, 580px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--surface-subtle, #f8faf7);
}
.bubble {
  max-width: 82%;
}
.bubble > div {
  padding: 9px 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 3px 13px 13px;
  background: white;
  border: 1px solid var(--border);
}
.bubble.mine {
  align-self: flex-end;
}
.mine > div {
  background: var(--accent-soft, #dfeedd);
  border-color: var(--control-border, #cde1cb);
  border-radius: 13px 3px 13px 13px;
}
.bubble small {
  color: var(--muted);
  font-size: 10px;
}
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
}
.composer textarea {
  min-width: 0;
  flex: 1;
}
.history {
  display: inline-block;
  margin: 7px 15px;
}
.chat-tools > .stack + .stack {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
@media (min-width: 821px) {
  .nav-small .sidebar {
    width: 74px;
    flex-basis: 74px;
  }
  .nav-small .side-brand {
    padding: 26px 18px;
    font-size: 0;
  }
  .nav-small .side-brand .brand {
    font-size: 0;
  }
  .nav-small .side-brand i {
    margin: 0;
  }
  .nav-small .sidebar nav {
    padding: 0 9px;
  }
  .nav-small .navitem {
    justify-content: center;
    padding: 10px;
  }
  .nav-small .navitem span,
  .nav-small .side-foot .identity-name {
    display: none;
  }
  .nav-small .side-foot {
    flex-direction: column;
    justify-content: center;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 194px;
    flex-basis: 194px;
  }
  .content {
    padding: 22px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 13px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .date {
    display: none;
  }
}
@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    width: 226px;
    z-index: 4;
    transform: translateX(-100%);
  }
  .sidebar {
    visibility: hidden;
  }
  .drawer-close {
    display: inline-grid;
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-open .sidebar {
    visibility: visible;
    transition: transform 0.18s;
    transform: translateX(0);
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0c211b77;
    z-index: 3;
  }
  .dashboard-row {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login {
    grid-template-columns: 38% 1fr;
  }
  .art-stage {
    width: 100%;
  }
  .login-art {
    padding: 24px;
  }
  .login-card {
    padding: 20px 0;
  }
}
@media (max-width: 580px) {
  .content {
    padding: 18px 12px;
  }
  .titlebar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .topbar {
    min-height: 55px;
    padding: 8px 12px;
  }
  .kpis {
    gap: 8px;
  }
  .kpi {
    border-radius: 10px;
  }
  .panel-head {
    padding: 15px;
  }
  .filters,
  .form-grid {
    padding: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: 1;
  }
  .login {
    display: block;
  }
  .login-art {
    min-height: 0;
    padding: 22px 24px;
  }
  .login-art .art-stage,
  .login-art .art-copy {
    display: none;
  }
  .login-main {
    min-height: calc(100dvh - 79px);
    padding: 14px 24px 20px;
  }
  .guest {
    padding: 12px;
  }
  .guest-body {
    padding: 14px;
  }
  .guest .messages {
    padding: 10px;
  }
  .guest .composer {
    padding: 10px 0;
  }
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 15px;
    gap: 12px;
  }
  .chart-meta {
    padding: 12px;
  }
  .chat-layout {
    gap: 0;
  }
  .composer .btn {
    padding: 7px;
  }
  .topbar .crumb,
  .topbar .crumb + svg {
    display: none;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 11px;
  }
}
@container (max-width: 740px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (min-width: 541px) and (max-width: 890px) {
  .filters:has(.date-range) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto) auto;
  }
  .filters:has(.date-range) .date-range { grid-column: 1 / 3; }
  .filters:has(.date-range):not(:has([name="date_by"])) .filter-query { grid-column: span 2; }
  .range-inputs .date-endpoint input { flex: 1; }
}
@container (max-width: 540px) {
  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .filters .filter-query, .filters .date-range, .filters .btn { grid-column: 1 / -1; }
  .filters:not(:has(select[name="date_by"])) .field:has(select) { grid-column: 1 / -1; }
  .date-endpoint input { flex: 1; }
  .chart {
    padding-inline: 14px;
  }
  .titlebar.long-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .titlebar.long-title:has(.actions:not(:empty)) > div:first-child {
    flex-basis: 100%;
  }
  .long-title h1 {
    font-size: 24px;
  }
  .list-panel td:not(:last-child) .cell-value:not(:has(a, .pill)) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .list-panel td:last-child .textlink {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }
  .kpi.extra-long {
    grid-column: 1/-1;
  }
  .titlebar:has(.actions:not(:empty)) > div:first-child {
    flex: 1 1 12rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Operator inbox */
.desk-latest-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--accent-faint, #eff5f0);
  color: var(--ink);
  font-size: 13px;
}
.desk-latest-link > svg, .latest-action { color: var(--accent); }
.desk-latest-link strong, .latest-action { white-space: nowrap; }
.latest-person { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.latest-action { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; }
.desk-latest-link:hover { border-color: var(--accent); }
.service-desk {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.7fr) minmax(188px, 0.72fr);
  min-height: 560px;
  height: clamp(560px, calc(100dvh - 220px), 940px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.service-desk.no-chat {
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
}
.desk-inbox,
.desk-room {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.desk-inbox {
  border-right: 1px solid var(--border);
}
.desk-heading,
.room-bar,
.desk-tabs,
.ticket-meta,
.compose-foot,
.phrases,
.desk-profile > summary,
.desk-tool > summary,
.desk-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desk-heading {
  justify-content: space-between;
  padding: 20px 15px 12px;
}
.desk-heading h2,
.desk-profile > summary {
  font-size: 15px;
  font-weight: 650;
}
.desk-sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.desk-sync::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #4b946c;
  border-radius: 50%;
}
.desk-sync.retry::before {
  background: #b98732;
}
.desk-search {
  margin: 0 14px 12px;
  padding-inline: 12px 4px;
}
.desk-search button, .phrases button {
  background: transparent;
  color: var(--accent);
}
.desk-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 6px;
}
.desk-search button:hover { background: var(--accent-faint, #e9f2ec); }
.desk-tabs {
  gap: 2px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border);
}
.desk-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 1px;
  color: var(--muted);
  border-radius: 6px;
}
.desk-tabs a[aria-current] {
  background: var(--accent-soft, #e7f2e8);
  color: var(--accent-strong, #245e47);
  font-weight: 650;
}
.desk-tabs b {
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.desk-tickets {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.desk-ticket {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--divider, #edf1ed);
}
.desk-ticket:hover {
  background: var(--surface-subtle, #f6f9f6);
}
.desk-ticket[aria-current] {
  background: var(--accent-faint, #edf5ee);
  box-shadow: inset 3px 0 var(--accent);
}
.visitor-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 650;
  color: var(--accent-strong, #396950);
  background: var(--accent-soft, #deeede);
  font-size: 14px;
}
.tone-1 {
  background: #e5ecf6;
  color: #465f89;
}
.tone-2 {
  background: #f6ebd9;
  color: #80612f;
}
.tone-3 {
  background: #ece6f2;
  color: #705487;
}
.ticket-copy {
  min-width: 0;
}
.ticket-copy > strong,
.ticket-copy > small,
.room-bar > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-copy > strong {
  font-size: 13px;
}
.ticket-copy > small,
.desk-ticket time,
.room-bar,
.compose-foot small,
.desk-readonly,
.desk-idle p,
.queue-blank {
  color: var(--muted);
  font-size: 12px;
}
.desk-ticket time {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.ticket-meta {
  margin-top: 6px;
  flex-wrap: wrap;
  font-size: 10px;
}
.ticket-meta .pill {
  font-size: 10px;
  padding: 1px 6px;
}
.reply-needed {
  color: #805519;
}
.queue-blank,
.desk-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.queue-blank {
  padding: 34px 12px;
}
.desk-idle {
  background: radial-gradient(ellipse at 50% 48%, var(--accent-faint, #f4f9f3), var(--surface-subtle, #fbfcfa) 65%);
  padding: 22px;
}
.desk-idle h2 {
  font-size: 19px;
}
.desk-empty-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft, #e4f1df);
  border-radius: 20px;
  margin-bottom: 6px;
}
.desk-room {
  background: var(--surface-subtle, #f7faf6);
  overflow: hidden;
}
.room-bar {
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--divider, #edf1ed);
  font-size: 11px;
}
.desk-back {
  display: none;
}
.desk-room .thread-top {
  background: #fff;
  justify-content: flex-start;
  padding: 14px 16px;
}
.desk-room .thread-top strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-room .history {
  align-self: center;
  font-size: 12px;
}
.desk-room .messages {
  flex: 1;
  min-height: 160px;
  height: auto;
}
.bubble small {
  display: block;
  overflow-wrap: anywhere;
}
.desk-room .bubble.mine small {
  text-align: right;
}
.desk-room .bubble > div {
  box-shadow: 0 1px 2px var(--tinted-shadow, #203c2609);
}
.desk-composer,
.desk-claim,
.desk-readonly {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: white;
}
.desk-claim {
  text-align: right;
}
.desk-readonly {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.desk-composer textarea {
  width: 100%;
  min-height: 58px;
  max-height: 100px;
  resize: vertical;
  border: 0;
  padding: 8px 2px;
  background: white;
}
.phrases {
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.phrases button {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 11px;
}
.phrases button:hover {
  background: var(--accent-faint, #eaf3ea);
}
.compose-foot,
.desk-pager {
  justify-content: space-between;
}
.compose-foot small {
  font-size: 11px;
}
.compose-foot button:disabled {
  opacity: 0.6;
}
.send-feedback:not(:empty) {
  color: #923f30;
  font-size: 12px;
  padding-top: 5px;
}
.desk-profile {
  border-left: 1px solid var(--border);
  min-width: 0;
  overflow: auto;
}
.desk-profile > summary,
.desk-tool > summary {
  padding: 15px;
  cursor: pointer;
  list-style: none;
}
.desk-profile summary::-webkit-details-marker {
  display: none;
}
.desk-profile summary svg:last-child {
  margin-left: auto;
}
.desk-profile > summary {
  border-bottom: 1px solid var(--border);
}
.desk-profile .details {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 15px;
}
.desk-tool {
  border-top: 1px solid var(--border);
}
.desk-tool > summary {
  font-size: 13px;
  font-weight: 560;
}
.desk-tool .stack {
  padding: 0 14px 15px;
  gap: 10px;
}
.desk-tool[open] > summary svg:last-child,
.desk-profile[open] > summary svg:last-child {
  transform: rotate(180deg);
}
.desk-pager {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
@container (max-width:850px) {
  .service-desk {
    grid-template-columns: minmax(195px, 32%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .desk-inbox {
    grid-row: 1/-1;
  }
  .desk-profile {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--border);
    max-height: 260px;
  }
  .desk-profile .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk-profile > summary {
    padding: 10px 15px;
  }
}
@container (max-width:590px) {
  .service-desk,
  .service-desk.no-chat {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .service-desk .desk-inbox {
    height: clamp(350px, 65dvh, 650px);
    border: 0;
  }
  .service-desk.has-chat .desk-inbox,
  .service-desk.no-chat .desk-idle {
    display: none;
  }
  .desk-room {
    height: clamp(400px, calc(100dvh - 190px), 780px);
  }
  .desk-profile {
    max-height: none;
  }
  .desk-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 650;
  }
  .desk-composer {
    padding: 9px 12px;
  }
  .desk-heading {
    padding-top: 14px;
  }
}

.calendar-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(284px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--control-border, #c4d5c9);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 36px #1736292b, 0 1px 4px #1736290d;
}
.calendar-panel header, .calendar-panel footer { display: flex; align-items: center; justify-content: space-between; }
.calendar-panel header { margin-bottom: 8px; }
.calendar-panel header strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.calendar-panel button {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
}
.calendar-panel header button { width: 32px; color: var(--subtle-ink, #446351); }
.calendar-panel button:hover { background: var(--accent-faint, #eaf2ec); }
.calendar-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendar-week { margin-bottom: 5px; color: var(--subtle-ink, #637969); font-size: 12px; text-align: center; }
.calendar-days button { position: relative; width: 100%; font-variant-numeric: tabular-nums; }
.calendar-days button[aria-current="date"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.calendar-days button[aria-pressed="true"] { color: white; background: var(--accent); }
.calendar-days button[aria-pressed="true"]:focus-visible { outline-color: white; }
.calendar-panel footer { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.calendar-panel footer button { padding-inline: 10px; color: var(--accent); font-weight: 600; }

.chat-new[hidden], .chat-sync-note:empty, .guest-send-feedback:empty { display: none; }
.chat-sync-note { padding: 4px 12px; color: var(--muted); font-size: 12px; }
#desk-voice[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.desk-chat-controls button:disabled, .composer button:disabled { opacity: .55; cursor: default; }

.desk-delete { border-top: 1px solid var(--border); padding: 14px 15px; }
.textlink.destructive { color: #9c3432; }
.btn.destructive { background: #a33330; border-color: #a33330; color: white; }
.btn.destructive:hover { background: #852825; }
.panel:has(.chat-delete-confirm) h2 { min-width: 0; overflow-wrap: anywhere; }
.chat-delete-confirm { padding: 18px 22px 20px; }
.chat-delete-confirm p { margin: 14px 0 18px; }

#chat-delete-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  box-shadow: 0 16px 56px #15232138;
}
#chat-delete-dialog::backdrop { background: rgb(16 26 28 / 48%); }
#chat-delete-dialog h2 { margin: 0; }
#chat-delete-target {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 16px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--canvas);
}
#chat-delete-target strong { min-width: 0; overflow-wrap: anywhere; }
#chat-delete-target span { color: var(--muted); font-size: 12px; }
#chat-delete-warning { margin: 0 0 20px; }
#chat-delete-dialog form { justify-content: flex-end; }
