* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  background: #fff;
  color: #000;
}

button, input, select, textarea {
  font: inherit;
}

.topbar {
  min-height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid #999;
  display: flex;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #555;
  background: #fff;
  font-size: 22px;
  font-weight: bold;
}

.topbar-title {
  flex: 1;
}

.network-status {
  font-size: 13px;
  white-space: nowrap;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
}

.screen h1 {
  margin-top: 6px;
}

.big-choice {
  width: 100%;
  display: block;
  text-align: left;
  padding: 18px 14px;
  margin: 12px 0;
  border: 1px solid #555;
  background: #fff;
}

.big-choice strong,
.big-choice span {
  display: block;
}

.big-choice span {
  margin-top: 6px;
  font-size: 14px;
  font-weight: normal;
}

.system-box {
  border: 1px solid #999;
  padding: 10px;
  margin: 14px 0;
}

.system-box > div {
  margin: 4px 0;
}

fieldset {
  border: 1px solid #999;
  margin: 0 0 18px;
  padding: 12px;
}

legend {
  font-weight: bold;
  padding: 0 6px;
}

label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea,
select,
button {
  width: 100%;
  padding: 12px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  color: #000;
}

button {
  margin: 6px 0;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: default;
}

textarea {
  resize: vertical;
}

.small {
  font-size: 13px;
}

.options label {
  font-weight: normal;
  margin: 7px 0;
}

.options input {
  width: auto;
  margin-right: 6px;
}

.radio-block {
  margin: 15px 0;
}

.ponto {
  border: 1px dashed #777;
  padding: 10px;
  margin: 12px 0;
}

.ponto h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.form-card,
.saved-card {
  border: 1px solid #777;
  padding: 12px;
  margin: 12px 0;
}

.saved-card .meta {
  margin: 4px 0;
  font-size: 14px;
}

.saved-card .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 10px;
}

