:root {
  color-scheme: light;
  --bg: #eef3f4;
  --panel: #ffffff;
  --panel-soft: #f8faf9;
  --text: #182027;
  --muted: #66737f;
  --line: #d9e2e4;
  --accent: #0f7b6c;
  --accent-dark: #0a6156;
  --accent-soft: #e9f6f3;
  --danger: #b42318;
  --danger-soft: #fff1ef;
  --warn: #8a570c;
  --warn-soft: #fff8ed;
  --ok: #147a3f;
  --ok-soft: #edf8f1;
  --shadow: 0 18px 44px rgba(24, 32, 39, 0.09);
  --small-shadow: 0 8px 22px rgba(24, 32, 39, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7faf9 0, var(--bg) 360px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
textarea,
select,
input {
  font: inherit;
}

h1,
h2,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1140px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.workspace,
.app-area {
  display: grid;
  gap: 18px;
}

.utility-bar {
  display: grid;
  justify-content: flex-end;
  justify-items: end;
  align-items: start;
  gap: 10px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(217, 226, 228, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--small-shadow);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.mini-program-callout {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid rgba(15, 123, 108, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(160deg, #ffffff 0%, #f8faf9 58%, #fff8ed 100%);
  padding: 14px;
  box-shadow: 0 14px 32px rgba(24, 32, 39, 0.08);
}

.mini-program-copy {
  display: grid;
  gap: 5px;
}

.mini-program-eyebrow {
  width: max-content;
  border: 1px solid #efd39f;
  border-radius: 999px;
  background: #fff8ed;
  color: var(--warn);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 820;
}

.mini-program-copy strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.topbar .mini-program-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-program-qr-frame {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mini-program-qr {
  display: block;
  width: min(100%, 178px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.site-logo {
  width: 96px;
  height: 68px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 32, 39, 0.1);
}

.brand-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.brand-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
  font-weight: 800;
}

.topbar p {
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.account-actions {
  display: grid;
  align-items: center;
  justify-content: flex-end;
  justify-items: end;
  gap: 10px;
  min-width: 0;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.utility-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(15, 123, 108, 0.28);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 123, 108, 0.16);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.utility-nav-link:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(15, 123, 108, 0.2);
}

.utility-nav-link:active {
  transform: translateY(1px);
}

.user-badge {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(24, 32, 39, 0.03);
}

#userEmail {
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  text-align: right;
}

.user-email-line {
  grid-column: 1 / -1;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, auto));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.language-switch button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.language-switch button:hover,
.language-switch button.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: none;
}

.seo-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
}

.seo-copy h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 780;
}

.seo-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.platform-list span,
.platform-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfe0dc;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.platform-list a:hover {
  border-color: #a8cbc4;
  background: #dff1ed;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover h2 {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.content-grid article,
.faq-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
}

.content-grid article {
  padding: 16px;
}

.content-grid h2,
.faq-section h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 780;
}

.content-grid p,
.faq-section p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.faq-section {
  display: grid;
  gap: 0;
  padding: 18px;
}

.faq-section h2 {
  margin-bottom: 6px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 780;
  line-height: 1.35;
}

.platform-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.platform-breadcrumb a {
  color: var(--accent-dark);
  font-weight: 760;
  text-decoration: none;
}

.platform-breadcrumb a:hover {
  text-decoration: underline;
}

.platform-hero h1 {
  max-width: 760px;
}

.platform-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.platform-detail-grid article,
.related-platforms {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
}

.platform-detail-grid article {
  padding: 16px;
}

.platform-detail-grid h2,
.related-platforms h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 780;
}

.platform-detail-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.related-platforms {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.related-platforms .platform-list {
  justify-content: flex-start;
  max-width: none;
}

.admin-shell {
  max-width: 1180px;
}

.admin-layout {
  display: grid;
  gap: 18px;
}

.admin-header,
.admin-panel,
.admin-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
}

.admin-header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.admin-header h1 {
  margin-top: 8px;
}

.admin-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-summary article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.admin-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--small-shadow);
}

.admin-tab {
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.admin-tab:hover {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--text);
  box-shadow: none;
}

.admin-tab.is-active {
  border-color: rgba(15, 123, 108, 0.24);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 123, 108, 0.16);
}

.admin-panel {
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-users-table {
  min-width: 1040px;
}

.admin-failures-table {
  min-width: 980px;
}

.admin-downloads-table {
  min-width: 1180px;
}

.admin-resolves-table {
  min-width: 1120px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  vertical-align: top;
}

.admin-table th {
  background: #fbfdfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
}

.admin-page-size,
.admin-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page-size label,
.admin-page-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.admin-page-size select {
  width: auto;
  min-width: 86px;
  height: 36px;
}

.admin-page-controls button {
  min-height: 36px;
  padding: 0 12px;
}

.user-email-cell {
  font-weight: 760;
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.url-cell,
.error-cell {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-panel,
.download-form,
.jobs-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.form-head h2,
.panel-title h2 {
  font-size: 18px;
  line-height: 1.25;
}

.form-head p,
.panel-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

textarea,
select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
}

select {
  height: 42px;
  padding: 0 10px;
}

textarea::placeholder,
input::placeholder {
  color: #9aa6ae;
}

textarea:focus,
select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.14);
}

