/* dashboard.css — Ofis özeti (E düzeni, B renkleri: sıcak beyaz zemin, beyaz kartlar, zümrüt vurgu).
   Yalnız #dashboardView ve içindeki .dash-* / .task-* / .performance-* sınıflarını tanımlar.
   Düğmeler (.btn, .text-btn), rozetler (.sbadge) ve değişkenler style.css'ten hazır gelir. */

/* ---------- Sayfa çerçevesi ---------- */
.dashboard-view {
  grid-column: 2; grid-row: 1 / -1;
  min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 24px;
  padding: 0 var(--gutter) 48px; background: var(--canvas);
  scrollbar-gutter: stable;
}
.dashboard-view > * { flex: 0 0 auto; min-width: 0; }

/* ---------- Üst çubuk ---------- */
.dash-topbar {
  position: sticky; top: 0; z-index: 6;
  min-height: var(--topbar-h, 56px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.dash-location { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dash-location > div { min-width: 0; }
.dash-location strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-15); font-weight: 600; color: var(--ink);
}
/* Telefonda sabit .mobile-global-menu bu düğmenin yerini alır; masaüstünde sol menü zaten görünür. */
.dash-menu-trigger { display: none; }

.dash-health-menu { position: relative; flex: 0 0 auto; }
.dash-session {
  min-height: 36px; max-width: 320px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 12px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--text-13); font-weight: 500; white-space: nowrap;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.dash-session:hover { color: var(--ink); background: var(--surface-2); }
.dash-session[aria-expanded="true"] { background: var(--surface-2); }
.dash-session span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-session i, .health-dot {
  flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--line-2);
}
.dash-session i { width: 8px; height: 8px; }
.health-dot { width: 10px; height: 10px; }
.dash-session.ok i, .health-dot.ok { background: var(--green); }
.dash-session.warn i, .health-dot.warn { background: var(--amber); }
.dash-session.bad i, .health-dot.bad { background: var(--red); }

