/* Grand Vision Review — one stylesheet for the whole app.
   Dark, film-room neutrals with the Grand Vision red as the single accent.
   Layout: team pages = sidebar + scrolling main column; review screen = fixed viewport,
   panels own their scroll. */

:root {
  --bg: #0f1013;
  --surface: #16171c;
  --surface-2: #1d1e25;
  --surface-3: #262832;
  --line: #2a2c35;
  --line-2: #3a3c48;
  --text: #ecedf2;
  --muted: #a3a5b4;
  --dim: #767888;
  --red: #e3262f;
  --red-hi: #f0444b;
  --red-soft: #3a1b1f;
  --ok: #4cc38a;
  --ok-soft: #13291f;
  --warn: #f2b14a;
  --warn-soft: #2f2412;
  --info: #79a8ff;
  --info-soft: #172338;
  --violet: #b59cff;
  --violet-soft: #241d38;
  --radius: 10px;
  --display: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}
#app {
  height: 100dvh;
}
.booting {
  padding: 40px;
  color: var(--muted);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 17px;
  font-weight: 700;
}
h3 {
  font-size: 14px;
  font-weight: 700;
}
p {
  line-height: 1.6;
  margin: 0 0 10px;
}
a {
  color: inherit;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.hint {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.5;
}
.small {
  font-size: 12.5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
[hidden] {
  display: none !important;
}
.icon {
  flex: none;
  vertical-align: -3px;
}
:focus-visible {
  outline: 2px solid var(--red-hi);
  outline-offset: 2px;
}

/* ---- Controls ------------------------------------------------------------------------- */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 13px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.12s,
    border-color 0.12s;
}
button:hover,
.file-btn:hover {
  background: #30323e;
  border-color: #4c4f5e;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.primary:hover {
  background: var(--red-hi);
  border-color: var(--red-hi);
}
.danger {
  background: #b5161f;
  border-color: #b5161f;
  color: #fff;
}
.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
}
.quiet:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: transparent;
}
.danger-text {
  color: #ff8a8f !important;
}
.wide {
  width: 100%;
}
.icon-btn {
  padding: 7px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  border-radius: 8px;
  list-style: none;
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
input,
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 11px;
  min-width: 0;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--red-hi);
  box-shadow: 0 0 0 3px #e3262f33;
}
input:disabled {
  opacity: 0.6;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  padding: 0;
}
input[type='color'] {
  padding: 2px;
  height: 36px;
  width: 48px;
}
/* Label text and its hint share a line; the field takes the next full row. */
label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #d4d6e0;
}
label > input,
label > select,
label > textarea {
  flex: 1 0 100%;
}
label.check > input,
label.inline > input,
.change-tools label > input,
.recipients label > input,
.toggle > input,
.choice > input,
.swatch > input,
.menu-check > input,
.file-btn > input {
  flex: none;
}
label small {
  color: var(--dim);
  font-weight: 500;
}
label > input,
label > select,
label > textarea {
  font-weight: 400;
  color: var(--text);
}
label.check,
label.inline,
.menu-check {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
label.inline input {
  width: 78px;
  flex: 0 0 78px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid > * {
  min-width: 0;
}
.span-2 {
  grid-column: 1 / -1;
}
.form-actions,
.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-actions {
  margin-top: 18px;
}
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  background: transparent;
  border: 0;
  padding: 6px 11px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 6px;
}
.seg button[aria-pressed='true'] {
  background: var(--surface-3);
  color: var(--text);
}
kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---- Pills, avatars, marks ------------------------------------------------------------ */
.pill,
.status-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.s-draft {
  color: #b9bbc8;
}
.s-internal {
  color: var(--info);
  background: var(--info-soft);
  border-color: #27406a;
}
.s-with_client {
  color: var(--violet);
  background: var(--violet-soft);
  border-color: #3e3266;
}
.s-changes {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: #5c4519;
}
.s-approved,
.pill.approved {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: #1f5a3e;
}
.s-delivered {
  color: #7fd6d0;
  background: #12282a;
  border-color: #1f4d4a;
}
.s-archived {
  color: var(--dim);
}
.pill.submitted {
  color: var(--warn);
  border-color: #5c4519;
}
.pending {
  font-size: 11px;
  font-weight: 700;
  color: #1b1405;
  background: var(--warn);
  border-radius: 99px;
  padding: 2px 8px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #2e3a3a;
  color: #bfe3d6;
  font-weight: 700;
  object-fit: cover;
  flex: none;
}
.client-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-family: var(--display);
  object-fit: contain;
  background: #fff;
  flex: none;
  overflow: hidden;
}
span.client-mark {
  background: var(--red);
}
.client-mark.big {
  width: 72px;
  height: 72px;
  font-size: 26px;
  border-radius: 14px;
}
.client-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.inline-client,
.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.person span {
  display: flex;
  flex-direction: column;
}
.person small {
  color: var(--muted);
}
.due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.due.soon {
  color: var(--warn);
}
.due.overdue {
  color: #ff7b80;
}

