@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #173e3b;
  --ink-soft: #42615e;
  --line: #dbeae7;
  --canvas: #ffffff;
  --wash: #f2fbf9;
  --mint: #d8fff6;
  --teal: #00ad9f;
  --teal-deep: #08786f;
  --teal-dark: #064f4b;
  --orange: #ffb74d;
  --success: #0b7d57;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: linear-gradient(180deg, #fff 0 620px, var(--wash) 620px); font-family: inherit; }
button, select, input { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(100% - 2rem, 990px); margin: 0 auto; padding: 2.25rem 0 3.5rem; }

/* ==========================================================================
   Modern Sticky Header & Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 234, 231, 0.85);
  box-shadow: 0 4px 20px -2px rgba(8, 120, 111, 0.04);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.header-inner {
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .18s ease;
}

.header-brand:hover {
  opacity: 0.9;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 173, 159, 0.28);
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-logo svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

/* Nav Tabs */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(242, 251, 249, 0.85);
  border: 1px solid rgba(219, 234, 231, 0.9);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all .18s ease;
  position: relative;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.7);
}

.nav-item.active {
  background: #ffffff;
  color: var(--teal-dark);
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(8, 120, 111, 0.12);
  border: 1px solid rgba(167, 222, 212, 0.7);
}

.nav-item .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
}

.nav-svg, .lang-svg {
  display: block;
  stroke: currentColor;
  flex-shrink: 0;
}

.mobile-nav-item .nav-icon .nav-svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--teal-deep);
}

.mobile-nav-item.active .nav-icon .nav-svg {
  color: var(--teal);
}


/* Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #f3fcfa;
  border: 1px solid #b6e7df;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #00ad9f;
  box-shadow: 0 0 0 0 rgba(0, 173, 159, 0.5);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 173, 159, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(0, 173, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 173, 159, 0); }
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid #a8dcd4;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all .18s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.language-toggle:hover {
  border-color: var(--teal);
  background: var(--mint);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 173, 159, 0.15);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #b6e7df;
  border-radius: 999px;
  background: rgba(242, 251, 249, 0.95);
  color: var(--teal-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all .18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.lang-dropdown-btn:hover,
.lang-dropdown-btn[aria-expanded="true"] {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 173, 159, 0.15);
}

.lang-dropdown-btn .lang-globe {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--teal-deep);
}

.current-lang-text {
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
}

.dropdown-chevron {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--teal-deep);
  transition: transform .2s ease;
}

.lang-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 155px;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 222, 212, 0.8);
  box-shadow: 0 10px 25px rgba(8, 120, 111, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: dropdown-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu[hidden] {
  display: none;
}

@keyframes dropdown-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.lang-option.active {
  background: #e8f9f5;
  color: var(--teal-dark);
  font-weight: 800;
}

.lang-option-text {
  flex: 1;
}

.lang-option-code {
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--teal-deep);
  background: rgba(0, 173, 159, 0.1);
  padding: 0.12rem 0.38rem;
  border-radius: 0.35rem;
  line-height: 1;
}

.lang-check {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  opacity: 0;
  width: 12px;
  line-height: 1;
}

.lang-option.active .lang-check {
  opacity: 1;
}

/* Mobile Tabs Bar - hidden on desktop */
.mobile-tabs-bar {
  display: none;
}

.mobile-tab-btn {
  display: none;
}

