:root {
  --bg: #f6efe1;
  --ink: #10233f;
  --muted: #657084;
  --surface: #fffdf6;
  --surface-soft: #eff9fb;
  --surface-strong: #0e2846;
  --line: #d7deea;
  --line-strong: #bbcadd;
  --accent: #00a9c7;
  --accent-dark: #056f92;
  --green: #14ad82;
  --green-soft: #e7f8f0;
  --orange-soft: #e9fbff;
  --red: #c83222;
  --shadow: 0 18px 42px rgba(27, 31, 24, 0.1);
  --shadow-hover: 0 24px 54px rgba(27, 31, 24, 0.15);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: min(1240px, calc(100vw - 40px));
  --font-display: "Aptos Display", "Trebuchet MS", sans-serif;
  --font-body: Aptos, "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(0, 169, 199, 0.18), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(255, 207, 102, 0.24), transparent 24%),
    linear-gradient(90deg, rgba(16, 35, 63, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 35, 63, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 70px;
  margin: 18px auto 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24, 26, 23, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #3d423a;
  font-size: 14px;
  font-weight: 900;
  transition: color 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-dark);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
}

.language-option {
  min-width: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555a52;
  font-weight: 1000;
}

.language-option.is-active {
  background: var(--surface-strong);
  color: #ffffff;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.home-hero,
.page-hero {
  display: grid;
  width: var(--container);
  margin: 42px auto 0;
  gap: 24px;
  align-items: center;
}

.home-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 520px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 90, 47, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 245, 0.82));
  box-shadow: var(--shadow);
}

.home-copy {
  max-width: 760px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-snapshot {
  display: grid;
  min-height: 410px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(18, 164, 111, 0.14), transparent 44%),
    #ffffff;
  box-shadow: 10px 10px 0 rgba(24, 26, 23, 0.12);
}

.home-snapshot span {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  color: #22261f;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 1000;
  letter-spacing: -0.04em;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.home-snapshot span:nth-child(1),
.home-snapshot span:nth-child(6) {
  background: var(--surface-strong);
  color: #ffffff;
}

.home-snapshot span:nth-child(3),
.home-snapshot span:nth-child(8) {
  background: var(--orange-soft);
}

.home-snapshot span:hover {
  border-color: rgba(255, 90, 47, 0.42);
  box-shadow: 5px 5px 0 rgba(255, 90, 47, 0.18);
  transform: translate(-1px, -1px);
}

.entry-section,
.shortcut-section,
.formats-page-section {
  width: var(--container);
  margin: 72px auto 0;
}

.entry-section .section-heading,
.page-section .section-heading {
  width: 100%;
  margin: 0 0 24px;
}

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

.entry-card {
  display: grid;
  min-height: 244px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(27, 31, 24, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-color: rgba(255, 90, 47, 0.42);
  box-shadow: 8px 8px 0 rgba(24, 26, 23, 0.13), 0 18px 42px rgba(27, 31, 24, 0.14);
  transform: translate(-2px, -2px);
}

.entry-card.is-primary {
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.16), transparent 56%),
    #ffffff;
}

.entry-card span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 1000;
}

.entry-card strong {
  display: block;
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.entry-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.shortcut-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
}

.shortcut-section h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
}

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

.shortcut-grid a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: #262b24;
  font-weight: 1000;
  text-align: center;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.shortcut-grid a:hover,
.shortcut-grid a:focus-visible {
  border-color: rgba(255, 90, 47, 0.48);
  box-shadow: 5px 5px 0 rgba(255, 90, 47, 0.2);
  transform: translate(-1px, -1px);
}

.page-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(27, 31, 24, 0.08);
}

.page-hero h1 {
  margin-bottom: 10px;
}

.formats-hero {
  background:
    linear-gradient(135deg, rgba(18, 164, 111, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.92);
}

.compact-workspace {
  margin-top: 24px;
}

.slim-library {
  padding: 24px;
}

.formats-page-section {
  display: grid;
  gap: 18px;
}

.format-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: end;
}

.format-library-head h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.format-library-head p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.format-search-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(27, 31, 24, 0.08);
}

.format-search-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format-search-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.format-search-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.format-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.format-category-tab {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #3c4238;
  font-weight: 1000;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.format-category-tab:hover,
.format-category-tab:focus-visible,
.format-category-tab.is-active {
  border-color: rgba(255, 90, 47, 0.44);
  background: var(--surface-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.format-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.format-category-card {
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 47, 0.12), transparent 38%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(27, 31, 24, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.format-category-card:hover {
  border-color: rgba(255, 90, 47, 0.38);
  box-shadow: 8px 8px 0 rgba(24, 26, 23, 0.12), 0 18px 42px rgba(27, 31, 24, 0.13);
  transform: translate(-2px, -2px);
}

.format-category-label {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
}

.format-category-card h3 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1;
}

.format-category-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.format-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-link-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #242922;
  font-size: 13px;
  font-weight: 1000;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.format-link-chip:hover,
.format-link-chip:focus-visible {
  border-color: rgba(18, 164, 111, 0.42);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.format-card-action {
  width: fit-content;
  margin-top: auto;
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 1000;
}

.workspace {
  width: var(--container);
  margin: 34px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 0.98;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 0;
  color: #555f51;
  font-size: clamp(16px, 1.4vw, 18px);
}

.format-belt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.format-belt span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #343a32;
  font-size: 12px;
  font-weight: 1000;
}

.converter-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.quick-panel,
.converter-card,
.job-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.quick-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.quick-converter {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.quick-converter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.quick-converter strong {
  font-size: 14px;
}

.quick-converter:hover,
.quick-converter:focus-visible,
.quick-converter.is-active {
  border-color: rgba(255, 90, 47, 0.46);
  background: var(--orange-soft);
  box-shadow: 5px 5px 0 rgba(24, 26, 23, 0.12);
  transform: translate(-1px, -1px);
}

.converter-card {
  padding: 18px;
}

.converter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.converter-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.service-pill {
  display: inline-flex;
  min-width: max-content;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #5d6559;
  font-size: 12px;
  font-weight: 1000;
}

.service-pill.is-ready {
  border-color: rgba(18, 164, 111, 0.28);
  background: var(--green-soft);
  color: #08764e;
}

.service-pill.is-missing {
  border-color: rgba(255, 90, 47, 0.3);
  background: var(--orange-soft);
  color: var(--accent-dark);
}

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

.dropzone {
  display: grid;
  min-height: 310px;
  padding: 26px;
  place-items: center;
  border: 2px dashed #bbbeb5;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.06), transparent 46%),
    var(--surface-soft);
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: inset 0 0 0 5px rgba(255, 90, 47, 0.08);
  transform: translateY(-2px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 16px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 6px 6px 0 rgba(24, 26, 23, 0.12);
}

.drop-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dropzone strong {
  display: block;
  margin-bottom: 6px;
  color: #20241f;
  font-size: 20px;
}

.dropzone span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.format-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.format-select {
  display: grid;
  gap: 7px;
}

.format-select span {
  color: #4f554c;
  font-size: 13px;
  font-weight: 1000;
}

select,
input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

select {
  padding: 0 13px;
}

select:hover {
  border-color: rgba(255, 90, 47, 0.48);
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 90, 47, 0.26);
  outline-offset: 3px;
}

.format-arrow {
  display: grid;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 1000;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #3f453c;
  font-size: 13px;
  font-weight: 1000;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.preset-chip:hover,
.preset-chip:focus-visible,
.preset-chip.is-active {
  border-color: rgba(255, 90, 47, 0.46);
  background: var(--orange-soft);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 1000;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 90, 47, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 18px 34px rgba(255, 90, 47, 0.28);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.full-button {
  width: 100%;
}

.job-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.status-panel {
  display: grid;
  gap: 12px;
}

.status-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: #777d73;
  font-size: 13px;
  font-weight: 1000;
}

.status-steps span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #e6e8e1;
  color: #4d554a;
  font-size: 12px;
}

.status-steps li.is-current,
.status-steps li.is-done {
  color: var(--ink);
}

.status-steps li.is-current {
  border-color: rgba(255, 90, 47, 0.38);
  background: var(--orange-soft);
}

.status-steps li.is-current span {
  background: var(--accent);
  color: #ffffff;
}

.status-steps li.is-done span {
  background: var(--green);
  color: #ffffff;
}

.status-message {
  margin-bottom: 0;
  color: #454b42;
  font-weight: 900;
}

.status-message[data-type="success"] {
  color: #08764e;
}

.status-message[data-type="error"] {
  color: var(--red);
}

.download-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 1000;
}

.note-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--green-soft);
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
}

.note-card p {
  margin-bottom: 0;
  color: #406151;
  font-size: 14px;
}

.section-heading {
  width: var(--container);
  margin: 74px auto 24px;
}

.section-heading.compact {
  margin-top: 66px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.popular-section {
  width: var(--container);
  margin: 78px auto 0;
}

.tool-library {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.22), transparent 34%),
    linear-gradient(180deg, #171a14, #0f120e);
  color: #ffffff;
  box-shadow: 0 26px 64px rgba(14, 18, 12, 0.24);
}

.tool-library::after {
  position: absolute;
  right: -120px;
  top: 70px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  content: "";
  transform: rotate(18deg);
}

.tool-library > * {
  position: relative;
  z-index: 1;
}

.tool-library .eyebrow {
  color: #ffb196;
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.library-head h2 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.98;
}

.library-head p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.library-meter {
  display: grid;
  gap: 9px;
}

.library-meter span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 1000;
}

