:root{--bg:#f4f1eb;--paper:#fffdf8;--ink:#17211d;--muted:#66716b;--gold:#c89545;--green:#173f35;--line:#ded8cc;--radius:24px;--shadow:0 24px 70px rgba(24,42,35,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,5vw,80px);background:rgba(244,241,235,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(23,63,53,.08)}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px}.brand em{color:var(--gold);font-style:normal}.brand small{display:block;font-size:9px;letter-spacing:.14em;color:var(--muted);font-weight:600}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--green);color:white;font-family:Georgia,serif;font-size:26px}.site-header nav{display:flex;align-items:center;gap:24px;font-size:14px}.inline{display:inline}.link-btn{border:0;background:none;cursor:pointer}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green);border-radius:999px;background:var(--green);color:white;padding:14px 22px;font-weight:750;cursor:pointer}.btn.small{padding:10px 16px}.btn.ghost{background:transparent;color:var(--green)}.nav-toggle{display:none;border:0;background:none;font-size:26px}.hero{min-height:680px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:8vw;padding:80px clamp(24px,8vw,120px);overflow:hidden;background:radial-gradient(circle at 85% 30%,rgba(200,149,69,.18),transparent 28%),linear-gradient(135deg,#f7f3ec,#eee9de)}.eyebrow{font-size:12px;letter-spacing:.2em;font-weight:850;color:var(--gold)}h1,h2,h3{font-family:Georgia,'Times New Roman',serif}.hero h1{font-size:clamp(48px,6vw,88px);line-height:.98;margin:20px 0}.hero h1 span{color:var(--green)}.hero-copy>p{max-width:680px;font-size:20px;line-height:1.7;color:var(--muted)}.hero-actions,.trust{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}.trust{font-size:13px;color:var(--green)}.hero-card{position:relative;background:var(--paper);border-radius:34px;padding:56px;box-shadow:var(--shadow);transform:rotate(2deg);min-height:430px}.hero-card:before{content:"";position:absolute;inset:18px;border:1px solid var(--line);border-radius:25px}.hero-card>*{position:relative}.hero-card h2{font-size:36px;line-height:1.15}.hero-card p{font-family:Georgia,serif;font-size:18px;line-height:1.7}.date{position:absolute;right:45px;top:-38px;width:92px;height:92px;background:var(--gold);color:white;border-radius:50%;display:grid;place-items:center;font-family:Georgia;font-size:34px}.date small{display:block;font-family:Inter;font-size:9px;margin-top:-25px}.pill{display:inline-flex;border-radius:999px;background:#e7efe9;color:var(--green);padding:7px 11px;font-size:11px;font-weight:800}.features,.cards,.price-grid,.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.features{padding:60px clamp(24px,8vw,120px);background:var(--green);color:white}.features article{padding:24px}.features b{color:var(--gold)}.features h3{font-size:26px}.features p{color:#bdd0c9;line-height:1.65}.latest,.pricing{padding:100px clamp(24px,8vw,120px)}.section-head h2{font-size:50px;margin:12px 0 36px}.sermon-card,.price-card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:0 10px 30px rgba(24,42,35,.05)}.sermon-card{transition:.25s}.sermon-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}.sermon-card h3{font-size:25px}.sermon-card p{color:var(--muted);line-height:1.6}.sermon-card small{font-weight:800;color:var(--green)}.pricing{background:#e9e4da}.price-card{position:relative}.price-card.featured{background:var(--green);color:white;transform:scale(1.04)}.price-card.featured p,.price-card.featured li{color:#c9d9d4}.popular{position:absolute;top:-14px;right:24px;background:var(--gold);padding:8px 12px;border-radius:999px;font-size:11px;font-weight:800}.price-card h3{font-size:28px}.price{font-size:34px;font-weight:850}.price small{font-size:13px}.price-card ul{padding-left:20px;line-height:2;color:var(--muted)}footer{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding:60px clamp(24px,8vw,120px);background:#102e27;color:#dbe8e3}footer>div{display:flex;flex-direction:column;gap:10px}footer p,footer span{color:#9fb6ae}.page-head,.admin-head{padding:70px clamp(24px,8vw,120px) 36px}.page-head h1,.admin-head h1{font-size:56px;margin:14px 0}.library{display:grid;grid-template-columns:280px 1fr;gap:30px;padding:0 clamp(24px,8vw,120px) 100px}.library aside{position:sticky;top:110px;height:max-content}.library form,.form-card,.editor-form{display:grid;gap:18px}.library label,.form-card label,.editor-form label{display:grid;gap:8px;font-size:13px;font-weight:750}input,select,textarea{width:100%;border:1px solid var(--line);background:white;border-radius:13px;padding:13px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(200,149,69,.12)}.sermon-list{display:grid;gap:14px}.list-row{display:grid;grid-template-columns:1fr 230px;gap:30px;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px}.list-row h2{margin:10px 0}.list-row p{color:var(--muted)}.meta{display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:right}.meta span{font-size:12px;color:var(--muted)}.meta i{font-size:24px}.sermon-view{max-width:900px;margin:0 auto;padding:80px 22px}.sermon-view>header{text-align:center}.sermon-view h1{font-size:48px}.sermon-meta{display:flex;justify-content:center;gap:22px;color:var(--muted)}.sermon-paper{position:relative;margin-top:44px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);padding:70px clamp(28px,7vw,90px);font-family:Georgia,serif;font-size:20px;line-height:1.75}.sermon-paper p{text-indent:1.5cm;margin:0}.fade-lock{position:absolute;inset:auto 0 0;height:55%;display:grid;place-items:end center;padding:45px;text-align:center;background:linear-gradient(transparent,var(--paper) 40%)}.fade-lock div{font-family:Inter}.download-bar,.example{margin-top:25px;padding:25px;border-radius:20px;background:#e7efe9}.download-bar{display:flex;align-items:center;gap:12px}.download-bar span{margin-right:auto;font-weight:800}.example{padding:40px}.auth-wrap{min-height:70vh;display:grid;place-items:center;padding:60px 20px}.form-card{width:min(480px,100%);background:var(--paper);padding:42px;border-radius:28px;box-shadow:var(--shadow)}.form-card h1{font-size:42px;margin:5px 0}.flash{margin:20px auto;padding:14px 20px;max-width:900px;border-radius:12px}.flash.error{background:#ffe1df;color:#7d211b}.flash.success{background:#dff3e7;color:#155d35}.account-grid,.admin-editor{display:grid;grid-template-columns:1fr 2fr;gap:24px;padding:0 clamp(24px,8vw,120px) 100px}.wide{grid-column:auto}.subscription{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.mini-prices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mini-price{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:18px}.mini-price strong{font-size:22px}.mini-price label{font-size:12px}.admin-head{display:flex;align-items:center;justify-content:space-between}.stats{grid-template-columns:repeat(4,1fr);padding:0 clamp(24px,8vw,120px) 30px}.stats article{background:var(--green);color:white;padding:24px;border-radius:20px}.stats span{display:block;color:#aac2ba}.stats b{font-size:38px}.admin-head+.stats+.panel{margin:0 clamp(24px,8vw,120px) 100px}.panel{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);font-size:13px}.admin-editor{grid-template-columns:1fr}.admin-editor details{background:var(--paper);border-radius:20px;padding:25px}.admin-editor summary{cursor:pointer;font-weight:800}.editor-form{grid-template-columns:repeat(3,1fr);margin-top:22px}.editor-form .full{grid-column:1/-1}.check{display:flex!important;align-items:center;grid-template-columns:auto 1fr}.check input{width:auto}.empty{text-align:center;padding:80px 20px}.narrow{max-width:700px;margin:auto}@media(max-width:900px){.site-header nav{display:none;position:absolute;top:79px;left:0;right:0;padding:25px;background:var(--bg);flex-direction:column}.site-header nav.open{display:flex}.nav-toggle{display:block}.hero{grid-template-columns:1fr;padding-top:55px}.hero-card{margin-top:40px}.features,.cards,.price-grid,.mini-prices,.stats{grid-template-columns:1fr}.price-card.featured{transform:none}.library,.account-grid{grid-template-columns:1fr}.library aside{position:static}.list-row{grid-template-columns:1fr}.meta{text-align:left}.editor-form{grid-template-columns:1fr}.editor-form .full{grid-column:auto}footer{grid-template-columns:1fr}.sermon-view h1,.page-head h1{font-size:40px}.sermon-paper{font-size:18px}.download-bar{flex-wrap:wrap}.download-bar span{width:100%}}

/* Legal documents, purchase consents and cookie preferences */
.legal-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding:70px clamp(24px,8vw,120px) 36px}.legal-hero h1{font-size:clamp(42px,6vw,68px);margin:12px 0}.legal-hero p{max-width:760px;color:var(--muted);font-size:17px;line-height:1.7}.legal-meta,.legal-actions{display:flex;gap:12px;flex-wrap:wrap}.legal-meta span{font-size:12px;font-weight:750;background:#e7efe9;padding:8px 12px;border-radius:999px}.legal-shell{padding:0 clamp(24px,8vw,120px) 100px}.legal-notice{background:#fff7e7;border:1px solid #ead6a9;border-radius:18px;padding:18px 22px;margin-bottom:20px}.legal-notice p{margin:6px 0 0;color:#665632}.legal-pdf{width:100%;height:78vh;min-height:720px;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:var(--shadow)}.legal-mobile-fallback{display:none;text-align:center;padding:28px}.legal-check{display:grid!important;grid-template-columns:22px 1fr!important;align-items:start;gap:10px!important;font-weight:500!important;line-height:1.45}.legal-check input{width:18px!important;height:18px;margin:2px 0 0}.legal-check a{text-decoration:underline;color:var(--green);font-weight:750}.form-legal-note,.purchase-intro,.payment-disclaimer{font-size:12px;color:var(--muted);line-height:1.5}.purchase-consents{display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--line)}.mini-price{align-content:start}.mini-price .legal-check{font-size:11px!important}.footer-cookie-link{border:0;padding:0;background:none;color:inherit;text-align:left;cursor:pointer;font:inherit}.cookie-banner{position:fixed;inset:0;z-index:9999;background:rgba(9,25,21,.62);display:grid;place-items:end center;padding:20px}.cookie-banner[hidden]{display:none}.cookie-panel{position:relative;width:min(900px,100%);background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 28px 90px rgba(0,0,0,.28)}.cookie-panel h2{font-size:32px;margin:8px 0}.cookie-panel>p{color:var(--muted);line-height:1.6}.cookie-close{position:absolute;right:20px;top:16px;border:0;background:none;font-size:28px;cursor:pointer}.cookie-categories{display:grid;gap:10px;margin:20px 0}.cookie-categories label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;border:1px solid var(--line);padding:14px 16px;border-radius:14px}.cookie-categories span{display:grid;gap:3px}.cookie-categories small{color:var(--muted)}.cookie-categories input{width:20px;height:20px}.cookie-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.cookie-links{font-size:13px}.cookie-links a{text-decoration:underline}.cookie-panel .btn{padding:11px 16px}
@media(max-width:900px){.legal-hero{align-items:flex-start;flex-direction:column}.legal-pdf{height:65vh;min-height:520px}.cookie-banner{padding:0;place-items:end stretch}.cookie-panel{border-radius:24px 24px 0 0;max-height:92vh;overflow:auto}.cookie-actions{display:grid;grid-template-columns:1fr}.legal-mobile-fallback{display:block}}

/* Professional sermon browsing and admin management */
.filter-actions,.form-actions,.row-actions,.bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:30px 0 0}
.page-link{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:10px 16px;font-weight:750}
.page-link:hover{border-color:var(--gold)}
.page-link.disabled{pointer-events:none;opacity:.45}
.admin-filters{display:grid;gap:16px}
.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:14px}
.filter-grid label{display:grid;gap:7px;font-size:12px;font-weight:750}
.bulk-form{padding:0;overflow:hidden}
.bulk-toolbar{padding:18px 20px;border-bottom:1px solid var(--line);background:#f7f4ed}
.bulk-toolbar select{width:auto;min-width:190px;margin-left:auto}
.table-wrap{overflow:auto}
.admin-sermons-table th:first-child,.admin-sermons-table td:first-child{width:44px;text-align:center}
.admin-sermons-table input[type=checkbox]{width:18px;height:18px}
.row-actions{flex-wrap:nowrap}
.row-actions .btn{white-space:nowrap}
.status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}
.status-published{background:#dff3e7;color:#155d35}
.status-draft{background:#eee9df;color:#625e55}
.status-review{background:#fff1c9;color:#775800}
.status-archived{background:#e3e4e6;color:#4b5058}
.sermon-edit-panel{margin:0 clamp(24px,8vw,120px) 100px}
.admin-editor>.pagination{grid-column:1/-1}
@media(max-width:1100px){.filter-grid{grid-template-columns:1fr 1fr}.filter-grid label:first-child{grid-column:1/-1}}
@media(max-width:700px){.filter-grid{grid-template-columns:1fr}.filter-grid label:first-child{grid-column:auto}.bulk-toolbar select{width:100%;margin-left:0}.row-actions{flex-wrap:wrap}.pagination{flex-wrap:wrap}}

/* User administration pagination */
.page-link.current{background:var(--green);border-color:var(--green);color:#fff;pointer-events:none}

/* Sermons selected automatically by liturgical date on the home page */
.calendar-sermons{padding:100px clamp(24px,8vw,120px)}
.calendar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.calendar-card{display:flex;flex-direction:column;min-height:360px}
.calendar-primary-link{display:flex;flex:1;flex-direction:column}
.calendar-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.calendar-label{max-width:70%;font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:700;color:var(--green)}
.calendar-card time{white-space:nowrap;color:var(--muted);font-size:12px;font-weight:800}
.calendar-card .pill{align-self:flex-start}
.calendar-card h3{margin-bottom:10px}
.calendar-card p{flex:1}
.calendar-more-link{display:block;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);color:var(--green);font-size:13px;font-weight:850}
.calendar-more-link:hover{color:var(--gold)}
.calendar-card-empty{box-shadow:none;background:rgba(255,253,248,.58)}
.calendar-card-empty:hover{transform:none;box-shadow:none}
.calendar-card-empty h3{color:var(--muted)}
@media(max-width:900px){.calendar-grid{grid-template-columns:1fr}.calendar-card{min-height:0}.calendar-label{max-width:none}}


/* Jednorazowe kody promocyjne */
.field-optional{font-weight:500;color:var(--muted)}
.promo-code-box{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);align-items:center;gap:28px;margin-top:34px;padding-top:30px;border-top:1px solid var(--line)}
.promo-code-box h2{margin:7px 0 8px;font-size:30px}
.promo-code-box p{margin:0;color:var(--muted);line-height:1.6}
.promo-code-form{display:grid;gap:9px}
.promo-code-form>label{font-size:13px;font-weight:750}
.promo-code-row{display:grid;grid-template-columns:1fr auto;gap:10px}
.promo-code-row input{text-transform:uppercase;letter-spacing:.06em;font-weight:750}
.promo-code-row .btn{white-space:nowrap}
.promo-unavailable{padding:18px 20px;border:1px solid #ead6a9;border-radius:16px;background:#fff7e7;color:#665632}
.promo-used{display:grid;gap:5px;padding:18px 20px;border:1px solid #b8d7c4;border-radius:16px;background:#edf8f1}
.promo-used strong{color:#155d35}
.promo-used span{font-weight:850;letter-spacing:.08em}
.promo-used small{color:var(--muted)}
@media(max-width:900px){.promo-code-box{grid-template-columns:1fr}.promo-code-row{grid-template-columns:1fr}.promo-code-row .btn{width:100%}}

/* Admin access-code generator and registry */
.promo-admin-head p{max-width:720px;margin:0;color:var(--muted);line-height:1.6}
.admin-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.promo-stats{grid-template-columns:repeat(3,1fr)}
.promo-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin:0 clamp(24px,8vw,120px) 30px}
.promo-admin-grid>.panel{margin:0;padding:30px;overflow:visible}
.promo-generator-panel h2,.generated-codes-panel h2,.promo-list-panel h2{margin:8px 0 10px}
.promo-generator-panel>p,.generated-codes-panel>p,.promo-list-heading p{color:var(--muted);line-height:1.6}
.promo-generator-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px;margin-top:24px}
.promo-generator-form label,.promo-filter-form label{display:grid;gap:7px;font-size:12px;font-weight:750}
.promo-generator-form small{color:var(--muted);font-weight:500;line-height:1.35}
.promo-generator-form .btn{min-height:46px;white-space:nowrap}
.promo-generator-form .promo-voucher-option{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#faf8f2;cursor:pointer}
.promo-generator-form .promo-voucher-option>span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}
.promo-generator-form .promo-voucher-option input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:var(--green)}
.promo-generator-form .promo-voucher-option small{margin:0}
.generated-code-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.generated-codes-panel textarea{min-height:210px;margin:14px 0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.55;letter-spacing:.04em}
.copy-status{margin-left:12px;color:var(--green);font-size:13px;font-weight:800}
.promo-list-panel{margin:0 clamp(24px,8vw,120px) 100px;padding:30px}
.promo-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.promo-list-heading p{margin:5px 0 0}
.promo-filter-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:14px;padding:18px 0 24px;border-top:1px solid var(--line)}
.promo-filter-form .filter-actions{flex-wrap:nowrap}
.promo-codes-table code{display:inline-block;white-space:nowrap;padding:7px 9px;border-radius:8px;background:#f1eee6;font-weight:850;letter-spacing:.04em;color:var(--green)}
.promo-codes-table td:nth-child(5) a{display:grid;gap:3px;color:var(--green)}
.promo-codes-table td:nth-child(5) small{color:var(--muted)}
.status-used{background:#dff3e7;color:#155d35}
.status-unused{background:#fff1c9;color:#775800}
.muted{color:var(--muted)}
.empty-table{text-align:center;color:var(--muted);padding:40px}
@media(max-width:1100px){.promo-generator-form{grid-template-columns:1fr 1fr}.promo-generator-form .btn{grid-column:1/-1}.promo-filter-form{grid-template-columns:1fr 1fr}.promo-filter-form label:first-child{grid-column:1/-1}.promo-filter-form .filter-actions{grid-column:1/-1}}
@media(max-width:900px){.promo-admin-grid{grid-template-columns:1fr}.promo-stats{grid-template-columns:1fr}.promo-list-heading{align-items:flex-start;flex-direction:column}.admin-head-actions{justify-content:flex-start}}
@media(max-width:620px){.promo-generator-form,.promo-filter-form{grid-template-columns:1fr}.promo-generator-form .btn,.promo-filter-form label:first-child,.promo-filter-form .filter-actions{grid-column:auto}.promo-filter-form .filter-actions{display:grid;grid-template-columns:1fr 1fr}.promo-filter-form .btn{width:100%}.copy-status{display:block;margin:10px 0 0}}


/* AI sermon generator merged with access-code administration — 2026-08-01 */
.btn.secondary{background:var(--paper);color:var(--green);border-color:var(--line)}
.btn.secondary:hover{border-color:var(--gold);box-shadow:0 8px 22px rgba(24,42,35,.08)}
.admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ai-admin-head p{max-width:760px;margin:0;color:var(--muted);font-size:16px;line-height:1.65}
.ai-config-warning{margin:0 clamp(24px,8vw,120px) 24px;padding:20px 24px;border:1px solid #e1b75f;border-radius:18px;background:#fff7e7;color:#665632}
.ai-config-warning strong{display:block;margin-bottom:5px;color:#5b461a}
.ai-config-warning p{margin:0;line-height:1.55}
.ai-config-warning code{font-weight:800}
.ai-generator-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);align-items:start;gap:24px;padding:0 clamp(24px,8vw,120px) 100px}
.ai-generator-shell>.panel{margin:0;padding:30px;overflow:visible}
.ai-settings{display:grid;gap:18px}
.ai-settings>label,.ai-form-grid>label,.ai-date-row>label,.ai-reading-grid>label,.ai-result-fields>label{display:grid;gap:8px;font-size:13px;font-weight:750}
.ai-settings small,.ai-result-fields small{color:var(--muted);font-weight:500;line-height:1.45}
.ai-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.ai-section-head>div{display:flex;align-items:center;gap:12px}
.ai-section-head h2{margin:0;font-size:28px}
.ai-section-head.compact{margin-top:10px}
.step-number{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--green);color:#fff;font-size:14px;font-weight:850}
.ai-model-badge{display:inline-flex;padding:7px 11px;border-radius:999px;background:#e7efe9;color:var(--green);font-size:11px;font-weight:800;white-space:nowrap}
.ai-date-row{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px}
.ai-date-row .btn{min-height:46px;white-space:nowrap}
.ai-message{padding:13px 15px;border-radius:13px;background:#e7efe9;color:var(--green);font-size:13px;font-weight:700;line-height:1.45}
.ai-message.success{background:#dff3e7;color:#155d35}
.ai-message.warning{background:#fff1c9;color:#775800}
.ai-message.error{background:#ffe1df;color:#7d211b}
.ai-settings.is-busy{opacity:.72;cursor:progress}
.ai-settings.is-busy button,.ai-settings.is-busy input,.ai-settings.is-busy select,.ai-settings.is-busy textarea{cursor:progress}
.ai-mode-section{display:grid;gap:16px}
.ai-liturgy-card,.ai-readings-source{padding:20px;border:1px solid var(--line);border-radius:18px;background:#f7f4ed}
.ai-liturgy-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ai-liturgy-title span{display:block;margin-bottom:5px;color:var(--muted);font-size:12px;font-weight:750}
.ai-liturgy-title h3{margin:0;font-size:23px}
.liturgy-color{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:28px;margin:0;padding:6px 10px;border-radius:999px;background:#efe4cf;color:#6e5323!important;font-size:11px!important;font-weight:850!important;text-transform:capitalize;box-shadow:none}
.ai-liturgy-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0 0}
.ai-liturgy-meta div{padding:11px;border-radius:12px;background:var(--paper)}
.ai-liturgy-meta dt{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.ai-liturgy-meta dd{margin:5px 0 0;font-size:13px;font-weight:800}
.ai-source-note,.ai-selection-notice,.ai-required-note{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
.ai-source-links{margin:10px 0 0;font-size:12px}
.ai-source-links a{text-decoration:underline;color:var(--green);font-weight:750}
.ai-readings-source strong{display:block;margin-bottom:5px}
.ai-readings-source p{margin:5px 0;color:var(--muted);line-height:1.5}
.ai-reading-set{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px}
.ai-reading-set>label{display:grid;gap:8px;font-size:13px;font-weight:750}
.ai-reading-set .btn{min-height:46px;white-space:nowrap}
.ai-reading-grid,.ai-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ai-form-grid .full{grid-column:1/-1}
.ai-saint-fieldset,.ai-result-fields{display:grid;gap:16px;margin:0;padding:20px;border:1px solid var(--line);border-radius:18px}
.ai-saint-fieldset legend{padding:0 8px;font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:700}
.ai-legend-check{align-items:flex-start!important;line-height:1.5}
.ai-generate-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:4px}
.ai-result-panel{position:sticky;top:108px;max-height:calc(100vh - 132px);overflow:auto!important}
.ai-empty-result{margin:22px 0;padding:24px;border:1px dashed #c9c1b3;border-radius:16px;text-align:center;background:#faf8f2}
.ai-empty-result strong{display:block;margin-bottom:6px}
.ai-empty-result p{margin:0;color:var(--muted);line-height:1.5}
.ai-result-form{display:block;margin:20px 0 0}
.ai-result-fields{grid-template-columns:1fr 1fr;padding:0;border:0;border-radius:0}
.ai-result-fields .full{grid-column:1/-1}
.ai-result-fields textarea[name=body]{min-height:460px;line-height:1.6}
.ai-editorial-warnings{padding:17px 19px;border:1px solid #e1b75f;border-radius:15px;background:#fff7e7;color:#665632}
.ai-editorial-warnings ul{margin:8px 0 0;padding-left:20px;line-height:1.55}
.ai-usage{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.ai-result-fields:disabled{opacity:.72}
.ai-result-fields:disabled input,.ai-result-fields:disabled textarea,.ai-result-fields:disabled button{cursor:not-allowed}
@media(max-width:1200px){.ai-generator-shell{grid-template-columns:1fr}.ai-result-panel{position:static;max-height:none}.ai-liturgy-meta{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.ai-admin-head{align-items:flex-start;flex-direction:column}.admin-actions{justify-content:flex-start}.ai-generator-shell{padding-bottom:70px}.ai-date-row,.ai-reading-set,.ai-reading-grid,.ai-form-grid,.ai-result-fields{grid-template-columns:1fr}.ai-form-grid .full,.ai-result-fields .full{grid-column:auto}.ai-date-row .btn,.ai-reading-set .btn{width:100%}}
@media(max-width:620px){.ai-generator-shell{padding-left:18px;padding-right:18px}.ai-generator-shell>.panel{padding:20px}.ai-section-head{align-items:flex-start}.ai-section-head h2{font-size:23px}.ai-model-badge{white-space:normal}.ai-liturgy-meta{grid-template-columns:1fr}.ai-generate-row .btn{width:100%}}

/* Newsletter popup and administration — 2026-08-02 */
.newsletter-popup[hidden]{display:none!important}
.newsletter-popup{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:20px;background:rgba(5,22,19,.66);backdrop-filter:blur(8px)}
.newsletter-popup-panel{position:relative;width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:34px;border:1px solid rgba(200,149,69,.45);border-radius:26px;background:var(--paper);box-shadow:0 32px 100px rgba(0,0,0,.32)}
.newsletter-popup-panel:before{content:"";position:absolute;inset:0 0 auto;height:7px;border-radius:26px 26px 0 0;background:linear-gradient(90deg,var(--green),var(--gold))}
.newsletter-popup-panel h2{margin:8px 42px 12px 0;font-size:clamp(28px,5vw,40px);line-height:1.08}
.newsletter-popup-panel>p{margin:0 0 22px;color:var(--muted);font-size:16px;line-height:1.65}
.newsletter-popup-panel form{display:grid;gap:15px}
.newsletter-popup-panel form>label:not(.legal-check){display:grid;gap:7px;font-size:13px;font-weight:750}
.newsletter-popup-panel form>small{color:var(--muted);font-size:11px;line-height:1.5}
.newsletter-popup-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:25px;line-height:1;cursor:pointer}
.newsletter-popup-close:hover{border-color:var(--gold)}
.newsletter-popup-consent{padding:14px;border:1px solid var(--line);border-radius:14px;background:#f7f4ed}
.newsletter-popup-account{display:grid;gap:4px;padding:14px 16px;border-radius:14px;background:#edf4ef}
.newsletter-popup-account span{color:var(--muted);font-size:13px}
.newsletter-dialog-open{overflow:hidden}
.newsletter-result-card{max-width:620px;text-align:center}
.newsletter-result-card p{color:var(--muted);line-height:1.65}
.newsletter-result-card .btn{margin-top:10px}
.newsletter-registration-check{border-color:#cfbe9c;background:#fff9ec}

.newsletter-admin-head p{max-width:760px;margin:0;color:var(--muted);line-height:1.6}
.newsletter-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.newsletter-admin-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:24px;margin:0 clamp(24px,8vw,120px) 30px}
.newsletter-admin-grid>.panel{margin:0;padding:30px;overflow:visible}
.newsletter-compose-panel h2,.newsletter-add-panel h2,.newsletter-campaigns-panel h2,.newsletter-list-panel h2{margin:8px 0 10px}
.newsletter-compose-panel>p,.newsletter-add-panel>p,.newsletter-list-heading p{color:var(--muted);line-height:1.6}
.newsletter-compose-form,.newsletter-add-form{display:grid;gap:15px;margin-top:20px}
.newsletter-compose-form>label:not(.legal-check),.newsletter-add-form>label:not(.legal-check){display:grid;gap:7px;font-size:13px;font-weight:750}
.newsletter-compose-form textarea{min-height:260px;line-height:1.55}
.newsletter-editor{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.newsletter-editor .ql-toolbar{border:0;border-bottom:1px solid var(--line);background:#f8fafc}.newsletter-editor .ql-container{border:0;font-size:16px;min-height:300px}.newsletter-editor .ql-editor{min-height:300px;line-height:1.65}.newsletter-editor>textarea{display:block;width:100%;min-height:300px;border:0;border-radius:0;padding:18px;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}.newsletter-editor-actions{display:flex;align-items:center;gap:14px;padding:11px 13px;border-top:1px solid var(--line);background:#f8fafc}.newsletter-editor-actions span{font-size:12px;color:var(--muted)}
.newsletter-editor-tabs{display:flex;align-items:center;gap:8px;margin:0 0 2px}.newsletter-editor-tab{width:auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--green);padding:10px 17px;font-weight:800;cursor:pointer}.newsletter-editor-tab:hover{border-color:var(--gold)}.newsletter-editor-tab.active{border-color:var(--green);background:var(--green);color:#fff}.newsletter-editor-note{margin:0!important;color:var(--muted);font-size:12px;line-height:1.5}
.newsletter-html-preview{min-height:720px;padding:18px;background:#eef1f3}.newsletter-html-preview iframe{display:block;width:100%;min-height:760px;border:1px solid var(--line);border-radius:10px;background:#f4f1eb}.newsletter-html-preview[hidden]{display:none}
.newsletter-unsubscribe-card{max-width:680px;text-align:left}.newsletter-unsubscribe-card h1{font-size:clamp(32px,5vw,46px);margin:12px 0}.newsletter-unsubscribe-card>p{color:var(--muted);font-size:16px;line-height:1.7}.newsletter-unsubscribe-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.newsletter-result-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 0 16px;border-radius:50%;font-size:30px;font-weight:800}.newsletter-result-icon.success{background:#e7f5ec;color:#287b4b}@media(max-width:600px){.newsletter-unsubscribe-actions{display:grid}.newsletter-unsubscribe-actions .btn{width:100%}}

/* Surveys */
.survey-public-shell{min-height:70vh;padding:48px 18px;background:linear-gradient(180deg,#f4f1eb,#fff)}.survey-public-card{max-width:760px;margin:auto;padding:46px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 48px #061b3f14}.survey-public-card h1{font-size:clamp(31px,5vw,46px);margin:8px 0 14px}.survey-lead{font-size:17px;color:var(--muted);line-height:1.7}.survey-public-list{display:grid;gap:12px;margin-top:28px}.survey-public-list a{display:grid;gap:4px;padding:18px;border:1px solid var(--line);border-radius:12px;text-decoration:none}.survey-public-list a:hover{border-color:var(--gold);background:#fffcf5}.survey-public-list span{color:var(--muted)}.survey-public-form{display:grid;gap:24px;margin-top:32px}.survey-question{border:0;padding:0;margin:0}.survey-question legend{font-size:19px;font-weight:800;color:var(--green);margin-bottom:8px}.survey-question legend span,.survey-question sup{color:var(--gold)}.survey-question>p{margin:0 0 12px;color:var(--muted)}.survey-options{display:grid;gap:9px}.survey-options label{display:flex;align-items:flex-start;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.survey-options label:hover{background:#fffcf5;border-color:#d6bd8b}.survey-options input{margin-top:4px;accent-color:var(--gold)}.survey-question textarea{width:100%;min-height:130px}.survey-submit{justify-self:start}.survey-privacy{display:block;color:var(--muted)}.survey-honeypot{position:absolute;left:-10000px}.survey-thanks-mark{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:var(--gold);color:#fff;font-size:36px}.survey-admin-form{display:grid;gap:18px}.survey-settings>label{display:grid;gap:7px;margin-top:14px}.survey-question-builder{display:grid;gap:16px;margin-top:18px}.survey-question-card{display:grid;gap:14px;padding:20px;border:1px solid var(--line);border-radius:13px;background:#fcfcfa}.survey-question-card label{display:grid;gap:6px}.survey-question-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.survey-question-card-head>div{display:flex;gap:6px}.survey-admin-save{display:flex;gap:12px;position:sticky;bottom:12px;padding:14px;background:#ffffffed;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 25px #061b3f18}.survey-result-card h2{margin:8px 0 20px}.survey-result-row{margin:16px 0}.survey-result-row>div:first-child{display:flex;justify-content:space-between;gap:15px}.survey-result-bar{height:12px;background:#e8edf1;border-radius:8px;overflow:hidden;margin-top:7px}.survey-result-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),#e0b66a)}.survey-text-answer{padding:14px 0;border-top:1px solid var(--line)}.survey-text-answer p{margin:0 0 5px}.survey-text-answer small{color:var(--muted)}@media(max-width:650px){.survey-public-card{padding:28px 20px}.survey-question-card-head{align-items:flex-start;flex-direction:column}.survey-admin-save{position:static}.newsletter-editor-actions{align-items:flex-start;flex-direction:column}}

/* Survey form alignment and controls */
.survey-public-card,.survey-public-card h1,.survey-public-card p,.survey-public-form,.survey-question,.survey-question legend,.survey-question>p,.survey-options,.survey-options label,.survey-options label span{text-align:left}.survey-public-card{max-width:820px}.survey-public-card h1{font-size:clamp(34px,4.2vw,52px);line-height:1.06;letter-spacing:-.02em;max-width:720px}.survey-public-form{gap:34px}.survey-question{display:block;width:100%;min-width:0}.survey-question legend{display:block;width:100%;padding:0;font-size:20px;line-height:1.35}.survey-options{width:100%;gap:10px}.survey-options label{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:13px;width:100%;min-height:58px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;line-height:1.4;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.survey-options label:hover{background:#fffbf3;border-color:#d2b477;box-shadow:0 4px 14px rgba(24,42,35,.06)}.survey-options label:has(input:checked){background:#fff8eb;border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,149,69,.12)}.survey-options input[type="checkbox"],.survey-options input[type="radio"]{appearance:auto;display:block;flex:none;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;padding:0!important;border:0;box-shadow:none!important;accent-color:var(--gold);justify-self:start}.survey-options label span{display:block;width:auto;min-width:0;color:var(--ink);font-size:16px;line-height:1.4}.survey-question textarea{display:block;text-align:left}.survey-public-form>.cf-turnstile{justify-self:start}.survey-public-card .legal-notice{text-align:left}.survey-submit{min-width:190px}@media(max-width:650px){.survey-public-shell{padding:18px 12px}.survey-public-card{padding:28px 20px;border-radius:18px}.survey-public-card h1{font-size:34px}.survey-public-form{gap:28px}.survey-question legend{font-size:18px}.survey-options label{grid-template-columns:20px minmax(0,1fr);min-height:54px;padding:13px 14px}.survey-options input[type="checkbox"],.survey-options input[type="radio"]{width:17px!important;height:17px!important;min-width:17px!important}.survey-options label span{font-size:15px}}
.newsletter-queue-status{margin-top:18px;padding:14px 16px;border-radius:13px;background:#edf4ef;color:var(--green);font-size:13px;font-weight:700;line-height:1.5}
.newsletter-campaigns-panel,.newsletter-list-panel{margin:0 clamp(24px,8vw,120px) 30px;padding:30px}
.newsletter-list-panel{margin-bottom:100px}
.newsletter-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.newsletter-filter-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:14px;padding:18px 0 24px;border-top:1px solid var(--line)}
.newsletter-filter-form label{display:grid;gap:7px;font-size:12px;font-weight:750}
.newsletter-filter-form .filter-actions{display:flex;gap:9px;flex-wrap:nowrap}
.newsletter-subscribers-table td:first-child,.newsletter-campaigns-table td:first-child{display:grid;gap:4px}
.newsletter-subscribers-table small,.newsletter-campaigns-table small{display:block;color:var(--muted);font-size:11px;line-height:1.4}
.newsletter-subscribers-table code{display:inline-block;white-space:nowrap;padding:6px 8px;border-radius:8px;background:#f1eee6;color:var(--green);font-size:12px;font-weight:850;letter-spacing:.04em}
.newsletter-subscribers-table td:nth-child(4),.newsletter-subscribers-table td:nth-child(5){min-width:145px}
.status-muted{background:#ecebe8;color:#67635d}
.status-blocked{background:#ffe5dd;color:#8b311e;white-space:normal}
.status-queued{background:#fff1c9;color:#775800}
.status-sending{background:#dfeaf7;color:#24527a}
.status-sent{background:#dff3e7;color:#155d35}
.status-partial{background:#ffe5dd;color:#8b311e}
.btn.danger{background:#fff0ed;color:#8b311e;border-color:#e8b4a8}
.btn.danger:hover{background:#8b311e;color:#fff;border-color:#8b311e}
@media(max-width:1250px){.newsletter-stats{grid-template-columns:repeat(3,1fr)}.newsletter-admin-grid{grid-template-columns:1fr}}
@media(max-width:950px){.newsletter-filter-form{grid-template-columns:1fr 1fr}.newsletter-filter-form label:first-child{grid-column:1/-1}.newsletter-filter-form .filter-actions{grid-column:1/-1}.newsletter-list-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.newsletter-popup{padding:10px}.newsletter-popup-panel{padding:26px 20px;border-radius:20px;max-height:calc(100vh - 20px)}.newsletter-popup-panel h2{font-size:29px}.newsletter-stats{grid-template-columns:1fr}.newsletter-admin-grid,.newsletter-campaigns-panel,.newsletter-list-panel{margin-left:18px;margin-right:18px}.newsletter-admin-grid>.panel,.newsletter-campaigns-panel,.newsletter-list-panel{padding:20px}.newsletter-filter-form{grid-template-columns:1fr}.newsletter-filter-form label:first-child,.newsletter-filter-form .filter-actions{grid-column:auto}.newsletter-filter-form .filter-actions{display:grid;grid-template-columns:1fr 1fr}.newsletter-filter-form .btn{width:100%}}

/* Admin: zarządzanie kategoriami kazań */
.category-admin-head p{max-width:760px;margin:0;color:var(--muted);line-height:1.6}
.category-stats{grid-template-columns:repeat(4,1fr)}
.category-admin-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:24px;padding:0 clamp(24px,8vw,120px) 30px}
.category-admin-grid>.panel{margin:0;padding:30px;overflow:visible}
.category-create-panel h2,.category-info-panel h2,.category-list-panel h2{margin:8px 0 10px}
.category-create-panel>p,.category-info-panel>p{color:var(--muted);line-height:1.65}
.category-create-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}
.category-create-form>label:not(.check),.category-fields>label:not(.check){display:grid;gap:7px;font-size:13px;font-weight:750}
.category-create-form label small{color:var(--muted);font-size:11px;font-weight:500}
.category-create-form .category-active-check,.category-create-form .btn{align-self:end}
.category-info-panel{align-content:start}
.category-info-panel p{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.category-info-panel p:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.category-list-panel{margin:0 clamp(24px,8vw,120px) 100px;padding:30px;overflow:visible}
.category-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.category-list-count{color:var(--muted);font-size:13px}
.category-cards{display:grid;gap:16px}
.category-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.category-card.is-inactive{background:#f6f6f2;opacity:.92}
.category-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.category-card-head>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.category-card-head strong{font-size:19px}
.category-counts{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.category-counts span{background:#edf2ee;border-radius:999px;padding:7px 11px;color:var(--muted);font-size:12px}
.category-counts b{color:var(--green)}
.category-fields{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(190px,1.2fr) minmax(180px,1fr) 120px auto;gap:12px;align-items:end}
.category-active-check{min-height:44px;display:flex!important;align-items:center;white-space:nowrap}
.category-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.category-delete-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
.category-delete-form small{color:var(--muted)}
.link-danger{border:0;background:none;padding:0;color:#a12d24;font:inherit;font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer}
.link-danger:disabled{color:#999;text-decoration:none;cursor:not-allowed}
@media(max-width:1100px){.category-admin-grid{grid-template-columns:1fr}.category-fields{grid-template-columns:1fr 1fr}.category-active-check{min-height:auto}}
@media(max-width:900px){.category-stats{grid-template-columns:1fr}.category-card-head,.category-list-heading{align-items:flex-start;flex-direction:column}.category-counts{justify-content:flex-start}}
@media(max-width:650px){.category-admin-grid,.category-list-panel{margin-left:18px;margin-right:18px;padding-left:0;padding-right:0}.category-admin-grid>.panel,.category-list-panel{padding:20px}.category-create-form,.category-fields{grid-template-columns:1fr}.category-actions{display:grid}.category-actions .btn{width:100%}}

/* 2026-08-05: Generator AI, dopłaty abonamentowe i vouchery */
.ai-occasion-type-label select:disabled,
.ai-settings select:disabled,
.ai-settings input:disabled,
.ai-settings textarea:disabled {
  background: #e8ebef;
  color: #7a8492;
  border-color: #c8ced7;
  cursor: not-allowed;
  opacity: 1;
}

.subscription-expired { opacity: .58; }
.subscription > div { display: grid; gap: .2rem; }
.subscription > div small { color: var(--muted, #667085); }

.subscription-upgrade {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 2rem;
  align-items: start;
  border: 1px solid rgba(184,139,47,.45);
  background: linear-gradient(135deg, rgba(255,251,240,.98), rgba(246,249,255,.98));
}
.upgrade-summary h2 { margin-bottom: .65rem; }
.upgrade-calculation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.15rem 0 .65rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(8,35,75,.12);
}
.upgrade-calculation strong { font-size: 1.35rem; color: #08234b; }
.upgrade-payment-form { display: grid; gap: 1rem; }
.homepage-upgrade-banner {
  max-width: 1180px;
  margin: 0 auto 1.4rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: center;
  background: #fff8e7;
  border: 1px solid rgba(183,139,47,.38);
}
.homepage-upgrade-banner > div:last-child { display: flex; align-items: center; gap: 1rem; }
.homepage-upgrade-banner strong { font-size: 1.6rem; white-space: nowrap; color: #08234b; }

.account-voucher-cta {
  margin: 2rem 0 0;
  padding: 1.35rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: #f5f0e3;
  border: 1px solid rgba(183,139,47,.25);
}
.account-voucher-cta h2 { margin: .25rem 0 .4rem; }

.home-voucher-section {
  max-width: 1180px;
  margin: 4rem auto;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: 2rem;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg,#071f46,#123b70);
  color: #fff;
  box-shadow: 0 24px 60px rgba(4,22,51,.2);
}
.home-voucher-section .eyebrow { color: #e5c979; }
.home-voucher-copy h2 { color: #fff; font-size: clamp(2rem,4vw,3.2rem); margin: .4rem 0 .8rem; }
.home-voucher-copy p { color: rgba(255,255,255,.84); max-width: 680px; }
.home-voucher-prices { display: grid; gap: .8rem; }
.home-voucher-prices > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}
.home-voucher-prices strong { color: #f1d47e; }

.voucher-page-head { max-width: 900px; }
.voucher-grid {
  max-width: 1180px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.2rem;
}
.voucher-card {
  position: relative;
  padding: 1.7rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(8,35,75,.12);
  box-shadow: 0 16px 42px rgba(7,31,70,.08);
  display: flex;
  flex-direction: column;
}
.voucher-card.featured { border: 2px solid #b78b2f; transform: translateY(-6px); }
.voucher-card-kicker { color: #9a7629; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.voucher-card h2 { margin: .45rem 0 .2rem; }
.voucher-price { font-size: 2rem; font-weight: 800; color: #08234b; margin: .45rem 0; }
.voucher-card ul { margin: .8rem 0 1.4rem; padding-left: 1.2rem; flex: 1; }
.voucher-card li { margin: .35rem 0; }
.voucher-order-panel { max-width: 900px; margin: 0 auto 3.5rem; }
.voucher-order-form { display: grid; gap: 1.2rem; }
.voucher-order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.voucher-order-grid .full { grid-column: 1/-1; }
.voucher-help { max-width: 1180px; margin: 0 auto 4rem; }

@media (max-width: 850px) {
  .subscription-upgrade,
  .home-voucher-section { grid-template-columns: 1fr; }
  .voucher-grid { grid-template-columns: 1fr; }
  .voucher-card.featured { transform: none; }
  .homepage-upgrade-banner,
  .account-voucher-cta { align-items: flex-start; flex-direction: column; }
  .homepage-upgrade-banner > div:last-child { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .voucher-order-grid { grid-template-columns: 1fr; }
  .voucher-order-grid .full { grid-column: auto; }
  .upgrade-calculation { align-items: flex-start; flex-direction: column; }
}
.mini-prices-restricted { grid-template-columns: minmax(280px, 460px); }
.promo-voucher-note { margin: 0.85rem 0; color: var(--muted, #667085); font-size: 0.92rem; line-height: 1.55; }


/* 2026-08-05: wyrównane karty cennika i aktywne przyciski */
.btn {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover {
  background: #0f342c;
  border-color: #0f342c;
  color: #fff;
  box-shadow: 0 10px 24px rgba(23,63,53,.22);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(23,63,53,.18);
}
.btn:focus-visible {
  outline: 3px solid rgba(200,149,69,.55);
  outline-offset: 3px;
}
.btn.ghost:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Strona główna / sekcja Cennik */
.pricing .price-grid {
  align-items: stretch;
}
.pricing .price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: none;
}
.pricing .price-card.featured {
  transform: none;
}
.pricing .price-card h3 {
  margin-bottom: .7rem;
}
.pricing .price-card ul {
  flex: 1 1 auto;
  margin-bottom: 1.4rem;
}
.pricing .price-card > .btn {
  width: 100%;
  margin-top: auto;
  min-height: 50px;
}
.pricing .price-card.featured > .btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.86);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.pricing .price-card.featured > .btn:hover,
.pricing .price-card.featured > .btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--green);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

/* Moje konto / trzy warianty planów */
.account-grid .mini-prices {
  align-items: stretch;
}
.account-grid .mini-price {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.account-grid .mini-price h3 {
  margin: 0 0 .15rem;
}
.account-grid .mini-price .purchase-consents {
  flex: 1 1 auto;
}
.account-grid .mini-price > .btn {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
}
.account-grid .mini-price > .btn:hover,
.account-grid .mini-price > .btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #17211d;
  box-shadow: 0 10px 24px rgba(200,149,69,.28);
}

@media (max-width: 900px) {
  .pricing .price-card,
  .account-grid .mini-price {
    height: auto;
  }
}


/* Poprawne ułożenie dnia i polskiej nazwy miesiąca w złotym znaczniku */
.hero-card .date {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}
.hero-card .date time {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hero-card .date .date-day {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: .88;
  letter-spacing: 0;
}
.hero-card .date .date-month {
  display: block;
  max-width: 78px;
  margin-top: 9px;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .055em;
  text-overflow: clip;
  white-space: nowrap;
}

/* Admin promo codes — tabela mieści się w panelu bez łamania słów w środku */
.promo-list-panel .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
}
.promo-codes-table{
  width:100%;
  table-layout:fixed;
}
.promo-codes-table th,
.promo-codes-table td{
  min-width:0;
  vertical-align:middle;
  word-break:normal;
  overflow-wrap:normal;
}

/* Proporcje kolumn */
.promo-codes-table th:nth-child(1),.promo-codes-table td:nth-child(1){width:15%}
.promo-codes-table th:nth-child(2),.promo-codes-table td:nth-child(2){width:7%}
.promo-codes-table th:nth-child(3),.promo-codes-table td:nth-child(3){width:19%}
.promo-codes-table th:nth-child(4),.promo-codes-table td:nth-child(4){width:12%}
.promo-codes-table th:nth-child(5),.promo-codes-table td:nth-child(5){width:13%}
.promo-codes-table th:nth-child(6),.promo-codes-table td:nth-child(6){width:17%}
.promo-codes-table th:nth-child(7),.promo-codes-table td:nth-child(7){width:9%}
.promo-codes-table th:nth-child(8),.promo-codes-table td:nth-child(8){width:8%;text-align:center}

/* Kod, Dostęp i Status nie mogą być łamane wewnątrz wyrazu */
.promo-codes-table th:nth-child(1),
.promo-codes-table td:nth-child(1),
.promo-codes-table th:nth-child(2),
.promo-codes-table td:nth-child(2),
.promo-codes-table th:nth-child(4),
.promo-codes-table td:nth-child(4),
.promo-codes-table td:nth-child(4) .badge,
.promo-codes-table td:nth-child(4) .status-badge,
.promo-codes-table td:nth-child(4) span{
  word-break:normal !important;
  overflow-wrap:normal !important;
}
.promo-codes-table th:nth-child(2),
.promo-codes-table th:nth-child(4),
.promo-codes-table td:nth-child(4) .badge,
.promo-codes-table td:nth-child(4) .status-badge,
.promo-codes-table td:nth-child(4) span{
  white-space:nowrap !important;
}
.promo-codes-table td:nth-child(1) code{
  white-space:nowrap;
}

/* Tylko długie e-maile / przypisania mogą łamać się awaryjnie */
.promo-codes-table td:nth-child(3){
  overflow-wrap:anywhere;
}

/* Przycisk vouchera pozostaje w ostatniej kolumnie */
.promo-codes-table td:nth-child(8) .promo-voucher-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:100%;
  min-width:84px;
  padding:10px 10px;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  line-height:1.1;
  text-align:center;
}

@media(max-width:1150px){
  .promo-codes-table{
    min-width:1100px;
    table-layout:fixed;
  }
}

/* SEO Engine: indeksowalne huby kategorii, czytań i liturgii */
.seo-intro{max-width:920px;margin:18px auto 0;color:var(--muted,#536176);font-size:1rem;line-height:1.75}
.seo-category-nav{display:grid;gap:6px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(120,130,150,.18)}
.seo-category-nav strong{margin-bottom:4px;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}
.seo-category-nav a{padding:8px 10px;border-radius:10px;text-decoration:none}
.seo-category-nav a.active,.seo-category-nav a:hover{background:rgba(191,151,76,.12)}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0 0 18px;font-size:.86rem;color:var(--muted,#647084)}
.breadcrumbs a{color:inherit;text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}
.sermon-meta a{color:inherit;text-decoration:none}.sermon-meta a:hover{text-decoration:underline}
.scripture-links a{font-weight:700}
.related-sermons{margin-top:42px}.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.related-grid>a{display:block;padding:22px;border:1px solid rgba(120,130,150,.18);border-radius:18px;text-decoration:none;background:#fff}
.related-grid h3{margin:10px 0 8px;color:inherit}.related-grid p{margin:0;color:var(--muted,#647084);line-height:1.55}
.seo-hub-head .breadcrumbs{justify-content:center}.seo-hub-list{max-width:1100px;margin:0 auto 70px;padding:0 24px;display:grid;gap:16px}
.seo-hub-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,30%);gap:24px;padding:24px;border:1px solid rgba(120,130,150,.18);border-radius:20px;background:#fff}
.seo-hub-card h2{margin:10px 0 8px}.seo-hub-card h2 a{text-decoration:none;color:inherit}.seo-hub-card p{margin:0;color:var(--muted,#647084);line-height:1.6}
.seo-hub-meta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:10px;text-align:right}.seo-hub-meta strong{font-size:.92rem}
.reading-index{max-width:1100px;margin:0 auto 70px;padding:0 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.reading-index a{padding:12px 14px;border:1px solid rgba(120,130,150,.18);border-radius:12px;background:#fff;text-decoration:none;font-weight:700}
.reading-index a:hover{border-color:rgba(191,151,76,.5);background:rgba(191,151,76,.08)}
@media(max-width:800px){.related-grid{grid-template-columns:1fr}.seo-hub-card{grid-template-columns:1fr}.seo-hub-meta{align-items:flex-start;text-align:left}.reading-index{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.reading-index{grid-template-columns:1fr}}

/* SEO Engine v2 */
.hub-readings{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;margin-top:1rem}
.hub-readings>a{display:inline-flex;padding:.45rem .7rem;border:1px solid rgba(10,39,78,.14);border-radius:999px;text-decoration:none;background:#fff}
.hub-readings>a:hover{text-decoration:underline}

/* SEO Engine v3: strony tematyczne */
.topic-index a{display:flex;flex-direction:column;gap:4px}
.topic-index a span{font-size:.82rem;font-weight:500;color:var(--muted,#647084)}
.sermon-topics{margin:0 0 18px}


/* Faktura na żądanie - modal danych nabywcy */
.invoice-request-check{margin-top:12px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#f8f6f0}
.invoice-request-check strong{color:var(--green)}
.invoice-request-check small{color:var(--muted);font-weight:500}
.invoice-modal[hidden]{display:none!important}
.invoice-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:22px}
.invoice-modal-backdrop{position:absolute;inset:0;background:rgba(12,27,33,.64);backdrop-filter:blur(3px)}
.invoice-modal-dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(88vh,820px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 26px 80px rgba(0,0,0,.28);padding:24px}
.invoice-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px}
.invoice-modal-head h3{margin:3px 0 0;font-size:1.45rem}
.invoice-modal-close{border:0;background:#eef1ed;width:38px;height:38px;border-radius:50%;font-size:25px;line-height:1;cursor:pointer;color:var(--green)}
.invoice-modal-lead{margin:0 0 16px;color:var(--muted);line-height:1.55}
.invoice-buyer-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.invoice-buyer-types label{display:block;cursor:pointer}
.invoice-buyer-types input{position:absolute;opacity:0;pointer-events:none}
.invoice-buyer-types span{display:grid;gap:4px;height:100%;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fafafa;transition:.18s ease}
.invoice-buyer-types input:checked+span{border-color:var(--gold);background:#fffaf0;box-shadow:0 0 0 2px rgba(191,151,76,.12)}
.invoice-buyer-types strong{color:var(--green)}
.invoice-buyer-types small{color:var(--muted);font-weight:500;line-height:1.35}
.invoice-request-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.invoice-request-fields[hidden]{display:none!important}
.invoice-request-fields label{display:grid;gap:6px;font-size:11px;font-weight:700}
.invoice-request-fields .full{grid-column:1/-1}
.invoice-request-fields input{padding:10px 11px;border-radius:11px;font-size:12px}
.field-optional{font-weight:500;color:var(--muted);font-size:.9em}
.field-required{font-weight:700;color:#a33;font-size:.9em}
.invoice-modal-error{margin-top:12px;padding:10px 12px;border-radius:11px;background:#fff0f0;color:#922;font-weight:700;font-size:.88rem}
.invoice-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
.invoice-modal-open{overflow:hidden}
.voucher-invoice-fields{margin:0}
@media(max-width:700px){.invoice-modal{padding:10px}.invoice-modal-dialog{padding:18px;border-radius:17px}.invoice-buyer-types,.invoice-request-fields{grid-template-columns:1fr}.invoice-request-fields .full{grid-column:auto}.invoice-modal-actions{flex-direction:column-reverse}.invoice-modal-actions .btn{width:100%}}

/* Publiczne poradniki SEO */
.article-index-head .breadcrumbs{justify-content:center}
.article-index-grid{width:min(1120px,calc(100% - 40px));margin:0 auto 70px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.article-index-card{display:flex;min-height:260px;flex-direction:column;padding:28px;border:1px solid rgba(10,39,78,.12);border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(8,29,61,.06)}
.article-index-card .article-date{font-size:.76rem;font-weight:800;letter-spacing:.08em;color:var(--gold);text-transform:uppercase}
.article-index-card h2{margin:13px 0 12px;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.25}
.article-index-card h2 a{color:inherit;text-decoration:none}.article-index-card h2 a:hover{text-decoration:underline}
.article-index-card p{margin:0 0 22px;color:var(--muted);line-height:1.68}
.article-more{display:inline-flex;gap:8px;align-items:center;margin-top:auto;color:var(--green);font-weight:800;text-decoration:none}
.article-more:hover{text-decoration:underline}.article-empty{grid-column:1/-1;padding:45px;text-align:center;border-radius:22px;background:#fff}
.article-pagination{width:min(1120px,calc(100% - 40px));margin:-35px auto 70px;display:flex;justify-content:center;align-items:center;gap:18px}.article-pagination a{font-weight:750}
.guide-view{width:min(1160px,calc(100% - 40px));margin:38px auto 80px}
.guide-header{max-width:900px;margin:0 auto 42px;text-align:center}.guide-header h1{margin:12px 0 18px;font-size:clamp(2.1rem,5vw,4rem);line-height:1.06;letter-spacing:-.035em}.guide-lead{max-width:790px;margin:0 auto 18px;color:var(--muted);font-size:1.12rem;line-height:1.7}.guide-header time{font-size:.82rem;color:var(--muted)}
.guide-layout{display:grid;grid-template-columns:minmax(0,760px) minmax(250px,320px);gap:38px;align-items:start;justify-content:center}
.guide-content{padding:42px 48px;border:1px solid rgba(10,39,78,.1);border-radius:24px;background:#fff;box-shadow:0 18px 55px rgba(8,29,61,.07);font-family:Georgia,'Times New Roman',serif;font-size:1.08rem;line-height:1.82;color:#223047}
.guide-content h2,.guide-content h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--green);line-height:1.25}.guide-content h2{margin:2.2rem 0 .8rem;font-size:1.65rem}.guide-content h3{margin:1.7rem 0 .65rem;font-size:1.25rem}.guide-content h2:first-child{margin-top:0}.guide-content p{margin:0 0 1.25rem}.guide-content li{margin:.45rem 0}.guide-content blockquote{margin:1.6rem 0;padding:18px 22px;border-left:4px solid var(--gold);background:#faf7ef}.guide-content a{color:#155e52;font-weight:700}.guide-content table{width:100%;margin:1.5rem 0;border-collapse:collapse;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:.9rem}.guide-content th,.guide-content td{padding:11px;border:1px solid var(--line);text-align:left}.guide-content th{background:#f4f6f2}
.guide-cta{position:sticky;top:110px;padding:28px;border-radius:22px;background:linear-gradient(150deg,#0c3f36,#082d29);color:#fff;box-shadow:0 18px 46px rgba(8,45,41,.24)}.guide-cta h2{margin:10px 0 12px;color:#fff;line-height:1.25}.guide-cta p{color:rgba(255,255,255,.8);line-height:1.6}.guide-cta .btn{width:100%;margin:9px 0 15px;text-align:center}.guide-cta>a:last-child{display:block;color:#fff;text-align:center;font-weight:700}
.guide-faq{max-width:900px;margin:52px auto 0}.guide-faq>h2{font-size:2rem}.guide-faq details{margin:10px 0;border:1px solid rgba(10,39,78,.12);border-radius:14px;background:#fff}.guide-faq summary{padding:17px 20px;cursor:pointer;font-weight:800}.guide-faq details p{margin:0;padding:0 20px 19px;color:var(--muted);line-height:1.65}
.guide-bottom-cta{display:flex;justify-content:space-between;align-items:center;gap:28px;max-width:1000px;margin:58px auto 0;padding:32px 36px;border-radius:22px;background:#f4eee1}.guide-bottom-cta h2{margin:8px 0}.guide-bottom-cta p{margin:0;color:var(--muted)}.guide-bottom-cta .btn{flex:0 0 auto}
@media(max-width:900px){.guide-layout{grid-template-columns:1fr}.guide-cta{position:static}.article-index-grid{grid-template-columns:1fr}.guide-content{padding:30px}.guide-bottom-cta{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.article-index-grid,.guide-view{width:min(100% - 24px,1160px)}.article-index-card{padding:22px}.guide-content{padding:22px 18px;font-size:1rem}.guide-bottom-cta{padding:25px}.guide-bottom-cta .btn{width:100%;text-align:center}}
/* Prywatny warsztat kaznodziejski */
.sermon-edit-button{background:#866226}.sermon-workshop{max-width:1120px;margin:0 auto 4rem;display:grid;gap:1.4rem}.ai-workbench{background:linear-gradient(135deg,#fffaf0,#fff);border:1px solid #ead8af}.ai-head,.personal-list-head,.editor-actions,.editor-stats{display:flex;align-items:center;justify-content:space-between;gap:1rem}.quota{display:grid;text-align:right}.quota strong{font-size:1.45rem;color:#866226}.quota span,.quota small,.editor-stats{color:#72685d}.editor-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.editor-fields-grid .full{grid-column:1/-1}.editor-fields-grid label,.editor-title-fields label{display:grid;gap:.4rem;font-weight:700}.editor-fields-grid input,.editor-fields-grid select,.editor-fields-grid textarea,.editor-title-fields input{width:100%;border:1px solid #d9d1c5;border-radius:10px;padding:.75rem;background:#fff;font:inherit}.styles{display:flex;flex-wrap:wrap;gap:.55rem;border:1px solid #e0d6c5;border-radius:12px;padding:1rem}.styles legend{font-weight:700;padding:0 .4rem}.styles label{display:flex;align-items:center;gap:.3rem;background:#fff;border:1px solid #e5ded2;border-radius:999px;padding:.45rem .7rem;font-weight:500}.styles .style-custom{margin-left:0}.ai-apply{margin-top:1rem}.save-status{margin-left:1rem;color:#6a604f}.editor-title-fields{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem;margin-bottom:1rem}.editor-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;padding:.6rem;background:#f5f1e9;border:1px solid #ddd3c4;border-bottom:0;border-radius:12px 12px 0 0}.editor-toolbar button{border:1px solid #d6ccbd;background:#fff;border-radius:7px;padding:.45rem .65rem;cursor:pointer}.rich-editor{min-height:650px;padding:2rem max(1.2rem,7vw);border:1px solid #ddd3c4;border-radius:0 0 12px 12px;background:#fff;font-family:"Times New Roman",serif;font-size:20px;line-height:1.5;text-align:justify;outline:none}.rich-editor p{margin:0;text-indent:1.25cm}.rich-editor h2,.rich-editor h3{text-indent:0}.editor-stats{padding:.7rem 0;font-size:.9rem}.editor-actions{justify-content:flex-start;flex-wrap:wrap}.version-history>div{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;border-top:1px solid #ece5da}.version-history span{display:grid}.editor-warning,.editor-notice{padding:1rem 1.2rem;border-radius:12px;background:#fff6dc;border:1px solid #e8cf82}.personal-cards{display:grid;gap:1rem}.personal-cards article{display:flex;justify-content:space-between;gap:1rem;padding:1.2rem;border:1px solid #e7dfd3;border-radius:14px}.personal-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.danger{color:#a12626}.empty-state{text-align:center;padding:3rem 1rem}
@media(max-width:760px){.editor-fields-grid,.editor-title-fields{grid-template-columns:1fr}.editor-fields-grid .full{grid-column:auto}.ai-head,.personal-list-head,.personal-cards article{align-items:flex-start;flex-direction:column}.quota{text-align:left}.rich-editor{padding:1.2rem;min-height:500px}.editor-stats{align-items:flex-start;flex-direction:column;gap:.25rem}.styles{display:grid}.editor-toolbar{position:sticky;top:0;z-index:4}}
.publication-consent{margin:1rem 0;padding:1rem;border:1px solid #e0d6c5;border-radius:12px}.publication-consent legend{font-weight:700;padding:0 .4rem}.publication-consent [data-publication-options]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.publication-consent [data-publication-options] label,.moderation-form label{display:grid;gap:.4rem;font-weight:700}.publication-consent select,.publication-consent input,.moderation-form select,.moderation-form textarea,.moderation-form input{width:100%;padding:.75rem;border:1px solid #d9d1c5;border-radius:10px;background:#fff;font:inherit}.publication-state{grid-column:1/-1;background:#f5f1e9;padding:.8rem;border-radius:8px}.moderation-meta{display:flex;flex-wrap:wrap;gap:1.2rem}.moderation-form{display:grid;gap:1rem;margin-top:1.5rem}.sermon-contributor{text-align:center;color:#72685d;font-style:italic}
@media(max-width:760px){.publication-consent [data-publication-options]{grid-template-columns:1fr}}
