/* Additions on the real site: pieces the picked draft did not draw (the Watch step's own screens, rebuilding hours,
   the Node script, an account's full call list). Same tokens and rules as app.css. */
.side .status .mint { font-size: 12px; word-break: break-all; color: var(--fg-2); }
.embed .acts2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.embed .acts2 .btn { --h: 36px; }
.owner-note { margin: -8px 0 18px; padding: 10px 14px; border-left: 2px solid var(--line-strong); color: var(--fg-2); font-size: 15px; max-width: 46em; }
.owner-note b { color: var(--fg); font-weight: 590; }
.calls-list { margin-top: 16px; }
.list a.link { color: var(--fg); }

/* check: hours and the Node script */
.hours, .nodescript { margin-top: 16px; }
.hours .judg { margin: 12px 16px 0; font-size: 14px; color: var(--fg-2); }
.hrows { display: grid; padding: 6px 16px 12px; }
.hrow { display: grid; grid-template-columns: 150px 120px minmax(120px, 1fr) minmax(140px, 1fr) auto; gap: 8px 16px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-2); }
.hrow:last-child { border-bottom: 0; }
.hrow .num { font-size: 13px; }
.hrow .dim { color: var(--muted); }
.hrow .btn { --h: 36px; }
.hrow pre { grid-column: 1 / -1; margin: 0 0 10px; padding: 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-soft); font: 400 13px/1.6 var(--mono); color: var(--fg-2); white-space: pre-wrap; word-break: break-all; }
.hrow pre .ok { color: var(--hit); }
.hrow pre .bad { color: var(--miss); }
.hrow pre .dim { color: var(--meta); }
details.rpc { padding: 0 16px 14px; font-size: 14px; color: var(--muted); }
details.rpc summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
details.rpc summary:hover { color: var(--fg-2); }
details.rpc label { display: block; margin: 4px 0 6px; }
details.rpc input { width: min(480px, 100%); height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--fg); font: 400 14px var(--mono); outline: none; }
details.rpc input:focus { border-color: var(--line-strong); }
.nodescript .list { padding-top: 10px; }
pre.cmd { margin: 0 0 12px; padding: 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-soft); font: 400 13px/1.6 var(--mono); color: var(--fg); white-space: pre-wrap; word-break: break-all; }
.chk pre a.link, .hrow pre a.link { color: var(--fg-2); }

/* lookup */
.queue .qh { margin: 0; color: var(--fg); font-size: 17px; font-weight: 590; }
.queue .qs { margin: 0; color: var(--muted); font-size: 14px; }
.queue .qs.dim { color: var(--meta); }
.lk-human:empty { display: none; }
.sheet .done.err { color: var(--miss); }