.library-meter span::after {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.format-catalog {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.2);
}

.catalog-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
}

.catalog-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.catalog-card {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.catalog-card:hover,
.catalog-card:focus-visible,
.catalog-card.is-active {
  border-color: rgba(255, 90, 47, 0.55);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.catalog-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 14px;
}

.catalog-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.format-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.075);
}

.format-board-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
}

.format-board-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.format-board-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.format-board-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.format-board-head span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.format-board-head strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.format-board-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.format-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.format-chip {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #171a14;
  font-size: 13px;
  font-weight: 1000;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.format-chip:hover,
.format-chip:focus-visible {
  border-color: rgba(255, 90, 47, 0.65);
  box-shadow: 4px 4px 0 rgba(255, 90, 47, 0.24);
  transform: translate(-1px, -1px);
}

.library-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.library-rail {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.library-rail a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 1000;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.library-rail a:hover,
.library-rail a:focus-visible {
  background: #ffffff;
  color: #141711;
  transform: translateX(2px);
}

.library-groups {
  display: grid;
  gap: 16px;
}

.tool-group {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
}

.group-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.group-header div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-header span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 1000;
}

.group-header h3 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.group-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.tool-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-library .tool-card {
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #f8f8f3;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.tool-library .tool-card:hover,
.tool-library .tool-card:focus-visible {
  border-color: rgba(255, 90, 47, 0.5);
  background: #ffffff;
  box-shadow: 8px 8px 0 rgba(255, 90, 47, 0.24), 0 20px 42px rgba(0, 0, 0, 0.2);
  transform: translate(-2px, -2px);
}

.tool-library .tool-card.is-featured {
  min-height: 196px;
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.16), transparent 58%),
    #ffffff;
}

.tool-library .tool-card.is-rare {
  background:
    linear-gradient(135deg, #fff0e8, #ffffff 58%);
}

.tool-library .tool-card span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #171a14;
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.tool-library .tool-card.is-rare span,
.tool-library .tool-card.is-featured span {
  background: var(--accent);
}

.tool-library .tool-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.tool-library .tool-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.security-section,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(27, 31, 24, 0.07);
}

.workflow-section {
  display: none;
}

.enhance-section {
  width: var(--container);
  margin: 0 auto;
}

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

.enhance-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 47, 0.14), transparent 42%),
    #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 30px rgba(27, 31, 24, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.enhance-card:hover,
.enhance-card:focus-visible,
.enhance-card.is-active {
  border-color: rgba(255, 90, 47, 0.44);
  box-shadow: 7px 7px 0 rgba(24, 26, 23, 0.13), 0 18px 42px rgba(27, 31, 24, 0.14);
  transform: translate(-2px, -2px);
}

.enhance-card.is-hot {
  background:
    linear-gradient(135deg, rgba(255, 90, 47, 0.2), transparent 56%),
    #fffdf7;
}

.enhance-card span {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.enhance-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.enhance-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.studio-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(18, 164, 111, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(27, 31, 24, 0.08);
}

.studio-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.studio-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.studio-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.studio-drop {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  place-items: center;
  border: 2px dashed #c9cbc2;
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.studio-drop:hover,
.studio-drop.is-dragging {
  border-color: var(--green);
  background: #ffffff;
  transform: translateY(-1px);
}

.studio-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.studio-drop strong {
  font-size: 18px;
}

.studio-drop span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.studio-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: end;
}

.studio-controls label {
  display: grid;
  gap: 7px;
}

.studio-controls span {
  color: #4f554c;
  font-size: 13px;
  font-weight: 1000;
}

input[type="range"] {
  min-height: 50px;
  accent-color: var(--accent);
}

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

.studio-status {
  min-height: 24px;
  margin-bottom: 0;
  color: #454b42;
  font-weight: 900;
}

.studio-status[data-type="success"] {
  color: #08764e;
}

.studio-status[data-type="error"] {
  color: var(--red);
}

.security-section {
  display: grid;
  width: var(--container);
  margin: 78px auto 0;
  padding: 28px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: center;
}

.security-section h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.security-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.security-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.security-list span {
  color: var(--muted);
}

.faq-list {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 1000;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 80px auto 28px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface-strong);
  color: #ffffff;
}

.site-footer p {
  max-width: 620px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a {
  display: inline-flex;
  min-width: max-content;
  padding: 11px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 1000;
}

@media (max-width: 1120px) {
  .converter-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .job-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .status-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions,
  .site-header {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .workspace-intro,
  .home-hero,
  .page-hero,
  .format-library-head,
  .converter-shell,
  .security-section,
  .library-head,
  .library-layout,
  .group-header,
  .format-catalog,
  .format-board,
  .format-board-head,
  .studio-workbench,
  .studio-controls {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-snapshot {
    min-height: 280px;
  }

  .entry-grid,
  .format-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortcut-section {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-rail {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid,
  .enhance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-belt {
    justify-content: flex-start;
  }

  .quick-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-panel .panel-label {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 1240px);
  }

  .site-header {
    margin-top: 10px;
  }

  .nav-links {
    display: none;
  }

  .workspace {
    margin-top: 18px;
    padding: 14px;
    border-radius: 22px;
  }

  .home-hero,
  .page-hero {
    margin-top: 20px;
    padding: 18px;
    border-radius: 24px;
  }

  .home-actions {
    margin-top: 20px;
  }

  .home-snapshot {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding: 12px;
    border-radius: 22px;
    box-shadow: 6px 6px 0 rgba(24, 26, 23, 0.12);
  }

  .home-snapshot span {
    min-height: 68px;
  }

  .entry-section,
  .shortcut-section,
  .formats-page-section {
    margin-top: 48px;
  }

  .entry-grid,
  .shortcut-grid,
  .format-library-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 210px;
    padding: 20px;
  }

  .shortcut-section,
  .format-search-card,
  .format-category-card {
    border-radius: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .converter-card,
  .job-panel,
  .quick-panel {
    padding: 14px;
  }

  .converter-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropzone {
    min-height: 230px;
    padding: 20px;
  }

  .format-row,
  .quick-panel {
    grid-template-columns: 1fr;
  }

  .status-steps {
    grid-template-columns: 1fr;
  }

  .popular-section {
    margin-top: 54px;
  }

  .tool-library {
    padding: 16px;
    border-radius: 24px;
  }

  .library-head {
    gap: 16px;
  }

  .library-meter {
    grid-template-columns: 1fr;
  }

  .library-rail {
    grid-template-columns: 1fr 1fr;
  }

  .tool-group {
    padding: 14px;
  }

  .tool-matrix,
  .group-header,
  .catalog-grid,
  .enhance-grid {
    grid-template-columns: 1fr;
  }

  .tool-library .tool-card,
  .tool-library .tool-card.is-featured {
    min-height: auto;
    grid-column: span 1;
  }

  .tool-library .tool-card span {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 20260429 redesign overrides */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 26px;
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(16, 35, 63, 0.08);
}

.brand-mark {
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 48%),
    var(--surface-strong);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.18);
}

.brand strong {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav-links a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #38506f;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  background: var(--surface-strong);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 35, 63, 0.16);
}

.language-switcher {
  border-color: rgba(16, 35, 63, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.language-option.is-active {
  background: var(--accent);
  color: #062033;
}

.home-hero,
.page-hero {
  border-color: rgba(16, 35, 63, 0.12);
}

.home-hero {
  min-height: 560px;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 169, 199, 0.24), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(255, 207, 102, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(232, 251, 255, 0.92));
  box-shadow: 0 28px 70px rgba(16, 35, 63, 0.11);
}

.home-hero h1 {
  max-width: 680px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
}

.split-title span {
  display: block;
  white-space: nowrap;
}

.home-snapshot {
  border: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 169, 199, 0.28), transparent 30%),
    linear-gradient(145deg, #0e2846, #123b60);
  box-shadow: 12px 12px 0 rgba(16, 35, 63, 0.12);
}

.home-snapshot span,
.home-snapshot span:nth-child(1),
.home-snapshot span:nth-child(3),
.home-snapshot span:nth-child(6),
.home-snapshot span:nth-child(8) {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.home-snapshot span:nth-child(2),
.home-snapshot span:nth-child(5) {
  background: #ffffff;
  color: var(--surface-strong);
}

.home-snapshot span:hover {
  border-color: rgba(0, 169, 199, 0.48);
  box-shadow: 6px 6px 0 rgba(0, 169, 199, 0.22);
}

.entry-card,
.shortcut-section,
.format-search-card,
.converter-card,
.job-panel,
.studio-panel {
  box-shadow: 0 18px 46px rgba(16, 35, 63, 0.08);
}

.entry-card {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 251, 0.78));
}

.entry-card.is-primary {
  background:
    radial-gradient(circle at 84% 16%, rgba(0, 169, 199, 0.22), transparent 32%),
    #ffffff;
}

.entry-card:hover,
.entry-card:focus-visible,
.shortcut-grid a:hover,
.shortcut-grid a:focus-visible,
.format-category-card:hover,
.enhance-card:hover,
.enhance-card:focus-visible,
.enhance-card.is-active {
  border-color: rgba(0, 169, 199, 0.44);
  box-shadow: 8px 8px 0 rgba(16, 35, 63, 0.12), 0 22px 54px rgba(16, 35, 63, 0.13);
}

.page-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 169, 199, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(239, 249, 251, 0.88));
  box-shadow: 0 22px 58px rgba(16, 35, 63, 0.1);
}

