/* SYNDYKAT 1929 | Part 1 Finale | 17.10.4
   Visual system for daily activities, Don, events, profile, talents, legacy,
   workshop, family chronicle, settings, private messages and notifications.
   All changes are view-scoped. Gameplay logic and values remain on the server. */
:root{
 --f1-bg:#0b151d;
 --f1-card:#12232d;
 --f1-card-deep:#0d1b24;
 --f1-line:#3a4e56;
 --f1-line-gold:#92724c;
 --f1-gold:#efc687;
 --f1-muted:#a9bcc7;
 --f1-text:#f5e7d1;
 --f1-radius:12px;
}
html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title):not([hidden]):not([data-syn-x]){
 min-height:200px!important;padding:26px 30px!important;
 border-color:rgba(173,135,78,.66)!important;border-radius:var(--f1-radius)!important;
 box-shadow:inset 0 0 0 1px #0a131baa,0 12px 26px #0005!important;
}
html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title) h1{
 font:400 clamp(32px,3.1vw,47px)/1.07 Georgia,'Times New Roman',serif!important;
 letter-spacing:-.025em!important;max-width:730px!important;margin:9px 0 12px!important;
}
html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title) p{
 font-size:13px!important;line-height:1.62!important;max-width:630px!important;color:#d1d9db!important;
}
html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title)::before{pointer-events:none}
body[data-section="activities"]{--syn82-scene:url('finale-p1/activities.webp')}
body[data-section="don"]{--syn82-scene:url('finale-p1/don.webp')}
body[data-section="legacy"]{--syn82-scene:url('finale-p1/legacy.webp')}
body[data-section="career"]{--syn82-scene:url('finale-p1/chronicle.webp')}
body[data-section="talents"]{--syn82-scene:url('finale-p1/talents.webp')}
body[data-section="profile"]{--syn82-scene:url('finale-p1/legacy.webp')}
body[data-section="workshop"]{--syn82-scene:url('finale-p1/workshop.webp')}
body[data-section="encounters"]{--syn82-scene:url('finale-p1/events.webp')}
body[data-section="settings"]{--syn82-scene:url('finale-p1/settings.webp')}
body[data-section="messages"]{--syn82-scene:url('finale-p1/messages.webp')}
/* Keep image paths correct in an unbundled stylesheet: relative to /assets/. */
html body[data-section="activities"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721dc 52%,#0a121a50 100%),url('finale-p1/activities.webp')!important}
html body[data-section="don"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721df 52%,#0a121a40 100%),url('finale-p1/don.webp')!important}
html body[data-section="legacy"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721dd 51%,#0a121a42 100%),url('finale-p1/legacy.webp')!important}
html body[data-section="career"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721df 52%,#0a121a43 100%),url('finale-p1/chronicle.webp')!important}
html body[data-section="talents"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721df 52%,#0a121a43 100%),url('finale-p1/talents.webp')!important}
html body[data-section="settings"] .content .page-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721df 52%,#0a121a43 100%),url('finale-p1/settings.webp')!important}
html body[data-section="workshop"] .content .syn47-head:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf2 0%,#0b1721df 48%,#0a121a49 100%),url('finale-p1/workshop.webp')!important}
html body[data-section="encounters"] .content .syn47-head:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf0 0%,#0b1721dc 48%,#0a121a4a 100%),url('finale-p1/events.webp')!important}
html body[data-section="profile"] .content .syn54-armory-title:not([hidden]):not([data-syn-x]){background-image:linear-gradient(90deg,#08121bf2 0%,#0b1721de 47%,#0a121a50 100%),url('finale-p1/legacy.webp')!important}


/* Beat old v15 compact-header override without touching unlisted sections. */
html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn54-armory-title):not([hidden]):not([data-syn-x]){
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 border:1px solid #9d7a4c!important;border-radius:12px!important;min-height:188px!important;height:auto!important;
 padding:26px 30px!important;margin:0 0 18px!important;overflow:hidden!important;
 background-size:cover!important;background-position:center 48%!important;
 box-shadow:0 15px 34px #0007,inset 0 0 0 1px #0c1721!important;
}

/* Consistent cards and sectional treatments, without changing semantic states. */
html body .content :is(.syn150-panel,.syn10-frame,.syn10-perk,.syn53-paperdoll,.syn53-bag,.syn47-card,.syn47-feature,.exp-chapter,.syn-goal-card){
 border-radius:var(--f1-radius)!important;
}
html body .content :is(.syn10-frame,.syn150-panel,.syn47-card,.syn47-feature){border-color:var(--f1-line)!important}
html body .content :is(.syn47-title,.syn58-options-heading) h2{font:400 clamp(24px,2.6vw,33px)/1.18 Georgia,serif;color:var(--f1-text)}
html body .content .syn-eyebrow,.syn-eyebrow,html body .content .eyebrow.gold{letter-spacing:.12em}

/* AKTYWNOŚCI */
body[data-section="activities"] .syn150-tabs{display:flex;gap:7px;overflow:auto;scrollbar-width:thin;margin-bottom:14px;padding:2px 1px 5px}
body[data-section="activities"] .syn150-tabs button{flex:0 0 auto;min-height:44px;padding:10px 14px!important;border-radius:8px;background:#11222c;border:1px solid #3a4e59;color:#d6e2e5}
body[data-section="activities"] .syn150-tabs button.active{color:#ffdfaa;border-color:#cb9c59;background:#2c2b28;box-shadow:inset 0 -2px 0 #d7b076}
body[data-section="activities"] .syn150-tabs button small{font-size:10px;color:#d5b47f;margin-left:5px}
body[data-section="activities"] .syn-f1-activity-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 18px}
body[data-section="activities"] .syn-f1-activity-status>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:17px 18px;border:1px solid var(--f1-line);background:linear-gradient(135deg,#152a35,#0d1a23);border-radius:var(--f1-radius)}
body[data-section="activities"] .syn-f1-activity-status>div:first-child{border-color:#89704d;background:linear-gradient(115deg,#26302f,#111d26)}
body[data-section="activities"] .syn-f1-activity-status strong{font:400 clamp(20px,2.2vw,30px)/1.1 Georgia,serif;color:var(--f1-gold);overflow-wrap:anywhere}
body[data-section="activities"] .syn-f1-activity-status small{font-size:11px;color:var(--f1-muted)}
body[data-section="activities"] .syn150-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
body[data-section="activities"] .syn150-grid:has(> :nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
html body[data-section="activities"] .content .syn-goal-card{background:#11222c!important;min-height:218px;padding:17px!important;gap:12px;border-color:#3b505b!important;display:flex;flex-direction:column}
html body[data-section="activities"] .content .syn-goal-card:nth-child(3n+1){background-image:linear-gradient(95deg,#11222cf2,#11222cc0),url('finale-p1/card-docks.webp')!important;background-size:cover!important}
html body[data-section="activities"] .content .syn-goal-card:nth-child(3n+2){background-image:linear-gradient(95deg,#11222cf2,#11222cc0),url('finale-p1/card-guard.webp')!important;background-size:cover!important}
html body[data-section="activities"] .content .syn-goal-card:nth-child(3n){background-image:linear-gradient(95deg,#11222cf2,#11222cc0),url('finale-p1/card-office.webp')!important;background-size:cover!important}
body[data-section="activities"] .syn-goal-top{align-items:start;gap:11px}
body[data-section="activities"] .syn-goal-icon{height:45px;width:45px;flex:0 0 45px;border-radius:9px;font-size:24px;background:#182d38;border:1px solid #7b6549}
body[data-section="activities"] .syn-goal-top b{font:500 clamp(18px,1.5vw,23px)/1.18 Georgia,serif;color:#f5e6cd}
body[data-section="activities"] .syn-goal-top small{display:block;margin-top:6px;font-size:12px;line-height:1.45;color:#c0ced4}
body[data-section="activities"] .syn83-goal-meta{display:flex;justify-content:space-between;gap:8px;color:#f0c990;margin-top:auto}
body[data-section="activities"] .syn-goal-rewards{margin-top:0;gap:6px}
body[data-section="activities"] .syn-goal-rewards span{background:#0a1821c9;border-color:#3f5660;padding:6px 9px;font-weight:600}
body[data-section="activities"] .syn-goal-card .btn{margin-top:0;min-height:38px}
body[data-section="activities"] .syn-goal-card.claimed{opacity:.82}

/* DECYZJE DONA: preview and unlocked doctrine/case cards */
body[data-section="don"] .syn-f1-don-preview{padding:0!important;overflow:hidden;background:#101d26!important}
body[data-section="don"] .syn-f1-don-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:172px;padding:27px 31px;background:linear-gradient(90deg,#0b1823f8 3%,#0c1824cc 54%,#0b182354),url('finale-p1/don.webp') center/cover}
body[data-section="don"] .syn-f1-don-intro h2{font:400 clamp(25px,2.8vw,37px)/1.15 Georgia,serif;margin:9px 0;color:#f5e8ce}
body[data-section="don"] .syn-f1-don-intro p{max-width:710px;color:#d6dfe0;font-size:13px;line-height:1.6;margin:0}
body[data-section="don"] .syn-f1-seal{display:grid;place-items:center;border:1px solid #d1a97191;background:#091620d9;border-radius:50%;height:96px;width:96px;flex-shrink:0;font:50px Georgia,serif;color:#f0c786}
body[data-section="don"] .syn150-doctrines{margin:0;gap:0;grid-template-columns:repeat(3,minmax(0,1fr));padding:13px;gap:13px}
body[data-section="don"] .syn150-doctrine{padding:0;gap:0;min-width:0;overflow:hidden;border:1px solid #4b5c64;background:#0e1d27;border-radius:11px;box-shadow:none}
body[data-section="don"] .syn-f1-doctrine-scene{height:140px;display:flex;align-items:flex-start;padding:13px;background:linear-gradient(180deg,#06121a16,#06121a65),url('finale-p1/cash.webp') center/cover}
body[data-section="don"] .syn-f1-doctrine-2 .syn-f1-doctrine-scene{background-image:linear-gradient(180deg,#06121a16,#06121a65),url('finale-p1/card-guard.webp')}
body[data-section="don"] .syn-f1-doctrine-3 .syn-f1-doctrine-scene{background-image:linear-gradient(180deg,#06121a16,#06121a65),url('finale-p1/shadow.webp')}
body[data-section="don"] .syn-f1-doctrine-scene>span{display:grid;place-items:center;width:37px;height:37px;border:1px solid #c7a26c;background:#09141dc9;border-radius:8px;font-size:22px;color:#f1cd91}
body[data-section="don"] .syn-f1-doctrine-info{padding:17px;display:flex;flex-direction:column;gap:9px;flex:1}
body[data-section="don"] .syn150-doctrine h3{font:400 24px/1.15 Georgia,serif;margin:0;color:#f8e6c9}
body[data-section="don"] .syn150-doctrine p{font-size:13px;line-height:1.55;color:#bccbd2}
body[data-section="don"] .syn150-doctrine small{font-size:12px;color:#efc47e;border-top:1px solid #344950;padding-top:10px;margin-top:auto}
body[data-section="don"] .syn150-case,body[data-section="don"] .syn150-panel{border-color:#44545b}
body[data-section="don"] .syn150-doctrine:not(:has(.syn-f1-doctrine-info)){padding:18px;min-height:180px}

/* WYDARZENIA */
body[data-section="encounters"] .syn47-login{min-height:130px;padding:22px 25px;border-color:#8d724e!important;background:linear-gradient(95deg,#14252de5,#2e2926dd),url('finale-p1/card-office.webp') center/cover!important;gap:15px}
body[data-section="encounters"] .syn47-login h2{font:400 29px Georgia,serif;margin:5px 0;color:#f5dcad}
body[data-section="encounters"] .syn47-login p{font-size:13px;color:#c3d2d7;max-width:650px}
body[data-section="encounters"] .syn47-title{margin:22px 0 12px}
body[data-section="encounters"] .syn-f1-event{display:grid!important;grid-template-columns:minmax(190px,27%) minmax(0,1fr) 188px!important;gap:18px!important;align-items:stretch!important;min-height:190px;padding:12px!important;background:#101e28!important;border-color:#4b5b62!important}
body[data-section="encounters"] .syn-f1-event-picture{position:relative;min-height:162px;overflow:hidden;border:1px solid #4e5c61;border-radius:8px}
body[data-section="encounters"] .syn-f1-event-picture img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;display:block}
body[data-section="encounters"] .syn-f1-event-stamp{position:absolute;left:10px;top:10px;font-weight:700;font-size:9px;letter-spacing:.11em;color:#f4d09c;background:#091821dc;border:1px solid #a48453;padding:7px 9px;border-radius:5px}
body[data-section="encounters"] .syn-f1-event-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:5px 0}
body[data-section="encounters"] .syn-f1-event h2{font:400 clamp(24px,2.3vw,31px)/1.15 Georgia,serif;margin:8px 0 10px;color:#f6e5c9}
body[data-section="encounters"] .syn-f1-event p{color:#bfd0d7;font-size:13px;line-height:1.55;margin:0 0 15px}
body[data-section="encounters"] .syn-f1-event .syn47-cost{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px}
body[data-section="encounters"] .syn-f1-event .syn47-cost span{font-size:11px;white-space:normal}
body[data-section="encounters"] .syn-f1-event .syn47-event-actions{grid-column:auto;display:flex;flex-direction:column;justify-content:center;gap:9px}
body[data-section="encounters"] .syn-f1-event .syn47-event-actions button{min-height:40px}
body[data-section="encounters"] .syn-f1-quest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
html body[data-section="encounters"] .content .syn-f1-quest{display:grid!important;grid-template-columns:135px minmax(0,1fr);gap:14px;align-items:stretch;padding:12px!important;background:#10202b!important;min-height:177px;border:1px solid #3b5059!important}
body[data-section="encounters"] .syn-f1-quest-photo{grid-row:1/3;position:relative;overflow:hidden;border-radius:8px;border:1px solid #3e5360}
body[data-section="encounters"] .syn-f1-quest-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body[data-section="encounters"] .syn-f1-quest-copy{min-width:0;padding:3px 0 0;display:flex;flex-direction:column;gap:5px}
body[data-section="encounters"] .syn-f1-quest h3{font:400 22px/1.12 Georgia,serif;color:#f6e5c9;margin:2px 0}
body[data-section="encounters"] .syn-f1-quest p{margin:0!important;font-size:12px;color:#bbcad3;line-height:1.5}
body[data-section="encounters"] .syn-f1-quest .syn47-rewards{display:flex;gap:5px;flex-wrap:wrap;margin-top:auto}
body[data-section="encounters"] .syn-f1-quest .syn47-rewards span{font-size:10px}
body[data-section="encounters"] .syn-f1-quest .syn47-quest-progress{width:100%;min-width:0;grid-column:2;align-items:stretch;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
body[data-section="encounters"] .syn-f1-quest .syn47-quest-progress .progressbar{grid-column:1/-1;width:100%;margin:0}
body[data-section="encounters"] .syn-f1-quest .syn47-quest-progress small{justify-self:start;color:#e8bc7a}
body[data-section="encounters"] .syn-f1-quest .syn47-quest-progress .btn{grid-column:2;min-width:125px;min-height:34px}
body[data-section="encounters"] .syn-f1-quest.done{border-color:#527662!important}

/* POSTAĆ / MAGAZYN */
body[data-section="profile"] .syn53-armory-layout{grid-template-columns:minmax(0,1fr) minmax(300px,.91fr);gap:16px}
body[data-section="profile"] .syn53-paperdoll,body[data-section="profile"] .syn53-bag{border-color:#455b61!important;background:linear-gradient(145deg,#12242f,#0c1820)!important}
body[data-section="profile"] .syn53-paperdoll .syn53-card-heading{background:linear-gradient(90deg,#142a35,#0c1922)}
body[data-section="profile"] .syn53-card-heading strong{font:400 28px Georgia,serif;color:#f4ddba}
body[data-section="profile"] .syn53-figure{border-color:#93724a!important;background:#0a1721!important}
body[data-section="profile"] .syn53-bag-top{border-color:#53646b!important}
body[data-section="profile"] .syn53-bag-top h2{font:400 30px Georgia,serif;color:#f5e7d2}
body[data-section="profile"] .syn-inventory-grid:empty{background-image:linear-gradient(110deg,#0c1c25c2,#0a151ce9),url('finale-p1/card-office.webp');background-position:center;background-size:cover;min-height:180px}
body[data-section="profile"] .syn69-bag-results{font-weight:600;color:#c0cfd3}
body[data-section="profile"] .syn53-gear-slot{border-color:#6a5d48;background:#11232e}
body[data-section="profile"] .syn14-training-wrap{margin-top:16px}
body[data-section="profile"] .syn14-training-wrap h2{color:#f5e1bf}

/* TALENTY */
body[data-section="talents"] .info-strip{border-color:#92724d;background:linear-gradient(100deg,#162933,#111d27)}
body[data-section="talents"] .syn10-frame.syn12-tier{margin:15px 0;padding:20px;background:linear-gradient(102deg,#10222c,#0b1923)!important}
body[data-section="talents"] .syn10-frame.syn12-tier>header{background-image:linear-gradient(90deg,#101e26e8,#101e26b9),url('finale-p1/talents.webp');background-position:center 56%;background-size:cover;border-radius:9px;border:1px solid #445962;padding:17px 20px;margin-bottom:14px}
body[data-section="talents"] .syn10-frame.syn12-tier>header .syn10-overline{color:#eac285}
body[data-section="talents"] .syn10-frame.syn12-tier .card-grid{gap:12px}
body[data-section="talents"] .syn12-talent{min-height:216px;padding:17px!important;background:#11212c!important;border-color:#43555e!important}
body[data-section="talents"] .syn12-talent h3{font:400 23px Georgia,serif;color:#f2e3cb;margin:8px 0}
body[data-section="talents"] .syn12-talent p{font-size:12px;line-height:1.55;color:#bccdd3;flex:1}
body[data-section="talents"] .syn12-talent .btn{min-height:38px}

/* DZIEDZICTWO */
body[data-section="legacy"] .info-strip{border:1px solid #907149;border-radius:12px;background:linear-gradient(100deg,#142630,#0c1a22)}
body[data-section="legacy"] .syn10-legacy-reset{border-color:#93704b!important;background:linear-gradient(90deg,#101d26f5,#101d26b7),url('finale-p1/legacy.webp') right/cover!important;padding:25px 27px!important}
body[data-section="legacy"] .syn10-legacy-reset h2{font:400 32px Georgia,serif;color:#f4dfb9;margin:10px 0}
body[data-section="legacy"] .syn10-legacy-reset p{font-size:13px;line-height:1.65;color:#c7d4d5;max-width:1000px}
body[data-section="legacy"] .syn10-perks{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
body[data-section="legacy"] .syn10-perk{padding:19px;min-height:210px;border:1px solid #445963;background:linear-gradient(145deg,#132630,#0c1922)!important}
body[data-section="legacy"] .syn10-perk h3{font:400 24px Georgia,serif;color:#f4dfb9}
body[data-section="legacy"] .syn10-perk p{font-size:12px;line-height:1.52;flex:1;color:#b9cad0}
body[data-section="legacy"] .syn10-perk .btn{min-height:38px;margin-top:10px}

/* WARSZTAT */
body[data-section="workshop"] .syn47-toolbar{border:1px solid #435762;border-radius:11px;padding:15px 18px;background:linear-gradient(100deg,#122631,#0c1922);margin-bottom:15px}
body[data-section="workshop"] .syn47-toolbar>div{border-right:1px solid #42545d}
body[data-section="workshop"] .syn47-toolbar>div:last-child{border-right:none}
body[data-section="workshop"] .syn47-feature{border-color:#8d714e!important;min-height:155px;padding:22px 26px;background:linear-gradient(90deg,#122430ee,#122430d0 58%,#12243083),url('finale-p1/workshop.webp') center/cover!important}
body[data-section="workshop"] .syn47-feature p{max-width:690px}
body[data-section="workshop"] .syn47-grid{gap:13px}
body[data-section="workshop"] .syn47-card{background:#11232d!important;min-height:335px;padding:14px!important;display:flex;flex-direction:column}
body[data-section="workshop"] .syn47-card .syn47-art{background:linear-gradient(160deg,#0d1922,#13252f);border-radius:9px;border:1px solid #334751;min-height:132px;display:flex;align-items:center;justify-content:center}
body[data-section="workshop"] .syn47-card .syn47-art img{height:118px;width:auto;max-width:100%;object-fit:contain}
body[data-section="workshop"] .syn47-card h3{font:400 24px Georgia,serif;color:#f5e7d2;margin:10px 0 7px}
body[data-section="workshop"] .syn47-card p{line-height:1.48;font-size:12px;color:#c3d0d5;flex:1}
body[data-section="workshop"] .syn47-card .btn{width:100%;margin-top:12px;min-height:42px}

/* KRONIKA: status-ledger layout, clearer spacing */
body[data-section="career"] .exp-career{max-width:100%;margin:0}
body[data-section="career"] .exp-career-hero{padding:27px!important;border-color:#89704c;background:linear-gradient(95deg,#0d1b25f0,#0d1b25b0),url('finale-p1/chronicle.webp') center/cover!important}
body[data-section="career"] .exp-career-hero h2{font:400 38px Georgia,serif;color:#f4dfba}
body[data-section="career"] .exp-career-track{gap:10px;margin-top:17px}
body[data-section="career"] .exp-chapter{gap:17px;padding:16px 20px;grid-template-columns:45px 70px minmax(0,1fr) auto;background:linear-gradient(110deg,#13232d,#0c1b24)!important;border-color:#3c515b!important;min-height:108px}
body[data-section="career"] .exp-chapter.complete{background:linear-gradient(110deg,#142a29,#102320)!important;border-color:#52705c!important}
body[data-section="career"] .exp-chapter.current{background:linear-gradient(110deg,#2e2d28,#16252b)!important;border-color:#b28b55!important}
body[data-section="career"] .exp-chapter.locked{opacity:.82}
body[data-section="career"] .exp-chapter-art{width:66px;height:66px;font-size:28px;border-color:#5e5341}
body[data-section="career"] .exp-chapter-copy h3{font:400 24px Georgia,serif;color:#f6e2c4}
body[data-section="career"] .exp-chapter-copy p{font-size:12px;line-height:1.55;color:#c0cbd0;margin:3px 0}
body[data-section="career"] .exp-chapter-action .btn{min-height:39px}
body[data-section="career"] .syn160-saga,.exp-career .syn160-saga{border:1px solid #43565f;border-radius:12px;background:#0e1d26}
body[data-section="career"] .syn160-saga h2,body[data-section="career"] .syn160-saga h3{color:#f6e3c5}

/* USTAWIENIA: two coherent columns instead of unrelated bare forms */
body[data-section="settings"] .settings-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(350px,.84fr);gap:16px;align-items:start}
body[data-section="settings"] .settings-grid>.panel{min-width:0;border:1px solid #3e535d!important;background:linear-gradient(155deg,#132530,#0a1822)!important;padding:22px!important;border-radius:12px!important}
body[data-section="settings"] .settings-grid h2{font:400 31px Georgia,serif;color:#f5e3c5;margin:0 0 7px}
body[data-section="settings"] .settings-grid .preferences-panel>p{margin:0 0 20px;color:#b8c8cd}
body[data-section="settings"] .pref-row{min-height:56px;padding:9px 0;border-bottom:1px solid #374a54;gap:14px}
body[data-section="settings"] .pref-row b{color:#f0e0c8}
body[data-section="settings"] .pref-row small{color:#a9bac4}
body[data-section="settings"] .audio-volume-row{padding:12px 0;border-bottom:1px solid #374a54}
body[data-section="settings"] .syn169-install-settings{border:1px solid #856b4b;border-radius:10px;background:linear-gradient(125deg,#162f37,#12232d);padding:17px;margin:16px 0}
body[data-section="settings"] .syn169-install-settings h3{font:400 23px Georgia,serif;color:#f2ddba}
body[data-section="settings"] .notification-pref-head{margin-top:20px;border-bottom:1px solid #45545a;padding-bottom:10px}
body[data-section="settings"] .notification-pref-head h3{font:400 25px Georgia,serif;color:#f2ddc1}
body[data-section="settings"] .account-security{position:relative;overflow:hidden}
body[data-section="settings"] .account-security::before{content:'';display:block;height:112px;margin:-22px -22px 19px;background:linear-gradient(90deg,#07121ac4,#07121a45),url('finale-p1/settings.webp') center 42%/cover}
body[data-section="settings"] .account-security form{display:grid;gap:13px}
body[data-section="settings"] .account-security label{color:#e5cba7;font-size:12px;font-weight:700}
body[data-section="settings"] .account-security input{margin-top:6px;width:100%;min-height:43px;border-radius:8px;background:#08151e;border:1px solid #566974;color:#f3e4c7;padding:10px 13px;font-size:16px}
body[data-section="settings"] .account-security .btn{justify-self:start;min-height:41px}
body[data-section="settings"] .account-security>small{display:block;margin-top:13px;color:#aabbc5}

/* WIADOMOŚCI */
body[data-section="messages"] .syn140-messages-title{min-height:157px;align-items:center;padding:25px 30px;background:linear-gradient(90deg,#09151fef 0%,#10212adf 57%,#09151f55 100%),url('finale-p1/messages.webp') right/cover;border:1px solid #95734e;border-radius:12px}
body[data-section="messages"] .syn140-messages-title h1{font:400 clamp(32px,3vw,45px) Georgia,serif;color:#fae4c2}
body[data-section="messages"] .syn140-messages-title p{color:#c7d5da}
body[data-section="messages"] .syn140-messages-stat span{color:#f2c887}
body[data-section="messages"] .syn140-messages-layout{border-color:#40545c;border-radius:12px;background:#0d1c26;min-height:540px}
body[data-section="messages"] .syn140-messages-layout .syn170-dm-sidebar{background:#0e1d27;border-color:#40555b}
body[data-section="messages"] .syn140-messages-layout .syn170-dm-main-head{background:linear-gradient(95deg,#182c35,#11222c);border-color:#52606a}
body[data-section="messages"] .syn140-messages-layout .chat-dock-messages{background-image:linear-gradient(#0b1823ed,#0b1823eb),url('finale-p1/messages.webp');background-position:center;background-size:cover}
body[data-section="messages"] .syn140-messages-layout .syn171-message-content{border-radius:11px;background:#182c38;border-color:#4b5c66}
body[data-section="messages"] .syn140-messages-layout .chat-line.mine .syn171-message-content{background:#302b26;border-color:#947451}
body[data-section="messages"] .syn140-messages-layout .syn169-thread.selected{border-color:#d1a76e}

/* INBOX & NOTICE DRAWER: keep existing limit of four entries and click actions. */
html body .notif-drawer{border-color:#8d704c!important;border-radius:13px!important;background:linear-gradient(165deg,#122630,#0b1721)!important;box-shadow:0 22px 62px #000a!important}
html body .notif-drawer-head{min-height:65px!important;background:linear-gradient(100deg,#152934,#0b1a23)!important;border-bottom:1px solid #53606a!important;padding:13px 15px!important}
html body .notif-drawer-head h3{color:#f4dfbd!important;font:400 22px Georgia,serif!important}
html body .notif-drawer-body{gap:7px!important;padding:10px!important}
html body .notif-drawer .syn63-mini-notice{border:1px solid #354b55!important;border-radius:9px!important;background:#10232d!important;padding:12px!important;text-align:left}
html body .notif-drawer .syn63-mini-notice.unread{border-left:3px solid #d3a76b!important;background:#182b34!important}
html body .notif-drawer .syn63-mini-title{font-size:13px;font-weight:700;color:#f2dfc4}
html body .notif-drawer .syn94-notice-date{font-size:10px;color:#efc486}
html body .notif-drawer .syn94-notice-body{color:#b9ccd1;font-size:12px;line-height:1.48}
html body .notif-drawer-actions{background:#0a1720!important;border-top:1px solid #334a55!important}
html body .notif-drawer-actions .btn{min-height:38px!important}
html body .notif-drawer .syn63-mini-notice:focus-visible{outline:2px solid #efc687;outline-offset:2px}

/* Avoid overflow and unrealistic heights at phone widths. */
@media(max-width:1200px){
 body[data-section="encounters"] .syn-f1-event{grid-template-columns:170px minmax(0,1fr)!important}
 body[data-section="encounters"] .syn-f1-event .syn47-event-actions{grid-column:1/-1;flex-direction:row}
 body[data-section="encounters"] .syn-f1-event .syn47-event-actions button{flex:1}
 body[data-section="encounters"] .syn-f1-quest-grid{grid-template-columns:1fr}
 body[data-section="legacy"] .syn10-perks{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:950px){
 body[data-section="settings"] .settings-grid{grid-template-columns:1fr}
 body[data-section="profile"] .syn53-armory-layout{grid-template-columns:1fr}
 body[data-section="activities"] .syn150-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-section="don"] .syn150-doctrines{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:690px){
 html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title){min-height:148px!important;padding:20px 18px!important}
 html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn53-armory-title,.syn54-armory-title) h1{font-size:clamp(28px,8vw,36px)!important}
 body[data-section="activities"] .syn-f1-activity-status{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-section="activities"] .syn-f1-activity-status .syn-f1-activity-countdown{grid-column:1/-1}
 body[data-section="activities"] .syn150-grid{grid-template-columns:1fr}
 html body[data-section="activities"] .content .syn-goal-card{min-height:185px}
 body[data-section="don"] .syn150-doctrines{grid-template-columns:1fr;padding:11px}
 body[data-section="don"] .syn-f1-don-intro{padding:20px;min-height:150px}
 body[data-section="don"] .syn-f1-seal{display:none}
 body[data-section="don"] .syn-f1-doctrine-scene{height:108px}
 body[data-section="encounters"] .syn-f1-event{grid-template-columns:1fr!important;padding:12px!important}
 body[data-section="encounters"] .syn-f1-event-picture{height:157px;min-height:0}
 body[data-section="encounters"] .syn-f1-event .syn47-event-actions{grid-column:1;flex-direction:column}
 body[data-section="encounters"] .syn-f1-quest-grid{grid-template-columns:1fr}
 html body[data-section="encounters"] .content .syn-f1-quest{grid-template-columns:105px minmax(0,1fr);gap:10px;padding:10px!important}
 body[data-section="encounters"] .syn-f1-quest-photo{grid-row:1/2;min-height:115px}
 body[data-section="encounters"] .syn-f1-quest .syn47-quest-progress{grid-column:1/-1}
 body[data-section="encounters"] .syn47-login{padding:17px}
 body[data-section="talents"] .syn10-frame.syn12-tier{padding:13px}
 body[data-section="legacy"] .syn10-perks{grid-template-columns:1fr}
 body[data-section="legacy"] .syn10-legacy-reset{padding:17px!important}
 body[data-section="workshop"] .syn47-toolbar>div{border:0}
 body[data-section="workshop"] .syn47-feature{padding:17px;min-height:155px}
 body[data-section="workshop"] .syn47-grid{grid-template-columns:1fr}
 body[data-section="career"] .exp-career-hero{padding:19px!important}
 body[data-section="career"] .exp-chapter{grid-template-columns:33px 48px minmax(0,1fr);gap:9px;padding:12px}
 body[data-section="career"] .exp-chapter-art{width:48px;height:48px;font-size:22px}
 body[data-section="career"] .exp-chapter-copy h3{font-size:20px}
 body[data-section="career"] .exp-chapter-action{grid-column:2/-1}
 body[data-section="settings"] .settings-grid>.panel{padding:17px!important}
 body[data-section="settings"] .account-security::before{margin:-17px -17px 15px}
 body[data-section="messages"] .syn140-messages-title{padding:16px;min-height:125px}
 body[data-section="messages"] .syn140-messages-layout{min-height:0}
 html body .notif-drawer{max-height:calc(100dvh - 85px)!important}
}
@media(prefers-reduced-motion:reduce){
 body[data-section="don"] .syn150-doctrine,body[data-section="activities"] .syn-goal-card,body[data-section="encounters"] .syn-f1-quest{transition:none!important;transform:none!important}
}

@media(max-width:690px){
 html body:is([data-section="activities"],[data-section="don"],[data-section="legacy"],[data-section="career"],[data-section="talents"],[data-section="settings"],[data-section="workshop"],[data-section="encounters"],[data-section="profile"]) .content :is(.page-title,.syn47-head,.syn54-armory-title):not([hidden]):not([data-syn-x]){
  min-height:146px!important;padding:21px 18px!important;
 }
}