.dash-health-popover {
  position: absolute; z-index: 20; top: calc(100% + 8px); right: 0;
  width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.dash-health-popover > span { font-size: var(--text-12); color: var(--muted); }
.dash-health-popover strong { font-size: var(--text-15); font-weight: 600; color: var(--ink); }
.dash-health-popover small { font-size: var(--text-13); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.dash-health-popover .text-btn { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .dash-health-popover:not([hidden]) { animation: dash-pop-in var(--dur) var(--ease-out); }
}
@keyframes dash-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Sayfa başlığı ---------- */
.dash-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  padding-top: 12px;
}
.dash-hero-copy { min-width: 0; }
.dash-context { margin-bottom: 6px; }
.dash-context span { font-size: var(--text-13); color: var(--muted); }
.dash-hero h1 { font-size: 36px; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.dash-hero p { margin-top: 8px; font-size: var(--text-15); line-height: 1.5; color: var(--ink-2); }
.dash-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.dash-actions .btn { min-height: 44px; }
.dash-actions .btn.icon-only { width: 44px; }

/* ---------- Ortak kart ---------- */
.dash-card {
  min-width: 0; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.dash-card h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: 0; color: var(--ink);
}
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-card-head > div, .dash-card-head > h2 { min-width: 0; }
.dash-card-head small { display: block; margin-top: 2px; font-size: var(--text-13); line-height: 1.45; color: var(--muted); }
.dash-card-head .text-btn { flex: 0 0 auto; }

/* ---------- Bento: öne çıkan ilan, sayaçlar, mahalleler ---------- */
.dash-bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch;
}
.dash-featured { grid-column: span 5; min-height: 380px; }
.dash-stats { grid-column: span 4; }
.dash-map { grid-column: span 3; }

/* Öne çıkan ilan: görsel üstte; açıklama bandı görselin altına biner. */
.dash-featured {
  position: relative; overflow: hidden; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
}
.dash-featured-media {
  grid-area: 1 / 1 / 2 / -1; align-self: stretch;
  position: relative; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-tint);
}
.dash-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dash-featured-placeholder {
  position: absolute; inset: 0 0 72px; display: grid; place-items: center; color: var(--green-text);
}
.dash-featured-placeholder svg {
  width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
}
.dash-featured-badges {
  grid-area: 1 / 1 / 2 / -1; align-self: start; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px;
}
.dash-featured-kicker {
  min-height: 24px; display: inline-flex; align-items: center; padding: 0 10px;
  color: #fff; background: rgba(19, 32, 26, .55); border-radius: 999px;
  font-size: var(--text-12); font-weight: 600; line-height: 1; white-space: nowrap;
}
.dash-featured:not(.has-media) .dash-featured-kicker { color: var(--green-text); background: var(--surface); }
.dash-featured-copy {
  grid-area: 1 / 1 / 2 / -1; align-self: end; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px;
  padding: 14px 20px 16px; color: #fff; background: rgba(15, 61, 48, .86);
}
.dash-featured-copy > div { min-width: 0; }
.dash-featured-copy h2 {
  font-family: var(--font); font-size: var(--text-18); font-weight: 600; line-height: 1.3; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.dash-featured-copy p {
  margin-top: 2px; font-size: var(--text-13); line-height: 1.45; color: rgba(255, 255, 255, .72);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-featured-copy strong {
  font-size: 30px; line-height: 1; color: #fff; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dash-featured-copy strong:empty { display: none; }
.dash-featured-ready {
  grid-area: 2 / 1 / 3 / 2; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 14px 4px 14px 20px;
}
.dash-featured-ready span { font-size: var(--text-12); color: var(--muted); white-space: nowrap; }
.dash-featured-ready i { display: block; height: 4px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.dash-featured-ready em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.dash-featured-ready b { font-size: var(--text-13); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-featured-open {
  grid-area: 2 / 2 / 3 / 3; align-self: center; justify-self: end;
  min-height: 44px; display: inline-flex; align-items: center; margin: 0 8px 0 0; padding: 0 12px;
  color: var(--green-text); border-radius: var(--radius-sm); font-size: var(--text-13); font-weight: 600; white-space: nowrap;
  transition: background var(--dur-fast) ease;
}
.dash-featured-open:hover { background: var(--green-tint); }
.dash-featured-open::after {
  content: ""; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg);
}

/* Sayaçlar: 2×2 beyaz kartlar */
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; min-width: 0; }
.dash-stat {
  position: relative; min-width: 0; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.dash-stat > i {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; font-style: normal;
  color: var(--green-text); background: var(--green-soft); border-radius: var(--radius-sm);
}
.dash-stat > i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-stat > div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dash-stat small { display: block; color: var(--muted); font-size: var(--text-13); line-height: 1.4; }
.dash-stat small:first-child { padding-right: 40px; overflow-wrap: anywhere; }
.dash-stat b {
  display: block; margin: 0 0 6px; padding-top: 10px;
  font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.dash-stat small:last-child { overflow-wrap: anywhere; }
.dash-stat.loading { display: block; }
.dash-stat.loading::before, .dash-stat.loading::after {
  content: ""; position: absolute; left: 20px; border-radius: 6px; background: var(--surface-2);
}
.dash-stat.loading::before { top: 20px; width: min(96px, calc(100% - 40px)); height: 14px; }
.dash-stat.loading::after { bottom: 24px; width: 56px; height: 36px; }
.dash-stats > .dash-empty {
  grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}

/* Mahalleler */
.dash-map { position: relative; display: flex; flex-direction: column; }
.dash-map-art {
  height: 140px; margin-bottom: 16px; overflow: hidden; background: var(--green-tint); border-radius: 12px;
}
.dash-map-art {
  position: relative; height: 230px; background-color: var(--green-tint);
  background-image: radial-gradient(rgba(29, 91, 75, .16) 1px, transparent 1.2px); background-size: 14px 14px; background-position: 7px 7px;
  border: 1px solid var(--line);
}
.dash-map-canvas { position: absolute; inset: 0; z-index: 0; }
.dash-map-art.is-live { background: #e8ebe8; background-image: none; isolation: isolate; z-index: 0; }
.dash-map-art.is-live .dash-map-pins, .dash-map-art.is-live .dash-map-labels, .dash-map-art.is-live .dash-map-empty { display: none; }
.dash-map-art .leaflet-container { width: 100%; height: 100%; font-family: inherit; background: #e8ebe8; border-radius: inherit; }
.dash-map-art .leaflet-control-zoom { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dash-map-art .leaflet-control-zoom a { width: 32px; height: 32px; line-height: 30px; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); font: 600 18px/30px var(--font); }
.dash-map-art .leaflet-control-zoom a:last-child { border-bottom: 0; }
.dash-map-art .leaflet-control-attribution { padding: 2px 6px; color: var(--muted); background: rgba(255, 255, 255, .82); font-size: 10px; border-radius: 6px 0 0 0; }
.dash-map-art .leaflet-control-attribution a { color: var(--green-text); }
.dash-map-art .leaflet-marker-icon.dash-map-pin { animation: none; margin: 0; transition: box-shadow var(--dur-fast) ease; }
.dash-map-art .leaflet-marker-icon.dash-map-pin:hover, .dash-map-art .leaflet-marker-icon.dash-map-pin:focus-visible { transform: none; box-shadow: 0 0 0 5px rgba(29, 91, 75, .22), 0 2px 8px rgba(19, 32, 26, .28); outline: none; }
.dash-map-art .leaflet-marker-icon.dash-map-pin.is-selected { transform: none; box-shadow: 0 0 0 6px rgba(29, 91, 75, .26), 0 2px 10px rgba(19, 32, 26, .3); z-index: 1000 !important; }
.dash-map-labels { position: absolute; inset: 0; pointer-events: none; }
.dash-map-labels span {
  position: absolute; transform: translate(-50%, 14px); max-width: 120px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: var(--ink-2); font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-map-pins { position: absolute; inset: 0; }
.dash-map-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; margin: 0; text-align: center; color: var(--muted); font-size: var(--text-13); line-height: 1.5; }
.dash-map-pin {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 61, 48, .22), 0 2px 6px rgba(19, 32, 26, .22);
  cursor: pointer; transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.dash-map-pin::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.dash-map-pin.s-reserved { background: var(--amber); }
.dash-map-pin.s-sold, .dash-map-pin.s-draft { background: var(--grey-text); }
.dash-map-pin.is-selected { transform: scale(1.4); z-index: 3; box-shadow: 0 0 0 4px rgba(29, 91, 75, .18), 0 2px 8px rgba(19, 32, 26, .28); }
@media (hover: hover) { .dash-map-pin:hover { transform: scale(1.35); z-index: 2; } }
.dash-map-pin:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; transform: scale(1.35); z-index: 2; }
.dash-map-detail {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; align-items: start; margin: 0; padding: 12px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.dash-map-detail > img, .dash-map-detail-ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--green-soft); }
.dash-map-detail-ph { display: grid; place-items: center; color: var(--green-text); }
.dash-map-detail-ph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-map-detail-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-map-detail-body b { font-size: var(--text-14); font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.dash-map-detail-body small { font-size: var(--text-13); color: var(--muted); overflow-wrap: anywhere; }
.dash-map-detail-body .sbadge { align-self: flex-start; margin-top: 2px; }
.dash-map-detail-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.dash-map-detail-actions .mini { min-height: 36px; text-decoration: none; }
.dash-map-detail-actions .dash-map-detail-close { width: 36px; padding: 0; margin-left: auto; }
.dash-map-detail-actions .dash-map-detail-close svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .dash-map-detail { animation: detailIn 160ms var(--ease-out); }
  @keyframes detailIn { from { opacity: 0; transform: translateY(4px); } }
}
@media (prefers-reduced-motion: no-preference) {
  .dash-map-pin { animation: pinIn 260ms var(--ease-out) both; animation-delay: var(--pin-delay, 0ms); }
  @keyframes pinIn { from { opacity: 0; transform: scale(.4); } }
}
.dash-featured.is-loading .dash-featured-media, .dash-listing-card.loading {
  background: linear-gradient(90deg, var(--surface-2) 25%, #faf9f5 37%, var(--surface-2) 63%); background-size: 400% 100%;
}
.dash-listing-card.loading { min-height: 280px; border: 1px solid var(--line); border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .dash-featured.is-loading .dash-featured-media, .dash-listing-card.loading { animation: shimmer 1.4s ease infinite; }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
}
.dash-featured.is-loading .dash-featured-copy, .dash-featured.is-loading .dash-featured-badges, .dash-featured.is-loading .dash-featured-ready { visibility: hidden; }
.dash-neighborhoods { list-style: none; display: grid; gap: 10px; }
.dash-neighborhoods li {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
}
.dash-neighborhoods li > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-14); font-weight: 500; color: var(--ink);
}
.dash-neighborhoods li > b { grid-column: 2; grid-row: 1; font-size: var(--text-14); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.dash-neighborhoods li > i { grid-column: 1 / -1; display: block; height: 6px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.dash-neighborhoods li > i em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.dash-neighborhoods li.dash-neighborhoods-empty { display: block; font-size: var(--text-13); line-height: 1.5; color: var(--muted); }

/* ---------- Kart ızgarası ---------- */
/* Sol sütun işler, hareketler ve danışmanlar; sağ sütunda güncel ilanlar. */
.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: auto auto 1fr;
  gap: 16px; align-items: start;
  grid-template-areas: "tasks recent" "activity recent" "performance recent";
}
.dash-grid .connection-card { grid-column: 1 / -1; }
.dash-grid .task-center-card { grid-area: tasks; }
.dash-grid .recent-card { grid-area: recent; }
.dash-grid .activity-preview-card { grid-area: activity; }
.dash-grid .performance-card { grid-area: performance; }
.connection-card { padding-bottom: 20px; }
.dash-connection-body { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.dash-connection-body b { font-size: var(--text-15); color: var(--ink); }
.dash-connection-body span { font-size: var(--text-13); color: var(--ink-2); overflow-wrap: anywhere; }
.dash-connection-body small { font-size: var(--text-13); color: var(--muted); }

/* Bugünkü işler: çıplak serif sayı + ince ayraç */
.task-row {
  min-width: 0; min-height: 64px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.task-row:last-child { border-bottom: 0; }
.task-row { cursor: pointer; border-radius: 10px; transition: background var(--dur-fast) ease; }
@media (hover: hover) { .task-row:hover { background: var(--surface-2); } }
.task-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.dash-listing-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.task-row > b {
  height: 40px; display: grid; place-items: center; border-right: 1px solid var(--line);
  font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1;
  color: var(--green-text); font-variant-numeric: tabular-nums;
}
.task-row.task-sync > b { color: var(--red); }
.task-row > div { min-width: 0; }
.task-row strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-15); font-weight: 600; line-height: 1.4; color: var(--ink);
}
.task-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-13); line-height: 1.4; color: var(--muted); }
.task-row > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: var(--radius-sm); }
.task-row > span svg { width: 18px; height: 18px; }

/* Güncel ilanlar */
.dash-listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dash-listing-grid > .dash-empty { grid-column: 1 / -1; }
.dash-listing-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease;
}
.dash-listing-card:hover { transform: translateY(-1px); border-color: var(--line-2); }
.dash-listing-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-tint); }
.dash-listing-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dash-listing-media .sbadge { position: absolute; top: 8px; left: 8px; }
.dash-listing-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-text); }
.dash-listing-ph svg { width: 28px; height: 28px; opacity: .6; }
.dash-listing-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 10px; }
.dash-listing-body strong { font-size: 24px; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dash-listing-body b {
  font-size: var(--text-14); font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.dash-listing-body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-13); color: var(--muted); }