.formats-hero {
  background:
    radial-gradient(circle at 92% 18%, rgba(20, 173, 130, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(231, 248, 240, 0.9));
}

.format-belt span,
.shortcut-grid a,
.preset-chip,
.format-link-chip {
  border-color: rgba(16, 35, 63, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.workspace {
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 24px 64px rgba(16, 35, 63, 0.1);
}

.converter-shell {
  grid-template-columns: 220px minmax(0, 1fr) 270px;
}

.quick-panel {
  border: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 199, 0.24), transparent 35%),
    linear-gradient(180deg, #0e2846, #10233f);
  color: #ffffff;
}

.quick-panel .panel-label {
  color: #79e9f5;
}

.quick-converter {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.quick-converter span {
  color: rgba(255, 255, 255, 0.58);
}

.quick-converter:hover,
.quick-converter:focus-visible,
.quick-converter.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  background: #ffffff;
  color: var(--surface-strong);
  box-shadow: 6px 6px 0 rgba(0, 169, 199, 0.2);
}

.quick-converter:hover span,
.quick-converter:focus-visible span,
.quick-converter.is-active span {
  color: var(--accent-dark);
}

.dropzone {
  position: relative;
  min-height: 330px;
  border-color: #a9bfd2;
  background:
    linear-gradient(135deg, rgba(0, 169, 199, 0.09), transparent 46%),
    rgba(239, 249, 251, 0.84);
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px rgba(0, 169, 199, 0.1);
}

.drop-icon {
  border: 0;
  background: var(--surface-strong);
  color: #79e9f5;
  box-shadow: 8px 8px 0 rgba(16, 35, 63, 0.12);
}

.preset-chip:hover,
.preset-chip:focus-visible,
.preset-chip.is-active,
.format-category-tab:hover,
.format-category-tab:focus-visible,
.format-category-tab.is-active {
  border-color: rgba(0, 169, 199, 0.44);
  background: var(--surface-strong);
  color: #ffffff;
}

.button-primary {
  background: var(--surface-strong);
  box-shadow: 0 14px 30px rgba(16, 35, 63, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 18px 36px rgba(0, 169, 199, 0.2);
}

.button-secondary {
  border-color: rgba(16, 35, 63, 0.14);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 35, 63, 0.08);
}

.status-steps li.is-current {
  border-color: rgba(0, 169, 199, 0.34);
  background: var(--surface-soft);
}

.status-steps li.is-current span {
  background: var(--accent);
  color: #062033;
}

.format-browser {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.format-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 18px 42px rgba(16, 35, 63, 0.08);
}

.format-sidebar > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.format-category-tabs {
  display: grid;
  gap: 8px;
}

.format-category-tab {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.format-library-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.format-category-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 199, 0.1), transparent 30%),
    #ffffff;
}

.format-row-meta {
  min-width: 0;
}

.format-category-row h3 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 3vw, 36px);
}

.format-count {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 1000;
}

.format-category-row p {
  max-width: 420px;
  font-size: 14px;
}

.format-category-label {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.format-chip-list {
  align-content: center;
}

.format-link-chip:hover,
.format-link-chip:focus-visible {
  border-color: rgba(0, 169, 199, 0.42);
  background: var(--surface-soft);
  box-shadow: 4px 4px 0 rgba(0, 169, 199, 0.16);
}

.format-card-action {
  min-width: max-content;
  background: var(--surface-strong);
}

.enhance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enhance-card {
  background:
    radial-gradient(circle at top right, rgba(0, 169, 199, 0.12), transparent 42%),
    #ffffff;
}

.enhance-card.is-hot {
  background:
    linear-gradient(135deg, rgba(0, 169, 199, 0.18), transparent 56%),
    #ffffff;
}

.enhance-card span {
  background: var(--surface-strong);
}

.studio-workbench {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 169, 199, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(239, 249, 251, 0.9));
  box-shadow: 0 20px 52px rgba(16, 35, 63, 0.09);
}

.studio-drop {
  border-color: #a9bfd2;
  background: rgba(239, 249, 251, 0.82);
}

.studio-drop:hover,
.studio-drop.is-dragging {
  border-color: var(--accent);
}

.site-footer {
  background:
    radial-gradient(circle at 92% 18%, rgba(0, 169, 199, 0.22), transparent 26%),
    var(--surface-strong);
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline-color: rgba(0, 169, 199, 0.32);
}

@media (max-width: 1120px) {
  .converter-shell {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-panel .panel-label {
    grid-column: 1 / -1;
  }

  .format-category-row {
    grid-template-columns: 1fr;
  }

  .format-card-action {
    width: fit-content;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-hero,
  .page-hero,
  .format-library-head,
  .format-browser,
  .studio-workbench {
    grid-template-columns: 1fr;
  }

  .format-sidebar {
    position: static;
  }

  .format-category-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .format-category-tab {
    width: auto;
    min-width: max-content;
  }

  .entry-grid,
  .enhance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    border-radius: 22px;
  }

  .header-actions {
    align-items: stretch;
  }

  .nav-links {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .nav-links a {
    min-width: max-content;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .home-hero,
  .page-hero {
    min-height: auto;
  }

  .split-title span {
    white-space: normal;
  }

  .entry-grid,
  .enhance-grid,
  .quick-panel,
  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .format-category-row {
    padding: 16px;
  }
}

/* Exact mockup pass: soft canvas, large editorial titles, focused tool pages. */
:root {
  --bg: #f5efe4;
  --ink: #10243d;
  --muted: #6b746f;
  --surface: #fffdf5;
  --surface-soft: #eef8f5;
  --surface-strong: #10243d;
  --line: rgba(16, 36, 61, 0.13);
  --line-strong: rgba(16, 36, 61, 0.22);
  --accent: #74c7c8;
  --accent-dark: #126b73;
  --green: #78c49d;
  --green-soft: #e7f5eb;
  --orange-soft: #f8ead5;
  --shadow: 0 22px 52px rgba(29, 42, 55, 0.09);
  --shadow-hover: 0 28px 64px rgba(29, 42, 55, 0.15);
  --container: min(1380px, calc(100vw - 48px));
  --font-display: "Trebuchet MS", "Microsoft YaHei", sans-serif;
  --font-body: "Aptos", "Microsoft YaHei", sans-serif;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(900px 560px at -8% 18%, rgba(158, 218, 190, 0.55), transparent 66%),
    radial-gradient(760px 520px at 88% 6%, rgba(184, 212, 242, 0.72), transparent 65%),
    radial-gradient(680px 500px at 104% 72%, rgba(216, 236, 208, 0.58), transparent 68%),
    linear-gradient(135deg, #f5efe4 0%, #f8f2e8 44%, #eff6f3 100%);
  background-attachment: fixed;
  background-size: auto;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 52% 14%, rgba(255, 255, 255, 0.46), transparent 30%);
}

.site-header {
  width: var(--container);
  min-height: 76px;
  margin: 18px auto 0;
  padding: 12px 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(16, 36, 61, 0.16);
  background: transparent;
  box-shadow: none;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  color: #f4ead5;
  box-shadow: 0 12px 26px rgba(16, 36, 61, 0.2);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

.brand strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand small {
  color: rgba(16, 36, 61, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.header-actions {
  gap: 22px;
}

.nav-links {
  align-items: center;
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(16, 36, 61, 0.7);
  font-size: 14px;
  font-weight: 900;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  background: var(--surface-strong);
  color: #fff8eb;
}

.language-switcher {
  padding: 4px;
  border: 1px solid rgba(16, 36, 61, 0.14);
  background: rgba(255, 253, 245, 0.76);
  box-shadow: 0 12px 28px rgba(16, 36, 61, 0.07);
  backdrop-filter: blur(14px);
}

.language-option {
  min-height: 34px;
  min-width: 42px;
  padding: 6px 10px;
  color: rgba(16, 36, 61, 0.68);
}

.language-option.is-active {
  background: var(--surface-strong);
  color: #fff8eb;
}

.home-hero,
.page-hero,
.mock-page-hero {
  width: var(--container);
}

.mock-hero,
.mock-page-hero {
  display: grid;
  gap: clamp(26px, 4vw, 70px);
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mock-hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  min-height: 606px;
  margin: 42px auto 0;
  padding: 0;
}

.mock-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  min-height: 430px;
  margin: 46px auto 0;
  padding: 0;
}

.home-copy,
.page-copy {
  max-width: 850px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split-title {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(64px, 8.3vw, 122px);
  font-weight: 1000;
  letter-spacing: -0.095em;
  line-height: 0.86;
  word-break: keep-all;
}

.split-title span {
  display: block;
  white-space: nowrap;
}

.mock-page-hero .split-title {
  font-size: clamp(62px, 7.2vw, 108px);
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(16, 36, 61, 0.68);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
}

.anchor-target {
  display: block;
  width: var(--container);
  height: 1px;
  margin: 26px auto 0;
  scroll-margin-top: 22px;
}

.home-actions {
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  border-radius: 999px;
  font-weight: 1000;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.button-primary {
  background: var(--surface-strong);
  color: #fff8eb;
  box-shadow: 0 16px 34px rgba(16, 36, 61, 0.18);
}

.button-secondary {
  border: 1px solid rgba(16, 36, 61, 0.14);
  background: rgba(255, 253, 245, 0.82);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(16, 36, 61, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #173553;
  box-shadow: 0 22px 42px rgba(16, 36, 61, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(16, 36, 61, 0.28);
  box-shadow: 0 20px 40px rgba(16, 36, 61, 0.13);
}

.home-converter-card,
.convert-overview-card,
.hero-search-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 38px;
  background: rgba(255, 253, 245, 0.76);
  box-shadow: 0 30px 72px rgba(16, 36, 61, 0.12);
  backdrop-filter: blur(18px);
}

.home-converter-card::before,
.convert-overview-card::before,
.hero-search-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 199, 200, 0.22), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(120, 196, 157, 0.16), transparent 36%);
}

.home-converter-card {
  display: grid;
  gap: 18px;
  min-height: 448px;
  padding: 24px;
}

.home-converter-card > *,
.convert-overview-card > *,
.hero-search-card > * {
  position: relative;
}

.mini-drop,
.overview-drop,
.studio-drop,
.dropzone {
  border: 1.5px dashed rgba(16, 36, 61, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 248, 245, 0.76));
}

.mini-drop {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 20px;
  border-radius: 28px;
  text-align: center;
}

.mini-drop-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-strong);
  color: #fff8eb;
  font-size: 26px;
  font-weight: 900;
}

.mini-drop strong,
.overview-drop strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.mini-drop span:last-child,
.overview-drop span {
  max-width: 260px;
  color: rgba(16, 36, 61, 0.58);
  font-size: 14px;
}

.mini-format-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.mini-format-box {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 24px;
  background: #fffdf7;
}

.mini-format-box span {
  color: rgba(16, 36, 61, 0.55);
  font-size: 13px;
  font-weight: 900;
}

.mini-format-box strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: -0.06em;
}

.mini-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #fff8eb;
  font-weight: 1000;
}

