:root {
  color-scheme: light;
  --nav-w: 268px;
  --sidebar: #0e1424;
  --sidebar-text: #d5deef;
  --sidebar-muted: #93a0bb;
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(248, 186, 0, 0.16);
  --bg: #eef1f8;
  --panel: #ffffff;
  --panel-2: #f4f6fb;
  --line: #e2e8f4;
  --text: #0f172a;
  --muted: #475569;
  --input: #ffffff;
  --gold: #b45309;
  --gold-hover: #92400e;
  --gold-active: #78350f;
  --gold-fill: #f8ba00;
  --fill-hover: #e6ac00;
  --fill-active: #cc9600;
  --gold-ink: #1a1400;
  --panel-hover: #e8edf6;
  --panel-active: #dbe3f0;
  --ring: #b45309;
  --danger: #dc2626;
  --ok: #15803d;
  --warn: #b45309;
  --blue: #1d4ed8;
  --pill: #fef3c7;
  --pill-off: #fee2e2;
  --pill-ok: #dcfce7;
  --pill-idle: #dbeafe;
  --danger-line: #fecaca;
  --savebar: rgba(255, 255, 255, 0.94);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --tone: #f8ba00;
  --tone-a: #3b82f6;
  --tone-b: #22c55e;
  --tone-c: #f59e0b;
  --tone-d: #a78bfa;
  --tone-e: #fb7185;
  --tone-f: #38bdf8;
  font-family: "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #151b2e;
  --panel-2: #1c2438;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e7edf8;
  --muted: #93a0bb;
  --input: #0e1424;
  --gold: #f8ba00;
  --gold-hover: #fcd34d;
  --gold-active: #d97706;
  --gold-fill: #f8ba00;
  --fill-hover: #ffc933;
  --fill-active: #e0a800;
  --gold-ink: #1a1400;
  --panel-hover: #243049;
  --panel-active: #2c3a56;
  --ring: #f8ba00;
  --danger: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --blue: #93c5fd;
  --pill: #422006;
  --pill-off: #450a0a;
  --pill-ok: #052e16;
  --pill-idle: #172554;
  --danger-line: #7f1d1d;
  --savebar: rgba(11, 16, 32, 0.94);
  --shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

* { box-sizing: border-box; }
h1, h2, h3, h4, p { margin: 0; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}
h1 { font-size: 24px; line-height: 32px; font-weight: 650; }
h2 { font-size: 16px; line-height: 24px; font-weight: 650; }
h3 { font-size: 16px; line-height: 24px; font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); text-underline-offset: 2px; }
a:hover { color: var(--gold-hover); }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(720px 280px at 0% 0%, rgba(248, 186, 0, 0.22), transparent 55%),
    radial-gradient(520px 260px at 100% 100%, rgba(59, 130, 246, 0.2), transparent 50%),
    var(--sidebar);
}
.login-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.brand, .mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: block;
  height: 36px;
  width: auto;
  flex: none;
}
.login-card .logo { height: 52px; }
.mark small { color: var(--sidebar-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.login-card .mark small { color: var(--muted); }
.login-card h1 { margin: 16px 0 8px; }
.muted { color: var(--muted); font-size: 14px; line-height: 20px; }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="time"], select, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
input, select, textarea { font-size: 16px; line-height: 24px; }
textarea { min-height: 96px; resize: vertical; }
textarea.tall { min-height: 224px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible,
.check input:focus-visible, .btn:focus-visible, .nav-item:focus-visible, .group:focus-visible, .jump:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--gold); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 44px;
  background: var(--panel-2);
  font-size: 15px;
  line-height: 20px;
}
.btn:hover { background: var(--panel-hover); }
.btn:active { background: var(--panel-active); }
.btn.primary { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; font-weight: 650; }
.btn.primary:hover { background: var(--fill-hover); }
.btn.primary:active { background: var(--fill-active); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--pill-off); }
.btn:disabled, .btn:disabled:hover { opacity: 0.5; cursor: not-allowed; }
.btn.primary:disabled, .btn.primary:disabled:hover { background: var(--gold-fill); }
.error { color: var(--danger); min-height: 1.2em; }

