:root {
  --color-ink-rgb: 3, 3, 23;
  --color-paper-rgb: 255, 255, 255;
  --color-panel-gray-rgb: 223, 223, 226;
  --color-placeholder-rgb: 126, 126, 136;
  --color-page-bg-rgb: 242, 242, 244;
  --color-backdrop-rgb: 245, 245, 247;
  --color-focus-accent-rgb: 203, 246, 251;
  --color-shadow-rgb: 8, 14, 39;
  --alpha-025: 0.025;
  --alpha-05: 0.05;
  --alpha-10: 0.1;
  --alpha-50: 0.5;
  --alpha-75: 0.75;
  --alpha-80: 0.8;
  --alpha-90: 0.9;
  --ink: rgb(var(--color-ink-rgb));
  --ink-soft: var(--ink);
  --muted: var(--ink);
  --muted-soft: var(--ink);
  --line: var(--panel-gray);
  --line-strong: var(--panel-gray);
  --line-subtle: var(--panel-gray);
  --line-dashed: var(--panel-gray);
  --line-control: var(--panel-gray);
  --line-focus: var(--panel-gray);
  --line-focus-strong: var(--panel-gray);
  --line-rank: var(--ink);
  --paper: rgb(var(--color-paper-rgb));
  --panel-gray: rgb(var(--color-panel-gray-rgb));
  --panel-border: var(--panel-gray);
  --placeholder-color: rgb(var(--color-placeholder-rgb));
  --surface: rgba(var(--color-paper-rgb), var(--alpha-75));
  --surface-soft: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-strong: rgba(var(--color-paper-rgb), var(--alpha-80));
  --surface-active: rgba(var(--color-paper-rgb), var(--alpha-75));
  --surface-veil: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-action-muted: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-glass: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-canvas: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-column: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-empty: rgba(var(--color-paper-rgb), var(--alpha-50));
  --surface-quick-button: rgba(var(--color-paper-rgb), var(--alpha-75));
  --surface-quick-button-hover: rgba(var(--color-paper-rgb), var(--alpha-90));
  --surface-popover: rgba(var(--color-paper-rgb), var(--alpha-90));
  --state-hover: rgba(var(--color-ink-rgb), var(--alpha-025));
  --state-selected: rgba(var(--color-ink-rgb), var(--alpha-05));
  --page-bg: rgb(var(--color-page-bg-rgb));
  --focus-ring: rgba(var(--color-ink-rgb), var(--alpha-10));
  --focus-accent-ring: rgba(var(--color-focus-accent-rgb), var(--alpha-75));
  --deep: var(--ink);
  --shadow: 0 20px 55px rgba(var(--color-shadow-rgb), var(--alpha-10));
  --shadow-card: 0 25px 45px rgba(var(--color-ink-rgb), var(--alpha-05));
  --shadow-header: 0 5px 14px rgba(var(--color-ink-rgb), var(--alpha-10)), 0 1px 0 var(--panel-border);
  --shadow-popover: 0 10px 25px rgba(var(--color-ink-rgb), var(--alpha-05));
  --condition-backdrop-surface: rgba(var(--color-backdrop-rgb), var(--alpha-10));
  --space-5: 5px;
  --space-10: 10px;
  --space-15: 15px;
  --space-20: 20px;
  --space-25: 25px;
  --space-30: 30px;
  --space-40: 40px;
  --space-50: 50px;
  --space-60: 60px;
  --space-80: 80px;
  --radius-5: 5px;
  --font-xxs: 0.6rem;
  --font-xs: 0.8rem;
  --font-sm: 1rem;
  --font-md: 1.1rem;
  --font-lg: 1.5rem;
  --font-xl: 2rem;
  --button-letter-spacing: 0.1rem;
  --condition-overview-clear-width: 120px;
  --compact-card-padding: var(--space-15);
  --compact-card-radius: var(--radius-5);
  --service-card-height: 160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  pointer-events: none;
  background: url("/public/assets/top/background-image.webp?v=20260515-2205") center top / 100% auto no-repeat;
  opacity: 0.8;
}

body > * {
  position: relative;
  z-index: 1;
}

button,
input,
select {
  font: inherit;
}

button:not(.quick-button) {
  cursor: pointer;
  letter-spacing: var(--button-letter-spacing);
}

button:hover,
button:focus-visible {
  opacity: 0.9;
}

button:focus-visible {
  outline: none;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  padding: 150px 40px 100px;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 260ms ease, filter 320ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-transitioning-out .hero-inner {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(-15px) scale(0.985);
  pointer-events: none;
}

body[data-page="top"] main {
  transition: opacity 360ms ease, filter 360ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="top"].is-transitioning-out main {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(-15px) scale(0.985);
  pointer-events: none;
}

.brand {
  display: inline-block;
  height: 50px;
  margin-bottom: 20px;
}

.brand img,
.header-logo img {
  display: block;
  width: auto;
  height: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: var(--font-xl);
  line-height: 1.18;
  font-weight: 700;
}

.hero h1 {
  font-size: 4rem;
}

.mobile-title-break {
  display: none;
}

.lead {
  margin: var(--space-50) 0 var(--space-20);
  font-size: var(--font-sm);
  font-weight: 700;
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 65px;
  width: min(585px, 100%);
  min-height: 50px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-5);
  background: var(--paper);
  box-shadow: 0 0 55px rgba(8, 69, 201, 0.22);
}

.search input {
  min-width: 0;
  border: 0;
  padding: 0 20px;
  color: var(--ink);
  outline: none;
  font-weight: 400;
}

.search input::placeholder,
.field input::placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

.search button,
.service-cta,
.side-cta {
  border: 0;
  border-radius: var(--radius-5);
  background: var(--deep);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: var(--button-letter-spacing);
}

.search button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0 var(--radius-5) var(--radius-5) 0;
  background: var(--deep);
  color: var(--paper);
  font-size: var(--font-sm);
}

.search button svg,
.header-query-button svg {
  display: block;
  margin: auto;
  fill: currentColor;
}

.search button svg {
  width: 50px;
  height: 50px;
}

.header-query-button svg {
  width: 40px;
  height: 40px;
}

.search.is-loading button {
  color: var(--paper);
}

.search.is-loading button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35px;
  height: 35px;
  margin: auto;
  background: var(--ink);
  -webkit-mask: url("/public/assets/ui/icon-loading.svg") center / contain no-repeat;
  mask: url("/public/assets/ui/icon-loading.svg") center / contain no-repeat;
  animation: spin 720ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.field {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
  text-align: left;
}

