:root {
  color-scheme: light dark;
  --surface: #e9eff0;
  --surface-raised: rgba(248, 251, 251, 0.94);
  --surface-solid: #f7fafa;
  --surface-soft: #dce6e7;
  --surface-deep: #15252b;
  --header-bg: rgba(237, 243, 244, 0.9);
  --text: #122126;
  --muted: #52686d;
  --line: #c4d3d5;
  --line-strong: #9db7ba;
  --accent: #147d7e;
  --accent-strong: #0c6567;
  --accent-soft: #d5eeee;
  --accent-text: #f2fbfb;
  --success: #27765b;
  --warning: #8a621f;
  --danger: #a23f4c;
  --focus: #168d8d;
  --radius-control: 12px;
  --radius-card: 18px;
  --shadow: 0 18px 44px rgba(35, 68, 75, 0.11);
  --shadow-soft: 0 8px 22px rgba(35, 68, 75, 0.08);
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0b1419;
    --surface-raised: rgba(16, 28, 34, 0.94);
    --surface-solid: #122128;
    --surface-soft: #172a31;
    --surface-deep: #071014;
    --header-bg: rgba(10, 19, 24, 0.9);
    --text: #e7f1f1;
    --muted: #95aaad;
    --line: #294249;
    --line-strong: #3e6068;
    --accent: #42bdb7;
    --accent-strong: #6ad2ca;
    --accent-soft: #153d3e;
    --accent-text: #071514;
    --success: #60bd90;
    --warning: #d2a252;
    --danger: #e17c87;
    --focus: #58cbc4;
    --shadow: 0 20px 50px rgba(2, 8, 11, 0.4);
    --shadow-soft: 0 10px 24px rgba(2, 8, 11, 0.28);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
}

button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  overflow: visible;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
  align-items: center;
  gap: 30px;
  max-width: 100%;
  padding: 24px 26px 25px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft), inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0 0 13px;
  color: var(--accent-strong);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.mode-label .icon { width: 16px; height: 16px; }

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(30px, 5.5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.intro-copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-flow {
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}

.hero-node {
  display: grid;
  place-items: center;
  gap: 7px;
  min-width: 58px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.hero-node .icon { width: 28px; height: 28px; color: var(--accent-strong); }
.hero-node.featured .icon { width: 34px; height: 34px; }

.hero-connector {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.hero-connector::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.tabs {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-width: 560px;
  margin-top: 22px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 16px;
  background: var(--header-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab .icon { width: 18px; height: 18px; }

.tab.active {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--surface-solid);
  color: var(--accent-strong);
  font-weight: 750;
  box-shadow: inset 0 -2px 0 var(--accent), 0 3px 10px color-mix(in srgb, var(--surface-deep) 9%, transparent);
}

.tab:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent);
  outline-offset: 2px;
}

.panel { display: none; padding-top: 20px; scroll-margin-top: calc(84px + env(safe-area-inset-top)); }
.panel.active { display: block; }
.creator-form { display: grid; gap: 15px; }

.flow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-soft) 66%, transparent);
  list-style: none;
}

.flow-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--muted);
}

.flow-item strong { font-size: 13px; }
.flow-item strong { display: flex; align-items: center; gap: 7px; }
.flow-item strong .icon { width: 17px; height: 17px; }
.flow-item span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.flow-item.completed { color: var(--accent-strong); }
.flow-item.current {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: inset 0 3px 0 var(--accent);
}

.workflow-block {
  display: grid;
  scroll-margin-top: calc(84px + env(safe-area-inset-top));
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.workflow-block + .workflow-block { padding-top: 22px; }
.block-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: flex-start;
}

.heading-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.heading-icon .icon { width: 20px; height: 20px; }
.block-heading h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -0.02em; }
.block-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.duration-field { max-width: 300px; }
.script-editor { min-height: 340px; }

.script-stats {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.draft-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 10%, var(--surface-solid));
  color: var(--warning);
  font-size: 12px;
  font-weight: 750;
}

.draft-status.accepted {
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
  background: color-mix(in srgb, var(--success) 10%, var(--surface-solid));
  color: var(--success);
}