.filters {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.summary-grid > div {
  border: 1px solid #999;
  padding: 8px;
}

.summary-grid strong,
.summary-grid span {
  display: block;
}

.summary-grid strong {
  font-size: 20px;
}

.form-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-heading button {
  width: auto;
  min-width: 90px;
}

.actions {
  margin-bottom: 20px;
}

.install-banner {
  border-bottom: 1px solid #555;
  padding: 12px;
  background: #fff;
}

.install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.install-actions button {
  margin: 0;
}

.empty {
  border: 1px dashed #999;
  padding: 18px;
  text-align: center;
}

.sync-good {
  font-weight: bold;
}

.sync-bad {
  font-weight: bold;
}

@media (min-width: 700px) {
  .filters {
    grid-template-columns: 2fr 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .saved-card .card-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Coleta 0.3.0 — estilo responsivo sem dependências externas */
:root{--navy:#102849;--blue:#1672dd;--green:#21b66c;--ink:#182b45;--muted:#687c91;--line:#e0e8f1;--page:#f3f7fc;--card:#fff;--shadow:0 6px 22px rgba(14,40,75,.075)}
body{background:var(--page);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;line-height:1.5}
[hidden]{display:none!important}
.topbar{min-height:72px;padding:12px clamp(16px,3vw,36px);background:var(--navy);color:white;border:0;box-shadow:0 3px 16px #071e3840}
.icon-button{border:1px solid #ffffff38;border-radius:13px;color:white;background:#ffffff16;font-size:24px;font-weight:800;margin:0;width:48px;height:48px}
.network-status{border-radius:999px;padding:6px 11px;background:#ffffff18;color:#e2f2ff;font-weight:700}
.topbar-title strong{font-size:18px}.topbar-title .small{color:#c8d8eb}
main{max-width:1120px;margin:auto;padding:clamp(16px,3vw,32px)}
.screen h1{font-size:clamp(25px,4vw,34px);letter-spacing:-.8px;margin:8px 0 16px}
.hero{padding:clamp(22px,4vw,44px);border-radius:23px;background:linear-gradient(125deg,#102849,#1b5b93);color:#fff;margin:8px 0 22px;box-shadow:var(--shadow)}
.hero h1{color:white;margin:9px 0}.hero p{color:#d6eafa;margin:0;max-width:570px}.eyebrow{font-weight:800;letter-spacing:.14em;font-size:11px;color:#428cdf}.hero .eyebrow{color:#87d4ff}
.big-choice,.form-card,.saved-card,.system-box,.summary-grid>div{border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow)}
.big-choice{margin:13px 0;padding:22px;text-align:left;transition:transform .15s,border-color .15s}.big-choice:hover{transform:translateY(-2px);border-color:#95bbe8}.big-choice strong{font-size:18px}.big-choice span{color:var(--muted);margin-top:5px}
.system-box{padding:18px;margin:18px 0}.system-box .small{color:var(--muted)}
button,input,select,textarea{font:inherit}button{width:auto;border:0;border-radius:11px;background:var(--blue);color:white;padding:12px 19px;font-weight:750;transition:filter .15s}button:hover{filter:brightness(.95)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #88bdff;outline-offset:2px}
input[type=text],input[type=date],input[type=number],input[type=search],select,textarea{width:100%;border:1px solid #cedbea;border-radius:11px;padding:12px 14px;background:#fff;color:var(--ink);min-height:48px}
input:focus,textarea:focus,select:focus{border-color:var(--blue);outline:2px solid #1672dd25}
label{font-weight:650;color:#2d4662;font-size:14px;margin:15px 0 7px}
fieldset{margin:0 0 18px;padding:clamp(16px,3vw,26px);border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow);min-width:0}
legend{font-size:19px;color:var(--navy);padding:0 10px;font-weight:800}
.radio-block{padding:12px 0}.options{display:flex;flex-wrap:wrap;gap:8px 16px}.options label{padding:6px 10px;border-radius:8px;background:#f3f7fc;margin:0}
.field-hint{font-size:13px;color:var(--muted);margin:6px 0 14px}
.ponto{border:1px solid #dbe5ef;background:#f8fbff;border-radius:12px;padding:17px;margin:14px 0}.ponto h3{color:var(--navy);font-size:16px}
.ponto button[data-remove]{background:#fff2f2;color:#a33535;width:100%;margin-top:15px}
.form-heading{align-items:center;margin-bottom:18px}.form-heading>div{font-size:15px}.form-heading strong{font-size:19px}.form-heading button,.quiet-btn,.secondary-btn{background:#edf4fc;color:#1d5283}.form-heading button{width:auto}
.sticky-status{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 22px;margin:14px 0 22px}.sticky-status>div{font-size:13px}.sticky-status strong{color:#667b93}
.guide-panel{border:1px solid var(--line);border-radius:19px;background:#fff;padding:clamp(15px,3vw,28px);box-shadow:var(--shadow);margin:0 0 22px;scroll-margin-top:95px}
.guide-header{display:flex;justify-content:space-between;gap:12px;align-items:center}.guide-header h2{margin:4px 0;font-size:22px;letter-spacing:-.4px}.guide-header p{color:var(--muted);font-size:14px;margin:0}.guide-header button{flex-shrink:0}
.progress-track,.mini-track{display:block;height:9px;background:#e5edf6;border-radius:999px;overflow:hidden}.progress-track{margin-top:20px}.progress-value,.mini-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--green));border-radius:999px;transition:width .2s}.progress-caption{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:8px 0 17px}.progress-caption span:last-child{font-weight:800;color:var(--blue)}
.section-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.section-card{display:flex;align-items:flex-start;gap:10px;text-align:left;background:white;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 9px #0b285014;padding:14px;margin:0;width:100%;min-height:104px}
.section-card.selected{border:2px solid var(--blue);background:#f6faff}.section-number{background:#e8f2ff;color:var(--blue);border-radius:50%;min-width:29px;height:29px;display:grid;place-items:center}.section-card.selected .section-number{background:var(--blue);color:white}.section-body{display:block;flex:1;min-width:0}.section-body strong{display:block;font-size:13px;line-height:1.3}.section-small{display:block;font-size:11px;color:var(--muted);margin:6px 0}.mini-track{height:5px}.section-percent{font-size:11px;font-weight:800;color:var(--blue)}
.guide-steps{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.guide-steps button{width:auto;flex:1}
.actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 40px}.actions button{flex:1 1 180px;margin:0}.actions #saveBtn{background:#eaf5ff;color:#154f83}.actions #concluirBtn{background:#1eab68}.actions #exportBtn,.actions #newBtn{background:#eff3f9;color:#35516d}
.form-card,.saved-card{padding:22px;margin:14px 0}.saved-card .meta{color:var(--muted)}.card-actions button{margin:0}.card-actions [data-delete]{background:#fff0f0;color:#a83e3e}
.summary-grid{gap:12px}.summary-grid>div{padding:18px}.summary-grid strong{font-size:25px;color:var(--navy)}.summary-grid span{color:var(--muted);font-size:13px}
.filters{gap:12px}.filters input,.filters select{min-height:52px}
.install-banner{background:#eaf5ff;color:#153f70;border-bottom:1px solid #d1e4f9;padding:15px}.install-actions button{background:#155ca3}.install-actions button+button{background:#d6e7f7;color:#17456e}
.mode-overlay{position:fixed;inset:0;z-index:100;background:#071a36ad;display:flex;align-items:center;justify-content:center;padding:16px}.mode-box{width:min(100%,550px);background:#fff;border-radius:23px;padding:clamp(18px,4vw,34px);box-shadow:0 22px 70px #0004}.mode-box h2{font-size:27px;color:var(--navy);margin:8px 0}.mode-box>p{color:var(--muted);margin-bottom:20px}.mode-choice{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #d8e5f3;padding:18px;margin:10px 0;width:100%;text-align:left;color:var(--ink)}.mode-choice:hover{border-color:var(--blue);background:#f6faff}.mode-symbol{background:#e7f1ff;color:var(--blue);padding:13px;border-radius:13px;font-size:22px}.mode-choice>span:nth-child(2){flex:1}.mode-choice strong,.mode-choice small{display:block}.mode-choice small{font-size:12px;color:var(--muted);margin-top:5px}.mode-choice>span:last-child{font-size:22px;color:var(--blue)}
.paper-notice{border:1px solid #b5d4ee;color:#275581;background:#e9f5ff;padding:11px 15px;border-radius:11px;font-size:12px;font-weight:800;margin-bottom:17px;letter-spacing:.04em}
.paper-mode main{max-width:1420px}.paper-mode .screen-form{max-width:none}.paper-mode #coletaForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.paper-mode fieldset{margin:0}.paper-mode #coletaForm fieldset:nth-of-type(7),.paper-mode #coletaForm fieldset:last-of-type,.paper-mode #coletaForm .actions{grid-column:1/-1}.paper-mode #coletaForm fieldset:nth-of-type(7){overflow:hidden}.paper-table-scroll{overflow-x:auto;max-width:100%;padding-bottom:6px}.paper-table{border-collapse:collapse;min-width:860px;width:100%;font-size:12px}.paper-table th,.paper-table td{border:1px solid #cbd6e3;padding:5px;text-align:center}.paper-table thead th{background:#eaf2fa;color:var(--navy)}.paper-table input{min-width:80px;width:100%;padding:7px;min-height:38px;font-size:13px}.paper-table button{width:34px;padding:5px;background:#fff0f0;color:#c23b3b}.paper-table .ponto{background:transparent;border:0;padding:0;margin:0}
.equip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 12px}
.catalog-head{display:flex;justify-content:space-between;align-items:center}.catalog-group{background:white;border:1px solid var(--line);border-radius:15px;padding:18px;margin:13px 0}.catalog-group h2{margin:0 0 12px;font-size:18px}.catalog-entry{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid var(--line);padding:8px 0}.catalog-entry button{background:#fff0f0;color:#aa3f3f;font-size:12px;padding:8px}.catalog-add{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.catalog-add input{flex:1;min-width:160px}.catalog-add button{margin:0}
@media(max-width:699px){main{padding:12px}.topbar{min-height:66px}.sticky-status{grid-template-columns:1fr 1fr}.guide-header{align-items:start;flex-direction:column}.guide-header button{width:100%}.section-cards{grid-template-columns:1fr}.section-card{min-height:84px}.guide-panel{padding:16px}.screen h1{font-size:26px}.paper-mode #coletaForm{display:block}.paper-mode fieldset{margin-bottom:13px}.options{gap:6px}.form-heading{flex-wrap:wrap}}
@media(min-width:700px) and (max-width:950px){.paper-mode #coletaForm{grid-template-columns:1fr 1fr}.section-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.heading-buttons{display:flex;gap:7px;flex-wrap:wrap}.heading-buttons button{width:auto}.paper-mode .form-heading{align-items:center}
