@font-face{font-family:Jura;src:url(jura.ttf) format('truetype');font-weight:300 700;font-display:swap}
:root{font:500 19px/1.5 Jura,Arial,sans-serif;color:#fff;background:#0c1513;color-scheme:dark;--green:#b5df88;--line:#2a3c34;--forms:#9dccff;--records:#ceb6ff;--sync:#f5ce87;--button-radius:12px}
*{box-sizing:border-box}
html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}
/* O iPhone informa a área ocupada pela barra de status e pelo indicador de início. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
#root{padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);background:#0c1712}
button,input,textarea,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
h1,h2,h3,p{margin:0}
h1{font-size:32px;line-height:1.15;font-weight:700;overflow-wrap:anywhere}
h2{font-size:27px;line-height:1.3;font-weight:700}
h3{font-size:24px;line-height:1.35;font-weight:700}
p{margin:13px 0}
small{font-size:16px;color:#fff}
.icon{display:block;width:25px;height:25px;flex-shrink:0;pointer-events:none}
.logo{width:42px;aspect-ratio:1;flex-shrink:0;background:#fff;border-radius:50%;display:grid;place-items:center;overflow:hidden}
.logo img{width:79%;height:65%;object-fit:contain}
.logo.large{width:140px}
.shell{height:100%;display:flex;flex-direction:column;min-width:0;--section:var(--green);--section-line:#3d5439;--section-fill:#142019;--section-soft:#1d3022}
.theme-forms{--section:var(--forms);--section-line:#304859;--section-fill:#111e24;--section-soft:#1d3242}
.theme-records{--section:var(--records);--section-line:#443d58;--section-fill:#191c27;--section-soft:#30293f}
.header{flex-shrink:0;min-height:70px;padding:10px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;background:#0c1712}
.header .brand{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.brand strong{font-size:18px;letter-spacing:.14em;font-weight:700;color:var(--green)}
.net{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;white-space:nowrap;color:#fff}
.net i{width:7px;height:7px;border-radius:50%;background:var(--green)}
.net.offline i{background:#ffce87}
.menu-toggle,.icon-button{width:46px;height:46px;min-width:46px;display:grid;place-items:center;border:0;border-radius:12px;background:#17251e;color:#fff;padding:10px}
.menu-toggle{background:transparent;width:44px;height:44px;min-width:44px}
.menu-toggle.selected{color:var(--green);background:#1c3023}
.content{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;min-width:0;padding:24px 18px 30px;scrollbar-width:thin;scrollbar-color:#617f4f #0c1513}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}
.page-heading .icon-button{align-self:flex-start}
.page-meta{font-size:16px;line-height:1.4;font-weight:600;margin:7px 0 0}
.page-panel{padding:20px 16px;border:1px solid var(--section-line);border-radius:16px;background:var(--section-fill);margin:0 0 30px;min-width:0}
.page-panel .page-heading{margin:0;gap:12px}
.page-panel .page-heading h1{color:#fff}
.page-panel .icon-button{color:var(--sync);background:#30291e;border:1px solid #5a4b32;border-radius:var(--button-radius)}
.bottom-nav{flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 6px 9px;gap:4px;border-top:1px solid var(--line);background:#0c1712}
.bottom-nav button{position:relative;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 2px;background:transparent;border:1px solid transparent;border-radius:var(--button-radius);color:#fff;font-size:14px;font-weight:700;line-height:1.3;min-width:0;--nav:var(--green);--nav-fill:#1a2b1d;--nav-line:#3d5439}
.bottom-nav .nav-forms{--nav:var(--forms);--nav-fill:#172b39;--nav-line:#3c5b72}
.bottom-nav .nav-records{--nav:var(--records);--nav-fill:#292339;--nav-line:#514367}
.bottom-nav .nav-sync{--nav:var(--sync);color:var(--sync);border-color:#473e2c;background:#201f18}
.bottom-nav button.active{color:var(--nav);background:var(--nav-fill);border-color:var(--nav-line)}
.bottom-nav .icon{width:25px;height:25px;color:var(--nav)}
.nav-symbol{position:relative;display:block}
.nav-badge{position:absolute;top:-5px;left:18px;min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;border-radius:10px;background:#ffce87;color:#172117;font:700 11px/1 Arial,sans-serif;border:2px solid #0c1712}
.tone-mint{--tone:#b5df88;--wash:#253824;--folder-fill:#31502d}
.tone-sky{--tone:#a4d4ff;--wash:#203443;--folder-fill:#254963}
.tone-amber{--tone:#ffce87;--wash:#3b3020;--folder-fill:#59401e}
.tone-violet{--tone:#d3b8ff;--wash:#31283e;--folder-fill:#443459}
.tone-coral{--tone:#ffb5a4;--wash:#3c2a25;--folder-fill:#593a32}
.tone-aqua{--tone:#8cddd0;--wash:#1d3832;--folder-fill:#254c43}
.folder-group{margin:0 0 12px;min-width:0}
.folder-group[open]{margin-bottom:28px}
.folder-heading{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:60px;
  padding:14px;
  border-radius:12px;
  background:var(--folder-fill);
  color:#fff;
  cursor:pointer;
  list-style:none;
  -webkit-tap-highlight-color:transparent;
}
.folder-heading::-webkit-details-marker{display:none}
.folder-heading:focus-visible{outline:2px solid var(--tone);outline-offset:3px}
.folder-heading .icon{width:25px;height:25px;color:var(--tone)}
.folder-title{font-size:22px;line-height:1.3;overflow-wrap:anywhere;flex:1;min-width:0;font-weight:700}
.folder-count{flex-shrink:0;font-size:15px;font-weight:700;min-width:28px;height:28px;padding:2px 7px;border-radius:8px;display:grid;place-items:center;background:#15232b;color:var(--tone)}
.folder-chevron{flex-shrink:0;display:grid;place-items:center;width:20px}
.folder-chevron .icon{width:18px;height:18px}
.folder-group[open]>.folder-heading{margin-bottom:14px}
.folder-group[open] .folder-chevron .icon{transform:rotate(90deg)}
.form-list{display:grid;gap:10px}
.form-card{min-width:0;width:100%;min-height:94px;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:16px 14px;border:1px solid var(--section-line);border-radius:var(--button-radius);background:#111c21;color:#fff;text-align:left}
.form-card:active,.record-card:active{background:var(--section-soft)}
.form-symbol,.record-symbol{display:grid;place-items:center;width:48px;height:52px;flex-shrink:0;border-radius:12px;color:var(--tone);background:var(--wash)}
.form-symbol .icon{width:29px;height:29px}
.form-card .form-symbol{grid-column:1;grid-row:2;width:24px;height:26px;border-radius:0;color:var(--section);background:transparent}
.form-card .form-symbol .icon{width:23px;height:23px}
.form-copy,.record-copy{flex:1;min-width:0}
.form-card .form-copy{display:contents}
.form-copy strong{display:block;font-size:21px;line-height:1.28;font-weight:700;overflow-wrap:anywhere}
.form-card .form-copy strong{grid-column:1/-1;grid-row:1}
.form-copy small{display:block;font-size:15px;line-height:1.35;margin-top:7px;font-weight:600}
.form-card .form-copy small{grid-column:2;grid-row:2;margin:0}
.form-copy small span{margin-inline:4px}
.form-arrow{grid-column:3;grid-row:2;color:var(--section);display:block;flex-shrink:0}
.form-arrow .icon{width:18px;height:18px}
.search-field{display:flex;align-items:center;gap:10px;padding:0 14px;background:#111c21;border:1px solid var(--section-line);border-radius:12px;margin:0 0 26px;color:#fff}
.search-field .icon{width:22px;height:22px}
.search-field input{width:100%;min-width:0;height:52px;font-size:18px;border:0;background:transparent;color:#fff;outline:none}
.search-field input::placeholder{color:#fff;opacity:1}
.reconnect-note{display:flex;align-items:center;gap:10px;padding:12px 10px;width:100%;margin:-6px 0 22px;border:1px solid #6b5437;background:#2a251b;color:#fff;border-radius:10px;text-align:left;font-size:17px;font-weight:700}
.reconnect-note .icon:last-child{margin-left:auto;width:18px}
.sync-notice{display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin:-8px 0 24px;padding:14px;border:1px solid #675438;border-radius:12px;background:#282419;color:#fff;text-align:left}
.sync-notice>.icon{color:var(--sync)}
.sync-notice>span{flex:1;min-width:0}
.sync-notice strong{display:block;font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.sync-notice small{display:block;margin-top:5px;font-size:15px;line-height:1.4}
.sync-notice>.icon:last-child{width:18px}
.sync-notice.has-error{background:#34251f;border-color:#8b5e4b}
.sync-notice.has-error>.icon{color:#ffb5a4}
.eyebrow{color:var(--green);letter-spacing:.09em;font-size:14px;font-weight:700;margin:10px 0 11px;text-transform:uppercase;overflow-wrap:anywhere}
.lead{font-size:19px;line-height:1.6;margin-top:14px}
.banner{border-left:3px solid var(--green);padding:10px 12px;margin:0 0 21px;font-size:18px;color:#fff;overflow-wrap:anywhere}
.banner:empty{display:none}
.banner.error{border-left-color:#ffb5a4}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin:23px 0}
.primary,.secondary,.quiet{min-height:54px;padding:13px 18px;border:0;border-radius:11px;font-weight:700;font-size:20px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:10px}
.primary{color:#10200e;background:var(--green)}
.secondary,.quiet{color:#fff;background:transparent}
.secondary{border:1px solid #688460;background:#19291e}
.quiet{padding-left:0;padding-right:0;text-decoration:underline;text-underline-offset:5px}
.back-button{font-size:18px;min-height:44px;margin:-7px 0 12px;text-decoration:none}
.full{width:100%}
.field{display:block;margin:23px 0}
.field>span{display:block;font-size:22px;font-weight:700;margin-bottom:10px}
.field input,.field select,.field textarea{display:block;width:100%;min-height:56px;padding:12px;color:#fff;background:#142019;border:1px solid #60795e;border-radius:10px;font-size:21px;outline:none;line-height:1.5;resize:none}
.field select{background:#142019;padding-right:18px}
.field textarea{overflow:hidden;min-height:110px}
.field input::placeholder,.field textarea::placeholder{color:#fff;opacity:1}
.field input:disabled,.field textarea:disabled,.field select:disabled{color:#fff;opacity:1;-webkit-text-fill-color:#fff}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.hint{font-size:16px;line-height:1.5;margin-top:8px;display:block}
.question{border:0;border-bottom:1px solid var(--line);margin:0;padding:24px 0;min-width:0}
.question legend{font-weight:700;font-size:24px;line-height:1.35;float:left;width:100%;margin-bottom:16px;overflow-wrap:anywhere}
.question .field{clear:both;margin:0 0 12px}
.question .other-answer{margin:16px 0 12px}
.question .other-answer[hidden]{display:none}
.question-block{min-width:0;margin:20px 0;padding:16px clamp(10px,3vw,18px) 0;border:1px solid var(--section-line);border-radius:14px;background:var(--section-fill)}
.question-block>h2{margin:0;padding:0 0 12px;border-bottom:1px solid var(--section-line);font-size:clamp(20px,5vw,25px);line-height:1.3;color:var(--section);overflow-wrap:anywhere}
.question-block>.question:last-child{border-bottom:0}
.required{color:var(--green)}
.choice{clear:both;display:flex;gap:13px;align-items:center;min-height:58px;font-size:21px;padding:12px;margin:9px 0;overflow-wrap:anywhere;border:1px solid #3c5141;background:#142019;border-radius:10px}
.choice:has(input:checked){border-color:var(--green);background:#22371e}
.choice input{width:24px;height:24px;accent-color:#b5df88;flex-shrink:0}
.save-state{font-size:16px;margin:12px 0;color:#fff}
.gps,.photos{padding:25px 0;border-bottom:1px solid var(--line)}
.gps p{overflow-wrap:anywhere;font-size:18px}
.gps .gps-help{font-size:16px;line-height:1.55;margin:10px 0 14px}
.offline-status{margin:8px 0 0;font-size:15px;color:#ffce87}
.offline-status.ready{color:#b5df88}
.photo-list{display:grid;gap:24px;margin:20px 0}
.photo-list figure{margin:0}
.photo-list img{display:block;width:100%;max-height:300px;object-fit:contain;background:#101e16;border-radius:10px}
.photo-list figcaption{font-size:16px;margin-top:8px}
.queue-filters{display:grid;grid-template-columns:.9fr 1.6fr .95fr 1.3fr;gap:5px;padding-top:20px;margin:20px 0 0;border-top:1px solid var(--section-line);min-width:0}
.queue-filters button{min-height:46px;min-width:0;padding:9px 3px;background:transparent;border:1px solid #514760;border-radius:var(--button-radius);color:#fff;font-size:clamp(13px,3.7vw,16px);font-weight:700;line-height:1.3;white-space:nowrap}
.queue-filters button[aria-pressed=true]{background:var(--section);border-color:var(--section);color:#20152f}
.record-list{display:grid;border:1px solid var(--section-line);border-radius:14px;background:#151a22;padding:0 14px;min-width:0}
.record-card{width:100%;min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:4px 10px;padding:20px 0;border:0;border-bottom:1px solid var(--section-line);border-radius:0;background:transparent;color:#fff;text-align:left}
.record-card:last-child{border-bottom:0}
.record-card>.icon{grid-column:3;grid-row:2/4;width:18px;height:18px}
.record-symbol{grid-column:1;grid-row:2/4;width:30px;height:34px;align-self:center;margin:0;border-radius:9px}
.record-symbol .icon{width:22px;height:22px}
.record-copy{display:contents}
.record-copy strong{font-size:21px;line-height:1.28;display:block;font-weight:700;overflow-wrap:anywhere}
.record-copy strong{grid-column:1/-1;grid-row:1;margin-bottom:8px}
.record-copy small{grid-column:2;grid-row:3;font-size:15px;display:block;margin:0}
.state{display:block;font-size:16px;color:var(--tone,var(--green));font-weight:700;margin-top:6px}
.record-copy .state{grid-column:2;grid-row:2;margin:0}
.record-message{grid-column:1/-1;grid-row:4;display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere;margin-top:9px}
.account-row{display:flex;gap:14px;align-items:center;padding-bottom:25px;border-bottom:1px solid var(--line)}
.account-symbol{display:grid;place-items:center;width:48px;height:52px;flex-shrink:0;border-radius:12px;color:var(--green);background:#253824}
.account-row strong{font-size:23px;font-weight:700;line-height:1.25;display:block;overflow-wrap:anywhere}
.account-row small{display:block;font-size:16px;overflow-wrap:anywhere;margin-top:5px}
.team-field{margin:25px 0 30px}
.settings-actions{display:grid;border-top:1px solid var(--line)}
.settings-actions button{display:flex;gap:13px;align-items:center;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);color:#fff;min-height:75px;padding:16px 0;font-size:20px;font-weight:700}
.settings-actions button>.icon:first-child{color:var(--green)}
.settings-actions button span{flex:1;min-width:0}
.settings-actions button>.icon:last-child{width:18px;height:18px}
.settings-dates{margin-top:26px;font-size:15px;line-height:1.5}
.settings-dates p{margin:16px 0}
.settings-dates strong{font-weight:600;color:#fff}
.empty{padding:22px 0}
.catalog-empty{text-align:center;padding:25px 5px}
.catalog-empty h2{font-size:26px;line-height:1.3;margin:18px auto 0;max-width:320px}
.catalog-empty p{font-size:17px;line-height:1.5;max-width:300px;margin:13px auto 22px}
.catalog-empty .primary{margin-top:15px;min-height:56px}
.empty-icon{width:74px;height:74px;display:grid;place-items:center;color:var(--green);background:#1d3022;border-radius:20px;margin:0 auto}
.empty-icon .icon{width:36px;height:36px}
.footer-note{font-size:16px;line-height:1.6;margin:25px 0;overflow-wrap:anywhere}
.queue-note{font-size:15px;margin:18px 0 0}
.entry,.loading{height:100%;padding:20px;overflow:hidden;display:grid;place-items:center;text-align:center}
.entry{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0}
.entry-fit{width:100%;max-width:460px;min-width:0;transform-origin:center center;text-align:left}
.entry .brand{display:flex;align-items:center;gap:18px;margin-bottom:28px}
.entry .logo{width:76px}
.entry h1{font-size:38px}
.entry .field{margin:20px 0}
.entry .field>span{font-size:18px;margin-bottom:6px}
.entry .field input{font-size:20px}
.entry .hint{margin-top:16px}
.entry.short .entry-copy,.entry.short .entry-foot{display:none}
.entry.short .brand{margin-bottom:12px}
.entry.short .logo{width:40px}
.entry.short h1{font-size:25px}
.entry.short .field{margin:8px 0}
.entry.short .field>span{font-size:16px;margin-bottom:1px}
.entry.short .field input{min-height:40px;padding:5px 7px;font-size:18px}
.entry.short .primary{min-height:44px;padding:8px 14px;margin-top:6px}
.entry .banner{font-size:16px;margin:12px 0}
.loading{display:flex;flex-direction:column;justify-content:center;gap:clamp(10px,3vh,24px);padding:clamp(10px,3vh,20px)}
.loading .logo.large{width:clamp(56px,24vh,140px)}
.loading h1{font-size:clamp(24px,min(9vw,12vh),58px)}
.spinner{display:inline-block;width:19px;height:19px;border:2px solid var(--green);border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;margin-right:8px;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:650px){.content{padding:30px max(24px,calc((100% - 820px)/2)) 40px}.header{padding-inline:max(24px,calc((100% - 850px)/2))}.bottom-nav{padding-inline:max(12px,calc((100% - 720px)/2))}.form-list{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-list{grid-template-columns:1fr 1fr}}
@media(max-width:350px){.header{gap:8px;padding-inline:12px}.header .brand{gap:8px}.brand strong{font-size:16px;letter-spacing:.1em}.logo{width:38px}.content{padding-inline:14px}.page-panel{padding:18px 12px}.folder-heading{padding:12px;gap:8px}.folder-title{font-size:21px}.form-card{gap:9px;padding-inline:11px}.form-copy strong,.record-copy strong{font-size:20px}.net{font-size:13px}.bottom-nav button{font-size:13px}.queue-filters{gap:4px}.queue-filters button{font-size:13px}}

/* Confirmação e estados de salvamento/GPS — 0.7.3 */
.start-dialog{position:fixed;inset:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);margin:auto;width:calc(100% - 36px - var(--safe-left) - var(--safe-right));max-width:440px;max-height:calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));padding:27px 23px;border:1px solid #486044;border-radius:17px;background:#122019;color:#fff;font:inherit;overflow:auto}
.start-dialog::backdrop{background:#030906d9}
.start-dialog h2{font-size:30px;line-height:1.2;font-weight:700;color:#fff}
.start-dialog p{font-size:20px;line-height:1.45;margin:17px 0 25px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.start-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.start-actions button{font-size:22px;font-weight:700;min-height:55px}
.save-state{font-weight:600}.save-state.save-error{color:#ffce87}
.gps-status{font-weight:700;color:#b5df88;font-size:19px}.gps-status.gps-error{color:#ffce87}.gps-coordinates{font-size:16px!important}

/* Exclusão confirmada de rascunhos locais. */
.danger-text{color:#ffb7aa}.danger-button{min-height:54px;padding:12px 18px;border:1px solid #ed9f90;border-radius:10px;background:#713a31;color:#fff;font:inherit;font-weight:700}.danger-button:disabled{opacity:.65}.danger-button:focus-visible{outline:3px solid #fff;outline-offset:4px}.delete-dialog p{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:20px;margin:18px 0}.delete-dialog .delete-form{font-weight:700;font-size:18px;color:#b3dc88;margin-bottom:10px}.delete-dialog .start-actions{grid-template-columns:1fr;gap:12px}.delete-dialog .start-actions button{width:100%}

.account-avatar{border-radius:50%;overflow:hidden;flex-shrink:0;aspect-ratio:1}.account-avatar img{width:100%;height:100%;object-fit:cover;display:block}.password-intro{font-size:18px;line-height:1.5;margin:0 0 22px;color:#fff}

.pwa-test-label{color:#ffd077;font-size:14px;text-align:center;letter-spacing:.08em;margin:8px 0 18px}.pwa-tools{border-top:1px solid #344a49;margin-top:28px;padding:24px 0 40px}.pwa-tools h2{font-size:22px}.pwa-tools p{font-size:16px;line-height:1.6}.pwa-tools .full{display:block;width:100%;text-align:center;margin-top:14px;box-sizing:border-box;text-decoration:none}.pwa-download[hidden]{display:none}.pwa-import{cursor:pointer}.pwa-tools .hint{margin-top:24px}
