:root{color-scheme:light;--ink:#153c42;--teal:#167c78;--light:#f5f7f3;--accent:#d4ea88;--line:#dfe7e4;--muted:#6b7d7e;--card:#fff;--shadow:0 14px 40px rgba(20,53,53,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--light);color:#20393d}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}.hidden{display:none!important}.brand{display:flex;align-items:center;gap:10px;font-weight:820;letter-spacing:-.6px;font-size:23px;color:var(--ink)}.mark{width:37px;height:37px;border-radius:11px;background:var(--ink);color:white;font-size:31px;font-weight:850;display:grid;place-items:center;line-height:1}.mark span{color:var(--accent)}.btn{border:0;border-radius:11px;font-weight:700;padding:13px 20px;display:inline-flex;align-items:center;gap:10px;justify-content:center;transition:transform .15s,background .15s;min-height:44px}.btn:active{transform:scale(.98)}.btn.primary{background:var(--ink);color:#fff}.btn.primary:hover{background:#23666b}.btn.secondary{background:#e8eeec;color:var(--ink)}.btn.small{font-size:13px;min-height:34px;padding:8px 11px}.btn.outline{background:#fff;border:1px solid var(--line);color:var(--ink)}.marketing{background:#f6f8f4;min-height:100vh}.marketing-nav{max-width:1200px;margin:auto;padding:25px 28px;display:flex;align-items:center;justify-content:space-between}.small-tag{font-size:11px;font-weight:800;letter-spacing:.05em;color:var(--teal);background:#e0ece7;padding:9px 12px;border-radius:100px}.hero{max-width:1200px;margin:0 auto;padding:70px 28px 100px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px}.pill{background:white;border:1px solid var(--line);border-radius:100px;padding:9px 14px;font-size:12px;color:var(--ink);font-weight:650;display:inline-flex;gap:8px;align-items:center}.tiny-dot{width:8px;height:8px;border-radius:50%;background:var(--teal)}h1{font-size:clamp(48px,6.1vw,85px);line-height:1.06;letter-spacing:-3.9px;color:var(--ink);margin:22px 0}.hero h1 em{font-style:normal;color:#499184}.hero-copy>p{font-size:18px;color:#5e7370;line-height:1.7;max-width:510px}.hero-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:28px 0 40px}.hero-actions span{font-size:12px;color:var(--muted)}.price-line{display:flex;align-items:center;gap:15px;padding-top:19px;border-top:1px solid var(--line);max-width:320px}.price-line strong{font-size:38px;letter-spacing:-2px;color:var(--ink)}.price-line span{color:var(--muted);font-size:13px}.price-line small{display:block;font-size:11px}.hero-art{background:#dbebe4;border-radius:45% 40% 40% 44%;min-height:560px;display:grid;place-items:center}.phone{background:#fff;width:295px;border:10px solid #244e51;border-radius:35px;box-shadow:18px 28px 70px #153c4230;padding:30px 16px 18px;transform:rotate(-5deg)}.phone-top{display:flex;justify-content:space-between;font-size:15px;font-weight:800;color:var(--ink)}.phone-greeting{font-size:23px;letter-spacing:-.7px;color:var(--ink);font-weight:800;margin-top:28px}.phone-sub{color:var(--muted);font-size:11px;margin-top:4px}.phone-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.phone-stats div{background:#f3f8f3;padding:13px;border-radius:13px}.phone-stats b{display:block;font-size:25px;color:var(--ink)}.phone-stats small,.phone-task small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.phone-task{border:1px solid var(--line);padding:12px;border-radius:13px;margin:9px 0}.phone-task b{font-size:12px;display:block;margin-top:7px}.task-status{font-size:9px;color:#ad783b;font-weight:800}.task-status.teal{color:var(--teal)}.phone-add{padding:12px;border-radius:11px;background:var(--ink);color:#fff;text-align:center;font-weight:800;font-size:12px;margin-top:12px}.features{max-width:1200px;margin:0 auto 65px;padding:0 28px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.features>div{background:white;border:1px solid var(--line);padding:30px;border-radius:20px}.feature-no{font-size:11px;font-weight:800;color:var(--teal)}.features h3{margin:14px 0 9px;color:var(--ink)}.features p{font-size:14px;color:var(--muted);line-height:1.6}.marketing-footer{font-size:12px;color:var(--muted);text-align:center;padding:26px;border-top:1px solid var(--line)}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:#153c42;color:#eef9f6;display:flex;flex-direction:column;padding:25px 18px;gap:19px;min-height:100vh}.sidebar .brand{color:white;font-size:21px}.sidebar .mark{background:#f4faf5;color:var(--ink)}.workspace-title{font-size:10px;letter-spacing:1.7px;font-weight:850;color:#9ab6ae;margin:22px 9px 0}.company-box{border:1px solid #496b6f;background:#1d4a50;padding:13px;border-radius:12px}.company-box span{display:block;font-size:13px;font-weight:700}.company-box small{font-size:11px;color:#9cc0bb;display:block;margin-top:4px}.menu{display:flex;flex-direction:column;gap:5px}.nav-item{width:100%;border:0;background:none;color:#bad4d3;font-size:14px;font-weight:600;text-align:left;padding:12px 14px;border-radius:10px;display:flex;gap:15px;align-items:center}.nav-item:hover,.nav-item.active{background:#276169;color:white}.nav-item:first-letter{font-size:18px}.sidebar-bottom{margin-top:auto}.demo-flag{font-size:11px;color:#bedb9a;background:#294f4c;border-radius:9px;padding:11px}.text-btn{border:0;background:none;color:#cee4dc;font-size:12px;padding:18px 3px;text-decoration:underline}.main-area{padding:31px min(4.5vw,65px);max-width:1500px;width:100%;margin:auto;min-width:0}.app-header{display:flex;justify-content:space-between;gap:25px;align-items:start}.breadcrumb{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#7a9692}.app-header h2{color:var(--ink);font-size:clamp(28px,3vw,38px);letter-spacing:-1px;margin:11px 0 5px}.app-header p{color:var(--muted);font-size:14px;margin:0}.header-right{display:flex;align-items:center;gap:10px}.role-label{font-size:11px;color:var(--muted)}.header-right select{max-width:230px;background:white;border:1px solid var(--line);border-radius:9px;padding:10px 8px;font-size:12px}.avatar{border-radius:50%;background:#b0d6bd;color:var(--ink);font-size:12px;width:35px;height:35px;display:grid;place-items:center;font-weight:800}.warning-banner{display:flex;align-items:center;gap:11px;border:1px solid #e7d6a7;background:#fef8e8;color:#7b6235;padding:11px 15px;border-radius:11px;font-size:12px;margin:23px 0}.warning-banner strong{font-size:10px;letter-spacing:.08em}.app-footer{font-size:11px;color:#8c9b99;margin:30px 0}.section-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:22px 0 14px}.section-header h3{margin:0;font-size:18px;color:var(--ink);letter-spacing:-.35px}.section-header span{font-size:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:23px 0}.stat{background:white;border-radius:16px;border:1px solid var(--line);padding:21px;box-shadow:var(--shadow)}.stat small{display:block;font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:34px;color:var(--ink);letter-spacing:-1.5px;margin-top:14px}.stat .accent{color:#14877c}.surface{border-radius:17px;background:white;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}.empty{padding:44px;text-align:center;color:var(--muted)}.list-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 19px;border-bottom:1px solid #edf1ef}.list-row:last-child{border-bottom:0}.row-title{font-weight:700;font-size:14px;color:var(--ink);display:block}.row-meta{font-size:12px;color:var(--muted);margin-top:6px;display:block}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.status{display:inline-block;padding:5px 9px;border-radius:30px;font-weight:750;font-size:10px;white-space:nowrap}.status.scheduled{color:#9a6f20;background:#fff2d7}.status.in_progress{color:#166c79;background:#dcf3f3}.status.completed{color:#27734a;background:#dff4e7}.status.draft{color:#696785;background:#ecebf8}.status.canceled{color:#a45a5b;background:#fae3e3}.two-col{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.info-card{background:var(--ink);color:white;border-radius:17px;padding:25px}.info-card h3{font-size:20px;line-height:1.3;margin:6px 0 15px}.info-card p{font-size:13px;line-height:1.6;color:#c1d8d1}.info-card .btn{background:var(--accent);color:var(--ink)}.table-tools{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:24px 0 12px}.search{padding:12px 14px;background:white;border:1px solid var(--line);border-radius:10px;min-width:220px;max-width:100%;color:var(--ink)}.person-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.person{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px}.person .round{background:#e0efe8;width:41px;height:41px;border-radius:50%;display:grid;place-items:center;color:var(--ink);font-weight:800;margin-bottom:12px}.person b{display:block;color:var(--ink);font-size:14px}.person span{display:block;color:var(--muted);font-size:12px;margin-top:6px}.price-card{background:white;border:1px solid var(--line);border-radius:17px;padding:32px;max-width:670px}.price-card .num{font-size:55px;font-weight:850;color:var(--ink);letter-spacing:-3px}.price-card small{color:var(--muted)}.price-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.price-row strong{color:var(--ink)}.notice{font-size:12px;line-height:1.6;color:var(--muted)}.bottom-nav{display:none}#editor{border:0;border-radius:17px;max-width:490px;width:calc(100% - 30px);padding:26px;box-shadow:0 25px 100px #132c3050;color:var(--ink)}#editor::backdrop{background:#122f3299}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:22px;margin:0 0 20px}.icon-close{font-size:25px;background:none;border:0;color:var(--muted)}.field{display:block;font-size:12px;font-weight:700;color:var(--ink);margin:0 0 16px}.field input,.field select,.field textarea{display:block;width:100%;margin-top:7px;border:1px solid #cddfdb;border-radius:9px;min-height:42px;padding:10px;background:#fff;color:var(--ink)}.field textarea{min-height:84px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:21px}#toast{position:fixed;right:25px;bottom:25px;border-radius:12px;padding:14px 19px;background:var(--ink);color:white;box-shadow:var(--shadow);display:none;z-index:50;font-size:13px;max-width:370px}#toast.visible{display:block}#print-report{display:none}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:760px){.hero{grid-template-columns:1fr;padding:38px 23px 55px}.hero h1{letter-spacing:-2px}.hero-art{min-height:410px;border-radius:28px}.phone{transform:rotate(-3deg) scale(.74);margin:-40px}.features{grid-template-columns:1fr}.marketing-nav{padding:21px}.small-tag{font-size:10px}.app-shell{display:block;padding-bottom:64px}.sidebar{display:none}.main-area{padding:22px 17px;max-width:none}.app-header{flex-direction:column;gap:17px}.header-right{width:100%;justify-content:space-between}.header-right select{max-width:70%;flex:1}.warning-banner{align-items:flex-start;line-height:1.5;margin:18px 0}.warning-banner strong{padding-top:2px}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:28px}.row-actions{justify-content:flex-start}.list-row{flex-direction:column;align-items:flex-start}.table-tools{flex-direction:column;align-items:stretch}.search{width:100%}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;z-index:20;border-top:1px solid var(--line);justify-content:space-around;padding:8px 4px max(8px,env(safe-area-inset-bottom))}.bottom-nav button{display:grid;place-items:center;gap:2px;background:none;border:0;font-size:21px;color:#657876;min-width:45px}.bottom-nav button.active{color:var(--teal)}.bottom-nav span{font-size:9px}.app-footer{margin-bottom:20px}.two-col{gap:10px}}@media print{body>*:not(#print-report){display:none!important}#print-report{display:block!important;font-family:Arial,sans-serif;padding:20px;color:#000}}
/* UX: foco na leitura em iPhone, sem alterar a identidade da marca */
:root{--muted:#526b69}
.warning-banner{font-size:12px;padding:8px 11px;margin:14px 0 9px;border-color:#e4eadf;background:#f1f6ed;color:#345449}
.row-meta,.notice,.person span{font-size:13px}
.btn.small{font-size:13px;min-height:40px}
.header-right select{font-size:14px;min-height:44px}
.test-login{margin:0 0 22px;max-width:450px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 17px;font-size:13px}
.test-login summary{cursor:pointer;color:var(--ink);font-weight:700}
.test-login p{line-height:1.5;color:var(--muted)}
.test-login label{display:block;font-weight:650;color:var(--ink);margin:9px 0}
.test-login input{display:block;width:100%;border:1px solid #d4dfdc;border-radius:9px;padding:12px;margin-top:6px}
.auth-actions{display:flex;flex-wrap:wrap;gap:10px}
.quote-actions,.invoice-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}
.photo-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.photo-card img{width:100%;height:115px;object-fit:cover;display:block}
.photo-card .photo-actions{padding:8px;font-size:12px}
.quote-lines{display:grid;grid-template-columns:1fr;gap:8px}
.quote-line{display:grid;grid-template-columns:minmax(0,1fr) 65px 110px;gap:6px}
.quote-line input{min-width:0}
.quote-info{font-size:13px;line-height:1.5;color:var(--muted)}
#editor{max-height:90vh;overflow:auto}
#print-report img{max-width:220px;max-height:140px;object-fit:contain;margin:8px}
@media(max-width:760px){.main-area{padding:17px 14px}.app-header{gap:9px}.app-header h2{font-size:27px;margin:5px 0}.warning-banner{margin:12px 0}.warning-banner strong{font-size:10px}.stats{margin:13px 0}.bottom-nav button{min-height:50px;min-width:52px;font-size:22px}.bottom-nav span{font-size:11px}.row-actions{gap:6px}.quote-line{grid-template-columns:minmax(0,1fr) 55px 85px}}
@media print{#print-report{display:block!important;line-height:1.55;font-size:12pt}#print-report h1{font-size:22pt;letter-spacing:normal;margin:0 0 12px}#print-report h2{font-size:17pt;letter-spacing:normal;margin:0 0 18px}#print-report table{width:100%;border-collapse:collapse}#print-report td,#print-report th{padding:9px;border:1px solid #ddd}}

#photo-dialog{border:0;border-radius:17px;max-width:620px;width:calc(100% - 30px);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 25px 100px #132c3050;color:var(--ink)}#photo-dialog::backdrop{background:#122f3299}#photo-dialog h2{font-size:21px;margin:0 0 14px}

.mobile-brand{display:none}
@media(max-width:760px){.mobile-brand{display:flex;align-items:center;gap:9px;margin:-1px 0 16px;font-size:17px;font-weight:800;color:var(--ink)}.mini-mark{display:grid;place-items:center;background:var(--ink);color:white;width:30px;height:30px;border-radius:9px;font-size:19px}.mobile-demo-tag{font-size:10px;font-weight:800;color:#436e66;border:1px solid var(--line);border-radius:999px;padding:5px 8px;margin-left:auto;text-transform:uppercase;letter-spacing:.04em}}

.demo-type-chooser{margin:14px 0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;color:#153c42}
.demo-type-chooser label{font-weight:650}
.demo-type-chooser select{min-height:44px;max-width:100%;border:1px solid var(--line);border-radius:12px;background:white;color:#153c42;padding:8px 12px;font:inherit}
@media(max-width:540px){.demo-type-chooser{align-items:stretch;flex-direction:column}.demo-type-chooser select{width:100%}}
.demo-type-chooser #demo-type-desc{flex-basis:100%;margin:0;line-height:1.45}
/* UI concealment is only an ergonomic complement to server-side RBAC. */
[hidden] {display:none!important;}

/* Mensagens persistentes de validação, próximas dos campos e acessíveis no iPhone. */
.form-feedback{padding:10px 12px;margin:10px 0;border-left:3px solid var(--teal);background:var(--light);color:var(--ink);border-radius:8px;font-size:13px;line-height:1.5}
.form-feedback[hidden]{display:none!important}


/* EquipaPronta FLOW — mobile-first identity using approved design tokens */
.flow-home,.flow-schedule{max-width:1020px;margin:auto}
.flow-greeting{padding:12px 2px 2px}
.flow-date,.flow-detail-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--muted);text-transform:uppercase;margin:0 0 11px}
.flow-today{color:var(--teal)}
.flow-greeting h3{font-size:clamp(29px,3.1vw,38px);line-height:1.1;letter-spacing:-.05em;color:var(--ink);margin:0 0 9px}
.flow-intro{color:var(--muted);font-size:15px;line-height:1.5;margin:0 0 16px}
.flow-metrics{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.flow-metrics>span{font-size:12px;font-weight:700;border-radius:10px;color:var(--ink);background:color-mix(in srgb,var(--line) 50%,white);padding:8px 10px}
.flow-dot{display:inline-block;height:7px;width:7px;background:var(--teal);border-radius:50%;margin-right:5px}
.flow-focus{position:relative;overflow:hidden;padding:24px 26px;border-radius:24px;background:linear-gradient(125deg,var(--ink),color-mix(in srgb,var(--ink) 75%,var(--teal)));color:white;box-shadow:0 18px 34px rgba(18,52,53,.13)}
.flow-focus:before{content:"";position:absolute;right:-95px;top:-110px;width:220px;height:220px;border:32px solid rgba(255,255,255,.06);border-radius:50%;pointer-events:none}
.flow-focus>*{position:relative;z-index:1}
.flow-focus-kicker{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:800;color:var(--accent);font-size:11px;letter-spacing:.07em}
.flow-focus-kicker>span{display:flex;align-items:center;gap:6px}
.flow-pulse{width:7px;height:7px;background:var(--accent);border-radius:50%}
.flow-mini-tag{border:1px solid rgba(255,255,255,.33);color:white;white-space:nowrap;border-radius:8px;padding:6px 9px;font-size:10px;letter-spacing:0}
.flow-focus h4{font-size:clamp(22px,2.5vw,30px);line-height:1.15;letter-spacing:-.04em;margin:20px 0 10px;max-width:530px}
.flow-focus>p{color:color-mix(in srgb,white 83%,var(--teal));font-size:13px;line-height:1.6;margin:0 0 20px}
.flow-focus-actions{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.23);padding-top:16px}
.flow-cta,.flow-ghost,.flow-action{font:inherit;cursor:pointer;touch-action:manipulation;min-height:47px;border-radius:12px;font-size:13px;font-weight:800;padding:12px 15px}
.flow-cta{background:var(--accent);border:0;color:var(--ink)}
.flow-ghost{background:transparent;border:1px solid rgba(255,255,255,.42);color:white}
.flow-agenda{margin-top:28px;padding:0 2px}
.flow-section-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.flow-section-header h3{color:var(--ink);font-size:19px;letter-spacing:-.04em;margin:0}
.flow-text-link{font:inherit;font-size:13px;font-weight:750;color:var(--teal);border:0;background:none;padding:10px 2px;min-height:44px}
.flow-count{font-size:13px;color:var(--muted)}
.flow-timeline{position:relative;padding-left:24px}
.flow-timeline:before{content:"";position:absolute;left:8px;top:18px;bottom:27px;width:2px;background:linear-gradient(var(--teal),var(--line))}
.flow-timeline-entry{font:inherit;cursor:pointer;text-align:left;position:relative;display:flex;align-items:flex-start;gap:10px;width:100%;min-height:76px;padding:14px 0 16px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink)}
.flow-timeline-entry:last-child{border-bottom:0}
.flow-timeline-node{position:absolute;left:-22px;top:18px;width:13px;height:13px;border-radius:50%;border:3px solid var(--light);box-shadow:0 0 0 1px var(--line);background:var(--teal)}
.flow-timeline-entry.is-done .flow-timeline-node{background:var(--teal)}
.flow-timeline-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.flow-timeline-when{font-size:11px;font-weight:800;color:var(--teal)}
.flow-timeline-main strong{font-size:15px;line-height:1.35}
.flow-timeline-main small{font-size:13px;line-height:1.4;color:var(--muted)}
.flow-entry-status{font-size:10px;font-weight:800;white-space:nowrap;background:color-mix(in srgb,var(--teal) 11%,white);color:var(--ink);padding:7px 8px;border-radius:9px;margin-top:5px}
.flow-entry-status.scheduled{background:color-mix(in srgb,var(--accent) 50%,white)}
.flow-empty{font-size:14px;color:var(--muted);padding:25px 10px}
.flow-schedule{margin-top:15px}
.flow-service-row{border-bottom:1px solid var(--line)}
.flow-service-row:last-child{border-bottom:0}
.flow-service-open{font:inherit;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:94px;text-align:left;padding:18px 19px;background:white;color:var(--ink);border:0}
.flow-service-open:hover{background:var(--light)}
.flow-service-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.flow-service-copy strong{font-size:15px}
.flow-service-copy>span,.flow-service-copy small{font-size:12px;color:var(--muted);line-height:1.4}
.flow-service-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.flow-open-arrow{font-size:22px;color:var(--teal)}
.flow-account{display:flex;gap:13px;align-items:center;padding:9px 0 23px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.flow-account-avatar{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;color:var(--ink);font-weight:800;font-size:23px;background:var(--accent)}
.flow-account p{color:var(--teal);font-size:10px;letter-spacing:.09em;font-weight:800;margin:0 0 5px}
.flow-account h3{margin:0 0 4px;color:var(--ink);font-size:18px}
.flow-account span{font-size:13px;color:var(--muted)}
.flow-more-link{font:inherit;cursor:pointer;display:flex;align-items:center;gap:14px;width:100%;min-height:60px;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px;color:var(--ink);font-size:16px;font-weight:700}
.flow-more-link>span{width:27px;text-align:center;font-size:20px;color:var(--teal)}
.flow-more-link b{margin-left:auto;font-size:24px;font-weight:400;color:var(--muted)}
.flow-signout{color:var(--muted)}
.flow-safety{margin-top:18px}
.flow-service-dialog{border:0;border-radius:23px;padding:18px 23px 25px;max-width:560px;width:calc(100% - 30px);max-height:88dvh;overflow:auto;box-shadow:0 25px 90px rgba(18,52,53,.28);color:var(--ink)}
.flow-service-dialog::backdrop{background:rgba(11,30,34,.58)}
.flow-sheet-top{display:flex;align-items:center;justify-content:flex-end;margin-bottom:11px}
.flow-grab{display:none}
.flow-service-dialog h2{font-size:clamp(23px,3vw,29px);line-height:1.2;letter-spacing:-.04em;margin:0 0 10px}
.flow-detail-kicker{color:var(--teal)}
.flow-detail-intro{color:var(--muted);font-size:15px;margin:0 0 22px}
.flow-detail-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
.flow-detail-fields div{padding:12px;background:var(--light);border-radius:10px}
.flow-detail-fields dt{font-size:11px;font-weight:800;color:var(--muted);margin-bottom:5px}
.flow-detail-fields dd{font-size:14px;font-weight:700;color:var(--ink);margin:0;overflow-wrap:anywhere}
.flow-detail-notes{padding-bottom:16px;border-bottom:1px solid var(--line);font-size:14px}
.flow-detail-notes p{color:var(--muted);line-height:1.55;margin:8px 0 0}
.flow-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}
.flow-action{line-height:1.3}
.flow-action.primary{background:var(--accent);color:var(--ink);border:0}
.flow-action.outline{background:white;color:var(--ink);border:1px solid var(--line)}
.flow-action.danger{background:var(--light);color:var(--muted);border:0}
.flow-focus button:focus-visible,.flow-timeline-entry:focus-visible,.flow-service-open:focus-visible,.flow-more-link:focus-visible,.flow-action:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
@media(min-width:761px){
 .flow-home{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(260px,.88fr);gap:22px;align-items:start}
 .flow-greeting,.flow-focus{grid-column:1}
 .flow-agenda{grid-column:2;grid-row:1 / span 2;margin-top:9px}
}
@media(max-width:760px){
 .app-shell{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .main-area{padding:15px 16px 20px}
 .app-shell[data-current-page="dashboard"] .app-header>div:first-child{display:none}
 .mobile-brand{margin:0 0 11px}
 .app-header{gap:4px}.header-right{justify-content:flex-end}
 .warning-banner{padding:7px 9px;margin:12px 0}
 .flow-greeting h3{font-size:31px}
 .flow-intro{font-size:14px}
 .flow-metrics>span{font-size:11px;padding:7px 9px}
 .flow-focus{padding:20px 18px;border-radius:21px}
 .flow-focus h4{font-size:24px}
 .flow-focus-actions{flex-wrap:nowrap}
 .flow-focus-actions .flow-cta{flex:1;padding:12px 9px}
 .flow-focus-actions .flow-ghost{padding:12px 9px}
 .flow-agenda{margin-top:22px}
 .flow-service-open{padding:16px 12px}
 .flow-service-copy strong{font-size:14px}
 .flow-dock{display:flex;align-items:stretch;justify-content:space-around;padding:7px 7px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -7px 20px rgba(18,52,53,.08);border-top:1px solid var(--line)}
 .flow-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:53px;min-width:62px;padding:2px 5px;color:var(--muted);font-size:11px;font-weight:700;touch-action:manipulation}
 .flow-dock .dock-icon{height:32px;min-width:42px;font-size:23px;line-height:32px;border-radius:10px;text-align:center}
 .flow-dock button.active,.flow-dock button.active .dock-icon{color:var(--ink)}
 .flow-dock button.active .dock-icon{background:var(--accent)}
 .flow-dock .dock-label{font-size:11px}
 .flow-service-dialog{width:100%;max-width:none;max-height:91dvh;bottom:0;top:auto;left:0;right:0;margin:0;border-radius:24px 24px 0 0;padding:10px 19px calc(25px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 .flow-sheet-top{justify-content:space-between}
 .flow-grab{display:block;width:44px;height:5px;margin-left:calc(50% - 22px);border-radius:8px;background:var(--line)}
}
@media(max-width:370px){
 .flow-metrics{gap:5px}.flow-metrics>span{font-size:10px;padding:6px}
 .flow-dock button{min-width:52px}
 .flow-detail-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .flow-focus button,.flow-service-open,.flow-dock button{transition:none!important;transform:none!important}
}


/* Landing preview mirrors the live FLOW screen, without a fake dashboard. */
.flow-marketing-phone{padding:24px 15px;transform:rotate(-4deg);width:307px;min-height:525px}
.flow-marketing-phone .phone-top{font-size:13px}
.flow-marketing-phone .phone-greeting{margin-top:27px;font-size:23px;line-height:1.16}
.flow-marketing-phone .phone-sub{font-size:12px;line-height:1.4;margin-top:8px}
.flow-marketing-feature{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:22px;background:var(--ink);color:white;border-radius:18px;padding:18px 17px}
.flow-marketing-feature>span:first-child{color:var(--accent);font-size:9px;font-weight:850;letter-spacing:.055em}
.flow-marketing-feature strong{font-size:19px;line-height:1.15;letter-spacing:-.035em}
.flow-marketing-feature small{font-size:11px;color:color-mix(in srgb,white 76%,var(--teal))}
.flow-marketing-button{display:block;background:var(--accent);color:var(--ink);width:100%;text-align:center;border-radius:11px;padding:11px 9px;margin-top:7px;font-weight:800;font-size:12px}
.flow-marketing-agenda{margin-top:23px;color:var(--ink)}
.flow-marketing-agenda b{display:block;margin-bottom:12px;font-size:13px}
.flow-marketing-agenda>div{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);padding:11px 0}
.flow-marketing-agenda i{height:8px;width:8px;border-radius:50%;background:var(--teal)}
@media(max-width:760px){
 .flow-marketing-phone{transform:rotate(-2deg) scale(.88);margin:-27px}
}

@media(max-width:370px){.flow-focus-actions{flex-wrap:wrap}.flow-focus-actions>.flow-cta,.flow-focus-actions>.flow-ghost{width:100%}}

/* FLOW: recuperação de erros de apresentação sem ecrã vazio */
.flow-recovery{max-width:540px;margin:22px auto;padding:23px 20px;border:1px solid var(--line);background:white;border-radius:18px;color:var(--ink)}
.flow-recovery h3{margin:0 0 10px;font-size:20px;letter-spacing:-.02em}
.flow-recovery p{margin:0 0 18px;color:var(--muted);line-height:1.55}
.flow-recovery-actions{display:flex;gap:10px;flex-wrap:wrap}
.flow-recovery-actions button{min-height:46px}
@media(max-width:760px){.flow-recovery{margin:16px 0;padding:20px 16px}}


/* FLOW: all indicators are interactive, with accessible status filters. */
.flow-metrics{align-items:stretch;gap:7px}
.flow-metric-button{border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);min-height:57px;display:flex;flex-direction:column;justify-content:center;gap:2px;flex:1 1 87px;padding:9px 10px;text-align:left;font:inherit;cursor:pointer;position:relative;box-shadow:0 3px 10px rgba(18,52,53,.03);touch-action:manipulation}
.flow-metric-button strong{font-size:20px;line-height:1.1}
.flow-metric-button>span:nth-child(2){font-size:11px;color:var(--muted);font-weight:750}
.flow-metric-button>span:last-child{position:absolute;right:9px;top:10px;font-size:13px;color:var(--teal)}
.flow-metric-button:hover,.flow-metric-button:focus-visible{border-color:var(--teal)}
.flow-metric-button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.flow-filter-strip{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin}
.flow-filter-strip button{font:inherit;border:1px solid var(--line);background:white;color:var(--ink);border-radius:999px;padding:9px 12px;white-space:nowrap;min-height:42px;cursor:pointer;font-size:12px;font-weight:750;touch-action:manipulation}
.flow-filter-strip button span{color:var(--muted);margin-left:4px}
.flow-filter-strip button.is-active{background:var(--ink);color:white;border-color:var(--ink)}
.flow-filter-strip button.is-active span{color:var(--accent)}
.flow-report-dialog{max-width:620px}
.flow-report-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.flow-report-summary div{min-width:0;display:flex;flex-direction:column;gap:5px;background:var(--light);border-radius:11px;padding:12px}
.flow-report-summary small{font-size:11px;color:var(--muted);font-weight:750}
.flow-report-summary strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.flow-report-section{padding:15px 0;border-bottom:1px solid var(--line)}
.flow-report-section h3{font-size:15px;margin:0 0 7px;color:var(--ink);letter-spacing:-.02em}
.flow-report-section h3 small{font-size:12px;color:var(--muted);margin-left:3px}
.flow-report-section p{margin:0;color:var(--muted);font-size:14px;white-space:pre-wrap;line-height:1.55}
.flow-report-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.flow-report-photo{margin:0;min-width:0}
.flow-report-photo img{display:block;width:100%;max-height:185px;object-fit:cover;border-radius:10px;background:var(--light)}
.flow-report-photo figcaption{font-size:11px;color:var(--muted);margin-top:5px}
.flow-report-actions{display:flex;gap:9px;flex-wrap:wrap;margin:19px 0}
.flow-report-actions .flow-action{flex:1 1 180px}
@media(max-width:760px){
 .flow-metrics{gap:6px}
 .flow-metric-button{flex-basis:calc(33.333% - 6px);padding:8px;min-height:63px}
 .flow-metric-button strong{font-size:18px}
 .flow-report-photo-grid{gap:7px}
 .flow-report-dialog{max-height:94dvh}
}
@media(max-width:360px){.flow-metric-button{flex-basis:calc(50% - 6px)}}


/* FLOW entity interactions: meaningful cards, linked lists, and contextual details. */
.flow-entity-card{font:inherit;text-align:left;width:100%;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;cursor:pointer;min-height:148px;touch-action:manipulation}
.flow-entity-card .round{flex:none}
.flow-entity-card b,.flow-entity-card>span{overflow-wrap:anywhere}
.flow-entity-card .flow-card-hint{color:var(--teal);font-size:12px;margin-top:auto;padding-top:10px;font-weight:800}
.flow-entity-card:hover,.flow-quote-open:hover,.flow-price-button:hover,.flow-plan-stat:hover{border-color:var(--teal);background:var(--light)}
.flow-entity-card:focus-visible,.flow-quote-open:focus-visible,.flow-price-button:focus-visible,.flow-plan-stat:focus-visible,.flow-linked-item:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.flow-entity-card:active,.flow-quote-open:active,.flow-price-button:active,.flow-plan-stat:active{transform:scale(.99)}
.flow-quote-open{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:99px;padding:20px;border:0;border-bottom:1px solid var(--line);font:inherit;text-align:left;background:white;color:var(--ink);gap:12px;cursor:pointer;touch-action:manipulation}
.flow-quote-open:last-child{border-bottom:0}
.flow-quote-open>span:first-child{display:flex;flex-direction:column;gap:7px;min-width:0}
.flow-quote-open .flow-card-hint{font-size:12px;font-weight:750;color:var(--teal);white-space:nowrap}
.flow-price-button{display:flex;align-items:flex-start;flex-direction:column;text-align:left;width:100%;border:1px solid var(--line);border-radius:14px;background:white;padding:17px;gap:4px;color:var(--ink);margin:12px 0;cursor:pointer;touch-action:manipulation}
.flow-price-button .num{font-size:clamp(30px,6vw,50px);line-height:1.15}
.flow-price-button .flow-card-hint{font-size:12px;color:var(--teal);margin-top:7px;font-weight:800}
.flow-plan-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.flow-plan-stat{display:flex;flex-direction:column;text-align:left;gap:7px;min-height:106px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--light);font:inherit;color:var(--ink);cursor:pointer;touch-action:manipulation}
.flow-plan-stat>span{font-size:12px;color:var(--muted)}
.flow-plan-stat>strong{font-size:21px;font-weight:850}
.flow-plan-stat>small{font-size:12px;color:var(--teal);margin-top:auto}
.flow-entity-dialog{width:min(540px,100%);max-width:none;height:100dvh;max-height:100dvh;left:auto;right:0;top:0;bottom:0;margin:0;border-radius:22px 0 0 22px;padding:19px 24px calc(24px + env(safe-area-inset-bottom))}
.flow-entity-dialog .flow-sheet-top{position:sticky;top:-19px;background:var(--card);z-index:2;padding:10px 0}
.flow-related-section{margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
.flow-related-section>h3{display:flex;align-items:center;justify-content:space-between;font-size:16px;letter-spacing:-.025em;color:var(--ink);margin:0 0 9px}
.flow-related-section>h3 span{color:var(--muted);font-size:12px}
.flow-linked-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.flow-linked-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;padding:12px 8px;min-height:58px;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation}
.flow-linked-item:hover{background:var(--light)}
.flow-linked-item>span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.flow-linked-item strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.flow-linked-item small{font-size:12px;color:var(--muted)}
.flow-linked-item>span:last-child{color:var(--teal);font-size:19px}
.flow-static-item{cursor:default}
.flow-static-item>strong{white-space:nowrap}
.flow-entity-dialog .flow-detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){
 .flow-entity-dialog{width:100%;max-width:none;height:auto;min-height:35dvh;max-height:92dvh;left:0;right:0;top:auto;bottom:0;border-radius:24px 24px 0 0;padding:12px 19px calc(25px + env(safe-area-inset-bottom))}
 .flow-entity-dialog .flow-sheet-top{top:-12px}
 .flow-entity-card{min-height:137px}
 .flow-quote-open{padding:16px 12px}
 .flow-quote-open .flow-card-hint{font-size:11px}
}
@media(max-width:375px){
 .flow-plan-stats{grid-template-columns:1fr}
 .flow-entity-dialog .flow-detail-fields{grid-template-columns:1fr}
 .flow-quote-open{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
 .flow-entity-card,.flow-quote-open,.flow-price-button,.flow-plan-stat{transition:none!important;transform:none!important}
}

/* Subscription state: read-only is a server-enforced mode; this is visual guidance. */
.flow-subscription-banner{margin:12px 0 18px;padding:12px 15px;border-radius:12px;border:1px solid var(--line);background:var(--light);color:var(--ink);font-size:13px;line-height:1.55}
.flow-subscription-banner[hidden]{display:none!important}
.flow-subscription-banner[data-mode="read_only"]{border-color:var(--teal);border-left:4px solid var(--teal);font-weight:700}
[data-access="read_only"] button:disabled{cursor:not-allowed;opacity:.56}
@media(max-width:760px){.flow-subscription-banner{margin:8px 0 12px;padding:9px 11px;font-size:12px}}
