:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#292d35;background:#f7f6f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.hidden{display:none!important}.app{min-height:100vh}.topbar{height:80px;background:#fff;border-bottom:1px solid #eae8e4;padding:0 clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:13px}.brand-icon{height:45px;width:45px;background:#f4eaec;color:#8c3045;border-radius:14px;display:grid;place-items:center;font-size:27px}.brand div{display:flex;flex-direction:column;gap:3px}.brand small{font-size:10px;letter-spacing:.14em;color:#7f8389;font-weight:800}.brand strong{font-size:19px;letter-spacing:-.045em}.pill{display:inline-flex;border:1px solid #ede2e4;background:#faf2f4;color:#91374a;font-size:11px;border-radius:30px;padding:8px 12px;font-weight:800}.layout{display:grid;grid-template-columns:260px 1fr;max-width:1500px;margin:auto;min-height:calc(100vh - 80px)}.sidebar{padding:35px 18px;border-right:1px solid #eae8e4;background:#fcfbfa;display:flex;flex-direction:column;gap:8px}.section-label,.eyebrow{font-size:11px;font-weight:850;letter-spacing:.13em;color:#9a9195}.section-label{padding-left:16px;margin-bottom:12px}.navitem{width:100%;border:0;background:transparent;border-radius:13px;padding:15px 15px;text-align:left;display:flex;gap:14px;align-items:center;font-size:14px;font-weight:700;color:#687079}.navitem.selected{background:#f3e9eb;color:#8a2d42}.navitem:hover{background:#f3f1ef}.sidebar-note{margin-top:auto;padding:16px;font-size:12px;line-height:1.8;color:#84838a;border-top:1px solid #eae8e4}.sidebar-note span{color:#ac9da3}.content{width:100%;max-width:1160px;margin:0 auto;padding:38px clamp(18px,4vw,50px) 22px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.heading h1{font-size:clamp(27px,4vw,38px);letter-spacing:-.055em;margin:7px 0 7px}.heading p{margin:0;font-size:14px;color:#797e85;line-height:1.6}.heading-icon{height:62px;width:62px;border:1px solid #eee1e3;border-radius:20px;background:#fff;display:grid;place-items:center;color:#922f47;font-size:27px}.control-panel,.panel{background:#fff;border:1px solid #ebe8e4;border-radius:20px;padding:24px;box-shadow:0 8px 35px #24242f07}.month-row{display:flex;gap:17px;align-items:center;flex-wrap:wrap}.month-row label,.panel label,dialog label{display:block;font-weight:750;font-size:14px}.month-row input,input,select{border:1px solid #e3e0dd;border-radius:11px;padding:12px 14px;background:#fff;color:#34343a;min-height:46px}input:focus,select:focus,button:focus-visible{outline:3px solid #e6bec6;outline-offset:2px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.btn{border:0;border-radius:11px;padding:13px 17px;min-height:48px;font-weight:800;font-size:13px}.btn-primary{background:#882c41;color:#fff;box-shadow:0 5px 16px #882c4126}.btn-primary:hover{background:#76243a}.btn-outline{background:#fbfaf9;border:1px solid #e9e4e1;color:#50535a}.btn-outline:hover{background:#f3eef0}.helper{font-size:12px;color:#8c8d92;margin-top:14px;line-height:1.6}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:19px 0 28px}.summary>div{background:#fff;border:1px solid #ebe8e4;border-radius:15px;padding:20px;display:flex;flex-direction:column;gap:9px}.summary small{font-size:10px;letter-spacing:.08em;color:#898f94;font-weight:800}.summary strong{font-size:28px;letter-spacing:-.05em}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.section-heading h2,.panel h2{font-size:19px;letter-spacing:-.035em;margin:0}.section-heading span{font-size:12px;color:#8b8e92}.meetings{display:grid;gap:14px}.meeting{background:#fff;border:1px solid #eae7e3;border-radius:17px;overflow:hidden;box-shadow:0 7px 27px #24242f06}.meeting-head{display:flex;align-items:center;justify-content:space-between;padding:18px 21px;border-bottom:1px solid #f0ede9;gap:12px}.meeting-head b{display:block;font-size:16px}.meeting-head span{display:block;font-size:12px;color:#93939a;margin-top:5px}.state{font-size:11px;padding:7px 10px;border-radius:100px;background:#f3f2f0;color:#747982;font-weight:800}.state.published{background:#edf5ee;color:#497652}.group-title{font-size:10px;font-weight:850;letter-spacing:.11em;padding:10px 19px;color:#fff;background:#64717b}.group-title.ministry{background:#bb8a36}.group-title.living{background:#922e46}.group-title.misc{background:#f3f1ef;color:#656971}.slot{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 19px;border-top:1px solid #f3f1ef}.slot-time{font-size:12px;font-weight:800;color:#8b8c91}.slot-title{font-weight:760;font-size:13px;line-height:1.45}.slot-person{font-size:12px;color:#807e84;margin-top:3px}.slot.unfilled .slot-person{color:#a54b5a}.slot button{border:1px solid #e5e0df;background:#fff;border-radius:9px;padding:9px 11px;font-size:12px;color:#7e3546;font-weight:800}.placeholder{padding:37px;border:1px dashed #d8d5d1;color:#898e94;border-radius:15px;text-align:center;background:#fff;font-size:14px}.notice{padding:15px 18px;border-radius:11px;background:#f0f4f7;color:#41596c;border:1px solid #d9e4ec;margin-bottom:20px;font-size:13px}.notice.error{background:#fdf0f1;color:#973747;border-color:#eec6cc}.person-layout{display:grid;grid-template-columns:1fr 1fr;gap:19px}.panel h2{margin-bottom:22px}.panel input{width:100%;margin-top:9px}.subheading{font-size:12px;color:#777d84;font-weight:800;margin-top:22px;margin-bottom:13px}.roles{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:22px}.role-item{display:flex;align-items:center;gap:8px;background:#faf9f7;border:1px solid #eeebe8;padding:11px;border-radius:10px;font-size:12px;font-weight:700}.role-item input{width:auto;margin:0;min-height:0;accent-color:#8a2e43}.full{width:100%}.person-row{padding:15px 0;border-bottom:1px solid #f0eeec}.person-row b{font-size:14px}.person-row small{font-size:12px;color:#888a90;display:block;margin-top:6px;line-height:1.6}.small-note{color:#777c83;font-size:12px;line-height:1.55}footer{padding:30px 0 18px;color:#a1a0a4;font-size:11px;line-height:1.5}dialog{border:1px solid #e4dedc;border-radius:18px;padding:25px;width:min(94vw,470px);box-shadow:0 30px 90px #18181c38}dialog::backdrop{background:#15151b80}dialog h2{font-size:22px;letter-spacing:-.04em;margin:0 0 22px}dialog label{margin-top:16px;margin-bottom:8px}dialog input,dialog select{width:100%}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(max-width:850px){.layout{grid-template-columns:1fr}.sidebar{padding:10px 14px;flex-direction:row;border-right:0;border-bottom:1px solid #eae8e4;gap:7px}.section-label,.sidebar-note{display:none}.navitem{justify-content:center;padding:13px 10px;flex:1;font-size:13px}.content{padding:25px 15px}.person-layout{grid-template-columns:1fr}}@media(max-width:550px){.topbar{height:72px;padding:0 15px}.brand strong{font-size:16px}.brand-icon{width:38px;height:38px;font-size:22px}.brand small{font-size:9px}.heading-icon{display:none}.actions .btn{width:100%}.summary{gap:7px}.summary>div{padding:15px 11px}.summary small{font-size:9px}.summary strong{font-size:24px}.control-panel,.panel{padding:18px}.month-row{align-items:flex-start;flex-direction:column}.month-row input{width:100%}.slot{grid-template-columns:43px minmax(0,1fr) auto;padding:12px 10px;gap:7px}.slot button{padding:8px 7px}.roles{grid-template-columns:1fr}.sidebar .navitem{font-size:12px}.meeting-head{padding:15px}.group-title{padding:10px 13px}}

