/* ==========================================================================
   COMMON RESULT COMPONENTS
   Standard new-tool flow:
   .ondo-result-shell > .ondo-result-hero + .ondo-result-metrics
   Use .ondo-result-note for assumptions, limits, and reference guidance.
   ========================================================================== */
/* Composable result block system */
.ondo-result {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.ondo-result--light {
  background: rgba(255,255,255,.96);
  color: var(--text);
}

.ondo-result--dark {
  background: var(--ink);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.result-kicker {
  margin: 0;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-main {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
}

.ondo-result--dark .result-main {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

.result-main-value {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.ondo-result--dark .result-main-value {
  color: #fff;
}

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

.result-compact-table,
.result-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}

.result-compact-table th,
.result-compact-table td,
.result-detail-table th,
.result-detail-table td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align: left;
  vertical-align: top;
}

.ondo-result--dark .result-compact-table th,
.ondo-result--dark .result-compact-table td,
.ondo-result--dark .result-detail-table th,
.ondo-result--dark .result-detail-table td {
  border-bottom-color: rgba(255,255,255,.12);
}

.result-timeline {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-timeline li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
}

.result-timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

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

.result-compare > * {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}

.result-image-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* Standard result frame v1: shared building blocks for future tool results.
   Tool logic can freely combine shell, metrics, table, list, timeline,
   compare, scale, bar, code, schedule, and callout blocks. */
.ondo-result-shell {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

.ondo-result-shell--light {
  border-color: rgba(240,217,211,.9);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.ondo-result-header {
  display: grid;
  gap: 4px;
}

.ondo-result-header .result-kicker,
.ondo-result-kicker {
  margin: 0;
  color: #fecaca;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ondo-result-shell--light .result-kicker,
.ondo-result-shell--light .ondo-result-kicker {
  color: var(--primary-dark);
}

.ondo-result-title {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.ondo-result-subtitle {
  margin: 0;
  color: rgba(226,232,240,.78);
  font-size: 13px;
  line-height: 1.45;
}

.ondo-result-shell--light .ondo-result-subtitle {
  color: var(--muted);
}

.ondo-result-hero {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.ondo-result-shell--light .ondo-result-hero {
  border-color: #fee2dc;
  background: #fff1ee;
}

.ondo-result-hero strong {
  color: inherit;
  font-size: clamp(20px, 3.8vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.ondo-result-hero span,
.ondo-result-hero small {
  color: rgba(226,232,240,.78);
  font-size: 13px;
  line-height: 1.4;
}

.ondo-result-shell--light .ondo-result-hero span,
.ondo-result-shell--light .ondo-result-hero small {
  color: #64748b;
}

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

.ondo-result-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.ondo-result-shell--light .ondo-result-metric {
  border-color: var(--line);
  background: #fff;
}

.ondo-result-metric span {
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 850;
}

.ondo-result-shell--light .ondo-result-metric span {
  color: var(--muted);
}

.ondo-result-metric strong {
  color: inherit;
  font-size: clamp(18px, 3vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ondo-result-metric small {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ondo-result-shell--light .ondo-result-metric small {
  color: #64748b;
}

.ondo-result-body {
  display: grid;
  gap: 10px;
}

.result-block-table,
.result-block-list,
.result-block-timeline,
.result-block-compare,
.result-block-code,
.result-block-schedule,
.result-block-visual,
.result-block-callout {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.ondo-result-shell--light .result-block-table,
.ondo-result-shell--light .result-block-list,
.ondo-result-shell--light .result-block-timeline,
.ondo-result-shell--light .result-block-compare,
.ondo-result-shell--light .result-block-code,
.ondo-result-shell--light .result-block-schedule,
.ondo-result-shell--light .result-block-visual,
.ondo-result-shell--light .result-block-callout {
  border-color: var(--line);
  background: rgba(255,255,255,.86);
}

.result-block-title {
  margin: 0 0 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.result-block-table .result-block-title,
.result-block-schedule .result-block-title {
  padding: 12px 12px 0;
}

.result-block-table .result-block-title + table,
.result-block-schedule .result-block-title + table {
  margin-top: 6px;
}

.result-block-table,
.result-block-schedule {
  overflow-x: auto;
}

.result-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.result-table-scroll table {
  min-width: 0;
}

.result-block-schedule .result-table-scroll table {
  min-width: 0;
}

.result-block-table table,
.result-block-schedule table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}

.result-block-table th,
.result-block-table td,
.result-block-schedule th,
.result-block-schedule td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
  vertical-align: top;
}

.ondo-result-shell--light .result-block-table th,
.ondo-result-shell--light .result-block-table td,
.ondo-result-shell--light .result-block-schedule th,
.ondo-result-shell--light .result-block-schedule td {
  border-bottom-color: rgba(15,23,42,.08);
}

.result-block-table tr:last-child th,
.result-block-table tr:last-child td,
.result-block-schedule tr:last-child th,
.result-block-schedule tr:last-child td {
  border-bottom: 0;
}

.loan-schedule-amount {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .result-block-schedule .result-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .result-block-schedule .result-table-scroll table {
    min-width: 620px;
  }
}

.loan-flow-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.loan-flow-row {
  display: grid;
  grid-template-columns: minmax(92px, .55fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.loan-flow-row:last-child {
  border-bottom: 0;
}

.loan-flow-row span {
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 850;
}

.loan-flow-row strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.loan-flow-row small {
  grid-column: 2;
  color: rgba(226,232,240,.68);
  font-size: 12px;
  line-height: 1.35;
}

.ondo-compare-bars {
  display: grid;
  gap: 10px;
  padding: 4px 0 10px;
}

.ondo-compare-bar-row {
  display: grid;
  grid-template-columns: minmax(58px, 88px) minmax(90px, 1fr) minmax(84px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ondo-compare-bar-label {
  min-width: 0;
  color: rgba(226,232,240,.74);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.ondo-compare-bar-track {
  min-width: 0;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.ondo-compare-bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: rgba(226,232,240,.38);
}

.ondo-compare-bar-fill--primary {
  background: linear-gradient(90deg, #ff756b, #ffb199);
}

.ondo-compare-bar-fill--secondary {
  background: linear-gradient(90deg, #7c8cff, #9cc8ff);
}

.ondo-compare-bar-fill--neutral {
  background: rgba(226,232,240,.42);
}

.ondo-compare-bar-value {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.ondo-progress {
  display: grid;
  gap: 9px;
  margin: 8px 0 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(15,23,42,.18);
}

.ondo-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ondo-progress-label {
  min-width: 0;
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.ondo-progress-value {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
}

.ondo-progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.ondo-progress-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

.ondo-progress-fill--default {
  background: linear-gradient(90deg, #38bdf8 0%, #8b8cff 52%, #fb7185 100%);
  box-shadow: 0 0 16px rgba(56,189,248,.2);
}

.ondo-progress-fill--warning {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  box-shadow: 0 0 16px rgba(251,191,36,.2);
}

.ondo-progress-fill--danger {
  background: linear-gradient(90deg, #fb7185, #ef4444);
  box-shadow: 0 0 16px rgba(251,113,133,.22);
}

.ondo-progress-note {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.ondo-progress-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ondo-progress-badge--safe {
  background: rgba(56,189,248,.13);
  color: #bae6fd;
}

.ondo-progress-badge--warning {
  background: rgba(251,191,36,.14);
  color: #fde68a;
}

.ondo-progress-badge--danger {
  background: rgba(251,113,133,.15);
  color: #fecdd3;
}

.ondo-simulation {
  display: grid;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(15,23,42,.16);
}

.ondo-simulation-head {
  display: grid;
  gap: 3px;
}

.ondo-simulation-title {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
}

.ondo-simulation-note {
  margin: 0;
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.ondo-simulation-list {
  display: grid;
  gap: 8px;
}

.ondo-simulation-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.65fr) minmax(88px, 1fr) minmax(120px, max-content);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ondo-simulation-label {
  min-width: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ondo-simulation-track {
  min-width: 0;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.ondo-simulation-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: rgba(226,232,240,.38);
}

.ondo-simulation-fill--primary {
  background: linear-gradient(90deg, #ff756b, #ffb199);
}

.ondo-simulation-fill--secondary {
  background: linear-gradient(90deg, #7c8cff, #9cc8ff);
}

.ondo-simulation-fill--neutral {
  background: rgba(226,232,240,.42);
}

.ondo-simulation-fill--accent {
  background: linear-gradient(90deg, #34d399, #67e8f9);
}

.ondo-simulation-value {
  min-width: 120px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.result-block-loan-composition {
  display: grid;
  gap: 10px;
}

.legend-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot--principal {
  background: rgba(226,232,240,.64);
}

.legend-dot--interest {
  background: var(--primary);
}

.result-summary-rows {
  display: grid;
  gap: 8px;
}

.result-summary-row {
  display: grid;
  grid-template-columns: 92px minmax(92px, 1fr) minmax(128px, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.result-summary-label {
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.result-summary-label small {
  display: block;
  margin-top: 2px;
  color: rgba(226,232,240,.52);
  font-size: 11px;
  font-weight: 750;
}

.result-summary-value {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.ondo-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ondo-detail-panel {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(15,23,42,.2);
}

.ondo-detail-title {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.ondo-detail-list {
  display: grid;
  gap: 6px;
}

.ondo-detail-row {
  display: grid;
  grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.ondo-detail-label {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.ondo-detail-value {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.ondo-output-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(15,23,42,.18);
}

.ondo-output-list-head {
  display: grid;
  gap: 2px;
}

.ondo-output-list-head strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.ondo-output-list-head span {
  color: rgba(226,232,240,.6);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.ondo-output-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.ondo-output-column {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ondo-output-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.ondo-output-index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(226,232,240,.78);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.ondo-output-main {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ondo-output-meta {
  min-width: 0;
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.ondo-timeline {
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(15,23,42,.18);
}

.ondo-timeline-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ondo-timeline-head strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.ondo-timeline-head span {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.ondo-timeline-track {
  position: relative;
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(15,23,42,.72);
}

.ondo-timeline-use,
.ondo-timeline-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  min-width: 0;
}

.ondo-timeline-use {
  background: rgba(143,168,255,.72);
}

.ondo-timeline-fade {
  background: rgba(255,139,122,.78);
}

.ondo-timeline-markers {
  position: relative;
  height: 48px;
  margin-top: -2px;
}

.ondo-timeline-marker {
  position: absolute;
  top: 0;
  display: inline-grid;
  gap: 2px;
  min-width: 58px;
  padding-top: 11px;
  text-align: center;
  transform: translateX(-50%);
}

.ondo-timeline-marker--edge-start {
  text-align: left;
  transform: translateX(0);
}

.ondo-timeline-marker--edge-end {
  text-align: right;
  transform: translateX(-100%);
}

.ondo-timeline-marker i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 9px;
  border-radius: 999px;
  background: rgba(226,232,240,.46);
  transform: translateX(-50%);
}

.ondo-timeline-marker--edge-start i {
  left: 0;
  transform: none;
}

.ondo-timeline-marker--edge-end i {
  right: 0;
  left: auto;
  transform: none;
}

.ondo-timeline-marker small {
  color: rgba(226,232,240,.62);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.ondo-timeline-marker strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  white-space: nowrap;
}

.ondo-timeline-note {
  margin: 4px 0 0;
  color: rgba(226,232,240,.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.ondo-composition {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(15,23,42,.18);
}

.ondo-composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ondo-composition-title {
  min-width: 0;
  color: rgba(226,232,240,.82);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
}

.ondo-composition-total {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.ondo-composition-stacked {
  display: flex;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(15,23,42,.72);
}

.ondo-composition-segment {
  display: block;
  min-width: 0;
  height: 100%;
}

.ondo-composition-list {
  display: grid;
  gap: 8px;
}

.ondo-composition-row {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) minmax(104px, auto) minmax(54px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ondo-composition-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.ondo-composition-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.ondo-composition-track {
  min-width: 0;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.ondo-composition-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

.ondo-composition-value,
.ondo-composition-percent {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.ondo-composition-percent {
  color: rgba(226,232,240,.72);
  font-size: 12px;
}

.ondo-composition-fill--a {
  background: linear-gradient(90deg, #8fa8ff, #b7c7ff);
}

.ondo-composition-fill--b {
  background: linear-gradient(90deg, #ff8b7a, #ffb199);
}

.ondo-composition-fill--c {
  background: linear-gradient(90deg, #9b8cff, #c4b5fd);
}

.ondo-composition-fill--d {
  background: linear-gradient(90deg, #4fd4c8, #8ee8df);
}

.ondo-composition-fill--e {
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.result-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.result-chip b {
  color: rgba(226,232,240,.68);
  font-size: 11px;
  font-weight: 900;
}

.result-chip em {
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lotto-result-list ul {
  gap: 10px;
}

.lotto-set-item strong {
  display: block;
  margin-top: 7px;
}

.lotto-ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lotto-ball {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -2px 6px rgba(15,23,42,.22), 0 5px 12px rgba(15,23,42,.2);
}

.lotto-ball--yellow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
}

.lotto-ball--blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.lotto-ball--red {
  background: linear-gradient(135deg, #fb7185, #f04438);
}

.lotto-ball--gray {
  background: linear-gradient(135deg, #94a3b8, #475569);
}

.lotto-ball--green {
  background: linear-gradient(135deg, #34d399, #059669);
}

.ladder-result-list ul {
  gap: 8px;
}

.ladder-match-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.ladder-match-name,
.ladder-match-result {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ladder-match-arrow {
  color: #fb7185;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ladder-match-result {
  color: #fff;
  font-weight: 900;
}

.fun-result-card {
  display: grid;
  gap: 10px;
}

.fun-result-card > strong {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fun-result-card > p {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 13px;
  line-height: 1.5;
}

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

.fun-result-detail {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(15,23,42,.2);
}

.fun-result-detail span {
  display: block;
  color: rgba(226,232,240,.68);
  font-size: 11px;
  font-weight: 900;
}

.fun-result-detail p {
  margin: 5px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.file-result-card {
  display: grid;
  gap: 8px;
}

.file-result-card > strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.file-result-card > p,
.file-result-help {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  line-height: 1.45;
}

.modbus-code-summary {
  display: grid;
  gap: 7px;
  white-space: normal;
}

.modbus-code-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modbus-code-row:last-child {
  border-bottom: 0;
}

.modbus-code-row span {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 900;
}

.modbus-code-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.result-block-list,
.result-block-timeline,
.result-block-compare,
.result-block-code,
.result-block-visual,
.result-block-callout {
  padding: 12px;
}

.result-block-list ul,
.result-block-timeline ol,
.result-block-timeline ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-block-list li,
.result-block-timeline li {
  position: relative;
  padding-left: 18px;
  color: rgba(248,250,252,.9);
  font-size: 13px;
  line-height: 1.45;
}

.result-block-timeline li span {
  display: block;
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 850;
}

.result-block-timeline li strong {
  display: inline-block;
  margin-top: 1px;
  color: inherit;
  font-size: 15px;
}

.result-block-timeline li small {
  display: inline-block;
  margin-left: 6px;
  color: rgba(226,232,240,.68);
  font-size: 12px;
}

.result-block-timeline li em {
  display: inline-block;
  margin-left: 6px;
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-style: normal;
}

.ondo-result-shell--light .result-block-list li,
.ondo-result-shell--light .result-block-timeline li {
  color: #334155;
}

.ondo-result-shell--light .result-block-timeline li span,
.ondo-result-shell--light .result-block-timeline li small,
.ondo-result-shell--light .result-block-timeline li em {
  color: #64748b;
}

.result-block-list li::before,
.result-block-timeline li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

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

.result-block-compare > * {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
}

.meeting-result-block {
  grid-template-columns: 1fr;
  align-content: start;
}

.meeting-result-block > .result-block-title {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.meeting-result-block > .meeting-window-list,
.meeting-result-block > .meeting-window-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.meeting-window-list {
  display: grid;
  gap: 8px;
}

.meeting-window-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
}

.meeting-window-card__badge {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,111,97,.16);
  color: #fecaca;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.meeting-window-card__summary {
  margin: 0;
  color: rgba(248,250,252,.88);
  font-size: 13px;
  line-height: 1.42;
}

.meeting-window-card__rows {
  display: grid;
  gap: 5px;
}

.meeting-window-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.meeting-window-row span {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.meeting-window-row strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ondo-result-shell--light .result-block-compare > * {
  border-color: var(--line);
  background: #fff;
}

.result-block-code {
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.result-block-callout,
.ondo-result-note {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  color: rgba(226,232,240,.84);
  font-size: 13px;
  line-height: 1.48;
}

.ondo-result-shell--light .result-block-callout,
.ondo-result-shell--light .ondo-result-note {
  border-color: #fee2dc;
  background: #fff8f6;
  color: #64748b;
}

.ondo-result-shell--compact {
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.14);
}

.result-box:has(.ondo-result-shell) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

#result .ondo-result-shell--compact {
  width: min(100%, 1080px);
  max-width: none;
  margin-inline: auto;
}

.ondo-result-shell--compact .ondo-result-hero {
  gap: 2px;
  padding: 8px 11px;
  border-radius: 14px;
}

.ondo-result-shell--compact .ondo-result-hero strong {
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.2;
}

.ondo-result-shell--compact .ondo-result-hero small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.ondo-result-shell--compact .ondo-result-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.ondo-result-shell--compact .ondo-result-metric {
  gap: 2px;
  min-height: 56px;
  padding: 8px 9px;
  border-radius: 12px;
}

.ondo-result-shell--compact .ondo-result-metric span,
.ondo-result-shell--compact .ondo-result-metric small {
  font-size: 11px;
  line-height: 1.25;
}

.ondo-result-shell--compact .ondo-result-metric strong {
  font-size: 17px;
  line-height: 1.15;
}

.ondo-result-body--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.ondo-result-body--main-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: stretch;
}

.result-block-aside {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  grid-auto-rows: max-content;
}

.ondo-result-body--main-aside .result-block-main,
.ondo-result-body--main-aside .result-block-aside {
  height: 100%;
}

.ondo-result-note--inline {
  grid-column: 1 / -1;
  margin-top: 0;
}

.ondo-result-shell--compact .result-block-list,
.ondo-result-shell--compact .result-block-timeline,
.ondo-result-shell--compact .result-block-visual,
.ondo-result-shell--compact .result-block-callout,
.ondo-result-shell--compact .ondo-result-note {
  padding: 9px 10px;
  border-radius: 12px;
}

.ondo-result-shell--compact .result-block-table,
.ondo-result-shell--compact .result-block-schedule {
  border-radius: 12px;
}

.ondo-result-shell--compact .result-block-title {
  margin-bottom: 6px;
  font-size: 13px;
}

.ondo-result-shell--compact .result-block-table .result-block-title,
.ondo-result-shell--compact .result-block-schedule .result-block-title {
  padding: 9px 10px 0;
}

.ondo-result-shell--compact .result-block-table .result-block-title + table,
.ondo-result-shell--compact .result-block-schedule .result-block-title + table {
  margin-top: 4px;
}

.ondo-result-shell--compact .result-block-table th,
.ondo-result-shell--compact .result-block-table td,
.ondo-result-shell--compact .result-block-schedule th,
.ondo-result-shell--compact .result-block-schedule td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.32;
}

.ondo-result-shell--compact .result-block-timeline ol,
.ondo-result-shell--compact .result-block-timeline ul {
  gap: 5px;
}

.ondo-result-shell--compact .result-block-timeline li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-left: 14px;
  font-size: 12px;
}

.ondo-result-shell--compact .result-block-timeline li::before {
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
}

.ondo-result-shell--compact .result-block-timeline li span,
.ondo-result-shell--compact .result-block-timeline li strong,
.ondo-result-shell--compact .result-block-timeline li small,
.ondo-result-shell--compact .result-block-timeline li em {
  display: block;
  margin: 0;
  line-height: 1.25;
}

.ondo-result-shell--compact .result-block-timeline li strong {
  font-size: 13px;
}

.ondo-result-shell--compact .result-block-timeline--table li {
  grid-template-columns: 64px 144px 68px;
  justify-content: start;
  column-gap: 16px;
  min-height: 30px;
}

.ondo-result-shell--compact .result-block-timeline--table li em {
  text-align: left;
}

.ondo-result-shell--compact .result-block-timeline--table .result-block-more {
  grid-template-columns: minmax(0, 1fr);
  min-height: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.ondo-result-shell--compact .result-block-timeline--table .result-block-more::before {
  background: rgba(255, 255, 255, 0.32);
}

.ondo-result-shell--compact .result-block-hint {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.result-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.result-flow-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.result-flow-step span,
.result-flow-step small {
  display: block;
  color: rgba(226,232,240,.7);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.result-flow-step strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.result-flow-step small {
  margin-top: 4px;
  font-weight: 700;
}

.result-flow-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255,255,255,.5);
  font-weight: 900;
}

.result-flow-caption {
  margin: 8px 0 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  line-height: 1.4;
}

.ondo-result-shell--compact .ondo-result-note {
  font-size: 12px;
  line-height: 1.38;
}

.category-block,
.compact-category-block {
  scroll-margin-top: 120px;
}

.knowledge-overview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
.section-card { margin-top: 0; padding: 22px; border-radius: 20px; }
.section-card + .section-card { margin-top: 16px; }
.compact-head { margin-bottom: 12px; }
.compact-summary-list { gap: 9px; }
.summary-list p { padding: 13px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.compact-notice { margin: 0; padding: 16px; border-radius: 18px; }
.notice-box { margin-bottom: 16px; }
.notice-list ul { margin-top: 6px; font-size: 13px; line-height: 1.52; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.aeo-section { scroll-margin-top: 84px; }
.aeo-list li, .example-list li, .step-list li { padding: 13px 14px 13px 42px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.aeo-list li::before, .example-list li::before { left: 17px; top: 21px; width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--surface-soft); }
.step-list li::before { left: 12px; top: 12px; width: 22px; height: 22px; font-size: 11px; }
.compact-use-cases { grid-template-columns: 1fr; gap: 10px; }
.use-case-grid span { min-height: 52px; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.faq-section { margin-top: 16px; }
.faq-section details { border-radius: 16px; }
.faq-section summary { padding: 15px 52px 15px 18px; }
.faq-section details p { padding: 15px 18px; }
.related-section { margin-top: 16px; }
.related-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.related-list a { min-height: 56px; padding: 12px 14px; border-radius: 16px; }
.related-list span { width: 34px; height: 34px; border-radius: 13px; }

.static-page { padding: 34px 0 68px; }
.static-page-hero { margin-bottom: 16px; padding: clamp(24px, 4vw, 36px); background: rgba(255,255,255,.94); border: 1px solid rgba(226,232,240,.92); border-radius: 22px; box-shadow: var(--shadow-sm); }
.tools-page-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .05), transparent 34%),
    rgba(255,255,255,.94);
  border-color: rgba(226,232,240,.92);
}
.static-page-hero h1 { margin: 8px 0 10px; color: var(--ink); font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.055em; line-height: 1.1; }
.static-page-hero p { margin: 0 0 12px; max-width: 720px; color: var(--muted); font-weight: 650; }
.static-page:has(.workflow-builder) {
  padding-top: 22px;
}
.static-page:has(.workflow-builder) .static-page-hero {
  margin-bottom: 12px;
  padding: clamp(18px, 3vw, 26px);
}
.static-page:has(.workflow-builder) .tool-breadcrumb {
  margin-bottom: 8px;
  font-size: 12px;
}
.static-page:has(.workflow-builder) .static-page-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 3.4vw, 40px);
}
.static-page:has(.workflow-builder) .static-page-hero p {
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.5;
  word-break: keep-all;
}
.static-page:has(.workflow-builder) .static-page-hero .meta-chip {
  display: none;
}
.static-content h2 { margin: 22px 0 8px; color: var(--ink); font-size: 22px; letter-spacing: -0.04em; }
.static-content h2:first-child { margin-top: 0; }
.static-content p { margin: 0 0 14px; color: #475569; }

.site-footer { margin-top: 28px; }
.compact-footer-inner { min-height: 98px; padding: 22px 0; }
.footer-meta { gap: 12px; }
.footer-meta a { color: #475569; }
.footer-meta a:hover { color: var(--primary-dark); }

@media (max-width: 1000px) {
  .compact-hero-layout, .tool-hero-compact, .knowledge-overview, .knowledge-grid { grid-template-columns: 1fr; }
  .tool-check-card { min-height: auto; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 24px, var(--container)); }
  .home-hero-compact { padding: 38px 0 30px; }
  .hero-copy h1 { font-size: 36px; }
  .tool-page { padding-top: 18px; }
  .tool-hero h1 { font-size: 32px; }
  .tool-title-card, .tool-side-card, .calculator-panel, .section-card, .static-page-hero { border-radius: 18px; padding: 18px; }
  .tool-side-card { display: none; }
  .tool-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-quick-link { width: 100%; padding-left: 8px; padding-right: 8px; text-align: center; }
  .compact-panel-heading { flex-direction: column; }
  .panel-badge { width: fit-content; }
  .form-grid { grid-template-columns: 1fr; }
  .bizdays-compact-panel { gap: 10px; padding: 12px; border-radius: 16px; }
  .bizdays-mode-tabs { gap: 7px; }
  .bizdays-mode-tab { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .bizdays-compact-head { display: grid; gap: 2px; }
  .bizdays-field-grid,
  .bizdays-options-row,
  .bizdays-options-row--nth { grid-template-columns: 1fr; gap: 8px; }
  .bizdays-compact-panel input,
  .bizdays-compact-panel select,
  .bizdays-compact-panel textarea { min-height: 44px; }
  .bizdays-mode-panel { padding: 12px; border-radius: 16px; }
  .bizdays-date-row,
  .bizdays-rule-grid { grid-template-columns: 1fr; gap: 10px; }
  .bizdays-preset-row { gap: 7px; }
  .bizdays-preset-row button { flex: 1 1 120px; }
  .bizdays-exclude-box textarea { min-height: 60px; }
  .timezone-input-layout,
  .timezone-team-grid { grid-template-columns: 1fr; }
  .timezone-date-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .timezone-date-field { flex-basis: auto; min-width: 0; }
  .timezone-date-help { margin: 0; }
  .timezone-team-card { padding: 12px; border-radius: 16px; }
  .ondo-form-panel { gap: 10px; padding: 12px; border-radius: 16px; }
  .date-mode-tabs { gap: 7px; }
  .date-mode-tab { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .ondo-form-group { gap: 8px; padding-bottom: 9px; }
  .ondo-form-group-head { display: grid; gap: 2px; }
  .ondo-form-grid,
  .ondo-form-grid--single,
  .ondo-form-grid--two,
  .ondo-form-grid--three { grid-template-columns: 1fr; gap: 8px; }
  .ondo-form-panel input,
  .ondo-form-panel select { min-height: 44px; }
  .discount-mode-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discount-mode-tab {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .discount-input-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .discount-input-grid input {
    min-height: 42px;
  }
  .ondo-mode-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 3px;
  }
  .ondo-mode-tab {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-action-button { width: 100%; }
  .result-box { padding: 12px; border-radius: 14px; }
  .result-box .result-main-grid,
  .result-box .result-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .result-box .result-metric { min-height: 58px; padding: 8px 9px; }
  .result-box .result-metric strong { font-size: 16px; }
  .ondo-result { padding: 12px; border-radius: 16px; gap: 8px; }
  .result-main { padding: 10px 12px; border-radius: 13px; }
  .result-metrics, .result-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ondo-result-shell { padding: 14px; border-radius: 20px; gap: 10px; }
  .ondo-result-hero { padding: 11px 12px; border-radius: 15px; }
  .ondo-result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ondo-result-metric { padding: 9px 10px; border-radius: 13px; }
  .ondo-result-body { gap: 8px; }
  .result-block-list,
  .result-block-timeline,
  .result-block-compare,
  .result-block-code,
  .result-block-visual,
  .result-block-callout,
  .ondo-result-note { padding: 10px; border-radius: 13px; }
  .result-block-table th,
  .result-block-table td,
  .result-block-schedule th,
  .result-block-schedule td { padding: 7px 8px; }
  .ondo-meter-head { display: grid; gap: 8px; }
  .ondo-meter-value { justify-self: start; }
  .ondo-meter-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #result .ondo-result-shell--compact { width: 100%; max-width: 100%; }
  .ondo-result-shell--compact { padding: 11px; border-radius: 16px; }
  .ondo-result-shell--compact .ondo-result-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ondo-result-body--split { grid-template-columns: 1fr; }
  .ondo-result-body--main-aside { grid-template-columns: 1fr; gap: 8px; align-items: stretch; }
  .ondo-result-note--inline { grid-column: auto; }
  .result-block-aside { gap: 8px; }
  .ondo-result-shell--compact .result-block-timeline li {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 6px;
  }
  .ondo-result-shell--compact .result-block-timeline--table li {
    grid-template-columns: 52px minmax(118px, 1fr) 50px;
    column-gap: 10px;
  }
  .meeting-window-card {
    gap: 7px;
    padding: 9px;
  }
  .meeting-window-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .loan-flow-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .loan-flow-row small {
    grid-column: auto;
  }
  .result-flow {
    display: grid;
    grid-template-columns: 1fr;
  }
  .result-flow-arrow {
    transform: rotate(90deg);
    min-height: 12px;
  }
  .fun-result-grid {
    grid-template-columns: 1fr;
  }
  .modbus-code-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .ondo-compare-bar-row,
  .ondo-simulation-row,
  .result-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ondo-compare-bar-value,
  .ondo-simulation-value,
  .result-summary-value {
    min-width: 0;
    justify-self: start;
    text-align: left;
  }
  .ondo-progress-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ondo-progress-value {
    white-space: normal;
  }
  .ondo-composition-head,
  .ondo-composition-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ondo-composition-total,
  .ondo-composition-value,
  .ondo-composition-percent {
    text-align: left;
    white-space: normal;
  }
  .category-block, .compact-category-block { scroll-margin-top: 104px; }
  .category-heading span { font-size: 12px; }
}
@media (max-width: 720px) {
  .ondo-output-columns {
    grid-template-columns: 1fr;
  }
  .ondo-output-list {
    padding: 11px;
    border-radius: 13px;
  }
  .ondo-timeline {
    padding: 11px;
    border-radius: 13px;
  }
  .ondo-timeline-head {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .ondo-timeline-head span {
    text-align: left;
    white-space: normal;
  }
  .ondo-timeline-markers {
    height: 44px;
  }
  .ondo-timeline-marker {
    min-width: 48px;
  }
  .ondo-timeline-marker small {
    font-size: 9px;
  }
  .ondo-timeline-marker strong {
    font-size: 11px;
  }
  .ondo-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ondo-detail-panel {
    padding: 11px;
    border-radius: 13px;
  }
  .ondo-detail-row {
    grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
    gap: 7px;
  }
}
@media (max-width: 430px) {
  .container { width: min(100% - 18px, var(--container)); }
  .hero-copy h1, .tool-hero h1 { font-size: 30px; }
  .site-nav { gap: 6px; }
  .site-nav a { padding: 7px 10px; }
  .tool-quick-actions, .result-actions { grid-template-columns: 1fr; }
  input, select, textarea, button { min-height: 48px; }
  .result-metric-grid { grid-template-columns: 1fr; }
  .ondo-result-metrics,
  .result-block-compare { grid-template-columns: 1fr; }
  .ondo-meter-legend { grid-template-columns: 1fr; }
  .ondo-meter-marker-label { font-size: 10px; }
}

/* Compact SEO/AEO information layout */
.knowledge-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 18px;
}

.insight-card,
.knowledge-grid .section-card,
.faq-section.section-card,
.related-section.section-card {
  margin-top: 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: var(--shadow-xs);
}

.insight-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.insight-card-head,
.compact-head,
.section-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.insight-card-head h2,
.section-card-head h2,
.panel-heading h2 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.insight-card-head .eyebrow,
.section-card-head .eyebrow {
  margin-bottom: 2px;
}

.insight-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.notice-insight-icon {
  background: var(--info-bg);
  color: var(--info);
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list p {
  margin: 0;
  padding: 0 0 0 12px;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.58;
}

.notice-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: #155e75;
  font-size: 14px;
  line-height: 1.56;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.aeo-list,
.example-list,
.step-list {
  gap: 10px;
}

.aeo-list li,
.example-list li,
.step-list li {
  padding: 12px 14px 12px 38px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.58;
}

.aeo-list li::before,
.example-list li::before {
  left: 16px;
  top: 20px;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px var(--surface-soft);
}

.step-list li::before {
  left: 12px;
  top: 12px;
  width: 21px;
  height: 21px;
}

.use-case-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.use-case-grid span {
  min-height: auto;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .knowledge-overview,
  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .insight-card,
  .knowledge-grid .section-card,
  .faq-section.section-card,
  .related-section.section-card {
    padding: 20px;
    border-radius: 18px;
  }
}

/* FAQ and related tools spacing */
.faq-section.section-card {
  margin-top: 34px;
  padding: 24px;
  border-radius: 20px;
}

.related-section.section-card {
  margin-top: 34px;
  padding: 24px;
  border-radius: 20px;
}

.faq-section .section-card-head,
.related-section .section-card-head {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.faq-section .section-card-head .eyebrow,
.related-section .section-card-head .eyebrow {
  line-height: 1;
  margin: 0 0 5px;
}

.faq-section .section-card-head h2,
.related-section .section-card-head h2 {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.22;
}

.faq-list {
  gap: 14px;
  margin-top: 18px;
}

.faq-section details {
  border-radius: 18px;
}

.faq-section summary {
  padding: 17px 56px 17px 20px;
}

.faq-section summary::after {
  right: 20px;
}

.faq-section details p {
  padding: 17px 20px 19px;
}

.related-list {
  gap: 14px;
}

.related-list a {
  min-height: 64px;
  padding: 15px 16px;
  border-radius: 18px;
}

.next-steps-panel.section-card {
  margin-top: 34px;
  padding: 24px;
  border-color: var(--tool-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-xs);
}

.next-steps-head {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.next-steps-head .eyebrow,
.next-steps-head h2,
.next-steps-head p {
  margin: 0;
}

.next-steps-head h2 {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.22;
  letter-spacing: -.04em;
}

.next-steps-head > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.58;
  word-break: keep-all;
}

.next-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.next-step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--tool-border);
  border-radius: 18px;
  background: var(--tool-soft);
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.next-step-card:hover,
.next-step-card:focus-visible {
  border-color: var(--tool-accent);
  color: inherit;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.next-step-card:focus-visible {
  outline: 3px solid var(--tool-accent);
  outline-offset: 3px;
}

.next-step-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #fff;
  color: var(--tool-accent);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px var(--tool-border);
}

.next-step-icon .tool-icon-svg {
  width: 21px;
  height: 21px;
}

.next-step-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.next-step-content strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.32;
  letter-spacing: -.025em;
}

.next-step-content > span:last-child {
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  word-break: keep-all;
}

.next-step-kicker {
  color: var(--tool-accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .faq-section.section-card,
  .related-section.section-card,
  .next-steps-panel.section-card {
    margin-top: 28px;
    padding: 20px;
    border-radius: 18px;
  }

  .faq-section .section-card-head,
  .related-section .section-card-head {
    margin-bottom: 18px;
  }

  .faq-list,
  .related-list {
    gap: 12px;
  }

  .next-steps-list {
    grid-template-columns: 1fr;
  }
}

/* Home discovery and search refinements */
.home-search-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.hero-search-results {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
  max-height: 320px;
  overflow-y: auto;
}

.hero-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-search-results-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.hero-search-results-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-search-results-list {
  display: grid;
  gap: 8px;
}

.hero-search-result-item {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(240, 217, 211, .8);
  border-radius: 14px;
  background: var(--bg-2);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.hero-search-result-item:hover,
.hero-search-result-item:focus-visible {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  outline: 0;
}

.hero-search-result-item span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: var(--pill);
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
}

.hero-search-result-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.hero-search-result-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hero-search-empty {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-search-empty strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.hero-search-empty span {
  line-height: 1.45;
}

.hero-search-empty-action {
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.hero-search-empty-action:hover,
.hero-search-empty-action:focus-visible {
  background: var(--primary-dark);
  outline: 0;
}

.hero-search-results-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.tool-subgroup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tool-subgroup-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 111, 97, .28);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.tool-subgroup-chip:hover,
.tool-subgroup-chip:focus-visible {
  border-color: rgba(255, 111, 97, .52);
  background: rgba(255, 245, 242, .94);
  color: var(--primary-dark);
  outline: 0;
}

.tool-subgroup-block {
  scroll-margin-top: 140px;
  padding: 14px;
  border: 1px solid rgba(240, 217, 211, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
}

.tool-subgroup-block + .tool-subgroup-block {
  margin-top: 12px;
}

.tool-subgroup-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-subgroup-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.tool-subgroup-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tool-subgroup-heading span {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--pill);
  background: rgba(255, 111, 97, .12);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.tool-subgroup-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-tools-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tools-page {
  padding: 34px 0 72px;
}

.tools-page .compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.tools-page .tool-card {
  min-height: 88px;
}

.tools-search-panel {
  margin-top: 18px;
  max-width: 720px;
}

.tools-category-jump {
  justify-content: flex-start;
  margin: 0 0 20px;
}

.recent-grid .tool-card {
  min-height: 88px;
}

.calculator-panel + .ad-slot {
  margin-top: 18px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .home-hero-compact {
    padding: 20px 0 18px;
  }

  .site-main {
    padding-bottom: 96px;
  }

  .compact-section {
    padding: 24px 0;
  }

  .compact-section-heading {
    margin-bottom: 10px;
  }

  .compact-hero-layout {
    gap: 16px;
  }

  .compact-finder {
    order: -1;
    padding: 18px;
    border-radius: 18px;
  }

  .panel-topline {
    margin-bottom: 10px;
  }

  .search-label {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .search-field {
    min-height: 52px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .search-field input {
    font-size: 15px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 4px;
  }

  .hero-copy h1 {
    margin: 6px 0 10px;
    font-size: 28px;
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-search-mobile {
    margin-top: 12px;
  }

  .hero-search-mobile .primary-link,
  .hero-search-mobile .secondary-link {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .hero-trust,
  .compact-metrics {
    display: none;
  }

  .hero-search-results {
    max-height: 260px;
    border-radius: 16px;
  }

  .featured-grid,
  .compact-grid,
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tool-card {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    min-height: 72px;
    padding: 8px 10px;
    border-radius: 16px;
    gap: 9px;
  }

  .tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 11px;
  }

  .tool-card strong {
    font-size: 15px;
    line-height: 1.18;
  }

  .tool-card small {
    font-size: 12px;
    line-height: 1.24;
  }

  .compact-category-block {
    padding: 14px;
    border-radius: 18px;
  }

  .tool-subgroup-block {
    scroll-margin-top: 104px;
  }

  .category-heading {
    gap: 8px;
    margin-bottom: 10px;
  }

  .category-heading h3 {
    font-size: 20px;
  }

  .category-heading p {
    font-size: 13px;
    line-height: 1.35;
  }

  .home-tools-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .home-tools-cta .primary-link,
  .home-tools-cta .secondary-link {
    width: 100%;
  }

  .ad-slot {
    min-height: 72px;
    margin: 14px 0;
    border-radius: 16px;
  }
}

@media (max-width: 820px) {
  .site-main {
    padding-bottom: 104px;
  }

  .featured-grid,
  .compact-grid,
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-main .tool-card,
  .site-main .tool-card.tool-card-compact {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .site-main .tool-card .tool-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 15px;
    font-size: 12px;
  }

  .site-main .tool-card .tool-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .site-main .tool-card .tool-card-body strong {
    font-size: 16px;
    line-height: 1.25;
  }

  .site-main .tool-card .tool-card-body small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 13px;
    line-height: 1.35;
  }

  .compact-category-block {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .compact-category-block .category-heading {
    gap: 8px;
    margin-bottom: 10px;
  }

  .compact-category-block .category-heading h3 {
    font-size: 24px;
    line-height: 1.18;
  }

  .compact-category-block .category-heading p {
    font-size: 15px;
    line-height: 1.4;
  }

}

.tool-card-shell {
  position: relative;
  min-width: 0;
}

.tool-card-shell .tool-card {
  height: 100%;
  padding-right: 54px;
}

.tool-pin-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 34px;
  min-height: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(32, 52, 72, .14);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .92);
  color: rgba(32, 52, 72, .48);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tool-pin-button:hover,
.tool-pin-button:focus-visible {
  background: #fff;
  border-color: rgba(255, 111, 97, .46);
  color: var(--primary-dark);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.tool-pin-button.is-pinned {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-coral);
}

.pinned-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: #fff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 950;
  box-shadow: var(--shadow-xs);
}

