/* kiebitz-Design: Satoshi, Orange, weiße runde Karten (angelehnt an voice.kiebitz-ki.de) */
@font-face {
  font-family: "Satoshi-Variable";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --panel: #ffffff;
  --border: #e4e6e6;
  --card-border: #f0f0f0;
  --text: #3c4646;
  --muted: rgba(0, 0, 0, 0.62);
  --primary: #f59c00;
  --primary-hover: #e08c00;
  --on-primary: #111827;
  --primary-soft: #fff3de;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --secondary: #eef0f0;
  --ok: #16a34a;
  --warn: #b45309;
  --radius: 8px;
  --radius-card: 24px;
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.035);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Satoshi-Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-header h1 {
  font-size: 18px;
  margin: 0;
}

.customer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.customer-list li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
}

.customer-list li:hover {
  background: var(--secondary);
}

.customer-list li.active {
  background: var(--primary);
  color: white;
}

.customer-list .slug-name {
  font-weight: 600;
  display: block;
}

.customer-list .slug-host {
  font-size: 12px;
  opacity: 0.75;
}

.main {
  flex: 1;
  padding: 32px;
  max-width: 900px;
}

.empty-state {
  color: var(--muted);
}

.empty-state .hint {
  font-size: 13px;
  border-left: 3px solid var(--warn);
  padding-left: 10px;
}