.import-panel,.export-panel{margin:18px 0}.import-panel h2,.export-panel h2{margin-bottom:10px}.import-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.import-controls label{font-size:13px}.import-panel select,.import-panel input[type=file],.import-panel textarea{display:block;width:100%;margin-top:7px}.import-panel textarea{border:1px solid #e3e0dd;border-radius:12px;padding:14px;resize:vertical;font:inherit;line-height:1.5}#importPreview{padding:12px;background:#f9f7f5;border-radius:10px;margin-top:14px;white-space:pre-wrap}@media(max-width:650px){.import-controls{grid-template-columns:1fr}}
.activation{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f7f6f4}.activation-card{width:min(100%,450px);background:#fff;border:1px solid #eae5df;border-radius:22px;padding:35px;box-shadow:0 20px 50px #24242f13}.activation-card .brand-icon{margin-bottom:20px}.activation-card small{color:#8a2d42;letter-spacing:2px;font-weight:800}.activation-card h1{margin:10px 0 6px}.activation-card p{color:#777d84;line-height:1.6}.activation-card input{display:block;width:100%;margin:10px 0 17px}.top-right{min-width:115px;text-align:right}.slot.unfilled{background:#fffafa}

/* V1.1 – Mobile native-feel refresh */
:root{--ink:#202632;--muted:#6f7682;--accent:#862a42;--stroke:#e7e9ec;--page:#f3f5f7;--card:#fff;--soft:#f8f0f2}
body{background:var(--page);color:var(--ink)}.topbar{background:#fffdfd;position:sticky;top:0;z-index:30;box-shadow:0 1px 12px #24242f08}.brand-icon{font-weight:750}.pill{font-size:11px}.sidebar{background:#fff;border-right-color:#edf0f2}.sidebar .navitem{font-size:14px}.nav-icon{font-size:24px;width:26px;display:grid;place-items:center}.sidebar .navitem.selected{box-shadow:inset 3px 0 #882c41}.content{max-width:1120px}.page{animation:appear .18s ease-out}@keyframes appear{from{opacity:.78;transform:translateY(4px)}to{opacity:1;transform:none}}
.hero{background:linear-gradient(118deg,#78263d,#a24a60);border-radius:26px;color:white;padding:36px;position:relative;overflow:hidden;min-height:260px}.hero-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;opacity:.8}.hero h1{font-size:clamp(27px,4.5vw,45px);letter-spacing:-.055em;line-height:1.08;margin:16px 0}.hero p{line-height:1.65;opacity:.86;font-size:14px;max-width:530px}.hero .btn-light{margin-top:9px;position:relative;z-index:2}.hero-decoration{position:absolute;right:-9px;bottom:-75px;font-size:300px;line-height:1;opacity:.09;transform:rotate(-12deg)}.btn-light{color:#822e43;background:#fff;border:0;box-shadow:0 10px 24px #330c171a}.btn-light span{margin-left:15px}.overview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0}.metric-card{background:#fff;border:1px solid var(--stroke);border-radius:21px;padding:22px;display:flex;flex-direction:column;gap:11px;box-shadow:0 9px 25px #1a202608}.metric-card span:not(.metric-icon){font-size:12px;color:var(--muted);font-weight:650}.metric-card strong{font-size:30px;letter-spacing:-.055em}.metric-icon{background:#f5ecef;color:#87324a;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;font-size:22px}.home-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:15px}.quick-panel{background:#fff;border-radius:22px;border:1px solid var(--stroke);padding:24px;box-shadow:0 6px 26px #24242f06}.quick-panel>h2{font-size:18px;margin:0 0 16px}.quick-panel>p{font-size:13px;line-height:1.75;color:var(--muted)}.quick-link{background:transparent;border:0;border-bottom:1px solid #eef0f2;width:100%;padding:14px 0;display:flex;align-items:center;gap:13px;text-align:left}.quick-link:last-child{border-bottom:0}.quick-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f7f0f2;color:#8c3045;font-size:23px}.quick-link>span:nth-child(2){flex:1;display:grid;gap:4px}.quick-link b{font-size:14px}.quick-link small{font-size:12px;color:var(--muted)}.quick-arrow{color:#9fa2a8;font-size:22px}.connection-line{display:flex;gap:9px;align-items:center;padding:15px;border:1px solid #e9edf0;background:#f8fafb;border-radius:12px;font-size:13px;font-weight:750}.signal-dot{height:9px;width:9px;border-radius:50%;background:#58936d;box-shadow:0 0 0 4px #e4f0e8}.bottom-nav{display:none}
.workflow-label{font-size:11px;font-weight:800;letter-spacing:.11em;color:var(--muted);margin-top:20px}.workflow-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.workflow-actions .btn{font-size:12px;min-height:56px;line-height:1.4}.sync-actions{margin-top:9px}.sync-actions .btn{min-height:42px}.schedule-hint{font-size:12px;color:var(--muted);margin:4px 0 14px}.meeting{border-radius:21px;border-color:var(--stroke)}.meeting-head{width:100%;border:0;text-align:left;background:#fff;display:flex;padding:15px 18px;gap:13px;cursor:pointer}.meeting-head:hover{background:#fdfbfc}.meeting-datebox{min-width:55px;border-radius:13px;background:#f5eef0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px;color:#842940}.meeting-datebox strong{font-size:24px;line-height:1}.meeting-datebox small{font-size:11px;font-weight:750;text-transform:uppercase;margin-top:3px}.meeting-meta{flex:1;min-width:0}.meeting-meta b{font-size:15px}.meeting-meta span{font-size:12px;color:var(--muted);display:block;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meeting-head-right{display:flex;gap:7px;align-items:center}.meeting-head-right .state{white-space:nowrap}.chevron{font-size:21px;transform:rotate(0deg);transition:transform .15s;color:#737780}.meeting.expanded .chevron{transform:rotate(180deg)}.meeting-body{border-top:1px solid var(--stroke)}.slot-edit{min-width:68px}.state.published{color:#356744;background:#eaf4ed}.state{color:#8b4c19;background:#fff3e4}
.people-toolbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--stroke);border-radius:20px;padding:17px 20px;gap:12px;margin-bottom:13px}.people-counter{display:flex;align-items:center;gap:13px}.people-counter strong{display:block;font-size:17px}.people-counter small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.people-filter{display:flex;align-items:center;gap:10px;margin-bottom:16px}.people-filter label{font-size:12px;font-weight:700;color:#727883}.people-filter input{flex:1;min-width:130px}.people-filter select{max-width:240px}.person-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:start}.person-layout .panel{border-radius:21px}.form-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}.form-heading h2{margin:3px 0 0}.field-label{margin-top:20px}.preset-hint{background:#f5f5f2;color:#626870;font-size:12px;line-height:1.55;padding:12px;border-radius:11px;margin-top:10px}.form-section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:23px 0 13px}.form-section-head strong{display:block;font-size:14px}.form-section-head small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.text-button{background:transparent;border:none;color:var(--accent);font-size:12px;font-weight:800}.roles{grid-template-columns:1fr 1fr}.role-item{font-size:12px;min-height:46px}.role-item:has(input:checked){border-color:#cdafba;background:#fdf2f5}.active-toggle{display:flex!important;gap:12px;align-items:center;background:#f8f9fa;padding:12px 15px;border-radius:12px;margin:3px 0 21px}.active-toggle input{width:20px;margin:0;min-height:20px;accent-color:var(--accent)}.icon-button{border:0;background:#f5f2f3;border-radius:10px;font-size:23px;width:35px;height:35px}.person-card{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eceef0}.person-card:last-child{border-bottom:0}.avatar{background:#f2e9ed;border-radius:50%;width:46px;height:46px;flex:none;display:grid;place-items:center;color:#87364b;font-size:13px;font-weight:800}.person-info{flex:1;min-width:0}.person-name-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.person-name-line b{font-size:14px}.category-chip{font-size:10px;font-weight:800;color:#875065;background:#f8ebef;border-radius:100px;padding:5px 7px}.person-info small{color:var(--muted);display:block;margin-top:5px}.role-preview{font-size:11px;color:#848993;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.person-edit{font-size:12px;font-weight:800;color:#813148;border:0;background:#f8edf1;border-radius:10px;padding:9px;flex:none}.count-badge{font-size:11px;color:#8e4b5e;background:#faf0f2;padding:6px 10px;border-radius:20px}.export-panel,.import-panel{margin:0 0 15px}.panel .btn{touch-action:manipulation}
@media(max-width:900px){.home-grid{grid-template-columns:1fr}.person-layout{grid-template-columns:1fr}.roles{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.sidebar{display:none}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:35;justify-content:space-around;padding:9px max(8px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e4e6e9;box-shadow:0 -4px 22px #1a1e240e}.bottom-tab{flex:1;border:0;background:none;color:#838791;display:grid;place-items:center;gap:3px;padding:6px 0;min-height:50px;border-radius:12px}.bottom-tab span{font-size:24px;line-height:1}.bottom-tab small{font-size:10px;font-weight:750}.bottom-tab.selected{color:#8a2d42;background:#f9f0f3}.content{padding-bottom:115px}.topbar{height:69px}.top-right{max-width:43%;overflow:hidden}.pill{font-size:10px;white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}}
@media(max-width:580px){.content{padding:17px 13px 120px}.heading{margin-bottom:17px}.heading h1{font-size:28px}.heading p{font-size:13px}.hero{padding:27px 22px;border-radius:21px;min-height:265px}.hero h1{font-size:31px}.hero-decoration{font-size:230px}.overview-grid{gap:7px;margin:12px 0}.metric-card{padding:13px 9px;border-radius:15px;gap:7px}.metric-card span:not(.metric-icon){font-size:10px;line-height:1.4}.metric-card strong{font-size:25px}.metric-icon{height:30px;width:30px;font-size:18px;border-radius:9px}.quick-panel{padding:19px}.workflow-actions{grid-template-columns:1fr}.workflow-actions .btn{width:100%}.people-toolbar{padding:12px}.people-toolbar .btn{white-space:nowrap;font-size:12px;padding:10px}.people-filter{display:grid;grid-template-columns:1fr 1fr;gap:7px}.people-filter input,.people-filter select{min-width:0;max-width:none;width:100%;grid-column:span 2}.people-filter label{grid-column:span 2}.person-card{gap:8px}.avatar{width:37px;height:37px}.person-edit{padding:8px 6px;font-size:11px}.roles{grid-template-columns:1fr}.meeting-head{padding:11px;gap:9px}.meeting-datebox{min-width:46px}.meeting-datebox strong{font-size:20px}.meeting-head-right{flex-direction:column;gap:0}.meeting-head-right .state{font-size:9px}.slot-edit{min-width:50px}.slot-title{font-size:12px}}

/* A korábbi éjkék (v1.2) téma eltávolítva: kizárólag a meleg paletta él. */
/* PWA indítóanimáció: az alkalmazás saját grafikája, nem JW-logó */
.boot{position:fixed;inset:0;z-index:9999;background:#09121e;display:grid;place-items:center;overflow:hidden;color:#f1f8ff}.boot-glow{position:absolute;width:340px;height:340px;background:radial-gradient(circle,#224d69 0,transparent 65%);filter:blur(20px);opacity:.65;animation:bootPulse 2s ease-in-out}.boot-content{position:relative;display:grid;place-items:center;text-align:center;padding:20px;gap:10px}.boot-mark{position:relative;width:115px;height:120px;margin-bottom:12px;animation:bootRise .8s cubic-bezier(.18,.7,.17,1.06) both}.boot-calendar{width:95px;height:99px;border:3px solid #93dff2;border-radius:18px;background:#15354a;box-shadow:0 18px 35px #0006;position:absolute;left:7px;top:4px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:29px 12px 12px}.boot-calendar:before{content:'';position:absolute;inset:0 0 auto;height:23px;border-bottom:3px solid #93dff2;background:#285a73;border-radius:15px 15px 0 0}.boot-calendar i{height:11px;border-radius:3px;background:#4e9fc1;opacity:0;animation:bootTile .18s forwards}.boot-calendar i:nth-child(2){animation-delay:.34s}.boot-calendar i:nth-child(3){animation-delay:.46s}.boot-calendar i:nth-child(4){animation-delay:.58s}.boot-calendar i:nth-child(5){animation-delay:.70s}.boot-calendar i:nth-child(6){animation-delay:.82s}.boot-calendar i:nth-child(7){animation-delay:.94s}.boot-check{position:absolute;right:-4px;bottom:4px;background:#4cc2b2;border:4px solid #0b1a2a;width:44px;height:44px;border-radius:50%;color:#092a30;font-size:25px;font-weight:900;display:grid;place-items:center;animation:bootRise .4s 1s both}.boot-eyebrow{font-size:10px;font-weight:850;letter-spacing:.25em;color:#7ccfe6}.boot-title{font-size:clamp(26px,7vw,37px);font-weight:850;letter-spacing:-.05em}.boot-sub{font-size:12px;color:#a7c1d4}.boot-line{height:3px;width:150px;overflow:hidden;border-radius:100px;background:#203b50;margin-top:20px}.boot-line span{display:block;background:#79d8e9;width:100%;height:100%;transform:translateX(-100%);animation:bootProgress 1.8s ease-out forwards}.boot-skip{margin-top:10px;color:#b0c4d5;background:transparent;border:0;padding:10px 18px;font-size:12px}.boot-finish{opacity:0;transition:opacity .24s ease;pointer-events:none}@keyframes bootRise{from{transform:translateY(22px) scale(.82);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes bootTile{to{opacity:1}}@keyframes bootPulse{50%{transform:scale(1.16);opacity:.95}}@keyframes bootProgress{to{transform:translateX(0)}}
@media(max-width:850px){.topbar{height:62px;padding-inline:16px}.brand strong{font-size:16px}.brand small{font-size:9px}.top-right{max-width:40%}.content{max-width:650px}.bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.bottom-tab{min-height:53px}.layout{display:block}}
@media(max-width:600px){
 html,body{max-width:100%;overflow-x:hidden}.content{padding:16px 14px calc(110px + env(safe-area-inset-bottom));max-width:100%}.page{width:100%;min-width:0}.hero{min-height:0;padding:25px 22px 23px;border-radius:20px}.hero h1{font-size:30px;margin:10px 0 8px}.hero p{font-size:13px;line-height:1.5;margin:0}.hero-decoration{font-size:170px;bottom:-45px}.hero .btn{margin-top:16px;width:100%;min-height:48px}.overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.metric-card{min-width:0;padding:12px 9px;border-radius:14px}.metric-card strong{font-size:27px}.metric-card span:not(.metric-icon){font-size:10px}.home-grid{grid-template-columns:1fr;gap:10px}.quick-panel{padding:18px;border-radius:17px}.quick-link{min-height:72px;padding:11px 0}.heading{gap:8px;margin-bottom:12px}.heading h1{font-size:28px}.heading p{font-size:12px;line-height:1.55}.heading-icon{display:none}.control-panel{padding:15px;border-radius:17px}.month-row{display:grid;gap:8px}.month-row input{width:100%;font-size:16px}.workflow-label{margin-top:15px}.workflow-actions{gap:8px;margin-top:9px}.workflow-actions .btn{min-height:51px;font-size:13px}.summary{gap:7px;margin:12px 0 16px}.summary>div{padding:13px 9px;min-width:0}.summary small{font-size:9px}.summary strong{font-size:25px}.meeting{border-radius:17px}.meeting-head{padding:12px 10px;gap:8px}.meeting-datebox{min-width:43px;padding:9px 4px}.meeting-meta b{font-size:13px}.meeting-meta span{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.meeting-head-right .state{font-size:9px;padding:5px 7px}.meeting-body{width:100%}.slot{grid-template-columns:39px minmax(0,1fr);padding:12px 11px;gap:7px}.slot-edit{grid-column:2;justify-self:end;min-width:78px;min-height:34px;margin-top:1px}.slot-title{font-size:12px;overflow-wrap:anywhere}.slot-person{font-size:12px}.group-title{padding:10px 12px}.people-toolbar{position:sticky;top:62px;z-index:10;gap:7px;padding:10px 12px;border-radius:14px}.people-counter{gap:7px}.people-counter strong{font-size:13px}.people-toolbar .btn{font-size:12px;padding:11px;min-height:44px}.people-filter{display:grid;grid-template-columns:1fr 1fr;gap:7px}.people-filter input,.people-filter select{grid-column:span 2;font-size:16px}.people-filter label{grid-column:span 2}.person-layout{display:flex;flex-direction:column;gap:12px}.directory-panel{order:0;width:100%}.person-form-panel{order:1;width:100%;scroll-margin-top:118px}.person-card{min-width:0;gap:9px}.person-name-line b{font-size:13px}.role-preview{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.roles{grid-template-columns:1fr 1fr;gap:7px}.role-item{font-size:12px;min-width:0;padding:11px 8px;overflow-wrap:anywhere;min-height:53px}.form-section-head{align-items:start}.panel{padding:17px;border-radius:16px}.export-panel .actions,.import-panel .actions{display:grid;grid-template-columns:1fr}.export-panel .btn,.import-panel .btn{width:100%;text-align:center}.bottom-tab{padding:7px 1px}.bottom-tab span{font-size:22px}.bottom-tab small{font-size:10px}.activation-card{width:min(92vw,430px)}dialog{padding:19px;width:calc(100vw - 24px)}
}
@media(max-width:360px){.brand small{font-size:8px}.brand strong{font-size:14px}.top-right{max-width:38%}.metric-card strong{font-size:23px}.metric-card span:not(.metric-icon){font-size:9px}.roles{grid-template-columns:1fr}.people-toolbar .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}.boot-line span{transform:none}}

/* v1.3 – KERT / PAPÍR / NAPFÉNY: meleg, nyugodt, nem technológiai arculat. */
:root{color-scheme:light;color:#332b25;background:#f5ecdc;font-family:"Aptos", "Segoe UI", system-ui, sans-serif}
body{background:radial-gradient(ellipse at 100% 0%,#fae5bd 0,transparent 46%),linear-gradient(155deg,#f8f0e4,#eee3d2);color:#342c24}
.topbar{background:#fffaf0;color:#342c24;border-bottom:1px solid #e7dac8;box-shadow:0 4px 20px #70543f0b}
.brand small,.eyebrow,.section-label{color:#9b6447}.brand strong{color:#322a22}
.brand-icon{background:#ebcfaa;color:#805431;border:1px solid #e2b98f;font-family:Georgia,serif}
.pill{background:#f4e6ce;color:#755b32;border-color:#e9d1ad}
.layout{background:transparent}.sidebar{background:#f8f0e4;border-color:#e6d8c7}
.navitem{color:#6f6154}.navitem.selected{background:#e9d8c0;color:#74462d}.navitem:hover{background:#efe1ce}.sidebar-note{color:#806c5d;border-color:#e5d4bd}
.heading h1,.section-heading h2,.panel h2,.hero h1{font-family:Georgia,"Iowan Old Style",serif;letter-spacing:-.035em}
.heading h1{color:#3b3329}.heading p,.small-note{color:#807062}.heading-icon{color:#98572b;border-color:#ebd6bc;background:#fff6e8}
.hero{position:relative;overflow:hidden;background:linear-gradient(132deg,#cf7846 0%,#ba6a3c 53%,#a65d36 100%);border:1px solid #ae633a;box-shadow:0 22px 44px #9b60372b;color:#fff9ed}
.hero:before{content:"";position:absolute;right:-80px;top:-90px;width:235px;height:235px;border:1px solid #ffdfab55;border-radius:50%;box-shadow:0 0 0 30px #ffdfab1a,0 0 0 65px #ffdfab14;pointer-events:none}
.hero-kicker{color:#fff2cd}.hero h1{color:#fffbf0;line-height:1.08}.hero p{color:#fff0db}.hero-decoration{color:#ffe4b1;opacity:.13}
.btn-light{background:#fff5d9;color:#69412d;border:1px solid #fff3d2}.btn-light:hover{background:#fffaf0}
.btn-primary{background:#48684a;color:#fffaf0;box-shadow:0 8px 20px #41634230}.btn-primary:hover{background:#37573b}
.btn-outline{background:#fff9ef;color:#71543e;border:1px solid #dccab6}.btn-outline:hover{background:#f3e7d5}
.control-panel,.panel,.quick-panel,.metric-card,.summary>div,.meeting,.people-toolbar{background:#fffaf2;color:#3a3027;border:1px solid #eadbc8;box-shadow:0 8px 26px #684f350e}
.quick-panel>p,.quick-link small,.metric-card span:not(.metric-icon),.people-counter small,.person-info small,.form-section-head small,.preset-hint,.summary small,.role-preview{color:#827568}
.quick-link{border-color:#efe1d0;color:#3c3126}.quick-link:hover{background:#fcf2e5}.quick-icon,.metric-icon{color:#bb703f}
.connection-line{background:#edf3e9;border-color:#c4d5c0;color:#456a4c}.signal-dot{background:#5e9665;box-shadow:0 0 0 4px #d4e7d2}
.month-row input,input,select,textarea{background:#fffdf8;color:#3b3028;border:1px solid #dfcdb8}
.month-row label,.panel label,dialog label{color:#665044}
input:focus,select:focus,button:focus-visible{outline:3px solid #c88b53;outline-offset:2px}option{background:#fff8ec;color:#403329}
.workflow-label,.schedule-hint,.helper{color:#89745e}
.meeting-head{background:#fffaf2;color:#352d24}.meeting-head:hover{background:#fdf2e3}.meeting-meta b{color:#382f27}.meeting-meta span{color:#816f5c}.meeting-datebox{background:#efe0c8;color:#88572e}
.state{background:#f4e6d0;color:#926c34}.state.published{background:#e0eddc;color:#4a744f}
.meeting-body{border-color:#e6d7c7}.group-title.treasures{background:#697973}.group-title.ministry{background:#be8a43}.group-title.living{background:#9a624f}
.slot{border-top-color:#eee0cf}.slot-time,.slot-person{color:#80705d}.slot-title{color:#3d3027}.slot.unfilled{background:#fff4e9}.slot.unfilled .slot-person{color:#a85d3a}
.slot button,.person-edit{background:#f8ecda;color:#745033;border:1px solid #dec8ac}.slot button:hover,.person-edit:hover{background:#f0dfc5}
.people-filter label,.form-section-head strong{color:#725940}.preset-hint,.active-toggle{background:#f5ecd9;color:#786855}.roles .role-item{background:#faf2e4;color:#57483b;border:1px solid #e8d7c2}.role-item:has(input:checked){background:#e8efdd;border-color:#9fbb98}.role-item input,.active-toggle input{accent-color:#537a55}
.person-card{border-bottom-color:#eee0d0}.avatar{background:linear-gradient(145deg,#e5b87b,#cd8151);color:#fffaf0}.category-chip,.count-badge{background:#e6eadc;color:#5e764d}.placeholder{background:#fff9ed;color:#8d7965;border-color:#ddc6ad}
.notice{background:#edf3e7;color:#456847;border-color:#c5d7bd}.notice.error{background:#fff1e9;color:#9e4d39;border-color:#edcabd}
.icon-button{background:#f5e8d4;color:#695039}
.activation{background:radial-gradient(ellipse at 15% 6%,#f2d8a5 0,transparent 50%),linear-gradient(155deg,#f8f0e4,#eaddc8)}.activation-card{background:#fffaf3;color:#342d25;border:1px solid #eddbc4;box-shadow:0 27px 65px #75563b26}.activation-card small{color:#a36537}.activation-card p{color:#796b5b}.activation-card input{background:#fffcf7;color:#44372b;border-color:#dfc7ab}
dialog{background:#fffaf2;color:#3f3328;border-color:#e7d4bc;box-shadow:0 28px 75px #49301e3d}dialog::backdrop{background:#33291e9c}
.bottom-nav{background:#fff9ed;border-top:1px solid #e7d9c4;box-shadow:0 -8px 28px #85624112}.bottom-tab{color:#877666}.bottom-tab.selected{background:#e7eedf;color:#446849}
.boot{background:radial-gradient(ellipse at 28% 20%,#dfb783 0%,transparent 45%),linear-gradient(155deg,#7c5940,#4d4434);color:#fff7e6}.boot-glow{background:radial-gradient(circle,#f8cf8988,transparent 65%)}.boot-calendar{background:#f7e5c5;border-color:#fff2d5;box-shadow:0 18px 35px #2b201d44}.boot-calendar:before{background:#d78a58;border-color:#fff2d5}.boot-calendar i{background:#bc7e53}.boot-check{background:#84ab78;border-color:#69543e;color:#fffdf0}.boot-eyebrow{color:#f6dbad}.boot-sub{color:#f1dcb9}.boot-line{background:#8d6c55}.boot-line span{background:#fbe2a7}.boot-skip{color:#fff1d9}
/* Helyi, kifejezetten fiktív tesztadatok betöltése. */
.demo-panel{display:flex;align-items:center;gap:13px;padding:16px 18px;margin:14px 0;border-radius:19px;background:linear-gradient(118deg,#eceddb,#f8f0d8);border:1px solid #d7d9b9;box-shadow:0 6px 20px #6c703514}
.demo-symbol{flex:0 0 auto;display:grid;place-items:center;width:50px;height:50px;border-radius:16px;font-size:27px;color:#637d4c;background:#dde4c4}
.demo-copy{display:grid;gap:4px;flex:1;min-width:0}.demo-copy strong{font-family:Georgia,serif;font-size:18px;color:#46583b}.demo-copy span{font-size:12px;line-height:1.48;color:#6a745b}.btn-demo{background:#54734a;color:#fffaf0;flex:0 0 auto}.btn-demo:hover{background:#405c39}
@media(max-width:600px){
 .content{padding:15px 14px calc(110px + env(safe-area-inset-bottom))}.hero{padding:26px 21px 22px;border-radius:22px}.hero h1{font-size:32px}.metric-card{background:#fffaf1}.meeting-head{gap:8px}.bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.demo-panel{display:grid;grid-template-columns:47px 1fr;gap:10px;padding:14px}.demo-symbol{width:43px;height:43px;font-size:24px}.demo-copy strong{font-size:16px}.demo-panel .btn-demo{grid-column:1/-1;width:100%;min-height:47px}.people-toolbar{background:#fffaf2}.meeting-meta b{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.hero:before{box-shadow:none}}

/* v1.4 — S-140-szerű mobil szerkesztő */
.s140-card{overflow:visible}.s140-body{padding:5px 0 12px}.s140-sheet{overflow-x:auto;overscroll-behavior-x:contain;padding:0 7px 8px;scrollbar-width:thin}.s140-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:0;background:#fffdf8;color:#322c25;font-size:12px}.s140-table td{border:1px solid #baa995;vertical-align:middle;padding:8px 6px}.s140-time{width:54px;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.s140-title{width:44%;font-weight:650;overflow-wrap:anywhere;line-height:1.45}.s140-person{width:49%}.s140-section td{font-size:11px;color:#fff;font-weight:800;letter-spacing:.02em;padding:8px}.s140-section.treasures td{background:#667874}.s140-section.ministry td{background:#bb883b}.s140-section.living td{background:#995f4c}.s140-person-control{display:flex;flex-direction:column;gap:3px;min-width:0}.s140-person-control>span{font-size:10px;font-weight:750;color:#6a5747}.s140-select{display:block;width:100%;max-width:100%;min-width:0;padding:9px 4px;font-size:12px;border:1px solid #d6c4af;background:#fffefb;border-radius:8px;color:#322b24}.s140-pair{display:grid;grid-template-columns:1fr 1fr;gap:5px}.s140-pair .s140-select{font-size:11px}.s140-title-edit{display:block;background:transparent;border:0;text-decoration:underline;color:#876346;font-size:10px;padding:4px 0 0;text-align:left}.review-warning{display:block;color:#975b35;font-weight:600;margin-top:3px}.program-warning{padding:16px;line-height:1.6;color:#865a3a}.preset-card{background:#fff8ec;border:1px solid #e7d3ba;border-radius:12px;margin:9px 0;padding:10px}.preset-card summary{font-weight:750;cursor:pointer;padding:7px}.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:9px}.preset-grid .role-item{min-width:0}.preset-panel #presetCategory{width:100%;margin:8px 0 12px}.btn-danger{background:#fcf0e9;border:1px solid #ba785e;color:#9b3c28;margin-top:9px}
@media(max-width:600px){.s140-sheet{padding:0 3px 10px}.s140-table{font-size:11px}.s140-table td{padding:7px 4px}.s140-time{width:43px;font-size:10px}.s140-title{width:39%;font-size:11px}.s140-person{width:53%}.s140-select{padding:8px 2px;font-size:11px}.s140-pair{gap:3px}.s140-pair .s140-select{font-size:10px}.s140-person-control>span{font-size:9px}.preset-grid{grid-template-columns:1fr 1fr}.s140-title-edit{font-size:10px}}
@media(max-width:360px){.s140-title{width:35%}.s140-person{width:57%}.s140-select{font-size:10px}.s140-pair{grid-template-columns:1fr;gap:5px}}

@media(max-width:360px){.s140-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.s140-pair .s140-select{font-size:9px;letter-spacing:-.02em}.s140-person{width:57%}}
/* v1.9 – programszakaszok szerint csoportosított helyi jogosultságok */
.role-group-title{grid-column:1/-1;font-size:12px;line-height:1.4;margin:13px 0 3px;padding:11px 9px 7px;border-bottom:1px solid #dbc6a9;color:#73523d;font-weight:850;letter-spacing:.015em}
.roles .role-group-title:first-child,.preset-grid .role-group-title:first-child{margin-top:0}
.role-item{align-items:center}
@media(max-width:500px){.preset-grid,.roles{grid-template-columns:1fr}.role-group-title{margin-top:12px}}

/* v2.0 – részletes programtípusok, mobilbarát engedélyező panelek */
.permission-family{margin:1rem 0 1.4rem;padding:.4rem 0;border-top:1px solid rgba(110,99,70,.18)}
.permission-family .role-group-title{margin:.75rem 0 1rem;font-size:1rem;color:var(--ink,#44382a)}
.permission-task{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;min-height:3.4rem;padding:.75rem .3rem;border-bottom:1px solid rgba(115,103,77,.12)}
.permission-task-title{flex:1 1 160px;font-size:.9rem;line-height:1.4}
.permission-task-checks{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.task-role-item{display:inline-flex;align-items:center;gap:.4rem;padding:.48rem .65rem;min-height:42px;white-space:nowrap;border-radius:10px;background:rgba(239,226,204,.45)}
.task-role-item input{width:19px;height:19px;accent-color:#67835e}
@media(max-width:420px){.permission-task{display:block}.permission-task-checks{margin-top:.6rem}.task-role-item{flex:1 1 auto}.permission-task-title{display:block}}

/* v2.1 — helyi éves műszak- és távollétkezelő */
.person-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.person-actions .person-edit{white-space:normal;min-height:42px}
.availability-action{background:#e8efdb;color:#4a6940;border-color:#c3d3b5}
.manual-person-check{border-radius:12px;background:#fff6e8;border:1px solid #e6d2b8;margin-top:14px;padding:10px 12px}
.manual-person-check label{margin-top:0!important}
.manual-person-check input{margin-top:6px}
.manual-person-check small{display:block;margin-top:6px;font-size:11px;color:#80674f;line-height:1.5}
.availability-hint{color:#7d705f;font-size:12px;line-height:1.55;margin:.4rem 0}
.availability-dialog{width:min(96vw,790px);max-width:790px;max-height:min(94dvh,1020px);padding:0;overflow:hidden;border:1px solid #decab1;border-radius:22px;background:#fffaf0;color:#3b3127;box-shadow:0 28px 80px #35291c66}
.availability-dialog::backdrop{background:rgba(43,34,24,.64)}
.availability-modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:21px 22px 14px;background:linear-gradient(125deg,#fff4dd,#f4e6ce);border-bottom:1px solid #e6d2b7}
.availability-modal-head small{font-size:10px;letter-spacing:.1em;font-weight:800;color:#8b6947}
.availability-modal-head h2{margin:5px 0;font:700 clamp(21px,4vw,27px)/1.15 Georgia,serif;color:#493b2b}
.availability-modal-head p{margin:3px 0 0;color:#81705d;font-size:13px}
.availability-modal-scroll{max-height:calc(min(94dvh,1020px) - 172px);overflow-y:auto;padding:17px 20px;overscroll-behavior:contain}
.availability-box{background:#fffef8;border:1px solid #eadcc8;border-radius:17px;padding:17px;margin-bottom:15px}
.availability-box h3{margin:0 0 9px;font-size:16px;color:#654d37}
.availability-box h4{font-size:13px;margin:18px 0 10px}
.availability-box label{display:block;font-size:12px;font-weight:750;color:#66513d;margin-top:11px;margin-bottom:5px}
.availability-box select,.availability-box input{width:100%;min-width:0;margin:0;min-height:43px}
.availability-box .actions{margin-top:10px}
.availability-box .btn{font-size:12px;padding:10px 13px}
.availability-box .actions .btn{width:auto}
.shift-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.shift-day-row{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid #ebdcc9;background:#fcf6ea;border-radius:10px;padding:7px}
.shift-day-index{font-size:12px;font-weight:650;min-width:60px;color:#674f38}
.shift-day-row select{font-size:12px;flex:1;max-width:100%;padding:7px;min-height:37px}
.shift-remove{color:#89533b;background:#fff7ed;border:1px solid #dbbca0;padding:7px 11px;border-radius:9px;min-height:38px;font-size:12px;font-weight:700}
.blocked-shifts{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.blocked-shifts .block-shift{background:#faf3e8;border:1px solid #ecdec9;border-radius:10px;margin:0;padding:10px;display:flex;align-items:center;gap:7px;font-weight:650}
.block-shift input{width:18px;height:18px;min-height:0;accent-color:#67815b}
.absence-range{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.absence-item{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e9dfd3;padding:9px 0;font-size:12px}
.availability-year{display:flex;align-items:center;gap:10px;margin:8px 0}.availability-year label{margin:0}.availability-year input{width:110px}
.year-summary{font-weight:700;font-size:13px;color:#527147;background:#eff5e6;border:1px solid #d9e6cb;border-radius:12px;padding:12px}
.availability-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#776957;margin:12px 0}
.availability-legend span:nth-child(1){color:#638053}.availability-legend span:nth-child(2){color:#b26342}
.availability-calendar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.month-tile{min-width:0;border:1px solid #e7d8c5;border-radius:12px;overflow:hidden;background:#fffdf7}
.month-tile-head{width:100%;border:0;display:flex;gap:5px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:12px 10px;text-align:left;background:#f7ecdb;color:#5f4833}
.month-tile-head strong{font-size:13px}.month-tile-head span{font-size:11px;color:#a06743}
.month-day-grid{padding:10px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.day-header,.day-spacer{text-align:center;color:#8a7864;font-size:9px;padding:4px 0}
.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:38px;padding:3px 0;color:#426d45;background:#edf4e5;border:1px solid #d4e3cc;border-radius:8px}
.calendar-day strong{font-size:10px}.calendar-day span{font-size:10px}
.calendar-day.unavailable{background:#fbe6da;color:#a55738;border-color:#efc4aa}
.calendar-day.overridden{outline:2px solid #9d773e;outline-offset:-2px}
.calendar-day:focus-visible{outline:3px solid #815d32}
.availability-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:13px 18px;border-top:1px solid #e5d5c0;background:#fff7ea}
@media(max-width:600px){
 .person-actions{flex-direction:row;flex-wrap:wrap}.person-actions .person-edit{flex:1;min-width:100px}
 .availability-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 22px);border-radius:18px}
 .availability-modal-head{padding:17px 16px 12px}
 .availability-modal-scroll{padding:11px 12px;max-height:calc(100dvh - 165px)}
 .availability-box{padding:13px}
 .shift-days,.availability-calendar{grid-template-columns:1fr}
 .availability-box .actions{display:flex}.availability-box .actions .btn{width:auto;flex:1}
 .absence-range{grid-template-columns:1fr 1fr;gap:8px}
 .availability-footer{padding:10px 12px}
 .availability-footer .btn{flex:1;min-width:0;padding:11px 8px}
}


/* v2.1: visszakereshető helyi személyes történetek */
.person-history-panel,.availability-history-box{margin-top:18px;padding:16px;border-radius:18px;background:rgba(110,100,72,.06);border:1px solid rgba(100,75,48,.15)}
.person-history-panel h3,.availability-history-box h3{font-size:1.06rem;margin:0 0 8px}
.history-entries{display:grid;gap:8px;margin-top:10px;max-height:320px;overflow:auto;overscroll-behavior:contain}
.history-entry{padding:11px 12px;border:1px solid rgba(93,76,51,.15);border-radius:12px;background:var(--surface,#fffaf2);min-width:0}
.history-entry-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px;font-size:.86rem}
.history-tag{font-size:.7rem;border-radius:16px;background:rgba(104,125,78,.18);padding:3px 9px;white-space:nowrap}
.history-tag.calculated{background:rgba(177,130,72,.17)}
.history-entry-title{font-size:.9rem;margin-top:5px;overflow-wrap:anywhere}
.history-entry-source{display:block;opacity:.76;margin-top:3px;font-size:.72rem}
.history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.history-filters label{display:grid;gap:4px;font-size:.82rem;min-width:0}
.history-filters select{width:100%;min-width:0}
.s140-selection-history{display:block;font-size:.7rem;line-height:1.35;color:var(--ink-light,#776b60);overflow-wrap:anywhere;max-width:100%;margin-top:5px}
@media(max-width:385px){.history-filters{grid-template-columns:1fr}}

/* v2.1: a kézi hozzárendelés mentési visszajelzése a névmező alatt */
.s140-save-result{display:block;color:#466b4d;font-size:.7rem;line-height:1.25;margin-top:3px;min-height:.6em}
.s140-save-result.review-warning{color:#985029}

/* v2.2 – átlátható mobilos beosztásszerkesztő és saját S-140 előnézet */
.meeting-preview-title{display:block!important;font-size:13px!important;font-weight:650;color:#60544a!important;line-height:1.5!important;white-space:normal;overflow-wrap:anywhere}
.meeting-head .meeting-meta{min-width:0;flex:1}
.s140-program-name{display:block;color:#292b2a;font-size:14px;font-weight:850;line-height:1.5;overflow-wrap:anywhere}
.s140-week-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#f7f1e6;border-bottom:1px solid #e4d6c3}
.s140-week-summary{font-size:12px;color:#655f59;font-weight:750}
.s140-week-preview{min-height:36px;padding:7px 12px;font-size:12px}
.s140-choose{position:relative;display:block;width:100%;min-height:44px;border:1px solid #cbb5a0;border-radius:10px;text-align:left;padding:10px 28px 10px 11px;background:#fffdf8;color:#825840;font-size:13px;font-weight:750;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.s140-choose.is-assigned{color:#292b2a;background:#fff;border-color:#b7c2ad}
.s140-choose:after{content:'⌄';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:18px;color:#857367}
.s140-choose:disabled{opacity:.8}
.s140-role-label{font-size:12px!important;color:#5c504a!important;font-weight:800!important;line-height:1.4}
.s140-selection-history{font-size:11px;color:#716358;line-height:1.45;overflow-wrap:anywhere}
.s140-title-edit{margin-top:6px!important;font-size:12px!important;font-weight:750!important;text-decoration:underline}
.s140-line .s140-title,.s140-line .s140-person{min-width:0}
.candidate-dialog,.s140-preview-dialog{border:1px solid #d8cabb;border-radius:20px;box-shadow:0 30px 90px #2b1f1780;background:#fffdfa;color:#302b25;padding:0;max-height:calc(100dvh - 30px);margin:auto}
.candidate-dialog::backdrop,.s140-preview-dialog::backdrop{background:#261b19aa;backdrop-filter:blur(3px)}
.candidate-dialog{width:min(560px,calc(100vw - 22px));overflow:auto}
.candidate-dialog-header,.preview-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:20px 20px 12px;border-bottom:1px solid #e9e0d7}
.candidate-dialog-header small,.preview-dialog-head small{font-size:10px;font-weight:850;letter-spacing:.10em;color:#9c775d}
.candidate-dialog-header h2,.preview-dialog-head h2{font-size:21px;margin:5px 0;line-height:1.25}
.candidate-dialog-header p,.preview-dialog-head p{font-size:13px;line-height:1.45;margin:5px 0;color:#57504b;overflow-wrap:anywhere}
.candidate-search,.candidate-check{padding:13px 20px}.candidate-search label,.candidate-check label{display:block;font-size:12px;font-weight:800;color:#564a43;margin-bottom:6px}
.candidate-search input,.candidate-check input{display:block;width:100%;margin:0}
.candidate-list{padding:0 14px;max-height:min(50dvh,520px);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:9px}
.candidate-choice{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:3px;background:#fff;border:1px solid #e2d4c4;border-radius:12px;padding:12px 14px;width:100%}
.candidate-choice:focus-visible,.candidate-choice:hover{border-color:#98694e;background:#faf5eb}
.candidate-choice.candidate-selected{border-color:#778e71;background:#f4f8f0}
.candidate-name{font-size:15px;color:#2e2b27}.candidate-last{font-size:12px;color:#5f584e;font-weight:650}
.candidate-student,.candidate-frequency{font-size:11px;color:#726c65;line-height:1.45}
.candidate-empty,.candidate-current{padding:12px;color:#715947;font-size:13px;line-height:1.5}
.candidate-check{border-top:1px solid #eee5d9}.candidate-check p{font-size:12px;font-weight:700;color:#8b3b2d;min-height:12px;margin:8px 0}
.candidate-dialog-footer,.preview-dialog-footer{position:sticky;bottom:0;padding:13px 16px;display:flex;gap:10px;justify-content:flex-end;background:#fffcf8;border-top:1px solid #e9e0d7;z-index:1}
.s140-preview-dialog{width:min(1040px,calc(100vw - 16px));overflow:hidden;display:flex;flex-direction:column}
.s140-preview-dialog:not([open]){display:none}
.preview-dialog-head,.preview-dialog-footer{flex-shrink:0}
.preview-pages{background:#eee9e2;overflow:auto;overscroll-behavior:contain;min-height:0;padding:18px;flex:1}
.preview-a4{background:white;color:#222;margin:0 auto 18px;padding:35px 32px;width:794px;min-height:1123px;box-shadow:0 3px 18px #392c1b25;font:12px Arial,sans-serif}
.preview-page-head{display:flex;justify-content:space-between;gap:10px;border-bottom:3px double #444;padding:5px 2px;margin-bottom:13px;align-items:center}
.preview-page-head span{font-size:11px}.preview-page-head strong{font-size:16px}
.preview-s140-table{width:100%;border-collapse:collapse;table-layout:fixed;margin-bottom:20px}
.preview-s140-table td{border:1px solid #333;padding:5px 6px;min-height:19px;vertical-align:middle;overflow-wrap:anywhere}
.preview-s140-table td:first-child{width:20%}.preview-s140-table td:nth-child(2){width:48%}.preview-s140-table td:nth-child(3){width:32%}
.preview-treasures td{background:#64717b;color:white;font-weight:700}.preview-ministry td{background:#bb8a36;color:white;font-weight:700}.preview-living td{background:#922e46;color:white;font-weight:700}.preview-head td{background:#eee;font-weight:700}
@media(max-width:760px){
 .meeting-head{padding:15px 12px}.meeting-preview-title{font-size:12px!important}
 .s140-sheet{overflow:visible;padding:0 9px 10px}.s140-table,.s140-table tbody{display:block;width:100%;background:transparent;table-layout:auto}
 .s140-table tr.s140-section{display:block;margin:16px 0 0}.s140-table tr.s140-section:first-child{margin-top:0}
 .s140-table tr.s140-section td{display:block;width:100%;font-size:12px;padding:10px 12px;border-radius:8px 8px 0 0}
 .s140-table tr.s140-line{display:grid;grid-template-columns:65px minmax(0,1fr);gap:0;border:1px solid #ded2c2;border-top:0;background:#fffcf7;margin-bottom:9px;border-radius:0 0 9px 9px;overflow:hidden}
 .s140-table tr.s140-line td{display:block;width:auto!important;box-sizing:border-box;border:0!important;padding:12px}
 .s140-line .s140-time{grid-column:1;grid-row:1;background:#f5ede2;color:#5d4d41;font-size:12px;font-weight:850;padding-top:16px!important}
 .s140-line .s140-title{grid-column:2;grid-row:1;font-size:14px;padding:11px 12px!important;background:#fffdfa}
 .s140-line .s140-person{grid-column:1 / -1;grid-row:2;background:#faf6f0;border-top:1px solid #e5d9cc!important}
 .s140-program-name{font-size:15px;line-height:1.5;color:#292623}
 .s140-choose{font-size:14px;min-height:48px;padding:12px 34px 12px 12px}
 .s140-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .s140-person-control{gap:6px}
 .s140-week-tools{padding:10px 12px}
 .preview-pages{padding:10px}
}
@media(max-width:460px){
 .s140-pair{grid-template-columns:1fr;gap:10px}
 .candidate-dialog-header,.preview-dialog-head{padding:15px 14px 10px}
 .candidate-search,.candidate-check{padding:10px 14px}
 .candidate-list{padding:0 10px}
 .candidate-dialog-footer,.preview-dialog-footer{padding:10px}
 .candidate-dialog-footer .btn,.preview-dialog-footer .btn{padding:10px 12px;font-size:12px}
}

/* v2.3 – egységes meleg színrendszer, átlátható jogosultságok, többhetes munkarend. */
:root{--ink:#342b23;--ink-light:#695646;--muted:#705f50;--accent:#a15b37;--stroke:#dfcbb4;--page:#f5ecdc;--card:#fffaf2;--soft:#f4e8d7}
body{color:var(--ink)}a{color:#895031}a:hover{color:#6d3e24}
.sidebar .navitem{color:#655344;background:transparent;box-shadow:none}
.sidebar .navitem.selected{background:#ead9c1;color:#70432b;box-shadow:inset 4px 0 #bd784b}
.sidebar .navitem:hover:not(.selected){background:#f1e4d2;color:#593f2d}
.bottom-nav .bottom-tab{color:#665546}.bottom-nav .bottom-tab.selected{background:#e3eddb;color:#375c3c}
.panel h2,.panel h3,.heading h1,.heading h2,.form-section-head strong,.permission-task-title{color:#372b22}
.small-note,.heading p,.availability-hint,.preset-hint,.role-preview,.form-section-head small{color:#665648}
label,.field-label{color:#514031}input,select,textarea{color:#382c23}
.permission-family .role-group-title,.role-group-title{color:#5b3826!important;background:transparent;font-size:15px;font-weight:850;line-height:1.4;letter-spacing:0}
.permission-task-title{font-size:13px;line-height:1.5;font-weight:750}
.permission-task{border-bottom-color:#eadbca}
.task-role-item{background:#f6ecde;border:1px solid #decab6;color:#594633;font-weight:750;box-shadow:none;min-height:40px}
.task-role-item:has(input:checked),.role-item.task-role-item:has(input:checked){background:#e6eedf;border-color:#aac6a0;color:#38573b}
.task-role-item input{accent-color:#55794d;width:18px;height:18px;min-height:0;margin:0}
.preset-hint,.active-toggle{background:#f6ead7;color:#5e4d3c}
.preset-panel{max-width:100%}
.settings-card-heading{display:flex;gap:13px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid #e8d6c0}
.settings-card-heading h2{margin:0 0 6px}.settings-card-heading p{margin:0}
.settings-step{flex:none;background:#e7efdb;color:#496943;display:grid;place-items:center;font-size:12px;font-weight:900;min-width:38px;height:38px;border-radius:12px}
.preset-tabs{display:flex;gap:8px;margin:17px 0 16px;padding:1px 2px 9px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d3ae8e transparent;overscroll-behavior-x:contain}
.preset-tab{flex:0 0 auto;border:1px solid #dac5aa;border-radius:12px;background:#fffaf1;color:#5d4d3d;min-height:43px;padding:9px 14px;font-weight:750;font-size:13px;line-height:1.2;white-space:nowrap}
.preset-tab.active{border-color:#af744a;background:#a7643e;color:#fffaf2;box-shadow:0 4px 10px #ae744536}
.preset-tab:hover:not(.active){background:#f2e4ce}
.preset-active{border:1px solid #e6d4bd;background:#fdf9f2;border-radius:16px;padding:17px}
.preset-active-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:13px;border-bottom:1px solid #e4d1ba}
.preset-active-heading h3{font:700 20px/1.25 Georgia,serif;margin:0;color:#3e3025}
.preset-counter{border-radius:99px;background:#e7eddb;color:#4b6942;font-size:11px;font-weight:850;padding:7px 11px;white-space:nowrap}
#presetEditor .preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding-top:15px;align-items:start}
#presetEditor .permission-family{margin:0;border:1px solid #e9d7c0;border-radius:14px;background:#fffdf8;min-width:0;padding:16px 15px}
#presetEditor .permission-family .role-group-title{margin:0 0 8px;padding:0 0 11px;border-bottom:2px solid #d7b18d}
#presetEditor .permission-task{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:11px 0;min-height:56px}
#presetEditor .permission-task:last-child{border-bottom:0}
#presetEditor .permission-task-checks{gap:6px}
#presetEditor .task-role-item{font-size:11px;padding:8px 9px;white-space:normal;gap:5px}
.preset-apply{margin-top:20px;padding:17px;border:1px dashed #cda885;border-radius:15px;background:#f8efdf}
.preset-apply h3{font-size:16px;margin:0 0 5px;font-family:Georgia,serif;color:#533b2c}
.preset-apply p{margin:0 0 12px}
.preset-apply label{font-size:13px;font-weight:750}
.preset-panel #presetCategory{margin:7px 0 12px}
#page-settings>.panel{margin-bottom:15px}
#page-settings>.panel>h2{margin-bottom:9px}
/* Az 1–8 hetes minta átlátható kártyákban; a 2 hét egyszerre szerkeszthető. */
.shift-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.shift-config-grid>label{display:flex;flex-direction:column;gap:5px;margin:0!important;min-width:0}
.shift-config-grid select,.shift-config-grid input{display:block;width:100%;margin:0;min-width:0;font-size:14px}
.shift-week-patterns{display:grid;gap:10px;margin-top:12px}
.shift-week-card{border:1px solid #e4ceb0;border-radius:13px;background:#fffbf4;overflow:hidden}
.shift-week-summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 15px;font-size:14px;color:#473429;background:#f2e6d4;list-style-position:inside}
.shift-week-summary strong{font-size:14px;color:#533923}
.shift-week-summary span{font-size:11px;color:#73604b;font-weight:650}
.shift-week-card[open] .shift-week-summary{background:#e6edda;border-bottom:1px solid #d2deca}
.shift-week-card>.shift-days{padding:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:8px}
.shift-day-row{background:#fffdf7;min-width:0}
.shift-day-row select{color:#403125;background:#fffdf9}
@media(max-width:950px){#presetEditor .preset-grid{grid-template-columns:1fr}}
@media(max-width:600px){
 .settings-card-heading{gap:9px}.settings-step{min-width:32px;height:32px}
 .preset-active{padding:11px}.preset-active-heading h3{font-size:18px}
 #presetEditor .preset-grid{grid-template-columns:1fr;gap:10px}
 #presetEditor .permission-family{padding:14px 12px}
 #presetEditor .permission-task{min-height:60px;padding:10px 0}
 #presetEditor .permission-task-title{flex:1 1 150px;font-size:13px}
 #presetEditor .permission-task-checks{width:auto;min-width:0}
 .preset-tab{min-height:45px;padding:9px 13px}
 .preset-apply{padding:14px}
 .shift-config-grid{grid-template-columns:1fr}
 .shift-week-card>.shift-days{grid-template-columns:1fr}
 .shift-week-summary{padding:14px 12px}
}

/* Legyen minden jogosultság neve és a kapcsolók felirata kényelmesen olvasható. */
#presetEditor .permission-task-title{font-size:14px}
#presetEditor .task-role-item{font-size:12px;min-height:42px}
.preset-tab{font-size:14px}

/* v2.4 – végleges, egyforrású meleg témaszínek. Nincs kék-sötét örökség. */
:root {color-scheme: light;--ink:#352b23;--ink-light:#574536;--muted:#625143;--accent:#a45f39;--stroke:#dfcbb4;--page:#f5ecdc;--card:#fffaf2;--soft:#f2e6d4}
body, .app, .content {color:var(--ink)}
.sidebar .navitem,.bottom-nav .bottom-tab {color:#574536}
.sidebar .navitem.selected {background:#efe0cc;color:#654027;border-left:3px solid #b76d41;box-shadow:none}
.sidebar .navitem:not(.selected):hover {background:#f2e5d2;color:#543729}
.nav-icon {color:inherit}
.metric-icon,.quick-icon {background:#f3e1cd;color:#99552e;border:1px solid #e8c9a8}
.quick-panel h2,.quick-panel b,.section-heading h2,.form-heading h2,
.panel h2,.panel h3,.heading h1,.person-name-line b,.people-counter strong,
#page-people h2,.permission-family .role-group-title,.role-group-title,
.quick-link b,.preset-active-heading h3 {color:#392b21}
.quick-panel>p,.quick-link small,.person-info small,.person-row small,.role-preview,
.form-section-head small,.summary small,.metric-card span:not(.metric-icon),
.sidebar-note,.sidebar-note span,.small-note,footer {color:#6d5948}
.quick-link {color:#392b21;border-color:#e7d7c4}
.quick-link:hover {background:#f8eddf}
.quick-arrow {color:#98613f}
.bottom-nav .bottom-tab.selected {background:#e8efdf;color:#3c613e}
.pill {background:#f1e4cf;color:#684b34;border-color:#e6ceb0}
.hero .hero-kicker {color:#fff1d9}
.hero h1 {color:#fffaf0}
.hero p {color:#fff2dd}
.section-label,.eyebrow,.brand small {color:#935733}
.person-form-panel .permission-task-title,#roleOptions .permission-task-title {color:#392b21}
#roleOptions .permission-family .role-group-title {color:#543821}
#presetEditor .permission-family .role-group-title {color:#543821!important}
#presetEditor .permission-task-title {color:#392b21}
#presetEditor .permission-family {background:#fffdf8}
#presetEditor .task-role-item {color:#47372a;background:#f9efe2}
button { -webkit-tap-highlight-color:rgba(178,110,62,.15); }
button:focus-visible,summary:focus-visible {outline:3px solid #ad673c;outline-offset:2px}
/* Az összejövetel natív <details>/<summary> elem: iOS/Android érintésre megbízható. */
.meeting.s140-card {display:block;overflow:visible}
.meeting-head {display:flex;width:100%;min-height:66px;align-items:center;list-style:none;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.meeting-head::-webkit-details-marker{display:none}
.meeting-head::marker{content:""}
.meeting-head .meeting-meta {pointer-events:none}
.meeting-head .meeting-datebox,.meeting-head .meeting-head-right {pointer-events:none}
.meeting[open]>.meeting-head {border-bottom:1px solid #dfcbb4;background:#f6e9d8}
.meeting[open]>.meeting-head .chevron{transform:rotate(180deg)}
.meeting>.meeting-body {display:block}
.s140-choose {touch-action:manipulation;pointer-events:auto;cursor:pointer;position:relative;z-index:1}
.s140-sheet {isolation:isolate}
.candidate-dialog {z-index:1000;overscroll-behavior:contain}
.candidate-choice {min-height:57px;touch-action:manipulation;cursor:pointer}
.candidate-list {position:relative;z-index:1;-webkit-overflow-scrolling:touch}
@media(max-width:760px){
 .s140-sheet {overflow:visible!important;touch-action:pan-y}
 .s140-choose {min-height:54px;font-size:15px}
 .candidate-dialog {width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .candidate-dialog .candidate-list {max-height:48dvh}
 .meeting-head {min-height:76px;padding:13px 12px}
}
@media(max-width:420px){
 .meeting-meta b{font-size:14px}.meeting-meta span{font-size:12px!important}
 .candidate-dialog-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}

/* Saját döntéssel induló PWA-frissítés; adatvesztést nem okoz. */
.pwa-update-banner {position:fixed;z-index:10020;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(700px,calc(100vw - 28px));padding:15px 17px;background:#fff8ed;color:#3f2f23;border:2px solid #ae744e;border-radius:16px;box-shadow:0 15px 55px #35291b50;font-size:14px;font-weight:750;line-height:1.4}
.pwa-update-actions {display:flex;flex:0 0 auto;gap:8px}
.pwa-update-actions .btn{min-height:43px;padding:10px 13px}
@media(max-width:620px){.pwa-update-banner{flex-direction:column;align-items:stretch;gap:10px;bottom:calc(78px + env(safe-area-inset-bottom))}.pwa-update-actions .btn{flex:1}}
