/* ==========================================================================
   Ayklo — hero interaktif demo + ortak demo bileşenleri (dm-*, pl-*).
   Renk/tipografi yalnız css/style.css'teki tokenlardan. Modüllere özel stiller
   bu dosyanın sonundaki "Modüller" bölümüne, kendi önekleriyle (.dmx-<modül>__…) eklenir.
   Minimum yazı: gövde 14 · tablo 14 · küçük etiket 12 · modül başlığı 20 (px).
   Demo CSS transform/scale ile küçültülmez.
   ========================================================================== */

/* ---------- Hero ek metinleri ---------- */
.pill--static { padding: 5px 11px; cursor: default; }
.pill--static:hover { background: var(--surface-page); }
.hero__assure { margin-top: 14px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.hero__platforms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 20px 0 0; padding: 0; list-style: none;
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-tertiary);
}
.hero__platforms li { display: inline-flex; align-items: center; gap: 6px; }
.hero__platforms .pl-logo { width: 18px; height: 18px; }

/* ---------- Hero demo sahnesi: gerçek boyut, ölçeklenmez ---------- */
.hero__stage--demo {
  width: auto; max-width: calc(1280px + 64px);
  margin: 56px auto 0; padding: 0 var(--frame-pad);
}
@media (min-width: 768px) { .hero__stage--demo { padding: 0 32px; } }
.hero__demo-intro {
  margin: 0 0 12px; text-align: center;
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-tertiary);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.hero__demo-intro:focus { outline: none; }
.hero__demo-mobile { display: none; margin: 0 0 10px; text-align: center; font-size: 12px; line-height: 16px; color: var(--text-muted); }
@media (max-width: 767.98px) {
  .hero__demo-mobile { display: block; }
  .hero__stage--demo { margin-top: 40px; }
}

/* ==========================================================================
   Demo kabuğu
   ========================================================================== */
.dm { position: relative; font-size: 14px; line-height: 20px; color: var(--mock-text); text-align: left; }
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm [hidden] { display: none !important; }
.dm button { font: inherit; color: inherit; }
.dm__loading-data, .dm__error {
  display: grid; place-items: center; min-height: 320px; padding: 24px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  background: var(--surface-page); color: var(--text-muted); text-align: center;
}

.dm__frame {
  display: flex; flex-direction: column;
  height: 780px;
  border: 1px solid var(--window-edge); border-radius: var(--radius-xl);
  background: var(--glass-window); padding: 0 4px 4px;
  box-shadow: var(--shadow-5), var(--shadow-product);
}
.dm__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; }
.dm__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--white-800); }
.dm__bar-note {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; line-height: 16px; color: var(--text-muted);
}
.dm__app {
  flex: 1; min-height: 0; display: flex;
  border: 1px solid var(--window-edge); border-radius: var(--radius-lg);
  background: var(--mock-surface); overflow: hidden;
}

/* ---------- Sol menü ---------- */
.dm__side {
  position: relative; flex: none; width: 264px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 12px 12px; border-right: 1px solid var(--mock-line); background: var(--mock-sunken);
  overflow-y: auto;
}
.dm__logo { padding: 2px 8px 4px; color: var(--text-primary); }
.dm__nav { display: flex; flex-direction: column; gap: 2px; }
.dm-nav__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 36px; padding: 7px 10px; border: 0; border-radius: var(--radius-md);
  background: transparent; text-align: left; cursor: pointer;
  font-size: 14px; line-height: 18px; font-weight: 500; color: var(--text-tertiary);
  transition: background-color var(--dur-fast) var(--ease-in-out), color var(--dur-fast) var(--ease-in-out);
}
.dm-nav__item:hover { background: var(--white-400); color: var(--text-primary); }
.dm-nav__item[aria-selected="true"] { background: var(--mock-surface); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-2); }
.dm-nav__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.dm-nav__icon { flex: none; color: currentColor; }
.dm-nav__short { display: none; }