.field > span:not(.money-input) {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
}

.field input,
.field select {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-5);
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
  padding: 0 var(--space-10);
}

.field select {
  appearance: none;
  background-color: var(--surface-strong);
  background-image: url("/public/assets/ui/icon-chevron.svg");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 var(--space-5) var(--focus-ring);
}

.choice-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-width: 0;
  min-height: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-xs);
  line-height: 1.35;
  transition: color 140ms ease;
}

.choice-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-mark {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-control);
  border-radius: var(--radius-5);
  background: var(--paper);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.choice-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.choice-chip[data-choice-type="radio"] .choice-mark {
  border-radius: 1000px;
}

.choice-chip[data-choice-type="checkbox"] .choice-mark::after {
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) scale(0.72);
  transform-origin: center;
}

.choice-chip[data-choice-type="radio"] .choice-mark::after {
  width: 10px;
  height: 10px;
  border-radius: 1000px;
  background: var(--paper);
  transform: scale(0.4);
}

.choice-chip .choice-text {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  text-overflow: clip;
  white-space: nowrap;
}

.choice-chip:hover {
  color: var(--ink);
}

.choice-chip:focus-within {
  outline: none;
}

.choice-chip:focus-within .choice-mark {
  box-shadow: 0 0 0 var(--space-5) var(--focus-ring);
}

.choice-chip input:checked + .choice-mark {
  border-color: var(--ink);
  background: var(--deep);
}

.choice-chip[data-choice-type="radio"] input:checked + .choice-mark {
  background: var(--paper);
}

.choice-chip input:checked + .choice-mark::after {
  opacity: 1;
}

.choice-chip[data-choice-type="radio"] input:checked + .choice-mark::after {
  background: var(--deep);
  transform: scale(1);
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 40px;
  width: 100%;
  margin: 100px auto 0;
}

.quick-button {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-20);
  min-height: 120px;
  padding: var(--space-25);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  background: var(--surface-quick-button);
  box-shadow: none;
  backdrop-filter: blur(20px);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.quick-button:hover,
.quick-button:focus-visible {
  background: var(--surface-quick-button-hover);
  opacity: 0.9;
}

.quick-button:active {
  opacity: 1;
}

[hidden] {
  display: none !important;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--paper);
}

.quick-icon svg,
.external-icon {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.quick-button strong {
  display: block;
  font-size: var(--font-sm);
  font-weight: 700;
}

.quick-button > span:last-child {
  display: grid;
  align-content: center;
  gap: var(--space-5);
}

.quick-button > span:last-child > span {
  display: block;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1.55;
}

.top-category-section {
  width: 100%;
  margin: 100px auto 0;
  text-align: center;
}

.top-category-section h2 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 400;
  line-height: 1.5;
}

.top-category-divider {
  width: 100%;
  margin: 0 0 var(--space-20);
  border-top: 1px solid var(--ink);
}

.top-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-20);
}

.top-category-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--space-80);
  padding: var(--space-20) var(--space-40) var(--space-20) var(--space-20);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  background: var(--surface-quick-button);
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(20px);
}

.top-category-card-icon {
  position: absolute;
  display: block;
  top: calc(50% - 14px);
  right: var(--space-30);
  z-index: 1;
  width: 28px;
  height: 28px;
  pointer-events: none;
  transform: rotate(-90deg);
}

.top-category-card:hover,
.top-category-card:focus-visible {
  background: var(--surface-quick-button-hover);
  opacity: 0.9;
}

.top-category-card:active {
  opacity: 1;
}

.result-header {
  --header-pad: var(--space-20);
  --active-condition-surface: var(--surface-active);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  height: auto;
  padding: 0;
  border-bottom: 0;
  background: var(--surface-active);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(26px) saturate(1.15);
  isolation: isolate;
  overflow: visible;
}

.top-condition-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.top-condition-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.condition-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  border-radius: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  background: var(--condition-backdrop-surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: opacity 100ms ease;
}

body.condition-panel-open .condition-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.condition-panel-open .results {
  pointer-events: none;
}

body.condition-panel-open a {
  pointer-events: none;
}

.result-header-bar {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 80px;
  padding: 0;
  padding-inline: var(--header-pad);
}

.header-logo {
  display: flex;
  align-items: center;
  width: clamp(170px, 18vw, 248.5px);
  height: auto;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 var(--space-15) 0 0;
  overflow: hidden;
}

.header-logo .header-logo-full {
  display: block;
}

.header-logo .header-logo-symbol {
  display: none;
}

.header-logo img {
  width: 100%;
  height: auto;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55px;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  align-self: center;
  margin: 0 var(--space-15) 0 0;
  overflow: hidden;
  border-radius: var(--radius-5);
  background: var(--surface-soft);
}

.header-query {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 var(--space-15);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.header-query::placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

.header-query:focus {
  outline: none;
}

.header-search:focus-within {
  background: var(--surface-active);
  box-shadow: none;
}

.header-query-button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--deep);
  color: var(--paper);
  font-size: var(--font-xs);
  font-weight: 700;
}

.header-controls {
  display: grid;
  grid-template-columns: repeat(5, 80px);
  gap: var(--space-5);
  height: 60px;
  min-width: 420px;
  width: 420px;
  max-width: 420px;
  flex: 0 0 420px;
  margin: 0;
  align-self: flex-end;
  align-items: start;
  overflow: visible;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 0 0 auto;
  grid-area: auto;
  justify-self: auto;
  align-self: center;
  margin: 0 0 0 var(--space-10);
}

.condition-control {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  height: 60px;
  min-height: 60px;
  min-width: 0;
  padding: 0 var(--space-10) var(--space-20);
  border: 0;
  border-radius: var(--radius-5) var(--radius-5) 0 0;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: center;
  overflow: visible;
}

.condition-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.condition-control:hover,
.condition-control:focus-visible {
  outline: none;
  opacity: 1;
  background: var(--active-condition-surface);
}

.condition-control[aria-selected="true"] {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  border-radius: var(--radius-5) var(--radius-5) 0 0;
  background: var(--active-condition-surface);
}

.condition-overview {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 0;
  min-height: 0;
  padding: 0 var(--condition-overview-clear-width) 0 var(--header-pad);
  overflow: hidden;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: var(--font-xxs);
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  visibility: hidden;
  transition: height 100ms ease, min-height 100ms ease, opacity 100ms ease, transform 100ms ease, background 100ms ease, color 100ms ease, visibility 0s linear 100ms;
}

