/* Paleta: off-white, grafite e verde fechado. */
:root {
  --page: #F5F3EE;
  --surface: #FFFEFA;
  --ink: #292D2B;
  --muted: #656D67;
  --border: #D8DED6;
  --accent: #285745;
  --accent-hover: #356D56;
  --accent-soft: #EAF0E8;
  --accent-ink: #254B3B;
  --dark: #222B26;
  --dark-surface: #2C3730;
  --dark-border: #46544B;
  --on-dark: #F4F3EC;
  --on-dark-muted: #C0CABF;
  --sage: #B8CFBB;
  --success: #ACCEB5;
  --green-deep: #203E30;
  --warning-surface: #3A2D26;
  --warning: #D9AC8E;
  --danger: #944D3B;
  color-scheme: light;
}

body{margin:0;background:var(--page);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased;}
    input,select,textarea,button{font-family:inherit;}
    input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--accent-hover);outline-offset:1px;}
    select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0L5 6L10 0Z' fill='%23656D67'/></svg>");background-repeat:no-repeat;background-position:right 12px center;appearance:none;-webkit-appearance:none;padding-right:32px !important;}
    a{color:var(--accent);}
    a:hover{color:var(--accent-hover);}
    button{border-radius:999px !important;}
    @keyframes fadeSlideIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
    .niche-pill{transition:transform .15s ease, background .15s ease;}
    .niche-pill:hover{transform:translateY(-1px);}
    .result-card{animation:fadeSlideIn .35s ease both;}
    .ad-slot{background:var(--surface);border:1.5px dashed var(--border);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-family:'IBM Plex Mono',monospace;box-shadow:0 1px 3px rgba(27,28,21,0.04);}
    .ad-slot .ad-tag{font-size:10px;letter-spacing:0.08em;text-transform:uppercase;font-weight:700;color:var(--accent-hover);background:var(--accent-soft);padding:3px 10px;border-radius:999px;white-space:nowrap;}
    .ad-slot .ad-size{font-size:11px;color:var(--muted);white-space:nowrap;}
    @media (min-width:860px){ .results-sticky{position:sticky;top:16px;} }

.ui-style-1 {
  max-width:1180px;
  margin:0 auto;
  padding:24px 16px 80px;
  display:flex;
  flex-direction:column;
  gap:36px;
}

.ui-style-2 {
  display:flex;
  flex-direction:column;
  gap:20px;
  background:var(--dark);
  color:var(--on-dark);
  padding:48px 32px 44px;
  border-radius:24px;
}

.ui-style-3 {
  font-family:'Momcake','Plus Jakarta Sans',serif;
  font-weight:600;
  font-size:20px;
  color:var(--on-dark);
  letter-spacing:-0.01em;
}

.ui-style-4 {
  color:var(--sage);
}

.ui-style-5 {
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--sage);
  font-weight:600;
}

.ui-style-6 {
  font-family:'Momcake','Plus Jakarta Sans',serif;
  font-weight:600;
  font-size:clamp(32px,5.2vw,50px);
  margin:0;
  text-wrap:balance;
  color:var(--on-dark);
  line-height:1.05;
}

.ui-style-7 {
  color:var(--on-dark-muted);
  max-width:62ch;
  margin:0;
  font-size:16.5px;
}

.ui-style-8 {
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  margin-top:14px;
}

.ui-style-9 {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:13.5px;
  padding:9px 16px;
  border-radius:999px;
  cursor:pointer;
  min-height:44px;
}

.ui-style-10 {
  width:100%;
  min-height:90px;
  box-sizing:border-box;
}

.ui-style-11 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:24px;
  align-items:start;
}

.ui-style-12 {
  display:flex;
  flex-direction:column;
  gap:0;
  padding:28px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 1px 3px rgba(27,28,21,0.05);
  transition:border-top-color .25s ease;
}

.ui-style-13 {
  background:var(--accent-soft);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
}

.ui-style-14 {
  font-family:'Momcake','Plus Jakarta Sans',serif;
  font-weight:600;
  font-size:17px;
  margin:0;
  color:var(--accent-ink);
}

.ui-style-15 {
  font-size:13px;
  color:var(--muted);
  margin:0;
  max-width:60ch;
}

.ui-style-16 {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:4px;
}

.ui-style-17 {
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  line-height:1.3;
  text-align:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 10px;
}