/* Grup (ağaç): başlık + girintili alt maddeler, ince dikey/yatay dal çizgileri */
.dm-nav__group { display: flex; flex-direction: column; gap: 2px; }
.dm-nav__group-btn .dm-nav__label { flex: 1; }
.dm-nav__caret { flex: none; color: var(--text-muted); transition: transform var(--dur-fast) var(--ease-in-out); }
.dm-nav__group-btn[aria-expanded="false"] .dm-nav__caret { transform: rotate(-90deg); }
.dm-nav__group-btn.is-active-group { color: var(--text-primary); background: var(--white-400); }
.dm-nav__sub { position: relative; display: flex; flex-direction: column; gap: 2px; margin-left: 17px; padding-left: 13px; }
.dm-nav__sub[hidden] { display: none; }
.dm-nav__child { position: relative; min-height: 32px; padding: 6px 10px; font-size: 13px; }
.dm-nav__child::before, .dm-nav__child::after { content: ""; position: absolute; pointer-events: none; background: var(--border-default); }
/* dikey dal: her madde kendi yüksekliği + aradaki 2px boşluk; son maddede ortada biter */
.dm-nav__child::before { left: -13px; top: -2px; bottom: 0; width: 1px; }
.dm-nav__child:last-child::before { bottom: 50%; }
/* yatay bağlantı */
.dm-nav__child::after { left: -13px; top: 50%; width: 9px; height: 1px; }
html.is-still .dm-nav__caret { transition: none; }
.dm__subnav { display: none; }

.dm__tip {
  position: absolute; left: calc(100% - 4px); top: 70px; z-index: 5;
  width: 210px; padding: 10px 12px; border-radius: var(--radius-lg);
  background: var(--black-200); color: var(--white-100);
  font-size: 13px; line-height: 18px; font-weight: 500; box-shadow: var(--shadow-5);
  pointer-events: none;
}
.dm__tip::before {
  content: ""; position: absolute; left: -5px; top: 16px; width: 10px; height: 10px;
  background: inherit; transform: rotate(45deg);
}
.dm__side { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-still) .dm__tip { animation: dm-tip-bob 2.4s var(--ease-in-out) infinite; }
}
@keyframes dm-tip-bob { 50% { transform: translateX(4px); } }

.dm__side-label { margin: 0 0 4px; padding: 0 10px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); }
.dm__recent-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.dm__recent-item {
  display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--radius-md);
  background: transparent; text-align: left; cursor: pointer;
  font-size: 13px; line-height: 18px; color: var(--text-tertiary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm__recent-item:hover, .dm__recent-item[aria-current="true"] { background: var(--white-400); color: var(--text-primary); }
.dm__recent-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.dm__brand {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mock-surface);
}
.dm__brand .mv-logo { flex: none; border-radius: 8px; }
.dm__brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm__brand-name { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-primary); }
.dm__brand-sub { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dm__brand-logos { margin-top: 2px; }

/* ---------- Ana alan ---------- */
.dm__main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm__main:focus { outline: none; }
.dm__top {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 12px 24px; border-bottom: 1px solid var(--mock-line);
}
.dm__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.dm__top-right { display: flex; align-items: center; gap: 14px; }
.dm__period-select {
  height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  background: var(--mock-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23505967' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  font: inherit; font-size: 14px; color: var(--text-primary); appearance: none; cursor: pointer;
}
.dm__period-select:disabled { cursor: not-allowed; color: var(--text-muted); background-color: var(--mock-sunken); }
.dm__period-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.dm__scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; scroll-behavior: smooth; }
html.is-still .dm__scroll { scroll-behavior: auto; }
.dm__content { min-height: 100%; }
.dm__cta {
  margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--mock-line);
  font-size: 14px; line-height: 20px; color: var(--text-tertiary); text-align: center;
}
.dm__cta-link { font-weight: 600; color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }

