/* The shared parts every page is drawn from: text, icons, buttons, chips, the label chip and its line, badges, tiles, cards, figures, tables,
   tabs and the three states. Colours are the roles of theme.css; sizes are the design's. A page that needs more writes its own
   stylesheet beside its module and links it, and does not restyle a part. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.5 var(--font); -webkit-font-smoothing: antialiased; }

.ovv { display: flex; align-items: flex-start; width: 100%; min-height: 100vh; position: relative; }
.ovv *, .ovv *::before, .ovv *::after { box-sizing: border-box; }
/* the `hidden` attribute always hides: a class that sets `display` (a tag, a card, a row) would otherwise show what the page marked hidden */
.ovv [hidden] { display: none !important; }
.ovv a { text-decoration: none; }
.ovv a:not([class]) { color: var(--acct); }
.ovv a:not([class]):hover, .ovv .lk:hover { text-decoration: underline; }
.ovv .lk { color: var(--acct); font-weight: 600; text-decoration: none; }
.ovv button { font: inherit; color: inherit; cursor: pointer; }
.ovv button:disabled { cursor: default; opacity: .55; }
.ovv :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ovv ::placeholder { color: var(--dim); opacity: 1; }
.ovv h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.ovv h2 { font-size: 14px; line-height: 1.3; margin: 0; font-weight: 600; }

