/* Super Pumped design tokens: the one place for colours, type, spacing, corners and shadows.
   The workspace, the Super Pumped team pages, game analytics and the video editor page all read
   these. Fonts are the bundled ones; nothing is loaded from another site. */
@font-face {
  font-family: "Young Serif";
  src: url("/brand/young-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/platform/art/montserrat.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette */
  --sp-plum: #50102f;
  --sp-ink: #341427;
  --sp-cream: #fff5e6;
  --sp-orange: #ff662c;

  /* Colour roles (dark: the workspace look) */
  --sp-bg: #241522;
  --sp-bg-deep: #291824;
  --sp-surface: #342230;
  --sp-raised: #402a39;
  --sp-hover: #4a3142;
  --sp-selected: #563044;
  --sp-selected-line: #714354;
  --sp-field: #291b26;
  --sp-line: #594052;
  --sp-line-subtle: #503849;
  --sp-line-strong: #795969;
  --sp-line-hover: #cd958c;
  --sp-text: #fff5e8;
  --sp-muted: #d6c1ca;
  --sp-placeholder: #bc9eae;
  --sp-accent: var(--sp-orange);
  --sp-accent-hover: #ff8b5c;
  --sp-on-accent: var(--sp-ink);
  --sp-link: #ffb78d;
  --sp-focus: #f77e45;
  --sp-scrim: #170b15b3;
  --sp-good: #b8e6c1;
  --sp-good-bg: #23352a;
  --sp-good-line: #35503d;
  --sp-wait: #f0d08f;
  --sp-wait-bg: #3a2f1c;
  --sp-wait-line: #574629;
  --sp-stop: #ffb3b0;
  --sp-stop-bg: #44202a;
  --sp-stop-line: #66303b;
  --sp-skeleton: #4a3142;
  --sp-skeleton-shine: #5a3c50;

  /* Type */
  --sp-font: Montserrat, Arial, sans-serif;
  --sp-display: "Young Serif", Georgia, serif;
  --sp-type-xs: 12px;
  --sp-type-sm: 13px;
  --sp-type-md: 14px;
  --sp-type-lg: 16px;
  --sp-type-xl: 20px;
  --sp-type-2xl: clamp(20px, 1.7vw, 27px);
  --sp-type-3xl: clamp(30px, 3.3vw, 46px);
  --sp-leading: 1.5;

  /* Spacing */
  --sp-space-1: 4px;
  --sp-space-2: 8px;
  --sp-space-3: 12px;
  --sp-space-4: 16px;
  --sp-space-5: 20px;
  --sp-space-6: 24px;
  --sp-space-8: 32px;
  --sp-space-10: 40px;

  /* Corners */
  --sp-radius-sm: 8px;
  --sp-radius-md: 10px;
  --sp-radius-lg: 15px;
  --sp-radius-xl: 19px;
  --sp-radius-pill: 999px;

  /* Shadows */
  --sp-shadow-sm: 0 2px 10px #12081055;
  --sp-shadow-md: 0 18px 40px #12081099;
  --sp-shadow-lg: 0 25px 100px #000000a6;
  --sp-shadow-pop: 0 2px 0 var(--sp-plum);

  /* Controls */
  --sp-control: 40px;
  --sp-control-sm: 30px;
  --sp-touch: 44px;

  /* Older names, kept so existing rules keep working. */
  --sp-dark: var(--sp-bg);
  --sp-panel: var(--sp-surface);
  --sp-copy: var(--sp-text);
  --bg: var(--sp-bg);
  --sub: var(--sp-surface);
  --raised: var(--sp-raised);
  --border: var(--sp-line);
  --text: var(--sp-text);
  --muted: var(--sp-muted);
  --blue: var(--sp-link);
  --surface: var(--sp-surface);
  --surface-raised: var(--sp-raised);
  --field-bg: var(--sp-field);
  --subtle-line: var(--sp-line-subtle);
}

/* Every Super Pumped page (body[data-sp]) uses the brand background, and its headings use the
   display face. */
body[data-sp] { background-color: var(--sp-bg); color: var(--sp-text); }
body[data-sp] :is(h1, h2) { font-family: var(--sp-display); font-weight: 400; letter-spacing: -.04em; }
.sp-logo { display: block; object-fit: contain; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared components. They sit in cascade layers so that a page's own stylesheet can adjust
   layout without fighting them, whatever the selector. Each class name below is one component
   under the names the workspace (.button), the creator tools (.jt-*) and the team pages use. */
@layer sp-base, sp-components;

@layer sp-base {
  :where(body[data-sp]) :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--sp-focus);
    outline-offset: 3px;
  }
  :where(body[data-sp]) :is(input:not([type="checkbox"], [type="radio"], [type="color"], [type="range"], [type="file"], [type="hidden"]), select, textarea) {
    min-height: var(--sp-control);
    padding: 9px 12px;
    border: 1px solid var(--sp-line-strong);
    border-radius: var(--sp-radius-md);
    background: var(--sp-field);
    color: var(--sp-text);
    font: 500 var(--sp-type-md) / 1.4 var(--sp-font);
  }
  :where(body[data-sp]) :is(input, textarea)::placeholder { color: var(--sp-placeholder); }
  :where(body[data-sp]) :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--sp-accent); }

  :where(body[data-sp]) table { width: 100%; border-collapse: collapse; font-size: var(--sp-type-sm); }
  :where(body[data-sp]) :is(td, th) {
    padding: 11px 9px;
    border-bottom: 1px solid var(--sp-line-subtle);
    text-align: left;
    vertical-align: middle;
  }
  :where(body[data-sp]) th { color: var(--sp-muted); font-size: var(--sp-type-xs); font-weight: 600; white-space: nowrap; }
  :where(body[data-sp]) td { color: var(--sp-text); overflow-wrap: anywhere; }
  :where(body[data-sp]) :is(td, th):first-child { padding-left: 0; }
  :where(body[data-sp]) :is(td, th):last-child { padding-right: 0; }
  :where(body[data-sp]) tr:last-child > td { border-bottom: 0; }

  @media (max-width: 700px) {
    /* 16px keeps phones from zooming into a field when it is tapped. */
    :where(body[data-sp]) :is(input:not([type="checkbox"], [type="radio"]), textarea, select) { font-size: 16px; }
  }
}

