/* PagingPidgeon — Support screens (helpdesk.js). Uses the colour tokens from styles.css. */

:root {
  --hd-note:        #fff6d6;
  --hd-note-border: #e8c75a;
  --hd-header-h:    58px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --hd-note:        #3a3216;
    --hd-note-border: #8a7330;
  }
}

/* The Support screen fills the window exactly: header on top, the three
   panes below scroll on their own. */
body:has(main.hd-main) #app { display: flex; flex-direction: column; height: 100vh; }
body:has(main.hd-main) header.app-header { flex: 0 0 auto; }
body:has(main.hd-main) main.hd-main { flex: 1 1 auto; height: auto; }

/* Header buttons stay on one line; the company picker gives up the space. */
header.app-header button { white-space: nowrap; }
header.app-header select { width: auto; min-width: 140px; max-width: 280px; }

/* Three panes: ticket list | conversation | customer & orders */
main.hd-main {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 320px;
  height: calc(100vh - var(--hd-header-h));
  overflow: hidden;
}
.hd-col { min-height: 0; overflow: hidden; }
.hd-list-col {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface-1);
}
.hd-ticket-col { display: flex; flex-direction: column; background: var(--page-plane); }
.hd-side-col {
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--surface-1);
  padding: 14px;
}

.hd-pad { padding: 4px 16px; }
.hd-small { padding: 5px 10px; font-size: 12px; font-weight: 600; }
.spacer { flex: 1 1 auto; }

/* ---------- List pane ---------- */
.hd-list-head { padding: 12px 12px 0 12px; border-bottom: 1px solid var(--gridline); }
.hd-search { display: flex; gap: 6px; }
.hd-search input { font-size: 13px; padding: 7px 10px; }
.hd-views { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0 0 0; }
.hd-view {
  background: none; border: none; border-radius: 6px 6px 0 0;
  color: var(--text-secondary); font-size: 12.5px; font-weight: 600;
  padding: 6px 8px; border-bottom: 2px solid transparent;
}
.hd-view.active { color: var(--series-1); border-bottom-color: var(--series-1); }
.hd-count {
  display: inline-block; margin-left: 5px; padding: 0 6px; min-width: 18px;
  border-radius: 999px; background: var(--gridline); color: var(--text-secondary);
  font-size: 11px; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums;
}
.hd-view.active .hd-count { background: color-mix(in srgb, var(--series-1) 18%, var(--surface-1)); color: var(--series-1); }