.mini-chip-row,
.overview-formats,
.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mini-chip-row a,
.overview-formats span,
.hero-category-pills span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(16, 36, 61, 0.78);
  font-size: 13px;
  font-weight: 1000;
}

.mini-chip-row a:hover,
.mini-chip-row a:focus-visible {
  background: var(--surface-strong);
  color: #fff8eb;
  transform: translateY(-1px);
}

.entry-section,
.image-feature-section,
.formats-page-section {
  width: var(--container);
  margin: 34px auto 0;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.95;
}

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

.entry-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(16, 36, 61, 0.11);
  border-radius: 32px;
  background: rgba(255, 253, 245, 0.78);
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.08);
}

.entry-card::after {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(189, 199, 242, 0.42);
  content: "";
  transition: transform 160ms ease;
}

.entry-card.is-primary {
  background:
    radial-gradient(circle at 100% 100%, rgba(120, 196, 157, 0.2), transparent 34%),
    rgba(255, 253, 245, 0.9);
}

.entry-card:hover,
.entry-card:focus-visible,
.enhance-card:hover,
.enhance-card:focus-visible,
.route-button:hover,
.route-button:focus-visible,
.tool-row:hover,
.tool-row:focus-visible,
.format-route-card:hover,
.format-route-card:focus-visible {
  border-color: rgba(16, 36, 61, 0.22);
  box-shadow: 0 26px 62px rgba(16, 36, 61, 0.14);
  transform: translateY(-4px);
}

.entry-card:hover::after,
.entry-card:focus-visible::after {
  transform: scale(1.14);
}

.entry-card span {
  background: var(--surface-strong);
  color: #fff8eb;
}

.entry-card strong {
  position: relative;
  z-index: 1;
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 2.5vw, 36px);
}

.entry-card p {
  position: relative;
  z-index: 1;
  color: rgba(16, 36, 61, 0.62);
}

.site-footer {
  width: var(--container);
  margin: 64px auto 34px;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 18%, rgba(116, 199, 200, 0.28), transparent 28%),
    #10243d;
  color: #fff8eb;
  box-shadow: 0 26px 60px rgba(16, 36, 61, 0.18);
}

.site-footer p {
  color: rgba(255, 248, 235, 0.66);
}

.site-footer a {
  border: 1px solid rgba(255, 248, 235, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff8eb;
}

.convert-overview-card,
.hero-search-card {
  display: grid;
  gap: 18px;
  min-height: 330px;
  padding: 24px;
}

.overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overview-top span,
.format-search-card span,
.panel-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-top strong {
  color: var(--ink);
  font-size: 56px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.overview-drop {
  display: grid;
  min-height: 138px;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 26px;
}

.convert-workspace {
  display: grid;
  width: var(--container);
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 18px;
  margin: 26px auto 0;
  align-items: stretch;
}

.preset-panel,
.converter-card,
.steps-panel,
.image-workbench-section,
.format-sidebar,
.format-route-card {
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 32px;
  background: rgba(255, 253, 245, 0.82);
  box-shadow: 0 20px 48px rgba(16, 36, 61, 0.08);
  backdrop-filter: blur(16px);
}

.preset-panel,
.steps-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.route-button,
.tool-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 13px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.route-button span,
.tool-row span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(16, 36, 61, 0.08);
  color: rgba(16, 36, 61, 0.65);
  font-size: 12px;
  font-weight: 1000;
}

.route-button.is-active,
.tool-row.is-active {
  background: var(--surface-strong);
  color: #fff8eb;
}

.route-button.is-active span,
.tool-row.is-active span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8eb;
}

.converter-card {
  padding: 24px;
}

.converter-head {
  margin-bottom: 18px;
}

.converter-head h2,
.studio-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 0.98;
}

.service-pill {
  border: 1px solid rgba(16, 36, 61, 0.12);
  background: rgba(238, 248, 245, 0.9);
  color: var(--accent-dark);
}

.dropzone {
  min-height: 300px;
  border-radius: 30px;
  color: var(--ink);
}

.dropzone:hover,
.dropzone.is-dragging,
.studio-drop:hover,
.studio-drop.is-dragging {
  border-color: rgba(18, 107, 115, 0.48);
  box-shadow: inset 0 0 0 5px rgba(116, 199, 200, 0.13);
}

.drop-icon {
  border: 0;
  background: var(--surface-strong);
  color: #fff8eb;
  box-shadow: 0 14px 30px rgba(16, 36, 61, 0.18);
}

.format-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 16px;
}

.format-select {
  border: 1px solid rgba(16, 36, 61, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.format-select select {
  background: transparent;
  color: var(--ink);
}

.format-arrow {
  background: var(--surface-strong);
  color: #fff8eb;
}

.full-button {
  margin-top: 18px;
}

.status-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.status-steps li span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 36, 61, 0.08);
  color: rgba(16, 36, 61, 0.68);
  font-weight: 1000;
}

.status-steps li.is-current {
  border-color: rgba(18, 107, 115, 0.28);
  background: rgba(238, 248, 245, 0.9);
}

.status-steps li.is-current span {
  background: var(--surface-strong);
  color: #fff8eb;
}

.status-message,
.studio-status {
  color: rgba(16, 36, 61, 0.66);
}

.image-showcase {
  position: relative;
  min-height: 340px;
}

.image-card {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 32px;
  background: rgba(255, 253, 245, 0.76);
  box-shadow: 0 26px 62px rgba(16, 36, 61, 0.12);
  color: var(--ink);
  font-size: 34px;
  font-weight: 1000;
  backdrop-filter: blur(16px);
}

.image-card-large {
  inset: 18px 58px auto auto;
  width: 270px;
  height: 260px;
  background:
    radial-gradient(circle at 38% 35%, rgba(120, 196, 157, 0.58), transparent 18%),
    radial-gradient(circle at 64% 62%, rgba(116, 199, 200, 0.5), transparent 23%),
    linear-gradient(135deg, rgba(255, 253, 245, 0.9), rgba(238, 248, 245, 0.92));
}

.image-card-large span {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fffaf0, transparent 19%),
    linear-gradient(135deg, #77c49d, #78c7d0);
}

.image-card-large strong {
  position: absolute;
  right: 22px;
  bottom: 18px;
}

.image-card-small {
  top: 0;
  right: 0;
  width: 122px;
  height: 122px;
}

.image-card-wide {
  right: 18px;
  bottom: 10px;
  width: 240px;
  height: 96px;
}

.image-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.enhance-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(16, 36, 61, 0.11);
  border-radius: 32px;
  background: rgba(255, 253, 245, 0.8);
  text-align: left;
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.enhance-card.is-hot {
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 199, 200, 0.2), transparent 34%),
    rgba(255, 253, 245, 0.88);
}

.enhance-card span {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff8eb;
  font-size: 12px;
  font-weight: 1000;
}