/* Yükleme durumu */
.dm__loader { display: grid; place-content: center; min-height: 100%; padding: 40px 0; }
.dm__loader-title { margin: 0 0 14px; font-size: 14px; font-weight: 600; text-align: center; color: var(--text-secondary); }
.dm__loader-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.dm__loader-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--mock-surface);
}
.dm__loader-item.is-done { border-color: var(--chip-green-border); background: var(--chip-green-bg); }
.dm-check { color: var(--chip-green-text); font-weight: 700; }

/* Yükleme ekranı: kaynak kartları → veri hatları → Ayklo merkezi → durum + ilerleme */
.dm-load {
  --w: 104px; --gap: 12px;
  display: flex; flex-direction: column; align-items: center; padding: 8px 16px;
  animation: dm-load-in .35s var(--ease-out-cubic, ease-out) both;
}
@keyframes dm-load-in { from { opacity: 0; transform: translateY(6px); } }
.dm-load__srcs { display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.dm-load__src {
  display: flex; flex-direction: column; align-items: center; width: var(--w);
  animation: dm-load-in .4s var(--ease-out-cubic, ease-out) both; animation-delay: calc(var(--i) * 60ms);
}
.dm-load__tile {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--border-subtle); background: var(--mock-surface); box-shadow: var(--shadow-2);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.dm-load__tile .pl-logo { opacity: .5; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.dm-load__tick {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--chip-green-text); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--mock-surface); transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.dm-load__name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  height: 32px; margin-top: 8px; font-size: 12px; line-height: 16px; text-align: center; color: var(--text-muted); transition: color .3s;
}
.dm-load__wire { position: relative; width: 2px; height: 20px; overflow: hidden; background: var(--border-subtle); transition: background-color .3s; }
.dm-load__wire i { position: absolute; left: -2px; top: -6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.dm-load__src.is-active .dm-load__tile { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-fill), var(--shadow-2); transform: translateY(-2px); }
.dm-load__src.is-active .pl-logo, .dm-load__src.is-done .pl-logo { opacity: 1; filter: none; }
.dm-load__src.is-active .dm-load__name, .dm-load__src.is-done .dm-load__name { color: var(--text-primary); }
.dm-load__src.is-active .dm-load__wire i { opacity: 1; animation: dm-load-flow .5s linear infinite; }
.dm-load__src.is-done .dm-load__tile { border-color: var(--chip-green-border); }
.dm-load__src.is-done .dm-load__tick { transform: scale(1); }
.dm-load__src.is-done .dm-load__wire { background: var(--chip-green-border); }
@keyframes dm-load-flow { to { top: 22px; } }
.dm-load__bus { width: calc((var(--n) - 1) * (var(--w) + var(--gap))); height: 2px; background: var(--border-subtle); transition: background-color .3s; }
.dm-load.is-ready .dm-load__bus { background: var(--chip-green-border); }
.dm-load__hub {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 20px; border-radius: 50%;
  background: var(--black-200); color: var(--white-100); box-shadow: var(--shadow-2);
}
.dm-load__hub::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 20px; margin-left: -1px; background: var(--border-subtle); }
.dm-load.is-ready .dm-load__hub::before { background: var(--chip-green-border); }
.dm-load__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 28%, transparent 28% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: dm-spin 1s linear infinite;
}
.dm-load.is-ready .dm-load__ring { background: var(--chip-green-text); animation: none; }
.dm-load__title { margin: 16px 0 4px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-primary); text-align: center; }
.dm-load__status { min-height: 20px; margin: 0 0 12px; font-size: 13px; line-height: 20px; color: var(--text-muted); text-align: center; }
.dm-load__status b { font-weight: 600; color: var(--text-secondary); }
.dm-load__bar { position: relative; width: 240px; max-width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: var(--border-subtle); }
.dm-load__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 2px; background: var(--accent); transition: width .3s var(--ease-out-cubic, ease-out), background-color .3s; }
.dm-load.is-ready .dm-load__bar i { background: var(--chip-green-text); }
html.is-still .dm-load, html.is-still .dm-load__src, html.is-still .dm-load__ring, html.is-still .dm-load__wire i { animation: none; }
@media (max-width: 640px) {
  .dm-load { --w: 52px; --gap: 8px; }
  .dm-load__name { display: none; }
  .dm-load__tile { width: 44px; height: 44px; border-radius: 12px; }
  .dm-load__wire { margin-top: 8px; }
}

