/* Mustili ortak tasarım sistemi: renkler yalnız tema tokenlarından gelir. */
:root{color-scheme:light;--page:#f3f5f8;--card:#fff;--sidebar:#182432;--text:#202d3b;--secondary:#596b7d;--border:#dce3eb;--muted:#718092;--accent:#087e82;--accent-text:#fff;--success:#147446;--warning:#885a08;--danger:#ba283e;--info:#265e9e;--input:#fff;--table-header:#edf2f7;--hover:#edf5f5;--focus:#00a3ac;--soft-danger:#fff0f2;--soft-warning:#fff5dd;--soft-success:#eaf7f0;--nav-text:#c5d4e2;--nav-active:#214954;--radius:10px;--shadow:0 2px 8px #16283b09;--space:16px;--font-small:12px;--font-body:14px;--font-title:26px;--ink:var(--text);--green:var(--accent);--line:var(--border);--paper:var(--page)}
:root[data-theme=dark]{color-scheme:dark;--page:#111923;--card:#1b2734;--sidebar:#0d1520;--text:#e5edf5;--secondary:#b0becd;--border:#364555;--muted:#a2b2c3;--accent:#66d3c7;--accent-text:#10282a;--success:#78d7a8;--warning:#f2c66c;--danger:#ff9bae;--info:#8cbefb;--input:#14202d;--table-header:#243444;--hover:#263d47;--focus:#83ece6;--soft-danger:#432832;--soft-warning:#393323;--soft-success:#203c34;--nav-text:#bdccdc;--nav-active:#203c49;--shadow:0 2px 8px #0003}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font:var(--font-body)/1.5 'Segoe UI',Arial,sans-serif}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:7px;background:var(--accent);color:var(--accent-text);cursor:pointer;font-weight:600;line-height:1.4;white-space:nowrap}button:hover,.button:hover{filter:brightness(.94);text-decoration:none}.quiet,button.quiet,.button.quiet{background:var(--hover);color:var(--text);border-color:var(--border)}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:var(--sidebar);color:var(--nav-text);padding:20px 12px;display:flex;flex-direction:column;overflow:auto;z-index:50}.brand{color:var(--nav-text);font-weight:750;font-size:18px;padding:8px 12px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:1.3px;margin-top:5px}.logo-placeholder{font-size:10px;font-weight:400;display:block;opacity:.7}.nav-label{font-size:10px;letter-spacing:1.2px;color:var(--muted);margin:24px 12px 8px}nav a,nav summary{display:flex;align-items:center;gap:8px;color:var(--nav-text);padding:9px 12px;margin:3px 0;border-radius:6px;border-left:3px solid transparent;font-size:13px;cursor:pointer}nav a:hover,nav summary:hover{background:var(--hover);text-decoration:none}nav a[aria-current=page],nav .active>summary{background:var(--nav-active);border-left-color:var(--accent);color:var(--accent);font-weight:650}.nav-children{margin-left:12px}.sidebar-bottom{margin-top:auto;font-size:11px;padding:24px 12px}.workspace{margin-left:230px;min-width:0}header{min-height:66px;background:var(--card);border-bottom:1px solid var(--border);padding:10px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px}.account{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}.account form{margin:0}.theme-form{display:flex;align-items:center;gap:6px}.theme-form select{width:94px!important}.demo{background:var(--soft-warning);color:var(--warning);padding:7px 26px;font-size:11px}main{padding:22px 26px;max-width:1800px;min-height:80vh;min-width:0}.page-head,.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.page-head p{margin:3px 0}.breadcrumb-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px;color:var(--secondary);font-size:12px}.breadcrumb-bar .back{margin-left:auto}h1{font-size:var(--font-title);line-height:1.25;margin:5px 0 12px;letter-spacing:-.5px}h2{font-size:17px;margin:0 0 14px}h3{font-size:14px;margin:0 0 8px}.eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--secondary);font-weight:700}.muted,.helptext{color:var(--secondary)}.helptext{display:block;font-size:12px;margin-top:5px;max-width:680px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin-bottom:16px;min-width:0}.stats,.metric-grid,.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.dashboard-grid>.card,.metric-grid>.card,.stats>.card{margin:0}.dashboard-grid,.stats,.metric-grid{margin-bottom:18px}.stats strong,.metric-value{font-size:24px}.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-card{max-width:960px}.form-card form>p{margin:0 0 15px}.form-card form{display:block}label{display:block;font-size:12px;font-weight:600;margin-bottom:5px}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{display:block;max-width:100%;width:300px;border:1px solid var(--border);border-radius:7px;padding:8px 10px;color:var(--text);background:var(--input);min-height:38px}textarea{width:680px;min-height:100px;resize:vertical}input[type=date],input[type=time],input[type=month],input[type=number],.field-small{width:160px!important}input[type=file]{width:460px!important;padding:10px;border-style:dashed!important}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:17px;height:17px;vertical-align:middle}input:disabled,select:disabled{opacity:.65}fieldset{border:1px solid var(--border);border-radius:8px;padding:12px}legend{font-size:12px;color:var(--secondary)}details>summary{cursor:pointer;padding:9px 0;font-weight:600}details{margin-bottom:12px}.toolbar,.filter-grid,.account-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}.toolbar label,.filter-grid label{margin:0}.filter-grid input,.filter-grid select{width:190px!important}.filter-grid input[name=id_query]{width:145px!important}.filter-grid input[name=period]{width:110px!important}.column-option{display:inline-flex;gap:6px;align-items:center;margin:8px 12px 8px 0;font-weight:400}.table-wrap{overflow:auto;max-height:72vh;border:1px solid var(--border);border-radius:8px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap;vertical-align:middle}th{position:sticky;top:0;z-index:2;background:var(--table-header);color:var(--secondary);font-weight:650;font-size:11px}th button{padding:0;min-height:28px;background:none;color:var(--text);border:0;font-size:11px}tbody tr:hover{background:var(--hover)}td.numeric,th.numeric{text-align:right;font-variant-numeric:tabular-nums}td:first-child{font-variant-numeric:tabular-nums}.pill,.badge{display:inline-block;font-size:11px;padding:3px 7px;background:var(--soft-success);color:var(--success);border-radius:5px;white-space:nowrap}.warning{background:var(--soft-warning);color:var(--warning)}.danger{background:var(--soft-danger);color:var(--danger)}.notice{padding:12px 16px;border:1px solid var(--border);background:var(--soft-success);border-radius:8px;margin-bottom:16px}.errorlist{list-style:none;border-left:3px solid var(--danger);background:var(--soft-danger);color:var(--danger);padding:10px 14px;border-radius:7px}.reminder-banner{display:block;background:var(--soft-danger);color:var(--danger);border:1px solid var(--danger);border-radius:8px;padding:14px 18px;margin-bottom:18px;font-weight:650}.toast{position:relative;padding-right:48px}.toast-close{position:absolute;right:5px;top:5px;padding:4px 8px;background:transparent;color:var(--text);font-size:20px}.empty{text-align:center;padding:24px;color:var(--secondary)}.empty::before{content:'◇';display:block;font-size:24px;color:var(--muted)}.pagination,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.pagination span{margin-right:auto}.pagination form{margin:0}.permission-group{padding:12px;border:1px solid var(--border);border-radius:8px}.permission-item{padding:8px 0;border-bottom:1px solid var(--border)}.password-rules{padding-left:18px;font-size:12px}.password-rules .satisfied{color:var(--success)}.password-rules .pending{color:var(--secondary)}dl{display:grid;grid-template-columns:minmax(100px,160px) minmax(0,1fr);gap:10px;font-size:13px}dt{color:var(--secondary)}dd{margin:0;overflow-wrap:anywhere}.photo-grid{display:flex;gap:16px;flex-wrap:wrap}figure{margin:0}figure img{max-width:220px;max-height:260px;object-fit:contain;border-radius:8px}figcaption{font-size:12px;color:var(--secondary)}.secret{display:block;background:var(--input);padding:16px;overflow-wrap:anywhere}.preline{white-space:pre-line}pre,.pk-history,.evidence-hash{white-space:pre-wrap;overflow-wrap:anywhere}.evidence-image{max-width:100%;max-height:600px;object-fit:contain}.period-bar{display:flex;align-items:center;gap:12px;padding:12px 16px}.period-bar form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.period-bar input{width:108px!important}.period-meta{margin-left:auto;color:var(--secondary);font-size:11px}.task-row{padding:10px 0;border-bottom:1px solid var(--border)}footer{padding:16px 26px;border-top:1px solid var(--border);font-size:11px;color:var(--secondary)}.public-workspace{max-width:490px;margin:8vh auto}.public-workspace main{min-height:0}.public-workspace input{width:100%!important}.login-card button{width:100%}.drawer-toggle,.drawer-close,.drawer-backdrop{display:none}.loading{opacity:.65;pointer-events:none}.loading::after{content:'Yükleniyor…';position:fixed;bottom:16px;right:16px;background:var(--card);color:var(--text);padding:12px;border:1px solid var(--border)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){.sidebar{width:210px}.workspace{margin-left:210px}main{padding:18px}.split{grid-template-columns:1fr}.account{gap:8px}.stats,.dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
@media(max-width:760px){.sidebar{width:min(300px,85vw);transform:translateX(-105%);transition:transform .15s}.sidebar.open{transform:translateX(0)}.workspace{margin:0}.drawer-toggle,.drawer-close{display:inline-flex}.drawer-close{align-self:end}.drawer-backdrop.open{display:block;position:fixed;inset:0;background:#0008;z-index:40;border:0;border-radius:0}.account{justify-content:flex-end}.account>a:first-child{max-width:130px;overflow:hidden;text-overflow:ellipsis}header{padding:10px 12px;align-items:start;flex-wrap:wrap}.demo{padding:7px 12px}main{padding:16px 12px}.page-head{flex-wrap:wrap}.card{padding:14px}.stats,.dashboard-grid,.metric-grid{grid-template-columns:minmax(0,1fr)}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{width:100%;max-width:100%}.filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid input,.filter-grid select,.filter-grid input[name=id_query]{width:100%!important}.filter-grid label{min-width:0}.actions button,.actions .button{min-height:42px}.period-meta{width:100%;margin:0}.period-bar{flex-wrap:wrap}.breadcrumb-bar{gap:6px}th,td{padding:9px 10px}button,.button{min-height:40px}.public-workspace{margin:4vh auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Anonim auth shell: uygulama menüsü olmadan ortak marka ve form sistemi. */
.login-brand{text-align:center;margin:2px 0 22px}
.login-brand img{display:block;width:180px;height:50px;object-fit:contain;margin:auto}
.public-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,var(--hover),var(--page) 48%)}
.public-page .public-workspace{width:min(100% - 28px,460px);margin:0}
.public-page .public-workspace main{padding:0}
.login-card{padding:30px;margin:0}
.login-card form>p{margin:0 0 17px}
.login-card>p{text-align:center;margin:18px 0 0}
.login-card .password-input-wrap{width:100%}
.login-card button[type=submit]{width:100%;margin-top:4px}
.login-card .password-toggle{width:auto;min-width:78px}
@media(max-width:480px){.login-card{padding:22px 18px}.login-brand{margin-bottom:18px}}

.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start;grid-auto-rows:max-content}.dashboard-grid>.stats,.dashboard-grid>.split{display:contents}.dashboard-grid .card{margin:0;height:auto;align-self:start}.table-wrap th button{white-space:nowrap;font-size:inherit}.due-banner{display:block;background:var(--soft-danger);color:var(--danger);padding:12px;border-radius:var(--radius);margin-bottom:16px}

:root{--overlay:#0008;--nav-current:#fff}:root[data-theme=dark]{--nav-current:#83ece6}
.sidebar nav a[aria-current=page]{color:var(--nav-current)}.sidebar nav a:hover,.sidebar nav summary:hover{background:var(--nav-active);color:var(--nav-current)}
.menu-toggle{display:none}.appearance-form{display:flex;align-items:center;gap:6px}.appearance-form select{width:92px!important}.appearance-form button{padding:6px;font-size:11px}
.breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px;color:var(--secondary)}.breadcrumbs a{color:var(--accent);padding:0;margin:0;border:0}.back-link{margin-left:auto!important}.notice-close{position:absolute;right:4px;top:3px;background:transparent;color:var(--text);padding:4px 8px}.notice{position:relative;padding-right:40px}
.filter-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:16px 0}.filter-toolbar label{max-width:180px}.card,.metric-grid>*{min-width:0}main nav:not(.breadcrumbs) a{display:inline-flex;color:var(--accent)}
@media(max-width:760px){.menu-toggle{display:inline-flex}.drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:var(--overlay);z-index:40;border:0;border-radius:0}.account{width:100%;justify-content:flex-start}.appearance-form{flex-wrap:wrap}.table-wrap{max-width:100%;overflow-x:auto}main{overflow-wrap:anywhere}.filter-toolbar label{flex:1;min-width:120px}nav.breadcrumbs a{padding:4px 0}}