.hd-rows { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.hd-row {
  display: block; width: 100%; text-align: left;
  background: none; color: var(--text-primary); font-weight: 400;
  border: 0; border-bottom: 1px solid var(--gridline); border-radius: 0;
  border-left: 3px solid transparent;
  padding: 10px 12px 10px 13px;
}
.hd-row:hover { background: var(--page-plane); }
.hd-row.selected { background: color-mix(in srgb, var(--series-1) 9%, var(--surface-1)); border-left-color: var(--series-1); }
.hd-row-top { display: flex; justify-content: space-between; gap: 8px; }
.hd-who { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-time { font-size: 12px; color: var(--text-muted); flex: 0 0 auto; }
.hd-subject { font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-preview {
  font-size: 12.5px; color: var(--text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hd-row.unread .hd-who, .hd-row.unread .hd-subject { font-weight: 700; }
.hd-row.unread .hd-who::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--series-1); margin-right: 6px; vertical-align: 1px;
}
.hd-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; }
.hd-num { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hd-assignee {
  padding: 1px 7px; border-radius: 999px;
  background: var(--gridline); color: var(--text-secondary);
}
.hd-unassigned { color: var(--text-muted); font-style: italic; }
.hd-list-foot {
  display: flex; gap: 6px; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid var(--gridline);
}

.hd-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.hd-status-open { background: color-mix(in srgb, var(--series-1) 16%, var(--surface-1)); color: var(--series-1); }
.hd-status-pending { background: color-mix(in srgb, var(--series-2) 16%, var(--surface-1)); color: var(--series-2); }
.hd-status-closed { background: var(--gridline); color: var(--text-secondary); }
.hd-status-spam { background: color-mix(in srgb, var(--status-critical) 14%, var(--surface-1)); color: var(--status-critical); }

/* ---------- Ticket pane ---------- */
.hd-empty { margin: auto; text-align: center; color: var(--text-secondary); padding: 40px 20px; }
.hd-head { padding: 14px 20px 12px; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.hd-head-top { display: flex; align-items: center; gap: 10px; }
.hd-head h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.hd-back { display: none; }
.hd-head-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.hd-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.hd-seg { display: inline-flex; border: 1px solid var(--gridline); border-radius: 6px; overflow: hidden; }
.hd-seg-btn {
  background: var(--surface-1); color: var(--text-secondary); border: 0; border-radius: 0;
  padding: 5px 12px; font-size: 13px; border-right: 1px solid var(--gridline);
}
.hd-seg-btn:last-child { border-right: 0; }
.hd-seg-btn.active { background: var(--series-1); color: #fff; }
.hd-inline-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; }
.hd-inline-label select { width: auto; min-width: 150px; padding: 5px 8px; font-size: 13px; }

.hd-thread { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; }
.hd-msg {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 12px 0;
  max-width: 820px;
}
.hd-msg-outbound {
  margin-left: auto;
  background: color-mix(in srgb, var(--series-1) 7%, var(--surface-1));
  border-color: color-mix(in srgb, var(--series-1) 30%, transparent);
}
.hd-msg-note { margin-left: auto; background: var(--hd-note); border-color: var(--hd-note-border); }
.hd-msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 6px; }
.hd-msg-who { font-weight: 600; color: var(--text-secondary); overflow-wrap: anywhere; }
.hd-msg-time { color: var(--text-muted); flex: 0 0 auto; }
.hd-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.hd-body a { color: var(--series-1); }
.hd-html { width: 100%; height: 460px; border: 1px solid var(--gridline); border-radius: 6px; background: #fff; resize: vertical; }
.hd-toggles { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.hd-link { background: none; border: 0; padding: 0; color: var(--series-1); font-size: 12px; font-weight: 600; }
.hd-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hd-att {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12.5px; text-decoration: none; color: var(--text-primary);
  border: 1px solid var(--gridline); border-radius: 6px; padding: 4px 9px; background: var(--surface-1);
}
.hd-att span { color: var(--text-muted); }
.hd-flag {
  display: inline-block; font-size: 11px; font-weight: 600; margin: 0 6px 6px 0;
  padding: 1px 7px; border-radius: 999px; background: var(--gridline); color: var(--text-secondary);
}
.hd-flag-bad { background: color-mix(in srgb, var(--status-critical) 14%, var(--surface-1)); color: var(--status-critical); }

/* ---------- Reply box ---------- */
.hd-compose { background: var(--surface-1); border-top: 1px solid var(--border); padding: 4px 20px 6px; }
.hd-compose-tabs { margin-bottom: 6px; }
.hd-to { margin: 0 0 6px 0; }
textarea.hd-textarea {
  min-height: 130px; max-height: 40vh; resize: vertical;
  font-family: inherit; font-size: 14px; line-height: 1.5;
}
textarea.hd-note-text { background: var(--hd-note); border-color: var(--hd-note-border); }
.hd-compose-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.hd-macro { width: auto; max-width: 220px; padding: 6px 8px; font-size: 13px; }
.hd-file-btn {
  display: inline-flex; align-items: center; margin: 0; cursor: pointer;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text-primary);
  border: 1px solid var(--gridline); border-radius: 6px; background: var(--surface-1);
}
.hd-file-btn input { display: none; }
.hd-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 500; }
.hd-check input { width: auto; margin: 0; }
.hd-uploads { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hd-upload {
  font-size: 12.5px; border: 1px solid var(--gridline); border-radius: 6px; padding: 3px 4px 3px 9px;
  display: inline-flex; align-items: center; gap: 4px;
}
.hd-upload.failed { border-color: var(--status-critical); color: var(--status-critical); }
.hd-x { background: none; border: 0; color: var(--text-muted); padding: 0 6px; font-size: 15px; line-height: 1; }
.hd-sig-note { margin: 4px 0 0 0; font-size: 12px; }

/* ---------- Side pane ---------- */
.hd-side-card { margin-bottom: 18px; }
.hd-side-card h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); margin: 0 0 8px 0;
}
.hd-side-card h4 { font-size: 12px; margin: 12px 0 4px 0; color: var(--text-secondary); }
.hd-cust-name { margin: 0 0 6px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.hd-ext { font-size: 12px; color: var(--series-1); text-decoration: none; white-space: nowrap; }
.hd-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 13px; }
.hd-dl dt { color: var(--text-muted); }
.hd-dl dd { margin: 0; overflow-wrap: anywhere; }
.hd-order-row, .hd-hist {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px;
  background: none; color: var(--text-primary); font-weight: 400; font-size: 13px; text-align: left;
  border: 0; border-bottom: 1px solid var(--gridline); border-radius: 0; padding: 7px 2px;
}
.hd-order-row:hover, .hd-hist:hover { background: var(--page-plane); }
.hd-order-row.selected { background: color-mix(in srgb, var(--series-1) 9%, var(--surface-1)); }
.hd-order-row { flex-direction: column; align-items: stretch; gap: 1px; }
.hd-order-line { display: flex; justify-content: space-between; gap: 8px; }
.hd-order-total { font-variant-numeric: tabular-nums; }
.hd-order-sub { font-size: 12px; color: var(--text-secondary); }
.hd-hist span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-refs { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.hd-chip {
  background: var(--surface-1); color: var(--series-1); border: 1px solid var(--series-1);
  border-radius: 999px; padding: 1px 9px; font-size: 12px;
}
.hd-order-lookup { display: flex; gap: 6px; margin-top: 10px; }
.hd-order-lookup input { padding: 5px 8px; font-size: 13px; }
.hd-order {
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--gridline); border-radius: 8px;
  background: var(--page-plane);
}
.hd-order-title { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-size: 13.5px; }
.hd-items { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.hd-items li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--gridline); }
.hd-items li:last-child { border-bottom: 0; }
.hd-items a { color: var(--series-1); }
.hd-small-text { font-size: 12.5px; margin: 0; }
.hd-pre { white-space: pre-wrap; }

/* ---------- Settings (agents + saved replies) ---------- */
.hd-settings { overflow-y: auto; padding: 16px 20px; }
.hd-settings .hd-head-top { margin-bottom: 14px; }
.hd-settings .card { max-width: 860px; }
table.hd-agents tr { cursor: default; }
table.hd-agents tr:hover td { background: transparent; }
.hd-form-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 8px; }
.hd-macro-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--gridline);
}
.hd-macro-row .hd-body { color: var(--text-secondary); max-height: 4.6em; overflow: hidden; }
.hd-macro-actions { display: flex; gap: 6px; align-items: flex-start; flex: 0 0 auto; }

