:root {
  --bg: #0b0d10;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.14);
  --soft-line: rgba(255, 255, 255, 0.08);
  --accent: #c9a45c;
  --accent-2: #f4d58d;
  --error: #ff6b6b;
  --success: #8ef0b1;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 164, 92, 0.25), transparent 34%),
    radial-gradient(circle at bottom right, rgba(244, 213, 141, 0.12), transparent 34%),
    linear-gradient(135deg, #08090b 0%, #11141a 48%, #050607 100%);
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* Page / hero */

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-link {
  color: var(--muted);
  border: 1px solid var(--line);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lang-link.active {
  color: #17110a;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.kaser-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  opacity: 0.96;
  filter: drop-shadow(0 10px 24px rgba(201, 164, 92, 0.08));
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 22px;
  align-items: start;
  transition: all 0.45s ease;
}

.layout.initial-state {
  grid-template-columns: minmax(0, 650px);
  justify-content: center;
}

.layout.results-visible {
  grid-template-columns: minmax(0, 600px) minmax(0, 500px);
  justify-content: center;
}

.layout.initial-state .input-panel {
  animation: softEnter 0.45s ease both;
}

.layout.results-visible .result-panel {
  animation: resultReveal 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes softEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes resultReveal {
  from {
    opacity: 0;
    transform: translateX(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Panels / tabs */

.panel-wrap {
  position: relative;
}

.panel-tabs {
  position: absolute;
  top: -25px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.panel-tab {
  height: 44px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.panel-tab.active {
  background: var(--accent-2);
  color: #111;
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(214, 180, 98, 0.22);
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Forms */

.form {
  padding: 24px 26px 26px;
  display: grid;
  gap: 16px;
}

.grid-2,
.sf-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
  font-size: 15px;
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus {
  border-color: rgba(244, 213, 141, 0.7);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.16);
  background: rgba(0, 0, 0, 0.38);
}

select option {
  background: #101216;
  color: #fff;
}

.hint {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 72px;
}

.input-with-unit .unit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preset,
.ghost-btn {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease;
}

.preset:hover,
.preset.active,
.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 213, 141, 0.75);
  background: rgba(201, 164, 92, 0.18);
}

.ghost-btn {
  color: var(--accent-2);
  padding: 11px 14px;
}

.generate-btn,
.submit-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 17px;
  color: #15100a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(201, 164, 92, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(201, 164, 92, 0.28);
}

.generate-btn.is-hidden,
.live-pill.is-hidden,
.result-panel.is-hidden,
.advanced-only.is-hidden {
  display: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
      margin-top: 20px;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(142, 240, 177, 0.8);
}

.advanced-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.advanced-toggle strong {
  display: block;
  font-size: 14px;
}

.advanced-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.advanced-fields {
  display: none;
  gap: 14px;
}

.advanced-fields.open {
  display: grid;
}

.error {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #ffd1d1;
  background: rgba(255, 107, 107, 0.12);
  font-size: 14px;
  line-height: 1.45;
}

.error.show {
  display: block;
}

.formula {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  padding: 0 26px 24px;
}

/* Shortfill compact layout */

.shortfill-form {
  gap: 0;
  padding-top: 18px;
  padding-bottom: 24px;
}

.shortfill-form .sf-section {
  margin-inline: -26px;
  padding: 22px 26px;
}

.shortfill-form .sf-section + .sf-section {
  border-top: 1px solid var(--soft-line);
}

.sf-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sf-section-head i {
  width: 22px;
  color: var(--accent-2);
  font-size: 17px;
  text-align: center;
}

.sf-section-head strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

.sf-step {
  opacity: 0.92;
}

.sf-muted {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shortfill-form input,
.shortfill-form select {
  height: 38px;
}

.shortfill-form .preset {
  min-height: 40px;
}

.shortfill-form .preset.active,
.shortfill-form .preset:hover {
  color: var(--accent-2);
  border-color: rgba(244, 213, 141, 0.8);
  background: rgba(201, 164, 92, 0.16);
}

.sf-custom-volume {
  margin-top: 16px;
  max-width: 320px;
}

.shortfill-form .generate-btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sf-advanced-toggle {
  margin-top: 18px;
}

/* Results */

.results {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.main-result {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.95), rgba(244, 213, 141, 0.88));
  color: #16110a;
  box-shadow: 0 24px 60px rgba(201, 164, 92, 0.22);
}

.main-result .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  opacity: 0.72;
}

.big-number {
  margin-top: 8px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.unit {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.metric.flash,
.main-result.flash {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.metric > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 800;
}

.metric strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 22px;
  line-height: 0.95;
  color: #f4f4f5;
  white-space: nowrap;
}

.metric-value {
  font-size: 22px;
  color: #f4f4f5;
  line-height: 0.95;
}

.metric-unit {
  display: inline;
  font-size: 0.45em;
  font-weight: 850;
  letter-spacing: -0.02em;
  opacity: 0.78;
  color: #f4f4f5;
  text-transform: none;
}

.ratio-metric strong {
  margin-bottom: 14px;
}

.ratio-bars {
  display: grid;
  gap: 8px;
  margin-top: -2px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.bar-fill {
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.recipe {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: #e4e4e7;
  line-height: 1.65;
  font-size: 13px;
}

.recipe strong {
  color: #f4f4f5;
  font-weight: 900;
  white-space: nowrap;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Longfill */

.longfill-main-results,
.main-results-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.longfill-main-results .big-number {
  font-size: clamp(36px, 4.6vw, 58px);
}

.ratio-banner {
  width: 100%;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--soft-line);
  text-align: center;
}

.ratio-title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-bottom: 6px;
}

#finalRatioBanner {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Legacy helpers kept for compatibility */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-tabs .badge {
  text-decoration: none !important;
}

.tool-tabs .badge.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #17110a;
}

.preset-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.preset-title i {
  color: var(--accent-2);
  font-size: 1rem;
}

.form-section-title-full {
  grid-column: 1 / -1;
}

.section-separator {
  display: block;
  height: 1px;
  margin: 10px -26px 28px;
  background: var(--soft-line);
}

.section-description {
  margin-top: -4px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Desktop density, cross-browser alternative to browser 80% zoom */

@media (min-width: 1200px) {
  .page {
    transform: scale(0.9);
    transform-origin: top center;
    width: min(1310px, calc((100% - 32px) / 0.9));

    margin-bottom: -10vh;
    padding-top: 26px;
  }

  .layout.initial-state {
    grid-template-columns: minmax(0, 590px);
  }

  .layout.results-visible {
    grid-template-columns: minmax(0, 590px) minmax(0, 455px);
    gap: 20px;
  }

  .kaser-logo {
    height: 28px;
  }

  h1 {
    font-size: clamp(30px, 3.4vw, 44px);
  }

  .subtitle {
    font-size: 14px;
  }

  .panel-tab {
    height: 40px;
    padding-inline: 24px;
    font-size: 0.72rem;
  }

  .panel-tabs {
    top: -23px;
  }

  .panel-header {
    padding: 20px 24px 14px;
  }

  .form {
    padding: 22px 24px 24px;
  }

  .shortfill-form {
    padding-top: 16px;
  }

  .shortfill-form .sf-section {
    margin-inline: -24px;
    padding: 20px 24px;
  }

  .sf-section-head {
    margin-bottom: 14px;
  }

  .shortfill-form input,
  .shortfill-form select {
    height: 46px;
  }

  .shortfill-form .preset {
    min-height: 38px;
  }

  .generate-btn,
  .submit-btn {
    height: 48px;
  }

  .results {
    padding: 24px;
  }
}

/* Tablet */

@media (max-width: 1100px) {
  .page {
    width: min(760px, calc(100% - 28px));
  }

  .layout,
  .layout.initial-state,
  .layout.results-visible {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .layout.results-visible .result-panel,
  .layout.initial-state .input-panel {
    animation: none;
  }
}

/* Mobile */

@media (max-width: 860px) {
  .page {
    width: calc(100% - 22px);
    padding: 18px 0 36px;
  }

  .top-actions {
    position: static;
    justify-content: center;
    margin-bottom: 22px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .kaser-logo {
    height: 22px;
  }

  h1 {
    margin-top: 16px;
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .subtitle {
    display: none;
  }

  .grid-2,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    border-radius: 20px;
  }

  .panel-header {
    padding: 22px 20px 16px;
  }

  .form,
  .results {
    padding: 20px;
  }

  .formula {
    padding: 0 20px 22px;
  }

  .panel-tabs {
    top: -23px;
  }

  .panel-tab {
    height: 40px;
    padding-inline: 22px;
    font-size: 12px;
  }

  .shortfill-form .sf-section {
    margin-inline: -20px;
    padding: 18px 20px;
  }

  .sf-presets,
  .preset-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .shortfill-form .preset {
    min-height: 35px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .sf-two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sf-two label {
    min-height: 1.6em;
    font-size: 0.72rem;
    line-height: 1;
  }

  .sf-two input,
  .sf-two select,
  input,
  select {
    height: 38px;
    line-height: 1 !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  .input-with-unit input {
    padding-right: 62px;
  }

  .input-with-unit .unit {
    font-size: 10px;
    opacity: 0.5;
  }
  .sf-section-head {
    margin-bottom: 16px;
  }

  .sf-section-head strong {
    font-size: 12px;
  }

  .sf-section-head i {
    font-size: 16px;
    width: 20px;
  }

  .advanced-toggle {
    padding: 14px;
  }

  .longfill-main-results,
  .main-results-row {
    grid-template-columns: 1fr;
  }

  .actions-row {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .panel-tab {
    padding-inline: 18px;
    font-size: 11px;
  }

  .sf-presets,
  .preset-row {
    gap: 7px;
  }

  .shortfill-form .preset {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .sf-presets,
  .preset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-two {
    grid-template-columns: 1fr;
  }

  .sf-two label {
    min-height: auto;
  }
}


/* Final mobile input fix: prevents iOS/Chrome mobile auto-zoom without making fields look huge */
@media (max-width: 860px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  .input-with-unit input {
    padding-right: 62px !important;
  }

  .input-with-unit .unit {
    font-size: 10px !important;
    font-weight: 700;
    opacity: 0.5;
  }

  .shortfill-form input,
  .shortfill-form select {
    font-size: 16px !important;
  }
}

/* Ratio pair: Booster ratio + shortfill base side by side */
.sf-ratio-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sf-ratio-block {
  min-width: 0;
}

.sf-section-head.compact {
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .sf-ratio-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* === KASER cleanup patch 2026-05-25 === */

/* Test version without section separators in the shortfill card */
.shortfill-form .sf-section + .sf-section {
  border-top: 0 !important;
}

/* Keep the calculate button hidden once live calculation/results are active */
.shortfill-form .generate-btn.is-hidden,
.generate-btn.is-hidden {
  display: none !important;
}

/* Cleaner selects: remove native double chevrons and use one custom arrow */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f5' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

/* Remove number steppers for a cleaner mobile/desktop UI */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Advanced block: icon, compact toggle button, and fields inside the same visual frame */
.advanced-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.advanced-box .advanced-toggle {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 16px;
}

.advanced-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.advanced-title > i {
  width: 22px;
  color: var(--accent-2);
  font-size: 16px;
  text-align: center;
  flex: 0 0 auto;
}

.advanced-box .ghost-btn {
  width: 68px;
  min-width: 68px;
  flex: 0 0 68px;
  padding-left: 0;
  padding-right: 0;
}

.advanced-box .advanced-fields {
  padding: 0 16px 16px;
}

.advanced-box .advanced-fields.open {
  display: grid;
}

.advanced-box .advanced-fields .field {
  min-width: 0;
}

@media (max-width: 520px) {
  .advanced-box .advanced-toggle {
    flex-direction: row;
    align-items: center;
  }

  .advanced-title {
    align-items: flex-start;
  }

  .advanced-box .ghost-btn {
    width: 60px;
    min-width: 60px;
    flex-basis: 60px;
  }
}

/* === KASER requested UI polish 2026-05-25 === */
/* Gold section titles, same tone as icons */
.sf-section-head strong {
  color: var(--accent-2) !important;
}

/* Slightly tighter vertical rhythm in sections */
.shortfill-form .sf-section {
  padding-top: 16px !important;
  padding-bottom: 0px !important;
}

@media (min-width: 861px) {
  .shortfill-form .sf-section {
    padding-top: 18px !important;
    padding-bottom: 0px !important;
  }
}

/* Longfill now uses the same compact section system as shortfill */
.longfill-form .sf-section {
  margin-inline: -26px;
  padding: 18px 26px;
}

.longfill-form .sf-section-head strong {
  color: var(--accent-2) !important;
}

.longfill-form input,
.longfill-form select {
  height: 50px;
}

.longfill-form .preset {
  min-height: 40px;
}

/* Results stay two by two on mobile when possible */
@media (max-width: 860px) {
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .metric {
    padding: 13px;
  }

  .metric strong,
  .metric-value {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .result-grid {
    grid-template-columns: 1fr !important;
  }
}


.simple-booster-suggestion {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 213, 141, 0.28);
  background: rgba(201, 164, 92, 0.10);
  color: #f4f4f5;
  font-size: 13px;
  line-height: 1.45;
}

.simple-booster-suggestion strong {
  color: var(--accent-2);
  font-weight: 900;
}

.simple-booster-suggestion.is-hidden {
  display: none;
}

.simple-booster-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.simple-booster-suggestion i {
width: 22px;
    color: var(--accent-2);
    font-size: 16px;
    text-align: center;
    flex: 0 0 auto;
}

html {
  background: #0b0d10;
}

body {
  min-height: 100svh;
}

.page {
  padding-top: max(34px, env(safe-area-inset-top));
  padding-bottom: max(46px, env(safe-area-inset-bottom));
}


/* Simple booster suggestion: stable layout after live AJAX update */
.simple-booster-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
}

.simple-booster-suggestion i {
  width: 22px;
  color: var(--accent-2);
  font-size: 16px;
  text-align: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.simple-booster-suggestion > div {
  min-width: 0;
  flex: 1;
}

.simple-booster-suggestion strong {
  display: inline;
}
