/* ShippingHub design system. One stylesheet for every screen (Home, Orders, Settings, Plan, and the owner area).
   Light and calm, so the data and the next action stand out. Teal is the one brand colour: primary buttons, the
   active tab, progress. Amber means "needs a look", red means "failed". The parcel "route" (dots joined by a line)
   is the recurring motif: the order flow on Home and each shipment's delivery progress.
   Shopify's own form fields (s-text-field, s-select, s-checkbox) are used as they are. */
:root {
  --sh-brand: #0f766e;
  --sh-brand-strong: #0b5c56;
  --sh-brand-ink: #083b37;
  --sh-brand-soft: #e6f4f1;
  --sh-brand-line: #b9ded8;
  --sh-ink: #1a1f23;
  --sh-body: #3a444a;
  --sh-muted: #5f6b72;
  --sh-faint: #8a959b;
  --sh-line: #e3e7ea;
  --sh-line-strong: #cfd6da;
  --sh-surface: #ffffff;
  --sh-canvas: #f6f7f8;
  --sh-ok: #17805a;
  --sh-ok-soft: #e3f5ec;
  --sh-warn: #8f5400;
  --sh-warn-solid: #f0a429;
  --sh-warn-soft: #fff4dd;
  --sh-bad: #c2362b;
  --sh-bad-soft: #fdecea;
  --sh-info: #1c64b9;
  --sh-info-soft: #e6f0fb;
  --sh-accent: #f0a429;
  --sh-accent-soft: #fff4dd;
  --sh-radius: 12px;
  --sh-radius-sm: 8px;
  --sh-shadow: 0 1px 0 rgba(26, 31, 35, 0.04), 0 1px 3px rgba(26, 31, 35, 0.07);
  --sh-shadow-lift: 0 2px 4px rgba(26, 31, 35, 0.06), 0 8px 24px rgba(26, 31, 35, 0.08);
  --sh-focus: 0 0 0 2px #fff, 0 0 0 4px var(--sh-brand);
}

#app, .sh-root {
  display: flex; flex-direction: column; gap: 16px;
  color: var(--sh-body); font-size: 13.5px; line-height: 1.45;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app *, .sh-root * { box-sizing: border-box; }
