:root {
  color-scheme: light;
  --gw-navy: #1e3a8a;
  --gw-navy-deep: #142b68;
  --gw-green: #ccff00;
  --gw-green-dark: #9bc400;
  --page: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #172033;
  --muted: #667085;
  --line: #e1e6ee;
  --line-strong: #cfd6e2;
  --danger: #b42318;
  font-family: Pretendard, Inter, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--page);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1280px, 94vw);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--gw-navy-deep);
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.wordmark-wa {
  position: relative;
  z-index: 0;
}

.wordmark-wa::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.05em -0.09em -0.05em -0.04em;
  background: var(--gw-green-dark);
  border-radius: 2px;
}

.service-name {
  margin-left: 1.1rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-strong);
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
}

.header-meta {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--gw-green-dark);
  border-radius: 50%;
}

main {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin: 0;
  color: var(--gw-navy-deep);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.page-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pilot-badge {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d9e2f4;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--gw-navy);
  font-size: 0.72rem;
  font-weight: 750;
}

.planner {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.control-panel,
.result-panel {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(24, 39, 75, 0.04);
}

.control-panel {
  position: sticky;
  top: 84px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.panel-heading h2 {
  margin: 0;
  color: var(--gw-navy-deep);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.75rem;
}

.field,
.toggle-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field-wide,
.toggle-field {
  grid-column: 1 / -1;
}

.field > span:first-child,
.toggle-field strong {
  color: #344054;
  font-size: 0.76rem;
  font-weight: 750;
}

select,
input[type="number"],
input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

select:hover,
input[type="number"]:hover,
input[type="search"]:hover {
  border-color: #aeb8c8;
}

select:focus,
input[type="number"]:focus,
input[type="search"]:focus {
  border-color: var(--gw-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

select:disabled,
input:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}

input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.camera-search {
  position: relative;
}

.camera-search input {
  padding-left: 2.55rem;
  padding-right: 0.8rem;
  font-weight: 650;
}

.search-icon {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  top: 14px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--gw-navy);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 99px;
  background: var(--gw-navy);
  transform: rotate(45deg);
}

.camera-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 43, 104, 0.18);
}

.camera-results[hidden] {
  display: none;
}

