:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-hover: #f5f8ff;
    --line: #e2e7ef;
    --text: #111827;
    --muted: #667085;
    --accent: #2962ff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.watch-group-title { margin: 18px 0 8px; color: var(--muted); font-size: 13px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% 0%, #e5edff 0, transparent 34rem), var(--bg); color: var(--text); }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 52px; }
.eyebrow { margin: 0 0 7px; color: #2459e6; font-size: 12px; font-weight: 750; letter-spacing: .15em; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.04em; }
.watch-title { display:flex; align-items:center; gap:14px; }
.watch-title select { height:36px; padding:0 30px 0 10px; border:1px solid #d5dce7; border-radius:9px; background:#fff; color:var(--text); font:inherit; font-weight:700; }
.watchlist-add-button { width:36px; height:36px; border:1px solid #2962ff; border-radius:9px; background:#2962ff; color:#fff; font:inherit; font-size:25px; line-height:1; cursor:pointer; }
.watchlist-add-button:hover,.watchlist-add-button:focus-visible { background:#1f55df; outline:2px solid #a9c1ff; outline-offset:2px; }
.watchlist-add-dialog { width:min(520px,calc(100vw - 28px)); max-height:min(70vh,650px); padding:20px; border:1px solid #d5dce7; border-radius:16px; box-shadow:0 28px 80px rgba(31,41,55,.28); color:var(--text); }
.watchlist-add-dialog::backdrop { background:rgba(17,24,39,.45); }
.watchlist-add-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:18px; }
.watchlist-add-head h2 { margin:0; font-size:21px; }.watchlist-add-head p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.watchlist-add-head button { border:0; background:transparent; color:var(--muted); font-size:25px; cursor:pointer; }
.watchlist-add-dialog label { display:block; margin-bottom:6px; font-size:13px; font-weight:700; }
.watchlist-add-dialog input { width:100%; height:42px; padding:0 12px; border:1px solid #b9c5d6; border-radius:9px; font:inherit; }
.watchlist-remove-dialog { width:min(400px,calc(100vw - 28px)); }
.watchlist-remove-dialog h2 { margin:0; font-size:18px; }
.watchlist-remove-symbol { margin:10px 0 20px; color:var(--muted); font-size:14px; font-weight:700; }
.watchlist-remove-actions { display:flex; justify-content:flex-end; gap:8px; }
.watchlist-remove-actions button { height:38px; padding:0 16px; border:1px solid #d5dce7; border-radius:9px; background:#fff; color:var(--text); font:inherit; font-weight:700; cursor:pointer; }
.watchlist-remove-actions button:hover,.watchlist-remove-actions button:focus-visible { background:#f7f9fc; outline:2px solid #a9c1ff; outline-offset:2px; }
.watchlist-remove-actions .watchlist-remove-confirm { border-color:#d92d20; background:#d92d20; color:#fff; }
.watchlist-remove-actions .watchlist-remove-confirm:hover,.watchlist-remove-actions .watchlist-remove-confirm:focus-visible { background:#b42318; outline-color:#fda29b; }
.watchlist-search-status { min-height:20px; margin:10px 0; color:var(--muted); font-size:12px; }
.watchlist-search-results { max-height:340px; overflow:auto; }
.watchlist-search-result { width:100%; display:flex; flex-direction:column; gap:4px; padding:11px 12px; border:0; border-bottom:1px solid var(--line); background:#fff; text-align:left; cursor:pointer; }
.watchlist-search-result:hover,.watchlist-search-result:focus-visible { background:#f2f6ff; outline:none; }
.watchlist-search-result strong { font-size:14px; }.watchlist-search-result span { color:var(--muted); font-size:12px; }
.preview-size-control { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; font-weight:700; }
.preview-size-control input { width:82px; accent-color:var(--accent); }
.watchlist-editor-link { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid #d5dce7; border-radius:9px; background:#fff; color:#3159b8; text-decoration:none; }
.watchlist-editor-link svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.watchlist-editor-link:hover, .watchlist-editor-link:focus-visible { border-color:#8da9f8; background:#f2f6ff; outline:none; }
.market-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.market-state span { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 14px #2ecc71; }
.watch-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: 0 64px 10px 0; color: var(--muted); font-size: 12px; }
.watch-controls select { min-width: 66px; height: 34px; padding: 0 28px 0 10px; border: 1px solid #d5dce7; border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.market-breadth { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); }
.market-breadth-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.market-breadth-up { color: #16803c; }
.market-breadth-down { color: #d92d20; }
.market-breadth-track { display: flex; width: 100%; height: 9px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.market-breadth-up-bar { width: 0; background: #16a34a; transition: width .2s ease; }
.market-breadth-down-bar { width: 0; background: #e53935; transition: width .2s ease; }
.market-breadth-pending { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.watchlist { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 22px 60px rgba(31,41,55,.10); backdrop-filter: blur(14px); }
.quote-row { position: relative; min-height: 50px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px minmax(62px, max-content) minmax(88px, max-content) 46px 52px; align-items: stretch; padding-left: 10px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.quote-row--no-tv { grid-template-columns: 42px minmax(0, 1fr) 46px minmax(62px, max-content) minmax(52px, max-content) 46px; }
.quote-row:last-child { border-bottom: 0; }
/* Reklam birimi sabit boyutlu: alan önceden ayrıldığı için yüklenirken sayfa kaymaz. */
.ad-label { justify-self: start; color: #98a2b3; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.ad-unit { display: inline-block; width: 728px; height: 90px; }
.watchlist-ad, .portfolio-ad { display: grid; justify-items: center; gap: 3px; overflow: hidden; }
.watchlist-ad { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.watchlist-ad:last-child { border-bottom: 0; }
.portfolio-ad { margin: 0 0 14px; }
@media (max-width: 799px) { .ad-unit { width: 468px; height: 60px; } }
@media (max-width: 519px) { .watchlist-ad { padding-inline: 0; } .watchlist-ad .ad-label { padding-left: 10px; } .ad-unit { width: 320px; height: 50px; } }
.quote-row:hover, .quote-row:focus-within { background: var(--panel-hover); }
.flag-control { position: relative; z-index: 5; display: grid; place-items: center; }
.flag-trigger { width: 32px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #98a2b3; cursor: pointer; }
.flag-trigger svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flag-trigger:hover, .flag-trigger:focus-visible, .flag-control.open .flag-trigger { border-color: #cfd8e6; background: #fff; color: #475467; outline: none; }
.flag-control.assigned .flag-trigger { color: var(--flag-color); }
.flag-control.assigned .flag-trigger svg { fill: var(--flag-color); }
.flag-menu { position: absolute; z-index: 12; top: 58px; left: 3px; display: none; grid-template-columns: repeat(5, 26px); gap: 5px; padding: 7px; border: 1px solid #d7deea; border-radius: 10px; background: #fff; box-shadow: 0 12px 26px rgba(31,41,55,.18); }
.flag-control.open { z-index: 20; }
.flag-control.open .flag-menu { display: grid; }
.flag-menu button { width: 26px; height: 26px; border: 2px solid transparent; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.flag-menu button:hover, .flag-menu button:focus-visible { border-color: #344054; outline: 2px solid #fff; outline-offset: -4px; }
.flag-menu button.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #344054; }
.quote-main { min-width: 0; display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); }
.identity { min-width: 130px; max-width: 230px; display: flex; flex-direction: column; gap: 5px; }
.identity strong { font-size: 18px; letter-spacing: -.01em; }
.identity-symbol { display:flex; align-items:center; gap:6px; min-width:0; }
.identity-symbol strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.identity-name { font-size: 12px; color: var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.identity-name:empty { display:none; }
.watchlist-remove { position:relative; z-index:4; flex:0 0 auto; width:25px; height:25px; display:grid; place-items:center; padding:0; border:0; border-radius:6px; background:transparent; color:#98a2b3; cursor:pointer; }
.watchlist-remove svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.watchlist-remove:hover,.watchlist-remove:focus-visible { background:#feecec; color:#c32727; outline:none; }
.portfolio-inline-stats { display: grid; grid-template-columns: repeat(5, max-content); gap: 5px 10px; padding-left: clamp(10px, 1.5vw, 18px); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.portfolio-inline-stats span { display: flex; flex-direction: column; gap: 2px; color: #344054; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.portfolio-inline-stats b { color: #98a2b3; font-size: 9px; font-weight: 750; letter-spacing: .01em; }
.quote-widget { margin-left: auto; width: min(430px, 55%); height: 68px; /* min-width: 280px; */ overflow: hidden; pointer-events: none; }
.quote-widget iframe { width: 100% !important; height: 68px !important; }
.yahoo-quote { padding-right:12px; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:3px; height:68px; font-variant-numeric:tabular-nums; }
.yahoo-quote-line { display:flex; align-items:baseline; gap:10px; }
.yahoo-quote-time { color:#98a2b3; font-size:11px; font-weight:600; letter-spacing:.01em; }
.yahoo-quote strong { font-size:18px; }
.yahoo-quote span { font-size:12px; font-weight:700; }
.yahoo-quote .up { color:#16803c; } .yahoo-quote .down { color:#d92d20; }
.row-action { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; color: #697586; text-decoration: none; }
.row-action svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hover-hint { position: absolute; right: 58px; padding: 6px 9px; border: 1px solid #dbe2ec; border-radius: 7px; background: #ffffff; color: #475467; box-shadow: 0 5px 16px rgba(31,41,55,.10); font-size: 11px; opacity: 0; transform: translateX(5px); transition: .16s ease; }
.quote-row:hover .hover-hint, .row-action:focus-visible .hover-hint { opacity: 1; transform: none; }
.row-action:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 16px; }
.news-trigger { position: relative; z-index: 4; align-self: center; height: 38px; margin-right: 8px; border: 1px solid #cfd8e6; border-radius: 10px; background: #f8faff; color: #3159b8; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.news-trigger:hover, .news-trigger:focus-visible { border-color: #8da9f8; background: #edf3ff; transform: translateY(-1px); outline: none; }
/* Rows without financial data keep an empty slot so the buttons stay aligned. */
.heatmap-trigger { position: relative; z-index: 4; align-self: center; width: 38px; height: 38px; margin-right: 8px; display: grid; place-items: center; padding: 0; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; color: #3159b8; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.heatmap-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.heatmap-trigger:hover, .heatmap-trigger:focus-visible { border-color: #8da9f8; background: #edf3ff; transform: translateY(-1px); outline: none; }
.heatmap-preview { position: fixed; z-index: 31; width: min(1280px, calc(100vw - 24px)); max-height: calc(100vh - 24px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; visibility: hidden; opacity: 0; transform: translateY(7px) scale(.985); border: 1px solid #d9e0ea; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(31,41,55,.22); overflow: hidden; transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.heatmap-preview.visible { visibility: visible; opacity: 1; transform: none; }
.heatmap-head { display: flex; align-items: center; gap: 16px; padding: 13px 17px 11px; border-bottom: 1px solid var(--line); }
.heatmap-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
#heatmap-meta { color: var(--muted); font-size: 11px; }
.heatmap-basis { position: relative; z-index: 5; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.heatmap-basis label { font-weight: 650; }
.heatmap-basis-field { position: relative; display: block; }
#heatmap-basis-input { width: 210px; height: 30px; padding: 0 26px 0 9px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; color: #1d2939; font: inherit; font-size: 12px; text-overflow: ellipsis; }
#heatmap-basis-input:focus { border-color: #8da9f8; outline: none; box-shadow: 0 0 0 3px rgba(49,89,184,.12); }
#heatmap-basis-clear { position: absolute; top: 50%; right: 3px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #667085; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
#heatmap-basis-clear:hover, #heatmap-basis-clear:focus-visible { background: #f2f4f7; outline: none; }
#heatmap-basis-clear[hidden] { display: none; }
.heatmap-basis-results { position: absolute; top: calc(100% + 4px); right: 0; width: max(100%, 300px); max-height: 320px; margin: 0; padding: 4px; overflow: auto; list-style: none; border: 1px solid #d9e0ea; border-radius: 10px; background: #fff; box-shadow: 0 14px 40px rgba(31,41,55,.18); }
.heatmap-basis-results[hidden] { display: none; }
.heatmap-basis-results li { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 6px; color: #1d2939; font-size: 12px; cursor: pointer; }
.heatmap-basis-results li small { color: var(--muted); font-size: 10px; }
.heatmap-basis-results li:hover, .heatmap-basis-results li[aria-selected="true"] { background: #edf3ff; }
.heatmap-basis-results li.note { color: var(--muted); cursor: default; }
.heatmap-basis-results li.note:hover { background: transparent; }
.heatmap-period { display: flex; padding: 2px; border: 1px solid #cfd8e6; border-radius: 8px; background: #f5f7fb; }
.heatmap-period[hidden] { display: none; }
.heatmap-period button { height: 24px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #667085; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.heatmap-period button:hover, .heatmap-period button:focus-visible { color: #1d2939; outline: none; }
.heatmap-period button[aria-pressed="true"] { background: #fff; color: #3159b8; box-shadow: 0 1px 2px rgba(31,41,55,.12); }
.heatmap-legend { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 9px; line-height: 1.25; }
.heatmap-legend span:first-child { color: #344054; font-weight: 750; }
#heatmap-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #667085; font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
#heatmap-close:hover, #heatmap-close:focus-visible { background: #f2f4f7; outline: none; }
.heatmap-body { overflow: auto; }
.heatmap-table { width: 100%; border-collapse: separate; border-spacing: 2px; font-variant-numeric: tabular-nums; }
.heatmap-table th { position: sticky; z-index: 1; padding: 4px 3px; background: #fff; color: #344054; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: pre-line; }
.heatmap-table thead th { top: 0; z-index: 2; min-width: 78px; max-width: 110px; vertical-align: bottom; text-align: center; hyphens: auto; }
.heatmap-table tbody th { left: 0; padding-right: 7px; text-align: right; white-space: nowrap; }
.heatmap-table thead th:first-child { left: 0; z-index: 3; min-width: 0; hyphens: manual; }
.heatmap-table td { min-width: 64px; padding: 4px 3px; border-radius: 3px; color: #222; font-size: 10px; line-height: 1.25; text-align: center; white-space: nowrap; }
.heatmap-table td b { display: block; font-size: 11px; font-weight: 650; }
.heatmap-table td span { display: block; opacity: .82; }
.heatmap-table td.strong { color: #fff; }
.heatmap-table td.strong b { font-weight: 800; }
.heatmap-status { padding: 8px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.heatmap-status[hidden] { display: none; }
.heatmap-status.error { color: #d92d20; }
.note-trigger { position: relative; z-index: 4; align-self: center; height: 38px; margin-right: 8px; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; color: #475467; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.note-trigger:hover, .note-trigger:focus-visible { border-color: #aeb9c9; background: #f7f9fc; transform: translateY(-1px); outline: none; }
.note-trigger.has-note { border-color: #f0b7b7; background: #fff0f0; color: #b42318; }
.note-hover-preview { position:fixed; z-index:45; width:min(340px,calc(100vw - 20px)); max-height:min(280px,calc(100vh - 20px)); padding:12px 14px; visibility:hidden; opacity:0; transform:translateY(5px); border:1px solid #d5dce7; border-radius:11px; background:#fff; box-shadow:0 16px 42px rgba(31,41,55,.20); color:#1d2939; overflow:auto; pointer-events:none; transition:opacity .12s ease,transform .12s ease,visibility .12s; }
.note-hover-preview.visible { visibility:visible; opacity:1; transform:none; }
.note-hover-preview > strong { display:block; margin-bottom:7px; padding-bottom:7px; border-bottom:1px solid var(--line); font-size:12px; }
.note-hover-content { overflow-wrap:anywhere; font-size:13px; line-height:1.5; }
.note-hover-content p { margin:.15em 0 .65em; }.note-hover-content p:last-child { margin-bottom:0; }
.note-hover-content ul,.note-hover-content ol { margin:.25em 0 .65em; padding-left:21px; }
.note-hover-content hr { border:0; border-top:1px solid #cbd5e1; margin:.75em 0; }
.note-hover-empty { color:#98a2b3; font-style:italic; }
/* Alarm zili: boş = alarm yok, mavi dolu = etkin alarm, amber dolu = bakılmamış tetiklenme */
.alarm-trigger { position: relative; z-index: 4; align-self: center; width: 38px; height: 38px; margin-right: 8px; display: grid; place-items: center; padding: 0; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; color: #98a2b3; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.alarm-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.alarm-trigger:hover, .alarm-trigger:focus-visible { border-color: #aeb9c9; background: #f7f9fc; color: #475467; transform: translateY(-1px); outline: none; }
.alarm-trigger.has-alarm { border-color: #b9c8f7; background: #eef3ff; color: #2962ff; }
.alarm-trigger.triggered { border-color: #f6c56f; background: #fff5e1; color: #e38b00; }
.alarm-trigger.has-alarm svg, .alarm-trigger.triggered svg { fill: currentColor; }
.tv-trigger { position:relative; z-index:4; align-self:center; display:grid; place-items:center; width:42px; height:38px; border:1px solid #cfd8e6; border-radius:10px; background:#fff; color:#111827; font-size:12px; font-weight:850; text-decoration:none; }
.tv-trigger:hover,.tv-trigger:focus-visible { border-color:#2962ff; color:#2962ff; outline:none; }
.preview { --preview-scale: 1; position: fixed; z-index: 20; width: min(calc(650px * var(--preview-scale)), calc(100vw - 24px)); height: min(calc(430px * var(--preview-scale)), calc(100vh - 24px)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; visibility: hidden; opacity: 0; transform: translateY(8px) scale(.985); border: 1px solid #d9e0ea; border-radius: 16px; background: #ffffff; box-shadow: 0 28px 90px rgba(31,41,55,.22); overflow: hidden; pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.preview.preview-without-legend { grid-template-rows: auto 1fr auto; }
.preview.visible { visibility: visible; opacity: 1; transform: none; }
/* Kapatma düğmesi yalnızca dokunmatikte gerekli; farede önizleme imleç
   satırdan ayrılınca kendiliğinden kapanıyor. Önizleme masaüstünde tıklama
   geçirgen olduğu için (pointer-events: none) düğme ancak kaba işaretçide
   etkinleşir; aksi hâlde dokunuş düğmeye hiç ulaşmazdı. */
.preview-close { display: none; place-items: center; flex: 0 0 auto; align-self: start; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; font-size: 21px; line-height: 1; cursor: pointer; }
@media (pointer: coarse) {
    .preview.visible { pointer-events: auto; }
    .preview-close { display: grid; }
}
/* Hata kalıcı kalabildiği için masaüstünde de kapatma düğmesi açılır. */
.preview.visible.has-error { pointer-events: auto; }
.preview.has-error .preview-close { display: grid; }
.note-dialog { position: fixed; z-index: 40; top: 50%; left: 50%; width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto auto minmax(200px, 1fr); visibility: hidden; opacity: 0; transform: translate(-50%, -48%); border: 1px solid #d5dce7; border-radius: 15px; background: #fff; box-shadow: 0 28px 80px rgba(31,41,55,.28); overflow-y: auto; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.note-dialog.visible { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.note-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line); }
.note-head > div:first-child { display:flex; flex-direction:column; gap:2px; }.note-head span { color:var(--muted); font-size:12px; }
.note-head-actions { display:flex; align-items:center; gap:8px; }
.note-head-actions #note-save { height:34px; padding:0 14px; border:0; border-radius:8px; background:#2962ff; color:#fff; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }.note-head-actions #note-save:hover { background:#1f55df; }
.note-head-actions #note-close { width:30px; height:30px; border:0; border-radius:8px; background:transparent; color:#667085; font-size:25px; line-height:1; cursor:pointer; }.note-head-actions #note-close:hover { background:#f2f4f7; }
.note-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:5px; row-gap:6px; padding:9px 12px; border-bottom:1px solid var(--line); background:#fafbfc; }.note-toolbar button { min-width:31px; height:29px; padding:0 8px; border:1px solid #d7deea; border-radius:6px; background:#fff; color:#344054; cursor:pointer; font-size:12px; }.note-toolbar button:hover,.note-toolbar button:focus-visible { border-color:#98a2b3; background:#f7f9fc; outline:none; }.note-toolbar-separator { width:1px; height:21px; margin:0 2px; background:#d7deea; }.note-color-option { font-weight:800; text-decoration:underline; text-decoration-thickness:2px; }.note-color-option.note-color-dark { color:#1D2939; }.note-color-option.note-color-red { color:#E53935; }.note-color-option.note-color-amber { color:#E38B00; }.note-color-option.note-color-green { color:#16A34A; }.note-color-option.note-color-blue { color:#2962FF; }
.note-editor { min-height:230px; padding:14px 16px; color:#1d2939; font-size:14px; line-height:1.55; outline:none; overflow:auto; }.note-editor:empty::before { content:attr(data-placeholder); color:#98a2b3; pointer-events:none; }.note-editor p { margin:.2em 0 .7em; }.note-editor ul,.note-editor ol { margin:.3em 0 .75em; padding-left:24px; }
.note-editor hr { border:0; border-top:1px solid #cbd5e1; margin:1em 0; }
.preview-head { display: flex; justify-content: space-between; gap: 24px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
.preview-head > div { display: flex; flex-direction: column; gap: 3px; }
.preview-head span { color: var(--muted); font-size: 12px; }
.preview-symbol-line { display:flex; align-items:center; gap:7px; min-height:22px; }.preview-marker { display:grid; place-items:center; width:20px; height:20px; color:#c0c8d4; }.preview-marker svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }.preview-flag.active { color:var(--flag-color); }.preview-flag.active svg { fill:var(--flag-color); }.preview-note-marker.active { color:#c33b35; }.preview-note-marker.active svg { fill:#fff1f0; }
.preview-portfolio-stats { display:grid; grid-template-columns:repeat(5,max-content); gap:4px 8px; margin-left:5px; padding-left:10px; border-left:1px solid var(--line); font-variant-numeric:tabular-nums; }
.preview-portfolio-stats > span { display:flex; flex-direction:column; gap:1px; color:#344054!important; font-size:10px!important; line-height:1.15; white-space:nowrap; }
.preview-portfolio-stats b { color:#98a2b3; font-size:13px; font-weight:750; }
.preview-portfolio-value { display:block; min-height:12px; color:#344054!important; font-size:12px!important; font-style:normal; font-weight:700; }
.preview-price { text-align: right; }
.preview-price-line { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; }
.preview-price strong { font-size: 18px; }
.preview-change { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.preview-change.up { color: #16803c; }
.preview-change.down { color: #d92d20; }
.preview-quote-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-legend { display: flex; align-items: center; gap: 15px; padding: 8px 18px 2px; color: var(--muted); font-size: 11px; }
.preview-legend span { display: inline-flex; align-items: center; gap: 6px; }
.preview-legend i { width: 16px; height: 3px; border-radius: 2px; }
.preview-legend .blue { background: #2962ff; }
.preview-legend .lime { background: #00b85c; }
.preview-legend .maroon { background: #800000; }
.preview-legend .pe { background: #2962ff; }
.preview-chart { min-width: 0; min-height: 0; margin: 12px; }
.preview-pane-label { position: absolute; z-index: 5; top: 4px; left: 6px; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.82); color: #667085; font-size: 11px; font-weight: 700; line-height: 15px; pointer-events: none; }
/* KLineChart'tan gelen metin kutusu, açıklama balonu ve dikey çizimler */
.preview-chart { position: relative; }
.preview-loading { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: #f8fafc; color: #475467; font-size: 12px; text-align: center; }
.preview-loading strong { color: #1d2939; font-size: 14px; }
.preview-loading-spinner { width: 26px; height: 26px; border: 3px solid #e4e7ec; border-top-color: #FFB300; border-radius: 50%; animation: preview-spin .8s linear infinite; }
.preview-loading-progress { min-height: 16px; color: #93600a; font-weight: 700; font-variant-numeric: tabular-nums; }
.preview-loading-bar { display: none; width: min(220px, 60%); height: 6px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.preview-loading.is-warming .preview-loading-bar { display: block; }
.preview-loading-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: #FFB300; transition: width .3s ease; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preview-loading-spinner { animation: none; } }
.preview-drawing-layer { position: absolute; overflow: hidden; pointer-events: none; z-index: 3; }
.preview-drawing-note { position: absolute; box-sizing: border-box; max-width: 70%; padding: 3px 6px; border-style: solid; border-radius: 4px; line-height: 1.35; white-space: pre-wrap; overflow: hidden; }
.preview-drawing-balloon { width: max-content; max-width: 46%; }
.preview-portfolio-transaction { max-width: min(190px, 46%); padding: 6px 8px; border-radius: 8px; box-shadow: 0 6px 18px rgba(15, 23, 42); font-weight: 700; letter-spacing: .01em; }
.preview-portfolio-transaction-note { margin-top: 4px; padding-top: 4px; border-top: 1px solid currentColor; font-size: 10px; font-weight: 400; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
.preview-portfolio-transaction-link { filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .14)); }
.preview-drawing-vertical { position: absolute; }
.preview-drawing-fibonacci { position: absolute; left: 4px; transform: translateY(-100%); padding-bottom: 1px; font-size: 11px; line-height: 1.2; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.preview-drawing-fibonacci.is-below { transform: none; padding: 1px 0 0; }
.preview-drawing-point-label { position: absolute; transform: translate(-50%, -100%); padding-bottom: 2px; font-size: 11px; line-height: 1.2; white-space: nowrap; pointer-events: none; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.preview-drawing-link { position: absolute; inset: 0; overflow: visible; }
.preview-status { min-height: 28px; padding: 7px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.preview-status.error { color: #d92d20; }
.news-preview { position: fixed; z-index: 30; width: min(470px, calc(100vw - 24px)); max-height: min(540px, calc(100vh - 24px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; visibility: hidden; opacity: 0; transform: translateY(7px) scale(.985); border: 1px solid #d9e0ea; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(31,41,55,.22); overflow: hidden; transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.news-preview.visible { visibility: visible; opacity: 1; transform: none; }
.news-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 12px; border-bottom: 1px solid var(--line); }
.news-head > div { display: flex; flex-direction: column; gap: 2px; }
.news-head span, #news-count { color: var(--muted); font-size: 11px; }
.news-head-actions { display: flex; align-items: center; gap: 10px; }
#news-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #667085; font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
#news-close:hover, #news-close:focus-visible { background: #f2f4f7; outline: none; }
.news-list { overflow: auto; }
.news-item { display: block; padding: 13px 17px; border-bottom: 1px solid #edf0f4; color: var(--text); text-decoration: none; }
a.news-item:hover, a.news-item:focus-visible { background: #f5f8ff; outline: none; }
.news-item strong { display: block; font-size: 13px; line-height: 1.4; }
.news-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.news-status { padding: 8px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.news-status.error { color: #d92d20; }
.notice { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); }
.notice.error { color: #d92d20; }
.login-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.login-notice p { margin: 0; }
.login-notice-button { text-decoration: none; }
/* Popup grafik ayar butonu ve ayar penceresi */
.watch-title { flex-wrap: wrap; row-gap: 8px; }
.chart-settings-trigger { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid #d5dce7; border-radius: 9px; background: #fff; color: #3159b8; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.chart-settings-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chart-settings-trigger:hover, .chart-settings-trigger:focus-visible { border-color: #8da9f8; background: #f2f6ff; outline: none; }
.chart-settings-trigger[aria-expanded="true"] { border-color: #2962ff; background: #eaf0ff; }
.language-switcher { display: inline-block; position: relative; vertical-align: middle; }
.language-switcher summary { list-style: none; user-select: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher[open] summary { border-color: #2962ff; background: #eaf0ff; }
.language-menu { position: absolute; z-index: 150; top: calc(100% + 5px); inset-inline-end: 0; width: min(250px, 80vw); max-height: 320px; overflow-y: auto; padding: 5px; border: 1px solid #d5dce7; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px #23304b24; }
.language-option { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #1d2939; font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.language-option:hover, .language-option:focus-visible, .language-option[aria-current="true"] { background: #eaf0ff; color: #2452b5; outline: none; }
.chart-settings { position: fixed; z-index: 45; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; visibility: hidden; opacity: 0; transform: translate(-50%, -48%); border: 1px solid #d5dce7; border-radius: 15px; background: #fff; box-shadow: 0 28px 80px rgba(31,41,55,.28); overflow: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.chart-settings.visible { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.chart-settings-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chart-settings-head > div { display: flex; flex-direction: column; gap: 2px; }
.chart-settings-head span { color: var(--muted); font-size: 12px; }
.chart-settings-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #667085; font-size: 25px; line-height: 1; cursor: pointer; }
.chart-settings-head button:hover { background: #f2f4f7; }
.chart-settings-body { padding: 4px 16px 12px; overflow: auto; }
.chart-settings-body .preview-size-control input { width: min(180px, 55vw); }
.settings-block { padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.settings-block:last-child { border-bottom: 0; }
.settings-block h3 { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.settings-choice { display: flex; gap: 18px; }
.settings-choice label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; cursor: pointer; }
.settings-choice input { accent-color: var(--accent); }
.settings-indicator { padding: 9px 0; border-top: 1px solid #f2f4f8; }
.settings-indicator:first-of-type { border-top: 0; }
.settings-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.settings-toggle input { width: 15px; height: 15px; accent-color: var(--accent); }
.settings-toggle em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.settings-params { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 0 23px; }
.settings-indicator.disabled .settings-params { opacity: .42; pointer-events: none; }
.settings-indicator-list .settings-indicator:first-of-type { border-top: 1px solid #f2f4f8; }
.settings-indicator-list .settings-params { margin-left: 0; }
.settings-indicator-head { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 13px; }
.settings-indicator-head strong { font-weight: 700; }
.settings-indicator-head em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.settings-remove { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: #98a2b3; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.settings-remove:hover, .settings-remove:focus-visible { background: #fef3f2; color: #d92d20; outline: none; }
.settings-empty { margin: 0; padding: 10px 0; border-top: 1px solid #f2f4f8; color: var(--muted); font-size: 12px; }
.settings-add { display: flex; align-items: center; gap: 9px; margin-top: 6px; padding-top: 11px; border-top: 1px solid #f2f4f8; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-add select { flex: 1; min-width: 0; height: 31px; padding: 0 8px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 650; }
.settings-params label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.settings-params input[type="number"], .settings-params select { height: 29px; padding: 0 7px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 650; }
.settings-params input[type="number"] { width: 64px; }
.settings-params input.settings-param-list { width: 132px; height: 29px; padding: 0 7px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 650; }
.settings-params select { padding-right: 22px; }
.settings-params input[type="color"] { width: 32px; height: 27px; padding: 0 2px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; cursor: pointer; }
.chart-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chart-settings-hint { margin-right: auto; color: var(--muted); font-size: 11px; }
.chart-settings-actions button { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: #2962ff; color: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.chart-settings-actions button:hover { background: #1f55df; }
.chart-settings-actions button.ghost { border: 1px solid #d7deea; background: #fff; color: #475467; }
.chart-settings-actions button.ghost:hover { background: #f7f9fc; }
/* Grafik verisi ön yükleme ışığı */
.warm-state { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; justify-content: flex-end; }
.warm-dot { width: 9px; height: 9px; border-radius: 50%; background: #98a2b3; flex: none; }
.warm-state.is-loading .warm-dot { background: #FFB300; box-shadow: 0 0 12px rgba(255,179,0,.55); animation: warm-pulse 1.2s ease-in-out infinite; }
.warm-state.is-ready .warm-dot { background: #16A34A; box-shadow: 0 0 12px rgba(22,163,74,.5); }
.warm-state.is-error .warm-dot { background: #E53935; box-shadow: 0 0 12px rgba(229,57,53,.5); }
.warm-state.is-error { color: #b42318; }
@keyframes warm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .warm-state.is-loading .warm-dot { animation: none; } }
/* Uzun listeler için harf fihristi */
.watch-body { display: flex; align-items: flex-start; gap: 10px; }
.watch-lists { flex: 1; min-width: 0; }
.market-breadth { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); }
.market-breadth-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.market-breadth-up { color: #16803c; }
.market-breadth-down { color: #d92d20; }
.market-breadth-track { display: flex; width: 100%; height: 9px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.market-breadth-up-bar { width: 0; background: #16a34a; transition: width .2s ease; }
.market-breadth-down-bar { width: 0; background: #e53935; transition: width .2s ease; }
.market-breadth-pending { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.alphabet-index { position: sticky; top: calc(var(--app-header-h, 0px) + 22px); z-index: 6; height: calc(100vh - var(--app-header-h, 0px) - 36px); min-height: min-content; display: flex; flex-direction: column; justify-content: space-between; gap: 1px; padding: 8px 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(31,41,55,.07); backdrop-filter: blur(10px); }
.alphabet-index button { flex: none; width: 22px; height: 17px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 750; line-height: 1; cursor: pointer; transition: background .12s ease, color .12s ease; }
.alphabet-index button:hover, .alphabet-index button:focus-visible { background: #eaf0ff; color: var(--accent); outline: none; }
.alphabet-index button.active { background: var(--accent); color: #fff; }
/* Fihrist alfabetik bir dizin; liste başka bir ölçüte göre sıralıyken anlamsız. */
body:not([data-sort="symbol"]) .alphabet-index { display: none; }
@media (max-width: 700px) {
    .watch-body { gap: 6px; }
    .alphabet-index { top: calc(var(--app-header-h, 0px) + 14px); height: calc(100vh - var(--app-header-h, 0px) - 22px); padding: 6px 2px; }
    .alphabet-index button { width: 19px; height: 16px; font-size: 10px; }
}
@media (max-width: 700px) {
    .shell { width: min(100% - 20px, 1080px); padding-top: 10px; }
    .warm-state { font-size: 11px; }
    .market-state { margin-top: 12px; }
    .watch-controls { margin-right: 0; }
    /* Dar ekranda satır iki sıraya bölünür: üstte ticker ile fiyat bloğu, altta
       butonlar. Sağdaki 42px, satırın tamamını kaplayan .row-action okuna ayrılır;
       böylece fiyat bilgisi okun ya da butonların altında kalmaz. */
    .quote-row {
        grid-template-columns: 30px auto auto auto auto auto minmax(0, 1fr);
        grid-template-areas:
            "flag main  main main main main main"
            ".    alarm note news heat tv   .";
        column-gap: 6px;
        row-gap: 9px;
        padding: 11px 42px 12px 8px;
    }
    .quote-row--no-tv { grid-template-columns: 30px auto auto auto auto minmax(0, 1fr); grid-template-areas: "flag main main main main main" ". alarm note news heat ."; }
    .flag-control { grid-area: flag; }
    .flag-trigger { width: 28px; height: 32px; }
    .flag-trigger svg { width: 19px; height: 19px; }
    .flag-menu { top: 46px; left: 0; grid-template-columns: repeat(5, 24px); }
    .flag-menu button { width: 24px; height: 24px; }
    .quote-main { grid-area: main; gap: 10px; }
    .identity { flex: 1 1 auto; min-width: 0; max-width: none; gap: 3px; }
    .identity strong { font-size: 16px; }
    .quote-widget { flex: 0 0 auto; width: auto; min-width: 0; height: 54px; }
    .yahoo-quote { height: 54px; }
    .yahoo-quote strong { font-size: 16px; }
    .note-trigger { grid-area: note; }
    .news-trigger { grid-area: news; }
    .heatmap-trigger, .heatmap-slot { grid-area: heat; }
    .heatmap-trigger { width: 40px; height: 32px; margin-right: 0; }
    .tv-trigger { grid-area: tv; width: 46px; height: 32px; }
    .alarm-trigger { grid-area: alarm; width: 40px; height: 32px; margin-right: 0; }
    .note-trigger, .news-trigger { height: 32px; margin-right: 0; padding: 0 14px; font-size: 12px; }
    .row-action { padding-right: 11px; }
    .row-action svg { width: 21px; height: 21px; }
    /* Telefonda araç çubuğu satırlara ayrılarak not penceresinin genişliğine sığar. */
    .note-dialog { grid-template-rows: auto auto minmax(120px, 1fr); }
    .note-editor { min-height: 140px; }
    .hover-hint { display: none; }
    /* Telefonda önizleme ekranı tümüyle kaplar: hover olmadığı için satırın
       yanına sığdırmanın anlamı yok, dar ekranda grafik böyle okunaklı.
       Boyut kaydırıcısı burada geçersizdir, genişlik ekranın kendisidir. */
    .preview { inset: 0; width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; transform: translateY(10px); }
    .preview.visible { transform: none; }
    .heatmap-preview { inset: 0 !important; width: 100%; max-height: none !important; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .heatmap-legend { display: none; }
    .heatmap-head { flex-wrap: wrap; row-gap: 8px; }
    .heatmap-basis { order: 3; width: 100%; }
    .heatmap-basis-field { flex: 1; }
    #heatmap-basis-input { width: 100%; }
    .preview-head { flex-wrap: wrap; gap: 8px 12px; min-width: 0; padding: 13px 14px 11px; }
    .preview-identity-block { flex: 1 1 calc(100% - 46px); min-width: 0; }
    #preview-name { overflow-wrap: anywhere; }
    .preview-price { order: 3; flex: 1 1 100%; min-width: 0; text-align: left; }
    .preview-price-line { justify-content: flex-start; flex-wrap: wrap; }
    .preview-close { order: 2; }
}
.portfolio-link-button { text-decoration: none; }
/* Dar ekranda flex sarması sembol adının genişliğine göre portföy bilgisini bazen
   alt satıra atıyordu; ızgara ile her satırda bilgi hep sembolün yanında, fiyat altta. */
@media (max-width: 875px) {
    .quote-main:has(.portfolio-inline-stats) { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 6px; }
    .quote-main:has(.portfolio-inline-stats) .portfolio-inline-stats { width: auto; min-width: 0; }
    /* Uzun şirket adı ilk sütunu genişletip portföy bilgisini sağa sıkıştırıyordu;
       sütun genişliğini sembol belirler, ad bu genişlikte kırpılır. */
    .quote-main:has(.portfolio-inline-stats) .identity-name { width: 0; min-width: 100%; }
    .quote-main:has(.portfolio-inline-stats) .quote-widget { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 1180px) {
    .portfolio-inline-stats { grid-template-columns: repeat(3, max-content); }
}
@media (min-width: 701px) and (max-width: 875px) {
    .quote-row {
        grid-template-columns: 30px auto auto auto auto auto minmax(0, 1fr);
        grid-template-areas:
            "flag main  main main main main main"
            ".    alarm note news heat tv   .";
        column-gap: 6px;
        row-gap: 9px;
        padding: 11px 42px 12px 8px;
    }
    .quote-row--no-tv { grid-template-columns: 30px auto auto auto auto minmax(0, 1fr); grid-template-areas: "flag main main main main main" ". alarm note news heat ."; }
    .flag-control { grid-area: flag; }
    .flag-trigger { width: 28px; height: 32px; }
    .flag-trigger svg { width: 19px; height: 19px; }
    .flag-menu { top: 46px; left: 0; grid-template-columns: repeat(5, 24px); }
    .flag-menu button { width: 24px; height: 24px; }
    .quote-main { grid-area: main; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
    .identity { flex: 1 1 auto; min-width: 0; max-width: none; gap: 3px; }
    .identity strong { font-size: 16px; }
    .quote-widget { flex: 0 0 auto; width: auto; min-width: 0; height: 54px; }
    .yahoo-quote { height: 54px; }
    .yahoo-quote strong { font-size: 16px; }
    .note-trigger { grid-area: note; }
    .news-trigger { grid-area: news; }
    .heatmap-trigger, .heatmap-slot { grid-area: heat; }
    .heatmap-trigger { width: 40px; height: 32px; margin-right: 0; }
    .tv-trigger { grid-area: tv; width: 46px; height: 32px; }
    .alarm-trigger { grid-area: alarm; width: 40px; height: 32px; margin-right: 0; }
    .note-trigger, .news-trigger { height: 32px; margin-right: 0; padding: 0 14px; font-size: 12px; }
    .row-action { padding-right: 11px; }
    .row-action svg { width: 21px; height: 21px; }
    .hover-hint { display: none; }
    .portfolio-inline-stats { flex: 1 1 210px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 7px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .portfolio-inline-stats span { font-size: 10px; }
}
@media (max-width: 700px) {
    .quote-main { flex-wrap: wrap; align-items: flex-start; }
    .portfolio-inline-stats { flex: 1 1 210px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 7px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .portfolio-inline-stats span { font-size: 10px; }
    .preview-symbol-line { flex-wrap: wrap; }
    .preview-portfolio-stats { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-left: 0; padding: 6px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .preview-portfolio-stats > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}
/* Üst bar: 1. satır marka + sayfa sekmeleri + durum/hesap/dil, 2. satır sayfanın araçları.
   Önizleme (z-index 20) ve pencereler üst barın üstünde açılır. */
.app-header { display: grid; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(31,41,55,.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.app-header.is-sticky { position: sticky; top: 8px; z-index: 15; }
/* Telefonda üst bar ekranın büyük kısmını kaplar; yapışmaz, sayfayla birlikte kayar. */
@media (max-width: 600px) { .app-header.is-sticky { position: relative; top: auto; } }
.app-bar { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 10px 12px 10px 16px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); }
.app-brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); text-decoration: none; }
.app-brand-logo { display: block; width: auto; height: 32px; }
.app-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.app-tabs { display: flex; gap: 2px; min-width: 0; padding: 3px; border-radius: 10px; background: #f1f4f9; }
.app-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 30px; padding: 0 13px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.app-tabs a span { overflow: hidden; text-overflow: ellipsis; }
.app-tabs svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs a:hover { color: var(--text); }
.app-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.app-tabs a[aria-current="page"] { background: #fff; color: #3159b8; box-shadow: 0 1px 3px rgba(31,41,55,.12); }
.app-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.app-header .chart-settings-trigger { height: 32px; }
.app-header .warm-state { height: 30px; padding: 0 11px; border-radius: 999px; background: #f2f4f7; }
.app-header .warm-state.is-loading { background: #fff6e0; color: #93600a; }
.app-header .warm-state.is-ready { background: #edf7f0; color: #146c35; }
.app-header .warm-state.is-error { background: #fdeceb; color: #b42318; }
.app-header .warm-dot { width: 8px; height: 8px; }
.app-toolbar .watch-title { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.app-toolbar .watch-title select { max-width: 280px; height: 36px; padding: 0 30px 0 12px; font-size: 15px; font-weight: 750; }
.app-toolbar .watchlist-editor-link { width: 32px; height: 32px; }
.app-toolbar-sep { width: 1px; height: 22px; background: var(--line); }
.range-toggle { display: inline-flex; padding: 2px; border: 1px solid #d5dce7; border-radius: 9px; background: #fff; }
.range-toggle button { min-width: 38px; height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.range-toggle button:hover { color: var(--text); }
.range-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.range-toggle button[aria-pressed="true"] { background: #eaf0ff; color: #3159b8; }
.sort-pick { position: relative; display: inline-flex; align-items: center; }
.sort-pick svg { position: absolute; left: 10px; width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sort-pick select { height: 32px; padding: 0 26px 0 30px; border: 1px solid #d5dce7; border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.app-toolbar #chart-settings-open { margin-left: auto; }
/* Tablet: durum yalnızca ışık, ayar butonu yalnızca simge. */
@media (max-width: 880px) {
    .app-bar { gap: 12px; }
    .app-tabs a { padding: 0 11px; }
    .app-header .warm-state { width: 30px; padding: 0; justify-content: center; }
    #warm-label, .app-toolbar .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .app-toolbar #chart-settings-open { width: 32px; padding: 0; justify-content: center; }
}
/* Telefon: sekmeler tam genişlik, liste seçici kendi satırında, dil yalnızca simge. */
@media (max-width: 600px) {
    .app-bar { flex-wrap: wrap; row-gap: 10px; padding: 10px 10px 10px 14px; }
    .app-tabs { order: 3; flex: 1 1 100%; }
    .app-tabs a { flex: 1 1 0; padding: 0 6px; }
    .app-bar-end { gap: 6px; }
    #language-switcher-label { display: none; }
    .language-switcher summary { width: 32px; padding: 0; justify-content: center; }
    .app-toolbar { gap: 8px; padding: 10px; }
    .app-toolbar .watch-title { flex: 1 1 100%; }
    .app-toolbar .watch-title select { flex: 1; min-width: 0; max-width: none; }
    .app-toolbar-sep { display: none; }
    .sort-pick { flex: 1; min-width: 0; }
    .sort-pick select { width: 100%; }
}
/* Dört sekme dar telefona sığmaz: etkin olmayanlar yalnızca simge, ad ekran okuyucuda kalır. */
@media (max-width: 480px) {
    .app-tabs a:not([aria-current="page"]) { flex: 0 0 44px; }
    .app-tabs a:not([aria-current="page"]) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
    .app-tabs a[aria-current="page"] svg { display: none; }
}
/* Diğer sayfalarda üst bar sayfanın en üstünde durur; eski geniş üst boşluk gerekmez. */
main.portfolio-shell, main.editor-shell { padding-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