.script-actions { display: grid; grid-template-columns: minmax(140px, 0.65fr) minmax(180px, 1fr); gap: 12px; }
.primary-button.compact { width: auto; }
.full-row { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.field label .icon { width: 17px; height: 17px; color: var(--accent-strong); }
.helper { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

textarea, select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--surface-deep) 8%, transparent);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea { min-height: 112px; padding: 14px; resize: vertical; line-height: 1.65; }
select { padding: 0 12px; }
textarea:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong)); }
textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.aspect-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.aspect-field legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 750; }
.aspect-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aspect-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 122px;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-solid);
  cursor: pointer;
  touch-action: manipulation;
}
.aspect-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.aspect-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.aspect-option input { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.aspect-preview { display: grid; place-items: center; width: 46px; height: 46px; color: var(--accent-strong); }
.aspect-frame { display: block; border: 2px solid currentColor; border-radius: 3px; }
.aspect-frame.landscape { width: 42px; height: 24px; }
.aspect-frame.portrait { width: 24px; height: 42px; }
.aspect-copy { display: flex; align-items: baseline; gap: 7px; }
.aspect-copy strong { font-size: 14px; }
.aspect-copy > span { color: var(--muted); font-size: 12px; }
.aspect-field .helper { margin-top: 10px; }
.selection-note {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.inline-error {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--line));
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface-raised));
  color: var(--danger);
}

.primary-button, .quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-control);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-button .icon, .quiet-button .icon { width: 18px; height: 18px; }

.primary-button {
  width: 100%;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent-text) 24%, transparent), 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.quiet-button {
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
}

@media (hover: hover) {
  .primary-button:hover, .quiet-button:hover { transform: translateY(-1px); }
  .primary-button:hover { background: var(--accent-strong); }
  .quiet-button:hover { border-color: var(--accent); color: var(--accent-strong); }
}

.primary-button:active, .quiet-button:active { transform: scale(0.985); }
.primary-button:disabled { cursor: wait; opacity: 0.68; }

.empty-state {
  display: grid;
  gap: 8px;
  padding: 42px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-raised) 62%, transparent);
  text-align: center;
}

.empty-state span { color: var(--muted); }
.empty-visual {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 18px;
  background: var(--accent-soft);
}

.empty-visual .icon { width: 34px; height: 34px; color: var(--accent-strong); }
.jobs-list { display: grid; gap: 14px; }