.dash-listing-ready {
  margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 0 14px 12px;
}
.dash-listing-ready i { display: block; height: 3px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.dash-listing-ready em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.dash-listing-ready span { font-size: var(--text-12); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Son hareketler */
.dash-list-row {
  min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.dash-list-row:last-child { border-bottom: 0; }
.dash-list-row > div { min-width: 0; }
.dash-list-row > i, .performance-row > span {
  width: 36px; height: 36px; display: grid; place-items: center; font-style: normal;
  color: var(--green-text); background: var(--green-soft);
}
.dash-list-row > i { border-radius: var(--radius-sm); }
.dash-list-row > i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-list-row b, .performance-row b {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-14); font-weight: 600; line-height: 1.4; color: var(--ink);
}
.dash-list-row small, .performance-row small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-13); line-height: 1.4; color: var(--muted);
}

/* Danışman görünümü */
.performance-row {
  min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.performance-row:last-child { border-bottom: 0; }
.performance-row > div { min-width: 0; }
.performance-row > span { border-radius: 50%; font-size: var(--text-12); font-weight: 700; }
.performance-row > div > i {
  display: block; height: 4px; margin-top: 6px; overflow: hidden;
  background: var(--surface-2); border-radius: 999px;
}
.performance-row > div > i em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.performance-row > strong {
  min-width: 44px; text-align: right;
  font-family: var(--font-display); font-size: 20px; font-weight: 400; line-height: 1;
  color: var(--green-text); font-variant-numeric: tabular-nums;
}

/* Boş durum */
.dash-empty {
  min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 16px 12px 20px; text-align: center; color: var(--muted); font-size: var(--text-13);
}
.dash-empty b { font-size: var(--text-14); font-weight: 600; color: var(--ink-2); }
.dash-empty small { max-width: 320px; font-size: var(--text-13); color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Giriş hareketi ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dash-bento > *, .dash-grid > * { animation: dash-rise 160ms var(--ease-out) both; }
  .dash-bento > :nth-child(2), .dash-grid > :nth-child(2) { animation-delay: 40ms; }
  .dash-bento > :nth-child(3), .dash-grid > :nth-child(3) { animation-delay: 80ms; }
  .dash-grid > :nth-child(4) { animation-delay: 120ms; }
  .dash-grid > :nth-child(5) { animation-delay: 160ms; }
}
@keyframes dash-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Dar masaüstü / tablet ---------- */
@media (max-width: 1180px) {
  .dash-bento { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .dash-featured { grid-column: 1 / -1; min-height: 0; }
  .dash-featured-media { aspect-ratio: 21 / 9; }
  .dash-map-art { height: 210px; }
  .dash-stats { grid-column: span 4; }
  .dash-map { grid-column: span 4; }
}
@media (max-width: 1050px) {
  .dash-hero { flex-wrap: wrap; }
  .dash-actions { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .dash-bento { grid-template-columns: minmax(0, 1fr); }
  .dash-featured, .dash-stats, .dash-map { grid-column: 1 / -1; }
  .dash-stats { order: -1; }
  .dash-featured-media { aspect-ratio: 16 / 9; }
  .dash-grid {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "tasks" "recent" "activity" "performance";
  }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .dashboard-view { flex: 1; min-height: 0; gap: 20px; padding-bottom: 32px; scrollbar-gutter: auto; }
  .dash-topbar { padding-left: 68px; }
  .dash-session { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .dash-session i { width: 10px; height: 10px; }
  .dash-session span { display: none; }
  .dash-health-popover { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); right: 12px; width: min(320px, calc(100vw - 24px)); }

  .dash-hero { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 4px; }
  .dash-hero h1 { font-size: 28px; }
  .dash-hero p { font-size: var(--text-14); }
  .dash-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .dash-actions .btn { min-width: 0; }
  .dash-actions .btn.primary { grid-column: 1 / -1; grid-row: 1; }
  #btnDashSahibinden { grid-column: 1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; }
  #btnDashRefresh { grid-column: 2; grid-row: 2; }

  .dash-bento, .dash-grid { gap: 12px; }
  .dash-card { padding: 16px; }
  .dash-stats { gap: 12px; }
  .dash-stat { min-height: 104px; padding: 14px 16px; }
  .dash-stat > i { top: 12px; right: 12px; width: 28px; height: 28px; }
  .dash-stat > i svg { width: 15px; height: 15px; }
  .dash-stat small:first-child { padding-right: 32px; }
  .dash-stat b { margin-bottom: 0; padding-top: 12px; font-size: 30px; }
  .dash-stat small:last-child { display: none; }
  .dash-stat.loading { min-height: 104px; }
  .dash-stat.loading::before { left: 16px; top: 16px; }
  .dash-stat.loading::after { left: 16px; bottom: 16px; height: 28px; }

  .dash-featured { padding: 0; }
  .dash-featured-media { aspect-ratio: 4 / 3; }
  .dash-featured-badges { padding: 12px; }
  .dash-featured-copy { padding: 12px 16px 14px; }
  .dash-featured-copy h2 { font-size: var(--text-16); }
  .dash-featured-ready { padding-left: 16px; }
  .dash-map-art { height: 220px; }
  .dash-card-head .text-btn { min-height: 44px; }
}
@media (max-width: 600px) {
  .dash-listing-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-featured-copy { grid-template-columns: minmax(0, 1fr); }
  .dash-featured-copy strong { text-align: left; font-size: 26px; }
}
