/* ==========================================================================
   COMMON FORM COMPONENTS
   New tools should prefer these shared classes before adding local CSS:
   panel: .ondo-form-panel
   grid: .ondo-form-grid
   group heading: .ondo-form-group-head
   primary action row: .button-row
   ========================================================================== */
.ondo-form-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240,217,211,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-xs);
}
.date-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.date-mode-tab {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(255,111,97,.22);
  border-radius: 999px;
  background: rgba(255,245,242,.72);
  color: var(--muted);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
}
.date-mode-tab.is-active {
  border-color: rgba(255,111,97,.55);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.ondo-form-group {
  display: grid;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240,217,211,.72);
}
.ondo-form-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ondo-form-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
}
.ondo-form-group-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.ondo-form-group-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}
.ondo-form-grid {
  display: grid;
  gap: 10px;
  align-items: end;
}
.ondo-form-grid--single {
  grid-template-columns: minmax(220px, .5fr);
}
.ondo-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ondo-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ondo-form-grid--sub {
  padding-top: 2px;
}
.ondo-form-panel label {
  gap: 5px;
}
.ondo-form-panel input,
.ondo-form-panel select {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
}
.parcel-advanced {
  display: grid;
  gap: 10px;
}
.parcel-advanced-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,111,97,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 900;
}
.parcel-advanced-toggle.is-open {
  border-color: rgba(255,111,97,.58);
  background: rgba(255,245,242,.92);
  box-shadow: 0 10px 22px rgba(255,111,97,.12);
}
.parcel-advanced-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(255,111,97,.18);
  border-radius: 999px;
  background: rgba(255,111,97,.08);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.parcel-advanced-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,111,97,.2);
  border-radius: 16px;
  background: rgba(255,250,248,.86);
}
.parcel-advanced-panel[hidden] {
  display: none;
}
.bmi-meter-summary {
  gap: 10px;
}
.ondo-meter {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(15,23,42,.18);
}
.ondo-meter--bmi {
  gap: 12px;
}
.ondo-meter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ondo-meter-head > div {
  min-width: 0;
}
.ondo-meter-title {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
}
.ondo-meter-subtitle {
  margin: 3px 0 0;
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}
.ondo-meter-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
.ondo-meter-scale {
  position: relative;
  padding-top: 28px;
}
.ondo-meter-track {
  position: relative;
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ondo-meter-segment {
  min-width: 0;
  height: 100%;
}
.ondo-meter-segment:first-child {
  border-radius: 999px 0 0 999px;
}
.ondo-meter-segment:last-child {
  border-radius: 0 999px 999px 0;
}
.ondo-meter-segment + .ondo-meter-segment {
  box-shadow: inset 1px 0 0 rgba(255,255,255,.42);
}
.ondo-meter-segment--low {
  background: linear-gradient(90deg, rgba(100,116,139,.7), rgba(148,163,184,.76));
}
.ondo-meter-segment--normal {
  background: linear-gradient(90deg, rgba(45,212,191,.72), rgba(34,197,94,.78));
}
.ondo-meter-segment--caution {
  background: linear-gradient(90deg, rgba(251,191,36,.8), rgba(245,158,11,.82));
}
.ondo-meter-segment--high {
  background: linear-gradient(90deg, rgba(244,114,182,.78), rgba(251,113,133,.86));
}
.ondo-meter-marker {
  position: absolute;
  top: 36px;
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,23,42,.62), 0 8px 18px rgba(0,0,0,.3);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.ondo-meter-marker-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
}
.ondo-meter-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.ondo-meter-legend-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.ondo-meter-legend-item.is-active {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
}
.ondo-meter-legend-name {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.ondo-meter-legend-range {
  color: rgba(226,232,240,.72);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}
.ondo-meter-note {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.calorie-breakdown {
  display: grid;
  gap: 10px;
}
.calorie-formula-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255,111,97,.24);
  border-radius: 14px;
  background: rgba(255,111,97,.09);
}
.calorie-formula-box span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}
.calorie-formula-box strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}
.calorie-formula-box em {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.25;
}
.calorie-breakdown-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.calorie-breakdown-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}
.calorie-breakdown-item span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 850;
}
.calorie-breakdown-item strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.kitchen-fraction-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kitchen-fraction-pills button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,111,97,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 900;
}
.kitchen-fraction-pills button.is-active {
  border-color: rgba(255,111,97,.54);
  background: rgba(255,111,97,.16);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(255,111,97,.12);
}
.kitchen-unit-list {
  display: grid;
  gap: 7px;
}
.kitchen-formula-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255,111,97,.24);
  border-radius: 14px;
  background: rgba(255,111,97,.09);
}
.kitchen-formula-box span {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}
.kitchen-formula-box strong,
.kitchen-formula-box em {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.35;
}
.kitchen-formula-box em {
  font-size: 16px;
}
.kitchen-unit-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kitchen-unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}
.kitchen-unit-chip span {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 850;
}
.kitchen-unit-chip strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.text-work-panel textarea,
.content-work-panel textarea {
  min-height: 150px;
  padding: 11px 12px;
  border-radius: 14px;
}
.money-calc-panel {
  gap: 9px;
  padding: 14px;
}
.ondo-mode-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,111,97,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.ondo-mode-tab {
  min-height: 34px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.ondo-mode-tab.is-active {
  background: rgba(255,111,97,.16);
  color: var(--primary-strong);
  box-shadow: 0 7px 16px rgba(255,111,97,.10);
}
.ondo-segmented {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,111,97,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.ondo-segmented-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ondo-segmented-option:hover,
.ondo-segmented-option:focus-visible {
  background: rgba(255,245,242,.9);
  color: var(--primary-dark);
  outline: 0;
}
.ondo-segmented-option.is-active {
  background: rgba(255,111,97,.16);
  color: var(--primary-strong);
  box-shadow: 0 7px 16px rgba(255,111,97,.10);
}
.ondo-quick-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.ondo-quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,111,97,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.ondo-quick-chip:hover,
.ondo-quick-chip:focus-visible {
  border-color: rgba(255,111,97,.52);
  background: rgba(255,245,242,.96);
  color: var(--primary-dark);
  box-shadow: none;
  outline: 0;
}
.ondo-quick-chip.is-active {
  border-color: rgba(255,111,97,.62);
  background: rgba(255,111,97,.14);
  color: var(--primary-dark);
}
.discount-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
}
.discount-input-grid label {
  gap: 4px;
}
.discount-input-grid input {
  min-height: 42px;
  padding: 9px 11px;
}
.ondo-form-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}
button { border: 0; border-radius: var(--pill); background: var(--primary); color: #fff; font-weight: 950; cursor: pointer; box-shadow: var(--shadow-coral); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
button:hover, button:focus-visible { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 20px 38px rgba(232,80,91,.20); outline: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.result-box { margin-top: 26px; padding: 24px; background: var(--ink); border-radius: var(--radius-lg); color: #fff; font-size: 18px; font-weight: 850; box-shadow: var(--shadow-md); }
.result-box:empty { display: none; }
.result-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.result-metric { display: grid; gap: 4px; min-height: 92px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.08); }
.result-metric span { color: #cbd5e1; font-size: 13px; font-weight: 850; }
.result-metric strong { color: #fff; font-size: 22px; line-height: 1.2; }
.result-metric small { color: #cbd5e1; font-size: 12px; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result-action-button { min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--pill); background: var(--primary); color: #fff; font-size: 14px; font-weight: 950; box-shadow: var(--shadow-xs); }
.result-action-button:hover, .result-action-button:focus-visible { background: var(--primary-dark); box-shadow: var(--shadow-sm); }
.result-action-secondary { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.result-action-secondary:hover, .result-action-secondary:focus-visible { background: var(--surface-soft); border-color: var(--line-strong); color: var(--primary-dark); }

.result-summary {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.result-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.result-box .result-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.result-box .result-metric {
  min-height: 68px;
  padding: 10px 11px;
  border-radius: 12px;
  gap: 2px;
}

.result-box .result-metric span {
  font-size: 11px;
  line-height: 1.25;
}

.result-box .result-metric strong {
  font-size: 18px;
  line-height: 1.18;
}

.result-box .result-metric small {
  font-size: 11px;
  line-height: 1.3;
}

.result-detail-table,
.result-box .result-table {
  min-width: 0;
  font-size: 12px;
}

.result-box .result-table-wrap {
  margin-top: 10px;
  border-radius: 12px;
}

.result-box .result-table th,
.result-box .result-table td {
  padding: 7px 9px;
  line-height: 1.35;
  white-space: normal;
}

.result-box .result-table th:first-child,
.result-box .result-table td:first-child {
  width: 36%;
  text-align: left;
}

.result-list,
.result-compact-list {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.result-list strong,
.result-compact-list strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.result-list ul,
.result-compact-list ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.result-list li,
.result-compact-list li {
  color: #dbe4ef;
  font-size: 12px;
  line-height: 1.4;
}

.result-note {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.48;
}

[data-image-line] {
  display: none !important;
}
.ondo-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: min(420px, calc(100% - 32px)); padding: 13px 16px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 14px; font-weight: 850; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.ondo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.section-card { margin-top: 28px; padding: clamp(24px, 4vw, 34px); }
.section-card-head { margin-bottom: 18px; }
.summary-list { display: grid; gap: 12px; }
.summary-list p { margin: 0; padding: 16px 18px; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 20px; color: var(--ink); font-weight: 800; }
.aeo-section { scroll-margin-top: 96px; }
.aeo-list, .example-list, .step-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.aeo-list li, .example-list li, .step-list li { position: relative; padding: 16px 18px 16px 46px; background: #fff; border: 1px solid rgba(240,217,211,.92); border-radius: 20px; color: #475569; box-shadow: var(--shadow-xs); }
.aeo-list li::before, .example-list li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--surface-soft); }
.step-list { counter-reset: guide-step; }
.step-list li { counter-increment: guide-step; }
.step-list li::before { content: counter(guide-step); position: absolute; left: 14px; top: 14px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 950; }
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.use-case-grid span { display: flex; align-items: center; min-height: 62px; padding: 14px 16px; background: #fff; border: 1px solid rgba(240,217,211,.92); border-radius: 20px; color: var(--ink); font-weight: 850; box-shadow: var(--shadow-xs); }
.faq-list { display: grid; gap: 12px; }
.faq-section details { overflow: hidden; background: #fff; border: 1px solid rgba(240,217,211,.92); border-radius: 20px; box-shadow: var(--shadow-xs); }
.faq-section summary { position: relative; cursor: pointer; padding: 18px 58px 18px 20px; color: var(--ink); font-weight: 950; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; top: 50%; right: 20px; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-soft); color: var(--primary-dark); transform: translateY(-50%); font-weight: 950; }
.faq-section details[open] summary { border-bottom: 1px solid var(--line); }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0; padding: 18px 20px; color: #475569; }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related-list a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; background: #fff; border: 1px solid rgba(240,217,211,.92); border-radius: 20px; box-shadow: var(--shadow-xs); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.related-list a:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.related-list span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 15px; background: var(--surface-soft); color: var(--primary-dark); font-size: 12px; font-weight: 950; }
.related-list strong { color: var(--ink); font-size: 15px; }

.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 124px; padding: 30px 0; }
.footer-brand { color: var(--ink); font-size: 22px; font-weight: 950; letter-spacing: -0.04em; }
.footer-brand-block p { margin: 6px 0 0; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; font-size: 14px; font-weight: 850; }
.footer-meta a { color: var(--primary-dark); }
[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .hero-layout, .tool-hero { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .home-hero { padding: 54px 0 44px; }
  .section { padding: 34px 0; }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .header-inner { min-height: auto; padding: 14px 0; }
  .site-nav { justify-content: flex-start; width: 100%; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; }
  .site-nav a { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; font-size: 13px; }
  .hero-copy h1, .tool-hero h1 { font-size: 39px; }
  .hero-copy p, .tool-title-card p { font-size: 16px; }
  .hero-panel, .tool-title-card, .calculator-panel, .section-card, .category-block { border-radius: 22px; padding: 20px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .section-heading, .category-heading { align-items: flex-start; flex-direction: column; }
  .category-jump { justify-content: flex-start; }
  .featured-grid, .compact-grid, .tool-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { min-height: 76px; padding: 10px 12px; border-radius: 14px; }
  .tool-card { grid-template-columns: 36px minmax(0, 1fr) 26px; gap: 10px; }
  .tool-icon { width: 36px; height: 36px; border-radius: 13px; font-size: 11px; }
  .tool-card strong { font-size: 15px; line-height: 1.22; }
  .tool-card small { font-size: 12px; line-height: 1.28; }
  .tool-card small { -webkit-line-clamp: 1; }
  .button-row button { width: 100%; }
  .result-action-button { flex: 1 1 calc(50% - 10px); }
  .footer-meta { justify-content: flex-start; }
}
@media (max-width: 430px) {
  .container { width: min(100% - 22px, var(--container)); }
  .brand-text { font-size: 22px; }
  .hero-copy h1, .tool-hero h1 { font-size: 34px; }
  .tool-card { gap: 10px; }
  .featured-grid, .compact-grid, .tool-grid { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { grid-template-columns: 36px minmax(0, 1fr) 26px; }
  .tool-card small { -webkit-line-clamp: 1; }
  .result-action-button { flex-basis: 100%; }
  input, select, textarea, button { min-height: 54px; }
}