/* Gerçek marka kaynakları; iki temada aynı biçim/oran, nötr logo yüzeyi. */
:root{--brand-surface:#fff;--brand-border:#e8e9ed;--placeholder:#667587}
:root[data-theme=dark]{--placeholder:#acbbc9}
.sidebar .brand{display:flex;align-items:center;justify-content:center;background:var(--brand-surface);border:1px solid var(--brand-border);border-radius:8px;padding:8px 4px;min-height:68px;margin:0 2px}
.brand-logo{display:block;width:180px;max-width:100%;height:50px;aspect-ratio:18/5;object-fit:contain}
.header-brand{display:flex;gap:7px;align-items:center}.mobile-mark{display:none;object-fit:contain;aspect-ratio:1}
.nav-icon{flex:0 0 18px;width:18px;height:18px;vertical-align:middle}.nav-group summary{list-style:none}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary::after{content:'⌄';margin-left:auto;transition:transform .15s}.nav-group[open] summary::after{transform:rotate(180deg)}.sidebar .nav-group.active>summary{background:var(--nav-active);color:var(--nav-current);border-left-color:var(--accent)}
.theme-toggle{display:inline-flex;align-items:center}.theme-toggle>div{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:9px;background:var(--page);gap:2px}.theme-toggle button{min-height:36px;padding:6px 10px;border-radius:6px;background:transparent;color:var(--secondary);font-size:12px}.theme-toggle button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);box-shadow:var(--shadow)}.theme-toggle button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.dashboard-card__illustration{float:right;display:flex;align-items:center;justify-content:center;width:92px;height:92px;aspect-ratio:1;margin:0 0 10px 14px;padding:3px;border:1px solid color-mix(in srgb,var(--border) 72%,transparent);border-radius:14px;background:color-mix(in srgb,var(--hover) 58%,transparent);pointer-events:none;overflow:hidden}.dashboard-card__illustration img{display:block;width:88px;height:88px;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:1}.dashboard-card__illustration--section{float:none;flex:0 0 82px;width:82px;height:82px;margin:0}.dashboard-card__illustration--section img{width:76px;height:76px}.dashboard-grid .card{display:flow-root}.dashboard-grid .empty{padding:12px}.dashboard-grid .empty::before{display:none}
.diff-summary{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap;margin-top:6px;color:var(--secondary);font-size:12px}.diff-summary strong{color:var(--text)}.diff-table .changed-row>*{background:var(--hover)}.diff-table .changed-row>th{box-shadow:inset 3px 0 0 var(--accent)}.diff-table .proposed-value{font-weight:650}
input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}input[type=file]::file-selector-button{background:var(--hover);color:var(--text);border:1px solid var(--border);border-radius:5px;padding:6px 9px;margin-right:8px}th+th,td+td{border-left:1px solid var(--border)}button.danger,.button.danger{background:var(--soft-danger);color:var(--danger);border-color:var(--danger)}dialog{background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:var(--radius)}dialog::backdrop{background:var(--overlay)}
@media(max-width:760px){.mobile-mark{display:block}.theme-toggle button{min-height:44px;min-width:66px}.dashboard-card__illustration{width:66px;height:66px;margin-left:10px;border-radius:11px}.dashboard-card__illustration img{width:62px;height:62px}.dashboard-card__illustration--section{flex-basis:64px;width:64px;height:64px;margin:0}.dashboard-card__illustration--section img{width:58px;height:58px}.sidebar .brand{max-width:100%}}