.condition-overview.is-visible {
  height: 20px;
  min-height: 20px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition: height 100ms ease, min-height 100ms ease, opacity 100ms ease, transform 100ms ease, background 100ms ease, color 100ms ease, visibility 0s linear 0s;
}

.condition-panel-open .condition-overview.is-visible {
  background: var(--active-condition-surface);
  color: var(--ink);
}

.condition-overview-text {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding-right: var(--space-10);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition-overview-clear {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: var(--condition-overview-clear-width);
  min-width: var(--condition-overview-clear-width);
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0 6px;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-xxs);
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.condition-overview-clear::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(45deg);
}

.condition-overview-clear:hover,
.condition-overview-clear:focus-visible {
  outline: none;
  opacity: 0.9;
}

.clear-button,
.header-search-button,
.header-query-button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-5);
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 0 var(--space-10);
}

.clear-button,
.header-search-button {
  width: 90px;
}

.condition-editor-actions {
  display: none;
}

.clear-button {
  background: var(--surface-action-muted);
  color: var(--ink);
}

.header-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: var(--paper);
  font-size: var(--font-xs);
  line-height: 1.1;
}

.header-query-button {
  min-height: 100%;
  border-radius: 0;
  padding: 0;
}

.clear-button:hover,
.clear-button:focus-visible,
.header-search-button:hover,
.header-search-button:focus-visible,
.header-query-button:hover,
.header-query-button:focus-visible {
  outline: none;
  opacity: 0.9;
}

.money-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-5);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 400;
  font-size: var(--font-sm);
  line-height: 1;
}

.money-input input {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0 10px;
  font-weight: 400;
}

.money-input:focus-within {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 5px var(--focus-accent-ring);
}

.results {
  min-height: 100vh;
  padding: 140px var(--space-40) 90px;
  background: transparent;
  color: var(--ink);
}

.results-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  transition: opacity 240ms ease, filter 260ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="measure-detail"] .measure-detail-page {
  min-height: 100vh;
  padding: 140px var(--space-40) 90px;
  background: transparent;
  color: var(--ink);
}

.measure-detail-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.measure-detail-header {
  gap: 0;
}

body[data-page="measure-detail"] .measure-detail-head {
  margin-bottom: 0;
  padding-bottom: var(--space-60);
}

body[data-page="service-detail"] .measure-detail-head {
  margin-bottom: 0;
  padding-bottom: var(--space-40);
}

.measure-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-10);
  min-width: 0;
}

.measure-detail-title h1 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 700;
  line-height: 1;
}

.detail-title-meta {
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  flex: 1 0 100%;
}

.measure-detail-title .budget {
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.measure-detail-services {
  display: grid;
  position: relative;
  gap: 0;
}

.measure-detail-section-head {
  display: flex;
  position: absolute;
  inset-block-start: calc(-1 * var(--space-20));
  inset-inline: 0;
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--space-10);
  margin-bottom: 0;
  pointer-events: none;
}

.measure-detail-section-head .service-section-title {
  display: none;
}

.measure-detail-count {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.measure-detail-service-list {
  display: grid;
  gap: var(--space-20);
}

.measure-detail-service-card {
  display: grid;
  gap: var(--space-20);
}

.measure-detail-service-card.compact-card {
  padding: var(--space-20);
}

.measure-detail-service-card .measure-title {
  align-items: baseline;
}

.measure-detail-service-action {
  display: flex;
  justify-content: center;
}

.measure-detail-service-action .measure-detail-service-cta {
  width: 300px;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  justify-content: center;
}

.measure-detail-page .results-side {
  --results-side-top: 120px;
}

.service-detail-page .results-inner {
  max-width: none;
}

.service-detail-inner {
  display: grid;
  gap: 0;
}

.results-head.page-hero {
  display: grid;
  gap: var(--space-20);
  min-width: 0;
  width: 100%;
}

.results-head.service-detail-hero {
  margin-bottom: 0;
}

.page-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-20);
  min-width: 0;
}

.page-hero-title-block {
  display: grid;
  gap: var(--space-20);
  min-width: 0;
}

.measure-detail-head .page-hero-title-block {
  gap: var(--space-10);
}

.page-hero-head .measure-detail-title {
  flex: 1 1 auto;
}

.page-hero-description {
  min-width: 0;
  max-width: none;
}

.page-hero-description p {
  margin: 0;
}

.service-detail-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  justify-content: stretch;
}

.service-detail-main {
  display: grid;
  gap: var(--space-30);
  min-width: 0;
}

.service-detail-main .results-head {
  margin-bottom: 0;
}

.service-detail-main-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20);
}

.service-detail-info-section,
.service-detail-side-card {
  display: grid;
  align-content: start;
  gap: var(--space-20);
  min-width: 0;
}

.service-detail-info-section {
  padding: var(--space-20);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  background: var(--surface);
}

.service-detail-info-section:nth-child(n + 5) {
  grid-column: 1 / -1;
}

.service-detail-info-section.service-detail-full-section {
  grid-column: 1 / -1;
}

.service-detail-info-section h2,
.side-card.service-detail-side-card h3 {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.25;
}

.service-detail-info-list {
  display: grid;
  gap: var(--space-10);
  margin: 0;
}