.ic { display: inline-block; width: 16px; height: 16px; flex: none; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.ic.sm { width: 14px; height: 14px; }
.mono { font-family: var(--mono); font-size: 12px; }
/* an address (parts/address.js): a group of four characters never breaks, the full form breaks between groups, and the hidden full copy of a short one is not selected */
.addr .ag { white-space: nowrap; }
.addr[data-form="short"] { white-space: nowrap; }
.addr .sr { -webkit-user-select: none; user-select: none; }
.dim { color: var(--dim); }
.grow { flex: 1; }
.num { font-variant-numeric: tabular-nums; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { font-size: 12px; color: var(--dim); }
.fl { font-size: 11.5px; font-weight: 600; color: var(--dim); }

.btns, .chips, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); font-weight: 500; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.ovv .btn { color: var(--text); text-decoration: none; }
.ovv .btn:hover:not(:disabled) { background: var(--hov); text-decoration: none; }
.ovv .btn.p { background: var(--acct); border-color: var(--acct); color: var(--onacc); }
.ovv .btn.p:hover:not(:disabled) { filter: brightness(1.08); background: var(--acct); }
/* a toggle that is on (Follow once followed, Show all once shown) is tinted wherever it stands; a primary button keeps its own fill */
.ovv .btn[aria-pressed="true"]:not(.p) { background: var(--sel); border-color: var(--acc); color: var(--acct); font-weight: 600; }
.btn.sm { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.chip { border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 3px 11px; font-size: 12px; line-height: 1.3; }
.chip:hover { border-color: var(--acc); }
.ovv .chip[aria-pressed="true"] { background: var(--acct); color: var(--onacc); border-color: var(--acct); font-weight: 600; }

.lt { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; color: var(--ontile); font-weight: 700; width: 32px; height: 32px; font-size: 15px; line-height: 1; }
.lt.s20 { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.lt.s28 { width: 28px; height: 28px; font-size: 13px; }
.lt.s48 { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; }
.t1 { background: var(--t1); } .t2 { background: var(--t2); } .t3 { background: var(--t3); } .t4 { background: var(--t4); } .t5 { background: var(--t5); }
.t6 { background: var(--t6); } .t7 { background: var(--t7); } .t8 { background: var(--t8); } .t9 { background: var(--t9); }
.t10 { background: var(--t10); } .t11 { background: var(--t11); } .t12 { background: var(--t12); } .t13 { background: var(--t13); }
.t14 { background: var(--t14); } .t15 { background: var(--t15); } .t16 { background: var(--t16); }
.cnt { margin-left: auto; font-size: 11px; font-weight: 700; border: 1px solid var(--line2); border-radius: 999px; padding: 0 7px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-h .cnt, .row .cnt { margin-left: 0; }
.st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.bad { color: var(--bad); } .st.act { color: var(--acct); } .st.na { color: var(--dim); }

/* the label chip, and its line on hover and on focus */
.lab { position: relative; display: inline-flex; vertical-align: middle; }
.lb { display: inline-flex; align-items: center; gap: 5px; border: 1px solid; border-radius: 999px; padding: 1px 9px 1px 6px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: transparent; }
.lb.pv { background: var(--pv-bg); color: var(--pv-t); border-color: var(--pv-b); }
.lb.ck { background: var(--ck-bg); color: var(--ck-t); border-color: var(--ck-b); }
.lb.w2 { background: var(--w2-bg); color: var(--w2-t); border-color: var(--w2-b); border-style: dashed; }
.lb.sy { background: var(--sy-bg); color: var(--sy-t); border-color: var(--sy-b); border-style: dashed; }
/* "says <who>": the name gives way, by the room the chip has, and a host in brackets after it never does */
.lab { max-width: 100%; min-width: 0; }
.lb.sy { max-width: 100%; min-width: 0; }
.lb .who { display: inline-flex; min-width: 0; overflow: hidden; }
.lb .who-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb .who-h { flex: none; margin-left: .3em; }
.tip { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 80; width: max-content; max-width: min(290px, calc(100vw - 40px));
  background: var(--ink); color: var(--onink); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 400; line-height: 1.45;
  box-shadow: var(--shadow); text-align: left; white-space: normal; }
.lab:hover .tip, .lab:focus-within .tip { display: block; }
.tip.r { left: auto; right: 0; }
.tip.up { top: auto; bottom: calc(100% + 6px); }
.tip .src { display: block; margin-top: 4px; opacity: .8; overflow-wrap: anywhere; }

/* the badge of a listing */
.bd { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); border-radius: 6px; padding: 1px 8px 1px 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.bd.v { color: var(--acct); border-color: var(--acc); background: var(--sel); }
.bd.c { color: var(--ok); border-color: var(--ok); }
.bd.u { color: var(--dim); border-style: dashed; }

/* a card, a figure and the tile of a figure */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card-b { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.two { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.two .nm { font-weight: 600; }
.ovv .nm { color: var(--text); text-decoration: none; }
.ovv .nm:hover { color: var(--acct); text-decoration: underline; }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
/* A tile keeps one layout at any width: the title with the label chip beside it (under it when the tile is too narrow for both), then a body of the figure, a
   line and a button. The figure steps down with the body's own width, so "1,000,000 ENS" stays on one line; the label's line opens just under the chip across
   the whole tile, wherever the chip wrapped to. The tiles of a row share two rows (a subgrid: the title row as tall as the tallest title and chip, the body row
   as tall as the tallest body), so the figures of a row start on one line whatever a title's length and the tiles of a row are one height. A tile that is no
   grid item, and an engine with no subgrid, keep the one column of flex below, where the body is as tall as it is. */
.kpi { container-type: inline-size; display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; position: relative; }
.kpi .k { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.kpi .kb { container-type: inline-size; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi .v { font-size: clamp(15px, 13cqi, 24px); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .fig { white-space: nowrap; }
.kpi .fig .n { white-space: normal; }
.kpi .fig .u { font-size: 12px; color: var(--dim); }
.kpi .s { font-size: 12px; color: var(--dim); }
/* the button of a tile keeps one line, in the room the body has (its padding is the least that keeps it a button); a body too narrow for even that lets the words wrap rather than spill */
.kpi .kb > .btn { white-space: nowrap; text-align: center; margin-top: 3px; padding-inline: 8px; }
@container (max-width: 124px) { .kpi .kb > .btn { white-space: normal; } }
.kpi .k .lab { position: static; }
.kpi .k .tip { left: 0; right: 0; top: auto; width: auto; max-width: none; margin-top: 26px; text-transform: none; letter-spacing: normal; }
@supports (grid-template-rows: subgrid) {
  .tiles div.kpi { container-type: normal; display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 3px; }
  .tiles div.kpi > .k { align-self: start; }
}
.fig .u { font-weight: 600; }

/* a table: a header row and rows on one grid, `--cols` the columns, scrolling sideways when the page is narrower than it. The box fades at the edge that has
   more to scroll to, through the scroll position itself (a scroll-driven animation of the two fade widths, 36px over the first and the last 36px of the
   scroll), so a table that fits shows no fade, one at its left edge fades only on the right, and a cut column is never taken for the whole table. */
@property --tw-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tw-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes tw-l { from { --tw-l: 0px; } to { --tw-l: 36px; } }
@keyframes tw-r { from { --tw-r: 36px; } to { --tw-r: 0px; } }
.tw { overflow-x: auto; position: relative; -webkit-mask-image: linear-gradient(to right, transparent 0, var(--text) var(--tw-l), var(--text) calc(100% - var(--tw-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, var(--text) var(--tw-l), var(--text) calc(100% - var(--tw-r)), transparent 100%);
  animation: tw-l linear both, tw-r linear both; animation-timeline: scroll(self inline), scroll(self inline); animation-range: 0 36px, calc(100% - 36px) 100%; }
/* a column name and its label chip, on one line */
.th { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px 8px; white-space: nowrap; }
.tb { min-width: 900px; }
.tr { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 8px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.tr > * { padding: 9px 0; min-width: 0; }
.tr.h { background: var(--head); font-size: 11.5px; font-weight: 600; color: var(--dim); }
.tr.h > * { padding: 7px 0; }
.tr.r:hover { background: var(--hov); }
.tr.none { grid-template-columns: 1fr; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 0 10px; border-top: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 12px 9px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.ovv a.tab { text-decoration: none; }
.tab:hover { color: var(--text); }
.ovv .tab[aria-selected="true"] { color: var(--acct); border-bottom-color: var(--acc); font-weight: 700; }
.tab .cnt { margin-left: 0; }
@media (max-width: 599px) {
  /* every tab is on the screen, in a second row if need be: a strip that scrolled would cut a tab with nothing to say that it does */
  .tabs { flex-wrap: wrap; overflow-x: visible; }
  .tab { padding: 10px 10px 8px; }
}

/* the three states of anything that is read: reading, refused and empty, each in words */
.state { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line2); border-radius: 8px; background: var(--head); padding: 10px 12px; }
.state b { font-weight: 600; }
.state.rf { border-color: var(--cau-b); background: var(--cau-bg); color: var(--cau-t); }

/* a discussion and its composer: the posts of one topic, a post's files and Diamond, the reasons given with votes, and the box that writes a post */
.discussion .dis-b { display: flex; flex-direction: column; min-width: 0; }
.discussion .dis-b > .state, .discussion .dis-b > .flag, .discussion .dis-b > .btns { margin: 12px 14px 0; }
.discussion .dis-b > .btns { margin-bottom: 12px; }
.dis-h { flex: 1 1 auto; gap: 6px 10px; }
.dis-h .btn { margin-left: auto; }
.discussion .cardf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.discussion .cardf:empty { display: none; }
.discussion .flag { display: flex; gap: 8px; align-items: flex-start; border: 1px solid; border-radius: 8px; padding: 7px 10px; min-width: 0; overflow-wrap: anywhere; }
.discussion .flag.cau, .comp .flag.cau { background: var(--cau-bg); color: var(--cau-t); border-color: var(--cau-b); }
.discussion .flag.note { background: var(--sy-bg); color: var(--sy-t); border-color: var(--sy-b); }
.comp .flag { display: flex; gap: 8px; align-items: flex-start; border: 1px solid; border-radius: 8px; padding: 7px 10px; min-width: 0; overflow-wrap: anywhere; }
.post { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.post:last-child { border-bottom: 0; }
.post.reply { padding: 0; border-bottom: 0; gap: 8px; }
.post .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.ptext { margin: 0; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.ptext .md p { margin: 0 0 8px; line-height: 1.55; }
.ptext .md > :last-child { margin-bottom: 0; }
.ptext .md ul, .ptext .md ol { margin: 0 0 8px; padding-left: 22px; }
.ptext .md pre { margin: 0 0 8px; padding: 8px 10px; background: var(--head); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.ptext .md code { font-family: var(--mono); font-size: 12px; background: var(--head); border-radius: 4px; padding: 0 4px; }
.ptext .md blockquote { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--line2); color: var(--dim); }
.ptext .md-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--acct); text-decoration: underline; text-align: left; }
.ptext .md-link.md-warn { color: var(--bad); }
.ptext .md-host { color: var(--dim); font-size: 12px; }
.replies { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding-left: 14px; border-left: 2px solid var(--line2); }
.replies .replies .replies .replies { padding-left: 0; border-left: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.bd.c[data-badge="official"] { color: var(--acct); border-color: var(--acc); background: var(--sel); }
.pacts { gap: 6px 8px; }
.att-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.att { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; background: var(--head); min-width: 0; overflow-wrap: anywhere; }
.att .two { flex: 1 1 160px; }
.att-box .media { max-width: 100%; overflow-x: auto; }
.att-box .media img { max-width: min(100%, 420px); height: auto; border-radius: 8px; border: 1px solid var(--line2); }
.att-box .media video { max-width: 100%; }
.dmb { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); border-radius: 999px; padding: 2px 10px; background: var(--panel); font-weight: 600; font-variant-numeric: tabular-nums; }
.dmb:hover { border-color: var(--acc); }
.ovv .dmb[aria-pressed="true"] { background: var(--sel); border-color: var(--acc); color: var(--acct); }
.dia-panel:empty { display: none; }
.dia-panel .pop { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); max-width: 440px; }
.reasons { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.reasons h3 { margin: 0; font-size: 13px; font-weight: 600; }
.post.reason { padding: 0; border-bottom: 0; gap: 8px; }
.linkask { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line2); border-radius: 8px; background: var(--head); padding: 8px 10px; overflow-wrap: anywhere; }
.comp { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-top: 1px solid var(--line); background: var(--head); border-radius: 0 0 10px 10px; min-width: 0; }
.comp .in { width: 100%; min-width: 0; min-height: 84px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; resize: vertical; }
.comp .in:focus-visible { border-color: var(--acc); }
.comp .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
/* a cost card holds its own room for the chosen one's check (14px, 8px from the right): the right padding is 34px, 33px under the 2px border of the chosen card */
.comp .choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); padding: 10px 34px 10px 12px; }
.comp .choice:hover:not(:disabled) { border-color: var(--acc); }
.ovv .comp .choice[aria-checked="true"] { border-width: 2px; padding: 9px 33px 9px 11px; border-color: var(--acc); background: var(--sel); }
.comp .choice .ic { position: absolute; top: 8px; right: 8px; color: var(--acct); }
.comp .choice .pr { font-weight: 700; font-variant-numeric: tabular-nums; }
.comp .ovl { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--acc); border-radius: 10px; padding: 12px; background: var(--panel); }
.comp .dline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.comp .att-pick .row { gap: 8px; }
@media (max-width: 599px) {
  .comp .in, .comp .btn, .comp .choice { min-height: 44px; }
  .post { padding: 12px; gap: 8px; }
}

/* the pieces of a numbered form (parts/form.js): the step card, the note, the grid of facts and the field */
.fm-idx { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--sel); color: var(--acct); font-size: 12px; font-weight: 700; }
.fm-status { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.fm-status.ok { color: var(--ok); }
.fm-status.warn { color: var(--warn); }
.fm-status.bad { color: var(--bad); }
.fm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm-in { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.fm-in.mono { font-family: var(--mono); font-size: 12.5px; }
.fm-area { min-height: 120px; resize: vertical; line-height: 1.4; }
.fm-note { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line2); border-radius: 8px; background: var(--head); padding: 10px 12px; }
.fm-note-i { flex: none; padding-top: 1px; display: inline-flex; }
.fm-note-b { min-width: 0; overflow-wrap: anywhere; }
.fm-note.ok { background: var(--pv-bg); border-color: var(--pv-b); color: var(--pv-t); }
.fm-note.bad, .fm-note.caution { background: var(--cau-bg); border-color: var(--cau-b); color: var(--cau-t); }
.fm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fm-fact { background: var(--panel); padding: 9px 12px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fm-v { font-weight: 600; overflow-wrap: anywhere; }
.fm-v.mono { font-weight: 600; }
.fm-facts .mono { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .fm-step .btn, .fm-step .btn.sm, .fm-in { min-height: 44px; }
}
.nm-flag { display: inline-flex; align-items: center; flex: none; color: var(--warn); }
/* what a custom call says under it (parts/custom-call.js): the label of the recipe and the words of its check stand together, the listing's name is a code span that breaks where the box ends */
.cc-check { gap: 4px; align-items: flex-start; }
.cc code.mono { overflow-wrap: anywhere; }
/* an empty discussion holds its note in a box: the room under it is the room above it, so the composer band does not touch it */
.discussion .dis-b > .state:last-child, .discussion .dis-b > .flag:last-child { margin-bottom: 12px; }
/* an address the part drew in the figure of a tile (parts/figure.js) is as large as the figures beside it, not the 12px of a mono run */
.kpi .v .addr { font-size: inherit; }
/* words kept by content, drawn as words (parts/discussion-files.js): the words, then where they are kept and how they were learned */
.cwords { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cwords .row { gap: 8px 12px; align-items: center; flex-wrap: wrap; }
