/* =====================================================================
   simulator.css — Tam ekran "Müşteri Simülasyonu" arayüzü
   Görsel referans: temsilci paneli (avatar + isim + zaman + balon)
===================================================================== */

.sim-root {
  position: fixed; inset: 0;
  z-index: 2147483600;
  display: none;
}
.sim-root.show { display: block; }

.sim-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(8px);
  animation: simFade .25s ease;
}
@keyframes simFade { from { opacity: 0; } to { opacity: 1; } }

.sim-shell {
  position: absolute;
  inset: 4vh 6vw;
  background: #f4f7fb;
  color: #1d2433;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  animation: simRise .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes simRise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.sim-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
}
.sim-head-l { display: flex; align-items: center; gap: 14px; }
.sim-head-r { display: flex; gap: 8px; }
.sim-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #e6ebf2;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.sim-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sim-title { font-size: 16px; font-weight: 700; color: #1d2433; }
.sim-sub {
  font-size: 12px; color: #6f7b91;
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.sim-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ddc8a;
  box-shadow: 0 0 0 4px rgba(45,220,138,.18);
}
.sim-x {
  width: 36px; height: 36px;
  border: none; background: #f0f3f8;
  border-radius: 50%;
  color: #1d2433;
  font-size: 16px; cursor: pointer;
  transition: background .15s;
}
.sim-x:hover { background: #e0e6ee; }

/* Thread */
.sim-thread {
  overflow-y: auto;
  padding: 22px 28px 8px;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  scroll-behavior: smooth;
}
.sim-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  animation: simRow .3s ease both;
}
@keyframes simRow { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sim-row.me { grid-template-columns: 1fr 44px; }
.sim-row.me .sim-avatar { order: 2; }
.sim-row.me .sim-col    { order: 1; align-items: flex-end; }
.sim-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sim-meta {
  font-size: 12px; color: #6f7b91;
  font-weight: 500;
}
.sim-meta b { color: #1d2433; font-weight: 700; margin-right: 4px; }
.sim-time { color: #9aa3b6; }

.sim-bubble {
  max-width: min(640px, 80%);
  background: #ffffff;
  color: #1d2433;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(20,30,50,.04);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.sim-row.me .sim-bubble {
  background: linear-gradient(135deg, #d8efe7, #c6e9d8);
  border-color: #bce0cf;
}
.sim-system {
  text-align: center;
  font-size: 12px; color: #6f7b91;
  margin: 10px auto;
  background: #e9eef5;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

/* Typing indicator */
.sim-typing {
  display: none;
  padding: 0 28px 8px;
  align-items: center; gap: 12px;
}
.sim-typing.on { display: flex; }
.sim-typing-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.sim-typing-av img { width: 100%; height: 100%; object-fit: cover; }
.sim-typing-bubble {
  background: #fff; border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; gap: 5px;
}
.sim-typing-bubble span {
  width: 7px; height: 7px;
  background: #6f7b91;
  border-radius: 50%;
  animation: simBlink 1.2s infinite;
}
.sim-typing-bubble span:nth-child(2) { animation-delay: .2s; }
.sim-typing-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes simBlink { 0%,80%,100% { opacity: .3; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } }

/* Footer / Input */
.sim-foot {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 22px 18px;
  background: #fff;
  border-top: 1px solid #e6ebf2;
}
.sim-foot textarea {
  resize: none;
  min-height: 44px; max-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6dde6;
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #1d2433;
  background: #f8fafc;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sim-foot textarea:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79,140,255,.18);
  background: #fff;
}
.sim-foot textarea:disabled { opacity: .55; cursor: not-allowed; }
.sim-send {
  padding: 0 22px; min-height: 44px;
  background: linear-gradient(135deg, #4f8cff, #7b5cff);
  color: #fff; font-weight: 600;
  border: none; border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.sim-send:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,140,255,.35); }
.sim-send:active { transform: translateY(0); }

/* Rating card (final) */
.sim-rating {
  margin: 18px auto 8px;
  padding: 22px 26px;
  max-width: 620px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  border: 2px solid rgba(79,140,255,.25);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(79,140,255,.18);
  text-align: center;
  animation: simRise .4s ease both;
}
.sim-rating-brand {
  font-size: 11px; letter-spacing: 3px; font-weight: 700;
  color: #4f8cff;
}
.sim-rating-brand span {
  background: linear-gradient(135deg, #4f8cff, #7b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sim-rating-title {
  font-size: 22px; font-weight: 700;
  color: #1d2433;
  margin: 6px 0 14px;
}
.sim-rating-stars {
  font-size: 38px; line-height: 1;
  color: #ffc935;
  text-shadow: 0 4px 14px rgba(255,201,53,.45);
  letter-spacing: 4px;
}
.sim-rating-stars .empty { color: #d8dde7; text-shadow: none; }
.sim-rating-score {
  font-size: 14px; color: #6f7b91;
  margin: 8px 0 16px;
  font-weight: 600;
}
.sim-rating-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  text-align: left;
}
.sim-rating-grid > div {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.sim-rating-grid span { display: block; color: #6f7b91; margin-bottom: 2px; }
.sim-rating-grid b { color: #1d2433; font-size: 13px; }
.sim-rating-foot {
  font-size: 13px; color: #2ddc8a;
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px dashed #d6dde6;
}

/* Responsive */
@media (max-width: 768px) {
  .sim-shell { inset: 0; border-radius: 0; }
  .sim-thread { padding: 14px 14px 8px; }
  .sim-foot { padding: 10px 12px 14px; }
  .sim-bubble { max-width: 90%; font-size: 14px; }
  .sim-rating-grid { grid-template-columns: 1fr 1fr; }
}

/* ============== History view ============== */
.hst-root { position: fixed; inset: 0; z-index: 2147483550; display: none; }
.hst-root.show { display: block; }
.hst-backdrop {
  position: absolute; inset: 0;
  background: rgba(7,11,20,.7);
  backdrop-filter: blur(6px);
}
.hst-shell {
  position: absolute; inset: 5vh 8vw;
  background: #f4f7fb;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  animation: simRise .3s ease both;
}
.hst-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: #fff;
  border-bottom: 1px solid #e6ebf2;
}
.hst-title { font-size: 18px; font-weight: 700; color: #1d2433; }
.hst-sub { font-size: 12px; color: #6f7b91; margin-top: 2px; }
.hst-x { width: 36px; height: 36px; border: none; background: #f0f3f8; border-radius: 50%; cursor: pointer; font-size: 16px; }
.hst-body { overflow: auto; padding: 16px 22px 22px; }
.hst-table-wrap { background: #fff; border-radius: 12px; border: 1px solid #e6ebf2; overflow: hidden; }
.hst-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hst-table th {
  text-align: left; padding: 12px 14px;
  background: #f0f3f8; color: #4a5468; font-weight: 600;
  border-bottom: 1px solid #e6ebf2;
  position: sticky; top: 0;
}
.hst-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eff2f7;
  color: #1d2433;
}
.hst-table tbody tr { cursor: pointer; transition: background .12s; }
.hst-table tbody tr:hover { background: #f8fafc; }
.hst-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 11px; font-weight: 600;
  color: #4a5468;
  text-transform: capitalize;
}
.hst-tag.mood-sinirli { background: #ffe4e4; color: #c2374b; }
.hst-tag.mood-sakin { background: #defaee; color: #1d8c5b; }
.hst-tag.mood-aceleci { background: #fff0d6; color: #b07021; }
.hst-tag.mood-kibarsoğuk { background: #e3edff; color: #2c4f9e; }
.hst-stars { color: #ffc935; letter-spacing: 1px; font-size: 14px; }
.hst-stars .empty { color: #d8dde7; }
.hst-stars small { color: #6f7b91; margin-left: 6px; font-weight: 600; }
.hst-pending { color: #9aa3b6; font-style: italic; font-size: 12px; }
.hst-link {
  background: none; border: none;
  color: #4f8cff; font-weight: 600; cursor: pointer;
}
.hst-empty { text-align: center; padding: 40px; color: #6f7b91; }

/* Detail nested */
.hst-detail { position: absolute; inset: 0; display: none; z-index: 2; }
.hst-detail.show { display: block; }
.hst-detail-back { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.hst-detail-shell {
  position: absolute;
  top: 5%; bottom: 5%; left: 12%; right: 12%;
  background: #fff;
  border-radius: 14px;
  display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.hst-detail-shell header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: #f0f3f8;
  border-bottom: 1px solid #e6ebf2;
}
.hst-detail-title { font-weight: 700; color: #1d2433; }
.hst-detail-shell header button {
  width: 32px; height: 32px; border: none; background: #fff;
  border-radius: 50%; cursor: pointer;
}
.hst-detail-body { padding: 16px 22px; overflow: auto; }
.hst-summary {
  background: #f8fafc;
  padding: 10px 14px; border-radius: 10px;
  margin-bottom: 14px; font-size: 13px;
}
.hst-msg {
  margin-bottom: 10px; padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px; line-height: 1.5;
}
.hst-msg.hst-customer { background: #fff; border: 1px solid #e6ebf2; }
.hst-msg.hst-me { background: #d8efe7; border: 1px solid #bce0cf; }
.hst-msg.hst-system { background: #f0f3f8; color: #6f7b91; font-size: 12px; text-align: center; }
.hst-msg b { color: #4a5468; }

/* =====================================================================
   Tema değişkenleri + DARK default override (sim & hst)
   ===================================================================== */
.sim-root, .hst-root {
  font-family: var(--font, "Century Gothic", "CenturyGothic", "AppleGothic", "URW Gothic", "Avant Garde", system-ui, sans-serif);
}
.sim-root *, .hst-root * { font-family: inherit; }

/* ---- SIM dark (default) ---- */
.sim-root[data-theme="dark"] .sim-shell {
  background: #0f1623; color: #e6ecf5;
}
.sim-root[data-theme="dark"] .sim-head {
  background: #131c2c; border-bottom-color: #1f2a40;
}
.sim-root[data-theme="dark"] .sim-title { color: #f4f7ff; }
.sim-root[data-theme="dark"] .sim-sub   { color: #8493ad; }
.sim-root[data-theme="dark"] .sim-x { background: #1c2638; color: #e6ecf5; }
.sim-root[data-theme="dark"] .sim-x:hover { background: #263147; }
.sim-root[data-theme="dark"] .sim-thread {
  background: linear-gradient(180deg, #0f1623 0%, #0b111c 100%);
}
.sim-root[data-theme="dark"] .sim-meta { color: #8493ad; }
.sim-root[data-theme="dark"] .sim-meta b { color: #e6ecf5; }
.sim-root[data-theme="dark"] .sim-time { color: #6b7895; }
.sim-root[data-theme="dark"] .sim-bubble {
  background: #1a2436; color: #e6ecf5; border-color: #243149;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.sim-root[data-theme="dark"] .sim-row.me .sim-bubble {
  background: linear-gradient(135deg, #2a4f44, #225a48);
  border-color: #2c6b54; color: #e8fff5;
}
.sim-root[data-theme="dark"] .sim-system {
  background: #1c2638; color: #8493ad;
}
.sim-root[data-theme="dark"] .sim-typing-bubble {
  background: #1a2436; border-color: #243149;
}
.sim-root[data-theme="dark"] .sim-typing-bubble span { background: #8493ad; }
.sim-root[data-theme="dark"] .sim-foot {
  background: #131c2c; border-top-color: #1f2a40;
}
.sim-root[data-theme="dark"] .sim-foot textarea {
  background: #0b111c; color: #e6ecf5; border-color: #243149;
}
.sim-root[data-theme="dark"] .sim-foot textarea:focus {
  background: #0f1623; border-color: #4f8cff;
}

/* sol-üst tema toggle */
.sim-theme-btn, .hst-theme-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: #1c2638; color: #e6ecf5;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  margin-right: 4px;
}
.sim-theme-btn:hover, .hst-theme-btn:hover { transform: scale(1.08); }
.sim-root[data-theme="light"] .sim-theme-btn,
.hst-root[data-theme="light"] .hst-theme-btn {
  background: #f0f3f8; color: #1d2433;
}

/* ---- Mode picker ---- */
.sim-mode-picker {
  margin: 24px auto;
  max-width: 720px;
  text-align: center;
  padding: 28px 22px;
}
.sim-mp-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.sim-mp-sub   { font-size: 13px; opacity: .75; margin-bottom: 22px; }
.sim-mp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sim-mp-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 18px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  font: inherit;
}
.sim-root[data-theme="light"] .sim-mp-card { background: #fff; border-color: #e6ebf2; }
.sim-mp-card:hover {
  transform: translateY(-3px);
  border-color: #4f8cff;
  box-shadow: 0 12px 30px rgba(79,140,255,.25);
}
.sim-mp-card[data-mode="kriz"]:hover {
  border-color: #ff5b6e;
  box-shadow: 0 12px 30px rgba(255,91,110,.28);
}
.sim-mp-emoji { font-size: 42px; }
.sim-mp-name  { font-size: 18px; font-weight: 700; }
.sim-mp-desc  { font-size: 12.5px; opacity: .8; line-height: 1.5; }
@media (max-width: 640px) { .sim-mp-grid { grid-template-columns: 1fr; } }

/* ---- Yarım yıldız ---- */
.sim-rating-stars .st { display: inline-block; }
.sim-rating-stars .st.full  { color: #ffc935; }
.sim-rating-stars .st.empty { color: #d8dde7; text-shadow: none; }
.sim-rating-stars .st.half  {
  background: linear-gradient(90deg, #ffc935 50%, #d8dde7 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sim-root[data-theme="dark"] .sim-rating-stars .st.empty { color: #2a3550; }
.sim-root[data-theme="dark"] .sim-rating-stars .st.half {
  background: linear-gradient(90deg, #ffc935 50%, #2a3550 50%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Rating dark ---- */
.sim-root[data-theme="dark"] .sim-rating {
  background: linear-gradient(135deg, #1a2436 0%, #1d2a4a 100%);
  border-color: rgba(79,140,255,.4);
}
.sim-root[data-theme="dark"] .sim-rating-title { color: #f4f7ff; }
.sim-root[data-theme="dark"] .sim-rating-grid > div {
  background: #0f1623; border-color: #243149;
}
.sim-root[data-theme="dark"] .sim-rating-grid span { color: #8493ad; }
.sim-root[data-theme="dark"] .sim-rating-grid b { color: #e6ecf5; }
.sim-root[data-theme="dark"] .sim-rating-foot {
  border-top-color: #243149;
}

/* ---- Rapor kartı ---- */
.sim-report, .hst-report {
  margin: 14px auto 8px;
  max-width: 720px;
  padding: 20px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: inherit;
}
.sim-root[data-theme="light"] .sim-report,
.hst-root[data-theme="light"] .hst-report {
  background: #fff; border-color: #e6ebf2;
}
.sim-report-head, .hst-report-head {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px;
}
.sim-report-icon, .hst-report-icon { font-size: 32px; }
.sim-report-title, .hst-report-title { font-size: 18px; font-weight: 700; }
.sim-report-sub, .hst-report-sub { font-size: 12px; opacity: .7; margin-top: 2px; }
.sim-report-section, .hst-report-section { margin-top: 14px; }
.sim-report-h, .hst-report-h {
  font-size: 13px; font-weight: 700; opacity: .9;
  margin-bottom: 8px;
}
.sim-report-list, .hst-report-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sim-rep-item, .hst-rep-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(255,255,255,.03);
  border-left: 3px solid transparent;
}
.sim-rep-item.good, .hst-rep-item.good { border-left-color: #2ddc8a; background: rgba(45,220,138,.08); }
.sim-rep-item.bad,  .hst-rep-item.bad  { border-left-color: #ff8a5b; background: rgba(255,138,91,.08); }
.sim-rep-item.bad.sev-high, .hst-rep-item.bad.sev-high { border-left-color: #ff5b6e; background: rgba(255,91,110,.10); }
.sim-rep-item.trait, .hst-rep-item.trait { border-left-color: #6aa9ff; background: rgba(106,169,255,.08); }

/* Grade card */
.sim-report-grade {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(106,169,255,.10), rgba(45,220,138,.06));
  border: 1px solid rgba(106,169,255,.18);
}
.sim-grade-letter {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; letter-spacing: .5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.sim-grade-a { color: #2ddc8a; border-color: rgba(45,220,138,.4); background: rgba(45,220,138,.08); }
.sim-grade-b { color: #6aa9ff; border-color: rgba(106,169,255,.4); background: rgba(106,169,255,.08); }
.sim-grade-c { color: #f5c451; border-color: rgba(245,196,81,.4);  background: rgba(245,196,81,.08); }
.sim-grade-d { color: #ff8a5b; border-color: rgba(255,138,91,.4);  background: rgba(255,138,91,.08); }
.sim-grade-f { color: #ff5b6e; border-color: rgba(255,91,110,.4);  background: rgba(255,91,110,.10); }
.sim-grade-label { font-size: 14px; font-weight: 700; }
.sim-grade-score { font-size: 12px; opacity: .75; margin-top: 2px; }

/* AI Summary card */
.sim-report-summary {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border-left: 3px solid #b88dff;
  font-size: 13px; line-height: 1.55;
}
.sim-rep-summary-icon { font-size: 22px; flex: none; }
.sim-rep-summary-text b { color: #d8c4ff; }

/* Breakdown bars */
.sim-bd { display: flex; flex-direction: column; gap: 10px; }
.sim-bd-row { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 10px; font-size: 12.5px; }
.sim-bd-label { opacity: .85; }
.sim-bd-bar  { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.sim-bd-fill { height: 100%; background: linear-gradient(90deg, #6aa9ff, #2ddc8a); border-radius: 4px; transition: width .4s ease; }
.sim-bd-val  { text-align: right; opacity: .8; font-weight: 600; }

.sim-rep-icon, .hst-rep-icon { font-size: 18px; flex: none; line-height: 1.3; }
.sim-rep-desc, .hst-rep-desc { font-size: 12px; opacity: .8; margin-top: 2px; }
.sim-rep-empty, .hst-rep-empty { opacity: .6; font-style: italic; padding: 6px 4px; }
.sim-report-tips, .hst-report-tips {
  list-style: disc; padding-left: 20px; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
}
.sim-report-foot {
  margin-top: 14px; padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,.12);
  font-size: 11.5px; opacity: .65; text-align: center;
}
.sim-root[data-theme="light"] .sim-report-foot { border-top-color: #d6dde6; }

/* ---- HST dark (default) ---- */
.hst-root[data-theme="dark"] .hst-shell {
  background: #0f1623; color: #e6ecf5;
}
.hst-root[data-theme="dark"] .hst-head {
  background: #131c2c; border-bottom-color: #1f2a40;
}
.hst-root[data-theme="dark"] .hst-head-l { display: flex; align-items: center; gap: 12px; }
.hst-head-l { display: flex; align-items: center; gap: 12px; }
.hst-root[data-theme="dark"] .hst-title { color: #f4f7ff; }
.hst-root[data-theme="dark"] .hst-sub { color: #8493ad; }
.hst-root[data-theme="dark"] .hst-x { background: #1c2638; color: #e6ecf5; }
.hst-root[data-theme="dark"] .hst-body { color: #e6ecf5; }
.hst-root[data-theme="dark"] .hst-table-wrap {
  background: #131c2c; border-color: #1f2a40;
}
.hst-root[data-theme="dark"] .hst-table th {
  background: #1a2436; color: #b1bdd6; border-bottom-color: #243149;
}
.hst-root[data-theme="dark"] .hst-table td {
  color: #e6ecf5; border-bottom-color: #1f2a40;
}
.hst-root[data-theme="dark"] .hst-table tbody tr:hover { background: #182338; }
.hst-root[data-theme="dark"] .hst-tag { background: #1c2638; color: #b1bdd6; }
.hst-root[data-theme="dark"] .hst-empty { color: #8493ad; }

/* mod tag */
.hst-tag.mode-islem { background: #e3edff; color: #2c4f9e; }
.hst-tag.mode-kriz  { background: #ffe4e4; color: #c2374b; }
.hst-root[data-theme="dark"] .hst-tag.mode-islem { background: rgba(79,140,255,.18); color: #8db3ff; }
.hst-root[data-theme="dark"] .hst-tag.mode-kriz  { background: rgba(255,91,110,.18); color: #ff8a99; }

/* Detail dark */
.hst-root[data-theme="dark"] .hst-detail-shell {
  background: #0f1623; color: #e6ecf5;
}
.hst-root[data-theme="dark"] .hst-detail-shell header {
  background: #131c2c; border-bottom-color: #1f2a40;
}
.hst-root[data-theme="dark"] .hst-detail-title { color: #f4f7ff; }
.hst-root[data-theme="dark"] .hst-detail-shell header button {
  background: #1c2638; color: #e6ecf5;
}
.hst-root[data-theme="dark"] .hst-summary {
  background: #1a2436; color: #e6ecf5;
}
.hst-root[data-theme="dark"] .hst-msg.hst-customer {
  background: #1a2436; border-color: #243149; color: #e6ecf5;
}
.hst-root[data-theme="dark"] .hst-msg.hst-me {
  background: linear-gradient(135deg, #2a4f44, #225a48);
  border-color: #2c6b54; color: #e8fff5;
}
.hst-root[data-theme="dark"] .hst-msg.hst-system {
  background: #1c2638; color: #8493ad;
}
.hst-root[data-theme="dark"] .hst-msg b { color: #b1bdd6; }
.hst-root[data-theme="dark"] .hst-stars .empty { color: #2a3550; }
.hst-root[data-theme="dark"] .hst-stars small { color: #8493ad; }

/* Transcript head */
.hst-transcript { margin-top: 14px; }
.hst-tx-head {
  font-size: 13px; font-weight: 700;
  margin-bottom: 8px; opacity: .85;
}