.hd-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--surface-1);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 50;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); max-width: min(560px, 92vw);
}
.hd-toast-error { background: var(--status-critical); color: #fff; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1250px) {
  main.hd-main { grid-template-columns: 300px minmax(0, 1fr) 280px; }
}
/* Below ~1000px: one column at a time — the list, or the open ticket with the
   customer panel underneath it. */
@media (max-width: 1000px) {
  body:has(main.hd-main) #app { display: block; height: auto; }
  main.hd-main, body:has(main.hd-main) main.hd-main { display: block; height: auto; overflow: visible; }
  .hd-col { overflow: visible; }
  .hd-list-col { min-height: calc(100vh - var(--hd-header-h)); border-right: 0; }
  .hd-rows { overflow: visible; }
  .hd-ticket-col, .hd-side-col { display: none; }
  main.hd-show-ticket .hd-list-col { display: none; }
  main.hd-show-ticket .hd-ticket-col { display: flex; }
  main.hd-show-ticket .hd-side-col { display: block; border-left: 0; border-top: 1px solid var(--border); }
  .hd-thread { overflow: visible; }
  .hd-back { display: inline-block; }
  .hd-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  header.app-header { flex-wrap: wrap; }
}

/* ---------- New ticket ---------- */
.hd-new-btn { flex: 0 0 auto; white-space: nowrap; }
.hd-nt { max-width: 860px; margin-top: 12px; }
.hd-nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hd-nt-grid label:first-child { margin-top: 0; }
.hd-nt-inline { display: flex; gap: 6px; }
.hd-nt-inline input { flex: 1 1 auto; }
.hd-opt { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.hd-nt textarea.hd-textarea { min-height: 200px; }
@media (max-width: 700px) {
  .hd-nt-grid { grid-template-columns: 1fr; }
}

/* ---------- Ticket list: checkboxes + bulk actions ---------- */
.hd-rows { width: 100%; min-width: 0; }
.hd-row-wrap { display: flex; align-items: stretch; width: 100%; min-width: 0; border-bottom: 1px solid var(--gridline); }
.hd-row-wrap .hd-row { border-bottom: 0; flex: 1 1 0; width: auto; min-width: 0; padding-left: 4px; }
.hd-row-wrap.ticked { background: color-mix(in srgb, var(--series-1) 6%, var(--surface-1)); }
.hd-tick {
  display: flex; align-items: flex-start; justify-content: center;
  flex: 0 0 34px; margin: 0; padding: 12px 0 0 6px; cursor: pointer;
}
.hd-tick input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--series-1); }
.hd-list-tools { display: flex; align-items: center; gap: 8px; padding: 6px 0 8px 2px; }
.hd-tick-all { flex: 0 0 auto; padding: 0 0 0 4px; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.hd-bulk-sel { width: auto; max-width: 160px; padding: 4px 8px; font-size: 12.5px; }
.hd-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 12px; background: color-mix(in srgb, var(--series-1) 10%, var(--surface-1));
  border-bottom: 1px solid color-mix(in srgb, var(--series-1) 35%, transparent);
}
.hd-bulk-n { font-size: 13px; font-weight: 700; margin-right: 4px; }
.hd-bulk-clear { margin-left: auto; }

