:root {
  --ink: #161310;
  --ink-soft: #4a433b;
  --paper: #f3eee4;
  --paper-deep: #e6ddd0;
  --sheet: #fffdf8;
  --gold: #a17b45;
  --gold-bright: #c4a36a;
  --gold-dim: rgba(161, 123, 69, 0.16);
  --line: rgba(22, 19, 16, 0.1);
  --seal: #7a2e24;
  --shadow: 0 24px 60px rgba(22, 19, 16, 0.12);
  --serif: "Noto Serif SC", "Cormorant Garamond", "Songti SC", serif;
  --sans: "Noto Sans SC", "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(196, 163, 106, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(122, 46, 36, 0.06), transparent 50%),
    var(--paper);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  margin: 0;
}

p {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede,
.section-lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  position: relative;
  color: #1b140c;
  isolation: isolate;
  overflow: hidden;
  background-color: #c4a36a;
  background-image: linear-gradient(180deg, #e2c48a, #c4a36a 48%, #a17b45);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.55),
    0 12px 18px -8px rgba(161, 123, 69, 0.45);
}

.btn-gold:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.7),
    0 14px 22px -8px rgba(161, 123, 69, 0.5);
}

.btn-gold .ripple,
.has-ripple .ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: overlay;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 236, 198, 0.4) 38%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: drop-spread 0.9s ease-out forwards;
}

.lang-switch summary.has-ripple .ripple {
  mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(196, 163, 106, 0.5) 0%, rgba(226, 196, 138, 0.22) 42%, rgba(196, 163, 106, 0) 70%);
}

@keyframes drop-spread {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.85;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(28);
    opacity: 0;
  }
}

.btn-gold:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-auth {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.45);
  border: 1px solid rgba(22, 19, 16, 0.12);
  box-shadow: none;
  white-space: nowrap;
}

.btn-auth:hover {
  transform: none;
  color: var(--ink);
  border-color: rgba(161, 123, 69, 0.42);
  background: rgba(255, 253, 248, 0.9);
}

.btn-auth:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

body.is-signed-in .btn-auth {
  display: none !important;
}

body:not(.is-signed-in) .account {
  display: none !important;
}

