.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.card h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--brand);
}
.card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--text);
}
.ui-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.ui-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-3);
}
.ui-card-select {
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.ui-card-select:hover,
.ui-card-select.is-on {
  border-color: var(--accent);
  background: var(--accent-l);
}
.ui-card-select:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.todo {
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--gray-l);
  border-radius: var(--r-md);
  padding: 7px 10px;
  margin: 0 0 var(--sp-3);
  display: inline-block;
}
.lead {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.ctlbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.legend {
  display: flex;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  vertical-align: 1px;
  margin-right: var(--sp-1);
}
.kv {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-md);
  padding: 5px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) 14px;
}
.rangebox {
  background: var(--gray-l);
  border-radius: var(--r-lg);
  padding: 14px;
  text-align: center;
  margin-bottom: 6px;
}
.rangebox .big {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--brand);
}
.decide {
  margin: 14px 0;
}
.exit-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: default;
}
.exit-summary::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.exit-summary b {
  color: var(--accent);
  font-weight: 700;
}
.exit-summary .exit-none {
  color: var(--hint);
}
#mapNextStep {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

#mapExitSummary {
  text-align: right;
}

.nextbtn {
  align-self: flex-end;
  margin-left: auto;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nextbtn.nextbtn-zero {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.nextbtn.nextbtn-zero:hover {
  background: var(--gray-l);
  color: var(--text);
}
.nextbtn.nextbtn-active {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 12px rgba(214, 0, 108, 0.2);
}
.nextbtn.nextbtn-active:hover {
  background: #c20062;
  border-color: #c20062;
}

@keyframes nextBtnPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 0, 108, 0.6); }
  30% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(214, 0, 108, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 0, 108, 0); }
}
.nextbtn.is-pulse {
  animation: nextBtnPulse 0.4s ease-out;
}

#toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.toast-action-btn {
  display: inline-flex;
  flex-shrink: 0;
  padding: 6px 16px;
  background: var(--accent);
  color: var(--surface);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--fs-base);
  box-shadow: 0 4px 12px rgba(214, 0, 108, 0.3);
  transition: transform 0.2s, background 0.2s;
  pointer-events: auto;
}
.toast-action-btn:hover {
  background: #c20062;
  transform: translateY(-1px);
}

.voice {
  background: var(--good-l);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  margin-top: var(--sp-3);
}
.voice .who {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--good);
}
.voice .txt {
  font-size: var(--fs-sm);
  color: var(--good-d);
  margin-top: var(--sp-1);
}

.demo-more-details {
  display: none;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
  animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.demo-more-details.show {
  display: block;
}
.demo-more-title {
  font-weight: bold;
  margin-bottom: var(--sp-1);
  color: var(--brand);
}

aside .card.acc > h3 {
  cursor: pointer;
  user-select: none;
  font-size: var(--fs-md);
}
aside .card.acc > h3:hover {
  color: var(--accent);
}
aside .card.acc > h3::before {
  content: "▾ ";
  color: var(--hint);
  font-size: var(--fs-xs);
}
aside .card.acc.closed > h3 {
  margin-bottom: 0;
}
aside .card.acc.closed > h3::before {
  content: "▸ ";
}
aside .card.acc.closed .cbody {
  display: none;
}

.suumo-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.suumo-table tr {
  border-bottom: 1px solid var(--line);
}
.suumo-table tr:last-child {
  border-bottom: none;
}
.suumo-table th {
  width: 140px;
  background-color: var(--suumo-gray);
  color: var(--text);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  vertical-align: middle;
  border-right: 1px solid var(--line);
}
.suumo-table td {
  padding: 12px 16px;
  background-color: var(--surface);
  vertical-align: middle;
}
.suumo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 14px;
}
.suumo-table .chk {
  display: inline-flex;
  gap: 6px;
  user-select: none;
}
.suumo-table .chk:not(.on) .mk {
  background: var(--surface);
}
.suumo-table .chk .pc {
  margin-left: 4px;
  font-weight: 600;
}

.schooser {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: var(--z-drawer);
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 14px;
  width: 340px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.schooser .sc-t {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--brand);
}
.schooser .sc-x {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 4px 0 2px;
}
.schooser .sc-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px 36px 10px 12px;
  font: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
  margin-top: var(--sp-2);
  position: relative;
  text-decoration: none;
  color: var(--text);
}
.schooser .sc-btn:hover {
  border-color: var(--accent);
  background: var(--accent-l);
}
.schooser .sc-btn:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}
.schooser .sc-btn b {
  color: var(--accent);
}
.schooser .sc-btn .sc-st {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 2px;
}
.schooser .sc-btn .sc-open {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--hint);
}
.schooser .sc-btn.done {
  border-color: var(--good);
  background: var(--good-l);
}
.schooser .sc-btn.done b,
.schooser .sc-btn.done .sc-open {
  color: var(--good-d);
}
.schooser .sc-hint {
  font-size: var(--fs-xs);
  color: var(--hint);
  margin-top: 10px;
}
