/* Layout: a fixed recipe column on the left, a streaming ledger of surviving names on the right. */
.wrap { max-width: 1480px; margin: 0 auto; display: grid; gap: 20px; }
header h1 { font: 600 22px/1.25 var(--sans); margin: 0 0 4px; letter-spacing: -0.01em; }
header p { margin: 0; color: var(--muted); max-width: 68ch; }
.cols { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cart { position: sticky; top: 16px; }
@media (max-width: 1180px) { .cols { grid-template-columns: 320px minmax(0, 1fr); } .cart { grid-column: 2; position: static; } }
@media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } .cart { grid-column: auto; } }
.step { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 15px var(--sans); }
.step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--mono); }
.step .n { font: 500 13px var(--mono); color: var(--muted); }
.cols > :not(.cart) .step::after { content: "\2192"; margin-left: auto; color: var(--muted); font-weight: 400; }
@media (max-width: 820px) { .cols .step::after { content: none; } }

.recipe { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 14px; }
label.f, div.f, fieldset { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lab, legend { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0; }
.hint { font-size: 13px; color: var(--muted); }
::placeholder { color: var(--muted); opacity: 1; font-style: italic; }
textarea, input[type=number] {
  width: 100%; font: 14px/1.45 var(--mono); color: var(--ink);
  background: var(--bg); border: 1px solid var(--edge); border-radius: 4px; padding: 8px 10px; resize: vertical;
}
input[type=number] { width: 84px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; font: 13px var(--mono); padding: 4px 10px;
  border: 1px solid var(--edge); border-radius: 999px; color: var(--ink); background: var(--bg);
}
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button {
  font: 600 14px var(--sans); border-radius: 4px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--edge); background: var(--panel); color: var(--ink);
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button:disabled { opacity: 1; cursor: default; color: var(--muted); border-style: dashed; background: transparent; }
button.primary:disabled { background: transparent; border-color: var(--edge); }

.board { display: grid; gap: 12px; min-width: 0; }
.tally { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tally b { color: var(--ink); font-weight: 600; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.note { border-radius: 4px; padding: 9px 12px; font-size: 13.5px; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.ok { background: var(--good-bg); }
.ledger { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ledger ul { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow-y: auto; }
.ledger li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 40px 172px 24px; gap: 10px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger li.held { color: var(--muted); }
.star { border: 0; background: none; padding: 0; min-width: 24px; min-height: 24px; font-size: 18px; line-height: 1; color: var(--edge); }
.star[aria-pressed=true] { color: var(--accent); }
.dom { font: 500 15px var(--mono); overflow-wrap: anywhere; }
.dom a { color: inherit; }
.pill { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; border: 1px dashed var(--edge); color: var(--muted); }
.pill.ok { border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill.held, .pill.unv { border: 1px solid transparent; }
.score { font: 600 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); cursor: help; min-width: 2.2em; text-align: right; }
.ledger li.head { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ledger li.head span:nth-child(3) { text-align: right; }
.pill { justify-self: start; }
@media (max-width: 560px) { .ledger li { grid-template-columns: 24px minmax(0, 1fr) 32px 96px 20px; gap: 6px; } .pill { white-space: normal; border-radius: 8px; } }
.session { margin-top: 12px; }
.cols .step.down::after { content: "\2193"; }
.chat { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; font-size: 13.5px; }
.chat:empty { display: none; }
.chat p { margin: 0; padding: 6px 9px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat .user { background: var(--bg); border: 1px solid var(--line); }
.chat .assistant { background: var(--good-bg); }
.chat .note { background: var(--warn-bg); color: var(--warn); }
.session #s_name { width: 180px; }
.session #shareOut { flex: 0 1 340px; min-width: 0; font-family: var(--mono); }
#shareNote { margin: 12px 0 0; }
.tag { margin-left: 8px; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 4px; vertical-align: 1px; white-space: nowrap; }
.drop { border: 0; background: none; padding: 0; min-width: 24px; min-height: 24px; color: var(--muted); font-size: 17px; line-height: 1; }
.drop:hover { color: var(--bad); }
.pill.held { background: var(--bad-bg); color: var(--bad); }
.pill.unv { background: var(--warn-bg); color: var(--warn); }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.more { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.more summary { cursor: pointer; font-weight: 600; }
.more .hint { margin: 6px 0; }
.names { font: 13.5px/1.6 var(--mono); color: var(--muted); white-space: pre-line; column-width: 15em; column-gap: 24px; margin: 8px 0 0; overflow-wrap: anywhere; }
.side { display: grid; gap: 20px; min-width: 0; }
#cartList { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
#cartList li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 14px var(--mono); padding: 2px 0; overflow-wrap: anywhere; }
#cartList a { color: inherit; }
#cartList .gone { text-decoration: line-through; color: var(--muted); }
#cartList button { border: 0; background: none; padding: 0; min-width: 24px; min-height: 24px; color: var(--muted); font-size: 17px; }
.filters input, .filters select { font: 13.5px var(--sans); color: var(--ink); background: var(--panel); border: 1px solid var(--edge); border-radius: 4px; padding: 6px 8px; resize: none; }
.filters #f_text { flex: 1 1 150px; min-width: 0; width: auto; }
.filters #f_len { width: 70px; }
.filters .tick { display: inline-flex; align-items: center; gap: 6px; font: 13.5px var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; }
.filters .tick input { padding: 0; margin: 0; }
.taken { list-style: none; margin: 8px 0 0; padding: 0; column-width: 15em; column-gap: 24px; }
.taken button, .rec { border: 0; background: none; padding: 0; font: 13.5px/1.7 var(--mono); color: var(--muted); text-align: left; overflow-wrap: anywhere; text-decoration: underline dotted; text-underline-offset: 3px; }
.taken button:hover, .rec:hover { color: var(--ink); }
.whois h3 { margin: 0 0 8px; font: 600 15px var(--mono); overflow-wrap: anywhere; }
.whois dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; font-size: 13.5px; }
.whois dt { color: var(--muted); }
.whois dd { margin: 0; overflow-wrap: anywhere; }
.whois .soon { color: var(--warn); font-weight: 600; }
.whois a { color: var(--accent); }
.rec { margin-left: 8px; font: 12px var(--sans); }
.pill.sale { border: 1px solid transparent; background: var(--warn); color: var(--bg); font-weight: 600; }
.pill.sale.parked { background: transparent; border-color: var(--warn); color: var(--warn); }
.ledger li.forsale { background: var(--warn-bg); }
.ledger li.forsale .dom a { color: inherit; }
dialog.whois { width: min(560px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
dialog.whois::backdrop { background: rgba(0, 0, 0, 0.55); }
[hidden] { display: none !important; }
#saleCart { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
#cartSaleList { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
#cartSaleList li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 14px var(--mono); padding: 2px 0; overflow-wrap: anywhere; }
#cartSaleList a { color: var(--warn); }
#cartSaleList small { font: 11.5px var(--sans); color: var(--muted); white-space: nowrap; margin-left: auto; }
#cartSaleList button { border: 0; background: none; padding: 0; min-width: 24px; min-height: 24px; color: var(--muted); font-size: 17px; }
.syn { display: grid; gap: 6px; }
.syn[hidden] { display: none; }
.synwords, .synout { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12.5px; color: var(--muted); }
.synout:empty { display: none; }
.syn button { font: 13px var(--mono); font-weight: 400; padding: 1px 9px; min-height: 24px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.syn button.on { border-color: var(--accent); color: var(--ink); }
.syn button.add { border-style: dashed; color: var(--accent); }
.chips input:disabled + span { color: var(--muted); border-style: dashed; background: transparent; cursor: not-allowed; }
.limit { margin: 0 0 6px; font-weight: 600; }
.limit.full, #tldLimit.full { color: var(--warn); }
button.small { font-size: 13px; padding: 4px 10px; }
dialog.wide { width: min(760px, calc(100% - 32px)); max-height: 86vh; overflow-y: auto; }
#tldGroups { display: grid; gap: 12px; margin: 12px 0; }
#tldGroups .lab { display: block; margin-bottom: 5px; }
#tldDlg .row { margin-top: 10px; }
#tldCustom { width: 220px; }
#copyOut { margin-top: 4px; height: 140px; }
footer { color: var(--muted); font-size: 13px; max-width: 78ch; }

/* The "Check the price at" box */
dialog.price { width: min(420px, calc(100% - 32px)); }
dialog.price h2 { font: 600 18px/1.3 var(--sans); margin: 0; }
dialog.price .dom { font: 500 15px var(--mono); margin: 4px 0 14px; overflow-wrap: anywhere; }
dialog.price .shops { display: grid; gap: 8px; margin-bottom: 14px; }
dialog.price .shops a { display: block; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 4px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; }
dialog.price .shops a:hover, dialog.price .shops a:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
dialog.price .hint { margin: 0 0 14px; }