.sh-p { margin: 0; }
.sh-muted { color: var(--sh-muted); }
.sh-small { font-size: 12.5px; }
.sh-strong { font-weight: 600; color: var(--sh-ink); }
.sh-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; letter-spacing: 0.02em; }
.sh-icon { display: inline-grid; place-items: center; flex: none; }
.sh-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Page header ---------- */
.sh-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 0 2px; }
.sh-head-mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff;
  background: linear-gradient(145deg, #14968a 0%, var(--sh-brand) 55%, var(--sh-brand-strong) 100%);
  box-shadow: 0 1px 2px rgba(8, 59, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sh-head-mark .sh-icon { width: 23px; height: 23px; }
.sh-head-text { flex: 1 1 260px; min-width: 0; }
.sh-head h1 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; color: var(--sh-ink); }
.sh-head p { margin: 2px 0 0; color: var(--sh-muted); font-size: 13.5px; }
.sh-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-head-actions form { margin: 0; }

/* ---------- Buttons ---------- */
.sh-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border-radius: var(--sh-radius-sm);
  color: var(--sh-ink); background: var(--sh-surface); border: 1px solid var(--sh-line-strong);
  box-shadow: 0 1px 0 rgba(26, 31, 35, 0.05);
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.sh-btn:hover { background: var(--sh-canvas); border-color: #b8c1c6; }
.sh-btn:active { box-shadow: inset 0 1px 2px rgba(26, 31, 35, 0.12); }
.sh-btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.sh-btn .sh-icon { width: 15px; height: 15px; }
.sh-btn.is-primary { color: #fff; background: var(--sh-brand); border-color: var(--sh-brand-strong); box-shadow: 0 1px 0 rgba(8, 59, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.sh-btn.is-primary:hover { background: var(--sh-brand-strong); }
.sh-btn.is-danger { color: #fff; background: var(--sh-bad); border-color: #a32b21; }
.sh-btn.is-danger:hover { background: #a32b21; }
.sh-btn.is-plain { padding: 5px 8px; background: transparent; border-color: transparent; box-shadow: none; color: var(--sh-brand-strong); }
.sh-btn.is-plain:hover { background: var(--sh-brand-soft); }
.sh-btn.is-plain.is-danger-text { color: var(--sh-bad); }
.sh-btn.is-plain.is-danger-text:hover { background: var(--sh-bad-soft); }
.sh-btn.is-small { padding: 6px 10px; font-size: 12.5px; }
.sh-btn.is-wide { width: 100%; }
.sh-btn[disabled], .sh-btn[aria-disabled="true"] { cursor: default; color: var(--sh-faint); background: var(--sh-canvas); border-color: var(--sh-line); box-shadow: none; }
.sh-btn[loading] { pointer-events: none; color: transparent !important; }
.sh-btn[loading]::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--sh-muted); border-top-color: transparent; animation: sh-spin 0.7s linear infinite;
}
.sh-btn.is-primary[loading]::after, .sh-btn.is-danger[loading]::after { border-color: #fff; border-top-color: transparent; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh-btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.sh-card {
  background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.sh-card.is-flush { padding: 0; gap: 0; overflow: hidden; }
.sh-card h2 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; color: var(--sh-ink); }
.sh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sh-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sh-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- Pills ---------- */
.sh-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.3;
  padding: 3px 9px; border-radius: 99px; background: #eef1f3; color: var(--sh-muted); white-space: nowrap; text-decoration: none;
}
.sh-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sh-chip.is-plain::before { display: none; }
.sh-chip.is-ok { background: var(--sh-ok-soft); color: var(--sh-ok); }
.sh-chip.is-warn { background: var(--sh-warn-soft); color: var(--sh-warn); }
.sh-chip.is-bad { background: var(--sh-bad-soft); color: var(--sh-bad); }
.sh-chip.is-info { background: var(--sh-info-soft); color: var(--sh-info); }
.sh-chip.is-brand { background: var(--sh-brand-soft); color: var(--sh-brand-strong); }
a.sh-chip:hover { filter: brightness(0.96); }
a.sh-chip:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* ---------- Callouts (messages) ---------- */
.sh-callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--sh-radius-sm);
  background: var(--sh-info-soft); border: 1px solid #c9ddf5; color: var(--sh-body);
}
.sh-callout > .sh-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--sh-info); }
.sh-callout-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sh-callout-title { font-weight: 650; color: var(--sh-ink); }
.sh-callout.is-ok { background: var(--sh-ok-soft); border-color: #bfe6d2; }
.sh-callout.is-ok > .sh-icon { color: var(--sh-ok); }
.sh-callout.is-warn { background: var(--sh-warn-soft); border-color: #f6dca4; }
.sh-callout.is-warn > .sh-icon { color: #b97400; }
.sh-callout.is-bad { background: var(--sh-bad-soft); border-color: #f5c6c1; }
.sh-callout.is-bad > .sh-icon { color: var(--sh-bad); }
.sh-callout .sh-btn-row { margin-top: 4px; }
.sh-lines { display: flex; flex-direction: column; gap: 3px; }

/* ---------- Progress ---------- */
.sh-progress { height: 8px; border-radius: 99px; background: #e9eef0; overflow: hidden; }
.sh-progress > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sh-brand), #17a394); transition: width 0.4s ease; }
.sh-progress.is-high > div { background: var(--sh-warn-solid); }

/* ---------- Home: the order flow ---------- */
.sh-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sh-flow-stage {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 20px;
  text-decoration: none; color: inherit; border-left: 1px solid var(--sh-line); transition: background-color 0.12s ease;
}
.sh-flow-stage:first-child { border-left: 0; }
.sh-flow-stage:hover { background: var(--sh-canvas); }
.sh-flow-stage:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sh-brand); }
/* the arrow that joins one stage to the next */
.sh-flow-stage + .sh-flow-stage::before {
  content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; background: var(--sh-surface);
  border-top: 1px solid var(--sh-line-strong); border-right: 1px solid var(--sh-line-strong); transform: rotate(45deg);
}
.sh-flow-top { display: flex; align-items: center; gap: 8px; color: var(--sh-muted); font-size: 12.5px; font-weight: 600; }
.sh-flow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sh-tone, var(--sh-faint)); box-shadow: 0 0 0 3px var(--sh-tone-soft, #eef1f3); }
.sh-flow-value { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.sh-flow-stage.is-zero .sh-flow-value { color: var(--sh-faint); }
.sh-flow-note { font-size: 12.5px; color: var(--sh-muted); }
.sh-flow-stage.is-ok { --sh-tone: var(--sh-brand); --sh-tone-soft: var(--sh-brand-soft); }
.sh-flow-stage.is-warn { --sh-tone: var(--sh-warn-solid); --sh-tone-soft: var(--sh-warn-soft); }
.sh-flow-stage.is-info { --sh-tone: var(--sh-info); --sh-tone-soft: var(--sh-info-soft); }
.sh-flow-stage.is-done { --sh-tone: var(--sh-ok); --sh-tone-soft: var(--sh-ok-soft); }

/* ---------- Home: what needs you, facts ---------- */
.sh-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sh-todo li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sh-line); }
.sh-todo li:first-child { border-top: 0; padding-top: 2px; }
.sh-todo li:last-child { padding-bottom: 2px; }
.sh-todo-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--sh-tone-soft); color: var(--sh-tone); }
.sh-todo-mark .sh-icon { width: 18px; height: 18px; }
.sh-todo-text { flex: 1; min-width: 0; }
.sh-todo-title { font-weight: 600; color: var(--sh-ink); }
.sh-todo li.is-ok { --sh-tone: var(--sh-brand); --sh-tone-soft: var(--sh-brand-soft); }
.sh-todo li.is-warn { --sh-tone: #b97400; --sh-tone-soft: var(--sh-warn-soft); }
.sh-todo li.is-bad { --sh-tone: var(--sh-bad); --sh-tone-soft: var(--sh-bad-soft); }
.sh-clear { display: flex; align-items: center; gap: 12px; }
.sh-facts { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-facts dt { color: var(--sh-muted); font-size: 12.5px; margin-top: 8px; }
.sh-facts dt:first-child { margin-top: 0; }
.sh-facts dd { margin: 0; font-weight: 600; color: var(--sh-ink); overflow-wrap: anywhere; }
.sh-big { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--sh-ink); font-variant-numeric: tabular-nums; }

/* ---------- Setup checklist and Settings steps (a vertical route) ---------- */
.sh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sh-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 0 0 16px; }
.sh-steps li:last-child { padding-bottom: 0; }
.sh-steps li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--sh-line); }
.sh-steps li.is-done:not(:last-child)::before { background: var(--sh-brand-line); }
.sh-check {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-size: 12px; font-weight: 700; border: 2px solid var(--sh-line-strong); color: var(--sh-muted); background: #fff;
}
.sh-check .sh-icon { width: 13px; height: 13px; }
.is-done > .sh-check, .sh-check.is-done { border-color: var(--sh-brand); background: var(--sh-brand); color: #fff; }
.sh-step-title { font-weight: 600; color: var(--sh-ink); }
.sh-step-note { font-size: 12.5px; color: var(--sh-muted); }

.sh-step { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); overflow: hidden; }
.sh-step.is-open { border-color: var(--sh-line-strong); box-shadow: var(--sh-shadow-lift); }
.sh-step-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; font: inherit; text-align: left;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.sh-step-head:hover { background: var(--sh-canvas); }
.sh-step-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sh-brand); }
.sh-step-head .sh-check { width: 28px; height: 28px; font-size: 13px; }
.sh-step-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sh-step-titles .sh-step-title { font-size: 14.5px; }
.sh-step-sum { font-size: 12.5px; color: var(--sh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-chevron { width: 18px; height: 18px; color: var(--sh-faint); transition: transform 0.15s ease; }
.sh-step.is-open .sh-chevron { transform: rotate(180deg); }
.sh-step-body { display: none; flex-direction: column; gap: 16px; padding: 4px 18px 18px 60px; }
.sh-step.is-open .sh-step-body { display: flex; }
.sh-step-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--sh-line); }
.sh-step-foot .sh-callout { flex: 1 1 260px; padding: 8px 12px; }
.sh-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sh-fields.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-fields .is-full { grid-column: 1 / -1; }
.sh-sub { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-sm); background: #fbfcfc; }
.sh-sub-title { font-weight: 650; color: var(--sh-ink); }
.sh-search { display: flex; gap: 8px; align-items: flex-end; }
.sh-search > :first-child { flex: 1; min-width: 0; }
.sh-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-sm); background: #fff; }
.sh-option:hover { border-color: var(--sh-brand-line); }
.sh-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sh-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--sh-radius-sm); background: var(--sh-brand-soft); border: 1px solid var(--sh-brand-line); }
.sh-picked > .sh-icon { width: 20px; height: 20px; color: var(--sh-brand); }
.sh-taglist { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Orders ---------- */
.sh-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-seg button {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 12px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: var(--sh-muted);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.sh-seg button:hover { background: #e9eef0; color: var(--sh-ink); }
.sh-seg button:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.sh-seg button.is-active { background: var(--sh-surface); color: var(--sh-ink); border-color: var(--sh-line-strong); box-shadow: var(--sh-shadow); }
.sh-seg-count { font-size: 11.5px; font-weight: 650; min-width: 20px; padding: 1px 6px; border-radius: 99px; text-align: center; background: #e3e8eb; color: var(--sh-muted); font-variant-numeric: tabular-nums; }
.sh-seg button.is-active .sh-seg-count { background: var(--sh-brand); color: #fff; }
.sh-seg-count.is-bad { background: var(--sh-bad-soft); color: var(--sh-bad); }
.sh-seg-count.is-warn { background: var(--sh-warn-soft); color: var(--sh-warn); }

.sh-message:empty { display: none; }
.sh-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--sh-line); min-height: 58px; }
.sh-bulk.is-active { background: var(--sh-brand-soft); border-bottom-color: var(--sh-brand-line); }
.sh-bulk-text { flex: 1; min-width: 160px; color: var(--sh-muted); }
.sh-bulk.is-active .sh-bulk-text { color: var(--sh-brand-ink); font-weight: 600; }
.sh-table-wrap { overflow-x: auto; }
.sh-table { width: 100%; border-collapse: collapse; }
.sh-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--sh-muted); padding: 9px 12px; background: #fafbfb;
  border-bottom: 1px solid var(--sh-line); white-space: nowrap;
}
.sh-table td { padding: 14px 12px; border-bottom: 1px solid var(--sh-line); vertical-align: top; }
.sh-table tbody tr:last-child td { border-bottom: 0; }
.sh-table th:first-child, .sh-table td:first-child { padding-left: 16px; }
.sh-table th:last-child, .sh-table td:last-child { padding-right: 16px; }
.sh-row { transition: background-color 0.1s ease; }
.sh-row:hover td { background: #fafbfb; }
.sh-row.is-selected td, .sh-row.is-selected:hover td { background: #f1f9f7; }
.sh-row.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--sh-brand); }
.sh-c-tick { width: 34px; }
.sh-c-tick input, .sh-bulk input[type="checkbox"] { width: 17px; height: 17px; margin: 2px 0 0; cursor: pointer; accent-color: var(--sh-brand); }
.sh-c-tick input:disabled { cursor: default; opacity: 0.45; }
.sh-c-order { width: 15%; min-width: 120px; }
.sh-c-to { width: 27%; min-width: 190px; }
.sh-c-checks { width: 21%; min-width: 170px; }
.sh-c-ship { width: 23%; min-width: 180px; }
.sh-c-actions { width: 1%; }
.sh-order-name { font-weight: 650; font-size: 14px; }
.sh-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sh-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-note { color: var(--sh-muted); font-size: 12.5px; }
.sh-warn { color: var(--sh-warn); font-size: 12.5px; font-weight: 550; }
.sh-bad-text { color: var(--sh-bad); font-size: 12.5px; }
.sh-checkline { display: flex; gap: 7px; align-items: flex-start; }
.sh-checkline > .sh-icon { width: 15px; height: 15px; margin-top: 2px; color: var(--sh-faint); }
.sh-checkline.is-ok > .sh-icon { color: var(--sh-ok); }
.sh-checkline.is-warn > .sh-icon { color: #b97400; }
.sh-checkline.is-bad > .sh-icon { color: var(--sh-bad); }
.sh-checkline-label { font-weight: 550; color: var(--sh-ink); }
.sh-checkline.is-quiet .sh-checkline-label { font-weight: 450; color: var(--sh-muted); }
.sh-holds { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--sh-warn); }
.sh-holds li { padding-left: 11px; position: relative; }
.sh-holds li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
/* delivery progress: five dots on a line */
.sh-track { display: flex; align-items: center; width: 132px; margin: 5px 0 2px; }
.sh-track i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--sh-line-strong); flex: none; }
.sh-track b { height: 2px; flex: 1; background: var(--sh-line-strong); }
.sh-track i.is-on { background: var(--sh-brand); border-color: var(--sh-brand); }
.sh-track b.is-on { background: var(--sh-brand); }
.sh-track i.is-now { box-shadow: 0 0 0 3px var(--sh-brand-soft); }
.sh-pin { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 10px; border-radius: 8px; background: var(--sh-accent-soft); border: 1px dashed #e0a030; font-size: 12.5px; color: var(--sh-warn); align-self: flex-start; }
.sh-pin strong { font-size: 15px; letter-spacing: 0.12em; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.sh-boxes-row { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.sh-boxes { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--sh-line-strong); border-radius: 6px; background: #fff; color: var(--sh-ink); }
.sh-actions { display: flex; flex-direction: column; gap: 4px; align-items: stretch; min-width: 132px; }
.sh-actions-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
.sh-detail-row td { background: #fafbfb; padding-top: 16px; padding-bottom: 16px; }
.sh-history { margin: 0; padding: 0 0 0 46px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sh-history li { position: relative; display: flex; flex-direction: column; }
.sh-history li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-brand); box-shadow: 0 0 0 3px var(--sh-brand-soft); }
.sh-history li:not(:last-child)::after { content: ""; position: absolute; left: -19px; top: 16px; bottom: -12px; width: 2px; background: var(--sh-brand-line); }
.sh-form { display: flex; flex-direction: column; gap: 14px; padding-left: 46px; max-width: 860px; }
.sh-form-title { font-weight: 650; color: var(--sh-ink); font-size: 14px; }
.sh-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 24px; text-align: center; color: var(--sh-muted); }
.sh-empty-mark { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sh-brand-soft); color: var(--sh-brand); margin-bottom: 6px; }
.sh-empty-mark .sh-icon { width: 26px; height: 26px; }
.sh-empty-title { font-weight: 650; font-size: 15px; color: var(--sh-ink); }
.sh-foot-note { display: flex; gap: 8px; align-items: flex-start; color: var(--sh-muted); font-size: 12.5px; }
.sh-foot-note .sh-icon { width: 15px; height: 15px; margin-top: 1px; }

/* ---------- Plan ---------- */
.pl-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; }
.pl-now-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--sh-ink); }
.pl-usage { display: flex; flex-direction: column; gap: 7px; grid-column: 1 / -1; }
.pl-usage-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pl-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px;
  background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); box-shadow: var(--sh-shadow);
}
.pl-card.is-popular { border-color: var(--sh-brand); box-shadow: 0 0 0 1px var(--sh-brand), var(--sh-shadow-lift); }
.pl-card.is-current { background: linear-gradient(180deg, #f3faf8 0%, #fff 55%); }
.pl-ribbon { position: absolute; top: -11px; left: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--sh-brand); padding: 3px 10px; border-radius: 99px; }
.pl-name { font-size: 15px; font-weight: 650; color: var(--sh-ink); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pl-price { font-size: 36px; line-height: 1; font-weight: 750; color: var(--sh-ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pl-price span { font-size: 13.5px; font-weight: 500; color: var(--sh-muted); letter-spacing: 0; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pl-list li { display: flex; gap: 8px; align-items: flex-start; }
.pl-list .sh-icon { width: 16px; height: 16px; margin-top: 1px; color: var(--sh-brand); }
.pl-list li.is-lead { font-weight: 600; color: var(--sh-ink); }

/* ---------- Owner area numbers ---------- */
.sh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sh-stat { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); padding: 14px 16px; box-shadow: var(--sh-shadow); display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.sh-stat-label { font-size: 12.5px; color: var(--sh-muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.sh-stat-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-tone, var(--sh-brand)); }
.sh-stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--sh-ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.sh-stat-note { font-size: 12.5px; color: var(--sh-muted); }
.sh-stat.is-ok { --sh-tone: var(--sh-ok); }
.sh-stat.is-warn { --sh-tone: var(--sh-warn-solid); }
.sh-stat.is-bad { --sh-tone: var(--sh-bad); }
.sh-stat.is-info { --sh-tone: var(--sh-info); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .sh-cols { grid-template-columns: minmax(0, 1fr); }
  .pl-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  /* each order becomes a card */
  .sh-table thead { display: none; }
  .sh-table, .sh-table tbody { display: block; width: 100%; }
  .sh-table tr.sh-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 12px; padding: 14px 16px; border-bottom: 1px solid var(--sh-line); }
  .sh-table tr.sh-row td { display: block; padding: 0 !important; border: 0; width: auto; min-width: 0; background: none !important; box-shadow: none !important; }
  .sh-table tr.sh-row.is-selected { background: #f1f9f7; box-shadow: inset 3px 0 0 var(--sh-brand); }
  .sh-c-order { grid-column: 2; }
  .sh-c-ship { grid-column: 3; grid-row: 1; }
  .sh-c-to { grid-column: 2 / 4; }
  .sh-c-checks { grid-column: 2 / 4; }
  .sh-c-actions { grid-column: 2 / 4; }
  .sh-actions { flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .sh-table tr.sh-detail-row { display: block; }
  .sh-table tr.sh-detail-row td { display: block; padding: 14px 16px; }
  .sh-form, .sh-history { padding-left: 0; }
  .sh-history { padding-left: 24px; }
}
@media (max-width: 640px) {
  .sh-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-flow-stage { border-top: 1px solid var(--sh-line); }
  .sh-flow-stage:nth-child(-n+2) { border-top: 0; }
  .sh-flow-stage:nth-child(odd) { border-left: 0; }
  .sh-flow-stage:nth-child(odd)::before { display: none; }
  .sh-flow-value { font-size: 26px; }
  .sh-fields, .sh-fields.is-4 { grid-template-columns: minmax(0, 1fr); }
  .sh-fields.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-step-body { padding-left: 18px; }
  .sh-head-actions { width: 100%; }
  .sh-todo li { flex-wrap: wrap; }
  .sh-search { flex-direction: column; align-items: stretch; }
  .pl-now { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #app *, .sh-root * { transition: none !important; animation-duration: 0.01ms !important; }
}