.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.muted { color: var(--muted); font-size: 14px; }

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.drift { background: #fee2e2; color: var(--danger); }
.badge.unknown { background: var(--secondary); color: var(--muted); }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { background: #e0e2e8; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }

.btn-warning { background: var(--warn); color: white; }
.btn-warning:hover { background: #b45309; }

.btn-link {
  background: none;
  color: var(--primary);
  text-align: left;
  padding: 8px 4px;
}

.btn-link-danger {
  background: none;
  color: var(--danger);
  text-align: left;
  padding: 9px 4px;
  font-size: 13px;
  text-decoration: underline;
}

.meta p { margin: 4px 0; font-size: 14px; }

#cv-extra-previews p { margin: 4px 0; font-size: 14px; }
#cv-extra-previews ul { margin: 4px 0; padding-left: 20px; font-size: 14px; }
#cv-extra-previews li { margin: 2px 0; }

.log-panel {
  margin-top: 24px;
}

.log-panel h3 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

#job-log {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 8px;
  min-height: 160px;
  max-height: 360px;
  overflow-y: auto;
  font-size: 13px;
  white-space: pre-wrap;
}

dialog {
  border: none;
  border-radius: 12px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

dialog::backdrop {
  background: rgba(0,0,0,0.4);
}

dialog h3 { margin-top: 0; }

dialog label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

dialog label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

dialog label.checkbox input { width: auto; }

dialog input, dialog select, dialog textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.input-with-button {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.input-with-button input {
  flex: 1;
  margin-top: 0;
}
.input-with-button .btn {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 13px;
}

.generated-key-result {
  margin: -6px 0 12px;
  padding: 10px;
  background: var(--secondary);
  border-radius: 8px;
}
.generated-key-result textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.audit-dialog { width: 100%; }
.audit-content {
  max-height: 400px;
  overflow-y: auto;
  font-size: 13px;
}
.audit-content .entry {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.audit-content .entry .ts { color: var(--muted); margin-right: 8px; }

/* --- Anmeldung / Benutzer --- */
.account-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-actions .btn-link { padding-left: 0; }

[hidden] { display: none !important; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.login-card h1 { margin: 0 0 16px; font-size: 22px; }
.login-card label { display: block; margin-bottom: 12px; font-size: 14px; }
.login-card input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}
.login-card .btn { width: 100%; margin-top: 4px; }
.login-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}
.setup-qr { text-align: center; }
.setup-qr svg { width: 180px; height: 180px; }
.setup-secret {
  display: block;
  word-break: break-all;
  background: var(--secondary);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

dialog.wide { width: min(900px, 95vw); }
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.users-table th, .users-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.users-table .row-actions { white-space: nowrap; }
.users-table .row-actions button { padding: 2px 6px; font-size: 12px; }
.users-table tr.disabled td { color: var(--muted); }
.slug-checkboxes { max-height: 180px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; margin-bottom: 12px; }
.slug-checkboxes label { margin: 2px 0; }

/* Projekttyp: Contao-/Shopware-spezifische Teile */
#customer-view.is-shopware .contao-only { display: none !important; }

/* ===== kiebitz-Design: Überschreibungen ===== */
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--primary-hover); }

/* Marke: Logo + kleiner Zusatz wie "voice" im Original */
.brand { display: flex; flex-direction: column; align-items: flex-start; width: max-content; margin: 0; line-height: 1; }
.brand img { height: 30px; width: auto; display: block; }
.brand-sub {
  align-self: stretch;
  padding-left: 58%;
  margin-top: -1px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: lowercase;
}

/* Seitenleiste */
.sidebar { border-right: 1px solid var(--border); padding: 22px 18px; }
.sidebar-header { margin-bottom: 22px; align-items: flex-start; }
.customer-list li { padding: 10px 12px; border-radius: var(--radius); border-left: 3px solid transparent; }
.customer-list li:hover { background: var(--secondary); }
.customer-list li.active { background: var(--primary-soft); color: var(--text); border-left-color: var(--primary); }
.customer-list .slug-name { font-weight: 600; }
.customer-list .slug-host { opacity: 0.6; }
/* Kundenliste kompakt: nur der Anzeigename, ein Filterfeld darüber */
.customer-list li { padding: 8px 12px; }
.customer-list li.no-match { color: var(--muted); cursor: default; border-left-color: transparent; }
.customer-list li.no-match:hover { background: none; }
.customer-filter-box { position: relative; margin-bottom: 10px; }
.customer-filter-box input {
  width: 100%;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1px solid #d5d9d9;
  border-radius: var(--radius);
  background: #fff;
}
.customer-filter-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 156, 0, 0.18); }
.customer-count { display: block; margin: 4px 2px 0; font-size: 12px; color: var(--muted); }
.customer-count:empty { display: none; }
.account-box { border-top: 1px solid var(--border); }

/* Inhalt als Karte */
.main { padding: 32px 36px; max-width: 980px; }
.customer-view {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
}
.customer-header h2 { font-size: 28px; margin: 0 0 4px; }
.empty-state { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 28px 32px; }

/* Buttons */
.btn { border-radius: var(--radius); padding: 10px 18px; font-size: 14px; font-weight: 500; font-family: inherit; transition: background .12s; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { background: #e2e5e5; }
.btn-danger { background: var(--danger); color: #fff; }
/* "Warnung" bewusst als Umriss: Orange ist jetzt die Hauptfarbe */
.btn-warning { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1px #d6a265; }
.btn-warning:hover { background: var(--primary-soft); }
.btn-link { color: var(--primary-hover); background: none; }
.btn-link:hover { text-decoration: underline; }

.badge { background: var(--secondary); }
.badge.unknown { color: var(--muted); }

/* Formularfelder */
dialog { border-radius: var(--radius-card); padding: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18); color: var(--text); }
dialog label { color: var(--text); font-size: 14px; }
dialog input, dialog select, dialog textarea {
  border: 1px solid #d5d9d9; border-radius: var(--radius); padding: 9px 12px; font-size: 15px;
  background: #fff; color: var(--text);
}
dialog input:focus, dialog select:focus, dialog textarea:focus,
.login-card input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 156, 0, 0.18);
}
#job-log { border-radius: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.log-panel h3 { font-size: 14px; }

/* ===== Anmeldeseite ===== */
.login-body { display: block; background: #fff; min-height: 100vh; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-header { padding: 28px 40px; }
.login-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 24px 20px 40px; }
.login-card {
  width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--card-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px;
}
.login-card h1 { font-size: 36px; margin: 4px 0 22px; }
.login-card label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--text); }
.login-card input {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; height: 44px; font-size: 16px;
  border: 1px solid #d5d9d9; border-radius: var(--radius); font-family: inherit; color: var(--text);
}
.login-card .btn { width: 100%; height: 44px; font-size: 16px; margin-top: 6px; }
.login-card .btn-link { width: auto; height: auto; margin-top: 10px; font-size: 14px; }
.login-footer { padding: 20px 40px 28px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .login-header, .login-footer { padding-left: 20px; padding-right: 20px; } .login-card h1 { font-size: 30px; } }