/* Legacy fallback support */
.site-nav { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: 1rem; min-height: 360px; margin-bottom: 2.1rem; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .step { margin: 0; color: var(--teal-deep); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 620px; margin: .9rem 0 1.1rem; color: var(--ink); font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.18; letter-spacing: -0.015em; font-weight: 800; }
h1 span { color: var(--teal); }
.intro { max-width: 550px; margin-bottom: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.hero-points { display: flex; flex-wrap: wrap; gap: .55rem; }.hero-points span { padding: .42rem .68rem; border-radius: 99px; background: var(--mint); color: var(--teal-dark); font-size: .8rem; font-weight: 750; }
.hero-art { display: grid; place-items: center; height: 360px; overflow: visible; }.hero-art img { display: block; width: min(100%, 340px); height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0, 114, 104, .13)); }
.workbench { padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 1.4rem; background: #fff; box-shadow: 0 20px 60px rgba(20, 89, 81, .10); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }h2 { margin: .36rem 0 0; color: var(--ink); font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -0.01em; line-height: 1.25; font-weight: 750; }
.local-badge { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .48rem .65rem; border: 1px solid #a7ded4; border-radius: 99px; background: #f5fffc; color: var(--teal-dark); font-size: .78rem; white-space: nowrap; }.local-badge i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--teal); }
.drop-zone { display: grid; justify-items: center; gap: .65rem; margin: 1.7rem 0 1.1rem; padding: 2.45rem 1rem; border: 1.5px dashed #8acfc4; border-radius: 1rem; background: #f7fcfb; cursor: pointer; text-align: center; transition: .18s ease; }.drop-zone:hover, .drop-zone.dragging { border-color: var(--teal); background: #eafff9; transform: translateY(-2px); }.drop-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.drop-zone strong { color: var(--ink); font-size: 1rem; }.drop-zone span:not(.drop-icon) { color: var(--ink-soft); font-size: .88rem; }.drop-icon { display: block; width: 4.25rem; height: 4.25rem; border-radius: 1.2rem; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0, 173, 159, .16)); transition: transform .18s ease, filter .18s ease; }.drop-zone:hover .drop-icon, .drop-zone.dragging .drop-icon { transform: translateY(-2px) scale(1.04); filter: drop-shadow(0 13px 19px rgba(0, 173, 159, .24)); }
.file-card { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }.file-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: var(--mint); color: var(--teal-dark); font-weight: 850; }.file-info { display: grid; min-width: 0; gap: .12rem; flex: 1; }.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-info span { color: var(--ink-soft); font-size: .82rem; }.text-button { padding: .2rem; border: 0; background: transparent; color: var(--teal-deep); cursor: pointer; font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: .18rem; }
.settings { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.settings label { display: grid; gap: .45rem; align-content: start; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }select { min-width: 12.5rem; padding: .67rem .8rem; border: 1px solid #b9dcd7; border-radius: .6rem; background: #fff; color: var(--ink); cursor: pointer; }dl { grid-column: 1 / -1; display: flex; gap: 1.75rem; margin: 0; color: var(--ink-soft); font-size: .84rem; }dl div { display: flex; gap: .45rem; }dt { color: #6f8986; }dd { margin: 0; color: var(--ink); font-weight: 650; }
.primary-button, .download-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1rem 1.15rem; border: 0; border-radius: .75rem; background: var(--teal); color: #fff; cursor: pointer; font-weight: 850; text-decoration: none; transition: .18s ease; }.primary-button:hover:not(:disabled), .download-button:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 9px 16px rgba(0, 173, 159, .22); }.primary-button:disabled { cursor: not-allowed; background: #a7c6c1; }.primary-button b { font-size: 1.35rem; line-height: .7; }
.status-panel, .result-card { margin-top: 1.5rem; padding: 1.1rem; border-radius: .9rem; background: var(--wash); }.status-line { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .88rem; }.status-line span:last-child { color: var(--teal-deep); font-variant-numeric: tabular-nums; font-weight: 800; }.progress-track { height: .45rem; overflow: hidden; margin: .75rem 0; border-radius: 9px; background: #cfe7e2; }#progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .15s linear; }#status-note { margin: 0; color: #63807c; font-size: .78rem; line-height: 1.45; }
.result-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; border: 1px solid #aee3cf; background: #f4fff9; }.result-card h2 { color: var(--success); }.result-card p:last-child { margin: .45rem 0 0; color: var(--ink-soft); font-size: .9rem; }.download-button { width: auto; gap: .8rem; background: var(--teal-dark); white-space: nowrap; }.error-message { margin: 1rem 0 0; color: #c34235; font-size: .9rem; line-height: 1.5; }.privacy-note { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; margin: 1.25rem 0 0; padding: 1.15rem 1.3rem; border-radius: .85rem; background: #eafff8; color: var(--ink-soft); font-size: .86rem; line-height: 1.55; }.privacy-note span { color: var(--teal-dark); font-weight: 850; }.privacy-note p { margin: 0; }
.transcript-shell { max-width: 900px; }.transcript-hero { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 2rem; margin-bottom: 2.4rem; }.transcript-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.35rem); }.transcript-orb { position: relative; display: grid; place-items: center; width: 190px; height: 190px; justify-self: end; border: 1px solid #b7ede3; border-radius: 45% 55% 57% 43% / 45% 44% 56% 55%; background: radial-gradient(circle at 36% 30%, #fff 0 9%, #cdfcf3 25%, #8be5d7 61%, #20bbae 100%); box-shadow: 0 22px 45px rgba(0, 132, 120, .16); transform: rotate(-11deg); }.transcript-orb span { color: var(--teal-dark); font-size: 5.4rem; font-weight: 900; transform: rotate(11deg); }.transcript-orb i, .transcript-orb b { position: absolute; display: block; border-radius: 99px; background: #fff; }.transcript-orb i { width: 42px; height: 10px; right: -12px; top: 32px; }.transcript-orb b { width: 17px; height: 17px; left: -5px; bottom: 38px; }.limit-badge { flex: none; padding: .48rem .7rem; border: 1px solid #f5c96b; border-radius: 99px; background: #fff8e8; color: #9b6300; font-size: .78rem; font-weight: 800; white-space: nowrap; }.transcript-options { margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.transcript-options p:last-child { margin: .5rem 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }.pulse-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 173, 159, .4); animation: pulse 1.25s infinite; }.transcript-result { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #aee3cf; border-radius: .9rem; background: #fafffd; }.result-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }.secondary-button { padding: .58rem .72rem; border: 1px solid #9ed8cf; border-radius: .6rem; background: #fff; color: var(--teal-dark); cursor: pointer; font-size: .8rem; font-weight: 800; }.secondary-button:hover { border-color: var(--teal); background: var(--mint); }.transcript-result pre { overflow: auto; min-height: 9rem; max-height: 27rem; margin: 1.1rem 0 0; padding: 1rem; border-radius: .65rem; background: #fff; color: #294e4a; font: .91rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }.remote-note { background: #fffaf0; }.remote-note span { color: #9b6300; }@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0, 173, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 173, 159, 0); } }
.split-shell { max-width: 900px; }.split-hero { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 2rem; margin-bottom: 2.4rem; }.split-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.35rem); }.split-art { position: relative; justify-self: end; width: 205px; height: 150px; }.split-art i { position: absolute; top: 18px; display: block; width: 72px; height: 112px; border: 1px solid #a7ded4; border-radius: 1rem; background: linear-gradient(145deg, #fff, #c4fff3); box-shadow: 0 18px 30px rgba(0, 124, 112, .12); }.split-art i:nth-child(1) { left: 4px; transform: rotate(-13deg); }.split-art i:nth-child(2) { left: 65px; z-index: 1; transform: translateY(-11px); background: linear-gradient(145deg, #fff, #d6fbff); }.split-art i:nth-child(3) { right: 4px; transform: rotate(13deg); }.split-art b { position: absolute; z-index: 2; top: 52px; left: 88px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.4rem; box-shadow: 0 9px 15px rgba(0, 173, 159, .3); }.split-settings { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1.3rem; margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.split-settings p:last-child { margin: .55rem 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }.parts-control { display: grid; gap: .43rem; min-width: 9rem; color: var(--ink-soft); font-size: .82rem; font-weight: 800; }.parts-control input { width: 100%; padding: .62rem .72rem; border: 1px solid #b9dcd7; border-radius: .6rem; background: #fff; color: var(--ink); font: inherit; }.parts-control small { color: #70908b; font-size: .72rem; font-weight: 650; }.split-results { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #aee3cf; border-radius: .9rem; background: #fafffd; }.split-results-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: .75rem; margin-top: 1.1rem; }.split-download { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem; border: 1px solid #b9e4dc; border-radius: .7rem; background: #fff; color: var(--teal-dark); text-decoration: none; transition: .18s ease; }.split-download:hover { border-color: var(--teal); box-shadow: 0 7px 15px rgba(0, 173, 159, .12); transform: translateY(-1px); }.split-download span { display: grid; gap: .14rem; }.split-download b { font-size: .86rem; }.split-download small { color: var(--ink-soft); font-size: .75rem; }.split-download em { font-size: .76rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.download-all-button { padding: .6rem .8rem; border: 1px solid var(--teal); border-radius: .6rem; background: var(--teal); color: #fff; cursor: pointer; font-size: .8rem; font-weight: 850; }.download-all-button:hover:not(:disabled) { background: var(--teal-deep); }.download-all-button:disabled { cursor: wait; opacity: .7; }

/* Responsive Media Queries */
@media (max-width: 960px) {
  .header-inner {
    padding: 0.65rem 0;
    gap: 0.75rem;
  }
  .header-status {
    display: none;
  }
  .nav-item {
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    width: min(100% - 1.5rem, 1040px);
    padding: 0.65rem 0;
  }
  .header-nav {
    display: none;
  }
  .mobile-tabs-bar {
    display: flex;
    width: min(100% - 1.5rem, 1040px);
    margin: 0 auto 0.65rem;
    padding: 0.25rem;
    border-radius: 0.75rem;
    background: rgba(242, 251, 249, 0.95);
    border: 1px solid rgba(219, 234, 231, 0.9);
    gap: 0.25rem;
  }
  .mobile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
  }
  .mobile-tab-btn:hover {
    color: var(--teal-deep);
  }
  .mobile-tab-btn.active {
    background: #ffffff;
    color: var(--teal-dark);
    font-weight: 750;
    box-shadow: 0 2px 8px rgba(8, 120, 111, 0.12);
    border: 1px solid rgba(167, 222, 212, 0.8);
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
  .shell {
    width: min(100% - 1.5rem, 900px);
    padding-top: 1.5rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 0;
  }
  .hero-copy {
    order: -1;
  }
  .hero-art {
    height: 220px;
    margin: 0 auto;
  }
  .hero-art img {
    width: 220px;
  }
  .split-hero, .transcript-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .split-art, .transcript-orb {
    justify-self: center;
  }
  .settings {
    grid-template-columns: 1fr;
  }
  dl {
    display: grid;
    gap: 0.4rem;
  }
  .result-card {
    grid-template-columns: 1fr;
  }
  .download-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    width: min(100% - 1.25rem, 1040px);
    padding: 0.55rem 0;
  }
  .mobile-tabs-bar {
    width: min(100% - 1.25rem, 1040px);
    margin-bottom: 0.5rem;
  }
  .brand-badge {
    display: none;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-logo {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
  }
  .lang-dropdown-btn {
    padding: 0.32rem 0.6rem;
    gap: 0.35rem;
    font-size: 0.74rem;
  }
  .current-lang-text {
    font-size: 0.76rem;
  }
  .lang-dropdown-menu {
    min-width: 140px;
  }
  .mobile-tab-btn {
    font-size: 0.76rem;
    padding: 0.42rem 0.15rem;
    gap: 0.25rem;
  }
  .mobile-tab-btn .nav-svg {
    width: 13px;
    height: 13px;
  }
  .section-heading {
    display: grid;
    gap: 0.5rem;
  }
  .privacy-note {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