.enhance-card strong {
  margin-top: 30px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.enhance-card p {
  color: rgba(16, 36, 61, 0.62);
}

.image-workbench-section {
  display: grid;
  width: var(--container);
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 18px;
  margin: 26px auto 0;
  padding: 18px;
}

.image-tool-list {
  display: grid;
  gap: 11px;
  align-content: start;
}

.studio-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(16, 36, 61, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 199, 200, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.56);
}

.studio-copy {
  max-width: 760px;
}

.studio-copy p {
  color: rgba(16, 36, 61, 0.62);
}

.studio-drop {
  min-height: 150px;
  border-radius: 26px;
}

.studio-controls {
  grid-template-columns: 1.1fr 0.8fr 1fr;
}

.studio-controls label {
  border: 1px solid rgba(16, 36, 61, 0.1);
  background: rgba(255, 255, 255, 0.66);
}

.format-search-card {
  padding: 24px;
}

.format-search-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.format-search-card p {
  color: rgba(16, 36, 61, 0.62);
}

.format-search-fake {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(16, 36, 61, 0.48);
  font-weight: 900;
}

.formats-page-section {
  display: grid;
  gap: 18px;
}

.format-library-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 24px;
  align-items: end;
}

.format-library-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.95;
}

.format-library-head p {
  margin: 0 0 8px;
  color: rgba(16, 36, 61, 0.62);
}

.format-browser {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.format-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.format-category-tabs {
  display: grid;
  gap: 8px;
}

.format-category-tab {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(16, 36, 61, 0.7);
  text-align: left;
}

.format-category-tab:hover,
.format-category-tab:focus-visible,
.format-category-tab.is-active {
  border-color: transparent;
  background: var(--surface-strong);
  color: #fff8eb;
  transform: translateY(-1px);
}

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

.format-route-card {
  display: grid;
  min-height: 154px;
  align-content: space-between;
  padding: 20px;
  color: var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.format-route-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(116, 199, 200, 0.14);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
}

.format-route-card strong {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.format-route-card p {
  margin: 12px 0 0;
  color: rgba(16, 36, 61, 0.6);
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(116, 199, 200, 0.36);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .mock-hero,
  .mock-page-hero,
  .convert-workspace,
  .image-workbench-section,
  .format-browser,
  .format-library-head {
    grid-template-columns: 1fr;
  }

  .home-converter-card,
  .convert-overview-card,
  .hero-search-card {
    max-width: 620px;
  }

  .preset-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preset-panel .panel-label {
    grid-column: 1 / -1;
  }

  .format-sidebar {
    position: static;
  }

  .format-category-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .format-category-tab {
    width: auto;
    min-width: max-content;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 30px, 1380px);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    max-width: calc(100vw - 122px);
    overflow-x: auto;
  }

  .mock-hero,
  .mock-page-hero {
    min-height: auto;
    margin-top: 34px;
  }

  .split-title,
  .mock-page-hero .split-title {
    font-size: clamp(54px, 14vw, 82px);
  }

  .entry-grid,
  .image-feature-grid,
  .format-library-grid {
    grid-template-columns: 1fr;
  }

  .preset-panel,
  .studio-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 22px, 1380px);
  }

  .site-header {
    margin-top: 10px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    align-items: stretch;
    gap: 10px;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .home-converter-card,
  .convert-overview-card,
  .hero-search-card,
  .converter-card,
  .preset-panel,
  .steps-panel,
  .image-workbench-section,
  .format-sidebar,
  .format-route-card {
    border-radius: 24px;
  }

  .mini-format-row,
  .format-row {
    grid-template-columns: 1fr;
  }

  .mini-arrow,
  .format-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .image-showcase {
    min-height: 280px;
  }

  .image-card-large {
    right: 30px;
    width: 220px;
    height: 220px;
  }

  .image-card-small {
    width: 100px;
    height: 100px;
  }

  .image-card-wide {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .entry-card,
  .enhance-card,
  .route-button,
  .tool-row,
  .format-route-card,
  .mini-chip-row a {
    transition: none;
  }
}

/* Final parity pass for the four approved mockup screens. */
:root {
  --container: min(1380px, calc(100vw - 60px));
}

html {
  min-height: 100%;
  background:
    radial-gradient(900px 560px at -8% 18%, rgba(158, 218, 190, 0.55), transparent 66%),
    radial-gradient(760px 520px at 88% 6%, rgba(184, 212, 242, 0.72), transparent 65%),
    radial-gradient(680px 500px at 104% 72%, rgba(216, 236, 208, 0.58), transparent 68%),
    linear-gradient(135deg, #f5efe4 0%, #f8f2e8 44%, #eff6f3 100%);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 560px at -8% 18%, rgba(158, 218, 190, 0.55), transparent 66%),
    radial-gradient(760px 520px at 88% 6%, rgba(184, 212, 242, 0.72), transparent 65%),
    radial-gradient(680px 500px at 104% 72%, rgba(216, 236, 208, 0.58), transparent 68%),
    linear-gradient(135deg, #f5efe4 0%, #f8f2e8 44%, #eff6f3 100%);
  background-attachment: fixed;
}

.convert-overview-card {
  min-height: 366px;
  padding: 28px 24px 24px;
  align-content: start;
  gap: 18px;
  transform: translateY(-18px);
}

.overview-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.overview-drop {
  display: grid;
  min-height: 140px;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1.5px dashed rgba(16, 36, 61, 0.26);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 248, 245, 0.78));
}

.overview-drop > span {
  color: rgba(16, 36, 61, 0.5);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.convert-workspace {
  grid-template-columns: 250px minmax(0, 1fr) 290px;
}

.image-showcase {
  min-height: 342px;
}

.image-card {
  display: grid;
}

.hero-search-card {
  min-height: 329px;
  padding: 27px 24px 26px;
  align-content: start;
  gap: 17px;
}

.hero-search-card .mock-card-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
}

.hero-search-card strong {
  display: block;
  color: var(--ink);
  font-size: 29px;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.hero-search-card p:not(.mock-card-label) {
  margin: 0;
  color: rgba(16, 36, 61, 0.6);
  font-size: 14px;
  line-height: 1.75;
}

.format-search-fake {
  min-height: 54px;
  margin-top: 2px;
  padding: 0 16px;
}

.hero-search-card .hero-category-pills {
  gap: 12px;
  margin-top: 2px;
}

.format-sidebar > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

@media (max-width: 1120px) {
  .convert-overview-card {
    transform: none;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(1380px, calc(100vw - 30px));
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1380px, calc(100vw - 22px));
  }
}

/* Layout safety pass: keep the approved look, but stop Chinese titles from colliding. */
body {
  background-attachment: scroll;
}

.mock-hero {
  min-height: 560px;
  margin-top: 34px;
  gap: clamp(24px, 3.3vw, 54px);
}

.mock-page-hero {
  min-height: 398px;
  margin-top: 38px;
  gap: clamp(24px, 3.2vw, 52px);
}

.split-title {
  font-size: clamp(56px, 7.2vw, 104px);
  letter-spacing: -0.08em;
  line-height: 1.06;
}

.mock-page-hero .split-title {
  font-size: clamp(50px, 6.2vw, 88px);
  line-height: 1.08;
}

.page-image .mock-page-hero .split-title,
.page-formats .mock-page-hero .split-title {
  font-size: clamp(48px, 5.9vw, 84px);
}

.page-copy {
  max-width: 920px;
}

.hero-text {
  max-width: 680px;
  margin-top: 20px;
  line-height: 1.65;
}

.home-actions {
  margin-top: 26px;
}

.home-converter-card {
  min-height: 420px;
}

.mini-drop {
  min-height: 150px;
}

.convert-overview-card {
  min-height: 330px;
  transform: translateY(-8px);
}

.image-showcase {
  min-height: 310px;
}

.entry-section,
.image-feature-section,
.formats-page-section {
  margin-top: 28px;
}

.entry-card {
  min-height: 220px;
}

.enhance-card {
  min-height: 210px;
}

.convert-workspace,
.image-workbench-section {
  margin-top: 22px;
}

.converter-card {
  padding: 22px;
}

.dropzone {
  min-height: 260px;
}

.format-row {
  margin-top: 10px;
}

.full-button {
  margin-top: 12px;
}

.preset-panel,
.steps-panel {
  padding: 16px;
}

.route-button,
.tool-row {
  min-height: 56px;
  padding: 12px;
}

.site-footer {
  margin-top: 48px;
}

/* Repeated blurred cards made the long format page feel sticky while scrolling. */
.preset-panel,
.steps-panel,
.converter-card,
.image-workbench-section,
.format-sidebar,
.format-route-card,
.studio-panel {
  backdrop-filter: none;
}

.home-converter-card,
.convert-overview-card,
.hero-search-card,
.image-card {
  backdrop-filter: blur(8px);
}

@media (max-width: 1120px) {
  .mock-hero,
  .mock-page-hero {
    min-height: auto;
  }

  .convert-overview-card {
    transform: none;
  }
}

@media (max-width: 860px) {
  .split-title,
  .mock-page-hero .split-title {
    font-size: clamp(46px, 10.5vw, 68px);
    line-height: 1.1;
  }

  .mock-hero,
  .mock-page-hero {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .split-title,
  .mock-page-hero .split-title {
    font-size: clamp(38px, 12vw, 52px);
    letter-spacing: -0.065em;
    line-height: 1.12;
  }

  .split-title span {
    white-space: normal;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
  }

  .home-actions {
    margin-top: 20px;
  }

  .home-converter-card,
  .convert-overview-card,
  .hero-search-card {
    min-height: auto;
  }
}

/* Mobile overflow safety pass: keep the approved mockup style, but never let cards hide off-screen. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
.mock-hero,
.mock-page-hero,
.entry-section,
.image-feature-section,
.formats-page-section,
.convert-workspace,
.image-workbench-section,
.format-browser,
.site-footer {
  max-width: var(--container);
}

.home-converter-card,
.convert-overview-card,
.hero-search-card,
.converter-card,
.preset-panel,
.steps-panel,
.image-workbench-section,
.studio-panel,
.format-sidebar,
.format-route-card,
.format-search-card,
.image-tool-list {
  min-width: 0;
  width: 100%;
}

.format-select,
.studio-controls label,
.mini-format-box,
.route-button,
.tool-row,
.status-steps li,
.overview-drop,
.format-search-fake {
  min-width: 0;
}

select,
input {
  max-width: 100%;
  min-width: 0;
}

.mini-chip-row,
.overview-formats,
.hero-category-pills {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-chip-row a,
.overview-formats span,
.hero-category-pills span,
.route-button strong,
.tool-row strong,
.status-steps strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .mock-hero,
  .mock-page-hero,
  .convert-workspace,
  .image-workbench-section,
  .format-browser,
  .format-library-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-converter-card,
  .convert-overview-card,
  .hero-search-card {
    max-width: 620px;
  }

  .preset-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .preset-panel,
  .studio-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .split-title,
  .mock-page-hero .split-title {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -0.055em;
    line-height: 1.14;
  }

  .mock-hero,
  .mock-page-hero {
    gap: 20px;
  }

  .home-converter-card,
  .convert-overview-card,
  .hero-search-card,
  .converter-card,
  .preset-panel,
  .steps-panel,
  .image-workbench-section,
  .format-sidebar,
  .format-route-card {
    padding: 18px;
  }

  .convert-overview-card {
    gap: 14px;
  }

  .overview-top strong {
    font-size: clamp(52px, 16vw, 72px);
  }

  .overview-drop,
  .dropzone {
    min-height: 220px;
    padding: 18px;
  }

  .format-row,
  .mini-format-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .format-arrow,
  .mini-arrow {
    width: 52px;
    justify-self: center;
  }

  .status-steps li,
  .route-button,
  .tool-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .image-showcase {
    overflow: hidden;
  }
}

/* Visual consistency pass: unify the four approved pages and make image tools feel native. */
.mock-hero,
.mock-page-hero {
  align-items: center;
}

.split-title,
.home-hero .split-title,
.mock-page-hero .split-title,
.page-image .mock-page-hero .split-title,
.page-formats .mock-page-hero .split-title {
  font-size: clamp(58px, 6.8vw, 96px);
  letter-spacing: -0.074em;
  line-height: 1.02;
}

.split-title span {
  display: block;
  white-space: nowrap;
}

.split-title span + span {
  margin-top: 0.08em;
}

.page-copy,
.home-copy {
  max-width: 760px;
}

.hero-text {
  max-width: 720px;
  font-size: clamp(17px, 1.45vw, 21px);
}

.entry-card:hover,
.entry-card:focus-visible,
.enhance-card:hover,
.enhance-card:focus-visible,
.route-button:hover,
.route-button:focus-visible,
.tool-row:hover,
.tool-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(16, 36, 61, 0.2);
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.12);
}