.retention-notice {
  border: 1px solid #efd39f;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.controls {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  justify-content: end;
  align-items: center;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(15, 123, 108, 0.16);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#refreshButton,
.secondary-button,
.user-badge button,
.cancel-button,
.delete-job-button {
  border: 1px solid var(--line);
  background: #f1f5f5;
  color: var(--text);
}

#refreshButton:hover,
.secondary-button:hover,
.user-badge button:hover,
.cancel-button:hover {
  background: #e5eeee;
  box-shadow: none;
}

.delete-job-button {
  color: var(--danger);
}

.delete-job-button:hover {
  background: var(--danger-soft);
  box-shadow: none;
}

.jobs-panel {
  overflow: hidden;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: var(--panel-soft);
}

.jobs-list {
  display: grid;
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.job {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.16s ease;
}

.job:hover {
  background: #fbfdfc;
}

.job:last-child {
  border-bottom: 0;
}

.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-url {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-weight: 760;
}

.job-meta,
.job-message {
  color: var(--muted);
  font-size: 13px;
}

.state {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 780;
  background: #eef2f4;
  color: var(--muted);
}

.state.running,
.state.queued {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.state.finished {
  background: var(--ok-soft);
  color: var(--ok);
}

.state.failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.state.cancelled {
  background: #f1f2f3;
  color: #4f5861;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef0;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #32a38f);
  transition: width 0.2s ease;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.file-actions {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.file-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #cfe0dc;
  color: var(--accent-dark);
  background: var(--accent-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.file-link:hover {
  border-color: #a8cbc4;
  background: #dff1ed;
}

.play-file-button {
  min-height: 36px;
  padding: 0 12px;
}

.source-results {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.source-results[hidden] {
  display: none;
}

.source-results-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
}

.source-result-list {
  display: grid;
  gap: 10px;
}

.source-result {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.source-media-item {
  display: grid;
  gap: 10px;
}

.source-media-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.source-media-kind {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.source-url {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.35;
}

.copy-source-button,
.source-open-link {
  min-height: 34px;
}

.source-video-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.source-empty {
  border-radius: 8px;
  padding: 14px;
  text-align: left;
}

.error-text {
  white-space: pre-wrap;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 20, 28, 0.48);
}

.auth-panel {
  width: min(740px, calc(100vw - 32px));
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.modal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.close-auth-button {
  min-width: 36px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  background: #f1f5f5;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.auth-panel h2 {
  font-size: 21px;
  line-height: 1.25;
}

.auth-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.player-panel {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.player-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.player-body {
  display: grid;
  place-items: center;
  min-height: 240px;
  background: #0d1517;
}

.player-image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
  background: #0d1517;
}

.player-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
}

.player-media {
  display: block;
  width: 100%;
  max-height: calc(100vh - 112px);
  background: #0d1517;
}

video.player-media {
  aspect-ratio: 16 / 9;
}

.player-audio-wrap {
  display: grid;
  gap: 14px;
  width: min(720px, calc(100vw - 56px));
  padding: 22px;
  color: #fff;
}

.player-audio-wrap .player-media {
  background: transparent;
}

.player-file-name {
  overflow-wrap: anywhere;
  font-weight: 760;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-message[data-tone="ok"] {
  color: var(--ok);
}

.form-message[data-tone="error"] {
  color: var(--danger);
}

@media (max-width: 860px) {
  .shell {
    width: min(100vw - 20px, 1140px);
    padding: 14px 0 28px;
  }

  .topbar,
  .utility-bar,
  .brand-lockup,
  .seo-copy,
  .content-grid,
  .platform-detail-grid,
  .admin-header,
  .admin-summary,
  .job-head,
  .auth-panel {
    display: grid;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .utility-bar {
    justify-content: stretch;
    gap: 10px;
  }

  .brand-lockup {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .site-logo {
    width: 74px;
    height: 52px;
  }

  .mini-program-callout {
    grid-template-columns: minmax(0, 1fr) 122px;
    align-items: center;
  }

  .mini-program-copy strong,
  .mini-program-copy p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mini-program-qr {
    width: 104px;
  }

  .seo-copy {
    grid-template-columns: 1fr;
  }

  .platform-list {
    justify-content: flex-start;
    max-width: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .platform-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    display: grid;
  }

  .admin-page-size,
  .admin-page-controls {
    justify-content: space-between;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .account-actions {
    justify-content: stretch;
    justify-items: stretch;
  }

  .account-actions,
  .account-actions > button,
  .utility-nav,
  .language-switch,
  .user-badge {
    width: 100%;
  }

  .utility-nav {
    justify-content: stretch;
  }

  .utility-nav-link {
    width: 100%;
  }

  .user-badge {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  #userEmail {
    max-width: none;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: left;
  }

  .panel-title,
  .form-head {
    display: grid;
    gap: 12px;
  }

  .controls,
  .auth-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .controls button,
  .auth-actions button {
    width: 100%;
  }

  .job-url {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .source-media-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .source-open-link,
  .copy-source-button {
    justify-content: center;
    width: 100%;
  }

  .file-actions,
  .file-link,
  .play-file-button {
    width: 100%;
  }

  .file-link,
  .play-file-button {
    justify-content: center;
  }

  .player-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
  }
}