@layer sp-components {
  /* Buttons: .button (workspace), .btn (team pages), .jt-button (creator tools). */
  :where(body[data-sp]) :is(.button, .btn, .jt-button, .jt-danger, .icon-btn, .jt-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-space-2);
    min-height: var(--sp-control);
    padding: 8px 14px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-md);
    background: var(--sp-raised);
    color: var(--sp-text);
    font: 600 var(--sp-type-sm) / 1.3 var(--sp-font);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  :where(body[data-sp]) :is(.button, .btn, .jt-button, .icon-btn, .jt-icon):hover:not(:disabled) {
    background: var(--sp-hover);
    border-color: var(--sp-line-hover);
  }
  :where(body[data-sp]) :is(.button.primary, .btn.primary, .jt-button.jt-primary) {
    background: var(--sp-accent);
    border-color: var(--sp-accent);
    color: var(--sp-on-accent);
  }
  :where(body[data-sp]) :is(.button.primary, .btn.primary, .jt-button.jt-primary):hover:not(:disabled) {
    background: var(--sp-accent-hover);
    border-color: var(--sp-accent-hover);
  }
  :where(body[data-sp]) :is(.jt-danger, .button.danger) { background: transparent; border-color: var(--sp-stop-line); color: var(--sp-stop); }
  :where(body[data-sp]) :is(.jt-danger, .button.danger):hover:not(:disabled) { background: var(--sp-stop-bg); }
  :where(body[data-sp]) :is(.icon-btn, .jt-icon) {
    width: var(--sp-control);
    padding: 0;
    border-color: transparent;
    background: transparent;
    font-size: 20px;
    line-height: 1;
  }
  :where(body[data-sp]) :is(.button, .btn, .jt-button, .jt-danger, .icon-btn, .jt-icon):disabled { opacity: .55; cursor: wait; }
  :where(body[data-sp]) :is(.button, .btn, .jt-button) .ui-icon { width: 15px; height: 15px; }
  /* Smaller buttons inside table rows and campaign cards. */
  :where(body[data-sp]) :is(td, .discover-body) :is(.button, .btn) { min-height: 32px; padding: 6px 11px; font-size: var(--sp-type-xs); }

  /* Fields: a label, the control, and an optional help line. */
  :where(body[data-sp]) textarea { min-height: 84px; resize: vertical; }
  :where(body[data-sp]) :is(.field, .jt-field) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: var(--sp-text);
    font-size: var(--sp-type-sm);
    font-weight: 600;
  }
  :where(body[data-sp]) :is(.field, .jt-field) small { color: var(--sp-muted); font-size: var(--sp-type-xs); font-weight: 450; }
  :where(body[data-sp]) .field i { color: var(--sp-link); font-style: normal; }
  :where(body[data-sp]) .check-field { display: flex; align-items: center; gap: 9px; font-size: var(--sp-type-sm); font-weight: 530; }
  :where(body[data-sp]) .check-field input { width: 18px; height: 18px; flex: none; }
  :where(body[data-sp]) :is(.form-error, .jt-error) { color: var(--sp-stop); }

  /* Cards and panels. */
  :where(body[data-sp]) :is(.panel, .card, .jt-panel, .stat) {
    min-width: 0;
    border: 1px solid var(--sp-line-subtle);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-surface);
  }
  :where(body[data-sp]) :is(.panel, .card) { padding: clamp(15px, 2vw, 22px); }

  /* Stat tiles: a label and a number. */
  :where(body[data-sp]) .stat { padding: 18px 20px; }
  :where(body[data-sp]) .stat :is(small, strong) { display: block; }
  :where(body[data-sp]) .stat small { color: var(--sp-muted); font-size: var(--sp-type-sm); }
  :where(body[data-sp]) .stat strong {
    margin-top: 4px;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 620;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
  }

  /* Tabs: the workspace's section tabs, the team pages' queues and the publisher lists. */
  :where(body[data-sp]) :is(.section-tabs, .tabs, .publisher-tabs) {
    display: flex;
    gap: 4px 18px;
    border-bottom: 1px solid var(--sp-line-subtle);
  }
  :where(body[data-sp]) :is(.section-tabs, .tabs, .publisher-tabs) a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0 10px;
    border-bottom: 2px solid transparent;
    color: var(--sp-muted);
    font-weight: 600;
    text-decoration: none;
  }
  :where(body[data-sp]) :is(.section-tabs, .tabs, .publisher-tabs) a:hover { color: var(--sp-text); }
  :where(body[data-sp]) :is(.section-tabs, .tabs, .publisher-tabs) a:is(.current, .active, [aria-current]) {
    color: var(--sp-text);
    border-bottom-color: var(--sp-accent);
  }

  /* Toggle groups: list or grid, calendar views. */
  :where(body[data-sp]) :is(.view-toggle, .jt-segments) {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-md);
    background: var(--sp-field);
  }
  :where(body[data-sp]) :is(.view-toggle, .jt-segments) button {
    min-width: 34px;
    min-height: 32px;
    padding: 4px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sp-muted);
    font: 600 var(--sp-type-xs) / 1.3 var(--sp-font);
  }
  :where(body[data-sp]) :is(.view-toggle, .jt-segments) button:hover { color: var(--sp-text); }
  :where(body[data-sp]) :is(.view-toggle, .jt-segments) button[aria-pressed="true"] { background: var(--sp-selected); color: var(--sp-text); }

  /* Status labels and tags. A status is coloured by what it means: done, waiting or stopped. */
  :where(body[data-sp]) :is(.pill, .tag, .jt-pill) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-raised);
    color: var(--sp-text);
    font: 600 var(--sp-type-xs) / 1.2 var(--sp-font);
    letter-spacing: 0;
    white-space: nowrap;
  }
  :where(body[data-sp]) .tag { color: var(--sp-muted); }
  :where(body[data-sp]) :is(.pill, .tag, .jt-pill) { justify-self: start; max-width: 100%; }
  /* On phones a long status label wraps instead of pushing its card past the screen edge. */
  @media (max-width: 700px) {
    :where(body[data-sp]) :is(.pill, .tag, .jt-pill) { white-space: normal; }
  }
  :where(body[data-sp]) :is(.pill, .jt-pill):is(.approved, .active, .good) { background: var(--sp-good-bg); border-color: var(--sp-good-line); color: var(--sp-good); }
  :where(body[data-sp]) :is(.pill, .jt-pill):is(.pending, .waiting) { background: var(--sp-wait-bg); border-color: var(--sp-wait-line); color: var(--sp-wait); }
  :where(body[data-sp]) :is(.pill, .jt-pill):is(.declined, .stopped) { background: var(--sp-stop-bg); border-color: var(--sp-stop-line); color: var(--sp-stop); }

  /* Empty states: what the page is for, and the one next action. */
  :where(body[data-sp]) :is(.empty, .jt-empty) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 150px;
    padding: 28px 20px;
    border: 1px dashed var(--sp-line);
    border-radius: var(--sp-radius-lg);
    text-align: center;
  }
  :where(body[data-sp]) :is(.empty h3, .jt-empty strong) { margin: 0; color: var(--sp-text); font-size: var(--sp-type-lg); font-weight: 650; }
  :where(body[data-sp]) :is(.empty, .jt-empty) p { max-width: 50ch; margin: 0; color: var(--sp-muted); font-size: var(--sp-type-sm); }
  :where(body[data-sp]) :is(.empty, .jt-empty) > :is(.button, .btn, .jt-button, .actions) { margin-top: 10px; }

  /* Dialogs: ui.js modal() (.ui-dialog) and the creator tools' dialog (.jt-dialog). */
  :where(body[data-sp]) :is(.ui-dialog, .jt-dialog) {
    width: min(560px, calc(100vw - 24px));
    max-height: 90dvh;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-surface);
    color: var(--sp-text);
    box-shadow: var(--sp-shadow-lg);
  }
  :where(body[data-sp]) :is(.ui-dialog, .jt-dialog)::backdrop { background: var(--sp-scrim); backdrop-filter: blur(3px); }
  :where(body[data-sp]) :is(.ui-dialog > header, .jt-dialog header) {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-space-3);
    padding: 14px 14px 14px 20px;
    border-bottom: 1px solid var(--sp-line-subtle);
    background: var(--sp-surface);
  }
  :where(body[data-sp]) :is(.ui-dialog > header, .jt-dialog header) h2 { margin: 0; font-size: var(--sp-type-xl); line-height: 1.25; }
  :where(body[data-sp]) :is(.ui-dialog > form, .ui-dialog > .import-body, .jt-dialog-body) { padding: 20px 20px 0; }
  :where(body[data-sp]) .jt-dialog-body { display: grid; gap: 15px; padding-bottom: 20px; }
  :where(body[data-sp]) :is(.ui-dialog > form > footer, .ui-dialog > .import-body > footer, .jt-dialog footer) {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-space-2);
    padding: 14px 20px;
    border-top: 1px solid var(--sp-line-subtle);
    background: var(--sp-surface);
  }
  :where(body[data-sp]) .ui-dialog > :is(form, .import-body) > footer { margin: 18px -20px 0; }
  :where(body[data-sp]) :is(.ui-dialog, .jt-dialog) fieldset { min-width: 0; margin: 0 0 16px; padding: 12px; border: 1px solid var(--sp-line-subtle); border-radius: var(--sp-radius-sm); }
  :where(body[data-sp]) :is(.ui-dialog, .jt-dialog) legend { padding-inline: 6px; font-weight: 650; }

  @media (max-width: 700px) {
    :where(body[data-sp]) :is(.button, .btn, .jt-button, .jt-danger) { min-height: var(--sp-touch); }
    :where(body[data-sp]) :is(td, .discover-body) :is(.button, .btn) { min-height: var(--sp-touch); }
    :where(body[data-sp]) :is(.icon-btn, .jt-icon) { width: var(--sp-touch); min-height: var(--sp-touch); }
    :where(body[data-sp]) :is(.ui-dialog > header, .jt-dialog header) { padding-left: 16px; }
    :where(body[data-sp]) :is(.ui-dialog > form, .ui-dialog > .import-body, .jt-dialog-body) { padding-inline: 16px; }
    :where(body[data-sp]) :is(.ui-dialog > form > footer, .ui-dialog > .import-body > footer, .jt-dialog footer) { padding-inline: 16px; }
    :where(body[data-sp]) .ui-dialog > :is(form, .import-body) > footer { margin-inline: -16px; }
  }
}