.account-profile{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Master audit: ortak içerik ve medya bileşenleri. */
.breadcrumbs .back-link{margin-left:0!important;padding:7px 12px;margin-right:4px}.sidebar nav{margin-top:20px}.compact-clock{display:grid;text-align:right;gap:2px;font-variant-numeric:tabular-nums}.compact-clock strong{font-size:20px}.compact-clock small{color:var(--secondary)}.table-actions,.table-actions form{display:flex;gap:6px;align-items:center;margin:0}.table-actions button{padding:5px 8px;font-size:12px}.due-banner{border:1px solid var(--danger);font-weight:650}
.publisher-union-alert{background:var(--soft-danger);color:var(--danger);border:2px solid var(--danger);border-radius:var(--radius);padding:12px 16px;margin:0 0 16px;font-weight:800;letter-spacing:.02em}
#media-lightbox{width:min(1100px,96vw);max-width:96vw;height:92vh;padding:14px}#media-lightbox .lightbox-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#media-lightbox [data-media=close]{margin-left:auto}.lightbox-stage{height:calc(100% - 130px);overflow:auto;display:grid;place-items:start center}.lightbox-stage img{max-width:100%;max-height:100%;object-fit:contain}.lightbox-stage img.zoomed{max-width:none;max-height:none;width:200%;height:auto}[data-lightbox]{cursor:zoom-in}.date-control{position:relative;display:inline-flex;align-items:center;max-width:100%;gap:5px}.date-control>input:first-child{width:160px!important}.date-control>input.native-picker{position:absolute;width:38px!important;min-height:38px;height:38px;opacity:0;right:0;top:0;padding:0;pointer-events:auto;cursor:pointer}.date-control>button{min-width:38px}.period-bar .date-control>input:first-child{width:108px!important}canvas[data-chart]{display:block;width:100%;height:300px}
@media(max-width:760px){#media-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.compact-clock{margin-left:auto}.date-control{width:100%}.date-control>input:first-child{width:100%!important}.table-actions button{min-height:44px}.lightbox-tools button{min-height:44px}.breadcrumbs .back-link{padding:7px 10px}}

.action-menu{margin:0}.action-menu>div{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border);background:var(--card)}.action-menu summary{list-style:none}.permission-item small{display:block;color:var(--secondary)}
/* MICO tablosu: sütunlar sıkıştırılmaz; klavye ile yatay kaydırma. */
.publisher-scroll{max-width:100%;overflow-x:auto;position:relative}
.publisher-table{table-layout:auto;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.publisher-table th,.publisher-table td{min-width:140px;max-width:220px;white-space:normal;overflow-wrap:anywhere}
.publisher-table th button{white-space:normal;text-align:left}
.publisher-table [data-column=row]{min-width:60px;width:60px;max-width:60px}
.publisher-table [data-column=external_id]{min-width:125px;width:125px;max-width:125px}
.publisher-table [data-column=nickname]{min-width:170px;width:170px;max-width:170px}
.publisher-table [data-column=full_name]{min-width:180px}
.publisher-table [data-column$=_days]{min-width:110px}
.publisher-table .raw-field{display:block;font-size:11px;color:var(--secondary);padding:0 8px 6px}
.publisher-table .sticky-publisher{position:sticky;left:var(--sticky-left);z-index:2;background:var(--card);box-shadow:1px 0 var(--border)}
.publisher-table th.sticky-publisher{z-index:3;background:var(--table-head,var(--card))}
@media(max-width:760px){.publisher-table [data-column=nickname]{position:static}.publisher-table [data-column=row]{position:static}}
.filter-grid label .date-control{display:flex;margin-top:0}
/* Ortak mesai durumu normal akıştadır; içerik üzerine binmez. */
.shift-status{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 26px;border-bottom:1px solid var(--border);background:var(--hover);color:var(--text);font-size:13px}
.shift-status-own{background:var(--soft-warning);color:var(--warning);border-bottom-color:var(--warning)}
.shift-status-copy{display:flex;gap:8px;align-items:center;min-width:0;flex:1 1 200px;overflow-wrap:anywhere}
.shift-status-copy small{display:block;font-size:12px;margin-top:2px}.shift-status .button{font-size:12px;white-space:normal}
@media(max-width:760px){.shift-status{padding:10px 12px}.shift-status .button{min-height:44px;max-width:100%}}

/* Kapanış eki: masaüstünde tek satırlı kompakt durum ve form. */
.shift-status{padding:6px 26px;justify-content:flex-start;gap:8px 18px}
.shift-status-copy{flex:0 1 auto}.shift-status-inline{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.shift-status-copy small{margin:0}.shift-status .button{padding:5px 12px;min-height:32px}
.shift-report-card{max-width:960px}.shift-report-card form{max-width:none}
#shift-report-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
.report-field{grid-column:1/-1;min-width:0}.report-field label{display:block;margin-bottom:5px}
.report-field textarea{width:100%;min-height:100px;height:110px}.report-compact{grid-column:auto}
.report-compact input{width:100%;max-width:320px}.shift-gallery-content{margin-top:22px;padding-top:16px;border-top:1px solid var(--border)}
.shift-gallery-content h2{font-size:17px;margin:0 0 8px}.shift-gallery-content p{margin:8px 0}
.shift-thumbnails{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.shift-thumbnails figure{margin:0;width:140px;max-width:100%}
.shift-thumbnails img{width:140px;height:90px;object-fit:cover;border-radius:6px}.shift-thumbnails figcaption{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
.shift-thumbnails button{padding:4px 8px}.shift-close-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}.shift-close-actions form{margin:0}
.shift-upload-form{min-width:0}.shift-upload-form .muted{font-size:12px;overflow-wrap:anywhere}
@media(max-width:760px){.shift-status{padding:6px 12px}.shift-status .button{min-height:44px}.shift-status-inline{gap:3px}.shift-status-copy{flex:1 1 190px}}
@media(max-width:480px){#shift-report-form{grid-template-columns:minmax(0,1fr)}.report-compact{grid-column:1}.shift-thumbnails figure{width:115px}.shift-thumbnails img{width:115px}}

.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#shift-images{width:1px!important;max-width:1px!important;min-width:0!important;min-height:0!important}

/* Dört ekran düzeltmesi: küçük filtreler ve kelime tabanlı tablo başlıkları. */
.redeem-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}
.redeem-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;max-width:240px}
.redeem-filters input{width:210px!important;max-width:100%!important}.redeem-filters input[name=usd]{width:130px!important}
.publisher-table th,.publisher-table td{padding:7px 8px;min-width:100px;overflow-wrap:normal;word-break:normal}
.publisher-table th button{padding:4px 2px;white-space:normal;align-items:start;font-size:12px;gap:3px}
.publisher-table .header-lines{display:block}.publisher-table .header-lines>span{display:block;white-space:nowrap}
.publisher-table .raw-field{padding:2px 2px;font-size:10px;white-space:nowrap}
.publisher-table td[data-column=quota],.publisher-table td[data-column$=_gifts]{white-space:nowrap}
@media(max-width:760px){.redeem-filters label{max-width:100%;flex:1 1 190px}.redeem-filters input{max-width:100%!important}}

.publisher-edit-link{display:block;font-size:11px;margin-top:3px}textarea.shift-start-note{height:66px!important;min-height:66px!important;max-width:500px}.publisher-table [data-column=nickname]{min-width:135px;width:135px;max-width:170px}

.price-copy-toast{position:fixed;bottom:20px;right:20px;z-index:100;max-width:calc(100vw - 40px);padding:12px 18px;border:1px solid var(--border);border-radius:8px;background:var(--soft-success);color:var(--text);box-shadow:var(--shadow)}
.password-input-wrap{display:flex;align-items:stretch;width:min(100%,460px);gap:6px}.password-input-wrap input{min-width:0;flex:1;width:auto!important}.password-toggle{flex:0 0 auto;min-width:72px}@media(max-width:480px){.password-input-wrap{width:100%}.password-toggle{min-height:44px}}
.month-year-control{position:relative}.month-year-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:80;width:min(310px,calc(100vw - 28px));padding:10px;background:var(--card);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow)}.month-year-head{display:grid;grid-template-columns:42px 1fr 42px;gap:6px;margin-bottom:8px}.month-year-head button{min-width:0}.month-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.month-year-grid button{min-width:0;padding:7px 4px;white-space:normal}.month-year-grid button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}
.chart-readout{margin:12px 0;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--hover);font-weight:600}
.profile-earnings-title{margin-top:11px;margin-bottom:6px}.profile-earnings-copy{margin:0;color:var(--text-secondary)}
.transfer-intro{max-width:920px;margin:14px 0 0;color:var(--text-secondary);line-height:1.55}

