:root{--green:#73ad7e;--deep:#255844;--ink:#173a2d;--mint:#eaf4e9;--paper:#fff;--line:#d8e8d8;--muted:#6e8176}
*{box-sizing:border-box}
body{margin:0;background:#e5eee5;color:var(--ink);font-family:"DM Sans",sans-serif}
.app-shell{min-height:100vh;background:var(--paper);max-width:500px;margin:auto;box-shadow:0 0 40px #5f806a22;display:flex;flex-direction:column}
.app-shell>main{flex:1;display:flex}
.screen{min-height:calc(100dvh - 82px);width:100%}
.screen.hidden{display:none!important}
.login-screen{padding:32px 24px;background:linear-gradient(155deg,#f9fdf8 0%,#e5f1e4 100%);display:flex;align-items:center}
.brand-card{text-align:center;width:100%;max-width:390px;margin:auto}
.brand-logo{width:100px;height:100px;object-fit:cover;border-radius:22px;box-shadow:0 10px 24px #315a3933;border:5px solid white}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--green);margin:16px 0 5px}
.brand-card h1,h2{font-family:"Playfair Display",serif;font-size:40px;line-height:.98;margin:0;color:var(--deep)}
em{font-style:normal;color:var(--green)}
.intro{font-size:14px;color:var(--muted);line-height:1.5;max-width:310px;margin:18px auto 27px}
.role-options{display:grid;gap:10px;text-align:left}
.role-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px;display:flex;align-items:center;gap:12px;color:var(--ink);font:inherit;cursor:pointer}
.role-card.selected{border-color:var(--green);box-shadow:0 4px 15px #5c9b6c1c}
.role-icon{font-size:22px;width:27px;color:var(--green)}
.role-card strong,.role-card small{display:block}
.role-card strong{font-size:14px}
.role-card small{font-size:11px;color:var(--muted);margin-top:2px}
.role-card i{margin-left:auto;width:19px;height:19px;border:1px solid #bdd6bd;border-radius:50%;color:transparent;text-align:center;font-style:normal;font-size:12px}
.role-card.selected i{background:var(--green);border-color:var(--green);color:white}
.primary-btn{width:100%;border:0;border-radius:13px;background:var(--green);color:white;font:600 15px "DM Sans";padding:16px 19px;margin-top:20px;box-shadow:0 8px 17px #5e9c6b44;cursor:pointer;text-align:left}
.primary-btn span{float:right;font-size:21px;line-height:15px}
.privacy{font-size:10px;color:#8a9b8f;line-height:1.45;margin:18px 22px}
.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:10px 20px;gap:11px;background:white;position:sticky;top:0;z-index:2}
.logo-mini{border:0;padding:0;background:transparent}
.logo-mini img{display:block;width:42px;height:42px;object-fit:cover;border-radius:11px}
.topbar .eyebrow{margin:0;font-size:8px}
.topbar strong{font-family:"Playfair Display";font-size:17px}
.avatar{margin-left:auto;background:var(--mint);color:var(--deep);border:0;border-radius:50%;width:34px;height:34px;font-weight:700}
.content{padding:28px 21px 36px}
.welcome-block h2,.admin-title h2{font-size:32px}
.welcome-block>p:last-child{font-size:13px;line-height:1.55;color:var(--muted);margin:12px 0 27px}
.field-label{display:block;font-size:12px;font-weight:700;margin:21px 0 9px;color:#38584a}
.field-label b{color:#c96060}
.field-label span{color:#95a498;font-weight:400}
.unit-row{border:1px solid var(--line);border-radius:12px;padding:0 13px;display:flex;align-items:center;gap:9px}
.unit-row span{color:var(--green)}
input,textarea{font:inherit;color:var(--ink)}
.unit-row input{border:0;outline:0;padding:14px 0;width:100%;font-size:14px}
textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:13px;outline-color:var(--green);font-size:13px;line-height:1.4}
.categories{display:flex;gap:8px;flex-wrap:wrap}
.category{border:1px solid var(--line);background:white;padding:9px 10px;border-radius:10px;color:#496659;font:600 11px "DM Sans";cursor:pointer}
.category span{font-size:15px;margin-right:4px}
.category.active{background:var(--mint);border-color:var(--green);color:var(--deep)}
.photo-heading{display:flex;align-items:center;justify-content:space-between}
.photo-heading small{font-size:11px;color:var(--muted)}
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.photo-choice{border:1px dashed #a8caaa;border-radius:12px;text-align:center;padding:14px 5px;cursor:pointer;background:#fbfefb}
.photo-choice input{display:none}
.photo-choice span,.photo-choice strong,.photo-choice small{display:block}
.photo-choice span{font-size:20px;color:var(--green);height:25px}
.photo-choice strong{font-size:11px;margin:3px}
.photo-choice small{font-size:9px;color:var(--muted)}
.photo-preview{display:flex;gap:7px;overflow:auto;margin-top:9px}
.photo-preview:empty{display:none}
.photo-preview img{width:48px;height:48px;object-fit:cover;border-radius:8px}
.submit-btn{margin-top:25px}
.success-screen{display:flex;align-items:center;padding:25px;background:linear-gradient(160deg,#fff 30%,#edf7ed)}
.success-card{text-align:center;width:100%}
.success-mark{margin:0 auto 20px;border:8px solid #dcefdc;background:var(--green);color:#fff;width:74px;height:74px;border-radius:50%;display:grid;place-items:center;font-size:34px}
.success-card h2{font-size:35px}
.success-card>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.55;max-width:290px;margin:17px auto}
.ticket-number{background:#f3f8f2;border:1px solid var(--line);border-radius:14px;padding:14px;margin:25px auto 7px;max-width:285px;display:grid;grid-template-columns:1fr auto}
.ticket-number span{font-size:9px;color:var(--muted);letter-spacing:1px;text-align:left}
.ticket-number strong{font-size:20px;color:var(--deep);text-align:left}
.ticket-number button{grid-row:span 2;align-self:center;border:0;background:transparent;color:var(--green);font-size:19px;cursor:pointer}
.saved-note{font-size:11px!important}
.secondary-btn{border:1px solid var(--green);background:white;border-radius:12px;color:var(--deep);font:600 14px "DM Sans";padding:14px 32px;margin-top:13px;cursor:pointer}
.admin-title{display:flex;justify-content:space-between;align-items:center}
.admin-title .eyebrow{margin-top:0}
.round-add{border:0;border-radius:50%;background:var(--green);color:#fff;font-size:26px;width:43px;height:43px;cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}
.stats article{background:var(--mint);border-radius:11px;padding:11px}
.stats span{display:block;font-size:10px;color:var(--muted)}
.stats strong{font-size:24px;color:var(--deep)}
.filter-row{display:flex;gap:8px;overflow:auto;padding-bottom:4px}
.filter{white-space:nowrap;border:0;background:#f1f5f0;border-radius:20px;padding:8px 12px;font:600 11px "DM Sans";color:var(--muted);cursor:pointer}
.filter.active{background:var(--deep);color:white}
.admin-list{display:grid;gap:10px;margin-top:17px}
.ticket-card{border:1px solid var(--line);border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;background:#fff}
.ticket-icon{width:39px;height:39px;border-radius:10px;background:var(--mint);display:grid;place-items:center;font-size:19px}
.ticket-info{min-width:0;flex:1}
.ticket-meta{display:flex;justify-content:space-between;align-items:center}
.ticket-id,.ticket-date{font-size:9px;color:#889a8e}
.ticket-status{font-size:9px;background:#fff3d7;color:#9b7130;padding:3px 6px;border-radius:8px}
.ticket-status.resolvido{background:#e0f1e2;color:#39734a}
.ticket-info h3{font-size:13px;margin:4px 0 1px}
.ticket-unit{font-size:11px;color:var(--muted);margin:0}
.status-toggle{border:0;background:transparent;color:var(--green);font-size:26px}
.empty-state{text-align:center;color:var(--muted);font-size:13px;padding:40px 15px;background:#f8fbf8;border-radius:13px}
#toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,80px);background:var(--deep);color:white;padding:10px 16px;border-radius:22px;font-size:12px;transition:.25s;z-index:10;white-space:nowrap}
#toast.show{transform:translate(-50%,0)}
@media(min-width:501px){body{padding:24px}
.app-shell{border-radius:22px;overflow:hidden;min-height:calc(100vh - 48px)}
.screen{min-height:calc(100vh - 130px)}
}

.detail-hero{display:flex;align-items:center;gap:13px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.detail-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:var(--mint);font-size:28px}
.detail-hero h2{font-size:27px;margin:6px 0 2px}
.detail-hero p{font-size:12px;color:var(--muted);margin:0}
.back-detail{border:0;background:none;color:var(--deep);font-size:25px;padding:5px}
.detail-lock{margin-left:auto;color:var(--green);font-size:20px}
.detail-section{margin-top:24px}
.detail-label{display:block;color:var(--green);font-size:9px;font-weight:700;letter-spacing:1.3px;margin-bottom:9px}
.detail-description{margin:0;color:#486456;font-size:14px;line-height:1.55}
.detail-section small{display:block;color:#99a99f;font-size:10px;margin-top:8px}
.detail-photos{display:flex;gap:9px;overflow:auto}
.detail-photos img{width:102px;height:102px;object-fit:cover;border-radius:11px;border:1px solid var(--line)}
.no-photos{padding:15px;background:#f7faf7;border-radius:10px;font-size:12px;color:var(--muted);width:100%}
.response-section textarea{margin-top:2px}
.outline-btn{border:1px solid var(--green);color:var(--deep);background:white;border-radius:10px;padding:10px 14px;margin-top:8px;font:600 12px "DM Sans";cursor:pointer}
.progress-actions,.final-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.progress-actions button,.final-actions button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 7px;color:var(--deep);font:600 11px "DM Sans";cursor:pointer}
.final-actions{margin-top:9px}
.final-actions .reject{border-color:#ebc4c4;color:#a45050}
.final-actions .resolve{background:var(--green);border-color:var(--green);color:white}
.terminal-note{font-size:10px;color:#9a8d8d;line-height:1.4;margin:9px 0 0}
.closed-message{margin-top:25px;padding:15px;border-radius:12px;background:var(--mint);font-size:13px;color:var(--deep)}
.closed-message p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.closed-message #sent-response{margin-top:11px;padding-top:11px;border-top:1px solid #cee2cf;font-size:12px;line-height:1.4}
.auth-screen{background:linear-gradient(155deg,#f9fdf8,#e5f1e4);padding:22px}
.back-link{border:0;background:none;color:var(--deep);font:600 13px "DM Sans";padding:4px}
.auth-card{max-width:360px;margin:65px auto 0;text-align:center}
.auth-card .brand-logo{width:78px;height:78px}
.auth-card h2{font-size:36px}
.auth-card>p:not(.eyebrow){font-size:13px;line-height:1.5;color:var(--muted);margin:16px 0 8px}
.auth-card form{text-align:left}
.auth-input{border:1px solid var(--line);background:#fff;border-radius:12px;outline-color:var(--green);padding:13px;width:100%;font-size:13px}
.auth-error{font-size:11px;color:#b25151;min-height:16px;margin:9px 0 -9px}
.auth-card .primary-btn{margin-top:19px}
.legal-content{padding-top:39px;padding-bottom:40px}
.legal-content h2{font-size:33px;margin:5px 0 22px}
.legal-content>p:not(.eyebrow):not(.legal-date){font-size:13px;line-height:1.65;color:#486456;margin:0 0 16px}
.legal-date{font-size:11px;color:var(--muted);margin-top:23px}
.google-btn{width:100%;margin-top:20px;border:1px solid #d7ded8;border-radius:12px;background:#fff;color:#345445;font:600 14px "DM Sans";padding:12px 16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:11px;box-shadow:0 2px 8px rgba(45,83,57,.06)}
.google-btn span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f3f7f3;color:#4285f4;font:700 16px Arial}
.google-btn:disabled{opacity:.65;cursor:wait}

.app-shell{position:relative;min-height:100dvh;overflow:hidden}
.site-footer{min-height:82px;padding:10px 18px;border-top:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center}
.site-footer a{display:flex;flex-direction:column;align-items:center;gap:1px;color:#718177;text-decoration:none}
.site-footer img{width:104px;height:46px;object-fit:contain}
.site-footer span{font-size:10px;font-weight:600}
.site-footer a:hover{text-decoration:underline}
.screen:not(.hidden){animation:screen-in .2s ease-out}
@keyframes screen-in{from{opacity:.4}
to{opacity:1}
}
.lookup-content h2{font-size:33px;margin-top:6px}.lookup-intro{font-size:13px;line-height:1.55;color:var(--muted);margin:12px 0 24px}.lookup-form .primary-btn{margin-top:13px}.lookup-result{margin-top:23px;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fbfefb}.lookup-result h3{font-size:18px;margin:12px 0 3px;color:var(--deep)}.lookup-response{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.lookup-response p{margin:0;font-size:13px;line-height:1.55;color:#486456}.lookup-result small{display:block;margin-top:13px;color:#99a99f;font-size:10px}.lookup-btn{width:100%;border:1px solid var(--green);border-radius:13px;background:#fff;color:var(--deep);font:600 14px "DM Sans";padding:14px 19px;margin-top:11px;cursor:pointer;text-align:left}.lookup-btn span{float:right;font-size:18px;line-height:16px;color:var(--green)}
.lookup-home{display:block;width:100%;margin-top:18px}
.form-home{display:block;width:100%;margin-top:13px}