/* ---- Menus, dialogs, toast ------------------------------------------------------------ */
details.menu,
details.account-menu {
  position: relative;
}
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 240px;
  max-width: calc(100vw - 24px);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px #000a;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-pop > a,
.menu-pop > button {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  padding: 9px 10px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 10px;
  font-size: 13.5px;
}
.menu-pop > a:hover,
.menu-pop > button:hover {
  background: var(--surface-3);
}
.menu-pop .menu-select,
.menu-pop .menu-check {
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.menu-pop .menu-select select {
  width: 100%;
  font-size: 13px;
}
.menu-note {
  padding: 8px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
dialog {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 26px;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 30px 90px #000c;
}
dialog.wide {
  width: min(760px, calc(100vw - 24px));
}
dialog::backdrop {
  background: #05060899;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 20px;
  margin: 0 36px 8px 0;
}
dialog h3 {
  margin: 20px 0 10px;
}
dialog > p {
  color: #d0d2dc;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px;
}
dialog form > label + label {
  margin-top: 12px;
}
dialog textarea {
  width: 100%;
}
dialog textarea.raw {
  min-height: 46dvh;
  font-family: var(--mono);
  font-size: 13px;
}
.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.copy-row input {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
}
.thanks {
  text-align: center;
  padding: 8px 0 0;
}
.thanks .icon {
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 50%;
  padding: 8px;
  width: 56px;
  height: 56px;
}
.thanks h2 {
  margin: 14px 0 8px;
}
.thanks .modal-actions {
  justify-content: center;
}
.summary {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 8px;
}
.summary li {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  background: #f4f4f7;
  color: #18191e;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 40px #000a;
  max-width: min(520px, calc(100vw - 32px));
  font-weight: 500;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- App shell (team pages) ----------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100dvh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.05;
}
.brand small,
.auth-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--red-hi);
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item,
.nav-client {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.nav-item:hover,
.nav-client:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item.active {
  background: var(--red-soft);
  color: #ffd9db;
}
.nav-item.active .icon {
  color: var(--red-hi);
}
.badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  border-radius: 99px;
  padding: 1px 7px;
}
.nav-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-section > small {
  padding: 0 10px 6px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}
.nav-client {
  font-weight: 500;
  padding: 7px 10px;
  font-size: 13px;
}
.nav-client span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
}
.account-menu > summary:hover,
.account-menu[open] > summary {
  background: var(--surface-2);
}
.account-menu .who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.account-menu .who b,
.account-menu .who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu .who small {
  color: var(--dim);
}
.account-menu .menu-pop {
  bottom: calc(100% + 6px);
  top: auto;
  left: 0;
  right: auto;
}
.parent-logo {
  opacity: 0.85;
  padding: 0 8px;
  height: auto;
}
.main-col {
  min-width: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: #0f1013e6;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.search {
  position: relative;
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--dim);
}
.search:focus-within {
  border-color: var(--red-hi);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  box-shadow: none !important;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px #000a;
  color: var(--text);
  z-index: 50;
  max-height: 60dvh;
  overflow-y: auto;
}
.search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.search-results a span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.search-results a small {
  color: var(--dim);
}
.search-results a:hover,
.search-results a.sel {
  background: var(--surface-3);
}
.search-results p {
  padding: 10px;
  margin: 0;
}
#page {
  padding: 28px;
  width: 100%;
  max-width: 1320px;
  outline: none;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin-bottom: 4px;
}
.page-head p {
  margin: 0;
}
.section-title {
  margin: 32px 0 12px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 14px;
}
.back:hover {
  color: var(--text);
}
.mobile-only {
  display: none;
}
.scrim {
  display: none;
}