.service-detail-info-row {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.service-detail-info-label,
.service-detail-cta-meta,
.service-detail-link-item span {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.35;
}

.service-detail-cta-meta,
.service-detail-link-item span {
  font-weight: 400;
  line-height: 1.6;
}

.service-detail-side-card:first-child .sidebar-meta-value {
  font-size: var(--font-md);
}

.service-detail-info-value {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.service-detail-budget-row {
  justify-items: center;
  margin-block: var(--space-10);
}

.service-detail-budget-row .service-detail-info-value {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.service-detail-budget-number {
  font-size: 2rem;
  line-height: 1;
}

.service-detail-budget-symbol {
  font-size: 1.5rem;
  line-height: 1;
}

.service-detail-budget-note-row .service-detail-info-value {
  font-size: 0.8rem;
  line-height: 1.65;
}

.service-detail-budget-common-note-row .service-detail-info-value {
  font-size: 0.8rem;
  line-height: 1.65;
}

.service-detail-info-body {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.objective-match-table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  justify-self: center;
  margin-inline: auto;
}

.objective-match-table th,
.objective-match-table td {
  padding: 0 0 var(--space-5);
  border: 0;
  vertical-align: middle;
}

.objective-match-table tr:last-child th,
.objective-match-table tr:last-child td {
  padding-bottom: 0;
}

.objective-match-table .objective-match-label {
  width: 1%;
  padding-right: var(--space-10);
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.objective-match-value {
  width: auto;
  text-align: left;
}

.objective-rating-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  gap: var(--space-5);
  min-width: 0;
}

.objective-star {
  display: block;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  overflow: hidden;
  background: var(--panel-gray);
  -webkit-mask: url("/public/assets/ui/icon-star.svg") center / contain no-repeat;
  mask: url("/public/assets/ui/icon-star.svg") center / contain no-repeat;
}

.objective-star::before {
  content: "";
  display: block;
  width: var(--star-fill, 0%);
  height: 100%;
  background: var(--ink);
}

.service-detail-side {
  gap: var(--space-15);
}

.service-detail-cta-meta {
  margin: 0;
}

.service-detail-ad-card {
  min-height: 250px;
  display: grid;
  place-items: center;
  border-style: dashed;
  background: var(--surface-glass);
}

.service-detail-ad-label {
  color: var(--ink);
  font-size: var(--font-xxs);
  font-weight: 700;
}

.side-card .service-detail-link-list {
  display: grid;
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail-link-item {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-10);
  border-top: 1px solid var(--line-subtle);
}

.service-detail-link-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-detail-link-item a {
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.service-detail-link-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-detail-link-item .service-detail-link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 75%;
  height: 30px;
  min-height: 30px;
  margin-block: var(--space-5) 0;
  padding: 0 var(--space-10);
  border-radius: var(--radius-5);
  background: var(--deep);
  color: var(--paper);
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: var(--button-letter-spacing);
  line-height: 1.5;
  text-decoration: none;
}

.service-detail-link-item .service-detail-link-cta:hover {
  text-decoration: none;
  opacity: 0.9;
}

.service-detail-link-item span {
  line-height: 1.5;
}

.measure-detail-side-sections {
  display: grid;
  gap: var(--space-20);
}

.measure-detail-empty {
  padding: var(--space-15);
  border: 1px dashed var(--line-dashed);
  border-radius: var(--radius-5);
  background: var(--surface-empty);
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.7;
}

.results-head {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-60);
}

.page-breadcrumb {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1.4;
}

.page-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.results-head h1 {
  font-size: var(--font-xl);
}

body[data-page="results"] #result-summary {
  margin-bottom: 0;
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.7;
}

.results-head .disclosure-note {
  margin: 0;
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.7;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-40);
  align-items: start;
  min-width: 0;
}

.results-main {
  display: grid;
  position: relative;
  gap: 0;
  min-width: 0;
}

.results-section-head {
  display: flex;
  position: absolute;
  inset-block-start: calc(-1 * var(--space-20));
  inset-inline: 0;
  align-items: baseline;
  justify-content: flex-start;
  pointer-events: none;
}

.results-count {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

body[data-page="results"] .result-list,
body[data-page="top"] .top-category-section > .result-list {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--ink);
}

body[data-page="top"] #top-key-services-title + .result-list {
  padding-top: var(--space-20);
}

.top-pickup-service-grid {
  padding-top: var(--space-20);
  border-top: 1px solid var(--ink);
}

body[data-page="results"] .result-card,
body[data-page="top"] .top-category-section > .result-list > .result-card:not(.measure-detail-service-card) {
  display: grid;
  gap: var(--space-20);
  min-width: 0;
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--ink);
}

.measure-header {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-width: 0;
}

.rank {
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--line-rank);
  border-radius: 1000px;
  color: var(--ink);
  font-family: "Roboto Condensed", Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: var(--font-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.measure-body {
  min-width: 0;
  display: grid;
  gap: var(--space-20);
}

.measure-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-10);
  min-width: 0;
}

.measure-summary {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  padding-inline-end: var(--space-10);
  overflow-wrap: anywhere;
  line-break: anywhere;
}

.result-card h2 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 700;
  line-height: 1;
}

.measure-title-link {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.measure-title-link:hover,
.measure-title-link:focus-visible,
.measure-title-link:active {
  text-decoration-color: var(--ink);
}

.budget {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1;
}

.result-card p {
  margin: 0;
  min-width: 0;
  padding-inline-end: var(--space-10);
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.7;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20);
  margin: 0;
}

.measure-detail-service-card .reason-grid {
  gap: var(--space-40);
}

.page-hero-reasons {
  column-gap: var(--space-40);
  row-gap: var(--space-20);
}

.reason-box {
  min-width: 0;
}

.reason-box strong {
  display: block;
  margin-bottom: var(--space-5);
  font-size: var(--font-sm);
  font-weight: 700;
}

.reason-box span {
  display: block;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1.55;
}

body[data-page="results"] .result-card .measure-summary,
body[data-page="results"] .result-card .reason-box span,
body[data-page="service-category-list"] .measure-detail-service-card .measure-summary,
body[data-page="service-category-list"] .measure-detail-service-card .reason-box span,
body[data-page="measure-detail"] .measure-detail-service-card .measure-summary,
body[data-page="measure-detail"] .measure-detail-service-card .reason-box span {
  display: -webkit-box;
  width: min(100%, calc(100vw - 30px));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-inline-end: var(--space-10);
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  line-break: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.service-section {
  display: grid;
  gap: var(--space-10);
  min-width: 0;
}

.service-section-title {
  display: block;
  font-size: var(--font-sm);
  font-weight: 700;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-20);
  min-width: 0;
}

.service-links-empty {
  grid-column: 1 / -1;
}

.compact-card {
  padding: var(--compact-card-padding);
  border-radius: var(--compact-card-radius);
}

.service-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-15);
  min-width: 0;
  max-width: 100%;
  height: var(--service-card-height);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 400;
}

.service-info {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex: 1 1 auto;
  gap: var(--space-5);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  text-align: inherit;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  min-width: 0;
  text-align: inherit;
}

.service-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--font-sm);
  font-weight: 700;
  text-align: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-name-link {
  color: var(--ink);
  text-decoration: none;
}

.service-name-link:hover,
.service-name-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.partner-badge {
  flex: 0 0 auto;
  padding: 0 var(--space-10);
  border-radius: var(--radius-5);
  background: var(--state-selected);
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
}

.service-copy {
  display: -webkit-box;
  height: calc(2 * 1.5em);
  min-height: 0;
  min-width: 0;
  max-height: calc(2 * 1.5em);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: anywhere;
  padding-inline-end: var(--space-10);
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1.5;
}

