:root {
  --admin-yellow: #ffcc00;
  --admin-yellow-hover: #f2c200;
  --admin-black: #111111;
  --admin-text: #202124;
  --admin-muted: #72757b;
  --admin-line: #e5e7e9;
  --admin-bg: #f5f5f5;
  --admin-white: #ffffff;
  --admin-red: #e53935;
  --admin-radius: 20px;
}

.live-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.live-format-slot { display: flex; flex-direction: column; min-height: 250px; }
.live-format-slot h3 { min-height: 58px; margin-bottom: 8px; }
.live-format-slot p.small { min-height: 22px; }
.live-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.live-controls .btn { min-height: 48px; }
.live-connection { padding: 12px 16px; border-radius: 12px; background: #e7f4eb; color: #235c32; }
.live-connection.offline { background: #fff1de; color: #803f00; }
.live-summary { font-weight: 600; }
.live-show-controls { border: 1px solid #e5c9c9; }
.admin-page .btn.danger { color: #9b2020; background: #fff0f0; }
.admin-page .btn:disabled { opacity: .45; cursor: not-allowed; }
.admin-page button.event-pick { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.archive-toggle { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.admin-page .archive-toggle input { width: 18px; min-height: 18px; }
.event-edit-form { padding: 18px 0 28px; }
.admin-page summary { cursor: pointer; font-weight: 600; }
.admin-page :focus-visible { outline: 3px solid #806400; outline-offset: 3px; }
@media (max-width: 760px) {
  .live-control-grid { grid-template-columns: 1fr; }
  .live-controls .btn { flex: 1 1 130px; }
  .live-format-slot { min-height: 230px; }
}

body.page.admin-page {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--admin-text);
  background: var(--admin-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.admin-page * { box-sizing: border-box; }
.admin-header {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--admin-line);
  background: var(--admin-white);
}
.admin-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--admin-black); font-size: 18px; font-weight: 700; text-decoration: none; }
.admin-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--admin-yellow); }
.admin-product { padding-left: 18px; border-left: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 14px; }
.admin-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.hidden { display: none !important; }

.admin-login { width: min(440px, 100%); margin: 70px auto; padding: 38px; border-radius: 24px; background: var(--admin-white); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.admin-login h1, .workspace-head h1 { margin: 0; color: var(--admin-black); font-size: 36px; line-height: 1.1; letter-spacing: -.035em; }
.admin-lead { margin: 14px 0 28px; color: var(--admin-muted); }
.admin-eyebrow { margin: 0 0 8px; color: var(--admin-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-fields { display: grid; gap: 8px; }
.login-fields .field-label + input:not(:first-of-type) { margin-bottom: 10px; }
.admin-input,
.admin-page input:not([type="file"]),
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8dadd;
  border-radius: 11px;
  outline: none;
  color: var(--admin-text);
  background: var(--admin-white);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-page textarea { resize: vertical; }
.admin-page input:focus, .admin-page textarea:focus, .admin-page select:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.field-label, .form-grid label, #rd-team-a-wrap > label, #rd-team-b-wrap > label { display: grid; gap: 7px; color: #4d5156; font-size: 13px; font-weight: 600; }
.login-button { width: 100%; margin-top: 20px; }
.login-error { min-height: 20px; margin: 12px 0 0; font-size: 13px; }

.admin-page .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: var(--admin-text);
  background: #eceeef;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.admin-page .btn:hover { background: #e2e4e6; }
.admin-page .btn:active { transform: translateY(1px); }
body.page.admin-page .btn.primary { color: var(--admin-black); border-color: var(--admin-yellow); background: var(--admin-yellow); }
body.page.admin-page .btn.primary:hover { border-color: var(--admin-yellow-hover); background: var(--admin-yellow-hover); }
.admin-page .btn.link { min-height: 44px; padding: 0 12px; color: var(--admin-muted); background: transparent; font-weight: 400; }
.admin-page .btn:focus-visible, .admin-nav .tab:focus-visible { outline: 3px solid rgba(255,204,0,.65); outline-offset: 2px; }
.admin-page .btn:disabled { opacity: .55; cursor: default; }

.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.account-chip { display: flex; align-items: center; gap: 10px; color: var(--admin-muted); font-size: 13px; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--admin-black); background: var(--admin-yellow); font-size: 12px; font-weight: 700; }
.admin-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 46px; padding: 6px; border-radius: 16px; background: #e9eaeb; }
.admin-nav .tab { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; color: #60646a; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.admin-nav .tab span { color: #999da2; font-size: 11px; }
.admin-nav .tab.active { color: var(--admin-black); background: var(--admin-white); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.admin-nav .tab.active span { color: #8a6e00; }
.coauthor-nav-count { min-width: 22px; display: inline-grid; place-items: center; padding: 2px 6px; border-radius: 999px; color: var(--admin-black); background: var(--admin-yellow); font-size: 11px; line-height: 18px; }

.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title-row h2 { margin: 0; color: var(--admin-black); font-size: 32px; letter-spacing: -.035em; }
.admin-card { min-width: 0; padding: 26px; border-radius: var(--admin-radius); background: var(--admin-white); }
.admin-card h3 { margin: 0 0 20px; color: var(--admin-black); font-size: 19px; letter-spacing: -.015em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.content-grid > * { min-width: 0; }
.entity-list { display: grid; gap: 8px; }
.event-card, .team-card, .performer-card, .round-card { margin: 0; padding: 16px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-white); }
.event-card { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.event-card:hover { background: #fafafa; border-color: #c9cbce; }
.event-card.selected { border-color: var(--admin-yellow); box-shadow: 0 0 0 2px rgba(255,204,0,.28); }
.event-card h3, .team-card h3, .performer-card h3, .round-card h3 { margin: 0 0 6px; font-size: 15px; }
.event-card p, .team-card p, .performer-card p, .round-card p { margin: 5px 0; }
.selected-card .event-card { border: 0; padding: 0; box-shadow: none; cursor: default; }
.selected-card .event-card:hover { background: transparent; }
.empty-state { padding: 24px; border: 1px dashed #cfd1d4; border-radius: 14px; color: var(--admin-muted); text-align: center; }
.admin-page .muted, .hint { color: var(--admin-muted); }
.admin-page .small, .hint { font-size: 13px; }
.hint { margin: -10px 0 22px; }

.badge { display: inline-flex; align-items: center; margin-left: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.badge-live { color: #146c43; background: #dff5e9; }
.badge-scheduled { color: #715a00; background: #fff2b8; }
.badge-finished { color: #666b70; background: #eceeef; }
.badge-started { color: #185abc; background: #e8f0fe; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.link-row { margin-top: 12px; word-break: break-all; }
.link-row a { color: #3367d6; }

.create-card { margin-top: 16px; }
.content-grid > .create-card { margin-top: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.form-grid { display: grid; gap: 15px; }
.form-grid-event { grid-template-columns: repeat(2, 1fr); }
.wide-field { grid-column: 1 / -1; }
.event-program-builder, .event-program-list, .event-draft-format { min-width: 0; }
.event-program-builder h4 { margin: 0 0 8px; font-size: 20px; }
.event-program-list { display: grid; gap: 16px; margin: 16px 0; }
.event-draft-format { margin: 0; padding: 16px; border: 1px solid var(--admin-line); border-radius: 14px; background: #fafafa; }
.event-draft-format > legend { max-width: 100%; padding: 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.draft-order-actions { margin: 0 0 16px; }
.draft-cast { margin: 0; padding: 0; border: 0; min-width: 0; }
.draft-cast legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.draft-cast .format-actor-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; padding: 0; border: 0; }
.event-draft-format input, .event-draft-format select, .event-draft-format textarea { min-width: 0; max-width: 100%; }
.create-button { justify-self: start; }
.compact-create { position: sticky; top: 20px; }
.form-actions { margin-top: 0; }
.social-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 15px; border: 1px solid var(--admin-line); border-radius: 13px; }
.social-fields legend { padding: 0 6px; color: #4d5156; font-size: 13px; font-weight: 700; }
.social-fields label { display: grid; gap: 6px; color: #4d5156; font-size: 12px; font-weight: 600; }
.format-actor-picker { margin: 0; padding: 15px; border: 1px solid var(--admin-line); border-radius: 13px; }
.format-actor-picker legend { padding: 0 6px; color: #4d5156; font-size: 13px; font-weight: 700; }
.format-actor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.format-actor-option { display: flex !important; align-items: center; gap: 9px !important; min-height: 44px; padding: 8px 10px; border: 1px solid var(--admin-line); border-radius: 10px; color: var(--admin-black) !important; background: #fafafa; cursor: pointer; }
.format-actor-option input { width: 17px !important; min-height: 17px !important; margin: 0; padding: 0 !important; }
.format-card-rules { margin: 8px 0; color: #34383c; line-height: 1.5; white-space: pre-line; }
.format-library-panel { margin-bottom: 16px; }
.format-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.format-library-head h3 { margin-bottom: 7px; font-size: 24px; }
.format-library-head .hint { max-width: 670px; margin: 0; }
.format-library-tools { display: grid; grid-template-columns: minmax(240px, 1fr) 220px; gap: 10px; margin: 24px 0 16px; }
.format-library-tools label { display: grid; gap: 7px; color: #4d5156; font-size: 12px; font-weight: 700; }
.admin-format-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-library-format { min-width: 0; min-height: 220px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--admin-line); border-radius: 14px; background: #fafafa; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.admin-library-format:hover { border-color: #babdc1; box-shadow: 0 9px 22px rgba(0,0,0,.06); transform: translateY(-1px); }
.admin-library-format.selected { border-color: var(--admin-yellow); background: #fffbee; box-shadow: 0 0 0 3px rgba(255,204,0,.22); }
.admin-library-format-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-library-format-kind, .admin-library-format-meta span { padding: 5px 7px; border-radius: 999px; color: #5f6368; background: #eceeef; font-size: 10px; font-weight: 700; }
.admin-library-format-category { color: var(--admin-muted); font-size: 11px; }
.admin-library-format h4 { margin: 18px 0 8px; color: var(--admin-black); font-size: 19px; letter-spacing: -.02em; }
.admin-library-format > p { margin: 0; color: #4d5156; font-size: 13px; line-height: 1.45; }
.admin-library-format-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.admin-library-format-actions { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 17px; }
.admin-library-format-actions .btn { min-height: 44px; padding: 0 11px; font-size: 14px; }
.admin-library-format-actions a { min-height: 44px; display: inline-flex; align-items: center; color: #3367d6; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-library-format-actions a:hover { text-decoration: underline; }

.media-row { display: grid; grid-template-columns: 200px 180px minmax(280px, 1fr); gap: 28px; align-items: start; }
.media-block { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.media-preview { width: 100%; max-width: 200px; border: 1px solid var(--admin-line); border-radius: 14px; background: #fafafa; object-fit: cover; }
.media-preview.empty-thumb { min-height: 130px; display: grid; place-items: center; padding: 15px; color: var(--admin-muted); font-size: 13px; text-align: center; }
.media-preview.empty-thumb img { border: 0; }
.qr-thumb { max-width: 150px; background: white; }
.file-btn { cursor: pointer; text-align: center; }
.lineup-list { margin: 0; padding: 0; list-style: none; }
.lineup-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--admin-line); }
.lineup-list .btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
.team-card-inner { display: flex; gap: 14px; align-items: flex-start; }
.team-card-content { min-width: 0; flex: 1; }
.team-thumb { width: 56px; height: 56px; flex: 0 0 auto; border: 1px solid var(--admin-line); border-radius: 12px; object-fit: cover; }
.team-thumb.empty-thumb { display: grid; place-items: center; color: var(--admin-muted); background: #f3f4f4; }
.small-btn { min-height: 44px !important; margin-top: 7px; padding: 0 11px !important; font-size: 14px !important; }
.team-membership { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--admin-line); }
.team-membership-title { margin: 0 0 8px !important; color: var(--admin-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.team-membership-list { display: grid; gap: 7px; }
.membership-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.membership-row img, .membership-avatar { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #eceeef; }
.membership-avatar { display: grid; place-items: center; color: #6b7075; font-size: 11px; font-weight: 700; }
.membership-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.membership-role { color: var(--admin-muted); font-size: 12px; }
.membership-role-input { min-width: 0; width: 138px !important; min-height: 44px !important; padding: 8px !important; font-size: 16px !important; }
.membership-save { min-width: 44px; min-height: 44px !important; padding: 0 8px !important; }
.membership-remove { min-height: 44px !important; padding: 0 12px !important; color: #8f2222 !important; background: #fff4f4 !important; font-size: 13px !important; }
.team-member-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .75fr) auto; gap: 7px; margin-top: 10px; }
.team-member-picker .btn { min-height: 44px; }

.performer-card-inner { display: flex; gap: 14px; align-items: flex-start; }
.performer-thumb { width: 76px; height: 92px; flex: 0 0 auto; border: 1px solid var(--admin-line); border-radius: 14px; object-fit: cover; background: #f3f4f4; }
.performer-thumb.empty-thumb { display: grid; place-items: center; color: var(--admin-muted); font-size: 24px; font-weight: 700; }
.performer-card-content { min-width: 0; flex: 1; }
.performer-team-tags, .performer-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.performer-team-tag { padding: 4px 8px; border-radius: 999px; color: #5d4a00; background: #fff4bf; font-size: 11px; }
.performer-link { color: #3367d6; font-size: 12px; text-decoration: none; }
.performer-link:hover { text-decoration: underline; }

.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0 0 16px; }
.stat-card { padding: 18px; border-radius: 16px; background: var(--admin-white); }
.stat-card .value { color: var(--admin-black); font-size: 22px; font-weight: 700; }
.stat-card .label { margin-top: 4px; color: var(--admin-muted); font-size: 12px; }
.stats-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th, .stats-table td { padding: 11px 9px; border-bottom: 1px solid var(--admin-line); text-align: left; white-space: nowrap; }
.stats-table th { color: var(--admin-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.coauthors-card { margin: 0 0 16px; border: 1px solid var(--admin-line); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.coauthors-card.has-coauthors { border-color: var(--admin-yellow); background: #fffdf2; box-shadow: 0 0 0 3px rgba(255,204,0,.18); }
.coauthors-card.just-qualified { animation: coauthor-highlight 1.2s ease-out 2; }
.coauthors-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.coauthors-card-head h3 { margin-bottom: 6px; }
.coauthors-list { display: grid; gap: 8px; margin-top: 16px; }
.coauthor-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid #ead37a; border-radius: 12px; background: var(--admin-white); }
.coauthor-row > div { display: grid; gap: 2px; }
.coauthor-row span { color: var(--admin-muted); font-size: 12px; }
.coauthor-row.pending { border-style: dashed; }
.coauthor-name-pending { color: #8a6e00 !important; font-weight: 700; }
.coauthor-selected-format { color: var(--admin-black); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.coauthor-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.coauthor-spent { flex: 0 0 auto; text-align: right; }
@keyframes coauthor-highlight {
  0% { box-shadow: 0 0 0 3px rgba(255,204,0,.18); }
  45% { box-shadow: 0 0 0 9px rgba(255,204,0,.34); }
  100% { box-shadow: 0 0 0 3px rgba(255,204,0,.18); }
}
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; color: white; background: #111; box-shadow: 0 10px 28px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.error { color: var(--admin-red); }

@media (max-width: 880px) {
  .content-grid, .stats-content { grid-template-columns: minmax(0, 1fr); }
  .compact-create { position: static; }
  .media-row { grid-template-columns: 1fr 1fr; }
  .lineup-block { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-format-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .admin-header { height: 60px; padding: 0 16px; }
  .admin-product { display: none; }
  .admin-main { width: calc(100% - 24px); padding: 28px 0 60px; }
  .admin-login { margin: 28px auto; padding: 26px 20px; }
  .admin-login h1, .workspace-head h1 { font-size: 30px; }
  .workspace-head { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .account-chip { width: 100%; }
  .account-chip #admin-email { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-chip .btn { margin-left: auto; }
  .admin-nav { grid-template-columns: 1fr 1fr; margin-bottom: 34px; }
  .section-title-row { align-items: flex-start; }
  .section-title-row h2 { font-size: 28px; }
  .refresh-btn { min-width: 42px; padding: 0 12px !important; }
  .admin-card { padding: 20px; border-radius: 16px; }
  .form-grid-event, .media-row, .stats-grid { grid-template-columns: 1fr; }
  .lineup-block, .wide-field { grid-column: auto; }
  .create-button { width: 100%; }
  .social-fields { grid-template-columns: 1fr; }
  .format-actor-options { grid-template-columns: 1fr; }
  .team-member-picker { grid-template-columns: 1fr; }
  .team-card-inner { flex-direction: column; }
  .team-card-content { width: 100%; }
  .membership-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; align-items: center; }
  .membership-name { grid-column: 2 / -1; white-space: normal; overflow-wrap: anywhere; }
  .membership-role-input { grid-column: 1 / 3; width: 100% !important; margin-left: 0; }
  .membership-save { grid-column: 3; }
  .membership-remove { grid-column: 1 / -1; justify-self: start; }
  .performer-thumb { width: 64px; height: 78px; }
  .coauthors-card-head, .coauthor-row { align-items: stretch; flex-direction: column; }
  .coauthor-spent { text-align: left; }
  .format-library-head { align-items: stretch; flex-direction: column; }
  .format-library-tools, .admin-format-library { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Keep the controls visible above the fold during a live performance. */
.admin-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.admin-page.is-live .admin-main { padding-top: 20px; }
.admin-page.is-live .workspace-head { margin-bottom: 16px; }
.admin-page.is-live .workspace-head h1 { font-size: 22px; }
.admin-page.is-live .workspace-head .admin-eyebrow { display: none; }
.admin-page.is-live .admin-nav { margin-bottom: 20px; }
.admin-page.is-live .section-title-row { margin-bottom: 14px; }
.admin-page.is-live .section-title-row h2 { font-size: clamp(21px, 3vw, 28px); }
.admin-page.is-live .live-card { padding: 20px; }
@media (max-width: 760px) {
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding: 5px; }
  .admin-nav .tab { flex: 0 0 auto; padding: 10px 14px; min-height: 44px; }
  .admin-page.is-live .workspace-head { flex-direction: row; align-items: center; gap: 10px; }
  .admin-page.is-live .account-chip { width: auto; }
  .admin-page.is-live #admin-email, .admin-page.is-live .avatar { display: none; }
}

/* Large format catalog: bounded pages retain room for the program editor. */
.admin-catalog-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin-top:16px; font-size:12px; color:var(--admin-muted); }
.admin-catalog-pages button:disabled { opacity:.45; cursor:default; }
.admin-library-format > .admin-catalog-warning { margin-top:10px; color:#805321; font-size:11px; }
.format-library-tools { scroll-margin-top:24px; }