/* Premium ortak arayüz: aynı token, kart, filtre, tablo ve form dili. */
:root{--surface-1:var(--card);--surface-2:#f8fafc;--surface-3:#eef3f7;--border-subtle:#dfe6ed;--text-primary:var(--text);--text-secondary:var(--secondary);--radius-card:14px;--radius-control:9px;--shadow-card:0 8px 24px #16283b0d;--space-card:20px}
:root[data-theme=dark]{--surface-2:#16222f;--surface-3:#223140;--border-subtle:#334455;--shadow-card:0 10px 28px #0004}
body{background:var(--page);color:var(--text-primary)}
header{background:var(--surface-1);box-shadow:0 1px 0 var(--border-subtle);padding-block:12px}
main{width:100%;max-width:1800px;margin-inline:auto}
.card{background:var(--surface-1);border-color:var(--border-subtle);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--space-card)}
.page-head{min-height:54px;padding-bottom:4px;border-bottom:1px solid var(--border-subtle)}
.page-head h1{margin-bottom:4px}.page-head p{color:var(--text-secondary)}
.compact-clock{padding:8px 11px;border:1px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-2)}
h1{font-weight:750;letter-spacing:-.025em}h2{font-weight:720;letter-spacing:-.012em}h3{font-weight:680}
button,.button{min-height:40px;border-radius:var(--radius-control);box-shadow:0 1px 1px #0001;transition:filter .12s,transform .12s,background-color .12s}
button:active,.button:active{transform:translateY(1px)}
.quiet,button.quiet,.button.quiet{background:var(--surface-2);border-color:var(--border-subtle);color:var(--text-primary)}
button.danger,.button.danger{background:var(--soft-danger);border-color:color-mix(in srgb,var(--danger) 60%,var(--border));color:var(--danger)}
.pill,.badge,.status-badge{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--success) 30%,transparent);border-radius:999px;background:var(--soft-success);color:var(--success);font-size:11px;font-weight:650;line-height:1.25;white-space:nowrap}
.status-badge--neutral{border-color:var(--border-subtle);background:var(--surface-2);color:var(--text-secondary)}
.status-badge--warning{border-color:color-mix(in srgb,var(--warning) 35%,transparent);background:var(--soft-warning);color:var(--warning)}
.status-badge--danger{border-color:color-mix(in srgb,var(--danger) 35%,transparent);background:var(--soft-danger);color:var(--danger)}
.status-badge--info{border-color:color-mix(in srgb,var(--info) 35%,transparent);background:color-mix(in srgb,var(--info) 10%,var(--surface-1));color:var(--info)}
.status-badge--success{border-color:color-mix(in srgb,var(--success) 35%,transparent);background:var(--soft-success);color:var(--success)}
.status-badge--postponed{border-color:color-mix(in srgb,#8467b3 38%,transparent);background:color-mix(in srgb,#8467b3 11%,var(--surface-1));color:color-mix(in srgb,#8467b3 75%,var(--text-primary))}
.pk-table tbody tr>td:first-child{box-shadow:inset 4px 0 transparent}
.pk-table .pk-row--searching>td{background:color-mix(in srgb,var(--warning) 5%,var(--surface-1))}.pk-table .pk-row--searching>td:first-child{box-shadow:inset 4px 0 var(--warning)}
.pk-table .pk-row--matched>td{background:color-mix(in srgb,var(--info) 5%,var(--surface-1))}.pk-table .pk-row--matched>td:first-child{box-shadow:inset 4px 0 var(--info)}
.pk-table .pk-row--finished>td{background:color-mix(in srgb,var(--success) 5%,var(--surface-1))}.pk-table .pk-row--finished>td:first-child{box-shadow:inset 4px 0 var(--success)}
.pk-table .pk-row--cancelled>td{background:color-mix(in srgb,var(--danger) 5%,var(--surface-1))}.pk-table .pk-row--cancelled>td:first-child{box-shadow:inset 4px 0 var(--danger)}
.pk-table .pk-row--postponed>td{background:color-mix(in srgb,#8467b3 6%,var(--surface-1))}.pk-table .pk-row--postponed>td:first-child{box-shadow:inset 4px 0 #8467b3}
.pk-table tbody tr:hover>td{filter:brightness(.985)}
@media(max-width:760px){.pk-table .status-badge{max-width:100%;white-space:normal;text-align:center}}
.empty,.dashboard-card__empty{margin:10px 0;padding:20px;border:1px dashed var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-2);color:var(--text-secondary);text-align:center}
.empty::before{color:var(--muted)}

/* Ana sayfa kartları 1440px ve üstünde dengeli beş sütun kullanır. */
.dashboard-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:start;max-width:1600px;margin-inline:auto}
.dashboard-grid>.card,.dashboard-grid .dashboard-card{margin:0}
.dashboard-card{position:relative;display:flow-root!important;min-height:0;padding:var(--space-card);overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .15s}
.dashboard-card:hover{border-color:color-mix(in srgb,var(--accent) 24%,var(--border-subtle));box-shadow:0 10px 28px #16283b14;transform:translateY(-1px)}
:root[data-theme=dark] .dashboard-card:hover{box-shadow:0 12px 30px #0005}
.dashboard-card--large{grid-column:span 2;min-height:220px}
.dashboard-card--medium{grid-column:span 1;min-height:0}
.dashboard-card--standard{min-height:0}
.dashboard-card--compact{min-height:0;padding:16px}
.dashboard-card-stack{display:grid;align-self:start;gap:14px;min-width:0}
.dashboard-card__title{min-height:2.55em;margin:0 0 8px;padding-right:84px;font-size:15px;line-height:1.28}
.dashboard-card__value{display:block;margin:1px 0 4px;font-size:clamp(24px,2vw,30px);font-weight:760;line-height:1.12;font-variant-numeric:tabular-nums}
.dashboard-card__meta{margin:4px 0;color:var(--text-secondary);font-size:12px;line-height:1.4}
.dashboard-card__actions{display:flex;clear:both;align-items:center;flex-wrap:wrap;gap:7px;margin:11px 0 0}
.dashboard-card__actions a:not(.button){display:inline-flex;align-items:center;min-height:36px;font-weight:650}
.dashboard-card__empty{padding:8px 10px;margin:7px 0;border:0;border-radius:7px;background:var(--surface-2);text-align:left}
.dashboard-card__empty::before{display:none}
.dashboard-card--content-compact{padding:17px}
.dashboard-card--content-compact .dashboard-card__actions{margin-top:9px}
.dashboard-card--compact .dashboard-card__title{min-height:2.5em;padding-right:72px;margin-bottom:6px}
.dashboard-card--compact .dashboard-card__value{font-size:24px}
.dashboard-card--compact .dashboard-card__illustration{width:68px;height:68px;margin-left:8px;border-radius:11px}
.dashboard-card--compact .dashboard-card__illustration img{width:64px;height:64px}
.dashboard-card>.dashboard-card__illustration{width:80px;height:80px;margin:0 0 8px 12px;padding:3px;border-radius:12px;background:var(--surface-2);border-color:var(--border-subtle)}
.dashboard-card>.dashboard-card__illustration img{width:74px;height:74px}
.dashboard-card--compact>.dashboard-card__illustration,.dashboard-card--birthdays>.dashboard-card__illustration{width:64px;height:64px;margin-left:8px;border-radius:11px}
.dashboard-card--compact>.dashboard-card__illustration img,.dashboard-card--birthdays>.dashboard-card__illustration img{width:58px;height:58px}
.dashboard-summary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));clear:both;gap:0 12px;margin-top:4px}
.dashboard-summary-list p{display:flex;justify-content:space-between;gap:8px;margin:0;padding:5px 0;border-bottom:1px solid var(--border-subtle);color:var(--text-secondary);font-size:11px}
.dashboard-summary-list strong{color:var(--text-primary);font-variant-numeric:tabular-nums}
.birthday-compact-list{display:grid;clear:both;gap:2px;margin-top:3px}
.birthday-compact-row{display:flex;align-items:flex-start;gap:8px;padding:6px 0;border-bottom:1px solid var(--border-subtle);font-size:12px}
.birthday-compact-row:last-child{border-bottom:0}.birthday-compact-label{display:flex;flex:0 0 82px;justify-content:space-between;gap:6px;color:var(--text-primary)}
.birthday-compact-label time{color:var(--text-secondary);font-variant-numeric:tabular-nums}.birthday-compact-content{display:grid;gap:3px;min-width:0}.dashboard-empty-inline{color:var(--text-secondary)}
.dashboard-card--birthdays .dashboard-card__actions{justify-content:flex-start;margin-top:8px}

/* Filtreler ve veri tabloları ortak, yoğun ama okunabilir bir yüzey kullanır. */
.filter-grid,.filter-toolbar,.account-filters,.redeem-filters{padding:12px 14px;border:1px solid var(--border-subtle);border-radius:var(--radius-card);background:var(--surface-1);box-shadow:var(--shadow);gap:10px}
.filter-grid label,.filter-toolbar label,.account-filters label,.redeem-filters label{color:var(--text-secondary);font-weight:650}
.table-wrap{border-color:var(--border-subtle);border-radius:var(--radius-card);background:var(--surface-1);box-shadow:var(--shadow);scrollbar-color:var(--muted) var(--surface-2)}
table{font-variant-numeric:tabular-nums}th{background:var(--table-header);color:var(--text-primary);font-weight:700;letter-spacing:.01em}th,td{padding:9px 11px;border-color:var(--border-subtle)}tbody tr{transition:background-color .1s}tbody tr:hover{background:var(--hover)}tbody tr[aria-selected=true],tbody tr.selected{background:color-mix(in srgb,var(--accent) 12%,var(--surface-1))}
.pagination{padding:8px 0}.pagination .button,.pagination button{min-width:40px}

/* Form kartlarında alan ritmi ve okunabilir satır uzunluğu. */
.form-card{max-width:920px}.form-card form>p,.form-card .field-row{margin-bottom:18px}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{border-color:var(--border-subtle);border-radius:var(--radius-control);background:var(--input);transition:border-color .12s,box-shadow .12s}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 18%,transparent);outline:0}
fieldset,.permission-group{border-color:var(--border-subtle);border-radius:var(--radius-card);background:var(--surface-2)}
.sidebar nav a,.sidebar nav summary{border-radius:8px}.sidebar nav a[aria-current=page],.sidebar .nav-group.active>summary{box-shadow:inset 3px 0 0 var(--accent)}

