
:root{--green:#078c47;--green2:#05a65a;--deep:#075b35;--mint:#eaf8f0;--ink:#123047;--muted:#718397;--line:#dce6e9;--bg:#f3f7f6;--blue:#1678dc;--orange:#ff821a;--red:#e54b4b;--purple:#7854c7}
*{box-sizing:border-box} html{background:var(--bg)} body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)} button,input,select,textarea{font:inherit} button{touch-action:manipulation}.hidden{display:none!important}
/* splash */
.splash-screen{position:fixed;inset:0;z-index:9999;background:#07190f;overflow:hidden;opacity:1;transition:opacity .45s ease}.splash-screen.splash-out{opacity:0;pointer-events:none}.splash-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#07190f}.skip-splash{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;z-index:3;border:1px solid #ffffff8c;background:#0005;color:#fff;border-radius:999px;padding:9px 14px;font-weight:800}.splash-progress-wrap{position:absolute;left:50%;bottom:max(30px,calc(env(safe-area-inset-bottom) + 18px));transform:translateX(-50%);z-index:3;width:min(72vw,420px)}.splash-progress{height:8px;border-radius:999px;overflow:hidden;background:#ffffff55;border:1px solid #ffffff77}.splash-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#69db54,#07984b);transition:width .08s linear}
/* login */
.login-body{min-height:100vh;background:linear-gradient(135deg,#f7fbf8,#e9f6ee);display:grid;place-items:center;padding:0}.login-layout{width:min(100%,1180px);min-height:760px;background:#fff;display:grid;grid-template-columns:1.08fr .92fr;overflow:hidden;box-shadow:0 28px 70px #12304724}.login-hidden{opacity:0;pointer-events:none}.login-in{animation:fadein .42s ease both}@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.login-hero{position:relative;overflow:hidden;background:linear-gradient(145deg,#078c47 0 22%,#ecf8f1 22% 100%);min-height:760px}.login-hero:before,.login-hero:after{content:"";position:absolute;border-radius:50%;border:34px solid #6cc84b55;width:560px;height:220px;transform:rotate(-33deg)}.login-hero:before{left:-250px;top:-80px}.login-hero:after{right:-280px;bottom:-90px}.login-brand-top{position:absolute;top:44px;right:44px;z-index:2;text-align:center}.login-logo{width:230px;max-height:120px;object-fit:contain}.login-brand-top p{margin:0;font-weight:900;color:#1d2c34}.login-mascot{position:absolute;left:2%;bottom:0;width:88%;height:82%;object-fit:contain;object-position:left bottom;mix-blend-mode:multiply}.login-access-card{align-self:center;margin:44px;padding:44px;border-radius:28px;background:#fff}.login-title-wrap{text-align:center}.login-user-icon{display:grid;place-items:center;margin:0 auto 10px;width:48px;height:48px;border-radius:50%;background:#daf2e4;color:var(--green)}.login-title-wrap h1{font-size:40px;line-height:1;margin:0;color:#096b40}.login-title-wrap p{font-size:19px;margin:8px 0 36px;color:#165b45}.access-copy{text-align:center;margin-bottom:26px}.access-copy h2{font-size:25px;margin:0 0 7px}.access-copy p{margin:0;color:var(--muted)}.login-form label{display:block;font-weight:800;margin-bottom:8px}.login-input-wrap{display:grid;grid-template-columns:42px 1fr;align-items:center;border:1.5px solid #ccd9df;border-radius:14px;min-height:58px;box-shadow:0 4px 15px #1230470a}.login-input-wrap span{text-align:center;color:#60768b}.login-input-wrap input{width:100%;border:0;outline:0;background:transparent;font-size:18px;padding:16px 14px 16px 0;min-width:0}.login-submit{width:100%;min-height:58px;margin-top:18px;border:0;border-radius:13px;background:linear-gradient(135deg,#078c47,#05aa58);color:#fff;font-size:19px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer}.login-status{min-height:20px;color:#c0392b;text-align:center}.login-values{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:44px;color:#087947;font-size:12px}.login-values span{display:flex;gap:4px;align-items:center}
/* app */
.app-body{min-height:100vh}.app-shell{width:min(100%,1280px);margin:0 auto;min-height:100vh;background:#fff;box-shadow:0 0 42px #17364c16}.app-header{min-height:104px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(105deg,#fff 0 19%,#078c47 19% 100%);border-bottom:1px solid #dbe7e2}.brand-lockup{display:flex;align-items:center;gap:14px;min-width:0}.mascot-badge{width:118px;height:80px;overflow:hidden;display:flex;align-items:flex-end;justify-content:center}.gari-image{width:118px;height:92px;object-fit:contain;mix-blend-mode:multiply}.valor-logo{width:145px;height:78px;object-fit:contain}.brand-copy{color:#fff;display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-size:30px;white-space:nowrap}.brand-copy span{font-size:15px;opacity:.95}.header-actions{display:flex;align-items:center;gap:20px;color:#fff}.header-time{display:flex;flex-direction:column;text-align:right;font-size:13px}.header-time b{font-size:20px}.menu-button{width:50px;height:50px;border:1px solid #ffffff55;border-radius:14px;background:#ffffff1f;color:#fff;font-size:28px;cursor:pointer}.content-wrap{padding:22px 28px 42px}.page-heading{display:flex;gap:14px;align-items:center;margin-bottom:16px}.page-icon{width:46px;height:46px;border-radius:14px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:26px}.page-heading h1{margin:0;font-size:28px}.page-heading p{margin:3px 0 0;color:var(--muted)}.steps-strip{display:flex;align-items:center;gap:8px;overflow:auto;padding:8px 0 18px;color:#788794;font-size:13px}.steps-strip span{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#f1f4f5}.steps-strip span.active{background:#dff5e8;color:#087746}.steps-strip i{font-style:normal;color:#aab4ba}.report-form{display:grid;gap:18px}.report-panel{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 6px 24px #17364c0b}.panel-title{min-height:44px;display:flex;align-items:center;gap:10px;padding:6px 15px;background:linear-gradient(90deg,#e2f6ea,#f5fbf7)}.panel-title span{width:31px;height:31px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:900}.panel-title h2{font-size:16px;margin:0;color:#087646}.report-grid{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.report-grid label{font-size:12px;font-weight:800;color:#3b4e5b}.report-grid label.full{grid-column:1/-1}.report-grid input,.report-grid select{display:block;width:100%;min-width:0;margin-top:6px;border:1px solid #d3dfe3;border-radius:10px;background:#fbfcfc;padding:12px 13px;color:#203849;min-height:45px}.report-grid input[readonly]{background:#f3f7f7;color:#526776}.categories{padding:15px;display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.category{min-height:95px;border:1px solid #e1e8ea;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;background:#fbfcfc;transition:.16s}.category input{display:none}.category-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:25px}.category b{font-size:13px}.water .category-icon{background:#e3f3ff}.bathroom .category-icon{background:#eee7ff}.cleaning .category-icon{background:#e0f5e8}.structure .category-icon{background:#fff0df}.materials .category-icon{background:#ffe6e6}.others .category-icon{background:#e9eef1}.category:has(input:checked){border-color:var(--green);box-shadow:0 0 0 3px #078c4720;background:#f0fbf4;transform:translateY(-1px)}.conditions-box{margin:0 15px 15px;padding:14px;border-radius:13px;background:#f7faf9;border:1px solid #e0eae5}.conditions-box h3{font-size:14px;margin:0 0 10px}.condition-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.condition-item{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;background:#fff;border:1px solid #dae3e5;border-radius:10px;font-size:13px;cursor:pointer}.condition-item input{accent-color:var(--green);margin-top:2px}.textarea-shell{margin:15px;position:relative;border:1px solid #d6e0e4;border-radius:13px;overflow:hidden}.textarea-icon{position:absolute;left:14px;top:15px;color:#768a98}.textarea-shell textarea{width:100%;min-height:130px;border:0;resize:vertical;outline:0;padding:14px 16px 30px 42px;line-height:1.5}.char-count{position:absolute;right:12px;bottom:8px;color:#82919a;font-size:12px}.media-actions{padding:15px 15px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.media-btn{min-height:66px;border:1px solid #d6e2e5;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer}.media-btn input{display:none}.photo-btn{background:#edf7ff;color:#116fc2}.audio-btn{background:#eefaf2;color:#087b42}.ai-audio-note{margin:12px 15px;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:13px;background:#f4f1ff;color:#5b43aa}.ai-audio-note>span{font-size:26px}.ai-audio-note b{display:block}.ai-audio-note small{margin:3px 0 0;color:#6c628b}.location-btn{margin:0 15px 15px;width:calc(100% - 30px);min-height:52px;border:1px solid #cae2f6;border-radius:12px;background:#edf7ff;color:#106fbd;font-weight:800;cursor:pointer}#locationStatus{padding:0 15px 12px}.review-card{border:1px solid #dbe6e1;border-radius:17px;background:linear-gradient(90deg,#f5fbf7,#fff);padding:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.review-card>div:first-child{display:flex;flex-direction:column}.review-card>div:first-child span{font-size:13px;color:var(--muted);margin-top:3px}.review-actions{display:flex;gap:10px}.review-btn{min-height:48px;border-radius:11px;padding:0 16px;display:flex;align-items:center;gap:8px;font-weight:850;cursor:pointer}.preview-btn{border:0;background:#1678dc;color:#fff}.edit-btn{border:0;background:#ff8a1e;color:#fff}.submit-btn{width:100%;min-height:62px;border:0;border-radius:15px;background:linear-gradient(135deg,#078c47,#05ae5a);color:#fff;display:flex;align-items:center;justify-content:center;gap:11px;font-size:19px;font-weight:900;box-shadow:0 10px 24px #078c4730;cursor:pointer}.result{padding:16px;border-radius:13px;background:#effaf3;border:1px solid #cce9d6}.pdf-link{display:inline-flex;margin-top:10px;padding:11px 14px;border-radius:10px;background:#087c43;color:#fff;text-decoration:none;font-weight:800}
@media(max-width:850px){.login-layout{grid-template-columns:1fr;min-height:100vh;box-shadow:none}.login-hero{min-height:390px}.login-brand-top{top:24px;right:20px}.login-logo{width:160px}.login-mascot{width:82%;height:86%}.login-access-card{margin:-28px 16px 18px;z-index:3;position:relative;padding:28px 22px;border-radius:24px;box-shadow:0 12px 35px #1230471c}.login-title-wrap h1{font-size:32px}.login-values{margin-top:28px}.app-header{background:linear-gradient(120deg,#fff 0 34%,#078c47 34% 100%);padding:9px 12px}.mascot-badge{width:72px;height:62px}.gari-image{width:78px;height:64px}.valor-logo{width:92px;height:56px}.brand-copy strong{font-size:20px}.brand-copy span{font-size:11px}.header-time{display:none}.content-wrap{padding:16px 14px 30px}.categories{grid-template-columns:repeat(3,1fr)}.condition-options{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.report-grid label.full{grid-column:auto}.review-card{align-items:stretch;flex-direction:column}.review-actions{display:grid;grid-template-columns:1fr 1fr}.review-btn{justify-content:center}.page-heading h1{font-size:23px}}
@media(max-width:430px){.login-hero{min-height:340px}.login-brand-top{right:12px}.login-logo{width:132px}.login-brand-top p{font-size:12px}.login-access-card{margin-top:-22px}.login-title-wrap h1{font-size:29px}.login-values{justify-content:center}.brand-copy{display:none}.categories{grid-template-columns:repeat(2,1fr)}.media-actions{grid-template-columns:1fr}.review-actions{grid-template-columns:1fr}.steps-strip b{display:none}.panel-title h2{font-size:14px}.content-wrap{padding-left:10px;padding-right:10px}.app-header{min-height:76px}.page-heading p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.login-in{animation:none}}


/* v8 - fluxo simples, registros e compartilhamento por QR */
.records-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  background:rgba(0,0,0,.08);
}
.records-toolbar{margin:8px 0 18px}
.records-toolbar input{
  width:100%;
  min-height:48px;
  border:1px solid #d7e4dd;
  border-radius:14px;
  padding:0 14px;
  font-size:16px;
  background:#fff;
}
.records-list{display:grid;gap:14px}
.record-card{
  background:#fff;
  border:1px solid #dce7e1;
  border-radius:18px;
  padding:16px;
}
.record-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.record-top strong{display:block;font-size:17px;color:#0c5c36}
.record-top small{display:block;margin-top:4px;color:#667a70}
.record-chip{
  padding:6px 10px;
  border-radius:999px;
  background:#e9f7ef;
  color:#087a42;
  font-weight:800;
  font-size:12px;
}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.record-grid span{display:flex;flex-direction:column;gap:3px;color:#31465a}
.record-grid b{font-size:12px;color:#667a70}
.record-card p{margin:10px 0 14px;color:#31465a}
.empty-state{
  min-height:180px;
  border:1px dashed #b8cbc1;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  color:#64776e;
}
.share-shell{
  max-width:560px;
  margin:0 auto;
  padding:24px 18px;
}
.share-card{
  background:#fff;
  border:1px solid #dce7e1;
  border-radius:28px;
  padding:26px;
  text-align:center;
}
.share-logo{width:150px;max-width:45%;object-fit:contain}
.share-mascot{display:block;width:180px;max-width:55%;margin:8px auto 0}
.share-card h1{margin:4px 0;color:#075f38;font-size:30px}
.share-card p{color:#52675d;margin:4px 0 18px}
.qr-image{display:block;width:min(320px,85vw);margin:0 auto;border-radius:18px;background:#fff}
.share-url{margin-top:16px;word-break:break-all;font-weight:700;color:#075f38}
.agent-email-status{display:block;margin-top:12px;color:#61736a}
@media(max-width:700px){
  .header-time{display:none}
  .records-link b{display:none}
  .records-link{width:44px;padding:0}
  .record-grid{grid-template-columns:1fr}
}


/* =========================================================
   v9 - MOBILE FIRST FIXO
   Mantém o mesmo conteúdo, mas sempre abre no formato celular.
   ========================================================= */
html{
  background:#eef5f1;
}
body.app-body,
body.login-body{
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0 18%, transparent 48%),
    linear-gradient(180deg,#edf6f1 0%,#e6f0eb 100%);
}

/* APP: nunca estica como desktop */
.app-shell{
  width:min(100%,430px)!important;
  max-width:430px!important;
  min-height:100vh;
  margin:0 auto!important;
  background:#fff;
  box-shadow:0 18px 60px rgba(13,69,43,.16);
  overflow:hidden;
}
.app-header{
  min-height:88px!important;
  padding:10px 12px!important;
  background:linear-gradient(135deg,#ffffff 0 33%,#078c47 33% 100%)!important;
  gap:8px!important;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 4px 18px rgba(17,66,46,.10);
}
.brand-lockup{
  gap:7px!important;
}
.mascot-badge{
  width:52px!important;
  height:58px!important;
}
.gari-image{
  width:58px!important;
  height:58px!important;
}
.valor-logo{
  width:72px!important;
  height:48px!important;
}
.brand-copy{
  display:none!important;
}
.header-actions{
  gap:7px!important;
  margin-left:auto;
}
.header-time{
  display:none!important;
}
.records-link{
  min-width:44px;
  width:44px;
  height:44px;
  padding:0!important;
  border:1px solid rgba(255,255,255,.44);
  border-radius:13px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  color:#fff!important;
  text-decoration:none;
  background:rgba(255,255,255,.12);
  font-size:20px;
}
.records-link b{
  display:none!important;
}
.menu-button{
  width:44px!important;
  height:44px!important;
  border-radius:13px!important;
  font-size:23px!important;
}
.content-wrap{
  padding:14px 10px 30px!important;
}
.page-heading{
  gap:10px!important;
  margin:4px 4px 14px!important;
}
.page-icon{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
}
.page-heading h1{
  font-size:22px!important;
}
.page-heading p{
  font-size:12.5px!important;
  line-height:1.35;
}
.report-form{
  gap:13px!important;
}
.report-panel{
  border-radius:17px!important;
  box-shadow:0 7px 22px rgba(31,74,55,.07)!important;
}
.panel-title{
  min-height:48px!important;
  padding:7px 12px!important;
  background:linear-gradient(90deg,#078c47,#0ca659)!important;
}
.panel-title span{
  background:#fff!important;
  color:#078c47!important;
  width:32px!important;
  height:32px!important;
}
.panel-title h2{
  color:#fff!important;
  font-size:14px!important;
  letter-spacing:.1px;
}
.report-grid{
  grid-template-columns:1fr!important;
  padding:13px!important;
  gap:11px!important;
}
.report-grid label.full{
  grid-column:auto!important;
}
.report-grid input,
.report-grid select{
  min-height:50px!important;
  border-radius:12px!important;
  font-size:15px!important;
  padding:12px!important;
  background:#fff!important;
}
.report-grid input[readonly]{
  background:#f5f8f7!important;
}
.categories{
  grid-template-columns:repeat(2,1fr)!important;
  padding:13px!important;
  gap:9px!important;
}
.category{
  min-height:104px!important;
  border-radius:15px!important;
}
.category-icon{
  width:46px!important;
  height:46px!important;
  font-size:27px!important;
}
.category b{
  font-size:15px!important;
}
.category:has(input:checked){
  border:2px solid #078c47!important;
  box-shadow:0 0 0 3px rgba(7,140,71,.10)!important;
}
.conditions-box{
  margin:0 13px 13px!important;
  padding:13px!important;
  border-radius:15px!important;
  background:#eff8f3!important;
}
.conditions-box h3{
  color:#087542;
  font-size:16px!important;
  margin-bottom:10px!important;
}
.condition-options{
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.condition-item{
  min-height:52px;
  align-items:center!important;
  border-radius:12px!important;
  padding:11px 12px!important;
  font-size:14px!important;
}
.condition-item:has(input:checked){
  border-color:#078c47!important;
  background:#e7f7ed!important;
  color:#075e38!important;
  font-weight:800;
}
.textarea-shell{
  margin:13px!important;
  border-radius:14px!important;
}
.textarea-shell textarea{
  min-height:140px!important;
  font-size:15px!important;
}
.media-actions{
  grid-template-columns:1fr!important;
  padding:13px 13px 0!important;
}
.media-btn{
  min-height:58px!important;
  border-radius:13px!important;
  font-size:15px;
}
.ai-audio-note{
  margin:10px 13px!important;
  border-radius:13px!important;
}
.location-btn{
  margin:0 13px 13px!important;
  width:calc(100% - 26px)!important;
  min-height:54px!important;
}
.review-card{
  flex-direction:column!important;
  align-items:stretch!important;
  padding:14px!important;
  border-radius:16px!important;
}
.review-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
}
.review-btn{
  min-height:52px!important;
  justify-content:center!important;
}
.submit-btn{
  min-height:60px!important;
  font-size:17px!important;
  border-radius:15px!important;
}

/* LOGIN: sempre formato celular, inclusive no desktop */
.login-body{
  min-height:100vh!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:0!important;
}
.login-layout{
  width:min(100%,430px)!important;
  max-width:430px!important;
  min-height:100vh!important;
  display:block!important;
  background:#fff!important;
  box-shadow:0 18px 60px rgba(13,69,43,.16)!important;
  overflow:hidden!important;
}
.login-hero{
  min-height:390px!important;
  height:390px!important;
  background:
    linear-gradient(145deg,#078c47 0 18%,transparent 18%),
    linear-gradient(180deg,#f2fbf6 0%,#e7f6ed 100%)!important;
}
.login-brand-top{
  top:28px!important;
  right:22px!important;
}
.login-logo{
  width:150px!important;
  max-height:82px!important;
}
.login-brand-top p{
  font-size:12px!important;
}
.login-mascot{
  left:-4%!important;
  bottom:-2px!important;
  width:96%!important;
  height:82%!important;
  object-fit:contain!important;
  object-position:left bottom!important;
}
.login-access-card{
  position:relative!important;
  z-index:5!important;
  margin:-28px 16px 18px!important;
  padding:28px 22px 24px!important;
  border-radius:26px!important;
  box-shadow:0 14px 36px rgba(24,75,52,.16)!important;
}
.login-title-wrap h1{
  font-size:30px!important;
}
.login-title-wrap p{
  font-size:16px!important;
  margin:7px 0 25px!important;
}
.access-copy h2{
  font-size:21px!important;
}
.access-copy p{
  font-size:14px!important;
}
.login-input-wrap{
  min-height:56px!important;
  border-radius:13px!important;
}
.login-submit{
  min-height:56px!important;
  border-radius:13px!important;
  font-size:18px!important;
}
.login-values{
  margin-top:28px!important;
  justify-content:center!important;
  gap:12px!important;
  font-size:11px!important;
}

/* Registros/Compartilhar também seguem largura de celular */
.records-shell,
.share-shell{
  max-width:430px!important;
  width:100%!important;
  margin:0 auto!important;
}

/* Desktop continua exibindo exatamente o mesmo tamanho mobile */
@media(min-width:431px){
  .app-shell,
  .login-layout{
    border-left:1px solid #dbe8e1;
    border-right:1px solid #dbe8e1;
  }
}


/* =========================================================
   v10 - LOGO TRANSPARENTE / AJUSTE FINO
   ========================================================= */
.valor-logo,
.login-logo,
.share-logo,
.brand-logo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.05));
}
.valor-logo{
  width:82px!important;
  height:54px!important;
  padding:0!important;
}
.login-logo{
  width:168px!important;
  height:auto!important;
  max-height:none!important;
}
.share-logo{
  width:138px!important;
  height:auto!important;
}
.brand-logo{
  width:108px!important;
  height:auto!important;
}


/* =========================================================
   v11 - APP SEMPRE EM TAMANHO DE CELULAR NO NAVEGADOR
   ========================================================= */
:root{
  --mobile-app-width: 390px;
}
html, body{
  width:100%;
  min-height:100%;
  margin:0;
}
body.app-body,
body.login-body{
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  overflow-x:hidden!important;
}
.app-shell,
.login-layout,
.records-shell,
.share-shell{
  width:100%!important;
  max-width:390px!important;
  min-width:0!important;
  margin:0 auto!important;
}
@media (min-width: 391px){
  .app-shell,
  .login-layout,
  .records-shell,
  .share-shell{
    width:390px!important;
    max-width:390px!important;
  }
}
@media (max-width: 390px){
  .app-shell,
  .login-layout,
  .records-shell,
  .share-shell{
    width:100%!important;
    max-width:100%!important;
  }
}
.ponto-outro-wrap{
  grid-column:1 / -1;
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:2px;
}
.ponto-outro-wrap.hidden{
  display:none!important;
}
.ponto-outro-wrap label{
  font-size:13px;
  font-weight:800;
  color:#173247;
}
.ponto-outro-wrap input{
  width:100%;
  min-height:50px;
  border:1px solid #d5e1de;
  border-radius:12px;
  padding:12px;
  font-size:15px;
  box-sizing:border-box;
}


/* =========================================================
   v12 - MULTI CLASSIFICAÇÃO
   ========================================================= */
.category{
  position:relative;
}
.category input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.category:has(input[type="checkbox"]:checked)::after{
  content:"✓";
  position:absolute;
  top:8px;
  right:8px;
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#078c47;
  color:#fff;
  font-size:15px;
  font-weight:900;
  box-shadow:0 2px 7px rgba(7,140,71,.25);
}
.category:has(input[type="checkbox"]:checked){
  border:2px solid #078c47!important;
  box-shadow:0 0 0 3px rgba(7,140,71,.10)!important;
  transform:translateY(-1px);
}
.condition-options{
  display:block!important;
}
.condition-group{
  padding:10px 0 4px;
}
.condition-group + .condition-group{
  border-top:1px solid #d9e9e0;
  margin-top:9px;
  padding-top:14px;
}
.condition-group-title{
  font-size:14px;
  font-weight:900;
  color:#078c47;
  margin:0 0 8px;
}
.condition-group-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.condition-item input[type="checkbox"]{
  width:20px;
  height:20px;
  accent-color:#078c47;
  flex:0 0 auto;
}
.condition-item:has(input[type="checkbox"]:checked){
  background:#e6f6ec!important;
  border-color:#078c47!important;
  color:#075f38!important;
  font-weight:800;
}


/* =========================================================
   v13 - LOGO OFICIAL ENVIADO PELO USUÁRIO
   ========================================================= */
.valor-logo,
.login-logo,
.share-logo,
.brand-logo{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
}
.valor-logo{
  width:74px!important;
  height:74px!important;
}
.login-logo{
  width:150px!important;
  height:150px!important;
  max-height:none!important;
}
.share-logo{
  width:118px!important;
  height:118px!important;
}
.brand-logo{
  width:88px!important;
  height:88px!important;
}


/* =========================================================
   v14 - VIEWPORT MOBILE FORÇADO DESDE O SPLASH
   ========================================================= */
:root{
  --nr38-mobile-width:390px;
  --nr38-mobile-max-height:844px;
}

html{
  background:#e7f1ec!important;
}

body.login-body,
body.app-body{
  margin:0!important;
  min-height:100dvh!important;
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  overflow-x:hidden!important;
  background:
    radial-gradient(circle at 50% 12%,#ffffff 0 18%,transparent 44%),
    linear-gradient(180deg,#eef7f2,#e4eee9)!important;
}

/* Moldura real de celular no desktop */
.login-layout,
.app-shell,
.records-shell,
.share-shell{
  width:min(100vw,var(--nr38-mobile-width))!important;
  max-width:var(--nr38-mobile-width)!important;
  min-width:0!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  background:#fff!important;
  border-radius:0!important;
  box-shadow:0 0 42px rgba(15,65,43,.16)!important;
  overflow-x:hidden!important;
}

/* O vídeo inicial também fica preso na mesma largura */
.splash-screen{
  position:fixed!important;
  top:0!important;
  bottom:0!important;
  left:50%!important;
  right:auto!important;
  width:min(100vw,var(--nr38-mobile-width))!important;
  max-width:var(--nr38-mobile-width)!important;
  height:100dvh!important;
  transform:translateX(-50%)!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#07190f!important;
  box-shadow:0 0 42px rgba(15,65,43,.24)!important;
}
.splash-screen.splash-out{
  transform:translateX(-50%)!important;
}
.splash-video{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.splash-progress-wrap{
  width:72%!important;
  max-width:280px!important;
}

/* No computador, nada passa da largura de celular */
@media (min-width:391px){
  .login-layout,
  .app-shell,
  .records-shell,
  .share-shell{
    width:390px!important;
    max-width:390px!important;
  }
  .splash-screen{
    width:390px!important;
    max-width:390px!important;
  }
}

/* Em celulares menores, ocupa exatamente a tela disponível */
@media (max-width:390px){
  .login-layout,
  .app-shell,
  .records-shell,
  .share-shell,
  .splash-screen{
    width:100vw!important;
    max-width:100vw!important;
  }
}

/* Acesso protegido aos registros */
.records-password-screen{
  min-height:calc(100dvh - 90px);
  padding:36px 22px 28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    linear-gradient(180deg,#f5fbf7,#ffffff);
}
.records-password-screen.hidden{
  display:none!important;
}
.records-lock-icon{
  width:68px;
  height:68px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e4f6eb;
  font-size:30px;
}
.records-password-screen h1{
  margin:0;
  text-align:center;
  color:#087545;
  font-size:25px;
}
.records-password-screen p{
  margin:8px 0 26px;
  text-align:center;
  color:#6c7f8b;
}
#recordsPasswordForm label{
  display:block;
  font-weight:900;
  color:#173247;
  margin-bottom:7px;
}
.records-password-input{
  display:grid;
  grid-template-columns:1fr 48px;
  align-items:center;
  min-height:56px;
  border:1.5px solid #cfded8;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  margin-bottom:14px;
}
.records-password-input input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  padding:15px 14px;
  font-size:16px;
  background:transparent;
}
.records-password-input button{
  height:56px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.records-exit-btn{
  width:100%;
  min-height:50px;
  margin-top:14px;
  border:1px solid #d9e5df;
  border-radius:13px;
  background:#fff;
  color:#6b7a82;
  font-weight:800;
  cursor:pointer;
}


/* =========================================================
   v17 - REGISTRO COMPLETO NA TELA
   ========================================================= */
.review-card,
.preview-btn,
.edit-btn{
  display:none!important;
}

.record-summary{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:10px 0 12px;
  color:#536874;
  font-size:13px;
}

.record-detail-btn{
  width:100%;
  min-height:46px;
  border:1px solid #bcdccc;
  border-radius:12px;
  background:#edf9f2;
  color:#087746;
  font-weight:900;
  cursor:pointer;
}

.record-detail{
  margin-top:14px;
  border-top:1px solid #dce7e2;
  padding-top:4px;
}

.record-detail.hidden{
  display:none!important;
}

.record-detail-section{
  padding:14px 2px;
  border-bottom:1px solid #e7eeeb;
}

.record-detail-section:last-child{
  border-bottom:0;
}

.record-detail-section h3{
  margin:0 0 10px;
  font-size:14px;
  color:#087746;
}

.record-detail-row{
  display:grid;
  grid-template-columns:118px 1fr;
  gap:10px;
  padding:7px 0;
  font-size:13px;
}

.record-detail-row b{
  color:#4f6673;
}

.record-detail-row span{
  color:#172f3e;
  overflow-wrap:anywhere;
}

.detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.detail-tags span{
  display:inline-flex;
  padding:7px 9px;
  border-radius:999px;
  background:#eaf7ef;
  border:1px solid #cce7d7;
  color:#087746;
  font-size:12px;
  font-weight:800;
}

.detail-text{
  margin:0;
  white-space:pre-wrap;
  line-height:1.55;
  font-size:13px;
  color:#263e4c;
}

.record-media-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}

.media-load-btn{
  width:100%;
  min-height:46px;
  border:1px solid #cfe0e7;
  border-radius:11px;
  background:#f7fbfd;
  color:#17628e;
  font-weight:800;
  cursor:pointer;
}

.record-photo{
  width:100%;
  max-height:380px;
  object-fit:contain;
  border-radius:12px;
  border:1px solid #dbe6e1;
  background:#f4f7f6;
}

.record-audio{
  width:100%;
}

.transcription-box{
  margin-top:11px;
  padding:12px;
  border-radius:11px;
  background:#f7f6fc;
  border:1px solid #e4e0f2;
}

.transcription-box b{
  display:block;
  margin-bottom:6px;
  color:#5c4b96;
}

.transcription-box p{
  margin:0;
  white-space:pre-wrap;
  line-height:1.5;
  font-size:13px;
}

.detail-muted{
  display:block;
  color:#7a8b94;
  font-size:13px;
}


/* =========================================================
   v18 - AÇÕES DO REGISTRO + PDF PROTEGIDO
   ========================================================= */
.record-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.record-pdf-btn{
  width:100%;
  min-height:46px;
  border:1px solid #d4dce8;
  border-radius:12px;
  background:#f7f9fc;
  color:#314d72;
  font-weight:900;
  cursor:pointer;
}

.record-pdf-btn:disabled{
  opacity:.6;
  cursor:wait;
}

@media (max-width:340px){
  .record-actions{
    grid-template-columns:1fr;
  }
}