body[data-page="top"] .top-category-section > .result-list .measure-summary,
body[data-page="top"] .top-category-section > .result-list .service-copy,
body[data-page="top"] .top-category-section > .result-list .result-card p {
  text-align: left;
}

.service-card .service-cta {
  align-self: end;
  justify-self: center;
  margin-block: 0;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  width: 75%;
  min-height: 35px;
  margin-block: var(--space-15);
  padding: 0 var(--space-10);
  font-size: var(--font-xs);
  justify-self: center;
  text-decoration: none;
}

.service-cta:hover,
.service-cta:focus-visible,
.side-cta:hover,
.side-cta:focus-visible,
.measure-detail-service-cta:hover,
.measure-detail-service-cta:focus-visible {
  outline: none;
  opacity: 0.9;
}

.service-detail-link-card {
  display: grid;
  gap: var(--space-10);
}

.service-detail-service-link {
  width: auto;
  margin-block: 0;
}

.service-detail-hero-head .service-detail-service-link {
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  min-width: 200px;
  align-self: flex-start;
  justify-content: center;
  padding-inline: var(--space-20);
  font-size: var(--font-sm);
}

.service-detail-bottom-cta {
  display: flex;
  justify-content: center;
  padding: var(--space-50) 0 0;
}

.service-detail-bottom-service-link {
  width: min(100%, 400px);
  min-width: min(100%, 400px);
  min-height: 60px;
  padding-inline: var(--space-30);
  font-size: var(--font-lg);
}

.service-detail-service-link[hidden] {
  display: none;
}

.external-icon {
  width: 15px;
  height: 15px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding-top: var(--space-20);
}

.load-more-stack {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-20);
  border: 1px solid var(--deep);
  border-radius: var(--radius-5);
  background: var(--deep);
  color: var(--paper);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  background: var(--deep);
  color: var(--paper);
  opacity: 0.9;
}

.load-more-button-label {
  display: block;
}

.load-more-button-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.load-more-button-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.results-side {
  --results-side-top: 120px;
  --results-side-bottom-gap: 40px;
  display: grid;
  gap: var(--space-20);
  position: sticky;
  top: var(--results-side-effective-top, var(--results-side-top));
  align-self: start;
}

.side-card {
  border: 1px solid var(--panel-border);
  background: var(--surface);
}

.side-card h3 {
  margin: 0 0 var(--space-10);
  font-size: var(--font-sm);
  font-weight: 700;
}

.side-card p,
.side-card li {
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.6;
}

.side-card p {
  margin-bottom: 0;
}

.side-card ul {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding-left: var(--space-20);
}

.side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  margin-top: var(--space-10);
  padding: 0 var(--space-15);
  font-size: var(--font-xs);
  text-decoration: none;
}

.condition-summary {
  display: grid;
  gap: 0;
}

.dataset-status {
  display: grid;
  gap: 0;
}

.sidebar-meta-row {
  display: grid;
  gap: var(--space-5);
  border-bottom: 1px solid var(--line-subtle);
  padding: 0 0 var(--space-10);
  margin-bottom: var(--space-10);
}

.condition-summary > .sidebar-meta-row:last-child,
.dataset-status > .sidebar-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-meta-label {
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.5;
}

.sidebar-meta-value {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--font-xs);
  font-weight: 400;
  line-height: 1.5;
}

.dataset-status-note {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-xs);
  line-height: 1.6;
}

.loading-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--surface-veil);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.loading-veil.is-visible {
  opacity: 1;
}

body[data-page="top"].is-transitioning-out .loading-veil,
body.results-refreshing .loading-veil {
  background: var(--page-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 360ms ease;
}

.loading-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 60px;
  height: 60px;
  margin: auto;
  background: var(--ink);
  -webkit-mask: url("/public/assets/ui/icon-loading.svg") center / contain no-repeat;
  mask: url("/public/assets/ui/icon-loading.svg") center / contain no-repeat;
  animation: spin 760ms linear infinite;
}

html.results-intro-pending .results-inner {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(120px);
}