@media(max-width:1200px){.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-card--large{grid-column:span 2}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card--large{grid-column:span 2}}
@media(max-width:760px){
  :root{--space-card:16px;--radius-card:12px}
  .page-head{align-items:flex-start}.compact-clock{width:100%;text-align:left}
  .dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .dashboard-card,.dashboard-card--large,.dashboard-card--standard{grid-column:span 1;min-height:0}
  .dashboard-card-stack{display:contents}
  .dashboard-card__title{min-height:0;padding-right:70px;font-size:15px}
  .dashboard-card__actions{align-items:stretch}.dashboard-card__actions .button{flex:1 1 150px;white-space:normal}
  .dashboard-card>.dashboard-card__illustration{width:66px;height:66px;margin-left:9px;border-radius:11px}.dashboard-card>.dashboard-card__illustration img{width:62px;height:62px}
  .dashboard-card--compact>.dashboard-card__illustration,.dashboard-card--birthdays>.dashboard-card__illustration{width:66px;height:66px}.dashboard-card--compact>.dashboard-card__illustration img,.dashboard-card--birthdays>.dashboard-card__illustration img{width:58px;height:58px}
  .filter-grid,.filter-toolbar,.account-filters,.redeem-filters{padding:10px}
  .table-wrap{border-radius:10px}th,td{padding:8px 9px}
  .dashboard-summary-list{grid-template-columns:minmax(0,1fr)}
  .birthday-compact-row{flex-wrap:wrap;gap:2px 8px}.birthday-compact-label{flex-basis:84px}
}
@media(min-width:1800px){.dashboard-grid{gap:20px}.dashboard-card{padding:22px}}