.job-item {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.job-heading { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.job-heading strong { line-height: 1.5; }
.job-title { display: flex; align-items: flex-start; gap: 9px; }
.job-title .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-strong); }
.job-meta, .job-stage { color: var(--muted); font-size: 13px; }
.status-text { color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.status-text.completed { color: var(--success); }
.status-text.failed { color: var(--danger); }

progress { width: 100%; height: 7px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-soft); }
progress::-webkit-progress-bar { background: var(--surface-soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 750;
  text-decoration: none;
}

.job-actions a .icon { width: 18px; height: 18px; }

.job-actions .quiet-button { min-height: 44px; }
.job-video { width: 100%; max-height: 460px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #091014; }
.job-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
#installButton { margin-top: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: var(--radius-control);
  background: var(--surface-deep);
  color: #e7f3f2;
  text-align: center;
  box-shadow: var(--shadow);
}

@media (max-width: 767px) {
  .page-shell { width: min(100% - 20px, 680px); padding: 20px 0 52px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding: 21px 19px 20px; }
  .intro h1 { font-size: clamp(28px, 8vw, 38px); }
  .intro-copy > p:last-child { font-size: 14px; line-height: 1.65; }
  .hero-flow { padding: 14px 12px; }
  .tabs { max-width: none; margin-top: 14px; }
  .tab { min-height: 40px; padding: 0 8px; font-size: 13px; }
  .panel { padding-top: 14px; }
  .flow-rail { gap: 5px; padding: 5px; }
  .flow-item { padding: 10px 8px; }
  .flow-item strong { font-size: 12px; }
  .flow-item span { font-size: 10px; }
  .workflow-block { gap: 18px; padding: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .full-row { grid-column: auto; }
  .block-heading { grid-template-columns: auto minmax(0, 1fr); }
  .draft-status { width: fit-content; }
  .block-heading .draft-status { grid-column: 1 / -1; }
  .script-actions { grid-template-columns: 1fr; }
  .primary-button.compact { width: 100%; }
}

@media (max-width: 420px) {
  .tab { flex-direction: column; gap: 3px; min-height: 52px; font-size: 11px; }
  .tab .icon { width: 19px; height: 19px; }
  .job-heading { grid-template-columns: 1fr; }
  .flow-item span { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .panel.active { animation: panel-enter 220ms cubic-bezier(0.16, 1, 0.3, 1); }
  .workflow-block:not([hidden]) { animation: block-enter 260ms cubic-bezier(0.16, 1, 0.3, 1); }
  .primary-button:disabled { animation: working-pulse 1.2s ease-in-out infinite alternate; }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes block-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes working-pulse {
  from { opacity: 0.62; }
  to { opacity: 0.82; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .tabs, .intro, .workflow-block { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Mobile demo: extend the incumbent teal/slate system with real asset choices. */
.page-shell { max-width: 900px; padding-top: 28px; }
.intro { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.intro h1 { margin-bottom: 9px; font-size: 32px; letter-spacing: -0.02em; line-height: 1.25; }
.intro-copy > p:last-child { font-size: 14px; }
.tabs { margin-top: 0; }
.workflow-block { box-shadow: none; border-radius: 16px; }
.creator-form { scroll-margin-top: 90px; }
.draft-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
#saveStatus { color: var(--muted); font-size: 12px; }
#saveStatus.save-warning { color: var(--danger); }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; background: transparent; color: var(--accent-strong); border: 0; border-radius: 8px; font-size: 13px; font-weight: 650; cursor: pointer; line-height: 1.5; }
.text-button .icon { width: 17px; height: 17px; }
.text-button:hover { background: var(--accent-soft); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.primary-button:disabled { animation: none; cursor: not-allowed; }
.flow-item { padding: 0; }
.flow-item button { display: grid; align-content: center; gap: 5px; min-height: 62px; width: 100%; border: 0; border-radius: 10px; padding: 10px; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.flow-item strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.flow-item .step-name { font-size: 14px; font-weight: 750; }
.flow-item.current { box-shadow: none; }
.script-editor { min-height: 300px; max-height: 65dvh; }
.script-disclosure { margin: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.explore-button { width: 100%; }
.aspect-option { grid-template-columns: auto 1fr; justify-items: start; align-items: center; min-height: 86px; padding: 14px; }
.aspect-copy { display: grid; gap: 4px; }
.aspect-option input { width: 16px; height: 16px; right: 8px; top: 8px; }
.style-field { margin: 6px 0 0; min-width: 0; padding: 0; border: 0; }
.style-field legend { margin-bottom: 7px; font-size: 15px; font-weight: 750; }
.style-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.style-option { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 5px 5px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-solid); cursor: pointer; }
.style-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.style-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.style-option input { position: absolute; right: 11px; top: 11px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.style-option img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #f7efdc; }
.style-option strong { margin: 10px 7px 3px; font-size: 14px; line-height: 1.5; }
.style-description { margin: 0 7px; font-size: 12px; color: var(--muted); }
.style-placeholder { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.style-caption { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: -10px; }
.style-caption .text-button { flex-shrink: 0; }
.audio-section { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-title h2, .section-title h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.section-title > span { font-size: 12px; color: var(--muted); }
.section-title .icon { color: var(--accent-strong); }
.audio-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.listen-button { min-height: 50px; min-width: 86px; }
.preview-panel { display: grid; gap: 12px; padding: 12px 15px; border-radius: 12px; background: var(--accent-soft); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-heading > span { min-width: 0; font-weight: 650; font-size: 13px; }
.preview-heading .text-button { flex-shrink: 0; }
input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#previewVolumeLabel { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.generation-summary { padding: 16px; border-radius: 12px; background: var(--surface-soft); }
.generation-summary strong { font-size: 14px; }
.generation-summary p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.drafts-list { margin-top: 12px; }
.draft-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.draft-row > .icon { color: var(--accent-strong); }
.draft-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; }
.draft-row p { margin: 4px 0 0; }
.draft-row .quiet-button { font-size: 12px; padding: 0 10px; }
.works-title { margin: 32px 0 16px; }
.job-item { box-shadow: none; }
.job-meta { margin-top: 7px; line-height: 1.7; }
.style-dialog { width: min(920px, calc(100% - 24px)); max-height: 90dvh; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); color: var(--text); }
.style-dialog::backdrop { background: rgba(7, 16, 20, 0.72); }
.style-dialog h2 { margin: 0; font-size: 19px; }
.style-dialog img { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; margin: 18px 0 12px; border-radius: 8px; }
.toast { bottom: max(90px, calc(80px + env(safe-area-inset-bottom))); }

@media (min-width: 768px) {
  .audio-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .audio-section .section-title, .audio-section > .helper { grid-column: 1 / -1; }
  .audio-section:has(#bgm) .audio-choice { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .page-shell { width: min(100% - 28px, 680px); padding: 26px 0 calc(104px + env(safe-area-inset-bottom)); }
  .intro { display: block; padding: 0 2px 12px; }
  .intro h1 { font-size: 29px; }
  .intro-copy > p:last-child { font-size: 13px; }
  .tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; gap: 16px; width: 100%; margin: 0; padding: 7px max(24px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tab { flex-direction: column; gap: 4px; min-height: 50px; font-size: 12px; }
  .tab.active { box-shadow: none; border-color: transparent; background: var(--accent-soft); }
  .panel { padding-top: 8px; scroll-margin-top: 12px; }
  .creator-form, .workflow-block { scroll-margin-top: 12px; }
  .draft-toolbar { margin-bottom: 7px; }
  .flow-rail { padding: 4px; }
  .flow-item button { min-height: 51px; padding: 8px; text-align: center; }
  .flow-item strong { justify-content: center; font-size: 13px; }
  .flow-item button > span { display: none; }
  .flow-item .step-name { display: inline; font-size: 13px; }
  .workflow-block { padding: 18px 15px; gap: 18px; }
  .block-heading { gap: 10px; }
  .block-heading h2 { font-size: 20px; }
  .topic-field textarea { min-height: 110px; }
  .duration-field { max-width: none; }
  .script-actions { grid-template-columns: 0.85fr 1.3fr; gap: 9px; }
  .script-actions button { font-size: 13px; padding: 0 8px; }
  .style-cards { gap: 10px; }
  .style-option strong { font-size: 13px; }
  .style-option input { width: 18px; height: 18px; }
  .aspect-option { padding: 12px 9px; gap: 7px; min-height: 88px; }
  .aspect-preview { width: 35px; }
  .aspect-frame.landscape { width: 32px; height: 19px; }
  .aspect-frame.portrait { width: 19px; height: 32px; }
  .aspect-copy strong { font-size: 13px; }
  .style-caption { align-items: start; gap: 8px; }
  .section-title { gap: 8px; }
  .section-title > span { font-size: 11px; }
  .preview-heading { flex-wrap: wrap; }
  .draft-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .draft-row > .icon { display: none; }
  .style-dialog { padding: 16px; }
}

/* Android app surface: touch-first Material structure with a focused studio identity. */
.app-mark,
.studio-preview { display: none; }

@media (max-width: 767px) {
  :root {
    color-scheme: light;
    --surface: #eef2fa;
    --surface-raised: #ffffff;
    --surface-solid: #ffffff;
    --surface-soft: #e5ebf7;
    --surface-deep: #101b36;
    --header-bg: #101b36;
    --text: #172038;
    --muted: #65708a;
    --line: #d6ddea;
    --line-strong: #b8c3d8;
    --accent: #3f62f3;
    --accent-strong: #2949ce;
    --accent-soft: #e3e8ff;
    --accent-text: #ffffff;
    --success: #087f72;
    --warning: #9a5e00;
    --danger: #b3261e;
    --focus: #5775ff;
    --radius-control: 14px;
    --radius-card: 16px;
    --shadow: 0 18px 44px rgba(27, 43, 84, 0.14);
    --shadow-soft: 0 8px 24px rgba(27, 43, 84, 0.1);
  }

  html { background: var(--surface-deep); }
  body {
    min-width: 320px;
    background: var(--surface);
    font-family: "Segoe UI Variable", "Microsoft YaHei UI", system-ui, sans-serif;
  }

  .page-shell {
    width: 100%;
    max-width: 520px;
    min-height: 100dvh;
    padding: 0 0 calc(92px + env(safe-area-inset-bottom));
  }

  .intro {
    position: relative;
    display: flex;
    min-height: 180px;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    margin: 0;
    padding: calc(22px + env(safe-area-inset-top)) 18px 58px 20px;
    border: 0;
    border-radius: 0 0 32px 32px;
    background: var(--surface-deep);
    color: #f7f9ff;
    box-shadow: none;
  }

  .intro::before {
    position: absolute;
    right: -68px;
    bottom: -118px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(124, 146, 255, 0.26);
    border-radius: 50%;
    content: "";
  }

  .intro::after {
    position: absolute;
    right: 5px;
    bottom: -70px;
    width: 142px;
    height: 142px;
    border: 1px solid rgba(79, 220, 203, 0.24);
    border-radius: 50%;
    content: "";
  }

  .intro-copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    max-width: calc(100% - 132px);
  }

  .app-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #4f70ff;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(50, 82, 224, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .app-mark .icon { width: 24px; height: 24px; }
  .intro h1 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }

  .intro-copy > div > p:last-child {
    max-width: 185px;
    margin: 0;
    color: #bdc8e4;
    font-size: 12px;
    line-height: 1.55;
  }

  .studio-preview {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: 18px;
    z-index: 1;
    display: block;
    width: 122px;
    height: 92px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: #f7efdc;
    box-shadow: 0 14px 30px rgba(2, 8, 24, 0.34);
    transform: rotate(2.5deg);
  }

  .studio-preview::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(5, 13, 33, 0.7));
    content: "";
  }

  .studio-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .preview-play,
  .preview-spark {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
  }

  .preview-play {
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 27, 54, 0.78);
    transform: translate(-50%, -50%);
  }
  .preview-play .icon { width: 17px; height: 17px; margin-left: 2px; }
  .preview-spark { top: 8px; left: 8px; color: #4569ff; }
  .preview-spark .icon { width: 18px; height: 18px; }
  .preview-wave {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 15px;
  }
  .preview-wave i {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: #59e0cf;
    transform-origin: center;
  }
  .preview-wave i:nth-child(1), .preview-wave i:nth-child(5) { height: 6px; }
  .preview-wave i:nth-child(2), .preview-wave i:nth-child(4) { height: 11px; }
  .preview-wave i:nth-child(3) { height: 15px; }
  }

  .panel {
    position: relative;
    z-index: 2;
    padding: 0 16px;
    scroll-margin-top: calc(12px + env(safe-area-inset-top));
  }

  #createPanel { margin-top: -42px; }
  #jobsPanel { margin-top: -34px; }

  .draft-toolbar {
    min-height: 52px;
    margin: 0 0 12px;
    padding: 0 5px 0 15px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  #saveStatus { color: #5f6d89; font-size: 12px; }
  .draft-toolbar .text-button { color: var(--accent-strong); }

  .creator-form { gap: 14px; }
  .flow-rail {
    position: relative;
    gap: 0;
    margin: 0;
    padding: 5px;
    border: 0;
    border-radius: 18px;
    background: #dfe5f2;
    box-shadow: inset 0 1px 2px rgba(34, 49, 85, 0.08);
  }

  .flow-item { border: 0; background: transparent; color: #69758e; }
  .flow-item button {
    min-height: 48px;
    padding: 7px 5px;
    border-radius: 14px;
    text-align: center;
  }

  .flow-item strong { justify-content: center; gap: 5px; font-size: 12px; }
  .flow-item strong small { display: none; }
  .flow-item .step-glyph {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    background: rgba(101, 112, 138, 0.11);
  }
  .step-glyph .icon { width: 14px; height: 14px; }
  .flow-item.current .step-glyph { background: #e3e8ff; }
  .flow-item.completed .step-glyph { background: rgba(8, 127, 114, 0.1); }
  .flow-item .step-name { display: inline; font-size: 12px; font-weight: 720; }
  .flow-item button > span { display: none; }
  .flow-item.current {
    border: 0;
    background: #ffffff;
    color: var(--accent-strong);
    box-shadow: 0 3px 10px rgba(34, 49, 85, 0.12);
  }
  .flow-item.completed { color: var(--success); }

  .workflow-block {
    gap: 17px;
    padding: 20px 18px 19px;
    border: 0;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(32, 47, 84, 0.1);
  }

  .block-heading {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .heading-icon {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #e4e9ff;
    color: var(--accent-strong);
  }

  .block-heading h2 { margin-bottom: 3px; font-size: 21px; color: #172038; }
  .block-heading p { color: #68748d; font-size: 12px; }
  .block-heading .draft-status { grid-column: 1 / -1; }

  .field { gap: 8px; }
  .field label,
  .aspect-field legend,
  .style-field legend { color: #303a53; font-size: 13px; font-weight: 720; }

  textarea,
  select {
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: #f0f3fa;
    color: #172038;
    box-shadow: none;
  }

  textarea { min-height: 112px; padding: 15px; font-size: 16px; }
  select { padding: 0 14px; font-size: 15px; }
  textarea:hover, select:hover { border-color: #c6d0e5; }
  textarea:focus, select:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(63, 98, 243, 0.12);
  }

  .prompt-starters {
    display: grid;
    gap: 9px;
    margin-top: -4px;
  }
  .prompt-starters > span {
    color: #68748d;
    font-size: 12px;
    font-weight: 700;
  }
  .starter-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-right: -18px;
    padding: 1px 18px 5px 0;
    scrollbar-width: none;
  }
  .starter-list::-webkit-scrollbar { display: none; }
  .starter-list button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: max-content;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d7deee;
    border-radius: 13px;
    background: #ffffff;
    color: #43506b;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(36, 51, 87, 0.07);
    cursor: pointer;
  }
  .starter-list button:first-child { border-color: #cbd5ff; background: #edf0ff; color: #3152db; }
  .starter-list .icon { width: 16px; height: 16px; color: currentColor; }
  .starter-list button:active { transform: scale(0.98); }

  .helper { color: #69758e; }
  .primary-button,
  .quiet-button { min-height: 50px; border-radius: 16px; }
  .primary-button {
    min-height: 56px;
    border: 0;
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(63, 98, 243, 0.28);
  }
  .quiet-button { border-color: #cbd4e5; background: #ffffff; }
  .text-button { min-width: 48px; min-height: 48px; color: var(--accent-strong); }

  .aspect-options { gap: 10px; }
  .aspect-option {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 82px;
    padding: 12px;
    border-color: transparent;
    border-radius: 16px;
    background: #f0f3fa;
  }
  .aspect-option:has(input:checked) {
    border-color: #5978f6;
    background: #e6eaff;
    box-shadow: inset 0 0 0 1px #5978f6;
  }

  .style-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 78%);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    margin-right: -18px;
    padding: 2px 18px 10px 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .style-cards::-webkit-scrollbar { display: none; }
  .style-option {
    scroll-snap-align: start;
    padding: 6px 6px 13px;
    border-color: transparent;
    border-radius: 16px;
    background: #f0f3fa;
  }
  .style-option:has(input:checked) {
    border-color: #5978f6;
    background: #e6eaff;
    box-shadow: inset 0 0 0 1px #5978f6;
  }
  .style-option img { border-radius: 13px; }
  .style-option strong { margin-top: 11px; font-size: 14px; }
  .style-description { color: #68748d; }

  .audio-section {
    gap: 13px;
    padding: 19px 0 0;
    border-top: 1px solid #dde3ef;
  }
  .section-title h2,
  .section-title h3 { font-size: 16px; color: #252f49; }
  .section-title .icon { color: var(--accent); }
  .listen-button { min-width: 92px; }
  .preview-panel,
  .generation-summary { border-radius: 16px; background: #e6eaff; }
  progress { height: 8px; background: #d9e0ee; }
  progress::-webkit-progress-bar { background: #d9e0ee; }
  progress::-webkit-progress-value { background: linear-gradient(90deg, #3f62f3, #0ca99a); }
  progress::-moz-progress-bar { background: #3f62f3; }

  .tabs {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 76px;
    margin: 0;
    padding: 7px max(24px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    box-shadow: 0 -10px 34px rgba(27, 43, 84, 0.13);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tab {
    position: relative;
    flex-direction: column;
    gap: 3px;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: #707b92;
    font-size: 11px;
  }
  .tab .icon { width: 22px; height: 22px; }
  .tab.active {
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    box-shadow: none;
    font-weight: 760;
  }
  .tab.active::before {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 58px;
    height: 30px;
    border-radius: 16px;
    background: #e1e7ff;
    content: "";
    transform: translateX(-50%);
  }
  .tab.active .icon { position: relative; z-index: 1; }
  .tab.active span { position: relative; z-index: 1; }

  .section-title.works-title { margin-top: 30px; }
  #jobsPanel > .section-title:first-child,
  .job-item,
  .empty-state {
    border: 0;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }
  #jobsPanel > .section-title:first-child { padding: 18px; border-radius: 20px 20px 0 0; }
  .drafts-list { margin-top: 0; padding: 0 18px; border-radius: 0 0 20px 20px; background: #ffffff; box-shadow: var(--shadow-soft); }
  .draft-row { min-height: 70px; }
  .job-item { border-radius: 20px; }
  .job-media {
    overflow: hidden;
    margin: -6px -6px 2px;
    border-radius: 16px;
    background: #091014;
  }
  .job-cover {
    position: relative;
    display: block;
    height: 152px;
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
    background: #e8edf7;
  }
  .job-cover::after {
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(180deg, transparent, rgba(9, 17, 38, 0.7));
    content: "";
  }
  .job-cover img { width: 100%; height: 100%; object-fit: cover; }
  .job-cover-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(15, 25, 52, 0.86);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
  }
  .job-cover-badge .icon { width: 14px; height: 14px; }
  .job-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
  }
  .job-meta-list span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 9px;
    background: #edf1f8;
    color: #5d6982;
    font-size: 11px;
    line-height: 1.2;
  }
  .job-video {
    display: block;
    width: 100%;
    max-height: min(72dvh, 560px);
    margin: 0 auto;
    border: 0;
    border-radius: 16px;
    background: #091014;
    object-fit: contain;
  }
  .job-video.landscape { aspect-ratio: 16 / 9; }
  .job-video.portrait { height: min(138vw, 560px); }
  .job-actions a { min-height: 50px; border: 0; border-radius: 16px; background: var(--accent); }
  .empty-state { border-radius: 20px; }

  .style-dialog {
    width: min(100% - 24px, 480px);
    border: 0;
    border-radius: 20px;
    background: #ffffff;
  }
  .style-dialog::backdrop { background: rgba(8, 15, 32, 0.72); }
  .toast {
    bottom: max(94px, calc(82px + env(safe-area-inset-bottom)));
    border: 0;
    border-radius: 16px;
    background: #202a43;
    box-shadow: 0 12px 32px rgba(14, 24, 51, 0.28);
  }
}

@media (max-width: 360px) {
  .intro { padding-left: 16px; padding-right: 16px; }
  .panel { padding-left: 12px; padding-right: 12px; }
  .app-mark { width: 42px; height: 42px; border-radius: 14px; }
  .intro h1 { font-size: 21px; }
  .intro-copy > div > p:last-child { max-width: 205px; font-size: 11px; }
  .studio-preview { right: 14px; width: 108px; height: 82px; }
  .intro-copy { max-width: calc(100% - 112px); }
  .workflow-block { padding-left: 15px; padding-right: 15px; }
  .script-actions { grid-template-columns: 1fr; }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .preview-wave i { animation: signal-pulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
  .preview-wave i:nth-child(2), .preview-wave i:nth-child(5) { animation-delay: -0.55s; }
  .preview-wave i:nth-child(3) { animation-delay: -1.05s; }
}

@keyframes signal-pulse {
  0% { transform: scaleY(0.62); opacity: 0.64; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Spanish-first app controls and resilient, tappable work cards. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
}

.language-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--surface-solid);
  color: var(--accent-strong);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--surface-deep) 12%, transparent);
}

.job-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.job-cover:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.job-cover-fallback { background: linear-gradient(135deg, var(--accent-soft), var(--surface-soft)); }

.job-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--success) 10%, var(--surface-solid));
  color: var(--success);
  font-size: 13px;
  font-weight: 720;
}

.job-ready .icon { width: 17px; height: 17px; }
.job-script { border-top: 1px solid var(--line); padding-top: 12px; }
.job-script summary { color: var(--accent-strong); font-size: 13px; font-weight: 720; cursor: pointer; }
.job-script p { max-height: 190px; overflow: auto; margin: 10px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 13px; line-height: 1.65; }
.style-option img { aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 767px) {
  .intro { min-height: 202px; padding-bottom: 76px; }
  .language-switch {
    position: absolute;
    top: calc(112px + env(safe-area-inset-top));
    right: 18px;
    bottom: auto;
    z-index: 3;
    background: rgba(24, 39, 80, 0.96);
    box-shadow: 0 8px 22px rgba(4, 10, 28, 0.24);
  }
  .language-switch button { min-width: 44px; min-height: 38px; color: #edf1ff; }
  .language-switch button.active { background: #ffffff; color: #2949ce; box-shadow: 0 7px 18px rgba(4, 10, 28, 0.24); }
  #createPanel { margin-top: -42px; }
  #jobsPanel { margin-top: -34px; }
  .job-cover { display: block; }
  .job-cover img { display: block; }
  .style-option img { height: auto; }
}

@media (max-width: 360px) {
  .language-switch { right: 14px; }
  .language-switch button { min-width: 40px; padding-inline: 7px; }
}