/* watch: the signed-in app's own steps inside the Watch screen */
.wtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(8, 9, 10, 0.6); width: max-content; max-width: 100%; }
.wtabs a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 510; transition: color 150ms var(--ease-ui), background-color 150ms var(--ease-ui), transform 150ms var(--ease-ui); }
.wtabs a:hover { color: var(--fg-2); }
.wtabs a:active { transform: scale(0.97); }
.wtabs a[aria-current="page"] { color: var(--fg); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
.wstep .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wstep .grid2 > div { min-width: 0; }
.wstep .grid2 > div:last-child:not(:empty) { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 16px; }
.wstep .q { margin: 0 0 6px; color: var(--fg); font-size: 26px; line-height: 1.1; font-weight: 590; letter-spacing: -0.015em; }
.wstep .ans { margin: 0 0 12px; font-family: var(--mono); color: var(--fg); font-size: 32px; position: relative; display: inline-block; }
.wstep .ans::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 1px; background: var(--water); }
.wstep .sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 40em; }
.wstep .h { margin: 0 0 10px; color: var(--fg); font-size: 16px; font-weight: 590; }
.wstep .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.wstep .tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.wstep .field { display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.02); padding: 0 12px; gap: 2px; }
.wstep .field:focus-within { border-color: var(--line-strong); }
.wstep .field span { color: var(--muted); }
.wstep .field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: var(--fg); }
.wstep .facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; }
.wstep .facts dt { color: var(--muted); }
.wstep .facts dd { margin: 0; color: var(--fg-2); text-align: right; word-break: break-all; }
.wstep .facts dd.mono { font-family: var(--mono); font-size: 13px; }
.wstep .small { font-size: 13px; color: var(--muted); }
.wstep .meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.wstep .mono { font-family: var(--mono); }
.wstep code { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
.wstep .hint { margin: 6px 0 10px; }
.wstep .hint a, .wstep .inbox a, .wstep .watched a, .wstep .sub a { color: var(--fg); }
.wstep .chips { padding: 6px 0 0; }
.wstep .btn.small { --h: 34px; padding: 0 12px; font-size: 14px; }
.wstep .watched, .wstep .inbox { margin: 0; padding: 0; list-style: none; }
.wstep .watched li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-2); }
.wstep .watched li:last-child, .wstep .inbox li:last-child { border-bottom: 0; }
.wstep .watched .n2 { font-family: var(--mono); color: var(--fg-2); }
.wstep .inbox li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-2); }
.wstep .inbox li.new { padding-left: 10px; border-left: 2px solid var(--hit); }
.wstep .inbox li b { color: var(--fg); font-weight: 590; margin-right: 6px; }
.wstep .empty { display: grid; gap: 6px; justify-items: start; padding: 8px 0; }
.wstep .empty b { color: var(--fg); font-weight: 590; }
.wstep .empty p { margin: 0; color: var(--muted); font-size: 14px; }
.wstep .plans { display: grid; gap: 8px; margin-bottom: 12px; }
.wstep .plans > div { display: grid; grid-template-columns: 70px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; }
.wstep .plans > div.on { border-color: var(--fg-2); background: rgba(255, 255, 255, 0.04); }
.wstep .plans b { font-family: var(--mono); font-weight: 400; color: var(--fg); }
.wstep select.btn { padding: 0 10px; background: var(--surface); }
.wstep .confirm { display: grid; gap: 6px; margin: 12px 0; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; }
.wstep .confirm b { color: var(--fg); font-weight: 590; }
.wstep .confirm .cost { color: var(--muted); }
.wstep .confirm .mono { color: var(--fg); word-break: break-all; }
.wstep .tagline { font-size: 13px; color: var(--hit); }
.wstep .scroll { overflow-x: auto; margin-top: 10px; }
.wstep table.salts { border-collapse: collapse; font-size: 13px; width: 100%; }
.wstep table.salts th { text-align: left; color: var(--muted); font-weight: 510; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.wstep table.salts td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); }
.wstep .loading { height: 120px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--panel), var(--surface), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* buttons that show one state at a time (data-state idle, busy, ok, err) */
.btn .sv { display: none; }
.btn[data-state="idle"] .sv-idle, .btn:not([data-state]) .sv-idle, .btn[data-state="busy"] .sv-busy, .btn[data-state="ok"] .sv-ok, .btn[data-state="err"] .sv-err { display: inline; }

@media (max-width: 900px) {
  .wstep .grid2 { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 1fr auto; }
  .hrow > span:nth-child(3), .hrow > span:nth-child(4) { grid-column: 1; }
  .wstep .plans > div { grid-template-columns: 1fr auto; }
}

/* the picker buttons: label and chevron side by side (the grid stacking of .btn would put them on top of each other) */
.pick > .btn { display: inline-flex; align-items: center; }
.pick > .btn > * { grid-area: auto; }
.pick > .btn .lbl { min-width: 0; }

/* the pickers never grow past the column */
.pick { max-width: 100%; }
.pick > .btn { max-width: 100%; overflow: hidden; }
.pick > .btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 900px) { .pick > .btn .lbl small { display: none; } }
