.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.theme-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:left;white-space:normal;padding:12px;border-radius:14px;font-weight:400}.theme-card[aria-pressed=true]{border:2px solid var(--green);padding:11px;box-shadow:0 0 0 3px var(--mint)}.theme-card strong{font-size:13px;margin-top:3px}.theme-card small{font-size:11px;font-weight:400;line-height:1.5}.theme-selected{font-size:10px;font-weight:700;color:var(--green);margin-top:auto;padding-top:7px}.theme-preview{height:100px;border-radius:8px;display:flex;overflow:hidden;border:1px solid #0000000a;background:#f5f7f1;flex-shrink:0}.theme-preview-nav{width:24%;background:#203d2a;display:block}.theme-preview-content{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px;flex:1}.theme-preview-content i{display:block;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000000c}.theme-preview-content i:first-child{grid-column:1/-1;background:#dcebcf;border-top:3px solid #ff7333}.theme-preview-dark{background:#101a28}.theme-preview-dark .theme-preview-nav{background:#0d1421}.theme-preview-dark .theme-preview-content i{background:#26384a}.theme-preview-dark .theme-preview-content i:first-child{background:#29483f;border-top-color:#95c87a}.theme-preview-ocean{background:#eaf1fb}.theme-preview-ocean .theme-preview-nav{background:#1b365b}.theme-preview-ocean .theme-preview-content i:first-child{background:#d7e5fa;border-top-color:#548cce}.theme-preview-lavender{background:#f3effa}.theme-preview-lavender .theme-preview-nav{background:#40305b}.theme-preview-lavender .theme-preview-content i:first-child{background:#e7dcf5;border-top-color:#9d75cd}
:root[data-theme=ocean]{--ink:#1d3456;--muted:#62758f;--line:#dce5f1;--paper:#fff;--bg:#f2f6fc;--green:#2c64ad;--mint:#e5eef9;--theme-nav:#1b365b;--theme-soft:#edf3fb;--theme-selected:#d1e4ff}
:root[data-theme=lavender]{--ink:#392d4e;--muted:#7d6c90;--line:#e5dfee;--paper:#fff;--bg:#f7f4fb;--green:#7954a5;--mint:#eee6f8;--theme-nav:#40305b;--theme-soft:#f2ecf9;--theme-selected:#e6d7f7}
:root[data-theme=dark]{color-scheme:dark;--ink:#e3ebf1;--muted:#a5b5c4;--line:#344658;--paper:#1a2939;--bg:#111c29;--green:#a2cc89;--mint:#294536;--amber:#e5bb76;--red:#ffb4a6;--theme-nav:#0b1521;--theme-soft:#223547;--theme-selected:#27483b;--shadow:0 8px 30px #00000012}
html[data-theme]:not([data-theme=birey]) :is(.panel,.topbar,.stat,.student-card,.day-col,.task-card,dialog,.modal-head,.review-card,.risk-card,.chat-history,.chat-room,.chat-bubble.assistant,.theme-card){background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-theme]:not([data-theme=birey]) :is(input,select,textarea,button:not(.primary):not(.ghost),.countdown-digits b){background:var(--paper);border-color:var(--line);color:var(--ink)}
html[data-theme]:not([data-theme=birey]) :is(.sidebar,.login-story){background:var(--theme-nav)}
html[data-theme]:not([data-theme=birey]) .nav-link.active{background:var(--theme-selected);color:var(--ink);border-left-color:var(--green)}
html[data-theme]:not([data-theme=birey]) :is(.hero,.coach-scope-banner,.program-lock-notice,.next-appointment,.countdown-card,.exam-point-panel,.weekly-sharing,.weekly-insights,.chat-messages,.chat-composer textarea,.chat-thread,.chat-bubble.user,.program-locked select:disabled,.review-numbers span,.review-student-note,.rank-band,.note,.keyvalues>div){background:var(--theme-soft);border-color:var(--line);color:var(--ink)}
html[data-theme]:not([data-theme=birey]) :is(.hero p,.hero h2,.program-lock-notice strong,.program-lock-notice small,.coach-scope-banner strong,.coach-scope-banner small,.coach-scope-banner span,.exam-point-panel p,.exam-point-panel h3,.exam-point-value span,.exam-point-value small,.chat-room-head p,.chat-welcome p,.chat-welcome h3,.chat-bubble small,.chat-bubble p,.chat-consent,.chat-message-label,.chat-voice-status,.chat-read-choice,.chat-history-empty,.chat-privacy-note,.theme-selected){color:var(--ink)}
html[data-theme]:not([data-theme=birey]) :is(.estimated-point,.exam-point-value strong,.exam-point-panel a,.paired-tyt,.review-numbers b){color:var(--green)}
html[data-theme]:not([data-theme=birey]) :is(th,.panel-head,.chat-room-head,.chat-composer,td,.day-title,.modal-head,.modal-foot){border-color:var(--line)}
html[data-theme]:not([data-theme=birey]) th{background:var(--theme-soft);color:var(--muted)}
html[data-theme]:not([data-theme=birey]) :is(label,.stat-foot,.empty strong){color:var(--muted)}
html[data-theme]:not([data-theme=birey]) .primary:hover{background:var(--green);filter:brightness(.9)}
html[data-theme=dark] :is(.notice,.attention-strip,.chat-not-ready){background:#3c3325;color:#f2d6a5;border-color:#645133}
html[data-theme=dark] :is(.notice.info,.contact-strip,.chat-thread.selected,.weekly-ring-card,.branch-card,.report-insights article){background:var(--theme-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .primary{color:#15231b}
html[data-theme=dark] .tag{background:#324237;color:#d5e2ca}html[data-theme=dark] .tag.red{background:#4c2d2a;color:#ffb8a9}html[data-theme=dark] .tag.blue{background:#283d54;color:#b2d4fa}html[data-theme=dark] .tag.amber{background:#493d27;color:#f3d39c}
html[data-theme=dark] :is(.viz-svg,.chart) text{fill:var(--muted)}html[data-theme=dark] :is(.viz-svg,.chart) .viz-value{fill:var(--ink)}
html[data-theme=dark] svg :is([fill=white],[fill="#fff"],[fill="#ffffff"]){fill:var(--paper)}
html[data-theme=dark] .chat-assistant-avatar{background:#2e4538;color:#b2d69b}html[data-theme=dark] .chat-connection.ready{background:#2e4538;color:#c8e7b8}
html[data-theme=dark] .coach-label{background:#294235;color:#d6e9ce}html[data-theme=dark] .coach-label strong{color:#d6e9ce}
/* Heatmap cells remain pale in every theme, so their numbers must remain dark. */
.history-matrix td:is(.heat-0,.heat-1,.heat-2,.heat-3,.heat-4){color:#111}
.history-matrix td.heat-missing{color:#222}
html[data-theme=dark] :is(.weekly-sharing h2,.weekly-daily-bars strong,.analysis-scope){color:var(--ink)}
html[data-theme=dark] .coach-label small{color:#c3d6c2}
html[data-theme=dark] .study-date{color:#111}
html[data-theme=dark] .study-date span{color:#303030}
/* The showcase deliberately keeps pale cards inside the dark theme. */
html[data-theme=dark] :is(.chat-demo-note,.chat-demo-room .chat-room-head,.chat-demo-conversation,.chat-demo-analysis,.chat-demo-practice){color:#111}
html[data-theme=dark] .chat-demo-room .chat-room-head :is(h2,p){color:#111}
html[data-theme=dark] .chat-demo-analysis-head strong{color:#111}
html[data-theme=dark] .chat-demo-conversation .chat-bubble{color:var(--ink)}
.chat-demo-menu,.chat-demo-option,.chat-demo-option strong{min-width:0}
.chat-demo-option{white-space:normal}
.chat-demo-option strong{overflow-wrap:anywhere}
@media(max-width:1000px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.theme-grid{grid-template-columns:1fr}.theme-preview{height:90px}}
@media print{:root[data-theme]{color-scheme:light;--ink:#172f2b;--muted:#617067;--line:#d9e0d7;--paper:#fff;--bg:#fff;--green:#37634a;--theme-soft:#f4f7f0;--mint:#eaf2e5}html[data-theme] body{background:#fff;color:#172f2b}.theme-grid{display:none}}
/* Personal coaching: shared palette keeps every theme readable. */
.chat-clean{max-width:1100px;margin:auto;min-width:0}
.chat-clean-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.chat-clean .chat-history{position:relative;overflow:visible;max-width:480px;min-width:0;padding:0;border:0;background:transparent;flex:1}
.chat-clean .chat-history>summary{cursor:pointer;padding:10px 0;font-weight:700;color:var(--ink)}
.chat-history>summary span{margin-left:8px;color:var(--muted);font-size:12px}
.chat-clean .chat-history-list{position:absolute;top:42px;left:0;right:0;z-index:5;max-height:320px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 16px 40px #0002}
.chat-clean .chat-thread{max-width:100%;white-space:normal;text-align:left;overflow:hidden}
.chat-clean .chat-thread strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
.chat-clean .chat-room{background:var(--paper);border:1px solid var(--line);border-radius:24px;overflow:hidden;min-width:0}
.chat-clean .chat-room-head{background:var(--paper);color:var(--ink);padding:22px 26px}
.chat-clean .chat-room-head h2{color:var(--ink);font-size:22px}
.chat-clean .chat-room-head p{color:var(--muted)}
.chat-clean .chat-assistant-avatar{background:var(--mint);color:var(--green);font-size:30px;border:1px solid var(--line)}
.chat-clean .chat-connection{background:var(--mint);color:var(--ink);border:1px solid var(--line)}
.chat-clean .chat-messages{background:var(--bg);padding:26px;min-height:200px;max-height:540px;overflow:auto}
.chat-clean .chat-welcome{background:transparent;border:0;box-shadow:none;padding:16px 10px;margin:0 auto;max-width:680px;text-align:left;color:var(--ink)}
.chat-clean .chat-welcome h3{font-size:28px;color:var(--ink);margin:12px 0}
.chat-clean .chat-welcome p{color:var(--muted);font-size:15px;line-height:1.7}
.chat-clean .eyebrow{color:var(--green);font-size:11px;letter-spacing:1.4px}
.chat-record-count{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.chat-record-count span{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:12px;color:var(--muted)}
.chat-record-count b{color:var(--ink);font-size:17px;margin-right:4px}
.chat-clean .chat-bubble{max-width:94%;overflow-wrap:anywhere;color:var(--ink)}
.chat-clean .chat-bubble.user{background:var(--mint);border:1px solid var(--line)}
.chat-clean .chat-bubble.assistant{background:var(--paper);border:1px solid var(--line)}
.chat-clean .chat-bubble small{color:var(--green)}
.chat-clean .chat-bubble p{color:var(--ink);line-height:1.8}
.chat-shared-results{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;color:var(--ink)}
.chat-shared-results summary{cursor:pointer;font-size:12px;font-weight:600}
.chat-shared-results pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 inherit;max-height:280px;overflow:auto;padding:12px 0;margin:0}
.chat-clean-audio{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.chat-clean .chat-fixed-questions{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--paper);padding:24px}
.chat-clean .chat-fixed-heading{margin-bottom:8px;color:var(--ink)}
.chat-clean .chat-fixed-heading small{color:var(--green);font-size:10px;letter-spacing:1.3px}
.chat-clean .chat-fixed-heading strong{display:block;font-size:18px;color:var(--ink);margin-top:6px}
.chat-sharing-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 18px;max-width:750px}
.chat-clean .chat-fixed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.chat-clean .chat-fixed-question{display:flex;align-items:center;gap:12px;white-space:normal;min-height:64px;border:1px solid var(--line);background:var(--bg);padding:12px 14px;border-radius:12px;text-align:left;color:var(--ink);box-shadow:none}
.chat-clean .chat-fixed-question span{background:var(--mint);color:var(--green);font-size:11px;flex:0 0 28px;height:28px;border-radius:9px;display:grid;place-items:center}
.chat-clean .chat-fixed-question strong{color:var(--ink);font-size:12px;line-height:1.5;font-weight:600;min-width:0}
.chat-clean .chat-fixed-question:hover:not(:disabled){border-color:var(--green);background:var(--mint);transform:translateY(-1px)}
.chat-clean .chat-fixed-question:disabled{opacity:.5}
.chat-clean .chat-fixed-question{justify-content:flex-start}
.chat-clean-foot{text-align:center;color:var(--muted);font-size:11px;margin:14px}
.chat-clean .chat-inline-analysis,.chat-clean .chat-inline-graph,.chat-clean .chat-inline-sources{background:var(--paper);color:var(--ink);border-color:var(--line)}
.chat-clean .chat-inline-analysis>span,.chat-clean .chat-inline-range,.chat-clean .chat-inline-graph>span{color:var(--muted)}
.chat-clean .chat-inline-graph strong,.chat-clean .chat-inline-sources strong{color:var(--ink)}
.chat-clean .chat-inline-label,.chat-clean .chat-inline-value,.chat-clean .chat-inline-axis{fill:var(--ink)}
.chat-clean .chat-inline-sources a{color:var(--green)}
@media(max-width:640px){.chat-clean .chat-room-head,.chat-clean .chat-messages,.chat-clean .chat-fixed-questions{padding:16px}.chat-clean .chat-fixed-grid{grid-template-columns:1fr}.chat-clean .chat-welcome h3{font-size:23px}.chat-clean .chat-bubble{max-width:100%}.chat-clean .chat-connection{font-size:10px;padding:6px}.chat-clean .chat-room-head p{font-size:11px}.chat-clean-audio{padding:10px 14px}.chat-clean .chat-history{max-width:65%}}

.chat-analysis-quota{font-size:12px;color:var(--muted);text-align:right}.chat-analysis-quota b{font-size:16px;color:var(--ink)}.chat-analysis-quota small{display:block;margin-top:4px;font-size:11px}@media(max-width:600px){.chat-fixed-heading{flex-wrap:wrap;gap:12px}.chat-analysis-quota{text-align:left}}
/* Giriş/parola sıfırlama paneli her temada açık zeminlidir; yazı renkleri okunur kalsın. */
html[data-theme]:not([data-theme=birey]) .login-form-wrap{--ink:#172f2b;--muted:#617067;--line:#d9e0d7;--paper:#fff;--theme-soft:#eaf1e7;--green:#1f6952;color:#172f2b}
html[data-theme]:not([data-theme=birey]) .login-form-wrap :is(h2,label,p,small){color:inherit}
html[data-theme]:not([data-theme=birey]) .login-form-wrap :is(p,small,label){color:#617067}
html[data-theme]:not([data-theme=birey]) .login-form-wrap .primary{color:#fff}