/* Loading placeholders: grey shapes where content is about to appear. */
.sp-loading { display: grid; gap: var(--sp-space-4); }
.sp-loading-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--sp-space-3); }
.sp-skeleton {
  display: block;
  min-height: 14px;
  border-radius: var(--sp-radius-sm);
  background: linear-gradient(90deg, var(--sp-skeleton) 30%, var(--sp-skeleton-shine) 50%, var(--sp-skeleton) 70%) 0 0 / 300% 100%;
  animation: sp-shimmer 1.4s ease-in-out infinite;
}
.sp-skeleton.title { width: min(320px, 70%); height: 34px; }
.sp-skeleton.line { width: min(520px, 90%); height: 14px; }
.sp-skeleton.short { width: min(220px, 50%); }
.sp-skeleton.block { height: 92px; border-radius: var(--sp-radius-lg); }
.sp-skeleton.tall { height: 220px; border-radius: var(--sp-radius-lg); }
@keyframes sp-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sp-skeleton { animation: none; } }

/* The top bar: the workspace's, and the slim one on the team pages, game analytics and the video
   editor, so there is always a way back to the workspace. Not layered, so a page's own link and
   button rules don't restyle it. */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-space-3);
  min-width: 0;
  padding: 14px clamp(15px, 3vw, 46px);
  border-bottom: 1px solid var(--sp-line-subtle);
  color: var(--sp-text);
  font: 500 var(--sp-type-md) / var(--sp-leading) var(--sp-font);
}
.topbar-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 6px 9px;
  border-radius: 12px;
  background: var(--sp-cream);
}
.topbar-brand .sp-logo { width: 96px; height: auto; }
.topbar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--sp-muted);
  font-size: var(--sp-type-xs);
  font-weight: 650;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-pill);
  color: var(--sp-text);
  font-weight: 600;
  text-decoration: none;
}
.topbar-link:hover,
.topbar-link:focus-visible { background: var(--sp-raised); color: var(--sp-text); }
.topbar-link.back { border: 1px solid var(--sp-line); }
.topbar :is(a, button):focus-visible { outline: 3px solid var(--sp-focus); outline-offset: 3px; }
.topbar .ui-icon { width: 16px; height: 16px; flex: none; }
.account-menu { position: relative; flex: none; }
.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-pill);
  background: transparent;
  color: var(--sp-text);
  font: inherit;
  cursor: pointer;
}
.account-toggle:hover { border-color: var(--sp-line-hover); }
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3cfbb;
  color: var(--sp-plum);
  font-size: var(--sp-type-xs);
  font-weight: 700;
}
.account-toggle .avatar { width: 30px; height: 30px; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(280px, 90vw);
  padding: 8px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-md);
}
.account-panel[hidden] { display: none; }
.account-panel :is(a, button) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--sp-radius-md);
  background: transparent;
  color: var(--sp-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-panel :is(a, button):is(:hover, :focus-visible) { background: var(--sp-raised); }
.account-who { display: grid; margin-bottom: 4px; padding: 8px 12px 10px; border-bottom: 1px solid var(--sp-line-subtle); }
.account-who small { color: var(--sp-muted); font-size: var(--sp-type-xs); overflow-wrap: anywhere; }
/* The slim bar on pages outside the workspace. */
.sp-bar { padding-block: 10px; background: var(--sp-bg-deep); }
.sp-bar .topbar-title { font-size: var(--sp-type-xs); }
@media (max-width: 700px) {
  .topbar { gap: 8px; padding: 10px 16px; }
  .account-name,
  .topbar-link:not(.back) span { display: none; }
  .topbar-link { min-height: var(--sp-touch); }
  .account-toggle { min-height: var(--sp-touch); padding-right: 8px; }
  .sp-bar .topbar-title { display: none; }
  .sp-bar .topbar-link.back { flex: 1 1 auto; min-width: 0; }
  .sp-bar .topbar-link.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 380px) {
  .sp-bar .topbar-brand { display: none; }
}
/* On public pages with the site header, a signed-in visitor gets the slim bar instead. */
body.sp-signed-in .site-header { display: none; }

/* The workspace's home page: the next step, on the brand's cream. */
.workspace-skip { position: fixed; left: 1rem; top: -8rem; z-index: 30; padding: .8rem 1.2rem; border-radius: var(--sp-radius-sm); background: var(--sp-cream); color: var(--sp-plum); }
.workspace-skip:focus { top: 1rem; }
.workspace-links { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sp-selected-line) transparent; padding: 2px 4px 8px; }
.next-step { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(23px, 3.2vw, 44px); margin: 0 0 20px; border-radius: var(--sp-radius-xl); color: var(--sp-plum); background: var(--sp-cream); }
.next-step > div { max-width: 49em; }
.next-step h2 { font-size: clamp(27px, 3vw, 43px); line-height: 1.1; }
.next-step p { max-width: 48em; margin: 10px 0 18px; color: #684452; }
.next-step img { flex: none; width: clamp(86px, 12vw, 165px); height: auto; transform: rotate(5deg); filter: drop-shadow(3px 5px 0 #e5bcac); }
.next-step .button { color: var(--sp-plum); background: transparent; border-color: #ba9392; }
.next-step .button:hover:not(:disabled) { background: #f6e3d6; border-color: var(--sp-plum); }
.next-step .button.primary { background: var(--sp-orange); border-color: var(--sp-plum); color: var(--sp-ink); box-shadow: var(--sp-shadow-pop); }
.next-step .button.primary:hover:not(:disabled) { background: var(--sp-accent-hover); }
.nav-backdrop { position: fixed; z-index: 11; inset: 56px 0 0; background: var(--sp-scrim); border: 0; }
.nav-backdrop[hidden] { display: none; }
@media (max-width: 700px) {
  body.menu-open { overflow: hidden; }
  .next-step { gap: 0; }
  .next-step img { display: none; }
}
@media (min-width: 701px) { .nav-backdrop { display: none; } }

.campaign-game-field { display:grid; align-content:start; gap:6px; }
.add-game-link { justify-self:start; background:transparent; color:#ffbc97; border:0; padding:4px 2px; text-decoration:underline; text-underline-offset:3px; font-weight:650; }

.video-draft-list { display:grid; gap:1rem; }
.video-draft-card { display:grid; gap:.85rem; padding:1rem; border:1px solid currentColor; border-color:color-mix(in srgb,currentColor 18%,transparent); border-radius:12px; overflow-wrap:anywhere; }
.video-draft-card h3 { margin:.6rem 0 .25rem; }
.video-draft-card p { margin:0; }
.video-draft-card .actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.review-video { width:100%; max-height:45vh; background:#120c10; border-radius:8px; }
.upload-status:empty { display:none; }

.mobile-cards .cell-label { display:none; }
@media (max-width:700px) {
  .mobile-cards { overflow:visible; }
  .mobile-cards thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .mobile-cards :is(table,tbody) { display:block; }
  .mobile-cards tbody tr { display:grid; gap:.6rem; padding:.9rem 0; border-top:1px solid var(--subtle-line); }
  .mobile-cards tbody tr:first-child { padding-top:0; border-top:0; }
  .mobile-cards tbody td { display:grid; grid-template-columns:minmax(5rem,1fr) minmax(0,2fr); gap:.7rem; padding:0; border:0; font-size:.92rem; }
  .mobile-cards .cell-label { display:block; font-size:.83rem; color:var(--sp-muted); }
  /* A cell without a label (the buttons at the end of a row) uses the whole width. */
  .mobile-cards td:not(:has(> .cell-label)) { display:block; }
  .mobile-cards td:empty { display:none; }
  .mobile-cards td small { margin-top:.3rem; }
}
