/* Shared production form shell and legible photo treatment.
   The plan ID matches the legacy shell specificity so mobile uses the same full-screen layout. */
#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson){box-sizing:border-box;width:min(580px,calc(100% - 32px));max-width:580px;max-height:calc(100dvh - 48px);padding:28px 23px 20px;border:1px solid #e4e9dc;border-radius:28px;background:#f6f7f2;color:#19392d;background-image:linear-gradient(180deg,rgba(246,247,242,.88),rgba(246,247,242,.76) 68%,rgba(246,247,242,.48)),url('assets/brand/bora-fundo-claro-v2.jpg');background-position:center top;background-size:100% 185px;background-repeat:no-repeat}
#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson) #dialog-title{font-size:28px;font-weight:750;letter-spacing:-1px;line-height:1.15;margin:12px 48px 22px 0;overflow-wrap:anywhere}
#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson)>.dialog-close{position:absolute;top:24px;right:20px;padding:0;margin:0;width:44px;height:44px;z-index:3;background:none;box-shadow:none}
#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson)>.dialog-close button{width:44px;height:44px;display:grid;place-items:center;padding:0;line-height:1;font-size:25px;border-radius:50%;background:#ffffffb0;border:1px solid white;color:#536c40}
#dialog :is(.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson) :is(input,select,textarea){font-size:16px;max-width:100%;box-sizing:border-box;min-width:0}
#dialog :is(.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson) .primary{background:#d8ff55;color:#243d28;border:0;border-radius:17px;min-height:53px;width:100%;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:700}
.mobile-intro{font-size:14px;color:#354b37;font-weight:500;line-height:1.5;margin:-8px 0 25px}.mobile-foot{font-size:11px;color:#657454;text-align:center;line-height:1.6;margin:16px 0}.mobile-card{padding:17px;background:white;border:1px solid #e4eadf;border-radius:19px;margin-bottom:15px}.mobile-current{background:#ebf0e0;border:1px solid #e1e8d3;border-radius:17px;padding:15px 17px;margin-bottom:18px}.mobile-current small{display:block;font-size:9px;letter-spacing:1.7px;color:#657a49;margin-bottom:8px;font-weight:650}.mobile-current strong{font-size:16px}.mobile-current p{font-size:11px;color:#61734f;margin:7px 0 0}.mobile-options{border:1px solid #e5eadf;background:#ffffff90;border-radius:16px;margin:18px 0}.mobile-options summary{font-size:13px;font-weight:600;padding:15px;cursor:pointer;min-height:50px}.mobile-options summary small{font-size:10px;font-weight:400;color:#667755;display:block;margin-top:5px}.mobile-options>div{padding:0 16px 16px}.mobile-lesson .field{margin:0}.mobile-lesson .field+.field,.mobile-options .field{margin-top:12px}.mobile-lesson .label{font-size:11px;color:#61734f;font-weight:500}.mobile-lesson .mobile-card input,.mobile-lesson .mobile-card select{border:0;background:none;padding:8px 0 2px;box-shadow:none;border-radius:4px;min-height:43px;color:#243e2e}.mobile-lesson input:focus-visible,.mobile-lesson select:focus-visible{outline:2px solid #7b9948;outline-offset:2px}.lesson-when .form-grid{grid-template-columns:1fr 1fr;border-top:1px solid #edf0e7;margin:12px 0 0;padding-top:0;gap:20px}.lesson-when>small{display:block;font-size:10px;color:#63784c;margin-top:13px}.lesson-people{margin-bottom:18px;background:white;border:1px solid #e2e8db;border-radius:19px}.lesson-people summary{display:flex;align-items:center;gap:12px;padding:15px;list-style:none;cursor:pointer;min-height:80px}.lesson-people summary::-webkit-details-marker{display:none}.lesson-people summary>span:nth-child(2){flex:1;min-width:0}.lesson-people summary strong{font-size:15px;display:block;overflow-wrap:anywhere}.lesson-people summary small{font-size:10px;color:#63774e;display:block;margin-top:5px}.lesson-people summary b{font-weight:400;color:#7c935b;font-size:24px}.mobile-avatar{width:40px;height:40px;display:grid;place-items:center;background:#edf5db;color:#627e3e;border-radius:50%;flex-shrink:0}.lesson-picker{padding:0 16px 16px}.lesson-picker>label{font-size:12px}.lesson-picker .participant-list{max-height:260px;overflow:auto;margin:12px 0}.lesson-picker .participant-option[hidden]{display:none}.lesson-picker .participant-option input{width:20px;height:20px}.lesson-picker>.secondary{min-height:44px;width:100%;border-radius:12px}.lesson-review-card h3{font-size:23px;letter-spacing:-.6px;margin:12px 0 20px}.lesson-review-card>small{font-size:11px;color:#64764f}.lesson-review-card p{font-size:14px;color:#64764f}.lesson-review-arrow{text-align:center;color:#718a4d}.mobile-lesson #lesson-review>.quiet{display:block;width:100%;min-height:44px;margin-top:8px}.mobile-lesson [hidden]{display:none!important}.mobile-lesson .note{font-size:12px}.mobile-discard{position:sticky;top:0;z-index:10;background:#fff;border:1px solid #d7e3be;border-radius:17px;padding:18px;box-shadow:0 8px 25px #1a362c20;margin:0 0 20px}.mobile-discard strong{font-size:16px}.mobile-discard p{font-size:13px;color:#566b4e}.mobile-discard>div{display:flex;gap:8px;flex-wrap:wrap}.mobile-discard button{font-size:12px;min-height:44px;border-radius:12px}.mobile-discard [data-mobile-keep]{background:#d8ff55;border:0}
body[data-role=professional][data-page=today] .workspace,body[data-role=professional][data-page=agenda] .workspace,body[data-role=professional][data-page=billing] .workspace,body[data-role=professional][data-page=students] .workspace,body[data-role=professional][data-page=billing]::before,body.people-list-view[data-role=professional][data-page=students]::before,body[data-role=professional][data-page=students]:has(.ficha-home)::before{background-image:linear-gradient(180deg,rgba(246,247,242,.84),rgba(246,247,242,.72) 65%,rgba(246,247,242,.4)),url('assets/brand/bora-fundo-claro-v2.jpg')}
body[data-role=professional] :is(.agenda-hero,.people-hero,.bill-hero,.ficha-hero) p,body[data-role=professional][data-page=today] :is(.hero-date,.hero-summary){color:#354b37;font-weight:500}
@media(max-width:600px){#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson){width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0;padding:calc(24px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));background-size:100% calc(185px + env(safe-area-inset-top))}#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson)>.dialog-close{top:calc(24px + env(safe-area-inset-top));right:20px}}
@media(max-width:350px){#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson){padding-inline:15px}#dialog:has(#care-plan-form,.mobile-care,.mobile-finance,.mobile-presence,.mobile-lesson) #dialog-title{font-size:25px}.mobile-card{padding-inline:14px}}
@media(prefers-reduced-motion:reduce){#dialog *{scroll-behavior:auto}}