/* ---- Reviews list ---------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.filters select {
  padding: 7px 10px;
}
.view-toggle {
  margin-left: auto;
}
.view-toggle button {
  padding: 5px 8px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.review-card:hover {
  border-color: #4a4d5b;
  transform: translateY(-1px);
}
.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b0b0e;
  overflow: hidden;
}
.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.45;
}
.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster .status-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  backdrop-filter: blur(6px);
  background: #0f1013cc;
}
.poster .pending {
  position: absolute;
  right: 10px;
  top: 10px;
}
.pending.inline {
  position: static;
}
.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-client {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
}
.card-client span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-card h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.review-card h3 a {
  text-decoration: none;
}
.review-card h3 a:hover {
  text-decoration: underline;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12.5px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td.actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.row-title {
  font-weight: 700;
  text-decoration: none;
}
.row-title:hover {
  text-decoration: underline;
}
.empty-state {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  color: var(--muted);
}
.empty-state.small {
  padding: 32px 16px;
}
.empty-state h2 {
  color: var(--text);
  margin: 12px 0 6px;
}
.empty-state .icon {
  color: var(--dim);
}

/* ---- Clients ---------------------------------------------------------------------------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.client-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--client);
  border-radius: 12px;
  text-decoration: none;
}
.client-card:hover {
  border-color: #4a4d5b;
  border-left-color: var(--client);
}
.client-card.archived {
  opacity: 0.6;
}
.client-card p {
  margin: 3px 0 4px;
  font-size: 13px;
}
.client-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--client) 22%, var(--surface)) 0%,
    var(--surface) 60%
  );
  border: 1px solid var(--line);
}
.client-hero h1 {
  font-size: 26px;
}
.client-hero p {
  margin: 4px 0 0;
}
.hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.folder-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.folder-bar [role='tab'] {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 600;
}
.folder-bar [role='tab'][aria-selected='true'] {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--line-2);
}
.folder-bar [role='tab'].archived {
  opacity: 0.55;
}
.folder-bar small {
  color: var(--dim);
}
.folder-tools {
  display: flex;
  gap: 4px;
  margin: -6px 0 12px;
}
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.panel-card h2 {
  margin-bottom: 6px;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.contact div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notes {
  white-space: pre-wrap;
  color: #d0d2dc;
}
.logo-field,
.avatar-field,
.thumb-field {
  display: flex;
  gap: 16px;
  align-items: center;
}
.logo-field p,
.avatar-field p,
.thumb-field p {
  margin: 6px 0;
}
.thumb-field .guide-thumb {
  width: 120px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.swatch {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  opacity: 0;
}
.swatch span:first-of-type {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line-2);
}
.swatch input:checked + span {
  border-color: #fff;
}
.swatch input:focus-visible + span {
  outline: 2px solid var(--red-hi);
  outline-offset: 2px;
}
.swatch.custom input {
  position: static;
  opacity: 1;
  width: 40px;
  height: 30px;
}
.swatch.custom {
  gap: 8px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

/* ---- Team / settings / inbox ---------------------------------------------------------- */
.role-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.role-help div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.role-help dt {
  font-weight: 700;
  margin-bottom: 3px;
}
.role-help dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.role-choice {
  display: grid;
  gap: 8px;
}
.choice {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
}
.choice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice small {
  color: var(--muted);
}
.mail-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.m-sent {
  color: var(--ok);
}
.m-failed,
.m-uncertain {
  color: #ff8a8f;
}
.m-retry,
.m-queued,
.m-sending {
  color: var(--warn);
}
.m-not_configured {
  color: var(--dim);
}
.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
  align-items: start;
}
.settings .panel-card h2 {
  margin-bottom: 14px;
}
.toggle {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
}
.toggle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle small {
  color: var(--muted);
}
.session {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.session span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.session small {
  color: var(--muted);
}
.report {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.report p {
  margin: 4px 0;
  white-space: pre-wrap;
}
.inbox {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.inbox li > a,
.inbox li > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.inbox li:last-child > * {
  border-bottom: 0;
}
.inbox li > a:hover {
  background: var(--surface-2);
}
.inbox .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.inbox .unread .dot {
  background: var(--red-hi);
}
.inbox .what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inbox .what small {
  color: var(--muted);
}
.inbox .what span {
  color: #cfd1db;
  font-size: 13px;
}
.inbox time {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---- Sign-in and client welcome ------------------------------------------------------- */
.auth {
  height: 100dvh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-card {
  align-self: center;
  justify-self: center;
  width: min(420px, calc(100vw - 32px));
  padding: 40px 0;
}
.auth-card h1 {
  font-size: 28px;
  margin: 34px 0 8px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
}
.auth-foot {
  margin-top: 18px;
}
.auth-foot a {
  color: var(--muted);
}
.auth-side {
  background: radial-gradient(ellipse at 20% 30%, #e3262f33, transparent 55%),
    linear-gradient(160deg, #1b1c22, #0c0d10);
  border-left: 1px solid var(--line);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.auth-side p {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 18ch;
}
.auth-side ul {
  color: var(--muted);
  line-height: 2;
  padding-left: 18px;
}
.auth-side img {
  margin-top: 24px;
  opacity: 0.9;
}
.welcome {
  min-height: 100dvh;
  overflow-y: auto;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: radial-gradient(
      ellipse at 50% -10%,
      color-mix(in srgb, var(--client, #e3262f) 26%, transparent),
      transparent 60%
    ),
    var(--bg);
}
.welcome-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px #0007;
}
.welcome-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.welcome-brands .x {
  color: var(--dim);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.welcome-card h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.due-line {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--warn);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-soft);
  color: #ffc9cc;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12.5px;
}
.steps span {
  color: var(--muted);
  font-size: 13.5px;
}
.welcome-foot {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- Review screen ---------------------------------------------------------------------- */
.review-screen {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.crumbs > div {
  min-width: 0;
}
.crumbs small,
.crumbs small a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.crumbs small a:hover {
  text-decoration: underline;
}
.crumbs h1 {
  font-size: 16.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}
.save-status {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.save-status.busy {
  color: var(--muted);
}
.save-status.error {
  color: #ff8a8f;
}
.stepper {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.stepper li + li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--line-2);
}
.stepper li span {
  padding: 3px 8px;
  border-radius: 99px;
}
.stepper li.done span {
  color: var(--muted);
}
.stepper li.now span {
  background: var(--red-soft);
  color: #ffd2d4;
  font-weight: 700;
}
.round-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--muted);
  background: #13141a;
  border-bottom: 1px solid var(--line);
}
.round-banner.client {
  background: #1a1626;
  color: #cfc4f5;
}
.round-banner:empty {
  display: none;
}
.modebar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
}
.modebar [role='tab'] {
  background: transparent;
  border: 0;
  padding: 7px 12px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 7px;
}
.modebar [role='tab']:hover {
  color: var(--text);
  background: var(--surface-2);
}
.modebar [aria-selected='true'] {
  background: var(--red-soft);
  color: #ffd9db;
}
.modebar #follow {
  margin-left: auto;
  font-size: 12px;
  padding: 5px 8px;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 540px);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.studio {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 12px 14px;
  min-width: 0;
  min-height: 0;
}
.video-bay {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #08080a;
  border-radius: 10px;
}
.stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  background: #08080a;
  overflow: hidden;
}
.stage #embed,
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  background: radial-gradient(ellipse at 50% 40%, #1d1e26, #08080a 70%);
  padding: 16px;
}
.placeholder b {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text);
  margin-top: 6px;
}
.placeholder button {
  margin-top: 8px;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stage.drawing canvas {
  pointer-events: auto;
  cursor: crosshair;
}
.stage.drawing {
  box-shadow: inset 0 0 0 2px var(--red);
}
.overlay {
  position: absolute;
  bottom: 9%;
  left: 6%;
  right: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.subtitle {
  background: #000b;
  padding: 3px 10px;
  white-space: pre-wrap;
  text-align: center;
  pointer-events: auto;
  cursor: text;
  max-width: 100%;
  border-radius: 4px;
  line-height: 1.35;
  text-shadow: 0 1px 2px #000;
}
.subtitle:hover {
  outline: 1px dashed #ffffff66;
}
.subtitle:focus {
  outline: 2px solid var(--red-hi);
}
.transport {
  display: flex;
  align-items: center;
  gap: 10px;
}
.transport .icon-btn {
  color: var(--text);
}
.time {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #cfd1db;
  white-space: nowrap;
}
.scrub {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.scrub input {
  width: 100%;
  accent-color: var(--red);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
.markers {
  position: absolute;
  left: 8px;
  right: 8px;
  top: -6px;
  height: 8px;
  pointer-events: none;
}
.marker {
  position: absolute;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  transform: translateX(-50%);
  pointer-events: auto;
  background: var(--warn);
}
.marker.m-guide {
  background: var(--info);
  border-radius: 2px;
}
.marker.m-resolved {
  background: var(--dim);
}
.transport select {
  padding: 5px 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar .row {
  flex-wrap: wrap;
}
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex: none;
}
.panel-tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 7px 10px;
  font-weight: 600;
  border-radius: 7px;
}
.panel-tabs button.active {
  background: var(--surface-3);
  color: var(--text);
}
.review-screen:not([data-view='full']) .panel-tabs {
  display: none;
}
.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 24px;
  scrollbar-gutter: stable;
}
.panel-body > h3 {
  margin-bottom: 6px;
}
.panel-body > label {
  margin: 12px 0;
}
.panel > .editor {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.panel.editor-active > .editor {
  display: flex;
}
.panel.editor-active > .panel-body {
  display: none;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}
.editor-head small {
  color: var(--dim);
}
#editorContent {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.tracks {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
  overflow-x: auto;
  flex: none;
}
.track {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  padding: 6px 10px;
  font-weight: 600;
  font-size: 12.5px;
}
.track .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--track);
  box-shadow: 0 0 0 1px #0006;
}
.track.active {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--line-2);
}
.track small {
  color: var(--dim);
}
.editor-tools {
  display: flex;
  gap: 4px;
  padding: 4px 12px 8px;
  align-items: center;
  flex: none;
}
.editor-tools button {
  padding: 6px 9px;
  font-size: 12.5px;
}
.editor-tools #search {
  flex: 1;
  min-width: 80px;
  padding: 6px 9px;
}
.layer-settings {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 12px 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  align-items: flex-end;
}
.settings-open .layer-settings {
  display: flex;
}
.layer-settings label {
  font-size: 12px;
}
.layer-settings #trackName {
  width: 150px;
}
.layer-settings #size {
  width: 70px;
}
.change-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 14px 8px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.change-tools label {
  font-weight: 500;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.cues {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  position: relative;
}
.cue {
  display: grid;
  grid-template-columns: 24px 104px minmax(0, 1fr) 26px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  align-items: start;
}
.cue.active {
  background: #24181b;
}
.cue.edited-cue {
  border-left-color: var(--warn);
}
.cue .index {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  padding-top: 8px;
}
.cue-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cue-times input {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 6px;
}
.cue-times .jump {
  justify-content: flex-start;
  padding: 3px 6px;
  font-size: 11px;
}
.cue textarea {
  font-size: 14px;
  min-height: 56px;
  resize: none;
  overflow: hidden;
  padding: 7px 9px;
  width: 100%;
}
.cue .del {
  padding: 5px;
}
.cue-change {
  grid-column: 2 / -1;
  font-size: 12px;
}
.cue-change:empty {
  display: none;
}
.cue-change p,
.deleted-cue p {
  white-space: pre-wrap;
  margin: 4px 0;
}
.change-badge {
  color: var(--warn);
  font-size: 11.5px;
  font-weight: 700;
}
.deleted-cue {
  padding: 10px 14px;
  background: #1c1a1d;
  border-left: 3px solid var(--dim);
  border-bottom: 1px solid var(--line);
}
.deleted-cue small {
  display: block;
  color: var(--dim);
}
.cue[hidden] {
  display: none;
}
.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  color: var(--dim);
}
.empty p {
  margin: 6px 0;
}
.composer {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.composer textarea {
  width: 100%;
  background: var(--surface);
}
.composer label.inline {
  font-size: 12px;
  color: var(--muted);
}
.drawing-pill {
  color: #ffd2d4;
  border-color: var(--red);
  background: var(--red-soft);
}
.note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
  background: var(--surface);
}
.note.at-time {
  border-color: #6b3a3f;
  background: #1d1517;
}
.note.resolved {
  opacity: 0.6;
}
.note > p {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-author {
  color: var(--muted);
  font-weight: 600;
}
.note-actions {
  gap: 2px;
  flex-wrap: wrap;
}
.note-actions button {
  padding: 4px 8px;
  font-size: 12.5px;
}
.stamp {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 7px;
  background: var(--surface-2);
  color: #f6b4b8;
  border-color: var(--line);
}
.reply {
  border-left: 2px solid var(--line-2);
  margin: 8px 0 0 6px;
  padding: 2px 0 2px 10px;
}
.reply p {
  margin: 3px 0;
  white-space: pre-wrap;
}
.guide-language {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  min-width: 0;
}
.guide-language h3,
.guide-language p {
  white-space: pre-wrap;
  margin: 6px 0;
}
.guide-language small {
  color: var(--muted);
}
fieldset.guide-language {
  display: grid;
  gap: 10px;
}
.guide-thumb {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  display: block;
}
.diff {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  max-height: 55dvh;
  overflow: auto;
}
.overview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.overview-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
}
.overview-meta small {
  color: var(--dim);
}
.panel-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.panel-section h4 {
  font-size: 13px;
  margin-bottom: 6px;
}
.activity {
  margin: 4px 0;
  font-size: 13px;
}
.links {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.link-row.revoked {
  opacity: 0.55;
}
.recipients {
  display: grid;
  gap: 6px;
}
.export-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.review-report h1 {
  font-size: 17px;
  margin: 16px 0 6px;
}
.review-report h2 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: #f6b4b8;
}
.review-report h3 {
  font-size: 13px;
  margin: 12px 0 6px;
}
.review-report p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-report article {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
}
.review-report img,
.review-report svg {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.review-report .language {
  border-left: 2px solid var(--red);
  padding-left: 10px;
}
.review-report .transcript {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.review-report blockquote {
  margin: 10px 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}
.is-guest .round-banner {
  display: none;
}

/* ---- Responsive -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .stepper li:not(.now):not(:has(+ .now)) {
    display: none;
  }
  .stepper li + li::before {
    display: none;
  }
  .client-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 84vw);
    z-index: 80;
    transform: translateX(-102%);
    transition: transform 0.2s;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
  }
  .nav-open .sidebar {
    transform: none;
    box-shadow: 0 0 60px #000c;
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #0008;
  }
  .mobile-only {
    display: inline-flex;
  }
  .desktop-only {
    display: none;
  }
  .topbar {
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  #page {
    padding: 20px 16px 40px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .stepper {
    display: none;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .settings {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  .view-toggle {
    margin-left: 0;
  }
  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .review-top {
    padding: 8px 10px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    gap: 8px;
  }
  .review-top .save-status,
  .guest-top .top-meta {
    display: none;
  }
  .crumbs h1 {
    font-size: 15px;
  }
  .top-actions button.primary {
    padding: 8px 10px;
  }
  .round-banner {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .modebar {
    padding: 4px 6px;
  }
  .modebar [role='tab'] {
    padding: 6px 9px;
    font-size: 12.5px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .studio {
    padding: 6px 8px;
    gap: 6px;
    grid-template-rows: auto auto auto;
  }
  .video-bay {
    height: min(42dvh, 56vw);
  }
  .toolbar small {
    display: none;
  }
  .toolbar button {
    padding: 6px 9px;
    font-size: 12.5px;
  }
  .panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .cue {
    grid-template-columns: 102px minmax(0, 1fr) 24px;
    gap: 6px;
    padding: 8px;
  }
  .cue .index {
    display: none;
  }
  .cue-change {
    grid-column: 1 / -1;
  }
  .editor-tools {
    flex-wrap: wrap;
  }
  .editor-head small {
    display: none;
  }
  .modebar #follow {
    display: none;
  }
  .overview-meta {
    grid-template-columns: 1fr;
  }
  .welcome-card {
    padding: 22px;
  }
  dialog {
    padding: 20px;
  }
}
@media (max-width: 420px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.callout {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--info-soft);
  border: 1px solid #27406a;
  color: #cfe0ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.callout .icon {
  margin-top: 2px;
}
