 :root{--navy:#252873;--red:#e30619;--ink:#1b1d35;--muted:#7c8198;--line:#e9eaf2;--soft:#f6f6fa}*{box-sizing:border-box}body{margin:0;background:#f6f7fb;color:var(--ink);font-family:'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}.flash{position:fixed;top:18px;right:20px;z-index:99;max-width:420px;padding:14px 18px;border-radius:7px;background:#eaf8ef;color:#207344;box-shadow:0 10px 30px #11142a1c;font-size:12px;font-weight:700}.flash.error{background:#fff0f1;color:#b10013}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.04fr .96fr;background:#fff}.auth-art{min-height:100vh;position:relative;overflow:hidden;background:linear-gradient(145deg,#151747,#292e83);color:#fff;padding:50px clamp(30px,6vw,92px);display:flex;flex-direction:column;justify-content:space-between}.auth-art-bg{position:absolute;inset:0;background:radial-gradient(circle at 80% 70%,rgba(227,6,25,.25),transparent 32%),linear-gradient(130deg,transparent 50%,rgba(255,255,255,.04) 50.1%,transparent 50.4%);pointer-events:none}.auth-brand,.auth-art-copy,.auth-art-foot{position:relative;z-index:1}.auth-brand img{width:min(360px,80%);height:auto;filter:brightness(0) invert(1);opacity:.98}.auth-art-copy{margin:70px 0}.auth-art-copy>span,.form-kicker{font-size:9px;font-weight:800;letter-spacing:2.5px;color:#ff7b85}.auth-art-copy h1{font:800 clamp(48px,5.5vw,76px)/1.05 Manrope;letter-spacing:-3px;margin:25px 0}.auth-art-copy h1 em{font-style:normal;color:#ff5967}.auth-art-copy p{max-width:430px;color:#d2d3e9;font-size:14px;line-height:1.9}.auth-feature-row{display:flex;gap:10px;flex-wrap:wrap;color:#e1e2f0;font-size:10px;margin-top:25px}.auth-feature-row i{font-style:normal;color:#ff6571}.auth-art-foot{font-size:9px;letter-spacing:3px;color:#aeb0d1}.auth-form-side{display:grid;place-items:center;padding:45px}.auth-form{width:min(420px,100%)}.auth-mobile-logo{display:none}.auth-form h2{font:800 38px/1.12 Manrope;letter-spacing:-1.5px;margin:17px 0 12px;color:#181a43}.auth-form>p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 32px}.auth-form label,.form-grid label,.wide-label{display:block;font-size:11px;font-weight:800;color:#343753;margin:0 0 17px}.auth-form input,.form-grid input,.form-grid textarea,.wide-label input{display:block;width:100%;border:1px solid #dfe1eb;background:#fff;border-radius:5px;padding:13px 14px;margin-top:8px;outline:none;font-size:13px;color:#252743}.auth-form input:focus,.form-grid input:focus,.form-grid textarea:focus{border-color:#777bc0;box-shadow:0 0 0 3px rgba(37,40,115,.08)}.admin-primary{display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--red);color:#fff;border:0;border-radius:5px;padding:13px 19px;font-size:11px;font-weight:800;cursor:pointer;transition:.2s}.admin-primary:hover{background:#bd0012;transform:translateY(-1px)}.admin-primary span{font-size:17px}.admin-primary.wide{width:100%;margin-top:9px;padding:15px}.auth-tip{margin-top:25px;padding:13px;background:#f6f6fa;color:#777b91;font-size:10px;line-height:1.7;border-left:2px solid var(--red)}.back-site{display:inline-block;margin-top:28px;font-size:11px;color:var(--navy);font-weight:800}.admin-layout{min-height:100vh;display:grid;grid-template-columns:255px 1fr}.sidebar{background:#191b52;color:#fff;display:flex;flex-direction:column;padding:28px 18px 22px;position:sticky;top:0;height:100vh}.sidebar-brand{display:block;padding:4px 12px 30px;border-bottom:1px solid #ffffff20}.sidebar-brand img{width:100%;filter:brightness(0) invert(1)}.side-label{font-size:9px;letter-spacing:2px;color:#9295c3;font-weight:800;margin:29px 13px 12px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{padding:13px 13px;border-radius:5px;font-size:12px;font-weight:600;color:#c6c7e0;display:flex;gap:12px;align-items:center}.sidebar nav a:hover,.sidebar nav a.active{background:#303477;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 var(--red)}.side-icon{width:18px;text-align:center;font-size:15px}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff20;padding:18px 10px 0;display:flex;flex-direction:column;gap:17px}.sidebar-bottom a,.sidebar-bottom button{font-size:11px;color:#c8cae1;background:none;border:0;text-align:left;padding:0;cursor:pointer}.sidebar-bottom form{margin:0}.admin-main{padding:34px clamp(22px,4vw,55px) 20px;min-width:0}.admin-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.crumb,.mini-kicker{font-size:9px;letter-spacing:2px;color:#9699ad;font-weight:800}.admin-topbar h1{font:800 28px Manrope;letter-spacing:-.7px;margin:8px 0 0;color:#1d204d}.admin-user{display:flex;align-items:center;gap:10px}.user-dot{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#252873;color:#fff;font:800 17px Manrope}.admin-user strong,.admin-user small{display:block}.admin-user strong{font-size:11px}.admin-user small{font-size:9px;color:#9296aa;margin-top:3px}.welcome-banner{background:linear-gradient(110deg,#202365,#30358e);border-radius:9px;padding:36px 40px;color:#fff;position:relative;overflow:hidden;min-height:230px}.welcome-banner>div:first-child{position:relative;z-index:1}.welcome-banner span{font-size:9px;letter-spacing:2px;color:#f18a92;font-weight:800}.welcome-banner h2{font:800 31px/1.15 Manrope;letter-spacing:-.8px;margin:13px 0}.welcome-banner p{color:#d5d6ec;font-size:11px}.white-action{display:inline-block;padding:11px 14px;background:#fff;color:var(--navy);border-radius:4px;font-size:10px;font-weight:800;margin-top:8px}.welcome-mark{position:absolute;right:80px;top:-65px;font:800 310px Manrope;color:#ffffff0a}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:19px 0}.stat-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:19px 21px;position:relative}.stat-card span{font-size:9px;letter-spacing:1.2px;color:#8589a0;font-weight:800}.stat-card strong{display:block;font:800 31px Manrope;color:#252873;margin:7px 0 2px}.stat-card small{font-size:10px;color:#999caf}.stat-symbol{position:absolute;right:19px;top:22px;font-size:24px;color:#e1e2ef}.dashboard-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.panel-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:23px;margin-bottom:18px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-heading h3{font:800 17px Manrope;color:#25264f;margin:6px 0 0}.quick-actions{display:flex;flex-direction:column}.quick-actions>a{display:flex;align-items:center;gap:13px;padding:15px 0;border-top:1px solid #f0f0f5}.quick-actions>a>span{width:38px;height:38px;display:grid;place-items:center;background:#f3f3f9;color:var(--red);font-size:18px}.quick-actions strong,.quick-actions small{display:block}.quick-actions strong{font-size:11px;color:#292b50}.quick-actions small{font-size:9px;color:#9296aa;margin-top:4px}.quick-actions>a>b{margin-left:auto;color:var(--red)}.check-list p{font-size:10px;color:#666b82;margin:0;padding:11px 0;border-top:1px solid #f0f0f5}.check-list i{font-style:normal;color:#259c63;margin-right:9px}.check-list i.pending{color:#b2b5c6}.admin-footer{border-top:1px solid #e5e6ef;padding:18px 0 2px;margin-top:30px;font-size:8px;letter-spacing:1.5px;color:#a0a3b5;font-weight:800;display:flex;justify-content:space-between}.admin-footer span{color:#c4c5d2}.content-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.content-toolbar p{margin:7px 0 0;color:#878ba0;font-size:11px}.file-limit{font-size:10px;color:#8c90a4;background:#fff;border:1px solid var(--line);padding:10px 13px;border-radius:5px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:580px}th{text-align:left;font-size:8px;letter-spacing:1.5px;color:#9699ac;padding:10px;border-bottom:1px solid var(--line)}td{padding:15px 10px;border-bottom:1px solid #f0f1f5;font-size:11px;color:#555a72}td strong,td small{display:block}td strong{font-size:11px;color:#292b50}td small{font-size:9px;color:#989bad;margin-top:4px}td code{font-size:10px;color:#777b95}.status{font-size:9px;border-radius:20px;padding:5px 9px;font-weight:800}.status.published{background:#e9f7ef;color:#27814f}.status.draft{background:#f1f1f5;color:#777b91}.actions-cell{white-space:nowrap}.actions-cell a,.danger-link{font-size:10px;font-weight:800;color:var(--navy)}.actions-cell form{display:inline;margin-left:12px}.danger-link{color:#d20b20;background:none;border:0;padding:0;cursor:pointer}.form-panel{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid label.full{grid-column:1/-1}.form-grid small{display:block;font-size:9px;color:#999daf;font-weight:500;margin-top:6px}.form-grid textarea{resize:vertical;line-height:1.7}.toggle-row{display:flex!important;align-items:center;gap:9px}.toggle-row input{width:auto!important;margin:0!important}.form-actions{display:flex;gap:18px;align-items:center;margin-top:10px}.cancel-link{font-size:11px;color:#85899d;font-weight:700}.upload-panel{max-width:850px}.upload-drop{border:1px dashed #cfd1e2;background:#fafafd;text-align:center;padding:33px 20px;margin-bottom:18px}.upload-icon{width:42px;height:42px;background:#fbeaec;color:var(--red);display:grid;place-items:center;border-radius:50%;font-size:22px;margin:0 auto 12px}.upload-drop h3{font:800 16px Manrope;margin:0 0 7px;color:#252873}.upload-drop p{font-size:10px;color:#8b8fa5}.file-picker{position:relative;display:inline-block;margin-top:10px;padding:10px 15px;background:#252873;color:#fff;border-radius:4px;font-size:10px;font-weight:800;cursor:pointer}.file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-name{display:block;margin-top:11px;font-size:9px;color:#9a9daf}.wide-label input{max-width:450px}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.media-card{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;min-width:0}.media-preview{height:150px;background:#f0f1f6;display:grid;place-items:center}.media-preview img,.media-preview video{width:100%;height:100%;object-fit:contain}.media-meta{padding:12px}.media-meta strong,.media-meta small{display:block;overflow-wrap:anywhere}.media-meta strong{font-size:10px;color:#333654}.media-meta small{font-size:8px;color:#999daf;margin:6px 0 10px}.reference-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.reference-admin-card{background:#fff;border:1px solid var(--line);border-radius:7px;display:flex;min-width:0;overflow:hidden}.ref-thumb{width:145px;min-height:150px;flex:0 0 145px;background:#f1f2f7;display:grid;place-items:center;color:var(--navy);font:800 48px Manrope}.ref-thumb img,.ref-thumb video{width:100%;height:100%;max-height:180px;object-fit:contain}.ref-admin-info{padding:15px;min-width:0}.ref-admin-info strong{font-size:11px;color:#292b50}.ref-admin-info p{font-size:9px;line-height:1.6;color:#85899d}.ref-admin-info>a{display:block;font-size:9px;color:var(--navy);font-weight:800;margin:8px 0}.empty-admin{padding:35px;text-align:center;color:#9296aa;font-size:11px;background:#fff;border:1px dashed #d9dbe6;grid-column:1/-1}.security-note{margin-top:24px;padding:15px;background:#fff8e9;color:#8a650c;font-size:10px;line-height:1.7;border-left:3px solid #edb83d}.auth-mobile-logo{display:none}
@media(max-width:1100px){.admin-layout{grid-template-columns:220px 1fr}.media-grid{grid-template-columns:repeat(3,1fr)}.dashboard-columns{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr 1fr}.auth-art{padding:35px}.auth-brand img{width:280px}}
@media(max-width:760px){.auth-page{display:block}.auth-art{display:none}.auth-form-side{min-height:100vh;padding:28px}.auth-mobile-logo{display:block;margin-bottom:45px}.auth-mobile-logo img{width:245px;max-width:90%}.admin-layout{display:block}.sidebar{height:auto;position:relative;padding:13px 15px}.sidebar-brand{padding:2px 5px 12px;border:0}.sidebar-brand img{width:210px}.side-label,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow-x:auto;gap:4px}.sidebar nav a{white-space:nowrap;padding:10px;font-size:10px}.admin-main{padding:24px 15px}.admin-topbar h1{font-size:23px}.admin-user{display:none}.stat-grid{grid-template-columns:1fr}.stat-card{padding:14px}.welcome-banner{padding:27px}.welcome-mark{right:-20px;font-size:200px}.content-toolbar{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.media-grid{grid-template-columns:repeat(2,1fr)}.reference-admin-grid{grid-template-columns:1fr}.ref-thumb{width:110px;flex-basis:110px}.admin-footer{font-size:7px}.flash{left:12px;right:12px;top:10px;max-width:none}}


/* Markayı özgün renkleriyle koruyan logo yüzeyleri ve daha okunaklı panel ölçüleri */
.auth-brand{display:inline-flex;align-items:center;background:#fff;padding:13px 16px;border-radius:8px;width:min(390px,100%);box-shadow:0 14px 36px rgba(0,0,0,.12)}
.auth-brand img{width:100%;max-height:92px;object-fit:contain;filter:none;opacity:1}
.auth-mobile-logo{background:#fff;padding:12px;border:1px solid #ececf2;border-radius:8px;margin-bottom:24px}
.auth-mobile-logo img{width:100%;max-height:76px;object-fit:contain}
.sidebar-brand{background:#fff;border-radius:7px;margin:2px 4px 16px;padding:12px 10px 13px;border:0}
.sidebar-brand img{filter:none;max-height:76px;object-fit:contain}
.auth-art-copy h1{font-size:clamp(52px,5.8vw,82px)}
.auth-art-copy p{font-size:16px;line-height:1.9}
.auth-form h2{font-size:42px}
.auth-form>p{font-size:15px}
.auth-form label,.form-grid label,.wide-label{font-size:13px}
.auth-form input,.form-grid input,.form-grid textarea,.wide-label input{font-size:15px;padding:15px 16px}
.admin-primary{font-size:13px;padding:15px 21px}
.admin-layout{grid-template-columns:270px 1fr}
.sidebar nav a{font-size:14px;padding:14px}
.admin-main{padding-top:40px}
.admin-topbar h1{font-size:32px}
.admin-user strong{font-size:13px}
.admin-user small{font-size:11px}
.welcome-banner h2{font-size:36px}
.welcome-banner p{font-size:14px}
.welcome-banner span,.mini-kicker,.crumb,.side-label{font-size:10px}
.stat-card span{font-size:11px}
.stat-card strong{font-size:34px}
.stat-card small{font-size:12px}
.panel-heading h3{font-size:19px}
.quick-actions strong{font-size:13px}
.quick-actions small{font-size:11px}
.check-list p{font-size:12px}
th{font-size:10px}td,td strong{font-size:13px}td small{font-size:11px}
.content-toolbar p,.file-limit{font-size:13px}
.upload-drop h3{font-size:19px}.upload-drop p{font-size:13px}
.form-grid small{font-size:11px}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.sidebar-brand{max-width:270px}.admin-main{padding:24px 18px}}
@media(max-width:650px){.auth-page{grid-template-columns:1fr}.auth-art{min-height:auto;padding:26px}.auth-art-copy{margin:40px 0}.auth-art-copy h1{font-size:48px}.auth-art-foot{font-size:8px}.auth-form-side{padding:28px 22px}.auth-form h2{font-size:35px}.admin-topbar h1{font-size:27px}.welcome-banner{padding:27px 22px}.welcome-banner h2{font-size:30px}}

.user-dot{background:#fff;border:1px solid #e7e8f0;padding:5px;overflow:hidden}
.user-dot img{width:100%;height:100%;object-fit:contain}
.welcome-mark{width:260px;height:300px;right:75px;top:-35px;display:grid;place-items:center;font-size:0}
.welcome-mark img{width:155px;height:205px;object-fit:contain;filter:brightness(0) invert(1);opacity:.12}
.ref-thumb>span.ref-mark{width:100%;height:100%;display:grid;place-items:center;background:#fff}
.ref-mark img{width:54px;height:72px;object-fit:contain}

/* Page editor usability improvements */
.form-panel .form-grid{gap:22px 24px}
.form-panel label{font-size:14px!important;line-height:1.5}
.form-panel input:not([type=checkbox]),.form-panel textarea,.form-panel select{font-size:15px!important;min-height:48px;padding:13px 15px!important;border:1px solid #d7dcea!important;background:#fff!important;color:#1b2140!important}
.form-panel textarea{min-height:220px;line-height:1.75;resize:vertical}
.form-panel input:focus,.form-panel textarea:focus{outline:3px solid rgba(35,38,111,.12);border-color:#292d83!important}
.form-panel label small{display:block;font-size:12px!important;line-height:1.5;margin-top:6px;color:#74788e}
.editor-subhead{padding-top:22px;border-top:1px solid #e8e9f1;color:#e30619;font:800 12px 'DM Sans';letter-spacing:2px}
.form-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:25px}
.flash{z-index:9999;font-size:14px!important;padding:16px 22px!important;max-width:min(640px,calc(100% - 30px));line-height:1.55}

/* V4: visible storage diagnostics and legible controls */
.storage-check-card{margin:20px 0 24px;border:1px solid #dfe5f0}.storage-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.storage-status-grid span{display:block;padding:12px;border:1px solid #e7ebf2;border-radius:8px;color:#68748a;font-size:12px}.storage-status-grid b{display:block;margin-top:6px;color:#20264a;font-size:13px}.storage-path{font-size:11px;color:#7a8496;overflow-wrap:anywhere}.admin-secondary{border:1px solid #d8deea;background:#f6f8fb;color:#20246d;border-radius:7px;padding:10px 14px;font-weight:700;cursor:pointer}.form-panel input,.form-panel textarea{font-size:15px!important;line-height:1.55}.form-panel label{font-size:13px!important}.admin-primary{font-size:14px!important}@media(max-width:760px){.storage-status-grid{grid-template-columns:1fr 1fr}}


/* V5 matching management console theme and theme tabs */
.admin-top-actions{display:flex;align-items:center;gap:20px}
.admin-topbar{gap:18px}
.auth-page{position:relative}
.auth-theme-switch{position:absolute;z-index:5;top:24px;right:26px}
.auth-theme-switch.theme-switch{background:#16243a;border-color:#394a64}
.admin-layout{background:#0a111e}
.theme-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid #34435b;background:#121e31;border-radius:999px;flex:0 0 auto}
.theme-switch button{border:0;background:transparent;color:#b9c5d9;border-radius:999px;padding:8px 11px;font:700 11px 'DM Sans',Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.theme-switch button:hover{color:#fff;background:#24334c}
.theme-switch button.is-active{background:#e71b38;color:#fff;box-shadow:0 4px 12px rgba(231,27,56,.25)}
html[data-theme="dark"]{color-scheme:dark;--navy:#a9bbef;--red:#f02945;--ink:#edf2fb;--muted:#aab5c8;--line:#2b3a52;--soft:#121d30}
html[data-theme="dark"] body{background:#0a111e;color:#edf2fb}
html[data-theme="dark"] .admin-layout{background:#0a111e}
html[data-theme="dark"] .sidebar{background:#080e19;border-right:1px solid #1e2b40}
html[data-theme="dark"] .sidebar nav a{color:#aebbd0}
html[data-theme="dark"] .sidebar nav a:hover,html[data-theme="dark"] .sidebar nav a.active{background:#1b2940;color:#fff}
html[data-theme="dark"] .admin-main{background:#0a111e}
html[data-theme="dark"] .admin-topbar h1{color:#f0f4fb}
html[data-theme="dark"] .crumb,html[data-theme="dark"] .mini-kicker{color:#8190a8}
html[data-theme="dark"] .admin-user strong{color:#edf2fb}
html[data-theme="dark"] .admin-user small{color:#96a4bb}
html[data-theme="dark"] .panel-card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .media-card,html[data-theme="dark"] .reference-admin-card{background:#121e30;border-color:#2b3b55;color:#e8eef8;box-shadow:0 12px 32px rgba(0,0,0,.14)}
html[data-theme="dark"] .panel-heading h3,html[data-theme="dark"] .stat-card strong,html[data-theme="dark"] td strong,html[data-theme="dark"] .media-meta strong,html[data-theme="dark"] .ref-admin-info strong{color:#eef3fb}
html[data-theme="dark"] .stat-card span,html[data-theme="dark"] .stat-card small,html[data-theme="dark"] td,html[data-theme="dark"] td small,html[data-theme="dark"] .media-meta small,html[data-theme="dark"] .ref-admin-info p,html[data-theme="dark"] .content-toolbar p{color:#a7b4c8}
html[data-theme="dark"] .stat-card{border-radius:12px}
html[data-theme="dark"] th{color:#93a1b8;border-color:#2b3b55}
html[data-theme="dark"] td{border-color:#25344a}
html[data-theme="dark"] .welcome-banner{background:linear-gradient(115deg,#111c2e,#1d2d4b);border:1px solid #30425f;border-radius:14px;box-shadow:0 18px 42px rgba(0,0,0,.18)}
html[data-theme="dark"] .welcome-banner p{color:#c0cce0}
html[data-theme="dark"] .white-action{background:#e9eff9;color:#142039;border-radius:8px}
html[data-theme="dark"] .quick-actions>a{border-color:#26364d}
html[data-theme="dark"] .quick-actions strong{color:#edf2fb}
html[data-theme="dark"] .quick-actions small{color:#9eabc0}
html[data-theme="dark"] .quick-actions>a>span{background:#1e2c44;color:#ff6579;border-radius:9px}
html[data-theme="dark"] .check-list p{border-color:#29384f;color:#bac6d8}
html[data-theme="dark"] .admin-footer{border-color:#26364c;color:#8492a9}
html[data-theme="dark"] .form-grid label,html[data-theme="dark"] .wide-label,html[data-theme="dark"] .auth-form label{color:#d6e0ee}
html[data-theme="dark"] .form-panel input:not([type=checkbox]),html[data-theme="dark"] .form-panel textarea,html[data-theme="dark"] .form-panel select,html[data-theme="dark"] .auth-form input,html[data-theme="dark"] .form-grid input,html[data-theme="dark"] .form-grid textarea,html[data-theme="dark"] .wide-label input{background:#0b1524!important;border-color:#364761!important;color:#edf3fc!important}
html[data-theme="dark"] .form-grid input::placeholder,html[data-theme="dark"] .form-grid textarea::placeholder,html[data-theme="dark"] .auth-form input::placeholder{color:#73839b}
html[data-theme="dark"] .form-panel label small,html[data-theme="dark"] .form-grid small{color:#93a1b6}
html[data-theme="dark"] .editor-subhead{border-color:#2b3b55}
html[data-theme="dark"] .upload-drop,html[data-theme="dark"] .empty-admin{background:#0e192a;border-color:#34455f;color:#aebbd0}
html[data-theme="dark"] .upload-drop h3{color:#eaf0fb}
html[data-theme="dark"] .upload-drop p{color:#9eacc1}
html[data-theme="dark"] .file-limit{background:#121e30;border-color:#34445b;color:#aebbd0}
html[data-theme="dark"] .file-picker{background:#25385a}
html[data-theme="dark"] .media-preview,html[data-theme="dark"] .ref-thumb{background:#0b1524;color:#e4ebf7}
html[data-theme="dark"] .ref-thumb>span.ref-mark{background:#fff}
html[data-theme="dark"] .ref-admin-info>a,html[data-theme="dark"] .actions-cell a{color:#a9bbef}
html[data-theme="dark"] .security-note{background:#352a16;color:#f3cf79;border-color:#bf8a27}
html[data-theme="dark"] .storage-status-grid span{background:#0e192a;border-color:#30415a;color:#a9b6ca}
html[data-theme="dark"] .storage-status-grid b{color:#ecf2fb}
html[data-theme="dark"] .storage-path{color:#9eabc0}
html[data-theme="dark"] .admin-secondary{background:#1d2b43;border-color:#344660;color:#edf3fb}
html[data-theme="dark"] .auth-page{background:#0a111e}
html[data-theme="dark"] .auth-art{background:linear-gradient(145deg,#080e19,#172640);}
html[data-theme="dark"] .auth-form-side{background:#0d1727}
html[data-theme="dark"] .auth-form h2{color:#f0f4fb}
html[data-theme="dark"] .auth-form>p{color:#a9b6c9}
html[data-theme="dark"] .auth-tip{background:#142238;color:#aebbd0;border-color:#e71b38}
html[data-theme="dark"] .back-site{color:#a9bbef}
html[data-theme="dark"] .user-dot{background:#fff}
html[data-theme="light"]{color-scheme:light}
html[data-theme="light"] body{background:#f6f7fb;color:#1b1d35}
html[data-theme="light"] .admin-layout{background:#f6f7fb}
html[data-theme="light"] .admin-main{background:#f6f7fb}
html[data-theme="light"] .theme-switch{background:#edf1f7;border-color:#d8dfeb}
html[data-theme="light"] .theme-switch button{color:#5f6d82}
html[data-theme="light"] .theme-switch button:hover{background:#dce4f1;color:#18243a}
html[data-theme="light"] .theme-switch button.is-active{background:#202b4b;color:#fff}
html[data-theme="light"] .admin-top-actions .theme-switch{border-color:#d8dfeb;background:#edf1f7}
.sidebar-brand img{filter:none!important}
.auth-brand img{filter:none!important}
@media(max-width:760px){.admin-top-actions{width:100%;justify-content:flex-end}.admin-topbar{align-items:flex-start}.auth-theme-switch{top:13px;right:13px}.auth-form-side{padding-top:74px}}



/* V6: transparent brand lockups, theme-aware logo inversion and richer analytics */
.logo-white{display:none!important}
html[data-theme="dark"] .logo-color{display:none!important}
html[data-theme="dark"] .logo-white{display:block!important}
html[data-theme="light"] .logo-color{display:block!important}
html[data-theme="light"] .logo-white{display:none!important}
.auth-brand,.auth-mobile-logo,.sidebar-brand{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.auth-brand{width:min(390px,100%)}
.auth-brand img,.auth-mobile-logo img,.sidebar-brand img{width:100%;max-height:92px;object-fit:contain;filter:none!important}
.auth-brand .logo-white{display:block!important}
.auth-brand .logo-color{display:none!important}
html[data-theme="light"] .auth-mobile-logo .logo-color{display:block!important}
html[data-theme="light"] .auth-mobile-logo .logo-white{display:none!important}
html[data-theme="dark"] .auth-mobile-logo .logo-white{display:block!important}
html[data-theme="dark"] .auth-mobile-logo .logo-color{display:none!important}
.sidebar-brand{display:flex;align-items:center;min-height:74px;margin:8px 16px 22px!important}
.sidebar-brand img{max-width:100%;max-height:70px}
html[data-theme="dark"] .sidebar-brand .logo-white{display:block!important}
html[data-theme="dark"] .sidebar-brand .logo-color{display:none!important}
html[data-theme="light"] .sidebar-brand .logo-color{display:block!important}
html[data-theme="light"] .sidebar-brand .logo-white{display:none!important}
.user-dot{background:transparent!important;border:0!important;padding:0!important}
.user-dot .logo-white{width:100%;height:100%;object-fit:contain}
.analytics-card{margin-top:18px}
.analytics-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 22px}
.analytics-summary>div{background:rgba(120,140,170,.08);border:1px solid var(--line);border-radius:9px;padding:16px}
.analytics-summary small,.analytics-summary strong{display:block}
.analytics-summary small{font-size:12px;color:#8c96a8}
.analytics-summary strong{font-size:23px;color:var(--ink);margin-top:7px}
.analytics-bars{height:150px;display:flex;align-items:stretch;gap:9px;border-bottom:1px solid var(--line);padding:5px 0 0}
.analytics-bar{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;min-width:0}
.analytics-bar i{display:block;width:min(100%,30px);min-height:3px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#f04460,#a70d2a);box-shadow:0 6px 18px rgba(231,27,56,.15)}
.analytics-bar small{font-size:10px;color:#8b96a9}
.analytics-note{font-size:12px;line-height:1.65;color:#8491a5;margin:17px 0 0}
.visitor-stat{border-color:rgba(231,27,56,.25)}
.visitor-stat .stat-symbol{color:#e71b38}
html[data-theme="dark"] .analytics-summary>div{background:#0e192a;border-color:#30415a}
html[data-theme="dark"] .analytics-summary small{color:#a7b4c8}
html[data-theme="dark"] .analytics-summary strong{color:#f0f4fb}
html[data-theme="dark"] .analytics-note{color:#a4b1c5}
html[data-theme="dark"] .form-grid label{color:#edf2fb}
html[data-theme="dark"] .mini-kicker{color:#aab9d0}
html[data-theme="light"] .auth-brand .logo-white{display:block!important}
html[data-theme="light"] .auth-brand .logo-color{display:none!important}
@media(max-width:760px){.analytics-summary{grid-template-columns:1fr}.analytics-bars{gap:4px}.analytics-bar small{font-size:8px}}
