/* watchlist sayfa stili (Flutter kabuğu: krem zemin, beyaz kart, mavi vurgu). Yalnız sunum; mantık yok. Mantıksal özellikler (RTL). */
[hidden] { display: none !important; }
.wl { --wl-up: #1B5E20; --wl-down: #B71C1C; --wl-ring: #0A63AC; max-width: 1100px; margin-inline: auto; color: var(--fx-text, #131413); }
:root[data-theme="dark"] .wl { --wl-up: #66BB6A; --wl-down: #FF8A80; --wl-ring: #64B5F6; }
.wl-header-actions { display: flex; align-items: center; gap: 8px; }
.wl-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wl-card { background: var(--fx-card, #fff); border: 1px solid var(--fx-border, #E3DCCD); border-radius: 12px; padding: 12px; margin-block-end: 12px; }
.wl-h2 { font-size: 18px; margin: 0 0 4px; }
.wl-desc, .wl-meta, .wl-note { margin: 2px 0; font-size: 13px; color: var(--fx-text-2, #5B5B5A); }
.wl-note { margin-block: 6px; }
.wl-gate { text-align: center; padding: 28px 16px; }

.wl-btn { min-block-size: 44px; min-inline-size: 44px; padding: 8px 14px; border: 1px solid var(--fx-border, #E3DCCD); background: var(--fx-card, #fff); color: var(--fx-text, #131413); border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.wl-btn:hover:not(:disabled) { border-color: var(--fx-icon, #0A63AC); }
.wl-btn:disabled { opacity: .55; cursor: not-allowed; }
.wl-btn-primary { background: #0A63AC; border-color: #0A63AC; color: #fff; }
.wl-btn-danger { color: var(--fx-danger, #C62828); border-color: currentColor; }
.wl-btn-primary.wl-btn:hover:not(:disabled) { background: #084F8A; }
.wl-btn:focus-visible, .wl-input:focus-visible, .wl-tab:focus-visible, .wl-grip:focus-visible, .wl-row input:focus-visible, .wl-radio input:focus-visible { outline: 3px solid var(--wl-ring); outline-offset: 2px; }
.wl-input { inline-size: 100%; box-sizing: border-box; min-block-size: 44px; padding: 8px 10px; border: 1px solid var(--fx-border, #E3DCCD); border-radius: 10px; background: var(--fx-card, #fff); color: var(--fx-text, #131413); font: inherit; font-size: 15px; }
.wl-label { display: block; margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
.wl-fs { border: 0; padding: 0; margin: 12px 0 0; }
.wl-fs legend { font-size: 14px; font-weight: 600; padding: 0; margin-block-end: 6px; }
.wl-form-err, .wl-error { color: var(--fx-danger, #C62828); font-size: 14px; margin: 8px 0; }

/* durum çipi */
.wl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--fx-card, #fff); border: 1px solid var(--fx-border, #E3DCCD); }
.wl-dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #8a8a8a; }
.wl-chip[data-state="live"] .wl-dot { background: var(--wl-up); }
.wl-chip[data-state="delayed"] .wl-dot { background: #B26A00; border-radius: 2px; }
.wl-chip[data-state="down"] .wl-dot { background: var(--wl-down); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* sekmeler */
.wl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: space-between; margin-block-end: 10px; }
.wl-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; }
.wl-tab { min-block-size: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--fx-border, #E3DCCD); background: var(--fx-card, #fff); color: var(--fx-text, #131413); font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-inline-size: 100%; }
.wl-tab-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-inline-size: 180px; }
.wl-tab[aria-selected="true"] { background: #0A63AC; border-color: #0A63AC; color: #fff; font-weight: 600; }
.wl-top-actions, .wl-head-actions, .wl-bar, .wl-bulk, .wl-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.wl-head-main { flex: 1 1 240px; min-inline-size: 0; overflow-wrap: anywhere; }
.wl-bar { justify-content: space-between; margin-block: 8px; }
.wl-sort { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.wl-sort .wl-input { inline-size: auto; }
.wl-bulk { background: var(--fx-bg, #F5F0E8); border-radius: 10px; padding: 8px; margin-block: 6px; }

/* renk/ikon seçimi */
.wl-swatch, .wl-flag { display: inline-block; inline-size: 14px; block-size: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); flex: none; }
.wl-flag { border-radius: 3px; }
[data-c="red"] { background: #E53935; } [data-c="orange"] { background: #FB8C00; } [data-c="yellow"] { background: #FDD835; }
[data-c="green"] { background: #43A047; } [data-c="teal"] { background: #00ACC1; } [data-c="blue"] { background: #1E88E5; }
[data-c="indigo"] { background: #3949AB; } [data-c="purple"] { background: #8E24AA; } [data-c="pink"] { background: #D81B60; } [data-c="gray"] { background: #757575; }
.wl-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-radio { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 0 10px; border: 1px solid var(--fx-border, #E3DCCD); border-radius: 10px; cursor: pointer; font-size: 14px; }
.wl-radio input { inline-size: 20px; block-size: 20px; margin: 0; }
.wl-fs > .wl-radio { display: flex; margin-block-end: 6px; }

/* tablo */
.wl-colhead, .wl-row { display: grid; grid-template-columns: 44px 44px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) 330px; align-items: center; gap: 4px 8px; }
.wl-colhead { font-size: 12px; color: var(--fx-text-2, #5B5B5A); padding: 4px 6px; border-block-end: 1px solid var(--fx-border, #E3DCCD); }
.wl-rows { list-style: none; margin: 0; padding: 0; }
.wl-row { padding: 6px; border-block-end: 1px solid var(--fx-border, #E3DCCD); background: var(--fx-card, #fff); touch-action: pan-y; }
.wl-row.is-drag { position: relative; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.25); border-radius: 10px; opacity: .97; }
.wl-c-sel { display: flex; align-items: center; justify-content: center; min-block-size: 44px; }
.wl-c-sel input { inline-size: 22px; block-size: 22px; }
.wl-c-grip { display: flex; }
.wl-grip { inline-size: 44px; block-size: 44px; border: 0; background: transparent; font-size: 22px; color: var(--fx-text-2, #5B5B5A); cursor: grab; touch-action: none; border-radius: 8px; }
.wl-grip:disabled { opacity: .35; cursor: not-allowed; }
.wl-c-sym { min-inline-size: 0; }
.wl-sym-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wl-sym { font-size: 16px; }
.wl-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--fx-bg, #F5F0E8); border: 1px solid var(--fx-border, #E3DCCD); }
.wl-rozet { display: block; font-size: 12px; color: var(--fx-text-2, #5B5B5A); overflow-wrap: anywhere; }
.wl-rozet:empty { display: none; }
.wl-note-t { display: block; font-size: 13px; color: var(--fx-text-2, #5B5B5A); overflow-wrap: anywhere; }
.wl-num { text-align: end; font-variant-numeric: tabular-nums; }
.wl-c-chg[data-dir="up"] { color: var(--wl-up); } .wl-c-chg[data-dir="down"] { color: var(--wl-down); }
.wl-row[data-q="delayed"] .wl-c-price { color: var(--fx-text-2, #5B5B5A); }
.wl-badge { margin-inline-start: 6px; font-size: 11px; font-style: normal; padding: 1px 6px; border-radius: 6px; border: 1px solid currentColor; color: var(--fx-text-2, #5B5B5A); }
.wl-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.wl-ic { padding: 4px 10px; font-size: 13px; }

.wl-skeleton div { block-size: 52px; margin-block: 6px; border-radius: 8px; background: linear-gradient(90deg, rgba(128,128,128,.12), rgba(128,128,128,.22), rgba(128,128,128,.12)); background-size: 200% 100%; animation: wl-shimmer 1.4s linear infinite; }
@keyframes wl-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .wl-skeleton div { animation: none; } }
.wl-empty { text-align: center; padding: 28px 12px; color: var(--fx-text-2, #5B5B5A); }
.wl-empty-t { font-size: 16px; font-weight: 600; color: var(--fx-text, #131413); margin: 0 0 6px; }
.wl-error { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* bildirim */
.wl-toast { position: fixed; inset-inline: 12px; inset-block-end: 92px; z-index: 1200; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #1f2933; color: #fff; padding: 10px 12px; border-radius: 12px; max-inline-size: 560px; margin-inline: auto; }
.wl-toast .wl-btn { background: transparent; color: #fff; border-color: #9fb3c8; min-block-size: 44px; }
@media (min-width: 1024px) { .wl-toast { inset-block-end: 24px; } }

/* dialoglar */
.wl-dlg { margin: auto; max-block-size: calc(100vh - 24px); overflow: auto; border: 1px solid var(--fx-border, #E3DCCD); border-radius: 14px; padding: 16px; inline-size: min(440px, calc(100vw - 24px)); background: var(--fx-card, #fff); color: var(--fx-text, #131413); }
.wl-dlg-wide { inline-size: min(560px, calc(100vw - 24px)); }
.wl-dlg::backdrop { background: rgba(0,0,0,.45); }
.wl-dlg-actions { justify-content: flex-end; margin-block-start: 14px; }
.wl-results { list-style: none; margin: 8px 0 0; padding: 0; max-block-size: 40vh; overflow: auto; }
.wl-result .wl-radio { display: flex; inline-size: 100%; box-sizing: border-box; margin-block-end: 4px; flex-wrap: wrap; }
.wl-venues { font-size: 12px; color: var(--fx-text-2, #5B5B5A); overflow-wrap: anywhere; }
.wl-order { list-style: none; margin: 8px 0 0; padding: 0; }
.wl-order-row { display: flex; gap: 6px; align-items: center; padding: 4px 0; border-block-end: 1px solid var(--fx-border, #E3DCCD); }
.wl-order-name { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }

/* mobil: iki satırlı satır, yatay taşma yok */
@media (max-width: 768px) {
  .wl-colhead { display: none; }
  .wl-row { grid-template-columns: 44px 44px minmax(0, 1fr) auto; grid-template-areas: "sel grip sym price" "sel grip sym chg" "acts acts acts acts"; }
  .wl-row .wl-c-sel { grid-area: sel; } .wl-row .wl-c-grip { grid-area: grip; } .wl-row .wl-c-sym { grid-area: sym; }
  .wl-row .wl-c-price { grid-area: price; } .wl-row .wl-c-chg { grid-area: chg; } .wl-row .wl-c-vol { display: none; }
  .wl-row .wl-acts { grid-area: acts; justify-content: flex-start; }
  .wl-head-actions .wl-btn, .wl-top-actions .wl-btn { flex: 1 1 auto; }
}

.wl-colhead .wl-c-price, .wl-colhead .wl-c-chg, .wl-colhead .wl-c-vol { text-align: end; }
.wl-tabs .wl-tab, button.wl-tab { min-height: 44px; }
.wl-badge { white-space: nowrap; }
.wl-c-price { min-inline-size: 0; }

/* Logolar (alpha-logo.js) */
.wl-tag { display: inline-flex; align-items: center; gap: 4px; }
.wl-result .wl-radio { gap: 8px; }