.service-pill {
  min-width: 0;
  max-width: 220px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.image-showcase {
  position: relative;
  min-height: 370px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 16% 14%, rgba(0, 169, 199, 0.16), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(20, 173, 130, 0.18), transparent 32%),
    rgba(255, 253, 245, 0.78);
  box-shadow: 0 30px 72px rgba(16, 36, 61, 0.12);
}

.image-showcase::before {
  position: absolute;
  inset: 26px;
  z-index: -1;
  border: 1px solid rgba(16, 36, 61, 0.08);
  border-radius: 30px;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 36, 61, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 36, 61, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.5);
  background-size: 24px 24px;
}

.image-showcase::after {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  padding: 9px 13px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 999px;
  content: "Clean / HD / ID";
  background: rgba(255, 253, 245, 0.86);
  color: rgba(16, 36, 61, 0.62);
  font-size: 12px;
  font-weight: 1000;
}

/* Owner settings and searchable format library. */
.format-search-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.format-search-box span {
  margin-bottom: 0;
}

.format-search-box input {
  min-height: 56px;
  padding: 0 16px;
  border-color: rgba(16, 36, 61, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.format-search-box input::placeholder {
  color: rgba(16, 36, 61, 0.42);
}

.format-empty-state {
  display: grid;
  min-height: 220px;
  grid-column: 1 / -1;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(16, 36, 61, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 199, 200, 0.16), transparent 34%),
    rgba(255, 253, 245, 0.78);
  color: rgba(16, 36, 61, 0.62);
  font-weight: 900;
  text-align: center;
}

.page-admin .nav-links {
  display: none;
}

.admin-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.admin-lock-card {
  position: relative;
  display: grid;
  min-height: 320px;
  align-content: space-between;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 12%, rgba(116, 199, 200, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(16, 36, 61, 0.96), rgba(18, 107, 115, 0.82));
  color: #fff8eb;
  box-shadow: 0 28px 64px rgba(16, 36, 61, 0.18);
}

.admin-lock-card::before {
  position: absolute;
  right: -44px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(255, 248, 235, 0.16);
  border-radius: 50%;
  content: "";
}

.admin-lock-card span,
.admin-lock-card p {
  position: relative;
  z-index: 1;
}

.admin-lock-card span {
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(255, 248, 235, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.1);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-lock-card strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 118px);
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.admin-lock-card p {
  margin: 0;
  color: rgba(255, 248, 235, 0.72);
  font-weight: 900;
}

.admin-settings-section {
  width: var(--container);
  margin: 28px auto 0;
}

.admin-settings-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 199, 200, 0.16), transparent 30%),
    rgba(255, 253, 245, 0.84);
  box-shadow: 0 26px 62px rgba(16, 36, 61, 0.11);
}

.admin-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.admin-card-head .eyebrow {
  flex: 0 0 100%;
  margin: 0;
}

.admin-card-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}

.admin-key-state {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(16, 36, 61, 0.66);
  font-size: 13px;
  font-weight: 1000;
}

.admin-key-state[data-type="success"] {
  border-color: rgba(20, 173, 130, 0.26);
  background: rgba(231, 248, 240, 0.9);
  color: #08764e;
}

.admin-key-state[data-type="error"] {
  border-color: rgba(200, 50, 34, 0.2);
  background: rgba(255, 239, 235, 0.86);
  color: var(--red);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
}

.admin-form-grid label > span {
  color: rgba(16, 36, 61, 0.72);
  font-size: 13px;
  font-weight: 1000;
}

.admin-form-grid input,
.admin-form-grid select {
  min-height: 56px;
  padding-inline: 16px;
  border-color: rgba(16, 36, 61, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-form-grid small {
  color: rgba(16, 36, 61, 0.56);
  font-weight: 800;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-status {
  min-height: 46px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(16, 36, 61, 0.66);
  font-weight: 900;
}

.admin-status[data-type="success"] {
  border-color: rgba(20, 173, 130, 0.24);
  background: rgba(231, 248, 240, 0.9);
  color: #08764e;
}

.admin-status[data-type="error"] {
  border-color: rgba(200, 50, 34, 0.18);
  background: rgba(255, 239, 235, 0.9);
  color: var(--red);
}

@media (max-width: 1120px) {
  .admin-hero,
  .admin-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-lock-card {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .admin-lock-card,
  .admin-settings-card {
    border-radius: 28px;
  }

  .admin-lock-card {
    min-height: 240px;
    padding: 22px;
  }

  .admin-actions .button {
    width: 100%;
  }
}

.image-card {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-color: rgba(16, 36, 61, 0.14);
  background: rgba(255, 253, 245, 0.86);
  box-shadow: 0 22px 54px rgba(16, 36, 61, 0.14);
  backdrop-filter: none;
}

.image-card-large {
  top: 48px;
  right: auto;
  left: 38px;
  width: min(300px, calc(100% - 86px));
  height: 218px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.8), transparent 16%),
    linear-gradient(135deg, rgba(255, 253, 245, 0.94), rgba(234, 249, 246, 0.95));
}

.image-card-large span {
  position: relative;
  display: block;
  width: 164px;
  height: 112px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(0, 169, 199, 0.74), rgba(20, 173, 130, 0.72)),
    #dff7f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.image-card-large span::before {
  position: absolute;
  top: 20px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  content: "";
  background: #fff8dc;
}

.image-card-large span::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 92px;
  height: 58px;
  content: "";
  background: rgba(16, 36, 61, 0.24);
  clip-path: polygon(0 100%, 38% 22%, 62% 56%, 78% 34%, 100% 100%);
}

.image-card-large strong {
  right: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff8eb;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.image-card-small {
  top: 28px;
  right: 28px;
  width: 130px;
  height: 130px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.74), transparent 18%),
    linear-gradient(135deg, #10243d, #0b6f83);
  color: #fff8eb;
  font-size: 28px;
}

