/* Lamewire (lamewire.js; ADR 0031). The window wears Tinny's skin through its tokens only (--sk-*; skins skill): no
   hook of Tinny's is used, so a skin can't reshape it, and the markup is the same in every skin. Text pairs are the
   ones world/skins.js PAIRS measures in every skin: ink and muted on the surface, ink on a field, a button's ink on
   the button, the display's text on the display. No lime: the accent is never a surface here (world/plans/lamewire.md
   §10); the title bar is the skin's surface, not its title colour. Every control is 44 px tall, pointer or not. */
.lw-host { min-height: 60vh; }
html.embed .lw-host { min-height: 0; }
html.embed body.lamewire-page .wrap { padding: 0; }
.lamewire {
  --lw-pad: 14px;
  color: var(--sk-ink, #171815); background: var(--sk-surface, #f4f1e8); font-family: var(--sk-font, Arial, sans-serif);
  border: var(--sk-edge-width, 1px) var(--sk-edge-style, solid) var(--sk-edge, #171815); border-radius: var(--sk-radius, 10px);
  box-shadow: var(--sk-shadow, none); max-width: 1080px; margin: 0 auto 32px; overflow: hidden; font-size: 15px; line-height: 1.45;
}
html.embed .lamewire { border: 0; border-radius: 0; box-shadow: none; margin: 0; max-width: none; min-height: 100vh; }
.lamewire *, .lamewire *::before, .lamewire *::after { box-sizing: border-box; }
.lw-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px var(--lw-pad) 10px; border-bottom: 1px solid var(--sk-line, #d4d2c9); }
.lw-title { margin: 0; font-family: var(--sk-display, inherit); font-size: 26px; line-height: 1.1; letter-spacing: 0; color: var(--sk-ink, #171815); }
.lw-sub { color: var(--sk-muted, #6b6b62); font-size: 14px; }
.lw-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px var(--lw-pad) 0; border-bottom: 1px solid var(--sk-line, #d4d2c9); }
.lw-tab { min-height: 44px; padding: 0 16px; border: 1px solid var(--sk-line, #d4d2c9); border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: -1px;
  background: var(--sk-btn, #f4f1e8); color: var(--sk-btn-ink, #171815); font: inherit; font-weight: 700; cursor: pointer; }
.lw-tab[aria-selected="true"] { background: var(--sk-surface, #f4f1e8); color: var(--sk-ink, #171815); border-color: var(--sk-edge, #171815); box-shadow: inset 0 3px 0 var(--sk-ink, #171815); }
.lw-panel { padding: var(--lw-pad); min-height: 320px; }
.lw-panel:focus-visible, .lw-tab:focus-visible, .lw-btn:focus-visible, .lw-field:focus-visible, .lamewire summary:focus-visible, .lamewire input[type=radio]:focus-visible + label, .lamewire a:focus-visible { outline: 3px solid var(--sk-focus, #728600); outline-offset: 2px; }
.lw-help { color: var(--sk-muted, #6b6b62); margin: 8px 0 12px; max-width: 70ch; }
.lw-empty { color: var(--sk-muted, #6b6b62); padding: 18px 0; margin: 0; }
.lw-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lw-search label { font-weight: 700; flex-basis: 100%; }
.lw-field { flex: 1 1 260px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--sk-ink, #171815); background: var(--sk-field, #fff); border: 1px solid var(--sk-muted, #6b6b62); border-radius: 6px; }
.lw-btn { min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--sk-radius-control, 22px);
  background: var(--sk-btn, #f4f1e8); color: var(--sk-btn-ink, #171815); border: var(--sk-btn-edge, 1px solid #171815); }
/* the strong button is the skin's ink on its paper, turned over: never the skin's accent, which is lime in Night shift (no lime) */
.lw-btn[aria-pressed="true"], .lw-strong { background: var(--sk-ink, #171815); color: var(--sk-surface, #f4f1e8); border-color: var(--sk-ink, #171815); }
.lw-btn:disabled { cursor: default; opacity: .75; }
.lw-count { margin: 4px 0 8px; color: var(--sk-muted, #6b6b62); }
.lw-table { width: 100%; border-collapse: collapse; }
.lw-table th, .lw-table td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--sk-line, #d4d2c9); vertical-align: middle; }
.lw-table thead th { font-size: 13px; color: var(--sk-muted, #6b6b62); font-weight: 700; }
.lw-name { font-weight: 400; }
.lw-t { display: block; font-weight: 700; margin: 0; font-size: inherit; }
.lw-file { font-family: "Courier New", Courier, monospace; font-weight: 700; overflow-wrap: anywhere; word-break: break-word; }
.lw-tag { color: var(--sk-ink, #171815); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.lw-groupsel { display: flex; flex: 1 1 100%; min-width: 0; align-items: center; gap: 8px; }
.lw-groupsel label { font-weight: 700; }
.lw-groupsel select { flex: 0 1 auto; min-width: 0; min-height: 44px; max-width: 100%; }
.lw-nfo summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.lw-nfotext { font: 12px/1.35 "Courier New", Courier, monospace; margin: 6px 0; padding: 10px; background: var(--sk-field, #fff); color: var(--sk-ink, #171815); border-radius: 6px; overflow-x: auto; max-width: 100%; white-space: pre; }
a.lw-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.lw-label { display: block; color: var(--sk-muted, #6b6b62); font-size: 13px; margin: 2px 0 0; }
.lw-peer { white-space: nowrap; color: var(--sk-muted, #6b6b62); font-variant-numeric: tabular-nums; }
.lw-act { text-align: right; white-space: nowrap; }
.lw-got { color: var(--sk-muted, #6b6b62); font-size: 13px; display: inline-block; min-height: 44px; line-height: 44px; }
.lw-transfers { list-style: none; margin: 0; padding: 0; }
.lw-transfer { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sk-line, #d4d2c9); }
.lw-tstate { grid-column: 1 / -1; }
.lw-meter { display: block; height: 14px; border: 1px solid var(--sk-ink, #171815); background: var(--sk-field, #fff); border-radius: 3px; overflow: hidden; }
.lw-fill { display: block; height: 100%; background: var(--sk-ink, #171815); }
.lw-groupby { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.lw-groupby legend { font-weight: 700; float: left; margin-right: 6px; line-height: 44px; }
.lw-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lw-radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--sk-ink, #171815); }
.lw-radio label { cursor: pointer; padding: 10px 4px; }
.lw-group h3, .lw-pair h3 { margin: 18px 0 6px; font-family: var(--sk-display, inherit); font-size: 19px; }
.lw-group h3, .lw-pair h3 { letter-spacing: 0; }
.lw-group h3 small, .lw-pair h3 small { font-family: var(--sk-font, inherit); font-size: 14px; color: var(--sk-muted, #6b6b62); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.lw-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lw-item { border: 1px solid var(--sk-line, #d4d2c9); border-radius: 8px; padding: 12px; background: var(--sk-surface, #f4f1e8); }
.lw-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lw-words { margin-top: 8px; }
.lw-words summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.lw-lyrics { white-space: pre-wrap; font: inherit; margin: 6px 0; padding: 10px; background: var(--sk-field, #fff); color: var(--sk-ink, #171815); border-radius: 6px; max-height: 18em; overflow: auto; }
.lw-src { color: var(--sk-muted, #6b6b62); font-size: 13px; margin: 6px 0 0; }
.lw-thumbs { margin-top: 8px; min-height: 0; }
.lw-libend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--sk-line, #d4d2c9); }
.lw-libfoot { margin: 0; color: var(--sk-muted, #6b6b62); }
.lw-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.lw-ab[hidden] { display: none; } /* with the voting widget the sides wait for the vote (display: grid would show them) */
.lw-side { border: 1px solid var(--sk-line, #d4d2c9); border-radius: 8px; padding: 12px; }
.lw-side h4 { margin: 0 0 4px; font-family: var(--sk-display, inherit); font-size: 28px; }
.lw-vote { margin: 10px 0; }
.lw-vote button { min-height: 44px; }
.lw-reveal { font-weight: 700; }
.lw-foot { border-top: 1px solid var(--sk-line, #d4d2c9); background: var(--sk-lcd-bg, #171815); color: var(--sk-lcd-text, #f4f1e8); padding: 8px var(--lw-pad); font-size: 13px; }
.lw-foot p { margin: 0; min-height: 1.45em; }
.lw-sr, .lw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lw-tinnylink a { color: var(--sk-ink, #171815); }
.lw-stub-thumb, .lw-stub-pair button { min-height: 44px; font: inherit; }

/* a phone (and the desk's narrow window): one column, the table as cards, A over B */
@media (max-width: 640px) {
  .lw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lw-table, .lw-table tbody, .lw-table tr, .lw-table th, .lw-table td { display: block; width: 100%; }
  .lw-table tr { padding: 8px 0; border-bottom: 1px solid var(--sk-line, #d4d2c9); }
  .lw-table th, .lw-table td { border: 0; padding: 2px 0; }
  .lw-table td[data-h]::before { content: attr(data-h) ": "; color: var(--sk-muted, #6b6b62); }
  .lw-act { text-align: left; padding-top: 6px; }
  .lw-ab { grid-template-columns: 1fr; }
  .lw-transfer { grid-template-columns: 1fr; }
  .lw-tab { flex: 1 1 40%; padding: 0 8px; }
  .lw-items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lamewire * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .lamewire, .lw-item, .lw-side, .lw-tab, .lw-btn, .lw-field, .lw-meter { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .lw-tab[aria-selected="true"], .lw-btn[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
  .lw-fill { background: Highlight; }
  .lw-foot { border-top: 1px solid CanvasText; }
}