/* Publisher profile compact information layout */
.profile-info-card,
.profile-performance-card{
    align-self:start;
}

.profile-info-card .profile-info-list,
.profile-performance-card dl{
    grid-template-columns:minmax(145px,max-content) minmax(0,1fr);
    column-gap:18px;
    row-gap:0;
    margin:0;
    font-size:13px;
}

.profile-info-card .profile-info-list + .profile-info-list{
    margin-top:2px;
}

.profile-info-card .profile-info-list dt,
.profile-info-card .profile-info-list dd,
.profile-performance-card dl dt,
.profile-performance-card dl dd{
    padding:8px 0;
    border-bottom:1px solid var(--border);
}

.profile-info-card .profile-info-list dt,
.profile-performance-card dl dt{
    color:var(--text);
    font-weight:700;
    white-space:nowrap;
}

.profile-info-card .profile-info-list dd,
.profile-performance-card dl dd{
    color:var(--text);
    min-width:0;
}

.profile-info-card .profile-info-list dt:last-of-type,
.profile-info-card .profile-info-list dd:last-of-type,
.profile-performance-card dl dt:last-of-type,
.profile-performance-card dl dd:last-of-type{
    border-bottom:0;
}

.profile-info-card > p:first-of-type{
    margin:0 0 12px;
}

.profile-info-card .field-actions{
    display:inline-flex;
    margin-left:8px;
    font-size:11px;
}

.profile-performance-card .period-pickers{
    display:flex;
    align-items:end;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.profile-performance-card .period-pickers label{
    margin:0;
}

@media (max-width:720px){
    .profile-info-card .profile-info-list,
    .profile-performance-card dl{
        grid-template-columns:minmax(120px,42%) minmax(0,1fr);
        column-gap:12px;
    }
}

/* Publisher profile responsive dashboard */
.publisher-profile-top-grid{
    display:grid;
    grid-template-columns:minmax(250px,1fr) minmax(390px,1.45fr) minmax(235px,.9fr);
    gap:16px;
    align-items:start;
    margin-bottom:16px;
}

.publisher-profile-top-grid>.card{
    margin:0;
    min-width:0;
}

.profile-annual-card{
    align-self:start;
}

.profile-annual-card .profile-info-list{
    display:grid;
    grid-template-columns:minmax(135px,max-content) minmax(0,1fr);
    column-gap:16px;
    row-gap:0;
    margin:0;
    font-size:13px;
}

.profile-annual-card .profile-info-list dt,
.profile-annual-card .profile-info-list dd{
    padding:8px 0;
    border-bottom:1px solid var(--border);
}

.profile-annual-card .profile-info-list dt{
    color:var(--text);
    font-weight:700;
}

.profile-annual-card .profile-info-list dd{
    color:var(--text);
}

.publisher-trend-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin:18px 0 10px;
}

.publisher-trend-head h3{
    margin:0;
}

.publisher-window-tabs{
    display:inline-flex;
    align-items:center;
    gap:3px;
    padding:3px;
    border:1px solid var(--border-subtle);
    border-radius:10px;
    background:var(--surface-2);
}

.publisher-window-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:5px 10px;
    border-radius:7px;
    color:var(--text-secondary);
    font-size:12px;
    font-weight:700;
}

.publisher-window-tabs a:hover{
    text-decoration:none;
    background:var(--hover);
}

.publisher-window-tabs a.active{
    background:var(--accent);
    color:var(--accent-text);
}

.publisher-chart-metric{
    margin:0 0 8px;
}

.publisher-chart-metric select{
    width:100%!important;
    max-width:230px;
    margin-top:5px;
}

.profile-performance-card .chart-readout{
    margin:8px 0 6px;
    padding:8px 10px;
    font-size:12px;
}

.profile-performance-card canvas[data-chart]{
    width:100%;
    max-width:100%;
}

@media(max-width:1180px){
    .publisher-profile-top-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .profile-performance-card{
        grid-column:span 1;
    }

    .profile-annual-card{
        grid-column:span 1;
    }
}

@media(max-width:760px){
    .publisher-profile-top-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .publisher-profile-top-grid>.card,
    .profile-performance-card,
    .profile-annual-card{
        grid-column:auto;
    }

    .publisher-trend-head{
        align-items:flex-start;
    }

    .publisher-window-tabs{
        width:100%;
    }

    .publisher-window-tabs a{
        flex:1 1 0;
    }

    .publisher-chart-metric select{
        width:100%!important;
        max-width:none;
    }

    .profile-annual-card .profile-info-list{
        grid-template-columns:minmax(120px,42%) minmax(0,1fr);
        column-gap:12px;
    }
}