.btn-block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.brand-mark {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a.is-active {
  color: var(--gold);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
  min-width: 0;
}

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

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch-current {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.lang-flag {
  display: inline-flex;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 19, 16, 0.08);
  flex: none;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(280px, 70vw);
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lang-panel a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.lang-panel a:hover,
.lang-panel a.is-current {
  background: var(--gold-dim);
}

.account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.account-menu {
  position: static;
}

.account-avatar {
  list-style: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(161, 123, 69, 0.35);
  border-radius: 50%;
  background: var(--sheet);
  cursor: pointer;
}

.account-avatar::-webkit-details-marker {
  display: none;
}

.account-avatar:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.account-face {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
}

.account-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 50;
  min-width: 220px;
  max-width: min(280px, 80vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.account-label {
  margin: 0 8px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  word-break: break-all;
}

.account-panel a,
.account-panel button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
}

.account-panel a:hover,
.account-panel button:hover {
  background: var(--gold-dim);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle-icon {
  display: block;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(161, 123, 69, 0.22);
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  padding: 12px 12px;
  border: 0;
  border-radius: 12px;
  border-bottom: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover,
.mobile-nav a:active,
.mobile-nav button:active {
  background: rgba(161, 123, 69, 0.1);
}

.mobile-nav > a:last-of-type {
  border-bottom: 0;
}

.mobile-nav-guest > :last-child,
.mobile-nav-account > :last-child {
  border-bottom: 0;
}

.mobile-nav-guest,
.mobile-nav-account {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(161, 123, 69, 0.18);
}

.mobile-nav-guest[hidden],
.mobile-nav-account[hidden] {
  display: none !important;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
}

.hero-em {
  font-style: italic;
  color: var(--seal);
}

.hero .lede {
  margin: 18px 0 16px;
}

.hero-proof {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 0;
  align-items: start;
}

.hero-proof li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 4px 0;
  padding-inline-start: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.hero-proof li:last-child {
  align-items: flex-start;
}

.hero-proof li:last-child::before {
  top: calc(4px + 0.675em);
  transform: translateY(-50%);
}

.stat-count {
  display: inline-block;
  margin: 0 0.18em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45em;
  line-height: 1;
  letter-spacing: 0.02em;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(165deg, #efd09a 0%, #c45c4a 48%, #7a2e24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--seal);
  -webkit-text-fill-color: transparent;
}

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

.hero-folio {
  min-height: 380px;
  overflow: hidden;
}

.folio-stack {
  position: relative;
  width: min(340px, 100%);
  margin-inline: auto;
  height: 400px;
}

.folio-sheet {
  position: absolute;
  inset: 24px 18px;
  border-radius: 18px;
  background: var(--sheet);
  border: 1px solid rgba(161, 123, 69, 0.22);
}

.folio-back {
  transform: rotate(-7deg) translate(18px, 12px);
  background: #efe6d6;
}

.folio-mid {
  transform: rotate(5deg) translate(-10px, 8px);
  background: #f7f1e6;
}

.folio-front {
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.folio-seal {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: radial-gradient(circle at 30% 30%, #a84b3e, var(--seal));
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.folio-line,
.folio-line.short,
.folio-line.mid {
  height: 8px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(22, 19, 16, 0.1), rgba(22, 19, 16, 0.04));
}

.folio-line.short { width: 58%; }
.folio-line.mid { width: 78%; }

.folio-meta {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.close-panel h2,
.studio-hero h1,
.error-inner h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-family: var(--display);
  font-weight: 500;
}

.desk-section,
.steps-section,
.langs-section,
.craft-section,
.faq-section,
.close-section,
.studio-board {
  padding: 28px 0 64px;
}

.desk,
.studio-manuscript,
.studio-panel,
.close-panel {
  background: var(--sheet);
  border: 1px solid rgba(161, 123, 69, 0.18);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.desk {
  padding: 22px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(161, 123, 69, 0.55);
  background:
    linear-gradient(180deg, rgba(243, 238, 228, 0.4), rgba(255, 253, 248, 0.2));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone.is-over,
.dropzone:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.dropzone-tall {
  min-height: 260px;
}

.drop-ornament {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(161, 123, 69, 0.18) 39% 42%, transparent 43%),
    var(--sheet);
}

.drop-title {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.drop-formats,
.desk-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.drop-btn {
  margin-top: 10px;
}

.desk-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.desk-controls label,
.settings label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

select {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}

.lang-picker {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}

.lang-trigger:hover,
.lang-picker.is-open .lang-trigger {
  border-color: rgba(161, 123, 69, 0.55);
}

.lang-trigger [data-lang-label] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.lang-caret {
  flex: none;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink-soft);
  transition: transform 0.18s ease;
}

.lang-picker.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: min(360px, 55vh);
  padding: 8px;
  border: 1px solid rgba(161, 123, 69, 0.28);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 18px 40px -24px rgba(40, 28, 14, 0.45);
}

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

.lang-search {
  width: 100%;
  min-height: 40px;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(161, 123, 69, 0.22);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0;
}

.lang-search:focus {
  outline: none;
  border-color: rgba(161, 123, 69, 0.55);
}

.lang-list {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px 0 4px;
}

.lang-section + .lang-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(161, 123, 69, 0.14);
}

.lang-section-head {
  padding: 4px 10px 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-align: start;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(243, 238, 228, 0.9);
  outline: none;
}

.lang-option.is-selected {
  background: rgba(47, 122, 79, 0.12);
  color: #1f6b45;
  font-weight: 600;
}

.lang-empty {
  margin: 0;
  padding: 18px 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0;
}

.desk-arrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.4rem;
}

.desk-note {
  margin-top: 16px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
}

.steps li {
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.steps p {
  color: var(--ink-soft);
}

.craft {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
}

.craft li {
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.craft h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.craft p {
  color: var(--ink-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item[open] {
  border-color: rgba(161, 123, 69, 0.38);
  background: var(--sheet);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq-item .faq-body p + p,
.faq-item .faq-body p + ul,
.faq-item .faq-body ul + p {
  margin-top: 12px;
}

.faq-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-lines li {
  position: relative;
  padding: 3px 0 3px 0.95em;
}

.faq-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

[dir="rtl"] .faq-lines li {
  padding-left: 0;
  padding-right: 0.95em;
}

[dir="rtl"] .faq-lines li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .faq-item summary::after {
  transform: rotate(135deg);
}

[dir="rtl"] .faq-item[open] summary::after {
  transform: rotate(-45deg);
}

.lang-mosaic {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
}

.lang-mosaic a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}

.lang-mosaic a:hover,
.lang-mosaic a.is-current {
  border-color: var(--gold);
  background: var(--sheet);
}

.lang-native {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.lang-code {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.close-panel {
  padding: clamp(40px, 7vw, 72px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(122, 46, 36, 0.06), transparent 40%),
    var(--sheet);
}

.close-panel .section-lede,
.close-panel .lede {
  margin: 14px auto 28px;
}

.studio-page {
  padding-bottom: 80px;
}

.studio-hero {
  padding: 56px 0 12px;
}

.studio-hero h1 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.studio-manuscript,
.studio-panel {
  padding: 24px;
}

.studio-manuscript h2,
.studio-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-box {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(161, 123, 69, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(243, 238, 228, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-box:focus-within {
  border-color: rgba(161, 123, 69, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 3px rgba(196, 163, 106, 0.18);
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.settings-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.settings-field-title {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.settings-field-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(74, 67, 59, 0.72);
  font-variant-numeric: tabular-nums;
}

.settings-field-meta.is-near {
  color: var(--gold);
}

.settings-field-meta.is-full {
  color: var(--seal);
}

.settings-field textarea {
  width: 100%;
  min-height: 108px;
  height: 108px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(22, 19, 16, 0.08);
  background: rgba(255, 253, 248, 0.92);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  resize: none;
  overflow-y: auto;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.settings-field textarea[name="notes"] {
  min-height: 92px;
  height: 92px;
}

.settings-field textarea:focus {
  border-color: rgba(161, 123, 69, 0.42);
  background: #fffdf8;
}

.settings-field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.72;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.check-bilingual {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(161, 123, 69, 0.35);
  background: rgba(255, 253, 248, 0.55);
  cursor: pointer;
  user-select: none;
}

.check-bilingual:has(input:checked) {
  border-style: solid;
  border-color: rgba(161, 123, 69, 0.5);
  background: var(--gold-dim);
}

.check-bilingual input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.dropzone.has-files {
  min-height: 120px;
  border-style: solid;
  border-color: var(--gold);
}

.file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.file-list:empty::before {
  content: attr(data-empty);
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 12px 4px;
}

.file-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(161, 123, 69, 0.2);
  border-radius: 12px;
  background: #fffdf8;
}

.file-ext {
  display: grid;
  place-items: center;
  min-width: 46px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--seal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-meta strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.file-list li.is-busy .file-actions button {
  pointer-events: none;
  opacity: 0.35;
}

.file-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.file-progress[hidden] {
  display: none;
}

.file-progress-track {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(161, 123, 69, 0.18);
  overflow: hidden;
}

.file-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #b8894a, var(--seal));
  transition: width 0.35s ease;
}

.file-progress-text {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.file-list button,
.file-list a {
  border: 0;
  background: none;
  color: var(--seal);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.error-inner {
  text-align: center;
}

.error-inner .lede {
  margin: 16px auto 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: #ebe4d7;
}

.footer-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 8px 0;
}

.footer-kicker,
.footer-colophon,
.footer-legal {
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0;
  font-size: 0.92rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav a:hover {
  color: var(--gold);
}

.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.credits-chip em {
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--seal);
}

.btn-recharge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(161, 123, 69, 0.35);
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-recharge:hover {
  border-color: rgba(161, 123, 69, 0.55);
  color: var(--gold);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.account-main {
  display: grid;
  gap: 24px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(161, 123, 69, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  border-color: rgba(161, 123, 69, 0.55);
  background: var(--gold-dim);
  color: var(--gold);
}

.account-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0;
}

.account-subnav a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.92rem;
}

.account-subnav a:hover {
  text-decoration: underline;
}

.account-panel-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sheet);
}

.account-panel-block h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.account-panel-block h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.account-panel-note {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.recharge-orders-summary {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.recharge-orders {
  display: grid;
  gap: 12px;
}

.recharge-order {
  border: 1px solid rgba(161, 123, 69, 0.2);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.recharge-order-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 12px;
}

.recharge-order-left,
.recharge-order-right {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.recharge-order-right {
  text-align: end;
  justify-items: end;
}

.recharge-order-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.recharge-order-title svg {
  flex: none;
  color: #7a4ac8;
}

.recharge-order-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.recharge-order-pay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1677ff;
}

.recharge-order-price {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.recharge-order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f6b45;
  font-size: 0.82rem;
  font-weight: 600;
}

.recharge-order-status svg {
  flex: none;
}

.recharge-order-foot {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(161, 123, 69, 0.14);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.recharge-orders-empty {
  padding: 28px 14px;
  border: 1px dashed rgba(161, 123, 69, 0.28);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.recharge-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 198px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(161, 123, 69, 0.22);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.recharge-card:hover {
  border-color: rgba(161, 123, 69, 0.5);
  background: var(--gold-dim);
}

.recharge-card.is-selected {
  border-color: rgba(139, 58, 42, 0.55);
  box-shadow: 0 0 0 2px rgba(139, 58, 42, 0.18);
  background: #fff7ef;
}

.recharge-card.is-selected:hover {
  background: #fff7ef;
}

.recharge-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.recharge-actions .btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.checkout-shell {
  max-width: 920px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.checkout-badge {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
}

.checkout-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.checkout-credits {
  margin: 0 0 6px;
  color: var(--seal);
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-price {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.checkout-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pay-methods {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(161, 123, 69, 0.22);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
}

.pay-method.is-selected {
  border-color: rgba(139, 58, 42, 0.45);
  background: #fff7ef;
}

.pay-method input {
  accent-color: var(--seal);
}

.checkout-submit {
  width: 100%;
}

.recharge-popular {
  position: absolute;
  top: -10px;
  inset-inline-end: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--seal);
  color: #fffdf8;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.recharge-badge {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.recharge-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.recharge-credits {
  color: var(--seal);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.recharge-price {
  color: var(--ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.recharge-desc {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ledger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ledger-col {
  min-width: 0;
}

.ledger-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(161, 123, 69, 0.16);
}

.ledger-pager span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
  flex: 1;
}

.ledger-pager button {
  min-width: 72px;
  padding: 6px 10px;
  border: 1px solid rgba(161, 123, 69, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.9);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.ledger-pager button:hover:not(:disabled) {
  border-color: rgba(161, 123, 69, 0.5);
  background: var(--gold-dim);
}

.ledger-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.ledger-delta-in {
  color: #2f7a4f;
  font-weight: 600;
}

.ledger-delta-out {
  color: #c04545;
  font-weight: 600;
}

.record-table tbody td.ledger-delta-in {
  color: #2f7a4f;
  font-weight: 600;
}

.record-table tbody td.ledger-delta-out {
  color: #c04545;
  font-weight: 600;
}

.history-list .ledger-delta-in {
  color: #2f7a4f;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.history-list .ledger-delta-out {
  color: #c04545;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

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

.credits-summary-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(161, 123, 69, 0.2);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.85);
}

.credits-summary-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.credits-summary-value {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.credits-summary-value.ledger-delta-in {
  color: #2f7a4f;
}

.credits-summary-value.ledger-delta-out {
  color: #c04545;
}

@media (max-width: 720px) {
  .credits-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.credit-estimate {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(161, 123, 69, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(243, 238, 228, 0.88));
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.credit-estimate-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
}

.credit-estimate-loading {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.credit-estimate-loading::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.45em;
  border: 2px solid rgba(161, 123, 69, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: credit-spin 0.8s linear infinite;
}

.credit-estimate.is-loading .credit-estimate-list {
  display: none;
}

.credit-estimate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-estimate-list[hidden],
.credit-estimate-loading[hidden] {
  display: none !important;
}

@keyframes credit-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn[data-start].is-loading {
  opacity: 0.72;
  cursor: wait;
}

.btn[data-start].is-short-credits:not(.is-loading) {
  opacity: 1;
  cursor: pointer;
}

.credit-estimate-list li {
  position: relative;
  padding-left: 1em;
  line-height: 1.45;
  color: rgba(74, 67, 59, 0.95);
}

.credit-estimate-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.credit-estimate-list li[hidden] {
  display: none !important;
}

.est-status.is-enough {
  color: #2f7a4f;
  font-weight: 600;
}

.est-status.is-short {
  color: #c45c5c;
  font-weight: 600;
}

.credit-estimate-done {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(161, 123, 69, 0.2);
}

.credit-estimate-done p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.95rem;
}

.credit-estimate-done .btn {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
}

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

.credit-estimate-done[hidden] {
  display: none !important;
}

.credit-estimate[hidden] {
  display: none !important;
}

.account-page .studio-hero {
  padding-bottom: 12px;
}

.account-board {
  padding: 12px 0 72px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}

.account-summary,
.account-history {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--sheet);
}

.account-credits-label {
  margin: 18px 0 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.account-credits-value {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 2.4rem;
  color: var(--seal);
  line-height: 1;
}

.account-rate {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.account-need-login {
  margin: 0;
  color: var(--ink-soft);
}

.history-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.job-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
}

.job-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.job-file-icon {
  display: block;
  flex: none;
  color: #8a7a68;
  transform: translateY(-0.5px);
}

.job-file-icon--pdf {
  color: #d94a3d;
}

.job-file-icon--doc {
  color: #2f6fbd;
}

.job-menu {
  position: relative;
  display: inline-flex;
  flex: none;
}

.job-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.job-menu-toggle:hover,
.job-menu.is-open .job-menu-toggle {
  background: rgba(120, 110, 95, 0.1);
  color: var(--ink);
}

.job-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: none;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(161, 123, 69, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 28, 12, 0.12);
}

.job-menu-panel.is-open {
  display: grid;
  gap: 2px;
}

.job-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.job-menu-item:hover {
  background: rgba(120, 110, 95, 0.08);
}

.job-menu-item svg {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  margin-block: 0;
  color: var(--ink-soft);
  transform: translateY(-0.5px);
}

.job-menu-item span {
  display: block;
  line-height: 1.2;
}

.job-menu-item--danger {
  color: #a33b3b;
}

.job-menu-item--danger svg {
  color: #a33b3b;
}

.record-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(161, 123, 69, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
}

@media (min-width: 901px) {
  .record-table-wrap {
    overflow-x: hidden;
  }

  /* Desktop only: let the row action menu escape the table card */
  .translations-page .record-table-wrap {
    overflow: visible;
  }
}

.translations-page .translations-table col.col-file {
  width: 34%;
}

.translations-page .translations-table col.col-langs {
  width: 22%;
}

.translations-page .translations-table col.col-status {
  width: 16%;
}

.translations-page .translations-table col.col-time {
  width: 18%;
}

.translations-page .translations-table col.col-actions {
  width: 10%;
}

.translations-page .record-col-actions {
  width: 1%;
  text-align: center;
  overflow: visible;
}

.translations-page .translations-table thead .record-col-actions {
  text-align: center;
}

/* Narrow screens: keep column widths readable + horizontal scroll (same as credits) */
@media (max-width: 900px) {
  .translations-page .record-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .translations-page .translations-table {
    min-width: 860px;
  }
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.record-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(161, 123, 69, 0.22);
  background: rgba(243, 238, 228, 0.72);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: start;
  white-space: nowrap;
}

.record-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(161, 123, 69, 0.12);
  vertical-align: middle;
  color: var(--ink);
}

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

.record-table tbody tr:hover td {
  background: rgba(255, 247, 239, 0.55);
}

.record-col-file {
  width: 28%;
  max-width: 0;
}

.record-col-file span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.record-col-langs {
  width: 16%;
  color: var(--ink-soft);
  white-space: nowrap;
  vertical-align: middle;
}

.lang-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1.2;
}

.lang-pair-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 1em;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-0.5px);
}

.record-col-status {
  width: 12%;
  color: var(--ink-soft);
  white-space: nowrap;
}

.record-col-type {
  color: var(--ink-soft);
}

.record-col-chars,
.record-col-balance,
.record-col-amount,
.record-col-credits,
.record-col-time,
.ledger-delta-in,
.ledger-delta-out {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-col-detail {
  max-width: 0;
}

.record-col-detail .ledger-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
}

.record-col-detail .ledger-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.ledger-item-icon {
  display: block;
  flex: none;
  color: #8a7a68;
  transform: translateY(-0.5px);
}

.ledger-item-icon--translate {
  color: #3d6fad;
}

.ledger-item-icon--recharge {
  color: #b8862d;
}

.ledger-item-icon--gift {
  color: #2f7a4f;
}

.ledger-item-icon--refund {
  color: #7a5a28;
}

.record-col-credits {
  width: 12%;
  text-align: end;
  font-weight: 650;
}

.record-table thead th.record-col-credits {
  text-align: end;
}

.credits-page .credits-table col.col-detail {
  width: 58%;
}

.credits-page .credits-table col.col-time {
  width: 26%;
}

.credits-page .credits-table col.col-credits {
  width: 16%;
}

.record-col-time {
  width: 16%;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.record-col-actions {
  width: 28%;
  white-space: nowrap;
  text-align: start;
}

.record-table thead th.record-col-actions {
  text-align: start;
}

.record-col-actions .history-actions {
  margin-inline-start: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
}

.record-empty-row td {
  padding: 28px 14px;
  color: var(--ink-soft);
  text-align: center;
}

.record-table a.action-chip--download {
  color: #1f6b45;
}

.record-table a.action-chip--download:hover {
  color: #185638;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 8px 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.status-chip svg {
  flex: none;
  width: 12px;
  height: 12px;
  display: block;
  transform: translateY(-0.5px);
}

.status-chip--done {
  color: #1f6b45;
  background:
    linear-gradient(#f3faf6, #f3faf6) padding-box,
    linear-gradient(135deg, rgba(47, 122, 79, 0.45), rgba(31, 107, 69, 0.25)) border-box;
}

.status-chip--error {
  color: #a33b3b;
  background:
    linear-gradient(#fff5f4, #fff5f4) padding-box,
    linear-gradient(135deg, rgba(196, 92, 92, 0.45), rgba(163, 59, 59, 0.25)) border-box;
}

.status-chip--processing,
.status-chip--queued {
  color: #7a5a28;
  background:
    linear-gradient(#fff8ef, #fff8ef) padding-box,
    linear-gradient(135deg, rgba(161, 123, 69, 0.55), rgba(122, 90, 40, 0.25)) border-box;
}

.history-actions {
  flex: none;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-inline-start: 0;
  justify-content: flex-start;
}

.action-chip {
  --chip-ink: var(--ink);
  --chip-line: rgba(22, 19, 16, 0.14);
  --chip-glow: rgba(161, 123, 69, 0.18);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--sheet), var(--sheet)) padding-box,
    linear-gradient(135deg, rgba(226, 196, 138, 0.95), var(--chip-line), rgba(47, 122, 79, 0.35)) border-box;
  color: var(--chip-ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 14px -12px var(--chip-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.action-chip::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(243, 238, 228, 0.55));
  z-index: -1;
}

.action-chip svg {
  flex: none;
  display: block;
  width: 12px;
  height: 12px;
}

.action-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 22px -12px var(--chip-glow);
}

.action-chip:active {
  transform: translateY(0);
}

.action-chip--download {
  --chip-ink: #1f6b45;
  --chip-line: rgba(47, 122, 79, 0.55);
  --chip-glow: rgba(47, 122, 79, 0.28);
  background:
    linear-gradient(var(--sheet), var(--sheet)) padding-box,
    linear-gradient(120deg, rgba(90, 184, 130, 0.95), rgba(47, 122, 79, 0.75), rgba(226, 196, 138, 0.7)) border-box;
}

.action-chip--delete {
  --chip-ink: #8a3b32;
  --chip-line: rgba(122, 46, 36, 0.42);
  --chip-glow: rgba(122, 46, 36, 0.22);
  background:
    linear-gradient(var(--sheet), var(--sheet)) padding-box,
    linear-gradient(120deg, rgba(196, 163, 106, 0.75), rgba(138, 59, 50, 0.7), rgba(122, 46, 36, 0.55)) border-box;
}

.history-delete:disabled,
.action-chip--delete:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  filter: none;
}

@media (max-width: 920px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

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

  .recharge-packages {
    grid-template-columns: 1fr 1fr;
  }

  .credits-chip span {
    display: none;
  }

  .btn-recharge {
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .recharge-packages {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .history-list li {
    flex-wrap: wrap;
  }

  .history-list strong {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .history-list em {
    margin-inline-start: 0;
  }

  .record-table {
    min-width: 720px;
  }

  .history-actions {
    width: auto;
    margin-inline-start: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .action-chip {
    flex: 0 1 auto;
    min-width: 0;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.back-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(161, 123, 69, 0.35);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--seal);
  box-shadow: 0 8px 22px rgba(22, 19, 16, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.18s ease, border-color 0.18s ease;
}

.back-top.is-visible,
.back-top:not([hidden]).is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top[hidden] {
  display: none;
}

.back-top:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.back-top:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.auth-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 32px);
}

.auth-dialog::backdrop {
  background: rgba(22, 19, 16, 0.2);
  backdrop-filter: blur(6px);
}

.confirm-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 32px);
}

.confirm-dialog::backdrop {
  background: rgba(22, 19, 16, 0.28);
  backdrop-filter: blur(6px);
}

.confirm-card {
  position: relative;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--sheet);
  box-shadow: 0 10px 32px rgba(22, 19, 16, 0.08);
}

.confirm-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  padding-inline-end: 36px;
}

.confirm-lede {
  margin: 10px 0 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.btn-danger {
  border: 1px solid rgba(122, 46, 36, 0.28);
  background: linear-gradient(180deg, #9a4538, #7a2e24);
  color: #fffaf5;
  box-shadow: none;
}

.btn-danger:hover {
  filter: brightness(1.05);
}

.auth-card {
  position: relative;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--sheet);
  box-shadow: 0 10px 32px rgba(22, 19, 16, 0.08);
}

.auth-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  background: var(--gold-dim);
  color: var(--ink);
}

.auth-card h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.auth-lede {
  margin: 8px 0 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
}

.auth-field input:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
}

.auth-error {
  margin: 0 0 12px;
  color: var(--seal);
  font-size: 0.85rem;
}

.auth-sent {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.95rem;
}

.auth-code-hint {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.otp-digit {
  width: 100%;
  aspect-ratio: 0.9;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.otp-digit:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
}

.auth-demo {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
}

.auth-code-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.auth-text {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.auth-text:hover:not(:disabled) {
  color: var(--gold);
}

.auth-text:disabled {
  cursor: default;
  opacity: 0.65;
}

.auth-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.auth-split::before,
.auth-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-google:hover {
  border-color: rgba(161, 123, 69, 0.4);
  background: rgba(255, 253, 248, 1);
}

.btn-google:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-google svg {
  flex: none;
}

.reveal {
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[dir="rtl"] .lang-switch summary {
  align-items: center;
}

[dir="rtl"] .desk-arrow {
  transform: scaleX(-1);
}

@media (max-width: 1080px) {
  .hero-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .hero-folio {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .steps,
  .craft,
  .lang-mosaic,
  .desk-controls {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .header-end {
    gap: 8px;
  }

  .lang-name {
    display: none;
  }

  .lang-switch summary {
    padding: 8px;
  }

  .btn-auth {
    padding: 0 12px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    flex: none;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .desk-arrow {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-top {
    transition: none;
  }

  .btn-gold .ripple,
  .has-ripple .ripple {
    animation: none;
    display: none;
  }
}