.image-card-wide {
  right: 52px;
  bottom: 70px;
  width: min(262px, calc(100% - 84px));
  height: 104px;
  justify-items: end;
  padding-right: 24px;
  border-radius: 28px;
  background: rgba(255, 253, 245, 0.92);
  font-size: 28px;
}

.image-card-wide::before {
  position: absolute;
  left: 22px;
  width: 112px;
  height: 44px;
  border-radius: 14px;
  content: "";
  background:
    linear-gradient(rgba(16, 36, 61, 0.22), rgba(16, 36, 61, 0.22)) 0 0 / 100% 6px no-repeat,
    linear-gradient(rgba(16, 36, 61, 0.16), rgba(16, 36, 61, 0.16)) 0 19px / 78% 6px no-repeat,
    linear-gradient(rgba(16, 36, 61, 0.11), rgba(16, 36, 61, 0.11)) 0 38px / 92% 6px no-repeat;
}

.studio-panel {
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 199, 0.12), transparent 34%),
    rgba(255, 253, 245, 0.68);
  box-shadow: 0 26px 58px rgba(16, 36, 61, 0.1);
}

.studio-drop {
  position: relative;
  min-height: 260px;
  align-content: center;
  justify-items: start;
  padding: 30px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 248, 245, 0.82));
}

.studio-drop strong,
.studio-drop span {
  position: relative;
  z-index: 1;
  max-width: 370px;
}

.studio-drop strong {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.02;
}

.studio-drop span {
  font-size: 15px;
  line-height: 1.55;
}

.studio-preview-shape {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: block;
  width: 190px;
  height: 126px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 28%, #fff8dc 0 14px, transparent 15px),
    linear-gradient(135deg, rgba(0, 169, 199, 0.72), rgba(20, 173, 130, 0.66));
  box-shadow: 0 18px 42px rgba(16, 36, 61, 0.12);
}

.studio-preview-shape::before {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 130px;
  height: 74px;
  content: "";
  background: rgba(16, 36, 61, 0.22);
  clip-path: polygon(0 100%, 36% 18%, 56% 52%, 74% 28%, 100% 100%);
}

.studio-preview-shape::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(16, 36, 61, 0.08));
}

.studio-drop.has-preview .studio-preview-shape {
  background-image: var(--studio-preview-image);
  background-position: center;
  background-size: cover;
}

.studio-drop.has-preview .studio-preview-shape::before,
.studio-drop.has-preview .studio-preview-shape::after {
  display: none;
}

@media (max-width: 1120px) {
  .image-showcase {
    max-width: 620px;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .split-title,
  .home-hero .split-title,
  .mock-page-hero .split-title,
  .page-image .mock-page-hero .split-title,
  .page-formats .mock-page-hero .split-title {
    font-size: clamp(44px, 10.2vw, 64px);
    line-height: 1.06;
  }

  .split-title span + span {
    margin-top: 0.07em;
  }

  .hero-text {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .split-title,
  .home-hero .split-title,
  .mock-page-hero .split-title,
  .page-image .mock-page-hero .split-title,
  .page-formats .mock-page-hero .split-title {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -0.055em;
    line-height: 1.12;
  }

  .split-title span {
    white-space: normal;
  }

  .split-title span + span {
    margin-top: 0.06em;
  }

  .image-showcase {
    min-height: 300px;
    padding: 18px;
  }

  .image-showcase::before {
    inset: 18px;
  }

  .image-showcase::after {
    right: 18px;
    bottom: 18px;
  }

  .image-card-large {
    top: 44px;
    left: 22px;
    width: 236px;
    height: 184px;
  }

  .image-card-large span {
    width: 132px;
    height: 94px;
  }

  .image-card-small {
    top: 24px;
    right: 20px;
    width: 98px;
    height: 98px;
    font-size: 22px;
  }

  .image-card-wide {
    right: 28px;
    bottom: 58px;
    width: 220px;
    height: 90px;
  }

  .studio-drop {
    min-height: 230px;
    padding: 22px;
  }

  .studio-preview-shape {
    right: 18px;
    bottom: 18px;
    width: 136px;
    height: 92px;
    opacity: 0.72;
  }

  .studio-drop strong,
  .studio-drop span {
    max-width: min(260px, calc(100% - 70px));
  }
}

/* AI image generation page: a separate creative workspace, not another file form. */
.page-generate {
  background:
    radial-gradient(760px 520px at 8% 8%, rgba(255, 196, 130, 0.34), transparent 68%),
    radial-gradient(820px 560px at 90% 8%, rgba(84, 177, 196, 0.36), transparent 66%),
    radial-gradient(700px 520px at 78% 92%, rgba(171, 212, 126, 0.3), transparent 70%),
    linear-gradient(135deg, #f7efe2 0%, #f7f1e8 42%, #edf5ee 100%);
}

.page-generate .nav-links a[href="/image-generate.html"] {
  background: var(--surface-strong);
  color: #fff8eb;
}

.page-generate .generate-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 460px);
  min-height: 470px;
}

.page-generate .mock-page-hero .split-title {
  font-size: clamp(58px, 7vw, 104px);
  line-height: 1.02;
}

.generate-orbit-card {
  position: relative;
  display: grid;
  min-height: 430px;
  align-content: space-between;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 42px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 224, 145, 0.22), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(60, 212, 188, 0.24), transparent 30%),
    linear-gradient(145deg, #10243d 0%, #102b35 52%, #1f382f 100%);
  color: #fff8eb;
  box-shadow: 0 34px 76px rgba(16, 36, 61, 0.22);
}

