:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --bg-soft: #121416;
  --panel: rgba(24, 27, 31, 0.88);
  --panel-solid: #181b1f;
  --panel-2: #20242a;
  --panel-3: #262b32;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(226, 232, 240, 0.22);
  --text: #f7f4ed;
  --text-soft: #d8dde5;
  --muted: #9ca6b5;
  --muted-2: #6f7a89;
  --accent: #f3c451;
  --accent-strong: #ffd970;
  --accent-soft: rgba(243, 196, 81, 0.14);
  --teal: #61d3c5;
  --teal-soft: rgba(97, 211, 197, 0.12);
  --danger: #ef7777;
  --danger-soft: rgba(239, 119, 119, 0.14);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.38);
  --shadow-tight: 0 12px 32px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --sidebar-width: 320px;
  --sidebar-resizer-width: 8px;
  --customer-assist-width: 430px;
  --customer-assist-resizer-width: 8px;
  --top-customer-visible-list-height: 172px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(243, 196, 81, 0.08), transparent 31%),
    linear-gradient(225deg, rgba(97, 211, 197, 0.07), transparent 34%),
    linear-gradient(180deg, #0c0d0f 0%, #111417 52%, #0d0e10 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 72%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.login-screen {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 22px;
  place-items: center;
}

.login-card {
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(24, 27, 31, 0.95);
  box-shadow: var(--shadow-soft);
}

.login-copy {
  display: grid;
  gap: 5px;
  padding-top: 4px;
}

.login-copy h2 {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 850;
}

.login-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.44);
  border: 2px solid transparent;
  background-clip: content-box;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-width) var(--sidebar-resizer-width) minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.customer-assist-open {
  grid-template-columns: var(--sidebar-width) var(--sidebar-resizer-width) minmax(0, 1fr) var(--customer-assist-resizer-width) minmax(340px, var(--customer-assist-width));
}

body.sidebar-resizing,
body.customer-assist-resizing {
  cursor: col-resize;
  user-select: none;
}

.sidebar-resizer {
  position: relative;
  z-index: 3;
  min-width: var(--sidebar-resizer-width);
  height: 100vh;
  cursor: col-resize;
  touch-action: none;
  background: linear-gradient(180deg, rgba(45, 51, 59, 0.62), rgba(18, 21, 25, 0.72));
}

.sidebar-resizer::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
}

.sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 0 rgba(243, 196, 81, 0);
  transition: width 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.sidebar-resizer:hover::after,
.sidebar-resizer:focus-visible::after,
.app-shell.sidebar-resizing .sidebar-resizer::after {
  width: 3px;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(243, 196, 81, 0.34);
}

.sidebar-resizer:focus-visible {
  outline: 2px solid rgba(243, 196, 81, 0.72);
  outline-offset: -2px;
}

.customer-assist-resizer {
  display: none;
  position: relative;
  z-index: 3;
  min-width: var(--customer-assist-resizer-width);
  height: 100vh;
  cursor: col-resize;
  touch-action: none;
  background: linear-gradient(180deg, rgba(45, 51, 59, 0.54), rgba(18, 21, 25, 0.68));
}

.app-shell.customer-assist-open .customer-assist-resizer {
  display: block;
}

.customer-assist-resizer::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
}

.customer-assist-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 0 rgba(97, 211, 197, 0);
  transition: width 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.customer-assist-resizer:hover::after,
.customer-assist-resizer:focus-visible::after,
.app-shell.customer-assist-resizing .customer-assist-resizer::after {
  width: 3px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(97, 211, 197, 0.3);
}

.customer-assist-resizer:focus-visible {
  outline: 2px solid rgba(97, 211, 197, 0.72);
  outline-offset: -2px;
}

.dashboard-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 58% 42%, rgba(97, 211, 197, 0.11), transparent 34%),
    rgba(6, 8, 10, 0.58);
  backdrop-filter: blur(2px);
}

.dashboard-loading-overlay.hidden {
  display: none;
}

.dashboard-loading-card {
  display: grid;
  width: min(320px, 88vw);
  justify-items: center;
  gap: 9px;
  padding: 22px 24px;
  border: 1px solid rgba(243, 196, 81, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 34, 39, 0.96), rgba(15, 17, 20, 0.98)),
    #15181c;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: center;
}

.dashboard-loading-card strong {
  font-size: 16px;
  font-weight: 900;
}

.dashboard-loading-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(243, 196, 81, 0.18);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: dashboard-loading-spin 780ms linear infinite;
}

@keyframes dashboard-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 8px 14px 8px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(27, 30, 34, 0.96), rgba(13, 15, 17, 0.98)),
    #15181c;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.28);
}

.brand-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
}

.sidebar-brand-row {
  min-width: 0;
}

.sidebar-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.sidebar-brand-copy h1,
.sidebar-brand-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-button {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: transparent;
  outline: none;
}

.brand-logo-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 210, 93, 0.78);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.65), transparent 19%),
    linear-gradient(145deg, #ffdc72, #e6ae35);
  box-shadow: 0 12px 28px rgba(243, 196, 81, 0.2);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(23, 18, 10, 0.9);
}

.brand-mark::before {
  width: 18px;
  height: 3px;
  right: -4px;
  top: 7px;
  transform: rotate(-36deg);
}

