:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #171b22;
  --muted: #647184;
  --line: #dce1e8;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(21, 32, 43, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0 0 16px; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: 20px; }
.heading-icon {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  border-radius: 14px;
  background: #e6f4f1;
  color: var(--brand-dark);
  font-size: 22px;
}
input, textarea, select, button {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
button, .primary, .secondary {
  cursor: pointer;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.primary { background: var(--brand); padding: 10px 14px; border-radius: 8px; }
button:hover, .primary:hover, .secondary:hover { background: var(--brand-dark); color: #fff; }
button:disabled { cursor: wait; opacity: .68; }
.secondary {
  background: #314154;
  padding: 10px 14px;
  border-radius: 8px;
}
.secondary.blue { background: #2563eb; }
.secondary.blue:hover { background: #1d4ed8; }
.small-action {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}
.loading-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
}
.loading-modal[hidden] { display: none; }
.loading-panel {
  width: min(320px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.loading-panel p { margin: 0; color: var(--muted); }
.loading-panel.is-error { border-top: 4px solid #dc2626; }
.loading-panel.is-error strong { color: #991b1b; }
.app-dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
}
.app-dialog-modal[hidden] { display: none; }
.app-dialog-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.app-dialog-panel p { margin: 0; color: var(--muted); }
.app-dialog-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
label { display: grid; gap: 6px; font-weight: 700; color: #2c3542; }
label input, label textarea, label select { font-weight: 400; color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check input { width: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(126px, auto);
  align-items: center;
  gap: 10px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.brand {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  justify-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}
.topbar-left-actions {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
}
.back-button {
  width: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: #1f2937;
  font-size: 28px;
  line-height: 1;
}
.back-button:hover { background: #dce1e8; color: #111827; }
.account-top-button {
  width: auto;
  min-width: 76px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  justify-self: end;
  border-radius: 999px;
  background: #e6f4f1;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
}
.account-top-button span {
  color: var(--brand-dark);
}
.account-top-button:hover span {
  color: #fff;
}
.topbar-actions {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}
.package-top-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}
.package-top-button::before {
  content: "♛";
  color: #d97706;
}
.package-top-button:hover {
  background: #f59e0b;
  color: #fff;
}
.package-top-button:hover::before {
  color: #fff;
}
.account-top-button strong {
  font-size: 13px;
}
.account-top-button:hover {
  background: var(--brand);
  color: #fff;
}
.app-top-logo {
  width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(20, 27, 38, .10);
}
.theme-dark {
  color-scheme: dark;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --surface: #111827;
  --line: #263244;
  background: #0b1120;
  color: var(--ink);
}
.theme-dark.app-body {
  background: linear-gradient(180deg, #0b1120 0%, #111827 100%);
}
.theme-dark .topbar,
.theme-dark .bottom-nav,
.theme-dark .panel,
.theme-dark .auth-box,
.theme-dark .gallery-modal-panel,
.theme-dark .account-modal,
.theme-dark .loading-panel,
.theme-dark .app-dialog-panel {
  background: rgba(17, 24, 39, .96);
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .loading-modal,
.theme-dark .gallery-modal,
.theme-dark .app-dialog-modal {
  background: rgba(2, 6, 23, .72);
}
.theme-dark label,
.theme-dark label input,
.theme-dark label textarea,
.theme-dark label select,
.theme-dark input,
.theme-dark textarea,
.theme-dark select {
  color: var(--ink);
}
.theme-dark input,
.theme-dark textarea,
.theme-dark select {
  background: #0f172a;
  border-color: #334155;
}
.theme-dark .auth-field {
  background: #0f172a;
  border-color: #334155;
}
.theme-dark .auth-field input,
.theme-dark .password-toggle {
  color: var(--ink);
}
.theme-dark .tool-tile,
.theme-dark .output-card,
.theme-dark .playlist-row-card,
.theme-dark .stream-row-card,
.theme-dark .playlist-list,
.theme-dark .gallery-source-card,
.theme-dark .gallery-item,
.theme-dark .selected-gallery-pill,
.theme-dark .stat-card,
.theme-dark .source-picker,
.theme-dark .source-mode-tabs label,
.theme-dark .gallery-filter,
.theme-dark .gallery-modal-filter,
.theme-dark .provider-card,
.theme-dark .provider-settings,
.theme-dark .settings-block,
.theme-dark .merge-layer,
.theme-dark .merge-slot,
.theme-dark .channel-logo-thumb,
.theme-dark .settings-logo,
.theme-dark .data-table,
.theme-dark .dt-container,
.theme-dark .subtitle-style-options .check,
.theme-dark .activity-row,
.theme-dark .gallery-source-notice {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .gallery-source-notice {
  background: #0f172a;
  color: #bfdbfe;
  border-color: #1d4ed8;
}
.theme-dark .stream-hero {
  border-color: #164e46;
  background:
    radial-gradient(circle at 82% 12%, rgba(45, 212, 191, .16), transparent 28%),
    linear-gradient(135deg, #0b1f23 0%, #102d31 100%);
}
.theme-dark .stream-hero p,
.theme-dark .stream-security-note {
  color: var(--muted);
}
.theme-dark .stream-security-note,
.theme-dark .source-mode-tabs label:has(input:checked),
.theme-dark .source-mode-tabs label.is-static:first-child {
  background: #0f2527;
  border-color: #1d6861;
}
.theme-dark .secondary.ghost {
  background: #0f172a;
  border-color: #334155;
  color: var(--ink);
}
.theme-dark .gallery-source-notice a,
.theme-dark .muted,
.theme-dark .form-note,
.theme-dark .loading-panel p,
.theme-dark .app-dialog-panel p,
.theme-dark .dt-container .dt-info,
.theme-dark .dt-container .dt-length,
.theme-dark .dt-container .dt-search,
.theme-dark .dt-container .dt-paging,
.theme-dark small {
  color: var(--muted);
}
.theme-dark .heading-icon,
.theme-dark .tool-icon {
  background: #0f172a;
  color: #99f6e4;
}
.theme-dark .app-top-logo {
  background: #0f172a;
  border-color: #334155;
}
.app-top-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.app-top-logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.is-loading .back-button {
  visibility: hidden;
}
nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
nav form, .actions form { margin: 0; }
nav button { width: auto; padding: 8px 12px; min-height: 36px; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 104px; display: grid; gap: 24px; }
.app-body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #f7fbfb 0%, #eef4f8 100%); }
.stream-admin-shell { gap: 10px; }
.stream-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 34%);
  gap: 18px;
  align-items: center;
  min-height: 202px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d9f3ed;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(15, 118, 110, .12), transparent 28%),
    linear-gradient(135deg, #f3fffb 0%, #e4f8f3 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stream-hero h1,
.playlist-builder-card h1 { margin-bottom: 8px; }
.stream-hero p { max-width: 560px; margin: 0 0 18px; color: #314154; }
.stream-hero-art {
  position: relative;
  min-height: 150px;
}
.stream-hero-window {
  position: absolute;
  right: 22px;
  top: 20px;
  width: min(210px, 100%);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 8px solid #c7e9e1;
  border-top-width: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #047a70, #11a88f);
  box-shadow: 0 18px 34px rgba(15, 118, 110, .22);
}
.stream-hero-window i {
  width: 62px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 900;
}
.stream-hero-window b {
  position: absolute;
  right: -13px;
  top: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
}
.stream-hero-camera {
  position: absolute;
  right: 4px;
  bottom: 18px;
  width: 72px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22324a, #5eead4);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .20);
}
.stream-hero-camera::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  left: 18px;
  top: 12px;
  border: 7px solid rgba(255,255,255,.45);
  border-radius: 999px;
}
.stream-form { gap: 10px; }
.stream-step-card,
.playlist-builder-card {
  display: grid;
  gap: 16px;
}
.stream-step-title {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--brand-dark);
}
.stream-step-title span,
.stream-step-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.stream-choice-section {
  display: grid;
  gap: 12px;
}
.stream-choice-section.compact {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.stream-form .source-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stream-form .source-mode-tabs label,
.playlist-builder-card .source-mode-tabs label {
  position: relative;
  min-height: 70px;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 14px 12px 44px;
  text-align: left;
}
.stream-form .source-mode-tabs label > input,
.playlist-builder-card .source-mode-tabs label > input {
  position: absolute;
  left: 14px;
}
.source-mode-tabs label > span {
  color: var(--brand-dark);
  font-size: 18px;
}
.source-mode-tabs label > strong,
.source-mode-tabs label > small {
  display: block;
  min-width: 0;
}
.source-mode-tabs label > small {
  grid-column: 2;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.source-mode-tabs label:has(input:checked),
.source-mode-tabs label.is-static:first-child {
  border-color: #a7eee1;
  background: #f0fffb;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .08);
}
.source-mode-tabs label.muted-option {
  opacity: .72;
}
.stream-wide-action {
  min-height: 48px;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), #008f81);
  box-shadow: 0 12px 22px rgba(15, 118, 110, .14);
}
.stream-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stream-advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.stream-security-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c9f3ea;
  border-radius: 8px;
  background: #effefa;
  color: #24524e;
}
.stream-security-note::before {
  content: "◈";
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #d9fbf3;
  color: var(--brand-dark);
}
.stream-security-note span {
  font-size: 13px;
}
.stream-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
}
.secondary.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: #2c3542;
}
.secondary.ghost:hover {
  border-color: var(--brand);
  background: #f0fffb;
  color: var(--brand-dark);
}
.playlist-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.playlist-row-card,
.stream-row-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stream-row-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 43, .04);
}
.playlist-row-card:last-child { border-bottom: 0; }
.playlist-thumb {
  position: relative;
  width: 104px;
}
.playlist-thumb b {
  position: absolute;
  right: 6px;
  bottom: 5px;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.theme-dark .stream-hero {
  border-color: #164e46;
  background:
    radial-gradient(circle at 82% 12%, rgba(45, 212, 191, .16), transparent 28%),
    linear-gradient(135deg, #0b1f23 0%, #102d31 100%);
}
.theme-dark .stream-hero p,
.theme-dark .stream-security-note {
  color: var(--muted);
}
.theme-dark .stream-security-note,
.theme-dark .source-mode-tabs label:has(input:checked),
.theme-dark .source-mode-tabs label.is-static:first-child {
  background: #0f2527;
  border-color: #1d6861;
}
.theme-dark .playlist-list,
.theme-dark .playlist-row-card,
.theme-dark .stream-row-card,
.theme-dark .secondary.ghost {
  background: #0f172a;
  border-color: #334155;
  color: var(--ink);
}
.dashboard-body {
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 110, .08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f7fbf8 54%, #fffaf2 100%);
}
.app-shell { width: min(860px, calc(100% - 24px)); }
.dashboard-body .app-shell {
  width: min(1060px, calc(100% - 28px));
  gap: 18px;
}
.narrow { width: min(720px, calc(100% - 32px)); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 28px);
}
.app-body .panel, .tool-tile { box-shadow: var(--shadow); }
.app-topbar { border-bottom: 0; box-shadow: 0 1px 24px rgba(20, 27, 38, .08); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.app-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e6f4f1;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 18px;
}
.stack { display: grid; gap: 16px; }
.auth-form label {
  display: grid;
  gap: 8px;
}
.auth-field {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.auth-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 184, 134, .14);
}
.auth-field-icon {
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
}
.auth-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 10px;
  outline: none;
}
.password-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.password-toggle:hover {
  background: rgba(18, 184, 134, .10);
}
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.grid-form label:has(textarea), .grid-form button { grid-column: 1 / -1; }
.grid-form .save-setting-button {
  grid-column: auto;
  justify-self: start;
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  font-size: inherit;
}
.grid-form .form-actions .save-setting-button.small-action {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions button, .form-actions .primary, .form-actions .secondary { flex: 1 1 180px; }
.form-actions .small-action { flex: 0 0 auto; }
.compact-actions { justify-content: flex-start; align-items: center; }
.ai-actions { margin-top: -8px; }
.form-note { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); }
.settings-block, .provider-settings {
  display: grid;
  gap: 12px;
}
.provider-settings {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.provider-card {
  position: relative;
  min-height: 112px;
  display: grid;
  align-items: start;
  padding: 14px;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.provider-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.provider-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.provider-card strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
}
.provider-card small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.section-title {
  margin: 0 0 10px;
  color: #263244;
  font-size: 14px;
  font-weight: 900;
}
.clipper-choice-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex: 0 0 auto;
  transition: background .18s ease;
}
.switch-row i::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  top: 3px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .25);
  transition: transform .18s ease;
}
.switch-row input:checked + i { background: var(--brand); }
.switch-row input:checked + i::after { transform: translateX(22px); }
.eq-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-actions .small-action {
  flex: 0 0 auto;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.inline-form input {
  flex: 1 1 260px;
}
.inline-form .small-action {
  flex: 0 0 auto;
}
.eq-slider {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  background: #fff;
}
.eq-slider strong { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.eq-slider input[type="range"] { padding: 0; accent-color: var(--brand); }
.clipper-options {
  display: grid;
  gap: 12px;
}
.clipper-option {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #d4dbe6;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.clipper-option input, .clipper-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.clipper-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.clipper-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.clipper-option small, .switch-row small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}
.lyrics-mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}
.lyrics-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.lyrics-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lyrics-mode-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.lyrics-mode-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.lyrics-mode-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}
.lyrics-mode-preview {
  width: 84px;
  height: 92px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(15, 23, 42, .42), rgba(15, 23, 42, .42)),
    linear-gradient(145deg, #1f2937, #0f766e 54%, #111827);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  overflow: hidden;
}
.lyrics-mode-preview b,
.lyrics-mode-preview i {
  display: block;
  align-self: center;
  justify-self: center;
  max-width: 100%;
  padding: 2px 4px;
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  overflow-wrap: anywhere;
}
.lyrics-mode-preview-one {
  align-content: center;
}
.lyrics-mode-preview-one b {
  color: #ff2222;
  font-size: 13px;
}
.lyrics-mode-preview-one i {
  font-size: 11px;
}
.lyrics-mode-preview-two {
  align-content: center;
  background: #2f302d;
}
.lyrics-mode-preview-two small,
.lyrics-mode-preview-two b {
  display: block;
  justify-self: center;
  color: #ffe58a;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: none;
}
.lyrics-mode-preview-two small {
  font-size: 6px;
  letter-spacing: 1px;
}
.lyrics-mode-preview-two b {
  font-size: 18px;
}
.lyrics-mode-preview-three {
  align-content: center;
  background: #f8fafc;
}
.lyrics-mode-preview-three b,
.lyrics-mode-preview-three i {
  text-shadow: none;
}
.lyrics-mode-preview-three b {
  font-size: 15px;
  line-height: .95;
}
.lyrics-mode-preview-three em {
  color: #39aee4;
  font-style: normal;
}
.lyrics-mode-preview-three strong {
  color: #f15b86;
}
.lyrics-mode-preview-three i {
  color: #2f9ccd;
  font-size: 9px;
  font-weight: 800;
}
.lyrics-mode-preview-four {
  align-content: center;
  background:
    linear-gradient(rgba(42, 129, 118, .78), rgba(42, 129, 118, .78)),
    linear-gradient(145deg, #78b8a9, #2b7f74);
}
.lyrics-mode-preview-four b {
  font-size: 12px;
}
.lyrics-mode-preview-four i {
  color: transparent;
  font-size: 11px;
  -webkit-text-stroke: 1px #fff;
  text-shadow: none;
}
.lyrics-mode-preview-full {
  align-content: center;
}
.lyrics-mode-preview-top {
  align-content: start;
}
.lyrics-mode-preview-bottom {
  align-content: end;
}
.lyrics-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(4px);
}
.lyrics-settings-modal.is-visible {
  display: grid;
}
.lyrics-settings-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}
.lyrics-settings-form {
  display: grid;
  gap: 14px;
}
.lyrics-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.lyrics-settings-actions button {
  width: auto;
}
.lyrics-font-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.lyrics-font-picker .section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.lyrics-font-card {
  min-height: 54px;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.lyrics-font-card:hover {
  background: #f0fdfa;
  color: var(--brand-dark);
}
.lyrics-font-card.is-selected {
  border-color: var(--brand);
  background: #e6f4f1;
  color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.clipper-option-art {
  width: 68px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff7ed, #dffcf3);
  color: var(--brand-dark);
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .13);
}
.clipper-option-art i {
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  font-style: normal;
}
.split-art, .gameplay-art { grid-template-rows: 1fr 1fr; gap: 2px; }
.blur-art i { width: 48px; height: 34px; border: 2px solid #2aa198; }
.square-art { background: linear-gradient(160deg, #fce7f3, #dff7ff); }
.square-art i { border: 2px solid #22a7b7; }
.face-art { background: linear-gradient(160deg, #fff1f2, #eef2ff); color: #be4169; }
.face-art i { border: 2px dashed #e36a91; }
.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}
.switch-row input {
  flex: 0 0 auto;
  width: 58px;
  height: 32px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 4px;
  cursor: pointer;
}
.switch-row input::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease;
}
.switch-row input:checked {
  background: var(--brand);
}
.switch-row input:checked::after {
  transform: translateX(26px);
}
.clipper-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.clipper-tabs-two { grid-template-columns: repeat(2, 1fr); }
.clipper-tabs-three { grid-template-columns: repeat(3, 1fr); }
.clipper-tabs label {
  position: relative;
  display: block;
  cursor: pointer;
}
.clipper-tabs span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef2f6;
  color: #536174;
  font-size: 13px;
  font-weight: 900;
}
.clipper-tabs input:checked + span {
  background: #e6f4f1;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px #b7ddd5;
}
.clipper-layout-settings {
  gap: 12px;
}
.clipper-setting-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.clipper-setting-head .section-title {
  margin-bottom: 4px;
}
.clipper-setting-badge {
  flex: 0 0 auto;
  max-width: 190px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px #d7ebe7;
  text-align: center;
  line-height: 1.2;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.range-row input {
  grid-column: 1 / -1;
  accent-color: var(--brand);
}
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project-card { display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.project-card-link { display: grid; gap: 8px; color: inherit; }
.project-card:hover { border-color: var(--brand); }
.status { width: max-content; padding: 3px 8px; border-radius: 999px; background: #e6f4f1; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.muted, small { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--danger); }
.job-error-note {
  max-width: 320px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}
.eyebrow { color: var(--brand-dark); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 900; }
.meta, .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta span { background: #eef2f6; border-radius: 999px; padding: 6px 10px; color: #314154; }
.actions { margin-top: 18px; }
.actions > * { width: auto; }
.actions input { max-width: 260px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.big { min-height: 320px; white-space: pre-wrap; }
.scene-list { display: grid; gap: 14px; }
.scene { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.scene > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.scene form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scene form input { flex: 1 1 240px; }
.scene form button { width: auto; padding: 8px 12px; min-height: 38px; }
.scene-flow-result {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scene-flow-result .mini-thumb {
  width: 72px;
  height: 48px;
  flex: 0 0 auto;
}
.download { color: var(--brand-dark); font-weight: 800; }
.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.history-action {
  width: auto;
  min-width: 88px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.download-button { background: var(--brand); }
.download-button:hover { background: var(--brand-dark); color: #fff; }
.play-button { background: #0f172a; }
.play-button:hover { background: #1e293b; color: #fff; }
.use-button { background: #2563eb; }
.use-button:hover { background: #1d4ed8; color: #fff; }
.stop-button { background: #b45309; }
.stop-button:hover { background: #92400e; }
.gallery-source-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 12px;
}
.gallery-source-notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gallery-source-notice a {
  margin-left: auto;
  color: #1d4ed8;
  font-weight: 900;
}
.source-picker {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.source-picker .section-title { margin: 0; }
.source-mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}
.source-mode-tabs label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}
.source-mode-tabs input { width: auto; }
.gallery-source-fields {
  display: grid;
  gap: 8px;
}
.merge-layer {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.merge-layer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.merge-layer-head .section-title {
  margin-bottom: 4px;
}
.merge-slots {
  display: grid;
  gap: 12px;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .56);
}
.gallery-modal.is-visible { display: grid; }
.gallery-modal-panel {
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.gallery-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.gallery-modal-close {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.gallery-modal-filter {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.gallery-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
  overflow: auto;
}
.metadata-text {
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.metadata-text + button {
  margin: 14px 16px 16px;
}
.metadata-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.metadata-view-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}
.metadata-view-table th,
.metadata-view-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.metadata-view-table th {
  position: sticky;
  top: 0;
  background: #e9f7f3;
  color: #0f513f;
  font-weight: 800;
}
.metadata-view-table td {
  background: #fff;
}
.gallery-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.gallery-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.gallery-modal-delete {
  align-self: start;
  justify-self: start;
  width: 92px;
  min-width: 0;
  margin-left: 8px;
}
.dynamic-audio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.gallery-item:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.gallery-item.is-selected {
  border-color: #16a34a;
  background: #f0fdf4;
}
.gallery-thumb {
  width: 92px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #0f172a;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb-fallback {
  color: #fff;
  font-size: 22px;
}
.music-logo-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827 0%, #1f2937 52%, #0f766e 100%);
}
.music-logo-thumb svg {
  width: min(48%, 58px);
  height: min(48%, 58px);
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-logo-thumb svg path {
  fill: #fff;
  stroke: none;
}
.gallery-item-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.gallery-item-info strong,
.gallery-item-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.gallery-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gallery-page-head h2 { margin: 0; }
.gallery-page-head .eyebrow { margin-bottom: 4px; }
.gallery-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.output-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.gallery-source-card, .output-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.gallery-source-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}
.gallery-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-source-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.gallery-source-info strong,
.gallery-source-title,
.gallery-source-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-source-title {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: text;
}
.gallery-source-title:hover {
  color: var(--brand);
  text-decoration: underline;
}
.selected-gallery-list {
  display: grid;
  gap: 8px;
}
.selected-gallery-pill {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.selected-gallery-pill span {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.mini-thumb,
.list-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef2f6;
  color: var(--brand-dark);
  font-weight: 900;
}
.mini-thumb {
  width: 54px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.list-thumb {
  width: 104px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.mini-thumb img,
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.selected-gallery-pill strong,
.selected-gallery-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-gallery-pill button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 20px;
  line-height: 1;
}
.tool-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dashboard-body .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.dashboard-title-row h1 { margin-bottom: 6px; }
.dashboard-hero,
.dashboard-system-panel,
.dashboard-jobs-panel,
.dashboard-tools-panel {
  padding: clamp(18px, 3vw, 24px);
}
.dashboard-project-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .26);
}
.dashboard-project-summary .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}
.dashboard-system-panel .system-metrics { margin-top: 12px; }
.dashboard-system-panel:empty { display: none; }
.dashboard-job-cards { margin-top: 10px; }
.dashboard-job-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #475467;
  font-weight: 800;
}
.dashboard-job-footer > span {
  color: var(--brand-dark);
}
.dashboard-job-footer a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
}
.dashboard-tools-panel .tool-menu {
  margin-top: 12px;
}
.system-metrics {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.system-gauge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.system-gauge-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 206px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.system-gauge-card.system-usage-warning {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 8px 28px rgba(245, 158, 11, .12);
}
.system-gauge-card.system-usage-warning > strong,
.system-gauge-card.system-usage-warning .donut-gauge-inner strong {
  color: #f59e0b;
}
.system-gauge-card.system-usage-danger {
  border-color: rgba(239, 68, 68, .62);
  box-shadow: 0 8px 28px rgba(239, 68, 68, .14);
}
.system-gauge-card.system-usage-danger > strong,
.system-gauge-card.system-usage-danger .donut-gauge-inner strong {
  color: #ef4444;
}
.system-gauge-card h3 {
  justify-self: start;
  margin: 0 0 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.system-gauge-card > strong,
.donut-gauge-inner strong {
  color: var(--gauge-color, #2eb872);
  font-size: 24px;
  line-height: 1;
}
.system-gauge-card small,
.donut-gauge-inner small {
  margin-top: 8px;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}
.semi-gauge {
  position: relative;
  width: min(176px, 74%);
  aspect-ratio: 2 / 1;
  margin-top: 6px;
  overflow: hidden;
}
.semi-gauge-track {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 100%, #fff 0 50%, transparent 51%),
    conic-gradient(from 270deg at 50% 100%, var(--gauge-color, #2eb872) var(--gauge-angle, 0deg), #e9eef4 0 180deg, transparent 0);
}
.semi-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 7px;
  border-radius: 999px;
  background: var(--gauge-color, #2eb872);
  transform: translateX(-4px) rotate(var(--needle-angle, -180deg));
  transform-origin: 4px 50%;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .12);
}
.donut-gauge {
  display: grid;
  place-items: center;
  width: min(154px, 72%);
  aspect-ratio: 1;
  margin-top: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color, #2eb872) var(--gauge-percent, 0%), #e9eef4 0);
}
.donut-gauge-inner {
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}
.network-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.network-metrics .stat-card.compact {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 72px;
}
.network-metrics .stat-card.compact small,
.network-metrics .stat-card.compact strong {
  grid-column: 2;
}
.final-actions,
.scene-clip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.scene-clip-actions form {
  margin: 0;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.check-row input {
  width: auto;
  margin-top: 3px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-card strong { font-size: 30px; line-height: 1; }
.stat-card.compact strong { font-size: 24px; }
.dashboard-body .panel {
  border-color: rgba(148, 163, 184, .32);
  background: rgba(255, 255, 255, .86);
}
.dashboard-body .heading-icon {
  background: #dff7ec;
  color: #0f766e;
}
.dashboard-body .stat-card,
.dashboard-body .tool-tile,
.dashboard-body .activity-row,
.dashboard-body .project-card {
  border-color: rgba(148, 163, 184, .34);
}
.dashboard-body .stats-grid .stat-card::after,
.dashboard-body .dashboard-tools-panel .tool-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  opacity: .55;
  background:
    radial-gradient(22px 14px at 10% 75%, currentColor 0 38%, transparent 40%),
    radial-gradient(28px 18px at 28% 65%, currentColor 0 34%, transparent 36%),
    radial-gradient(24px 16px at 46% 78%, currentColor 0 36%, transparent 38%),
    radial-gradient(30px 20px at 65% 58%, currentColor 0 34%, transparent 36%),
    radial-gradient(25px 16px at 84% 72%, currentColor 0 36%, transparent 38%);
  pointer-events: none;
}
.dashboard-body .stat-card > * {
  position: relative;
  z-index: 1;
}
.dashboard-body .dashboard-tools-panel .tool-tile {
  position: relative;
  overflow: hidden;
}
.dashboard-body .dashboard-tools-panel .tool-tile > * {
  position: relative;
  z-index: 1;
}
.dashboard-body .stats-grid .stat-card:nth-child(4n+1),
.dashboard-body .tool-menu .tool-tile:nth-child(4n+1),
.dashboard-body .activity-list .activity-row:nth-child(4n+1) {
  background: #fff3dc;
  color: #f3c66b;
}
.dashboard-body .stats-grid .stat-card:nth-child(4n+2),
.dashboard-body .tool-menu .tool-tile:nth-child(4n+2),
.dashboard-body .activity-list .activity-row:nth-child(4n+2) {
  background: #eaf8ff;
  color: #8ed4f4;
}
.dashboard-body .stats-grid .stat-card:nth-child(4n+3),
.dashboard-body .tool-menu .tool-tile:nth-child(4n+3),
.dashboard-body .activity-list .activity-row:nth-child(4n+3) {
  background: #f2edff;
  color: #c7b7ff;
}
.dashboard-body .stats-grid .stat-card:nth-child(4n+4),
.dashboard-body .tool-menu .tool-tile:nth-child(4n+4),
.dashboard-body .activity-list .activity-row:nth-child(4n+4) {
  background: #ebfaef;
  color: #9fe3b8;
}
.dashboard-body .stat-card strong,
.dashboard-body .stat-card small,
.dashboard-body .tool-tile strong,
.dashboard-body .tool-tile small {
  color: var(--ink);
}
.dashboard-body .stat-card small,
.dashboard-body .tool-tile small {
  color: var(--muted);
}
.dashboard-body .stat-card:nth-child(4n+1) .tool-icon,
.dashboard-body .tool-tile:nth-child(4n+1) .tool-icon { background: #ffe1a8; color: #92400e; }
.dashboard-body .stat-card:nth-child(4n+2) .tool-icon,
.dashboard-body .tool-tile:nth-child(4n+2) .tool-icon { background: #cceeff; color: #0369a1; }
.dashboard-body .stat-card:nth-child(4n+3) .tool-icon,
.dashboard-body .tool-tile:nth-child(4n+3) .tool-icon { background: #ddd6fe; color: #5b21b6; }
.dashboard-body .stat-card:nth-child(4n+4) .tool-icon,
.dashboard-body .tool-tile:nth-child(4n+4) .tool-icon { background: #c7f2d7; color: #166534; }
.theme-dark.dashboard-body .panel,
.theme-dark.dashboard-body .stat-card,
.theme-dark.dashboard-body .tool-tile,
.theme-dark.dashboard-body .activity-row,
.theme-dark.dashboard-body .project-card {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark.dashboard-body .stat-card .tool-icon,
.theme-dark.dashboard-body .tool-tile .tool-icon,
.theme-dark.dashboard-body .heading-icon {
  background: #0f172a;
  color: #99f6e4;
}
.theme-dark.dashboard-body .stats-grid .stat-card:nth-child(n),
.theme-dark.dashboard-body .tool-menu .tool-tile:nth-child(n),
.theme-dark.dashboard-body .activity-list .activity-row:nth-child(n) {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark.dashboard-body .system-gauge-card,
.theme-dark.dashboard-body .donut-gauge-inner {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark.dashboard-body .semi-gauge-track {
  background:
    radial-gradient(circle at 50% 100%, #111827 0 50%, transparent 51%),
    conic-gradient(from 270deg at 50% 100%, var(--gauge-color, #2eb872) var(--gauge-angle, 0deg), #263244 0 180deg, transparent 0);
}
.theme-dark.dashboard-body .donut-gauge {
  background: conic-gradient(var(--gauge-color, #2eb872) var(--gauge-percent, 0%), #263244 0);
}
.tool-tile {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.tool-tile strong,
.stat-card strong,
.history-card strong,
.project-card strong,
.user-card strong,
.stream-card strong,
.playlist-card strong,
.media-list-card strong {
  overflow-wrap: anywhere;
  white-space: normal;
}
.tool-menu > .tool-tile:not(.compact) {
  min-height: 150px;
  align-content: center;
}
.tool-tile:hover { border-color: var(--brand); }
.tool-tile.compact { grid-template-columns: auto 1fr auto; align-items: center; }
.tool-tile.compact small, .tool-tile.compact strong { grid-column: 2; }
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e6f4f1;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}
.tool-icon.package-price-icon {
  width: auto;
  min-width: 92px;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 15px;
  color: #166534;
  background: #dcfce7;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.package-card.is-highlighted {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 54%, #ecfeff 100%);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.22);
  position: relative;
}
.package-highlight-badge {
  justify-self: start;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}
.package-original-price {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
}
.package-discount {
  justify-self: start;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 800;
  padding: 4px 9px;
}
.account-card-button.tool-tile {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  justify-content: stretch;
}
.account-card-button.tool-tile:hover {
  border-color: var(--brand);
  background: #f8fafc;
  color: var(--ink);
}
.theme-dark .account-card-button.tool-tile,
.theme-dark .account-card-button.tool-tile:hover {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.broadcast-stack {
  display: grid;
  gap: 10px;
}
.broadcast-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ecfdf5;
}
.broadcast-alert.is-notification { background: #eff6ff; }
.broadcast-message { margin-top: 4px; color: var(--muted); }
.broadcast-message p { margin: 0 0 6px; }
.broadcast-close {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
  color: var(--ink);
}
.theme-dark .broadcast-alert,
.theme-dark .broadcast-alert.is-notification {
  background: #0f172a;
  border-color: #263244;
  color: var(--ink);
}
.admin-card-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.admin-card-section > .panel {
  min-width: 0;
  overflow: hidden;
}
.admin-card-section > summary {
  list-style: none;
  cursor: pointer;
  margin-bottom: 12px;
}
.admin-card-section > summary::-webkit-details-marker { display: none; }
.admin-card-section:not([open]) > .panel { display: none; }
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rich-editor-toolbar button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #314154;
}
.rich-editor {
  min-height: 130px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 400;
}
.theme-dark .rich-editor {
  background: #0f172a;
  border-color: #334155;
  color: var(--ink);
}
.usage-grid { margin-bottom: 16px; }
.usage-card {
  align-content: start;
}
.usage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.usage-card-head h2 {
  margin: 0;
}
.usage-help-button {
  width: auto;
  white-space: nowrap;
}
.usage-card-title {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: none;
}
.usage-chart {
  display: grid;
  gap: 10px;
}
.usage-chart svg {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.usage-chart line { stroke: var(--line); }
.usage-chart text { fill: var(--muted); font-size: 12px; }
.usage-chart .usage-point-label {
  font-size: 11px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.usage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.usage-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.usage-card-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}
.content-todo-modal .modal-form {
  max-height: min(680px, calc(100vh - 86px));
  overflow: auto;
}
.content-todo-list {
  display: grid;
  gap: 8px;
}
.content-todo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.content-todo-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}
.content-todo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.theme-dark .usage-chart svg {
  background: #0f172a;
  border-color: #263244;
}
.theme-dark .content-todo-row {
  background: #0f172a;
  border-color: #263244;
}
.tool-help-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .58);
}
.tool-help-modal.is-visible {
  display: grid;
}
.tool-help-panel {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.tool-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.tool-help-head h3 {
  margin: 0;
}
.tool-help-body {
  display: grid;
  gap: 18px;
  padding: 18px;
  overflow: auto;
}
.tool-help-body ol {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 800;
}
.tool-help-body li {
  padding-left: 4px;
}
.tool-help-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tool-help-features span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.theme-dark .tool-help-panel {
  background: #111827;
  border: 1px solid #263244;
}
.theme-dark .tool-help-modal {
  background: rgba(2, 6, 23, .72);
}
.theme-dark .tool-help-features span {
  background: #0f172a;
  border-color: #263244;
  color: #7dd3fc;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(680px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
}
.bottom-nav a.active { background: #e6f4f1; color: var(--brand-dark); }
.bottom-nav .nav-tools {
  position: relative;
  width: 74px;
  height: 74px;
  justify-self: center;
  align-self: start;
  transform: translateY(-18px);
  place-content: center;
  gap: 1px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .30);
}
.bottom-nav .nav-tools:hover,
.bottom-nav .nav-tools.active {
  background: var(--brand-dark);
  color: #fff;
}
.bottom-nav .nav-tools span {
  font-size: 17px;
  line-height: 1;
}
.bottom-nav span { font-size: 11px; }
.streamflow-shell {
  width: min(100% - 24px, 1280px);
}
.streamflow-panel {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.streamflow-frame {
  width: 100%;
  min-height: calc(100vh - 260px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
}
.streamflow-widget {
  display: grid;
  gap: 14px;
}
.pwa-install-button {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 21;
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .28);
  font-size: 13px;
  font-weight: 900;
}
.pwa-install-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .2);
  font-size: 18px;
  line-height: 1;
}
.pwa-install-button.is-ready::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 999px;
  background: #facc15;
}
.pwa-install-help {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #b7ddd5;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(21, 32, 43, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}
.pwa-install-help.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.pwa-install-help strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.pwa-install-help p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pwa-install-help-close {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.progress-wrap {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7ecf2;
}
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #22c55e);
  transition: width .25s ease;
}
.render-progress {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.render-progress[hidden] {
  display: none;
}
.render-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}
.render-progress .muted,
.render-progress .error {
  margin: 0;
  font-size: 12px;
}
.activity-list { display: grid; gap: 10px; }
.activity-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.activity-row .mini-thumb { width: 72px; }
.activity-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.activity-copy span { color: var(--brand-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.activity-copy strong,
.activity-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-list-card {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
}
.media-list-card .history-actions {
  grid-column: 1 / -1;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap.datatable-wrap {
  overflow-x: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px; }
.search-box { margin: 12px 0 16px; }
.data-table th { white-space: nowrap; }
.data-table,
.dt-container {
  width: 100%;
}
.dt-container .data-table {
  width: 100% !important;
}
.dt-container .dt-scroll,
.dt-container .dt-scroll-head,
.dt-container .dt-scroll-body {
  max-width: 100% !important;
  width: 100% !important;
}
.dt-container .dt-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.dt-container table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.dt-container table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  border-radius: 999px;
}
.dt-container {
  color: var(--ink);
}
.dt-container .dt-search,
.dt-container .dt-length,
.dt-container .dt-info,
.dt-container .dt-paging {
  margin: 10px 0;
}
.dt-container .dt-layout-row {
  width: 100%;
  gap: 10px;
}
.dt-container .dt-layout-cell {
  min-width: 0;
}
.dt-container .dt-search input,
.dt-container .dt-length select {
  width: auto;
  min-height: 36px;
  margin-left: 8px;
}
.dt-container .dt-scroll-body {
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.dt-container table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
}
.dt-container .dt-paging .dt-paging-button {
  border-radius: 8px;
}
.subtitle-style-options {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
.subtitle-style-options .check {
  width: auto;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.approve-package-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
}
.approve-package-form label {
  margin: 0;
}
.history-card-list, .user-card-list { display: grid; gap: 12px; }
.history-card-list { display: none; }
.tab-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.tab-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.tab-nav a.active {
  background: #e6f4f1;
  border-color: #b7ddd5;
  color: var(--brand-dark);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h2,
.section-head h3,
.modal-head h3 {
  margin: 0;
}
.section-head button {
  width: auto;
  white-space: nowrap;
}
.youtube-ai-controls {
  display: flex;
  gap: 10px;
  align-items: end;
}
.youtube-ai-controls label {
  min-width: 160px;
}
.youtube-ai-controls select {
  min-height: 36px;
  padding: 7px 9px;
}
.history-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.history-filter button { width: auto; min-width: 96px; }
.history-card, .user-card {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.history-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.history-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.history-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.user-card { box-shadow: none; }
.user-card form { margin: 0; }
.user-edit-form { align-items: end; }
.user-edit-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 10px;
}
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.table-actions form {
  margin: 0;
}
.table-actions button {
  width: auto;
  min-height: 34px;
  padding: 8px 12px;
}
.account-modal {
  width: min(720px, calc(100% - 24px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  position: relative;
}
.account-modal::backdrop {
  background: rgba(15, 23, 42, .56);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-close {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.modal-form {
  padding: 16px;
}
.youtube-auto-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(15, 23, 42, .36);
  backdrop-filter: blur(3px);
}
.youtube-auto-loading[hidden] {
  display: none;
}
.danger-button {
  background: var(--danger);
  border-radius: 8px;
}
.danger-button:hover { background: #8f1d14; }
.danger-button:disabled { background: #9aa4b2; cursor: not-allowed; }
.channel-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.channel-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.channel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.channel-card-head small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
}
.channel-logo-thumb {
  width: 96px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}
.logo-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.settings-logo {
  max-width: 96px;
  max-height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 4px;
}
.package-qris-image {
  width: 50%;
  max-width: 260px;
  height: auto;
  max-height: none;
  justify-self: center;
  margin: 0 auto;
  display: block;
}
.tts-preview {
  display: grid;
  gap: 8px;
}
.tts-preview audio {
  width: 100%;
}
.youtube-thumbnail-preview {
  display: grid;
  place-items: center;
  gap: 6px;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background-color: #f8fafc;
  background-position: var(--thumbnail-position, 50% 50%);
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--muted);
  overflow: hidden;
  text-align: center;
}
.youtube-thumbnail-preview.is-portrait {
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
}
.youtube-thumbnail-preview.has-image {
  background-color: #0f172a;
  background-position: var(--thumbnail-position, 50% 50%);
  background-repeat: no-repeat;
  background-size: contain;
}
.youtube-thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--thumbnail-position, 50% 50%);
  grid-area: 1 / 1;
  transform: scale(var(--thumbnail-zoom, 1));
  transform-origin: var(--thumbnail-position, 50% 50%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.playlist-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.playlist-action-row button {
  min-width: 160px;
}
.playlist-preview-modal {
  width: min(92vw, 820px);
}
.playlist-preview-body {
  display: grid;
  gap: 14px;
  max-height: min(66vh, 680px);
  overflow: auto;
  padding-right: 4px;
}
.playlist-preview-cover {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.playlist-preview-cover-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.playlist-preview-cover-head strong {
  overflow-wrap: anywhere;
}
.playlist-preview-cover-head small {
  color: var(--muted);
  white-space: nowrap;
}
.playlist-preview-track-list {
  display: grid;
  gap: 8px;
}
.playlist-preview-track {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.playlist-drag-handle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  line-height: 1;
}
.playlist-preview-track.is-dragging {
  opacity: .55;
}
.playlist-preview-track input {
  width: 100%;
  min-height: 42px;
}
.playlist-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.youtube-auto-variants {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.youtube-auto-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.youtube-auto-cover-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.youtube-auto-variant-tabs .is-active {
  border-color: var(--brand);
  background: #e6f4f1;
  color: var(--brand-dark);
}
.theme-dark .playlist-preview-cover {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .playlist-drag-handle {
  background: #0f172a;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .youtube-auto-variants {
  background: #111827;
  border-color: #263244;
}
.theme-dark .youtube-auto-variant-tabs .is-active {
  background: #0f172a;
  border-color: var(--brand);
  color: var(--ink);
}
.youtube-thumbnail-preview.has-image small {
  align-self: end;
  justify-self: stretch;
  grid-area: 1 / 1;
  padding: 8px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .72));
}
.theme-dark .youtube-thumbnail-preview {
  border-color: #475569;
  background: #111827;
}
.theme-dark .provider-card strong,
.theme-dark .section-title,
.theme-dark .history-card strong,
.theme-dark .user-card strong,
.theme-dark .gallery-source-info strong,
.theme-dark .gallery-source-title,
.theme-dark .activity-copy strong {
  color: var(--ink);
}
.theme-dark .clipper-choice-section,
.theme-dark .switch-row,
.theme-dark .eq-panel,
.theme-dark .eq-slider,
.theme-dark .lyrics-mode-card,
.theme-dark .clipper-option,
.theme-dark .clipper-tabs label,
.theme-dark .metadata-text,
.theme-dark .gallery-item,
.theme-dark .gallery-item:hover,
.theme-dark .gallery-item.is-selected,
.theme-dark .selected-gallery-pill,
.theme-dark .mini-thumb,
.theme-dark .list-thumb,
.theme-dark .progress-wrap,
.theme-dark .tab-nav a,
.theme-dark .history-card,
.theme-dark .user-card,
.theme-dark .project-card,
.theme-dark .scene,
.theme-dark .meta span,
.theme-dark .channel-card,
.theme-dark .pwa-install-help {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .clipper-tabs label:has(input:checked),
.theme-dark .tab-nav a.active,
.theme-dark .provider-card:has(input:checked),
.theme-dark .lyrics-mode-card:has(input:checked),
.theme-dark .clipper-option:has(input:checked) {
  background: #0f172a;
  border-color: var(--brand);
  color: var(--ink);
}
.theme-dark .gallery-modal-close,
.theme-dark .selected-gallery-pill button {
  background: #0f172a;
  color: var(--ink);
}
.theme-dark .metadata-view-table th {
  background: #123c35;
  color: #d1fae5;
}
.theme-dark .metadata-view-table td {
  background: #0f172a;
  border-color: #263244;
}
.theme-dark .lyrics-settings-panel {
  background: #111827;
  color: var(--ink);
}
.theme-dark .lyrics-font-card {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .lyrics-font-card:hover,
.theme-dark .lyrics-font-card.is-selected {
  background: #0f172a;
  border-color: var(--brand);
  color: var(--ink);
}
.theme-dark .data-table tr,
.theme-dark .data-table td,
.theme-dark .table-wrap,
.theme-dark .bottom-nav a.active,
.theme-dark .status,
.theme-dark .clipper-setting-badge,
.theme-dark .gallery-empty,
.theme-dark .gallery-thumb-fallback,
.theme-dark .stream-card,
.theme-dark .playlist-card,
.theme-dark .media-list-card,
.theme-dark .history-actions,
.theme-dark .account-action-grid .tool-tile {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}
.theme-dark .activity-copy span,
.theme-dark .status {
  color: #99f6e4;
}

@media (max-width: 760px) {
  .topbar { align-items: center; grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(126px, auto); }
  .grid-form, .split { grid-template-columns: 1fr; }
  .shell { width: min(100% - 24px, 860px); margin-top: 22px; margin-bottom: 118px; gap: 18px; }
  .dashboard-body .app-shell { width: min(100% - 20px, 860px); gap: 14px; }
  .app-body { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .panel { padding: 18px; }
  .dashboard-hero,
  .dashboard-system-panel,
  .dashboard-jobs-panel,
  .dashboard-tools-panel { padding: 16px; }
  .dashboard-title-row {
    gap: 12px;
  }
  .dashboard-title-row .heading-icon {
    width: 48px;
    height: 48px;
    margin-right: 0;
    flex: 0 0 auto;
  }
  .dashboard-title-row h1 {
    font-size: 30px;
  }
  .tool-menu, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .package-menu { grid-template-columns: 1fr; }
  .dashboard-body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-project-summary .stats-grid { grid-template-columns: 1fr; }
  .dashboard-tools-panel .tool-menu { grid-template-columns: 1fr; }
  .dashboard-job-footer {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .dashboard-job-footer a {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: end;
  }
  .system-gauge-grid { grid-template-columns: 1fr; gap: 12px; }
  .system-gauge-card { min-height: 194px; }
  .semi-gauge { width: min(172px, 78%); }
  .donut-gauge { width: min(150px, 70%); }
  .network-metrics { grid-template-columns: 1fr; }
  .clipper-setting-head { display: grid; }
  .clipper-setting-badge { max-width: none; width: fit-content; }
  .clipper-layout-setting .clipper-tabs,
  .clipper-layout-setting .clipper-tabs-two,
  .clipper-layout-setting .clipper-tabs-three { grid-template-columns: 1fr; }
  .lyrics-mode-cards { grid-template-columns: 1fr; }
  .lyrics-mode-card { grid-template-columns: 78px 1fr; }
  .lyrics-mode-preview { width: 76px; }
  .tool-tile { min-width: 0; padding: 16px; }
  .tool-tile strong, .stat-card strong { overflow-wrap: anywhere; }
  .tool-menu > .tool-tile:not(.compact) { min-height: 166px; }
  .tool-tile.compact {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .network-metrics .stat-card.compact {
    grid-template-columns: auto 1fr;
  }
  .network-metrics .stat-card.compact small,
  .network-metrics .stat-card.compact strong {
    grid-column: 2;
  }
  .tool-tile.compact small, .tool-tile.compact strong { grid-column: 1; }
  .stat-card { min-width: 0; padding: 14px; }
  .stat-card strong { font-size: 26px; }
  .tool-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; }
  .bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a {
    padding: 7px 2px;
    font-size: 14px;
  }
  .bottom-nav .nav-tools {
    width: 68px;
    height: 68px;
    transform: translateY(-17px);
  }
  .bottom-nav span { font-size: 9px; }
  .streamflow-shell { width: min(100% - 16px, 1280px); }
  .streamflow-panel { min-height: calc(100vh - 126px); padding: 12px; }
  .streamflow-frame { min-height: calc(100vh - 230px); border-radius: 6px; }
  .access-grid { grid-template-columns: 1fr; }
  .history-filter { grid-template-columns: 1fr; }
  .history-filter button { width: 100%; }
  .history-table-wrap { display: none; }
  .history-card-list { display: grid; }
  .history-card .form-actions {
    display: block;
  }
  .history-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .selected-gallery-pill {
    grid-template-columns: 48px 1fr auto;
  }
  .mini-thumb { width: 48px; }
  .list-thumb { width: 92px; }
  .media-list-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .history-action {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 7px 8px;
  }
  .source-mode-tabs { grid-template-columns: 1fr; }
  .stream-hero,
  .stream-config-grid,
  .stream-advanced-grid,
  .stream-submit-row,
  .stream-form .source-mode-tabs,
  .playlist-builder-card .source-mode-tabs {
    grid-template-columns: 1fr;
  }
  .stream-hero-art {
    min-height: 128px;
  }
  .stream-hero-window {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(220px, 82%);
  }
  .stream-hero-camera {
    right: 14%;
  }
  .playlist-row-card,
  .stream-row-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .playlist-row-card .history-actions,
  .stream-row-card .history-actions {
    grid-column: 1 / -1;
  }
  .playlist-thumb {
    width: 92px;
  }
  .provider-grid { grid-template-columns: 1fr; }
  .eq-grid { grid-template-columns: 1fr; }
  .gallery-filter,
  .gallery-modal-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-filter label,
  .gallery-modal-filter label,
  .gallery-filter input,
  .gallery-filter select,
  .gallery-modal-filter input,
  .gallery-modal-filter select {
    min-width: 0;
  }
  .gallery-modal { padding: 10px; align-items: center; }
  .gallery-modal-panel {
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }
  .gallery-modal-list { grid-template-columns: 1fr; }
  .gallery-item { grid-template-columns: 112px 1fr; }
  .gallery-item-row,
  .dynamic-audio-row { grid-template-columns: 1fr; }
  .gallery-thumb { width: 112px; }
  .table-wrap.datatable-wrap {
    overflow: hidden;
  }
  .dt-container {
    max-width: 100%;
  }
  .dt-container .dt-layout-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0;
  }
  .dt-container .dt-layout-cell,
  .dt-container .dt-search,
  .dt-container .dt-length,
  .dt-container .dt-info,
  .dt-container .dt-paging {
    width: 100%;
    text-align: left;
  }
  .dt-container .dt-search label,
  .dt-container .dt-length label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .dt-container .dt-search input,
  .dt-container .dt-length select {
    width: 100%;
    margin-left: 0;
  }
  .dt-container .dt-scroll-body {
    max-height: 55vh !important;
  }
  .dt-container .dt-paging {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .subtitle-style-options {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .data-table:not(.datatable-active) thead { display: none; }
  .data-table:not(.datatable-active),
  .data-table:not(.datatable-active) tbody,
  .data-table:not(.datatable-active) tr,
  .data-table:not(.datatable-active) td { display: block; width: 100%; }
  .data-table:not(.datatable-active) tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 10px;
  }
  .data-table:not(.datatable-active) td {
    border-bottom: 0;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    padding: 7px 4px;
  }
  .data-table:not(.datatable-active) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .section-head button {
    width: 100%;
  }
  .usage-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .usage-help-button {
    width: 100%;
  }
  .tool-help-modal {
    padding: 10px;
  }
  .tool-help-panel {
    max-height: calc(100vh - 20px);
  }
  .youtube-ai-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .youtube-ai-controls label,
  .youtube-ai-controls button {
    width: 100%;
  }
  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .table-actions button,
  .table-actions form {
    width: 100%;
  }
  .form-actions { flex-direction: column; }
  .actions, .scene form { align-items: stretch; flex-direction: column; }
  .actions > *, .scene form button { width: 100%; }
  .big { min-height: 220px; }
}

@media (max-width: 360px) {
  .tool-menu, .stats-grid { grid-template-columns: 1fr; }
  .activity-row,
  .media-list-card {
    grid-template-columns: 1fr;
  }
  .activity-row .mini-thumb,
  .list-thumb {
    width: 100%;
  }
}

.theme-dark .data-table tr,
.theme-dark .data-table td,
.theme-dark .channel-card,
.theme-dark .account-action-grid .tool-tile,
.theme-dark .admin-card-section > summary,
.theme-dark .stream-card,
.theme-dark .playlist-card,
.theme-dark .media-list-card {
  background: #111827;
  border-color: #263244;
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: #f8fafc;
}

.status-pill.success {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.theme-dark .status-pill {
  background: #1f2937;
  border-color: #374151;
}

.theme-dark .status-pill.success {
  background: #052e16;
  border-color: #166534;
  color: #bbf7d0;
}

.split-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.schedule-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.schedule-card strong {
  display: block;
  margin-bottom: 4px;
}

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.schedule-actions form {
  margin: 0;
}

.schedule-actions button,
.schedule-actions form {
  min-width: 0;
}

.schedule-actions button {
  white-space: nowrap;
}

.schedule-time-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

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

.icon-action {
  min-width: 42px;
  padding-inline: 10px;
  font-size: 20px;
  line-height: 1;
}

.danger-text {
  color: #b91c1c;
}

.theme-dark .schedule-card {
  background: #111827;
  border-color: #263244;
}

.suno-result {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.suno-result audio {
  width: min(100%, 520px);
  height: 40px;
}

@media (max-width: 640px) {
  .schedule-card {
    flex-direction: column;
  }
  .schedule-actions {
    width: 100%;
  }
  .schedule-actions > button,
  .schedule-actions form {
    flex: 1 1 0;
  }
  .schedule-actions button {
    width: 100%;
    padding-inline: 8px;
  }
}