.ui-style-18 {
  display:block;
  font-family:'Plus Jakarta Sans',sans-serif;
  color:var(--muted);
  font-size:10.5px;
  margin-top:2px;
}

.ui-style-19 {
  color:var(--accent-hover);
  font-weight:700;
}

.ui-style-20 {
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  line-height:1.3;
  text-align:center;
  background:var(--accent);
  border:1px solid var(--accent);
  color:var(--surface);
  font-weight:700;
  border-radius:8px;
  padding:8px 10px;
}

.ui-style-21 {
  border:0;
  padding:0;
  margin:0 0 32px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.ui-style-22 {
  font-family:'Momcake','Plus Jakarta Sans',serif;
  font-weight:600;
  font-size:19px;
  margin:0;
  padding:0 0 6px;
  width:100%;
  border-bottom:2px solid var(--ink);
  color:var(--ink);
}

.ui-style-23 {
  display:block;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:400;
  font-size:12.5px;
  color:var(--muted);
  margin-top:4px;
}

.ui-style-24 {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ui-style-25 {
  font-size:13.5px;
  font-weight:600;
}

.ui-style-26 {
  font-family:'IBM Plex Mono',monospace;
  font-size:15px;
  padding:11px 12px;
  border-radius:8px;
  border:1.5px solid var(--border);
  background:var(--accent-soft);
  color:var(--ink);
  width:100%;
  min-height:44px;
  box-sizing:border-box;
}

.ui-style-27 {
  font-size:12.5px;
  color:var(--muted);
  margin:2px 0 0;
  line-height:1.5;
}

.ui-style-28 {
  background:none;
  border:none;
  padding:0;
  font-size:12.5px;
  font-weight:700;
  color:var(--accent);
  cursor:pointer;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:2px;
  width:fit-content;
  min-height:32px;
}

.ui-style-29 {
  margin-top:2px;
  padding:14px;
  border:1px dashed var(--border);
  border-radius:10px;
  background:var(--accent-soft);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ui-style-30 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
}

.ui-style-31 {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ui-style-32 {
  font-size:12px;
  font-weight:600;
  color:var(--muted);
}

.ui-style-33 {
  font-family:'IBM Plex Mono',monospace;
  font-size:13.5px;
  padding:8px 9px;
  border-radius:7px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--ink);
  width:100%;
  min-height:40px;
  box-sizing:border-box;
}

.ui-style-34 {
  display:flex;
  justify-content:space-between;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  font-weight:700;
  padding-top:8px;
  border-top:1px solid var(--border);
}

.ui-style-35 {
  color:var(--accent);
}

.ui-style-36 {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}

.ui-style-37 {
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  font-weight:600;
  color:var(--accent);
  width:64px;
  padding:6px 8px;
  border-radius:6px;
  border:1.5px solid var(--border);
  background:var(--surface);
  box-sizing:border-box;
  text-align:right;
}

.ui-style-38 {
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:500;
  font-size:14.5px;
  padding:11px 36px 11px 12px;
  border-radius:8px;
  border:1.5px solid var(--border);
  background:var(--accent-soft);
  color:var(--ink);
  width:100%;
  min-height:44px;
  box-sizing:border-box;
}

.ui-style-39 {
  font-size:12.5px;
  color:var(--muted);
  margin:2px 0 0;
}

.ui-style-40 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
}

.ui-style-41 {
  font-size:12px;
  color:var(--muted);
  margin:6px 0 0;
}

.ui-style-42 {
  border:0;
  padding:0;
  margin:0 0 26px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ui-style-43 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
}

.ui-style-44 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
  align-items:start;
}

.ui-style-45 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13.5px;
  font-weight:600;
  margin-top:26px;
}

.ui-style-46 {
  accent-color:var(--accent);
  width:18px;
  height:18px;
}

.ui-style-47 {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.ui-style-48 {
  font-size:12.5px;
  font-weight:600;
  padding:8px 13px;
  border-radius:8px;
  cursor:pointer;
  min-height:40px;
}

.ui-style-49 {
  font-size:12.5px;
  color:var(--muted);
  margin:0;
}

.ui-style-50 {
  border:0;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ui-style-51 {
  display:flex;
  flex-direction:column;
  gap:16px;
}

.ui-style-52 {
  display:flex;
  flex-direction:column;
  gap:0;
  padding:28px;
  background:var(--ink);
  color:var(--on-dark);
  border-radius:16px;
}

.ui-style-53 {
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--sage);
  margin:0 0 12px;
}

.ui-style-54 {
  font-size:13.5px;
  line-height:1.6;
  margin:0 0 18px;
  padding:14px 16px;
  background:var(--dark-surface);
  border-radius:10px;
  color:var(--on-dark-muted);
}

.ui-style-55 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  background:var(--dark-surface);
  border-radius:10px;
  margin-bottom:8px;
}