html.results-intro-pending.results-intro-content .results-inner {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 340ms ease, filter 360ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.results-intro-pending .loading-veil {
  opacity: 1;
}

html.results-intro-pending.results-intro-content .loading-veil {
  opacity: 0;
}

body.results-refreshing .results-inner {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(35px);
  pointer-events: none;
}

body.results-revealing .results-inner {
  animation: results-rise-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes results-rise-in {
  from {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(110px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.footer {
  min-height: 260px;
  padding: var(--space-40);
  box-sizing: border-box;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--font-xs);
}

.footer-inner {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  grid-template-areas:
    "brand tactics services"
    "copy copy copy";
  align-items: start;
  gap: var(--space-40) var(--space-80);
}

.footer-brand-block {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-15);
}

.footer-logo {
  display: inline-flex;
  height: var(--space-30);
  line-height: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: var(--space-30);
  filter: invert(1);
  opacity: 0.95;
}

.footer-description {
  max-width: none;
  margin: 0;
  color: inherit;
  line-height: 2;
}

.footer-category-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.footer-links-tactics {
  grid-area: tactics;
}

.footer-links-services {
  grid-area: services;
}

.footer-links-title {
  margin: 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.5;
}

.footer-category-links a {
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
}

.footer-category-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-copyright {
  grid-area: copy;
  justify-self: center;
  width: 100%;
  margin: 0;
  color: inherit;
  text-align: center;
}

@media (max-width: 768px) {
  .footer {
    height: auto;
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tactics"
      "services"
      "copy";
    gap: var(--space-25);
  }

  .footer-category-links {
    grid-template-columns: 1fr;
  }

  .measure-detail-service-action .measure-detail-service-cta {
    width: 100%;
  }
}

.customer-form-grid {
  --customer-column-width: 25%;
  --customer-drilldown-column-width: calc(100% / 3);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--space-20);
  min-height: 0;
  height: var(--customer-panel-inner-height);
  max-height: var(--customer-panel-inner-height);
  align-self: stretch;
  align-items: start;
}

.customer-form-shell {
  display: grid;
  grid-template-columns: var(--customer-column-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  overflow: hidden;
}

.customer-form-shell,
.offering-picker-shell {
  background: var(--active-condition-surface);
}

.customer-facet-nav,
.customer-facet-content > .customer-choice-grid,
.customer-area-prefecture-column,
.customer-audience-kind-column,
.customer-audience-detail-column,
.customer-audience-option-column,
.customer-business-industry-column,
.customer-occupation-column,
.offering-drilldown-column {
  border-right: 1px solid var(--line-subtle);
}

.customer-facet-nav,
.customer-area-region-column,
.customer-audience-kind-column,
.customer-audience-detail-column,
.customer-business-industry-column,
.customer-occupation-column,
.offering-drilldown-column {
  background: var(--surface-column);
}

.customer-facet-nav {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  padding: var(--space-10);
  min-height: 0;
  overflow-y: auto;
}

.customer-facet-button,
.customer-area-region-button,
.customer-subfacet-button,
.customer-selector-option {
  min-height: 35px;
  padding: 0 var(--space-10);
  border: 0;
  border-radius: var(--radius-5);
  background: transparent;
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.customer-facet-button,
.customer-area-region-button,
.customer-subfacet-button {
  width: 100%;
}

.customer-facet-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.customer-selector-option {
  width: 100%;
  padding: 0 var(--space-10);
  align-items: center;
  border-radius: var(--radius-5);
}

.customer-facet-button:hover,
.customer-facet-button:focus-visible,
.customer-area-region-button:hover,
.customer-area-region-button:focus-visible,
.customer-subfacet-button:hover,
.customer-subfacet-button:focus-visible,
.customer-selector-option:hover,
.customer-selector-option:focus-within {
  background: var(--state-hover);
  outline: none;
}

.customer-facet-button.is-active,
.customer-area-region-button.is-active,
.customer-subfacet-button.is-active,
.customer-selector-option.is-selected {
  background: var(--state-selected);
  color: var(--ink);
}

.customer-choice-grid[data-customer-group="customer_audiences"] .customer-selector-option:hover,
.customer-choice-grid[data-customer-group="customer_audiences"] .customer-selector-option:focus-within,
.customer-choice-grid[data-customer-group="customer_audiences"] .customer-selector-option.is-selected {
  background: transparent;
}

.customer-facet-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--surface-canvas);
  overflow: hidden;
}

.customer-facet-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.customer-facet-panel[hidden] {
  display: none;
}

.customer-facet-content {
  display: grid;
  grid-template-columns: minmax(0, var(--customer-drilldown-column-width)) minmax(0, 1fr);
  padding: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.customer-facet-content > .customer-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  gap: var(--space-10);
  align-content: start;
  padding: 20px 20px;
  overflow-y: auto;
}

.customer-choice-card {
  display: grid;
  gap: var(--space-10);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.customer-choice-card-title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--ink);
}

.customer-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10) var(--space-20);
}

.customer-choice-chip {
  width: auto;
  min-height: 0;
  padding: 5px 0;
  align-items: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-choice-chip .choice-text,
.customer-area-options .choice-text {
  overflow: visible;
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.customer-choice-empty {
  margin: 0;
  color: var(--ink);
  font-size: var(--font-sm);
  line-height: 1.5;
}

.customer-choice-grid-column {
  display: grid;
  gap: var(--space-10);
}

.hierarchy-list,
.customer-drilldown-grid {
  gap: var(--space-5);
}

.hierarchy-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
  min-height: 35px;
  padding: 0 var(--space-10);
  border-radius: var(--radius-5);
  background: transparent;
  color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
}

.hierarchy-row:hover,
.hierarchy-row:focus-within {
  background: var(--state-hover);
}

.hierarchy-row.is-active,
.hierarchy-row.is-selected {
  background: var(--state-selected);
}

.hierarchy-check {
  width: 20px;
  min-height: 20px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.hierarchy-check .choice-text {
  display: none;
}

.hierarchy-action,
.condition-editor .hierarchy-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 35px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
}

.hierarchy-action.has-children,
.customer-drilldown-button {
  gap: var(--space-10);
  justify-content: space-between;
}

button.hierarchy-action {
  cursor: pointer;
  letter-spacing: 0;
  transition: background 140ms ease, color 140ms ease;
}

button.hierarchy-action:focus-visible {
  outline: none;
}

.hierarchy-label {
  cursor: default;
}

.customer-facet-button::after,
.customer-drilldown-button::after,
.customer-area-region-button::after,
.offering-drilldown-button.has-children::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  opacity: 0.72;
  transform: rotate(-90deg);
  -webkit-mask: url("/public/assets/ui/icon-chevron.svg") center / contain no-repeat;
  mask: url("/public/assets/ui/icon-chevron.svg") center / contain no-repeat;
}

.customer-area-picker {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.customer-drilldown-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.customer-area-cascade {
  position: relative;
  display: flex;
  min-width: 100%;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.customer-area-region-column {
  position: relative;
  display: grid;
  flex: 0 0 var(--customer-drilldown-column-width);
  width: var(--customer-drilldown-column-width);
  gap: var(--space-5);
  align-content: start;
  padding: var(--space-10);
  min-height: 0;
  overflow-y: auto;
}

.customer-area-region-column::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-subtle);
  pointer-events: none;
}

.customer-area-region-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.customer-area-prefecture-column {
  flex: 0 0 var(--customer-drilldown-column-width);
  width: var(--customer-drilldown-column-width);
  min-width: 0;
  min-height: 0;
  padding: var(--space-10);
  overflow-y: auto;
}

.customer-area-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-content: start;
  min-height: max-content;
}

