.sh-tool { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 12px; }
@media (min-width: 1040px) {
  .sh-tool { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; gap: 40px; }
}
.sh-ctl { display: grid; gap: 18px; min-width: 0; }
.sh-step { border: 0; border-top: 3px solid var(--pine); margin: 0; padding: 12px 0 0; min-width: 0; }
.sh-step legend { font: 700 22px/1.2 var(--head); padding: 0 12px 0 0; float: left; width: 100%; margin-bottom: 10px; }
.sh-step legend + * { clear: both; }
.sh-hint { font-size: 15px; color: var(--ink2); margin: 0 0 12px; }
.sh-group { margin: 0 0 14px; }
.sh-group-title { font-size: 16px; font-family: var(--font); font-weight: 600; color: var(--ink2); margin: 0 0 8px; letter-spacing: 0; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { position: relative; display: inline-flex; }
.sh-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sh-chip span {
  min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 15px; font-weight: 600; transition: background-color .12s, border-color .12s;
}
.sh-chip input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--white); }
.sh-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sh-count { font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.sh-custom { margin: 8px 0 0; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 0 14px; background: var(--surface); }
.sh-custom summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sh-custom[open] { padding-bottom: 14px; }
.sh-customs { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; display: grid; gap: 6px; }
.sh-row { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .sh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.sh-opts { display: grid; gap: 8px; }
.sh-opt { position: relative; display: block; }
.sh-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sh-opt span {
  display: grid; gap: 2px; padding: 10px 14px; min-height: 56px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.sh-opt b { font-size: 17px; }
.sh-opt i { font-style: normal; font-size: 14px; color: var(--ink2); }
.sh-opt input:checked + span { border-color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.sh-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sh-stepper { display: flex; gap: 8px; }
.sh-stepper .sh-btn { padding: 0; width: 44px; flex: none; }
.sh-stepper .sh-in { text-align: center; font-variant-numeric: tabular-nums; }
.sh-codebox { display: flex; gap: 8px; }
.sh-codebox .sh-in { font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.sh-codebox .sh-btn { flex: none; padding: 0 12px; }
.sh-order { margin: 0 0 14px; }
.sh-oh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sh-stops { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; counter-reset: stop; }
.sh-stops li {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 4px 6px 4px 12px;
  min-height: 44px; counter-increment: stop; cursor: grab;
}
.sh-stops li::before { content: counter(stop) "."; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink2); width: 1.6em; flex: none; }
.sh-stops .sh-gift { background: var(--raised); cursor: default; border-style: dashed; }
.sh-stops .sh-gift::before { content: "End"; width: 2.4em; }
.sh-sn { flex: 1; font-weight: 600; min-width: 0; }
.sh-grip { width: 10px; height: 18px; background: radial-gradient(circle, var(--ink2) 1.4px, transparent 1.6px) 0 0/5px 6px; opacity: .7; flex: none; }
.sh-ic {
  width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; flex: none;
}
.sh-ic:disabled { opacity: .35; cursor: default; }
.sh-kid { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .sh-kid { grid-template-columns: 1fr 1fr; } }

/* Output panel */
.sh-out { min-width: 0; }
.sh-bar {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: end;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px;
}
.sh-mini { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; }
.sh-mini legend { font-weight: 600; float: left; margin-right: 12px; padding: 0; }
.sh-mini label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sh-mini.sh-field { margin: 0; display: flex; flex-direction: column; align-items: stretch; min-width: 140px; }
.sh-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.sh-presets .sh-btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
.sh-prev { margin-top: 14px; }
.sh-empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 20px; color: var(--ink2); background: var(--surface); }
.sh-child { margin: 0 0 28px; }
.sh-child h3 { margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sh-child h3 span { font: 600 15px var(--font); color: var(--c, var(--pine)); }
.sh-route { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 16px; padding: 0; font-size: 14px; font-weight: 600; }
.sh-route li {
  display: flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
}
.sh-route li:not(:last-child)::after {
  content: ""; width: 18px; border-top: 3px dotted var(--ink2);
  margin-left: 6px; margin-right: -22px; position: relative;
}
.sh-route li:not(:last-child) { margin-right: 24px; }
.sh-route li:first-child { background: var(--c, var(--pine)); color: var(--white); border-color: var(--c, var(--pine)); }
.sh-route .sh-end { background: var(--pine); color: var(--white); border-color: var(--pine); }
.sh-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sh-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-hideat { margin: 0; font-size: 14px; color: var(--ink2); border-left: 3px solid var(--c, var(--pine2)); padding-left: 8px; }
.sh-note { font-size: 15px; color: var(--ink2); margin: 0 0 10px; max-width: 70ch; }
.sh-safety strong { color: var(--berry); }

