/* Proton yönetici paneli: gerçek siyah AMOLED koyu tema. Açık tema değişmez. */
html[data-theme="dark"]{
 color-scheme:dark;
 --page:#000;
 --topbar:rgba(0,0,0,.97);
 --nav:#000;
 --navy:#000;
 --surface:#070707;
 --surface-soft:#101010;
 --card:#070707;
 --panel:#0b0b0b;
 --ink:#f2f2f2;
 --muted:#b4b4b4;
 --line:#323232;
 --blue:#80b8ee;
 --red:#ef9299;
 --red-soft:#2b1015;
 --green-soft:#10271b;
 --amber-soft:#2b2212;
 --shadow:0 12px 35px rgba(0,0,0,.7);
}
html[data-theme="dark"],
html[data-theme="dark"] body{background:#000;color:var(--ink)}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .control-strip{background:#000;border-color:var(--line)}
html[data-theme="dark"] .bottom-nav{background:rgba(0,0,0,.98);border-color:var(--line)}
html[data-theme="dark"] .side-nav,
html[data-theme="dark"] .side-nav-heading{background:#030303;color:var(--ink)}
html[data-theme="dark"] :is(.login-card,.summary-card,.user-card,.user-head,.user-detail,.section-card,.metric,.feedback-item,.reset-point,.reset-point.current,.empty,.proton-modal-card,.proton-modal-head,.proton-feedback-user,.proton-alert-panel,.proton-alert-head){
 background:var(--surface);
 color:var(--ink);
 border-color:var(--line);
}
html[data-theme="dark"] :is(.user-detail,.feedback-item,.proton-feedback-refs,.proton-invite-row,.proton-history-item){border-color:var(--line)}
html[data-theme="dark"] :is(.btn,.icon-btn,.chev){background:#131313;border-color:#383838;color:var(--ink)}
html[data-theme="dark"] .btn.primary{background:#265e90;border-color:#3775a9;color:#fff}
html[data-theme="dark"] .btn.danger{background:#2a1115;border-color:#713038;color:#f7b5bc}
html[data-theme="dark"] .btn.warn{background:#2b2111;border-color:#705128;color:#f1d19a}
html[data-theme="dark"] :is(.kicker,.status,.pl-hint,.proton-history-hint){color:var(--muted)}
html[data-theme="dark"] :is(.pl-panel,.pl-box,.pl-item,.pl-hero,.pl-control-date,.pl-scan-row,.pl-delete-dialog,.pl-date-dialog,.kla-panel,.kla-pool,.kla-exam,.kla-list>article,.kla-form){
 color:var(--ink);
 border-color:var(--line);
}
html[data-theme="dark"] :is(.pl-hero,.pl-control-date){background:#0a0a0a}
html[data-theme="dark"] :is(.pl-item,.pl-box,.pl-panel,.pl-delete-dialog,.pl-date-dialog,.kla-pool,.kla-exam,.kla-list>article,.kla-form){background:var(--surface)}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){
 color:var(--ink);
 background:var(--panel);
 border-color:#424242;
 color-scheme:dark;
}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea)::placeholder{color:#979797}
html[data-theme="dark"] :is(input,select,textarea):focus-visible{border-color:#80b8ee;outline-color:#80b8ee}
html[data-theme="dark"] :is(.pl-toolbar input,.pl-grid input,.pl-grid select,.pl-grid textarea,.pl-box input,.pl-box select,.pl-box textarea,.kla-form input,.kla-form select,.kla-form textarea){
 background:var(--panel);
 color:var(--ink);
 border-color:#424242;
}
html[data-theme="dark"] input[type="date"]{
 background:#0b0b0b;
 color:#f5f5f5;
 color-scheme:dark;
 accent-color:#80b8ee;
}
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-fields-wrapper{color:#f5f5f5}
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator{
 filter:brightness(0) invert(1);
 opacity:.9;
 cursor:pointer;
}
html[data-theme="dark"] .pl-control-selected{color:#f2f2f2}
html[data-theme="dark"] .pl-delete-warning{background:#2b1015;color:#f2a4ab}
html[data-theme="dark"] :is(#pl-delete-code,#pl-delete-all-code){color:#f5f5f5;background:#101010;border-color:#424242}
html[data-theme="dark"] :is(#pl-delete-submit,#pl-delete-all-submit){background:#89323d;border-color:#a44651;color:white}
html[data-theme="dark"] .pl-scan-delete{color:#f3a7b0}
html[data-theme="dark"] .proton-invite-row.used{background:#261015;border-color:#743039;color:#ffbbc1}
html[data-theme="dark"] .proton-invite-row.used :is(strong,small,span){color:inherit}
html[data-theme="dark"] .kla-root button:not(.kla-tabs button){background:#151515;border-color:#424242;color:#c2dfff}
html[data-theme="dark"] .kla-root .btn.primary{background:#265e90;border-color:#3775a9;color:#fff}
.pl-list-actions{display:flex;justify-content:flex-end;gap:8px;margin:-2px 0 9px}
#pl-delete-all-open{font-size:.78rem;min-height:36px}
#pl-delete-all-open:disabled{opacity:.5;cursor:not-allowed}
#pl-delete-all-submit{background:#b54d55;color:#fff;border:1px solid #b54d55}
#pl-delete-all-submit:disabled{opacity:.45;cursor:not-allowed}
.pl-delete-all-message{min-height:20px;font-size:.83rem;line-height:1.5;color:var(--muted);margin:10px 0}


/* Toplu mevzuat taraması: tema uyumlu durum ve sonuç görünümü */
.pl-batch-results{margin:12px 0 16px;padding:14px;border:1px solid var(--line,#dfe4eb);border-radius:14px;background:var(--card,#fff);color:var(--ink,#172234)}
.pl-batch-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line,#dfe4eb)}
.pl-batch-head strong{font-size:.92rem}
.pl-batch-head small{font-size:.78rem;color:var(--muted,#6d7888);font-variant-numeric:tabular-nums}
.pl-batch-rows{display:grid;gap:8px;margin-top:11px}
.pl-batch-row{display:grid;grid-template-columns:minmax(116px,140px) minmax(0,1fr);align-items:center;gap:12px;padding:11px;border:1px solid var(--line,#dfe4eb);border-radius:10px;background:var(--surface-soft,#f5f7fa);font-size:.81rem}
.pl-batch-row strong{font-size:.81rem}
.pl-batch-message{overflow-wrap:anywhere;line-height:1.45;color:var(--muted,#6d7888)}
.pl-batch-row[data-state="ok"]{border-color:rgba(66,153,107,.5)}
.pl-batch-row[data-state="skipped"]{border-color:rgba(110,135,165,.4)}
.pl-batch-row[data-state="error"]{border-color:rgba(190,93,93,.65)}
.pl-batch-row[data-state="ok"] .pl-batch-message{color:#327851}
.pl-batch-row[data-state="error"] .pl-batch-message{color:#a43a49}
html[data-theme="dark"] .pl-batch-results{background:#070707;border-color:#323232}
html[data-theme="dark"] .pl-batch-row{background:#111;border-color:#333;color:#f2f2f2}
html[data-theme="dark"] .pl-batch-row[data-state="ok"]{border-color:#236c48}
html[data-theme="dark"] .pl-batch-row[data-state="error"]{border-color:#93414b}
html[data-theme="dark"] .pl-batch-row[data-state="ok"] .pl-batch-message{color:#a4d9b6}
html[data-theme="dark"] .pl-batch-row[data-state="error"] .pl-batch-message{color:#ffadb6}
@media(max-width:520px){.pl-batch-row{grid-template-columns:1fr;gap:5px}}


/* Günlük mevzuat özeti: mevcut listeden hesaplanır, ek sunucu işlemi yok. */
.pl-daily-summary{margin:14px 0 18px;padding:16px;border:1px solid var(--line,#dfe4eb);border-radius:15px;background:var(--card,#fff);color:var(--ink,#172234)}
.pl-daily-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.pl-daily-summary-head h4{margin:0 0 5px;font-size:.96rem}
.pl-daily-summary-head p{margin:0;color:var(--muted,#6d7888);font-size:.75rem;line-height:1.4}
#pl-daily-date{font-variant-numeric:tabular-nums;font-size:.79rem;font-weight:800;white-space:nowrap;border:1px solid var(--line,#dfe4eb);padding:6px 9px;border-radius:9px;background:var(--surface-soft,#f5f7fa)}
.pl-daily-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pl-daily-metric{min-width:0;padding:12px;border:1px solid var(--line,#dfe4eb);border-radius:11px;background:var(--surface-soft,#f5f7fa);display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.pl-daily-metric small{color:var(--muted,#6d7888);font-size:.7rem;line-height:1.4}
.pl-daily-metric strong{font-size:1.55rem;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.pl-daily-detail,.pl-daily-footnote{margin:10px 0 0;color:var(--muted,#6d7888);font-size:.72rem;line-height:1.5}
.pl-daily-footnote{margin-top:3px}
html[data-theme="dark"] .pl-daily-summary{background:#070707;border-color:#323232}
html[data-theme="dark"] .pl-daily-metric,html[data-theme="dark"] #pl-daily-date{background:#101010;border-color:#353535;color:var(--ink)}
@media(max-width:680px){.pl-daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.pl-daily-summary{padding:12px}.pl-daily-summary-head{flex-wrap:wrap}.pl-daily-metric{padding:10px}}