.customer-area-options .choice-chip {
  width: auto;
  min-height: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-audience-cascade {
  display: flex;
  min-width: 100%;
  width: max-content;
  min-height: 0;
  height: 100%;
}

[data-customer-audience-cascade] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.customer-audience-kind-column,
.customer-audience-detail-column {
  flex: 0 0 var(--customer-column-width);
  width: var(--customer-column-width);
  padding: var(--space-10);
  min-height: 0;
  overflow-y: auto;
}

.customer-audience-kind-column .customer-choice-grid {
  display: grid;
}

.customer-audience-detail-column {
  display: grid;
  align-content: start;
}

.customer-audience-detail-buttons {
  display: grid;
  gap: var(--space-5);
}

.customer-subfacet-button {
  min-height: 30px;
}

.customer-audience-option-column {
  flex: 1 1 auto;
  min-width: 200px;
  min-height: 0;
  height: 100%;
  padding: var(--space-20);
  overflow-y: auto;
}

.customer-audience-option-column.is-industry-cascade {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.customer-business-industry-panel,
.customer-occupation-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.customer-business-industry-cascade,
.customer-occupation-cascade {
  display: flex;
  min-width: 100%;
  width: 100%;
  min-height: 0;
  height: 100%;
}

.customer-business-industry-column,
.customer-occupation-column {
  flex: 0 0 var(--customer-drilldown-column-width);
  width: var(--customer-drilldown-column-width);
  min-width: 0;
  min-height: 0;
  padding: var(--space-10);
  overflow-y: auto;
}

.customer-cascade-empty {
  min-height: 0;
}

@media (max-width: 768px) {
  .customer-form-shell,
  .customer-audience-cascade {
    grid-template-columns: 1fr;
  }

  .customer-form-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .customer-audience-cascade,
  .customer-area-cascade,
  .customer-business-industry-cascade,
  .customer-occupation-cascade {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  .customer-facet-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line-subtle);
  }

  .customer-facet-body {
    min-height: 0;
  }

  .customer-facet-panel {
    min-height: 0;
    padding: 15px;
  }

  .customer-facet-content {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .customer-facet-content > .customer-choice-grid {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-subtle);
  }

  .customer-audience-kind-column,
  .customer-audience-detail-column,
  .customer-audience-option-column {
    border-right: 0;
    border-bottom: 1px solid var(--line-subtle);
  }

  .customer-area-cascade {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .customer-area-region-column {
    width: auto;
    flex: initial;
    grid-template-columns: minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line-subtle);
    overflow: visible;
  }

  .customer-area-prefecture-column {
    border-right: 0;
    overflow: visible;
  }

  .customer-area-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-business-industry-cascade,
  .customer-occupation-cascade {
    grid-template-columns: 1fr;
  }

  .customer-business-industry-column,
  .customer-occupation-column {
    border-right: 0;
    border-bottom: 1px solid var(--line-subtle);
  }

  .customer-audience-kind-column,
  .customer-audience-detail-column,
  .customer-business-industry-column,
  .customer-occupation-column,
  .customer-audience-option-column,
  .customer-area-prefecture-column {
    width: auto;
    flex: initial;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-50) var(--space-15);
  }

  .brand {
    height: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .mobile-title-break {
    display: block;
  }

  h1 {
    white-space: normal;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) 65px;
  }

  .search input {
    min-height: 55px;
  }

  .search button {
    min-height: 50px;
  }

  .reason-grid,
  .service-links {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: 45px;
  }

  .result-card {
    gap: var(--space-15);
  }

  .measure-header {
    gap: var(--space-10);
  }

  .rank {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: var(--font-sm);
  }
}

@media (max-width: 1100px) {
  .service-detail-main-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .result-header {
    --header-pad: var(--space-10);
    position: fixed;
    padding: 0;
  }

  .result-header-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-10);
    min-height: 118px;
    padding: var(--space-20) 0 0;
    padding-inline: var(--header-pad);
    align-items: flex-start;
  }

  .header-logo {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0;
  }

  .header-logo .header-logo-full {
    display: none;
  }

  .header-logo .header-logo-symbol {
    display: block;
    width: 50px;
    height: 50px;
  }

  .header-logo img {
    width: 50px;
    height: 50px;
  }

  .header-search {
    order: 2;
    grid-template-columns: minmax(0, 1fr) 40px;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 50px;
    flex: 1 1 0;
    margin: 0;
  }

  .header-query-button {
    display: grid;
  }

  .header-controls {
    order: 3;
    display: flex;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 50px;
    flex: 0 0 100%;
    gap: var(--space-5);
    margin: 0;
    align-items: start;
    overflow: visible;
    overscroll-behavior-x: auto;
    scrollbar-width: none;
  }

  .header-controls::-webkit-scrollbar {
    display: none;
  }

  .condition-panel-open .header-controls {
    margin-top: 0;
  }

  .condition-control {
    flex: 1 1 0;
    height: 50px;
    min-height: 50px;
    width: 20%;
    min-width: 0;
    padding: 0 4px var(--space-10);
  }

  .condition-control span {
    font-size: var(--font-xs);
    line-height: 1;
    white-space: nowrap;
  }

  .header-actions {
    display: none;
  }

  .header-search-button,
  .clear-button {
    width: 70px;
    min-height: 40px;
    padding: 0 var(--space-10);
  }

  .clear-button {
    font-size: var(--font-xs);
  }

  .results {
    padding: calc(var(--result-header-expanded-height, var(--result-header-height, 130px)) + 45px) 15px 65px;
  }

  .quick-panel,
  .top-category-grid,
  .results-layout,
  .service-detail-main-sections,
  .reason-grid,
  .service-links {
    grid-template-columns: 1fr;
  }

  .page-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-20);
    justify-content: stretch;
    justify-items: start;
  }

  .service-detail-hero-head .service-detail-service-link {
    width: min(100%, 260px);
    justify-self: center;
    align-self: center;
  }

  .results-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Condition editor */
#condition-form {
  padding: 0;
}

.editor-form {
  position: relative;
  display: block;
  width: 100%;
  height: var(--editor-form-height, 0px);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
  transition: height 100ms ease;
}

