@charset "UTF-8";
:root{--ink:#213d37;--muted:#74817a;--green:#26634d;--line:#e3e9e1;--paper:#f5f6f0;--pale:#edf3e9;--white:#fff;--gold:#d9bd76}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c29b41;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--line);padding:38px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:30px;font-weight:700;letter-spacing:-1.4px}.brand-icon{display:grid;place-items:center;background:var(--green);color:var(--gold);width:43px;height:48px;border-radius:13px;font-size:32px}.brand small{display:block;font-size:8px;letter-spacing:1.25px;font-weight:600;color:var(--muted);margin-top:0}.nav-label{font-size:10px;color:#8a958e;letter-spacing:1.5px;margin:55px 12px 16px}nav{display:grid;gap:8px}nav a{display:flex;align-items:center;gap:14px;padding:13px 15px;border-radius:8px;color:#6a7971;font-weight:600}nav a span{font-size:21px;line-height:1}nav a.active{background:var(--pale);color:var(--green)}nav a:hover{background:#f4f6f1}.sidebar-footer{margin-top:auto;font-size:11px;color:#6b7e70;border-top:1px solid var(--line);padding-top:22px}.sidebar-footer small{display:block;color:#9aa39d;margin-top:6px;font-size:10px}.status-dot{display:inline-block;background:#67a17b;width:6px;height:6px;border-radius:50%;margin-right:5px}main{margin-left:244px;padding:40px 46px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7d8d7c;margin-bottom:8px}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;margin:0 0 10px;font-weight:650}p{margin:0;color:var(--muted)}.header-badge{background:#edeedc;border:1px solid #e2e4cb;padding:8px 13px;border-radius:24px;color:#727745;font-size:11px;white-space:nowrap}h2{font-size:18px;font-weight:650;letter-spacing:-.3px;margin:0}h3{font-size:16px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.stat>span{font-size:12px;color:#718074;display:block}.stat strong{font-weight:600;font-size:36px;display:block;line-height:1.5;letter-spacing:-1px}.stat small{font-size:10px;color:#8a958b}.stat.accent{background:#eaf0e2;border-color:#dce5d2}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:25px;margin-bottom:25px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.section-head p{font-size:12px;margin-top:5px}.tag{font-size:9px;letter-spacing:1.3px;color:#879480;white-space:nowrap}.period-form{display:flex;align-items:end;gap:14px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:22px}label{display:block;font-size:12px;font-weight:600}input:not([type=checkbox]),select{display:block;border:1px solid #dce3d9;background:#fafbf8;border-radius:7px;padding:11px 12px;width:100%;color:var(--ink);margin-top:7px;min-height:43px}select{min-width:205px}.period-form input{max-width:120px}button{border:0;border-radius:7px;padding:12px 18px;background:var(--green);color:#fff;font-size:12px;font-weight:600;cursor:pointer;display:inline-flex;justify-content:space-between;align-items:center;gap:25px;min-height:43px}button:hover{filter:brightness(.94)}button:disabled{opacity:.65;cursor:wait}.secondary{background:#fff;color:var(--ink);border:1px solid #dce3d9}.generator fieldset{border:0;padding:0;margin:0}.generator legend{font-size:12px;font-weight:600;margin-bottom:11px}.weekdays{display:flex;gap:8px;flex-wrap:wrap}.weekdays label{cursor:pointer;position:relative}.weekdays input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.weekdays span{display:block;padding:9px 21px;border:1px solid #e2e6df;border-radius:7px;color:#839080;font-weight:500}.weekdays input:checked+span{background:#e8f0e3;border-color:#a6bea0;color:#315e3c;font-weight:650}.weekdays input:focus-visible+span{outline:3px solid #c29b41;outline-offset:2px}.generate-row{display:flex;align-items:center;justify-content:space-between;margin-top:24px;gap:18px}.hint{font-size:11px;line-height:1.7}.check{display:flex;align-items:center;gap:8px;font-weight:400}.check input{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}.replace{margin-top:10px;color:#89622c}.schedule .section-head{border-bottom:1px solid var(--line);padding-bottom:20px}.schedule .section-head h2{font-size:23px;white-space:nowrap}.schedule .section-head{flex-wrap:wrap}.schedule .section-head>div{max-width:100%;overflow-x:auto}.schedule .eyebrow{font-size:9px;letter-spacing:1.5px}.empty{text-align:center;padding:40px 20px 50px}.empty p{max-width:480px;margin:7px auto 0;font-size:13px}.empty h3{margin:15px 0 5px}.empty-icon{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--pale);color:#78986c;font-size:32px}.text-link{display:inline-block;color:var(--green);font-weight:600;margin-top:20px;font-size:12px}.pill{display:inline-block;font-size:10px;background:#eaf3e6;color:#507246;padding:4px 9px;border-radius:20px;white-space:nowrap}.pill.muted{color:#899084;background:#f0f2ec}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.service{border:1px solid var(--line);border-radius:10px;overflow:hidden;break-inside:avoid}.service-date{display:flex;align-items:center;gap:12px;padding:15px;background:#f6f8f2;border-bottom:1px solid var(--line)}.day-number{font-size:28px;font-weight:600;line-height:1.1;color:#426648}.service-date strong{display:block;font-size:12px}.service-date small{display:block;font-size:10px;color:#8c9888;margin-top:2px}.service-dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#a3b694}.door-team{padding:13px 16px}.door-team+.door-team{padding-top:0}.door-team h3{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;margin:0 0 10px;color:#8a977e}.door-team ul{padding:0;margin:0;list-style:none}.door-team li{display:flex;align-items:center;gap:9px;margin-top:9px}.door-team strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.door-team small{display:block;font-size:10px;color:#90998c}.person-dot{width:7px;height:7px;border-radius:50%;background:#dfE8d8;flex-shrink:0}.management{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.stack{display:grid;gap:19px}.step{font-size:11px;color:#91a087}.cancel{text-align:center;color:#788272;font-size:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:10px;letter-spacing:.4px;color:#87937f;font-weight:500;padding:10px 8px;background:#f8f9f5}td{padding:16px 8px;border-bottom:1px solid #eef0e9}td strong{font-weight:600;overflow-wrap:anywhere}.edit{color:var(--green);font-weight:600}.distribution-list{display:grid;grid-template-columns:repeat(3,1fr);gap:0 30px}.distribution-list>div{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;gap:10px}.distribution-list strong{background:var(--pale);padding:2px 9px;border-radius:5px;font-size:11px}footer{font-size:10px;color:#9ca694;text-align:center;padding:5px 0 8px}.alert{padding:14px 18px;border:1px solid #cddfc6;border-radius:9px;background:#eaf3e6;color:#446a38;margin-bottom:23px}.alert.error{background:#fff3e9;color:#92552f;border-color:#ebd5c4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){main{padding:30px 25px}.sidebar{width:210px;padding:30px 18px}main{margin-left:210px}.management{grid-template-columns:280px minmax(0,1fr)}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weekdays span{padding:9px 14px}.stat{padding:16px}}@media(max-width:900px){.sidebar{position:static;width:auto;padding:17px 22px;border-bottom:1px solid var(--line)}.brand{font-size:24px}.brand small{font-size:7px}.brand-icon{width:34px;height:37px;font-size:27px}.nav-label,.sidebar-footer{display:none}nav{display:flex;margin-top:16px;gap:8px}nav a{padding:9px 14px;font-size:12px}nav a span{font-size:17px}main{margin-left:0;padding:26px 22px}.header-badge{display:none}.management{grid-template-columns:1fr}.stats{gap:10px}.stat strong{font-size:30px}.generate-row{align-items:start;flex-direction:column}}@media(max-width:540px){main{padding:25px 14px}.sidebar{padding:15px}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:28px}.panel{padding:19px}.section-head{gap:10px}.section-head .tag{display:none}.period-form{flex-wrap:wrap;gap:10px}.period-form label:first-child{flex:1}select{min-width:155px}.period-form input{width:90px}.period-form button{width:100%;justify-content:center}.weekdays{gap:6px}.weekdays span{padding:8px 12px}.generate-row button{width:100%}.service-grid{grid-template-columns:1fr}.distribution-list{grid-template-columns:1fr}.print-button{padding:9px;font-size:10px}.stat small{font-size:9px}nav a{padding:9px 10px}header p{font-size:12px}}@media print{@page{size:A4;margin:12mm}body{background:#fff;font-size:11px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sidebar,header,.stats,.distribution,.planning,.alert,.print-button,footer{display:none!important}main{margin:0;padding:0;max-width:none}.panel{border:0;padding:0;margin:0 0 20px}.service-grid{display:block;columns:2;column-gap:15px}.service{display:inline-block;width:100%;margin-bottom:12px;break-inside:avoid}.service-date{padding:9px}.door-team{padding:9px 12px}.distribution-list{grid-template-columns:repeat(2,1fr)}.schedule .section-head{padding-bottom:12px}.door-team strong{font-size:11px}}
.assignment{scroll-margin-top:20px}.assignment-person{flex:1;min-width:0}.assignment-edit{font-size:10px;color:var(--green);margin-left:auto;padding:5px}.assignment-editor{margin-top:12px}.assignment-editor select{min-width:0;width:100%;font-size:12px}.assignment-editor .hint{margin-top:7px}.assignment-actions{display:flex;align-items:center;gap:14px;margin-top:10px;font-size:12px}.assignment-actions button{padding:8px 13px;min-height:34px}.assignment:has(.assignment-editor){align-items:flex-start}.assignment:target{outline:2px solid #a6bea0;outline-offset:5px;border-radius:3px}@media print{.assignment-edit,.assignment-editor{display:none!important}.assignment:target{outline:none}}.church-selector{padding:18px 25px}.church-select-row{display:flex;gap:12px;align-items:center;margin:7px 0}.church-select-row select{margin:0;max-width:440px}.church-selector .hint{margin-top:8px}.schedule-church{font-size:14px!important;color:var(--green);font-weight:600}@media(max-width:540px){.church-select-row{flex-direction:column;align-items:stretch}.church-select-row select{min-width:0}.church-select-row button{justify-content:center}}@media print{.church-selector{display:none!important}}.login-page{min-height:100vh;display:grid;place-items:center;padding:30px}.login-shell{margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;max-width:960px;width:100%;background:white;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 20px 70px #213d3710}.login-intro{background:#e6eddf;padding:45px;min-height:550px;display:flex;flex-direction:column;justify-content:space-between;gap:35px}.login-intro h1{font-size:43px;line-height:1.14;margin:18px 0}.login-intro p{max-width:270px}.login-intro small{font-size:11px;color:var(--muted)}.login-form-panel{padding:65px 45px;align-self:center}.login-form-panel h2{font-size:28px;margin-bottom:10px}.login-form-panel>p{font-size:13px}.login-form-panel .stack{margin-top:30px}.login-form-panel .alert{margin-top:20px;font-size:12px}.login-help{margin-top:24px!important;font-size:11px!important}.password-panel{margin:0;padding:35px;max-width:460px;width:100%}.password-panel .stack{margin-top:25px}.password-panel .alert{margin-top:20px}.account-box{border-top:1px solid var(--line);padding:20px 10px;margin-top:30px;display:grid;gap:10px;font-size:12px}.account-box>a{color:var(--green)}.account-box button{padding:6px 16px;min-height:33px}.account-box+ .sidebar-footer{padding-top:15px}@media(max-width:700px){.login-page{padding:20px}.login-shell{grid-template-columns:1fr;max-width:460px}.login-intro{min-height:0;padding:25px}.login-intro>div:nth-child(2),.login-intro>small{display:none}.login-form-panel{padding:30px 25px}.account-box{display:flex;align-items:center;gap:20px;padding:12px 0;margin-top:15px}.account-box form{margin-left:auto}}@media print{.account-box{display:none!important}}
.church-context{display:flex;align-items:center;gap:18px;padding:16px 25px}.church-context span{font-size:9px;letter-spacing:1.3px;color:var(--muted)}.church-context strong{font-size:15px}@media print{.church-context{display:none!important}}
.service-date .delete-day{margin-left:auto}.delete-day button{padding:6px 8px;min-height:30px;font-size:10px;color:#92552f;white-space:nowrap}@media print{.delete-day,.delete-day button{display:none!important}}

/* Cards dos cultos: visual de tela, preservando o layout de impressao. */
@media screen {
  .service-grid{gap:20px;align-items:start}
  .service{background:#fff;border:1px solid #dfe8e1;border-radius:18px;box-shadow:0 4px 16px rgba(33,61,55,.05)}
  .service-date{padding:18px;gap:12px;background:linear-gradient(120deg,#edf4ec,#f8faf6);border-bottom:1px solid #e2ebe2}
  .service-date .day-number{display:grid;place-items:center;flex-shrink:0;width:52px;height:58px;border-radius:14px;background:#26634d;color:#fff;font-size:25px;font-weight:700;letter-spacing:-1px;box-shadow:0 3px 8px rgba(38,99,77,.12)}
  .service-date>div{min-width:0}
  .service-date strong{font-size:13px;font-weight:700;color:#213d37}
  .service-date small{font-size:11px;color:#687d70;margin-top:4px}
  .service-date .delete-day button{background:rgba(255,255,255,.85);border-color:#dce5dc;border-radius:9px;color:#86604b;padding:7px 9px;font-size:10px}
  .service-date .delete-day button:hover{background:#fff2ec;border-color:#e4c9ba;filter:none}
  .door-team{padding:18px}
  .door-team+.door-team{padding-top:16px;border-top:1px solid #edf1eb;margin-top:0}
  .door-team h3{display:flex;align-items:center;gap:8px;color:#577260;font-size:10px;font-weight:700;letter-spacing:1.2px;margin:0 0 10px}
  .door-team h3:before{content:"";width:4px;height:12px;border-radius:4px;background:#94b398;flex-shrink:0}
  .door-team li{margin:0;padding:10px 0;gap:10px}
  .door-team li+li{border-top:1px solid #f0f3ee}
  .door-team li:last-child{padding-bottom:0}
  .door-team strong{font-size:13px;font-weight:600;line-height:1.4}
  .door-team small{font-size:11px;color:#7b897e;margin-top:3px}
  .person-dot{width:9px;height:9px;background:#95b59d;border:2px solid #e9f1e7;box-sizing:content-box}
  .assignment-edit{padding:5px 8px;border-radius:7px;background:#f1f6ee;color:#36634c;font-size:10px;font-weight:600}
  .assignment-edit:hover{background:#e3eedf}
}
@media screen and (min-width:901px) and (max-width:1100px){
  .service-grid{grid-template-columns:1fr}
}
@media screen and (max-width:380px){
  .service-date{padding:13px;gap:9px}
  .service-date .day-number{width:42px;height:50px;font-size:21px}
  .service-date .delete-day button{padding:6px;font-size:9px}
  .door-team{padding:15px}
}
@media screen and (max-width:540px){.service-date .day-number{width:42px;height:48px;font-size:21px}}

@media screen {
  .service{container-type:inline-size}
  .service-date{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .service-date .delete-day{grid-column:2;justify-self:end;margin:0}
}
@container (min-width:340px){
  .service-date{grid-template-columns:auto minmax(0,1fr) auto}
  .service-date .delete-day{grid-column:3;grid-row:1}
}
@container (max-width:339px){
  .service-date{padding:14px;gap:8px 12px}
  .service-date .day-number{width:42px;height:46px;font-size:21px;border-radius:11px}
  .service-date .delete-day button{min-height:28px;padding:5px 9px}
}
@media screen {
  .service-date{grid-template-columns:auto minmax(0,1fr) auto;padding:12px;gap:10px;align-items:center}
  .service-date .day-number{width:40px;height:44px;font-size:21px;border-radius:10px}
  .service-date .delete-day{grid-column:3;grid-row:1;align-self:start;justify-self:end;margin:0}
  .service-date .delete-day button{min-height:26px;padding:5px 7px;font-size:9px;border-radius:7px}
  .service-date strong{font-size:12px;overflow-wrap:anywhere}
  .service-date small{font-size:10px;margin-top:2px;white-space:nowrap}
  .service-grid{gap:14px}
  .door-team{padding:9px 14px}
  .door-team+.door-team{padding-top:9px}
  .door-team h3{margin-bottom:3px}
  .door-team li{padding:4px 0;line-height:1.25}
  .door-team strong{line-height:1.25}
  .door-team small{margin-top:0;line-height:1.25}
  .assignment-edit{display:inline-flex;align-items:center;justify-content:center;min-height:30px}
}
@container (max-width:259px){
  .service-date{gap:7px;padding:10px;grid-template-columns:auto minmax(0,1fr)}
  .service-date .day-number{grid-column:1;grid-row:1 / span 2}
  .service-date .delete-day{grid-column:2;grid-row:1}
  .service-date>div{grid-column:2;grid-row:2}
}
/* Layout exclusivo da impressao. */
@media print {
  @page{size:A4 portrait;margin:12mm}
  body{background:#fff;color:#203b32;font-family:"Segoe UI",Arial,sans-serif}
  .schedule{border-radius:0;box-shadow:none}
  .schedule .section-head{display:block;border:0;border-top:3px solid #26634d;border-bottom:1px solid #cddbd1;padding:14px 0 13px;margin-bottom:16px;break-after:avoid}
  .schedule .section-head>div{overflow:visible;max-width:100%}
  .schedule .eyebrow{color:#567361;font-size:8px;letter-spacing:2.3px;margin-bottom:6px;font-weight:700}
  .schedule .section-head h2{font-size:19px;line-height:1.35;letter-spacing:-.4px;white-space:normal;overflow-wrap:anywhere;color:#213d37}
  .service-grid{display:block;columns:2;column-gap:16px}
  .service{display:inline-block;vertical-align:top;width:100%;margin:0 0 13px;border:1px solid #d2dfd5;border-radius:11px;background:#fff;box-shadow:none;break-inside:avoid;page-break-inside:avoid;container-type:normal;overflow:hidden}
  .service-date{display:flex;align-items:center;padding:10px 12px;gap:10px;background:#eef4ed;border-bottom:1px solid #d8e3d9}
  .service-date .day-number{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:35px;height:39px;border:1px solid #abc0b0;border-radius:9px;background:#e1ecdf;color:#234e39;font-size:23px;font-weight:700;line-height:1;letter-spacing:-.7px}
  .service-date strong{font-size:11px;color:#244331;font-weight:700}
  .service-date small{font-size:9px;color:#5c7162;margin-top:2px}
  .door-team{padding:10px 12px}
  .door-team+.door-team{padding-top:9px;border-top:1px solid #e5ebe4}
  .door-team h3{font-size:8px;font-weight:700;letter-spacing:1.2px;color:#496b52;margin:0 0 6px;border-left:3px solid #9ab49d;padding-left:6px;line-height:1.4}
  .door-team li{margin:0;padding:5px 0;gap:7px;break-inside:avoid}
  .door-team li+li{border-top:1px solid #f0f3ee}
  .door-team li:last-child{padding-bottom:0}
  .door-team strong{font-size:10px;line-height:1.35;font-weight:600;color:#203b32}
  .door-team small{font-size:8px;color:#607366;margin-top:1px}
  .person-dot{width:5px;height:5px;background:#9bb69e;border:1px solid #8ca58f}
  .assignment-person{min-width:0}
  .delete-day,.delete-day button,.assignment-edit,.assignment-editor,.print-button,.church-context{display:none!important}
}
nav .nav-person-icon{width:21px;height:21px;flex-shrink:0}@media(max-width:900px){nav .nav-person-icon{width:17px;height:17px}}

.sidebar .brand{gap:8px;font-size:26px;letter-spacing:-1.2px;white-space:nowrap}
/* Keep the signed-in account visible while the desktop navigation scrolls. */
@media screen and (min-width:901px){
 .sidebar{height:100vh;height:100dvh;padding:24px 18px 16px;overflow:hidden}
 .sidebar>.brand,.sidebar>.nav-label,.sidebar>.account-box,.sidebar>.sidebar-footer{flex-shrink:0}
 .sidebar>.nav-label{margin:24px 12px 12px}
 .sidebar>nav{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;gap:5px;padding:4px;scrollbar-width:thin;overscroll-behavior:contain}
 .sidebar>nav a{padding:10px 12px;min-height:44px}
 .sidebar>.account-box{margin-top:12px;padding:12px 10px 0;gap:8px}
 .sidebar>.account-box strong{overflow-wrap:anywhere}
 .sidebar>.sidebar-footer{margin-top:12px;padding-top:10px}
}
@media screen and (min-width:901px) and (max-height:600px){
 .sidebar{padding-top:12px;padding-bottom:10px}
 .sidebar>.nav-label{margin-top:12px;margin-bottom:6px}
 .sidebar>.account-box{grid-template-columns:1fr auto;align-items:center;gap:6px 10px;margin-top:8px;padding-top:8px}
 .sidebar>.account-box strong{grid-column:1 / -1}
 .sidebar>.sidebar-footer{display:none}
}
.brand-star{width:25px;height:30px;flex-shrink:0;color:var(--green)}
@media(min-width:901px) and (max-width:1200px){.sidebar .brand{font-size:23px;gap:6px}.brand-star{width:22px;height:27px}}
@media(max-width:900px){.sidebar .brand{font-size:24px}.brand-star{width:24px;height:29px}}
@media screen{.print-button.secondary{background:#f4ca45;border-color:#e6b82e;color:#293b30}.print-button.secondary:hover{background:#e9bd32;border-color:#d8aa23;filter:none}}

@media screen and (max-width:900px){
 .sidebar nav{display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0}
 .sidebar nav a{flex:0 1 auto;min-height:44px;gap:8px;padding:10px 12px;white-space:nowrap}
 .sidebar nav a span,.sidebar nav a svg{flex-shrink:0}
}
@media screen and (max-width:540px){
 .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .sidebar nav a{min-width:0;justify-content:flex-start;font-size:12px;padding:10px;white-space:normal}
 .account-box{flex-wrap:wrap;gap:10px 14px}
 .account-box strong{min-width:0;overflow-wrap:anywhere}
 .account-box form{margin-left:auto}
}
.password-field{position:relative;display:block;margin-top:7px}.password-field input:not([type=checkbox]){margin-top:0;padding-right:50px}.password-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:44px;min-height:0;padding:10px;display:flex;justify-content:center;background:transparent;color:var(--green);border-radius:6px;gap:0}.password-toggle:hover{background:var(--pale);filter:none}.password-toggle:focus-visible{outline-offset:-3px}.password-toggle svg{width:22px;height:22px;pointer-events:none}.password-eye-slash{display:none}.password-toggle.is-visible .password-eye-slash{display:block}.password-field input::-ms-reveal{display:none}

/* Consulta do periodo: controles alinhados, inclusive no Safari do celular. */
.period-form > input[type=hidden]{display:none}
.period-form select{-webkit-appearance:none;appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23213d37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.period-form select,.period-form input[type=number]{height:46px;min-height:46px;line-height:normal}
@media screen and (max-width:600px){
 .period-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.55fr);align-items:end;gap:14px 12px}
 .period-form label{min-width:0}
 .period-form select,.period-form input[type=number]{width:100%;min-width:0;max-width:none;font-size:16px}
 .period-form button{grid-column:1 / -1;width:100%;min-height:46px;justify-content:center}
}

/* Permite exibir o nome completo da igreja no titulo da escala. */
.schedule .section-head>div{min-width:0;overflow:visible}
.schedule .section-head h2{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
@media screen and (max-width:600px){
 .schedule .section-head>div{flex-basis:100%;width:100%}
}

/* Dias de culto alinhados em colunas iguais no celular. */
@media screen and (max-width:600px){
 .generator fieldset{min-width:0}
 .weekdays{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
 .weekdays label{min-width:0}
 .weekdays span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;text-align:center}
 .weekdays input{inset:0}
}
@media screen and (max-width:360px){
 .weekdays{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.period-form button[type=submit]{background:#f7cd45;border-color:#edc136;color:var(--ink)}
.period-form button[type=submit]:hover{background:#edc136;filter:none}

/* Botao de impressao com as mesmas dimensoes do botao de gerar no celular. */
@media screen and (max-width:540px){
 .schedule .print-button{width:100%;min-height:43px;padding:12px 18px;font-size:12px;justify-content:center}
}

/* Lista de participacoes mais compacta na tela. */
@media screen{
 .distribution .section-head{margin-bottom:10px}
 .distribution-list>div{padding:5px 0;line-height:1.3}
 .distribution-list strong{padding:2px 8px;line-height:1.3}
}

.delete-door{margin-top:6px}
.delete-door input[type=hidden]{display:none}
.delete-door-button{min-height:32px;padding:6px 9px;background:#fff3ee;border:1px solid #ebcfc2;color:#93472d;font-size:11px;justify-content:center}
.delete-door-button:hover{background:#fbe4d9;filter:none}

/* Reserva espaco para as acoes lado a lado na tabela de portas. */
.doors-table th,.doors-table td{padding-left:5px;padding-right:5px}
.doors-table th:nth-child(2){width:68px;white-space:normal}
.doors-table th:nth-child(3){width:62px}
.doors-table td:last-child{width:1%;white-space:nowrap}
.doors-table td:last-child>.edit{display:inline-flex;align-items:center;min-height:32px;vertical-align:middle;margin-right:7px}
.doors-table .delete-door{display:inline-block;vertical-align:middle;margin:0}
.doors-table .delete-door-button{padding:6px 7px}

.agenda-form{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,2fr) 110px auto;gap:14px;align-items:end}
.agenda-form input[type=hidden],.agenda-actions input[type=hidden]{display:none}
.agenda-form select{min-width:0}.agenda-hint{margin-top:12px}
.agenda-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.agenda-day{margin:0;padding:16px}.agenda-day h2{font-size:16px;margin-bottom:10px}
.agenda-day ul{list-style:none;margin:0;padding:0}.agenda-day li{padding:9px 0;border-top:1px solid var(--line)}
.agenda-event{display:flex;gap:10px;align-items:baseline}.agenda-event time{font-weight:700;color:var(--green);white-space:nowrap}.agenda-event strong{font-size:13px;overflow-wrap:anywhere}
.agenda-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:6px}.agenda-actions a{font-size:12px;padding:6px 0}
@media(max-width:1100px){.agenda-form{grid-template-columns:1fr 1fr}.agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.agenda-form,.agenda-grid{grid-template-columns:minmax(0,1fr)}.agenda-form input,.agenda-form select{font-size:16px}.agenda-form button{justify-content:center}}
@media screen and (max-width:600px){.congress-year-form{grid-template-columns:minmax(0,1fr)}}

/* Confirmacoes do sistema */
.app-modal{position:fixed;inset:0;width:calc(100% - 32px);max-width:460px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;border:1px solid #dce7db;border-radius:22px;padding:30px;background:#fff;color:#213d37;box-shadow:0 24px 80px #102f3540}
.app-modal::backdrop{background:rgba(20,38,32,.55);backdrop-filter:blur(4px)}
.app-modal .modal-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:#f1f5ef;color:#607263;font-size:24px;font-weight:400}
.app-modal .modal-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff3cd;color:#8a661a;font-size:26px;font-weight:700;margin-bottom:18px}
.app-modal h2{font-size:23px;letter-spacing:-.5px;margin:0 30px 10px 0}
.app-modal p{font-size:14px;line-height:1.7;color:#617166;overflow-wrap:anywhere}
.app-modal .modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:20px;border-top:1px solid #e8eee5}
.app-modal .modal-actions button{justify-content:center;padding:11px 17px;border-radius:10px;min-height:44px}
.app-modal .modal-confirm{background:#26634d;color:#fff}
.app-modal .modal-cancel{color:#506252}
.app-modal [hidden]{display:none!important}
@media(max-width:540px){.app-modal{padding:24px;border-radius:18px}.app-modal h2{font-size:21px}.app-modal .modal-actions{flex-direction:column-reverse}.app-modal .modal-actions button{width:100%}}
@media print{.app-modal,.app-modal::backdrop{display:none!important}}
@media screen{
 .account-box{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
 .account-box>strong{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}
 .account-box>form{grid-column:2;grid-row:1;margin:0;justify-self:end}
 .account-box>a{grid-column:1 / -1;grid-row:2;justify-self:start}
}

/* Nome do aplicativo no menu lateral. */
.sidebar .brand span{white-space:normal;line-height:1.15;min-width:0}

.assignment-remove{margin:0;flex-shrink:0}.assignment-remove button{padding:8px;font-size:11px;color:#9a4438;min-height:36px}@media print{.assignment-remove{display:none!important}}

.culto-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 14px;margin:0;color:#754c1e;background:#fff7e7;font-size:12px}.culto-note-editor{padding:10px 14px;font-size:12px}.culto-note-editor summary{cursor:pointer;color:#26634d;font-weight:600}.culto-note-editor form{margin-top:12px}.culto-note-editor textarea{width:100%;font:inherit;padding:8px;border:1px solid #cad7c5;border-radius:6px;resize:vertical}.agenda-excluded{font-size:11px;color:#7b7166}.door-team .assignment{flex-wrap:wrap}.assignment-remove{margin-left:4px}@media print{.culto-note-editor,.agenda-excluded{display:none!important}.culto-note{color:#000;background:none;font-size:10px}}

/* Avoid automatic focus zoom in mobile login/password fields. */
@media (max-width:900px){
 .login-page input:not([type="hidden"]):not([type="checkbox"]){font-size:16px;line-height:1.4}
 .login-form-panel,.login-shell,.password-panel{min-width:0}
}

/* Mobile form fields: keep a readable size when focused, including iOS. */
@media screen and (max-width:900px), screen and (pointer:coarse){
 body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
 body select,
 body textarea{font-size:16px!important;line-height:1.4}
}

/* Large mobile navigation cards and direct access to the selected routine. */
.routine-menu-return{display:none}
#rotina{scroll-margin-top:12px}
@media screen and (max-width:900px){
 .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-top:22px}
 .sidebar nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:104px;padding:16px 10px;border:1px solid #dce5d9;border-radius:14px;background:#f7faf5;font-size:15px;line-height:1.3;font-weight:650;text-align:center;white-space:normal;overflow-wrap:anywhere}
 .sidebar nav a.active{background:#e6f0df;border-color:#719772;color:#21543e;box-shadow:inset 0 0 0 1px #719772}
 .sidebar nav a:hover{background:#edf4e7}
 .sidebar nav a span{font-size:27px;line-height:1}
 .sidebar nav a svg{width:28px;height:28px}
 .routine-menu-return{display:inline-flex;align-items:center;min-height:44px;margin-bottom:14px;padding:10px 14px;border:1px solid #dce5d9;border-radius:9px;background:white;color:#26634d;font-size:14px;font-weight:600}
}
@media screen and (min-width:601px) and (max-width:900px){.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media screen and (max-width:900px){
 .routine-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px}
 .routine-header>div{display:contents}
 .routine-header h1{grid-column:1;grid-row:1;min-width:0;margin:0;overflow-wrap:anywhere}
 .routine-header>div>p{grid-column:1 / -1;grid-row:2;margin:0}
 .routine-header .routine-menu-return{grid-column:2;grid-row:1;justify-self:end;margin:0;white-space:nowrap;padding:10px;font-size:12px}
}