.generate-orbit-card::before {
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(255, 248, 235, 0.08);
  border-radius: 32px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 248, 235, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.generate-orbit-card p,
.generate-orbit-card span,
.generate-orbit-card b {
  position: relative;
  z-index: 1;
}

.generate-orbit-card p {
  width: fit-content;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.08);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.generate-orbit-card strong {
  position: relative;
  z-index: 1;
  max-width: 340px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.8vw, 72px);
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.generate-orbit-card > span {
  max-width: 310px;
  color: rgba(255, 248, 235, 0.72);
  font-weight: 850;
  line-height: 1.6;
}

.prompt-strip {
  position: relative;
  z-index: 2;
  max-width: 360px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 22px;
  background: rgba(255, 248, 235, 0.1);
  color: rgba(255, 248, 235, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prompt-strip em {
  font-style: normal;
  font-weight: 900;
  line-height: 1.55;
}

.canvas-stack {
  position: absolute;
  right: 22px;
  bottom: 72px;
  width: min(250px, 56%);
  height: 210px;
  pointer-events: none;
}

.canvas-stack i {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 30px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.canvas-stack i:nth-child(1) {
  inset: 36px 0 0 44px;
  background:
    radial-gradient(circle at 32% 24%, #fff0b8 0 14px, transparent 15px),
    linear-gradient(135deg, #1cc2b6, #2f799a);
}

.canvas-stack i:nth-child(2) {
  inset: 12px 42px 36px 12px;
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.88), rgba(202, 233, 218, 0.88));
  transform: rotate(-7deg);
}

.canvas-stack i:nth-child(3) {
  inset: 0 82px 82px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 235, 0.78), transparent 36%),
    linear-gradient(135deg, #f09a5b, #2c6d80);
  transform: rotate(8deg);
}

.generate-orbit-card b {
  width: fit-content;
  justify-self: end;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff8eb;
  color: #10243d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generate-workbench-section {
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(0, 0.54fr) minmax(340px, 0.46fr);
  gap: 20px;
  align-items: stretch;
  margin: 28px auto 0;
}

.generate-panel,
.generate-preview {
  min-width: 0;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 40px;
  background: rgba(255, 253, 245, 0.82);
  box-shadow: 0 28px 66px rgba(16, 36, 61, 0.11);
}

.generate-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.generate-prompt-box,
.generate-form-grid label {
  display: grid;
  gap: 9px;
}

.generate-prompt-box span,
.generate-form-grid span,
.generate-examples > span {
  color: rgba(16, 36, 61, 0.7);
  font-size: 13px;
  font-weight: 1000;
}

.generate-prompt-box textarea {
  width: 100%;
  min-height: 208px;
  resize: vertical;
  padding: 18px;
  border: 1px solid rgba(16, 36, 61, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(242, 248, 243, 0.78));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.generate-prompt-box textarea::placeholder {
  color: rgba(16, 36, 61, 0.38);
}

.generate-prompt-box small {
  justify-self: end;
  color: rgba(16, 36, 61, 0.5);
  font-weight: 900;
}

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

.generate-form-grid select {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(16, 36, 61, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.generate-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.generate-examples button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(16, 36, 61, 0.72);
  font-weight: 1000;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.generate-examples button:hover,
.generate-examples button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(16, 36, 61, 0.2);
  box-shadow: 0 12px 26px rgba(16, 36, 61, 0.1);
}

.generate-status {
  min-height: 46px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(16, 36, 61, 0.66);
  font-weight: 900;
}

.generate-status[data-type="success"] {
  border-color: rgba(20, 173, 130, 0.24);
  background: rgba(231, 248, 240, 0.9);
  color: #08764e;
}

.generate-status[data-type="error"] {
  border-color: rgba(200, 50, 34, 0.18);
  background: rgba(255, 239, 235, 0.9);
  color: var(--red);
}

.generate-preview {
  position: relative;
  display: grid;
  min-height: 640px;
  align-content: start;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 199, 126, 0.22), transparent 28%),
    radial-gradient(circle at 96% 96%, rgba(84, 177, 196, 0.18), transparent 32%),
    rgba(255, 253, 245, 0.84);
}

.generate-preview::before {
  position: absolute;
  inset: 26px;
  z-index: 0;
  border: 1px dashed rgba(16, 36, 61, 0.12);
  border-radius: 32px;
  content: "";
  pointer-events: none;
}

.generate-preview .panel-label,
.generate-preview img,
.generate-empty-state {
  position: relative;
  z-index: 1;
}

.generate-preview img {
  width: 100%;
  max-height: 560px;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 30px;
  background: #fffaf0;
  object-fit: contain;
  box-shadow: 0 24px 54px rgba(16, 36, 61, 0.14);
}

.generate-preview.has-result .generate-empty-state {
  display: none;
}

.generate-empty-state {
  display: grid;
  min-height: 520px;
  place-content: center;
  gap: 12px;
  padding: 24px;
  color: rgba(16, 36, 61, 0.58);
  text-align: center;
}

.generate-empty-state strong {
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.generate-empty-state span {
  max-width: 340px;
  font-weight: 850;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .page-generate .generate-hero,
  .generate-workbench-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .generate-orbit-card,
  .generate-preview {
    max-width: 680px;
    width: 100%;
  }

  .generate-preview {
    min-height: 540px;
  }
}

@media (max-width: 860px) {
  .page-generate .mock-page-hero .split-title {
    font-size: clamp(44px, 10.2vw, 68px);
  }

  .generate-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-generate .site-header,
  .page-generate .generate-hero,
  .page-generate .generate-workbench-section,
  .page-generate .site-footer {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .page-generate .generate-hero,
  .generate-workbench-section {
    overflow: hidden;
  }

  .page-generate .generate-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .page-generate .page-copy {
    width: 100%;
    min-width: 0;
  }

  .page-generate .hero-text {
    width: min(100%, 320px);
    max-width: 320px;
  }

  .page-generate .hero-text,
  .generate-orbit-card > span,
  .prompt-strip em {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .page-generate .mock-page-hero .split-title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .generate-orbit-card,
  .generate-panel,
  .generate-preview {
    border-radius: 28px;
  }

  .generate-orbit-card {
    min-height: 360px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 20px;
  }

  .generate-orbit-card strong {
    max-width: min(250px, 100%);
    font-size: clamp(36px, 12vw, 52px);
  }

  .prompt-strip {
    width: min(100%, 292px);
    max-width: 292px;
  }

  .generate-orbit-card b {
    justify-self: start;
  }

  .page-generate .hero-text {
    width: min(100%, 314px);
    max-width: 314px;
  }

  .generate-orbit-card {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    justify-self: start;
  }

  .canvas-stack {
    display: none;
  }

  .generate-preview,
  .generate-empty-state {
    min-height: 410px;
  }

  .generate-preview img {
    max-height: 390px;
  }

  .generate-examples button,
  .studio-actions .button,
  .studio-actions .download-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .generate-examples button {
    transition: none;
  }
}

/* Document translation page and honest availability states. */
.entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.route-button.is-disabled,
.route-button:disabled,
.format-route-card.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.route-button.is-disabled:hover,
.route-button.is-disabled:focus-visible,
.route-button:disabled:hover,
.route-button:disabled:focus-visible,
.format-route-card.is-disabled:hover,
.format-route-card.is-disabled:focus-visible {
  border-color: rgba(16, 36, 61, 0.1);
  box-shadow: 0 20px 48px rgba(16, 36, 61, 0.08);
  transform: none;
}

.format-route-card.is-disabled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(243, 240, 231, 0.72));
  color: rgba(16, 36, 61, 0.72);
}

.format-route-card.is-disabled span,
.format-route-card.is-disabled .format-card-action {
  background: rgba(16, 36, 61, 0.07);
  color: rgba(16, 36, 61, 0.48);
}

.format-card-action {
  width: fit-content;
  margin-top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(116, 199, 200, 0.14);
  color: var(--accent-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}

.page-translate {
  background:
    radial-gradient(780px 520px at 10% 8%, rgba(116, 199, 200, 0.34), transparent 68%),
    radial-gradient(780px 520px at 90% 12%, rgba(255, 196, 130, 0.3), transparent 68%),
    radial-gradient(680px 500px at 74% 90%, rgba(171, 212, 126, 0.28), transparent 70%),
    linear-gradient(135deg, #f3efe5 0%, #edf4ee 50%, #f6efe1 100%);
}

.page-translate .nav-links a[href="/translate.html"] {
  background: var(--surface-strong);
  color: #fff8eb;
}

.page-translate .translate-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 460px);
  min-height: 470px;
}

.page-translate .mock-page-hero .split-title {
  font-size: clamp(58px, 7vw, 104px);
  line-height: 1.02;
}

.translate-flow-card {
  position: relative;
  display: grid;
  min-height: 430px;
  align-content: space-between;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 217, 137, 0.28), transparent 30%),
    radial-gradient(circle at 86% 74%, rgba(116, 199, 200, 0.28), transparent 34%),
    linear-gradient(145deg, #10243d 0%, #153044 52%, #243d32 100%);
  color: #fff8eb;
  box-shadow: 0 34px 76px rgba(16, 36, 61, 0.22);
}

.translate-flow-card::before {
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(255, 248, 235, 0.08);
  border-radius: 32px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 248, 235, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.translate-flow-card p {
  width: fit-content;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.08);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.translate-flow-card strong {
  max-width: 360px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.8vw, 72px);
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.translate-flow-card > span {
  max-width: 320px;
  color: rgba(255, 248, 235, 0.74);
  font-weight: 850;
  line-height: 1.6;
}

.translate-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.translate-steps i {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 26px;
  background: rgba(255, 248, 235, 0.1);
  color: #fff8eb;
  font-style: normal;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.translate-workbench-section {
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 20px;
  align-items: stretch;
  margin: 28px auto 0;
}

.translate-panel,
.translate-guide-card {
  min-width: 0;
  border: 1px solid rgba(16, 36, 61, 0.12);
  border-radius: 40px;
  background: rgba(255, 253, 245, 0.84);
  box-shadow: 0 28px 66px rgba(16, 36, 61, 0.11);
}

.translate-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.translate-drop {
  min-height: 260px;
}

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

.translate-form-grid label {
  display: grid;
  gap: 9px;
}

.translate-form-grid label[hidden] {
  display: none;
}

.translate-form-grid span {
  color: rgba(16, 36, 61, 0.7);
  font-size: 13px;
  font-weight: 1000;
}

.translate-form-grid select,
.translate-form-grid input {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(16, 36, 61, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.translate-status {
  min-height: 46px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(16, 36, 61, 0.66);
  font-weight: 900;
}

.translate-status[data-type="success"] {
  border-color: rgba(20, 173, 130, 0.24);
  background: rgba(231, 248, 240, 0.9);
  color: #08764e;
}

.translate-status[data-type="error"] {
  border-color: rgba(200, 50, 34, 0.18);
  background: rgba(255, 239, 235, 0.9);
  color: var(--red);
}

.translate-guide-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 540px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(116, 199, 200, 0.18), transparent 30%),
    radial-gradient(circle at 90% 86%, rgba(255, 196, 130, 0.2), transparent 34%),
    rgba(255, 253, 245, 0.84);
}

.translate-guide-card strong {
  max-width: 360px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 66px);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.translate-guide-card > span {
  max-width: 390px;
  color: rgba(16, 36, 61, 0.64);
  font-weight: 850;
  line-height: 1.7;
}

.translate-format-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.translate-format-cloud span {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(16, 36, 61, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(16, 36, 61, 0.72);
  font-weight: 1000;
}

@media (max-width: 1180px) {
  .entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-translate .translate-hero,
  .translate-workbench-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .translate-flow-card,
  .translate-guide-card {
    max-width: 680px;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .entry-grid,
  .translate-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-translate .mock-page-hero .split-title {
    font-size: clamp(44px, 10.2vw, 68px);
  }
}

@media (max-width: 640px) {
  .page-translate .site-header,
  .page-translate .translate-hero,
  .page-translate .translate-workbench-section,
  .page-translate .site-footer {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .page-translate .translate-hero,
  .translate-workbench-section {
    overflow: hidden;
  }

  .page-translate .translate-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .page-translate .hero-text,
  .translate-flow-card > span,
  .translate-guide-card > span {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .page-translate .mock-page-hero .split-title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .translate-flow-card,
  .translate-panel,
  .translate-guide-card {
    border-radius: 28px;
  }

  .translate-flow-card {
    min-height: 360px;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    justify-self: start;
    padding: 20px;
  }

  .translate-flow-card strong,
  .translate-guide-card strong {
    max-width: min(280px, 100%);
    font-size: clamp(36px, 12vw, 52px);
  }

  .translate-steps {
    grid-template-columns: 1fr;
  }

  .translate-steps i {
    min-height: 58px;
  }

  .translate-drop {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .format-card-action,
  .translate-format-cloud span {
    transition: none;
  }
}