.editor-form.is-open {
  background: var(--active-condition-surface);
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.condition-editor {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.condition-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20);
  align-items: start;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0 auto;
  padding: var(--space-40);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.condition-panel[hidden] {
  display: none;
}

.condition-panel[data-panel="goal"] {
  grid-template-columns: minmax(280px, 360px);
  max-width: none;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: stretch;
}

.condition-panel[data-panel="measure"],
.condition-panel[data-panel="product"] {
  --product-panel-inner-height: max(0px, calc(var(--condition-editor-max-height, 500px) - 80px));
  --product-drilldown-max-height: max(220px, calc(var(--product-panel-inner-height) - 70px));
  grid-template-columns: 1fr;
  max-width: none;
  align-items: stretch;
  overflow: hidden;
}

.condition-panel[data-panel="measure"] > *,
.condition-panel[data-panel="product"] > * {
  min-height: 0;
  height: 100%;
}

.condition-panel[data-panel="measure"] #edit-measure-category-field,
.condition-panel[data-panel="product"] #edit-offering-field {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.condition-panel[data-panel="budget"] {
  --budget-panel-width: min(480px, calc(100vw - 80px));
  --budget-period-width: 160px;
  --budget-amount-width: calc(var(--budget-panel-width) - var(--budget-period-width) - var(--space-20));
  width: 100%;
  grid-template-columns: var(--budget-period-width) minmax(0, var(--budget-amount-width));
  max-width: none;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.condition-panel[data-panel="budget"] .budget-billing-unit-field {
  grid-column: 1 / -1;
}

.condition-panel[data-panel="budget"] .budget-billing-unit-field select {
  width: 100%;
}

.condition-panel[data-panel="customer"] {
  --customer-panel-inner-height: max(0px, calc(var(--condition-editor-max-height, 500px) - 80px));
  grid-template-columns: 1fr;
  max-width: none;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.offering-picker {
  --offering-column-width: calc(100% / 3);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-15);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.measure-category-picker {
  --offering-column-width: calc(100% / 2);
}

.offering-search {
  position: relative;
  justify-self: center;
  flex: 0 0 auto;
  width: min(420px, 100%);
}

.offering-search-results {
  position: absolute;
  top: calc(100% + var(--space-10));
  left: 0;
  right: 0;
  display: grid;
  gap: var(--space-5);
  max-height: min(280px, calc(var(--product-panel-inner-height, 360px) - 70px));
  padding: var(--space-10);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  background: var(--surface-popover);
  box-shadow: var(--shadow-popover);
  overflow-y: auto;
  z-index: 20;
}

.offering-search-result {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-10);
  border: 0;
  border-radius: var(--radius-5);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.offering-search-result:hover,
.offering-search-result:focus-visible {
  background: var(--state-hover);
  outline: none;
}

.offering-search-result-name,
.offering-search-result-path {
  font-size: var(--font-sm);
  line-height: 1.35;
}

.offering-search-result-path {
  color: var(--ink);
  font-size: var(--font-xs);
}

.offering-picker-shell {
  min-height: 0;
  height: var(--product-drilldown-max-height);
  max-height: var(--product-drilldown-max-height);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-5);
  overflow: hidden;
}

.offering-drilldown-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: var(--product-drilldown-max-height);
  overflow-x: auto;
  overflow-y: hidden;
}

.offering-drilldown {
  display: flex;
  min-width: 100%;
  width: 100%;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.offering-drilldown-column {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--offering-column-width);
  width: var(--offering-column-width);
  gap: var(--space-5);
  padding: var(--space-10);
  min-height: 0;
  height: 100%;
  max-height: var(--product-drilldown-max-height);
  overflow-y: auto;
}

.offering-drilldown-column .hierarchy-row {
  flex: 0 0 auto;
}

.condition-editor input,
.condition-editor select,
.condition-editor textarea,
.condition-editor option,
.condition-editor .choice-text,
.condition-editor .money-input,
.condition-editor .money-input input {
  font-size: var(--font-sm);
}

.condition-editor .field > input,
.condition-editor .field input[type="text"],
.condition-editor .field input[type="search"],
.condition-editor .field input[type="number"],
.condition-editor .field select,
.condition-editor .field > div > select,
.condition-editor .field > .money-input {
  min-height: 50px;
  height: 50px;
  border-radius: var(--radius-5);
  box-sizing: border-box;
  transition: border-color 140ms ease;
}

.condition-editor .field > input,
.condition-editor .field input[type="text"],
.condition-editor .field input[type="search"],
.condition-editor .field input[type="number"],
.condition-editor .field select,
.condition-editor .field > div > select,
.condition-editor .field > .money-input input {
  padding-inline: 15px;
}

.condition-editor .field select,
.condition-editor .field > div > select {
  padding-right: 40px;
}

.condition-editor .field > input:focus,
.condition-editor .field input[type="text"]:focus,
.condition-editor .field input[type="search"]:focus,
.condition-editor .field input[type="number"]:focus,
.condition-editor .field select:focus,
.condition-editor .field > div > select:focus,
.condition-editor .field > .money-input:focus-within {
  border-color: var(--line-focus-strong);
  box-shadow: none;
}

@media (max-width: 900px) {
  .results {
    padding-top: calc(var(--result-header-expanded-height, var(--result-header-height, 120px)) + 45px);
  }

  body[data-page="measure-detail"] .measure-detail-page {
    padding-top: calc(var(--result-header-expanded-height, var(--result-header-height, 120px)) + 45px);
  }
}

@media (max-width: 768px) {
  body[data-page="measure-detail"] .measure-detail-page {
    padding: calc(var(--result-header-expanded-height, var(--result-header-height, 120px)) + 45px) 15px 65px;
  }

  .editor-form.is-open {
    overflow: hidden;
  }

  .condition-editor.is-open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 0;
  }

  .editor-form.is-open .condition-editor {
    height: 100%;
    min-height: 0;
  }

  .condition-panel,
  .condition-panel[data-panel="goal"],
  .condition-panel[data-panel="budget"],
  .condition-panel[data-panel="measure"],
  .condition-panel[data-panel="customer"] {
    order: 2;
    grid-template-columns: 1fr;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: var(--space-15);
    overflow: auto;
  }

  .offering-search {
    width: min(420px, 100%);
  }

  .condition-panel[data-panel="measure"],
  .condition-panel[data-panel="product"] {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    max-width: none;
    align-items: stretch;
    overflow: hidden;
  }

  .condition-panel[data-panel="measure"] > *,
  .condition-panel[data-panel="product"] > * {
    min-height: 0;
    height: 100%;
  }

  .condition-panel[data-panel="measure"] #edit-measure-category-field,
  .condition-panel[data-panel="product"] #edit-offering-field {
    height: 100%;
    overflow: hidden;
  }

  .offering-picker {
    --offering-column-width: calc(100% / 3);
    height: 100%;
    overflow: hidden;
  }

  .measure-category-picker {
    --offering-column-width: calc(100% / 2);
  }

  .offering-picker-shell,
  .offering-drilldown-scroll,
  .offering-drilldown {
    height: var(--product-drilldown-max-height);
    max-height: var(--product-drilldown-max-height);
  }

  .offering-drilldown-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
  }

  .offering-drilldown {
    display: flex;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 0;
    align-items: flex-start;
  }

  .offering-drilldown-column {
    flex: 0 0 var(--offering-column-width);
    width: var(--offering-column-width);
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: var(--product-drilldown-max-height);
    overflow-y: auto;
  }

  .condition-editor-actions {
    order: 1;
    display: none;
    gap: var(--space-5);
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: var(--space-10) var(--space-15) max(var(--space-10), env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-subtle);
    background: var(--active-condition-surface);
  }

  .editor-form.is-open .condition-editor-actions {
    display: flex;
  }

  .condition-editor-actions .header-search-button,
  .condition-editor-actions .clear-button {
    flex: 1 1 0;
    width: auto;
    min-height: 40px;
  }
}