.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.nav {
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-line);
  padding: 16px 12px 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-scroll { overflow: auto; display: grid; align-content: start; gap: 4px; padding-right: 2px; }
.nav-group .group-items { display: none; gap: 2px; padding-bottom: 6px; }
.nav-group.open .group-items { display: grid; }
.nav button.group {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 10px 6px;
  min-height: 36px;
  background: transparent;
  border: 0;
  color: var(--sidebar-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.nav button.group:hover { color: #fff; }
.nav .pinned-label {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 10px 6px;
  min-height: 36px;
  color: var(--gold-fill);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-group.pinned .group-items { display: grid; }
.chev {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.nav-group.open .chev { transform: rotate(45deg); margin-top: -2px; }
.nav button.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--sidebar-text);
  border-radius: 10px;
  padding: 8px 10px 8px 12px;
  font-size: 15px;
  line-height: 20px;
  min-height: 40px;
}
.nav-ico {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.4;
  flex: none;
}
.nav button.nav-item:hover { background: var(--sidebar-hover); }
.nav button.nav-item.active {
  background: var(--sidebar-active);
  color: var(--gold-fill);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--gold-fill);
}
.nav button.nav-item.active .nav-ico { opacity: 1; background: var(--gold-fill); }
.nav button.nav-item[hidden], .nav-group[hidden] { display: none; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.crumb { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 14px; color: var(--muted); }
.crumb-here { color: var(--text); font-weight: 650; }
.topbar .search { max-width: 280px; margin-left: auto; min-height: 40px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.backdrop { display: none; }

.main { padding: 24px 24px 112px; max-width: 1280px; width: 100%; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.top h1 { margin: 0 0 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats.compact .stat { box-shadow: none; padding: 10px 12px 10px 14px; }
.stats.compact .stat b { font-size: 20px; line-height: 26px; }
.stat-panel h2 { margin-bottom: 12px; }
.stat, .card, .editor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  padding-left: 18px;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tone);
}
.stats .stat:nth-child(6n+1) { --tone: var(--tone-a); }
.stats .stat:nth-child(6n+2) { --tone: var(--tone-b); }
.stats .stat:nth-child(6n+3) { --tone: var(--tone-c); }
.stats .stat:nth-child(6n+4) { --tone: var(--tone-d); }
.stats .stat:nth-child(6n+5) { --tone: var(--tone-e); }
.stats .stat:nth-child(6n+6) { --tone: var(--tone-f); }
.stats .stat.tone-wait { --tone: var(--warn); }
.stats .stat.tone-bad { --tone: var(--danger); }
.stats .stat.tone-mail { --tone: var(--blue); }
.stats .stat.tone-ok { --tone: var(--ok); }
.stats .stat.tone-idle { --tone: var(--tone-f); }
.stat b { display: block; font-size: 28px; line-height: 34px; font-weight: 700; }
button.card { width: 100%; text-align: left; color: inherit; }
.service-list { max-height: calc(100vh - 280px); overflow: auto; align-content: start; }
.card h2, .editor-card h2 { margin-bottom: 8px; }
.card.active { border-color: var(--gold); }
button.choice { width: 100%; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.action-group { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--panel-2); }
.action-group summary { cursor: pointer; font-weight: 650; margin-bottom: 8px; }
.result-box { margin: 0; white-space: pre-wrap; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 12px; }
.list { display: grid; gap: 8px; }
.knowledge-list { max-height: calc(100vh - 240px); overflow: auto; align-content: start; }
.shot { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  background: var(--pill);
  color: var(--gold);
  white-space: nowrap;
}
.pill.ok { background: var(--pill-ok); color: var(--ok); }
.pill.idle { background: var(--pill-idle); color: var(--blue); }
.pill.off { background: var(--pill-off); color: var(--danger); }
.suggestion-text { overflow-wrap: anywhere; margin: 0; }
.meter { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-right: 6px; background: var(--muted); vertical-align: middle; }
.dot.on { background: var(--ok); }
.dot.late { background: var(--danger); }
.table-wrap { overflow: auto; }
.section { margin-top: 12px; }
.editor-card { margin-top: 16px; }
.editor-card header.row { margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mailbox-fields { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.field small { line-height: 18px; }
.fields .wide { grid-column: 1 / -1; }
.object-block { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.object-block h3 { margin: 0 0 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: auto; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 44px; height: 44px; padding: 4px; background: var(--input); border-radius: 10px; border: 1px solid var(--line); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.toolbar select { min-width: 148px; }
.view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.view-tabs .btn { min-height: 40px; border-color: transparent; background: transparent; box-shadow: none; }
.view-tabs .btn.primary { background: var(--panel); color: var(--text); border-color: var(--line); }

.bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 8px;
  height: 196px;
  margin-top: 16px;
}
.bar-col { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; min-width: 0; text-align: center; }
.bar-track { background: var(--panel-2); border-radius: 10px 10px 4px 4px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; background: var(--tone, var(--gold-fill)); border-radius: 10px 10px 0 0; }
.tone-a { --tone: var(--tone-a); }
.tone-b { --tone: var(--tone-b); }
.tone-c { --tone: var(--tone-c); }
.tone-d { --tone: var(--tone-d); }
.tone-e { --tone: var(--tone-e); }
.tone-f { --tone: var(--tone-f); }
.bar-label, .bar-value { font-size: 12px; line-height: 16px; color: var(--muted); overflow-wrap: anywhere; }
.bar-value { color: var(--text); font-weight: 700; }
.shares { display: grid; gap: 10px; margin: 8px 0 12px; }
.share-track { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.share-fill { height: 100%; border-radius: 99px; background: var(--tone, var(--gold-fill)); }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.donut { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut-hole {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.donut-hole b { font-size: 20px; line-height: 24px; }
.donut.empty { background: var(--panel-2); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; }
.swatch { width: 10px; height: 10px; border-radius: 99px; display: inline-block; flex: none; }
.jumps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.jump {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.jump:hover { border-color: var(--gold); background: var(--panel-hover); }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--gold);
  padding: 8px 0;
  min-height: 44px;
  font-weight: 650;
}
.text-btn:hover { color: var(--gold-hover); }
.text-btn:active { color: var(--gold-active); }
.text-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  min-height: 56px;
  background: var(--gold-fill);
  color: var(--gold-ink);
}
.preview-bar .btn { background: transparent; color: var(--gold-ink); border-color: rgba(26, 20, 0, 0.35); }
.preview-bar .btn:hover { background: rgba(26, 20, 0, 0.08); }
.preview-bar .btn:active { background: rgba(26, 20, 0, 0.16); }
.preview-bar .btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

.savebar {
  position: fixed;
  left: var(--nav-w);
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  z-index: 20;
  padding: 12px 24px;
  background: var(--savebar);
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 80px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  max-width: 360px;
}
.toast-error { display: grid; gap: 10px; }
.toast-error p { margin: 0; }
.error-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.error-row .error { margin: 0; min-height: 0; }
.btn.report-bug { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.bug-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.55);
}
.bug-dialog { width: min(560px, 100%); max-height: min(90vh, 760px); overflow: auto; }
.bug-list { display: grid; gap: 8px; align-content: start; }
.bug-item {
  display: grid;
  gap: 6px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.bug-item strong { overflow-wrap: anywhere; }
.bug-item.active { border-color: var(--gold); }
.bug-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.timeline { display: grid; gap: 12px; }
.timeline article { border-left: 3px solid var(--gold); padding-left: 12px; }
.timeline p { margin: 4px 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.finding.critical { border-color: var(--danger); }
.finding.high { border-color: #c9842a; }
.role-bar { height: 8px; background: #2a2412; border-radius: 99px; margin: 8px 0; }
.role-bar i { display: block; height: 8px; border-radius: 99px; max-width: 100%; }
th { color: var(--muted); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:hover { background: var(--panel-2); }
table.cases tbody tr { cursor: pointer; }
table.cases tbody tr.selected td { background: var(--panel-2); }
.case-detail { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.case-excerpt { white-space: pre-wrap; margin: 0; padding: 12px; border-radius: 8px; background: var(--panel-2); }
tr.picked td { background: var(--panel-2); }
.ticket-table tbody tr { cursor: pointer; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.search { max-width: 320px; }
.layer-dropdown { z-index: 10; }
.layer-sticky { z-index: 20; }
.layer-overlay { z-index: 30; }
.layer-modal { z-index: 40; }
.layer-toast { z-index: 50; }
.layer-tooltip { z-index: 60; }
.hidden { display: none; }
code { font-family: Consolas, monospace; font-size: 14px; line-height: 20px; }
.token-picker { margin: 8px 0 12px; }
.token-list { display: flex; flex-wrap: wrap; gap: 8px; }
.token-insert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  min-height: 36px;
  background: var(--panel-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.token-insert:hover { background: var(--panel-hover); }
.token-insert:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.finding.critical { border-color: var(--danger); }
.finding.high { border-color: #c9842a; }
.role-bar { height: 8px; background: #2a2412; border-radius: 99px; margin: 8px 0; }
.role-bar i { display: block; height: 8px; border-radius: 99px; max-width: 100%; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: var(--shadow);
  }
  .shell.nav-open .nav { transform: translateX(0); }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, 0.5); z-index: 35; border: 0; padding: 0; }
  .main { padding: 16px 16px 112px; }
  .topbar { padding: 12px 16px; }
  .topbar .search { max-width: none; width: 100%; }
  .topbar { flex-wrap: wrap; }
  .grid-2, .stats.cols-4, .stats.compact { grid-template-columns: 1fr 1fr; }
  .savebar { left: 0; padding: 12px 16px; }
}
.account-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.account-chip { width: auto; flex: 1 1 200px; text-align: left; color: inherit; cursor: pointer; }
.account-chip small, .mail-line small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.account-chip.active, .mail-line.active { border-color: var(--gold); }
.inbox-list { display: grid; gap: 8px; max-height: 680px; overflow: auto; align-content: start; }
.mail-line { display: grid; gap: 4px; width: 100%; text-align: left; color: inherit; cursor: pointer; }
.reply-slot { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel-2); }
.reply-slot textarea { width: 100%; opacity: 0.7; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.choice-grid .check { min-height: 36px; }
.editor-line { display: flex; gap: 8px; align-items: end; margin-top: 8px; }
.editor-line .field { flex: 1; min-width: 0; }
.discord-preview { background: #2b2d31; color: #dbdee1; border-radius: 12px; padding: 12px; }
.discord-embed { background: #1e1f22; border-left: 4px solid #f8ba00; border-radius: 4px; padding: 12px 14px; }
.discord-embed h3 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.discord-embed .embed-desc, .discord-embed .embed-field div { white-space: pre-wrap; line-height: 1.45; }
.discord-embed .embed-field { margin-top: 10px; }
.discord-embed .embed-field strong { display: block; color: #fff; margin-bottom: 2px; }
.discord-embed .embed-footer { margin-top: 10px; color: #949ba4; font-size: 12px; }
.discord-embed .embed-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #fff; font-weight: 600; }
.discord-embed .embed-avatar { width: 24px; height: 24px; border-radius: 50%; background: #5865f2; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.discord-embed .embed-code { margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: #111214; color: #dbdee1; font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre-wrap; }
.opening-buttons { display: flex; gap: 8px; margin-top: 8px; }
.opening-buttons span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; }
.opening-buttons .danger { background: #da373c; }
.discord-preview + .discord-preview { margin-top: 10px; }
.embed-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.embed-inline .embed-field { flex: 1 1 140px; margin-top: 10px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 48px; height: 44px; padding: 4px; flex: none; }
.card .field .search { max-width: none; }
.order-detail { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; }
.order-detail span { overflow-wrap: anywhere; white-space: pre-wrap; }
