/* Vendlii — plain CSS, no build step. Colors live in :root so the look is easy to change later. */
:root {
  /* Vendlii: navy sidebar, blue for anything you can press, green kept for "good news" only.
     The --green-* names are the brand colour (they were green before the redesign). */
  --green-900: #0a1733;
  --green-800: #10224a;
  --green-600: #2563eb;
  --green-500: #3b78f6;
  --green-100: #e8f0fe;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --navy: #0a1733;
  --ok: #15803d;
  --ok-100: #e5f6ec;
  --ok-line: #bfe6cd;
  --ok-ink: #14532d;
  --ink: #0f1b33;
  --muted: #5d6b85;
  --line: #e2e8f2;
  --bg: #f2f5fb;
  --card: #ffffff;
  --red: #dc3b4b;
  --red-100: #fdecee;
  --amber: #b7791f;
  --amber-100: #fdf3dc;
  --blue: #2563eb;
  --blue-100: #e8f0fe;
  --purple: #6d4fd6;
  --purple-100: #efeafd;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 51, 0.04), 0 4px 16px rgba(15, 27, 51, 0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; font-size: 15px; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Shell */
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--green-900), var(--green-800)); color: #c5d0e6; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { font-size: 1.35rem; font-weight: 700; color: #fff; padding: 4px 10px 16px; }
.brand span { color: #6ea2ff; }
.nav a, .nav .soon { display: block; padding: 9px 12px; border-radius: 10px; color: #c5d0e6; }
.nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.nav a.active { background: var(--green-500); color: #fff; font-weight: 600; }
.nav .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7c8db3; padding: 16px 12px 4px; }
.nav .soon { color: #7c8db3; font-size: 0.9rem; }
.nav .soon em { font-style: normal; font-size: 0.7rem; border: 1px solid #3a4f7d; border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.sidebar .me { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }
.sidebar .me strong { color: #fff; display: block; }
.sidebar .me button { background: none; border: 0; color: #9fb2d8; padding: 0; margin-top: 6px; cursor: pointer; font: inherit; }
.main { padding: 26px 30px 50px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* Cards and grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }
.stat { border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); background: var(--card); }
.stat b { font-size: 1.6rem; display: block; line-height: 1.1; }
.stat.green { background: var(--ok-100); border-color: var(--ok-line); }
.stat.red { background: var(--red-100); border-color: #f7d3d3; }
.stat.amber { background: var(--amber-100); border-color: #f5e2b3; }
.stat.blue { background: var(--blue-100); border-color: #c9dafc; }

/* Lists and tables */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.datebox { width: 48px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; flex: none; background: #fff; }
.datebox small { display: block; color: var(--red); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; }
.datebox b { font-size: 1.15rem; }
.row-main { flex: 1; min-width: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-top: 0; }
.table-wrap { overflow-x: auto; }

/* Pills, buttons, forms */
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; background: #edf1f7; color: var(--muted); white-space: nowrap; }
.pill.accepted, .pill.published { background: var(--ok-100); color: var(--ok); }
.pill.pending { background: var(--blue-100); color: var(--blue); }
.pill.waitlisted { background: var(--purple-100); color: var(--purple); }
.pill.declined { background: var(--red-100); color: var(--red); }
.pill.draft { background: var(--amber-100); color: var(--amber); }
.btn { display: inline-block; border: 1px solid var(--green-600); background: var(--green-600); color: #fff; padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--green-500); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--green-600); }
.btn.ghost:hover { background: var(--green-100); }
.btn.danger { background: #fff; color: var(--red); border-color: #efc2c2; }
.btn.sm { padding: 5px 10px; font-size: 0.85rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd9d4; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
/* Web-address and time boxes look like every other box (they were left out of the first rule, so they showed as tiny bare inputs). */
input[type=url], input[type=time], input[type=datetime-local], input[type=month], input[type=week] {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd9d4; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #a9c4fb; border-color: var(--green-500); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input, .inline select { width: auto; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.flash { background: var(--ok-100); border: 1px solid var(--ok-line); color: var(--ok-ink); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.errors { background: var(--red-100); border: 1px solid #f3c6c6; color: #8f2a2a; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.notice { background: var(--amber-100); border: 1px solid #f0dca6; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; }

/* Category mix */
.mixbar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: #edf1ef; margin: 10px 0 12px; }
.mixbar span { display: block; height: 100%; }
.mix-legend { list-style: none; margin: 0; padding: 0; }
.mix-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.92rem; }
.mix-legend li.mine { font-weight: 700; }
.dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.mix-legend .num { margin-left: auto; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Progress */
.progress { height: 8px; background: #edf1ef; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-500); }

/* Tasks */
.task { display: flex; align-items: center; gap: 10px; }
.task form { margin: 0; }
.tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b9c7c1; background: #fff; cursor: pointer; padding: 0; color: #fff; font-size: 13px; line-height: 1; }
.tick.done { background: var(--ok); border-color: var(--ok); }
.task.done .row-main { text-decoration: line-through; color: var(--muted); }
.overdue { color: var(--red); font-weight: 600; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { padding: 8px; font-size: 0.75rem; text-transform: uppercase; color: var(--muted); text-align: center; background: #f8faf9; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 104px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .day:nth-child(7n + 1) { border-left: 0; }
.cal .day.out { background: #fafbfa; color: #a9b5b0; }
.cal .day.today .n { background: var(--green-500); color: #fff; border-radius: 99px; padding: 1px 7px; }
.cal .n { font-size: 0.85rem; font-weight: 600; }
.chip { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #edf1f7; color: var(--ink); }
.chip.event { background: var(--green-100); color: #1e3a8a; }
.chip.applied { background: var(--blue-100); color: var(--blue); }
.chip.fee, .chip.deadline { background: var(--red-100); color: var(--red); }
.chip.task { background: var(--amber-100); color: var(--amber); }
.chip.organizing { background: var(--purple-100); color: var(--purple); }

/* Booth grid (simple list for now; the drag-and-drop map editor replaces this) */
.booths { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.booth { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 0.85rem; background: #fff; }
.booth.taken { background: var(--ok-100); border-color: var(--ok-line); }
.booth b { display: block; }

/* Sign-in pages */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, var(--green-900), var(--green-600)); }
.guest .card { width: 100%; max-width: 460px; padding: 28px; }
.guest .brand { color: var(--green-900); padding: 0 0 10px; }
.guest .brand span { color: var(--green-500); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .sidebar .brand { padding: 4px 10px; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav .label, .nav .soon { display: none; }
  .sidebar .me { margin: 0 0 0 auto; border: 0; padding: 4px 10px; }
  .main { padding: 18px 16px 40px; }
  .cols-2, .cols-3, .split, .form-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal .day { min-height: 70px; padding: 3px; }
  .chip { font-size: 0.65rem; padding: 2px 3px; }
}

/* Booth map (editor and read-only view) */
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 18px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.map-canvas { overflow: auto; }
.card.map-canvas { padding: 10px; }
.boothmap { display: block; width: 100%; height: auto; max-height: 78vh; border-radius: 8px; user-select: none; }
.boothmap.editing { touch-action: none; }
.map-bg { fill: #eef5ea; stroke: #c9d6cf; stroke-width: 0.5; }
.map-grid { stroke: #d5e0d8; stroke-width: 0.15; }
.map-booth { stroke: #33473f; stroke-width: 0.4; }
.map-feature { opacity: 0.9; }
.map-text { text-anchor: middle; dominant-baseline: central; font-weight: 700; fill: #0f1b33; pointer-events: none; font-family: inherit; }
.map-text.light { fill: #ffffff; }
.boothmap.editing .map-item { cursor: grab; }
.boothmap.editing .map-item.selected rect { stroke: #06b6d4; stroke-width: 1.2; }
.boothmap g.mine rect { stroke: #0e7490; stroke-width: 1.1; }
.map-status { font-size: 0.88rem; color: var(--muted); }
.map-status.ok { color: var(--ok); }
.map-status.warn { color: var(--amber); font-weight: 600; }
.map-status.error { color: var(--red); font-weight: 600; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
}

/* Table layout planner */
.boothmap.layout { max-height: 80vh; }
.lay-floor { fill: #f6f3ec; stroke: #9aa9a3; stroke-width: 0.8; }
.lay-grid { stroke: #e2ddd0; stroke-width: 0.2; }
.lay-front { text-anchor: middle; fill: var(--muted); font-weight: 600; letter-spacing: 0.05em; pointer-events: none; }
.lay-shape { stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.35; }
.lay-item.display .lay-shape { stroke: rgba(255, 255, 255, 0.9); stroke-width: 0.5; }
.lay-text { text-anchor: middle; dominant-baseline: central; font-weight: 700; fill: #ffffff; pointer-events: none; font-family: inherit; }
.lay-text.dark { fill: #4a3520; }
.boothmap.editing .lay-item { cursor: grab; }
.boothmap.editing .lay-item.selected .lay-shape { stroke: #06b6d4; stroke-width: 1; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.laypreview { display: block; width: 100%; height: 170px; background: #fbfaf6; border: 1px solid var(--line); border-radius: 10px; }
.laypreview-link { display: block; }

/* Flyer designer */
.flyer-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.flyer-canvas { background: #dfe6e2; border-radius: var(--radius); padding: 20px; display: flex; justify-content: center; }
.flyerpage { display: block; width: 100%; max-width: 760px; height: auto; max-height: 86vh; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); user-select: none; touch-action: none; }
.flyerpage .fly-item { cursor: grab; }
.fly-outline { fill: none; stroke: #06b6d4; stroke-width: 2; stroke-dasharray: 8 5; pointer-events: none; vector-effect: non-scaling-stroke; }
.fly-handle { fill: #06b6d4; stroke: #ffffff; stroke-width: 2; cursor: nwse-resize; vector-effect: non-scaling-stroke; }
.clipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 10px; }
.clipbtn { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px; cursor: pointer; }
.clipbtn:hover { border-color: var(--green-500); background: var(--green-100); }
.clipbtn svg, .clipbtn img { display: block; width: 100%; height: 100%; object-fit: contain; fill: var(--green-800); }
input.swatch { padding: 2px; height: 38px; cursor: pointer; }
.flypreview { display: block; width: 100%; height: 220px; background: #dfe6e2; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
code { background: #edf1f7; padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }

@media (max-width: 900px) {
  .flyer-layout { grid-template-columns: 1fr; }
}

/* Printing a flyer: only the page itself, filling the sheet. */
@media print {
  .sidebar, .no-print, .flash, .errors { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .flyer-layout { display: block; }
  .flyer-canvas { padding: 0; background: none; }
  .flyerpage { max-width: none; max-height: none; width: 100%; box-shadow: none; }
  @page { margin: 0; }
}

/* Layout planner: tablecloths and the 3D view */
.lay-runner { stroke: rgba(0, 0, 0, 0.35); stroke-width: 0.3; pointer-events: none; }
.viewtoggle { display: inline-flex; border: 1px solid var(--green-600); border-radius: 10px; overflow: hidden; }
.viewtoggle button { border: 0; background: #fff; color: var(--green-600); padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.viewtoggle button.on { background: var(--green-600); color: #fff; }
.three-stage { width: 100%; height: min(70vh, 640px); min-height: 360px; border-radius: 8px; overflow: hidden; background: #e9eef0; }
.three-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.three-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 4px 0; }

/* Layout planner: product photos */
.lay-photo { pointer-events: none; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #dfe4e2 25%, transparent 25%, transparent 75%, #dfe4e2 75%), linear-gradient(45deg, #dfe4e2 25%, transparent 25%, transparent 75%, #dfe4e2 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.photocell { position: relative; }
.photocell .clipbtn { width: 100%; }
.photodel { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 99px; border: 0; background: var(--red); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0 5px; }
.photodel.armed { font-size: 11px; font-weight: 700; }
.photo-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(820px, 94vw); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); color: var(--ink); }
.photo-dialog::backdrop { background: rgba(13, 59, 46, 0.55); }
.photo-dialog h2 { margin-bottom: 14px; }
.photo-dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.photo-stage { border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 10px; }
.photo-stage canvas { max-width: 100%; max-height: 52vh; display: block; }
.photo-dialog .check { margin-bottom: 6px; }
@media (max-width: 700px) {
  .photo-dialog-body { grid-template-columns: 1fr; }
}

/* 3D view: resize and rotate handles on a selected photo */
.three-stage { position: relative; }
.three-handles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.three-handle { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; padding: 0; touch-action: none; font: inherit; line-height: 1; }
.three-handle.node { width: 13px; height: 13px; background: #fff; border: 2px solid #06b6d4; border-radius: 2px; }
.three-handle.node.nwse { cursor: nwse-resize; }
.three-handle.node.nesw { cursor: nesw-resize; }
.three-handle.spin { width: 24px; height: 24px; border-radius: 99px; background: #06b6d4; color: #fff; border: 2px solid #fff; font-size: 14px; font-weight: 700; cursor: grab; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.three-handle.spin:active { cursor: grabbing; }

/* Layout planner: page arrangement, action bar, icons */
.map-layout.planner { grid-template-columns: minmax(0, 1fr) 320px; }
.map-layout.planner > .map-toolbar { margin-bottom: 0; }
.saverow { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; flex: none; }
.btn .ui-icon { margin-right: 4px; }
.pal-icon { width: 15px; height: 15px; fill: currentColor; vertical-align: -3px; margin-right: 2px; filter: drop-shadow(0 0 0.6px rgba(0, 0, 0, 0.55)); }
.helpdot { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--green-600); background: #fff; color: var(--green-600); font: inherit; font-size: 0.85rem; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: 5px; margin-left: 6px; padding: 0; }
.helpdot:hover, .helpdot[aria-expanded="true"] { background: var(--green-600); color: #fff; }
.helpcard { margin-bottom: 16px; }
.helplist { margin: 0; padding-left: 18px; }
.helplist li { margin-bottom: 6px; }
.keys td { border: 0; padding: 4px 10px 4px 0; font-size: 0.9rem; }
kbd { display: inline-block; border: 1px solid #c5d0cb; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font: inherit; font-size: 0.8rem; background: #fff; }
.namefield { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.namefield input { padding-right: 32px; }
.namefield button { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 99px; border: 0; background: #d3dbd7; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.namefield button:hover { background: var(--muted); }

.canvas-area { position: relative; }
.three-wrap { position: relative; }
.gizmo { position: absolute; top: 14px; left: 14px; width: 78px; height: 78px; background: rgba(255, 255, 255, 0.92); border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); padding: 5px; }
.gizmo svg { display: block; width: 100%; height: 100%; }
.gizmo-axis { cursor: pointer; }
.fitbtn { position: absolute; top: 14px; right: 14px; border: 0; background: rgba(255, 255, 255, 0.95); border-radius: 99px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); color: var(--ink); }
.fitbtn:hover { background: #fff; color: var(--green-600); }
.fitbtn .ui-icon { margin-right: 4px; }

.actionbar { display: flex; align-items: stretch; justify-content: space-around; gap: 4px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 12px 16px; margin-top: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1); }
.canvas-area.is-3d .actionbar { position: absolute; left: 14px; right: 14px; bottom: 14px; margin-top: 0; border-color: transparent; background: rgba(255, 255, 255, 0.96); }
.canvas-area.is-3d .three-stage { height: min(78vh, 720px); min-height: 480px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 2px 10px; font: inherit; color: var(--ink); cursor: pointer; min-width: 78px; }
.act-icon { width: 50px; height: 50px; border-radius: 99px; background: #eef1f0; display: grid; place-items: center; margin-bottom: 3px; transition: background 0.12s, transform 0.12s; }
.act-icon .ui-icon { width: 22px; height: 22px; vertical-align: 0; }
.act-name { font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.act-key { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.act:hover:not(:disabled) .act-icon { background: #dfe6e2; transform: translateY(-1px); }
.act.danger .act-icon { background: var(--red-100); color: var(--red); }
.act.danger:hover:not(:disabled) .act-icon { background: #f9d6d6; }
.act.green .act-icon { background: var(--green-100); color: var(--green-800); }
.act.green:hover:not(:disabled) .act-icon { background: #cdeedd; }
.act.save .act-icon { background: var(--green-600); color: #fff; width: 56px; height: 56px; margin-top: -3px; }
.act.save:hover .act-icon { background: var(--green-500); }
.act:disabled { opacity: 0.4; cursor: not-allowed; }
.act:focus-visible .act-icon, .fitbtn:focus-visible, .helpdot:focus-visible { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.act-sep { width: 1px; background: var(--line); margin: 4px 2px; }
.act-wrap { position: relative; display: flex; }
.alignmenu { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); z-index: 5; }
.alignmenu strong { display: block; font-size: 0.85rem; margin-bottom: 8px; }
.aligngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.aligngrid button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 4px; font: inherit; font-size: 0.8rem; cursor: pointer; color: var(--ink); }
.aligngrid button:hover { border-color: var(--green-500); background: var(--green-100); }

@media (max-width: 900px) {
  .map-layout.planner { grid-template-columns: 1fr; }
  .saverow { justify-content: space-between; }
  .act { min-width: 62px; padding: 2px 4px; }
  .act-sep { display: none; }
  .canvas-area.is-3d .actionbar { position: static; margin-top: 12px; }
}
.planner-head { flex-wrap: nowrap; align-items: flex-start; }
.planner-head > div { flex: 1; min-width: 0; }
.planner-head form { flex: none; margin-top: 22px; }
.saverow .btn { white-space: nowrap; flex: none; }
.saverow .map-status { text-align: right; font-size: 0.85rem; }
@media (max-width: 900px) {
  .planner-head { flex-wrap: wrap; }
  .planner-head form { margin-top: 0; }
}
.canvas-area .boothmap.layout { max-height: 62vh; }

/* Layout planner: premade arrangements and tents */
.arrangegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.arrangebtn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.arrangebtn:hover { border-color: var(--green-500); background: var(--green-100); }
.arrangebtn svg { display: block; width: 100%; max-width: 92px; margin: 0 auto 6px; }
.arrangebtn span { display: block; font-size: 0.76rem; line-height: 1.25; }
.arr-floor { fill: #f6f3ec; stroke: #c3cdc8; stroke-width: 1.5; }
.arr-table { fill: #74777a; }
.arr-seat { fill: #1f2466; }
.arr-pay { fill: #f3c9d3; }
.lay-tent { pointer-events: none; }
.lay-tent-roof { fill-opacity: 0.16; }
.lay-tent-edge { fill: none; stroke: #5b6b65; stroke-width: 0.6; stroke-dasharray: 4 3; }
.lay-tent-wall-edge { stroke: #5b6b65 !important; stroke-width: 3.4; }
.lay-tent-wall { stroke-width: 2.4; }
.lay-tent-leg { fill: #9aa3a8; stroke: #4b5563; stroke-width: 0.4; }

/* Fixes: the name's clear button sits inside the box, and the action bar stays a sensible width on big screens */
.namefield input, .inline .namefield input { width: 100%; }
.actionbar { max-width: 900px; margin-left: auto; margin-right: auto; }
.canvas-area.is-3d .actionbar { left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 28px); }
@media (max-width: 900px) {
  .canvas-area.is-3d .actionbar { transform: none; width: auto; }
}

/* ---- Layout planner: sizes itself to the screen ----------------------------------- */

/* The 3D window fills the height left under the page header, on anything from a laptop
   to a large monitor. "dvh" follows the real visible height on phones, where the browser's
   own bars come and go; the "vh" line before it is for browsers that don't know dvh. */
.canvas-area.is-3d .three-stage {
  height: clamp(420px, calc(100vh - 300px), 1200px);
  height: clamp(420px, calc(100dvh - 300px), 1200px);
  min-height: 0;
}
.canvas-area .boothmap.layout { max-height: calc(100vh - 360px); max-height: calc(100dvh - 360px); min-height: 260px; }

/* Very wide screens: give the picture the room and let the side panel breathe. */
@media (min-width: 1800px) {
  .map-layout.planner { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Short, wide windows (small laptops, a browser snapped to half height). */
@media (max-height: 760px) and (min-width: 901px) {
  .canvas-area.is-3d .three-stage { height: clamp(300px, calc(100vh - 285px), 1200px); height: clamp(300px, calc(100dvh - 285px), 1200px); }
  .actionbar { padding: 8px 12px; border-radius: 22px; }
  .act-icon { width: 40px; height: 40px; }
  .act.save .act-icon { width: 44px; height: 44px; margin-top: -2px; }
  .act-key { display: none; }
}

/* Tablets and phones: one column, the action bar sits under the picture as a tidy grid. */
@media (max-width: 900px) {
  .main { padding: 14px 12px 32px; }
  .planner-head h1 { font-size: 1.35rem; }
  .planner-head .muted { font-size: 0.88rem; }
  .map-layout.planner { gap: 10px; }
  .map-toolbar { padding: 10px 12px; }
  .namefield { max-width: none; min-width: 140px; }
  .card.canvas-card { padding: 8px; }

  .canvas-area.is-3d .three-stage {
    height: clamp(300px, 58vh, 720px);
    height: clamp(300px, 58dvh, 720px);
  }
  .canvas-area .boothmap.layout { max-height: 58vh; max-height: 58dvh; min-height: 0; }

  .actionbar, .canvas-area.is-3d .actionbar {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 2px;
    padding: 10px 6px; border-radius: 18px; margin-top: 10px; max-width: none; width: auto; transform: none; left: auto;
    border-color: var(--line); background: #fff; box-shadow: none;
  }
  .act { min-width: 0; padding: 2px; }
  .act-icon { width: 44px; height: 44px; }
  .act.save .act-icon { width: 44px; height: 44px; margin-top: 0; }
  .act-name { font-size: 0.74rem; }
  .act-key { display: none; }
  .act-wrap { position: static; justify-content: center; }
  .alignmenu { left: 50%; bottom: calc(100% + 8px); width: min(330px, calc(100vw - 40px)); }

  .gizmo { width: 58px; height: 58px; top: 8px; left: 8px; border-radius: 10px; padding: 3px; }
  .fitbtn { top: 8px; right: 8px; padding: 7px 12px; font-size: 0.85rem; }
  .three-bar { padding-top: 10px; }
  .saverow .btn { padding: 8px 12px; }
  .arrangegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photo-dialog { padding: 16px; }
}

@media (max-width: 560px) {
  .viewtoggle button { padding: 7px 10px; font-size: 0.88rem; }
  .map-toolbar .inline { gap: 6px; }
  .map-toolbar [data-count] { display: none; }
  .arrangegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planner-head form .btn { padding: 7px 12px; font-size: 0.85rem; }
  .three-bar .inline { flex-wrap: wrap; }
}

/* Fingers need bigger targets than a mouse pointer does. */
@media (pointer: coarse) {
  .three-handle.node { width: 22px; height: 22px; border-width: 3px; border-radius: 4px; }
  .three-handle.spin { width: 36px; height: 36px; font-size: 18px; }
  .photodel { min-width: 28px; height: 28px; font-size: 16px; top: -8px; right: -8px; }
  .namefield button { width: 26px; height: 26px; }
  .aligngrid button { padding: 12px 4px; }
  .act-key { display: none; }
}
.hint-touch { display: none; }
@media (pointer: coarse) {
  .hint-touch { display: block; }
  .hint-mouse { display: none; }
}
@media (max-width: 900px) {
  /* Title, then the description, then the Duplicate button, each across the full width. */
  .planner-head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .planner-head > div { flex: none; }
  .planner-head form { margin-top: 0; }
  .planner-head form .btn { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .planner-head .muted { display: none; } /* the same guidance is one tap away under "?" */
}

/* Walkthrough simulator controls, on top of the 3D window */
.simbar { position: absolute; top: 14px; left: 104px; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(255, 255, 255, 0.95); border-radius: 99px; padding: 5px 14px 5px 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.simbar .btn { border-radius: 99px; white-space: nowrap; }
.simbar .btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.simbar .check { margin: 0; white-space: nowrap; }
.simnote { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); z-index: 3; width: max-content; max-width: min(560px, calc(100% - 28px)); background: rgba(23, 35, 31, 0.92); color: #fff; padding: 9px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.4; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); pointer-events: none; }
.three-wrap.is-simulating ~ .actionbar { display: none; } /* it would hide the shopper walking in at the front */
@media (max-width: 760px) {
  .simbar { top: 8px; left: 74px; gap: 6px; padding: 4px 10px 4px 4px; max-width: calc(100% - 82px); }
  .simbar ~ .fitbtn { top: 62px; }
  .simnote { top: 108px; font-size: 0.82rem; }
}

/* Sales & Layouts: the layout comparison */
.results-table th.num, .results-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-table td { vertical-align: top; }
.change { font-weight: 600; white-space: nowrap; }
.change.up { color: var(--ok); }
.change.down { color: var(--red); }
.layoutbars { display: grid; gap: 4px; margin-top: 10px; }
.layoutbar { position: relative; display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) 76px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; outline: 0; }
.layoutbar:hover, .layoutbar:focus-visible { background: var(--bg); }
.layoutbar:focus-visible { box-shadow: 0 0 0 2px var(--green-500); }
.layoutbar-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.layoutbar-name span { display: block; font-weight: 400; }
.layoutbar-track { position: relative; height: 14px; border-left: 1px solid var(--line); }
.layoutbar-fill { display: block; height: 100%; min-width: 2px; background: var(--green-600); border-radius: 0 4px 4px 0; }
.layoutbar-mark { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2px dashed var(--muted); transform: translateX(-1px); }
.layoutbar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.layoutbar-tip { display: none; position: absolute; left: 212px; top: calc(100% - 2px); z-index: 5; background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 9px; font-size: 0.82rem; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); pointer-events: none; max-width: min(320px, 80vw); }
.layoutbar-tip strong, .layoutbar-tip span { display: block; }
.layoutbar:hover .layoutbar-tip, .layoutbar:focus .layoutbar-tip { display: block; }
.layoutbar:nth-last-child(-n+2):not(:nth-child(-n+2)) .layoutbar-tip { top: auto; bottom: calc(100% - 2px); }
@media (max-width: 640px) {
  .layoutbar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .layoutbar-name { grid-column: 1; }
  .layoutbar-value { grid-column: 2; grid-row: 1; }
  .layoutbar-track { grid-column: 1 / -1; }
  .layoutbar-tip { left: 8px; }
}
.results-table { min-width: 640px; }
.results-table td:first-child, .results-table td:nth-child(2) { min-width: 130px; }
.results-table td.num { min-width: 0; }

/* Booth check: advice on the layout, under the plan */
.advice { border-top: 1px solid var(--line); margin-top: 14px; padding: 14px 4px 2px; }
.advice-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.advice-top h3 { margin: 0; }
.advice-top p { margin: 2px 0 0; }
.advice-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.advice-item { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.advice-item.tip { border-left-color: var(--blue); }
.advice-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.advice-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 99px; background: var(--amber-100); color: var(--amber); white-space: nowrap; }
.advice-item.tip .advice-tag { background: var(--blue-100); color: var(--blue); }
.advice-item p { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.5; }
.advice-item .advice-why { color: var(--muted); }
.advice-item .advice-why b, .advice-item .advice-what b { color: var(--ink); }
.advice-item .btn { margin-top: 10px; }
.advice-good { background: var(--ok-100); border-radius: 10px; padding: 10px 14px; font-size: 0.92rem; }
.advice-good ul { margin: 4px 0 0; padding-left: 20px; }

/* Banners, wall pictures and tent artwork */
.lay-item.hang .lay-shape { stroke: #fff; stroke-width: 0.4; stroke-dasharray: 2 1; }
.artrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.artrow:first-of-type { border-top: 0; }
.pick-dialog { width: min(560px, 94vw); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }

/* Design Studio: choosing what to make */
.typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 22px; }
.typecard, .sizecard { position: relative; display: block; cursor: pointer; }
.typecard input, .sizecard input { position: absolute; opacity: 0; pointer-events: none; }
.typecard-body { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.typecard-body svg { width: 42px; height: 42px; fill: var(--green-600); stroke: var(--green-600); stroke-width: 3; stroke-linejoin: round; fill-opacity: 0.18; margin-bottom: 4px; }
.typecard:hover .typecard-body, .sizecard:hover .sizecard-body { border-color: var(--green-500); }
.typecard input:checked + .typecard-body, .sizecard input:checked + .sizecard-body { border-color: var(--green-600); background: var(--green-100); }
.typecard input:focus-visible + .typecard-body, .sizecard input:focus-visible + .sizecard-body { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.sizegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.sizecard-body { display: flex; flex-direction: column; gap: 8px; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; font-size: 0.86rem; text-align: center; }
.sizeshape { display: flex; align-items: center; justify-content: center; height: 78px; }
.sizeshape span { display: block; max-height: 100%; background: #fff; border: 2px solid var(--green-600); border-radius: 2px; }
.sizeshape span.custom { width: 46px; height: 46px; border-style: dashed; display: flex; align-items: center; justify-content: center; color: var(--green-600); font-weight: 700; }
.design-thumb { display: flex; align-items: center; justify-content: center; height: 170px; background: var(--bg); border-radius: 10px; padding: 8px; }
.design-thumb .flypreview { width: 100%; height: 100%; padding: 0; border: 0; background: none; }

/* Design Studio: the editor */
.sizechip { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: var(--green-100); color: var(--green-800); font-size: 0.85rem; font-weight: 600; }
.zoomer { display: inline-flex; align-items: center; gap: 6px; }
.design-canvas { align-items: flex-start; overflow: auto; max-height: 92vh; }
.design-canvas.zoomed { justify-content: flex-start; }
.designpage { flex: none; max-width: none; max-height: none; margin: 0 auto; } /* sized by design-editor.js to fit the screen */
.designpage .des-item { cursor: grab; }
.des-outline { fill: none; stroke: #06b6d4; stroke-width: 2; stroke-dasharray: 8 5; pointer-events: none; vector-effect: non-scaling-stroke; }
.des-handle { fill: #ffffff; stroke: #06b6d4; stroke-width: 2; vector-effect: non-scaling-stroke; }
.des-handle-nw, .des-handle-se { cursor: nwse-resize; }
.des-handle-ne, .des-handle-sw { cursor: nesw-resize; }
.des-handle-e, .des-handle-w { cursor: ew-resize; }
.des-rotate { cursor: grab; fill: #06b6d4; stroke: #ffffff; }
.des-stem { stroke: #06b6d4; stroke-width: 2; pointer-events: none; vector-effect: non-scaling-stroke; }
.des-safe { fill: none; stroke: #e11d8f; stroke-width: 1.5; stroke-dasharray: 6 5; pointer-events: none; vector-effect: non-scaling-stroke; opacity: 0.75; }
.des-guide { stroke: #e11d8f; stroke-width: 1; pointer-events: none; vector-effect: non-scaling-stroke; }
.export-dialog { width: min(560px, 94vw); }
.export-dialog .check { margin-bottom: 6px; }
@media print {
  .design-canvas { overflow: visible; max-height: none; }
  .designpage [data-ui] { display: none; }
  .designpage { width: 100% !important; height: auto !important; }
}
@media (min-width: 901px) {
  .design-canvas { position: sticky; top: 12px; } /* the design stays in view while the tools scroll */
}

/* Design Studio: industries and color themes */
.industrygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 22px; }
.typecard-body.industry { padding: 12px; }
.swatchrow { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.swatchrow svg { width: 34px; height: 34px; margin: 0 4px 0 0; stroke: none; fill-opacity: 1; }
.swatchrow i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.14); }
.themeswatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.themeswatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22); cursor: pointer; padding: 0; }
.themeswatches button:hover, .themeswatches button:focus-visible { box-shadow: 0 0 0 3px var(--green-500); outline: 0; }

/* Design Studio: color themes shown as strips of swatches */
.palettegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 10px 0 12px; }
.palettegrid > * { min-width: 0; }
.palettegroup { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.palettegroup .source { margin-top: auto; padding-top: 4px; font-style: italic; }
.paletterow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0; }
.paletterow .palettecard-body { padding: 6px; gap: 4px; border-radius: 10px; text-align: center; line-height: 1.25; }
.paletterow .swatchstrip { height: 30px; }
.palettegroup-mini { display: grid; gap: 4px; }
.palettetrio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.palettecard { position: relative; display: block; cursor: pointer; }
.palettecard input { position: absolute; opacity: 0; pointer-events: none; }
.palettecard-body { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.palettecard:hover .palettecard-body { border-color: var(--green-500); }
.palettecard input:checked + .palettecard-body { border-color: var(--green-600); background: var(--green-100); }
.palettecard input:focus-visible + .palettecard-body { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.palettecard .source { margin-top: auto; padding-top: 4px; font-style: italic; }
.swatchstrip { display: flex; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.16); }
.swatchstrip i { flex: 1; }
.palettelist { display: grid; gap: 10px; }
.palettepick { display: block; border: 2px solid var(--line); border-radius: 9px; background: #fff; padding: 4px; cursor: pointer; font: inherit; color: var(--ink); }
.palettepick .swatchstrip { height: 26px; }
.palettepick:hover { border-color: var(--green-500); }
.palettepick.on { border-color: var(--green-600); background: var(--green-100); }
.research { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; font-size: 0.9rem; }
.research summary { cursor: pointer; font-weight: 600; color: var(--green-600); }
.research ul { margin: 10px 0; padding-left: 18px; }
.research li { margin-bottom: 8px; line-height: 1.45; }

/* Organizer: seating problems */
.flash.warn { background: var(--amber-100); border-color: #f0d79a; color: #7a4d06; }
.seatalert { background: var(--red-100); border: 1px solid #f3c6c6; border-left: 5px solid var(--red); color: #7f2424; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.seatalert ul { margin: 6px 0; padding-left: 20px; }
.seatlist li { justify-content: flex-start; align-items: baseline; }
.seattag { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.seattag.conflict { background: var(--red-100); color: var(--red); }
.seattag.category { background: var(--amber-100); color: var(--amber); }
.boothmap g.flagged .map-booth { stroke: var(--amber); stroke-width: 1.4; }
.boothmap g.flagged.conflict .map-booth { stroke: var(--red); stroke-width: 1.8; }
.grid > * { min-width: 0; } /* lets wide tables scroll inside their card instead of stretching the page */

/* Inventory and bins */
details.card > summary { cursor: pointer; }
.photopick { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.photopick img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photopick input[type="file"] { max-width: 100%; }
.finder-label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.finder input { width: 100%; font-size: 1.1rem; padding: 12px 14px; }
.finder-answer { display: flex; flex-direction: column; gap: 2px; }
.finder-answer:not(:empty) { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--green-100); }
.finder-answer b { font-size: 2rem; line-height: 1.1; color: #1e3a8a; overflow-wrap: anywhere; }
.binrow { display: flex; flex-wrap: wrap; gap: 8px; }
.binchip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px; cursor: pointer; font: inherit; color: var(--ink); min-width: 110px; }
.binchip b { font-size: 1.15rem; }
.binchip.none b { font-size: 1rem; color: var(--muted); }
.binchip:hover { border-color: var(--green-500); }
.binchip.on { border-color: var(--green-600); background: var(--green-100); }
.binbadge { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.thumb { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb.empty { background: #edf1f7; }
.product-table td { vertical-align: middle; }
.product-table td.thumbcell, .product-table td:first-child { min-width: 0; width: 52px; }
.soldbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.soldbar input { flex: 1 1 220px; max-width: 340px; }
.sold-table { min-width: 520px; }
.sold-table td { vertical-align: middle; }
.sold-table td.num input { width: 92px; text-align: right; }
.verdict.more { border-top: 4px solid var(--ok); }
.verdict.stop { border-top: 4px solid var(--amber); }
.verdict-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.insight-table td:first-child { min-width: 200px; }
.cell-label { display: none; }
@media (max-width: 640px) {
  /* On a phone each product becomes a small block, so "Sold", the price and "Sold out" are all on screen without sideways scrolling. */
  .sold-table { min-width: 0; }
  .sold-table thead { display: none; }
  .sold-table tr { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
  .sold-table td { display: block; padding: 0; border: 0; text-align: left; min-width: 0 !important; }
  .sold-table td:first-child { grid-column: 1 / -1; }
  .sold-table td.num { text-align: left; }
  .sold-table td.num input { width: 100%; text-align: left; }
  .sold-table .cell-label { display: block; font-size: 0.75rem; color: var(--muted); }
  .sold-table td:last-child { padding-bottom: 8px; }
}

/* True hourly wage, promotions, show sums */
.wagebox { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--ok-100); }
.wagebox b { font-size: 1.7rem; line-height: 1.15; color: var(--ok-ink); }
.showticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; max-height: 240px; overflow: auto; padding: 4px 2px; }
.showticks .check { align-items: baseline; flex-wrap: wrap; }
.promo-verdict { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #edf1f7; }
.promo-verdict.better { background: var(--ok-100); }
.promo-verdict.worse { background: var(--red-100); }
.promo details > summary { cursor: pointer; color: var(--green-600); }
.sums { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.sums td { padding: 5px 0; border-top: 1px solid var(--line); }
.sums td:last-child { text-align: right; white-space: nowrap; }
.sums tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }

/* Label printing */
.labels-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.labels-tools > * + * { margin-top: 16px; }
.labelpick { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 2px; }
.labelpick .check { align-items: flex-start; }
.labelpick .check[hidden] { display: none; }
.labels-preview { min-width: 0; }
.labelpage { position: relative; background: #fff; color: #000; overflow: hidden; font-family: Arial, Helvetica, sans-serif; }
.labelcell { position: absolute; box-sizing: border-box; padding: 0.04in 0.08in; overflow: hidden; }
.labelpage.cut .labelcell { outline: 1px dashed #999; outline-offset: -0.5px; }
.lab { display: flex; gap: 0.06in; width: 100%; height: 100%; align-items: center; line-height: 1.15; }
.lab .lab-art { flex: none; height: 100%; aspect-ratio: 1; }
.lab .lab-art svg { display: block; width: 100%; height: 100%; }
.lab .lab-text { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow: hidden; max-height: 100%; }
.lab .lab-name { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lab .lab-variant, .lab .lab-bin, .lab .lab-code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab .lab-price { font-weight: 700; font-size: 1.35em; }
.lab .lab-code { font-family: "Courier New", monospace; font-size: 0.85em; }
.lab.bars { flex-direction: column; align-items: stretch; gap: 0.02in; }
.lab.bars .lab-text { flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; gap: 0 0.08in; align-items: baseline; }
.lab.bars .lab-name { -webkit-line-clamp: 1; }
.lab.bars .lab-price { font-size: 1.1em; margin-left: auto; }
.lab.bars .lab-art { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; width: 100%; }
.lab.bars .lab-code { text-align: center; flex: none; }
@media screen {
  .labels-preview { background: #dfe5e2; border-radius: var(--radius); padding: 14px; }
  .labelpage { zoom: var(--label-zoom, 1); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); margin: 0 auto 14px; }
  .labelcell { outline: 1px dotted #c5cdc9; outline-offset: -0.5px; }
}
@media (max-width: 900px) {
  .labels-layout { grid-template-columns: 1fr; }
}
@media print {
  html, body { margin: 0; }
  .shell { min-height: 0; } /* otherwise a blank sheet follows the last page of labels */
  .main { padding: 0 !important; } /* labels must start exactly at the corner of the sheet */
  .labels-layout { display: block; }
  .labels-preview { font-size: 0; } /* no stray line of text height between sheets */
  .labelpage { break-after: page; page-break-after: always; }
  .labelpage:last-child { break-after: auto; page-break-after: auto; }
}

/* Bins: a tote seen from the corner (closed, then lid up), then looked into from above. */
.toterow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.binchip.has-tote { align-items: center; text-align: center; min-width: 132px; padding-top: 8px; }
.binchip[aria-expanded="true"] { border-color: var(--green-600); background: var(--green-100); }
.tote-slot { display: block; width: 108px; }
.toteside { display: block; width: 100%; height: auto; overflow: visible; }
.toteside .lid-open { opacity: 0; transform: translate(0, 40px) scale(1, 0.6); transform-origin: 150px 150px; transition: opacity 0.35s 0.15s, transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1); }
.toteside .lid-closed { transition: opacity 0.3s, transform 0.45s; transform-origin: 150px 140px; }
.totestep { max-width: 440px; margin: 0 auto; transition: opacity 0.3s, transform 0.35s; }
.totestep.open .lid-closed { opacity: 0; transform: translate(-30px, -60px) rotate(-12deg); }
.totestep.open .lid-open { opacity: 1; transform: none; }
.totestep.leaving { opacity: 0; transform: scale(1.12) translateY(20px); }
.totestage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: start; }
.totestage[hidden] { display: none; }
.totestage-art { min-width: 0; min-height: 300px; }
.bintop-wrap { max-width: 560px; margin: 0 auto; }
.bintop { --w: 100%; width: var(--w); margin: 0 auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.16)); }
.bintop.small { --w: 72%; }
.bintop.medium { --w: 88%; }
.bintop-lid { height: 92px; margin: 0 1.5%; background: var(--lid); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); border-radius: 14px 14px 0 0; padding: 14px 7% 12px; display: flex;
  box-shadow: inset 0 -10px 0 var(--lid-dark); }
.bintop-lid-panel { flex: 1; border: 3px solid var(--lid-dark); border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0, transparent 17px, var(--lid-dark) 17px, var(--lid-dark) 20px); opacity: 0.85; }
.bintop.latch .bintop-lid::after { content: ""; }
.bintop-tub { background: var(--rim); border-radius: 18px; padding: 14px; border: 2px solid var(--dark); position: relative; z-index: 1; }
.bintop.crate .bintop-tub { border-radius: 8px; }
.bintop-well { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 10px; min-height: 150px; align-content: start;
  background: #111214; box-shadow: inset 0 14px 18px rgba(0, 0, 0, 0.55), inset 0 -8px 12px rgba(0, 0, 0, 0.35), inset 10px 0 12px rgba(0, 0, 0, 0.3), inset -10px 0 12px rgba(0, 0, 0, 0.3); }
.bintop.clear .bintop-well { background: #f3f7f8; box-shadow: inset 0 10px 14px rgba(0, 40, 60, 0.14), inset 0 -6px 10px rgba(0, 40, 60, 0.1); }
.bintop.crate .bintop-well { background: #1c3550; }
.bintop.latch .bintop-well { background: #2a2c2f; }
.bintop-front { height: 34px; margin: -8px 6% 0; background: linear-gradient(180deg, var(--body), var(--dark)); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
.bintop-empty { grid-column: 1 / -1; align-self: center; text-align: center; color: #9aa3a0; padding: 30px 0; }
.bintile { position: relative; aspect-ratio: 1 / 1.05; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; font: inherit; color: #fff; background: var(--tint);
  box-shadow: 0 5px 0 -1px color-mix(in srgb, var(--tint) 70%, #000), 0 9px 10px rgba(0, 0, 0, 0.45); animation: bin-drop 0.38s cubic-bezier(0.3, 1.25, 0.5, 1) both; }
.settled .bintile { animation: none; }
@keyframes bin-drop { from { opacity: 0; transform: translateY(-26px) scale(0.92); } to { opacity: 1; transform: none; } }
.bintile:hover { filter: brightness(1.08); }
.bintile.on { outline: 3px solid #fff; outline-offset: 2px; }
.bintile:focus-visible { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.bintile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bintile-fold { position: absolute; inset: 0; background:
  radial-gradient(ellipse 34% 16% at 50% 0, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0.28) 98%, transparent 100%),
  linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(0, 0, 0, 0.14)); }
.bintile-fold::after { content: ""; position: absolute; left: 50%; top: 15%; width: 20%; height: 9%; margin-left: -10%; border-radius: 2px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); }
.bintile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 0.74rem; font-weight: 700; line-height: 1.15; text-align: center; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bintile-count { position: absolute; top: 5px; right: 5px; padding: 1px 7px; border-radius: 10px; background: rgba(0, 0, 0, 0.72); font-size: 0.74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bintile.out { filter: grayscale(1) brightness(0.75); }
.bintile.out .bintile-count { background: var(--red); }
.bintop-under, .bintop-actions { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bintop-actions { border-color: var(--green-600); background: var(--green-100); }
.bintop-actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-basis: 100%; }
.bintop-actions-row select { width: auto; max-width: 100%; padding: 5px 8px; font-size: 0.85rem; }
.bintop-underlist { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.underchip { border: 1px solid var(--line); background: #f3f5f4; border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 0.82rem; cursor: pointer; color: var(--ink); }
.underchip:hover { border-color: var(--green-500); background: var(--green-100); }
.bintop-note { margin: 10px 0 0; font-size: 0.9rem; color: var(--green-600); }
.bintop-note.bad { color: var(--red); }
@media (max-width: 760px) {
  .totestage { grid-template-columns: 1fr; }
  .bintop.small, .bintop.medium { --w: 100%; }
  .bintop-lid { height: 64px; }
  .bintop-tub { padding: 9px; }
  .bintop-well { padding: 8px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bintile { animation: none; }
}

/* The till */
.sell-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sell-total { text-align: right; }
.sell-total b { display: block; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sell-last { margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; background: var(--ok-100); color: var(--ok-ink); border: 1px solid var(--ok-line); white-space: pre-wrap; }
.sell-last.bad { background: var(--red-100); color: #8f2222; border-color: #f7d3d3; }
.sell-last.undo { background: var(--amber-100); color: #7a4d06; border-color: #f0d79a; }
.sell-waiting { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--amber-100); color: #7a4d06; font-size: 0.9rem; }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sell-camera { position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.sell-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sell-aim { position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.25); }
.sell-look-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sell-look-head img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.sell-look-head > div { flex: 1; min-width: 0; }
.sell-look-head > b { font-size: 1.5rem; }
.soldrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.soldrow:first-child { border-top: 0; }
.soldrow-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soldrow b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.soldrow-sum { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.soldrow .btn.sm { min-width: 36px; padding: 6px 0; font-size: 1.05rem; line-height: 1; }
.tapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 70vh; overflow: auto; padding: 2px; }
.tap { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; min-height: 78px; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.tap[hidden] { display: none; }
.tap:hover { border-color: var(--green-500); }
.tap:active { background: var(--green-100); transform: scale(0.98); }
.tap.out { background: #f6f7f6; }
.tap-name { font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 22px; }
.tap-price { font-weight: 700; color: var(--green-600); }
.tap-sold { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green-600); color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tap-sold[hidden] { display: none; }
.sellpick { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.sellpick:hover { border-color: var(--green-500); background: var(--green-100); }
@media (max-width: 900px) {
  .sell-grid { grid-template-columns: 1fr; }
}

/* Show day */
.nav a.panic { background: var(--red); color: #fff; font-weight: 700; text-align: center; margin-bottom: 8px; }
.nav a.panic:hover, .nav a.panic.active { background: #b93232; color: #fff; }
.showday-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.showday-when { display: inline-block; padding: 3px 12px; border-radius: 99px; background: #edf1f7; font-weight: 700; font-size: 0.85rem; }
.showday-when.today { background: var(--red); color: #fff; }
.showday-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.showday-grid > * { min-width: 0; }
.showday-wide { grid-column: span 2; }
.showday-booth { display: flex; flex-direction: column; gap: 2px; }
.showday-booth b { font-size: 3.4rem; line-height: 1; overflow-wrap: anywhere; }
.showday-booth b.none { font-size: 1.4rem; line-height: 1.3; color: var(--muted); }
.showday-call { font-size: 1.1rem; padding: 12px 18px; }
.showday-emergency { border-left: 5px solid var(--red); }
.showday-missing { border-left: 5px solid var(--amber); }
.weather-main { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.weather-main b { font-size: 2.6rem; line-height: 1; }
.weather-tip { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--amber-100); color: #7a4d06; font-size: 0.9rem; }
.showday-weather > .muted.small { margin-top: 8px; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.checkrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.checkrow:hover { border-color: var(--green-500); }
.checkrow .checkbox { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #b9c4bf; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.checkrow.done { background: var(--ok-100); border-color: var(--ok-line); color: var(--muted); text-decoration: line-through; }
.checkrow.done .checkbox { background: var(--ok); border-color: var(--ok); }
.checklist-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.plainlist { margin: 4px 0 10px; padding-left: 18px; line-height: 1.6; }
.remember-row { display: flex; gap: 8px; margin-top: 4px; }
.remember-row input { flex: 1; min-width: 0; }
.remember-list { list-style: none; margin: 12px 0 0; padding: 0; }
.remember-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.reminder-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--purple-100); border: 1px solid #dccff5; color: #3d2a78; }
.reminder-card p { margin: 4px 0 0; font-size: 1.05rem; color: var(--ink); }
.voice-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice-btn { display: inline-flex; align-items: center; gap: 8px; }
.voice-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff6b6b; }
.voice.recording .voice-btn { background: var(--red); border-color: var(--red); }
.voice.recording .voice-dot { background: #fff; border-radius: 2px; animation: voice-pulse 1s infinite; }
@keyframes voice-pulse { 50% { opacity: 0.35; } }
.voice-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.voice-list { margin-top: 10px; }
.voice-item { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.voice-item audio { width: 100%; height: 36px; }
.voice-item form { margin: 0; }
.traffic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.traffic-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.traffic-box b { font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.traffic-buttons { display: flex; gap: 6px; margin-top: 8px; width: 100%; }
.traffic-plus { flex: 1; padding: 12px 6px; }
.traffic-rate { margin: 12px 0 8px; font-weight: 600; }
.traffic-rate:empty { display: none; }
@media (max-width: 1100px) {
  .showday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .showday-grid, .checklist { grid-template-columns: 1fr; }
  .showday-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .voice.recording .voice-dot { animation: none; }
}

/* Show journal */
.journal-year { margin: 22px 0 10px; font-size: 1.1rem; color: var(--muted); }
.journal { margin-bottom: 14px; scroll-margin-top: 16px; }
.journal-head { display: flex; gap: 14px; align-items: center; }
.journal-date { flex: none; width: 56px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.journal-date b { display: block; font-size: 1.5rem; }
.journal-date span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.journal-title { flex: 1; min-width: 0; }
.journal-title h3 { margin: 0; overflow-wrap: anywhere; }
.journal-sales { text-align: right; }
.journal-sales b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.journal-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; }
.journal-facts span { padding: 3px 10px; border-radius: 99px; background: #edf1f7; font-size: 0.86rem; }
.journal-facts .journal-weather { background: var(--blue-100); color: #1d4f85; }
.journal-line { margin: 12px 0 0; }
.journal-notes { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--green-500); background: #f6f8fc; border-radius: 0 8px 8px 0; }
.journal-remember { list-style: none; margin: 12px 0 0; padding: 0; }
.journal-remember li { padding: 8px 12px; margin-top: 6px; border-radius: 8px; background: var(--purple-100); }
.journal-remember li .small { display: block; }
.journal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.journal-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #edf1f7; }
.journal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-photo form { position: absolute; top: 4px; right: 4px; margin: 0; }
.journal-photo button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.journal-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.journal-edit > summary { cursor: pointer; color: var(--green-600); font-weight: 600; font-size: 0.92rem; }
.journal-edit form { margin-top: 12px; }
.journal-edit textarea { width: 100%; }
.weatherform { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 0 12px; }
.weatherlook { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.weatherlook input { flex: 0 1 220px; min-width: 0; }
.journal-upload { padding-top: 12px; border-top: 1px dashed var(--line); }

/* Seasonality map: one hue, light to dark, with the numbers always in ink */
.seasonmap { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 760px; font-variant-numeric: tabular-nums; }
.seasonmap thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 4px 2px; text-align: center; }
.seasonmap thead th:first-child, .seasonmap tbody th { text-align: left; }
.seasonmap thead th.empty { opacity: 0.5; }
.seasonmap tbody th { font-weight: 600; font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 6px 10px 6px 0; min-width: 150px; max-width: 240px; overflow-wrap: anywhere; }
.seasonmap td { text-align: center; padding: 8px 2px; min-width: 40px; border-radius: 4px; color: var(--ink);
  background: color-mix(in srgb, #3b78f6 calc(var(--level, 0) * 100%), #eef4f1); }
.seasonmap td.best { box-shadow: inset 0 0 0 2px var(--green-900); font-weight: 700; }
.seasonmap td.none { background: repeating-linear-gradient(135deg, #f6f8f7, #f6f8f7 5px, #eceff0 5px, #eceff0 10px); color: #a7b1ad; }
.seasonmap td[tabindex]:hover, .seasonmap td[tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.seasonmap td.bestin { background: none; text-align: left; padding-left: 10px; white-space: nowrap; color: var(--muted); font-size: 0.88rem; min-width: 80px; }
.seasonkey { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 0 8px; font-size: 0.82rem; color: var(--muted); }
.seasonkey i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px; border-radius: 3px; font-style: normal;
  background: color-mix(in srgb, #3b78f6 calc(var(--level, 0) * 100%), #eef4f1); }
.seasonkey i.none { background: repeating-linear-gradient(135deg, #f6f8f7, #f6f8f7 5px, #eceff0 5px, #eceff0 10px); }
.seasonkey i.best { box-shadow: inset 0 0 0 2px var(--green-900); }
.seasonkey-none { display: inline-flex; align-items: center; gap: 4px; margin-left: 14px; }
.weathercompare { gap: 24px; }
.weatherbar { padding: 8px 0; }
.weatherbar-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.weatherbar .layoutbar-track { margin-bottom: 4px; }
@media (max-width: 700px) {
  .weatherform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weatherform .field:first-child { grid-column: 1 / -1; }
  .journal-head { flex-wrap: wrap; }
  .journal-sales { text-align: left; flex-basis: 100%; }
}

/* Reviews */
.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; }
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; color: #d5dcd8; white-space: nowrap; vertical-align: middle; }
.stars::before { content: "★★★★★"; }
.stars b { position: absolute; left: 0; top: 0; overflow: hidden; color: #e0a100; font-weight: 400; }
.stars b::before { content: "★★★★★"; }
/* The picker lists 5 down to 1 and is flipped back with row-reverse, so "this star and all before it" can be lit with plain CSS. */
.starpick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 1.7rem; line-height: 1; color: #cfd7d3; cursor: pointer; margin: 0; padding: 0 1px; font-weight: 400; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #e0a100; }
.starpick input:focus-visible + label { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }
.review-summary { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 4px; }
.review-score { display: flex; flex-direction: column; gap: 4px; }
.review-score > b { font-size: 2.6rem; line-height: 1; }
.review-parts { flex: 1; min-width: 220px; }
.review-part { display: grid; grid-template-columns: minmax(0, 1fr) 90px 30px; gap: 10px; align-items: center; padding: 3px 0; font-size: 0.92rem; }
.review-meter { height: 8px; border-radius: 4px; background: #e6ece9; overflow: hidden; }
.review-meter i { display: block; height: 100%; background: #e0a100; border-radius: 4px; }
.review-part strong { text-align: right; font-variant-numeric: tabular-nums; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.review-aspects { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.review-aspects strong { color: var(--ink); }
.review-body { margin: 8px 0 0; }
.review-reply { margin: 10px 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--line); background: #f6f8fc; border-radius: 0 8px 8px 0; }
.review-reply p { margin: 2px 0 0; }
.review-tools { margin-top: 8px; }
.review-tools > summary, .reviewform > summary { cursor: pointer; color: var(--green-600); font-weight: 600; font-size: 0.92rem; }
.review-tools textarea, .reviewform textarea { width: 100%; margin: 8px 0; }
.reviewform { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.reviewform form { margin-top: 12px; }
.reviewform.compact { border-top: 0; padding-top: 0; margin-top: 6px; min-width: 240px; }
.reviewform.compact .field { margin-bottom: 8px; }
.reviewform.compact .starpick label { font-size: 1.35rem; }
.rategrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 700px) {
  .rategrid { grid-template-columns: 1fr; }
}

/* Restock plan, lost sales, best earner, setup library */
.restock-pick { display: flex; align-items: center; gap: 8px; }
.restock-pick select { width: auto; }
.restock-head { display: flex; flex-direction: column; gap: 4px; border-left: 6px solid var(--green-600); }
.restock-head b { font-size: 1.35rem; line-height: 1.3; }
.restock-head.lost { border-left-color: var(--red); }
.restock-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.restock-shows > div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.restock-make { display: inline-block; min-width: 30px; padding: 2px 8px; border-radius: 6px; background: var(--ok); color: #fff; text-align: center; }
.layoutbar-fill.lost { background: var(--red); }
.lostbuttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lostbuttons .btn { padding: 12px 8px; }
.lostdetail { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--amber-100); }
.lostdetail[hidden] { display: none; }
.lostnotes { list-style: none; margin: 0; padding: 0; }
.lostnotes li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.lostnotes li:first-child { border-top: 0; }
.lostnotes form { margin: 0; }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.leader { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.leader strong { overflow-wrap: anywhere; }
.setup { margin-bottom: 16px; scroll-margin-top: 16px; }
.setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.setup-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.setup-body > * { min-width: 0; }
.setup-list { display: grid; gap: 8px; margin-top: 12px; font-size: 0.92rem; }
.setup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.setup-stats .stat { padding: 10px; }
.setup-stats .stat b { font-size: 1.3rem; }
@media (max-width: 800px) {
  .setup-body { grid-template-columns: 1fr; }
}

/* Custom orders */
.orderlink { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.orderlink > div:first-child { flex: 1; min-width: 240px; overflow-wrap: anywhere; }
.orderqr { width: 132px; flex: none; }
.orderqr svg { display: block; width: 100%; height: auto; }
.orders { display: grid; gap: 12px; }
.ordercard { display: flex; gap: 14px; align-items: flex-start; border-left: 5px solid var(--line); }
.ordercard.late { border-left-color: var(--red); }
.ordercard.soon { border-left-color: var(--amber); }
.orderphoto { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.orderbody { flex: 1; min-width: 0; display: grid; gap: 4px; }
.orderhead { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.orderhead a { font-size: 1.05rem; color: var(--ink); }
.orderacts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.orderacts form { margin: 0; }
.orderacts .btn { width: 100%; text-align: center; }
body.orderpage { background: linear-gradient(160deg, var(--green-900), var(--green-600)); min-height: 100vh; }
.orderpage-main { max-width: 560px; margin: 0 auto; padding: 20px 14px 30px; }
.orderpage-main .card { padding: 22px; }
.orderpage-foot { text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.ordersign-page { background: #e9eeeb; }
.ordersign-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; }
.ordersign { background: #fff; color: #111; width: 7.3in; max-width: calc(100% - 28px); margin: 0 auto 30px; padding: 0.5in 0.5in 0.6in; text-align: center; border-radius: 12px; }
.ordersign-top { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.ordersign h1 { font-size: 3.6rem; line-height: 1.05; margin: 0 0 12px; }
.ordersign-sub { font-size: 1.35rem; margin: 0 0 18px; }
.ordersign-qr { width: 4.4in; max-width: 80%; margin: 0 auto; }
.ordersign-qr svg { display: block; width: 100%; height: auto; }
.ordersign-how { font-size: 1.1rem; margin: 14px 0 6px; }
.ordersign-link { font-family: "Courier New", monospace; font-size: 0.95rem; color: #444; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 640px) {
  .ordercard { flex-wrap: wrap; }
  .orderacts { flex-direction: row; width: 100%; }
  .orderacts form, .orderacts > a { flex: 1; }
}
@media print {
  body.ordersign-page { background: #fff; }
  .ordersign { width: auto; max-width: none; margin: 0; border-radius: 0; padding: 0.3in 0; }
}
.orderlink form.inline { display: inline-flex; margin: 0; vertical-align: middle; }

/* Booth photo check */
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.checktile { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.checktile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checktile-score { position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 99px; font-weight: 800; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.checktile-score.high { background: var(--ok); color: #fff; }
.checktile-score.mid { background: #f4c542; color: #3b2b00; }
.checktile-score.low { background: var(--red); color: #fff; }
.checktile-score.none { font-weight: 600; font-size: 0.8rem; }
.checktile-meta { display: block; padding: 8px 10px; font-size: 0.85rem; }
.boothcheck { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.boothcheck-photo { position: sticky; top: 12px; }
.boothcheck-frame { border-radius: 12px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; }
.boothcheck-frame img { display: block; width: 100%; max-height: 70vh; object-fit: contain; transition: filter 0.2s, transform 0.2s; }
.boothcheck-frame.squint img { filter: blur(7px); }
.boothcheck-frame.grey img { filter: grayscale(1) contrast(1.1); }
.boothcheck-frame.squint.grey img { filter: blur(7px) grayscale(1); }
.boothcheck-frame.small img { transform: scale(0.3); }
.boothcheck-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.boothcheck-tools .btn.on { background: var(--green-600); color: #fff; }
.boothcheck-dark { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--amber-100); color: #7a4d06; }
.boothcheck-live { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--green-100); margin-bottom: 12px; position: sticky; top: 12px; z-index: 2; }
.boothcheck-live b { font-size: 2rem; line-height: 1; min-width: 56px; text-align: center; color: #1e3a8a; }
.checkq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; background: #fff; min-width: 0; }
.checkq legend { font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: 10px; }
.checkq-answers { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.checkq-answer { margin: 0; cursor: pointer; }
.checkq-answer input { position: absolute; opacity: 0; }
.checkq-answer span { display: block; text-align: center; padding: 8px 4px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.9rem; }
.checkq-answer:hover span { border-color: var(--green-500); }
.checkq-answer input:focus-visible + span { outline: 3px solid #a9c4fb; outline-offset: 1px; }
.checkq-answer.yes input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.checkq-answer.partly input:checked + span { background: #f4c542; border-color: #dba800; color: #3b2b00; }
.checkq-answer.no input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.checkq-answer.unsure input:checked + span { background: #5d6b85; border-color: #5d6b85; color: #fff; }
.boothresult { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.boothresult-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 50%; color: #fff; background: var(--red); flex: none; }
.boothresult-score.high { background: var(--ok); }
.boothresult-score.mid { background: #f4c542; color: #3b2b00; }
.boothresult-score b { font-size: 2.3rem; line-height: 1; }
.boothresult-score span { font-size: 0.72rem; }
.fixlist { margin: 0; padding-left: 22px; }
.fixlist li { padding: 10px 0; border-top: 1px solid var(--line); }
.fixlist li:first-child { border-top: 0; }
.fixlist li p { margin: 4px 0 0; }
@media (max-width: 900px) {
  .boothcheck { grid-template-columns: 1fr; }
  .boothcheck-photo { position: static; }
  .boothcheck-frame img { max-height: 46vh; }
}

/* Backup finder */
.backupform { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.backupform .field { margin: 0; min-width: 150px; }
.backupmiles { flex: none; width: 76px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--green-100); color: #1e3a8a; line-height: 1.1; }
.backupmiles b { display: block; font-size: 1.6rem; }
.backupmiles span { font-size: 0.74rem; }
.backupmiles.unknown { background: #edf1f7; color: var(--muted); }

/* Organizer warnings and moderation */
.warningbox { border-left: 6px solid var(--red); }
.warningbox > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.warning { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.warning p { margin: 6px 0; }
.warning-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.reportkinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reportkind { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.reportkind:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }
.reportkind > span { display: flex; flex-direction: column; gap: 2px; }
.reportkind input { margin-top: 3px; }
.modcase { padding: 12px 0; border-top: 1px solid var(--line); }
.modcase:first-of-type { border-top: 0; }
.modcase-text { margin: 6px 0 10px; padding: 10px 12px; background: #f6f8fc; border-radius: 8px; }
.modcase-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.modcase-form input[type="text"] { flex: 1 1 260px; }
.flagtool > summary { font-weight: 400; font-size: 0.82rem; }
@media (max-width: 700px) {
  .reportkinds { grid-template-columns: 1fr; }
}

/* Navigation groups, the Insights tabs, and each show's own tabs */
.nav .label:first-of-type { padding-top: 8px; }
.nav a.feature { margin: 12px 0 2px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); font-weight: 700; color: #fff; }
.nav a.feature::after { content: attr(data-sub); display: block; font-size: 0.7rem; font-weight: 400; color: #9fb2d8; }
.nav a.feature.active { background: var(--green-500); border-color: var(--green-500); }
.nav a.feature.active::after { color: #e3ecff; }
.subnav { display: flex; gap: 4px; align-items: center; overflow-x: auto; margin: -6px 0 18px; padding: 4px; border-radius: 12px; background: #e7eeea; scrollbar-width: thin; }
.subnav a { flex: none; padding: 7px 12px; border-radius: 9px; color: var(--ink); font-size: 0.9rem; white-space: nowrap; }
.subnav a:hover { background: rgba(255, 255, 255, 0.7); text-decoration: none; }
.subnav a.active { background: #fff; font-weight: 700; color: var(--green-600); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.subnav-title { flex: none; padding: 0 8px 0 10px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.subnav .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
.insightgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.insightcard { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0; }
.insightcard:hover { border-color: var(--green-500); text-decoration: none; }
.insightcard-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.insightcard b { font-size: 1.7rem; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.insightcard b.words { font-size: 1.15rem; line-height: 1.3; }
.insightcard-go { margin-top: auto; padding-top: 8px; color: var(--green-600); font-weight: 600; font-size: 0.86rem; }
.insightcard-go::after { content: " \2192"; }
@media (max-width: 900px) {
  .nav a.feature::after { display: none; }
  .nav a.feature { margin: 0; }
}
[data-org-grid].one { grid-template-columns: 1fr; }
[data-org-grid].one > .stack:has(> :not([hidden])) { max-width: 1100px; }
[data-pane][hidden] { display: none !important; }

/* The menu folds away on a phone, leaving Show Day in reach */
.navtoggle { display: none; }
@media (max-width: 900px) {
  .navtoggle { display: inline-block; margin-left: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .sidebar .nav { flex: 1 1 100%; order: 5; }
  .sidebar:not(.open) .nav > :not(.nav-vendor), .sidebar:not(.open) .nav-vendor > :not(.panic) { display: none; }
  .sidebar:not(.open) .nav { flex: 0 0 auto; order: 0; }
  .sidebar:not(.open) .nav a.panic { margin: 0; }
  .sidebar.open .nav { margin-top: 8px; }
  .sidebar.open .navset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .sidebar.open .nav .label, .sidebar.open .navset-about { display: block; grid-column: 1 / -1; padding-top: 10px; }
  .sidebar.open .nav a.panic, .sidebar.open .nav a.feature { grid-column: 1 / -1; }
}
[data-org-grid] .stack { display: flex; flex-direction: column; gap: 16px; }
[data-org-grid] .stack > * { margin-top: 0; }

/* A vendor's page for one show */
.flow { list-style: none; display: flex; gap: 4px; margin: -6px 0 16px; padding: 0; overflow-x: auto; }
.flow li { flex: 1 0 auto; text-align: center; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: #e7eeea; border-radius: 99px; white-space: nowrap; }
.flow li.done { background: var(--ok-100); color: var(--ok); }
.flow li.now { background: var(--green-600); color: #fff; }
.centergrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.centergrid > * { min-width: 0; margin: 0; }
.centerwide { grid-column: 1 / -1; }
.centernow { border-top: 4px solid var(--green-600); }
.centerrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.centerrow:first-of-type { border-top: 0; padding-top: 0; }
.centerlinks { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) { .centergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .centergrid { grid-template-columns: 1fr; } }

/* The grouped menu is long, so it is tightened and scrolls on its own beside the page */
@media (min-width: 901px) {
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
  .nav a { padding: 6px 12px; font-size: 0.94rem; }
  .nav .label { padding: 12px 12px 3px; }
  .nav a.panic { padding: 9px 12px; }
  .nav a.feature { margin: 10px 0 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-rows: auto 1fr; }
}

.nav .label + a.feature { margin-top: 4px; margin-bottom: 6px; }

/* ----- Offline mode ----- */
.offbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px; background: #0a1733; color: #fff; font-size: 0.92rem; text-align: center; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18); }
.offbar.off { background: #8a4b00; }
.offbar a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.offbar[hidden], .offtoast[hidden] { display: none; }
.offtoast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 61; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 12px; background: #fff; color: #0a1733; border: 1px solid #c9dafc; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); font-weight: 600; }
body.is-offline .main { padding-bottom: 72px; }
.offrow { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line, #e3ebe7); }
.offrow:first-child { border-top: 0; }
.offrow.stuck { background: #fff6e5; margin: 0 -10px; padding: 10px; border-radius: 10px; border-top: 0; }
.offrow-why { color: #8a4b00; font-weight: 600; margin-top: 2px; }
@media print { .offbar, .offtoast { display: none !important; } }
.pill.green { background: var(--ok-100); color: var(--ok); }
.pill.amber { background: #fff1d6; color: #8a4b00; }


/* ================= Vendlii look ================= */
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--brand); }

/* Sidebar */
.sidebar { background: linear-gradient(180deg, #0a1733 0%, #0d1e42 100%); color: #c5d0e6; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; padding: 2px 10px 14px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav a { display: flex; align-items: center; gap: 10px; border-radius: 10px; color: #c5d0e6; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }
.nav .ni { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.nav .label { color: #7c8db3; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; }
.nav a.panic { justify-content: center; }
.nav a.feature { display: grid; grid-template-columns: 17px minmax(0, 1fr); column-gap: 10px; align-items: center; border: 1px solid rgba(110, 162, 255, 0.35); background: rgba(59, 120, 246, 0.14); color: #fff; }
.nav a.feature::after { grid-column: 2; color: #9fb2d8; }
.nav a.feature:hover { background: rgba(59, 120, 246, 0.24); }
.nav a.feature.active { background: var(--brand); border-color: var(--brand); }
.sidebar .me { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 8px 4px; font-size: 0.85rem; color: #9fb2d8; }
.sidebar .me .avatar { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.sidebar .me strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .me .me-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; align-items: center; }
.sidebar .me a, .sidebar .me button { color: #9fb2d8; margin: 0; }
.sidebar .me a:hover, .sidebar .me button:hover { color: #fff; }
.sidebar .me form { display: inline; }

/* Page */
.main { padding: 28px 34px 56px; }
.card, .stat { border-color: var(--line); box-shadow: var(--shadow); }
.card { padding: 20px; }
.btn { border-radius: 10px; background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25); transition: background 0.12s, box-shadow 0.12s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border-color: #b9cdf8; box-shadow: none; }
.btn.ghost:hover { background: var(--green-100); border-color: var(--brand); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], input[type=search], select, textarea { border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37, 99, 235, 0.2); border-color: var(--brand); }
.pill { font-weight: 600; }
.pill.pending { background: var(--blue-100); color: var(--brand-dark); }
.subnav a.active { color: var(--brand); }
.guest, body.orderpage { background: radial-gradient(1200px 600px at 85% -10%, #2a55c9 0%, transparent 60%), linear-gradient(160deg, #0a1733, #12306e); }
.guest .brand { color: var(--navy); justify-content: center; padding: 0 0 12px; }
.offbar { background: #0a1733; }

/* Dashboard tiles */
a.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff !important; border-color: var(--line) !important; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
a.stat:hover { text-decoration: none; border-color: #b9cdf8 !important; }
a.stat b { color: var(--ink); font-size: 1.55rem; }
.stat-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; }
.stat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat.blue .stat-icon { background: #6d4fd6; }
.stat.amber .stat-icon { background: #f5b82e; color: #3b2b00; }
.stat.red .stat-icon { background: #e8456b; }
.promo { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 20px; border-radius: var(--radius); color: #fff; background: radial-gradient(420px 220px at 100% 100%, #2a55c9 0%, transparent 70%), linear-gradient(140deg, #0a1733, #12306e); box-shadow: var(--shadow); }
.promo strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.promo span { color: #c5d0e6; font-size: 0.9rem; }
.promo .btn { margin-top: 8px; }
@media (max-width: 900px) {
  .main { padding: 18px 16px 48px; }
  .sidebar .me { display: block; padding: 4px 10px; }
  .sidebar .me .avatar, .sidebar .me .me-biz { display: none; }
  .sidebar .me .me-links { margin-top: 2px; }
  .brand { padding: 2px 6px; }
}
.nav a { font-size: 0.92rem; }
.nav a.feature { row-gap: 0; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; }
.nav a.feature::after { margin-top: 1px; }
.subnav { background: #e6ecf6; }
@media (max-width: 900px) { .sidebar .me { border-top: 0; } }

/* ----- Booth Layout Studio: item bar across the top, folding side sections, phone sheet ----- */
.itembar { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; }
.itembar-tabs { flex: none; display: inline-flex; padding: 3px; border-radius: 10px; background: #e6ecf6; }
.itembar-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.itembar-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(15, 27, 51, 0.14); }
.itembar-items[hidden] { display: none; }
.itembar-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.itembar-title { flex: none; width: 150px; padding-top: 6px; font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.itembar-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.itembar-items .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; padding: 5px 10px; font-size: 0.84rem; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 0; transition: transform 0.15s; flex: none; }
details.fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.fold > summary:hover h3 { color: var(--brand); }
details.fold[open] > summary { margin-bottom: 6px; }
.itempanel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
[data-panel-toggle] { display: none; }
@media (max-width: 900px) {
  .itembar { padding: 10px 12px; gap: 8px; flex-direction: column; align-items: stretch; }
  .itembar-tabs { align-self: flex-start; }
  .itembar-row { flex-direction: column; gap: 4px; }
  .itembar-title { width: auto; padding: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
  .itembar-items { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .itembar-items::-webkit-scrollbar { display: none; }
  .itembar-items .btn { padding: 8px 12px; }
  /* The selected item's settings: a bar pinned to the bottom that opens into a sheet, so nothing needs scrolling to. */
  .itempanel:has([data-panel-empty]:not([hidden])) { display: none; }
  .itempanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; margin: 0 !important; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px rgba(15, 27, 51, 0.18); max-height: 64vh; max-height: 64dvh; overflow-y: auto; overscroll-behavior: contain; }
  body.is-offline .itempanel { bottom: 46px; }
  [data-panel-toggle] { display: inline-block; flex: none; min-width: 72px; }
  .itempanel [data-panel] { display: flex; flex-direction: column; }
  .itempanel [data-panel] > [hidden] { display: none; }
  .itempanel:not(.open) [data-panel] > :not(.itempanel-head) { display: none; }
  .itempanel .itempanel-head { order: -2; position: sticky; top: -10px; background: #fff; padding: 2px 0 8px; z-index: 1; }
  .itempanel [data-cloth-group] { order: -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .itempanel [data-cloth-group][hidden] { display: none; }
  .itempanel [data-cloth-group] > .field:nth-child(n+3) { grid-column: 1 / -1; }
  .itempanel .field { margin-bottom: 8px; }
  .itempanel .hint { display: none; }
  .itempanel-actions { display: none; }
  .map-layout.planner { padding-bottom: 76px; }
}
@media (max-width: 900px) { .itempanel [data-panel][hidden] { display: none; } }
.itembar, .itembar-items { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .itempanel { max-height: 56vh; max-height: 56dvh; }
  .itempanel .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
}

/* The rotate node on the plan */
.lay-rot { cursor: grab; touch-action: none; }
.lay-rot:active { cursor: grabbing; }
.lay-rot-stem { stroke: #06b6d4; stroke-width: 0.5; }
.lay-rot-hit { fill: transparent; }
.lay-rot-dot { fill: #06b6d4; stroke: #fff; stroke-width: 0.6; }
.lay-rot-arrow { fill: none; stroke: #fff; stroke-width: 0.55; stroke-linecap: round; }

/* ----- The selected item's settings as a bar above the plan (computers and tablets) ----- */
@media (min-width: 901px) {
  .itempanel { grid-column: 1 / -1; padding: 8px 16px; min-height: 86px; display: flex; align-items: center; min-width: 0; border-color: #c9dafc; }
  .itempanel:has([data-panel]:not([hidden])) { background: #f7faff; }
  .itempanel [data-panel-empty] { display: flex; align-items: baseline; gap: 12px; }
  .itempanel [data-panel-empty][hidden] { display: none; }
  .itempanel [data-panel-empty] h3 { white-space: nowrap; color: var(--muted); }
  .itempanel [data-panel-empty] p { margin: 0; }
  .itempanel [data-panel] { display: flex; align-items: flex-end; gap: 14px; width: 100%; min-width: 0; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; }
  .itempanel [data-panel][hidden], .itempanel [data-panel] [hidden] { display: none !important; }
  .itempanel [data-panel] > * { flex: none; margin: 0 !important; }
  .itempanel .itempanel-head { order: -3; align-self: center; max-width: 150px; padding-right: 14px; border-right: 1px solid var(--line); }
  .itempanel .itempanel-head h3 { font-size: 0.95rem; line-height: 1.2; }
  .itempanel [data-cloth-group] { order: -2; }
  .itempanel [data-cloth-group], .itempanel [data-hang-group], .itempanel [data-photo-group], .itempanel .form-grid, .itempanel [data-logo-options], .itempanel [data-cloth-art-options] { display: flex; align-items: flex-end; gap: 12px; }
  .itempanel .field { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 !important; padding-top: 17px; min-width: 76px; flex: none; }
  .itempanel .field > label { position: absolute; top: 0; left: 0; margin: 0; font-size: 0.7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .itempanel .hint { display: none !important; }
  .itempanel input[type=text] { width: 140px; }
  .itempanel input[type=number] { width: 78px; }
  .itempanel input[type=range] { width: 110px; }
  .itempanel select { width: auto; max-width: 190px; margin: 0 !important; }
  .itempanel input[type=text], .itempanel input[type=number], .itempanel select { padding: 6px 8px; font-size: 0.88rem; }
  .itempanel .inline { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0 !important; }
  .itempanel .btn.sm, .itempanel .linkbtn { white-space: nowrap; margin: 0 !important; }
  .itempanel .field:has(> [data-field="up"]) { min-width: 200px; }
  .itempanel .field:has(> #lay-hang-size) { min-width: 130px; }
  .itempanel .itempanel-actions { margin-left: auto !important; padding-left: 14px; border-left: 1px solid var(--line); }
}
@media (min-width: 901px) { .itempanel .itempanel-actions { display: none; } }

/* ----- Phone: icons for the selected item's settings, and pictures to pick a tablecloth ----- */
.itempanel-tabs, .itempanel-close, .clothtiles, .swatchrow { display: none; }
@media (max-width: 900px) {
  .itempanel { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .itempanel .itempanel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; align-items: center; position: static; padding: 0; }
  .itempanel .itempanel-head h3 { font-size: 0.82rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .itempanel-close { display: block; border: 0; background: #edf1f7; color: var(--ink); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
  .itempanel-close[hidden] { display: none; }
  .itempanel-tabs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .itempanel-tabs::-webkit-scrollbar { display: none; }
  .itempanel-tabs button { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer; }
  .itempanel-tabs button[hidden] { display: none; }
  .itempanel-tabs button svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .itempanel-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
  .itempanel-tabs button.on svg { stroke: #fff; }
  .itempanel.open [data-panel] > .itempanel-head { margin-bottom: 10px; }
  .itempanel .sec-off { display: none !important; }
  .itempanel [data-cloth-group] { display: block; border: 0; padding: 0; margin: 0; }
  .itempanel [data-cloth-group][hidden] { display: none; }
  .itempanel:not(.open) [data-panel] > :not(.itempanel-head) { display: none !important; }
  .itempanel [data-sec] > label, .itempanel [data-sec="hang"] label, .itempanel [data-sec="photo"] label { font-size: 0.8rem; }
  .itempanel #lay-cloth { display: none; }
  .clothtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .clothtile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 0.68rem; font-weight: 600; color: var(--ink); cursor: pointer; }
  .clothtile svg { width: 100%; max-width: 54px; height: auto; fill: #9fb6e8; stroke: #33507f; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .clothtile.on { border-color: var(--brand); background: var(--green-100); }
  .swatchrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; width: 100%; }
  .swatchdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #b8c3d6; cursor: pointer; padding: 0; }
  .itempanel [data-sec="color"] { display: block; }
}
@media (max-width: 900px) { .itempanel-close { grid-row: 1; grid-column: 2; } .itempanel .itempanel-head h3 { grid-row: 1; grid-column: 1; line-height: 28px; } }

/* ----- The big 2D / 3D switch on top of the plan ----- */
.viewswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 auto 12px; max-width: 560px; border-radius: 14px; background: #e6ecf6; }
.viewswitch button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: background 0.12s, color 0.12s; }
.viewswitch button:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.viewswitch svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.viewswitch b { display: block; font-size: 1rem; line-height: 1.15; }
.viewswitch small { display: block; font-size: 0.74rem; font-weight: 500; opacity: 0.85; }
.viewswitch button.on { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35); }
@media (max-width: 900px) {
  .viewswitch { position: sticky; top: 6px; z-index: 20; margin-bottom: 8px; box-shadow: 0 2px 10px rgba(15, 27, 51, 0.12); }
  .viewswitch button { padding: 10px 8px; gap: 8px; }
  .viewswitch small { display: none; }
}

/* ----- Tent walls you can click, and their bar ----- */
.lay-tent .lay-wall-hit { pointer-events: stroke; stroke: transparent; stroke-width: 6; cursor: pointer; }
.lay-tent .lay-wall-hit:hover { stroke: rgba(6, 182, 212, 0.28); }
.lay-tent .lay-wall-hit.open:hover { stroke: rgba(6, 182, 212, 0.2); stroke-dasharray: 4 3; }
.lay-tent .lay-wall-hit.selected { stroke: rgba(6, 182, 212, 0.55); }
.lay-tent .lay-wall-hit.open.selected { stroke-dasharray: 4 3; }
.lay-tent-wall-edge.selected { stroke: #06b6d4 !important; }
.wallpanel { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; }
.wallpanel[hidden] { display: none; }
.wallpanel-head { flex: none; max-width: 190px; padding-right: 16px; border-right: 1px solid var(--line); }
.wallpanel-head h3 { font-size: 0.95rem; }
.wallpanel-head span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallpanel-acts { display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding: 2px; scrollbar-width: none; }
.wallpanel-acts::-webkit-scrollbar { display: none; }
.iconbtn { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 84px; padding: 8px 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.iconbtn[hidden] { display: none; }
.iconbtn:hover { border-color: var(--brand); background: var(--green-100); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.danger svg { stroke: var(--red); }
.iconbtn.danger:hover { border-color: var(--red); background: var(--red-100); }
.iconbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.iconbtn.on svg { stroke: #fff; }
.wallpanel-color input[type=color] { width: 30px; height: 22px; padding: 0; border: 1px solid #b8c3d6; border-radius: 6px; background: none; cursor: pointer; }
@media (max-width: 900px) {
  .wallpanel { flex-direction: column; align-items: stretch; gap: 6px; }
  .wallpanel-head { max-width: none; border: 0; padding: 0; display: flex; align-items: baseline; gap: 8px; }
  .wallpanel-head h3 { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
  .iconbtn { min-width: 72px; padding: 7px 6px 5px; font-size: 0.68rem; }
}

/* ----- Is this event legit? ----- */
.legit-top { border-left: 6px solid #9aa7bd; }
.legit-top.tone-good { border-left-color: var(--ok); }
.legit-top.tone-caution { border-left-color: #d98a00; background: #fffaf0; }
.legit-top.tone-warning { border-left-color: var(--red); background: #fff5f6; }
.legit-verdict { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: flex-end; }
.legit-verdict > div > span { display: block; }
.legit-status { display: block; font-size: 1.6rem; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.15; }
.legit-confidence { display: block; font-size: 1.15rem; text-transform: uppercase; }
.tone-good .legit-status { color: var(--ok); }
.tone-caution .legit-status { color: #9a5b00; }
.tone-warning .legit-status { color: #b3202f; }
.legit-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.legit-badges:empty { display: none; }
.legit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.legit-actions .muted { margin-right: auto; }
.legit-signal { padding: 10px 12px; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); background: #fff; }
.legit-signal p { margin: 3px 0 0; font-size: 0.9rem; color: var(--muted); }
.legit-signal.positive { border-color: var(--ok-line); background: var(--ok-100); }
.legit-signal.positive strong { color: var(--ok-ink); }
.legit-signal.concern { border-color: #f0d79a; background: #fff8e8; }
.legit-signal.critical { border-color: #f1b5bc; background: var(--red-100); }
.legit-signal.critical strong { color: #b3202f; }
.legit-signal.note { background: #f6f8fc; }
.legit-missing { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.legit-missing li { margin: 3px 0; }
.legit-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #c9dafc; background: var(--green-100); color: var(--ink); text-decoration: none; border-left: 6px solid #9aa7bd; }
.legit-button:hover { text-decoration: none; border-color: var(--brand); }
.legit-button.tone-good { border-left-color: var(--ok); }
.legit-button.tone-caution { border-left-color: #d98a00; background: #fffaf0; border-color: #f0d79a; }
.legit-button.tone-warning { border-left-color: var(--red); background: #fff5f6; border-color: #f1b5bc; }
.legit-button strong { display: block; }
.legit-button small { color: var(--muted); }
.tone-pill-good { background: var(--ok-100); color: var(--ok); }
.tone-pill-caution { background: #fff1d6; color: #8a4b00; }
.tone-pill-warning { background: var(--red-100); color: var(--red); }
.verify-item { padding: 10px 0; border-top: 1px solid var(--line); }
.verify-item:first-of-type { border-top: 0; }
.trust-row { padding: 12px 0; border-top: 1px solid var(--line); }
.trust-row:first-of-type { border-top: 0; padding-top: 4px; }
.trust-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.trust-form select { width: auto; }
.trust-form input[type=text] { flex: 1 1 220px; }
.trust-row .form-grid, .review-tools .form-grid { gap: 6px 10px; margin-bottom: 6px; }
.trust-row > input, .review-tools form > input, .review-tools form > select, .review-tools form > textarea { margin-bottom: 6px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }

/* ================= Venue Layout Studio ================= */
.vs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.vs-savebox { display: flex; align-items: center; gap: 12px; }
.vs-savebox .btn { display: inline-flex; align-items: center; gap: 6px; }
.vs-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 14px; margin-bottom: 10px; }
.vs-switch { margin: 0; max-width: 300px; flex: 1 1 240px; }
.vs-switch button { padding: 7px 10px; }
.vs-switch b { font-size: 0.95rem; }
.vs-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.vs-inline select { width: auto; padding: 5px 8px; }
.vs-count { margin-left: auto; }
.vs-body { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; gap: 10px; align-items: start; }
.vs-tools, .vs-side { padding: 12px; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; position: sticky; top: 10px; scrollbar-width: thin; }
.vs-toolgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.vs-tool { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 0.68rem; font-weight: 600; cursor: pointer; line-height: 1.1; }
.vs-tool .vs-ic { width: 22px; height: 22px; stroke: var(--brand); }
.vs-tool:hover { border-color: var(--brand); background: var(--green-100); }
.vs-tool.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.vs-tool.on .vs-ic { stroke: #fff; }
.vs-toolopts { margin-top: 8px; }
.vs-toolopts select { margin-top: 3px; }
.vs-h { margin: 16px 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.vs-palette { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.vs-palette button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 0.84rem; text-align: left; cursor: pointer; color: var(--ink); }
.vs-palette button:hover { background: var(--green-100); }
.vs-palette button.on { border-color: var(--brand); background: var(--green-100); }
.vs-palette i { width: 14px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(15, 27, 51, 0.25); }
.vs-stagewrap { min-width: 0; }
.vs-stage { position: relative; padding: 0; overflow: hidden; height: calc(100vh - 262px); height: calc(100dvh - 262px); min-height: 380px; background: #dfe5ee; }
.vs-svg, .vs-three { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; }
.vs-three[hidden] { display: none; }
.vs-three canvas { display: block; }
.vs-svg[data-mode="select"] { cursor: default; }
.vs-svg:not([data-mode="select"]) { cursor: crosshair; }
.vs-hint { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 120px); padding: 6px 10px; border-radius: 8px; background: rgba(10, 23, 51, 0.82); color: #fff; font-size: 0.8rem; pointer-events: none; }
.vs-hint:empty { display: none; }
.vs-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.vs-zoom[hidden] { display: none; }
.vs-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.vs-zoom button:hover { border-color: var(--brand); }
.vs-cams { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.vs-cams[hidden] { display: none; }
.vs-cams button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.95); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.vs-cams button:hover, .vs-cams button.on { border-color: var(--brand); color: var(--brand); }
.vs-cams .vs-ic { width: 16px; height: 16px; }
.vs-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding: 8px; margin-top: 10px; }
.vs-act { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 72px; padding: 6px 6px 4px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.vs-act .vs-ic { width: 26px; height: 26px; padding: 0; margin-bottom: 2px; }
.vs-act small { font-weight: 500; color: var(--muted); font-size: 0.68rem; }
.vs-act:hover:not(:disabled) { background: var(--green-100); color: var(--brand); }
.vs-act.danger:hover:not(:disabled) { background: var(--red-100); color: var(--red); }
.vs-act:disabled { opacity: 0.35; cursor: not-allowed; }
.vs-sep { width: 1px; background: var(--line); margin: 4px 4px; }
.vs-menu { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 27, 51, 0.2); width: min(380px, 92vw); }
.vs-menu[hidden] { display: none; }
.vs-menu button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 0.84rem; cursor: pointer; text-align: left; color: var(--ink); }
.vs-menu button:hover { border-color: var(--brand); background: var(--green-100); }
.vs-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: #e6ecf6; }
.vs-tabs button { flex: 1 1 auto; padding: 5px 6px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.vs-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(15, 27, 51, 0.14); }
.vs-tabs b { display: inline-block; min-width: 17px; padding: 0 4px; border-radius: 9px; background: #d98a00; color: #fff; font-size: 0.68rem; line-height: 17px; }
.vs-tabs b[hidden] { display: none; }
.vs-side label.small, .vs-dialog label.small { display: block; margin-bottom: 8px; font-weight: 600; }
.vs-side label.small span, .vs-dialog label.small span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 0.74rem; }
.vs-side label.small input, .vs-side label.small select, .vs-dialog label.small input, .vs-dialog label.small select { margin-top: 2px; padding: 6px 8px; font-size: 0.88rem; }
.vs-side .form-grid, .vs-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.vs-side .check, .vs-dialog .check { display: flex; margin: 4px 0; }
.vs-propbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.vs-vendorpick { width: 100%; margin: 6px 0; padding: 4px; font-size: 0.86rem; }
.vs-chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; background: #edf1f7; color: var(--muted); white-space: nowrap; }
.vs-chip.st-reserved { background: #fff1d6; color: #8a4b00; }
.vs-chip.st-unavailable { background: #e5e7eb; color: #374151; }
.vs-chip.st-sponsor { background: var(--purple-100); color: var(--purple); }
.vs-chip.st-assigned { background: var(--blue-100); color: var(--brand-dark); }
.vs-chip.st-paid { background: var(--ok-100); color: var(--ok); }
.vs-warning { display: block; width: 100%; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #f0d79a; border-radius: 10px; background: #fff8e8; font: inherit; font-size: 0.84rem; text-align: left; cursor: pointer; color: #5c3b00; }
.vs-warning:hover { border-color: #d98a00; }
.vs-vendor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; width: 100%; margin-bottom: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.vs-vendor strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-vendor .muted { grid-column: 1; }
.vs-vendor .vs-chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.vs-vendor:hover { border-color: var(--brand); }
.vs-layer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.vs-layer .check { margin: 0; }
.vs-version { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.vs-scan { margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff8e8; border: 1px solid #f0d79a; }
.vs-scan[hidden] { display: none; }
.vs-reviewnote { padding: 8px 10px; border-radius: 8px; background: #fff8e8; border: 1px solid #f0d79a; color: #5c3b00; }
.vs-dialog { border: 0; border-radius: 16px; padding: 22px; width: min(520px, 94vw); box-shadow: 0 24px 60px rgba(10, 23, 51, 0.35); }
.vs-dialog::backdrop { background: rgba(10, 23, 51, 0.45); }

/* The plan itself */
.vs-floor { fill: #fff; stroke: #9aa7bd; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vs-grid { fill: none; stroke: #e9eef6; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-grid.heavy { stroke: #d5deeb; }
.vs-ref { cursor: move; }
.vs-ref.locked { pointer-events: none; }
.vs-room polygon { stroke: rgba(15, 27, 51, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vs-room.kind-boundary polygon { fill-opacity: 0; stroke: #dc3b4b; stroke-width: 2; stroke-dasharray: 10 6; }
.vs-room.kind-restricted polygon { stroke: #dc3b4b; stroke-dasharray: 6 4; }
.vs-roomname { fill: rgba(15, 27, 51, 0.5); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vs-wall-line { stroke: #1f2a44; stroke-linecap: butt; }
.vs-wall.review .vs-wall-line { stroke: #d98a00; stroke-dasharray: 14 8; }
.vs-hit { stroke: transparent; fill: none; }
.vs-gap { stroke: #fff; }
.vs-glass { stroke: #38bdf8; }
.vs-swing { fill: rgba(37, 99, 235, 0.07); stroke: #2563eb; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.vs-opening.emergency .vs-swing { stroke: #dc3b4b; fill: rgba(220, 59, 75, 0.08); }
.vs-opening.review .vs-gap { stroke: #ffe6a8; }
.vs-wall, .vs-opening, .vs-room, .vs-object, .vs-booth { cursor: pointer; }
.vs-svg:not([data-mode="select"]) .vs-wall, .vs-svg:not([data-mode="select"]) .vs-room, .vs-svg:not([data-mode="select"]) .vs-object, .vs-svg:not([data-mode="select"]) .vs-booth, .vs-svg:not([data-mode="select"]) .vs-opening { pointer-events: none; }
.vs-object .vs-shape { fill-opacity: 0.9; stroke-width: 1; vector-effect: non-scaling-stroke; stroke: rgba(15, 27, 51, 0.5); }
.vs-object.flat .vs-shape { fill-opacity: 0.16; stroke-opacity: 0.9; stroke-width: 1.5; }
.vs-object.zone .vs-shape { fill-opacity: 0.12; stroke-dasharray: 8 5; stroke-width: 2; }
.vs-object.text .vs-shape { fill-opacity: 0; stroke-opacity: 0; }
.vs-objname { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: rgba(15, 27, 51, 0.55); stroke-width: 0.6; }
.vs-object.flat .vs-objname { fill: #0f1b33; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.2; }
.vs-object.text .vs-objname { stroke: none; }
.vs-booth .vs-shape { fill: #f4f7fd; stroke: #2563eb; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vs-booth.st-reserved .vs-shape { fill: #fff1d6; stroke: #d98a00; stroke-dasharray: 6 4; }
.vs-booth.st-unavailable .vs-shape { fill: #e5e7eb; stroke: #6b7280; }
.vs-booth.st-sponsor .vs-shape { fill: #efeafd; stroke: #6d4fd6; }
.vs-booth.st-assigned .vs-shape { fill: #dbe7fd; stroke: #1d4ed8; stroke-width: 2.5; }
.vs-booth.st-paid .vs-shape { fill: #dff3e6; stroke: #15803d; stroke-width: 2.5; }
.vs-boothnum { fill: #0f1b33; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vs-boothwho { fill: #33415c; font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vs-boothmark { fill: #0f1b33; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vs-svg .locked { opacity: 0.75; }
.vs-dim { fill: #4a5875; font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 0.25em; }
.vs-sel { fill: rgba(6, 182, 212, 0.1); stroke: #06b6d4; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-sel-wall { stroke: rgba(6, 182, 212, 0.55); pointer-events: none; }
.vs-handle { fill: #fff; stroke: #06b6d4; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: move; }
.vs-handle.corner { cursor: nwse-resize; }
.vs-handle.turn { fill: #06b6d4; stroke: #fff; cursor: grab; }
.vs-stem { stroke: #06b6d4; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-marquee { fill: rgba(37, 99, 235, 0.08); stroke: #2563eb; stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-preview { fill: rgba(37, 99, 235, 0.1); stroke: #2563eb; stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-preview-wall { stroke: rgba(31, 42, 68, 0.55); pointer-events: none; }
.vs-measure { stroke: #dc3b4b; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-dot { fill: #dc3b4b; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-tag { pointer-events: none; }
.vs-tag rect { fill: #0a1733; }
.vs-tag text { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
@media (max-width: 1200px) {
  .vs-body { grid-template-columns: 180px minmax(0, 1fr); }
  .vs-side { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 900px) {
  .vs-body { grid-template-columns: 1fr; }
  .vs-tools { position: static; max-height: none; }
  .vs-toolgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vs-palette { flex-direction: row; overflow-x: auto; }
  .vs-palette button { white-space: nowrap; border-color: var(--line); }
  .vs-stage { height: 62vh; height: 62dvh; }
  .vs-act { min-width: 58px; }
  .vs-act small { display: none; }
  .vs-count { display: none; }
}
@media print { .vs-tools, .vs-side, .vs-actions, .vs-bar, .vs-zoom, .vs-hint { display: none !important; } .vs-body { display: block; } .vs-stage { height: 90vh; } }

body.vs-full .shell { grid-template-columns: minmax(0, 1fr); }
body.vs-full .sidebar { display: none; }
body.vs-full .main { padding: 14px 18px 24px; }
body.vs-full .vs-stage { height: calc(100vh - 236px); height: calc(100dvh - 236px); }
body.vs-full .vs-tools, body.vs-full .vs-side { max-height: calc(100vh - 124px); max-height: calc(100dvh - 124px); }

/* Venue library: the three ways to start a venue */
.venuestarts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.venuestart { cursor: pointer; display: block; }
.venuestart input { position: absolute; opacity: 0; }
.venuestart span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 2px solid var(--line, #e2e8f2); border-radius: 12px; background: #fff; }
.venuestart svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.venuestart small { color: var(--muted); line-height: 1.35; }
.venuestart input:checked + span { border-color: var(--brand); background: #eef4ff; }
.venuestart input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
@media (max-width: 640px) { .venuestarts { grid-template-columns: 1fr; } }
.boothnote { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #c7d9fb; background: #eef4ff; border-radius: 12px; }
.boothnote b { display: block; font-size: 1.05rem; }

/* Roads and paths are solid ground, not a tinted zone */
.vs-object.flat.road .vs-shape { fill-opacity: 0.92; stroke-opacity: 0.4; stroke-width: 1; }
.vs-booth.type-hut .vs-shape { stroke-width: 2.5; }

.vs-object.flat.ground .vs-shape { fill-opacity: 1; stroke-opacity: 0.25; }

/* ---------- Booth Render Studio ---------- */
.renderbtn { background: linear-gradient(135deg, #2563eb, #7c3aed); border-color: transparent; }
.renderbtn:hover { filter: brightness(1.08); }
body.rs-open { overflow: hidden; }
.rs { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: #eef1f6; color: var(--ink, #0f1b33); }
.rs[hidden] { display: none; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e2e8f2; flex: none; }
.rs-head h2 { margin: 0; font-size: 1.15rem; }
.rs-head p { margin: 0; }
.rs-status { font-size: 0.86rem; color: var(--muted); max-width: 46ch; }
.rs-status.ok { color: #15803d; }
.rs-status.warn { color: #b45309; }
.rs-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; }
.rs-panel { overflow-y: auto; background: #fff; padding: 12px 14px 20px; }
.rs-left { border-right: 1px solid #e2e8f2; }
.rs-right { border-left: 1px solid #e2e8f2; }
.rs-panel section { padding: 10px 0 12px; border-bottom: 1px solid #eef1f6; }
.rs-panel section:last-child { border-bottom: 0; }
.rs-panel h3 { margin: 0 0 6px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rs-panel p { margin: 0 0 8px; }
.rs-field { display: block; font-size: 0.86rem; font-weight: 600; margin: 8px 0; }
.rs-field select, .rs-field input, .rs-field textarea { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.rs-cams, .rs-saved { display: grid; gap: 4px; margin-bottom: 8px; }
.rs-cam { display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 1.5px solid #e2e8f2; border-radius: 10px; background: #fff; }
.rs-cam.on { border-color: var(--brand); background: #eef4ff; }
.rs-cam.off { opacity: 0.55; }
.rs-cam > button:not(.rs-x) { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 7px 0; cursor: pointer; color: inherit; font: inherit; }
.rs-cam b, .rs-tile b { display: block; font-size: 0.9rem; }
.rs-cam small, .rs-tile small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.25; }
.rs-x { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rs-chip { border: 1.5px solid #d6deea; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; color: inherit; }
.rs-chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.rs-tiles { display: grid; gap: 5px; margin-bottom: 8px; }
.rs-tile { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid #e2e8f2; background: #fff; border-radius: 10px; padding: 6px 8px; cursor: pointer; font: inherit; color: inherit; }
.rs-tile.on { border-color: var(--brand); background: #eef4ff; }
.rs-swatch { width: 38px; height: 30px; border-radius: 6px; flex: none; border: 1px solid rgba(15, 27, 51, 0.15); }
.rs-slider { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; font-size: 0.84rem; margin: 6px 0; }
.rs-q { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rs-q legend { font-size: 0.86rem; font-weight: 600; padding: 0; }
.rs-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px; gap: 10px; }
.rs-stagewrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.rs-stage { background: #fff conic-gradient(#e8ebf0 25%, #fff 0 50%, #e8ebf0 0 75%, #fff 0) 0 0 / 22px 22px; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(15, 27, 51, 0.16); }
.rs-progress { position: absolute; inset: auto 50% 18px auto; transform: translateX(50%); min-width: 260px; background: rgba(15, 27, 51, 0.92); color: #fff; padding: 12px 16px; border-radius: 12px; display: grid; gap: 6px; }
.rs-progress[hidden] { display: none; }
.rs-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.rs-bar i { display: block; height: 100%; width: 0; background: #60a5fa; transition: width 0.2s; }
.rs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: none; }
.rs-gallery { flex: none; background: #fff; border-top: 1px solid #e2e8f2; padding: 8px 16px 10px; }
.rs-gallery-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.rs-gallery-head h3 { margin: 0; font-size: 0.95rem; }
.rs-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; min-height: 40px; }
.rs-thumb { margin: 0; flex: none; width: 168px; }
.rs-thumb-img { display: block; width: 100%; height: 96px; padding: 0; border: 1.5px solid #e2e8f2; border-radius: 8px; overflow: hidden; background: #f2f5fb; cursor: zoom-in; }
.rs-thumb.fav .rs-thumb-img { border-color: #f59e0b; }
.rs-thumb-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rs-thumb figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 0.78rem; margin-top: 3px; }
.rs-thumb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rs-over { position: absolute; inset: 0; z-index: 5; background: rgba(15, 27, 51, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rs-over[hidden] { display: none; }
.rs-sheet { background: #fff; border-radius: 14px; padding: 16px; width: min(900px, 100%); max-height: 100%; overflow-y: auto; }
.rs-sheet.wide { width: min(1400px, 100%); }
.rs-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rs-sheet-head h3 { margin: 0; }
.rs-vimg { background: #f2f5fb conic-gradient(#e8ebf0 25%, #fff 0 50%, #e8ebf0 0 75%, #fff 0) 0 0 / 22px 22px; border-radius: 8px; text-align: center; }
.rs-vimg img { max-width: 100%; max-height: 58vh; display: block; margin: 0 auto; }
.rs-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rs-cmp.side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-cmp figure { margin: 0; }
.rs-cmp img { width: 100%; display: block; border-radius: 8px; }
.rs-cmp figcaption { font-size: 0.86rem; font-weight: 600; margin-top: 4px; }
.rs-cmp-frame { position: relative; overflow: hidden; border-radius: 8px; }
.rs-cmp-top { position: absolute; inset: 0 auto 0 0; overflow: hidden; border-right: 3px solid #fff; box-shadow: 2px 0 6px rgba(0, 0, 0, 0.35); }
.rs-cmp-top img { max-width: none; border-radius: 0; }
.rs-cmp.slider input[type="range"] { width: 100%; margin-top: 8px; }
@media (max-width: 1000px) {
  .rs { overflow-y: auto; }
  .rs-body { display: flex; flex-direction: column; flex: none; }
  .rs-main { order: -1; }
  .rs-stagewrap { height: 46vh; flex: none; }
  .rs-panel { overflow: visible; border: 0; border-top: 1px solid #e2e8f2; }
  .rs-cams { grid-template-columns: 1fr 1fr; }
  .rs-cmp.side { grid-template-columns: 1fr; }
}

.rs-sub { font-size: 0.84rem; font-weight: 600; margin: 8px 0 4px !important; }
.rs-sub .muted { font-weight: 400; }
.rs-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Vendor CRM ---------- */
.pill.gray { background: #eef1f6; color: #475569; }
.crm-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px; }
.crm-scope label { font-weight: 600; }
.crm-scope select { width: auto; max-width: 100%; }
.crm-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.crm-action { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #f0d79a; background: var(--amber-100); color: #5f3d05; text-decoration: none; font-weight: 600; }
.crm-action:hover { filter: brightness(0.97); }
.crm-action b { font-size: 1.5rem; line-height: 1; min-width: 1.4em; text-align: center; }
.crm-action span { flex: 1; line-height: 1.25; }
.crm-action.review { background: var(--blue-100); border-color: #c9dafc; color: #1e3a8a; }
.crm-action.documents { background: var(--red-100); border-color: #f7d3d3; color: #7f1d1d; }
.crm-action.booths, .crm-action.waitlist { background: #fff; border-color: var(--line); color: inherit; }
.crm-numbers { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 2px 16px; font-size: 0.9rem; }
.crm-numbers a { color: var(--muted); text-decoration: none; }
.crm-numbers a:hover { color: var(--brand); }
.crm-numbers b { color: var(--ink, #0f1b33); font-size: 1.05rem; margin-right: 3px; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-filters input[type="search"] { flex: 1 1 220px; min-width: 160px; width: auto; }
.crm-filters select, .crm-filters input[type="text"] { width: auto; max-width: 190px; }
.crm-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.crm-saved { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 0.86rem; background: #fff; }
.crm-saved a { text-decoration: none; font-weight: 600; }
.crm-saved button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 6px; }
.viewtoggle a { display: inline-block; padding: 5px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.86rem; }
.viewtoggle a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(15, 27, 51, 0.15); }
.crm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin: 10px 0; border-radius: 10px; background: #0f1b33; color: #fff; position: sticky; top: 8px; z-index: 5; }
.crm-bulk[hidden] { display: none; }
.crm-bulk select, .crm-bulk input { width: auto; }
.crm-table td { vertical-align: top; }
.crm-score { display: inline-block; min-width: 2.4em; text-align: center; padding: 2px 8px; border-radius: 8px; background: #eef4ff; color: var(--brand); font-weight: 700; cursor: help; }
.crm-score.big { font-size: 1.5rem; padding: 4px 12px; cursor: default; }
.crm-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.crm-col { flex: 0 0 230px; background: #f2f5fb; border: 2px solid transparent; border-radius: 12px; padding: 8px; min-height: 120px; }
.crm-col.over { border-color: var(--brand); background: #eef4ff; }
.crm-col h3 { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 8px; font-size: 0.9rem; }
.crm-col h3 small { color: var(--muted); font-weight: 600; }
.crm-cards { display: grid; gap: 6px; min-height: 40px; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: grab; }
.crm-card[draggable="false"] { cursor: default; }
.crm-card.dragging { opacity: 0.45; }
.crm-card a { text-decoration: none; }
.crm-profile { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.crm-main, .crm-side { display: grid; gap: 16px; min-width: 0; }
.crm-main > .card, .crm-side > .card { margin: 0; }
.crm-contact { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.crm-note { border-top: 1px solid var(--line); padding: 10px 0 2px; margin-top: 10px; }
.crm-note.pinned { background: #fffbeb; border: 1px solid #f5e2b3; border-radius: 10px; padding: 10px 12px 6px; }
.crm-note p { margin: 0 0 4px; }
.crm-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.crm-upload input, .crm-upload select { width: auto; max-width: 100%; }
.crm-timeline { list-style: none; margin: 0; padding: 0; }
.crm-timeline li { display: flex; gap: 10px; padding: 0 0 14px; position: relative; }
.crm-timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.crm-timeline li:last-child::before { display: none; }
.crm-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eef4ff; color: var(--brand); display: grid; place-items: center; font-size: 0.86rem; font-weight: 700; }
.crm-timeline li.issue .crm-dot { background: var(--red-100); color: var(--red); }
.crm-timeline li.stage .crm-dot { background: var(--ok-100); color: var(--ok); }
.crm-reasons { list-style: none; margin: 0 0 8px; padding: 0; font-size: 0.9rem; }
.crm-reasons b { display: inline-block; min-width: 2.4em; }
.crm-reasons b.up { color: var(--ok); }
.crm-reasons b.down { color: var(--red); }
.crm-task { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.crm-task > div { flex: 1; min-width: 0; }
.crm-task.done > div { text-decoration: line-through; color: var(--muted); }
.crm-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b8c4d6; background: #fff; cursor: pointer; padding: 0; line-height: 1; color: var(--ok); font-weight: 700; }
.crm-tagpick { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.crm-setting { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .crm-profile { grid-template-columns: 1fr; }
  .crm-contact { justify-content: flex-start; }
}

/* ---------- Email ---------- */
.em-compose { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.em-write { display: grid; gap: 16px; min-width: 0; }
.em-write > .card, .em-preview { margin: 0; }
.em-preview { position: sticky; top: 12px; }
.em-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.em-filter[hidden] { display: none; }
.em-filter select { width: auto; max-width: 200px; }
.em-reach { margin: 10px 0 2px; }
.em-editor { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.em-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; background: #f2f5fb; border-bottom: 1px solid var(--line); }
.em-tools button { border: 1px solid transparent; background: #fff; border-radius: 6px; padding: 5px 9px; font: inherit; font-size: 0.86rem; cursor: pointer; color: inherit; }
.em-tools button:hover { border-color: #b8c4d6; }
.em-tools select { width: auto; max-width: 190px; padding: 5px 8px; font-size: 0.86rem; }
.em-sep { flex: 1; }
.em-body { min-height: 240px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; line-height: 1.55; outline: none; }
.em-body:focus { box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35); }
.em-body p { margin: 0 0 12px; }
.em-body img { max-width: 100%; height: auto; }
.em-body a.button { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.em-body .infoblock { background: #f2f5fb; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.em-editor > .muted, .em-editor > p { padding: 0 12px 8px; }
.em-send .check { margin-top: 10px; }
.em-subjectline { margin: 0 0 10px; }
.em-framebox { background: #e8ecf3; border-radius: 10px; padding: 8px; text-align: center; }
.em-framebox iframe { width: 100%; height: 560px; border: 0; background: #fff; border-radius: 6px; max-width: 100%; }
.em-results { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.em-results > .card { margin: 0; }
.em-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.em-template { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.viewtoggle button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; color: var(--muted); font: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.viewtoggle button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(15, 27, 51, 0.15); }
@media (max-width: 1000px) {
  .em-compose, .em-results { grid-template-columns: 1fr; }
  .em-preview { position: static; }
  .em-framebox iframe { height: 420px; }
}

/* ---------- Automations, announcements and notices ---------- */
.nav .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #dc3b4b; color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
.auto-rule { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid #cbd5e1; border-radius: 10px; margin-top: 10px; }
.auto-rule.on { border-left-color: var(--ok); background: #fbfefc; }
.auto-main { flex: 1 1 320px; min-width: 0; }
.auto-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; font-size: 0.92rem; }
.auto-flow span { background: #f2f5fb; border-radius: 8px; padding: 4px 10px; }
.auto-flow b { color: var(--brand); margin-right: 4px; }
.auto-flow i { color: var(--muted); font-style: normal; }
.auto-side { display: grid; gap: 6px; justify-items: end; align-content: start; }
.auto-side form { display: grid; gap: 6px; justify-items: end; }
.auto-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.auto-recipe { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px dashed #b8c4d6; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.auto-recipe:hover { border-color: var(--brand); background: #eef4ff; }
.auto-recipe b { color: var(--brand); white-space: nowrap; }
.auto-step { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 14px; }
.auto-step legend { font-weight: 700; padding: 0 6px; }
.auto-step legend .muted { font-weight: 400; }
.note-priorities { display: flex; flex-wrap: wrap; gap: 8px; }
.note-priority { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; }
.note-priority.urgent, .note-priority.emergency { border-color: #efc2c2; color: #b91c1c; }
.note-sent { border-top: 1px solid var(--line); padding: 12px 0; }
.note-sent:first-of-type { border-top: 0; padding-top: 0; }
.note-sent p { margin: 6px 0; }
.notice.unread { border-left: 4px solid var(--brand); }
.notice.urgent.unread, .notice.emergency.unread { border-left-color: #dc3b4b; }
.notice.read { opacity: 0.8; }
.notice-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #b91c1c; color: #fff; }
.notice-banner strong { display: block; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; opacity: 0.9; }
.notice-banner span { font-size: 1.05rem; font-weight: 700; }
.notice-banner .btn { background: #fff; color: #b91c1c; border-color: #fff; }

/* ------------------------------------------------------------------ email: friendly templates and designer */
.em-ic { vertical-align: -0.22em; flex: none; }
.btn .em-ic { margin-right: 4px; }
.btn.big { font-size: 1.05rem; padding: 13px 26px; }

/* How it works */
.em-how { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.em-how li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.em-how-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e8efff; color: var(--brand); display: grid; place-items: center; }
.em-how strong { display: block; }
.em-how span { color: var(--muted); font-size: 0.88rem; }

/* Search and "one look for all" */
.em-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 0 0 16px; }
.em-search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; color: var(--muted); }
.em-search input { border: 0; outline: 0; box-shadow: none; background: transparent; padding: 9px 0; width: 100%; font-size: 1rem; }
.em-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.em-alllook { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.em-alllook summary { cursor: pointer; font-weight: 600; list-style: none; }
.em-alllook summary::-webkit-details-marker { display: none; }
.em-alllook-form { display: flex; gap: 8px; margin-top: 10px; }
.em-alllook-form select { width: auto; }

/* Groups and cards */
.em-group-head { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.em-group-head h2 { margin: 0; }
.em-group-head p { margin: 2px 0 0; }
.em-tile { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--em-color, var(--brand)); background: color-mix(in srgb, var(--em-color, var(--brand)) 12%, #fff); }
.em-tile.big { width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--em-color, var(--brand)); }
.em-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.em-template { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: box-shadow 0.15s, border-color 0.15s; }
.em-template:hover { border-color: color-mix(in srgb, var(--em-color, var(--brand)) 45%, #fff); box-shadow: 0 6px 18px rgba(15, 27, 51, 0.08); }
.em-template[hidden], .em-group[hidden] { display: none; }
.em-template-top { display: flex; gap: 12px; align-items: flex-start; }
.em-template h3 { margin: 0; font-size: 1.05rem; }
.em-when { margin: 3px 0 0; color: #334155; font-size: 0.93rem; line-height: 1.35; }
.em-subj { margin: 0; font-size: 0.85rem; color: var(--muted); background: #f6f8fc; border-radius: 8px; padding: 6px 10px; }
.em-subj span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; margin-right: 4px; }
.em-use { margin-top: auto; }
.em-use .btn { width: 100%; justify-content: center; text-align: center; }
.em-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.em-acts form { display: contents; }
.em-acts button, .em-acts a { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; border-radius: 8px; padding: 6px 2px; font: inherit; font-size: 0.78rem; color: #475569; cursor: pointer; text-decoration: none; }
.em-acts button:hover, .em-acts a:hover { background: #eef2f9; color: var(--brand); }
.em-acts .danger:hover { background: #fdecec; color: #b91c1c; }

/* The pop-up box (preview, add a link, add a button) */
.em-ask { position: fixed; inset: 0; z-index: 80; background: rgba(15, 27, 51, 0.5); display: grid; place-items: center; padding: 16px; }
.em-ask[hidden] { display: none; }
.em-ask-card { background: #fff; border-radius: 16px; padding: 20px; width: min(440px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.em-ask-card.wide { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.em-ask-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.em-ask-card .em-framebox iframe { height: min(520px, 55vh); }
.em-ask-card [data-em-askerror] { color: #b91c1c; }

/* The designer */
.em-step h2 { display: flex; align-items: center; gap: 10px; }
.em-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 0.95rem; font-weight: 700; }
.em-yours { white-space: nowrap; color: #475569; }
.em-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; margin: 0 -4px; }
.em-look { position: relative; cursor: pointer; border: 2px solid var(--line); border-radius: 12px; padding: 5px 5px 6px; background: #fff; display: block; }
.em-look:hover { border-color: #9db4e8; }
.em-look input { position: absolute; opacity: 0; pointer-events: none; }
.em-look-pic { display: block; height: 118px; overflow: hidden; border-radius: 8px; background: #eef1f6; position: relative; }
.em-look-pic iframe { width: 600px; height: 700px; border: 0; transform: scale(0.215); transform-origin: 0 0; pointer-events: none; position: absolute; left: 50%; margin-left: -64.5px; }
.em-look-name { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.82rem; font-weight: 600; text-align: center; margin-top: 5px; line-height: 1.2; min-height: 2.1em; }
.em-look-name .em-ic { color: #94a3b8; }
.em-look-tick { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.em-look:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.em-look:has(input:checked) .em-look-tick { display: grid; }
.em-look:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.em-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.em-preview h2 .em-ic { color: var(--brand); margin-right: 4px; }
.viewtoggle .em-ic { margin-right: 3px; }

/* The writer */
.em-label { display: block; font-weight: 600; margin: 0 0 6px; }
.em-subject { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; background: #fff; line-height: 1.6; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.em-subject:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.em-subject:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.em-tools { gap: 2px; padding: 6px; }
.em-tools button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 6px 6px 4px; background: transparent; border-radius: 8px; font-size: 0.74rem; color: #334155; }
.em-tools button:hover { background: #fff; border-color: #b8c4d6; color: var(--brand); }
.em-gap { width: 1px; align-self: stretch; background: #d5dce8; margin: 4px 4px; }
.em-body h2 { font-size: 1.3rem; margin: 14px 0 6px; }
.em-chip { display: inline-block; background: #e0e9ff; color: #1e3a8a; border: 1px solid #c3d3fb; border-radius: 6px; padding: 0 7px; font-size: 0.9em; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: default; user-select: all; }
.em-body a.button .em-chip { background: rgba(255, 255, 255, 0.25); color: #fff; border-color: transparent; }
.em-fill { margin-top: 12px; background: #f6f8fc; border: 1px dashed #c3cfe3; border-radius: 12px; padding: 12px 14px; }
.em-fill-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.em-fill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.em-fill-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c3d3fb; background: #fff; color: #1e3a8a; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.em-fill-chip:hover { background: #e0e9ff; }

@media (max-width: 760px) {
  .em-how { grid-template-columns: 1fr; }
  .em-tools button { min-width: 50px; }
}

/* ------------------------------------------------------------------ email design studio */
.es { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 40px); min-height: 600px; }
.es-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.es-back { font-weight: 600; white-space: nowrap; }
.es-name { flex: 1 1 180px; min-width: 140px; max-width: 320px; font-weight: 700; font-size: 1.02rem; }
.es-cat { width: auto; max-width: 170px; }
.es-title { flex: 1 1 auto; font-size: 1.05rem; }
.es-tools { display: inline-flex; gap: 2px; }
.es-tools button { display: inline-flex; flex-direction: column; align-items: center; border: 0; background: none; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 0.7rem; color: #334155; cursor: pointer; }
.es-tools button:hover:not(:disabled) { background: #eef2f9; color: var(--brand); }
.es-tools button:disabled { opacity: 0.35; cursor: default; }
.es-status { flex: 1 1 120px; text-align: right; font-size: 0.86rem; color: var(--muted); min-width: 0; }
.es-status.good { color: var(--ok); font-weight: 600; }
.es-status.bad { color: #b91c1c; font-weight: 600; }
.es-subjectbar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; }
.es-subjectbar label { font-weight: 700; margin: 0; }
.es-subject { flex: 1; min-height: 34px; padding: 5px 8px; border-radius: 8px; outline: none; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.es-subject:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3); }
.es-subject:empty::before { content: attr(data-placeholder); color: #94a3b8; }

.es-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 178px minmax(0, 1fr) 310px; gap: 10px; }
.es-tray, .es-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; overflow-y: auto; }
.es-tray h2, .es-panel h3 { margin: 0 0 4px; font-size: 1rem; }
.es-panel h3 { margin-top: 16px; }
.es-panel h3:first-child { margin-top: 0; }
.es-hint { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.es-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.es-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; border: 1px solid var(--line); background: #f8fafd; border-radius: 10px; padding: 8px 4px; font: inherit; font-size: 0.76rem; font-weight: 600; line-height: 1.15; text-align: center; color: #1e293b; cursor: grab; touch-action: none; }
.es-tile .em-ic { color: var(--brand); }
.es-tile:hover { border-color: var(--brand); background: #eef4ff; }

.es-stage { background: #dde3ec; border-radius: 14px; overflow: auto; }
.es-page { min-height: 100%; padding: 46px 14px 60px; box-sizing: border-box; transition: background 0.15s; }
.es-card { margin: 0 auto; position: relative; transition: max-width 0.2s; box-shadow: 0 6px 24px rgba(15, 27, 51, 0.12); overflow: visible !important; }
.es-block { position: relative; cursor: pointer; }
.es-block:hover { box-shadow: inset 0 0 0 1px #7da2f2; }
.es-block.on { box-shadow: inset 0 0 0 2px var(--brand); }
.es-block.warn:not(.on) { box-shadow: inset 0 0 0 2px #f59e0b; }
.es-block.lifted { opacity: 0.35; }
.es-pad { padding: 8px 28px; }
.es-card > .es-block:first-child:not([data-type="header"]) { padding-top: 14px; }
.es-card > .es-block[data-type="header"]:first-child + .es-block { padding-top: 14px; }
.es-foot { margin-top: 14px; opacity: 0.75; cursor: help; }
.es-card [data-es-edit] { outline: none; cursor: text; min-height: 1.2em; }
.es-card [data-es-edit] p { margin: 0 0 14px; }
.es-card [data-es-edit] ul, .es-card [data-es-edit] ol { margin: 0 0 14px; padding-left: 22px; }
.es-card [data-es-edit] a { color: var(--es-accent); }
.es-card [data-type="heading"] [data-es-edit] p { margin: 0; }
.es-bar { position: absolute; left: 6px; top: -36px; z-index: 6; display: flex; align-items: center; gap: 1px; background: #0f1b33; color: #fff; border-radius: 9px; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); white-space: nowrap; font: 600 12px/1 Inter, Arial, sans-serif; text-transform: none; letter-spacing: 0; }
.es-card > .es-block:first-child .es-bar { top: -40px; }
.es-bar-name { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px 5px 2px; cursor: grab; touch-action: none; }
.es-bar button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: #fff; border-radius: 6px; cursor: pointer; padding: 0; }
.es-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); }
.es-bar button.danger:hover { background: #dc2626; }
.es-bar button:disabled { opacity: 0.3; cursor: default; }
.es-bar i { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.3); margin: 0 3px; }
.es-dropline { position: absolute; left: 6px; right: 6px; height: 4px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); z-index: 7; pointer-events: none; }
.es.dragging, .es.dragging * { cursor: grabbing !important; user-select: none; }
.es-drop-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; border: 2px dashed #9db4e8; border-radius: 12px; background: #f3f7ff; color: #1e3a8a; font: 14px/1.3 Inter, Arial, sans-serif; text-align: center; padding: 14px; cursor: pointer; }
.es-drop-pic.small { min-height: 110px; }
.es-drop-pic span { color: #5d6b85; font-size: 12px; }
.es-drop-pic:hover { background: #e6efff; }
.es-empty { padding: 16px 28px; color: #64748b; font: 14px/1.4 Inter, Arial, sans-serif; text-align: center; }
.es-empty.big { padding: 60px 28px; font-size: 16px; }

.es-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eef2f9; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.es-tabs button { border: 0; background: none; border-radius: 8px; padding: 8px 4px; font: inherit; font-weight: 600; font-size: 0.88rem; color: #475569; cursor: pointer; }
.es-tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 27, 51, 0.15); }
.es-help { background: #f3f7ff; border-radius: 12px; padding: 14px; font-size: 0.92rem; }
.es-help ul { margin: 8px 0 0; padding-left: 18px; color: #334155; }
.es-help li { margin: 4px 0; }
.es-row { margin: 0 0 12px; }
.es-row > label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 4px; }
.es-row > label span { font-weight: 400; color: var(--muted); }
.es-row input[type="range"] { width: 100%; padding: 0; }
.es-choice { display: flex; border: 1px solid #c9d4e5; border-radius: 10px; overflow: hidden; }
.es-choice button { flex: 1; border: 0; border-left: 1px solid #c9d4e5; background: #fff; padding: 8px 4px; font: inherit; font-size: 0.88rem; font-weight: 600; color: #334155; cursor: pointer; display: grid; place-items: center; }
.es-choice button:first-child { border-left: 0; }
.es-choice button:hover { background: #eef4ff; }
.es-choice button.on { background: var(--brand); color: #fff; }
.es-wide { width: 100%; text-align: center; margin-bottom: 10px; }
.es-warn { color: #b45309; font-size: 0.85rem; margin: -6px 0 12px; }
.es-colorrow { display: flex; align-items: center; gap: 10px; }
.es-colorrow input[type="color"], .es-color input[type="color"] { width: 38px; height: 34px; padding: 2px; border-radius: 8px; flex: none; cursor: pointer; }
.es-rowbtns { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.es-rowbtns .danger { color: #b91c1c; border-color: #f1c4c4; }
.es-panel .es-fill { margin-top: 14px; background: #f6f8fc; border: 1px dashed #c3cfe3; border-radius: 12px; padding: 12px; }
.es-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.es-chips .em-fill-chip { font-size: 0.8rem; padding: 4px 9px; }
.es-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-look { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 4px 6px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; color: #1e293b; }
.es-look:hover { border-color: #9db4e8; }
.es-look.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.es-swatch { display: block; border-radius: 6px; padding: 6px 12px 0; margin-bottom: 4px; overflow: hidden; }
.es-swatch i { display: block; height: 46px; border-radius: 3px 3px 0 0; overflow: hidden; }
.es-swatch b { display: block; height: 13px; }
.es-swatch u { display: block; height: 3px; margin: 5px 7px 0; opacity: 0.3; border-radius: 2px; text-decoration: none; }
.es-swatch s { display: block; width: 22px; height: 7px; margin: 5px 7px 0; border-radius: 3px; }
.es-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; }
.es-color { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; cursor: pointer; line-height: 1.15; }

@media (max-width: 1150px) {
  .es { height: auto; }
  .es-main { grid-template-columns: 1fr; }
  .es-tiles { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .es-stage { max-height: 75vh; }
}

/* The composer, for an email made in the design studio (and the way into the studio) */
.em-designed { display: flex; gap: 14px; align-items: flex-start; background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.em-designed p { margin: 2px 0 10px; }
.em-tostudio { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 12px; background: #f6f8fc; border: 1px dashed #c3cfe3; border-radius: 12px; padding: 10px 14px; font-size: 0.93rem; }

/* Letter size in the design studio */
.es-size { display: flex; align-items: stretch; gap: 6px; }
.es-size button { flex: none; width: 44px; border: 1px solid #c9d4e5; background: #fff; border-radius: 10px; font-weight: 700; color: #334155; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.es-size button:hover:not(:disabled) { background: #eef4ff; border-color: var(--brand); color: var(--brand); }
.es-size button:disabled { opacity: 0.35; cursor: default; }
.es-size select { flex: 1; min-width: 0; text-align: center; font-weight: 600; }

/* ------------------------------------------------------------------ the menu: vendor tools or organizer tools */
.sideswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 4px; margin: 0 0 6px; }
.nav .sideswitch a { justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; color: #c5d0e6; }
html[data-side="vendor"] .nav .sideswitch .for-vendor { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
html[data-side="organizer"] .nav .sideswitch .for-organizer { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
html[data-side="vendor"] .nav-organizer, html[data-side="organizer"] .nav-vendor { display: none !important; }
.navset-about { margin: 0 0 8px; padding: 0 12px; font-size: 0.78rem; color: #8fa1c7; text-align: center; }
.sideswitch { width: 100%; box-sizing: border-box; }

/* Organizer dashboard */
.od-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.od-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink); background: #f8fafd; }
.od-quick a:hover { border-color: var(--brand); background: #eef4ff; color: var(--brand); text-decoration: none; }
.od-quick svg, .em-how-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-start { text-align: center; padding: 28px 20px; }
.od-start .em-how { text-align: left; margin-top: 16px; }
.stat b small { font-size: 0.6em; font-weight: 600; opacity: 0.6; }

/* ------------------------------------------------------------------ My Shows and Applications (vendor) */
.ms-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ms-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; font-weight: 600; color: #475569; white-space: nowrap; }
.ms-tabs a:hover { background: #eef2f9; text-decoration: none; }
.ms-tabs a.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.ms-tabs span { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #e8edf5; color: #475569; font-size: 0.78rem; text-align: center; }
.ms-tabs a.on span { background: rgba(255, 255, 255, 0.25); color: #fff; }
.ms-list { display: grid; gap: 12px; }
.ms-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: start; margin: 0; }
.ms-card.past { opacity: 0.85; }
.ms-card .datebox { width: 56px; }
.ms-card .datebox i { display: block; font-style: normal; font-size: 0.66rem; color: var(--muted); }
.ms-main h2 { margin: 0; font-size: 1.15rem; }
.ms-meta { margin: 3px 0 0; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 2px 0; }
.ms-meta span:not(:last-child)::after { content: "·"; margin: 0 7px; }
.ms-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.ms-facts div { min-width: 0; }
.ms-facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ms-facts dd { margin: 0; font-weight: 600; }
.ms-alerts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ms-alerts li, .ap-alert { font-size: 0.85rem; font-weight: 600; border-radius: 8px; padding: 4px 10px; background: #eef2f9; color: #334155; }
.ms-alerts li.warn, .ap-alert.warn { background: var(--amber-100); color: #7a4a00; }
.ms-alerts li.bad, .ap-alert.bad { background: var(--red-100); color: #9b1c2c; }
.ap-alert { display: inline-block; margin-top: 5px; }
.ms-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; text-align: right; }
.ms-when { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ms-side .btn { white-space: nowrap; }
.ms-empty { text-align: center; padding: 36px 20px; }
.ms-empty p { margin: 0 0 14px; color: var(--muted); font-size: 1.02rem; }
.ap-part { border-left: 5px solid #cbd5e1; }
.ap-part.amber { border-left-color: #f5b82e; }
.ap-part.red { border-left-color: #e8456b; }
.ap-part.blue { border-left-color: var(--brand); }
.ap-part.purple { border-left-color: var(--purple); }
.ap-part.green { border-left-color: var(--ok); }
.ap-part h2 { margin: 0; }
.ap-count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 99px; background: #e8edf5; color: #475569; font-size: 0.8rem; text-align: center; vertical-align: middle; }
@media (max-width: 720px) {
  .ms-card { grid-template-columns: 48px minmax(0, 1fr); }
  .ms-card .datebox { width: 48px; }
  .ms-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; min-width: 0; }
}
.ap-part { margin-bottom: 16px; }

/* Venue studio: keep-apart warning, label typed on the plan, decoration marks */
.vs-clash { background: #b91c1c; color: #fff; border-radius: 12px; padding: 14px 18px; margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35); }
.vs-clash[hidden] { display: none; }
.vs-clash strong { font-size: 1.3rem; letter-spacing: 0.02em; }
.vs-clash span { display: block; font-size: 0.85rem; opacity: 0.9; }
.vs-clash div + div { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.vs-booth.clash .vs-shape { stroke: #b91c1c !important; stroke-width: 5; stroke-dasharray: 14 8; vector-effect: non-scaling-stroke; }
.vs-inlinelabel { position: absolute; z-index: 20; width: 180px; padding: 7px 10px; font: inherit; font-weight: 700; text-align: center; border: 2px solid #06b6d4; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(15, 27, 51, 0.3); }
.vs-decor { text-anchor: middle; dominant-baseline: central; }
.vs-handle.corner { cursor: nwse-resize; }

/* Booth layout studio: square corner nodes for resizing */
.lay-size { fill: #fff; stroke: #06b6d4; stroke-width: 0.6; cursor: nwse-resize; }
.lay-size.ne, .lay-size.sw { cursor: nesw-resize; }
.lay-size:hover { fill: #cffafe; }

/* ---------- Venue Layout Studio: the library of venues ---------- */
.vl-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vl-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vl-top h1 { font-size: 2rem; letter-spacing: -0.02em; }
.vl-top p { margin: 0 0 4px; }
.vl-top .btn { display: inline-flex; align-items: center; gap: 8px; }
.vl-top .btn .vl-ic { width: 20px; height: 20px; stroke-width: 2.2; }
.vl-banner { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 18px; border: 1px solid #cfdcfb; border-radius: var(--radius); background: linear-gradient(100deg, #e8f0fe 0%, #f1f5fe 55%, #e3ecfd 100%); overflow: hidden; }
.vl-banner > div { flex: 1; min-width: 0; max-width: 720px; position: relative; z-index: 1; }
.vl-banner h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.vl-banner p { margin: 6px 0 0; color: #3d4b66; }
.vl-banner-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #d5e2fc; color: var(--brand); flex: none; }
.vl-banner-ic .vl-ic { width: 34px; height: 34px; stroke-width: 1.9; }
.vl-banner-art { width: 380px; height: auto; flex: none; margin: -14px -8px -18px 0; }

.vl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.vl-tabs button:hover { border-color: #b9cdf8; }
.vl-tabs button b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #edf1f7; font-size: 0.78rem; }
.vl-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.vl-tabs button.on b { background: #fff; color: var(--brand); }
.vl-live { width: 9px; height: 9px; border-radius: 50%; background: #22a565; }
.vl-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vl-tools select { width: auto; max-width: 220px; font-size: 0.9rem; padding: 9px 30px 9px 12px; }
.vl-search { position: relative; display: block; }
.vl-search .vl-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.vl-search input { padding: 9px 12px 9px 38px; width: 240px; max-width: 100%; font-size: 0.9rem; }
.vl-views { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.vl-views button { display: grid; place-items: center; width: 42px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.vl-views button.on { background: var(--brand); color: #fff; }

.vl-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.vl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.vl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.vl-card.active { border-color: #9fbcf8; box-shadow: 0 0 0 1px #9fbcf8, var(--shadow); }
.vl-card.archived .vl-pic { opacity: 0.7; }
.vl-card[hidden] { display: none; }
.vl-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; background: #eef1f6; color: #475569; }
.vl-chip i { width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.vl-chip.active { background: var(--ok-100); color: var(--ok); }
.vl-chip.active i { background: #22a565; }
.vl-dots { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
.vl-dots .vl-ic { transform: rotate(90deg); stroke-width: 3; }
.vl-dots:hover { background: var(--blue-100); }
.vl-pic { position: relative; display: grid; place-items: center; background: #f1f4fa; border-radius: 12px; aspect-ratio: 3 / 2; overflow: hidden; }
.vl-pic a { display: block; width: 100%; height: 100%; }
.vl-pic figure { margin: 0; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; }
.vl-pic svg { display: block; width: 100%; height: 100%; }
.vl-faces { position: absolute; right: 8px; bottom: 8px; display: inline-flex; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(15, 27, 51, 0.18); }
.vl-faces button { border: 0; background: none; padding: 4px 9px; font: inherit; font-size: 0.74rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.vl-faces button.on { background: var(--brand); color: #fff; }
.vl-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vl-card h3 { font-size: 1.15rem; margin: 14px 0 8px; overflow-wrap: anywhere; }
.vl-meta, .vl-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }
.vl-meta span, .vl-foot span { display: inline-flex; align-items: center; gap: 6px; }
.vl-meta .vl-ic, .vl-foot .vl-ic { width: 15px; height: 15px; }
.vl-layout { font-weight: 700; overflow-wrap: anywhere; }
.vl-card-body > p.small { margin: 4px 0 0; }
.vl-credit { font-size: 0.72rem; margin: 6px 0 0; }
.vl-link { border: 0; background: none; padding: 0; margin-top: 6px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--brand); cursor: pointer; text-align: left; }
.vl-link:hover { text-decoration: underline; }
.vl-foot { margin: auto 0 14px; padding-top: 16px; }
.vl-go { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.vl-go .btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.vl-go .btn.ghost { color: var(--ink); border-color: var(--line); }
.vl-go .vl-ic { stroke-width: 2.4; }
.vl-nothing, .vl-first { text-align: center; padding: 28px; }
.vl-first p { margin: 6px 0 16px; }
.vl-first .btn { display: inline-flex; align-items: center; gap: 8px; }

.vl-grid.list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vl-grid.list .vl-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; padding: 12px 16px; }
.vl-grid.list .vl-card-top { grid-column: 2; margin-bottom: 0; }
.vl-grid.list .vl-pic { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 4 / 3; align-self: start; }
.vl-grid.list .vl-card-body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.vl-grid.list .vl-card-body > * { grid-column: 1; }
.vl-grid.list .vl-card h3 { margin: 2px 0 6px; }
.vl-grid.list .vl-meta { margin-bottom: 6px; }
.vl-grid.list .vl-foot { margin: 8px 0 0; padding-top: 0; }
.vl-grid.list .vl-go { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: 1fr; align-self: center; min-width: 150px; }

.vl-side { display: grid; gap: 16px; }
.vl-h { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.vl-h .vl-ic { width: 22px; height: 22px; color: var(--brand); }
.vl-activity { list-style: none; margin: 0; padding: 0; }
.vl-activity li { border-top: 1px solid var(--line); }
.vl-activity li:first-child { border-top: 0; }
.vl-activity a { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: var(--ink); }
.vl-activity a:hover { text-decoration: none; }
.vl-activity a:hover strong { color: var(--brand); }
.vl-activity strong, .vl-activity .small { display: block; overflow-wrap: anywhere; }
.vl-activity strong { font-size: 0.9rem; }
.vl-thumb { display: block; width: 58px; height: 40px; border-radius: 6px; background: #f1f4fa; border: 1px solid var(--line); flex: none; padding: 3px; box-sizing: border-box; }
.vl-thumb svg { display: block; width: 100%; height: 100%; }
.vl-thumb text { display: none; }
.vl-tips { background: #f4f7fd; }
.vl-tips ul { list-style: none; margin: 14px 0 0; padding: 0; }
.vl-tips li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 0.9rem; color: #3d4b66; }
.vl-tips li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.vl-tips li .vl-ic { width: 12px; height: 12px; stroke-width: 3.2; }

.vl-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 18px; padding: 22px 24px 24px; box-shadow: 0 30px 80px rgba(10, 23, 51, 0.35); color: var(--ink); }
.vl-dialog::backdrop { background: rgba(10, 23, 51, 0.5); }
.vl-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.vl-dialog-head h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.vl-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #eef1f6; color: var(--ink); cursor: pointer; flex: none; }
.vl-close:hover { background: var(--blue-100); }
.vl-dialog h3 { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.vl-dialog-head + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.vl-layouts { list-style: none; margin: 0; padding: 0; }
.vl-layouts li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.vl-layouts li:first-child { border-top: 0; }
.vl-layouts li > div { flex: 1; min-width: 0; }
.vl-layouts li > div strong, .vl-layouts li > div span { display: block; overflow-wrap: anywhere; }
.vl-layouts form { margin: 0; }
.vl-danger { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vl-danger form { margin: 0; }

@media (max-width: 1300px) {
  .vl-body { grid-template-columns: minmax(0, 1fr); }
  .vl-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .vl-banner-art { width: 280px; }
}
@media (max-width: 900px) {
  .vl-banner-art { display: none; }
}
@media (max-width: 640px) {
  .vl-banner { flex-direction: column; align-items: flex-start; }
  .vl-search, .vl-search input, .vl-tools select { width: 100%; max-width: none; }
  .vl-tools { width: 100%; }
  .vl-grid.list .vl-card { grid-template-columns: minmax(0, 1fr); }
  .vl-grid.list .vl-card-top, .vl-grid.list .vl-pic, .vl-grid.list .vl-card-body { grid-column: 1; grid-row: auto; }
  .vl-grid.list .vl-card-body { grid-template-columns: minmax(0, 1fr); }
  .vl-grid.list .vl-go { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .vl-dialog { padding: 18px 16px; }
  .vl-layouts li { flex-wrap: wrap; }
}

/* ---------- Vendor dashboard: the next show and getting ready for it ---------- */
.vd-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vd-top h1 { font-size: 1.75rem; }
.vd-top p { margin: 0; }
.vd-top-actions { display: flex; align-items: center; gap: 14px; }
.vd-bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand); }
.vd-bell:hover { background: var(--green-100); }
.vd-bell .vd-ic { width: 20px; height: 20px; }
.vd-bell i { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }

.vd-hero { display: grid; grid-template-columns: minmax(280px, 1.5fr) auto minmax(190px, 1fr) minmax(430px, 1.5fr) max-content; gap: 0; align-items: center; padding: 16px 18px; margin-bottom: 16px; }
.vd-hero > div { padding: 4px 22px; min-width: 0; }
.vd-hero > div + div { border-left: 1px solid var(--line); }
.vd-hero > div:first-child { padding-left: 0; }
.vd-hero > div:last-child { padding-right: 0; }
.vd-hero-what { display: flex; gap: 16px; align-items: center; }
.vd-hero-what h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.vd-hero-what p { margin: 2px 0 0; }
.vd-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
.vd-pills .pill { padding: 5px 13px; font-size: 0.85rem; }
.vd-date { flex: none; width: 68px; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 8px 0 6px; background: #fff; box-shadow: var(--shadow); }
.vd-date small { display: block; color: var(--red); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em; }
.vd-date b { display: block; font-size: 1.9rem; line-height: 1.1; }
.vd-hero-when { text-align: center; }
.vd-in { font-size: 0.95rem; padding: 5px 16px; margin-bottom: 10px; }
.vd-count { display: flex; gap: 8px; }
.vd-count span { width: 60px; padding: 8px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; font-size: 0.72rem; color: var(--muted); }
.vd-count b { display: block; font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.vd-fee { margin: 2px 0 8px; font-size: 1.05rem; }
.vd-fee b { font-size: 1.1rem; }
.vd-paid { color: var(--ok); font-weight: 700; }
.vd-due { color: var(--amber); font-weight: 700; }
.vd-where { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 0.88rem; color: var(--ink); }
.vd-where .vd-ic { color: var(--brand); margin-top: 1px; }
.vd-hero-sky { display: flex; gap: 18px; align-items: center; }
.vd-sky-now { display: flex; gap: 10px; align-items: center; }
.vd-sky-now b { display: block; font-size: 1.45rem; line-height: 1.1; }
.vd-sky-now span { display: block; white-space: nowrap; }
.vd-sky-list { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.vd-sky-list li { display: flex; gap: 10px; align-items: center; padding: 3px 0; white-space: pre; }
.vd-sky-list .vd-ic { color: var(--muted); }
.vd-sky-none { display: flex; gap: 12px; align-items: center; }
.vd-sky-none p { margin: 0; }
.vd-hero-go { display: flex; flex-direction: column; gap: 8px; }
.vd-hero-go .btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.vd-hero-empty { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; }
.vd-hero-empty > div + div { border-left: 0; }

.vd-body { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.vd-main, .vd-side, .vd-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.vd-row { display: grid; gap: 16px; }
.vd-row > *, .vd-col > * { min-width: 0; }
.vd-row-a { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
.vd-row-b { grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr); }
.vd-body .card h2 { font-size: 1.05rem; }
.vd-body .card-head a { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.vd-sub { font-weight: 600; }
.vd-empty { padding: 6px 0; }
.vd-empty p { margin: 0 0 12px; }

.vd-booth { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(150px, 1fr); gap: 20px; align-items: start; }
.vd-booth-pic { display: block; border-radius: 12px; overflow: hidden; background: #eef2f8; aspect-ratio: 1 / 1; }
.vd-booth-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-booth-pic .laypreview { height: 100%; border: 0; border-radius: 0; background: #eef2f8; padding: 14px; box-sizing: border-box; }
.vd-booth-key h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.vd-booth-key ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.9rem; }
.vd-booth-key li { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.vd-booth-key li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }

.vd-box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #b6c2d6; background: #fff; color: transparent; cursor: pointer; padding: 0; flex: none; }
.vd-box .vd-ic { width: 15px; height: 15px; stroke-width: 3; }
.vd-box.on { background: var(--brand); border-color: var(--brand); color: #fff; }
button.vd-box:hover { border-color: var(--brand); }
button.vd-box:not(.on):hover { color: #b9cdf8; }
.vd-prep { list-style: none; margin: 0; padding: 0; }
.vd-prep li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.vd-prep li:first-child { border-top: 0; padding-top: 2px; }
.vd-prep li:last-child { padding-bottom: 0; }
.vd-prep form { margin: 0; display: flex; }
.vd-prep-ic { display: grid; place-items: center; width: 30px; color: var(--muted); flex: none; }
.vd-prep-ic .vd-ic { width: 22px; height: 22px; stroke-width: 1.6; }
.vd-prep-main { flex: 1; min-width: 0; color: var(--ink); }
.vd-prep-main:hover { text-decoration: none; }
.vd-prep-main:hover strong { color: var(--brand); }
.vd-prep-main strong, .vd-prep-main span { display: block; }
.vd-prep-main strong { font-size: 0.93rem; }
.vd-prep-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.vd-prep .pill { min-width: 46px; text-align: center; }

.vd-tasks li { padding: 9px 0; gap: 14px; }
.vd-tasks .row-main { font-size: 0.93rem; }
.vd-addtask { margin-top: 10px; flex-wrap: nowrap; }
.vd-addtask input[type="text"] { flex: 1; min-width: 0; width: auto; }

.vd-body select { width: auto; padding: 6px 30px 6px 12px; font-size: 0.88rem; border-radius: 9px; }
.vd-figure { display: flex; align-items: center; gap: 12px; margin: 0; }
.vd-figure b { font-size: 1.75rem; letter-spacing: -0.02em; }
.vd-delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 8px; font-weight: 700; font-size: 0.88rem; }
.vd-delta .vd-ic { width: 14px; height: 14px; stroke-width: 2.6; }
.vd-delta.up { background: var(--ok-100); color: var(--ok); }
.vd-delta.down { background: var(--red-100); color: var(--red); }
.vd-chart { position: relative; }
.vd-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.vd-grid { stroke: #e6ebf3; stroke-width: 1; }
.vd-axis { font-size: 12px; fill: var(--muted); font-family: inherit; }
.vd-area { fill: rgba(37, 99, 235, 0.12); }
.vd-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vd-dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.vd-hit { fill: transparent; cursor: pointer; outline: none; }
.vd-hit:focus-visible { stroke: var(--brand); stroke-width: 2; }
.vd-tip { position: absolute; transform: translate(-50%, -100%); background: var(--navy); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 0.8rem; white-space: nowrap; pointer-events: none; z-index: 2; }
.vd-tip b { display: block; font-size: 0.95rem; }
.vd-tip span { color: #c5d0e6; }

.vd-notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; }
.vd-notices a { display: flex; gap: 12px; align-items: center; color: var(--ink); min-width: 0; }
.vd-notices a:hover { text-decoration: none; }
.vd-notices a:hover strong { color: var(--brand); }
.vd-notices a > span:last-child { min-width: 0; }
.vd-notices strong, .vd-notices .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-notices strong { font-size: 0.88rem; }
.vd-notices a:not(.new) strong { font-weight: 600; }
.vd-notice-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--purple-100); color: var(--purple); flex: none; }
.vd-notice-ic.loud { background: var(--ok-100); color: var(--ok); }

.vd-pack { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.vd-ring { position: relative; width: 150px; height: 150px; }
.vd-ring svg { width: 100%; height: 100%; display: block; }
.vd-ring-track { fill: none; stroke: #e6ebf3; stroke-width: 11; }
.vd-ring-fill { fill: none; stroke: var(--brand); stroke-width: 11; stroke-linecap: round; }
.vd-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vd-ring b { font-size: 1.6rem; line-height: 1.1; }
.vd-ring span { font-weight: 600; font-size: 0.9rem; }
.vd-ring small { color: var(--muted); font-size: 0.72rem; }
.vd-bars { list-style: none; margin: 0; padding: 0; }
.vd-bars li + li { margin-top: 14px; }
.vd-bars li > span:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; margin-bottom: 6px; }
.vd-bars .muted { white-space: nowrap; }
.vd-bar { display: block; height: 8px; border-radius: 99px; background: #e6ebf3; overflow: hidden; }
.vd-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

.vd-stock { list-style: none; margin: 0; padding: 0; }
.vd-stock li { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.vd-stock img, .vd-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: #eef2f8; }
.vd-thumb { display: grid; place-items: center; color: #8a97ad; }
.vd-stock a { flex: 1; min-width: 0; color: var(--ink); }
.vd-stock a:hover { text-decoration: none; }
.vd-stock a:hover strong { color: var(--brand); }
.vd-stock a strong, .vd-stock a span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-stock a strong { font-size: 0.93rem; }
.vd-promo { padding: 26px 24px; min-height: 150px; justify-content: center; }
.vd-promo strong { font-size: 1.3rem; }
.vd-promo span { max-width: 260px; }

@media (max-width: 1900px) {
  .vd-hero { grid-template-columns: minmax(280px, 1.6fr) auto minmax(190px, 1fr) max-content; row-gap: 14px; }
  .vd-hero-sky { grid-column: 1 / -1; grid-row: 2; border-left: 0 !important; border-top: 1px solid var(--line); padding: 14px 0 0 !important; gap: 28px; }
  .vd-sky-list { display: flex; flex-wrap: wrap; gap: 4px 26px; }
}
@media (max-width: 1440px) {
  .vd-body { grid-template-columns: minmax(0, 1fr); }
  .vd-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 1080px) {
  .vd-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .vd-hero > div { padding: 0 !important; border-left: 0 !important; }
  .vd-hero-when { justify-self: end; }
  .vd-hero-fee, .vd-hero-sky, .vd-hero-go { grid-column: 1 / -1; grid-row: auto; border-top: 1px solid var(--line); padding-top: 14px !important; }
  .vd-hero-go { flex-direction: row; flex-wrap: wrap; }
  .vd-row-a, .vd-row-b { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vd-hero { grid-template-columns: minmax(0, 1fr); }
  .vd-hero-when { justify-self: start; text-align: left; }
  .vd-hero-sky { flex-direction: column; align-items: flex-start; }
  .vd-booth { grid-template-columns: minmax(0, 1fr); }
  .vd-pack { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .vd-bars { width: 100%; }
  .vd-top-actions { width: 100%; justify-content: space-between; }
  .vd-count span { width: 54px; }
}

/* The full checklist for one show */
.vp-top { margin-bottom: 16px; }
.vp-meter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.vp-meter b { font-size: 1.8rem; letter-spacing: -0.02em; }
.vp-meter span { color: var(--muted); }
.vp-bar { height: 12px; }
.vp-groups { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; font-size: 0.88rem; color: var(--muted); }
.vp-groups strong { color: var(--ink); }
.vp-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.vp-areas .card { scroll-margin-top: 16px; }
.vp-title { display: flex; align-items: center; gap: 8px; }
.vp-items { list-style: none; margin: 0 0 4px; padding: 0; }
.vp-items li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.vp-items li:first-child { border-top: 0; }
.vp-items form { margin: 0; }
.vp-items form:first-child { flex: 1; min-width: 0; }
.vp-tick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.vp-tick:hover .vd-box { border-color: var(--brand); }
.vp-items li.done .vp-tick > span:last-child { color: var(--muted); text-decoration: line-through; }
.vp-x { border: 0; background: none; color: #a3aec2; font-size: 1.25rem; line-height: 1; padding: 6px 8px; cursor: pointer; border-radius: 8px; }
.vp-x:hover { color: var(--red); background: var(--red-100); }
.vp-all { border: 0; background: none; padding: 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--brand); cursor: pointer; }
.vp-all:hover { text-decoration: underline; }

/* ---------- Organizer dashboard: one event, its applications and its floor ---------- */
.oz-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.oz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.oz-top h1 { font-size: 1.75rem; }
.oz-top p { margin: 0; }
.oz-top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.oz-pick { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 14px; box-shadow: var(--shadow); min-width: 0; }
.oz-pick > .oz-ic { width: 22px; height: 22px; color: var(--brand); }
.oz-pick > span { display: block; min-width: 0; }
.oz-pick label { display: block; font-size: 0.72rem; color: var(--muted); padding-left: 2px; }
.oz-pick select { border: 0; background-color: transparent; padding: 0 28px 2px 2px; font-weight: 700; color: var(--ink); width: auto; max-width: 340px; text-overflow: ellipsis; box-shadow: none; }
.oz-pick select:focus { outline: 2px solid #a9c4fb; }

.oz-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.oz-stat { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--muted); font-size: 0.93rem; min-width: 0; }
.oz-stat:hover { text-decoration: none; border-color: #b9cdf8; }
.oz-stat > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #fff; flex: none; }
.oz-stat > span .oz-ic { width: 24px; height: 24px; stroke-width: 2; }
.oz-stat b { display: block; font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.oz-stat small { display: flex; align-items: center; gap: 3px; font-size: 0.82rem; margin-top: 3px; }
.oz-stat small .oz-ic { width: 13px; height: 13px; stroke-width: 2.6; }
.oz-stat small.up { color: var(--ok); }
.oz-stat small.down { color: var(--red); }
.oz-stat.purple > span { background: #6d4fd6; }
.oz-stat.blue > span { background: #2563eb; }
.oz-stat.amber > span { background: #f5b83d; color: #5b3a00; }
.oz-stat.green > span { background: #1f9d5b; }
.oz-stat.red > span { background: #ef4458; }

.oz-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oz-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.oz-body .card h2 { font-size: 1.08rem; }
.oz-body .card h3 { font-size: 1rem; }
.oz-body .card-head a, .oz-head > a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.oz-body .card-head a .oz-ic, .oz-head > a .oz-ic { width: 15px; height: 15px; }
.oz-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.oz-head > div { flex: 1; min-width: 0; }
.oz-head h2 { font-size: 1.2rem !important; }
.oz-head p { margin: 4px 0 0; font-size: 0.9rem; }
.oz-head > a { margin-top: 4px; }
.oz-head-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--brand); flex: none; }
.oz-head-ic .oz-ic { width: 24px; height: 24px; }

.oz-flow { display: flex; align-items: stretch; gap: 4px; }
.oz-flow > a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; color: var(--ink); }
.oz-flow > a:hover { text-decoration: none; filter: brightness(0.97); }
.oz-flow > a > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); flex: none; }
.oz-flow > a > span .oz-ic { width: 22px; height: 22px; }
.oz-flow em { display: block; font-style: normal; font-weight: 700; font-size: 0.82rem; }
.oz-flow b { display: block; font-size: 1.25rem; line-height: 1.2; white-space: nowrap; }
.oz-flow small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.25; }
.oz-flow > i { display: grid; place-items: center; color: #8a97ad; flex: none; }
.oz-flow > i .oz-ic { width: 14px; height: 14px; stroke-width: 2.4; }
.oz-flow .blue { background: #e8f0fe; } .oz-flow .blue em, .oz-flow .blue > span { color: #1d4ed8; }
.oz-flow .purple { background: #efeafd; } .oz-flow .purple em, .oz-flow .purple > span { color: #5b3fc4; }
.oz-flow .amber { background: #fdf3dc; } .oz-flow .amber em, .oz-flow .amber > span { color: #a15c00; }
.oz-flow .green { background: #e5f6ec; } .oz-flow .green em, .oz-flow .green > span { color: #15803d; }
.oz-flow .red { background: #fdecee; } .oz-flow .red em, .oz-flow .red > span { color: #cf2e42; }

.oz-listhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.oz-listhead > div { flex: 1 1 200px; min-width: 0; }
.oz-listhead p { margin: 4px 0 0; }
.oz-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oz-filter select { width: auto; font-size: 0.88rem; padding: 8px 30px 8px 12px; }
.oz-search { position: relative; display: block; }
.oz-search .oz-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.oz-search input { padding: 8px 12px 8px 38px; font-size: 0.88rem; width: 250px; max-width: 100%; }
.oz-none { margin: 16px 0 4px; }
.oz-table th { white-space: nowrap; }
.oz-table th:first-child, .oz-table td:first-child { width: 28px; padding-left: 2px; }
.oz-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); }
.oz-vendor { display: flex; gap: 12px; align-items: center; min-width: 170px; }
.oz-vendor strong { display: inline; margin-right: 6px; }
.oz-vendor span.small { display: block; }
.oz-vendor .pill { font-size: 0.72rem; padding: 2px 8px; vertical-align: 1px; }
.oz-when { display: block; white-space: nowrap; }
.oz-table td, .oz-table th { padding-left: 6px; padding-right: 6px; }
.oz-vendor a { color: var(--ink); }
.oz-avatar { display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-weight: 800; font-size: 0.9rem; flex: none; }
.oz-cat { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; filter: saturate(1.2) brightness(0.8); }
.oz-act { display: inline-flex; gap: 6px; margin: 0; vertical-align: middle; }
.oz-yes, .oz-no, .oz-wait { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; background: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1.5px solid; }
.oz-yes .oz-ic, .oz-no .oz-ic { width: 14px; height: 14px; stroke-width: 2.6; }
.oz-yes { color: #15803d; border-color: #5fc58d; }
.oz-yes:hover { background: #e5f6ec; }
.oz-no { color: #cf2e42; border-color: #f29aa5; }
.oz-no:hover { background: #fdecee; }
.oz-wait { color: #5b3fc4; border-color: #c2b3f2; }
.oz-wait:hover { background: #efeafd; }
.oz-more { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; text-align: left; }
.oz-more summary { list-style: none; display: grid; place-items: center; width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink); background: #fff; }
.oz-more summary::-webkit-details-marker { display: none; }
.oz-more summary .oz-ic { stroke-width: 3; }
.oz-more summary:hover, .oz-more[open] summary { background: var(--blue-100); border-color: #b9cdf8; }
.oz-more > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 27, 51, 0.16); padding: 6px; }
.oz-more form { margin: 0; }
.oz-more > div a, .oz-more > div button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.oz-more > div a:hover, .oz-more > div button:hover { background: var(--blue-100); text-decoration: none; }
.oz-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 6px; border-radius: 10px; background: var(--blue-100); }
.oz-bulk.js { display: none; }
.oz-bulk.js.on { display: flex; }
.oz-bulk strong { margin-right: 6px; font-size: 0.9rem; }
.oz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.oz-pages { display: flex; gap: 4px; align-items: center; }
.oz-pages a, .oz-pages b, .oz-pages span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; font-size: 0.9rem; }
.oz-pages a { color: var(--ink); }
.oz-pages a:hover { background: var(--blue-100); text-decoration: none; }
.oz-pages b { background: var(--blue-100); color: var(--brand); border: 1px solid #b9cdf8; }
.oz-pages a[aria-label], .oz-pages span { border: 1px solid var(--line); font-size: 1.2rem; }
.oz-pages span { color: #b6c2d6; }

.oz-ops { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; }
.oz-panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; display: flex; flex-direction: column; }
.oz-panel .card-head { margin-bottom: 10px; flex-wrap: wrap; }
.oz-map { display: block; background: #f6f8fc; border-radius: 10px; padding: 8px; }
.oz-map svg { display: block; width: 100%; height: auto; max-height: 300px; }
.oz-map text { font-size: 0; }
.oz-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 0.82rem; color: var(--muted); }
.oz-key li, .oz-counts li { display: flex; align-items: center; gap: 8px; }
.oz-key i { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(15, 27, 51, 0.18); }
.oz-nomap { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 12px; background: #f6f8fc; border-radius: 10px; flex: 1; align-content: center; }
.oz-nomap > .oz-ic { width: 38px; height: 38px; color: #8a97ad; stroke-width: 1.4; }
.oz-nomap p { margin: 6px 0 12px; max-width: 320px; }
.oz-progress { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 8px; font-size: 0.92rem; }
.oz-bar { height: 12px; border-radius: 99px; background: #e6ebf3; overflow: hidden; }
.oz-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.oz-counts { list-style: none; margin: 14px 0 12px; padding: 0; font-size: 0.92rem; }
.oz-counts li { padding: 8px 0; gap: 12px; }
.oz-counts i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.oz-counts b { margin-left: auto; }
.oz-note { margin: 0 0 12px; color: var(--amber); font-weight: 600; }
.oz-wide { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; }

.oz-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oz-pair > * { min-width: 0; }
.oz-events { list-style: none; margin: 0; padding: 0; }
.oz-events > li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.oz-events > li:first-child { border-top: 0; padding-top: 2px; }
.oz-events > li:last-child { padding-bottom: 0; }
.oz-events > li > div:last-child { flex: 1; min-width: 0; }
.oz-events .vd-date { width: 58px; align-self: flex-start; }
.oz-events .vd-date b { font-size: 1.5rem; }
.oz-events p { margin: 0 0 3px; display: flex; align-items: center; gap: 7px; }
.oz-events p .oz-ic { width: 15px; height: 15px; }
.oz-event-name { flex-wrap: wrap; margin-bottom: 5px !important; }
.oz-event-nums { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 6px; }
.oz-event-nums span { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }
.oz-event-nums .oz-ic { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.oz-event-nums b { font-size: 0.9rem; line-height: 1.2; }
.oz-event-nums small { color: var(--muted); font-size: 0.74rem; }
.oz-todo { list-style: none; margin: 0; padding: 0; }
.oz-todo li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.oz-todo form { margin: 0; display: flex; }
.oz-todo li > a, .oz-todo li > span:not(.oz-dot):not(.oz-level) { flex: 1; min-width: 0; color: var(--ink); }
.oz-todo li > a:hover { text-decoration: none; }
.oz-todo li > a:hover strong { color: var(--brand); }
.oz-todo strong, .oz-todo .small { display: block; }
.oz-todo strong { font-size: 0.88rem; font-weight: 600; }
.oz-dot { width: 22px; height: 22px; border-radius: 6px; flex: none; position: relative; }
.oz-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.oz-dot.high { background: #fdecee; color: #ef4458; }
.oz-dot.medium { background: #fdf3dc; color: #d9930d; }
.oz-dot.low { background: #e8f0fe; color: #2563eb; }
.oz-level { padding: 3px 10px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.oz-level.high { background: #fdecee; color: #cf2e42; }
.oz-level.medium { background: #fdf3dc; color: #a15c00; }
.oz-level.low { background: #e8f0fe; color: #1d4ed8; }

@media (min-width: 1501px) and (max-width: 1800px) {
  .oz-pair { grid-template-columns: minmax(0, 1fr); }
  .oz-ops { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .oz-flow > a { padding: 10px 8px; gap: 8px; }
  .oz-flow > a > span { width: 34px; height: 34px; }
}
@media (max-width: 1500px) {
  .oz-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .oz-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .oz-flow { flex-wrap: wrap; }
  .oz-flow > i { display: none; }
  .oz-flow > a { flex: 1 1 150px; }
}
@media (max-width: 760px) {
  .oz-ops, .oz-pair { grid-template-columns: minmax(0, 1fr); }
  .oz-head { flex-wrap: wrap; }
  .oz-pick select { max-width: 200px; }
  .oz-search input { width: 100%; }
  .oz-more > div { right: auto; left: -180px; }
}

/* ---------- Design Studio: the main page ---------- */
.ds-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ds-search { position: relative; max-width: 620px; margin: -8px 0 16px; }
.ds-search .ds-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ds-search input { width: 100%; padding: 11px 18px 11px 46px; border-radius: 99px; background: #fff; }

.ds-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; }
.ds-hero-words { padding: 30px 12px 28px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ds-eyebrow { margin: 0 0 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.ds-hero h1 { font-size: clamp(1.8rem, 2.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 13em; }
.ds-hero h1 em { font-style: normal; color: var(--brand); }
.ds-lede { margin: 0 0 24px; font-size: 1.05rem; color: #46546f; max-width: 34em; }
.ds-hero-go { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.ds-hero-go .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; }
.ds-hero-go .btn.ghost { color: var(--brand); }
.ds-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand); }
.ds-plus .ds-ic { width: 15px; height: 15px; stroke-width: 3; }
.ds-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; font-size: 0.86rem; color: var(--muted); }
.ds-ticks li { display: flex; align-items: center; gap: 8px; }
.ds-ticks span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: #fff; }
.ds-ticks .ds-ic { width: 10px; height: 10px; stroke-width: 3.6; }
.ds-hero-art { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.ds-step { margin-bottom: 22px; }
.ds-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ds-head h2, .ds-finish h2 { font-size: 1.15rem; }
.ds-all { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; }
.ds-all:hover { text-decoration: underline; }
.ds-all .ds-ic { width: 15px; height: 15px; }
.ds-rowwrap { position: relative; }
.ds-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 3px 56px 8px 3px; margin: -3px; scrollbar-width: thin; }
.ds-row > * { flex: 0 0 auto; scroll-snap-align: start; }
.ds-row > [hidden] { display: none !important; }
.ds-row.all, .ds-row.found { flex-wrap: wrap; overflow: visible; padding-right: 3px; }
.ds-next { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(15, 27, 51, 0.14); cursor: pointer; }
.ds-next:hover { background: var(--blue-100); border-color: #b9cdf8; }
.ds-next .ds-ic { stroke-width: 2.4; }
.ds-row.all ~ .ds-next, .ds-row.found ~ .ds-next { display: none; }
.ds-rowwrap::after { content: ""; position: absolute; right: -3px; top: 0; bottom: 8px; width: 70px; background: linear-gradient(90deg, rgba(242, 245, 251, 0), var(--bg) 78%); pointer-events: none; }
.ds-rowwrap:has(.ds-row.all)::after, .ds-rowwrap:has(.ds-row.found)::after { display: none; }

.ds-card { position: relative; display: block; cursor: pointer; }
.ds-card input { position: absolute; opacity: 0; pointer-events: none; }
.ds-card > span { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); box-sizing: border-box; }
.ds-card:hover > span { border-color: #9fbcf8; }
.ds-card input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: #f3f7ff; }
.ds-card input:focus-visible + span { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.ds-card strong { font-size: 0.95rem; }
.ds-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.ds-format { width: 188px; }
.ds-format > span { padding: 16px 18px 18px; gap: 3px; }
.ds-format svg { width: 38px; height: 38px; margin-bottom: 12px; fill: var(--brand); fill-opacity: 0.14; stroke: var(--brand); stroke-width: 4; stroke-linejoin: round; }
.ds-kind { width: 176px; }
.ds-kind > span { padding: 7px 7px 12px; gap: 2px; }
.ds-kind strong, .ds-kind small { padding: 0 7px; }
.ds-kind-pic { position: relative; display: block; height: 82px; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.ds-kind-pic svg { position: absolute; left: 18px; bottom: -6px; width: 74px; height: 74px; }
.ds-kind-pic svg.second { left: auto; right: 14px; bottom: 10px; width: 46px; height: 46px; opacity: 0.9; }

.ds-colors { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ds-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ds-palette { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; }
.ds-palette:hover { border-color: #9fbcf8; }
.ds-palette.on, .ds-feel.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: #f3f7ff; }
.ds-strip { display: flex; height: 46px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(15, 27, 51, 0.12); }
.ds-strip i { flex: 1; }
.ds-palette strong { font-size: 0.92rem; }
.ds-palette span:last-child { color: var(--muted); font-size: 0.82rem; }
.ds-otherpick { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.88rem; color: var(--ok); font-weight: 600; }
.ds-otherpick span { color: var(--ink); }
.ds-psych { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-content: start; padding: 18px; border-radius: var(--radius); background: #eaf0fd; border: 1px solid #d5e2fc; }
.ds-psych-ic { display: grid; place-items: center; width: 38px; height: 38px; color: var(--brand); }
.ds-psych-ic .ds-ic { width: 28px; height: 28px; stroke-width: 1.6; }
.ds-psych h3 { font-size: 1.02rem; }
.ds-psych p { margin: 2px 0 0; font-size: 0.86rem; color: #46546f; }
.ds-feels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.ds-feel { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border: 1px solid transparent; border-radius: 10px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ds-feel:hover { border-color: #9fbcf8; }
.ds-feel i { width: 40px; height: 40px; border-radius: 8px; flex: none; border: 1px solid rgba(15, 27, 51, 0.12); }
.ds-feel strong, .ds-feel small { display: block; }
.ds-feel strong { font-size: 0.86rem; }
.ds-feel small { color: var(--muted); font-size: 0.76rem; line-height: 1.25; }
.ds-allpalettes { margin-top: 14px; }
.ds-allpalettes:not([open]) { display: none; }

.ds-finish .btn.big { display: inline-flex; align-items: center; gap: 10px; }

.ds-designs > * { width: 236px; }
.ds-design { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 10px 12px; box-sizing: border-box; min-width: 0; }
.ds-design-pic { display: flex; align-items: center; justify-content: center; height: 150px; background: #f1f4fa; border-radius: 8px; padding: 8px; box-sizing: border-box; }
.ds-design-pic .flypreview { width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.ds-design h3 { margin: 10px 2px 2px; font-size: 0.95rem; overflow-wrap: anywhere; }
.ds-design p { margin: 0 2px 8px; }
.ds-design .inline { gap: 6px; padding: 0 2px; }
.ds-design form { margin: 0; }
.ds-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px; border: 2px dashed #c3cfe6; border-radius: 12px; background: transparent; font: inherit; color: var(--ink); cursor: pointer; padding: 16px; text-align: center; }
.ds-new:hover { border-color: var(--brand); background: #f3f7ff; }
.ds-new span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e3ebfb; color: var(--brand); margin-bottom: 4px; }
.ds-new span .ds-ic { width: 24px; height: 24px; stroke-width: 2.4; }
.ds-new small { color: var(--muted); }

.ds-template-set { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.ds-template-set > svg { width: 34px; height: 34px; flex: none; fill: var(--brand); fill-opacity: 0.14; stroke: var(--brand); stroke-width: 4; stroke-linejoin: round; }
.ds-template-set strong { display: block; margin-bottom: 6px; }
.ds-template-set div div { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-template-set button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.ds-template-set button:hover { border-color: var(--brand); background: var(--blue-100); color: var(--brand); }

@media (max-width: 1250px) {
  .ds-colors { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .ds-hero { grid-template-columns: minmax(0, 1fr); }
  .ds-hero-words { padding: 26px 22px; }
  .ds-hero-art { max-height: 300px; }
}
@media (max-width: 560px) {
  .ds-format { width: 160px; }
  .ds-kind { width: 156px; }
  .ds-designs > * { width: 210px; }
  .ds-hero-go .btn { width: 100%; justify-content: center; }
}

/* ---------- Design Studio editor: a full-screen workspace ---------- */
.shell:has(.dx) { display: block; }
.shell:has(.dx) > .sidebar { display: none; }
.shell:has(.dx) > .main { padding: 0; }
.dx { display: grid; grid-template-columns: 92px 340px minmax(0, 1fr) 330px; grid-template-rows: 58px minmax(0, 1fr); height: 100vh; background: #eef2f9; color: var(--ink); }
.dx.dx-noleft { grid-template-columns: 92px 0 minmax(0, 1fr) 330px; }
.dx.dx-noleft .dx-left { display: none; }
.dx:fullscreen { background: #eef2f9; }
.dx > .dx-rail { grid-column: 1; grid-row: 2; }
.dx > .dx-left { grid-column: 2; grid-row: 2; }
.dx > .dx-stage { grid-column: 3; grid-row: 2; }
.dx > .dx-right { grid-column: 4; grid-row: 2; }
.dx-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dx h3 { font-size: 0.95rem; margin: 18px 0 8px; }
.dx h4 { font-size: 0.86rem; margin: 16px 0 8px; }
.dx-icbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.dx-icbtn:hover:not(:disabled) { background: rgba(37, 99, 235, 0.12); }
.dx-icbtn:disabled { opacity: 0.35; cursor: default; }
.dx-linkbtn { border: 0; background: none; padding: 0; margin-top: 8px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--brand); cursor: pointer; }
.dx-linkbtn:hover { text-decoration: underline; }
.dx-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dx-stack { display: grid; gap: 6px; }

/* top bar */
.dx-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 14px 0 18px; background: var(--navy); color: #fff; min-width: 0; }
.dx-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.dx-brand:hover { text-decoration: none; }
.dx-brand svg { width: 26px; height: 26px; fill: var(--brand); }
.dx-drop { position: relative; }
.dx-drop > summary { list-style: none; cursor: pointer; }
.dx-drop > summary::-webkit-details-marker { display: none; }
.dx-drop > div { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 27, 51, 0.2); padding: 6px; }
.dx-drop > div.right { left: auto; right: 0; }
.dx-drop > div a, .dx-drop > div button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dx-drop > div a:hover, .dx-drop > div button:hover { background: var(--blue-100); text-decoration: none; }
.dx-drop > div hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.dx-drop.off { opacity: 0.4; pointer-events: none; }
.dx-where > summary { display: flex; align-items: center; gap: 6px; font-weight: 700; padding: 8px 10px; border-radius: 9px; }
.dx-where > summary:hover { background: rgba(255, 255, 255, 0.1); }
.dx-where .dx-ic { width: 16px; height: 16px; }
.dx-name { flex: 0 1 250px; min-width: 110px; margin-left: 26px; }
.dx-name input { width: 100%; padding: 8px 12px; border-radius: 9px; border: 1px solid transparent; background: #fff; color: var(--ink); font-weight: 600; }
.dx-status { color: #c5d0e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.dx-status.ok { color: #7ee2a8; }
.dx-status.warn { color: #fcd27b; }
.dx-status.error { color: #ffa3ad; }
.dx-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.dx-top .dx-icbtn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.dx-zoompick { display: flex; align-items: center; gap: 4px; padding-left: 10px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 9px; }
.dx-zoompick select { border: 0; background-color: transparent; color: #fff; font-weight: 600; width: auto; padding: 8px 26px 8px 6px; }
.dx-zoompick select option { color: var(--ink); }
.dx-topbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.28); background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dx-topbtn:hover { background: rgba(255, 255, 255, 0.12); }
.dx-topbtn.primary { background: var(--brand); border-color: var(--brand); }
.dx-topbtn.primary:hover { background: var(--brand-dark); }
.dx-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.85rem; margin-left: 4px; }
.dx-avatar:hover { text-decoration: none; filter: brightness(1.1); }

/* left rail and panel */
.dx-rail { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; overflow-y: auto; }
.dx-rail button { display: grid; justify-items: center; gap: 5px; padding: 11px 2px 9px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 0.74rem; color: var(--ink); cursor: pointer; }
.dx-rail button .dx-ic { width: 23px; height: 23px; }
.dx-rail button:hover { background: #dfe7f6; }
.dx-rail button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.dx-rail-end { margin-top: auto; }
.dx-left { background: #fff; border-radius: 14px; margin: 12px 0; padding: 16px; overflow-y: auto; box-shadow: var(--shadow); min-width: 0; }
.dx-left-head { display: flex; justify-content: space-between; align-items: center; margin: -4px -6px 10px 0; }
.dx-left-head h2 { font-size: 1.1rem; }
.dx-search { position: relative; display: block; }
.dx-search .dx-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.dx-search input { width: 100%; padding: 9px 12px 9px 38px; font-size: 0.9rem; }
.dx-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.dx-chips button { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 0.82rem; color: var(--ink); cursor: pointer; }
.dx-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.dx-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dx-thumb { display: block; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: center; min-width: 0; }
.dx-thumb:hover { text-decoration: none; }
.dx-thumb-svg { display: block; width: 100%; aspect-ratio: 1; background: #f1f4fa; border: 1px solid var(--line); border-radius: 8px; padding: 6px; box-sizing: border-box; }
.dx-thumb:hover .dx-thumb-svg { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.dx-thumb span { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-note { margin: 14px 0 0; }
.dx-addtext { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.dx-addtext.big { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.dx-addtext.mid { font-size: 1.05rem; font-weight: 700; }
.dx-addtext:hover, .dx-fonts button:hover, .dx-shapes button:hover { border-color: var(--brand); background: var(--blue-100); }
.dx-fonts { display: grid; gap: 6px; }
.dx-fonts button { text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
.dx-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dx-shapes button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; cursor: pointer; }
.dx-shapes svg { display: block; width: 100%; height: 100%; fill: #4b5d7a; stroke: #4b5d7a; }
.dx-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dx-pic { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; padding: 4px; cursor: pointer; overflow: hidden; }
.dx-pic:hover { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.dx-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dx-upload { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 22px 12px; border: 2px dashed #c3cfe6; border-radius: 12px; background: #f6f8fc; font: inherit; color: var(--ink); cursor: pointer; margin-bottom: 10px; }
.dx-upload:hover { border-color: var(--brand); background: var(--blue-100); }
.dx-upload .dx-ic { width: 26px; height: 26px; color: var(--brand); }
.dx-upload span { font-size: 0.8rem; color: var(--muted); }
.dx-grads { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.dx-grads button { aspect-ratio: 1; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.dx-grads button:hover, .dx-grads button.on { box-shadow: 0 0 0 2px var(--brand); }
.dx-help { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.dx-help li { margin-bottom: 9px; }
.dx .themeswatches { margin-top: 8px; }
.dx .research { font-size: 0.82rem; }

/* the page */
.dx-stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px; min-width: 0; min-height: 0; }
.dx-tools { display: flex; align-items: stretch; gap: 2px; background: #fff; border-radius: 14px; padding: 6px 8px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: thin; }
.dx-tools > button, .dx-tools > .dx-drop > summary { display: grid; justify-items: center; gap: 4px; padding: 7px 12px 5px; min-width: 62px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 0.74rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dx-tools > button.slim { min-width: 0; padding: 7px 10px; align-content: center; }
.dx-tools > button:hover:not(:disabled), .dx-tools > .dx-drop > summary:hover { background: #eef2f9; }
.dx-tools > button.on { background: var(--blue-100); color: var(--brand); }
.dx-tools > button:disabled { opacity: 0.38; cursor: default; }
.dx-tools > i { width: 1px; background: var(--line); margin: 4px 6px; flex: none; }
.dx-tools .dx-drop { position: static; }
.dx-tools .dx-drop > div { top: auto; left: auto; margin-top: 4px; }
.dx-canvas { background: transparent; border-radius: 14px; padding: 46px 26px 26px; display: flex; align-items: center; justify-content: center; overflow: auto; min-height: 0; max-height: none; }
.dx-canvas.zoomed { align-items: flex-start; justify-content: flex-start; }
.dx-canvas .designpage { margin: auto; box-shadow: 0 8px 30px rgba(15, 27, 51, 0.18); }
.designpage .des-item.locked { cursor: default; }
.des-outline.locked { stroke: #94a3b8; stroke-dasharray: 3 4; }
.dx-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 6px 10px 6px 16px; box-shadow: var(--shadow); }
.dx-pagechip { display: flex; align-items: baseline; gap: 10px; font-size: 0.86rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-pagechip span { color: var(--muted); }
.dx-zoombar { display: flex; align-items: center; gap: 4px; flex: none; }
.dx-zoombar input[type="range"] { width: 170px; accent-color: var(--brand); }
.dx-zoomvalue { min-width: 48px; text-align: center; font-size: 0.86rem; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; }

/* right panel */
.dx-right { background: #fff; border-radius: 14px; margin: 12px 12px 12px 0; padding: 6px 16px 16px; overflow-y: auto; box-shadow: var(--shadow); min-width: 0; }
.dx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); position: sticky; top: -6px; background: #fff; z-index: 3; margin: 0 -16px 12px; padding: 6px 16px 0; border-bottom: 1px solid var(--line); }
.dx-tabs button { padding: 11px 4px 10px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.dx-tabs button.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.dx-pane > h3:first-child, .dx-pane > h4:first-child { margin-top: 0; }
.dx-right .field { margin-bottom: 10px; }
.dx-right .form-grid { gap: 8px 10px; }
.dx-right textarea { min-height: 70px; }
.dx-seg { display: inline-grid; grid-auto-flow: column; background: #eef2f9; border-radius: 9px; padding: 3px; margin-bottom: 10px; }
.dx-seg button { padding: 6px 16px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 0.84rem; color: var(--muted); cursor: pointer; }
.dx-seg button.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 27, 51, 0.14); }
.dx-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dx-dots button { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 27, 51, 0.2); padding: 0; cursor: pointer; }
.dx-dots button:hover { box-shadow: 0 0 0 2px var(--brand); }
.dx-gradbar { height: 64px; border-radius: 10px; border: 1px solid var(--line); }
.dx-angle { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; margin-left: auto; }
.dx-angle input { width: 74px; }
.dx-slide { display: flex; align-items: center; gap: 10px; }
.dx-slide input, .dx-adjust input { flex: 1; min-width: 0; accent-color: var(--brand); }
.dx-slide output, .dx-adjust output { min-width: 50px; text-align: center; font-size: 0.84rem; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.dx-adjust { display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: center; gap: 2px 10px; margin-bottom: 8px; font-size: 0.84rem; }
.dx-adjust span { grid-column: 1 / -1; }
.dx-imgrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.dx-imgthumb { display: block; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dx-imgthumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dx-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dx-filters button { border: 0; background: none; padding: 0; font: inherit; font-size: 0.72rem; color: var(--muted); cursor: pointer; }
.dx-filters button span { display: block; aspect-ratio: 1; border: 2px solid transparent; border-radius: 9px; overflow: hidden; margin-bottom: 4px; box-shadow: 0 0 0 1px var(--line); }
.dx-filters button.on { color: var(--ink); font-weight: 700; }
.dx-filters button.on span { border-color: var(--brand); box-shadow: none; }
.dx-filters img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dx-filters img[data-filter-thumb="bw"] { filter: grayscale(1); }
.dx-filters img[data-filter-thumb="warm"] { filter: sepia(0.35) saturate(1.2); }
.dx-filters img[data-filter-thumb="cool"] { filter: hue-rotate(-12deg) saturate(1.05) brightness(1.03); }
.dx-filters img[data-filter-thumb="vivid"] { filter: saturate(1.5) contrast(1.12); }
.dx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dx-grid3 button, .dx-quick button { padding: 8px 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 0.8rem; color: var(--ink); cursor: pointer; }
.dx-grid3 button:hover, .dx-quick button:hover:not(:disabled) { border-color: var(--brand); background: var(--blue-100); }

.dx-layers { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dx-layers-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dx-layers-head h4 { margin: 0; font-size: 0.95rem; }
.dx-layers-head span { display: flex; }
.dx-layers-head .dx-icbtn { width: 30px; height: 30px; }
.dx-layers-head .dx-ic { width: 17px; height: 17px; }
.dx-layers ul { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.dx-layers li { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border: 1px solid transparent; border-radius: 9px; }
.dx-layers li:hover { background: #f4f7fd; }
.dx-layers li.on { background: var(--blue-100); border-color: #b9cdf8; }
.dx-layers li.off .dx-layer-name, .dx-layers li.off .dx-layer-chip { opacity: 0.4; }
.dx-layers li.dragging { opacity: 0.45; }
.dx-layers li.over { border-top-color: var(--brand); box-shadow: 0 -2px 0 var(--brand); }
.dx-eye { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ink); cursor: pointer; flex: none; }
.dx-eye:hover { background: #dfe7f6; }
.dx-eye .dx-ic, .dx-layer-chip .dx-ic, .dx-layer-lock .dx-ic, .dx-grip .dx-ic { width: 17px; height: 17px; }
.dx-layer-chip { display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.dx-layer-chip i { display: block; width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(15, 27, 51, 0.15); }
.dx-layer-chip img { display: block; width: 24px; height: 24px; object-fit: contain; }
.dx-layer-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 0.86rem; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-layer-lock, .dx-grip { display: grid; place-items: center; color: #8a97ad; flex: none; }
.dx-grip { cursor: grab; }
.dx-grip .dx-ic { stroke-width: 3; }
.dx-quick { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dx-quick h4 { margin: 0 0 8px; font-size: 0.95rem; }
.dx-quick > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dx-quick button { display: grid; justify-items: center; gap: 5px; padding: 10px 2px 8px; font-size: 0.7rem; line-height: 1.15; }
.dx-quick button:disabled { opacity: 0.4; cursor: default; }

/* cropping */
.dx-cropdialog { width: min(760px, 94vw); }
.dx-cropwrap { display: flex; justify-content: center; }
.dx-cropstage { position: relative; display: inline-block; line-height: 0; touch-action: none; user-select: none; border-radius: 6px; overflow: hidden; }
.dx-cropstage img { display: block; max-width: 100%; max-height: 58vh; opacity: 0.45; pointer-events: none; }
.dx-cropbox { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand), 0 0 0 4000px rgba(10, 23, 51, 0.35); cursor: move; }
.dx-cropbox i { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 4px; }
.dx-cropbox i[data-crop-handle="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.dx-cropbox i[data-crop-handle="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.dx-cropbox i[data-crop-handle="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.dx-cropbox i[data-crop-handle="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }

@media (max-width: 1280px) {
  .dx { grid-template-columns: 76px 300px minmax(0, 1fr) 300px; }
  .dx.dx-noleft { grid-template-columns: 76px 0 minmax(0, 1fr) 300px; }
  .dx-status { display: none; }
  .dx-name { margin-left: 6px; }
  .dx-zoombar input[type="range"] { width: 110px; }
}
@media (max-width: 1000px) {
  .dx, .dx.dx-noleft { display: block; height: auto; }
  .dx-top { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .dx-top-right { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; }
  .dx-name { flex: 1 1 140px; margin-left: 0; }
  .dx-quick > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-zoombar input[type="range"] { width: 80px; }
  .dx-rail { flex-direction: row; overflow-x: auto; padding: 8px; }
  .dx-rail button { min-width: 70px; }
  .dx-rail-end { margin-top: 0; }
  .dx-left, .dx-right { margin: 0 12px 12px; }
  .dx-canvas { min-height: 60vh; }
  .dx-pagechip span { display: none; }
  .dx-stage { grid-template-columns: minmax(0, 1fr); }
  .dx-stage > * { min-width: 0; }
  .dx-bottom { flex-wrap: wrap; gap: 8px; }
  .dx-zoombar { flex-wrap: wrap; }
}
@media print {
  .shell:has(.dx) > .main { padding: 0; }
  .dx { display: block; height: auto; background: none; }
  .dx-stage { display: block; padding: 0; }
  .dx-canvas { padding: 0; overflow: visible; display: block; }
}

/* ---------- My Events (organizer) ---------- */
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.me-stat { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.me-stat > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; }
.me-stat > span .oz-ic { width: 26px; height: 26px; }
.me-stat.blue > span { background: #e3ecfd; color: #2563eb; }
.me-stat.amber > span { background: #fdf0d2; color: #b7791f; }
.me-stat.green > span { background: #dff3e4; color: #1f7a4d; }
.me-stat.purple > span { background: #ece5fb; color: #6d4fd6; }
.me-stat b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.me-stat strong { display: block; font-size: 0.95rem; color: var(--ink); margin-top: 2px; }
.me-stat small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.me-none { text-align: center; padding: 40px 20px; }
.me-none p { max-width: 460px; margin: 6px auto 16px; }
.me-board { padding: 8px 20px 20px; }
.me-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.me-tabs { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; }
.me-tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 16px 14px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.me-tabs button:hover { color: var(--ink); }
.me-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.me-search { flex: 0 1 380px; margin: 8px 0; }
.me-search input { width: 100%; padding: 10px 12px 10px 40px; font-size: 0.92rem; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 22px; }
.me-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.me-card[hidden] { display: none; }
.me-art { position: relative; height: 140px; border-radius: 13px 13px 0 0; }
.me-art > svg { display: block; width: 100%; height: 100%; border-radius: 13px 13px 0 0; }
.me-pill { position: absolute; left: 14px; top: 14px; padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 27, 51, 0.15); }
.me-pill.draft { background: #fdf0d2; color: #7a4d06; }
.me-pill.published { background: #dff3e4; color: #14532d; }
.me-pill.past { background: #e8ecf3; color: #3d4a63; }
.me-pill.cancelled { background: #fde2e5; color: #9b1c2c; }
.me-more { position: absolute; right: 12px; top: 12px; margin: 0; }
.me-more summary { width: 38px; height: 38px; border-radius: 50%; border: 0; box-shadow: 0 2px 8px rgba(15, 27, 51, 0.18); }
.me-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.me-body h2 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.me-body h2 a { color: var(--ink); }
.me-where { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -6px 0 0; color: var(--muted); font-size: 0.93rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.me-where span { display: inline-flex; align-items: center; gap: 7px; }
.me-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.me-nums > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; background: #f6f8fc; border-radius: 10px; padding: 12px; }
.me-chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e3ecfd; color: var(--brand); }
.me-nums p { margin: 0; min-width: 0; }
.me-nums b { display: block; font-size: 1.1rem; color: var(--ink); line-height: 1.2; }
.me-nums small { display: block; color: var(--muted); font-size: 0.8rem; }
.me-meter, .me-note { grid-column: 1 / -1; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.me-meter { display: flex; align-items: center; gap: 8px; }
.me-meter i { flex: 1; height: 7px; border-radius: 999px; background: #dfe5ef; overflow: hidden; }
.me-meter u { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.me-meter em { font-style: normal; }
.me-layout { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: var(--blue-100); color: var(--brand-dark); }
.me-layout:hover { text-decoration: none; filter: brightness(0.97); }
.me-layout > .oz-ic:first-child { width: 26px; height: 26px; }
.me-layout span { flex: 1; min-width: 0; }
.me-layout b { display: block; font-size: 0.95rem; }
.me-layout small { display: block; color: var(--muted); font-size: 0.83rem; }
.me-layout.ready { background: var(--ok-100); color: var(--ok-ink); }
.me-layout.none { background: #f3f5f9; color: var(--ink); }
.me-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.me-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.me-empty { text-align: center; padding: 30px 0 10px; }
@media (max-width: 1250px) { .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .me-stats { grid-template-columns: 1fr; }
  .me-board { padding: 4px 12px 14px; }
  .me-nums, .me-actions { grid-template-columns: 1fr; }
  .me-search { flex-basis: 100%; }
}

/* ---------- Managing one event (organizer) ---------- */
.ev-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-bottom: 16px; overflow-x: auto; }
.ev-tabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; position: relative; }
.ev-tabs a + a::before { content: ""; position: absolute; left: -3px; top: 22%; height: 56%; border-left: 1px solid var(--line); }
.ev-tabs a .oz-ic { width: 22px; height: 22px; }
.ev-tabs a:hover { background: var(--blue-100); text-decoration: none; }
.ev-tabs a.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28); }
.ev-tabs a.active::before, .ev-tabs a.active + a::before { display: none; }
.ev-tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ev-tabs a.active .count { background: #fff; color: var(--brand); }
.ev-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ev-sum a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--muted); font-size: 0.9rem; min-width: 0; }
.ev-sum a:hover { text-decoration: none; border-color: #b9cdf8; }
.ev-sum a > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef1f6; color: var(--ink); flex: none; }
.ev-sum a > span .oz-ic { width: 24px; height: 24px; }
.ev-sum p { margin: 0; flex: 1; min-width: 0; }
.ev-sum b { display: block; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.ev-sum a > .oz-ic { color: var(--muted); }
.ev-sum a.good > span { background: var(--ok-100); color: var(--ok); }
.ev-sum a.warn > span { background: #fdf0d2; color: #b7791f; }
.ev-sum a.bad { background: #fff1f2; border-color: #f7c5cb; }
.ev-sum a.bad > span { background: #fde2e5; color: #c81e37; }
.ev-page [data-org-grid].one > .stack:has(> :not([hidden])) { max-width: none; }
.ev-seat { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.ev-seat > .card { margin: 0; }
.ev-flag { padding: 5px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.ev-flag.bad { background: #fde2e5; color: #c81e37; }
.ev-flag.good { background: var(--ok-100); color: var(--ok); }
.ev-clear { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; color: var(--ok-ink); }
.ev-clear .oz-ic { color: var(--ok); margin-top: 2px; }
.ev-issues { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ev-issues li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; border-left-width: 4px; }
.ev-issues li.on { background: #fff6f6; border-color: #f3b4bb; border-left-color: #dc2f47; }
.ev-issues li.category.on { background: #fffaf0; border-color: #f2d59a; border-left-color: #d99a1c; }
.ev-issues .seattag { padding: 5px 10px; border-radius: 6px; }
.ev-pair { display: grid; gap: 4px; flex: 1 1 200px; min-width: 0; }
.ev-pair i { font-style: normal; font-size: 0.82rem; background: #eef1f6; border-radius: 6px; padding: 1px 8px; margin: 0 4px; }
.ev-pair small { color: var(--muted); }
.ev-why { flex: 1 1 160px; color: var(--muted); font-size: 0.88rem; }
.ev-do { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-do .btn { display: inline-flex; align-items: center; gap: 6px; }
.ev-do .btn.plain { color: var(--ink); border-color: var(--line); }
.ev-tip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f3f6fd; border-radius: 10px; padding: 12px 14px; }
.ev-tip > .oz-ic { width: 24px; height: 24px; color: var(--brand); }
.ev-tip p { margin: 0; flex: 1 1 260px; font-size: 0.88rem; }
.ev-tip form { margin: 0; }
.ev-map .card-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.ev-map .card-head .btn .oz-ic { width: 15px; height: 15px; }
.ev-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; background: #eef3ee; border-radius: 10px; padding: 10px; max-height: 420px; overflow-y: auto; }
.ev-cells span { display: grid; place-items: center; min-height: 52px; border-radius: 6px; background: #fff; border: 1.5px solid #33473f; font-weight: 700; font-size: 0.85rem; color: var(--ink); overflow: hidden; }
.ev-cells span.taken { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.ev-cells span.hot { outline: 3px dashed #dc2f47; outline-offset: -1px; border-color: #fff; box-shadow: 0 0 0 4px rgba(220, 47, 71, 0.25); position: relative; z-index: 1; }
.ev-map .boothmap g.hot .map-booth { stroke: #dc2f47; stroke-width: 5px; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; paint-order: stroke; }
.ev-map .boothmap g[data-booth], .ev-cells span { transition: opacity 0.2s; }
.ev-map.picking .boothmap g[data-booth]:not(.hot), .ev-map.picking .ev-cells span:not(.hot) { opacity: 0.3; }
.ev-map .boothmap g.hot { animation: ev-pulse 0.9s ease-in-out 2; }
.ev-cells span.hot { animation: ev-pulse 0.9s ease-in-out 2; }
@keyframes ev-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ev-map .boothmap g.hot, .ev-cells span.hot { animation: none; } }
.ev-showing { margin: 10px 0 0; font-weight: 600; color: #c81e37; font-size: 0.9rem; }
.ev-map .boothmap + p, .ev-map .map-canvas + p { display: none; }
.ev-key { display: flex; gap: 22px; margin: 12px 0 0; }
.ev-key span { display: inline-flex; align-items: center; gap: 8px; }
.ev-key i { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #9aa9b8; background: #fff; }
.ev-key i.hot { border: 2px dashed #dc2f47; }
.ev-rules { list-style: none; margin: 0 0 14px; padding: 0; }
.ev-rules li { display: grid; grid-template-columns: minmax(0, 180px) 20px minmax(0, 180px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.ev-rules b { background: #f1f4f9; border-radius: 6px; padding: 3px 10px; font-size: 0.9rem; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-rules li > span[aria-label] { color: var(--muted); text-align: center; }
.ev-rules form { margin: 0; }
.ev-rule-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.ev-rule-add select { flex: 1 1 200px; max-width: 260px; }
.ev-rule-add input { flex: 2 1 220px; }
.ev-rule-add > span { color: var(--muted); }
tr.ev-pick { outline: 2px solid var(--brand); outline-offset: -2px; background: #f3f6fd; }
@media (max-width: 1250px) { .ev-seat { grid-template-columns: 1fr; } .ev-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ev-sum { grid-template-columns: 1fr; }
  .ev-tabs a { flex: 0 0 auto; padding: 10px 14px; }
  .ev-rules li { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
  .ev-rules li > .muted { grid-column: 1 / -1; }
  .ev-rule-add select { max-width: none; }
}
.ev-overlap { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; background: #fff7e6; border: 1px solid #f2d59a; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; color: #6b4a06; }
.ev-overlap > .oz-ic { width: 24px; height: 24px; color: #b7791f; }
.ev-overlap p { margin: 0; flex: 1 1 300px; font-size: 0.9rem; }
.ev-booths { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ev-booths h3 { margin: 0 0 6px; font-size: 1rem; }
.ev-add { display: grid; gap: 10px; margin: 0; background: #f6f8fc; border-radius: 10px; padding: 14px; }
.ev-add p { margin: 0 0 2px; }
.ev-add label { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 600; }
.ev-add input { width: 100%; }
.ev-add label > span { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.ev-plan-do { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.ev-plan-none { text-align: center; background: #f6f8fc; border-radius: 10px; padding: 40px 20px; margin: 0; }
.ev-who .booths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 70vh; overflow-y: auto; padding-right: 4px; margin: 0; }
.ev-who .booth { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1300px) {
  .ev-booths { grid-template-columns: 220px minmax(0, 1fr); }
  .ev-who { grid-column: 1 / -1; }
  .ev-who .booths { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: none; }
}
@media (max-width: 760px) { .ev-booths { grid-template-columns: 1fr; } }

/* Applications for one event */
.ap-views { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; margin: 0 0 14px; }
.ap-views button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: #f3f5f9; border-radius: 9px; padding: 9px 13px; font: inherit; font-size: 0.92rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ap-views button:hover { background: var(--blue-100); }
.ap-views button.accepted .oz-ic { color: var(--ok); }
.ap-views button.declined .oz-ic { color: #dc2f47; }
.ap-views button.attention .oz-ic { color: #d9881c; }
.ap-views button.on { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
.ap-views button.on .oz-ic { color: #fff; }
.ap-card { padding-top: 14px; }
.ap-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.ap-bar strong { font-size: 0.9rem; font-weight: 600; margin-right: 4px; white-space: nowrap; }
.ap-bar > button, .ap-menu > summary { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 0.86rem; color: var(--ink); cursor: pointer; white-space: nowrap; width: auto; height: auto; }
.ap-bar > button .oz-ic, .ap-menu > summary .oz-ic { width: 16px; height: 16px; stroke-width: 1.8; }
.ap-bar > button:hover:not(:disabled) { background: var(--blue-100); border-color: #b9cdf8; }
.ap-bar button:disabled { opacity: 0.45; cursor: default; }
.ap-menu { margin: 0; }
.ap-menu > div { left: 0; right: auto; }
.ap-search { margin-left: auto; flex: 0 1 220px; }
.ap-search input { width: 100%; }
.ap-table { width: 100%; }
.ap-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.ap-table td { vertical-align: middle; }
.ap-table tr[hidden] { display: none; }
.ap-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.ap-table select { padding: 7px 26px 7px 10px; font-size: 0.88rem; width: auto; min-width: 104px; max-width: 150px; }
.ap-pick select { min-width: 128px; }
.ap-table td, .ap-table th { padding-left: 8px; padding-right: 8px; }
@media (min-width: 1500px) { .ev-page[data-tab="applications"] [data-org-grid]:not(.one) { grid-template-columns: minmax(0, 1fr) 310px; } }
@media (max-width: 1499px) { .ev-page[data-tab="applications"] [data-org-grid] { grid-template-columns: minmax(0, 1fr); } }
.ap-table .oz-vendor span.small { display: block; overflow-wrap: anywhere; }
.ap-cat { display: inline-block; padding: 4px 12px; border-radius: 7px; font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.ap-pick { position: relative; display: inline-block; }
.ap-pick::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #9aa5b8; pointer-events: none; }
.ap-pick.accepted::before { background: #1f9d5b; }
.ap-pick.pending::before { background: #2563eb; }
.ap-pick.waitlisted::before { background: #e3a21a; }
.ap-pick.declined::before { background: #dc2f47; }
.ap-pick select { padding-left: 28px; }
.ap-notes { font-size: 0.86rem; color: var(--muted); min-width: 150px; max-width: 240px; }
.ap-notes span { display: flex; gap: 7px; align-items: flex-start; }
.ap-notes span + span { margin-top: 4px; }
.ap-notes .oz-ic { width: 17px; height: 17px; margin-top: 1px; }
.ap-notes .note .oz-ic { color: #e3a21a; }
.ap-notes .flag .oz-ic { color: #5b3fd6; }
.ap-notes .warn { color: #a05a00; }
tr.ap-saving { opacity: 0.5; pointer-events: none; }
.ap-none { text-align: center; padding: 24px 0 6px; margin: 0; }
.ap-saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ap-saved button { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; background: none; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; text-align: left; }
.ap-saved button span { flex: 1; }
.ap-saved button b { min-width: 30px; text-align: center; background: #f1f4f9; border-radius: 999px; font-size: 0.8rem; padding: 1px 8px; }
.ap-saved button:hover { background: #f3f6fd; }
.ap-saved button.on { background: #eef3fe; border-color: #c9dafc; color: var(--brand-dark); }
.ap-saved button.on span { text-decoration: underline; }
@media (max-width: 700px) { .ap-search { flex-basis: 100%; margin-left: 0; } }

/* Settings for one event */
.st { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.st > * { margin: 0; }
.st-nav h2, .st-main h2 { margin: 0 0 4px; font-size: 1.2rem; }
.st-nav > p { margin: 0 0 14px; }
.st-nav button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 12px 12px 14px; margin-top: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.st-nav button > .oz-ic:first-child { width: 24px; height: 24px; }
.st-nav button span { flex: 1; min-width: 0; }
.st-nav button b { display: block; }
.st-nav button small { display: block; color: var(--muted); font-size: 0.82rem; }
.st-nav button:hover { background: #f6f8fc; }
.st-nav button.on { background: var(--blue-100); border-color: #c9dafc; border-left-color: var(--brand); color: var(--brand-dark); }
.st-nav button.danger b, .st-nav button.danger > .oz-ic:first-child { color: #c81e37; }
.st-nav button.danger.on { background: #fff1f2; border-color: #f7c5cb; border-left-color: #dc2f47; }
.st-main section > p.muted { margin: 0 0 18px; max-width: 560px; }
.st-main label i { color: #dc2f47; font-style: normal; }
.st-main form[hidden], .st-main section[hidden] { display: none; }
.st-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin: 6px -20px -6px; padding: 16px 20px 0; }
.st-image { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.st-drop { flex: 1 1 280px; display: grid; justify-items: center; gap: 8px; text-align: center; border: 1.5px dashed #b9c4d8; border-radius: 10px; padding: 18px; cursor: pointer; font-weight: 400; }
.st-drop:hover, .st-drop.over { border-color: var(--brand); background: #f3f6fd; }
.st-drop .oz-ic { width: 28px; height: 28px; color: var(--muted); }
.st-drop b { display: block; font-weight: 500; }
.st-drop u { color: var(--brand); text-decoration: none; }
.st-drop small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.st-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-image figure { margin: 0; flex: 0 1 200px; display: grid; gap: 6px; }
.st-image img { width: 100%; height: 104px; object-fit: cover; border-radius: 10px; }
.st-links { display: grid; gap: 10px; }
.st-links a { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.st-links a:hover { background: #f6f8fc; text-decoration: none; }
.st-links a > .oz-ic:first-child { width: 22px; height: 22px; color: var(--brand); }
.st-links span { flex: 1; }
.st-links b, .st-links small { display: block; }
.st-links small { color: var(--muted); font-size: 0.84rem; }
.st-danger { border: 1px solid #f7c5cb; background: #fff8f8; border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.st-danger h3 { margin: 0 0 4px; font-size: 1rem; color: #9b1c2c; }
.st-danger form { margin: 0; }
.st-side { display: grid; gap: 16px; }
.st-side .card { margin: 0; }
.st-side h3 { margin: 0 0 10px; font-size: 1rem; }
.st-status { display: flex; gap: 10px; border-radius: 10px; padding: 12px; background: #fdf6e3; border: 1px solid #f2dfa8; margin-bottom: 10px; }
.st-status.live { background: var(--ok-100); border-color: var(--ok-line); }
.st-status.off { background: #fff1f2; border-color: #f7c5cb; }
.st-status .oz-ic { width: 22px; height: 22px; color: #b7791f; }
.st-status.live .oz-ic { color: var(--ok); }
.st-status.off .oz-ic { color: #c81e37; }
.st-status p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.st-status b { display: block; color: var(--ink); font-size: 0.95rem; }
.st-wide { display: flex; align-items: center; justify-content: center; gap: 8px; }
.st-wide .oz-ic { width: 16px; height: 16px; }
.st-info { display: flex; gap: 10px; background: #f3f6fd; border-radius: 10px; padding: 12px; margin: 10px 0 0; font-size: 0.86rem; }
.st-info .oz-ic { color: var(--brand); width: 20px; height: 20px; }
.st-info .linkbtn { color: var(--brand); text-align: left; }
.st-updated { display: flex; gap: 12px; align-items: flex-start; }
.st-updated p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.st-updated b { display: block; color: var(--ink); }
.st-act { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #f3b4bb; background: #fff; color: #c81e37; border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; margin: 8px 0 6px; }
.st-act.strong { background: #fff1f2; }
.st-act:hover { background: #fde2e5; }
.me-art > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px 13px 0 0; }
@media (max-width: 1400px) { .st { grid-template-columns: 260px minmax(0, 1fr); } .st-side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; } }
@media (max-width: 860px) { .st { grid-template-columns: 1fr; } }
.ev-page[data-tab="settings"] .ev-sum { display: none; }

/* One vendor's record (organizer's vendor list) */
.vp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 22px; align-items: start; margin-bottom: 0; }
.vp-avatar { grid-row: 1 / span 2; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 14px; background: linear-gradient(135deg, #dbe6ff, #eef3fe); color: var(--brand); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.vp-who h1 { margin: 0 0 4px; font-size: 1.9rem; }
.vp-who p { margin: 0 0 8px; }
.vp-do { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.vp-do form { margin: 0; }
.vp-do .btn { display: inline-flex; align-items: center; gap: 7px; }
.vp-more { margin: 0; }
.vp-more summary.btn { width: auto; height: auto; list-style: none; padding: 9px 14px; }
.vp-stats { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vp-stats button { display: flex; align-items: center; gap: 14px; background: #f6f8fc; border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--muted); font-size: 0.88rem; text-align: left; cursor: pointer; min-width: 0; }
.vp-stats button:hover { border-color: #c9dafc; background: #f0f4fd; }
.vp-stats span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #e3ecfd; color: var(--brand); flex: none; }
.vp-stats span .oz-ic { width: 24px; height: 24px; }
.vp-stats p { margin: 0; min-width: 0; }
.vp-stats b { display: block; font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
.vp-stats b.blue { color: var(--brand); }
.vp-stats small { display: block; color: var(--brand); font-size: 0.8rem; }
.vp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.vp-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; color: var(--muted); padding: 13px 16px 11px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.vp-tabs button:hover { color: var(--ink); }
.vp-tabs button.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.crm-profile[data-vp] .card-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.crm-profile[data-vp] .card-head h2 .oz-ic { width: 22px; height: 22px; color: var(--brand); }
.crm-profile[data-vp].one { grid-template-columns: minmax(0, 1fr); }
.crm-profile[data-vp] [hidden] { display: none !important; }
.vp-score { color: var(--muted); font-size: 1rem; }
.vp-score b { font-size: 1.7rem; color: var(--brand); }
.vp-snap dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; font-size: 0.9rem; }
.vp-snap dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.vp-snap dt { font-weight: 600; }
.vp-snap dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 1300px) { .vp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vp-snap dl { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .vp-head { grid-template-columns: auto minmax(0, 1fr); }
  .vp-avatar { width: 72px; height: 72px; font-size: 1.5rem; grid-row: auto; }
  .vp-do, .vp-stats { grid-column: 1 / -1; justify-content: flex-start; }
  .vp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-profile[data-vp] { grid-template-columns: minmax(0, 1fr); }
}
.crm-profile[data-vp] .crm-main, .crm-profile[data-vp] .crm-side { grid-template-columns: minmax(0, 1fr); }

/* A member's public page */
.pp-hero { display: flex; gap: 26px; align-items: center; border-radius: 16px; padding: 38px 30px; color: #fff; background: linear-gradient(120deg, #101a36 0%, #1e3a8a 55%, #2563eb 100%); background-size: cover; background-position: center; min-height: 240px; }
.pp-logo { flex: none; width: 176px; height: 176px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.pp-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-logo span { font-size: 3.4rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.pp-id { min-width: 0; max-width: 620px; }
.pp-id h1 { margin: 0 0 6px; font-size: 2.2rem; color: #fff; overflow-wrap: anywhere; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; font-size: 1.05rem; }
.pp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pp-tagline { margin: 0 0 14px; font-size: 1.02rem; opacity: 0.95; }
.pp-do { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-do .btn { display: inline-flex; align-items: center; gap: 8px; }
.pp-do .pp-share { background: rgba(15, 23, 42, 0.35); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: none; }
.pp-do .pp-share:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
.pp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.pp-facts > * { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; color: var(--ink); min-width: 0; }
.pp-facts a:hover { text-decoration: none; border-color: #b9cdf8; }
.pp-facts > * > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e3ecfd; color: var(--brand); flex: none; }
.pp-facts > * > span .oz-ic { width: 24px; height: 24px; }
.pp-facts p { margin: 0; min-width: 0; }
.pp-facts p > b { display: block; font-size: 1.6rem; line-height: 1.15; }
.pp-facts p > b.words { font-size: 1.15rem; overflow-wrap: anywhere; }
.pp-facts small { display: block; color: var(--muted); font-size: 0.85rem; }
.pp-facts .stars b { display: block; }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.pp-grid > .card { margin: 0; min-width: 0; }
.pp-grid h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; }
.pp-grid h2 > .oz-ic { width: 24px; height: 24px; color: var(--brand); flex: none; }
.pp-grid h2 small { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; }
.pp-grid h3 { margin: 16px 0 6px; font-size: 0.95rem; }
.pp-about { margin: 0 0 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-points li { display: flex; gap: 12px; align-items: center; font-size: 0.93rem; }
.pp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 112px; gap: 6px; }
.pp-gallery button { position: relative; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #eef1f6; }
.pp-gallery button[hidden] { display: none; }
.pp-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-gallery.n5 button:first-child, .pp-gallery.n3 button:first-child { grid-row: span 2; }
.pp-gallery.n5 button:first-child { grid-column: span 1; }
.pp-gallery.n1 { grid-template-columns: 1fr; grid-auto-rows: 230px; }
.pp-gallery.n2, .pp-gallery.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-gallery i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, 0.55); color: #fff; font-style: normal; font-weight: 700; font-size: 1.3rem; }
.pp-viewer { border: 0; border-radius: 12px; padding: 12px; max-width: min(92vw, 900px); }
.pp-viewer::backdrop { background: rgba(15, 23, 42, 0.7); }
.pp-viewer img { display: block; max-width: 100%; max-height: 76vh; border-radius: 8px; margin: 0 auto 10px; }
.pp-viewer form { margin: 0; text-align: right; }
.pp-shows { list-style: none; margin: 0; padding: 0; }
.pp-shows li + li { border-top: 1px solid var(--line); }
.pp-shows a { display: flex; align-items: center; gap: 16px; padding: 10px 0; color: var(--ink); }
.pp-shows a:hover { text-decoration: none; color: var(--brand); }
.pp-shows time { flex: none; width: 58px; padding: 7px 0; border-radius: 8px; background: #eef3fe; text-align: center; font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--ink); }
.pp-shows time small { display: block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pp-shows span { flex: 1; min-width: 0; }
.pp-shows span b { display: block; overflow-wrap: anywhere; }
.pp-shows span small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.86rem; }
.pp-shows span small .oz-ic { width: 15px; height: 15px; }
.pp-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.pp-score { margin: 0 0 4px; color: var(--ink); }
.pp-score b { font-size: 2.2rem; line-height: 1; margin-right: 4px; }
.stars.big { font-size: 1.5rem; }
.pp-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pp-summary li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 8px; align-items: center; font-size: 0.86rem; }
.pp-summary li i { height: 7px; border-radius: 999px; background: #e1e6ee; overflow: hidden; }
.pp-summary li u { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.pp-summary li em { font-style: normal; color: var(--muted); text-align: right; }
.pp-reviews .review:first-of-type { margin-top: 0; }
.pp-thumb { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.pp-thumb.wide { width: 168px; }
.pp-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pp-edit form { margin: 0; text-align: center; }
.pp-edit img { display: block; width: 100%; height: 88px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
@media (max-width: 1250px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pp-hero { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .pp-logo { width: 104px; height: 104px; }
  .pp-logo span { font-size: 2rem; }
  .pp-id h1 { font-size: 1.6rem; }
  .pp-grid, .pp-facts { grid-template-columns: minmax(0, 1fr); }
  .pp-summary { grid-template-columns: 1fr; }
}
.pp-grid section > .btn.sm { margin-bottom: 14px; }

/* Email: the list of everything written and sent */
.em-btn { display: inline-flex; align-items: center; gap: 8px; }
.em-top { margin: 0; }
.em-top summary.btn { width: auto; height: auto; padding: 9px 12px; }
.em-page { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.em-left { min-width: 0; }
.em-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.em-stats button { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.em-stats button:hover { border-color: #b9cdf8; }
.em-stats button > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; flex: none; }
.em-stats button > span .oz-ic { width: 26px; height: 26px; }
.em-stats .amber > span { background: #fdf0d2; color: #b7791f; }
.em-stats .blue > span { background: #e3ecfd; color: #2563eb; }
.em-stats .green > span { background: #dff3e4; color: #1f7a4d; }
.em-stats .purple > span { background: #ece5fb; color: #6d4fd6; }
.em-stats p { margin: 0; flex: 1; min-width: 0; }
.em-stats b { display: block; font-size: 1.6rem; line-height: 1.2; }
.em-stats small { display: block; color: var(--muted); font-size: 0.82rem; }
.em-stats small:first-child { color: var(--ink); font-size: 0.88rem; }
.em-stats button > .oz-ic { color: var(--muted); }
.em-card { margin: 0; }
.eml-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.em-tabs { display: flex; background: #f1f4f9; border-radius: 9px; padding: 0; overflow-x: auto; max-width: 100%; }
.em-tabs button { border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--ink); padding: 10px 18px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.em-tabs button.on { background: var(--brand); color: #fff; font-weight: 700; }
.eml-search { flex: 1 1 240px; }
.eml-search input { width: 100%; padding-top: 9px; padding-bottom: 9px; }
.eml-bar select { width: auto; padding: 9px 30px 9px 12px; font-size: 0.9rem; }
.em-table { width: 100%; }
.em-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.em-table td { vertical-align: middle; font-size: 0.92rem; }
.em-table tr[hidden] { display: none; }
.em-table td:first-child { max-width: 340px; }
.em-table td:first-child a { overflow-wrap: anywhere; }
.em-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.em-pill.draft { background: #fdf0d2; color: #7a4d06; }
.em-pill.sent { background: #dff3e4; color: #14532d; }
.em-pill.wait { background: #e3ecfd; color: #1d4ed8; }
.em-pill.off { background: #e8ecf3; color: #3d4a63; }
.em-none { text-align: center; padding: 22px 0 6px; margin: 0; }
.em-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; min-height: 36px; }
.em-pager { display: flex; gap: 6px; }
.em-pager button { min-width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); }
.em-pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.em-pager button:disabled { opacity: 0.4; cursor: default; }
.em-side { display: grid; gap: 16px; }
.em-side .card { margin: 0; }
.em-side h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.08rem; }
.em-side h2 .oz-ic { width: 22px; height: 22px; color: var(--brand); }
.em-side form { margin: 0; }
.em-act { display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 11px 14px; font: inherit; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.em-act:last-child { margin-bottom: 0; }
.em-act .oz-ic { width: 20px; height: 20px; color: var(--brand); }
.em-act:hover { background: #f3f6fd; text-decoration: none; }
.em-act.main { background: var(--brand); border-color: var(--brand); color: #fff; }
.em-act.main .oz-ic { color: #fff; }
.em-act.main:hover { background: var(--brand-dark); }
.em-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.em-recent li { display: flex; gap: 12px; align-items: flex-start; }
.em-recent li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e3ecfd; color: var(--brand); flex: none; }
.em-recent a { color: var(--ink); min-width: 0; }
.em-recent b { display: block; font-size: 0.92rem; overflow-wrap: anywhere; }
.em-recent small { display: block; color: var(--muted); font-size: 0.84rem; }
@media (max-width: 1400px) { .em-page { grid-template-columns: minmax(0, 1fr); } .em-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; } }
@media (max-width: 1100px) { .em-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .em-stats { grid-template-columns: minmax(0, 1fr); } .em-foot { flex-direction: column; align-items: flex-start; } }
.em-table th { position: relative; }
.em-side form { margin-bottom: 10px; }

/* Email templates: steps, filters and folding groups */
.tp-btn { display: inline-flex; align-items: center; gap: 8px; }
.tp-steps { list-style: none; margin: 0 0 16px; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tp-steps li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp-steps li > b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.9rem; }
.tp-steps li > div { flex: 1; min-width: 0; }
.tp-steps strong { display: block; }
.tp-steps div span { display: block; color: var(--muted); font-size: 0.86rem; }
.tp-steps li > .oz-ic { color: #9aa9c4; }
.tp-steps .em-how-ic .oz-ic { width: 22px; height: 22px; }
.tp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.tp-search { flex: 1 1 300px; }
.tp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tp-search input { width: 100%; padding: 11px 12px 11px 42px; }
.tp-bar select { width: auto; padding: 11px 32px 11px 12px; }
.tp-view { display: flex; gap: 6px; }
.tp-view button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--muted); cursor: pointer; }
.tp-view button.on { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); }
.tp-group { margin-bottom: 14px; }
.tp-group[hidden] { display: none; }
.tp-group > summary { list-style: none; cursor: pointer; margin: 0; }
.tp-group > summary::-webkit-details-marker { display: none; }
.tp-group[open] > summary { margin-bottom: 14px; }
.tp-group > summary > div { flex: 1; min-width: 0; }
.tp-count { white-space: nowrap; }
.tp-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); flex: none; transition: transform 0.15s; }
.tp-group[open] .tp-toggle { transform: rotate(180deg); }
.tp-empty { margin: 0; }
.tp-look { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8rem; color: var(--em-color, var(--brand)); font-weight: 600; }
.tp-rows .em-templates { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tp-rows .em-template { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
.tp-rows .em-template-top { flex: 1 1 260px; }
.tp-rows .em-subj { flex: 1 1 220px; }
.tp-rows .tp-look { flex: 0 0 auto; }
.tp-rows .em-use { margin: 0; }
.tp-rows .em-use .btn { width: auto; }
.tp-rows .em-acts { border-top: 0; padding-top: 0; grid-template-columns: repeat(4, auto); }
@media (max-width: 1100px) { .tp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-steps li > .oz-ic { display: none; } }
@media (max-width: 560px) { .tp-steps { grid-template-columns: minmax(0, 1fr); } .tp-bar select { flex: 1 1 140px; } }

/* Announcements */
.an-title { display: flex; align-items: center; gap: 12px; }
.an-title span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e3ecfd; color: var(--brand); }
.an-title .oz-ic { width: 24px; height: 24px; }
.an-btn { display: inline-flex; align-items: center; gap: 8px; }
.an-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.an-form, .an-side { display: grid; gap: 14px; min-width: 0; }
.an-page .card { margin: 0; }
.an-page h2 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; font-size: 1.08rem; }
.an-page h2 > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e3ecfd; color: var(--brand); flex: none; }
.an-page h2 small { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; }
.an-page label i { color: #dc2f47; font-style: normal; }
.an-count { text-align: right; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.an-page fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.an-page fieldset:last-child { margin-bottom: 0; }
.an-page legend { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.an-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.an-level, .an-channel { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; font-weight: 400; }
.an-level input, .an-channel input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.an-level b, .an-channel b { display: block; font-size: 0.92rem; }
.an-level small, .an-channel small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.an-level.on, .an-channel.on { border-color: var(--brand); background: #f0f5fe; }
.an-level.urgent { border-color: #f6c9a4; }
.an-level.urgent b { color: #c2410c; }
.an-level.emergency { border-color: #f3b4bb; background: #fff8f8; }
.an-level.emergency b { color: #c81e37; }
.an-level.urgent.on { background: #fff4ea; border-color: #ea7a2c; }
.an-level.emergency.on { background: #fde9eb; border-color: #dc2f47; }
.an-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.an-channel .oz-ic { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.an-send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-prev-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.an-switch { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.an-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; padding: 8px 12px; font: inherit; font-size: 0.84rem; color: var(--muted); cursor: pointer; }
.an-switch button .oz-ic { width: 16px; height: 16px; }
.an-switch button.on { background: var(--brand); color: #fff; font-weight: 700; }
.an-stage { background: #f1f4f9; border-radius: 12px; padding: 18px; }
.an-mock { background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(15, 27, 51, 0.08); overflow: hidden; }
.an-mock-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #eef3fe; color: var(--brand); }
.an-mock-top > span .oz-ic { width: 26px; height: 26px; }
.an-mock-top b { background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 0.76rem; letter-spacing: 0.04em; }
.an-mock-top em { margin-left: auto; text-align: right; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.an-mock-top em strong { display: block; color: inherit; }
.an-mock.important .an-mock-top { background: #fff6e0; color: #a16207; }
.an-mock.important .an-mock-top b { background: #d99a1c; }
.an-mock.urgent .an-mock-top, .an-mock.emergency .an-mock-top { background: #fde2e5; color: #c81e37; }
.an-mock.urgent .an-mock-top b, .an-mock.emergency .an-mock-top b { background: #dc2f47; }
.an-mock.urgent .an-mock-top em strong, .an-mock.emergency .an-mock-top em strong { color: #c81e37; }
.an-mock-body { padding: 18px; }
.an-mock-body h3 { margin: 0 0 10px; font-size: 1.25rem; overflow-wrap: anywhere; }
.an-mock-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.an-mock-from { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.an-mock.email { border: 1px solid var(--line); box-shadow: none; }
.an-sent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.an-sent:first-of-type { border-top: 0; padding-top: 0; }
.an-dot { flex: none; color: #2563eb; }
.an-dot .oz-ic { width: 24px; height: 24px; }
.an-sent.important .an-dot { color: #d99a1c; }
.an-sent.urgent .an-dot, .an-sent.emergency .an-dot { color: #dc2f47; }
.an-sent-main { flex: 1 1 200px; min-width: 0; }
.an-sent-main b { display: block; overflow-wrap: anywhere; }
.an-sent-main small, .an-sent-nums small { display: block; color: var(--muted); font-size: 0.82rem; }
.an-sent-main summary { cursor: pointer; color: var(--brand); font-size: 0.84rem; margin-top: 2px; }
.an-sent-main details p { margin: 6px 0 0; font-size: 0.9rem; }
.an-sent-nums { flex: 0 1 230px; }
.an-sent-nums span { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.an-sent-nums i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 0.78rem; background: #eef3fe; color: var(--brand-dark); border-radius: 6px; padding: 2px 8px; }
.an-sent-nums i .oz-ic { width: 14px; height: 14px; }
@media (max-width: 1250px) { .an-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .an-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-channels { grid-template-columns: minmax(0, 1fr); } .an-sent { flex-wrap: wrap; } }

/* Automatic emails */
.au-btn { display: inline-flex; align-items: center; gap: 8px; }
.au-ready h2, .au-page h2 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; font-size: 1.12rem; }
.au-ready h2 > span, .au-page h2 > span { color: var(--brand); flex: none; }
.au-ready h2 > span .oz-ic, .au-page h2 > span .oz-ic { width: 26px; height: 26px; }
.au-ready h2 small, .au-page h2 small { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; }
.au-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.au-recipe { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; background: #fff; }
.au-recipe b { font-size: 0.95rem; }
.au-recipe small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; flex: 1; }
.au-recipe button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: #eef3fe; color: var(--brand-dark); border-radius: 8px; padding: 8px; font: inherit; font-weight: 700; cursor: pointer; margin-top: 4px; }
.au-recipe button .oz-ic { width: 16px; height: 16px; stroke-width: 2.4; }
.au-recipe button:hover { background: #dbe6fd; }
.au-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.au-ic .oz-ic { width: 22px; height: 22px; }
.au-ic.green { background: #dff3e4; color: #1f7a4d; }
.au-ic.blue { background: #e3ecfd; color: #2563eb; }
.au-ic.purple { background: #ece5fb; color: #6d4fd6; }
.au-ic.amber { background: #fdf0d2; color: #b7791f; }
.au-ic.red { background: #fde2e5; color: #c81e37; }
.au-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; margin-top: 16px; }
.au-page > .card { margin: 0; min-width: 0; }
.au-rules-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.au-search { flex: 0 1 240px; }
.au-search input { width: 100%; }
.au-table { width: 100%; }
.au-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; position: relative; }
.au-table td { vertical-align: middle; }
.au-table tr[hidden] { display: none; }
.au-state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: #e8ecf3; color: #3d4a63; white-space: nowrap; }
.au-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8491a8; }
.au-state.on { background: #dff3e4; color: #14532d; }
.au-state.on::before { background: #1f9d5b; }
.au-step { display: flex; gap: 14px; margin-bottom: 16px; }
.au-step > b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e3ecfd; color: var(--brand-dark); }
.au-step > div { flex: 1; min-width: 0; }
.au-step > div > label { font-weight: 700; display: block; }
.au-step > div > p { margin: 0 0 6px; }
.au-step .field { margin-bottom: 8px; }
.au-step .field[hidden] { display: none; }
.au-step .field label { font-size: 0.86rem; }
.au-add { width: 100%; justify-content: center; }
@media (max-width: 1300px) { .au-page { grid-template-columns: minmax(0, 1fr); } }

/* Organizer tasks */
.tk-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tk-add input[type="text"] { flex: 3 1 260px; }
.tk-add input[type="date"], .tk-add select { flex: 1 1 140px; width: auto; }
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.tk-stats > div { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.tk-stats > div > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; flex: none; }
.tk-stats > div > span .oz-ic { width: 26px; height: 26px; }
.tk-stats .red > span { background: #fde2e5; color: #dc2f47; }
.tk-stats .blue > span { background: #e3ecfd; color: #2563eb; }
.tk-stats .green > span { background: #dff3e4; color: #1f7a4d; }
.tk-stats p { margin: 0; flex: 1; min-width: 0; }
.tk-stats b { display: block; font-size: 1.6rem; line-height: 1.2; }
.tk-stats b.blue { color: var(--brand); }
.tk-stats b.bad { color: #dc2f47; }
.tk-stats small { display: block; color: var(--muted); font-size: 0.84rem; }
.tk-stats small:first-child { color: var(--ink); font-size: 0.9rem; }
.tk-stats p > i { display: block; height: 7px; border-radius: 999px; background: #e1e6ee; overflow: hidden; margin-top: 6px; }
.tk-stats p > i u { display: block; height: 100%; background: #1f9d5b; border-radius: 999px; }
.tk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tk-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--ink); font-size: 0.9rem; background: #fff; }
.tk-tabs a:hover { text-decoration: none; background: var(--blue-100); }
.tk-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.tk-search { flex: 0 1 260px; }
.tk-search input { width: 100%; }
.tk-none { text-align: center; padding: 26px 10px; margin: 0; }
.tk-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.tk-group[hidden] { display: none; }
.tk-group > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f6f8fc; border-radius: 12px; cursor: pointer; }
.tk-group[open] > summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); }
.tk-group > summary::-webkit-details-marker { display: none; }
.tk-group > summary > .oz-ic { transition: transform 0.15s; transform: rotate(-90deg); }
.tk-group[open] > summary > .oz-ic { transform: none; }
.tk-group > summary span { flex: 1; min-width: 0; }
.tk-group > summary b { display: block; font-size: 1.02rem; }
.tk-group > summary small { color: var(--muted); font-size: 0.86rem; }
.tk-group > summary em { font-style: normal; font-size: 0.8rem; font-weight: 700; background: #e3ecfd; color: var(--brand-dark); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.tk-group ul { list-style: none; margin: 0; padding: 0; }
.tk-group li { display: grid; grid-template-columns: 30px minmax(160px, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.3fr) 84px minmax(0, 1fr) 36px 38px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); }
.tk-group li:first-child { border-top: 0; }
.tk-group li[hidden] { display: none; }
.tk-group li > form { margin: 0; }
.tk-tick { width: 22px; height: 22px; border: 1.5px solid #9aa9c4; border-radius: 5px; background: #fff; cursor: pointer; color: #fff; font-size: 0.8rem; line-height: 1; padding: 0; display: grid; place-items: center; }
.tk-tick:hover { border-color: var(--brand); }
.tk-tick.on { background: var(--brand); border-color: var(--brand); }
.tk-title { overflow-wrap: anywhere; }
.tk-group li.done .tk-title { text-decoration: line-through; color: var(--muted); }
.tk-show i, .tk-cat i { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 0.8rem; font-weight: 600; border-radius: 6px; padding: 3px 10px; vertical-align: middle; }
.tk-show i { background: #e3ecfd; color: #1d4ed8; }
.tk-due { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--ink); white-space: nowrap; }
.tk-due .oz-ic { width: 16px; height: 16px; color: var(--muted); }
.tk-due.late { color: #dc2f47; font-weight: 600; }
.tk-pri { justify-self: start; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.tk-pri.high { background: #fde2e5; color: #c81e37; }
.tk-pri.medium { background: #fdf0d2; color: #8a5a06; }
.tk-pri.low { background: #e3ecfd; color: #1d4ed8; }
.tk-cat i { background: #eef1f6; color: #3d4a63; border-radius: 999px; }
.tk-cat i.communication, .tk-cat i.supplies { background: #ece5fb; color: #5b3fd6; }
.tk-cat i.venue { background: #dff3e4; color: #14532d; }
.tk-cat i.marketing, .tk-cat i.day { background: #fde2ef; color: #be185d; }
.tk-cat i.paperwork { background: #fdf0d2; color: #8a5a06; }
.tk-who i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #7c5ce0; color: #fff; font-style: normal; font-size: 0.68rem; font-weight: 700; }
.tk-group li .oz-more summary { border: 0; background: none; }
.tk-edit { min-width: 250px !important; padding: 12px !important; }
.tk-edit form { display: grid; gap: 8px; }
.tk-edit label { display: grid; gap: 3px; font-size: 0.8rem; font-weight: 600; white-space: normal; }
.tk-edit input, .tk-edit select { width: 100%; font-weight: 400; }
.tk-edit .btn { display: inline-block !important; width: auto !important; text-align: center !important; color: #fff !important; background: var(--brand) !important; padding: 7px 14px !important; }
.tk-edit .tk-del { color: #c81e37 !important; margin-top: 6px; padding: 6px 0 !important; }
@media (max-width: 1250px) {
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-group li { grid-template-columns: 30px minmax(0, 1fr) auto 38px; }
  .tk-title { grid-column: 2 / 4; }
  .tk-show, .tk-due, .tk-cat { grid-column: 2; }
  .tk-pri { grid-column: 3; grid-row: 2; }
  .tk-who { display: none; }
  .tk-group li > form { grid-row: 1; grid-column: 1; }
  .tk-group li > .oz-more { grid-row: 1; grid-column: 4; }
  .tk-show:empty, .tk-due:empty, .tk-cat:empty { display: none; }
}
@media (max-width: 560px) { .tk-stats { grid-template-columns: minmax(0, 1fr); } }

/* Changing a vendor's private score by hand */
.crm-reasons li { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vp-unscore { margin: 0 0 0 auto; }
.vp-rescore { display: grid; gap: 8px; border-top: 1px solid var(--line); margin: 12px 0; padding-top: 12px; }
.vp-points { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vp-points button { min-width: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 700; cursor: pointer; }
.vp-points button.up { color: #15803d; }
.vp-points button.down { color: #c81e37; }
.vp-points button.on { border-color: currentColor; background: #f6f8fc; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12); }
.vp-points label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.vp-points input { width: 72px; padding: 6px 8px; }
.vp-rescore .btn { justify-self: start; }

/* Booth Photo Check */
.bp-btn { display: inline-flex; align-items: center; gap: 8px; }
.bp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-top > .card { margin: 0; }
.bp-step { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.bp-step > b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e3ecfd; color: var(--brand-dark); font-size: 1.1rem; }
.bp-step h2 { margin: 0; font-size: 1.05rem; }
.bp-step p { margin: 2px 0 0; }
.bp-drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; border: 1.5px dashed #a9bbdc; border-radius: 12px; padding: 26px 16px; margin-bottom: 18px; cursor: pointer; font-weight: 400; background: #fbfcff; }
.bp-drop:hover, .bp-drop.over { border-color: var(--brand); background: #f1f5fe; }
.bp-drop-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e3ecfd; color: var(--brand); }
.bp-drop-ic .oz-ic { width: 28px; height: 28px; }
.bp-drop strong { font-size: 1.02rem; }
.bp-drop small { color: var(--muted); }
.bp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bp-drop img { max-width: 100%; max-height: 240px; border-radius: 10px; }
.bp-drop.has .bp-drop-ic { display: none; }
.bp-upload select { width: 100%; margin-bottom: 16px; }
.bp-go { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 1.02rem; }
.bp-go.busy { opacity: 0.7; pointer-events: none; }
.bp-how { background: #f3f6fd; }
.bp-how h2 { margin: 0 0 4px; font-size: 1.2rem; }
.bp-how h3 { margin: 0 0 6px; font-size: 1.02rem; }
.bp-how-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; margin: 14px 0; }
.bp-how figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.bp-how figure svg { display: block; width: 100%; height: auto; flex: 1; }
.bp-how figcaption { font-size: 0.8rem; color: var(--muted); padding: 8px 10px; }
.bp-bands, .bp-looks { background: #fff; border-radius: 12px; padding: 14px; }
.bp-bands > div { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.bp-bands b { flex: none; min-width: 78px; text-align: center; border-radius: 8px; padding: 6px 8px; font-size: 0.86rem; }
.bp-bands strong, .bp-looks strong { display: block; font-size: 0.92rem; }
.bp-bands small, .bp-looks small { display: block; color: var(--muted); font-size: 0.8rem; }
.bp-bands b.great, .bp-thumb b.great { background: #c9f2d3; color: #14532d; }
.bp-bands b.good, .bp-thumb b.good { background: #dff3c9; color: #3f6212; }
.bp-bands b.fair, .bp-thumb b.fair { background: #fdeab0; color: #854d0e; }
.bp-bands b.poor, .bp-thumb b.poor { background: #fecdd3; color: #9f1239; }
.bp-bands b.none, .bp-thumb b.none { background: #e8ecf3; color: #3d4a63; }
.bp-looks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.bp-looks li { display: flex; gap: 12px; align-items: flex-start; }
.bp-looks li > span { color: #1f9d5b; flex: none; }
.bp-looks li > span .oz-ic { width: 24px; height: 24px; }
.bp-past { margin-top: 16px; }
.bp-past-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.bp-past-head h2 { margin: 0; }
.bp-past-head p { margin: 2px 0 0; }
.bp-past-head select { width: auto; }
.bp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.bp-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); background: #fff; }
.bp-card:hover { text-decoration: none; border-color: #b9cdf8; box-shadow: 0 6px 16px rgba(15, 27, 51, 0.08); }
.bp-thumb { position: relative; display: block; height: 120px; background: #eef1f6; }
.bp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-thumb b { position: absolute; left: 10px; top: 10px; min-width: 44px; text-align: center; border-radius: 999px; padding: 4px 10px; font-size: 0.95rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.bp-card-body { display: grid; gap: 4px; padding: 10px 12px 12px; font-size: 0.88rem; }
.bp-card-body small.up { color: #15803d; }
.bp-card-body small.down { color: #c81e37; }
.bp-card-body em { display: flex; align-items: center; justify-content: center; gap: 6px; font-style: normal; font-weight: 600; color: var(--brand); background: #f1f5fe; border-radius: 8px; padding: 7px; margin-top: 4px; }
.bp-card-body em .oz-ic { width: 16px; height: 16px; }
.bp-result { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-result .card { margin: 0; }
.bp-read { display: grid; gap: 16px; }
.bp-frame { position: relative; border-radius: 10px; overflow: hidden; background: #0f172a; text-align: center; }
.bp-frame img { display: block; width: 100%; height: auto; transition: filter 0.2s, transform 0.2s; }
.bp-frame.squint img { filter: blur(7px); }
.bp-frame.grey img { filter: grayscale(1); }
.bp-frame.squint.grey img { filter: blur(7px) grayscale(1); }
.bp-frame.far img { transform: scale(0.3); }
.bp-zones { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.bp-zones span { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.86rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.bp-zones span.dark { outline: 2px dashed #fbbf24; outline-offset: -6px; background: rgba(251, 191, 36, 0.12); }
.bp-zones span.empty { outline: 2px dashed #f87171; outline-offset: -6px; background: rgba(248, 113, 113, 0.12); }
.bp-frame.plain .bp-zones, .bp-frame.far .bp-zones { display: none; }
.bp-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bp-tools .btn.on { background: var(--blue-100); border-color: var(--brand); }
.bp-score { display: flex; gap: 20px; align-items: center; }
.bp-ring { flex: none; display: grid; place-items: center; align-content: center; width: 116px; height: 116px; border-radius: 50%; border: 8px solid #cbd5e1; }
.bp-ring b { font-size: 2.3rem; line-height: 1; }
.bp-ring small { color: var(--muted); font-size: 0.74rem; }
.bp-score.great .bp-ring { border-color: #22c55e; }
.bp-score.good .bp-ring { border-color: #84cc16; }
.bp-score.fair .bp-ring { border-color: #f59e0b; }
.bp-score.poor .bp-ring { border-color: #f43f5e; }
.bp-score h2 { margin: 0 0 4px; font-size: 1.4rem; }
.bp-score p { margin: 0 0 4px; }
.bp-change { font-weight: 700; }
.bp-change.up { color: #15803d; }
.bp-change.down { color: #c81e37; }
.bp-read h2, .bp-list h2, .bp-eye h2 { margin: 0 0 10px; font-size: 1.1rem; }
.bp-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bp-parts li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 0.9rem; }
.bp-parts i { height: 8px; border-radius: 999px; background: #e1e6ee; overflow: hidden; }
.bp-parts u { display: block; height: 100%; border-radius: 999px; }
.bp-parts u.good { background: #22c55e; }
.bp-parts u.ok { background: #f59e0b; }
.bp-parts u.fix { background: #f43f5e; }
.bp-parts em { font-style: normal; color: var(--muted); text-align: right; font-size: 0.84rem; }
.bp-list, .bp-eye { margin-top: 16px; }
.bp-finding { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 14px 16px; margin-top: 10px; }
.bp-finding > span .oz-ic { width: 26px; height: 26px; }
.bp-finding h3 { margin: 0 0 4px; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-finding h3 em { font-style: normal; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 2px 10px; }
.bp-finding p { margin: 0; }
.bp-saw { color: var(--muted); font-size: 0.9rem; }
.bp-do { margin-top: 6px !important; line-height: 1.55; }
.bp-finding.fix { border-left-color: #f43f5e; background: #fff8f8; }
.bp-finding.fix > span { color: #e11d48; }
.bp-finding.fix h3 em { background: #fecdd3; color: #9f1239; }
.bp-finding.ok { border-left-color: #f59e0b; background: #fffbf0; }
.bp-finding.ok > span { color: #d97706; }
.bp-finding.ok h3 em { background: #fdeab0; color: #854d0e; }
.bp-finding.good { border-left-color: #22c55e; }
.bp-finding.good > span { color: #16a34a; }
.bp-finding.good h3 em { background: #c9f2d3; color: #14532d; }
.bp-eye h2 { display: flex; align-items: center; gap: 10px; }
.bp-eye ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 1150px) { .bp-top, .bp-result { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bp-how-grid, .bp-looks ul { grid-template-columns: minmax(0, 1fr); } .bp-score { flex-direction: column; align-items: flex-start; } .bp-parts li { grid-template-columns: 110px minmax(0, 1fr) 56px; } }
.bp-step h2 label { display: inline; font: inherit; }

/* Folding parts of the vendor menu */
.navfold { margin: 0; }
.navfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9fb2d8; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 12px 8px; border-radius: 10px; user-select: none; }
.navfold > summary::-webkit-details-marker { display: none; }
.navfold > summary:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.navfold > summary:focus-visible { outline: 2px solid #6ea2ff; outline-offset: -2px; }
.navchev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.15s; transform: rotate(-90deg); }
.navfold[open] > summary .navchev { transform: none; }
.navfold:not(.sub) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.navfold:not(.sub)[open] { padding-bottom: 6px; }
.navfold.sub > summary { padding: 0; text-transform: none; letter-spacing: 0; font-size: inherit; gap: 4px; margin: 2px 0; }
.navfold.sub > summary:hover { background: none; }
.navfold.sub > summary > a.feature { flex: 1; min-width: 0; margin: 0 !important; }
.navopen { flex: none; display: grid; place-items: center; width: 26px; align-self: stretch; border-radius: 8px; color: #c5d0e6; }
.navopen:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.navfold.sub > a { margin-left: 14px; padding-left: 12px; border-left: 2px solid rgba(110, 162, 255, 0.3); border-radius: 0 10px 10px 0; }
.navfold.sub[open] { margin-bottom: 6px; }
.navfold a.feature { margin-top: 2px; }
.nav a.navalert { background: rgba(220, 59, 75, 0.2); color: #fff; font-weight: 600; margin: 2px 0 6px; }
@media (max-width: 900px) {
  .sidebar.open .navfold { grid-column: 1 / -1; }
  .sidebar.open .navfold[open]:not(.sub) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .sidebar.open .navfold > summary, .sidebar.open .navfold.sub { grid-column: 1 / -1; }
  .sidebar.open .nav a.navalert { grid-column: 1 / -1; }
  .sidebar:not(.open) .nav a.navalert { display: none; }
}

/* Booth Photo Check: the full rundown */
.bp-verdict { font-size: 1.02rem; line-height: 1.55; }
.bp-walk h2, .bp-markform h3 { display: flex; align-items: center; gap: 10px; }
.bp-walk ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.bp-walk li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.bp-walk li:first-child { border-top: 0; padding-top: 0; }
.bp-walk li b { color: var(--brand-dark); }
.bp-step-card { margin-top: 16px; }
.bp-step-card > header { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.bp-step-card > header > b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.1rem; }
.bp-step-card > header h2 { margin: 0; font-size: 1.25rem; }
.bp-step-card > header p { margin: 0; }
.bp-saw i { display: inline-block; font-style: normal; font-size: 0.74rem; background: #eef1f6; color: #3d4a63; border-radius: 999px; padding: 1px 9px; margin-left: 4px; white-space: nowrap; }
.bp-saw { color: var(--ink) !important; }
.bp-why { margin-top: 6px !important; color: #334155; line-height: 1.55; }
.bp-finding.ask { border-left-color: #94a3b8; background: #f8fafc; }
.bp-finding.ask > span { color: #64748b; }
.bp-finding.ask h3 em { background: #e2e8f0; color: #334155; }
.bp-heat { position: absolute; inset: 0; display: none; grid-auto-rows: 1fr; pointer-events: none; }
.bp-heat i { background: #0b1220; }
.bp-frame.heat .bp-heat { display: grid; }
.bp-frame.heat .bp-zones, .bp-frame.far .bp-heat, .bp-frame.far .bp-marks, .bp-frame.plain .bp-marks { display: none; }
.bp-marks { position: absolute; inset: 0; pointer-events: none; }
.bp-marks span { position: absolute; border: 2px solid #22d3ee; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
.bp-marks span.price { border-color: #a3e635; }
.bp-marks span b { position: absolute; left: -2px; bottom: 100%; background: #22d3ee; color: #0b1220; font-size: 0.7rem; padding: 1px 6px; border-radius: 3px 3px 0 0; white-space: nowrap; }
.bp-marks span.price b { background: #a3e635; }
.bp-marks span.draft { border: 2px dashed #fff; background: rgba(34, 211, 238, 0.2); }
.bp-marks span[hidden] { display: none; }
.bp-frame.drawing { cursor: crosshair; touch-action: none; outline: 3px solid #22d3ee; }
.bp-frame.drawing img { -webkit-user-drag: none; user-select: none; }
.bp-drawing { margin: 8px 0 0; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; font-weight: 600; }
.bp-markform { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.bp-markform h3 { margin: 0 0 4px; font-size: 1.02rem; }
.bp-markbtns { display: flex; gap: 10px 16px; flex-wrap: wrap; margin-top: 8px; }
.bp-markbtns > div { display: flex; align-items: center; gap: 8px; }
.bp-method { margin-top: 16px; }
.bp-method summary { cursor: pointer; font-weight: 700; }
.bp-method p { margin: 10px 0 0; line-height: 1.55; }
@media (max-width: 640px) { .bp-walk li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Booth photo check: lettering that was read */
.bp-words { position: absolute; inset: 0; pointer-events: none; }
.bp-words span { position: absolute; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.bp-words span.sign { border: 2px solid #22d3ee; }
.bp-words span.price { border: 2px solid #a3e635; }
.bp-words span.pay { border: 2px solid #fbbf24; }
.bp-words span b { position: absolute; left: -2px; bottom: 100%; background: #22d3ee; color: #0b1220; font-size: 0.7rem; padding: 1px 6px; border-radius: 3px 3px 0 0; white-space: nowrap; }
.bp-words span.price b { background: #a3e635; }
.bp-words span.pay b { background: #fbbf24; }
.bp-frame.far .bp-words, .bp-frame.plain .bp-words, .bp-frame.squint .bp-words, .bp-frame.heat .bp-words { display: none; }
.bp-lines { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.bp-lines li { display: grid; gap: 1px; padding: 7px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; min-width: 0; }
.bp-lines li span { font-weight: 600; overflow-wrap: anywhere; }
.bp-lines li small { color: var(--muted, #64748b); }
.bp-lines em { font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #cffafe; color: #155e75; margin-left: 4px; white-space: nowrap; }
.bp-lines em.price { background: #ecfccb; color: #3f6212; }
.bp-lines em.pay { background: #fef3c7; color: #92400e; }
.bp-markform h3 + .bp-lines { margin-top: 8px; }
.bp-markform h3:not(:first-of-type) { margin-top: 16px; }

/* ===== Shared pieces for the vendor pages (vx-) ===== */
.vx-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; flex: none; background: #e3ecfd; color: #2563eb; }
.vx-ico .oz-ic { width: 26px; height: 26px; stroke-width: 2; }
.vx-ico.sm { width: 40px; height: 40px; border-radius: 11px; }
.vx-ico.sm .oz-ic { width: 20px; height: 20px; }
.vx-ico.green { background: #dcf5e6; color: #15914f; }
.vx-ico.purple { background: #ece5fb; color: #6d3fd6; }
.vx-ico.red { background: #fde2e5; color: #dc2f47; }
.vx-ico.amber { background: #fdf0d2; color: #c27803; }
.vx-ico.orange { background: #fee8d6; color: #e2650f; }
.vx-ico.teal { background: #d8f3f1; color: #0f8a83; }
.vx-ico.grey { background: #eef1f6; color: #55627c; }
.vx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.vx-stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.vx-stat > div { min-width: 0; }
.vx-stat b { display: block; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.vx-stat b.words { font-size: 1.15rem; }
.vx-stat > div > span { display: block; font-size: 0.92rem; }
.vx-stat small { display: block; color: var(--muted); font-size: 0.82rem; }
.vx-stat a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.86rem; font-weight: 600; margin-top: 2px; }
.vx-stat a .oz-ic { width: 14px; height: 14px; }
.vx-stat .up { color: #15803d; }
.vx-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 16px; }
.vx-search { position: relative; flex: 1 1 240px; min-width: 0; }
.vx-search .oz-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.vx-search input { width: 100%; padding: 10px 12px 10px 40px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.vx-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.vx-pick { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px 4px; background: #fff; flex: 0 1 150px; min-width: 120px; }
.vx-pick span { font-size: 0.72rem; color: var(--muted); }
.vx-pick select { border: 0; padding: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); width: 100%; }
.vx-pick select:focus { outline: none; }
.vx-pick:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.vx-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.vx-seg button, .vx-seg a { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 14px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.vx-seg button + button, .vx-seg a + a { border-left: 1px solid var(--line); }
.vx-seg a:hover { text-decoration: none; background: var(--blue-100); }
.vx-seg .on { background: var(--brand); color: #fff; }
.vx-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.vx-head > div { flex: 1; min-width: 0; }
.vx-head h2 { margin: 0; font-size: 1.15rem; }
.vx-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.vx-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 3px 11px; background: #e3ecfd; color: #1d4ed8; white-space: nowrap; }
.vx-tag.green { background: #dcf5e6; color: #166534; }
.vx-tag.purple { background: #ece5fb; color: #5b3fd6; }
.vx-tag.red { background: #fde2e5; color: #c81e37; }
.vx-tag.amber { background: #fdf0d2; color: #8a5a06; }
.vx-tag.grey { background: #eef1f6; color: #3d4a63; }
.vx-tag.test { background: #fff3c4; color: #7a4d00; border: 1px dashed #d9a400; }
.vx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vx-btn .oz-ic { width: 17px; height: 17px; }
.vx-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.88rem; }
.vx-link .oz-ic { width: 15px; height: 15px; }
.vx-empty { text-align: center; padding: 34px 16px; }
.vx-empty .vx-ico { margin: 0 auto 12px; width: 72px; height: 72px; border-radius: 50%; }
.vx-empty .vx-ico .oz-ic { width: 34px; height: 34px; }
.vx-empty h3 { font-size: 1.2rem; margin: 0 0 4px; }
.vx-empty p { color: var(--muted); margin: 0 0 14px; }
.vx-hide { display: none !important; }
.vx-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.84rem; margin: 0; }
.vx-note .oz-ic { width: 16px; height: 16px; margin-top: 2px; }
.vx-mini { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vx-mini th { font-size: 0.78rem; font-weight: 600; color: var(--muted); padding: 6px 0; }
.vx-mini td { text-align: center; padding: 2px 0; }
.vx-mini td > * { position: relative; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; font-size: 0.88rem; color: var(--ink); }
.vx-mini td.out > * { color: #a3adc2; }
.vx-mini td.today > * { background: var(--brand); color: #fff; font-weight: 700; }
.vx-mini td a:hover { background: var(--blue-100); text-decoration: none; }
.vx-mini td i { position: absolute; bottom: -1px; left: 50%; display: flex; gap: 2px; transform: translateX(-50%); }
.vx-mini td i u { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.vx-mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vx-mini-head b { font-size: 1.05rem; }
.vx-mini-head a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink); }
.vx-mini-head a:hover { background: var(--blue-100); }
.vx-up { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.vx-up li { display: flex; gap: 12px; align-items: center; padding: 7px 0; min-width: 0; }
.vx-up .vx-date { display: grid; place-items: center; width: 44px; flex: none; background: #f1f4fa; border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.vx-up .vx-date small { font-size: 0.62rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.vx-up .vx-date b { font-size: 1.1rem; }
.vx-up li > div:last-child { min-width: 0; }
.vx-up li strong { display: block; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-up li span { color: var(--muted); font-size: 0.82rem; }
.vx-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vx-quick a, .vx-quick button { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 12px; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.vx-quick a:hover, .vx-quick button:hover { border-color: var(--brand); background: #f3f7ff; text-decoration: none; }
.vx-quick .oz-ic { color: var(--brand); }
.vx-side { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.vx-side > * { min-width: 0; }
.vx-side aside { display: grid; gap: 16px; }
@media (max-width: 1150px) { .vx-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .vx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vx-stat { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .vx-stat .vx-ico { width: 40px; height: 40px; border-radius: 11px; }
  .vx-stat .vx-ico .oz-ic { width: 20px; height: 20px; }
  .vx-stat b { font-size: 1.3rem; }
  .vx-pick { flex: 1 1 130px; }
}

/* Booth Library */
.bl-compare { display: flex; gap: 10px; align-items: flex-start; background: #eef4ff; border: 1px solid #cfdcf8; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 0.92rem; }
.bl-compare .oz-ic { color: var(--brand); margin-top: 2px; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.bl-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 16px; box-shadow: var(--shadow); }
.bl-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.bl-top .vx-tag { font-size: 0.84rem; padding: 6px 13px; }
.bl-top .vx-tag .oz-ic { width: 16px; height: 16px; }
.bl-pic { border-radius: 12px; overflow: hidden; background: #eef2f8; aspect-ratio: 16 / 9; }
.bl-pic a, .bl-pic img { display: block; width: 100%; height: 100%; }
.bl-pic img { object-fit: cover; }
.bl-plan { display: grid !important; place-items: center; padding: 12px; }
.bl-plan .laypreview { max-width: 100%; max-height: 100%; height: 100%; width: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(15, 27, 51, 0.15); }
.bl-photos summary { font-size: 0.84rem; color: var(--brand); cursor: pointer; font-weight: 600; }
.bl-photos > div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bl-photos span { position: relative; width: 70px; height: 54px; }
.bl-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.bl-photos button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #0f1b33; color: #fff; cursor: pointer; line-height: 1; }
.bl-card h2 { font-size: 1.2rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.bl-card h3 { font-size: 0.95rem; margin: 6px 0 0; }
.bl-sub { margin: -6px 0 0; font-size: 0.92rem; }
.bl-sub span { margin: 0 6px; }
.bl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bl-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.bl-stats b { display: block; font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; }
.bl-stats small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.bl-line { font-size: 0.84rem; color: var(--muted); display: grid; gap: 2px; }
.bl-line strong.up { color: #15803d; }
.bl-line strong.down { color: #c81e37; }
.bl-line .oz-ic { width: 15px; height: 15px; vertical-align: -3px; }
.bl-items { list-style: none; margin: 0; padding: 0; }
.bl-items li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.bl-items strong { display: block; font-size: 0.88rem; }
.bl-items span:not(.vx-ico) { color: var(--muted); font-size: 0.86rem; }
.bl-notes textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 0.9rem; resize: vertical; }
.bl-notes button { margin-top: 6px; }
.bl-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 4px; }
.bl-acts .btn { text-align: center; padding: 9px 8px; font-size: 0.9rem; }
.bl-choose { grid-column: 1 / -1; position: relative; }
.bl-choose > summary { list-style: none; display: flex; width: 100%; overflow: hidden; }
.bl-choose > summary::-webkit-details-marker { display: none; }
.bl-choose > div { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 27, 51, 0.18); padding: 6px; max-height: 260px; overflow: auto; }
.bl-choose form { display: grid; gap: 2px; margin: 0; }
.bl-choose form button { display: flex; justify-content: space-between; gap: 10px; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left; color: var(--ink); }
.bl-choose form button span { color: var(--muted); white-space: nowrap; }
.bl-choose form button:hover, .bl-choose form button.on { background: var(--blue-100); }
.bl-choose form button.clear { color: #c81e37; }
.bl-choose p { margin: 8px 10px; }
.bl-upload label { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.bl-upload label:hover { background: var(--blue-100); }
.bl-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bl-add > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.bl-add > summary::-webkit-details-marker { display: none; }
.bl-add > summary .oz-ic { color: var(--brand); }
.bl-add form { margin-top: 14px; }
.bl-list .vx-tag { margin-left: 6px; }
@media (max-width: 480px) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Restock Plan */
.rp-next { display: flex; align-items: center; gap: 10px; }
.rp-next label { color: var(--ink); font-size: 0.92rem; }
.rp-next select { width: auto; font-weight: 600; }
.rp-need { text-align: left; max-width: 520px; margin: 0 auto; line-height: 1.8; }
.rp-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; box-shadow: var(--shadow); flex-wrap: wrap; }
.rp-say { flex: 1 1 320px; min-width: 0; display: grid; gap: 2px; }
.rp-say small { color: var(--ink); font-size: 0.86rem; }
.rp-say b { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
.rp-say span { color: var(--muted); font-size: 0.92rem; }
.rp-shows { display: flex; gap: 12px; flex: 2 1 420px; min-width: 0; }
.rp-shows > div { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; background: #f3f6fc; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; }
.rp-shows > div.next { background: #eaf1ff; border-color: #8fb1f6; }
.rp-shows small { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--brand-dark); font-weight: 600; }
.rp-shows small em { margin-left: auto; font-style: normal; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; background: #cfdefc; color: #1d4ed8; padding: 2px 8px; border-radius: 999px; }
.rp-shows strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-shows span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.84rem; }
.rp-shows .oz-ic { width: 16px; height: 16px; }
.rp-board { box-shadow: var(--shadow); }
.rp-filter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rp-filter > label:not(.vx-search) { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.rp-filter select { width: auto; min-width: 170px; font-weight: 400; }
.rp-filter > .btn { margin-left: auto; }
.rp-bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.rp-all { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9rem; margin-right: 6px; }
.rp-all input, .rp-card header > input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.rp-bulk .btn { font-size: 0.88rem; padding: 8px 14px; }
.rp-bulk .btn:disabled { opacity: 0.55; cursor: default; }
.rp-bulk .rp-clear { color: #c81e37; border-color: #f3bcc4; background: #fff5f6; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rp-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #fff; }
.rp-card header { display: flex; gap: 12px; align-items: flex-start; }
.rp-card header > div { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.rp-card header strong { font-size: 1rem; overflow-wrap: anywhere; }
.rp-card header small { color: var(--muted); font-size: 0.82rem; }
.rp-card .oz-more summary { border: 0; }
.rp-pic { width: 84px; height: 84px; border-radius: 10px; background: #eef2f8; display: grid; place-items: center; overflow: hidden; flex: none; color: #9aa7bf; }
.rp-pic img { width: 100%; height: 100%; object-fit: cover; }
.rp-pic .oz-ic { width: 30px; height: 30px; }
.rp-card dl { margin: 0; display: grid; }
.rp-card dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 8px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.rp-card dt { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rp-card dt .oz-ic { width: 16px; height: 16px; color: var(--muted); }
.rp-card dd { margin: 0; font-weight: 700; }
.rp-card dl > div.rec { background: #e3f6ea; border-radius: 8px; border-top-color: transparent; font-weight: 700; }
.rp-card dl > div.rec .oz-ic { color: #15803d; }
.rp-more > summary { list-style: none; display: block; text-align: center; }
.rp-more > summary::-webkit-details-marker { display: none; }
.rp-more[open] > summary { background: #fff; color: var(--brand); border-color: #b9cdf8; box-shadow: none; }
.rp-more > div { margin-top: 8px; font-size: 0.86rem; }
.rp-more table { width: 100%; border-collapse: collapse; }
.rp-more td { padding: 5px 2px; border-bottom: 1px dashed var(--line); }
.rp-more td:last-child { text-align: right; white-space: nowrap; }
.rp-card footer { display: flex; align-items: center; gap: 10px; margin-top: auto; order: 5; }
.rp-card footer label { font-weight: 600; font-size: 0.9rem; }
.rp-card footer input { width: 92px; }
.rp-card footer input.set { border-color: var(--brand); background: #f3f7ff; font-weight: 700; }
.rp-card .rp-more { order: 6; }
@media (max-width: 760px) {
  .rp-shows { flex-direction: column; flex-basis: 100%; }
  .rp-filter > .btn { margin-left: 0; }
  .rp-filter select { min-width: 0; }
}

/* What to Make */
.wm-head { align-items: center; }
.wm-mark { display: grid; place-items: center; width: 46px; height: 46px; color: var(--brand); flex: none; }
.wm-mark .oz-ic { width: 38px; height: 38px; stroke-width: 3.2; }
.wm-basis { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); max-width: 100%; }
.wm-basis .oz-ic { color: var(--brand); width: 22px; height: 22px; }
.wm-basis strong, .wm-basis small { display: block; }
.wm-basis small { color: var(--muted); font-size: 0.8rem; }
.wm-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.wm-two > .card { box-shadow: var(--shadow); min-width: 0; }
.wm-bolt { display: grid; place-items: center; width: 40px; height: 40px; color: #e7a008; flex: none; }
.wm-bolt .oz-ic { width: 30px; height: 30px; fill: currentColor; fill-opacity: 0.25; stroke-width: 2; }
.wm-bolt.blue { color: var(--brand); }
.wm-act { border: 1px solid #bfe6cd; background: #f3fbf6; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.wm-act.watch { border-color: #f5d79a; background: #fffaf0; }
.wm-act.stop { border-color: #f3bcc4; background: #fff5f6; }
.wm-act > summary { list-style: none; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.wm-act > summary::-webkit-details-marker { display: none; }
.wm-act > summary > .oz-ic:first-child { width: 28px; height: 28px; color: #15803d; stroke-width: 2.2; }
.wm-act.watch > summary > .oz-ic:first-child { color: #c27803; }
.wm-act.stop > summary > .oz-ic:first-child { color: #dc2f47; }
.wm-act > summary > .oz-ic:last-child { transition: transform 0.15s; color: var(--ink); }
.wm-act[open] > summary > .oz-ic:last-child { transform: rotate(90deg); }
.wm-act > summary > div { flex: 1; min-width: 0; }
.wm-act > summary strong { display: block; color: #166534; font-size: 1.02rem; }
.wm-act.watch > summary strong { color: #8a5a06; }
.wm-act.stop > summary strong { color: #c81e37; }
.wm-act > summary span { color: var(--ink); font-size: 0.84rem; }
.wm-act > summary em { font-style: normal; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #cdeed9; color: #166534; white-space: nowrap; }
.wm-act.watch > summary em { background: #fbe6b8; color: #8a5a06; }
.wm-act.stop > summary em { background: #fbd2d8; color: #c81e37; }
.wm-row { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, 0.85); border-radius: 10px; padding: 8px 10px; margin-top: 8px; min-width: 0; }
.wm-row > div { min-width: 0; display: grid; gap: 1px; }
.wm-row strong { overflow-wrap: anywhere; }
.wm-row span { font-size: 0.86rem; }
.wm-row small { color: var(--muted); font-size: 0.82rem; }
.wm-none { background: rgba(255, 255, 255, 0.85); border-radius: 10px; padding: 9px 12px; margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.wm-pic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9px; background: #eef2f8; color: #9aa7bf; overflow: hidden; flex: none; }
.wm-pic img { width: 100%; height: 100%; object-fit: cover; }
.wm-pic.sm { display: inline-grid; width: 28px; height: 28px; border-radius: 6px; vertical-align: middle; margin-right: 10px; }
.wm-pic.sm .oz-ic { width: 15px; height: 15px; }
.wm-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wm-leader { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.wm-leader header { display: flex; gap: 12px; align-items: center; }
.wm-leader header strong, .wm-leader header small { display: block; }
.wm-leader header small { color: var(--muted); font-size: 0.82rem; }
.wm-leader .wm-row { padding: 6px 0 0; background: none; }
.wm-leader .wm-row span { color: var(--muted); }
.wm-all { box-shadow: var(--shadow); }
.wm-allhead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.wm-allhead .vx-head { flex: 1 1 320px; }
.wm-allhead .vx-search { flex: 0 1 230px; }
.wm-tabs { display: flex; gap: 4px; background: #f1f4fa; border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.wm-tabs button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.wm-tabs button.on { background: var(--brand); color: #fff; }
.wm-table td:first-child { white-space: nowrap; }
.wm-table th { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
@media (max-width: 1000px) { .wm-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .wm-leaders { grid-template-columns: minmax(0, 1fr); } .wm-act > summary span { display: none; } }

/* Custom Orders */
.co-top { display: flex; gap: 10px; flex-wrap: wrap; }
.co-top .btn { padding: 11px 18px; }
.co-link { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; box-shadow: var(--shadow); flex-wrap: wrap; }
.co-big { width: 64px; height: 64px; }
.co-big .oz-ic { width: 32px; height: 32px; }
.co-linkmain { flex: 1 1 380px; min-width: 0; }
.co-linkmain h2 { font-size: 1.3rem; margin: 0 0 4px; }
.co-linkmain p { margin: 0 0 12px; font-size: 0.92rem; }
.co-url { display: flex; align-items: center; gap: 10px; font-size: 1.05rem !important; font-weight: 700; margin-bottom: 8px !important; min-width: 0; }
.co-url a { overflow-wrap: anywhere; min-width: 0; }
.co-url button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b9cdf8; border-radius: 8px; background: #fff; color: var(--brand); cursor: pointer; flex: none; }
.co-url button.done { background: #dcf5e6; border-color: #9ad9b3; color: #15803d; }
.co-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.co-acts form { margin: 0; }
.co-qr { display: flex; gap: 16px; align-items: center; border-left: 1px solid var(--line); padding-left: 24px; flex: 0 1 400px; min-width: 0; }
.co-qr .orderqr { width: 132px; flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.co-qr .orderqr svg { display: block; width: 100%; height: auto; }
.co-qr p { margin: 2px 0 10px; font-size: 0.88rem; }
.co-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.co-two > * { box-shadow: var(--shadow); min-width: 0; }
.co-list > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.co-list > header h2 { font-size: 1.25rem; }
.co-order { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-order.late { box-shadow: inset 3px 0 0 #dc2f47; padding-left: 12px; }
.co-order.soon { box-shadow: inset 3px 0 0 #e7a008; padding-left: 12px; }
.co-pic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 10px; background: #eef2f8; color: #9aa7bf; overflow: hidden; flex: none; }
.co-pic img { width: 100%; height: 100%; object-fit: cover; }
.co-body { flex: 1; min-width: 0; }
.co-body p { margin: 0 0 3px; font-size: 0.9rem; overflow-wrap: anywhere; }
.co-body em { font-style: normal; color: var(--ink); }
.co-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 1rem !important; }
.co-go { display: flex; flex-direction: column; gap: 6px; flex: none; }
.co-go form { margin: 0; }
.co-go .btn { width: 100%; text-align: center; white-space: nowrap; }
.co-closed { margin-top: 14px; }
.co-closed summary { cursor: pointer; }
.co-how h2 { font-size: 1.2rem; margin-bottom: 12px; }
.co-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.co-how li { display: flex; gap: 14px; align-items: flex-start; }
.co-how b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e3ecfd; color: var(--brand); font-size: 1.05rem; flex: none; }
.co-how li:first-child b { background: var(--brand); color: #fff; }
.co-how strong, .co-how span { display: block; }
.co-how span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 1100px) { .co-two { grid-template-columns: minmax(0, 1fr); } .co-qr { border-left: 0; padding-left: 0; flex-basis: 100%; } }
@media (max-width: 560px) { .co-order { flex-wrap: wrap; } .co-go { flex-direction: row; width: 100%; } .co-go form, .co-go > a { flex: 1; } .co-big { display: none; } }

/* Lost Sales */
.ls-pick { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; box-shadow: var(--shadow); max-width: 100%; }
.ls-pick .oz-ic { width: 20px; height: 20px; flex: none; }
.ls-pick select { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; max-width: 260px; min-width: 0; }
.ls-hero { display: flex; gap: 18px; align-items: center; background: #fdeef0; border: 1px solid #f7c9cf; border-left: 6px solid #dc2f47; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.ls-hero > .vx-ico { width: 64px; height: 64px; background: #fbd2d8; }
.ls-hero > .vx-ico .oz-ic { width: 32px; height: 32px; }
.ls-hero > div { flex: 1 1 380px; min-width: 0; }
.ls-hero > div b { display: block; font-size: 1.25rem; line-height: 1.3; }
.ls-hero > div b em { font-style: normal; color: #dc2f47; font-size: 1.5rem; }
.ls-hero > div span { color: var(--muted); font-size: 0.92rem; }
.ls-hero > p { margin: 0; background: #fbdfe3; border-radius: 12px; padding: 10px 26px; min-width: 150px; }
.ls-hero > p b { display: block; font-size: 1.8rem; color: #dc2f47; line-height: 1.2; }
.ls-hero > p small { font-size: 0.9rem; }
.ls-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.ls-two.even { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ls-two > .card { box-shadow: var(--shadow); min-width: 0; }
.ls-sort { width: auto; font-size: 0.88rem; flex: none; }
.ls-why { list-style: none; margin: 0; padding: 0; }
.ls-why li { display: grid; grid-template-columns: 40px minmax(110px, 0.9fr) minmax(60px, 2fr) 90px 64px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.ls-why i { display: block; height: 10px; border-radius: 999px; background: #e9edf4; overflow: hidden; }
.ls-why u { display: block; height: 100%; border-radius: 999px; background: #3b78f6; transition: width 0.2s; }
.ls-why li.red u { background: #ef3f55; }
.ls-why li.amber u { background: #f5a623; }
.ls-why li.purple u { background: #8b4df0; }
.ls-why li.green u { background: #2dbf71; }
.ls-why span:not(.vx-ico) { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.ls-why b { text-align: right; }
.ls-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ls-list li { display: flex; gap: 14px; align-items: center; background: #f5f7fb; border-radius: 12px; padding: 10px 14px; min-width: 0; }
.ls-list li > div { flex: 1; min-width: 0; }
.ls-list li strong { display: block; overflow-wrap: anywhere; }
.ls-list li span { color: var(--muted); font-size: 0.86rem; }
.ls-list li > b { white-space: nowrap; }
.ls-list li form { margin: 0; }
.ls-list.plain li { background: none; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 4px; }
.ls-list.plain li.on { background: #eef4ff; border-radius: 10px; }
.ls-list.plain { gap: 0; }
.ls-list.plain li > a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink); }
.ls-list.plain li > a:hover { background: var(--blue-100); }
.ls-list.plain li > .oz-ic { width: 22px; height: 22px; }
.ls-list.quotes li > i { font-style: normal; font-size: 2.4rem; line-height: 0.6; color: var(--brand); font-family: Georgia, serif; align-self: center; padding-top: 14px; }
@media (max-width: 1000px) { .ls-two, .ls-two.even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ls-why li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ls-why i { grid-column: 1 / -1; grid-row: 2; }
  .ls-why span:not(.vx-ico) { grid-column: 2; grid-row: 3; }
  .ls-why b { grid-row: 1; grid-column: 3; }
  .ls-hero > p { flex: 1; }
}

/* Scan & Sell */
.ss-when { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; box-shadow: var(--shadow); color: var(--ink); max-width: 100%; }
.ss-when:hover { text-decoration: none; border-color: var(--brand); }
.ss-when .oz-ic { width: 20px; height: 20px; }
.ss-when strong, .ss-when small { display: block; }
.ss-when small { color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.ss .card { box-shadow: var(--shadow); min-width: 0; }
.ss .vx-head { flex-wrap: wrap; }
.ss .vx-head h2 { font-size: 1.15rem; }
.ss-name { display: block; font-size: 1.1rem; overflow-wrap: anywhere; }
.ss-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss-tiles > div { display: flex; gap: 12px; align-items: center; background: #f5f7fb; border-radius: 12px; padding: 12px; min-width: 0; }
.ss-tiles p { margin: 0; min-width: 0; }
.ss-tiles b { display: block; font-size: 1.35rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ss-tiles small { color: var(--muted); font-size: 0.84rem; }
.ss-links { margin: 12px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 600; }
.ss-code { display: flex; gap: 10px; }
.ss-code .vx-search input { padding-top: 13px; padding-bottom: 13px; font-size: 1rem; }
.ss-code .btn { padding: 0 24px; }
.ss-switch { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.ss-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ss-switch i { flex: none; width: 50px; height: 28px; border-radius: 999px; background: #cbd3e1; position: relative; transition: background 0.15s; }
.ss-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ss-switch input:checked + i { background: var(--brand); }
.ss-switch input:checked + i::after { transform: translateX(22px); }
.ss-switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.ss-switch strong, .ss-switch small { display: block; }
.ss-switch small { color: var(--muted); font-size: 0.84rem; }
.ss-add { margin-bottom: 16px; }
.ss-add .vx-search { flex: 0 1 300px; }
.ss .tapgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-height: 420px; }
.ss .tap { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 0; align-items: center; align-content: center; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ss .tap[hidden] { display: none; }
.ss .tap:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(15, 27, 51, 0.08); }
.ss .tap-pic { grid-row: 1 / 4; width: 76px; height: 76px; border-radius: 10px; background: #eef2f8; overflow: hidden; display: block; }
.ss .tap-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss .tap-name { font-weight: 700; padding-right: 30px; }
.ss .tap-price { color: var(--brand); font-size: 1.1rem; }
.ss .tap.out [data-tap-left] { color: #dc2f47; }
.ss .tap-sold { top: 10px; right: 10px; min-width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.ss .tap-sold[hidden] { display: none; }
.ss-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.ss .traffic-box { border: 0; background: #eaf1ff; }
.ss .traffic-box b { color: var(--brand); font-size: 2rem; }
.ss .traffic-box span { color: var(--brand-dark); }
.ss .traffic-box.buy { background: #e3f6ea; }
.ss .traffic-box.buy b { color: #15914f; }
.ss .traffic-box.buy span { color: #166534; }
.ss .traffic-buttons .btn.ghost { min-width: 40px; }
.ss .lostbuttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ss .lostbuttons button { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; background: #e3ecfd; color: #1d4ed8; text-align: left; }
.ss .lostbuttons button.red { background: #fde2e5; color: #c81e37; }
.ss .lostbuttons button.amber { background: #fdf0d2; color: #8a5a06; }
.ss .lostbuttons button.purple { background: #ece5fb; color: #5b3fd6; }
.ss .lostbuttons button.green { background: #dcf5e6; color: #166534; }
.ss .lostbuttons button:hover { filter: brightness(0.96); }
.ss .lostbuttons button:active { transform: scale(0.98); }
.ss-voice .voice-bar { justify-content: center; background: #f5f7fb; border-radius: 12px; padding: 18px; }
.ss-voice .voice-btn { background: #ef3f55; border-color: #ef3f55; border-radius: 999px; padding: 14px 22px; }
.ss-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; max-width: 1100px; }
.ss-start .card { box-shadow: var(--shadow); min-width: 0; }
.ss-picks { display: grid; gap: 8px; }
.ss-picks a { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.ss-picks a:hover { border-color: var(--brand); background: #f3f7ff; text-decoration: none; }
.ss-picks a > span:nth-child(2) { flex: 1; min-width: 0; }
.ss-picks strong, .ss-picks small { display: block; }
.ss-picks small { color: var(--muted); }
@media (max-width: 1000px) { .ss-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .ss-tiles { grid-template-columns: minmax(0, 1fr); }
  .ss .tapgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ss .tap { grid-template-columns: minmax(0, 1fr); }
  .ss .tap-pic { display: none; }
  .ss-three { grid-template-columns: minmax(0, 1fr); }
}

/* Insights overview */
.subnav a { display: inline-flex; align-items: center; gap: 7px; }
.subnav a .oz-ic { width: 16px; height: 16px; }
.in-cards { display: grid; gap: 14px; margin-bottom: 14px; }
.in-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.in-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.in-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.in-card > div { min-width: 0; display: grid; gap: 1px; }
.in-card span:not(.vx-ico) { font-size: 0.88rem; }
.in-card b { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.in-card b.words { font-size: 1.25rem; }
.in-card small { color: var(--muted); font-size: 0.84rem; min-height: 2.4em; }
.in-card a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.86rem; margin-top: 4px; }
.in-card a .oz-ic { width: 14px; height: 14px; }
.in-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.in-two .card { box-shadow: var(--shadow); min-width: 0; }
.in-side { display: grid; gap: 16px; min-width: 0; }
.in-chart { position: relative; }
.in-chart svg { display: block; max-width: 100%; }
.in-chart text { font-size: 12px; fill: #5d6b85; }
.in-chart .grid { stroke: #e6ebf3; stroke-width: 1; }
.in-chart .area { fill: rgba(37, 99, 235, 0.14); stroke: none; }
.in-chart .line { fill: none; stroke: #2563eb; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.in-chart .dot { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.in-chart .cross { stroke: #9aa9c4; stroke-width: 1; stroke-dasharray: 3 3; }
.in-tip { position: absolute; pointer-events: none; background: #0f1b33; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; white-space: nowrap; box-shadow: 0 6px 18px rgba(15, 27, 51, 0.25); }
.in-tip strong, .in-tip span { display: block; }
.in-tip[hidden] { display: none; }
.in-table { margin-top: 6px; font-size: 0.86rem; }
.in-table summary { cursor: pointer; color: var(--muted); }
.in-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.in-sums > div { display: flex; gap: 12px; align-items: center; background: #f5f7fb; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.in-sums i { width: 14px; height: 14px; border-radius: 50%; flex: none; background: #2563eb; }
.in-sums i.b { background: #7fb0f7; }
.in-sums i.c { background: #8b4df0; }
.in-sums p { margin: 0; min-width: 0; }
.in-sums b { display: block; font-size: 1.15rem; }
.in-sums small { color: var(--muted); font-size: 0.82rem; }
.in-weather { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.in-weather > div { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 12px; background: #eef2f8; min-width: 0; }
.in-weather .oz-ic { width: 34px; height: 34px; color: #55627c; stroke-width: 1.8; }
.in-weather .sun { background: #fff6dc; } .in-weather .sun .oz-ic { color: #e7a008; fill: #fbd45a; fill-opacity: 0.6; }
.in-weather .rain { background: #e8f0fe; } .in-weather .rain .oz-ic { color: #2563eb; }
.in-weather .wind { background: #efe9fc; } .in-weather .wind .oz-ic { color: #6d3fd6; }
.in-weather p { margin: 0; min-width: 0; }
.in-weather span, .in-weather small { display: block; font-size: 0.8rem; color: var(--muted); }
.in-weather b { font-size: 1.15rem; }
.in-tips { list-style: none; margin: 0; padding: 0; }
.in-tips li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.in-tips li:first-child { border-top: 0; padding-top: 0; }
.in-tips li > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; font-size: 0.9rem; }
.in-tips li > b.n1 { background: #8b4df0; } .in-tips li > b.n2 { background: #2dbf71; }
.in-tips li > div { flex: 1; min-width: 0; }
.in-tips strong, .in-tips span { display: block; }
.in-tips span { color: var(--muted); font-size: 0.86rem; }
.in-tips li > a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f4fa; color: var(--ink); flex: none; }
.in-tips li > a:hover { background: var(--blue-100); }
@media (max-width: 1500px) { .in-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } .in-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .in-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .in-cards.five, .in-cards.four { grid-template-columns: minmax(0, 1fr); }
  .in-card small { min-height: 0; }
  .in-weather { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-sums { grid-template-columns: minmax(0, 1fr); }
}
.in-card a { display: inline; }
.in-card a .oz-ic { vertical-align: -2px; }

/* Calendar (vendor) */
.cv-add > summary { width: auto; height: auto; padding: 11px 18px; color: #fff; background: var(--brand); border-color: var(--brand); display: inline-flex; }
.cv-add > summary:hover, .cv-add[open] > summary { background: var(--brand-dark); border-color: var(--brand-dark); }
.cv-add > summary .oz-ic { stroke-width: 2; }
.cv-main { box-shadow: var(--shadow); }
.cv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cv-bar h2 { font-size: 1.35rem; margin: 0 8px; flex: 1 1 auto; white-space: nowrap; }
.cv-bar .vx-search { flex: 0 1 220px; }
.cv-nav { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.cv-nav:hover { background: var(--blue-100); border-color: #b9cdf8; }
.cv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cv-dow { padding: 9px 6px; font-size: 0.82rem; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); background: #fafbfe; }
.cv-dow[hidden], .cv-day[hidden], .cv-chip[hidden] { display: none; }
.cv-day { min-height: 112px; padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cv-day:nth-child(7n + 1) { border-left: 0; }
.cv-day:nth-child(-n + 14) { border-top: 0; }
.cv-day.out { background: #fafbfe; }
.cv-day.out .cv-n { color: #a3adc2; }
.cv-day em { display: none; font-style: normal; font-weight: 700; }
.cv-n { align-self: flex-start; min-width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.cv-n:hover { background: var(--blue-100); }
.cv-day.today .cv-n { background: var(--brand); color: #fff; }
.cv-chip { display: flex; gap: 7px; align-items: center; padding: 5px 7px; border-radius: 8px; font-size: 0.76rem; min-width: 0; background: #e3ecfd; color: #1d4ed8; }
.cv-chip:hover { text-decoration: none; filter: brightness(0.97); }
.cv-chip i { display: grid; place-items: center; flex: none; }
.cv-chip .oz-ic { width: 15px; height: 15px; }
.cv-chip span { min-width: 0; display: grid; }
.cv-chip b, .cv-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-chip small { font-size: 0.7rem; opacity: 0.85; }
.cv-chip.event, .cv-legend .event::before, .vx-mini u.event { background: #dcf5e6; color: #166534; }
.cv-chip.applied, .cv-legend .applied::before, .vx-mini u.applied { background: #e3ecfd; color: #1d4ed8; }
.cv-chip.organizing, .cv-legend .organizing::before, .vx-mini u.organizing { background: #ece5fb; color: #5b3fd6; }
.cv-chip.fee, .cv-chip.deadline, .cv-legend .fee::before, .vx-mini u.fee, .vx-mini u.deadline { background: #fde2e5; color: #c81e37; }
.cv-chip.task, .cv-legend .task::before, .vx-mini u.task { background: #fdf0d2; color: #8a5a06; }
.vx-mini u.event, .cv-legend .event::before { background: #22b866; } .vx-mini u.applied, .cv-legend .applied::before { background: #2563eb; }
.vx-mini u.organizing, .cv-legend .organizing::before { background: #8b4df0; } .vx-mini u.fee, .vx-mini u.deadline, .cv-legend .fee::before { background: #ef3f55; }
.vx-mini u.task, .cv-legend .task::before { background: #f5a623; }
.vx-ico.cv-event { background: #dcf5e6; color: #15914f; } .vx-ico.cv-organizing { background: #ece5fb; color: #6d3fd6; }
.vx-ico.cv-fee, .vx-ico.cv-deadline { background: #fde2e5; color: #dc2f47; } .vx-ico.cv-task { background: #fdf0d2; color: #c27803; }
.cv-minibtn { border: 0; background: none; font: inherit; cursor: pointer; }
.cv-minibtn:hover { background: var(--blue-100); }
.vx-mini td.today .cv-minibtn:hover { background: var(--brand-dark); }
.cv-legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 14px 4px 0; font-size: 0.82rem; }
.cv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cv-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.cv-none { text-align: center; padding: 22px 0 6px; margin: 0; }
.cv-grid.week .cv-day { min-height: 320px; border-top: 0; }
.cv-grid.day, .cv-grid.list { grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 0; }
.cv-grid.day .cv-day, .cv-grid.list .cv-day { min-height: 0; border: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; background: none; }
.cv-grid.day .cv-day em, .cv-grid.list .cv-day em { display: block; flex: 0 0 110px; }
.cv-grid.day .cv-n, .cv-grid.list .cv-n { display: none; }
.cv-grid.day .cv-chip, .cv-grid.list .cv-chip { flex: 1 1 240px; font-size: 0.88rem; padding: 9px 12px; }
.cv-grid.day .cv-chip small, .cv-grid.list .cv-chip small { font-size: 0.8rem; }
.cv-grid.day .cv-day { min-height: 120px; align-content: flex-start; }
.cv-quick { display: grid; gap: 8px; }
.cv-quick input, .cv-quick select { width: 100%; }
@media (max-width: 760px) {
  .cv-day { min-height: 70px; padding: 3px; }
  .cv-grid:not(.day):not(.list) .cv-chip span { display: none; }
  .cv-grid:not(.day):not(.list) .cv-chip { justify-content: center; padding: 4px 2px; }
  .cv-bar h2 { flex-basis: 100%; order: -1; margin: 0; }
}

/* Tasks (vendor) */
.tv-addbtn { padding: 11px 20px; }
.tv-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; box-shadow: var(--shadow); border-color: #b9cdf8; }
.tv-add[hidden] { display: none; }
.tv-add input[type="text"] { flex: 3 1 240px; }
.tv-add input[type="date"], .tv-add select { flex: 1 1 140px; width: auto; }
[data-tv-bar] select { width: auto; flex: 0 1 150px; min-width: 120px; font-weight: 600; }
.tv-list { box-shadow: var(--shadow); padding-bottom: 6px; }
.tv-list > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tv-list > header h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.tv-list ul { list-style: none; margin: 0; padding: 0; }
.tv-list li { display: grid; grid-template-columns: 30px 44px minmax(0, 2.2fr) minmax(90px, 0.9fr) minmax(150px, 1.1fr) 38px; gap: 14px; align-items: center; padding: 12px 10px; border-top: 1px solid var(--line); }
.tv-list li[hidden] { display: none; }
.tv-list li.late { background: #fdeef0; border-radius: 10px; border-top-color: transparent; }
.tv-list li.late + li { border-top-color: transparent; }
.tv-list li > form { margin: 0; }
.tv-tick { width: 26px; height: 26px; border: 1.5px solid #9aa9c4; border-radius: 6px; background: #fff; cursor: pointer; padding: 0; display: grid; place-items: center; color: #fff; }
.tv-tick:hover { border-color: var(--brand); }
.tv-tick.on { background: #15914f; border-color: #15914f; }
.tv-tick .oz-ic { width: 16px; height: 16px; stroke-width: 3; }
.tv-what { min-width: 0; }
.tv-what strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.tv-what span { color: var(--muted); font-size: 0.86rem; }
.tv-list li.done .tv-what strong { text-decoration: line-through; color: #5b3fd6; }
.tv-kind { justify-self: start; border-radius: 8px; padding: 5px 12px; font-size: 0.82rem; }
.tv-due { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tv-due .oz-ic { width: 22px; height: 22px; flex: none; }
.tv-due p { margin: 0; min-width: 0; }
.tv-due strong, .tv-due span { display: block; white-space: nowrap; }
.tv-due span { color: var(--muted); font-size: 0.84rem; }
.tv-list li.late .tv-due, .tv-list li.late .tv-due span { color: #dc2f47; }
.tv-list li.done .tv-due { color: #15914f; }
.tv-list li .oz-more summary { border: 0; background: none; }
.tv-mini td > span { cursor: default; }
.vx-mini u.late { background: #ef3f55; } .vx-mini u.due { background: #f5a623; } .vx-mini u.done { background: #22b866; }
@media (max-width: 760px) {
  .tv-list li { grid-template-columns: 30px minmax(0, 1fr) 38px; row-gap: 6px; }
  .tv-list li > .vx-ico { display: none; }
  .tv-what { grid-column: 2; }
  .tv-kind, .tv-due { grid-column: 2; }
  .tv-list li > .oz-more { grid-column: 3; grid-row: 1; }
  [data-tv-bar] select { flex: 1 1 120px; }
}

/* ===== Page guide: numbered arrows and the card that explains them ===== */
.gd-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 80; pointer-events: none; }
.gd-chip { position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: #0f1b33; color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: 0 8px 22px rgba(15, 27, 51, 0.32), 0 0 0 3px rgba(255, 255, 255, 0.9); animation: gd-pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) both; text-align: left; }
.gd-chip[hidden] { display: none; }
.gd-chip > b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #3b78f6; font-size: 0.78rem; flex: none; }
.gd-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-chip > i { width: 20px; height: 20px; display: grid; place-items: center; flex: none; color: #ffd54a; }
.gd-chip > i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.gd-chip.gd-top > i svg, .gd-chip.gd-edge > i svg { transform: rotate(90deg); }
.gd-chip.gd-bottom > i svg { transform: rotate(-90deg); }
.gd-chip.gd-right > i svg { transform: rotate(180deg); }
.gd-chip.gd-top > i, .gd-chip.gd-edge > i { animation: gd-down 0.9s ease-in-out infinite; }
.gd-chip.gd-bottom > i { animation: gd-up 0.9s ease-in-out infinite; }
.gd-chip.gd-left > i { animation: gd-right 0.9s ease-in-out infinite; }
.gd-chip.gd-right > i { animation: gd-leftward 0.9s ease-in-out infinite; order: -1; }
.gd-chip.gd-right { padding: 6px 6px 6px 12px; }
.gd-chip.gd-right > b { order: 2; }
.gd-chip.test { background: #7a4d00; }
.gd-chip.test > b { background: #f5b301; color: #3d2600; letter-spacing: 0.04em; font-size: 0.68rem; }
.gd-chip.hot, .gd-chip:hover { background: #2563eb; }
.gd-layer.small .gd-chip { padding: 5px; }
.gd-layer.small .gd-chip > span { display: none; }
.gd-target.gd-small { animation: gd-ring 1.6s ease-in-out infinite; }
.gd-target.gd-hot { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 10px; animation: none; box-shadow: 0 0 0 9px rgba(37, 99, 235, 0.16); }
.gd-card { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 340px; max-width: calc(100vw - 24px); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 27, 51, 0.28); animation: gd-rise 0.3s ease-out both; }
.gd-card header { display: flex; align-items: center; gap: 6px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--line); background: #0f1b33; color: #fff; border-radius: 16px 16px 0 0; }
.gd-card header b { flex: 1; font-size: 1rem; }
.gd-card header button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.gd-card header button:hover { background: rgba(255, 255, 255, 0.25); }
.gd-min::before { content: "–"; }
.gd-card.min .gd-min::before { content: "+"; }
.gd-card.min ol, .gd-card.min footer { display: none; }
.gd-card.min { width: auto; }
.gd-card.min header { border-radius: 16px; border-bottom: 0; }
.gd-card ol { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.gd-card li { display: flex; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.gd-card li:hover, .gd-card li.hot, .gd-card li:focus-visible { background: #eef4ff; outline: none; }
.gd-card li > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3b78f6; color: #fff; font-size: 0.82rem; flex: none; }
.gd-card li.test > b { background: #f5b301; color: #3d2600; }
.gd-card li strong, .gd-card li span { display: block; }
.gd-card li span { color: var(--muted); font-size: 0.86rem; }
.gd-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.gd-never { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
.gd-launch { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 999px; background: #0f1b33; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(15, 27, 51, 0.3); }
.gd-launch[hidden] { display: none; }
.gd-launch:hover { background: #2563eb; }
.gd-launch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes gd-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes gd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes gd-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes gd-up { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
@keyframes gd-right { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }
@keyframes gd-leftward { 0%, 100% { transform: translateX(2px); } 50% { transform: translateX(-4px); } }
@keyframes gd-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); } 60% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); } }
@media (prefers-reduced-motion: reduce) { .gd-chip, .gd-chip > i, .gd-target, .gd-card { animation: none !important; } }
@media (max-width: 700px) { .gd-card { right: 8px; bottom: 8px; left: 8px; width: auto; max-height: 55vh; } .gd-card.min { left: auto; } .gd-launch { right: 10px; bottom: 10px; } .gd-launch span { display: none; } }
@media print { .gd-layer, .gd-card, .gd-launch, .testbar { display: none !important; } }

/* The strip that says test info is on the account */
.testbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff8dd; border: 1px dashed #d9a400; border-radius: 12px; padding: 9px 14px; margin-bottom: 16px; font-size: 0.9rem; color: #5c3b00; }
.testbar > span:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.testbar a { font-weight: 700; white-space: nowrap; }
.testbar-short { display: none; }
@media (max-width: 640px) {
  .testbar { padding: 7px 10px; gap: 8px; font-size: 0.84rem; }
  .testbar > span:nth-child(2) { flex: 1 1 120px; }
  .testbar-long { display: none; }
  .testbar-short { display: inline; }
  .ss .vx-head > div { flex: 1 1 160px; }
  .ss .vx-head > .btn, .ss .vx-head > .vx-search { flex: 1 1 100%; }
}

/* Venue library: the cover shown while an address is being looked up */
.vl-wait { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(3px); cursor: progress; }
.vl-wait[hidden] { display: none; }
.vl-wait > div { background: #fff; border-radius: 16px; padding: 28px 30px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); display: grid; gap: 8px; justify-items: center; }
.vl-wait strong { font-size: 1.15rem; color: var(--ink); }
.vl-wait p { margin: 0; color: var(--ink); min-height: 1.5em; }
.vl-wait small { color: var(--muted); line-height: 1.45; }
.vl-spin { position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 6px; }
.vl-spin i { position: absolute; inset: 0; border-radius: 50%; border: 5px solid #dbe6ff; border-top-color: var(--brand); animation: vl-spin 0.9s linear infinite; }
.vl-spin svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: vl-bob 1.2s ease-in-out infinite; }
@keyframes vl-spin { to { transform: rotate(360deg); } }
@keyframes vl-bob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .vl-spin i { animation-duration: 2.4s; } .vl-spin svg { animation: none; } }

/* Venue Layout Studio: selecting several things at once */
.vs-toolgrid .vs-tool[data-tool="many"] { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; padding: 8px 6px; font-size: 0.74rem; }
.vs-sel-all { fill: none; stroke: #06b6d4; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.vs-selbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(10, 23, 51, 0.92); color: #fff; box-shadow: 0 8px 22px rgba(10, 23, 51, 0.3); z-index: 3; }
.vs-selbar[hidden] { display: none; }
.vs-selbar b { font-size: 0.82rem; margin-right: 4px; white-space: nowrap; }
.vs-selbar button { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: rgba(255, 255, 255, 0.14); color: #fff; }
.vs-selbar button:hover { background: rgba(255, 255, 255, 0.26); }
.vs-selbar button[hidden] { display: none; }
.vs-selbar button.danger { color: #fecaca; }
.vs-selbar button.done { background: #22d3ee; color: #0b1220; }
.vs[data-view="3d"] .vs-selbar { display: none; }
.vs-tip { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--green-100, #eef4ff); border: 1px solid var(--line); }
.vs-tip strong { display: block; font-size: 0.86rem; margin-bottom: 4px; }
.vs-tip p { margin: 0 0 6px; }
.vs-tip p:last-child { margin: 0; }
@media (max-width: 640px) { .vs-selbar { border-radius: 14px; padding: 8px; } }
@media print { .vs-selbar { display: none !important; } }

/* The Vendor / Organizer switch: one above the other, large enough to be the first thing seen in the menu */
.sideswitch { grid-template-columns: 1fr; gap: 6px; padding: 6px; border-radius: 14px; margin: 0 0 10px; }
.nav .sideswitch a { justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 11px; font-size: 1.05rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.14); min-height: 58px; box-sizing: border-box; }
.nav .sideswitch a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; }
.nav .sideswitch a .ni { width: 26px; height: 26px; flex: none; }
.nav .sideswitch a span { display: grid; gap: 1px; line-height: 1.15; min-width: 0; text-align: left; }
.nav .sideswitch a small { font-size: 0.74rem; font-weight: 500; opacity: 0.8; }
html[data-side="vendor"] .nav .sideswitch .for-vendor, html[data-side="organizer"] .nav .sideswitch .for-organizer { border-color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
html[data-side="vendor"] .nav .sideswitch .for-vendor:hover, html[data-side="organizer"] .nav .sideswitch .for-organizer:hover { background: #fff; color: #1d4ed8; }
.navset-about { display: none; }

/* A vendor who asked for electricity sits where there is none */
.vs-booth.nopower .vs-shape { stroke: #d97706 !important; stroke-width: 5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.vs-booth.clash.nopower .vs-shape { stroke: #b91c1c !important; }
.ev-power { background: #b91c1c; color: #fff; border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; font-size: 1.05rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(185, 28, 28, 0.3); }
.ev-power strong { font-size: 1.2rem; letter-spacing: 0.02em; }
.ev-power > span { display: block; font-size: 0.86rem; opacity: 0.93; margin-top: 4px; }
.ev-power .ev-do { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; opacity: 1; }
.ev-power .btn { background: #fff; color: #b91c1c; border-color: #fff; }
.ev-power .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.ap-power { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; white-space: nowrap; margin: 0 4px 3px 0; }

/* A vendor's other booth requests (a corner, near the entrance...) that the booth they were given does not meet */
.ev-power.ask { background: #b45309; box-shadow: 0 6px 18px rgba(180, 83, 9, 0.28); }
.ev-power.ask .btn { color: #b45309; }
.ev-power.ask .btn.ghost { color: #fff; }
.ap-power.ask { background: #e0e7ff; color: #3730a3; }
.vs-clash.ask { background: #b45309; box-shadow: 0 6px 18px rgba(180, 83, 9, 0.3); font-size: 1.02rem; }
.vs-clash.ask strong { font-size: 1.1rem; }
.vs-booth.unmet .vs-shape { stroke: #b45309 !important; stroke-width: 4; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.ask-list { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; }
.ask-list legend { font-weight: 600; padding: 0 6px; }
.ask-list .check { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-weight: 400; }

/* ------------------------------------------------------------------ Booth Layout Studio: the side panel (Booth / Products / Decor) */
.bs-side { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); min-width: 0; }
.bs-side > * + * { margin-top: 12px; }
.bs-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; flex: none; }
.bs-tabs button { display: grid; justify-items: center; gap: 5px; padding: 10px 4px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.bs-tabs button:hover { background: #eef4ff; }
.bs-tabs button.on { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3); }
.bs-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bs-panes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px; padding: 0 6px 2px 0; scrollbar-width: thin; }
.bs-pane > * + * { margin-top: 12px; }
.bs-pane[hidden] { display: none; }
.bs-sec { padding: 14px 16px; }
.bs-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1rem; }
.bs-sec h3 .bs-ic { width: 20px; height: 20px; color: var(--ink); }
.bs-sec > summary { cursor: pointer; }
.bs-sec .field:last-child { margin-bottom: 0; }
.bs-two { grid-template-columns: 1fr 1fr; gap: 10px; }
.bs-two .field { min-width: 0; }
.bs-two input, .bs-two select { width: 100%; min-width: 0; }
.bs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bs-tile { display: grid; justify-items: center; gap: 2px; padding: 8px 6px 9px; border: 2px solid var(--line); border-radius: 12px; background: #f8fafd; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; min-width: 0; }
.bs-tile:hover { border-color: #9db7f5; }
.bs-tile.on { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.bs-tile svg { width: 100%; max-width: 110px; height: auto; }
.bs-tile .floor { fill: #eef1f6; stroke: #c3cad6; stroke-width: 1; }
.bs-tile .wall { fill: #b9c0cc; fill-opacity: 0.9; stroke: #8d95a5; stroke-width: 1; }
.bs-tile .wall.back { fill: #c9cfd9; }
.bs-tile .wall.right { fill: #a9b1bf; fill-opacity: 0.75; }
.bs-tile .frame { fill: none; stroke: #5b6475; stroke-width: 1.6; stroke-linejoin: round; }
.bs-tile[data-bs-tent="custom"] .wall { stroke-dasharray: 4 3; fill-opacity: 0.5; }
.bs-custom { margin-top: 12px; }
.bs-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.bs-banners { display: contents; }
.bs-thumb { width: 64px; height: 40px; border: 2px solid var(--line); border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; color: #fff; font: inherit; font-size: 0.62rem; font-weight: 700; overflow: hidden; padding: 0 3px; }
.bs-thumb:hover, .bs-thumb.on { border-color: var(--brand); }
.bs-add { border-style: dashed; }
.bs-more { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.bs-more > summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--brand); list-style: none; }
.bs-more > summary::-webkit-details-marker { display: none; }
.bs-more > summary::after { content: " +"; }
.bs-more[open] > summary::after { content: " −"; }
.bs-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.bs-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; text-align: left; cursor: pointer; min-width: 0; line-height: 1.2; }
.bs-item:hover { border-color: var(--brand); background: #eef4ff; }
.bs-item .pal-icon { flex: none; }
.bs-item span { min-width: 0; overflow-wrap: anywhere; }
.bs-tip { margin: 12px 4px 0; }
.bs-save { flex: none; padding-top: 2px; }
.bs-save .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1.02rem; border-radius: 12px; }
.bs-side [data-photos] .clipgrid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
@media (max-width: 900px) {
  .bs-side { position: static; max-height: none; }
  .bs-panes { overflow: visible; margin-right: 0; padding-right: 0; }
  .bs-save { display: none; } /* phones already have Save in the bar under the plan */
}
@media (min-width: 901px) {
  /* The side panel runs the full height beside the name bar, the item settings and the plan. */
  .map-layout.planner > .bs-side { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
  .map-layout.planner > .map-toolbar, .map-layout.planner > .itempanel, .map-layout.planner > .map-canvas { grid-column: 1; }
}
.map-layout.planner > .map-toolbar { display: flex; align-items: center; gap: 12px; }
.map-layout.planner > .map-toolbar .map-status { flex: none; font-size: 0.85rem; text-align: right; }
.bs-tip .linkbtn { color: var(--brand); }
.bs-sec [data-tent-color-row], .bs-sec [data-tent-art] { margin-top: 12px; }

/* ------------------------------------------------------------------ Booth Layout Studio: things to add, on the left */
.bs-left { padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bs-ltabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
.bs-ltabs button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 6px; border: 0; border-radius: 10px; background: #eef2f8; color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.bs-ltabs button:hover { background: #e2eafb; }
.bs-ltabs button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.bs-ltabs .bs-ic { width: 18px; height: 18px; }
.bs-lpanes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
.bs-lpane[hidden] { display: none; }
.bs-lpane h3 { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.bs-lpane h3:first-child { margin-top: 4px; }
.bs-lpane h3 .bs-ic { width: 16px; height: 16px; }
.bs-lpane .bs-items { margin-top: 8px; }
.bs-note { margin: 6px 0 0; }
.bs-trim { margin: 8px 0 0; }
.bs-trim select { width: 100%; }
@media (min-width: 1400px) {
  /* Wide screens: three columns. Things to add | the plan | the booth's settings. */
  .map-layout.planner { grid-template-columns: 214px minmax(0, 1fr) 320px; }
  .map-layout.planner > .bs-left { grid-column: 1; grid-row: 1 / span 5; align-self: start; position: sticky; top: 12px; }
  .map-layout.planner > .map-toolbar, .map-layout.planner > .itempanel, .map-layout.planner > .map-canvas { grid-column: 2; }
  .map-layout.planner > .bs-side { grid-column: 3; }
  .bs-left .bs-items { grid-template-columns: 1fr; gap: 5px; }
  .bs-left .bs-item { padding: 7px 10px; }
}
@media (max-width: 1399px) {
  /* Narrower: the same things as a bar above the plan. */
  .map-layout.planner > .bs-left { grid-column: 1; flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px 12px; }
  .bs-left .bs-ltabs { grid-template-columns: 1fr; width: 118px; }
  .bs-left .bs-lpanes { max-height: 132px; }
  .bs-left .bs-lpane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .bs-left .bs-lpane[hidden] { display: none; }
  .bs-left .bs-lpane h3 { margin: 0 2px 0 6px; }
  .bs-left .bs-lpane h3:first-child { margin-left: 0; }
  .bs-left .bs-items { display: contents; }
  .bs-left .bs-item { padding: 6px 10px; }
  .bs-left .bs-note { display: none; }
  .bs-left .bs-trim { margin: 0; display: flex; align-items: center; gap: 8px; }
  .bs-left .bs-trim label { margin: 0; white-space: nowrap; }
  .bs-left .bs-trim select { width: auto; }
  .bs-left .bs-trim .hint { display: none; }
}
@media (max-width: 900px) {
  .map-layout.planner > .bs-left { flex-direction: column; gap: 8px; }
  .bs-left .bs-ltabs { grid-template-columns: 1fr 1fr; width: auto; align-self: stretch; }
  .bs-left .bs-lpanes { max-height: none; overflow-x: auto; overflow-y: hidden; align-self: stretch; padding-bottom: 4px; }
  .bs-left .bs-lpane { flex-wrap: nowrap; width: max-content; }
  .bs-left .bs-item { white-space: nowrap; }
  .bs-left .bs-item span { overflow-wrap: normal; }
  .bs-left .bs-lpane h3 { white-space: nowrap; }
}

/* Booth Layout Studio: the note shown while the 3D view is on Night */
.three-night { margin: 8px 4px 0; padding: 8px 12px; border-radius: 10px; background: #0f172a; color: #fde68a; font-size: 0.86rem; }
.three-night[hidden] { display: none; }

/* Three tabs on the left: Products, Lights, Decor */
.bs-ltabs { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.bs-ltabs button { flex-direction: column; gap: 3px; padding: 8px 2px 6px; font-size: 0.76rem; }
@media (max-width: 1399px) and (min-width: 901px) {
  .bs-left .bs-ltabs { grid-template-columns: 1fr; width: 104px; }
  .bs-left .bs-ltabs button { flex-direction: row; gap: 8px; padding: 6px 8px; justify-content: flex-start; }
}
@media (max-width: 900px) { .bs-left .bs-ltabs { grid-template-columns: repeat(3, 1fr); } }
/* Save layout lives at the foot of the right panel on a computer, so the bar under the plan does not need its own. */
@media (min-width: 901px) { .actionbar .act.save { display: none; } }

/* Booth Layout Studio: Render booth under the view compass, and Day / Night beside Fit view */
.gizmo-render { position: absolute; top: 100px; left: 14px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 78px; padding: 8px 4px 7px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font: inherit; font-size: 0.72rem; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35); }
.gizmo-render:hover { filter: brightness(1.1); }
.gizmo-render:focus-visible { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.gizmo-render .ui-icon { width: 22px; height: 22px; }
.three-tr { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.three-tr .fitbtn { position: static; white-space: nowrap; }
.daynight { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, 0.95); border-radius: 99px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.daynight button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; border-radius: 99px; padding: 6px 13px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.daynight button:hover { color: var(--ink); }
.daynight button.on[data-three-time="day"] { background: #fde68a; color: #7a4a00; }
.daynight button.on[data-three-time="night"] { background: #0f172a; color: #fde68a; }
.daynight button:focus-visible { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.daynight .ui-icon { margin: 0; }
@media (max-width: 900px) {
  .simbar ~ .three-tr { top: 62px; }
}
@media (max-width: 760px) {
  .gizmo-render { top: 72px; left: 8px; width: 58px; font-size: 0.62rem; padding: 6px 2px 5px; border-radius: 10px; }
  .three-tr { top: 8px; right: 8px; gap: 6px; }
  .daynight button { padding: 5px 9px; font-size: 0.82rem; }
}

/* Booth Layout Studio: the tablecloth bar that pops up over the plan when a table is selected */
.clothbar { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 16px); padding: 6px 6px 6px 8px; background: rgba(255, 255, 255, 0.97); border: 1px solid #c9dafc; border-radius: 16px; box-shadow: 0 8px 26px rgba(15, 27, 51, 0.18); overflow-x: auto; scrollbar-width: thin; }
.clothbar[hidden] { display: none; }
.clothbar, .gizmo-render, .daynight { -webkit-user-select: none; user-select: none; }
.canvas-area.is-3d .clothbar { top: 64px; left: 104px; transform: none; max-width: calc(100% - 118px); }
.three-wrap.is-simulating ~ .clothbar { display: none; }
.clothbar-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.clothbar-tiles { display: flex; gap: 5px; }
.clothbar-tile { display: grid; justify-items: center; gap: 1px; width: 60px; padding: 4px 2px 4px; border: 2px solid var(--line); border-radius: 12px; background: #f8fafd; color: var(--ink); font: inherit; font-size: 0.68rem; font-weight: 600; white-space: nowrap; cursor: pointer; flex: none; }
.clothbar-tile:hover { border-color: #9db7f5; }
.clothbar-tile.on { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.clothbar-tile svg { width: 40px; height: 30px; fill: var(--cloth, #9fb6e8); stroke: #5b6475; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.clothbar-sep { align-self: stretch; width: 1px; background: var(--line); flex: none; }
.clothbar-colors { display: flex; align-items: center; gap: 5px; }
.clothbar-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-right: 3px; }
.clothbar-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #b8c3d6; padding: 0; cursor: pointer; flex: none; }
.clothbar-dot:hover { transform: scale(1.12); }
.clothbar-dot.on { box-shadow: 0 0 0 2px var(--brand), 0 0 0 5px rgba(37, 99, 235, 0.18); }
.clothbar-pick { position: relative; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); display: grid; place-items: center; color: #fff; font-weight: 800; cursor: pointer; flex: none; margin: 0; text-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.clothbar-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.clothbar-pick:focus-within, .clothbar-dot:focus-visible, .clothbar-tile:focus-visible, .clothbar-close:focus-visible { outline: 3px solid #a9c4fb; outline-offset: 2px; }
.clothbar-close { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 8px; flex: none; }
.clothbar-close:hover { background: #eef2f8; color: var(--ink); }
@media (max-width: 760px) {
  .clothbar { display: none; } /* phones use the row of icons that slides up from the bottom instead */
}
.polefield input[type="range"] { width: 100%; }
.edgenote { margin: 6px 0 0; }

/* Booth Layout Studio: a tile for every canopy set-up, three across */
.bs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bs-tile { padding: 6px 3px 7px; font-size: 0.72rem; line-height: 1.2; }
.bs-tile .frame.ghost { stroke: #9aa3b2; stroke-dasharray: 5 4; }
.bs-tile[data-bs-tent="none"] .floor { fill: #f5f7fa; }

/* Booth Layout Studio: undo, redo and the rest as a small toolbar floating over the left of the plan.
   Drag "Tools" to move it. On a phone it stays where it was, as a grid under the plan. */
.act-grip { display: none; }
@media (min-width: 901px) {
  .canvas-area .actionbar, .canvas-area.is-3d .actionbar { position: absolute; left: 10px; top: 10px; right: auto; bottom: auto; transform: none; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 2px; width: 132px; max-width: none; margin: 0; padding: 0 6px 10px; border: 1px solid #c9dafc; border-radius: 16px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 26px rgba(15, 27, 51, 0.18); -webkit-user-select: none; user-select: none; }
  .canvas-area.is-3d .actionbar { top: 176px; }
  .actionbar.moving { box-shadow: 0 14px 34px rgba(15, 27, 51, 0.3); }
  .act-grip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 -6px 2px; padding: 7px 6px; border-radius: 16px 16px 0 0; background: #eef3fd; font-size: 0.74rem; font-weight: 700; color: #54617a; text-transform: uppercase; letter-spacing: 0.05em; cursor: grab; touch-action: none; }
  .actionbar.moving .act-grip { cursor: grabbing; }
  .act-grip:focus-visible { outline: 3px solid #a9c4fb; outline-offset: -2px; }
  .act-grip svg { width: 16px; height: 11px; fill: none; stroke: #7d8aa3; stroke-width: 2.6; stroke-linecap: round; }
  .actionbar .act { min-width: 0; padding: 0; gap: 1px; }
  .actionbar .act-icon, .actionbar .act.save .act-icon { width: 40px; height: 40px; margin: 0 0 1px; }
  .actionbar .act-icon .ui-icon { width: 19px; height: 19px; }
  .actionbar .act-name { font-size: 0.68rem; }
  .actionbar .act-key, .actionbar .act-sep { display: none; }
  .actionbar .act-wrap { justify-content: center; }
  .actionbar .alignmenu { left: calc(100% + 14px); right: auto; top: -60px; bottom: auto; transform: none; }
  .actionbar.flip .alignmenu { left: auto; right: calc(100% + 80px); }
}

/* Booth Layout Studio: premade layouts, a second small toolbar floating under the tools. Drag its top bar to move it. */
.premade { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; }
.three-wrap.is-simulating ~ .premade { display: none; }
.premade-head { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; background: #eef3fd; border-radius: 15px 15px 0 0; }
.premade.shut .premade-head { border-radius: 15px; }
.premade-head strong { flex: 1; font-size: 0.74rem; font-weight: 700; color: #54617a; text-transform: uppercase; letter-spacing: 0.05em; }
.premade-grip { display: none; width: 16px; height: 11px; flex: none; fill: none; stroke: #7d8aa3; stroke-width: 2.6; stroke-linecap: round; }
.premade-fold { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.premade-fold:hover { background: #dce6fa; color: var(--ink); }
.premade-head:focus-visible, .premade-fold:focus-visible { outline: 3px solid #a9c4fb; outline-offset: -2px; }
.premade-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.premade.shut .premade-fold svg { transform: rotate(-90deg); }
.premade-body { display: flex; flex-direction: column; gap: 8px; padding: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.premade.shut .premade-body { display: none; }
.premade-note { margin: 0; font-size: 0.68rem; line-height: 1.3; }
.premade .arrangegrid { margin: 0; gap: 6px; }
.premade-clear { font-size: 0.72rem; padding: 6px 4px; white-space: normal; line-height: 1.2; }
@media (min-width: 901px) {
  .premade { position: absolute; left: 10px; top: 322px; z-index: 5; width: 132px; margin: 0; border-color: #c9dafc; background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 26px rgba(15, 27, 51, 0.18); }
  .canvas-area.is-3d .premade { top: 488px; }
  .premade.moving { box-shadow: 0 14px 34px rgba(15, 27, 51, 0.3); }
  .premade-head { cursor: grab; touch-action: none; }
  .premade.moving .premade-head { cursor: grabbing; }
  .premade-grip { display: block; }
  /* Pictures only, two across; the name of each shows when the pointer rests on it. */
  .premade .arrangegrid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .premade .arrangebtn { padding: 4px; border-radius: 9px; }
  .premade .arrangebtn svg { max-width: none; margin: 0; }
  .premade .arrangebtn span { display: none; }
  .premade-note { display: none; } /* said in the top bar's tooltip instead, to leave room for the pictures */
}
@media (max-width: 900px) {
  .premade .arrangegrid { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .premade .arrangebtn { flex: 0 0 92px; }
}
@media (min-width: 901px) {
  /* The tablecloth bar starts clear of the tools at the top left of the 2D plan. */
  .canvas-area:not(.is-3d) .clothbar { left: 152px; transform: none; max-width: calc(100% - 162px); }
}

/* Password & security page */
.badge { display: inline-block; background: #eef2f8; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; }
.badge.ok { background: var(--ok-100); color: var(--ok-ink); border: 1px solid var(--ok-line); border-radius: 99px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; }
.badge.warn { background: var(--amber-100); color: #7a4d06; border: 1px solid #f0d79a; border-radius: 99px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; }
pre.codes { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 18px; font-size: 1.05rem; line-height: 1.7; letter-spacing: 0.06em; columns: 2; margin: 10px 0 12px; white-space: pre-wrap; }
ol.steps { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 8px; }
code.key { display: inline-block; background: #eef2f8; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 1rem; letter-spacing: 0.08em; -webkit-user-select: all; user-select: all; }
.cf-turnstile { min-height: 65px; }

/* ---------- View your booth: the 3D walk to a vendor's booth ---------- */
.btn.viewbooth { display: inline-flex; align-items: center; gap: 7px; background: #dc2626; border-color: #dc2626; white-space: nowrap; }
.btn.viewbooth:hover { background: #ef4444; }
.btn.viewbooth svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.viewbooth.sm svg { width: 15px; height: 15px; }
.boothnote-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seevendor { display: inline-block; margin-top: 4px; font-size: 0.78rem; white-space: nowrap; }
.bt-head { margin-bottom: 12px; }
.bt { position: relative; height: min(74vh, 780px); min-height: 440px; border-radius: var(--radius); overflow: hidden; background: #e6ebf2; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bt-stage { position: absolute; inset: 0; }
.bt-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.bt-stage canvas:active { cursor: grabbing; }
.bt-flat { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: #f2f5fb; }
.bt-flat-pic { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.bt-flat-pic svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; }
.bt-flat-key { margin: 0; font-size: 0.95rem; }
.bt-flat-key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #ef4444; border: 2px solid #8f2929; vertical-align: -2px; margin-right: 4px; }
.bt.is-flat .bt-flat { padding-bottom: 250px; }
.bt-here { position: absolute; z-index: 3; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; padding: 7px 14px 8px; border-radius: 12px; background: #dc2626; color: #fff; text-align: center; line-height: 1.15; box-shadow: 0 6px 18px rgba(127, 29, 29, 0.35); white-space: nowrap; animation: bt-pop 0.35s ease-out; }
.bt-here::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #dc2626; transform: rotate(45deg); border-radius: 2px; }
.bt-here b { font-size: 1.05rem; letter-spacing: 0.01em; }
.bt-here span { font-size: 0.82rem; font-weight: 600; opacity: 0.95; }
.bt-step { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 99px; background: rgba(10, 23, 51, 0.82); color: #fff; font-weight: 600; font-size: 0.95rem; white-space: nowrap; pointer-events: none; }
.bt-tools { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bt-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); color: var(--ink); padding: 9px 14px; border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 27, 51, 0.12); }
.bt-tool:hover { background: #fff; }
.bt-tool.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.bt-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-hint { position: absolute; z-index: 3; top: 14px; left: 14px; margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.86); color: var(--muted); font-size: 0.82rem; pointer-events: none; }
.bt-card { position: absolute; z-index: 5; left: 16px; bottom: 16px; width: min(360px, calc(100% - 32px)); padding: 20px 20px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(15, 27, 51, 0.24); animation: bt-pop 0.4s ease-out; }
.bt-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.bt-card p { margin: 0 0 10px; }
.bt-card .bt-what { font-size: 1.05rem; }
.bt-pin { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: #fdecee; color: #dc2626; margin-bottom: 8px; }
.bt-pin svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bt-x:hover { background: var(--bg); color: var(--ink); }
.bt-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bt-acts .btn { text-align: center; flex: 1 1 auto; }
.bt-acts .btn.big { flex: 1 1 100%; padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
@keyframes bt-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.bt-here { animation-name: bt-here-pop; }
@keyframes bt-here-pop { from { opacity: 0; transform: translate(-50%, -80%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -100%); } }
@media (max-width: 700px) {
  .bt { height: calc(100vh - 190px); height: calc(100svh - 190px); min-height: 460px; border-radius: 12px; }
  .bt-card { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px 14px 12px; }
  .bt-card h2 { font-size: 1.12rem; }
  .bt-card p { margin-bottom: 6px; font-size: 0.95rem; }
  .bt-pin { display: none; }
  .bt-acts { margin-top: 10px; }
  .bt-acts .btn.big { padding: 12px 14px; font-size: 1.05rem; }
  .bt-hint { display: none; }
  .bt-step { bottom: 12px; font-size: 0.88rem; }
  .bt-tools { top: 8px; right: 8px; }
  .bt.is-flat .bt-flat { padding-bottom: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-card, .bt-here { animation: none; }
}

/* Site management (the site owner's pages under /admin) */
.sm-block { margin-bottom: 16px; }
.sm-two { margin-bottom: 16px; }
.sm-note { margin: 12px 0 0; }
.sm-empty { margin: 18px 0 4px; }
.sm-nowrap { white-space: nowrap; }
.sm-break { overflow-wrap: anywhere; }
.sm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.sm-tiles .stat { color: var(--ink); display: block; font-weight: 600; }
.sm-tiles a.stat:hover { text-decoration: none; border-color: var(--brand); }
.sm-tiles .stat b { font-size: 2rem; margin-bottom: 2px; }
.sm-tiles .stat small { display: block; margin-top: 6px; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.sm-waiting { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sm-waiting.has { border-color: #f0d79a; background: var(--amber-100); }
.sm-waiting h2 { margin: 0 0 2px; }
.sm-waiting p { margin: 0; }
.sm-waiting-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-num { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: rgba(15, 27, 51, 0.12); font-size: 0.82rem; text-align: center; }
.btn:not(.ghost) .sm-num { background: rgba(255, 255, 255, 0.28); }
.sm-facts { margin: 0; }
.sm-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.sm-facts > div:first-child { border-top: 0; padding-top: 0; }
.sm-facts dt { color: var(--muted); flex: none; max-width: 55%; }
.sm-facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }
.sm-facts dd .vx-tag { margin-left: 4px; }
.sm-table td { vertical-align: top; }
.sm-table code { font-size: 0.78rem; background: #eef2f8; border-radius: 5px; padding: 1px 5px; }
.sm-num-col { text-align: right; white-space: nowrap; }
.sm-go { text-align: right; white-space: nowrap; }
.sm-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
td .sm-tags { display: flex; margin-top: 4px; }
.sm-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sm-search input[type=search] { flex: 1 1 260px; width: auto; }
.sm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-chips a { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: #3d4a63; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.sm-chips a:hover { border-color: var(--brand); text-decoration: none; }
.sm-chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.sm-filters-go { display: flex; gap: 8px; }
.sm-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sm-pager-links { display: inline-flex; align-items: center; gap: 10px; }
.sm-pager [aria-disabled=true] { opacity: 0.4; cursor: default; pointer-events: none; }
.sm-owners { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sm-owners li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sm-cmd { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px 16px; font-size: 0.86rem; line-height: 1.7; overflow-x: auto; margin: 8px 0 0; }
.sm-cmd span { color: #8fa3c7; }
.sm-alert { background: var(--red-100); border: 1px solid #f5c4ca; color: #8f1d2c; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.sm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 14px; }
.sm-actions h3 { margin: 0 0 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sm-line, .sm-act.wide > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sm-line > div, .sm-act.wide > summary > span:first-child { min-width: 0; }
.sm-act.wide > summary > span:first-child > span { display: block; }
.sm-line .btn, .sm-act.wide > summary .btn { flex: none; }
.sm-act > summary { list-style: none; cursor: pointer; }
.sm-act > summary::-webkit-details-marker { display: none; }
.sm-actform { display: grid; gap: 6px; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; text-align: left; white-space: normal; }
.sm-actform p, .sm-actform ul { margin: 0 0 6px; }
.sm-actform label { margin: 6px 0 0; }
.sm-actform .btn { justify-self: start; margin-top: 10px; }
.sm-list { padding-left: 18px; display: grid; gap: 4px; }
td .sm-act[open] { min-width: 280px; }
td .sm-act .sm-actform { margin-top: 8px; }
.sm-catadd { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sm-catadd-name { flex: 1 1 240px; }
.sm-colour { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sm-catadd input[type=color], .sm-cat-edit input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid #cfd9d4; border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.sm-swatches { display: inline-flex; gap: 5px; flex-wrap: wrap; max-width: 230px; }
.sm-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sm-swatch:hover, .sm-swatch:focus-visible { box-shadow: 0 0 0 2px var(--brand); outline: 0; }
.sm-cats { list-style: none; margin: 10px 0 0; padding: 0; }
.sm-cat { display: grid; grid-template-columns: auto minmax(240px, 1.3fr) minmax(150px, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sm-cat:target { background: var(--blue-100); box-shadow: 0 0 0 8px var(--blue-100); border-radius: 6px; }
.sm-cat-order { display: flex; gap: 4px; }
.sm-arrow { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--brand); cursor: pointer; font-size: 0.8rem; }
.sm-arrow:hover:not(:disabled) { border-color: var(--brand); background: var(--green-100); }
.sm-arrow:disabled { opacity: 0.3; cursor: default; }
.sm-cat-edit { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sm-cat-edit input[type=text] { min-width: 0; }
.sm-cat-remove { text-align: right; }
.sm-cat-remove[open] { grid-column: 1 / -1; }
.sm-cat-remove[open] > summary { margin-bottom: 4px; }
@media (max-width: 900px) {
  .sm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-two, .sm-actions { grid-template-columns: minmax(0, 1fr); }
  .sm-cat { grid-template-columns: auto minmax(0, 1fr); }
  .sm-cat-edit { grid-column: 2; }
  .sm-cat-use { grid-column: 1 / -1; }
  .sm-cat-remove { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 700px) {
  .sm-tiles { gap: 10px; }
  .sm-tiles .stat b { font-size: 1.6rem; }
  .sm-facts dt { max-width: 60%; }
  /* Wide lists become one card per row, each value with its heading beside it. */
  .sm-stack thead, .sm-log thead { display: none; }
  .sm-stack tr, .sm-log tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .sm-stack tbody tr:first-child, .sm-log tbody tr:first-child { border-top: 0; }
  .sm-stack td, .sm-log td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; white-space: normal; }
  .sm-stack td::before, .sm-log td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding-top: 2px; }
  .sm-stack td > *, .sm-log td > * { min-width: 0; }
  .sm-stack td:first-child, .sm-log td:nth-child(2) { display: block; text-align: left; font-size: 1.02rem; }
  .sm-stack td:first-child::before, .sm-log td:nth-child(2)::before { content: none; }
  .sm-stack td .sm-tags { justify-content: flex-end; }
  .sm-stack td.sm-go { display: block; text-align: left; padding-top: 8px; }
  .sm-stack td.sm-go::before { content: none; }
  .sm-stack td.sm-go:empty { display: none; }
  .sm-line, .sm-act.wide > summary { flex-wrap: wrap; }
  .sm-search .btn { flex: 1 1 auto; text-align: center; }
}

/* Vendor profile, application questions and a show's accepted categories */
.vp-private { display: flex; gap: 12px; align-items: flex-start; background: var(--blue-100); border: 1px solid #c9dafc; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; max-width: 820px; }
.vp-private svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vp-private p { margin: 0; font-size: 0.92rem; }
.vp-form, .qb { max-width: 820px; display: grid; gap: 16px; }
.vp-form .card h2, .qb .card h2 { font-size: 1.1rem; margin: 0; }
.vp-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.vp-account dt { font-size: 0.8rem; color: var(--muted); }
.vp-account dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vp-also { border: 0; padding: 0; margin: 0; min-width: 0; }
.vp-also legend { font-weight: 600; font-size: 0.88rem; padding: 0; margin-bottom: 8px; }
.vp-also .checkgrid { gap: 8px 12px; }
.vp-bad, .field .hint.vp-bad { color: #b42318; font-weight: 600; }
.vp-save { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 -4px 18px rgba(15, 27, 51, 0.07); }
.vp-save .btn { margin-left: auto; }
.vp-tag { display: inline-block; vertical-align: middle; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; border-radius: 999px; padding: 1px 8px; background: #dcf5e6; color: #166534; white-space: nowrap; }

/* The organizer's own questions on the apply form, and the answers when read back */
.qa { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.qa h3 { margin: 0 0 6px; font-size: 1rem; }
.qa-from { font-size: 0.86rem; color: var(--muted); margin: 0 0 14px; }
.qa-req { color: #dc2f47; font-style: normal; font-weight: 700; }
.qa-set { border: 0; padding: 0; min-width: 0; }
.qa-set legend { font-weight: 600; font-size: 0.88rem; padding: 0; margin-bottom: 6px; }
.qa-set .check { padding: 3px 0; align-items: flex-start; }
.qa-set .check input { margin-top: 3px; }
.qa-remember { margin: 4px 0 16px; padding: 10px 12px; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; align-items: flex-start; }
.qa-remember input { margin-top: 3px; }
.qa-list { margin: 0; display: grid; gap: 0; }
.qa-list > div { padding: 10px 0; border-top: 1px solid var(--line); }
.qa-list > div:first-child { border-top: 0; padding-top: 0; }
.qa-list dt { font-size: 0.84rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.qa-list dd { margin: 0; overflow-wrap: anywhere; }
.qa-list ul { margin: 0; padding-left: 18px; }
.lookfor { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; }
.lookfor span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.86rem; background: #fff; }
.ap-see { display: inline-block; font-weight: 600; margin-bottom: 4px; white-space: nowrap; }

/* Which categories a show accepts */
.cat-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); }
.cat-row:first-child { border-top: 0; }
.cat-row .check { flex: 1; min-width: 0; font-weight: 600; padding: 3px 0; }
.cat-have { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.cat-row.over .cat-have { color: #a05a00; font-weight: 700; }
.cat-limit { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.cat-limit input[type=number] { width: 68px; padding: 5px 8px; }
.cat-all { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cat-all button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }
.cat-all button:hover { text-decoration: underline; }

/* The question builder */
.qb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qb-q { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; }
.qb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qb-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--brand-dark); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.qb-top input { font-weight: 600; font-size: 1rem; }
.qb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.qb-grid .field { margin-bottom: 10px; }
.qb-grid .qb-wide { grid-column: 1 / -1; }
.qb-grid .field[hidden] { display: none; }
.qb-grid textarea { min-height: 0; }
.qb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.qb-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.qb-tools .btn:disabled, .qb-add .btn:disabled { opacity: 0.4; cursor: default; }
.qb-none { margin: 0 0 4px; padding: 14px; border: 1px dashed #c8d3e6; border-radius: 12px; text-align: center; }
.qb-none[hidden] { display: none; }
.qb-add { margin: 14px 0 0; }
.qb-common, .qb-copy { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.qb-common h3, .qb-copy h3 { margin: 0 0 4px; font-size: 1rem; }
.qb-common p { margin: 0 0 10px; }
.qb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-chip { border: 1px solid #b9cdf8; background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.qb-chip:hover { background: var(--blue-100); }
.qb-chip.used { background: #eef1f6; border-color: var(--line); color: var(--muted); cursor: default; text-decoration: line-through; }
.qb-chip:disabled:not(.used) { opacity: 0.45; cursor: default; }
.qb-copy select { max-width: 100%; }
.st-nav a.st-form { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-left: 3px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 12px 12px 14px; margin-top: 10px; color: var(--ink); }
.st-nav a.st-form:hover { background: #f6f8fc; text-decoration: none; }
.st-nav a.st-form > .oz-ic:first-child { width: 24px; height: 24px; }
.st-nav a.st-form span { flex: 1; min-width: 0; }
.st-nav a.st-form b, .st-nav a.st-form small { display: block; }
.st-nav a.st-form small { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 640px) {
  .vp-account, .qb-grid { grid-template-columns: 1fr; }
  .cat-row { flex-wrap: wrap; gap: 2px 10px; }
  .cat-row .check { flex: 1 1 100%; }
  .cat-limit { margin-left: auto; }
  .qb-foot { align-items: flex-start; flex-direction: column; }
  .qb-tools .btn { padding: 8px 12px; }
  .vp-save .btn { width: 100%; }
}

/* Venue Layout Studio: kinds of area (hallway, gym, classroom...) and ready-made plans */
.vs-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.vs-area { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 0.76rem; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.vs-area .vs-ic { width: 34px; height: 34px; padding: 5px; border-radius: 8px; stroke: #33415c; box-shadow: inset 0 0 0 1px rgba(15, 27, 51, 0.14); }
.vs-area:hover { border-color: var(--brand); background: var(--green-100); }
.vs-area.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.vs-toolopts input[type="text"] { margin-top: 3px; width: 100%; }
.vs-roomfloor { pointer-events: none; stroke: none !important; }
.vs-court { fill: none; stroke: rgba(30, 64, 175, 0.5); stroke-width: 2; pointer-events: none; }
.vs-starter .btn { margin-top: 4px; }
.vs-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.vs-template { display: block; cursor: pointer; }
.vs-template input { position: absolute; opacity: 0; }
.vs-template > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px; border: 2px solid var(--line, #e2e8f2); border-radius: 12px; background: #fff; }
.vs-template-pic { display: block; height: 110px; border-radius: 8px; background: #f6f8fc; padding: 4px; }
.vs-template-pic svg { display: block; width: 100%; height: 100%; }
.vs-template strong { font-size: 0.9rem; line-height: 1.25; }
.vs-template small { color: var(--muted); line-height: 1.35; font-size: 0.8rem; }
.vs-template input:checked + span { border-color: var(--brand); background: #eef4ff; }
.vs-template input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
.vl-templates { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.vl-templates legend { font-weight: 700; padding: 0; margin-bottom: 2px; }
.vl-templates[hidden] { display: none; }
@media (max-width: 900px) { .vs-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vs-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-template-pic { height: 84px; } }

/* Booth Layout Studio: the selected item's settings wrap onto more lines instead of running off the side,
   so "Choose logo", "Choose design" and "Use a picture" are always in view. */
@media (min-width: 901px) {
  .itempanel { align-items: flex-start; }
  .itempanel [data-panel] { flex-wrap: wrap; overflow-x: visible; row-gap: 12px; align-items: flex-end; }
  .itempanel [data-cloth-group], .itempanel [data-hang-group], .itempanel [data-photo-group], .itempanel .form-grid, .itempanel [data-logo-options], .itempanel [data-cloth-art-options] { flex-wrap: wrap; row-gap: 12px; }
  .itempanel [data-panel] > * { max-width: 100%; }
  .itempanel .itempanel-head { align-self: flex-end; }
}

/* Booth Layout Studio plan: a tick on the side an item faces, and a tote stored under a table. */
.lay-face { fill: rgba(255, 255, 255, .85); stroke: rgba(15, 23, 42, .45); stroke-width: .3; pointer-events: none; }
.lay-item.under .lay-shape { fill-opacity: .28; stroke: #1f2937; stroke-width: .5; stroke-dasharray: 2 1.4; }
.lay-item.under .lay-text { font-size: 2.6px; opacity: .8; }

/* The Publish button at the top of an organizer's event page. */
.pubform { margin: 0; display: inline-flex; }
.btn.publish { background: #15803d; border-color: #15803d; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn.publish:hover { background: #166534; border-color: #166534; }
.btn.publish svg { width: 16px; height: 16px; }

/* "Vendor or Organizer?", asked once when a member first uses Vendlii. */
.startside { border: 0; border-radius: 18px; padding: 28px; width: min(680px, 94vw); box-shadow: 0 24px 70px rgba(8, 20, 48, 0.35); color: var(--ink); }
.startside::backdrop { background: rgba(10, 22, 52, 0.6); }
.startside h2 { margin: 0 0 6px; font-size: 1.45rem; }
.startside > form > .muted { margin: 0 0 18px; }
.startside-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.startside-pick button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border: 2px solid #d5deee; border-radius: 14px; background: #f7f9fe; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.startside-pick button:hover, .startside-pick button:focus-visible { border-color: #2563eb; background: #eef4ff; transform: translateY(-2px); outline: none; }
.startside-pick svg { width: 38px; height: 38px; fill: none; stroke: #2563eb; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.startside-pick b { font-size: 1.25rem; }
.startside-pick span { font-weight: 600; }
.startside-pick small { color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .startside { padding: 20px; } .startside-pick { grid-template-columns: 1fr; } }

/* The flyer on an event's page. */
.evflyer-pic { display: block; text-align: center; background: #f3f6fb; border-radius: 12px; padding: 10px; }
.evflyer-pic img { max-width: 100%; max-height: 720px; border-radius: 8px; box-shadow: 0 6px 22px rgba(15, 23, 42, 0.14); }
.evflyer-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e9f3; }
.evflyer-form .inline { gap: 10px; flex-wrap: wrap; align-items: center; }
.evflyer-form input[type=file] { flex: 1 1 240px; min-width: 0; }
.evflyer-form .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.evflyer-form .error { color: var(--red); font-weight: 600; margin-top: 6px; }

/* "Contact the organizer" on an event's page. */
.evcontact-ways { display: flex; flex-wrap: wrap; gap: 10px; }
.evcontact-ways .btn { display: inline-flex; align-items: center; gap: 8px; }
.evcontact-ways svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evcontact-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e9f3; }
.evcontact-form textarea { min-height: 120px; }
.evcontact-form .hint { font-size: 0.82rem; color: var(--muted); margin: 6px 0 12px; }
.evcontact-form .error { color: var(--red); font-weight: 600; margin-top: 6px; }
.contactset { padding: 14px 16px 2px; border: 1px solid #dfe6f2; border-radius: 12px; background: #f8fafe; }

/* The Vendlii logo. */
a.brand { text-decoration: none; }
.brand img { display: block; height: auto; }
.sidebar .brand { padding: 6px 12px 16px; }
.sidebar .brand img { width: 148px; }
.guest .brand { padding: 4px 0 16px; }
.guest .brand img { width: min(250px, 78%); margin: 0 auto; }
.startside-logo { display: block; width: 170px; height: auto; margin: 0 0 14px; }
.orderpage-foot img { vertical-align: -4px; margin-right: 6px; }
@media (max-width: 900px) { .sidebar .brand { padding: 4px 8px; } .sidebar .brand img { width: 116px; } }
