/* JESUS OS · PRESENÇA v1 · Design system aplicado.
   Movimento significativo, interfaces de intenção e acessibilidade. */
:root{
 --js-canvas:#F7F9F4;--js-surface:#FFFFFF;--js-ink:#172014;
 --js-forest:#365C18;--js-forest-deep:#244011;--js-lime:#B7FD3F;
 --js-mist:#ECF5E6;--js-line:#DCE6D5;--js-muted:#64715D;
 --js-radius-control:12px;--js-radius-card:19px;--js-radius-panel:24px;
 --js-shadow-rest:0 16px 40px rgba(23,32,20,.06);
 --js-motion-instant:90ms;--js-motion-fast:140ms;
 --js-motion-base:240ms;--js-motion-expressive:380ms;
 --js-motion-route:460ms;--js-ease-out:cubic-bezier(.22,1,.36,1);
 --js-ease-snap:cubic-bezier(.18,.88,.32,1.1);
}
/* Shared affordances; all movements stay dormant until a real interaction. */
.btn,.nav-item,.ops-ministry-card,.creation-card,.project-card,.ops-shortcut,
.ops-mini-kpi,.ops-small-task,.guide-choice-btn{
 transition:transform var(--js-motion-base) var(--js-ease-out),
  border-color var(--js-motion-fast),background-color var(--js-motion-fast),
  box-shadow var(--js-motion-base) var(--js-ease-out);
}
:is(.btn,.nav-item,.ops-ministry-card,.creation-card,.project-card,.ops-shortcut,
.ops-mini-kpi,.ops-small-task):active{transform:translateY(0) scale(.986)}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{
 outline:2px solid #639341;outline-offset:3px;
}
button:disabled{opacity:.63;cursor:not-allowed}
.presence-icon{flex-shrink:0}
.presence-icon>*{
 transform-box:fill-box;transform-origin:center;
 transition:transform var(--js-motion-expressive) var(--js-ease-out),
            opacity var(--js-motion-fast);
}
/* Icons move according to what they mean, never indiscriminately spin. */
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="calendar"] rect{transform:translateY(-2px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="calendar"] path{transform:translateY(-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="grid"] rect:nth-of-type(1){transform:translate(-1px,-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="grid"] rect:nth-of-type(2){transform:translate(1px,-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="grid"] rect:nth-of-type(3){transform:translate(-1px,1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="grid"] rect:nth-of-type(4){transform:translate(1px,1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="heart"] path{transform:rotate(-5deg) scale(1.07)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="users"] circle{transform:translateY(-2px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="users"] path:first-of-type{transform:translateX(-1.5px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="users"] path:last-of-type{transform:translateX(1.5px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="file"] path:last-of-type{transform:translateX(1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="check"] path{transform:scale(1.13)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="check"] circle{transform:scale(.96)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="clock"] path{transform:rotate(24deg)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="image"] circle{transform:translate(1px,-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="image"] path{transform:translateY(-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="video"] path{transform:translateX(2px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="folder"] path{transform:translateY(-1px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="settings"] path:first-of-type{transform:rotate(18deg)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="plus"] path{transform:scale(1.1)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="arrow"] path{transform:translateX(2px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="upload"] path:first-of-type{transform:translateY(-2px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="search"] circle{transform:scale(1.07)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="link"] path{transform:translateX(.8px)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="shield"] path:last-of-type{transform:scale(1.1)}
:is(button,a):is(:hover,:focus-visible) [data-motion-icon="sparkle"] path{transform:rotate(24deg) scale(1.05)}
/* Quiet, cohesive page change. No animation on idle. */
#view>*{animation:presence-appear 210ms var(--js-ease-out) both}
@keyframes presence-appear{from{opacity:.75;transform:translateY(4px)}to{opacity:1;transform:none}}
.btn-primary{box-shadow:0 4px 15px rgba(54,92,24,.09)}
.btn-primary:hover{box-shadow:0 8px 22px rgba(54,92,24,.14)}
.nav-item:hover .nav-icon{color:var(--js-forest)}
.creation-card:hover .creation-thumb img{transform:scale(1.022)}
.creation-thumb img{transition:transform var(--js-motion-expressive) var(--js-ease-out)}
.ops-ministry-card:hover .ops-card-footer svg{transform:translateX(3px)}
.ops-card-footer svg{transition:transform var(--js-motion-base)}
/* Adaptive task-focused sheet, with every action in reach. */
dialog.presence-sheet{
 position:fixed;inset:0 0 0 auto;margin:0;
 width:min(555px,100vw);max-width:none;height:100dvh;max-height:100dvh;
 padding:0;border:0;border-left:1px solid var(--js-line);
 border-radius:25px 0 0 25px;background:#fff;
 overflow-y:auto;overscroll-behavior:contain;
 box-shadow:-30px 0 80px rgba(19,33,16,.15);
}
dialog.presence-sheet::backdrop{background:rgba(22,32,18,.39);backdrop-filter:blur(3px)}
dialog.presence-sheet .modal-head{padding:29px 31px 18px;position:sticky;top:0;background:#fff;z-index:2;border-bottom:1px solid #eff3eb}
dialog.presence-sheet .modal-head h2{font-size:32px;max-width:415px}
dialog.presence-sheet .modal-body{padding:24px 31px 46px}
dialog.presence-sheet .modal-body .form-stack{gap:17px}
dialog.presence-sheet .modal-body .form-field{gap:9px}
dialog.presence-sheet .modal-body .form-field>label{font-size:13px}
dialog.presence-sheet .modal-body .form-field :is(input,textarea,select){padding:14px;border-radius:13px}
dialog.presence-sheet .modal-actions{margin-top:26px}
dialog.presence-sheet .detail-preview{min-height:240px}
dialog.presence-sheet .close-modal:hover{background:#eaf3df;color:var(--js-forest)}
/* Guided action. Three short stages instead of a long CRUD form. */
.guide-layout{min-height:100%;display:flex;flex-direction:column;background:#fff}
.guide-top{
 display:flex;align-items:center;justify-content:space-between;
 padding:27px 32px 15px;position:relative;
}
.guide-brand{display:inline-flex;gap:10px;align-items:center;font-size:17px;font-weight:790;letter-spacing:-.02em;color:var(--js-forest)}
.guide-brand small{color:#75876d;font-size:11px;font-weight:500;letter-spacing:0}
.guide-brand svg{color:#4a7a2d}
.guide-dismiss{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;border:1px solid #e5ecdd;background:white;color:var(--js-ink)}
.guide-dismiss:hover{background:var(--js-mist)}
.guide-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 32px;margin-top:5px}
.guide-progress span{height:3px;border-radius:5px;background:#e8ecdf;transition:background-color var(--js-motion-base)}
.guide-progress span.is-done{background:var(--js-forest)}
.guide-counter{margin:25px 32px 0;display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:750;letter-spacing:.1em;color:#638048}
.guide-counter b{color:#86977d}
.guide-inner{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 32px 29px}
.guide-inner h2{font-size:clamp(39px,4.3vw,56px);font-family:"Big Shoulders Display","Arial Narrow",sans-serif;letter-spacing:-.015em;font-weight:800;line-height:1.05;margin:13px 0 9px}
.guide-intro{font-size:13px;color:#718266;max-width:395px;line-height:1.65;margin:0 0 30px}
.guide-form{display:flex;flex-direction:column;flex:1}
.guide-panel{animation:presence-appear 180ms var(--js-ease-out) both}
.guide-field{display:flex;flex-direction:column;gap:10px;margin-bottom:22px;font-size:12.5px;font-weight:690;color:#3c542f}
.guide-field>input,.guide-field>select,.guide-field>textarea{
 width:100%;background:#f9fbf6;border:1px solid #dce7d4;
 border-radius:14px;padding:14px 15px;color:var(--js-ink);
 font-size:14px;font-weight:480;outline:none;transition:background 140ms,border 140ms,box-shadow 140ms
}
.guide-field>input:focus,.guide-field>select:focus,.guide-field>textarea:focus{border-color:#78a857;background:#fff;box-shadow:0 0 0 3px rgba(112,156,78,.1)}
.guide-field input::placeholder,.guide-field textarea::placeholder{color:#93a28b}
.guide-field>input:first-of-type{min-height:52px}
.guide-field>textarea{min-height:104px;resize:vertical}
.guide-suggestions{margin:2px 0 29px}
.guide-suggestions>span,.guide-choice>span{display:block;font-size:11px;color:#7a8f6b;margin-bottom:11px}
.guide-suggestions>div,.guide-choice-row{display:flex;gap:8px;flex-wrap:wrap}
.guide-suggestion,.guide-choice-btn{padding:10px 14px;border:1px solid #dce6d4;border-radius:999px;background:white;font-size:12px;font-weight:630;color:#5b7050}
.guide-suggestion:hover,.guide-choice-btn:hover{border-color:#95b97e;background:#f1f8ea}
.guide-choice{margin:10px 0 18px}
.guide-choice-btn.is-selected{background:#e8f5dd;color:#31571c;border-color:#84aa69;box-shadow:inset 0 0 0 1px rgba(100,153,68,.08)}
.guide-prereq{padding:15px;border-radius:14px;background:#f5f8ef;color:#5e7450;font-size:12px;margin:8px 0 20px}
.guide-inline-link{background:none;border:0;padding:0;text-decoration:underline;color:#365c18;font-weight:750}
.guide-fields{display:grid;gap:4px}
.guide-advanced{border-top:1px solid #e7eddf;margin:3px 0 18px;padding-top:9px}
.guide-advanced>summary{cursor:pointer;display:flex;gap:7px;align-items:center;color:#395c25;font-size:13px;font-weight:720;padding:10px 0;list-style:none}
.guide-advanced>summary::-webkit-details-marker{display:none}
.guide-advanced>summary span{color:#84977b;font-size:11px;font-weight:420}
.guide-advanced[open]>summary svg{transform:rotate(45deg)}
.guide-extra{padding-top:14px}
.guide-confirm{display:flex;gap:12px;align-items:start;padding:16px;border-radius:14px;background:#f2f8eb;font-size:12px;line-height:1.6;color:#47643a;margin:12px 0 23px}
.guide-confirm input{accent-color:#406727;width:17px;height:17px;margin-top:2px;flex-shrink:0}
.guide-review{border:1px solid #e5ecdf;border-radius:18px;padding:22px;background:#fbfcf9}
.guide-review>p{font-size:13px;color:#5f7455;margin-bottom:20px}
.guide-review-row{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #edf1e8;padding:13px 0;font-size:12px}
.guide-review-row span{color:#718269;flex-shrink:0}
.guide-review-row strong{max-width:65%;text-align:right;color:#283d21;word-break:break-word}
.guide-review-hint{display:flex;gap:10px;color:#5e7853;line-height:1.55;font-size:12px;background:#eef6e9;border-radius:12px;padding:13px;margin-top:10px}
.guide-review-hint svg{flex-shrink:0}
.guide-footer{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:36px}
.guide-footer .btn{min-height:47px;padding:11px 19px}
.guide-footer .guide-continue{margin-left:auto;gap:12px}
.guide-continue:disabled{opacity:.6}
/* Convert generic empty states into concise meaningful invitations. */
.empty{background:linear-gradient(135deg,#fff,#fdfefb);min-height:220px}
.empty-symbol{width:59px;height:59px;background:#eef7e4}
.empty h3{font-size:24px;font-family:"Big Shoulders Display","Arial Narrow",sans-serif;letter-spacing:-.008em}
.empty p{max-width:410px;line-height:1.65}
/* Unobtrusive feedback, with a real check only after server confirmation. */
#toast{background:#244011;border:1px solid #416b2e;box-shadow:0 15px 35px rgba(37,62,28,.22);border-radius:13px}
#toast.error{background:#a33c39;border-color:#a33c39}
@media(max-width:860px){
 dialog.presence-sheet{width:min(555px,100vw)}
}
@media(max-width:600px){
 dialog.presence-sheet{
   inset:0;margin:0;width:100vw;height:100dvh;max-height:100dvh;
   border:0;border-radius:0;box-shadow:none;
 }
 dialog.presence-sheet .modal-head{padding:21px 21px 16px}
 dialog.presence-sheet .modal-body{padding:22px 21px 38px}
 .guide-top{padding:22px 21px 13px}
 .guide-progress{padding:0 21px}
 .guide-counter{margin:24px 21px 0}
 .guide-inner{padding:10px 21px 24px}
 .guide-inner h2{font-size:44px}
 .guide-intro{font-size:12.5px;margin-bottom:24px}
 .guide-footer .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){
 .presence-icon>*{transition:none!important;animation:none!important}
 :is(button,a):is(:hover,:focus-visible) .presence-icon>*{transform:none!important}
 .guide-panel,#view>*{animation:none!important}
 .btn,.nav-item,.ops-ministry-card,.creation-card,.project-card,.ops-shortcut,
 .ops-mini-kpi,.ops-small-task,.guide-choice-btn{transition:none!important;transform:none!important}
}

/* Conversation can be entered from anywhere, with the correct church channel. */
.presence-chat{
 margin:0 9px 16px;padding:13px 14px;display:flex;align-items:center;gap:10px;
 background:#eaf5de;color:#365c18;border:1px solid #d7e9c5;border-radius:14px;
 text-align:left;font-size:12px;font-weight:760;
 transition:background 140ms,border-color 140ms,transform 240ms var(--js-ease-out)
}
.presence-chat span{flex:1}
.presence-chat:hover{background:#dff1cd;border-color:#9ac57c;transform:translateY(-1px)}
.presence-hero-chat{margin-top:18px;background:#fff;border-color:#c8dfb9}
.presence-detail-chat{margin:15px 0 8px}
.presence-channel-card{max-width:760px}
.presence-channel-card>p{line-height:1.65;max-width:670px}
.presence-channel-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.presence-channel-form .form-field{flex:1;min-width:210px}
.presence-channel-form .btn{min-height:46px}
.presence-chat-empty{padding:23px 8px 16px}
.presence-chat-empty>svg{width:54px;height:54px;color:#497b29;background:#eaf5df;border-radius:17px;padding:13px;margin-bottom:18px}
.presence-chat-empty h3{font:800 30px/1.06 "Big Shoulders Display",sans-serif;max-width:440px}
.presence-chat-empty p{font-size:13px;color:#65765a;line-height:1.75;max-width:430px}
.presence-chat-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}
.presence-review-intro{font-size:13px;color:#697c61;line-height:1.65;margin-bottom:22px}
.presence-review-choices{display:grid;gap:9px;margin-bottom:24px}
.presence-review-choice{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;gap:1px 14px;
 padding:13px 14px;border-radius:15px;background:#fff;border:1px solid #e0e8d9;text-align:left;
 transition:background 140ms,border-color 140ms,transform 240ms var(--js-ease-out)}
.presence-review-choice:hover{border-color:#9bbd80;background:#f6faf2;transform:translateX(-1px)}
.presence-review-choice:active{transform:scale(.99)}
.presence-review-choice.is-selected{background:#f0f8e8;border-color:#79a65b;box-shadow:inset 3px 0 #5b903a}
.presence-review-choice>span{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#47752c;background:#eaf6df}
.presence-review-choice b{font-size:13px;color:#2b421f}
.presence-review-choice small{font-size:11px;color:#75846c}
.presence-review-url[hidden]{display:none}
@media(max-width:860px){.presence-chat{margin:0 5px 12px}}
@media(max-width:600px){.presence-chat-actions .btn{flex:1 1 160px}.presence-channel-form{display:block}.presence-channel-form .btn{margin-top:12px;width:100%}}
@media(prefers-reduced-motion:reduce){.presence-review-choice,.presence-chat{transition:none!important;transform:none!important}}

/* Intent-first states: no rows of meaningless zero counters. */
.presence-empty{min-height:345px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:34px 25px}
.presence-empty-mark{display:grid;place-items:center;width:65px;height:65px;border-radius:21px;background:#eaf4df;color:#416a28;margin-bottom:17px}
.presence-empty .kicker{margin-bottom:8px;font-size:16px}
.presence-empty h2{font:800 clamp(31px,3vw,43px)/1.06 "Big Shoulders Display","Arial Narrow",sans-serif;max-width:490px;margin:0 0 12px}
.presence-empty>p{font-size:13px;color:#72816a;max-width:460px;line-height:1.65;margin:0 0 22px}
.presence-empty-actions{display:flex;gap:9px;justify-content:center;align-items:center;flex-wrap:wrap}
@media(max-width:600px){.presence-empty{min-height:315px;padding:29px 13px}.presence-empty h2{font-size:36px}.presence-empty-actions .btn{flex:1 1 160px}}

#toast{display:flex;align-items:center;gap:11px;line-height:1.4}
.presence-toast-symbol{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:rgba(255,255,255,.13)}
#toast.show:not(.error) .presence-toast-symbol [data-motion-icon="check"] path{
 stroke-dasharray:36;animation:presence-draw-check 380ms var(--js-ease-out) both;
}
@keyframes presence-draw-check{from{stroke-dashoffset:36}to{stroke-dashoffset:0}}
.guide-footer [data-action="guide-back"] .presence-icon{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){
 #toast.show:not(.error) .presence-toast-symbol [data-motion-icon="check"] path{animation:none!important}
 .guide-footer [data-action="guide-back"] .presence-icon{transform:none!important}
}
