:root{--bg:#070916;--panel:#0d1124;--line:#252c53;--text:#f5f6ff;--muted:#a8adc1;--pink:#ef2c72;--purple:#7c3aed}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% 0,#1b1247,transparent 30%),var(--bg);color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}aside{position:fixed;left:0;top:0;bottom:0;width:245px;background:#090c1b;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column;gap:5px}.adminbrand{display:flex;align-items:center;gap:12px;margin:0 8px 25px}.adminbrand span,.ab{font-weight:900;font-size:32px;font-style:italic;background:linear-gradient(135deg,#ff3570,#8b5cf6,#00d9ff);-webkit-background-clip:text;color:transparent}.adminbrand b{line-height:1.1}.adminbrand+ a{margin-top:5px}aside a{padding:12px 14px;border-radius:9px;color:#bfc3d5;font-size:13px}aside a:hover,aside a.active{background:#17132e;color:#fff}aside .logout{margin-top:auto;color:#ff7ca5}.adminmain{margin-left:245px;padding:0 35px 50px;max-width:1300px}.top{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.muted,small{color:var(--muted)}.view{font-size:12px;color:#d59cff}.heroadmin{margin:35px 0 25px;padding:35px;border:1px solid #5420a0;border-radius:18px;background:linear-gradient(100deg,#170d2d,#0c1024);display:flex;align-items:center;justify-content:space-between}.heroadmin h1,.pagehead h1{margin:0;font-size:30px}.heroadmin p,.pagehead p{color:var(--muted);margin:7px 0}.primary{border:0;background:linear-gradient(100deg,#f02b70,#7535e6);color:#fff;padding:11px 18px;border-radius:9px;font-weight:800;cursor:pointer;display:inline-block}.secondary{display:inline-block;padding:10px 16px;border:1px solid var(--line);border-radius:9px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stats>div,.card{background:rgba(13,17,36,.9);border:1px solid var(--line);border-radius:15px}.stats>div{padding:20px}.stats b{font-size:28px;display:block}.stats span{color:var(--muted);font-size:12px}.card{padding:23px;margin:20px 0}.card h2{font-size:17px;margin:0 0 18px}.quick{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick a{padding:15px;border:1px solid var(--line);border-radius:10px;color:#ddd}.pagehead{margin:35px 0}.form h2{margin-top:4px}.form label{display:block;font-size:12px;color:#bfc4d6;margin:12px 0}.form input,.form textarea{display:block;width:100%;margin-top:6px;background:#070a18;border:1px solid #2b335c;border-radius:8px;color:#fff;padding:11px;font:inherit;outline:none}.form textarea{min-height:105px;resize:vertical}.form input:focus,.form textarea:focus{border-color:#8b5cf6}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;margin:0!important}.flash{padding:12px 15px;border-radius:9px;margin:20px 0;background:#123723;color:#b9f6ce}.flash.error{background:#421626;color:#ffb3c8}.table{border-top:1px solid var(--line)}.row{display:grid;grid-template-columns:45px 1fr auto auto;gap:15px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.row small{display:block;font-size:11px}.row>a{color:#c896ff;font-size:12px}.danger{border:1px solid #6e2440;background:#2a0f1c;color:#ff8eae;border-radius:7px;padding:7px 10px;cursor:pointer}.dot{width:13px;height:13px;border-radius:50%;box-shadow:0 0 12px currentColor}.number{width:35px;height:35px;border:1px solid #8b5cf6;border-radius:50%;display:grid;place-items:center;color:#c9a7ff}.login{min-height:100vh;display:grid;place-items:center}.loginbox{width:min(420px,calc(100% - 30px));background:#0c1022;border:1px solid #2a3159;border-radius:18px;padding:35px}.loginbox h1{margin:5px 0}.loginbox p{color:var(--muted)}.loginbox label{display:block;font-size:12px;margin:15px 0;color:#c8ccda}.loginbox input{width:100%;display:block;margin-top:6px;padding:12px;background:#070a18;border:1px solid #2b335c;border-radius:8px;color:#fff}.loginbox button{width:100%;padding:13px;border:0;border-radius:9px;background:linear-gradient(100deg,#f02b70,#7535e6);color:#fff;font-weight:800;margin:8px 0 15px}.loginbox>a{display:block;text-align:center;color:#a8adc1;font-size:12px}.error{padding:10px;border-radius:8px;background:#421626;color:#ffb3c8;font-size:12px}@media(max-width:800px){aside{position:static;width:auto;height:auto;display:block;padding:10px}aside a{display:inline-block}.adminbrand{display:inline-flex;margin-bottom:5px}.adminmain{margin-left:0;padding:0 15px 40px}.top{display:none}.stats,.quick,.grid2{grid-template-columns:1fr}.heroadmin{display:block}.heroadmin .primary{margin-top:18px}.row{grid-template-columns:35px 1fr auto}.row form{grid-column:2}.row>a{grid-column:3;grid-row:1}.row .dot{display:none}}
.project-preview{margin-top:10px;display:flex;align-items:center;gap:10px;color:#9aa4bd;font-size:12px}
.project-preview img{width:110px;height:70px;object-fit:cover;border-radius:10px;border:1px solid #343d63}
.portfolio-help{margin:14px 0;padding:12px 14px;border:1px solid #293357;border-radius:10px;background:#0a0f20;color:#aeb7cc;font-size:13px}
.description-ai-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:18px;margin-top:4px}.ai-inline-box{border:1px solid #5d2aa8;border-radius:12px;padding:16px;background:linear-gradient(145deg,rgba(32,17,65,.8),rgba(8,11,28,.95));align-self:start}.ai-inline-title{font-size:16px;font-weight:800;margin-bottom:7px;background:linear-gradient(90deg,#ff3d86,#a875ff);-webkit-background-clip:text;color:transparent}.ai-inline-box p{font-size:12px;margin:0 0 10px}.ai-inline-box .primary{width:100%;margin-top:4px}.ai-status{font-size:12px;color:#9ee7ba;margin-top:9px;min-height:18px}.ai-status.error{color:#ff9bb5}.ai-help{margin-top:15px!important}
@media(max-width:800px){.description-ai-grid{grid-template-columns:1fr}.ai-inline-box{order:2}.ai-help{display:none}}

/* Nowy, uporządkowany układ panelu Podstrony */
.pages-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.pages-head-badge{padding:9px 13px;border:1px solid #3a326b;border-radius:999px;background:#100d27;color:#cdb8ff;font-size:12px}.pages-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.page-editor-card{margin:0;padding:24px}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.section-title-row h2{margin:2px 0 0}.section-kicker{font-size:10px;letter-spacing:1.5px;color:#b57aff;font-weight:800}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.description-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.78fr);gap:18px;margin-top:4px}.description-main{min-width:0}.description-main textarea{min-height:220px}.field-note{font-size:11px;color:#727b99;margin-top:-4px}.ai-box{border:1px solid #6533a6;border-radius:14px;padding:18px;background:linear-gradient(145deg,#1c1039,#0a0e20);box-shadow:0 10px 35px rgba(81,38,145,.12)}.ai-box-icon{font-size:22px;margin-bottom:3px}.ai-inline-title{font-size:17px;margin-bottom:6px}.ai-box p{font-size:12px;line-height:1.55;color:#aeb5ca;margin:0 0 12px}.ai-box textarea{min-height:128px}.ai-button{width:100%;margin-top:5px}.ai-status{font-size:12px;color:#9ee7ba;margin-top:9px;min-height:18px}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.editor-actions{display:flex;gap:10px;align-items:center}.pages-help-card{margin:0;padding:23px;position:sticky;top:20px}.pages-help-card h2{margin:8px 0 18px}.help-icon{font-size:25px}.help-step{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line)}.help-step b{font-size:11px;color:#b67cff;min-width:25px}.help-step span{font-size:12px;color:#c2c7d8}.help-tip{margin-top:18px;padding:12px;border-radius:10px;background:#0a0f20;border:1px solid #293357;color:#aeb7cc;font-size:11px}.pages-list-card{margin-top:20px;padding:23px}.pages-count{font-size:11px;color:#8992ad;border:1px solid var(--line);border-radius:999px;padding:6px 10px}.pages-table{border-top:1px solid var(--line)}.page-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.page-row-main{min-width:0}.page-row-main b{display:block}.page-row-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-status{font-size:11px;padding:5px 9px;border-radius:999px}.page-status.is-on{background:#123723;color:#a9f1c0}.page-status.is-off{background:#2b1620;color:#ff9eb7}.row-edit{font-size:12px;color:#c896ff}.page-row form{margin:0}.empty-pages{padding:25px 0;color:var(--muted)}
@media(max-width:900px){.pages-layout{grid-template-columns:1fr}.pages-help-card{position:static}.description-panel{grid-template-columns:1fr}.pages-head{align-items:flex-start;flex-direction:column}.pages-head-badge{display:none}}
@media(max-width:650px){.page-editor-card,.pages-list-card,.pages-help-card{padding:17px}.form-grid-2{grid-template-columns:1fr;gap:0}.editor-bottom{align-items:stretch;flex-direction:column}.editor-actions{flex-wrap:wrap}.editor-actions .primary{flex:1}.page-row{grid-template-columns:36px 1fr auto;gap:9px}.page-status{display:none}.page-row .row-edit{grid-column:2}.page-row form{grid-column:3;grid-row:1}.page-row .danger{padding:6px 8px}.description-main textarea{min-height:180px}}

/* Zarządzanie wszystkimi stronami w panelu */
.pages-section-note{margin:5px 0 0;font-size:12px}.system-pages-card{margin-top:20px}.system-pages-grid{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.system-page-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.system-page-icon{width:36px;height:36px;border:1px solid #4b3a79;border-radius:10px;display:grid;place-items:center;color:#c18aff;background:#100d25}.system-page-row b{display:block}.system-page-row small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.system-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.system-row-actions .row-edit{padding:8px 11px;border:1px solid #56338a;border-radius:9px;background:#120d27;text-decoration:none;font-weight:800;font-size:11px}.row-preview{color:#9fa8c5;text-decoration:none;font-size:14px;padding:7px}.pages-list-head-actions{display:flex;align-items:center;gap:10px}.pages-add-btn{white-space:nowrap;padding:9px 13px}.empty-pages{display:flex;align-items:center;justify-content:space-between;gap:15px}.empty-pages-text{color:var(--muted)}
@media(max-width:900px){.system-pages-grid{grid-template-columns:1fr}}
@media(max-width:650px){.pages-list-head-actions{align-items:stretch;flex-direction:column}.pages-list-head-actions .pages-count{align-self:flex-start}.system-page-row{grid-template-columns:36px 1fr auto;gap:9px}.system-page-icon{width:34px;height:34px}.empty-pages{display:block}.empty-pages .pages-add-btn{margin-top:12px}}
.system-editor{margin:0 0 20px;padding:18px;border:1px solid #5b2fa1;border-radius:14px;background:linear-gradient(145deg,#160d31,#0a0e20)}.system-editor-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.system-editor-head h3{margin:2px 0 0;font-size:20px}.system-editor-actions{display:flex;gap:8px}.system-edit-form{padding-top:5px;border-top:1px solid #2b2450}.system-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.system-fields label:last-child:nth-child(odd){grid-column:1/-1}.system-fields textarea{min-height:150px}.system-editor .primary{margin-top:8px}@media(max-width:650px){.system-editor-head{align-items:flex-start;flex-direction:column}.system-fields{grid-template-columns:1fr}.system-fields label:last-child:nth-child(odd){grid-column:auto}.system-editor-actions{width:100%}.system-editor-actions a{flex:1;text-align:center}}
.settings-notice{margin:0 0 22px;padding:15px 17px;border:1px solid #49326f;border-radius:12px;background:linear-gradient(145deg,#140d2b,#0b0f20);display:flex;gap:12px;align-items:flex-start}.settings-notice b{color:#d8b4ff;white-space:nowrap}.settings-notice span{color:#aeb6cc;font-size:12px;line-height:1.5}.settings-notice a{color:#e879f9;font-weight:800}
@media(max-width:650px){.settings-notice{display:block}.settings-notice b{display:block;margin-bottom:5px}.system-row-actions .row-edit{padding:7px 8px}}

/* Aktualne podstrony — edycja bez przechodzenia do Ustawień */
.system-edit-list{display:grid;gap:16px}.system-edit-card{border:1px solid var(--line);border-radius:16px;background:#090d1d;padding:18px}.system-edit-card-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.system-edit-card-head h3{margin:0 0 3px;font-size:17px}.system-edit-card-head small{color:var(--muted);font-size:11px}.system-edit-card-head .secondary{margin-left:auto}.system-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.system-inline-fields label:last-child:nth-child(odd){grid-column:1/-1}.system-inline-fields textarea{min-height:100px}.system-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}.system-inline-actions .primary{white-space:nowrap}.system-edit-card:target{border-color:#8b42d7;box-shadow:0 0 0 2px rgba(139,66,215,.12)}
@media(max-width:650px){.system-inline-fields{grid-template-columns:1fr}.system-inline-actions{align-items:stretch;flex-direction:column}.system-inline-actions .primary{width:100%}.system-edit-card-head .secondary{font-size:11px;padding:8px}.system-edit-card{padding:14px}}

/* Czytelne zarządzanie aktualnymi podstronami w jednym miejscu */
.current-pages-list{border-top:1px solid var(--line)}
.current-page-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.current-page-item.is-selected{background:linear-gradient(90deg,rgba(150,70,255,.09),transparent);padding-left:10px;padding-right:10px;border-radius:10px}
.current-page-icon{width:36px;height:36px;border:1px solid #4b3a79;border-radius:10px;display:grid;place-items:center;color:#c18aff;background:#100d25}
.current-page-info b{display:block;font-size:14px}.current-page-info small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.current-page-edit{padding:8px 13px;text-decoration:none;white-space:nowrap}.system-selected-editor{margin-top:20px;padding:24px;border:1px solid #56338a;background:linear-gradient(145deg,#100d25,#090d1d)}
.system-selected-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.system-selected-fields label:has(textarea){grid-column:1/-1}.system-selected-fields textarea{min-height:150px;resize:vertical}.system-selected-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:700px){.current-page-item{grid-template-columns:36px 1fr auto}.current-page-item .row-preview{display:none}.current-page-edit{grid-column:3;grid-row:1}.system-selected-fields{grid-template-columns:1fr}.system-selected-fields label:has(textarea){grid-column:auto}.system-selected-actions{justify-content:stretch;flex-direction:column}.system-selected-actions>*{width:100%;text-align:center}}

/* Pełny edytor kodu PHP — spójny z ciemnym panelem */
#system-code-editor .code-label{display:block!important;width:100%!important;margin:0!important;color:#c2c7d8;font-size:12px}
#system-code-editor textarea.php-code-editor{display:block!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:620px!important;min-height:620px!important;box-sizing:border-box!important;margin:8px 0 0!important;padding:16px!important;border:1px solid #303963!important;border-radius:10px!important;background:#070a18!important;background-color:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;font-family:Consolas,"Cascadia Code","Courier New",monospace!important;font-size:13px!important;line-height:1.55!important;resize:vertical!important;overflow:auto!important;outline:none!important;white-space:pre!important;caret-color:#c084fc!important}
#system-code-editor textarea.php-code-editor:focus{border-color:#8b5cf6!important;background:#070a18!important;background-color:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;box-shadow:0 0 0 2px rgba(139,92,246,.12)!important}
.system-code-editor{margin:20px 0;padding:24px;border:1px solid #3d2b6b;border-radius:16px;background:linear-gradient(145deg,#0d1020,#080b18);box-shadow:0 10px 35px rgba(81,38,145,.08)}
.system-code-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.system-code-head h2{margin:4px 0 7px;font-size:20px}
.system-code-head p{margin:0;max-width:900px}
.code-badge{flex:0 0 auto;padding:7px 11px;border:1px solid #5f3aa0;border-radius:8px;color:#c99cff;background:#15102a;font-size:11px;font-weight:800;letter-spacing:1px}
.code-label{display:block;color:#c2c7d8;font-size:12px}
.system-code-editor textarea.php-code-editor,
.system-code-editor .php-code-editor{display:block!important;width:100%!important;min-width:0!important;height:560px!important;min-height:560px!important;margin:8px 0 0!important;padding:16px!important;box-sizing:border-box!important;resize:vertical!important;overflow:auto!important;border:1px solid #303963!important;border-radius:10px!important;background:#070a18!important;background-color:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;font-family:Consolas,"Cascadia Code","Courier New",monospace!important;font-size:13px!important;line-height:1.55!important;tab-size:4;white-space:pre!important;outline:none!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.03)!important;caret-color:#c084fc!important}
.system-code-editor textarea.php-code-editor:focus{border-color:#8b5cf6!important;background:#070a18!important;background-color:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;box-shadow:0 0 0 2px rgba(139,92,246,.12)!important}
.code-warning{margin-top:10px;padding:10px 12px;border:1px solid #493d26;border-radius:8px;background:#17130c;color:#c7b98f;font-size:11px}
.system-code-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:700px){.system-code-head{flex-direction:column}.system-code-editor{padding:17px}.system-code-editor textarea.php-code-editor,.system-code-editor .php-code-editor{height:430px!important;min-height:430px!important;font-size:12px!important}.system-code-actions{flex-direction:column;align-items:stretch}.system-code-actions>*{width:100%;text-align:center}}

/* Kod PHP w edycji własnej podstrony */
.custom-php-panel{margin-top:20px;padding:20px;border:1px solid #56338a;border-radius:14px;background:linear-gradient(145deg,#100d25,#090d1d)}
.custom-php-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.custom-php-head h3{margin:3px 0 5px;font-size:18px}
.custom-php-head p{margin:0;max-width:850px;font-size:12px;line-height:1.55}
.custom-php-panel .code-label{display:block;font-size:13px;font-weight:600}
.custom-php-panel textarea.php-code-editor{display:block!important;width:100%!important;min-width:0!important;height:420px!important;min-height:420px!important;margin:8px 0 0!important;padding:16px!important;box-sizing:border-box!important;resize:vertical!important;overflow:auto!important;border:1px solid #303963!important;border-radius:10px!important;background:#070a18!important;background-color:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;font-family:Consolas,"Cascadia Code","Courier New",monospace!important;font-size:13px!important;line-height:1.55!important;tab-size:4;white-space:pre!important;outline:none!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.03)!important;caret-color:#c084fc!important}
.custom-php-panel textarea.php-code-editor:focus{border-color:#8b5cf6!important;background:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;box-shadow:0 0 0 2px rgba(139,92,246,.12)!important}
.custom-php-panel .code-warning{margin-top:10px}
@media(max-width:700px){.custom-php-panel{padding:17px}.custom-php-head{flex-direction:column}.custom-php-panel textarea.php-code-editor{height:360px!important;min-height:360px!important;font-size:12px!important}}

/* Akcje aktualnych podstron */
.current-page-item{grid-template-columns:42px minmax(0,1fr) auto;align-items:center}
.current-page-actions{grid-column:2/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:-2px}
.current-page-actions form{margin:0}
.current-page-actions .row-preview{padding:8px 10px}
.current-page-delete{padding:8px 12px!important}
.current-page-visibility{grid-column:2/-1;margin:0!important;display:flex;justify-content:flex-end}
.visibility-btn{border:1px solid #284f3a;background:#123723;color:#a9f1c0;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:700;cursor:pointer}
.visibility-btn.is-hidden{border-color:#5a2638;background:#2b1620;color:#ff9eb7}
.current-page-item>.page-status{justify-self:end}
.current-page-item.is-deleted{opacity:.72}
.current-page-item.is-deleted .current-page-actions{margin-top:0}
@media(max-width:650px){
 .current-page-item{grid-template-columns:36px 1fr auto}
 .current-page-item>.page-status{grid-column:3;grid-row:1;justify-self:end}
 .current-page-actions{grid-column:2/-1;justify-content:flex-start;margin-top:8px}
 .current-page-visibility{grid-column:2/-1;justify-content:flex-start}
}

/* Jednolity układ aktualnych podstron — taki sam jak własnych podstron */
.current-page-item{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  column-gap:14px!important;
  row-gap:8px!important;
  align-items:center!important;
  padding:16px 0!important;
}
.current-page-icon{grid-column:1;grid-row:1 / span 2!important;align-self:start!important}
.current-page-info{grid-column:2;grid-row:1!important;min-width:0!important;align-self:start!important}
.current-page-top-actions{
  grid-column:3;grid-row:1!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:12px!important;white-space:nowrap!important;align-self:start!important;
}
.current-page-actions{
  grid-column:2;grid-row:2!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;margin:0!important;padding:0!important;
}
.current-page-actions form{margin:0!important;display:flex!important}
.current-page-edit{padding:8px 13px!important;white-space:nowrap!important;text-decoration:none!important}
.current-page-delete{padding:8px 13px!important}
.current-page-actions .visibility-btn{padding:8px 12px!important;border-radius:9px!important}
.current-page-top-actions .row-preview{padding:7px 0!important;color:#9fa8c5!important;text-decoration:none!important;font-size:14px!important}
.current-page-item>.page-status{justify-self:auto!important}
.current-page-item.is-deleted .current-page-actions{margin:0!important}
@media(max-width:650px){
  .current-page-item{
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    gap:8px 10px!important;
  }
  .current-page-icon{grid-column:1;grid-row:1 / span 2!important}
  .current-page-info{grid-column:2;grid-row:1!important}
  .current-page-top-actions{grid-column:2;grid-row:2!important;justify-content:flex-start!important}
  .current-page-actions{grid-column:2;grid-row:3!important;flex-wrap:wrap!important}
}

/* Ostateczny, odporny na różnice przeglądarek układ AKTUALNYCH PODSTRON.
   Układ docelowy: Opera — dane po lewej, status + podgląd po prawej,
   a EDYTUJ / UKRYJ-POKAŻ / USUŃ w drugim wierszu pod danymi. */
.current-pages-list .current-page-item{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  column-gap:14px!important;
  row-gap:8px!important;
  padding:16px 0!important;
  margin:0!important;
  border-bottom:1px solid var(--line)!important;
}
.current-pages-list .current-page-icon{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  margin:0!important;
  align-self:flex-start!important;
}
.current-pages-list .current-page-info{
  flex:1 1 300px!important;
  min-width:180px!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  align-self:flex-start!important;
}
.current-pages-list .current-page-info b{
  display:block!important;
  margin:0!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.current-pages-list .current-page-info small{
  display:block!important;
  margin-top:3px!important;
  line-height:1.4!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.current-pages-list .current-page-top-actions{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  min-width:max-content!important;
  align-self:flex-start!important;
  white-space:nowrap!important;
}
.current-pages-list .current-page-top-actions .page-status{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
}
.current-pages-list .current-page-top-actions .row-preview{
  display:inline-block!important;
  padding:7px 0!important;
  margin:0!important;
  white-space:nowrap!important;
}
.current-pages-list .current-page-actions{
  flex:1 1 calc(100% - 56px)!important;
  width:auto!important;
  min-width:0!important;
  margin:0 0 0 56px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  order:4!important;
}
.current-pages-list .current-page-actions form{
  display:flex!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
}
.current-pages-list .current-page-actions a,
.current-pages-list .current-page-actions button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.current-pages-list .current-page-edit{padding:8px 13px!important}
.current-pages-list .current-page-actions .visibility-btn{padding:8px 12px!important;border-radius:9px!important}
.current-pages-list .current-page-delete{padding:8px 13px!important}
.current-pages-list .current-page-item.is-deleted{opacity:.72!important}

@media(max-width:700px){
  .current-pages-list .current-page-item{column-gap:10px!important}
  .current-pages-list .current-page-info{flex:1 1 180px!important;min-width:120px!important}
  .current-pages-list .current-page-top-actions{
    flex:1 1 100%!important;
    min-width:0!important;
    justify-content:flex-start!important;
    margin-left:52px!important;
  }
  .current-pages-list .current-page-actions{
    flex-basis:calc(100% - 52px)!important;
    margin-left:52px!important;
  }
}

/* Pola edycji aktualnej podstrony — ciemne jak reszta panelu */
.system-selected-form .system-selected-fields > label{
  display:block!important;
  color:#c2c7d8!important;
  font-size:12px!important;
  line-height:1.4!important;
  margin:0!important;
}
.system-selected-form .system-selected-fields > label input,
.system-selected-form .system-selected-fields > label textarea{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:7px 0 0!important;
  padding:11px 12px!important;
  box-sizing:border-box!important;
  background:#070a18!important;
  background-color:#070a18!important;
  color:#f5f6ff!important;
  -webkit-text-fill-color:#f5f6ff!important;
  border:1px solid #303963!important;
  border-radius:8px!important;
  font:inherit!important;
  outline:none!important;
}
.system-selected-form .system-selected-fields > label input:focus,
.system-selected-form .system-selected-fields > label textarea:focus{
  border-color:#8b5cf6!important;
  background:#070a18!important;
  background-color:#070a18!important;
  color:#f5f6ff!important;
  -webkit-text-fill-color:#f5f6ff!important;
  box-shadow:0 0 0 2px rgba(139,92,246,.12)!important;
}
.system-selected-form .system-selected-fields > label textarea{
  min-height:150px!important;
  resize:vertical!important;
}

/* Pełna edycja stopki – taki sam ciemny edytor jak kod podstrony */
.footer-settings .php-code-editor{display:block!important;width:100%!important;min-width:100%!important;height:620px!important;min-height:620px!important;box-sizing:border-box!important;margin:8px 0 0!important;padding:16px!important;border:1px solid #303963!important;border-radius:10px!important;background:#070a18!important;color:#e9eaff!important;-webkit-text-fill-color:#e9eaff!important;font-family:Consolas,"Cascadia Code","Courier New",monospace!important;font-size:13px!important;line-height:1.55!important;resize:vertical!important;overflow:auto!important;outline:none!important;white-space:pre!important;tab-size:4;caret-color:#c084fc!important}.footer-settings .php-code-editor:focus{border-color:#8b5cf6!important;box-shadow:0 0 0 2px rgba(139,92,246,.12)!important}@media(max-width:700px){.footer-settings .php-code-editor{height:430px!important;min-height:430px!important;font-size:12px!important}}