/* ---------- Tags ---------- */
:root {
  --tag-0: #2a78d6; --tag-1: #eb6834; --tag-2: #1baf7a; --tag-3: #eda100;
  --tag-4: #e87ba4; --tag-5: #008300; --tag-6: #6250d6; --tag-7: #e34948;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --tag-0: #3987e5; --tag-1: #d95926; --tag-2: #199e70; --tag-3: #c98500;
    --tag-4: #d55181; --tag-5: #008300; --tag-6: #9085e9; --tag-7: #e66767;
  }
}
:root[data-theme="dark"] {
  --tag-0: #3987e5; --tag-1: #d95926; --tag-2: #199e70; --tag-3: #c98500;
  --tag-4: #d55181; --tag-5: #008300; --tag-6: #9085e9; --tag-7: #e66767;
}
.hd-tag {
  --tag: var(--tag-0);
  display: inline-flex; align-items: center; gap: 5px; max-width: 160px;
  padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--tag) 14%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--tag) 45%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-tag::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--tag); }
.hd-tag-c0 { --tag: var(--tag-0); } .hd-tag-c1 { --tag: var(--tag-1); } .hd-tag-c2 { --tag: var(--tag-2); }
.hd-tag-c3 { --tag: var(--tag-3); } .hd-tag-c4 { --tag: var(--tag-4); } .hd-tag-c5 { --tag: var(--tag-5); }
.hd-tag-c6 { --tag: var(--tag-6); } .hd-tag-c7 { --tag: var(--tag-7); }
.hd-tag-x { background: none; border: 0; padding: 0 0 0 2px; color: var(--text-muted); font-size: 14px; line-height: 1; font-weight: 400; }
.hd-tag-x:hover { color: var(--status-critical); }
.hd-head-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
input.hd-tag-input { width: 150px; padding: 3px 9px; font-size: 12.5px; border-radius: 999px; border-style: dashed; }
.hd-tagset-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gridline); }
.hd-tagset-row .hd-tag { font-size: 13px; max-width: 280px; }
.hd-tag-add { grid-template-columns: 1fr auto; margin-top: 12px; }

/* ---------- Reports ---------- */
main.hd-main.hd-wide { grid-template-columns: 340px minmax(0, 1fr) 0; }
main.hd-main.hd-wide .hd-side-col { display: none; }
.hd-reports .card { max-width: none; margin-bottom: 16px; }
.hd-report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 16px; }
.hd-report-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hd-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 16px; }
.hd-report-h { font-size: 14px; margin: 0 0 14px 0; }
table.hd-report-agents tr, .hd-report-table table tr { cursor: default; }
table.hd-report-agents tr:hover td, .hd-report-table table tr:hover td { background: transparent; }
table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hd-report-table { margin-top: 10px; font-size: 13px; }
.hd-report-table summary { cursor: pointer; color: var(--series-1); font-weight: 600; font-size: 12.5px; }
.hd-report-table table { margin-top: 8px; }

.hd-chart { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 6px; }
.hd-chart-y { position: relative; grid-row: 1; }
.hd-chart-y span {
  position: absolute; right: 0; transform: translateY(50%);
  font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.hd-chart-plot { position: relative; grid-row: 1; grid-column: 2; }
.hd-chart-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--gridline); }
.hd-cols { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 2px; }
.hd-cbar { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; min-width: 0; outline: none; }
.hd-cbar-fill {
  width: min(100%, 22px); background: var(--series-1);
  border-radius: 4px 4px 0 0; min-height: 0;
}
.hd-cbar:hover .hd-cbar-fill, .hd-cbar:focus-visible .hd-cbar-fill { filter: brightness(1.12); box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 3px var(--series-1); }
.hd-chart-x { grid-row: 2; grid-column: 2; display: flex; gap: 2px; margin-top: 5px; }
.hd-chart-x span { flex: 1 1 0; min-width: 0; font-size: 11px; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: visible; }

.hd-barlist { display: flex; flex-direction: column; gap: 7px; }
.hd-barlist-row { display: grid; grid-template-columns: minmax(70px, 160px) 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.hd-barlist-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.hd-barlist-track { height: 12px; background: var(--gridline); border-radius: 0 4px 4px 0; overflow: hidden; }
.hd-barlist-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hd-barlist-val { text-align: right; font-variant-numeric: tabular-nums; }
.hd-barlist-row:hover .hd-barlist-fill { filter: brightness(1.12); }

.hd-tip {
  position: absolute; z-index: 60; display: none; pointer-events: none;
  background: var(--text-primary); color: var(--surface-1);
  padding: 6px 10px; border-radius: 6px; font-size: 12.5px; max-width: 260px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1000px) {
  main.hd-main.hd-wide { display: block; }
  .hd-report-grid { grid-template-columns: 1fr; }
}