.ui-style-56 {
  font-size:12.5px;
  color:var(--on-dark-muted);
  font-weight:600;
}

.ui-style-57 {
  font-family:'IBM Plex Mono',monospace;
  font-size:17px;
  font-weight:600;
  color:var(--on-dark);
}

.ui-style-58 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  background:var(--dark-surface);
  border-radius:10px;
  margin-bottom:20px;
}

.ui-style-59 {
  font-size:12.5px;
  font-weight:700;
}

.ui-style-60 {
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--on-dark-muted);
}

.ui-style-61 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px;
  margin-top:10px;
  margin-bottom:20px;
}

.ui-style-62 {
  border:1px solid var(--dark-border);
  border-radius:12px;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  background:var(--dark-surface);
}

.ui-style-63 {
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--on-dark-muted);
}

.ui-style-64 {
  font-family:'IBM Plex Mono',monospace;
  font-weight:700;
  font-size:clamp(17px,2.6vw,21px);
  color:var(--on-dark);
}

.ui-style-65 {
  font-size:11px;
  color:var(--muted);
}

.ui-style-66 {
  border:1px solid var(--sage);
  border-radius:12px;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  background:var(--accent-ink);
}

.ui-style-67 {
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--sage);
}

.ui-style-68 {
  font-family:'IBM Plex Mono',monospace;
  font-weight:700;
  font-size:clamp(17px,2.6vw,21px);
  color:var(--on-dark);
}

.ui-style-69 {
  font-size:11px;
  color:var(--on-dark-muted);
}

.ui-style-70 {
  border:1px solid var(--success);
  border-radius:12px;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  background:var(--green-deep);
}

.ui-style-71 {
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--success);
}

.ui-style-72 {
  font-family:'IBM Plex Mono',monospace;
  font-weight:700;
  font-size:clamp(17px,2.6vw,21px);
  color:var(--on-dark);
}

.ui-style-73 {
  font-size:11px;
  color:var(--sage);
}

.ui-style-74 {
  margin-bottom:20px;
}

.ui-style-75 {
  position:relative;
  height:10px;
  border-radius:6px;
  background:linear-gradient(90deg,var(--dark-surface),var(--accent-ink) 50%,var(--green-deep));
  border:1px solid var(--dark-border);
}

.ui-style-76 {
  position:absolute;
  top:-6px;
  width:2px;
  height:22px;
  background:var(--on-dark);
  transform:translateX(-50%);
}

.ui-style-77 {
  position:absolute;
  top:-6px;
  width:3px;
  height:22px;
  background:var(--sage);
  transform:translateX(-50%);
}

.ui-style-78 {
  position:absolute;
  top:-6px;
  width:3px;
  height:22px;
  background:var(--success);
  transform:translateX(-50%);
}

.ui-style-79 {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  margin-top:8px;
  font-family:'IBM Plex Mono',monospace;
}

.ui-style-80 {
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:flex;
  flex-direction:column;
  border:1px solid var(--dark-border);
  border-radius:10px;
  overflow:hidden;
}

.ui-style-81 {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 14px;
  font-size:13px;
  border-bottom:1px solid var(--dark-border);
  color:var(--on-dark);
}

.ui-style-82 {
  font-family:'IBM Plex Mono',monospace;
  font-variant-numeric:tabular-nums;
}

.ui-style-83 {
  font-size:12.5px;
  color:var(--on-dark-muted);
  margin:0 0 14px;
}

.ui-style-84 {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  margin-bottom:16px;
}

.ui-style-85 {
  font-weight:700;
  font-size:13.5px;
  padding:11px 20px;
  border-radius:999px;
  border:none;
  background:var(--sage);
  color:var(--ink);
  cursor:pointer;
  min-height:44px;
}

.ui-style-86 {
  background:none;
  border:none;
  padding:0;
  font-size:12.5px;
  font-weight:700;
  color:var(--sage);
  cursor:pointer;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:2px;
  min-height:32px;
}