/* "Demoda kapalı" balonu */
.dm__balloon {
  position: absolute; z-index: 30; max-width: 320px; transform: translateX(-50%);
  padding: 10px 12px; border-radius: var(--radius-lg); background: var(--black-200); color: var(--white-100);
  font-size: 13px; line-height: 18px; box-shadow: var(--shadow-5);
}
.dm__balloon a { color: var(--blue-300); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Ortak bileşenler
   ========================================================================== */
/* Platform logosu + adı */
.pl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.pl-chip--icon { gap: 0; }
.pl-logo { flex: none; display: inline-block; vertical-align: middle; }
.pl-logo--cross { color: var(--text-tertiary); }
.pl-row { display: inline-flex; align-items: center; gap: 6px; }

/* Dönen halka */
.dm-spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--white-600); border-top-color: var(--accent);
  animation: dm-spin .8s linear infinite;
}
html.is-still .dm-spin { animation: none; border-top-color: var(--white-600); }
@keyframes dm-spin { to { transform: rotate(360deg); } }

/* Rozetler */
.dm-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 2px 8px; border: 1px solid; border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
}
.dm-badge--green { background: var(--chip-green-bg); border-color: var(--chip-green-border); color: var(--chip-green-text); }
.dm-badge--blue { background: var(--chip-blue-bg); border-color: var(--chip-blue-border); color: var(--chip-blue-text); }
.dm-badge--yellow { background: var(--chip-yellow-bg); border-color: var(--chip-yellow-border); color: var(--chip-yellow-text); }
.dm-badge--red { background: var(--chip-red-bg); border-color: var(--chip-red-border); color: var(--chip-red-text); }
.dm-badge--gray { background: var(--chip-gray-bg); border-color: var(--chip-gray-border); color: var(--chip-gray-text); }

/* Butonlar */
.dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: 1px solid var(--btn-primary-border); border-radius: var(--radius-md);
  background: var(--btn-primary-bg); color: var(--white-100) !important; cursor: pointer;
  font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.dm-btn:hover { background: var(--btn-primary-bg-hover); }
.dm-btn--outline { border-color: var(--border-default); background: var(--mock-surface); color: var(--text-primary) !important; }
.dm-btn--outline:hover { background: var(--mock-sunken); border-color: var(--black-700); }
.dm-btn:disabled { opacity: .5; cursor: not-allowed; }
.dm-btn:focus-visible, .dm-link:focus-visible, .dm-chip:focus-visible, .dm-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dm-link { padding: 0; border: 0; background: none; color: var(--link-color); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Filtre çipleri */
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--border-subtle); border-radius: 999px; background: var(--mock-surface);
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-tertiary); cursor: pointer; white-space: nowrap;
}
.dm-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.dm-chip[aria-pressed="true"], .dm-chip[aria-selected="true"] { border-color: var(--black-300); background: var(--black-200); color: var(--white-100); }
.dm-chip[aria-pressed="true"] .pl-logo--cross, .dm-chip[aria-selected="true"] .pl-logo--cross { color: var(--white-100); }
.dm-chip__count { font-size: 12px; opacity: .75; }