/* Publisher profile four-card layout */
.publisher-profile-top-grid{
    display:grid;
    grid-template-columns:minmax(230px,.95fr) minmax(260px,1fr) minmax(380px,1.45fr) minmax(220px,.85fr);
    gap:16px;
    align-items:start;
    margin-bottom:16px;
}

.publisher-profile-top-grid>.card{
    margin:0;
    min-width:0;
}

.profile-chart-card{
    min-width:0;
}

.profile-chart-card .publisher-trend-head{
    margin:0 0 10px;
}

.profile-chart-card .chart-readout{
    margin:8px 0;
}

.publisher-chart-stage{
    position:relative;
    min-width:0;
}

.profile-chart-card canvas[data-chart]{
    height:240px;
}

.publisher-chart-tooltip{
    position:absolute;
    z-index:8;
    max-width:220px;
    padding:8px 10px;
    border:1px solid var(--border-subtle);
    border-radius:9px;
    background:var(--surface-1);
    color:var(--text-primary);
    box-shadow:var(--shadow-card);
    font-size:12px;
    font-weight:650;
    line-height:1.4;
    pointer-events:none;
}

.publisher-chart-tooltip[hidden]{
    display:none!important;
}

@media(max-width:1450px){
    .publisher-profile-top-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .publisher-profile-top-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .publisher-profile-top-grid>.card{
        grid-column:auto;
    }

    .profile-chart-card canvas[data-chart]{
        height:220px;
    }
}

/* Publisher profile secondary grid */
.publisher-profile-secondary-grid{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);
    gap:16px;
    align-items:start;
    margin-bottom:16px;
}

.publisher-profile-secondary-grid>.card{
    margin:0;
    min-width:0;
}

.profile-photos-card{
    min-width:0;
}

.profile-photos-card .photo-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.profile-photos-card figure{
    min-width:0;
}

.profile-photos-card figure img{
    display:block;
    width:100%;
    max-width:100%;
    height:220px;
    max-height:none;
    object-fit:contain;
    background:var(--surface-2);
    border:1px solid var(--border-subtle);
    border-radius:10px;
}

.photo-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

.photo-actions form{
    margin:0;
}

.profile-notes-card .preline{
    margin:0;
}

.profile-status-card .actions{
    margin:0;
}

.profile-gift-card,
.profile-notes-card,
.profile-status-card{
    align-self:start;
}

@media(max-width:980px){
    .publisher-profile-secondary-grid{
        grid-template-columns:1fr 1fr;
    }

    .profile-photos-card{
        grid-column:1 / -1;
    }
}

@media(max-width:760px){
    .publisher-profile-secondary-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .profile-photos-card{
        grid-column:auto;
    }

    .profile-photos-card .photo-grid{
        grid-template-columns:1fr;
    }

    .profile-photos-card figure img{
        height:auto;
        max-height:320px;
    }

    .photo-actions .button,
    .photo-actions button{
        min-height:44px;
    }
}

/* Publisher profile secondary grid final layout */
.publisher-profile-secondary-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:16px;
    align-items:start;
}

.profile-photos-card{
    grid-column:span 4;
}

.profile-gift-card{
    grid-column:span 2;
}

.profile-notes-card,
.profile-status-card,
.profile-pk-card{
    grid-column:span 2;
}

.profile-pk-card .section-head{
    margin-bottom:10px;
}

.profile-pk-card .pk-compact-block + .pk-compact-block{
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid var(--border-subtle);
}

.profile-pk-card p{
    margin:6px 0;
}

.profile-gift-card .gift-summary-compact{
    margin:0;
}

.profile-gift-card .gift-summary-note{
    margin:10px 0;
    color:var(--text-secondary);
    font-size:12px;
}

.profile-gift-card .gift-calculation-details{
    margin:10px 0 14px;
    padding-top:8px;
    border-top:1px solid var(--border-subtle);
}

.profile-gift-card .gift-calculation-details summary{
    padding:6px 0;
    font-size:12px;
}

.profile-gift-card .gift-calculation-details dl{
    margin-top:8px;
}

@media(max-width:1100px){
    .publisher-profile-secondary-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .profile-photos-card{
        grid-column:1 / -1;
    }

    .profile-gift-card,
    .profile-notes-card,
    .profile-status-card,
    .profile-pk-card{
        grid-column:span 1;
    }
}

@media(max-width:760px){
    .publisher-profile-secondary-grid{
        grid-template-columns:1fr;
    }

    .profile-photos-card,
    .profile-gift-card,
    .profile-notes-card,
    .profile-status-card,
    .profile-pk-card{
        grid-column:auto;
    }
}