.ui-style-87 {
  display:flex;
  gap:10px;
  background:var(--warning-surface);
  border:1px solid var(--warning);
  border-radius:10px;
  padding:12px 14px;
  font-size:12.5px;
  color:var(--on-dark);
}

.ui-style-88 {
  font-weight:700;
  color:var(--warning);
  flex:0 0 auto;
}

.ui-style-89 {
  width:100%;
  min-height:250px;
  box-sizing:border-box;
}

.ui-style-90 {
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
}

.ui-style-91 {
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--accent);
  margin:0;
}

.ui-style-92 {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:stretch;
}

.ui-style-93 {
  flex:1 1 360px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:20px 22px;
  background:var(--accent-soft);
  border:1px solid var(--accent);
  border-radius:12px;
}

.ui-style-94 {
  font-family:'Momcake','Plus Jakarta Sans',serif;
  font-weight:600;
  font-size:18px;
  margin:0;
  color:var(--accent-ink);
}

.ui-style-95 {
  font-size:12.5px;
  color:var(--muted);
  margin:0;
  max-width:56ch;
}

.ui-style-96 {
  font-weight:700;
  font-size:14px;
  padding:12px 22px;
  border-radius:9px;
  border:none;
  background:var(--ink);
  color:var(--sage);
  cursor:pointer;
  margin-top:6px;
  min-height:44px;
}

.ui-style-97 {
  flex:0 0 300px;
  height:300px;
  box-sizing:border-box;
}

.ui-style-98 {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ui-style-99 {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ui-style-100 {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.ui-style-101 {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:var(--accent);
  cursor:pointer;
  padding:10px 16px;
  border:1.5px dashed var(--accent);
  border-radius:8px;
  background:var(--accent-soft);
  min-height:44px;
  box-sizing:border-box;
}

.ui-style-102 {
  display:none;
}

.ui-style-103 {
  background:none;
  border:none;
  padding:0;
  font-size:12.5px;
  font-weight:700;
  color:var(--danger);
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:2px;
  min-height:32px;
}

.ui-style-104 {
  font-size:12px;
  color:var(--muted);
  margin:0;
}

.ui-style-105 {
  font-family:'IBM Plex Mono',monospace;
  font-size:14.5px;
  padding:11px 12px;
  border-radius:8px;
  border:1.5px solid var(--border);
  background:var(--accent-soft);
  color:var(--ink);
  width:100%;
  min-height:44px;
  box-sizing:border-box;
}

.ui-style-106 {
  font-size:13.5px;
  padding:9px 10px;
  border-radius:8px;
  border:1.5px solid var(--border);
  background:var(--accent-soft);
  color:var(--ink);
  width:100%;
  resize:vertical;
  line-height:1.5;
  box-sizing:border-box;
}

.ui-style-107 {
  font-size:12px;
  color:var(--muted);
  margin:2px 0 0;
}

.ui-style-108 {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.ui-style-109 {
  font-weight:700;
  font-size:14px;
  padding:12px 22px;
  border-radius:9px;
  border:none;
  background:var(--ink);
  color:var(--sage);
  cursor:pointer;
  min-height:44px;
}

.ui-style-110 {
  background:none;
  border:none;
  padding:0;
  font-size:12.5px;
  font-weight:700;
  color:var(--accent);
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:2px;
  min-height:44px;
}

.ui-style-111 {
  font-size:11.5px;
  color:var(--muted);
  text-align:center;
  margin-top:4px;
}

/* Category navigation: touch scrolling with explicit arrow controls. */
.niche-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
}
.niche-navigation .ui-style-8 {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  padding: 4px;
  scrollbar-width: none;
}
.niche-navigation .ui-style-8::-webkit-scrollbar {
  display: none;
}
.niche-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--dark-border);
  background: var(--dark-surface);
  color: var(--on-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.niche-arrow:hover {
  background: var(--accent);
  border-color: var(--sage);
}

/* Help text opens on demand, with native keyboard and touch support. */
.field-unit {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.field-tip {
  font-size: 12.5px;
  color: var(--muted);
}
.field-tip > summary {
  width: fit-content;
  padding: 6px 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.field-tip > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.field-tip[open] > summary {
  margin-bottom: 4px;
}
.calculation-tip {
  display: block;
}
.calculation-tip .ui-style-16 {
  margin-top: 12px;
}