/* Kart ve bölüm */
.dm-card { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mock-surface); padding: 16px; }
.dm-section + .dm-section { margin-top: 28px; }
.dm-h { margin: 0 0 12px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-primary); }
.dm-sub { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.dm-note { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dm-empty { color: var(--text-muted); }

/* KPI kutusu */
.dm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.dm-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mock-surface); }
.dm-kpi__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-muted); }
.dm-kpi__value { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.dm-kpi__delta { font-size: 12px; line-height: 16px; font-weight: 600; }
.dm-kpi__delta.is-good { color: var(--chip-green-text); }
.dm-kpi__delta.is-bad { color: var(--chip-red-text); }
.dm-kpi__delta.is-neutral { color: var(--text-tertiary); }

/* Uyarı şeridi */
.dm-alert {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--chip-yellow-border); border-radius: var(--radius-lg); background: var(--chip-yellow-bg);
  color: var(--chip-yellow-text); font-size: 14px; line-height: 20px; font-weight: 500;
}
.dm-alert--red { border-color: var(--chip-red-border); background: var(--chip-red-bg); color: var(--chip-red-text); }
.dm-alert .dm-link { color: inherit; }

/* Tablo */
.dm-table-wrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mock-surface); }
.dm-table-wrap:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.dm-table caption { padding: 10px 14px 0; text-align: left; font-size: 12px; color: var(--text-muted); }
.dm-table th, .dm-table td { padding: 10px 14px; border-bottom: 1px solid var(--mock-line); text-align: left; white-space: nowrap; }
.dm-table thead th { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-muted); background: var(--mock-sunken); }
.dm-table tbody th { font-weight: 500; color: var(--text-primary); }
.dm-table td { color: var(--text-secondary); }
.dm-table .is-num { text-align: right; }
.dm-table tbody tr:last-child > * { border-bottom: 0; }
.dm-table tr.is-highlight > * { background: var(--blue-100); }
.dm-table tr.is-clickable { cursor: pointer; }
.dm-table tr.is-clickable:hover > * { background: var(--mock-sunken); }
.dm-table tr.is-clickable:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.dm-max { padding: 1px 6px; border-radius: 4px; background: var(--chip-green-bg); color: var(--chip-green-text); font-weight: 700; }

/* İpucu (hover/odak) */
.dm-tip {
  position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 280px;
  padding: 8px 10px; border-radius: var(--radius-md); background: var(--black-200); color: var(--white-100);
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-in-out);
}
:hover > .dm-tip, :focus > .dm-tip, :focus-within > .dm-tip, .is-tip-on > .dm-tip { opacity: 1; visibility: visible; }

/* Sağdan açılan detay paneli */
.dm-drawer {
  position: absolute; z-index: 25; top: 0; right: 0; bottom: 0; width: min(440px, 92%);
  display: flex; flex-direction: column; border-left: 1px solid var(--border-subtle);
  background: var(--mock-surface); box-shadow: -12px 0 32px -12px rgb(0 0 0 / .12);
  transform: translateX(0); transition: transform var(--dur-slow) var(--ease-out-cubic);
}
.dm-drawer[data-state="closed"] { transform: translateX(105%); visibility: hidden; }
html.is-still .dm-drawer { transition: none; }
.dm-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--mock-line); }
.dm-drawer__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-primary); }
.dm-drawer__close { flex: none; width: 32px; height: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--mock-surface); cursor: pointer; font-size: 18px; line-height: 1; }
.dm-drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; }

/* Sekmeler (yatay) */
.dm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mock-line); margin-bottom: 18px; overflow-x: auto; }
.dm-tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-tertiary); white-space: nowrap; }
.dm-tab[aria-selected="true"] { border-bottom-color: var(--text-primary); color: var(--text-primary); }
.dm-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* İlerleme listesi (sırayla ✓) */
.dm-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dm-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.dm-step.is-active { color: var(--text-primary); }
.dm-step.is-done { color: var(--text-secondary); }
.dm-step__mark { flex: none; display: grid; place-items: center; width: 20px; height: 20px; }

