/* Trading workspace: a light canvas, dark navigation, and semantic market colors. */
:root{color-scheme:light;--ink:#283446;--muted:#647185;--paper:#eef0f5;--accent:#1769e0;--border:#e0e5ed;--surface:#fff;--positive:#087e65;--negative:#c62e49}
body{background:var(--paper);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.6}
button,input,select{border-radius:4px}button{background:var(--accent);font-weight:600;transition:background .18s,color .18s,box-shadow .18s}button:hover:not(:disabled){background:#1256bd}
.secondary{background:#fff;border:1px solid #d6deea;color:#44536a}.secondary:hover:not(:disabled){background:#edf3ff;color:#1769e0}
input,select{background:#f9fafc;border:1px solid #d7deea;color:var(--ink);min-height:44px}label{font-size:13px;color:#47566c;font-weight:600}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar{width:238px;padding:0 0 20px;background:#292e3a;border:0;box-shadow:3px 0 14px #1c273c0d}
.sidebar-brand{height:74px;padding:0 24px;gap:12px;border-bottom:1px solid #ffffff0c;color:#fff;font-size:18px;letter-spacing:-.3px}.sidebar-brand svg{color:#55a5ff}.sidebar-brand br{display:none}.sidebar-brand strong{margin-left:4px}
.sidebar>p{padding:0 25px;margin:25px 0 12px;font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:#9eaabd}
.sidebar .tabs{gap:4px;padding:0 12px}.sidebar .tabs button{display:flex;align-items:center;gap:13px;border:0;border-radius:4px;padding:13px 14px;min-height:48px;font-size:13px;color:#c5cedb;font-weight:500}.sidebar .tabs button[aria-pressed=true]{color:white;background:#1769e0;box-shadow:0 3px 12px #0002}.sidebar .tabs button:hover:not(:disabled){background:#373e4d;color:white}.sidebar .tabs button[aria-pressed=true]:hover{background:#1769e0}.nav-icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar-bottom{padding:20px 24px 0;border-top:1px solid #ffffff12;margin-top:auto;color:#c5cedb}.sidebar-bottom small{color:#9ca9bc}.sidebar-bottom .secondary{color:#dbe2ec;background:#343b48;border-color:#454e5e}
.authenticated main{margin-left:238px;padding:0 30px 36px;max-width:none}.authenticated footer{margin-left:238px;padding:20px 30px;color:#6b788a}
.terminal-topbar{height:74px;margin:0 -30px 28px;padding:0 30px;background:white;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px}.terminal-kicker{font-weight:700;font-size:12px;letter-spacing:.7px}.terminal-kicker>span{font-weight:400;color:var(--muted);letter-spacing:0;margin-left:12px}.terminal-account{font-size:12px;color:var(--muted)}.terminal-account i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#129e89;margin-right:6px}
.heading{margin-bottom:24px}.heading h1{font-size:27px;font-weight:500;letter-spacing:-.6px}.subtitle{font-size:12px;color:#788496}.heading button{box-shadow:0 3px 9px #1769e026}
.panel,.login-panel,.empty{background:#fff;border:1px solid var(--border);border-radius:5px;box-shadow:0 2px 5px #28344604;padding:24px;margin-bottom:22px}.panel h2{font-size:17px;font-weight:600;color:#354259;letter-spacing:-.2px}.panel>h2{border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:16px}.panel p{color:var(--muted)}
.notebook-panel{padding:14px 18px;background:white;display:flex;align-items:center;gap:24px;margin-bottom:20px}.scope-controls{width:250px;flex-shrink:0}.scope-controls label{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}.scope-controls select{font-size:13px;margin-top:3px}.notebook-panel #scope-note{font-size:12px;margin:0}
.market-toolbar{background:transparent;margin-bottom:14px}.market-toolbar strong{font-size:13px;color:#45556c}.market-toolbar p{font-size:12px}.total-line{background:#fff;border:1px solid var(--border);padding:14px 18px;border-radius:4px;margin-bottom:18px}.total-line strong{font-size:20px;color:#283446}
.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;border:0;background:transparent;overflow:visible;border-radius:0;margin-bottom:22px}.metrics>div{padding:20px 18px;border:0!important;border-radius:4px;background:#1769e0;color:white;box-shadow:0 3px 8px #28344608;position:relative}.metrics>div:nth-child(2){background:#ad7400}.metrics>div:nth-child(3){background:#c73550}.metrics>div:nth-child(4){background:#15845f}.metrics>div:nth-child(5){background:#6659b5}.metrics span,.metrics small{color:#fff}.metrics span{font-size:12px}.metrics strong{color:white!important;font-size:clamp(18px,1.7vw,26px);font-weight:600;letter-spacing:-.5px;margin:10px 0}.metrics small{font-size:10px;opacity:.9}
.chart-grid{grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr);gap:22px}.history-stat{padding:15px 18px;background:#f7f9fc;border:1px solid var(--border);border-left:3px solid #129e89;border-radius:4px}.history-stat.history-totalAssets{border-left-color:#1769e0}.history-stat strong{font-size:24px;color:#29384d}.history-stat>span{color:#5d6b7f}.history-line-chart{margin-top:15px}.history-periods{border-color:var(--border);gap:5px}.history-periods button{color:#5d6b7f;background:#f4f6fa;border-radius:4px;min-height:44px}.history-periods button[aria-pressed=true]{background:#1769e0;color:white}.history-periods button:hover{background:#e3edff;color:#1769e0}.history-line-legend{font-weight:500}.history-chart-tooltip{background:#f6f8fc;padding:10px 12px;border-radius:4px}.history-line-chart text,#freedom-remaining-chart text{fill:#647185}.history-line-chart circle:focus{stroke:#172d42}
.allocation-track,.profit-bar{background:#edf0f5}.legend-item{margin-bottom:22px}.income-grid{margin-top:12px}.income-grid strong,.profit-stats strong{color:#354259}.income-grid>div{padding:14px;background:#f8f9fc;border:1px solid #e9edf3;border-radius:4px}
table{font-size:12px}th{color:#647185;background:#f6f8fb;font-weight:600}th,td{padding:13px 14px;border-color:#e6eaf1}tbody tr:hover{background:#f2f6fc}.table-wrap{scrollbar-color:#adb8c8 #f4f6f9}.daily-table th,.daily-table th:first-child,.daily-table td:first-child{background:#f1f4f9}.daily-table td:nth-child(2){background:#f8fafc}.daily-table tbody tr:nth-child(even){background:#fafbfd}.positive{color:var(--positive)}.negative,.error{color:var(--negative)!important}.delete-transaction{background:#fff1f3;color:#bd2845;border-color:#f2c8d0}.delete-transaction:hover:not(:disabled){background:#ffe2e8}
.freedom-card{background:white;border:1px solid #dfe6ef;border-top:3px solid #1769e0;border-radius:4px;box-shadow:0 2px 5px #28344604}.freedom-card:nth-child(2){border-top-color:#129e89}.freedom-card:nth-child(3){border-top-color:#ad7400}.freedom-card>strong{color:#1769e0;font-size:28px}.freedom-card progress{accent-color:#129e89}.freedom-main-value{color:#1769e0;font-weight:600}.freedom-day-detail{background:#f6f8fc;border-color:#dde5ef;border-radius:4px}.freedom-day-detail h3{color:#354259}.freedom-assumption{background:#f6f8fc;border-left:3px solid #1769e0;border-radius:4px}.freedom-period-row{border-color:var(--border)}#official-limit-settings .table-wrap{max-height:360px}#official-limit-settings a{color:#1769e0}
.entry{min-height:calc(100vh - 180px)}.intro h1{font-weight:600;color:#29384d}.line{background:#1769e0}.login-panel{padding:36px;border-top:3px solid #1769e0}.brand{color:#29384d}.private{color:var(--muted);background:white}.topics span{padding:6px 14px;background:#e2e9f4;border-radius:4px;color:#445875}
@media(min-width:1500px){.authenticated main{padding-left:38px;padding-right:38px}.terminal-topbar{margin-left:-38px;margin-right:-38px;padding-left:38px;padding-right:38px}}
@media(max-width:1200px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr}.metrics strong{font-size:24px}}
@media(max-width:900px){.sidebar{width:208px}.authenticated main,.authenticated footer{margin-left:208px}.authenticated main{padding:0 20px 28px}.terminal-topbar{margin:0 -20px 22px;padding:0 20px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics>div:last-child{grid-column:1/-1}.freedom-cards{grid-template-columns:1fr}.terminal-kicker>span{display:none}}
@media(max-width:720px){.sidebar{position:static;width:100%;padding:0 12px 12px}.sidebar-brand{height:60px;padding:0 8px;border:0}.sidebar .tabs{padding:0;display:flex;flex-direction:row;overflow-x:auto;margin:0}.sidebar .tabs button{width:auto;white-space:nowrap;gap:7px;min-height:44px;padding:10px 12px}.nav-icon{width:17px;height:17px}.sidebar-bottom{display:flex;padding:10px 0 0;border:0;margin:0}.sidebar-bottom button{margin:0}.authenticated main,.authenticated footer{margin-left:0}.authenticated main{padding:0 14px 24px}.terminal-topbar{margin:0 -14px 20px;padding:0 14px;height:52px}.terminal-kicker,.terminal-account{font-size:10px}.panel{padding:18px}.heading h1{font-size:25px}.metrics{gap:10px}.metrics>div{padding:16px 13px}.metrics strong{font-size:21px}.notebook-panel{align-items:flex-start;gap:10px;flex-direction:column}.scope-controls{width:100%}.history-summary{grid-template-columns:1fr 1fr;gap:10px}.history-stat{padding:12px}.history-stat strong{font-size:20px}.freedom-heading{gap:12px}.freedom-main-value{font-size:35px}.income-grid{gap:10px}.income-grid strong{font-size:19px}.market-toolbar{gap:10px}.market-toolbar button{font-size:12px}.total-line{padding:12px 14px}.entry{min-height:auto}.login-panel{padding:24px}}
.metrics>div:has(.positive){background:#15845f}.metrics>div:has(.negative){background:#c73550}
.freedom-card-title{display:block;font-size:14px;font-weight:600;margin-bottom:12px;color:#354259}
button.freedom-card{width:100%;text-align:left;color:var(--ink);font-weight:400;position:relative;padding:24px 20px 20px;transition:background .18s,border-color .18s,box-shadow .18s}
button.freedom-card:hover:not(:disabled){background:#f6f9ff;border-color:#95b5ef}
button.freedom-card[aria-pressed=true]{background:#eff5ff;border-color:#1769e0;box-shadow:0 0 0 1px #1769e0}
button.freedom-card[aria-pressed=true]::after{content:'✓ Seçili';position:absolute;right:12px;top:8px;font-size:11px;font-weight:600;color:#1769e0}
.freedom-selection-note{max-width:none;font-size:12px;margin:22px 0 -8px}
.freedom-target-panel>h2{border:0;padding:0;margin:0 0 30px}
.freedom-target-panel .freedom-selection-note{margin:0 0 16px}
.freedom-target-panel .freedom-cards{margin-top:0}
.freedom-calculation-info{margin:12px 0;color:var(--muted);font-size:12px}
.freedom-calculation-info summary{font-size:12px;min-height:32px;font-weight:500}
#freedom-message:empty,#freedom-source-note:empty{display:none}
.freedom-table{width:100%;max-width:100%;overflow:auto}
.freedom-table table{width:100%;min-width:1320px;table-layout:fixed;font-size:12px;white-space:normal}
.freedom-table th,.freedom-table td{padding:10px 8px;line-height:1.5;vertical-align:middle}
.freedom-table th{white-space:normal;overflow-wrap:break-word}
#freedom-days td{white-space:normal;overflow-wrap:break-word}
.freedom-table th:nth-child(1){width:6%}.freedom-table th:nth-child(2){width:7%}.freedom-table th:nth-child(3){width:6%}.freedom-table th:nth-child(4){width:8%}.freedom-table th:nth-child(5){width:8%}.freedom-table th:nth-child(6){width:4.5%}.freedom-table th:nth-child(7){width:8%}.freedom-table th:nth-child(8){width:6.5%}.freedom-table th:nth-child(9){width:6.5%}.freedom-table th:nth-child(10){width:6%}.freedom-table th:nth-child(11){width:7%}.freedom-table th:nth-child(12){width:5%}.freedom-table th:nth-child(13){width:7%}.freedom-table th:nth-child(14){width:7%}.freedom-table th:nth-child(15){width:7.5%}
.freedom-table th:nth-child(2),.freedom-table th:nth-child(3),.freedom-table th:nth-child(5),.freedom-table th:nth-child(6),.freedom-table th:nth-child(7),.freedom-table th:nth-child(10),.freedom-table th:nth-child(15),#freedom-days td:nth-child(2),#freedom-days td:nth-child(3),#freedom-days td:nth-child(5),#freedom-days td:nth-child(6),#freedom-days td:nth-child(7),#freedom-days td:nth-child(10),#freedom-days td:nth-child(15){text-align:right}
.freedom-table th:first-child,#freedom-days td:first-child{position:sticky;left:0;z-index:1;background:#f6f8fb;box-shadow:1px 0 0 var(--border)}
#freedom-days .freedom-day-button{color:#1769e0;white-space:nowrap;font-size:12px;padding:0;min-height:44px}
#freedom-days .freedom-day-button:hover:not(:disabled){background:#e8f0ff;color:#1256bd}
#freedom-days .positive{color:var(--positive)}#freedom-days .negative{color:var(--negative)}
.transaction-actions{white-space:nowrap}.transaction-actions button+button{margin-left:8px}
#transaction-edit-dialog{width:min(760px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--ink);padding:24px;box-shadow:0 20px 70px #172d4233}
#transaction-edit-dialog::backdrop{background:#172d4266}
#transaction-edit-dialog h2{font-size:20px}#transaction-edit-dialog .manual-form{grid-template-columns:repeat(2,minmax(0,1fr))}
#edit-summary{background:#f5f8fc;border:1px solid var(--border);padding:14px;border-radius:4px;max-width:none}
@media(max-width:520px){#transaction-edit-dialog{padding:18px}#transaction-edit-dialog .manual-form{grid-template-columns:1fr}}
input[data-calculated=true]{background:#eff8f5;border-color:#9acdbd}
.freedom-projection{background:#f7f9fc;border:1px solid var(--border);border-radius:6px;padding:18px;margin-bottom:22px;min-width:0}
.projection-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.projection-heading>p{margin:0;max-width:none;font-size:13px;color:var(--ink)}
.projection-modes{display:flex;gap:4px;flex-shrink:0}.projection-modes button{min-height:44px;margin:0;background:#eaf0f8;color:var(--muted);border:1px solid transparent;padding:8px 12px;width:auto;font-size:12px}.projection-modes button[aria-pressed=true]{background:var(--accent);color:white}
.projection-assumptions{font-size:12px;max-width:none!important;margin:12px 0}.projection-legend{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:12px;margin:14px 0}
.projection-key{display:inline-flex;align-items:center;gap:6px}.projection-key:before{content:'';width:22px;border-top:2px solid var(--accent)}.projection-current:before{border-color:var(--positive);border-top-style:dashed}.projection-needed:before{border-color:var(--muted);border-top-style:dotted}
.freedom-projection svg{display:block;width:100%;height:auto}.freedom-projection svg text{font-size:11px;fill:var(--muted)}.projection-grid{stroke:var(--border);stroke-dasharray:3 5}.projection-future-area{fill:#1769e0;fill-opacity:.025}.projection-goal-line{stroke:var(--accent);stroke-dasharray:4 5;stroke-width:1.5}.projection-today-line{stroke:var(--muted);stroke-dasharray:2 4}
.projection-point{cursor:crosshair}.projection-point:focus,.projection-point:hover{fill:var(--accent);stroke:var(--ink);stroke-width:2;r:6;outline:none}
.projection-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.projection-controls .history-periods{border:0;margin:8px 0;flex-wrap:wrap}.projection-target-toggle{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;min-height:44px}.projection-target-toggle input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.projection-detail{border-top:1px solid var(--border);padding-top:12px;min-height:38px;max-width:none!important;font-size:12px;margin:8px 0 0}.projection-empty{min-height:220px;display:grid;place-items:center;text-align:center}
@media(max-width:720px){.freedom-projection{padding:14px}.projection-heading{flex-direction:column}.projection-modes{align-self:start}}
.daily-performance{padding:18px 20px;background:var(--surface);border:1px solid var(--border);border-radius:4px;margin:0 0 22px}
.daily-performance-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}.daily-performance-heading h3{font-size:14px;margin:0}.daily-performance-heading>span{font-size:12px;color:var(--muted)}
.daily-performance-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.daily-performance-cards>div{min-width:0}.daily-performance-cards span{display:block;font-size:12px;color:var(--muted)}.daily-performance-cards strong{display:block;font-size:24px;margin-top:6px;font-variant-numeric:tabular-nums}
.daily-performance .positive{color:var(--positive)}.daily-performance .negative{color:var(--negative)}
.daily-performance details,.daily-return-help{margin-top:14px;font-size:12px}.daily-performance summary,.daily-return-help summary{color:var(--muted);cursor:pointer}.daily-performance details p,.daily-return-help p{max-width:none;font-size:12px}
.freedom-target-panel .daily-performance{background:#f7f9fc}
.freedom-table table{min-width:1480px}.freedom-table th:nth-child(16){width:7%}.freedom-table th:nth-child(17){width:6%}.freedom-table th:nth-child(16),.freedom-table th:nth-child(17),#freedom-days td:nth-child(16),#freedom-days td:nth-child(17){text-align:right}
@media(max-width:520px){.daily-performance{padding:16px 14px}.daily-performance-cards{gap:12px}.daily-performance-cards strong{font-size:21px}}
.report-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start;margin:18px 0 24px}
.report-controls{min-width:0}.report-controls>p{max-width:none;margin-top:0}.report-controls #report-message{margin-top:20px}
.report-pnl-panel{min-width:0;background:#f7f9fc;border:1px solid var(--border);border-radius:6px;padding:18px 16px 12px}
.report-pnl-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:14px}
.report-pnl-heading h3{font-size:14px;margin:0 0 6px;color:var(--ink)}.report-pnl-heading span{font-size:12px;color:var(--muted)}
.report-pnl-heading strong{font-size:24px;white-space:nowrap}.report-pnl-heading .positive{color:var(--positive)}.report-pnl-heading .negative{color:var(--negative)}
#report-pnl-chart svg{display:block;width:100%;height:auto;overflow:visible}#report-pnl-chart text{font-size:11px;fill:var(--muted)}
.report-pnl-grid{stroke:var(--border);stroke-dasharray:3 5}.report-pnl-zero{stroke:var(--muted);stroke-dasharray:5 4;stroke-width:1.2}
.report-pnl-point{cursor:crosshair}.report-pnl-point:hover,.report-pnl-point:focus{r:6;stroke:var(--ink);stroke-width:2;outline:none}
#report-pnl-detail{font-size:12px;max-width:none;min-height:36px;margin:6px 0 0;color:var(--muted)}
.report-pnl-empty{min-height:240px;display:grid;place-items:center;text-align:center;margin:0!important;max-width:none!important}
@media(max-width:1100px){.report-top-grid{grid-template-columns:1fr;gap:20px}}
@media(max-width:520px){.report-pnl-panel{padding:14px 10px 10px}.report-pnl-heading strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.income-grid small{display:block;margin-top:4px;font-size:12px;color:var(--muted)}.income-grid strong.positive{color:var(--positive)}.income-grid strong.negative{color:var(--negative)}
.projection-fx{display:grid;grid-template-columns:auto 96px;align-items:center;gap:4px 10px;margin:0;font-size:12px;flex-basis:100%}.projection-fx input{min-height:40px;margin:0}.projection-fx small{grid-column:1/-1;color:var(--muted)}
.notification-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
