/* opennodd.com storefront: order, sign in, follow the work (Cloud only). Uses the site.css tokens. */
.store { padding-block: 36px 96px; min-height: 70vh; }
.store [hidden] { display: none !important; }
.store h1.st-h1 { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; line-height: 1.1; margin: 6px 0 8px; overflow-wrap: anywhere; }
.store h2 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.store h3 { font-size: 1rem; margin: 18px 0 6px; }
.store .crumbs { color: var(--muted); font-size: 0.9rem; margin: 0; }
.store .crumbs a { color: var(--muted); }
.st-sub { color: var(--muted); margin-bottom: 26px; }
.st-loading { color: var(--muted); padding: 40px 0; }
.store .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.store .small { font-size: 0.85rem; color: var(--muted); }
.store .mono { font-family: var(--mono); }
.st-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; min-width: 0; }
.st-card + .st-card { margin-top: 16px; }
.btn { cursor: pointer; font: inherit; font-weight: 600; }
.btn.big { justify-content: center; padding: 15px 22px; font-size: 1.02rem; width: 100%; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff8f8f; }
.btn.danger:hover { border-color: #ff8f8f; }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

/* header slot */
.nav .links .acct { display: inline-flex; margin-left: 8px; position: relative; }
.nav .links .acct .btn { margin-left: 0; }
.nav .links a.keep { display: inline-block; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; max-width: 200px; }
.acct-btn:hover { border-color: var(--accent); }
.acct-av, .av, .bigav { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.acct-av { width: 28px; height: 28px; font-size: 0.8rem; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-car { color: var(--muted); font-size: 0.7rem; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 30; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); display: grid; }
.acct-menu[hidden] { display: none; }
.acct-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; font-size: 0.85rem; }
.acct-who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.nav .links .acct-menu a:not(.btn):not(.icon), .acct-menu button { display: block; text-align: left; font: inherit; font-size: 0.9rem; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; text-decoration: none; }
.nav .links .acct-menu a:not(.btn):not(.icon):hover, .acct-menu button:hover { background: var(--surface); color: var(--accent); }
@media (max-width: 520px) { .acct-name, .acct-car { display: none; } .acct-btn { padding: 4px; } .nav .links a.keep { padding-inline: 6px; } .nav { gap: 8px; } }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input:not([type='file']):not([type='radio']), .field textarea, .done-form textarea, .composer textarea {
  font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0;
}
.field textarea, .composer textarea, .done-form textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .done-form textarea:focus, .composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid='true'] { border-color: #ff8f8f !important; }
.field.short input { max-width: 220px; color-scheme: dark; }
.field-err, .form-err { color: #ff9b9b; font-size: 0.86rem; margin: 0; }
.field-err:empty, .form-err:empty { display: none; }
.form-err { margin: 10px 0 0; }
.linkish { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.need { background: var(--accent-soft); border-color: var(--accent-line); margin-bottom: 16px; }
.need h2 { color: var(--accent); }
.sum { position: sticky; top: 84px; border: 1px solid var(--accent-line); border-radius: 18px; background: var(--surface); padding: 20px; display: grid; gap: 14px; box-shadow: 0 0 0 6px var(--accent-soft); }
.sum-top { display: flex; gap: 12px; align-items: center; }
.sum-top > div:last-child { display: grid; min-width: 0; }
.sum-top .mono { color: var(--muted); font-size: 0.78rem; }
.sum-thumb { width: 84px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--raised); display: grid; place-items: center; flex: none; border: 1px solid var(--line); font-family: var(--display); font-size: 1.6rem; color: var(--accent); }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sum-head { margin: 0; line-height: 1.4; }
.sum-price { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sum-price span { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.sum-price small { color: var(--muted); }
.sum .facts, .sum .incl { padding-top: 0; border: 0; }
.drop { position: relative; border: 2px dashed var(--line); border-radius: 14px; background: var(--raised); padding: 26px 16px; text-align: center; transition: border-color 0.15s, background 0.15s; }
.drop.over, .drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-txt { display: grid; gap: 4px; pointer-events: none; }
.drop-txt u { color: var(--accent); }
.drop-txt small { color: var(--muted); }
.previews { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.previews:empty { display: none; }
.previews li, .attached li { position: relative; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); padding: 8px; min-width: 0; }
.previews img, .attached img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.ft { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--surface); font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.fn { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previews button { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; }
.previews button:hover { background: #c33; }

/* sign in / create account */
.auth { display: grid; gap: 14px; }
.auth-intro { color: var(--muted); margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab { font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 9px 10px; cursor: pointer; }
.tab[aria-selected='true'] { background: var(--accent); color: var(--accent-ink); }
.auth-form { display: grid; }
.auth-form .field { margin-bottom: 14px; }
.auth-page { max-width: 460px; margin: 0 auto; }
.st-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--accent-line); border-radius: 22px; background: var(--surface); color: var(--ink); padding: 26px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.st-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
.st-dialog h2 { font-size: 1.4rem; margin-bottom: 14px; padding-right: 36px; }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }

/* orders list */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .st-h1 { margin: 0; }
.o-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.o-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; }
.o-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .o-card { transition: transform 0.15s, border-color 0.15s; } }
.o-main { display: grid; gap: 2px; min-width: 0; }
.o-title { font-size: 1.05rem; overflow-wrap: anywhere; }
.o-sub { color: var(--muted); font-size: 0.88rem; }
.o-meta { display: flex; align-items: center; gap: 14px; flex: none; color: var(--muted); font-size: 0.86rem; }
.o-price { color: var(--ink); font-weight: 700; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.badge.warn { color: var(--hold); background: var(--hold-soft); border-color: rgba(255, 184, 92, 0.35); }
.badge.bad { color: #ff9b9b; background: rgba(255, 120, 120, 0.1); border-color: rgba(255, 120, 120, 0.35); }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: 18px; display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .o-card { flex-direction: column; align-items: flex-start; } .o-meta { flex-wrap: wrap; } }

/* one order */
.o-head { margin: 8px 0 22px; }
.o-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: flex; }
.stepper li { flex: 1; display: grid; justify-items: center; gap: 8px; position: relative; font-size: 0.86rem; color: var(--muted); text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--accent); }
.stepper li.bad::before { background: #ff9b9b; }
.stepper .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 0.85rem; }
.stepper .done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper .now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.stepper .now, .stepper .done { color: var(--ink); }
.stepper .bad .dot { background: rgba(255, 120, 120, 0.15); border-color: #ff9b9b; color: #ff9b9b; }
.stepper .bad { color: #ff9b9b; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 20px; align-items: start; }
.ord-left { min-width: 0; }
.ord-left .st-card + .st-card { margin-top: 16px; }
.status { border-color: var(--accent-line); }
.status.s-pending, .status.s-awaiting_payment { border-color: rgba(255, 184, 92, 0.4); }
.status.s-declined, .status.s-cancelled { border-color: rgba(255, 120, 120, 0.35); }
.st-row { display: flex; gap: 14px; align-items: flex-start; }
.st-row h2 { margin-bottom: 4px; }
.st-row p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.st-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; font-weight: 700; }
.s-pending .st-ico, .s-awaiting_payment .st-ico { background: var(--hold-soft); color: var(--hold); }
.s-declined .st-ico, .s-cancelled .st-ico { background: rgba(255, 120, 120, 0.12); color: #ff9b9b; }
.st-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.done-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; justify-items: start; }
.done-form h3 { margin: 0; }
.done-form textarea { max-width: 100%; }
.rate { border: 0; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.rate legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rate label { font-size: 1.9rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.rate label.on { color: var(--hold); }
.rate input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 6px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0 0 6px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.attached { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.attached a { color: var(--ink); text-decoration: none; display: grid; gap: 6px; }
.attached a:hover .fn { color: var(--accent); }

/* chat */
.st-card.chat { padding: 0; display: flex; flex-direction: column; overflow: hidden; position: sticky; top: 84px; max-height: calc(100dvh - 104px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.chat-head small { display: block; color: var(--muted); }
.av { width: 38px; height: 38px; }
.chat > h2, .chat > p:not(.closed) { padding: 18px 18px 0; }
.log { flex: 1; min-height: 260px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; scroll-behavior: smooth; }
.msg { display: grid; gap: 3px; max-width: 88%; justify-items: start; }
.msg.mine { align-self: flex-end; justify-items: end; }
.bub { background: var(--raised); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; font-size: 0.95rem; }
.mine .bub { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.mine .bub a { color: var(--accent-ink); }
.bub a { word-break: break-all; }
.att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.att a { font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; }
.when { font-size: 0.74rem; color: var(--muted); }
.wait { font-size: 0.78rem; color: var(--hold); max-width: 280px; }
.msg.sys { align-self: center; max-width: 100%; justify-items: center; }
.msg.sys .bub { background: none; border: 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.empty-chat { margin: auto; text-align: center; }
.composer { border-top: 1px solid var(--line-soft); padding: 12px 14px 14px; display: grid; gap: 8px; }
.cmp-row { display: flex; justify-content: space-between; gap: 10px; }
.cmp-row .btn { padding: 9px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 0.8rem; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; max-width: 100%; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.closed { padding: 14px 18px; border-top: 1px solid var(--line-soft); }

/* delivery, changes, problems */
.notice { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; }
.status.s-delivered { border-color: var(--hold); box-shadow: 0 0 0 5px var(--hold-soft); }
.s-delivered .st-ico { background: var(--hold-soft); color: var(--hold); }
.s-disputed { border-color: rgba(255, 120, 120, 0.4); }
.s-disputed .st-ico { background: rgba(255, 120, 120, 0.12); color: #ff9b9b; }
.status > * + * { margin-top: 16px; }
.status .st-acts, .status .form-err { margin-top: 12px; }
.dlv { display: grid; gap: 10px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dlv h3 { margin: 0; }
.dlv .pre, .dlv-note { margin: 0; }
.dlv.big { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.dlv.big .btn.big { width: 100%; }
.dlv .small { margin: 0; }
.dlv-old { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.dlv-old .pre { margin: 4px 0; }
.dlv > .fold { width: 100%; }
.fold { border: 1px solid var(--line-soft); border-radius: 12px; padding: 0 14px; }
.fold > summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 0.94rem; }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.fold-body { display: grid; gap: 10px; justify-items: start; padding-bottom: 14px; }
.fold-body textarea { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; resize: vertical; line-height: 1.5; }
.fold-body textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fold-l { font-weight: 600; font-size: 0.92rem; }
.fold.quiet { border: 0; padding: 0; }
.fold.quiet > summary { font-weight: 400; font-size: 0.88rem; color: var(--muted); text-decoration: underline; display: inline-block; padding: 4px 0; }
.fold.quiet[open] > summary { color: var(--ink); }
.done-form .btn.big { width: 100%; }
.done-form { justify-items: stretch; }
.done-form .rate { justify-self: start; }
.done-form label:not(.rate label) { font-weight: 600; font-size: 0.92rem; }
.ok-msg { color: var(--accent); margin: 10px 0 0; }
.ok-msg:empty { display: none; }
.email-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.email-form h3 { margin-top: 0; }
.acct-card .st-acts { margin-top: 22px; }

/* receipt: a sheet of paper on the dark page, and the same sheet when printed */
.rcpt { max-width: 720px; margin: 14px 0 22px; background: #fff; color: #111; border-radius: 14px; padding: 36px; display: grid; gap: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.rcpt h1, .rcpt h2 { font-family: var(--display); margin: 0; color: #111; }
.rcpt h1 { font-size: 1.8rem; }
.rcpt h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #555; margin-bottom: 6px; }
.rcpt p { margin: 0; overflow-wrap: anywhere; }
.rcpt section { padding: 0; margin: 0; }
.rcpt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid #111; }
.rcpt-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.rcpt-no { text-align: right; display: grid; gap: 2px; color: #333; }
.rcpt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rcpt-items { width: 100%; border-collapse: collapse; }
.rcpt-items th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #555; padding: 8px 0; border-bottom: 1px solid #ccc; }
.rcpt-items td { padding: 14px 0; border-bottom: 1px solid #ccc; overflow-wrap: anywhere; }
.rcpt-items .num { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 700; }
.rcpt .kv dt { color: #555; }
.rcpt-kv { margin: 0; text-transform: none; }
.rcpt-foot { color: #555 !important; }
@media (max-width: 520px) { .rcpt { padding: 22px 18px; } .rcpt-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } .rcpt-no { text-align: left; } }
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  .navbar, footer, .no-print, .crumbs { display: none !important; }
  .store { padding: 0; min-height: 0; }
  .rcpt { box-shadow: none; border-radius: 0; padding: 0; max-width: none; margin: 0; }
  .rcpt, .rcpt * { color: #000 !important; }
}

/* account */
.acct-card { max-width: 560px; }
.bigav { width: 52px; height: 52px; font-size: 1.3rem; }
.acct-card .kv { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .checkout, .ord { grid-template-columns: minmax(0, 1fr); }
  .sum, .chat { position: static; }
  .chat { max-height: 70dvh; }
}
@media (max-width: 520px) {
  .store { padding-top: 22px; }
  .st-card { padding: 18px 16px; }
  .stepper li { font-size: 0.74rem; }
  .st-dialog { padding: 22px 18px; }
}

/* "hidden" always wins over display rules (e.g. the two-step code field). */
.store [hidden], .auth [hidden], [data-acct] [hidden] { display: none !important; }

/* Paying: the gas-fee reminder. */
.pay-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 184, 92, 0.35); background: rgba(255, 184, 92, 0.08); color: var(--ink); font-size: 0.92rem; line-height: 1.5; }

/* The bill: price + service fee = total; the gas fee comes on the payment page. */
.bill { display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-size: 0.95rem; }
.bill > div { display: flex; justify-content: space-between; gap: 12px; }
.bill dt { color: var(--muted); }
.bill dd { margin: 0; text-align: right; }
.bill .bill-total { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 700; }
.bill .bill-total dt, .bill .bill-total dd { color: var(--ink); }
.bill .bill-gas dt, .bill .bill-gas dd { font-size: 0.85rem; }
.rcpt-total td { border-top: 1px solid #ccc; }

/* Formatted agent replies (Markdown shown as text formatting). */
.md { white-space: normal; overflow-wrap: anywhere; }
.md p { margin: 0 0 8px; }
.md p:last-child, .md ul:last-child, .md ol:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md code { font-family: var(--mono); font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: rgba(127, 127, 127, 0.15); }
.md a { color: inherit; text-decoration: underline; }

/* seller tag: "by @owner" or the OpenNodd badge */
.sum-top .seller { color: var(--muted); font-size: 0.78rem; font-family: var(--mono); }
.seller.official { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--body); font-size: 0.78rem; font-weight: 600; }
.seller.official i { font-style: normal; }
.o-line .seller { color: var(--muted); }
.o-line .seller.official { color: var(--accent); }

/* stepper sub-label */
.stepper .ss { font-size: 0.74rem; color: var(--accent); font-weight: 600; margin-top: -4px; }
.stepper .ss.warn { color: var(--hold); }

/* waiting for you: the agent's questions */
.wait-card { border-color: var(--hold); box-shadow: 0 0 0 5px var(--hold-soft); margin-bottom: 20px; }
.wait-card .st-ico { background: var(--hold-soft); color: var(--hold); }
.wait-card .st-row p, .wait-card .st-row .md { margin: 0; color: var(--muted); }
.qform { display: grid; gap: 18px; margin-top: 18px; }
.qa { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.qa legend { font-weight: 600; padding: 0; margin-bottom: 2px; overflow-wrap: anywhere; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { cursor: pointer; border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; max-width: 100%; overflow-wrap: anywhere; }
.opt:hover { border-color: var(--accent); }
.opts input:checked + .opt { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.opts input:focus-visible + .opt { outline: 3px solid var(--accent); outline-offset: 2px; }
.qa input[type='text'], .qa textarea { font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%; min-width: 0; resize: vertical; }
.qa input[type='text']:focus, .qa textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.qform .st-acts { margin-top: 0; }
.wait-card > .small { margin: 14px 0 0; }

/* the first version */
.proto { border-color: var(--accent-line); }
.proto > * + * { margin-top: 14px; }
.proto .st-acts { margin-top: 14px; }
.proto-note { padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; font-size: 0.94rem; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.shots button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); cursor: zoom-in; }
.shots button:hover { border-color: var(--accent); }
.shots button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }

/* screenshot viewer */
.vw { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.88); }
.vw img { max-width: min(1400px, 100%); max-height: calc(100dvh - 96px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: var(--surface); }
.vw-x, .vw-prev, .vw-next { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(20, 22, 25, 0.9); color: #fff; font-size: 1.6rem; border: 1px solid rgba(255, 255, 255, 0.15); cursor: pointer; }
.vw-x { top: 18px; right: 18px; font-size: 1.2rem; }
.vw-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.vw-next { right: 14px; top: 50%; transform: translateY(-50%); }
.vw-x:hover, .vw-prev:hover, .vw-next:hover { border-color: var(--accent); color: var(--accent); }
.vw button:focus-visible { outline: 3px solid var(--accent); }
.vw-n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ccc; font-family: var(--mono); font-size: 0.85rem; }

/* activity feed */
.feed h2 { margin-bottom: 14px; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.act { display: flex; gap: 12px; position: relative; padding-bottom: 16px; min-width: 0; }
.act::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--line-soft); }
.act:last-child::before { display: none; }
.act-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; font-weight: 700; position: relative; z-index: 1; }
.k-ask .act-ico { color: var(--hold); border-color: var(--hold); }
.k-preview .act-ico, .k-delivered .act-ico, .k-accepted .act-ico, .k-paid .act-ico { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.k-cost_warning .act-ico { color: #ff9b9b; border-color: rgba(255, 120, 120, 0.4); }
.act-body { min-width: 0; flex: 1; font-size: 0.93rem; }
.act-body > * + * { margin-top: 6px; }
.act-meta { font-size: 0.8rem; color: var(--muted); }
.act-meta b { color: var(--ink); }
.act-link { font-size: 0.88rem; display: inline-block; }
.act .shots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-width: 420px; }
.working { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 4px; color: var(--muted); font-size: 0.93rem; }
.working[hidden] { display: none; }
.dots { display: inline-flex; gap: 4px; width: 26px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) { .dots i { animation: dot 1.2s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; } }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dlv .shots { max-width: 560px; }
.dlv { grid-template-columns: minmax(0, 1fr); } .dlv > * { max-width: 100%; }
.shots { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
/* Pay: one button per way to pay, each with its total. */
.pay-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.pay-opt { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 16px; height: auto; }
.pay-opt small { font-weight: 400; opacity: 0.8; }