/* Ayklo cevap kartı (Konuşma Başlat + Nasıl çalışır > Anla) */
.dm-answer { display: flex; flex-direction: column; gap: 10px; }
.dm-answer__label { margin: 6px 0 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.dm-answer__verdict { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--text-primary); }
.dm-answer__reasons { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.dm-answer__reasons strong { color: var(--text-primary); }
.dm-answer__table-title { margin: 6px 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-secondary); }
.dm-answer__actions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dm-answer__actions li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--mock-surface); }
.dm-answer__num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--black-200); color: var(--white-100); font-size: 12px; font-weight: 700; }
.dm-answer__act { flex: 1; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.dm-answer__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--mock-line); font-size: 12px; line-height: 16px; color: var(--text-muted); }
.dm-answer__sources { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dm-answer__sources .pl-chip { font-size: 12px; }
.dm-confidence { position: relative; display: inline-flex; padding: 3px 10px; border: 1px solid var(--chip-green-border); border-radius: 999px; background: var(--chip-green-bg); color: var(--chip-green-text); font-weight: 600; cursor: help; }
.dm-confidence:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ==========================================================================
   Mobil (<768): sol menü üstte yatay kaydırılan sekmeler
   ========================================================================== */
@media (max-width: 767.98px) {
  .dm__frame { height: 720px; padding: 0 2px 2px; }
  .dm__app { flex-direction: column; }
  .dm__side { width: auto; flex-direction: row; align-items: center; gap: 0; padding: 0; border-right: 0; border-bottom: 1px solid var(--mock-line); overflow: visible; }
  .dm__logo, .dm__recent, .dm__brand { display: none; }
  .dm__nav {
    flex-direction: row; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; width: 100%;
  }
  .dm__nav::-webkit-scrollbar { display: none; }
  .dm-nav__item { width: auto; flex: none; min-height: 34px; padding: 6px 10px; font-size: 13px; }
  .dm-nav__label { display: none; }
  .dm-nav__short { display: inline; }
  /* Grup mobilde tek sekme; alt maddeler ikinci satırda (.dm__subnav) */
  .dm-nav__group { flex: none; flex-direction: row; }
  .dm-nav__sub, .dm-nav__caret { display: none; }
  .dm-nav__group-btn.is-active-group { background: var(--mock-surface); box-shadow: 0 0 0 1px var(--border-subtle), var(--shadow-2); }
  .dm__side { flex-wrap: wrap; }
  .dm__subnav:not([hidden]) {
    display: flex; gap: 4px; width: 100%; padding: 0 8px 8px; overflow-x: auto; scrollbar-width: none;
  }
  .dm__subnav::-webkit-scrollbar { display: none; }
  .dm-subnav__item {
    flex: none; min-height: 30px; padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: 999px;
    background: transparent; cursor: pointer; white-space: nowrap;
    font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-tertiary);
  }
  .dm-subnav__item[aria-selected="true"] { border-color: var(--black-300); background: var(--black-200); color: var(--white-100); }
  .dm-subnav__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
  .dm__tip { left: 12px; top: calc(100% + 8px); width: auto; right: 12px; }
  .dm__tip::before { left: 24px; top: -5px; }
  .dm__top { min-height: 52px; padding: 10px 14px; flex-wrap: wrap; }
  .dm__top-logos { display: none; }
  .dm__scroll { padding: 16px 14px; }
  .dm-drawer { width: 100%; }
}

/* ==========================================================================
   Modüller — her modül kendi önekiyle (.dmx-<id>__…) aşağıya eklenir.
   ========================================================================== */
.dm-kpi__value { white-space: nowrap; }
@media (max-width: 767.98px) { .dm-kpis { grid-template-columns: 1fr 1fr; } .dm-kpi { padding: 12px; } .dm-kpi__value { font-size: 18px; line-height: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .dm-load, .dm-load__src, .dm-load__ring, .dm-load__wire i { animation: none; }
}