.brand-mark::after {
  width: 6px;
  height: 6px;
  left: 6px;
  bottom: 6px;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: #17120a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

h1 {
  font-size: 14px;
  line-height: 1.03;
  font-weight: 800;
}

.brand-row p,
.section-label {
  color: var(--muted);
  font-size: 10px;
}

.section-label {
  margin-top: 0;
  text-transform: uppercase;
  font-weight: 750;
}

.sidebar-models {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.model-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.model-slot {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.model-slot[data-sort-id],
.platform-row[data-sort-id] {
  cursor: grab;
  user-select: none;
}

body.is-sidebar-sorting,
body.is-sidebar-sorting .model-slot[data-sort-id],
body.is-sidebar-sorting .platform-row[data-sort-id] {
  cursor: grabbing;
}

body.is-sidebar-sorting .model-slot.is-dragging,
body.is-sidebar-sorting .platform-row.is-dragging {
  z-index: 2;
  opacity: 0.58;
  transform: scale(0.98);
}

.model-slot.drop-before::after,
.model-slot.drop-after::after,
.platform-row.drop-before::after,
.platform-row.drop-after::after {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(243, 196, 81, 0.14);
  content: "";
}

.model-slot.drop-before::after,
.platform-row.drop-before::after {
  left: -3px;
}

.model-slot.drop-after::after,
.platform-row.drop-after::after {
  right: -3px;
}

.model-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 196, 81, 0.38);
  background: rgba(255, 255, 255, 0.055);
}

.model-slot strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.model-slot.active {
  border-color: rgba(243, 196, 81, 0.95);
  background: linear-gradient(180deg, rgba(243, 196, 81, 0.16), rgba(243, 196, 81, 0.06));
  box-shadow: inset 0 0 0 1px rgba(243, 196, 81, 0.08), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.model-slot.empty,
.model-slot.placeholder {
  grid-template-columns: 1fr;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.model-slot.empty {
  grid-column: 1 / -1;
}

.model-slot.placeholder {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}

.model-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.primary-action,
.send-action,
.secondary-action,
.ghost-action,
.icon-action,
.danger-action,
.message-icon-action,
.copy-button,
.session-revenue-badge,
.admin-commerce-refresh-button,
.mode-option,
.top-customer-tab,
.top-customer-item,
.platform-row {
  border-radius: var(--radius);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.primary-action,
.send-action,
.secondary-action,
.ghost-action,
.icon-action,
.danger-action {
  min-height: 42px;
  border: 1px solid transparent;
  color: var(--text);
}

.primary-action,
.send-action {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #17120a;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(243, 196, 81, 0.18);
}

.sidebar > .primary-action {
  min-height: 32px;
  font-size: 14px;
}

.primary-action:hover,
.send-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(243, 196, 81, 0.25);
}

.send-action.loading,
.secondary-action.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: progress;
}

.send-action.loading::before,
.secondary-action.loading::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(23, 18, 10, 0.25);
  border-top-color: rgba(23, 18, 10, 0.86);
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.secondary-action,
.ghost-action,
.icon-action,
.message-icon-action {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
  color: var(--text-soft);
}

.secondary-action:hover,
.ghost-action:hover,
.icon-action:hover,
.message-icon-action:hover {
  border-color: rgba(243, 196, 81, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.ghost-action {
  margin-top: 0;
}

.top-customers {
  display: grid;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.compact-top-customers {
  position: relative;
  width: fit-content;
  min-width: 104px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.top-customers summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.top-customers summary::-webkit-details-marker {
  display: none;
}

.compact-top-customers summary {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(10, 12, 14, 0.62);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compact-top-customers summary::before {
  content: "★";
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: rgba(243, 196, 81, 0.15);
  color: var(--accent-strong);
  font-size: 8px;
  line-height: 1;
}

.compact-top-customers summary:hover {
  border-color: rgba(243, 196, 81, 0.42);
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.compact-top-customers[open] {
  width: fit-content;
  padding: 0;
  background: transparent;
}

.compact-top-customers[open] summary {
  border-color: rgba(243, 196, 81, 0.72);
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.18), rgba(243, 196, 81, 0.07)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  margin-bottom: 2px;
}

.compact-top-customers[open] .top-customer-tabs,
.compact-top-customers[open] .top-customer-list {
  position: absolute;
  right: 0;
  z-index: 12;
  width: min(238px, calc(var(--sidebar-width) - 28px));
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(20, 23, 27, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.compact-top-customers[open] .top-customer-tabs {
  top: calc(100% + 5px);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  margin-top: 0;
}

.compact-top-customers[open] .top-customer-list {
  top: calc(100% + 44px);
  max-height: var(--top-customer-visible-list-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
}

.top-customer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}

.top-customer-tab {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.top-customer-tab.active {
  border-color: rgba(243, 196, 81, 0.8);
  background: rgba(243, 196, 81, 0.14);
  color: var(--text);
}

.top-customer-list {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.top-customer-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-soft);
  text-align: left;
}

.top-customer-item:hover {
  border-color: rgba(243, 196, 81, 0.45);
  background: rgba(243, 196, 81, 0.08);
  color: var(--text);
}

.top-customer-rank {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.top-customer-name,
.top-customer-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.top-customer-value {
  color: var(--muted);
  font-weight: 750;
}

.top-customer-empty {
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
}

.customer-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.sidebar-platforms {
  display: grid;
  gap: 4px;
}

.platform-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.platform-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8px;
  align-items: center;
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  text-align: left;
}

.platform-row:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 211, 197, 0.48);
  background: rgba(97, 211, 197, 0.07);
  color: var(--text);
}

.platform-row.active {
  border-color: rgba(97, 211, 197, 0.78);
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.18), rgba(97, 211, 197, 0.07)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(97, 211, 197, 0.08);
}

.platform-row.empty {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 12px;
}

.platform-row-main {
  display: grid;
  min-width: 0;
}

.platform-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-row-main strong {
  font-size: 11px;
  font-weight: 850;
}

.platform-row-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.platform-row.active .platform-row-indicator {
  background: var(--accent-cool);
  box-shadow: 0 0 0 3px rgba(97, 211, 197, 0.12);
}

.sidebar-search {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 12, 14, 0.56);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-search::placeholder {
  color: var(--muted);
}

.chat-list {
  --chat-row-height: 56px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.chat-item {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: var(--chat-row-height);
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.038);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.chat-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.chat-item.active {
  border-color: rgba(243, 196, 81, 0.94);
  background: linear-gradient(180deg, rgba(243, 196, 81, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow: inset 3px 0 0 rgba(243, 196, 81, 0.95), 0 14px 26px rgba(0, 0, 0, 0.2);
}

.chat-item-name {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 850;
}

.chat-item-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.chat-delete-icon {
  position: absolute;
  right: 7px;
  top: 50%;
  bottom: auto;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 0;
}

.chat-delete-icon:hover {
  color: #ffd1d1;
  border-color: rgba(239, 119, 119, 0.75);
  background: var(--danger-soft);
}

.chat-delete-icon svg,
.message-icon-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* t_48bcdde4: Die Reaktivierungs-Sonderleiste ist entfallen. Der Entwurf steht
   jetzt als regulaere Antwortkarte im Verlauf, darum braucht die Arbeitsflaeche
   keine vierte Grid-Zeile mehr. */

.workspace {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 22%, rgba(97, 211, 197, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    rgba(10, 11, 13, 0.58);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 27, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.topbar-title-row {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.topbar h2 {
  overflow: hidden;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.customer-assist-action.active {
  border-color: rgba(97, 211, 197, 0.55);
  background: var(--teal-soft);
  color: var(--text);
}

.customer-assist-panel {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(18, 20, 23, 0.96);
}

.customer-assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.customer-assist-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-assist-head strong {
  font-size: 16px;
}

.customer-assist-head span,
.customer-assist-section-head span,
.customer-assist-entry-head small,
.customer-assist-suggestion span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-assist-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: auto;
  overflow-x: hidden;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.customer-assist-section > * {
  min-width: 0;
  max-width: 100%;
}

.customer-assist-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.customer-assist-section-head h3 {
  font-size: 15px;
  line-height: 1.2;
}

.customer-assist-protocol-countdown {
  flex: 1 1 190px;
  min-width: 0;
  max-width: 72%;
  text-align: right;
  line-height: 1.3;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.customer-assist-section-head .customer-assist-protocol-countdown {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.customer-assist-protocol-countdown.ready {
  color: var(--accent);
}

.customer-profile-v1 {
  background: linear-gradient(180deg, rgba(97, 211, 197, 0.055), rgba(255, 255, 255, 0.012));
}

.customer-profile-v1.is-preview {
  box-shadow: inset 3px 0 0 rgba(245, 197, 72, 0.8);
}

.customer-profile-v1-preview-banner {
  padding: 7px 9px;
  border: 1px solid rgba(245, 197, 72, 0.5);
  border-radius: 8px;
  background: rgba(245, 197, 72, 0.1);
  color: #f5d675;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.customer-profile-v1-head {
  align-items: center;
}

.customer-profile-v1-coverage {
  flex: 1 1 180px;
  max-width: 72%;
  overflow: visible;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
}

.customer-profile-v1-list,
.customer-profile-v1-facts {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.customer-profile-v1-category {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.customer-profile-v1-category + .customer-profile-v1-category {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.customer-profile-v1-category h4 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.customer-profile-v1-fact,
.customer-profile-v1-more,
.customer-profile-v1-history {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.customer-profile-v1-fact > summary,
.customer-profile-v1-more > summary,
.customer-profile-v1-history > summary {
  padding: 9px 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.customer-profile-v1-fact[open] > summary,
.customer-profile-v1-more[open] > summary,
.customer-profile-v1-history[open] > summary {
  border-bottom: 1px solid var(--line);
}

.customer-profile-v1-proof {
  display: grid;
  gap: 7px;
  padding: 9px 10px 10px;
}

.customer-profile-v1-proof blockquote {
  margin: 0;
  padding-left: 9px;
  border-left: 2px solid rgba(97, 211, 197, 0.6);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-profile-v1-proof small,
.customer-profile-v1-history-row small {
  color: var(--muted);
  font-size: 11px;
}

.customer-profile-v1-context {
  display: grid;
  gap: 4px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.customer-profile-v1-context > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-profile-v1-context p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.customer-profile-v1-more .customer-profile-v1-facts {
  padding: 8px;
}

.customer-profile-v1-history-row {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  font-size: 12px;
}

.customer-profile-v1-history-row + .customer-profile-v1-history-row {
  border-top: 1px solid var(--line);
}

.customer-assist-timeline,
.customer-assist-conversation-log,
.customer-assist-offer-list,
.customer-assist-suggestion-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.customer-assist-form,
.customer-assist-form label,
.customer-assist-form-grid {
  min-width: 0;
  max-width: 100%;
}

.customer-assist-entry,
.customer-assist-conversation-entry,
.customer-assist-offer-card,
.customer-assist-suggestion {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.customer-assist-conversation-entry.customer {
  border-left: 3px solid rgba(110, 168, 254, 0.72);
}

.customer-assist-conversation-entry.employee {
  border-left: 3px solid rgba(243, 196, 81, 0.72);
}

.customer-assist-entry.draft {
  border-style: dashed;
  border-color: rgba(110, 168, 254, 0.55);
  background: rgba(110, 168, 254, 0.08);
}

.customer-assist-offer-card.saving {
  border-color: rgba(243, 196, 81, 0.55);
  opacity: 0.76;
}

.customer-assist-entry-head,
.customer-assist-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.customer-assist-entry-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-assist-entry-head small {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 48%;
  overflow-wrap: anywhere;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
}

.customer-assist-entry p,
.customer-assist-conversation-entry p,
.customer-assist-offer-card p {
  min-width: 0;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.customer-assist-topic-label {
  color: var(--text);
  font-weight: 750;
}

.customer-assist-generate {
  width: 100%;
}

.customer-assist-offer-card p span,
.customer-assist-handoff span,
.customer-assist-list-block span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.customer-assist-handoff {
  padding: 8px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.customer-assist-list-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-assist-list-block ul {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.customer-assist-list-block li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-assist-signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-assist-signal-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.customer-assist-load-older {
  width: 100%;
}

.customer-assist-offer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.customer-assist-offer-price span {
  font-weight: 850;
  color: var(--accent-strong);
}

.customer-assist-offer-price em {
  font-style: normal;
  color: var(--text-soft);
  font-size: 12px;
}

.customer-assist-status-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.customer-assist-status-actions .secondary-action.small {
  min-height: 30px;
  padding: 4px 5px;
  font-size: 11px;
}

.customer-assist-status-actions .secondary-action.active {
  border-color: rgba(243, 196, 81, 0.62);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.customer-assist-suggestions-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.customer-assist-suggestion {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: rgba(97, 211, 197, 0.065);
}

.customer-assist-suggestion > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-assist-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.customer-assist-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.customer-assist-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-assist-form input,
.customer-assist-form select,
.customer-assist-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.customer-assist-form input,
.customer-assist-form select {
  min-height: 34px;
  padding: 6px 8px;
}

.customer-assist-form textarea {
  resize: vertical;
  min-height: 54px;
  padding: 8px;
  line-height: 1.35;
}

.customer-assist-form .send-action {
  min-height: 36px;
}

.customer-assist-confirm-card {
  gap: 14px;
}

.customer-assist-confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

/* t_b54face0 / t_99de5948: Bestaetigungsdialog fuer die Archivierung eines
   Models. Es wird nichts hart geloescht. */
.model-delete-card {
  gap: 14px;
  max-width: 460px;
}

.model-delete-card .model-delete-target {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.model-delete-card .model-delete-target strong {
  color: var(--text);
}

/* t_99de5948: die Datenerhaltung muss im Dialog klar lesbar sein. */
.model-delete-card .model-delete-keep-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.model-delete-card input[type="text"] {
  width: 100%;
}

/* t_699eb3db: Kontextmenue der Kundenliste und Verschiebe-Dialog. */
.chat-context-menu {
  position: fixed;
  z-index: 60;
  min-width: 180px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.chat-context-menu.hidden {
  display: none;
}

.chat-context-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-context-menu button:hover,
.chat-context-menu button:focus-visible {
  background: var(--panel-strong, rgba(255, 255, 255, 0.07));
}

.chat-move-card {
  gap: 14px;
  max-width: 460px;
}

/* t_ddd8b5d5: Dialog fuer den individuellen Big7-Chatpreis. Breite wie der
   bestehende Verschiebe-Dialog, damit die drei Schaltflaechen in EINE Zeile
   passen und nicht umbrechen (in der UI-Sichtpruefung aufgefallen). */
.chat-price-card {
  gap: 12px;
  max-width: 460px;
}

.chat-price-card .chat-price-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chat-price-card .chat-price-line strong {
  color: var(--text);
}

.chat-price-card .chat-price-label {
  color: var(--muted);
  font-size: 13px;
}

.chat-price-card input[type="number"] {
  width: 100%;
}

.chat-price-card .chat-price-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 18px;
}

.chat-price-card .chat-price-status[data-tone="error"] {
  color: var(--danger, #e2685f);
}

.chat-price-card .chat-price-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chat-move-card .chat-move-target {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.chat-move-card .chat-move-target strong {
  color: var(--text);
}

/* Quelle und Ziel muessen im Bestaetigungsschritt beide sichtbar sein. */
.chat-move-card .chat-move-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.chat-move-card .chat-move-summary dt {
  color: var(--muted);
}

.chat-move-card .chat-move-summary dd {
  margin: 0;
  color: var(--text);
}

.chat-move-card input[type="text"],
.chat-move-card select {
  width: 100%;
}

/* t_99de5948: archivierte Models sind im Adminbereich eindeutig erkennbar. */
.admin-model.archived {
  opacity: 0.72;
}

.admin-model .admin-model-archived-badge {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.customer-assist-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.current-offer-hint,
.content-catalog-shortcut,
.session-user-badge,
.session-revenue-badge {
  display: grid;
  max-width: 220px;
  min-height: 36px;
  align-content: center;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
}

.content-catalog-shortcut-stack {
  position: relative;
  display: block;
  width: 100%;
  min-width: 190px;
  max-width: 250px;
  align-self: end;
}

.current-offer-hint {
  position: relative;
  min-width: 128px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.075);
  cursor: help;
  outline: none;
}

.content-catalog-opportunity-anchor {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(220px, 100%);
}

.content-catalog-opportunity-dismiss {
  position: absolute;
  z-index: 6;
  top: -8px;
  right: -8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(97, 211, 197, 0.62);
  border-radius: 50%;
  appearance: none;
  background: rgba(13, 25, 27, 0.98);
  color: rgba(214, 251, 246, 0.85);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
}

.content-catalog-opportunity-dismiss:hover,
.content-catalog-opportunity-dismiss:focus-visible {
  border-color: rgba(111, 239, 221, 0.9);
  background: rgba(22, 54, 53, 0.98);
  color: #eafffc;
  outline: none;
}

.content-catalog-opportunity-dismiss:disabled {
  cursor: wait;
  opacity: 0.68;
}

.content-catalog-opportunity-bubble {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 48px;
  gap: 3px;
  padding: 8px 10px 9px;
  border: 1px solid rgba(97, 211, 197, 0.62);
  border-radius: 12px 12px 12px 4px;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(97, 211, 197, 0.22), rgba(41, 146, 139, 0.12)),
    rgba(13, 25, 27, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.23);
  color: #eafffc;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.content-catalog-opportunity-bubble::after {
  position: absolute;
  top: 100%;
  left: 16px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(97, 211, 197, 0.62);
  border-bottom: 1px solid rgba(97, 211, 197, 0.62);
  background: rgba(22, 54, 53, 0.98);
  content: "";
  transform: translateY(-5px) rotate(45deg);
}

.content-catalog-opportunity-bubble:hover,
.content-catalog-opportunity-bubble:focus-visible {
  border-color: rgba(111, 239, 221, 0.9);
  background:
    linear-gradient(145deg, rgba(97, 211, 197, 0.3), rgba(41, 146, 139, 0.16)),
    rgba(13, 25, 27, 0.98);
  outline: none;
}

.content-catalog-opportunity-bubble:focus-visible {
  box-shadow: 0 0 0 3px rgba(97, 211, 197, 0.2), 0 10px 24px rgba(0, 0, 0, 0.23);
}

.content-catalog-opportunity-bubble span {
  color: rgba(214, 251, 246, 0.7);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.content-catalog-opportunity-bubble strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.content-catalog-opportunity-bubble:disabled {
  cursor: wait;
  opacity: 0.68;
}

.content-catalog-shortcut {
  appearance: none;
  width: 100%;
  max-width: none;
  min-width: 148px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-color: rgba(181, 122, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(181, 122, 255, 0.16), rgba(181, 122, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.content-catalog-shortcut:hover,
.content-catalog-shortcut:focus-visible {
  border-color: rgba(181, 122, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(181, 122, 255, 0.24), rgba(181, 122, 255, 0.09)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.content-catalog-shortcut:focus-visible {
  box-shadow: 0 0 0 3px rgba(181, 122, 255, 0.18);
}

.content-catalog-shortcut.has-opportunity {
  border-color: rgba(97, 211, 197, 0.58);
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.16), rgba(181, 122, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.content-catalog-shortcut:disabled {
  cursor: wait;
  opacity: 0.68;
}

.content-catalog-quick-card {
  position: absolute;
  z-index: 70;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(440px, calc(100vw - 32px));
  max-height: var(--content-catalog-quick-card-max-height, min(420px, calc(100vh - 32px)));
  overflow: hidden;
  border: 1px solid rgba(97, 211, 197, 0.52);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0, rgba(97, 211, 197, 0.11), transparent 36%),
    rgba(15, 18, 22, 0.985);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  color: var(--text);
}

.content-catalog-quick-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 12px 10px 14px;
  border-bottom: 1px solid rgba(97, 211, 197, 0.18);
  background: rgba(97, 211, 197, 0.065);
}

.content-catalog-quick-card-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.content-catalog-quick-card-head span,
.content-catalog-quick-folder > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-catalog-quick-card-head strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.content-catalog-quick-reason {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.content-catalog-quick-validity {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

.content-catalog-quick-close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}

.content-catalog-quick-close:hover,
.content-catalog-quick-close:focus-visible {
  border-color: rgba(97, 211, 197, 0.5);
  color: var(--text);
  outline: none;
}

.content-catalog-quick-card-body {
  display: grid;
  gap: 11px;
  min-height: 0;
  padding: 12px 14px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.content-catalog-folder-picker-intro {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.content-catalog-folder-picker {
  display: grid;
  gap: 6px;
}

.content-catalog-folder-group-label {
  margin: 5px 2px 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-catalog-folder-group-label.active {
  color: #ffd477;
}

.content-catalog-folder-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(181, 122, 255, 0.2);
  border-radius: 9px;
  appearance: none;
  background: rgba(181, 122, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.content-catalog-folder-option:hover,
.content-catalog-folder-option:focus-visible {
  border-color: rgba(97, 211, 197, 0.55);
  background: rgba(97, 211, 197, 0.09);
  outline: none;
}

.content-catalog-folder-option.ownership-partial {
  border-color: rgba(255, 196, 76, 0.48);
  background: rgba(255, 196, 76, 0.075);
}

.content-catalog-folder-option.ownership-sold {
  border-color: rgba(97, 211, 197, 0.5);
  background: rgba(97, 211, 197, 0.095);
}

.content-catalog-folder-option.has-active-offer {
  border-color: rgba(243, 196, 81, 0.68);
  background:
    linear-gradient(90deg, rgba(243, 196, 81, 0.14), rgba(181, 122, 255, 0.08)),
    rgba(20, 20, 24, 0.9);
  box-shadow: inset 3px 0 0 rgba(243, 196, 81, 0.88), 0 0 0 1px rgba(243, 196, 81, 0.08);
}

.content-catalog-folder-option:focus-visible {
  box-shadow: 0 0 0 3px rgba(97, 211, 197, 0.14);
}

.content-catalog-folder-order {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(181, 122, 255, 0.28);
  border-radius: 8px;
  background: rgba(181, 122, 255, 0.11);
  color: #dcc8ff;
  font-size: 11px;
  font-weight: 900;
}

.content-catalog-folder-option-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.content-catalog-folder-option-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.content-catalog-folder-option-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.content-catalog-folder-ownership-status {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
}

.content-catalog-folder-ownership-status.partial {
  color: #ffd477;
}

/* Tageszeit-Hinweis: nur Auswahlhilfe, keine Aussage zum Aufnahmezeitpunkt. */
.content-catalog-folder-time-of-day {
  justify-self: start;
  margin-right: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.content-catalog-folder-ownership-status.sold {
  color: #83e5d8;
}

/* ---------------------------------------------------------------------------------------
   t_9fd05790: Steven-only Vorschau noch nicht freigegebener Aufnahmen
   ---------------------------------------------------------------------------------------
   Bewusst warnfarben und nicht dezent: Diese Aufnahmen sind KEIN regulaerer Bestand. Die
   Kennzeichnung muss beim Ueberfliegen auffallen, damit sie nicht versehentlich wie
   freigegebener Content behandelt werden. Sichtbar sind sie ohnehin nur fuer scai-admin --
   der Server liefert sie an niemand anderen aus. */
/* t_f9262067: vorlaeufiger Schnellimport - deutlich, aber ohne Klickpflicht. */
.content-catalog-provisional-badge {
  display: inline-block;
  margin: 3px 0 0 6px;
  padding: 2px 7px;
  border: 1px solid #ffcc33;
  border-radius: 999px;
  background: rgba(255, 204, 51, 0.16);
  color: #ffd84d;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.content-catalog-provisional-badge.block {
  display: block;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: normal;
}

.content-catalog-unreleased-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #ffb45c;
  border-radius: 999px;
  color: #ffb45c;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.content-catalog-unreleased-notice {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 180, 92, 0.45);
  border-radius: 8px;
  background: rgba(255, 180, 92, 0.09);
  color: #ffcf9b;
  font-size: 11px;
  line-height: 1.4;
}

.content-catalog-folder-offer-status {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
}

.content-catalog-folder-offer-status.open,
.content-catalog-package-offer-status.open {
  color: #ffd477;
}

.content-catalog-folder-offer-status.paid,
.content-catalog-package-offer-status.paid {
  color: #83e5d8;
}

.content-catalog-folder-offer-status.delivered,
.content-catalog-package-offer-status.delivered {
  color: #89c8ff;
}

.content-catalog-folder-offer-status.declined,
.content-catalog-package-offer-status.declined {
  color: #ff9b9b;
}

.content-catalog-folder-chevron {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.content-catalog-quick-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.content-catalog-quick-back {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.content-catalog-quick-total {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.content-catalog-quick-total strong {
  color: #ffe39a;
  font-size: 11px;
}

.content-catalog-quick-back:hover,
.content-catalog-quick-back:focus-visible {
  border-color: rgba(97, 211, 197, 0.45);
  color: var(--text);
  outline: none;
}

.content-catalog-quick-folder {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(97, 211, 197, 0.22);
  border-radius: 10px;
  background: rgba(97, 211, 197, 0.075);
}

.content-catalog-quick-folder strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

.content-catalog-quick-folder small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.content-catalog-quick-folder p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.content-catalog-quick-folder-ownership,
.content-catalog-quick-media-ownership {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.content-catalog-quick-media-package-actions {
  display: grid;
  gap: 6px;
}

.content-catalog-quick-media-package-actions .content-catalog-quick-price-picker {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  margin-bottom: 0;
}

.content-catalog-quick-media-package-actions .content-catalog-quick-log-actions.compact,
.content-catalog-quick-media-package-actions .content-catalog-offer-status-actions.compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-catalog-quick-media-package-actions .content-catalog-package-completion.compact {
  padding: 6px 8px;
  font-size: 10px;
}

/* Frei editierbares Preisfeld direkt an der Medienkachel (t_96e2edf0). */
.content-catalog-quick-media-free-price {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin-top: 6px;
}

.content-catalog-quick-media-free-price label {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.content-catalog-quick-media-free-price > label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.content-catalog-quick-media-free-price input {
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: 8px;
  background: rgba(10, 26, 30, 0.6);
  color: inherit;
  font-size: 11px;
}

.content-catalog-quick-media-free-price button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.content-catalog-quick-folder-ownership {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(97, 211, 197, 0.18);
}

.content-catalog-quick-folder-ownership > span,
.content-catalog-quick-media-ownership > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.content-catalog-quick-folder-ownership.owned > span,
.content-catalog-quick-media-list article.owned .content-catalog-quick-media-ownership > span {
  color: #9de8d8;
}

.content-catalog-ownership-button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: 7px;
  appearance: none;
  background: rgba(97, 211, 197, 0.1);
  color: #bff5e9;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.content-catalog-ownership-button.compact {
  min-height: 27px;
  padding: 4px 8px;
}

.content-catalog-ownership-button[aria-pressed="true"] {
  border-color: rgba(97, 211, 197, 0.54);
  background: rgba(97, 211, 197, 0.18);
  color: #dbfff7;
}

.content-catalog-ownership-button:hover:not(:disabled),
.content-catalog-ownership-button:focus-visible {
  border-color: rgba(97, 211, 197, 0.72);
  background: rgba(97, 211, 197, 0.2);
  outline: none;
}

.content-catalog-ownership-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.content-catalog-ownership-button[aria-pressed="true"]:disabled {
  cursor: default;
  opacity: 1;
}

.content-catalog-quick-section {
  display: grid;
  gap: 7px;
}

.content-catalog-quick-section-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.content-catalog-quick-section-head > strong {
  font-size: 12px;
}

.content-catalog-quick-section-head > span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.content-catalog-quick-media-list {
  display: grid;
  grid-auto-rows: max-content;
  gap: 5px;
  max-height: none;
  overflow: visible;
}

.content-catalog-quick-media-list article {
  position: relative;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.content-catalog-quick-media-list article.selected {
  border-color: rgba(97, 211, 197, 0.52);
  background: rgba(97, 211, 197, 0.075);
}

.content-catalog-quick-media-list article.owned {
  border-color: rgba(97, 211, 197, 0.34);
  background: rgba(97, 211, 197, 0.055);
}

/* Bild mit offenem Angebot steht ganz oben und bleibt dort sichtbar markiert. */
.content-catalog-quick-media-list article.has-active-offer {
  border-color: rgba(233, 196, 106, 0.62);
  background: rgba(233, 196, 106, 0.08);
}

.content-catalog-quick-media-select {
  position: relative;
  display: grid;
  min-height: 48px;
  width: 100%;
  align-content: center;
  gap: 2px;
  padding: 7px 9px 7px 39px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  font: inherit;
  text-align: left;
}

.content-catalog-quick-media-list article.has-preview .content-catalog-quick-media-select {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  padding: 6px;
}

.content-catalog-quick-media-list article.has-preview .content-catalog-quick-media-select::before {
  content: none;
}

.content-catalog-quick-media-select img {
  display: block;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.content-catalog-quick-media-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.content-catalog-quick-media-select::before {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(181, 122, 255, 0.28);
  border-radius: 6px;
  background: rgba(181, 122, 255, 0.1);
  color: #d9c3ff;
  content: "▧";
  font-size: 12px;
}

.content-catalog-quick-media-copy strong {
  font-size: 11px;
}

.content-catalog-quick-media-copy > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.content-catalog-quick-media-ownership {
  padding: 6px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 520px) {
  .content-catalog-quick-folder-ownership,
  .content-catalog-quick-media-ownership {
    align-items: stretch;
    flex-direction: column;
  }

  .content-catalog-ownership-button {
    width: 100%;
  }
}

.content-catalog-quick-package-action {
  display: grid;
  gap: 7px;
  padding: 7px 8px;
  border-top: 1px solid rgba(97, 211, 197, 0.2);
  background: rgba(4, 15, 18, 0.36);
}

.content-catalog-quick-package-action-copy {
  display: grid;
  gap: 2px;
}

.content-catalog-quick-package-action-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.content-catalog-quick-package-action-copy > span {
  color: rgba(255, 232, 168, 0.78);
  font-size: 9px;
  line-height: 1.3;
}

.content-catalog-quick-package-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.content-catalog-quick-package-controls label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.content-catalog-quick-package-controls label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.content-catalog-quick-package-controls select {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(243, 196, 81, 0.26);
  border-radius: 7px;
  background: rgba(8, 11, 14, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.content-catalog-quick-package-controls select:focus-visible {
  border-color: rgba(243, 196, 81, 0.7);
  box-shadow: 0 0 0 2px rgba(243, 196, 81, 0.13);
  outline: none;
}

.content-catalog-quick-package-action .primary-action {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
  white-space: nowrap;
}

.content-catalog-quick-price-picker {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  margin-bottom: 6px;
}

.content-catalog-quick-price-picker input[type="number"] {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(243, 196, 81, 0.26);
  border-radius: 7px;
  background: rgba(8, 11, 14, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.content-catalog-quick-price-picker input[type="number"]:focus-visible {
  border-color: rgba(243, 196, 81, 0.7);
  box-shadow: 0 0 0 2px rgba(243, 196, 81, 0.13);
  outline: none;
}

@media (max-width: 520px) {
  .content-catalog-quick-package-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-catalog-quick-package-controls .primary-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.content-catalog-quick-price-list {
  display: grid;
  gap: 5px;
}

.content-catalog-quick-price-list > article {
  overflow: hidden;
  border: 1px solid rgba(243, 196, 81, 0.14);
  border-radius: 8px;
  background: rgba(243, 196, 81, 0.045);
}

.content-catalog-quick-price-list > article.selected {
  border-color: rgba(243, 196, 81, 0.46);
  background: rgba(243, 196, 81, 0.08);
}

.content-catalog-quick-price-list > article.priority {
  border-color: rgba(243, 196, 81, 0.7);
  background:
    linear-gradient(90deg, rgba(243, 196, 81, 0.14), rgba(181, 122, 255, 0.07)),
    rgba(243, 196, 81, 0.045);
  box-shadow: inset 3px 0 0 rgba(243, 196, 81, 0.88);
}

.content-catalog-quick-price-list > article.offer-open {
  border-color: rgba(243, 196, 81, 0.34);
}

.content-catalog-quick-price-list > article.offer-paid {
  border-color: rgba(97, 211, 197, 0.42);
  background: rgba(97, 211, 197, 0.065);
}

.content-catalog-quick-price-list > article.offer-declined {
  border-color: rgba(255, 112, 112, 0.34);
}

.content-catalog-quick-price-list > article.offer-delivered {
  border-color: rgba(91, 171, 236, 0.46);
  background: rgba(91, 171, 236, 0.07);
}

.content-catalog-quick-price-select {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-align: left;
}

.content-catalog-quick-price-select:hover,
.content-catalog-quick-price-select:focus-visible {
  background: rgba(243, 196, 81, 0.07);
  outline: none;
}

.content-catalog-quick-price-select span {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: var(--muted);
}

.content-catalog-quick-price-select span b {
  color: var(--text);
  font-size: 11px;
}

.content-catalog-quick-price-select span small {
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.content-catalog-package-offer-status {
  justify-self: start;
  margin-top: 2px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.content-catalog-package-priority-label {
  justify-self: start;
  margin-top: 2px;
  padding: 2px 6px;
  border: 1px solid rgba(243, 196, 81, 0.58);
  border-radius: 999px;
  color: #ffd477;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.content-catalog-package-custom-label {
  justify-self: start;
  margin-top: 2px;
  padding: 2px 6px;
  border: 1px solid rgba(181, 122, 255, 0.55);
  border-radius: 999px;
  color: #d9c3ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

/* Baukasten fuer eigene Pakete in der Content-Karte */
.content-catalog-builder-intro {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.content-catalog-builder-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid rgba(181, 122, 255, 0.22);
  border-radius: 8px;
  background: rgba(181, 122, 255, 0.06);
}

.content-catalog-builder-range > span {
  min-width: 42px;
  font-size: 10px;
  font-weight: 850;
}

.content-catalog-builder-range label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.content-catalog-builder-range select {
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid rgba(181, 122, 255, 0.3);
  border-radius: 6px;
  background: rgba(8, 11, 14, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.content-catalog-builder-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 5px;
}

.content-catalog-builder-media {
  display: grid;
  grid-template-columns: 14px 56px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.content-catalog-builder-media.checked {
  border-color: rgba(181, 122, 255, 0.6);
  background: rgba(181, 122, 255, 0.1);
}

.content-catalog-builder-media.owned:not(.checked) {
  border-color: rgba(97, 211, 197, 0.3);
}

/* Bereits verkaufte Inhalte sind nicht erneut verkaufbar und deshalb nicht waehlbar. */
.content-catalog-builder-media.owned {
  cursor: not-allowed;
  opacity: 0.62;
}

.content-catalog-builder-media input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #b57aff;
}

.content-catalog-builder-media img {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.content-catalog-builder-media-kind {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(181, 122, 255, 0.28);
  border-radius: 6px;
  background: rgba(181, 122, 255, 0.1);
  color: #d9c3ff;
  font-size: 16px;
}

.content-catalog-builder-media-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.content-catalog-builder-media-copy strong {
  font-size: 10px;
}

.content-catalog-builder-media-copy em {
  color: #61d3c5;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.content-catalog-builder-summary {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.content-catalog-builder-summary strong {
  color: var(--text);
}

.content-catalog-builder-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.content-catalog-builder-controls label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.content-catalog-builder-controls label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.content-catalog-builder-controls input {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid rgba(181, 122, 255, 0.3);
  border-radius: 7px;
  background: rgba(8, 11, 14, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.content-catalog-builder-controls input:focus-visible {
  border-color: rgba(181, 122, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(181, 122, 255, 0.13);
  outline: none;
}

.content-catalog-custom-delete {
  justify-self: start;
}

@media (max-width: 520px) {
  .content-catalog-builder-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  .content-catalog-builder-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.content-catalog-offer-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.content-catalog-quick-log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.content-catalog-offer-status-actions .danger {
  border-color: rgba(255, 112, 112, 0.38);
  color: #ffb0b0;
}

.content-catalog-package-completion {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(97, 211, 197, 0.3);
  border-radius: 8px;
  background: rgba(97, 211, 197, 0.07);
}

.content-catalog-package-completion.delivered {
  border-color: rgba(91, 171, 236, 0.34);
  background: rgba(91, 171, 236, 0.075);
}

.content-catalog-package-completion > strong {
  color: var(--text);
  font-size: 11px;
}

.content-catalog-package-completion > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.content-catalog-package-completion > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-catalog-quick-price-select > strong {
  flex: 0 0 auto;
  color: #ffe8a8;
  text-align: right;
}

.current-offer-hint:hover,
.current-offer-hint:focus,
.current-offer-hint:focus-visible {
  border-color: rgba(243, 196, 81, 0.42);
}

.current-offer-hint:focus,
.current-offer-hint:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 196, 81, 0.16);
}

.offer-hint-tooltip {
  position: absolute;
  z-index: 45;
  bottom: calc(100% + 8px);
  left: 50%;
  display: none;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid rgba(243, 196, 81, 0.34);
  border-radius: 8px;
  background: rgba(15, 18, 23, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: normal;
}

.offer-hint-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(243, 196, 81, 0.34);
  border-bottom: 1px solid rgba(243, 196, 81, 0.34);
  background: rgba(15, 18, 23, 0.98);
  content: "";
  transform: translate(-50%, -4px) rotate(45deg);
}

.current-offer-hint:hover .offer-hint-tooltip,
.current-offer-hint:focus .offer-hint-tooltip,
.current-offer-hint:focus-visible .offer-hint-tooltip {
  display: block;
  visibility: visible;
}

.current-offer-hint.level-bild_anbieten {
  border-color: rgba(97, 211, 197, 0.54);
  background: rgba(97, 211, 197, 0.13);
  color: #e8fffc;
}

.current-offer-hint.level-aufwaermen {
  border-color: rgba(91, 141, 239, 0.42);
  background: rgba(91, 141, 239, 0.11);
}

.current-offer-hint.level-erst_klaeren {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.075);
}

.current-offer-hint.level-warten {
  border-color: rgba(244, 114, 114, 0.42);
  background: rgba(244, 114, 114, 0.1);
}

.current-offer-hint.level-aftercare {
  border-color: rgba(167, 139, 250, 0.44);
  background: rgba(167, 139, 250, 0.11);
}

.session-revenue-badge {
  appearance: none;
  min-width: 118px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-color: rgba(243, 196, 81, 0.32);
  background: rgba(243, 196, 81, 0.07);
}

.session-revenue-badge:hover,
.session-revenue-badge:focus-visible {
  border-color: rgba(243, 196, 81, 0.58);
  background: rgba(243, 196, 81, 0.12);
  outline: none;
}

.session-revenue-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 196, 81, 0.16);
}

.session-revenue-badge.loading {
  opacity: 0.78;
}

/* Steven, 11.09.2026 (t_aac7ceea): Warnsymbol fuer offene Katalogangebote direkt neben dem
   aktuellen Verdienst. Das Popover ist bewusst hoehenbegrenzt und scrollbar, damit auch viele
   parallele offene Pakete vollstaendig erreichbar bleiben. */
.session-deal-alert {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.session-deal-alert.hidden {
  display: none;
}

.session-deal-alert-button {
  appearance: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #f3c451;
  border: 1px solid rgba(243, 196, 81, 0.58);
  border-radius: 999px;
  background: rgba(243, 196, 81, 0.12);
}

.session-deal-alert-button:hover,
.session-deal-alert-button:focus-visible {
  border-color: rgba(243, 196, 81, 0.9);
  background: rgba(243, 196, 81, 0.2);
  outline: none;
}

.session-deal-alert-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 196, 81, 0.2);
}

.session-deal-alert-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 280px;
  max-width: 380px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid rgba(243, 196, 81, 0.32);
  border-radius: 10px;
  background: #1b1d24;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.session-deal-alert-popover.hidden {
  display: none;
}

.session-deal-alert-head {
  margin-bottom: 8px;
  font-size: 13px;
}

.session-deal-alert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-deal-alert-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.session-deal-alert-package {
  font-weight: 600;
  font-size: 13px;
}

.session-deal-alert-folder,
.session-deal-alert-meta {
  font-size: 12px;
  opacity: 0.82;
}

.session-deal-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Bestaetigungsdialog der bewussten Umsatzzuordnung im Admin-Umsatzdetail. */
.commerce-reassign-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(243, 196, 81, 0.28);
  border-radius: 8px;
  background: rgba(243, 196, 81, 0.06);
}

.commerce-reassign-summary,
.commerce-reassign-hint,
.commerce-reassign-note {
  margin: 0;
  font-size: 12px;
}

.commerce-reassign-note,
.commerce-reassign-hint {
  opacity: 0.82;
}

.commerce-reassign-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.current-offer-hint span,
.content-catalog-shortcut span,
.session-user-badge span,
.session-revenue-badge span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.current-offer-hint strong,
.content-catalog-shortcut strong,
.session-user-badge strong,
.session-revenue-badge strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-offer-hint .offer-hint-tooltip {
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-transform: none;
}

.customer-info-action {
  display: inline-flex;
  width: auto;
  min-width: 132px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 0 9px;
  border-color: rgba(97, 211, 197, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-weight: 850;
}

.customer-info-action span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(97, 211, 197, 0.55);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.13);
  color: #d9fffb;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.customer-info-action strong {
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.customer-info-action:hover {
  border-color: rgba(97, 211, 197, 0.78);
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.2), rgba(255, 255, 255, 0.065)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.customer-info-popover {
  position: fixed;
  inset: auto;
  z-index: 960;
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 0;
  overflow: auto;
  border-color: rgba(97, 211, 197, 0.42);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.customer-info-popover::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.customer-info-popover .dialog-card {
  gap: 12px;
  padding: 14px;
}

.customer-info-popover .dialog-title-row {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  padding: 2px 0;
  background: var(--panel-solid);
}

.customer-info-popover .dialog-title-row h3 {
  font-size: 17px;
}

.customer-info-popover[data-system-version="memory_v2"] {
  width: min(620px, calc(100vw - 24px));
}

.customer-info-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.customer-info-title h3 {
  margin: 0;
}

.customer-info-version-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(97, 211, 197, 0.48);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.12);
  color: #d8fffb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logout-action {
  min-width: 96px;
  min-height: 36px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 11, 14, 0.66);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(97, 211, 197, 0.66);
  background: rgba(12, 15, 18, 0.82);
  box-shadow: 0 0 0 3px rgba(97, 211, 197, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 18px 20px;
  overflow: auto;
  scroll-behavior: smooth;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.messages.bottom-align > :first-child {
  margin-top: auto;
}

.empty-state {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.chat-loading-state {
  display: flex;
  width: min(520px, 100%);
  align-self: center;
  justify-self: center;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 196, 81, 0.42);
  border-radius: var(--radius);
  background: rgba(35, 30, 20, 0.86);
  color: var(--text);
  box-shadow: var(--shadow-tight);
}

.chat-loading-state div {
  display: grid;
  gap: 3px;
}

.chat-loading-state span {
  color: var(--muted);
  font-size: 13px;
}

.history-note {
  max-width: 820px;
  padding: 8px 10px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
}

.quality-evidence-preview {
  display: grid;
  gap: 8px;
  max-width: 820px;
  padding: 10px 12px;
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 44, 43, 0.48);
  box-shadow: inset 3px 0 0 rgba(97, 211, 197, 0.78);
}

.quality-evidence-preview div {
  display: grid;
  gap: 2px;
}

.quality-evidence-preview span,
.quality-evidence-preview small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.quality-evidence-preview strong {
  color: var(--text);
  font-size: 14px;
}

.quality-evidence-preview p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.history-load-row {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 2px 0 4px;
}

.history-control-button {
  width: auto;
  cursor: pointer;
  list-style: none;
}

.history-control-button::-webkit-details-marker {
  display: none;
}

.message {
  position: relative;
  display: grid;
  gap: 9px;
  width: min(760px, 100%);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.42;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(25, 28, 33, 0.88);
  box-shadow: var(--shadow-tight);
  white-space: pre-wrap;
}

.message.user {
  align-self: flex-end;
  justify-self: end;
  width: min(660px, 88%);
  border-color: rgba(243, 196, 81, 0.48);
  border-bottom-right-radius: 5px;
  background:
    linear-gradient(180deg, rgba(63, 48, 19, 0.94), rgba(36, 30, 18, 0.94)),
    rgba(31, 28, 22, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), inset 3px 0 0 rgba(243, 196, 81, 0.78);
}

.message.assistant {
  align-self: flex-start;
  justify-self: start;
  width: min(760px, 88%);
  border-color: rgba(97, 211, 197, 0.46);
  border-bottom-left-radius: 5px;
  background:
    linear-gradient(180deg, rgba(18, 39, 39, 0.92), rgba(16, 28, 31, 0.94)),
    rgba(18, 31, 31, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 3px 0 0 rgba(97, 211, 197, 0.74);
}

.message.assistant.assistant-feedback-dislike {
  border-color: rgba(239, 119, 119, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 3px 0 0 rgba(239, 119, 119, 0.86);
}

.message.message-focus-highlight {
  outline: 2px solid rgba(243, 196, 81, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(243, 196, 81, 0.18), var(--shadow-tight);
}

.message.streaming {
  border-color: rgba(243, 196, 81, 0.62);
  box-shadow: 0 0 0 1px rgba(243, 196, 81, 0.08), var(--shadow-tight);
}

.message.pending-generation {
  border-style: dashed;
}

.message.pending-generation .message-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
}

.message.generating {
  position: relative;
}

.thinking-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.thinking-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(243, 196, 81, 0.26);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.generation-indicator,
.deep-generation-indicator {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 196, 81, 0.35);
  border-radius: var(--radius);
  background: rgba(243, 196, 81, 0.09);
}

@keyframes thinking-spin {
  to {
    transform: rotate(360deg);
  }
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.message-meta strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
}

.message-body {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.message.user .message-body {
  color: #fff4d2;
}

.message.assistant .message-body {
  color: #e7fffb;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-icon-action {
  display: grid;
  position: relative;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.message-icon-action.danger:hover {
  border-color: rgba(239, 119, 119, 0.72);
  color: #ffd1d1;
  background: var(--danger-soft);
}

.message-icon-action.loading {
  cursor: progress;
  border-color: rgba(239, 119, 119, 0.72);
  color: #ffd1d1;
  background: var(--danger-soft);
}

.message-icon-action.loading svg {
  opacity: 0;
}

.message-icon-action.loading::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 209, 209, 0.32);
  border-top-color: #ffd1d1;
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.message-edit-form {
  display: grid;
  gap: 6px;
}

.message-edit-form label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.message-edit-form textarea,
.message-edit-form input {
  width: 100%;
  border: 1px solid rgba(243, 196, 81, 0.42);
  border-radius: 8px;
  background: rgba(10, 13, 17, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
}

.message-edit-form textarea {
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
}

.message-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.message-edit-status {
  display: inline-flex;
  flex: 1 1 190px;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: #f8df96;
  font-size: 12px;
  font-weight: 800;
}

.message-payment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-payment-attachment {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 9px;
  border: 1px solid rgba(243, 196, 81, 0.5);
  border-radius: 7px;
  background: rgba(243, 196, 81, 0.12);
  color: #ffe8a6;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.message-payment-attachment-remove {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(239, 119, 119, 0.52);
  border-radius: 7px;
  background: rgba(239, 119, 119, 0.14);
  color: #ffd1d1;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.message-payment-attachment-remove:hover,
.message-payment-attachment-remove:focus-visible {
  border-color: rgba(239, 119, 119, 0.78);
  background: rgba(239, 119, 119, 0.24);
}

.message-payment-attachment-remove:disabled {
  cursor: wait;
  opacity: 0.55;
}

.message-edit-form.loading {
  opacity: 0.92;
}

.message-edit-actions .secondary-action,
.message-edit-actions .send-action {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.message-instruction {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(243, 196, 81, 0.5);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.16), rgba(243, 196, 81, 0.08)),
    rgba(9, 11, 14, 0.42);
  color: #ffe8a6;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  box-shadow: inset 3px 0 0 rgba(243, 196, 81, 0.74), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.message-instruction::before {
  content: "Anweisung";
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.message-context {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(65, 206, 151, 0.5);
  border-radius: 10px;
  background: rgba(65, 206, 151, 0.1);
  color: #c9f8e5;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  box-shadow: inset 3px 0 0 rgba(65, 206, 151, 0.7), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.message-context::before {
  content: "Kontext";
  flex: 0 0 auto;
  color: #8fe7c4;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.answer-context-trace {
  width: min(100%, 680px);
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: 11px;
  background: rgba(97, 211, 197, 0.07);
  color: #c9f8e5;
  font-size: 12px;
}

.answer-context-trace.has-warning {
  border-color: rgba(243, 196, 81, 0.48);
}

.answer-context-trace > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  cursor: pointer;
  list-style-position: inside;
}

.answer-context-trace > summary strong {
  color: #a9f0d5;
  font-size: 12px;
}

.answer-context-trace > summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.answer-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 11px 10px;
}

.answer-context-chip {
  padding: 4px 7px;
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.1);
  color: #cef8e8;
  font-size: 10px;
  font-weight: 800;
}

.answer-context-chip.warning,
.answer-context-item.warning {
  border-color: rgba(243, 196, 81, 0.46);
  color: #ffe8a6;
}

/* Tag-8: Grundwissen (immer präsente Hintergrundzeilen) gedämpft darstellen,
   damit nachrichtenspezifische Punkte vorn klar erkennbar bleiben. */
.answer-context-chip.muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
}

.answer-context-item.muted {
  opacity: 0.72;
}

.answer-context-item.muted strong {
  color: var(--muted);
}

.answer-context-divider {
  margin-top: 3px;
  padding: 2px 1px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.answer-context-items {
  display: grid;
  gap: 7px;
  padding: 0 11px 11px;
}

.answer-context-item {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(9, 11, 14, 0.28);
}

.answer-context-item strong {
  color: var(--text);
  font-size: 11px;
}

.answer-context-item span {
  color: #d8e7e1;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.answer-context-item small {
  color: var(--muted);
  line-height: 1.35;
}

.memory-guide-card {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(181, 122, 255, 0.58);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(181, 122, 255, 0.16), rgba(97, 211, 197, 0.08)),
    rgba(9, 11, 14, 0.52);
  box-shadow: inset 3px 0 0 rgba(181, 122, 255, 0.78), 0 9px 20px rgba(0, 0, 0, 0.17);
}

.memory-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.memory-guide-heading strong {
  color: #ead8ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-guide-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.memory-guide-instruction {
  color: #f4edff;
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.memory-guide-details {
  display: grid;
  gap: 4px;
  color: #cfc3df;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.memory-guide-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.memory-guide-variant {
  min-height: 34px;
  border: 1px solid rgba(181, 122, 255, 0.4);
  border-radius: 8px;
  background: rgba(181, 122, 255, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}

.memory-guide-variant:hover,
.memory-guide-variant:focus-visible {
  border-color: rgba(181, 122, 255, 0.78);
  background: rgba(181, 122, 255, 0.16);
  outline: none;
}

.memory-guide-variant.active {
  border-color: rgba(97, 211, 197, 0.82);
  background: rgba(97, 211, 197, 0.17);
  color: #eafffc;
  box-shadow: 0 0 0 2px rgba(97, 211, 197, 0.1);
}

.memory-guide-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.assistant-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.copy-button {
  display: inline-flex;
  position: relative;
  width: fit-content;
  min-width: 92px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(97, 211, 197, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.18), rgba(97, 211, 197, 0.08)),
    rgba(97, 211, 197, 0.1);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.copy-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 211, 197, 0.86);
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.24), rgba(97, 211, 197, 0.11)),
    rgba(97, 211, 197, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.copy-button.loading {
  cursor: progress;
}

.copy-button.loading svg {
  opacity: 0;
}

.copy-button.loading::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.regenerate-button {
  border-color: rgba(243, 196, 81, 0.58);
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.2), rgba(243, 196, 81, 0.08)),
    rgba(243, 196, 81, 0.1);
  color: #ffe9a8;
}

.regenerate-button:hover {
  border-color: rgba(243, 196, 81, 0.9);
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.28), rgba(243, 196, 81, 0.13)),
    rgba(243, 196, 81, 0.14);
}

.feedback-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-color: rgba(239, 119, 119, 0.48);
  background:
    linear-gradient(180deg, rgba(239, 119, 119, 0.16), rgba(239, 119, 119, 0.07)),
    rgba(239, 119, 119, 0.08);
  color: #ffd1d1;
}

.feedback-button:hover,
.feedback-button.active {
  border-color: rgba(239, 119, 119, 0.82);
  background:
    linear-gradient(180deg, rgba(239, 119, 119, 0.24), rgba(239, 119, 119, 0.12)),
    rgba(239, 119, 119, 0.13);
}

.feedback-like-button {
  border-color: rgba(86, 190, 139, 0.48);
  background:
    linear-gradient(180deg, rgba(86, 190, 139, 0.16), rgba(86, 190, 139, 0.07)),
    rgba(86, 190, 139, 0.08);
  color: #c8f4db;
}

.feedback-like-button:hover,
.feedback-like-button.active {
  border-color: rgba(86, 190, 139, 0.82);
  background:
    linear-gradient(180deg, rgba(86, 190, 139, 0.25), rgba(86, 190, 139, 0.12)),
    rgba(86, 190, 139, 0.13);
}

.assistant-feedback-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(239, 119, 119, 0.48);
  border-radius: 8px;
  background: rgba(239, 119, 119, 0.1);
  color: #ffd1d1;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.assistant-feedback-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px 12px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: normal;
}

.assistant-feedback-reasons legend {
  flex: 0 0 100%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
}

.message-edit-form .assistant-feedback-reason {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  width: 100%;
  align-items: center;
  gap: 4px;
  min-height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd1d1;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  white-space: normal;
}

.assistant-feedback-reason input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #ef7777;
}

.message-edit-form .assistant-feedback-note-field {
  gap: 2px;
  font-size: 10px;
  line-height: 1.1;
}

.assistant-feedback-form textarea {
  min-height: 32px;
  max-height: 58px;
  padding: 5px 7px;
  border-color: rgba(239, 119, 119, 0.46);
  font-size: 12px;
  line-height: 1.25;
}

.copy-button.copied,
.secondary-action.copied {
  border-color: rgba(97, 211, 197, 0.95);
  background: rgba(97, 211, 197, 0.24);
  color: #ddfffa;
  box-shadow: 0 0 0 1px rgba(97, 211, 197, 0.24);
}

.composer {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 48%),
    rgba(22, 25, 29, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.22);
}

.response-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) minmax(190px, 250px);
  gap: 8px;
  max-width: 760px;
  align-items: end;
}

.mode-option {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
}

.mode-option:hover {
  color: var(--text);
  border-color: rgba(243, 196, 81, 0.38);
}

.mode-option.active {
  border-color: rgba(243, 196, 81, 0.95);
  background: linear-gradient(180deg, rgba(243, 196, 81, 0.24), rgba(243, 196, 81, 0.1));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(243, 196, 81, 0.12), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.composer-context-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 14vw, 210px);
  gap: 8px;
  align-items: stretch;
}

.instruction-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-items: stretch;
}

.instruction-action-mode {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.instruction-action-option {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.instruction-action-option:hover {
  color: var(--text);
  border-color: rgba(97, 211, 197, 0.42);
}

.instruction-action-option.active {
  border-color: rgba(97, 211, 197, 0.82);
  background: rgba(35, 111, 102, 0.3);
  color: #effffb;
}

.instruction-action-option.active.auto-detected {
  border-color: rgba(87, 228, 137, 0.95);
  background: rgba(28, 122, 70, 0.38);
  color: #f2fff6;
  box-shadow: 0 0 0 1px rgba(87, 228, 137, 0.16), 0 0 16px rgba(87, 228, 137, 0.12);
}

.instruction-action-option.active.manual-selected {
  border-color: rgba(255, 210, 92, 0.86);
  background: rgba(120, 85, 26, 0.38);
  color: #fff7df;
}

.instruction-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
  min-width: 0;
  align-items: center;
}

.instruction-row input {
  height: 42px;
}

.instruction-sales-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-height: 22px;
  color: #f7d36b;
  font-size: 12px;
  font-weight: 750;
}

.instruction-sales-preview.hidden {
  display: none;
}

.instruction-sales-preview-label {
  color: var(--text-muted);
}

.instruction-sales-preview-chip {
  max-width: min(100%, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(243, 196, 81, 0.38);
  border-radius: 6px;
  padding: 2px 7px;
  background: rgba(243, 196, 81, 0.1);
  color: #ffe9a8;
}

.instruction-sales-preview-chip-type-payment,
.instruction-sales-preview-chip-type-content_sale {
  border-color: rgba(65, 206, 151, 0.48);
  background: rgba(65, 206, 151, 0.12);
  color: #b9f8dc;
}

.instruction-sales-preview-chip-type-offer {
  border-color: rgba(77, 183, 255, 0.45);
  background: rgba(77, 183, 255, 0.11);
  color: #c7eaff;
}

.instruction-sales-preview-chip-type-warning {
  border-color: rgba(243, 196, 81, 0.55);
  background: rgba(243, 196, 81, 0.12);
  color: #ffe9a8;
}

.instruction-sales-preview-chip-type-exact_write {
  border-color: rgba(210, 160, 255, 0.5);
  background: rgba(210, 160, 255, 0.12);
  color: #ead0ff;
}

.instruction-sales-preview-chip-type-response {
  border-color: rgba(156, 174, 201, 0.38);
  background: rgba(156, 174, 201, 0.1);
  color: #dce6f4;
}

.instruction-sales-preview-chip-type-context {
  border-color: rgba(65, 206, 151, 0.48);
  background: rgba(65, 206, 151, 0.12);
  color: #b9f8dc;
}

.instruction-pin-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(243, 196, 81, 0.36);
  border-radius: 8px;
  background: rgba(243, 196, 81, 0.08);
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.instruction-pin-button:hover:not(:disabled),
.instruction-pin-button.active {
  border-color: rgba(243, 196, 81, 0.78);
  color: #ffe9a8;
  background: rgba(243, 196, 81, 0.14);
}

.image-drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px dashed rgba(97, 211, 197, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(97, 211, 197, 0.08), rgba(243, 196, 81, 0.05)),
    rgba(9, 12, 17, 0.72);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.image-drop-zone:hover,
.image-drop-zone.drag-over {
  border-color: rgba(243, 196, 81, 0.85);
  background:
    linear-gradient(135deg, rgba(97, 211, 197, 0.11), rgba(243, 196, 81, 0.1)),
    rgba(14, 18, 24, 0.92);
}

.image-drop-zone.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-drop-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.image-drop-copy strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-drop-copy span,
.image-upload-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.image-upload-status {
  min-height: 16px;
  padding-left: 2px;
}

.image-upload-status.error {
  color: #ffb7b7;
}

.image-preview-list {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.image-preview-item {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 40px minmax(0, 92px) 22px;
  gap: 6px;
  align-items: center;
  min-width: 144px;
  max-width: 184px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.image-preview-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
}

.image-preview-item span {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-item button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
}

.image-preview-item button:hover {
  color: var(--text);
  border-color: rgba(243, 196, 81, 0.58);
}

.image-attachment-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(97, 211, 197, 0.45);
  border-radius: 7px;
  background: rgba(97, 211, 197, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.message-payment-notification {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(243, 196, 81, 0.52);
  border-radius: 7px;
  background: rgba(243, 196, 81, 0.13);
  color: #ffe8a6;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.composer-actions,
.dialog-actions,
.dialog-title-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.ab-comparison-controls {
  display: flex;
  flex: 1 1 420px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.ab-comparison-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ab-comparison-toggle:hover,
.ab-comparison-toggle:focus-visible {
  border-color: rgba(243, 196, 81, 0.64);
  color: var(--text);
}

.ab-comparison-toggle[aria-checked="true"] {
  border-color: rgba(243, 196, 81, 0.88);
  background: rgba(243, 196, 81, 0.16);
  color: #fff1bf;
}

.ab-comparison-toggle-dot {
  width: 22px;
  height: 12px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ab-comparison-toggle-dot::after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 140ms ease, background 140ms ease;
}

.ab-comparison-toggle[aria-checked="true"] .ab-comparison-toggle-dot::after {
  transform: translateX(10px);
  background: var(--accent-strong);
}

.ab-comparison-cost-hint {
  color: #ffe49a;
  font-size: 11px;
  font-weight: 800;
}

.ab-comparison-progress {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.ab-comparison-progress.target-reached {
  color: var(--success);
  font-weight: 850;
}

.ab-comparison-export-links {
  display: inline-flex;
  gap: 6px;
}

.ab-comparison-export-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.ab-comparison-export-links a:hover,
.ab-comparison-export-links a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
}

.ab-comparison-card {
  align-self: flex-start;
  justify-self: start;
  width: min(760px, 88%);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(243, 196, 81, 0.66);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(47, 39, 20, 0.94), rgba(24, 28, 31, 0.96));
  box-shadow: var(--shadow-tight), inset 3px 0 0 rgba(243, 196, 81, 0.78);
}

.ab-comparison-card-head,
.ab-comparison-tabs,
.ab-comparison-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-comparison-card-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.ab-comparison-card-head strong {
  color: var(--text);
}

.ab-comparison-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ab-comparison-tab {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 850;
}

.ab-comparison-tab.active {
  border-color: rgba(97, 211, 197, 0.82);
  background: rgba(97, 211, 197, 0.13);
  color: #e7fffb;
}

.ab-comparison-tab.pending::after {
  content: " …";
}

.ab-comparison-tab.error {
  border-color: rgba(239, 119, 119, 0.58);
  color: #ffd1d1;
}

.ab-comparison-answer {
  min-height: 72px;
  color: #e7fffb;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ab-comparison-answer.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.ab-comparison-error {
  padding: 8px 10px;
  border: 1px solid rgba(239, 119, 119, 0.58);
  border-radius: 8px;
  background: rgba(239, 119, 119, 0.11);
  color: #ffd1d1;
  font-size: 12px;
}

.ab-comparison-invalid-note {
  color: #ffd9a0;
  font-size: 11px;
}

.ab-comparison-card-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ab-comparison-card.generating {
  min-height: 116px;
  align-content: center;
}

.ab-comparison-card.generating .ab-comparison-card-head {
  justify-content: flex-start;
}

.ab-selection-change-button {
  font-size: 12px;
}

.dialog-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.infobox-suggest-toggle {
  font-weight: 850;
  color: var(--accent-strong);
}

.infobox-suggest-toggle.active {
  border-color: rgba(97, 211, 197, 0.75);
  background: rgba(97, 211, 197, 0.14);
}

dialog {
  width: min(760px, calc(100vw - 24px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
}

dialog.fallback-open {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 901;
  margin: 0;
  transform: translate(-50%, -50%);
}

.dialog-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 32%),
    var(--panel-solid);
}

.dialog-card h3 {
  font-size: 20px;
  font-weight: 850;
}

.dialog-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.duplicate-chat-choice {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 189, 83, 0.55);
  border-radius: 8px;
  background: rgba(244, 189, 83, 0.12);
  color: var(--text);
}

.duplicate-chat-choice strong {
  display: block;
  color: var(--accent-strong);
  font-size: 13px;
  margin-bottom: 3px;
}

.duplicate-chat-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.duplicate-chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.new-chat-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(97, 211, 197, 0.42);
  border-radius: var(--radius);
  background: rgba(97, 211, 197, 0.09);
}

.new-chat-progress > div {
  display: grid;
  gap: 3px;
}

.new-chat-progress strong {
  color: var(--text);
  font-size: 13px;
}

.new-chat-progress span:last-child {
  color: var(--muted);
  font-size: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.password-field {
  display: block;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-dialog {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.admin-commerce.admin-model-editor {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-model-editor-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.admin-model-editor .model-form {
  padding: 0;
}

.admin-model-editor:not([open]) + .admin-assignment {
  margin-top: 14px;
}

.admin-commerce {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-commerce-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.admin-commerce-summary::-webkit-details-marker {
  display: none;
}

.admin-commerce-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.admin-commerce[open] .admin-commerce-summary::after {
  transform: rotate(225deg);
}

.admin-commerce-summary strong,
.commerce-period h5 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.admin-commerce-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-commerce-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.admin-system-version-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-system-release-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(97, 211, 197, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(97, 211, 197, 0.09), rgba(97, 211, 197, 0.025));
}

.admin-system-release-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-system-release-note strong {
  color: var(--text);
}

.admin-system-release-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.16);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-system-version-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-system-version-toggle .secondary-action {
  width: 100%;
}

.admin-system-version-toggle .secondary-action.active,
.admin-system-version-toggle .secondary-action[aria-pressed="true"] {
  border-color: rgba(97, 211, 197, 0.72);
  background: rgba(97, 211, 197, 0.14);
  color: var(--accent-strong);
}

.admin-system-version-toggle .secondary-action:disabled {
  cursor: wait;
  opacity: 0.66;
}

.admin-persona-feature-switch {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(97, 211, 197, 0.24);
  border-radius: 12px;
  background: rgba(97, 211, 197, 0.045);
}

.admin-persona-feature-heading span {
  display: grid;
  gap: 3px;
}

.admin-persona-feature-heading strong {
  color: var(--text);
  font-size: 14px;
}

.admin-persona-feature-heading small,
.admin-persona-feature-switch > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-persona-feature-switch > p {
  margin: 0;
}

.admin-generation-components-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 4px;
}

.admin-generation-components-heading span {
  display: grid;
  gap: 3px;
}

.admin-generation-components-heading strong {
  color: var(--text);
  font-size: 14px;
}

.admin-generation-components-heading small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-generation-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-generation-component {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(97, 211, 197, 0.22);
  border-radius: 12px;
  background: rgba(97, 211, 197, 0.04);
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.admin-generation-component > p {
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-generation-component-orchestrator {
  border-color: rgba(181, 122, 255, 0.4);
  background: linear-gradient(145deg, rgba(181, 122, 255, 0.1), rgba(97, 211, 197, 0.06));
}

.admin-generation-component.locked {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.admin-generation-component.locked .admin-system-version-toggle .secondary-action:disabled {
  cursor: not-allowed;
}

.admin-generation-support-heading {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-generation-component-support > p {
  min-height: auto;
}

@media (max-width: 760px) {
  .admin-generation-components {
    grid-template-columns: 1fr;
  }

  .admin-generation-component > p {
    min-height: auto;
  }
}

.admin-commerce-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
}

.admin-commerce-controls label {
  display: grid;
  gap: 5px;
  width: min(220px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

#adminEmployeeControls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px)) auto;
  align-items: end;
}

#adminEmployeeControls label {
  width: 100%;
}

.admin-employee-select {
  min-height: 30px;
  max-width: 220px;
  padding: 5px 8px;
  font-size: 12px;
}

.admin-commerce-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(243, 196, 81, 0.58);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.22), rgba(243, 196, 81, 0.09)),
    rgba(243, 196, 81, 0.1);
  color: #ffe9a8;
  font-size: 12px;
  font-weight: 850;
}

.admin-commerce-refresh-button.loading {
  cursor: progress;
  opacity: 0.88;
}

.admin-commerce-refresh-button.loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 233, 168, 0.28);
  border-top-color: #ffe9a8;
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.admin-commerce-refresh-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(243, 196, 81, 0.82);
}

.admin-employee-scope {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(20, 24, 31, 0.82);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.admin-employee-report,
.admin-infobox-audit-report {
  display: grid;
  gap: 10px;
}

.commerce-data-quality-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 160, 201, 0.42);
  border-radius: var(--radius);
  background: rgba(126, 160, 201, 0.08);
  color: var(--text);
}

.commerce-data-quality-note strong {
  color: var(--text);
}

.commerce-data-quality-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.commerce-period {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.commerce-period-head,
.commerce-money-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.commerce-period-head > strong {
  color: var(--accent-strong);
}

.commerce-period-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.commerce-period-title h5 {
  margin: 0;
}

.commerce-period-title-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.commerce-period-title-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commerce-period-nav-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(243, 196, 81, 0.36);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.08);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.commerce-period-nav-button:hover:not(:disabled) {
  border-color: rgba(243, 196, 81, 0.75);
  background: rgba(243, 196, 81, 0.17);
}

.commerce-period-nav-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.commerce-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.commerce-metric {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
}

.commerce-metric-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.commerce-metric-button:hover,
.commerce-metric-button.active {
  border-color: rgba(243, 196, 81, 0.62);
  background: rgba(243, 196, 81, 0.11);
}

.commerce-metric span,
.commerce-money-grid,
.commerce-platform-row,
.commerce-platform-summary,
.commerce-model-row {
  color: var(--muted);
  font-size: 12px;
}

.commerce-metric strong {
  color: var(--text);
  font-size: 18px;
}

.commerce-detail-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(243, 196, 81, 0.22);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.commerce-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
  gap: 8px;
  align-items: start;
}

.commerce-detail-head h6 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.commerce-detail-head span,
.commerce-detail-table {
  color: var(--muted);
  font-size: 12px;
}

.commerce-detail-filter {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.commerce-detail-model-select {
  min-height: 30px;
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
}

.commerce-detail-table-wrap {
  overflow-x: auto;
}

.commerce-detail-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
}

.commerce-detail-table th,
.commerce-detail-table td {
  padding: 7px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.commerce-detail-table th {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.commerce-detail-table td {
  color: var(--text);
}

.commerce-detail-row-saving td {
  background: rgba(243, 196, 81, 0.08);
}

.commerce-detail-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.commerce-detail-edit-form {
  display: inline-grid;
  grid-template-columns: minmax(90px, 120px) auto;
  gap: 6px;
  align-items: center;
}

.commerce-detail-edit-form input {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 12px;
}

.commerce-detail-edit-form small {
  margin: 0;
  font-weight: 850;
}

.commerce-detail-save-state {
  grid-column: 1 / -1;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.commerce-amount-pair {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.commerce-customer-amount {
  color: var(--text);
  font-size: 12px;
}

.commerce-provision-amount {
  color: var(--muted);
  font-size: 10px;
}

.commerce-detail-table tfoot td {
  background: rgba(255, 255, 255, 0.075);
  font-weight: 850;
}

.commerce-detail-empty {
  text-align: center;
  color: var(--muted) !important;
}

.commerce-detail-actions {
  display: inline-flex;
  gap: 5px;
}

.secondary-action.small {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.secondary-action.danger {
  border-color: rgba(239, 119, 119, 0.44);
  color: #ffd1d1;
}

.feedback-semantics,
.feedback-reason-list {
  display: grid;
  gap: 6px;
}

.feedback-semantics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-semantics span,
.feedback-reason-row {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.13);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.feedback-reason-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.feedback-reason-row strong {
  color: var(--text);
}

.feedback-reason-row.empty {
  grid-template-columns: 1fr;
}

.quality-snapshot {
  border-color: rgba(243, 196, 81, 0.28);
}

.quality-snapshot-report {
  display: grid;
  gap: 10px;
}

.quality-board {
  gap: 6px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.022);
}

.quality-board.is-refreshing {
  border-color: rgba(243, 196, 81, 0.54);
  box-shadow: 0 0 0 1px rgba(243, 196, 81, 0.08), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.quality-board.is-refreshing .quality-summary-button,
.quality-board.is-refreshing .quality-dislike-row,
.quality-board.is-refreshing .quality-infobox-row,
.quality-board.is-refreshing .quality-infobox-decision {
  pointer-events: none;
  opacity: 0.64;
}

.quality-refresh-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(243, 196, 81, 0.5);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.12);
  color: #ffe9a8;
  font-size: 12px;
  line-height: 1.25;
}

.quality-refresh-status strong {
  font-size: inherit;
  font-weight: 850;
}

.quality-refresh-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(243, 196, 81, 0.24);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.quality-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.quality-board-head h5 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.quality-board-head span,
.quality-board-head strong,
.quality-context-line {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.quality-board-head strong {
  color: var(--accent-strong);
  font-size: 14px;
}

.quality-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.quality-summary-card {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.quality-summary-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quality-summary-button:hover,
.quality-summary-button:focus-visible,
.quality-summary-button.active {
  border-color: rgba(243, 196, 81, 0.58);
  background: rgba(243, 196, 81, 0.1);
}

.quality-summary-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.quality-summary-card span,
.quality-summary-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.quality-summary-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-summary-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-context-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quality-context-line span {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.quality-dislike-drilldown {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(239, 119, 119, 0.24);
  border-radius: 6px;
  background: rgba(60, 22, 24, 0.2);
}

.quality-infobox-drilldown {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(97, 211, 197, 0.24);
  border-radius: 6px;
  background: rgba(22, 52, 50, 0.18);
}

.quality-infobox-explainer {
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(243, 196, 81, 0.2);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.08);
  color: #f4dfae;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.quality-dislike-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.quality-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.quality-accepted-rules-toggle {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid rgba(243, 196, 81, 0.36);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.1);
  color: #ffe9a8;
  font-size: 10px;
  font-weight: 850;
  text-transform: none;
}

.quality-accepted-rules-toggle:hover,
.quality-accepted-rules-toggle:focus-visible,
.quality-accepted-rules-toggle.active {
  border-color: rgba(243, 196, 81, 0.72);
  background: rgba(243, 196, 81, 0.17);
}

.quality-accepted-rules-panel {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(243, 196, 81, 0.24);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.07);
}

.quality-accepted-rules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.quality-accepted-rule-list {
  display: grid;
  gap: 6px;
}

.quality-accepted-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(243, 196, 81, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.quality-accepted-rule-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quality-accepted-rule-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-accepted-rule-row p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.quality-accepted-rule-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-infobox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.quality-dislike-list {
  display: grid;
  gap: 5px;
}

.quality-dislike-item {
  display: grid;
  gap: 5px;
}

.quality-infobox-list {
  display: grid;
  gap: 5px;
}

.quality-infobox-modes {
  display: flex;
  gap: 5px;
}

.quality-infobox-modes button {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.quality-infobox-modes button.active,
.quality-infobox-modes button:hover,
.quality-infobox-modes button:focus-visible {
  border-color: rgba(243, 196, 81, 0.5);
  background: rgba(243, 196, 81, 0.12);
  color: var(--text);
}

.quality-dislike-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.1fr) minmax(180px, auto);
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quality-infobox-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 0.95fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quality-infobox-row.accepted {
  border-color: rgba(97, 211, 197, 0.18);
  cursor: default;
}

.quality-infobox-row-busy {
  border-color: rgba(243, 196, 81, 0.58);
  background:
    linear-gradient(180deg, rgba(243, 196, 81, 0.1), rgba(97, 211, 197, 0.04)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(243, 196, 81, 0.12);
  cursor: wait;
}

.quality-infobox-row-open {
  grid-template-rows: auto auto auto auto auto;
}

.quality-infobox-main,
.quality-infobox-suggestion {
  min-width: 0;
}

.quality-infobox-current,
.quality-infobox-evidence,
.quality-infobox-target,
.quality-infobox-change,
.quality-infobox-pending {
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quality-infobox-current span,
.quality-infobox-evidence span,
.quality-infobox-target span,
.quality-infobox-change span {
  display: inline-block;
  margin-right: 6px;
  color: var(--text);
  font-weight: 850;
}

.quality-infobox-evidence {
  color: #dce7e3;
}

.quality-infobox-target,
.quality-infobox-change {
  color: #eef3ef;
}

.quality-infobox-change {
  border: 1px solid rgba(97, 211, 197, 0.16);
  background: rgba(97, 211, 197, 0.06);
}

.quality-infobox-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(243, 196, 81, 0.32);
  background: rgba(243, 196, 81, 0.11);
  color: #ffe9a8;
  font-weight: 850;
}

.quality-infobox-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.quality-infobox-row-open > .quality-infobox-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  justify-items: stretch;
}

.quality-infobox-row-open > .quality-infobox-actions small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: left;
  text-transform: none;
}

.quality-infobox-decision {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.quality-infobox-decision.accept {
  border-color: rgba(97, 211, 197, 0.46);
  color: #d9fffa;
}

.quality-infobox-decision.reject {
  border-color: rgba(239, 119, 119, 0.42);
  color: #ffd8d8;
}

.quality-infobox-decision.delete {
  border-color: rgba(239, 119, 119, 0.5);
  color: #ffd8d8;
}

.quality-infobox-decision:hover,
.quality-infobox-decision:focus-visible {
  background: rgba(243, 196, 81, 0.11);
}

.quality-infobox-decision:disabled {
  cursor: wait;
  opacity: 0.62;
}

.quality-infobox-decision.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.9;
}

.quality-infobox-decision.loading::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 233, 168, 0.28);
  border-top-color: #ffe9a8;
  border-radius: 50%;
  animation: thinking-spin 760ms linear infinite;
}

.quality-dislike-row:hover,
.quality-dislike-row:focus-visible,
.quality-dislike-row.active {
  border-color: rgba(243, 196, 81, 0.52);
  background: rgba(243, 196, 81, 0.09);
}

.quality-infobox-row:hover,
.quality-infobox-row:focus-visible {
  border-color: rgba(97, 211, 197, 0.58);
  background: rgba(97, 211, 197, 0.08);
}

.quality-dislike-row span,
.quality-dislike-row em {
  min-width: 0;
}

.quality-infobox-row span,
.quality-infobox-row em {
  min-width: 0;
}

.quality-dislike-row span {
  display: grid;
  gap: 2px;
}

.quality-infobox-row span {
  display: grid;
  gap: 2px;
}

.quality-dislike-row strong,
.quality-dislike-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-infobox-row strong,
.quality-infobox-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-infobox-current,
.quality-infobox-evidence,
.quality-infobox-current span,
.quality-infobox-evidence span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.quality-dislike-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-infobox-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-dislike-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.quality-dislike-chat-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.quality-dislike-chat-button:hover,
.quality-dislike-chat-button:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quality-dislike-chat small b,
.quality-dislike-message small {
  color: var(--text);
  font-weight: 850;
}

.quality-dislike-message {
  display: grid;
  gap: 3px;
}

.quality-dislike-review-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 180px;
}

.quality-dislike-review-actions .quality-infobox-decision {
  padding-inline: 6px;
}

.quality-dislike-open-button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(243, 196, 81, 0.42);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.12);
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.quality-dislike-open-button:hover,
.quality-dislike-open-button:focus-visible {
  border-color: rgba(243, 196, 81, 0.7);
  background: rgba(243, 196, 81, 0.2);
}

.quality-dislike-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(243, 196, 81, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.quality-dislike-detail-panel section {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.quality-dislike-detail-panel h6 {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.quality-dislike-detail-panel p {
  margin: 0;
  color: #dce7e3;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quality-dislike-detail-panel p span {
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  font-weight: 850;
}

.quality-dislike-rule-panel strong {
  color: var(--text);
  font-size: 12px;
}

.quality-dislike-rule-panel small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.quality-infobox-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.quality-infobox-suggestion em {
  overflow: visible;
  color: #dce7e3;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.quality-feedback-panel {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(97, 211, 197, 0.18);
  border-radius: 6px;
  background: rgba(97, 211, 197, 0.045);
}

.quality-feedback-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.quality-feedback-head h6 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.quality-feedback-head span,
.quality-feedback-head strong,
.quality-feedback-metric span,
.quality-feedback-reason-row {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.quality-feedback-head strong {
  color: var(--accent-strong);
}

.quality-feedback-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.quality-feedback-metric,
.quality-feedback-reason-row {
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}

.quality-feedback-metric strong {
  color: var(--text);
  font-size: 13px;
}

.quality-feedback-metric small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.quality-feedback-reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.quality-feedback-reason-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.quality-feedback-reason-row strong {
  color: var(--text);
}

.quality-feedback-reason-row.empty {
  grid-template-columns: 1fr;
}

.quality-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  gap: 7px;
  align-items: start;
}

.quality-board-section {
  display: grid;
  gap: 5px;
}

.quality-section-head {
  display: grid;
  gap: 2px;
}

.quality-board-section h6 {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quality-section-head span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.quality-action-list,
.quality-compact-list {
  display: grid;
  gap: 4px;
}

.quality-action-row,
.quality-insight-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.quality-action-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 58px;
  padding: 6px 7px;
}

.quality-action-rank,
.quality-action-priority {
  display: grid;
  width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  border: 1px solid rgba(243, 196, 81, 0.32);
  border-radius: 6px;
  background: rgba(243, 196, 81, 0.1);
  color: var(--accent-strong);
}

.quality-action-rank strong,
.quality-action-priority {
  font-size: 11px;
  font-weight: 900;
}

.quality-action-rank small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.quality-action-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.quality-action-title,
.quality-insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.quality-action-title strong,
.quality-insight-row strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-action-title span,
.quality-insight-row span,
.quality-action-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-action-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.quality-action-row p span {
  display: inline-block;
  margin-right: 5px;
  color: var(--text);
  font-weight: 850;
}

.quality-action-row .quality-action-reason {
  color: #dce7e3;
  -webkit-line-clamp: 2;
}

.quality-action-row .quality-action-next {
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.quality-answer-rule-row {
  align-items: start;
}

.quality-answer-rule-row .quality-action-main {
  gap: 5px;
}

.quality-answer-rule-row .quality-answer-rule-proposal {
  color: #dce7e3;
}

.quality-answer-rule-row .quality-answer-rule-effect {
  color: #c8d4cf;
  -webkit-line-clamp: 2;
}

.quality-answer-rule-row .quality-answer-rule-evidence {
  padding: 5px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.quality-answer-rule-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.quality-insight-row {
  min-height: 30px;
  padding: 6px 7px;
}

.quality-insight-row.empty {
  grid-template-columns: 1fr;
}

.infobox-audit {
  border-color: rgba(97, 211, 197, 0.24);
}

.infobox-field-list,
.infobox-suggestion-list,
.infobox-recommendation-list,
.infobox-profile-list {
  display: grid;
  gap: 7px;
}

.infobox-field-row,
.infobox-suggestion-row,
.infobox-recommendation-row,
.infobox-profile-card {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.13);
}

.infobox-field-row {
  grid-template-columns: minmax(130px, 1fr) repeat(4, minmax(74px, auto));
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.infobox-audit-summary h6 {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.infobox-field-row strong,
.infobox-suggestion-row strong,
.infobox-recommendation-row strong,
.infobox-profile-card strong {
  color: var(--text);
}

.infobox-recommendation-row {
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
  align-items: start;
}

.infobox-recommendation-row div,
.infobox-profile-head div {
  display: grid;
  gap: 2px;
}

.infobox-recommendation-row span,
.infobox-profile-head span,
.infobox-profile-field span,
.infobox-profile-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.infobox-recommendation-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.infobox-profile-card {
  gap: 9px;
}

.infobox-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.infobox-profile-fields {
  display: grid;
  gap: 8px;
}

.infobox-profile-field {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.infobox-profile-field:first-child {
  padding-top: 0;
  border-top: 0;
}

.infobox-profile-field ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.infobox-profile-field li {
  line-height: 1.35;
}

.infobox-profile-field li span,
.infobox-profile-field li small {
  display: block;
}

.infobox-suggestion-head,
.infobox-suggestion-values,
.infobox-suggestion-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.infobox-suggestion-head span,
.infobox-suggestion-values,
.infobox-suggestion-meta,
.infobox-suggestion-row p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.infobox-suggestion-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.infobox-suggestion-row p {
  margin: 0;
}

.commerce-money-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.commerce-money-grid strong,
.commerce-revenue-breakdown strong {
  color: var(--text);
}

.commerce-platform-list {
  display: grid;
  gap: 6px;
}

.commerce-platform-row {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  overflow: hidden;
}

.commerce-platform-row[open] {
  background: rgba(0, 0, 0, 0.12);
}

.commerce-platform-row summary::-webkit-details-marker {
  display: none;
}

.commerce-platform-summary,
.commerce-model-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.commerce-platform-summary {
  grid-template-columns: minmax(110px, 1fr) minmax(95px, auto) minmax(120px, auto) minmax(170px, 1.2fr) 14px;
  cursor: pointer;
  padding: 8px 9px;
}

.commerce-revenue-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: flex-end;
}

.commerce-platform-summary::after {
  content: "";
  justify-self: end;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.commerce-platform-row[open] .commerce-platform-summary::after {
  transform: rotate(225deg);
}

.commerce-model-list {
  display: grid;
  gap: 4px;
  padding: 0 9px 9px;
}

.commerce-model-row {
  grid-template-columns: minmax(110px, 1fr) minmax(95px, auto) minmax(62px, auto) minmax(62px, auto) minmax(82px, auto) minmax(170px, 1.2fr);
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.commerce-model-row strong {
  color: var(--text);
}

.commerce-platform-row.empty {
  display: block;
  padding: 8px 9px;
}

.dialog-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
}

.dialog-status.loading {
  color: var(--muted);
}

.dialog-status.success {
  color: var(--accent-strong);
}

#adminPersonaFeatureStatus {
  color: var(--accent-strong);
}

#adminPersonaFeatureStatus.loading {
  color: var(--muted);
}

#adminPersonaFeatureStatus.error {
  color: var(--danger);
}

.model-save-status {
  grid-column: auto;
  min-height: 28px;
  margin-right: auto;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  align-content: center;
}

.model-save-status:empty {
  display: none;
}

.model-save-status.dirty,
.model-save-status.loading {
  border-color: rgba(243, 196, 81, 0.62);
  color: #f8df96;
}

.model-save-status.success {
  border-color: rgba(97, 211, 197, 0.65);
  color: #ddfffa;
}

.model-save-status.error {
  border-color: rgba(239, 119, 119, 0.75);
  color: #ffd1d1;
}

.legacy-model-prompt {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.legacy-model-prompt > summary,
.persona-analysis-details > summary {
  cursor: pointer;
  padding: 12px 14px;
}

.legacy-model-prompt > summary span,
.persona-analysis-details > summary span {
  display: grid;
  gap: 3px;
}

.legacy-model-prompt > summary small,
.persona-analysis-details > summary small {
  color: var(--muted);
}

.legacy-model-prompt > label {
  padding: 0 14px 14px;
}

.legacy-model-prompt-warning {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-left: 3px solid rgba(242, 193, 78, 0.72);
  border-radius: 6px;
  background: rgba(242, 193, 78, 0.08);
  color: #f8df96;
}

.persona-admin {
  margin-top: 18px;
  border: 1px solid rgba(97, 211, 197, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(97, 211, 197, 0.055), rgba(255, 255, 255, 0.02));
}

.persona-admin-summary {
  display: flex;
  cursor: pointer;
  padding: 14px 16px;
}

.persona-admin-summary span,
.persona-overview > div {
  display: grid;
  gap: 3px;
}

.persona-admin-summary small,
.persona-overview small,
.persona-field-card small {
  color: var(--muted);
}

.persona-admin-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 18px;
}

.persona-toolbar,
.persona-version-list > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.persona-toolbar label {
  min-width: 220px;
}

.persona-current-model {
  display: grid;
  min-width: 220px;
  gap: 3px;
  margin-right: auto;
}

.persona-current-model small,
.persona-routine-editor small,
.persona-style-editor small,
.persona-style-example-head span {
  color: var(--muted);
}

.persona-runtime-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.persona-runtime-status span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.persona-runtime-status span[data-status="draft"] {
  border-color: rgba(242, 193, 78, 0.48);
  color: #f8df96;
}

.persona-runtime-status span[data-status="published"],
.persona-runtime-status span[data-status="active"],
.persona-runtime-status span[data-mode="structured"] {
  border-color: rgba(97, 211, 197, 0.5);
  color: #bff9f1;
}

.persona-workflow-hint,
.persona-adaptive-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(97, 211, 197, 0.22);
  border-radius: 10px;
  background: rgba(97, 211, 197, 0.055);
  color: var(--muted);
}

.persona-adaptive-note {
  display: grid;
  gap: 4px;
}

.persona-adaptive-note strong {
  color: var(--text);
}

.persona-analysis-report {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.persona-analysis-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.persona-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.persona-overview > div,
.persona-field-card,
.persona-analysis-report > details,
.persona-version-list {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.persona-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.persona-field-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.persona-field-card header span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.persona-field-card p {
  margin: 8px 0;
  white-space: pre-wrap;
}

.persona-field-card.creative {
  border-color: rgba(242, 193, 78, 0.34);
}

.persona-field-card.conflict {
  border-color: rgba(255, 111, 111, 0.42);
}

.persona-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.persona-review-actions button {
  min-height: 34px;
}

.persona-evidence {
  margin-top: 8px;
}

.persona-evidence blockquote {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid rgba(242, 193, 78, 0.48);
  background: rgba(255, 255, 255, 0.03);
}

.persona-analysis-report pre {
  overflow: auto;
  white-space: pre-wrap;
  font: inherit;
  color: var(--text);
}

.persona-version-button.active {
  border-color: var(--accent);
}

.persona-form {
  display: grid;
  gap: 14px;
}

.persona-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.persona-form label {
  display: grid;
  gap: 6px;
}

.persona-form input,
.persona-form select,
.persona-form textarea {
  width: 100%;
}

.persona-form .wide {
  grid-column: 1 / -1;
}

.persona-required,
.persona-optional {
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.persona-required {
  color: #f8df96;
}

.persona-optional,
.persona-section-hint {
  color: var(--muted);
}

.persona-section-hint {
  line-height: 1.45;
}

.persona-form.persona-dirty {
  padding-left: 10px;
  border-left: 3px solid rgba(242, 193, 78, 0.68);
}

.persona-chip-field {
  display: grid;
  gap: 6px;
}

.persona-chip-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
}

.persona-chip-label small {
  color: var(--muted);
  font-size: 0.72rem;
}

.persona-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-chip {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}

.persona-chip:hover:not(:disabled) {
  border-color: rgba(242, 193, 78, 0.5);
}

.persona-chip.is-active {
  border-color: rgba(242, 193, 78, 0.85);
  background: rgba(242, 193, 78, 0.16);
  font-weight: 600;
}

.persona-chip:disabled {
  cursor: default;
  opacity: 0.55;
}

.persona-chip-custom {
  flex: 1 1 150px;
  min-width: 130px;
  max-width: 200px;
  padding: 3px 10px;
  font-size: 0.78rem;
}

.persona-routine-editor,
.persona-style-editor {
  display: grid;
  gap: 10px;
}

.persona-routine-editor-head,
.persona-learned-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.persona-routine-editor-head > span,
.persona-learned-details summary > span {
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.persona-learned-details {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
}

.persona-learned-details summary {
  cursor: pointer;
}

.persona-learned-details .persona-style-editor {
  margin-top: 12px;
}

#personaRoutineSituations,
.persona-style-example-list {
  display: grid;
  gap: 9px;
}

.persona-routine-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 0.7fr) minmax(260px, 2fr) 36px;
  align-items: center;
  gap: 8px;
}

.persona-routine-row > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(97, 211, 197, 0.14);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.persona-style-example-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.persona-routine-remove {
  min-width: 34px;
}

.persona-style-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-style-coverage span {
  padding: 5px 8px;
  border: 1px solid rgba(239, 119, 119, 0.35);
  border-radius: 999px;
  color: #ffd1d1;
  background: rgba(239, 119, 119, 0.07);
  font-size: 0.76rem;
}

.persona-style-coverage span.complete {
  border-color: rgba(97, 211, 197, 0.35);
  color: var(--teal);
  background: rgba(97, 211, 197, 0.08);
}

.persona-style-example-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.15);
}

.persona-style-example-card.needs-review {
  border-color: rgba(239, 119, 119, 0.7);
  background: rgba(239, 119, 119, 0.055);
}

.persona-style-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(239, 119, 119, 0.1);
  color: #ffd1d1;
  font-size: 0.82rem;
}

.persona-style-source {
  grid-column: 1 / -1;
  color: var(--muted);
}

.persona-style-source summary {
  cursor: pointer;
}

.persona-style-example-head {
  grid-column: 1 / -1;
}

.persona-style-example-head span {
  margin-left: auto;
  font-size: 0.78rem;
}

.persona-style-example-head button {
  flex: 0 0 auto;
}

.persona-style-example-text {
  margin: 0;
  white-space: pre-wrap;
}

.persona-validation {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.persona-validation ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.success-text,
.persona-status-success {
  color: var(--teal);
}

.persona-status-error {
  color: var(--danger);
}

.persona-status-loading {
  color: var(--muted);
}

.persona-status-dirty {
  color: #f8df96;
}

.hidden {
  display: none !important;
}

.model-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 170px;
  gap: 12px;
}

.model-face-control {
  min-width: 0;
}

.model-face-control select {
  min-height: 38px;
}

.model-platform-pricing-dropdown {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.model-platform-pricing-dropdown summary::-webkit-details-marker {
  display: none;
}

.model-platform-pricing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent),
    rgba(255, 255, 255, 0.028);
}

.model-platform-pricing-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.model-platform-pricing-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-platform-pricing-summary small {
  color: var(--muted);
  font-size: 11px;
}

.model-platform-pricing-summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 140ms ease, color 140ms ease;
}

.model-platform-pricing-dropdown[open] .model-platform-pricing-summary {
  border-bottom: 1px solid var(--line);
}

.model-platform-pricing-dropdown[open] .model-platform-pricing-summary::after {
  color: var(--accent-strong);
  transform: rotate(180deg);
}

.model-platform-pricing-body {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.pricing-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.platform-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.model-platform-pricing-body .platform-admin-form,
.model-platform-pricing-body .pricing-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.model-platform-pricing-body .platform-admin-form {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.platform-admin-form legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.platform-admin-row {
  display: grid;
  grid-template-columns: 18px 54px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}

.platform-admin-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent-cool);
}

.platform-admin-row input:not([type="checkbox"]) {
  min-height: 32px;
  padding: 6px 8px;
}

.platform-admin-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-form legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.pricing-platform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.pricing-platform h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
}

.pricing-platform label {
  font-size: 12px;
}

.pricing-platform input {
  min-height: 34px;
  padding: 7px 9px;
}

.wide {
  grid-column: 1 / -1;
}

.admin-model-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-model {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-model.editing {
  border-color: rgba(243, 196, 81, 0.75);
  background: rgba(243, 196, 81, 0.1);
  box-shadow: inset 3px 0 0 var(--accent-strong);
}

.admin-model-name {
  display: grid;
  gap: 2px;
}

.admin-model-name em {
  color: var(--accent-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-model-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-assignment {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-assignment-body,
.admin-assignment-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.assignment-model-picker {
  max-width: 320px;
}

.assignment-pricing-heading {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.assignment-pricing-heading strong {
  color: var(--text);
  font-size: 14px;
}

.assignment-pricing-heading span {
  color: var(--muted);
  font-size: 12px;
}

.assignment-platform-reference,
.assignment-pricing-reference {
  background: rgba(255, 255, 255, 0.018);
}

.assignment-user {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.assignment-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.assignment-user strong {
  color: var(--text);
  font-size: 14px;
}

.assignment-model-toggle {
  display: inline-grid;
  grid-template-columns: auto 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
}

.assignment-model-toggle input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent-cool);
}

.assignment-platform-editor {
  display: grid;
  gap: 8px;
}

.assignment-platform-editor.disabled {
  opacity: 0.55;
}

.assignment-platform {
  display: block;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
}

.assignment-platform .platform-admin-row strong {
  color: var(--text);
  font-size: 12px;
}

.assignment-platform.disabled {
  opacity: 0.62;
}

.assignment-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.assignment-pricing-grid label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.assignment-pricing-grid input {
  min-height: 32px;
  padding: 6px 8px;
}

.assignment-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assignment-model-option {
  display: grid;
  grid-template-columns: auto 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.admin-sort-controls {
  display: inline-flex;
  gap: 6px;
}

.admin-sort-action {
  width: 34px;
  min-height: 34px;
}

.admin-sort-action:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.danger-action {
  min-height: 36px;
  border-color: rgba(239, 119, 119, 0.5);
  background: var(--danger-soft);
  color: var(--text);
}

.danger-action:hover {
  border-color: rgba(239, 119, 119, 0.85);
  color: #ffd1d1;
}

.profile-readonly {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 13px 48px 13px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 15, 19, 0.72);
}

.profile-readonly .infobox-suggest-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
}

.profile-readonly div {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.43;
}

.profile-readonly strong {
  color: var(--text);
}

.profile-readonly span {
  white-space: pre-line;
}

.profile-readonly .customer-info-pending-value {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.customer-info-v2-readonly {
  gap: 8px;
  padding: 10px;
  border-color: rgba(97, 211, 197, 0.34);
  background:
    linear-gradient(180deg, rgba(97, 211, 197, 0.055), rgba(12, 15, 19, 0.78)),
    rgba(12, 15, 19, 0.78);
}

.customer-info-v2-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(231, 188, 75, 0.3);
  border-radius: 8px;
  background: rgba(231, 188, 75, 0.08);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.customer-info-v2-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.customer-info-v2-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid rgba(97, 211, 197, 0.3);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.09);
  color: #d8fffb;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.customer-info-v2-status-chip[data-kind="purchaseReadiness"],
.customer-info-v2-status-chip[data-kind="valueStatus"] {
  border-color: rgba(231, 188, 75, 0.36);
  background: rgba(231, 188, 75, 0.1);
  color: #ffe7a5;
}

.customer-info-v2-overview {
  display: grid;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.13);
}

.customer-info-v2-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.customer-info-v2-row:first-child:not(.hidden) {
  border-top: 0;
}

.customer-info-v2-row strong {
  padding-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.customer-info-v2-row > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.customer-info-v2-primary {
  color: #eafffc;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.customer-info-v2-primary[data-level="vip"] {
  color: #ffe29a;
}

.customer-info-v2-primary[data-level="loyal"] {
  color: #b9fff5;
}

.customer-info-v2-commerce {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.customer-info-v2-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: var(--text-soft);
  white-space: normal;
}

.customer-info-v2-contact b {
  color: #d8fffb;
  font-size: 11px;
  font-weight: 850;
}

.customer-info-v2-contact b[data-status="irregular"] {
  color: #ffe7ad;
}

.customer-info-v2-contact b[data-status="insufficient"] {
  color: var(--muted);
}

.customer-info-v2-contact small {
  color: var(--muted);
  font-size: 10px;
}

.customer-info-v2-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.customer-info-v2-money-chip {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.customer-info-v2-money-chip[data-kind="content"],
.customer-info-v2-money-chip[data-kind="tips"],
.customer-info-v2-money-chip[data-kind="gifts"] {
  border-color: rgba(231, 188, 75, 0.2);
  color: #ffe7ad;
}

.customer-info-v2-deals {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 11px;
}

.customer-info-v2-deal-list {
  display: grid;
  gap: 6px;
}

.customer-info-v2-deal {
  display: grid;
  width: 100%;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: baseline;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 11px;
  font-family: inherit;
  text-align: left;
  line-height: 1.3;
}

button.customer-info-v2-deal {
  cursor: pointer;
}

button.customer-info-v2-deal:hover {
  border-color: rgba(97, 211, 197, 0.32);
  background: rgba(97, 211, 197, 0.055);
}

.customer-info-v2-deal time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.customer-info-v2-deal > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-info-v2-deal > strong {
  padding: 0;
  color: #ffe29a;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.customer-info-v2-last-deal {
  color: #ffe7ad;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.customer-info-v2-deals-toggle {
  justify-self: start;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(97, 211, 197, 0.25);
  border-radius: 6px;
  background: rgba(97, 211, 197, 0.06);
  color: #d8fffb;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.customer-info-v2-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.customer-info-v2-fact-chip {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 23px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.customer-info-v2-fact-chip > span,
.customer-info-v2-fact-source {
  min-width: 0;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  font: inherit;
  overflow-wrap: anywhere;
  text-align: left;
}

.customer-info-v2-fact-source {
  cursor: pointer;
}

.customer-info-v2-fact-source:hover {
  color: #d8fffb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-info-v2-fact-menu {
  position: relative;
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-info-v2-fact-menu summary {
  display: grid;
  height: 100%;
  min-width: 25px;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 8px;
  list-style: none;
}

.customer-info-v2-fact-menu summary::-webkit-details-marker {
  display: none;
}

.customer-info-v2-fact-actions {
  position: absolute;
  z-index: 4;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 165px;
  padding: 5px;
  border: 1px solid rgba(97, 211, 197, 0.32);
  border-radius: 7px;
  background: #151a20;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.customer-info-v2-fact-actions button {
  padding: 6px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}

.customer-info-v2-fact-actions button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.customer-info-v2-fact-chip.attention {
  border-color: rgba(231, 188, 75, 0.28);
  background: rgba(231, 188, 75, 0.075);
  color: #fff0bf;
}

.customer-info-v2-empty {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
}

.customer-info-v2-preference-groups {
  display: grid;
  gap: 7px;
}

.customer-info-v2-preference-group {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.customer-info-v2-preference-group > small {
  padding-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


.customer-info-pending-remove {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(239, 119, 119, 0.72);
  border-radius: 999px;
  background: rgba(239, 119, 119, 0.12);
  color: #ffd1d1;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.customer-info-pending-remove:hover {
  border-color: rgba(255, 175, 175, 0.92);
  background: rgba(239, 119, 119, 0.22);
  color: #fff0f0;
}

.infobox-suggest-form {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(97, 211, 197, 0.26);
  border-radius: var(--radius);
  background: rgba(97, 211, 197, 0.08);
}

.infobox-suggest-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.infobox-suggest-form select,
.infobox-suggest-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.74);
  color: var(--text);
  padding: 0 10px;
}

.infobox-suggest-form .send-action {
  min-height: 36px;
  padding-inline: 14px;
}

.topbar-pin-manager {
  position: relative;
  flex: 0 0 auto;
}

.topbar-pin-manager summary {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  list-style: none;
  border: 1px solid rgba(243, 196, 81, 0.36);
  border-radius: 8px;
  background: rgba(243, 196, 81, 0.08);
  color: var(--text-soft);
  cursor: pointer;
}

.topbar-pin-manager summary::-webkit-details-marker {
  display: none;
}

.topbar-pin-manager summary span {
  font-size: 16px;
  line-height: 1;
}

.topbar-pin-manager summary small {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #2d8dff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.topbar-pin-manager summary:hover,
.topbar-pin-manager[open] summary {
  border-color: rgba(243, 196, 81, 0.78);
  background: rgba(243, 196, 81, 0.14);
  color: #ffe9a8;
}

.topbar-pin-manager.disabled summary {
  cursor: default;
  opacity: 0.62;
}

.topbar-pin-manager.disabled summary:hover {
  border-color: rgba(243, 196, 81, 0.36);
  background: rgba(243, 196, 81, 0.08);
  color: var(--text-soft);
}

.pinned-instructions-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(18, 21, 26, 0.98);
  box-shadow: var(--shadow-soft);
}

.pinned-instructions-popover-head {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.pinned-instructions-popover-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.pinned-instructions-popover-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pinned-instructions-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.pinned-instructions-empty {
  padding: 8px 2px;
  color: var(--muted);
  font-size: 13px;
}

.pinned-instruction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.pinned-instruction-item.editing {
  grid-template-columns: minmax(0, 1fr);
}

.pinned-instruction-text {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.pinned-instruction-item textarea {
  min-height: 78px;
  resize: vertical;
}

.pinned-instruction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pinned-instruction-action {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.app-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 18, 21, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-tight);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
  font-size: 14px;
  line-height: 1.35;
}

.app-status.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-status.success {
  border-color: rgba(97, 211, 197, 0.65);
}

.app-status.error {
  border-color: rgba(239, 119, 119, 0.75);
  color: #ffd1d1;
}

.app-status.loading {
  border-color: rgba(243, 196, 81, 0.75);
  color: #f8df96;
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 300px;
  }

  .messages,
  .composer,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 900px) {
  .composer-context-row {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.customer-assist-open {
    grid-template-columns: 1fr;
  }

  .customer-assist-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: min(420px, 100vw);
    box-shadow: var(--shadow-soft);
  }

  .sidebar-resizer,
  .app-shell.customer-assist-open .customer-assist-resizer {
    display: none;
  }

  .sidebar {
    height: auto;
    min-height: auto;
    max-height: 48vh;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    height: 100vh;
  }

  .topbar,
  .composer-actions,
  .admin-login,
  .commerce-metric-grid,
  .commerce-money-grid,
  .commerce-detail-head,
  .commerce-platform-summary,
  .commerce-model-row,
  .assignment-model-grid,
  .assignment-pricing-grid,
  .model-form,
  .persona-overview,
  .persona-field-grid,
  .persona-form fieldset,
  .persona-style-example-card,
  .pricing-form,
  .pricing-platform,
  .admin-commerce-controls {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-semantics {
    grid-template-columns: 1fr;
  }

  #adminEmployeeControls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: row;
    align-items: end;
  }

  #adminEmployeeControls .admin-commerce-refresh-button {
    grid-column: 1 / -1;
  }

  .persona-routine-row {
    grid-template-columns: 28px 1fr 36px;
  }

  .persona-routine-row > span,
  .persona-routine-row select,
  .persona-routine-row .persona-routine-remove {
    grid-row: 1;
  }

  .persona-routine-row input {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .persona-routine-editor-head,
  .persona-learned-details summary,
  .persona-style-example-head {
    align-items: stretch;
    flex-direction: column;
  }

  .persona-style-example-head span {
    margin-left: 0;
  }

  .quality-board-grid,
  .quality-summary-strip,
  .quality-feedback-metrics,
  .quality-feedback-reason-list,
  .quality-action-title,
  .quality-insight-row,
  .quality-dislike-row,
  .quality-dislike-detail-panel {
    grid-template-columns: 1fr;
  }

  .admin-employee-select {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .topbar h2 {
    font-size: 22px;
  }

  .topbar-account {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .current-offer-hint,
  .content-catalog-shortcut-stack,
  .content-catalog-shortcut,
  .session-user-badge {
    flex: 1 1 108px;
    max-width: none;
  }

  .session-revenue-badge {
    flex: 1 1 108px;
  }

  .logout-action {
    flex: 1 1 96px;
  }

  .message {
    width: 100%;
  }

  .message.user,
  .message.assistant,
  .ab-comparison-card {
    width: 100%;
  }

  .ab-comparison-controls {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .customer-info-title {
    flex-wrap: wrap;
  }

  .customer-info-v2-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .customer-info-v2-row strong {
    padding-top: 0;
  }

  .customer-info-v2-deal {
    grid-template-columns: 1fr auto;
  }

  .customer-info-v2-deal time {
    grid-column: 1 / -1;
  }

  .customer-info-v2-preference-group {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .customer-assist-form-grid,
  .customer-assist-status-actions {
    grid-template-columns: 1fr;
  }

  .pinned-instruction-item {
    grid-template-columns: 1fr;
  }

  .pinned-instruction-actions {
    justify-content: flex-start;
  }

  .infobox-field-row,
  .infobox-recommendation-row {
    grid-template-columns: 1fr;
  }

  .infobox-profile-head,
  .infobox-suggestion-head,
  .infobox-suggestion-values,
  .infobox-suggestion-meta {
    grid-template-columns: 1fr;
  }

  .infobox-profile-head {
    display: grid;
  }

  .composer-context-row {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .messages,
  .composer,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .model-slot-grid,
  .response-mode,
  .composer-actions {
    gap: 8px;
  }

  .response-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .ab-comparison-controls {
    align-items: flex-start;
  }

  .response-mode .current-offer-hint,
  .response-mode .content-catalog-shortcut-stack {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .response-mode .content-catalog-quick-card {
    right: 0;
    left: 0;
    width: auto;
    max-height: min(var(--content-catalog-quick-card-max-height, 540px), 62vh);
  }

  .response-mode .offer-hint-tooltip {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 7px;
    box-sizing: border-box;
    transform: none;
  }

  .response-mode .offer-hint-tooltip::after {
    display: none;
  }
}

/* --- Reaktivierung (Spec §4) ---------------------------------------------
   Ersetzt die Regeln des frueheren Anschreibtext-Dialogs. */

.outreach-panel-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid rgba(97, 211, 197, 0.34);
  border-radius: 8px;
  background: rgba(97, 211, 197, 0.08);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.outreach-panel-button:hover,
.outreach-panel-button:focus-visible {
  border-color: rgba(97, 211, 197, 0.72);
  background: rgba(97, 211, 197, 0.15);
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 211, 197, 0.12);
}

.outreach-panel-button span {
  color: var(--teal);
  font-size: 12px;
  line-height: 1;
}

.outreach-panel {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: start center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(7px);
}

.outreach-panel.hidden {
  display: none;
}

.outreach-panel-card {
  display: grid;
  gap: 12px;
  width: min(880px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(12, 14, 17, 0.97);
}

.outreach-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.outreach-progress {
  margin-left: 10px;
  color: var(--teal);
  font-weight: 800;
}

.outreach-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.outreach-status.error {
  color: #ff9d9d;
}

.outreach-queue-list {
  display: grid;
  gap: 10px;
}

.outreach-empty,
.outreach-loading,
.outreach-error {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.outreach-error {
  color: #ff9d9d;
}

.outreach-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.outreach-group-title {
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.outreach-count {
  margin-left: 6px;
  color: var(--teal);
}

.outreach-group-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.outreach-group-empty {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted, #8b93a7);
}

.outreach-entry {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 11, 14, 0.7);
}

.outreach-entry.expanded {
  border-color: rgba(97, 211, 197, 0.44);
}

.outreach-entry-head {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.outreach-names {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.outreach-model {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.outreach-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.outreach-badge {
  padding: 2px 7px;
  border: 1px solid rgba(97, 211, 197, 0.3);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.1);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.outreach-badge-warn {
  border-color: rgba(244, 189, 83, 0.55);
  background: rgba(244, 189, 83, 0.14);
}

/* ---------------------------------------------------------------------------------------
   Kundenpflege V2 (t_49e1c6cf)
   ---------------------------------------------------------------------------------------
   Vier Bereiche mit unterschiedlicher Dringlichkeit. Die beiden aktiven bleiben in der
   normalen Optik; Wartebereich und Deaktiviert werden bewusst zurueckgenommen, damit die
   Tagesarbeit optisch nicht mit dem Nachschlagewerk konkurriert. */

/* Lifetime-Umsatz direkt hinter dem Namen — das ist der Beleg dafuer, WARUM dieser Kunde
   unter "Umsatzstark" steht. Deshalb hervorgehoben und nicht als weiteres graues Badge. */
.outreach-lifetime {
  padding: 1px 7px;
  border: 1px solid rgba(97, 211, 197, 0.45);
  border-radius: 999px;
  background: rgba(97, 211, 197, 0.14);
  color: #61d3c5;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

/* Restzeit im Wartebereich. Warnfarbe, weil sie eine Sperre anzeigt: der Mitarbeiter soll
   auf einen Blick sehen, dass hier heute NICHTS zu tun ist. */
.outreach-countdown {
  color: #f4bd53;
  font-size: 11px;
  font-weight: 800;
}

.outreach-countdown em {
  font-style: normal;
  font-weight: 650;
  opacity: 0.8;
}

.outreach-deactivated-at {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

/* Deaktivierte Zeilen sind ausdruecklich kein Arbeitsvorrat. Sie werden gedimmt, bleiben
   aber lesbar und beim Ueberfahren voll sichtbar — die manuelle Reaktivierung muss
   bedienbar bleiben. */
.outreach-entry-deactivated {
  opacity: 0.72;
}

.outreach-entry-deactivated:hover,
.outreach-entry-deactivated:focus-within {
  opacity: 1;
}

.outreach-entry-deactivated .outreach-entry-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 10px;
}

.outreach-reactivate {
  font-size: 11px;
}

.outreach-last {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.outreach-last em {
  font-style: normal;
  opacity: 0.75;
}

.outreach-last-empty {
  opacity: 0.6;
}

.outreach-entry-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.outreach-suggestion-text {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 11, 14, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.outreach-suggestion-text:focus {
  outline: none;
  border-color: rgba(97, 211, 197, 0.7);
  box-shadow: 0 0 0 2px rgba(97, 211, 197, 0.14);
}

.outreach-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.outreach-entry-actions .secondary-action,
.outreach-entry-actions .send-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .outreach-panel-card {
    padding: 12px;
  }

  .outreach-entry-actions .secondary-action,
  .outreach-entry-actions .send-action {
    flex: 1 1 auto;
  }
}

/* t_48bcdde4: Reaktivierungsentwurf als regulaere Antwortkarte -------------
   Die Karte erbt bewusst alles von `.message.assistant`; hier stehen nur die
   Ergaenzungen fuer das editierbare Feld und die Statuszeile. Kein eigener
   Rahmen, kein eigener Hintergrund — sie soll wie eine normale Antwort
   aussehen. */
.outreach-draft-body {
  min-height: 2.6em;
  white-space: pre-wrap;
  outline: none;
}

.outreach-draft-body:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(97, 211, 197, 0.45);
}

/* t_aac034db: nach erfolgreicher Buchung ist die Karte abgeschlossen — sie
   ist nicht mehr editierbar; ein dezenter linker Rand markiert den
   Erfolgszustand, ohne die Optik der normalen Antwortkarte zu sprengen. */
.outreach-draft-body.outreach-draft-booked {
  border-left: 2px solid var(--teal);
  padding-left: 10px;
  opacity: 0.92;
}

.outreach-draft-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.outreach-draft-error {
  color: #ff9d9d;
}

.outreach-draft-status {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.outreach-draft-status.error {
  color: #ff9d9d;
}

.outreach-open-hint {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

/* t_5acc3a6b (Punkt 5a): optionaler Bildanhang im Neukunden-Dialog.
   Die Ablageflaeche erbt bewusst .image-drop-zone / .image-preview-list /
   .image-upload-status vom Composer — gleiche Optik, kein Sonderstyling. */
.new-chat-image-field {
  display: grid;
  gap: 6px;
}

.new-chat-image-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* t_04f54e56: kompakte, rollengetrennte Startnachrichten im Dialog "Neuer Kundenchat". */
.new-chat-message-input {
  min-height: 42px;
  padding: 8px 10px;
  resize: vertical;
}

.new-chat-message-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.new-chat-required {
  color: var(--accent);
  font-weight: 800;
}

.new-chat-field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

/* t_7b420656: Hilfetext fuer den optionalen laengeren Kundenverlauf. */
.new-chat-field-hint {
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

/* t_c429d1dc: einklappbarer laengerer Kundenverlauf. */
.new-chat-history-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.new-chat-history-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 6px 4px 2px;
  border-radius: 6px;
  color: var(--muted, #9ca3af);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.new-chat-history-details > summary::-webkit-details-marker {
  display: none;
}

.new-chat-history-details > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.new-chat-history-details[open] > summary::before {
  transform: rotate(45deg);
}

.new-chat-history-details > summary:hover {
  color: var(--text, #f3f4f6);
}

.new-chat-history-details > summary:focus-visible {
  outline: 2px solid var(--accent, #60a5fa);
  outline-offset: 2px;
}

.new-chat-history-body {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
}

.new-chat-history-body textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Tryout reactivation: reduced motion retains a visible static hint. */
.outreach-search-label { display:block; margin: 12px 0 6px; font-size: .85rem; color:var(--muted); }
.outreach-search { width:100%; box-sizing:border-box; margin-bottom:12px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:inherit; }
.outreach-attention { outline:2px solid #b695ff; animation:outreach-pulse 1.4s ease-in-out infinite; }
@keyframes outreach-pulse {
  0%, 100% { background-color:rgba(182,149,255,.08); box-shadow:0 0 0 0 rgba(182,149,255,0); }
  50% { background-color:rgba(182,149,255,.38); box-shadow:0 0 0 4px rgba(182,149,255,.35), 0 0 18px rgba(182,149,255,.65); }
}
@media (prefers-reduced-motion: reduce) { .outreach-attention { animation:none; } }
.outreach-entry-head:disabled { cursor:default; opacity:.8; }
.outreach-draft-body:empty::before { content:attr(data-placeholder); color:var(--muted); pointer-events:none; }

.outreach-draft-actions { align-items: flex-start; }
.outreach-booking-group { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.outreach-attempt-counter { font-size: 12px; color: var(--muted, #a7b3c2); }