/* Kundenansicht: häufige Aktionen, Vorschau, aufklappbare "Weitere Tools" */
.actions-main { margin-bottom: 14px; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.preview-actions[hidden] { display: none !important; }
.actions-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.extra-previews { display: contents; }
.preview-hint { flex-basis: 100%; margin: 2px 0 0; }

.more-tools { margin: 4px 0 16px; }
.more-tools[hidden] { display: none !important; }
.more-tools summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  user-select: none;
}
.more-tools summary::-webkit-details-marker { display: none; }
.more-tools summary::after { content: "▾"; font-size: 12px; transition: transform .15s; }
.more-tools[open] summary::after { transform: rotate(180deg); }
.more-tools summary:hover { color: var(--text); }
.more-tools .actions { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--card-border); }

/* Zertifikatsstatus */
.cert-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.cert-dot.warn { background: #f59c00; }
.cert-dot.bad { background: #dc2626; }
.cert-dot[hidden] { display: none; }

/* SSH-Zugang im Bearbeiten-Dialog */
.ssh-box { margin: 4px 0 14px; padding: 12px 14px; background: #fafafa; border: 1px solid var(--card-border); border-radius: 16px; }
.ssh-box[hidden] { display: none !important; }
.ssh-box-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.ssh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ssh-grid label:first-child { grid-column: 1 / -1; }   /* Server-Adresse über die volle Breite, darunter Benutzer und Port */
.ssh-grid label { margin-bottom: 0; }
.ssh-box label { margin-bottom: 10px; }
@media (max-width: 640px) { .ssh-grid { grid-template-columns: 1fr; } }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pull-warning { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1f11; border-radius: 6px; padding: 10px 12px; }

.passkey-list { list-style: none; margin: 0 0 12px; padding: 0; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border, #d8dcdc); }
#step-totp .btn, #step-setup .btn { margin-top: 8px; }


/* ---------------------------------------------------------------------------
   Handy (bis 760 px): Liste und Kunde sind zwei Ansichten (body[data-view]), Menü unter der Liste,
   große Tippflächen, Dialoge über die volle Breite, Tabellen als Karten.
   --------------------------------------------------------------------------- */
.mobile-only { display: none; }

@media (max-width: 760px) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); -webkit-text-size-adjust: 100%; }
  .app { display: block; min-height: 100dvh; }
  .mobile-only { display: inline-flex; }

  /* zwei Ansichten */
  body[data-view="list"] .main { display: none; }
  body[data-view="detail"] .sidebar { display: none; }
  .sidebar { width: 100%; min-height: 100dvh; border-right: 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .sidebar-header .brand img { height: 30px; }
  .customer-filter-box input { font-size: 16px; padding: 12px 14px; }
  .customer-list li { padding: 14px 14px; font-size: 17px; border-radius: 12px; }
  .customer-list li.active { background: none; border-left-color: transparent; }
  .customer-list li:active { background: var(--secondary); }

  /* Menü unter der Liste */
  .sidebar-tools { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
  .sidebar-tools > .btn-link { text-align: left; padding: 14px 6px; font-size: 16px; min-height: 48px; }
  .account-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .account-actions .btn-link { padding: 12px 4px; min-height: 44px; }

  /* Kunde */
  .main { padding: 10px 10px calc(24px + env(safe-area-inset-bottom)); max-width: none; }
  .customer-view { padding: 14px 14px 20px; border-radius: 18px; }
  #btn-back { margin: 0 0 12px; min-height: 44px; }
  .customer-header { flex-wrap: wrap; gap: 8px; }
  .customer-header h2 { font-size: 24px; overflow-wrap: anywhere; }
  .actions-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .actions-main .btn { width: 100%; min-height: 52px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  #btn-pull, #btn-push, #cv-sitebuilder-link { grid-column: span 1; }
  #cv-sitebuilder-link { grid-column: 1 / -1; }
  .btn { min-height: 44px; }
  .more-tools .actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .more-tools .actions .btn { width: 100%; }
  .preview-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .preview-actions .btn { width: 100%; text-align: center; display: inline-flex; justify-content: center; align-items: center; }
  .meta p { overflow-wrap: anywhere; }
  .log-panel pre, #job-log { max-height: 45dvh; font-size: 12px; }

  /* Dialoge: fast Vollbild, Eingaben mit 16 px (sonst zoomt iOS hinein) */
  dialog, dialog.wide {
    width: calc(100vw - 16px); max-width: none; margin: 8px auto; max-height: calc(100dvh - 16px);
    overflow-y: auto; padding: 18px 16px; border-radius: 18px;
  }
  dialog input, dialog select, dialog textarea, .customer-filter-box input { font-size: 16px; min-height: 44px; }
  dialog textarea { min-height: 96px; }
  dialog label.checkbox input { min-height: 0; width: 20px; height: 20px; }
  .dialog-actions { flex-wrap: wrap; gap: 10px; position: sticky; bottom: -18px; background: var(--panel, #fff); padding: 10px 0 4px; }
  .dialog-actions .btn { flex: 1 1 140px; }

  /* Tabellen als Karten */
  .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
  .users-table thead { display: none; }
  .users-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
  .users-table td { border: 0; padding: 3px 0; overflow-wrap: anywhere; }
  .users-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .users-table td.row-actions { padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
  .users-table td.row-actions::before { content: none; }
  .users-table td.row-actions .btn { flex: 1 1 130px; }
  #audit-content { overflow-x: auto; }
}


/* Aufträge (E-Mail-Aufträge) */
.orders-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary, #111827); font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.order-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 55vh; overflow-y: auto; }
.order-list li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.order-list li:hover, .order-list li:focus { border-color: var(--primary); outline: none; }
.order-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-unread { margin-top: 4px; font-size: 12px; font-weight: 600; color: #8a1f11; }
.order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--secondary); color: var(--text); white-space: nowrap; }
.order-status.st-entwurf_bereit { background: #dcfce7; color: #166534; }
.order-status.st-rueckfrage, .order-status.st-nicht_zugeordnet { background: #fff0d6; color: #92580a; }
.order-status.st-fehlgeschlagen, .order-status.st-abgelehnt { background: #fee2e2; color: #991b1b; }
.order-status.st-in_arbeit, .order-status.st-wird_veroeffentlicht { background: #e0ecff; color: #1d4ed8; }
.order-status.st-veroeffentlicht, .order-status.st-abgeschlossen, .order-status.st-verworfen { background: #e5e7eb; color: #374151; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-head h3 { margin: 0; }
.order-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.order-box textarea { width: 100%; margin: 8px 0; }
.order-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; background: var(--secondary); border-radius: 8px; padding: 10px; font-family: inherit; font-size: 14px; margin: 6px 0; }
.order-question { background: #fff0d6; border-left: 3px solid var(--primary); padding: 8px 12px; border-radius: 6px; white-space: pre-wrap; }
.order-files { list-style: none; margin: 6px 0; padding: 0; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.order-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.order-messages { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.order-messages li { margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 200px; overflow-y: auto; background: var(--secondary); border-radius: 8px; padding: 8px; }
fieldset.inbox-box { border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px 4px; margin: 12px 0; }
fieldset.inbox-box legend { padding: 0 6px; font-weight: 600; }

.order-db { list-style: none; margin: 6px 0; padding: 0; font-size: 12.5px; }
.order-db li { margin-bottom: 8px; overflow-wrap: anywhere; }
.order-db code { font-family: ui-monospace, Menlo, monospace; background: var(--secondary); border-radius: 6px; padding: 2px 6px; }