/* Ajans dışı PK: durum rengini bozmadan yayıncı tipini ayrıca gösterir. */
.status-badge--external{
  border-color:var(--border-subtle);
  background:var(--surface-2);
  color:var(--text-secondary);
}
.pk-table .pk-row--external>td{
  outline:1px dashed color-mix(in srgb,var(--text-secondary) 24%,transparent);
  outline-offset:-1px;
}
.pk-external-id{
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.pk-external-summary{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 13px;
  border:1px dashed var(--border-subtle);
  border-radius:var(--radius-control);
  background:var(--surface-2);
  color:var(--text-primary);
  font-weight:650;
}
.pk-external-notice{
  background:var(--surface-2);
  color:var(--text-secondary);
  border-style:dashed;
}


/* Aylık Yeni Yayıncı Girişleri: içerik duyarlı kompakt tablo. */
.monthly-new-table{
    width:max-content;
    min-width:0;
    max-width:none;
    table-layout:auto;
}

.monthly-new-table th,
.monthly-new-table td{
    width:auto;
    min-width:0;
    max-width:none;
    padding-left:10px;
    padding-right:10px;
}

/* Kısa / sabit biçimli alanlar yalnız ihtiyaç duyduğu kadar yer kaplar. */
.monthly-new-table .col-sequence,
.monthly-new-table .col-id,
.monthly-new-table .col-phone,
.monthly-new-table .col-birth,
.monthly-new-table .col-joined,
.monthly-new-table .col-action{
    width:1%;
    white-space:nowrap;
}

/* Değişken metinler kısa olduğunda dar, uzadığında kontrollü genişler. */
.monthly-new-table .col-nickname{
    min-width:90px;
    max-width:180px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.monthly-new-table .col-full_name{
    min-width:120px;
    max-width:240px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.monthly-new-table .col-created_by{
    min-width:100px;
    max-width:160px;
    white-space:normal;
    overflow-wrap:anywhere;
}


/* Aylık Yeni Yayıncı Girişleri: gerçek shrink-to-fit görünüm. */
.monthly-new-table{
    display:inline-table;
    width:auto;
    min-width:0;
    max-width:none;
    table-layout:auto;
}

.monthly-new-table th,
.monthly-new-table td{
    padding-left:7px;
    padding-right:7px;
}

.monthly-new-table .col-sequence{
    width:1px;
    min-width:0;
}

.monthly-new-table .col-id,
.monthly-new-table .col-phone,
.monthly-new-table .col-birth,
.monthly-new-table .col-joined,
.monthly-new-table .col-action{
    width:1px;
    min-width:0;
    white-space:nowrap;
}

.monthly-new-table .col-nickname{
    min-width:0;
    width:auto;
    max-width:170px;
}

.monthly-new-table .col-full_name{
    min-width:0;
    width:auto;
    max-width:220px;
}

.monthly-new-table .col-created_by{
    min-width:0;
    width:auto;
    max-width:140px;
}

/* Aylık Yeni Yayıncı Girişleri: dengeli kompakt masaüstü düzeni. */
.monthly-new-table{
    display:table;
    width:min(100%,1180px);
    min-width:1050px;
    table-layout:fixed;
}

.monthly-new-table th,
.monthly-new-table td{
    padding-left:8px;
    padding-right:8px;
}

.monthly-new-table .col-sequence{
    width:48px;
}

.monthly-new-table .col-id{
    width:115px;
}

.monthly-new-table .col-nickname{
    width:170px;
    max-width:170px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.monthly-new-table .col-full_name{
    width:210px;
    max-width:210px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.monthly-new-table .col-phone{
    width:120px;
}

.monthly-new-table .col-birth{
    width:110px;
}

.monthly-new-table .col-joined{
    width:130px;
}

.monthly-new-table .col-created_by{
    width:120px;
}

.monthly-new-table .col-action{
    width:75px;
}

@media(max-width:760px){
    .monthly-new-table{
        width:1050px;
        min-width:1050px;
    }
}


/* Aylık yeni yayıncı tablosunda scroll kutusu tabloyla birlikte bitsin. */
.monthly-new-table-wrap{
    width:min(100%,1180px);
    max-width:1180px;
}

.monthly-new-table{
    width:1180px;
    min-width:1180px;
}

@media(max-width:1180px){
    .monthly-new-table-wrap{
        width:100%;
        max-width:100%;
    }

    .monthly-new-table{
        width:1050px;
        min-width:1050px;
    }
}

/* Aylık Yeni Yayıncı Girişleri: tüm tablo içeriğini ortala. */
.monthly-new-table th,
.monthly-new-table td{
    text-align:center;
}

.monthly-new-table th a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}


/* Aylık yayıncı girişleri: giriş türü sütunu. */
.monthly-new-table .col-acquisition{
    width:135px;
    min-width:135px;
    max-width:135px;
    white-space:normal;
    text-align:center;
}

/* Aylık yayıncı girişleri: içerik ve sütun sayısına göre dinamik yatay büyüme. */
.monthly-new-table-wrap{
    width:fit-content;
    max-width:100%;
    overflow:auto;
}

.monthly-new-table{
    display:table;
    table-layout:auto;
    width:max-content;
    min-width:1100px;
    max-width:none;
}

/* Kısa alanlar gereksiz büyümez. */
.monthly-new-table .col-sequence{
    width:1%;
    min-width:46px;
    white-space:nowrap;
}

.monthly-new-table .col-id{
    width:1%;
    min-width:115px;
    white-space:nowrap;
}

.monthly-new-table .col-phone{
    width:1%;
    min-width:120px;
    white-space:nowrap;
}

.monthly-new-table .col-birth{
    width:1%;
    min-width:105px;
    white-space:nowrap;
}

.monthly-new-table .col-joined{
    width:1%;
    min-width:125px;
    white-space:nowrap;
}

.monthly-new-table .col-acquisition{
    width:1%;
    min-width:125px;
    max-width:none;
    white-space:nowrap;
}

.monthly-new-table .col-created_by{
    width:1%;
    min-width:115px;
    max-width:none;
    white-space:nowrap;
}

.monthly-new-table .col-action{
    width:1%;
    min-width:70px;
    white-space:nowrap;
}

/* Değişken metin alanları içeriğe göre büyür, aşırı uzun metinde sınır kazanır. */
.monthly-new-table .col-nickname{
    width:auto;
    min-width:130px;
    max-width:220px;
    white-space:normal;
    overflow-wrap:anywhere;
}

.monthly-new-table .col-full_name{
    width:auto;
    min-width:180px;
    max-width:280px;
    white-space:normal;
    overflow-wrap:anywhere;
}

@media(max-width:760px){
    .monthly-new-table-wrap{
        width:100%;
        max-width:100%;
    }

    .monthly-new-table{
        width:max-content;
        min-width:1100px;
    }
}

/* Weekly Work Schedule */
.schedule-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.schedule-coverage .card {
  margin: 0;
}

.coverage-empty {
  opacity: .72;
}

.schedule-cell,
.schedule-shift {
  font-weight: 600;
}

.shift-00_08,
.schedule-shift[data-shift="00_08"] {
  background: rgba(226, 92, 150, .20);
}

.shift-08_16,
.schedule-shift[data-shift="08_16"] {
  background: rgba(230, 194, 77, .20);
}

.shift-16_00,
.schedule-shift[data-shift="16_00"] {
  background: rgba(147, 91, 203, .22);
}

.schedule-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  background: var(--surface, #181818);
  border-top: 1px solid rgba(255,255,255,.12);
}

.weekly-schedule-editor select {
  min-width: 135px;
}

.weekly-schedule-editor td:first-child select {
  min-width: 190px;
}

@media (max-width: 800px) {
  .weekly-schedule-table table,
  .weekly-schedule-table tbody,
  .weekly-schedule-table tr,
  .weekly-schedule-table td,
  .weekly-schedule-editor table,
  .weekly-schedule-editor tbody,
  .weekly-schedule-editor tr,
  .weekly-schedule-editor td {
    display: block;
    width: 100%;
  }

  .weekly-schedule-table thead,
  .weekly-schedule-editor thead {
    display: none;
  }

  .weekly-schedule-table tr,
  .weekly-schedule-editor tr {
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
  }

  .weekly-schedule-table td,
  .weekly-schedule-editor td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .weekly-schedule-table td::before,
  .weekly-schedule-editor td::before {
    content: attr(data-label);
    font-weight: 600;
    opacity: .72;
    flex: 0 0 38%;
  }

  .weekly-schedule-editor select {
    width: 58%;
    min-width: 0;
  }

  .weekly-schedule-editor td:first-child select {
    min-width: 0;
  }

  .schedule-save-bar {
    justify-content: stretch;
  }

  .schedule-save-bar button {
    flex: 1;
  }
}

/* Mesai Tablosu - Çalışmıyor / Boş hücre vurgusu */
.shift-off,
.schedule-shift[data-shift=""] {
  background: rgba(220, 80, 80, 0.14);
  color: #ffd7d7;
}

/* Mesai Tablosu - boş vardiya kesin vurgusu */
.weekly-schedule-table td.schedule-cell.shift-off {
  background-color: rgba(220, 80, 80, 0.16) !important;
  color: #ffd7d7 !important;
}

.payment-fee-preview {
  margin-top: 10px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

.payment-fee-preview p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 5px 0;
}

.payment-fee-preview strong {
  font-variant-numeric: tabular-nums;
}

.schedule-week-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.schedule-week-option input {
  margin-top: 4px;
}

.schedule-week-option:has(input:disabled) {
  opacity: .65;
}
