:root {
  --ink: #1d3f91;
  --grid: #dde6f4;
  --sheet: #f5f8fd;
  --paper: #fff;
  --wash: #edf3fc;
  --line: 1px solid #b8c8df;
  --drop: none;
  --hand: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bar-height: 72px;
}

.backstage-shell, .backstage-tool {
  color: #24344f;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.backstage-shell {
  min-width: 320px;
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.backstage-shell :is(button, input, select, textarea, dialog),
.backstage-tool :is(button, input, select, textarea, dialog) { border-radius: 0; }
.backstage-shell :is(a, button, input, select, textarea, summary):focus-visible,
.backstage-tool :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.backstage-shell .bar {
  min-height: 72px;
  padding: 14px clamp(16px, 3vw, 40px);
  gap: 16px;
  flex-wrap: nowrap;
  border-bottom: var(--line);
  box-shadow: none;
}
.backstage-shell .brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 800 1.35rem/1.2 var(--hand);
  letter-spacing: -.04em;
  transform: none;
}
.backstage-shell .brand small { font: 600 .75rem/1.3 var(--hand); letter-spacing: 0; }
.backstage-shell .brand b { color: #d62828; }
.backstage-shell :is(.btn, .bar button, .bar .site):where(:not(.gate *)) {
  font: 700 .75rem/1.4 var(--hand);
  letter-spacing: .03em;
  padding: 9px 12px;
  border: var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.backstage-shell :is(.btn, .bar button, .bar .site):where(:not(.gate *)):hover:not(:disabled) { background: var(--wash); }
.backstage-shell .btn.danger { color: var(--red); border-color: var(--red); }
.backstage-shell .bar .menu { display: none; flex: none; width: auto; min-width: 72px; height: 40px; padding: 0 14px; }   /* the PAGES button, 2026-11-05 */
.backstage-shell .app {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);   /* 264px until 2026-11-04, widened so the home row's name fits on one line */
  align-items: start;
  gap: 24px;
  max-width: 1504px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 40px;
}
/* The page panel shows everything, no scrolling of its own, on the graph paper (Kevin, 2026-11-04, "page panel, no scroll, just show
   all. transparent bg instead of white"): it runs its full length with the page. Sticky, a window tall, scrolling inside, on white
   until then. */
.sidebar {
  position: static;
  align-self: start;
  background: transparent;
  border: var(--line);
  --side-pad: 16px;
  padding: 16px;
}
.sidebar-homes { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--grid); }
.sidebar-homes .site {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
}
.sidebar-homes .site:is(:hover, [aria-current=page]) { background: var(--wash); }
.sidebar-search { padding-top: 18px; }
.sidebar-search label, .sidebar-section h2 {
  display: block;
  margin: 0 0 10px;
  font: 700 .65rem/1.4 var(--hand);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5b6c86;
}
.sidebar-search input {
  width: 100%; min-width: 0;
  padding: 10px;
  font: 400 .8rem/1.4 var(--hand);
  border: var(--line);
  color: #24344f;
  background: #fff;
}
.sidebar-section { padding-top: 22px; }
.sidebar .quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; }
.backstage-shell .sidebar .quick li a {
  padding: 9px 10px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: none;
  transform: none;
  color: var(--ink);
  font: 600 .8rem/1.4 var(--hand);
}
.sidebar .quick small { margin-top: 3px; font: 400 .7rem/1.5 var(--hand); color: #5b6c86; opacity: 1; }
.sidebar .quick a:is(:hover, [aria-current=page]) { background: var(--wash); border-color: var(--grid); }
.backstage-shell .tree {
  display: block;
  position: static;
  width: auto;
  max-height: none;
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;   /* on the graph paper, like the panel (2026-11-04) */
}
.sidebar .tree ul { display: grid; gap: 3px; }
.sidebar .tree ul ul { margin: 4px 0 6px 12px; padding-left: 10px; border-left: 1px solid var(--grid); }
.sidebar .tree a {
  min-width: 0;
  padding: 8px 10px;
  font: 500 .76rem/1.5 var(--hand);
  overflow-wrap: anywhere;
  color: #344762;
}
.sidebar .tree a.here { background: var(--wash); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 var(--ink); }
.sidebar .tree a:hover { background: var(--wash); }
.tree-row { display: flex; align-items: stretch; }
.tree-row a { flex: 1; }
.tree-toggle {   /* at the row's right since 2026-11-04, clear on the graph paper like the panel */
  align-self: stretch;
  flex: 0 0 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 1.2rem/1 var(--hand);
}
.tree-toggle:hover { background: var(--wash); }
.tree-toggle span { display: inline-block; }
.tree-toggle[aria-expanded=true] span { transform: rotate(90deg); }
.tree-all span { font-weight: 800; letter-spacing: -.05em; }
/* The home row outdented to the panel's left border, so the top-level pages read as under it (Kevin, 2026-11-04, "outdent SOLD OUT!
   Comedy BACKSTAGE button, widen if necessary"); the panel a little wider so its name stays on one line. */
.sidebar .tree-row:has(> .tree-all) { margin-left: calc(-1 * var(--side-pad, 16px)); }
.sidebar .tree-row:has(> .tree-all) > a { white-space: nowrap; }   /* the home row's », every branch at once (2026-11-04) */
.sidebar .tree .count { padding-left: 4px; font: 500 .65rem var(--hand); }
.sidebar .tree .none { font: 400 .8rem/1.5 var(--hand); }
/* ADD BS PAGE at the right end of the page's button bar, after EDIT, MOVE and DELETE (2026-11-04, "move add bs page to the right of the
   edit move delete button bar"); its form a white panel under it, at the bar's right. In the header, left of LOGOFF, for a few hours before. */
.bar-add { position: relative; flex: none; margin-left: auto; }
.page-acts .bar-add .btn { text-align: center; }
.bar-add:has(> .btn[hidden]) { display: none; }
.bar-add form {
  position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 24px));
  display: grid; gap: 12px; padding: 14px; background: #fff; border: var(--line); box-shadow: 0 10px 28px rgba(29, 63, 145, .18);
}
.bar-add form[hidden] { display: none; }
.bar-add label { display: grid; gap: 6px; min-width: 0; font: 600 .75rem/1.5 var(--hand); color: #24344f; }
.bar-add :is(input, select) { width: 100%; min-width: 0; padding: 10px 8px; color: #24344f; background: #fff; border: var(--line); font: 400 .8rem/1.4 var(--hand); }
.bar-add .actions { display: flex; gap: 8px; margin: 0; }
.bar-add .actions .btn { flex: 1; min-width: 0; }
.bar-add .say { margin: 0; }
.bar-add .say:empty { display: none; }
.workspace { min-width: 0; outline: none; }
.backstage-shell .page-acts {
  position: relative;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: var(--line);
  background: #fff;
  gap: 8px;
}
.backstage-shell .page {
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
  border: var(--line);
  box-shadow: none;
}
.backstage-shell .body { max-width: none; color: #24344f; }
/* Words run the panel's full width, wrapping only at its edge (Kevin, 2026-11-02, "no wrap except at full width"); 72ch until then. */
.backstage-shell :is(.page h1.title, .hero h1) { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1.15 var(--hand); letter-spacing: -.045em; }
.backstage-shell .hero { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--grid); }
.backstage-shell .hero .stamp { width: 64px; transform: none; }
.backstage-shell .body :is(h1, h2, h3) { letter-spacing: -.025em; line-height: 1.3; }
.backstage-shell .body h1 { font-size: 1.75rem; }
.backstage-shell .body h2 { font-size: 1.35rem; }
.backstage-shell .body h3 { font-size: 1.1rem; }
.backstage-shell :is(.crumbs, .meta, .say, .tool .note, .edit .hint) { font: 400 .8rem/1.6 var(--hand); }
.backstage-shell .crumbs { margin-bottom: 12px; }
.backstage-shell .meta { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--grid); }
.backstage-shell .body blockquote { background: #fff; border: var(--line); border-left: 3px solid var(--ink); }
.backstage-shell .body details { background: #fff; border: var(--line); }
.backstage-shell .body hr { border-top: 1px solid var(--grid); opacity: 1; }
.backstage-shell :is(.tool, .move-box, .st-tile, .pr-card, .uq-card, .qr-art) {
  background: #fff;
  background-image: none;
  border-radius: 0;
  box-shadow: none;
}
.backstage-shell .tool { max-width: none; padding: 20px; }
.backstage-shell .body .tool { margin-left: 0; margin-right: 0; }
.backstage-shell .tool.soc { padding: 0; }
.backstage-shell :is(.tool .row label, .sh-form > label, .sh-pic label, .sh-upload label, .uq-field > span, .move-box label > span, .edit label) { font-size: .8rem; line-height: 1.5; }
.backstage-shell :is(.tool th, .sh-upload h4, .sh-group, .pass-req .pr-count) { font-size: .9rem; }
.backstage-shell .tool .small { font-size: .7rem; padding: 7px 10px; }
.backstage-shell .sh-tag { border-radius: 0; }
.backstage-shell .kids { border-top: 1px solid var(--grid); }
.backstage-shell .kids h2 { font-size: .9rem; }
.backstage-shell .kids li a { transform: none; box-shadow: none; font-size: .9rem; padding: 12px; }
.backstage-shell .toast { transform: translateX(-50%); box-shadow: none; font-size: .9rem; padding: 14px 18px; }
.backstage-shell .offline { font: 600 .85rem/1.5 var(--hand); padding: 12px 16px; box-shadow: none; }


.backstage-tool { background: #fff; }
.backstage-tool :is(button, .btn) { font-family: var(--hand); font-size: .8rem; box-shadow: none; transform: none; }
.backstage-tool :is(button.ghost, .btn.ghost) { transform: none; }
.backstage-tool .gate { transform: none; }
.backstage-tool :is(.card, .stat, .purse, .purse.split .cell, .ck, .asks, .empty, .gate, .d-fee, .d-fee-seg, .ck-net, .ck-what, .ck-who, .ck-photo, .ck-stage, .ck-fold, .fork, .step, .photo-dlg, .preview) { border-radius: 0; box-shadow: none; }
.bs-socializer .container { max-width: none; }
html.embed .bs-socializer { display: flow-root; padding: 0; background: #fff; }
.bs-socializer :is(.kicker, .subtitle, .field label) { font-family: var(--hand); font-size: .85rem; }
.bs-socializer :is(.card, .pane, .panel) { background-color: #fff; }
.bs-dashboard { --purple: #1d3f91; --purple-d: #173575; --tint: #edf3fc; --page: #fff; }
.bs-dashboard #dash { max-width: none; padding: 0 0 24px; }
.bs-dashboard .d-head h1 { font: 800 clamp(1.5rem, 4vw, 2rem)/1.2 var(--sans); letter-spacing: -.035em; color: var(--ink); text-shadow: none; }
.bs-dashboard .purse h3 { font: 700 1rem/1.4 var(--sans); letter-spacing: 0; }
.bs-dashboard .ck-num { transform: none; border: var(--line); background: #fff; font: 800 1.4rem/1 var(--sans); }
.bs-dashboard .gate h2 { font: 800 1.6rem/1.2 var(--sans); letter-spacing: -.025em; }
.bs-dashboard :is(.stat, .purse, .purse.split .cell, .ck, .asks, .empty, .d-fee, .ck-net, .ck-what, .ck-who, .ck-photo, .fork, .step) { background: #fff; }
.bs-dashboard :is(.d-tools input, .d-tools select, .d-fee-box input, .pill-btn, .filters button, .ask-row button, .ask-row a, .ck-foot button, .ck-edit input, .sold-edit button) { border-radius: 0; }

@media (max-width: 1000px) {
  .backstage-shell .app { grid-template-columns: 280px minmax(0, 1fr); gap: 16px; padding: 16px; }   /* 232px until 2026-11-04 */
  .sidebar { --side-pad: 12px; padding: 12px; }
  .backstage-shell .brand small { display: none; }
}
@media (max-width: 700px) {
  .backstage-shell .bar { position: sticky; padding: 12px 16px; gap: 12px; min-height: 64px; }
  .backstage-shell .bar .grow { display: block; }
  .backstage-shell .bar .menu { display: inline-flex; }
  .backstage-shell .brand { flex: none; font-size: 1.2rem; }
  .backstage-shell .bar #out { max-width: 44vw; overflow-wrap: anywhere; white-space: normal; }
  .backstage-shell .app { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 24px; }
  .backstage-shell .app:not(.show-tree) .sidebar { display: none; }
  .backstage-shell .app.show-tree .workspace { display: none; }   /* the page list is the whole screen until a page is picked (2026-11-05) */
  .backstage-shell .app.show-tree { padding-top: 0; }
  .sidebar { position: static; max-height: none; overflow: visible; --side-pad: 16px; padding: 16px; }
  .sidebar :is(.tree a, .quick a) { padding: 12px 10px; font-size: .85rem; }
  .tree-toggle { flex-basis: 36px; }
  .backstage-shell .page { padding: 20px 16px; }
  .backstage-shell .page-acts { padding: 12px; }
  .backstage-shell .tool { padding: 14px 12px; }
  .backstage-shell .tool.soc { padding: 0; }
  .backstage-shell .hero { gap: 12px; padding-bottom: 20px; }
  .backstage-shell .hero .stamp { width: 48px; }
}

/* The header's joined toggle, BACKSTAGE and SOLDOUTCOMEDY.COM (Kevin, 2026-11-04): two square buttons sharing one border, the side
   you're on filled in the ink, the other white. */
.backstage-shell .site-switch-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: none; }
/* The eyebrow over the toggle (Kevin, 2026-11-04, "give buttons an eyebrow that says THESE ARE BUTTONS"). */
.backstage-shell .ss-eyebrow { font: 700 .56rem/1 var(--hand); letter-spacing: .16em; color: var(--ink); opacity: .75; white-space: nowrap; }
.backstage-shell .site-switch { display: inline-flex; flex: none; border: 1.5px solid var(--ink); background: #fff; }
.backstage-shell .site-switch .ss-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; text-decoration: none; white-space: nowrap;
  font: 800 .72rem/1 var(--hand); letter-spacing: .06em; color: var(--ink); background: #fff;
}
.backstage-shell .site-switch .ss-btn + .ss-btn { border-left: 1.5px solid var(--ink); }
.backstage-shell .site-switch .ss-btn[aria-current] { background: var(--ink); color: #fff; }
.backstage-shell .site-switch .ss-btn:not([aria-current]):hover { background: var(--wash); }
.backstage-shell .site-switch .ss-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 700px) {
  .backstage-shell .site-switch .ss-btn { min-height: 32px; padding: 0 8px; font-size: .62rem; letter-spacing: .03em; }
  .backstage-shell .bar #out { overflow-wrap: normal; }   /* LOGOFF / KEVIN, never a word split */
}
/* A phone: the toggle its own row under the menu, ADD BS PAGE and logoff, each half the row's width. */
@media (max-width: 600px) {
  .backstage-shell .bar { flex-wrap: wrap; row-gap: 10px; }
  .backstage-shell .site-switch-wrap { order: 5; flex: 1 1 100%; align-items: stretch; }
  .backstage-shell .site-switch { display: flex; }
  .backstage-shell .site-switch .ss-btn { flex: 1 1 50%; justify-content: center; min-height: 34px; font-size: .66rem; }
}

/* On a phone the add form spans the button bar, under it, rather than hanging off the button. */
@media (max-width: 700px) {
  .bar-add { position: static; }
  .bar-add form { top: calc(100% + 6px); left: 0; right: 0; width: auto; }
}
/* The narrowest phones: LOGOFF a touch tighter, so it stays beside the menu. */
@media (max-width: 400px) {
  .backstage-shell .bar #out { padding: 8px 8px; font-size: .68rem; letter-spacing: .02em; }
  .backstage-shell .bar { gap: 8px; }
}

/* MESSAGE AN EBAY SELLER (Kevin, 2026-11-06): 1. the message with Send under the draft, 2. the sellers and the two marks on each (REVIEW or
   APPROVED BY SO!C, and separately APPROVED BY SELLER), then BORING STUFF, the fold with the eBay connection and the rules. */
.backstage-shell .ebay-msg-wrap > .tool { margin: 0 0 1rem; }
.backstage-shell .ebay-send { margin: 0 0 .4rem; }
.backstage-shell .ebay-send-note { margin: 0 0 .8rem; }
.backstage-shell .ebay-send-note:empty { display: none; }
.backstage-shell .ebay-seller-acts { align-items: center; margin-top: .55rem; }
/* Prop Shop Partners cards: white, then light grey, in turn; the three menus on one line (Kevin, 2026-11-11) */
.backstage-shell .ebay-seller-list .uq-card.ebay-seller { background: #fff; }
.backstage-shell .ebay-seller-list .uq-card.ebay-seller:nth-child(even) { background: #eceef2; }
.backstage-shell .ebay-seller-picks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; margin: .55rem 0 .4rem; }
.backstage-shell .ebay-seller-picks > * { flex: 1 1 11rem; min-width: 0; margin: 0; }
.backstage-shell .ebay-seller-picks select { width: 100%; }
.backstage-shell .ebay-contact-status { display: block; font-weight: 700; font-size: .85rem; }
.backstage-shell .ebay-seller-select, .backstage-shell .ebay-batch-check { display: flex; align-items: center; gap: .6rem; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.backstage-shell :is(.ebay-seller-select, .ebay-batch-check) input[type="checkbox"] { width: 1.15rem; height: 1.15rem; min-height: 0; flex: 0 0 1.15rem; margin: 0; accent-color: var(--ink); }
.backstage-shell .ebay-seller-batch { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .8rem 0 1rem; padding: .7rem; border: var(--line); }
.backstage-shell .ebay-seller-batch .say { margin: 0 auto 0 0; }
.backstage-shell .ebay-seller-list .ebay-seller.is-selected { outline: 2px solid var(--ink); outline-offset: -2px; }
.backstage-shell .ebay-batch-card { margin: .8rem 0; padding: .9rem; border: var(--line); background: #fff; }
.backstage-shell .ebay-batch-card > summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; overflow-wrap: anywhere; }
.backstage-shell .ebay-batch-state { font-size: .8rem; white-space: nowrap; }
.backstage-shell .ebay-batch-check { margin: .7rem 0; font-size: .85rem; }
.backstage-shell .ebay-batch-actions { flex-wrap: wrap; position: sticky; bottom: 0; z-index: 2; background: #fff; border-top: var(--line); padding: .7rem 0; margin-top: .8rem; }
.backstage-shell .ebay-batch-actions button:first-child { font-size: 1rem; padding: .7rem 1.2rem; }
.backstage-shell .ebay-batch-actions button:disabled { opacity: .55; }
.backstage-shell .ebay-batch :is(textarea, input[type="text"], select) { width: 100%; box-sizing: border-box; }
.backstage-shell details.ebay-boring { margin: 1.4rem 0 0; }
.backstage-shell .ebay-boring > summary { cursor: pointer; font: 800 .8rem/1.4 var(--hand); letter-spacing: .08em; }
.backstage-shell .ebay-boring > summary small { margin-left: .4rem; font-weight: 600; letter-spacing: 0; opacity: .8; }
.backstage-shell .ebay-boring[open] > summary { margin-bottom: .6rem; }
.backstage-shell .ebay-boring-h { margin: 1.1rem 0 .35rem; padding-top: .8rem; border-top: var(--line); font: 800 .85rem/1.4 var(--hand); }
.backstage-shell .ebay-boring :is(p.note, li) { font: 400 .85rem/1.6 var(--hand); }
.backstage-shell .ebay-boring :is(ul, ol) { margin: .3rem 0; padding-left: 1.3rem; }
.backstage-shell .ebay-boring ul.ebay-check { list-style: none; padding-left: 0; }

/* The three blocks fold with an arrow (Kevin, 2026-11-06, "make both sections expand and collapsible with arrow"): the heading is the
   summary, the arrow at its right turning when it is open. And Delete's question inside a seller's card. */
.backstage-shell :is(details.ebay-part, details.ebay-boring) > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.backstage-shell :is(details.ebay-part, details.ebay-boring) > summary::-webkit-details-marker { display: none; }
.backstage-shell :is(details.ebay-part, details.ebay-boring) > summary::after { content: '▾'; flex: none; font-size: 1.15rem; line-height: 1; color: var(--ink); transition: transform .15s; }
.backstage-shell :is(details.ebay-part, details.ebay-boring):not([open]) > summary::after { transform: rotate(-90deg); }
.backstage-shell details.ebay-part > summary h3 { margin: 0; }
.backstage-shell details.ebay-part[open] > summary { margin-bottom: .6rem; }
.backstage-shell .ebay-del { margin-top: .5rem; }
.backstage-shell .ebay-del > p { flex: 1 1 100%; margin: 0; }

.backstage-shell .ebay-sig { margin: .3rem 0 .6rem; }
.backstage-shell .ebay-sig img { display: block; max-width: 280px; width: 100%; height: auto; background: #fff; border: 1px solid #c8ccd4; border-radius: 4px; }
.backstage-shell .ebay-sig figcaption { font-size: .78rem; color: #5b6b86; margin-top: .25rem; }