.camera-result {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.camera-result:hover,
.camera-result.is-active {
  background: #eef3ff;
}

.camera-result.is-unavailable {
  cursor: default;
  opacity: 0.62;
}

.camera-result.is-unavailable:hover {
  background: #fff;
}

.camera-result-image {
  width: 52px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7fa;
  color: var(--gw-navy);
  font-weight: 850;
}

.camera-result-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.camera-result-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.camera-result-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-result-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-result-status {
  padding: 0.27rem 0.42rem;
  border-radius: 5px;
  background: var(--gw-green);
  color: #243200;
  font-size: 0.56rem;
  font-weight: 800;
  white-space: nowrap;
}

.camera-result.is-unavailable .camera-result-status {
  background: #eaecf0;
  color: #667085;
}

.search-state {
  padding: 1.25rem 0.75rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.number-control {
  position: relative;
}

.number-control input {
  padding-right: 2.4rem;
}

.number-control small {
  position: absolute;
  right: 0.8rem;
  bottom: 0.86rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.toggle-field {
  min-height: 62px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.toggle-field span {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.toggle-field small {
  color: var(--muted);
  font-size: 0.68rem;
}

.toggle-field input {
  position: absolute;
  opacity: 0;
}

.toggle-field i {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfd5df;
  position: relative;
  transition: 160ms ease;
}

.toggle-field i::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
  transition: 160ms ease;
}

.toggle-field input:checked + i {
  background: var(--gw-navy);
}

.toggle-field input:checked + i::after {
  transform: translateX(18px);
}

.toggle-field:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.camera-slot {
  margin-top: 1.15rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: #f2f6ff;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.camera-slot > img,
.selected-camera-monogram {
  width: 54px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #d6e0f4;
  background: #fff;
  object-fit: contain;
}

.selected-camera-monogram {
  display: grid;
  place-items: center;
  color: var(--gw-navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.camera-slot-copy {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
}

.camera-slot-copy strong {
  color: var(--gw-navy-deep);
  font-size: 0.76rem;
}

.camera-slot-copy > span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.camera-slot-copy small {
  color: #7d8ca7;
  font-size: 0.6rem;
}

.decision-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid #a9bddf;
  border-radius: 15px;
  background: linear-gradient(135deg, #142b68 0%, #1e3a8a 72%, #274aa5 100%);
  color: #fff;
}

.decision-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  top: -90px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.14);
}

.decision-copy,
.decision-quantity,
.decision-metrics,
.decision-note {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gw-green);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.decision-copy h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  letter-spacing: -0.035em;
}

.decision-copy p {
  margin: 0.45rem 0 0;
  color: #cbd7ef;
  font-size: 0.68rem;
}

.decision-quantity {
  align-self: start;
  min-width: 150px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(204, 255, 0, 0.5);
  border-radius: 10px;
  background: rgba(10, 26, 68, 0.44);
  text-align: right;
}

.decision-quantity strong {
  display: block;
  color: var(--gw-green);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.decision-quantity span {
  display: block;
  margin-top: 0.22rem;
  color: #dbe4f5;
  font-size: 0.59rem;
}

.decision-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.decision-metrics div {
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
}

.decision-metrics div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.decision-metrics span,
.decision-metrics strong {
  display: block;
}

.decision-metrics span {
  margin-bottom: 0.35rem;
  color: #aebede;
  font-size: 0.58rem;
}

.decision-metrics strong {
  color: #fff;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.decision-note {
  grid-column: 1 / -1;
  color: #aebede;
  font-size: 0.59rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.summary-item:nth-child(2) {
  border-color: #cad8f3;
  background: #f0f5ff;
}

.summary-item:nth-child(3) {
  border-color: #dbe7aa;
  background: #f7fbdc;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.summary-item strong {
  display: block;
  color: var(--gw-navy-deep);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.summary-item small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.result-section {
  margin-top: 1.75rem;
}

.result-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.7rem;
}

.result-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.result-section-heading .section-kicker {
  margin-bottom: 0.25rem;
  color: var(--gw-navy);
}

.result-section-heading span {
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.disabled-list {
  display: grid;
  gap: 0.65rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.option-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.option-card.is-recommended {
  border-color: var(--gw-navy);
  box-shadow: inset 0 3px 0 var(--gw-navy), 0 7px 18px rgba(30, 58, 138, 0.08);
}

.option-card-top {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.media-glyph {
  position: relative;
  width: 25px;
  height: 30px;
  border: 2px solid var(--gw-navy);
  border-radius: 3px 3px 5px 5px;
  background: #eef3ff;
}

.media-glyph::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  border-left: 8px solid transparent;
  border-bottom: 8px solid var(--gw-navy);
}

.media-glyph i {
  position: absolute;
  left: 4px;
  bottom: 5px;
  width: 13px;
  height: 3px;
  border-radius: 99px;
  background: var(--gw-green-dark);
}

.option-card h4 {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.qualification-label {
  color: var(--muted);
  font-size: 0.61rem;
}

.option-plan {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #f3f6fa;
}

.option-card.is-recommended .option-plan {
  background: #edf3ff;
}

.option-plan strong,
.option-plan small {
  display: block;
}

.configuration-select {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.configuration-select > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.configuration-select select {
  min-height: 36px;
  padding: 0.45rem 1.8rem 0.45rem 0.6rem;
  border-radius: 7px;
  background-color: #fff;
  color: var(--gw-navy);
  font-size: 0.65rem;
  font-weight: 750;
}

.option-plan strong {
  color: var(--gw-navy);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.option-plan small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.59rem;
}

.option-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.product-choice-list {
  display: grid;
  margin-top: auto;
  padding-top: 0.8rem;
}

.product-match {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.35rem;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.option-card p + .product-choice-list {
  margin-top: 0.8rem;
}

.product-match.is-included {
  margin-inline: -0.35rem;
  padding-inline: 0.7rem;
  border-top-color: #d7e69c;
  border-radius: 8px;
  background: #f7fbdc;
}

.product-match.is-included .product-match-label {
  color: #526800;
}

.product-match:hover .product-match-copy strong {
  color: var(--gw-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-match-image {
  width: 46px;
  height: 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.product-match-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-match-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.product-match-copy small {
  color: var(--gw-navy);
  font-size: 0.55rem;
  font-weight: 750;
}

.product-match-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 0.63rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-match-copy em {
  color: var(--muted);
  font-size: 0.57rem;
  font-style: normal;
}

.product-empty {
  margin-top: auto;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.5;
}

.product-match-arrow {
  color: var(--gw-navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.proxy-plan {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid #cad8f3;
  border-radius: 10px;
  background: #f0f5ff;
}

.proxy-plan span,
.proxy-plan small {
  color: var(--muted);
  font-size: 0.64rem;
}

.proxy-plan strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--gw-navy);
  font-size: 0.92rem;
}

.incompatible-details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.incompatible-details summary {
  padding: 0.9rem 0;
  color: #667085;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  list-style-position: inside;
}

.incompatible-details summary span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  margin-left: 0.25rem;
  place-items: center;
  border-radius: 99px;
  background: #eaecf0;
  font-size: 0.58rem;
}

.media-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.media-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.media-card p {
  color: var(--muted);
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.media-card-main {
  min-width: 0;
}

.media-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tier-badge,
.qualification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0.14rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #475467;
  background: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

.tier-badge {
  border-color: #aed000;
  background: var(--gw-green);
  color: #203000;
}

.tier-balanced .tier-badge {
  border-color: var(--gw-navy);
  background: var(--gw-navy);
  color: #fff;
}

.tier-premium .tier-badge,
.tier-future .tier-badge {
  border-color: #b8c0cc;
  background: #e9edf3;
  color: #344054;
}

.card-plan {
  min-width: 112px;
  text-align: right;
  white-space: nowrap;
}

.card-plan strong {
  display: block;
  color: var(--gw-navy);
  font-size: 1rem;
}

.card-plan small {
  color: var(--muted);
  font-size: 0.63rem;
}

.disabled-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1fr;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #eaecf0;
  border-radius: 9px;
  background: #f8f9fb;
  color: #7b8495;
  font-size: 0.69rem;
}

.disabled-item strong {
  color: #667085;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.warning-list {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem 0.85rem 2rem;
  border-radius: 9px;
  background: #fff8e8;
  color: #7a5b18;
  font-size: 0.68rem;
  line-height: 1.5;
}

.warning-list li + li {
  margin-top: 0.3rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.source-links a {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #f2f4f7;
  color: var(--gw-navy);
  font-size: 0.62rem;
  font-weight: 650;
  text-decoration: none;
}

.source-links a:hover {
  text-decoration: underline;
}

.error-message {
  padding: 0.85rem 1rem;
  border: 1px solid #fecdca;
  border-radius: 9px;
  background: #fef3f2;
  color: var(--danger);
  font-size: 0.76rem;
}

.data-note {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef1f5;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.data-note strong {
  flex: 0 0 auto;
  color: #344054;
  font-size: 0.72rem;
}

.data-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

footer {
  min-height: 72px;
  padding: 0 max(3vw, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
}

footer span:first-child {
  color: var(--gw-navy-deep);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

@media (max-width: 960px) {
  .planner {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 58px;
  }

  .header-inner,
  main {
    width: min(100% - 28px, 1280px);
  }

  .wordmark {
    font-size: 1.35rem;
  }

  .service-name {
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    font-size: 0.76rem;
  }

  .header-meta {
    display: none;
  }

  main {
    padding-top: 1.5rem;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .page-heading h1 {
    font-size: 1.65rem;
  }

  .page-heading p {
    font-size: 0.82rem;
  }

  .control-panel,
  .result-panel {
    padding: 1.1rem;
    border-radius: 13px;
  }

  .field-grid,
  .summary-grid,
  .decision-metrics,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .toggle-field {
    grid-column: auto;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .decision-card {
    grid-template-columns: 1fr;
  }

  .decision-quantity {
    width: 100%;
    text-align: left;
  }

  .decision-metrics {
    display: grid;
  }

  .decision-metrics div,
  .decision-metrics div + div {
    padding: 0.7rem 0;
    border-left: 0;
  }

  .decision-metrics div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .camera-result {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .camera-result-image {
    width: 44px;
  }

  .camera-result-status {
    grid-column: 2;
    justify-self: start;
  }

  .card-plan {
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .disabled-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .data-note {
    flex-direction: column;
    gap: 0.35rem;
  }

  footer {
    padding: 0 14px;
  }

  footer span:last-child {
    display: none;
  }
}
