:root {
  --ink: #17172b;
  --muted: #6d6b82;
  --paper: #f5f3ef;
  --panel: #ffffff;
  --line: #e6e1da;
  --violet: #6652d9;
  --violet-dark: #4e3cc3;
  --violet-soft: #ece9ff;
  --lime: #d6ff76;
  --green: #18875d;
  --green-soft: #e5f7ef;
  --amber: #a7630a;
  --amber-soft: #fff1d7;
  --red: #b83e49;
  --red-soft: #ffeaec;
  --shadow: 0 18px 50px rgba(37, 30, 72, .08);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
[hidden] { display: none !important; }
body.is-waiting { overflow: hidden; }
a { color: var(--violet-dark); text-decoration: none; }
a:hover { color: var(--violet); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code {
  padding: .17rem .42rem;
  border-radius: 6px;
  color: #4f3cb6;
  background: #f0edff;
  font-size: .84em;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(230, 225, 218, .88);
  background: rgba(245, 243, 239, .9);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  width: min(1240px, calc(100% - 40px));
  height: 72px;
  margin: auto;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(23, 23, 43, .16);
}
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.main-nav { display: flex; align-items: center; margin-left: auto; gap: 22px; }
.main-nav > a:not(.button) { color: #555267; font-weight: 600; }
.mobile-nav { position: relative; display: none; margin-left: auto; }
.mobile-nav summary {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  background: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
  position: absolute;
  display: grid;
  width: 190px;
  top: calc(100% + 10px);
  right: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  gap: 2px;
}
.mobile-nav-panel a, .mobile-nav-panel button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  text-align: left;
  font-weight: 650;
}
.mobile-nav-panel form { margin: 0; border-top: 1px solid var(--line); }
.account-menu { display: flex; align-items: center; gap: 9px; }
.account-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-weight: 800;
}
.account-email { max-width: 180px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bulk-action-bar { display: flex; align-items: center; padding: 12px 16px; gap: 10px; border-top: 1px solid var(--line); }
.bulk-action-bar > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.danger-zone { display: flex; margin-top: 22px; align-items: center; justify-content: space-between; gap: 20px; border-color: #f0c8c8; }
.danger-zone strong { color: var(--red); }
.danger-zone p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.danger-zone form { flex: 0 0 auto; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 8px 22px rgba(102, 82, 217, .22); }
.button-primary:hover { color: #fff; background: var(--violet-dark); }
.button-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.7); }
.button-ghost:hover { color: var(--ink); border-color: #cdc5bb; background: #fff; }
.button-success { color: #fff; background: var(--green); }
.button-success:hover { color: #fff; background: #106d4a; }
.button-small { min-height: 34px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.button-large { min-height: 52px; padding: 0 24px; border-radius: 13px; }
.button-block { width: 100%; }
.link-button, .danger-link {
  padding: 0;
  border: 0;
  color: var(--violet-dark);
  background: transparent;
  cursor: pointer;
}
.danger-link { color: var(--red); }
form.is-submitting button[type="submit"],
form.is-submitting input[type="submit"] {
  pointer-events: none;
  opacity: .58;
  cursor: wait;
}

.wait-hud {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(17, 16, 35, .58);
  backdrop-filter: blur(9px);
}
.wait-hud-card {
  display: grid;
  width: min(390px, 100%);
  padding: 34px 30px 28px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 90px rgba(22, 18, 52, .28);
  text-align: center;
}
.wait-hud-card strong {
  margin-top: 17px;
  font-size: 20px;
  letter-spacing: -.025em;
}
.wait-hud-card p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.wait-hud-card .wait-hud-guidance {
  max-width: 310px;
  margin: -9px 0 15px;
  color: #4f5058;
  line-height: 1.6;
}
.wait-hud-refresh {
  margin: -2px 0 17px;
  background: #fff;
}
.wait-hud-spinner {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--violet-soft);
}
.wait-hud-spinner span {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(102, 82, 217, .2);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: wait-hud-spin .75s linear infinite;
}
.wait-hud-progress {
  overflow: hidden;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: #e8e4f5;
}
.wait-hud-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
  animation: wait-hud-slide 1.25s ease-in-out infinite;
}
@keyframes wait-hud-spin {
  to { transform: rotate(360deg); }
}
@keyframes wait-hud-slide {
  from { transform: translateX(-115%); }
  to { transform: translateX(340%); }
}
@media (prefers-reduced-motion: reduce) {
  .wait-hud-spinner span,
  .wait-hud-progress span { animation-duration: 2.4s; }
}

.messages {
  position: fixed;
  z-index: 50;
  top: 84px;
  right: 22px;
  width: min(390px, calc(100% - 44px));
}
.message {
  margin-bottom: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 650;
}
.message-success { color: var(--green); border-color: #bee7d5; background: var(--green-soft); }
.message-error { color: var(--red); border-color: #f0c3c8; background: var(--red-soft); }

.page { width: min(1240px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 44px 0 72px; }
.narrow-page { width: min(1050px, calc(100% - 40px)); }
.eyebrow { display: inline-block; color: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.muted { color: var(--muted); }

body.public-shell { background: #f7f5f0; }
.hero {
  display: grid;
  width: min(1240px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 96px 0 88px;
  align-items: center;
  grid-template-columns: .98fr 1.02fr;
  gap: 70px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--violet-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}
.hero-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(214,255,118,.32); }
.hero-copy h1 {
  max-width: 700px;
  margin: 20px 0 24px;
  font-size: clamp(48px, 5.3vw, 74px);
  line-height: 1.04;
  letter-spacing: -.058em;
}
.hero-copy h1 span { color: var(--violet); }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-copy .hero-actions { margin-top: 34px; }
.hero-copy .button-primary span, .final-cta .button-primary span { margin-left: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; margin-top: 30px; gap: 18px; color: #575468; font-size: 12px; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--violet); font-size: 9px; letter-spacing: .06em; }

.product-preview {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(102,82,217,.22);
  border-radius: 25px;
  color: #f8f7ff;
  background: #1b1a2e;
  box-shadow: 0 42px 95px rgba(31,25,70,.22);
}
.product-preview::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -130px;
  top: -135px;
  border-radius: 50%;
  background: rgba(214,255,118,.11);
  content: "";
}
.preview-toolbar { position: relative; z-index: 1; display: grid; padding: 5px 2px 15px; align-items: center; grid-template-columns: 1fr auto 1fr; color: #858298; }
.preview-toolbar > div { display: flex; gap: 5px; }
.preview-toolbar > div span { width: 7px; height: 7px; border-radius: 50%; background: #454358; }
.preview-toolbar small { font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.preview-toolbar em { justify-self: end; color: var(--lime); font-size: 8px; font-style: normal; }
.preview-project { display: flex; padding: 17px; align-items: center; justify-content: space-between; border: 1px solid #38364b; border-radius: 14px 14px 0 0; background: #242238; }
.preview-project > div { display: flex; align-items: center; gap: 11px; }
.preview-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--lime); background: #33314a; font-weight: 850; }
.preview-project small, .preview-project strong { display: block; }
.preview-project small { color: #8f8ca2; font-size: 9px; }
.preview-project strong { margin-top: 2px; font-size: 13px; }
.preview-project > b { color: var(--lime); font-size: 24px; }
.preview-progress { height: 4px; background: #363448; }
.preview-progress span { display: block; width: 72%; height: 100%; background: var(--lime); box-shadow: 0 0 16px rgba(214,255,118,.38); }
.preview-metrics { display: grid; padding: 14px 17px; grid-template-columns: repeat(4,1fr); gap: 7px; border: 1px solid #38364b; border-top: 0; border-radius: 0 0 14px 14px; background: #242238; }
.preview-metrics small, .preview-metrics strong { display: block; }
.preview-metrics small { color: #858298; font-size: 8px; }
.preview-metrics strong { margin-top: 2px; font-size: 13px; }
.preview-editor { margin-top: 11px; padding: 12px; border: 1px solid #38364b; border-radius: 14px; background: #201f33; }
.preview-editor-head { display: flex; padding: 1px 3px 8px; justify-content: space-between; color: #747187; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.preview-editor article { display: grid; min-height: 69px; padding: 10px 11px; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 12px; border-top: 1px solid #363449; }
.preview-editor article:first-of-type { border-top: 0; }
.preview-editor article small, .preview-editor article strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-editor article small { color: #aaa7b8; font-size: 9px; }
.preview-editor article strong { margin-top: 5px; color: #fff; font-size: 10px; }
.preview-tag { padding: 4px 7px; border-radius: 6px; color: #c8c1ff; background: #393357; font-size: 7px; font-style: normal; white-space: nowrap; }
.preview-tag.tag-green { color: #93e7c5; background: #234338; }
.preview-tag.tag-lime { color: #1b1a2e; background: var(--lime); }
.preview-footer { display: flex; padding: 12px 3px 1px; justify-content: space-between; color: #7f7c90; font-size: 8px; }
.preview-footer span:first-child { display: flex; align-items: center; color: #aaa7b8; gap: 6px; }
.preview-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(214,255,118,.1); }

.localization-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.56); }
.localization-strip > div { display: grid; width: min(1240px, calc(100% - 40px)); margin: auto; grid-template-columns: repeat(4,1fr); }
.localization-strip span { padding: 24px 28px; border-left: 1px solid var(--line); }
.localization-strip span:last-child { border-right: 1px solid var(--line); }
.localization-strip b, .localization-strip small { display: block; }
.localization-strip b { font-size: 15px; }
.localization-strip small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.marketing-section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0; }
.section-heading { max-width: 720px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading h2 { margin: 13px 0 16px; font-size: clamp(36px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.comparison-grid { display: grid; margin-top: 55px; grid-template-columns: 1fr 1fr; gap: 18px; }
.comparison-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.comparison-card.new-way { color: #fff; border-color: #28263c; background: var(--ink); box-shadow: 0 28px 70px rgba(30,24,64,.15); }
.comparison-label { display: inline-flex; padding: 6px 9px; border-radius: 7px; color: #767281; background: #f0ede8; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.new-way .comparison-label { color: var(--lime); background: #303047; }
.comparison-card h3 { margin: 21px 0 25px; font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
.comparison-card ul { display: grid; margin: 0; padding: 0; gap: 11px; list-style: none; }
.comparison-card li { display: grid; padding: 14px 0; align-items: start; grid-template-columns: 29px 1fr; gap: 10px; border-top: 1px solid #eeeae5; }
.new-way li { border-color: #37354b; }
.comparison-card li > i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: #8f8991; background: #f1efeb; font-style: normal; font-weight: 900; }
.new-way li > i { color: #1b1a2e; background: var(--lime); }
.comparison-card li strong, .comparison-card li small { display: block; }
.comparison-card li small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.new-way li small { color: #9996ab; }

.workflow-section { background: #ece8e1; }
.workflow-grid { display: grid; margin-top: 52px; grid-template-columns: repeat(3,1fr); border-top: 1px solid #d8d2c9; border-left: 1px solid #d8d2c9; }
.workflow-grid article { display: grid; min-height: 210px; padding: 29px; align-content: space-between; grid-template-rows: auto 1fr; border-right: 1px solid #d8d2c9; border-bottom: 1px solid #d8d2c9; background: rgba(255,255,255,.35); }
.workflow-grid article > span { color: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.workflow-grid article div { align-self: end; }
.workflow-grid strong { font-size: 20px; }
.workflow-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.knowledge-section { overflow: hidden; color: #fff; background: #181729; }
.knowledge-inner { display: grid; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.knowledge-copy .eyebrow { color: var(--lime); }
.knowledge-copy h2 { margin: 14px 0 20px; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.07; letter-spacing: -.045em; }
.knowledge-copy > p { max-width: 570px; color: #a8a5b7; font-size: 16px; line-height: 1.85; }
.knowledge-points { display: grid; margin-top: 34px; grid-template-columns: 1fr 1fr; gap: 10px; }
.knowledge-points > span { display: grid; padding: 14px; grid-template-columns: 33px 1fr; column-gap: 10px; border: 1px solid #343247; border-radius: 12px; background: #211f34; }
.knowledge-points i { display: grid; width: 31px; height: 31px; grid-row: 1 / 3; place-items: center; border-radius: 9px; color: var(--lime); background: #302e44; font-size: 11px; font-style: normal; font-weight: 850; }
.knowledge-points b { font-size: 11px; }
.knowledge-points small { color: #858296; font-size: 8px; }
.knowledge-stack { position: relative; display: grid; align-content: center; gap: 9px; }
.knowledge-stack::before { position: absolute; z-index: 0; width: 420px; height: 420px; right: -160px; border-radius: 50%; background: rgba(102,82,217,.18); content: ""; filter: blur(2px); }
.knowledge-stack article, .knowledge-result { position: relative; z-index: 1; display: grid; padding: 14px 17px; align-items: center; grid-template-columns: 1fr auto; gap: 4px 20px; border: 1px solid #3a3850; border-radius: 12px; background: rgba(35,33,54,.94); }
.knowledge-stack article:nth-child(2) { margin-left: 25px; }
.knowledge-stack article:nth-child(3) { margin-left: 50px; }
.knowledge-stack article:nth-child(4) { margin-left: 75px; }
.knowledge-stack article small { color: var(--violet); font-size: 7px; font-weight: 850; letter-spacing: .11em; }
.knowledge-stack article strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-stack article span { grid-column: 2; grid-row: 1 / 3; color: #79768b; font-size: 8px; }
.knowledge-result { margin-top: 8px; padding: 20px; border-color: rgba(214,255,118,.5); background: #29283a; }
.knowledge-result span { color: var(--lime); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.knowledge-result strong { grid-column: 1 / -1; color: #fff; font-size: 14px; line-height: 1.55; }

.capability-grid { display: grid; margin-top: 55px; grid-template-columns: repeat(3,1fr); gap: 16px; }
.capability-card { min-height: 500px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.capability-card.featured { color: #fff; border-color: var(--violet); background: var(--violet); box-shadow: 0 22px 55px rgba(102,82,217,.18); }
.capability-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; color: var(--violet); background: var(--violet-soft); font-weight: 850; }
.featured .capability-icon { color: var(--lime); background: rgba(255,255,255,.13); }
.capability-card h3 { margin: 26px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.capability-card > p { min-height: 72px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.capability-card.featured > p { color: #dcd8f5; }
.version-mini, .qa-mini, .delivery-mini { display: grid; margin-top: 28px; gap: 8px; }
.version-mini > span { display: grid; padding: 14px; grid-template-columns: 38px 1fr auto; border: 1px solid #e8e3dc; border-radius: 11px; background: #faf9f6; }
.version-mini b { grid-row: 1 / 3; font-size: 14px; }
.version-mini small { color: #4f4c5c; font-size: 10px; }
.version-mini em { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 8px; font-style: normal; }
.qa-mini > span { display: grid; padding: 13px 12px; align-items: center; grid-template-columns: 9px 1fr auto; gap: 9px; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; background: rgba(36,24,98,.18); font-size: 10px; }
.qa-mini i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.qa-mini i.repair { background: #ffd379; }
.qa-mini strong { color: var(--lime); font-size: 8px; }
.qa-mini i.repair ~ strong { color: #ffd379; }
.delivery-mini > span { display: grid; padding: 13px; align-items: center; grid-template-columns: 33px 1fr; column-gap: 10px; border: 1px solid #e8e3dc; border-radius: 11px; background: #faf9f6; }
.delivery-mini i { display: grid; width: 31px; height: 31px; grid-row: 1 / 3; place-items: center; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font-size: 9px; font-style: normal; font-weight: 850; }
.delivery-mini b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-mini small { color: var(--muted); font-size: 8px; }

.use-case-section { border-top: 1px solid var(--line); background: #ece8e1; }
.use-case-inner { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; }
.use-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.use-case-grid article { display: grid; min-height: 150px; padding: 22px; align-content: end; border: 1px solid #dbd5cc; border-radius: 16px; background: rgba(255,255,255,.48); }
.use-case-grid article > span { align-self: start; color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.use-case-grid strong, .use-case-grid small { display: block; }
.use-case-grid strong { margin-top: 25px; font-size: 15px; }
.use-case-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.final-cta { padding: 32px; color: #fff; background: #ece8e1; }
.final-cta > div { display: grid; min-height: 470px; padding: 70px; place-content: center; justify-items: center; border-radius: 28px; background: #19182b; text-align: center; }
.final-cta .eyebrow { color: var(--lime); }
.final-cta h2 { max-width: 860px; margin: 17px 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.05; letter-spacing: -.05em; }
.final-cta p { max-width: 620px; margin: 0; color: #a7a4b6; font-size: 15px; }
.final-cta .hero-actions { margin-top: 32px; }
.final-cta .button-ghost { color: #fff; border-color: #444157; background: #28263a; }
.final-cta .button-ghost:hover { border-color: #5b576f; background: #302e45; }

.brand-hero {
  display: grid;
  width: min(1240px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 82px 0 90px;
  align-items: center;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
}
.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #56516b;
  font-size: 13px;
  font-weight: 750;
}
.brand-kicker i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--violet); background: #e9e3ff; font-style: normal; }
.brand-hero-copy h1 { margin: 20px 0 25px; font-size: clamp(54px, 6vw, 84px); line-height: .99; letter-spacing: -.065em; }
.brand-hero-copy h1 span { color: var(--violet); }
.brand-hero-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.brand-hero-copy .hero-actions { margin-top: 34px; }
.brand-hero-copy .button-primary span, .brand-final .button-primary span { margin-left: 18px; }
.brand-text-link { padding: 12px 7px; color: #555164; font-weight: 750; }
.brand-text-link:hover { color: var(--violet); }

.language-scene {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 48% 42% 46% 40%;
  background: linear-gradient(145deg, #efe9ff 0%, #f7e6db 58%, #f4edc5 100%);
  box-shadow: inset 0 0 0 1px rgba(102,82,217,.08), 0 35px 90px rgba(65,44,107,.12);
}
.scene-glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow-one { width: 260px; height: 260px; right: -80px; top: -70px; background: rgba(255,255,255,.58); }
.glow-two { width: 170px; height: 170px; left: -55px; bottom: 25px; background: rgba(214,255,118,.42); }
.scene-note { position: absolute; z-index: 2; left: 50%; top: 47px; padding: 8px 13px; border-radius: 99px; color: #625c70; background: rgba(255,255,255,.6); font-size: 10px; font-weight: 750; transform: translateX(-50%); backdrop-filter: blur(8px); white-space: nowrap; }
.speech-card { position: absolute; z-index: 2; display: grid; padding: 21px 23px; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: rgba(255,255,255,.83); box-shadow: 0 18px 42px rgba(65,49,93,.12); backdrop-filter: blur(12px); }
.speech-card::after { position: absolute; width: 17px; height: 17px; bottom: -8px; background: inherit; content: ""; transform: rotate(45deg); }
.speech-card small { color: #777184; font-size: 9px; font-weight: 750; }
.speech-card strong { margin-top: 7px; color: var(--ink); font-size: 18px; line-height: 1.4; }
.speech-card em { margin-top: 12px; color: var(--violet); font-size: 9px; font-style: normal; font-weight: 750; }
.speech-source { width: 335px; left: 58px; top: 115px; transform: rotate(-2deg); }
.speech-source::after { left: 35px; }
.speech-english { width: 350px; right: 42px; top: 265px; transform: rotate(2deg); }
.speech-english::after { right: 45px; }
.speech-japanese { width: 290px; left: 72px; top: 414px; transform: rotate(-1deg); }
.speech-japanese::after { left: 55px; }
.scene-stickers { position: absolute; z-index: 3; display: flex; right: 35px; bottom: 40px; flex-direction: column; align-items: flex-end; gap: 7px; }
.scene-stickers span { padding: 7px 11px; border-radius: 9px; color: #fff; background: var(--violet); font-size: 9px; font-weight: 800; box-shadow: 0 8px 20px rgba(102,82,217,.18); transform: rotate(2deg); }
.scene-stickers span:nth-child(2) { color: #2c2838; background: var(--lime); transform: rotate(-2deg); }
.scene-stickers span:nth-child(3) { color: #4b4050; background: #ffcdb7; transform: rotate(1deg); }
.scene-spark { position: absolute; z-index: 1; color: rgba(102,82,217,.42); font-size: 30px; }
.spark-one { right: 65px; top: 120px; }
.spark-two { left: 32px; top: 350px; font-size: 18px; }

.brand-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.48); }
.brand-trust > div { display: grid; width: min(1120px, calc(100% - 40px)); margin: auto; grid-template-columns: repeat(3,1fr); }
.brand-trust span { display: grid; padding: 30px 35px; align-items: center; grid-template-columns: 43px 1fr; column-gap: 12px; border-left: 1px solid var(--line); }
.brand-trust span:last-child { border-right: 1px solid var(--line); }
.brand-trust i { display: grid; width: 41px; height: 41px; grid-row: 1 / 3; place-items: center; border-radius: 13px; color: var(--violet); background: #ebe6ff; font-style: normal; font-weight: 850; }
.brand-trust b { font-size: 13px; }
.brand-trust small { color: var(--muted); font-size: 9px; }

.brand-story { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 125px 0; }
.brand-heading { max-width: 800px; }
.brand-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.brand-heading.compact { max-width: 680px; }
.brand-heading > span, .soft-label, .rigor-copy > span, .brand-final > div > span { color: var(--violet); font-size: 12px; font-weight: 800; }
.brand-heading h2 { margin: 15px 0 20px; font-size: clamp(42px, 5vw, 66px); line-height: 1.05; letter-spacing: -.052em; }
.brand-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.story-cards { display: grid; margin-top: 64px; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.story-card { position: relative; display: flex; min-height: 380px; overflow: hidden; padding: 38px; justify-content: space-between; flex-direction: column; border-radius: 28px; }
.story-card small { color: #706a7c; font-size: 10px; font-weight: 800; }
.story-card h3 { max-width: 620px; margin: 11px 0 13px; font-size: clamp(26px,3vw,40px); line-height: 1.13; letter-spacing: -.04em; }
.story-card p { max-width: 600px; margin: 0; color: #706b7c; font-size: 12px; line-height: 1.75; }
.story-voice { color: #fff; background: #6551d8; }
.story-voice small, .story-voice p { color: #dcd7ff; }
.story-mark { position: absolute; right: 35px; top: -30px; color: rgba(255,255,255,.12); font-family: Georgia,serif; font-size: 190px; line-height: 1; }
.voice-samples { display: flex; position: relative; gap: 9px; }
.voice-samples span { padding: 13px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(29,20,93,.16); font-size: 11px; }
.voice-samples i { margin-right: 8px; color: var(--lime); font-size: 9px; font-style: normal; font-weight: 850; }
.story-names { background: #f2e6d9; }
.name-orbit { position: relative; display: grid; min-height: 145px; place-content: center; justify-items: center; }
.name-orbit::before, .name-orbit::after { position: absolute; inset: 12px 60px; border: 1px solid rgba(102,82,217,.18); border-radius: 50%; content: ""; transform: rotate(-8deg); }
.name-orbit::after { inset: 28px 30px; transform: rotate(9deg); }
.name-orbit strong { z-index: 1; font-size: 26px; }
.name-orbit span { z-index: 1; color: var(--violet); font-size: 17px; font-weight: 800; }
.name-orbit i { z-index: 1; margin-top: 11px; padding: 5px 9px; border-radius: 99px; color: #534f61; background: rgba(255,255,255,.65); font-size: 8px; font-style: normal; }
.story-return { min-height: 335px; grid-column: 1 / -1; color: #252335; background: #e5edc7; }
.file-return { display: grid; margin-top: 35px; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 18px; }
.file-return > span { display: grid; padding: 18px; align-items: center; grid-template-columns: 42px 1fr; column-gap: 12px; border: 1px solid rgba(63,67,43,.12); border-radius: 15px; background: rgba(255,255,255,.65); }
.file-return > span i { display: grid; width: 40px; height: 40px; grid-row: 1 / 3; place-items: center; border-radius: 11px; color: #fff; background: #2f9b68; font-style: normal; font-weight: 850; }
.file-return > span.is-ready i { color: #252335; background: var(--lime); }
.file-return b, .file-return small { display: block; }
.file-return b { font-size: 12px; }
.file-return small { color: #747667; font-size: 9px; }
.file-return > em { color: #777a66; font-size: 26px; font-style: normal; }

.brand-memory { color: #fff; background: #19182b; }
.memory-inner { display: grid; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 125px 0; align-items: center; grid-template-columns: .88fr 1.12fr; gap: 80px; }
.memory-copy .soft-label { color: var(--lime); }
.memory-copy h2 { margin: 16px 0 22px; font-size: clamp(42px,5vw,66px); line-height: 1.05; letter-spacing: -.052em; }
.memory-copy p { max-width: 550px; color: #aaa7b8; font-size: 15px; line-height: 1.9; }
.memory-copy a { display: inline-flex; margin-top: 20px; gap: 15px; color: var(--lime); font-weight: 800; }
.game-notebook { position: relative; display: grid; min-height: 560px; padding: 68px 45px 42px; align-content: center; gap: 10px; border-radius: 30px 50px 32px 46px; color: var(--ink); background: #f3eee5; transform: rotate(1deg); }
.game-notebook::before { position: absolute; width: 12px; height: 82%; left: 20px; top: 9%; border-radius: 99px; background: repeating-linear-gradient(to bottom,#6552d8 0,#6552d8 9px,transparent 9px,transparent 19px); content: ""; opacity: .4; }
.notebook-title { position: absolute; left: 45px; top: 31px; color: #6d6878; font-size: 10px; font-weight: 800; }
.notebook-caption { position: absolute; right: 35px; bottom: 22px; color: #898492; font-size: 9px; transform: rotate(-2deg); }
.note-card { display: grid; padding: 16px 17px; align-items: center; grid-template-columns: 31px 1fr; gap: 2px 11px; border: 1px solid #e3dcd1; border-radius: 13px; background: rgba(255,255,255,.78); }
.note-card i { display: grid; width: 29px; height: 29px; grid-row: 1 / 3; place-items: center; border-radius: 9px; color: var(--violet); background: #ebe6ff; font-size: 8px; font-style: normal; font-weight: 850; }
.note-card small { color: #8b8693; font-size: 8px; }
.note-card strong { font-size: 11px; }
.note-card em { color: var(--violet); font-style: normal; }
.note-voice { margin-right: 30px; transform: rotate(-1deg); }
.note-term { margin-left: 27px; background: #fff2d7; transform: rotate(1deg); }
.note-memory { margin-right: 15px; background: #e7f5ed; transform: rotate(-.5deg); }
.note-rule { margin-left: 38px; background: #efeaff; transform: rotate(.6deg); }

.brand-flow { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 125px 0; }
.simple-flow { display: grid; margin-top: 65px; align-items: center; grid-template-columns: 1fr 55px 1fr 55px 1fr; gap: 10px; }
.simple-flow article { display: flex; min-height: 390px; padding: 30px; justify-content: flex-end; flex-direction: column; border-radius: 26px; background: #fff; box-shadow: 0 15px 45px rgba(54,41,83,.05); }
.simple-flow article:nth-of-type(2) { background: #ebe6ff; }
.simple-flow article:nth-of-type(3) { background: #f0e7d9; }
.flow-illustration { display: grid; min-height: 145px; margin-bottom: auto; place-content: center; justify-items: center; border-radius: 19px; background: #f1eee8; }
.flow-illustration i { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; color: #fff; background: var(--violet); font-size: 21px; font-style: normal; }
.flow-illustration b { margin-top: 9px; font-size: 11px; }
.flow-magic { color: #fff; background: var(--violet); }
.flow-magic i { color: var(--violet); background: var(--lime); }
.flow-ready { background: #e4efc4; }
.flow-ready i { color: #fff; background: var(--green); }
.simple-flow article > small { margin-top: 27px; color: var(--violet); font-size: 9px; font-weight: 850; }
.simple-flow h3 { margin: 5px 0 9px; font-size: 26px; letter-spacing: -.035em; }
.simple-flow p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.flow-arrow { color: #b0aabb; font-size: 26px; text-align: center; }

.brand-rigor { padding: 30px; background: #eee9e1; }
.rigor-inner { display: grid; min-height: 650px; padding: 90px; align-items: center; grid-template-columns: .85fr 1.15fr; gap: 80px; border-radius: 30px; color: #fff; background: #1a192c; }
.rigor-copy > span { color: var(--lime); }
.rigor-copy h2 { margin: 15px 0 21px; font-size: clamp(42px,5vw,64px); line-height: 1.05; letter-spacing: -.05em; }
.rigor-copy p { max-width: 500px; color: #aaa7b8; font-size: 14px; line-height: 1.85; }
.rigor-list { display: grid; gap: 9px; }
.rigor-list article { display: grid; padding: 18px; align-items: center; grid-template-columns: 38px 1fr; gap: 12px; border: 1px solid #37354a; border-radius: 14px; background: #232137; }
.rigor-list i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #242137; background: var(--lime); font-style: normal; font-weight: 900; }
.rigor-list strong, .rigor-list small { display: block; }
.rigor-list strong { font-size: 12px; }
.rigor-list small { margin-top: 3px; color: #888598; font-size: 9px; }

.brand-use-cases { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 125px 0; }
.playful-cases { display: grid; margin-top: 58px; grid-template-columns: repeat(4,1fr); gap: 12px; }
.playful-cases article { display: flex; min-height: 260px; padding: 25px; justify-content: flex-end; flex-direction: column; border-radius: 80px 22px 25px 24px; background: #efe9ff; }
.playful-cases article:nth-child(2) { border-radius: 22px 75px 24px 25px; background: #f4dfd2; }
.playful-cases article:nth-child(3) { border-radius: 25px 22px 76px 24px; background: #e5efc6; }
.playful-cases article:nth-child(4) { border-radius: 24px 25px 22px 75px; background: #dfeef0; }
.playful-cases article > span { margin-bottom: auto; color: var(--violet); font-size: 22px; font-weight: 900; }
.playful-cases strong, .playful-cases small { display: block; }
.playful-cases strong { font-size: 16px; }
.playful-cases small { margin-top: 6px; color: var(--muted); font-size: 10px; }

.brand-final { padding: 28px; color: #fff; background: #eee9e1; }
.brand-final > div { display: grid; min-height: 520px; padding: 70px; place-content: center; justify-items: center; overflow: hidden; border-radius: 36px 80px 36px 80px; background: linear-gradient(135deg,#6250d6 0%,#4c3abb 100%); text-align: center; }
.brand-final > div > span { color: var(--lime); }
.brand-final h2 { max-width: 850px; margin: 16px 0; font-size: clamp(46px,6vw,76px); line-height: 1.02; letter-spacing: -.058em; }
.brand-final p { max-width: 610px; margin: 0; color: #ddd8ff; font-size: 14px; }
.brand-final .hero-actions { margin-top: 32px; }
.brand-final .button-primary { color: var(--ink); background: var(--lime); box-shadow: 0 10px 30px rgba(31,24,70,.2); }
.brand-final .button-primary:hover { color: var(--ink); background: #e3ff9e; }
.brand-final .button-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.brand-final .button-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }

.auth-wrap { display: grid; min-height: calc(100vh - 138px); padding: 70px 20px; place-items: center; }
.auth-card { width: min(460px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.035em; }
.auth-switch { margin: 25px 0 0; text-align: center; }

.dashboard-hero, .page-heading, .project-hero, .job-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.dashboard-hero { padding: 28px 0 36px; }
.dashboard-hero h1, .page-heading h1, .project-hero h1, .job-hero h1 {
  margin: 8px 0 5px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.dashboard-hero p, .page-heading p, .project-hero p, .job-hero p { margin: 8px 0 0; color: var(--muted); }
.page-heading { margin-bottom: 30px; }
.stat-grid { display: grid; margin: 12px 0 24px; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { min-height: 146px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-card small, .stat-card span, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); font-weight: 650; }
.stat-card strong { margin: 10px 0 3px; font-size: 34px; line-height: 1; }
.stat-card span { color: #918e9d; font-size: 12px; }
.stat-card.stat-accent { color: #fff; border-color: var(--ink); background: var(--ink); }
.stat-card.stat-accent small, .stat-card.stat-accent span { color: #aaa7bd; }
.content-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 10px 35px rgba(35,27,65,.035); }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 20px; }
.panel-header h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.03em; }
.project-stack { display: grid; gap: 7px; }
.project-row {
  display: grid;
  padding: 13px;
  align-items: center;
  grid-template-columns: 44px minmax(0,1fr) 55px 55px 24px;
  gap: 12px;
  border-radius: 12px;
  color: var(--ink);
  transition: background .15s ease;
}
.project-row:hover { color: var(--ink); background: #f7f5fb; }
.project-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-weight: 850;
}
.project-icon.large { width: 52px; height: 52px; font-size: 19px; }
.project-icon.xl { width: 78px; height: 78px; border-radius: 20px; font-size: 28px; }
.project-main strong, .project-main small, .project-meta strong, .project-meta small { display: block; }
.project-main { min-width: 0; }
.project-main small, .project-meta small { color: var(--muted); font-size: 11px; }
.project-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-meta { text-align: center; }
.row-arrow { color: var(--violet); font-weight: 800; }
.activity-list { display: grid; gap: 4px; }
.activity-item {
  display: grid;
  padding: 12px 4px;
  align-items: center;
  grid-template-columns: 11px minmax(0,1fr) auto;
  gap: 11px;
  border-bottom: 1px solid #eeeae4;
  color: var(--ink);
}
.activity-item:last-child { border-bottom: 0; }
.activity-item strong, .activity-item small { display: block; }
.activity-item small, .activity-item time { color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a6a3ae; }
.status-dot.status-translating, .status-dot.status-extracting_terms, .status-dot.status-scanning, .status-dot.status-queued { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.status-dot.status-review, .status-dot.status-attention, .status-dot.status-payment_required { background: #e69b30; }
.status-dot.status-ready, .status-dot.status-completed { background: var(--green); }
.status-dot.status-failed { background: var(--red); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.language-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.language-pill { padding: 5px 9px; border-radius: 99px; color: #5c5871; background: #f2f0ec; font-size: 11px; font-weight: 700; }
.project-card h2 { margin: 22px 0 8px; letter-spacing: -.03em; }
.project-card > p { min-height: 48px; color: var(--muted); }
.project-card-stats { display: flex; margin: 24px 0 14px; gap: 20px; color: var(--muted); font-size: 12px; }
.project-card-stats strong { color: var(--ink); font-size: 16px; }
.language-learning-note {
  min-height: 0 !important;
  margin: -4px 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: #9a6720 !important;
}
.language-learning-note.status-processing { color: var(--violet) !important; }
.language-learning-note.status-failed { color: var(--red) !important; }
.card-link { display: flex; padding-top: 15px; justify-content: space-between; border-top: 1px solid var(--line); font-weight: 750; }

.breadcrumbs { display: flex; margin-bottom: 24px; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); }
.form-layout { display: grid; align-items: start; grid-template-columns: .72fr 1.28fr; gap: 58px; }
.form-layout > section { padding-top: 22px; }
.form-layout h1 { margin: 8px 0 10px; font-size: 40px; line-height: 1.1; letter-spacing: -.04em; }
.form-layout > section p { color: var(--muted); font-size: 16px; }
.stack-form { display: grid; gap: 19px; }
.stack-form label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcd6ce;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border .15s ease, box-shadow .15s ease;
}
.form-control:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(102,82,217,.11); }
textarea.form-control { resize: vertical; }
input[type="file"].form-control { padding: 9px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.field-help ul { margin: 6px 0 0; padding-left: 18px; }
.field-error { display: block; margin-top: 5px; color: var(--red); }
.form-errors { padding: 10px 12px; border-radius: 10px; color: var(--red); background: var(--red-soft); }
.form-actions { display: flex; padding-top: 7px; justify-content: flex-end; gap: 9px; }
.file-field { padding: 18px; border: 1px dashed #cfc7ef; border-radius: 14px; background: #f9f8ff; }
.security-note { padding: 13px 15px; border-radius: 11px; background: #f4f1eb; }
.security-note strong { font-size: 12px; }
.security-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.process-list { display: grid; margin: 35px 0 0; padding: 0; gap: 18px; list-style: none; }
.process-list li { display: flex; align-items: center; gap: 12px; }
.process-list li > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--violet); background: var(--violet-soft); font-weight: 850; }
.process-list strong, .process-list small { display: block; }
.process-list small { color: var(--muted); }

.style-guide-hero {
  display: flex;
  margin-bottom: 20px;
  padding: 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(125deg, #181728 0%, #292342 100%);
}
.style-guide-hero .eyebrow { color: var(--lime); }
.style-guide-hero h1 { max-width: 720px; margin: 9px 0 10px; font-size: 38px; line-height: 1.08; letter-spacing: -.04em; }
.style-guide-hero p { max-width: 720px; margin: 0; color: #bbb8ca; }
.style-version-badge {
  display: grid;
  min-width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--lime);
  background: rgba(255,255,255,.06);
  font-size: 20px;
  font-weight: 850;
}
.style-guide-form { display: grid; gap: 20px; }
.style-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.style-guide-field {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.style-guide-field > span { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; }
.style-guide-field > span b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 10px;
}
.style-guide-field > small { display: block; min-height: 32px; margin: 7px 0 12px 37px; color: var(--muted); font-size: 11px; }
.style-guide-field textarea { min-height: 130px; }
.style-guide-wide { grid-column: 1 / -1; }
.style-guide-wide textarea { min-height: 115px; }
.style-guide-actions {
  display: flex;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.style-guide-actions > div:first-child strong, .style-guide-actions > div:first-child small { display: block; }
.style-guide-actions > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.project-hero { margin-bottom: 24px; padding: 28px; border-radius: 22px; color: #fff; background: var(--ink); }
.project-hero-main { margin-right: auto; }
.project-hero .eyebrow { color: var(--lime); }
.project-hero p { color: #aaa7bd; }
.project-hero .button-ghost { color: #fff; border-color: #4e4b60; background: #2a293d; }
.project-overview-grid { display: grid; margin-bottom: 18px; grid-template-columns: 1fr 1fr; gap: 18px; }
.overview-card { display: grid; padding: 22px; align-items: center; grid-template-columns: 50px 1fr auto; gap: 15px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.overview-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.overview-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: var(--violet); background: var(--violet-soft); font-weight: 850; }
.overview-card small, .overview-card strong { display: block; }
.overview-card strong { margin: 2px 0; font-size: 20px; }
.overview-card p { margin: 0; color: var(--muted); font-size: 12px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .04em; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #efebe5; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { max-width: 310px; color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 11px; }
.row-actions form { margin: 0; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 99px;
  color: #5f5c69;
  background: #eeece8;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
}
.status-badge.large { padding: 7px 13px; font-size: 12px; }
.status-translating, .status-extracting_terms, .status-scanning, .status-analyzing, .status-queued, .status-uploaded, .status-processing, .status-configuring { color: var(--violet-dark); background: var(--violet-soft); }
.status-terminology_review { color: var(--amber); background: var(--amber-soft); }
.status-review, .status-pending, .status-provisioning, .status-payment_required, .status-conflict { color: var(--amber); background: var(--amber-soft); }
.status-ready, .status-completed, .status-approved, .status-locked, .status-translated, .status-glossary { color: var(--green); background: var(--green-soft); }
.status-failed { color: var(--red); background: var(--red-soft); }
.filter-bar { display: grid; margin-bottom: 18px; grid-template-columns: minmax(220px, 1fr) 160px auto; gap: 8px; }
.filter-bar.inline { margin: 0; }
.pagination { display: flex; margin-top: 18px; padding-top: 17px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination > a { white-space: nowrap; }
.pagination-jump, .pagination-jump label { display: inline-flex; margin: 0; align-items: center; gap: 5px; }
.pagination-jump input { width: 62px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; text-align: center; }
.pagination-jump input:focus { border-color: var(--violet); outline: 2px solid var(--violet-soft); }
.pagination-jump button { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.pagination-jump button:hover { color: var(--violet-dark); border-color: #cfc5ff; background: var(--violet-soft); }

.job-hero { margin-bottom: 20px; }
.job-progress-card { margin-bottom: 14px; padding: 22px 24px; border: 1px solid #ded7ff; border-radius: var(--radius); background: #f8f7ff; }
.progress-copy { display: flex; align-items: flex-end; justify-content: space-between; }
.progress-copy small, .progress-copy strong { display: block; }
.progress-copy small { color: var(--muted); }
.progress-copy strong { font-size: 18px; }
.progress-track { overflow: hidden; height: 8px; margin: 14px 0; border-radius: 99px; background: #dedaf1; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--violet); transition: width .4s ease; }
.progress-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 12px; }
.progress-meta strong { color: var(--ink); }
.learning-stat-grid {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.learning-stat-grid .panel { padding: 20px; }
.learning-stat-grid small,
.learning-stat-grid strong,
.learning-stat-grid span { display: block; }
.learning-stat-grid small,
.learning-stat-grid span { color: var(--muted); }
.learning-stat-grid strong { margin: 7px 0 4px; font-size: 28px; }
.learning-stat-grid span { font-size: 11px; }
.learning-progress { position: relative; overflow: hidden; }
.learning-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 7px rgba(102, 82, 217, .12);
  animation: learning-pulse 1.5s ease-in-out infinite;
}
.learning-warning-list {
  display: grid;
  margin-top: 18px;
  padding-top: 14px;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.learning-warning-list p {
  display: flex;
  margin: 0;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}
.learning-warning-list p strong { color: var(--ink); }
.learning-actions { margin-top: 18px; }
.learning-actions form { margin: 0; }
@keyframes learning-pulse {
  50% { opacity: .45; transform: scale(.78); }
}
.glossary-extraction-card {
  display: flex;
  margin-bottom: 14px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #ded7ff;
  border-radius: 12px;
  background: #faf9ff;
}
.glossary-extraction-card strong { display: block; margin-bottom: 3px; }
.glossary-extraction-card p { margin: 0; color: var(--muted); font-size: 12px; }
.glossary-extraction-card.status-failed { border-color: #f0c5ca; background: var(--red-soft); }
.action-strip { display: flex; margin-bottom: 18px; align-items: center; flex-wrap: wrap; gap: 8px; }
.action-strip form { margin: 0; }
.alert { margin-bottom: 15px; padding: 15px 18px; border-radius: 12px; }
.alert p { margin: 3px 0 0; }
.alert-error { color: var(--red); border: 1px solid #f0c5ca; background: var(--red-soft); }

.alert-warning { color: var(--amber); border: 1px solid #efd49f; background: var(--amber-soft); }
.translation-list { display: grid; gap: 7px; }
.translation-row {
  display: grid;
  padding: 15px;
  align-items: start;
  grid-template-columns: 92px minmax(0,1fr) 28px minmax(0,1fr) 86px;
  gap: 11px;
  border: 1px solid #ebe7e0;
  border-radius: 12px;
}
.translation-row.has-warning { border-color: #efd49f; background: #fffdf8; }
.row-location strong, .row-location small { display: block; }
.row-location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-location small, .translation-cell > small { color: var(--muted); font-size: 10px; }
.translation-cell p { margin: 3px 0 0; white-space: normal; word-break: break-word; }
.translation-arrow { padding-top: 20px; color: #aaa6b6; text-align: center; }
.row-review { display: grid; justify-items: end; gap: 9px; font-size: 12px; }
.row-review form { margin: 0; }
.warning-list { display: flex; margin-top: 8px; flex-wrap: wrap; gap: 5px; }
.warning-list span { padding: 3px 7px; border-radius: 6px; color: var(--amber); background: var(--amber-soft); font-size: 10px; }
.review-editor { display: grid; align-items: start; grid-template-columns: 1fr 1fr; gap: 18px; }
.source-review h2 { margin: 7px 0 14px; }
.source-quote { padding: 20px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: #f7f5fb; font-size: 18px; }

.workspace-page { padding-top: 30px; }
.workspace-hero {
  display: flex;
  margin-bottom: 18px;
  padding: 25px 28px;
  align-items: center;
  gap: 18px;
  border: 1px solid #302e43;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% -30%, rgba(214,255,118,.18), transparent 32%),
    var(--ink);
}
.workspace-project-mark {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 18px;
  color: var(--lime);
  background: rgba(255,255,255,.09);
  font-size: 24px;
  font-weight: 850;
}
.workspace-hero-copy { min-width: 0; margin-right: auto; }
.workspace-hero-copy .eyebrow { color: var(--lime); }
.workspace-hero-copy h1 { margin: 3px 0 2px; font-size: 32px; letter-spacing: -.04em; }
.workspace-hero-copy p { margin: 0; color: #aaa7bd; font-size: 13px; }
.workspace-hero .button-ghost { color: #fff; border-color: #4e4b60; background: #2a293d; }
.workspace-tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 0 5px;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.workspace-tabs a {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.workspace-tabs a span {
  padding: 1px 7px;
  border-radius: 99px;
  background: #e9e5df;
  font-size: 10px;
}
.workspace-tabs a.is-active { color: var(--ink); }
.workspace-tabs a.is-active::after {
  position: absolute;
  height: 3px;
  right: 0;
  bottom: -1px;
  left: 0;
  border-radius: 99px 99px 0 0;
  background: var(--violet);
  content: "";
}
.workspace-stat-grid { display: grid; margin-bottom: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.workspace-stat-grid article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.workspace-stat-grid small, .workspace-stat-grid strong, .workspace-stat-grid span { display: block; }
.workspace-stat-grid small { color: var(--muted); font-weight: 700; }
.workspace-stat-grid strong { margin: 4px 0; font-size: 28px; letter-spacing: -.04em; }
.workspace-stat-grid span { color: #95919f; font-size: 11px; }
.workspace-stat-grid article.has-attention { border-color: #efd49f; background: #fffaf0; }
.workspace-stat-grid article.has-attention strong { color: var(--amber); }
.workspace-overview { display: grid; margin-bottom: 18px; grid-template-columns: 1.45fr .55fr; gap: 18px; }
.language-progress-list { display: grid; gap: 4px; }
.language-progress-row {
  display: grid;
  padding: 12px 8px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 105px 20px;
  gap: 12px;
  border-bottom: 1px solid #efebe5;
  color: var(--ink);
}
.language-progress-row:last-child { border-bottom: 0; }
.language-progress-row:hover { color: var(--ink); background: #faf9fc; }
.language-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-weight: 850;
}
.language-progress-main strong, .language-progress-main small, .language-progress-number strong, .language-progress-number small { display: block; }
.language-progress-main small, .language-progress-number small { color: var(--muted); font-size: 10px; }
.language-progress-number { text-align: right; }
.attention-copy { color: var(--amber) !important; }
.mini-progress { display: block; overflow: hidden; height: 4px; margin-top: 7px; border-radius: 99px; background: #e9e5f5; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.knowledge-summary { display: flex; flex-direction: column; }
.knowledge-score { display: flex; margin: 10px 0 8px; align-items: baseline; gap: 8px; }
.knowledge-score strong { font-size: 52px; line-height: 1; letter-spacing: -.06em; }
.knowledge-score span, .knowledge-summary > p { color: var(--muted); }
.knowledge-summary > p { margin: 8px 0 24px; font-size: 12px; }
.knowledge-split { display: grid; margin-top: auto; grid-template-columns: 1fr 1fr; gap: 8px; }
.knowledge-split span { padding: 13px; border-radius: 10px; background: #f7f5fb; }
.knowledge-split strong, .knowledge-split small { display: block; }
.knowledge-split strong { font-size: 19px; }
.knowledge-split small { color: var(--muted); }
.files-panel .panel-header p, .workspace-page .panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.file-list { display: grid; }
.file-list-head, .file-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, .65fr) minmax(150px, .65fr) 90px 92px 20px;
  gap: 15px;
}
.file-list-head { padding: 9px 14px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.file-row {
  min-height: 72px;
  padding: 12px 14px;
  color: var(--ink);
  border-top: 1px solid #efebe5;
  transition: background .15s ease;
}
.file-row:hover { color: var(--ink); background: #faf9fc; }
.file-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.file-identity > span { min-width: 0; }
.file-identity strong, .file-identity small, .file-language strong, .file-language small { display: block; }
.file-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-identity small, .file-language small { color: var(--muted); font-size: 10px; }
.file-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #1f8b5e;
  font-style: normal;
  font-weight: 850;
}
.file-icon.large { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; font-size: 18px; }
.file-progress > span { display: flex; justify-content: space-between; font-size: 10px; }
.file-progress small { color: var(--muted); }
.file-progress > i { display: block; overflow: hidden; height: 4px; margin-top: 6px; border-radius: 99px; background: #e8e4f1; }
.file-progress > i b { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.file-row time { color: var(--muted); font-size: 11px; }
.file-row time small { display: block; margin-top: 3px; }
.file-diff-mini { color: var(--violet); font-weight: 750; }
.file-row em { font-style: normal; }
.file-list.compact .file-list-head { display: none; }
.status-attention { color: var(--amber); background: var(--amber-soft); }
.status-configuring { color: #5f5c69; background: #eeece8; }
.status-account_pending { color: #8a5a00; background: #fff0c9; }
.asset-language-list { display: grid; gap: 10px; }
.asset-language-row {
  display: grid;
  padding: 16px;
  align-items: stretch;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.asset-language-title { display: flex; align-items: center; gap: 12px; }
.asset-language-title strong, .asset-language-title small { display: block; }
.asset-language-title small { color: var(--muted); }
.asset-language-row > a { display: grid; padding: 12px; grid-template-columns: 1fr auto; border-radius: 10px; color: var(--ink); background: #f7f5fb; }
.asset-language-row > a:hover { background: var(--violet-soft); }
.asset-language-row > a small { grid-column: 1 / -1; color: var(--muted); }
.asset-language-row > a strong { font-size: 20px; }
.asset-language-row > a span { color: var(--violet); font-size: 11px; }

.editor-page { width: min(1540px, calc(100% - 40px)); padding-top: 28px; }
.file-workspace-header { display: flex; margin-bottom: 15px; align-items: center; justify-content: space-between; gap: 24px; }
.file-title { display: flex; min-width: 0; align-items: center; gap: 15px; }
.file-title > div { min-width: 0; flex: 1; }
.file-title h1 { overflow: hidden; margin: 1px 0; font-size: 29px; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.04em; }
.file-title p { margin: 0; color: var(--muted); font-size: 11px; }
.file-header-actions { display: flex; align-items: center; gap: 8px; }
.version-change-strip {
  display: flex;
  margin-bottom: 12px;
  padding: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  border: 1px solid #e2dcf8;
  border-radius: 12px;
  background: #faf9ff;
  font-size: 11px;
}
.version-change-strip strong { color: var(--ink); }
.file-progress-strip { display: grid; margin-bottom: 12px; padding: 15px 18px; grid-template-columns: minmax(420px, 1fr) auto; gap: 30px; border: 1px solid #ded7ff; border-radius: 14px; background: #f8f7ff; }
.file-progress-primary { display: grid; align-items: center; grid-template-columns: auto minmax(180px, 1fr) 42px; gap: 14px; }
.file-progress-primary small, .file-progress-primary strong { display: block; }
.file-progress-primary small { color: var(--muted); font-size: 9px; }
.file-progress-primary > strong { text-align: right; }
.file-progress-primary .progress-track { height: 6px; margin: 0; }
.file-progress-primary .progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.file-progress-metrics { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.file-progress-metrics strong { color: var(--ink); font-size: 12px; }
.file-history-page { width: min(1100px, calc(100% - 40px)); }
.file-history-hero {
  display: flex;
  margin: 24px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.file-history-hero h1 { margin: 2px 0; font-size: 34px; letter-spacing: -.04em; }
.file-history-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.version-timeline { display: grid; position: relative; gap: 14px; }
.version-timeline::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 24px;
  width: 2px;
  content: "";
  background: #e6e0fa;
}
.version-card { position: relative; padding: 20px 22px 20px 52px; }
.version-card::before {
  position: absolute;
  top: 28px;
  left: 18px;
  width: 14px;
  height: 14px;
  content: "";
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b5afc5;
  box-shadow: 0 0 0 2px #e3ddf8;
}
.version-card.is-latest::before { background: var(--violet); }
.version-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.version-card-header > div { display: flex; align-items: center; gap: 10px; }
.version-card-header time, .version-card-header > small { color: var(--muted); font-size: 10px; }
.version-number { font-size: 23px; font-weight: 850; letter-spacing: -.04em; }
.version-diff { display: flex; margin: 14px 0 10px; flex-wrap: wrap; gap: 8px; }
.version-diff span, .version-first-note {
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 8px;
  background: #f7f5fb;
  font-size: 10px;
}
.version-diff strong { margin-right: 3px; color: var(--ink); }
.version-job-list { display: grid; margin-top: 10px; }
.version-job-list > a {
  display: grid;
  padding: 11px 0;
  align-items: center;
  grid-template-columns: 38px minmax(220px, 1fr) minmax(130px, .5fr) auto 18px;
  gap: 12px;
  color: var(--ink);
  border-top: 1px solid #efebe5;
}
.version-job-list > a > span:nth-child(2) strong,
.version-job-list > a > span:nth-child(2) small { display: block; }
.version-job-list > a > span:nth-child(2) small { color: var(--muted); font-size: 10px; }
.version-job-progress { display: grid; align-items: center; grid-template-columns: 1fr 34px; gap: 8px; }
.version-job-progress i { display: block; overflow: hidden; height: 4px; border-radius: 99px; background: #e8e4f1; }
.version-job-progress b { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.version-job-progress small { color: var(--muted); text-align: right; }
.file-action-strip { margin-bottom: 12px; }
.translation-workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgba(35,27,65,.045); }
.translation-workspace-toolbar { display: flex; min-height: 76px; padding: 14px 17px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.translation-workspace-toolbar h2 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.03em; }
.editor-filter-bar { display: grid; width: min(760px, 70%); grid-template-columns: minmax(190px, 1fr) 170px 145px auto; gap: 7px; }
.translation-workbench { display: grid; min-height: 620px; grid-template-columns: 310px minmax(420px, 1fr) 290px; }
.string-browser { overflow: hidden; border-right: 1px solid var(--line); background: #fbfaf8; }
.sheet-summary { display: flex; overflow-x: auto; padding: 9px; gap: 5px; border-bottom: 1px solid var(--line); }
.sheet-summary a { display: flex; padding: 5px 8px; align-items: center; gap: 6px; border-radius: 7px; color: var(--muted); background: #f0ede8; font-size: 9px; white-space: nowrap; }
.sheet-summary a.is-active { color: #fff; background: var(--ink); }
.sheet-summary a em { padding: 0 5px; border-radius: 99px; color: var(--amber); background: var(--amber-soft); font-style: normal; }
.string-list { max-height: 660px; overflow-y: auto; }
.string-list-item { display: grid; padding: 12px 13px; gap: 6px; color: var(--ink); border-bottom: 1px solid #ebe7e0; border-left: 3px solid transparent; }
.string-list-item:hover { color: var(--ink); background: #f6f3fb; }
.string-list-item.is-selected { border-left-color: var(--violet); background: var(--violet-soft); }
.string-list-meta, .string-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.string-list-meta small, .string-list-footer small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.string-list-item > strong { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.string-list-footer em { padding: 1px 5px; border-radius: 99px; color: var(--violet-dark); background: #fff; font-size: 8px; font-style: normal; white-space: nowrap; }
.string-browser .pagination { margin: 0; padding: 12px 8px; gap: 8px; font-size: 9px; }
.string-browser .pagination-jump { flex-basis: 100%; justify-content: center; }
.string-browser .pagination-jump input { width: 48px; height: 26px; }
.string-browser .pagination-jump button { height: 26px; padding: 0 8px; }
.string-editor { min-width: 0; padding: 24px 28px; }
.string-editor-heading { display: flex; margin-bottom: 18px; align-items: flex-start; justify-content: space-between; gap: 15px; }
.string-editor-heading h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.03em; }
.editor-segment { overflow: hidden; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 12px; }
.editor-segment header { display: flex; padding: 8px 12px; align-items: center; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); background: #f8f6f2; font-size: 10px; font-weight: 750; }
.editor-segment header a { color: var(--violet-dark); font-weight: 750; }
.editor-segment > div { min-height: 96px; padding: 16px; word-break: break-word; white-space: normal; }
.source-segment > div { color: #403d4c; background: #fdfcfb; }
.target-segment { border-color: #d8d0ff; }
.target-segment header { color: var(--violet-dark); border-color: #e3ddff; background: #f4f1ff; }
.target-segment > div { min-height: 128px; font-size: 17px; line-height: 1.7; }
.target-segment > div.is-empty { color: #a29eaa; }
.editor-qa-warning { display: flex; margin: 12px 0; padding: 11px 13px; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #efd49f; border-radius: 10px; background: #fffaf0; }
.editor-qa-warning strong { margin-right: 5px; color: var(--amber); font-size: 11px; }
.editor-qa-warning span { padding: 2px 6px; border-radius: 5px; color: var(--amber); background: var(--amber-soft); font-size: 9px; }
.duplicate-note { display: grid; margin: 12px 0; padding: 10px 13px; border-radius: 10px; background: #f3f1ed; }
.duplicate-note strong { font-size: 11px; }
.duplicate-note span { color: var(--muted); font-size: 9px; }
.editor-actions { display: flex; margin-top: 18px; align-items: center; flex-wrap: wrap; gap: 9px; }
.editor-actions form { margin: 0; }
.string-inspector { border-left: 1px solid var(--line); background: #faf9f7; }
.string-inspector > section { padding: 17px; border-bottom: 1px solid var(--line); }
.string-inspector > section > strong { display: block; margin-top: 5px; }
.string-inspector p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.inspector-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.inspector-terms { display: grid; margin-top: 8px; gap: 6px; }
.inspector-terms article { display: grid; padding: 9px; border: 1px solid #e8e3db; border-radius: 8px; background: #fff; }
.inspector-terms small { color: var(--violet); font-size: 8px; }
.inspector-terms strong { font-size: 11px; }
.inspector-terms span { color: var(--green); font-size: 11px; }
.inspector-terms p { margin-top: 3px; }
.memory-match-summary { display: flex; margin-top: 8px; align-items: baseline; gap: 7px; }
.memory-match-summary strong { color: var(--violet); font-size: 23px; line-height: 1; letter-spacing: -.05em; }
.memory-match-summary span { color: var(--muted); font-size: 9px; font-weight: 750; }
.memory-match-summary.match-perfect strong { color: var(--green); }
.memory-match-summary.match-exact strong { color: #4b6fc5; }
.memory-suggestion-list,
.translation-history-list { display: grid; margin-top: 9px; gap: 6px; }
.memory-suggestion-list article,
.translation-history-list article {
  display: grid;
  padding: 8px 9px;
  gap: 3px;
  border: 1px solid #e8e3db;
  border-radius: 8px;
  background: #fff;
}
.memory-suggestion-list small,
.translation-history-list small { color: var(--violet); font-size: 8px; }
.memory-suggestion-list span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.memory-suggestion-list strong,
.translation-history-list strong { font-size: 10px; line-height: 1.45; word-break: break-word; }
.context-list { display: grid; margin: 8px 0 0; gap: 6px; }
.context-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.context-list dt { color: var(--muted); }
.context-list dd { margin: 0; text-align: right; }
.row-context-details { display: grid; margin-top: 10px; gap: 5px; }
.row-context-details > span {
  display: grid;
  padding: 7px 8px;
  gap: 2px;
  border: 1px solid #e8e3db;
  border-radius: 7px;
  background: #fff;
}
.row-context-details small { color: var(--muted); font-size: 8px; }
.row-context-details strong { font-size: 10px; line-height: 1.45; word-break: break-word; }
.string-history-list { display: grid; margin-top: 9px; gap: 6px; }
.string-history-list article {
  display: grid;
  padding: 8px 9px;
  gap: 2px;
  border: 1px solid #e8e3db;
  border-radius: 8px;
  background: #fff;
}
.string-history-list small { color: var(--violet); font-size: 8px; }
.string-history-list strong { font-size: 10px; line-height: 1.45; }

.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 14px; color: var(--violet); background: var(--violet-soft); font-weight: 850; }
.empty-state h3, .empty-state h2 { margin: 6px 0; color: var(--ink); }
.empty-state p { margin: 5px 0 17px; }
.empty-state.compact { padding: 24px; }
.empty-state.spacious { padding: 100px 20px; }
.footer { display: flex; width: min(1240px, calc(100% - 40px)); min-height: 66px; margin: 0 auto; align-items: center; justify-content: space-between; color: #8d8998; border-top: 1px solid var(--line); font-size: 11px; }
.public-footer { min-height: 108px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand > img { flex: 0 0 auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(23, 23, 43, .12); }
.public-footer .footer-brand strong, .public-footer .footer-brand small { display: block; }
.public-footer .footer-brand strong { color: var(--ink); font-size: 14px; }
.public-footer .footer-brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }

@media (max-width: 1180px) {
  .translation-workbench { grid-template-columns: 280px minmax(400px, 1fr); }
  .string-inspector {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .string-inspector > section { border-right: 1px solid var(--line); border-bottom: 0; }
  .string-inspector > section:last-child { border-right: 0; }
  .file-progress-strip { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 980px) {
  .brand-hero { min-height: auto; padding-top: 70px; grid-template-columns: 1fr; gap: 55px; }
  .language-scene { max-width: 720px; }
  .brand-trust > div { width: calc(100% - 40px); }
  .brand-trust span { padding: 24px 18px; }
  .story-cards { grid-template-columns: 1fr; }
  .story-return { grid-column: auto; }
  .memory-inner { grid-template-columns: 1fr; gap: 55px; }
  .game-notebook { max-width: 760px; }
  .simple-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .simple-flow article { min-height: 340px; }
  .rigor-inner { padding: 65px; grid-template-columns: 1fr; gap: 45px; }
  .playful-cases { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: 70px; grid-template-columns: 1fr; gap: 54px; }
  .product-preview { max-width: 720px; }
  .localization-strip > div { grid-template-columns: 1fr 1fr; }
  .localization-strip span:nth-child(3) { border-top: 1px solid var(--line); }
  .localization-strip span:nth-child(4) { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .comparison-grid, .knowledge-inner, .use-case-inner { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-inner { gap: 55px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; }
  .capability-card > p { min-height: auto; }
  .capability-card > div { max-width: 650px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 20px; }
  .style-guide-grid { grid-template-columns: 1fr; }
  .style-guide-wide { grid-column: auto; }
  .workspace-overview { grid-template-columns: 1fr; }
  .workspace-stat-grid { grid-template-columns: 1fr 1fr; }
  .asset-language-row { grid-template-columns: 1fr 1fr; }
  .asset-language-title { grid-column: 1 / -1; }
  .file-list-head, .file-row { grid-template-columns: minmax(230px, 1.4fr) minmax(130px, .65fr) minmax(130px, .65fr) 85px 20px; }
  .file-list-head span:nth-child(5), .file-row > time { display: none; }
  .translation-workspace-toolbar { align-items: flex-start; flex-direction: column; }
  .editor-filter-bar { width: 100%; }
  .translation-row { grid-template-columns: 74px 1fr 24px 1fr; }
  .row-review { display: flex; grid-column: 2 / -1; justify-content: flex-end; }
  .account-email { display: none; }
}

@media (max-width: 680px) {
  .topbar-inner { width: calc(100% - 24px); height: 64px; gap: 12px; }
  .brand small { display: none; }
  .main-nav, .account-menu { display: none; }
  .mobile-nav { display: block; }
  .page, .narrow-page, .hero { width: calc(100% - 24px); }
  .editor-page { width: calc(100% - 24px); }
  .page { padding-top: 28px; }
  .hero { padding-top: 60px; }
  .brand-hero { width: calc(100% - 24px); padding: 65px 0 75px; gap: 45px; }
  .brand-hero-copy h1 { font-size: 49px; }
  .brand-hero-copy > p { font-size: 15px; }
  .brand-hero-copy .hero-actions { align-items: stretch; flex-direction: column; }
  .brand-hero-copy .hero-actions .button { width: 100%; }
  .brand-text-link { text-align: center; }
  .language-scene { min-height: auto; padding: 77px 14px 92px; border-radius: 34px; }
  .scene-note { top: 28px; }
  .speech-card { position: relative; width: auto; left: auto; right: auto; top: auto; margin-bottom: 11px; transform: none; }
  .speech-card strong { font-size: 15px; }
  .speech-card::after { display: none; }
  .scene-stickers { right: 16px; bottom: 22px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .scene-stickers span { padding: 6px 8px; }
  .scene-spark { display: none; }
  .brand-trust > div { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .brand-trust span { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .brand-trust span:last-child { border-bottom: 0; }
  .brand-story, .brand-flow, .brand-use-cases { width: calc(100% - 24px); padding: 82px 0; }
  .brand-heading h2 { font-size: 40px; }
  .brand-heading p { font-size: 14px; }
  .story-cards { margin-top: 42px; }
  .story-card { min-height: 350px; padding: 25px 21px; border-radius: 22px; }
  .story-card h3 { font-size: 29px; }
  .voice-samples { align-items: stretch; flex-direction: column; }
  .file-return { grid-template-columns: 1fr; }
  .file-return > em { transform: rotate(90deg); text-align: center; }
  .memory-inner { width: calc(100% - 24px); padding: 85px 0; }
  .memory-copy h2 { font-size: 41px; }
  .game-notebook { min-height: 590px; padding: 68px 19px 45px 35px; transform: none; }
  .note-card:nth-child(n) { margin-right: 0; margin-left: 0; transform: none; }
  .simple-flow { margin-top: 43px; }
  .simple-flow article { min-height: 340px; padding: 22px; border-radius: 21px; }
  .brand-rigor { padding: 12px; }
  .rigor-inner { min-height: auto; padding: 65px 20px; grid-template-columns: 1fr; gap: 40px; border-radius: 24px; }
  .rigor-copy h2 { font-size: 40px; }
  .rigor-list article { padding: 14px; }
  .playful-cases { margin-top: 42px; grid-template-columns: 1fr; }
  .playful-cases article { min-height: 220px; }
  .brand-final { padding: 12px; }
  .brand-final > div { min-height: 520px; padding: 55px 20px; border-radius: 28px 55px 28px 55px; }
  .brand-final h2 { font-size: 47px; }
  .brand-final .hero-actions { width: 100%; flex-direction: column; }
  .brand-final .hero-actions .button { width: 100%; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .button { flex: 1; }
  .hero-trust { align-items: flex-start; flex-direction: column; gap: 9px; }
  .product-preview { padding: 10px; border-radius: 18px; }
  .preview-toolbar { grid-template-columns: 1fr auto; }
  .preview-toolbar small { display: none; }
  .preview-metrics { grid-template-columns: 1fr 1fr; }
  .preview-editor article { min-height: 78px; align-items: start; grid-template-columns: 1fr; gap: 8px; }
  .preview-editor article small, .preview-editor article strong { white-space: normal; }
  .preview-tag { justify-self: start; }
  .preview-footer span:last-child { display: none; }
  .localization-strip > div { width: calc(100% - 24px); grid-template-columns: 1fr 1fr; }
  .localization-strip span { padding: 18px 13px; }
  .marketing-section { width: calc(100% - 24px); padding: 78px 0; }
  .section-heading h2 { font-size: 37px; }
  .section-heading p { font-size: 14px; }
  .comparison-grid { margin-top: 38px; }
  .comparison-card { padding: 23px 19px; border-radius: 18px; }
  .comparison-card h3 { font-size: 23px; }
  .workflow-grid { margin-top: 38px; grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 175px; padding: 23px; }
  .knowledge-inner { width: calc(100% - 24px); padding: 82px 0; grid-template-columns: 1fr; gap: 45px; }
  .knowledge-copy h2 { font-size: 39px; }
  .knowledge-points { grid-template-columns: 1fr; }
  .knowledge-stack article:nth-child(n) { margin-left: 0; }
  .knowledge-stack article { grid-template-columns: minmax(0,1fr); }
  .knowledge-stack article span { display: none; }
  .knowledge-result { padding: 17px; }
  .capability-grid { margin-top: 38px; }
  .capability-card { padding: 23px 19px; }
  .use-case-inner { grid-template-columns: 1fr; gap: 35px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 12px; }
  .final-cta > div { min-height: 500px; padding: 55px 20px; border-radius: 21px; }
  .final-cta h2 { font-size: 40px; }
  .final-cta .hero-actions { width: 100%; flex-direction: column; }
  .final-cta .hero-actions .button { width: 100%; }
  .style-guide-hero, .style-guide-actions { align-items: flex-start; flex-direction: column; }
  .style-version-badge { min-width: 58px; height: 58px; }
  .style-guide-field { padding: 18px 15px; }
  .style-guide-field > small { margin-left: 0; }
  .style-guide-actions .form-actions { width: 100%; }
  .stat-grid, .card-grid, .project-overview-grid, .review-editor { grid-template-columns: 1fr; }
  .workspace-hero, .file-workspace-header, .file-history-hero { align-items: flex-start; flex-direction: column; }
  .workspace-hero-copy { margin-right: 0; }
  .workspace-stat-grid { grid-template-columns: 1fr 1fr; }
  .workspace-tabs { gap: 20px; }
  .bulk-action-bar { align-items: stretch; flex-direction: column; }
  .bulk-action-bar > span { margin-right: 0; }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .language-progress-row { grid-template-columns: 38px minmax(0, 1fr) 20px; }
  .language-progress-number { display: none; }
  .file-list-head { display: none; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 9px; }
  .file-row > .file-language, .file-row > .file-progress, .file-row > time { display: none; }
  .asset-language-row { grid-template-columns: 1fr; }
  .asset-language-title { grid-column: auto; }
  .file-title { width: 100%; align-items: flex-start; }
  .file-title h1 { overflow: visible; font-size: 23px; white-space: normal; word-break: break-all; }
  .file-header-actions { flex-wrap: wrap; }
  .file-progress-primary { grid-template-columns: auto minmax(100px, 1fr) 38px; }
  .file-progress-metrics { width: 100%; padding-bottom: 3px; flex-wrap: wrap; gap: 8px 15px; white-space: normal; }
  .version-card { padding: 17px 14px 17px 42px; }
  .version-timeline::before { left: 17px; }
  .version-card::before { left: 11px; }
  .version-card-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .version-job-list > a { grid-template-columns: 38px minmax(0, 1fr) auto 16px; }
  .version-job-progress { display: none; }
  .editor-filter-bar { grid-template-columns: 1fr; }
  .translation-workbench { grid-template-columns: 1fr; }
  .string-browser { border-right: 0; border-bottom: 1px solid var(--line); }
  .string-list { max-height: 340px; }
  .string-editor { padding: 20px 16px; }
  .string-inspector { grid-template-columns: 1fr; }
  .string-inspector > section { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-hero, .page-heading, .project-hero, .job-hero { align-items: flex-start; flex-direction: column; }
  .project-hero .project-icon { display: none; }
  .project-row { grid-template-columns: 42px minmax(0,1fr) 24px; }
  .project-meta { display: none; }
  .filter-bar, .filter-bar.inline { width: 100%; grid-template-columns: 1fr; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .translation-row { grid-template-columns: 1fr; }
  .translation-arrow { display: none; }
  .row-review { grid-column: auto; justify-content: space-between; }
  .translation-cell { padding-top: 8px; border-top: 1px solid var(--line); }
  .auth-card { padding: 28px 22px; }
  .footer { width: calc(100% - 24px); }
  .footer > span:last-child { display: none; }
}

/* Product UI 2.0 — calm, content-first application surfaces */
body.app-shell {
  --ink: #17181d;
  --muted: #72747d;
  --paper: #f7f7f8;
  --panel: #ffffff;
  --line: #e5e6e9;
  --violet: #5d5bd6;
  --violet-dark: #4d4bb8;
  --violet-soft: #f0efff;
  --green: #23855d;
  --green-soft: #eaf7f0;
  --amber: #a45f08;
  --amber-soft: #fff4dd;
  --red: #b53d4a;
  --red-soft: #fff0f1;
  --shadow: 0 18px 48px rgba(18, 20, 28, .08);
  --radius: 15px;
  background:
    radial-gradient(circle at 50% -180px, rgba(93, 91, 214, .055), transparent 420px),
    var(--paper);
}

.app-shell .topbar {
  border-bottom-color: rgba(229, 230, 233, .92);
  background: rgba(255, 255, 255, .92);
}
.app-shell .topbar-inner {
  width: min(1400px, calc(100% - 40px));
  height: 64px;
  gap: 24px;
}
.app-shell .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(23, 24, 29, .14);
}
.app-shell .brand small { display: none; }
.app-shell .main-nav { gap: 5px; }
.app-shell .main-nav > a:not(.button) {
  position: relative;
  padding: 8px 11px;
  border-radius: 9px;
  color: #686a72;
  font-size: 13px;
  font-weight: 680;
}
.app-shell .main-nav > a:not(.button):hover,
.app-shell .main-nav > a:not(.button).is-active {
  color: var(--ink);
  background: #f3f3f5;
}
.app-shell .account-menu {
  margin-left: 8px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.app-shell .account-avatar {
  color: #fff;
  background: #24262f;
}
.app-shell .button {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: none;
}
.app-shell .button:hover { transform: none; }
.app-shell .button-primary {
  color: #fff;
  border-color: #17181d;
  background: #17181d;
  box-shadow: 0 1px 2px rgba(15, 16, 20, .18);
}
.app-shell .button-primary:hover {
  color: #fff;
  border-color: #2c2e35;
  background: #2c2e35;
}
.app-shell .button-ghost {
  border-color: #dcdde1;
  background: #fff;
}
.app-shell .button-ghost:hover {
  border-color: #c8c9ce;
  background: #f8f8f9;
}
.app-shell .button-small {
  min-height: 34px;
  border-radius: 9px;
}
.app-shell .project-hero .button-primary {
  color: #17181d;
  border-color: #fff;
  background: #fff;
}
.app-shell .project-hero .button-primary:hover {
  color: #17181d;
  border-color: #f0f0f2;
  background: #f0f0f2;
}
.app-shell .project-hero .button-ghost {
  color: #fff;
  border-color: #4e4f59;
  background: #282930;
}
.app-shell .project-hero .button-ghost:hover {
  color: #fff;
  border-color: #666872;
  background: #34353d;
}
.app-shell .page {
  width: min(1400px, calc(100% - 40px));
  padding-top: 36px;
}
.app-shell .narrow-page { width: min(1080px, calc(100% - 40px)); }
.app-shell .eyebrow {
  color: #737580;
  font-size: 10px;
  letter-spacing: .1em;
}
.app-shell .breadcrumbs {
  margin-bottom: 18px;
  font-size: 11px;
}
.app-shell .panel,
.app-shell .project-card,
.app-shell .stat-card,
.app-shell .workspace-stat-grid article {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.app-shell .panel-header h2 { font-size: 20px; }

.app-shell .dashboard-hero {
  padding: 20px 0 30px;
  align-items: center;
}
.app-shell .dashboard-hero h1,
.app-shell .page-heading h1 {
  margin-top: 5px;
  font-size: clamp(34px, 3.5vw, 46px);
}
.app-shell .dashboard-hero p,
.app-shell .page-heading p {
  max-width: 680px;
  font-size: 14px;
}
.app-shell .stat-grid { gap: 10px; }
.app-shell .stat-card {
  min-height: 126px;
  padding: 19px 20px;
}
.app-shell .stat-card strong {
  margin: 12px 0 5px;
  font-size: 31px;
}
.app-shell .stat-card.stat-accent {
  color: var(--ink);
  border-color: #dcdde2;
  background:
    radial-gradient(circle at 92% 12%, rgba(93,91,214,.12), transparent 38%),
    #fff;
}
.app-shell .stat-card.stat-accent small,
.app-shell .stat-card.stat-accent span { color: var(--muted); }
.app-shell .project-row,
.app-shell .activity-item { border-radius: 10px; }
.app-shell .project-row:hover,
.app-shell .activity-item:hover { background: #f6f6f7; }
.app-shell .project-icon,
.app-shell .language-avatar {
  color: #3f4149;
  background: #f0f1f3;
}

.app-shell .page-heading { align-items: center; }
.app-shell .card-grid { gap: 12px; }
.app-shell .project-card {
  position: relative;
  padding: 22px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-shell .project-card:hover {
  z-index: 1;
  border-color: #cfd0d5;
  box-shadow: 0 15px 34px rgba(20, 22, 30, .07);
  transform: translateY(-2px);
}
.app-shell .project-card h2 { margin-top: 20px; }
.app-shell .project-card-stats {
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.app-shell .card-link {
  margin: 0 -8px -8px;
  padding: 13px 8px 8px;
  border-top: 0;
  color: var(--ink);
}
.app-shell .card-link span { color: #898b94; }

.app-shell .workspace-hero {
  padding: 22px 24px;
  border-color: var(--line);
  border-radius: 17px;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% -20%, rgba(93,91,214,.12), transparent 34%),
    #fff;
}
.app-shell .workspace-project-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 15px;
  color: #fff;
  background: #202127;
}
.app-shell .workspace-hero-copy .eyebrow { color: #737580; }
.app-shell .workspace-hero-copy p { color: var(--muted); }
.app-shell .workspace-hero .button-ghost {
  color: var(--ink);
  border-color: #dcdde1;
  background: #fff;
}
.app-shell .workspace-tabs {
  padding: 0;
  gap: 8px;
  border-bottom: 0;
}
.app-shell .workspace-tabs a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}
.app-shell .workspace-tabs a:hover { color: var(--ink); background: #efeff1; }
.app-shell .workspace-tabs a.is-active {
  color: #fff;
  background: #202127;
}
.app-shell .workspace-tabs a.is-active::after { display: none; }
.app-shell .workspace-tabs a span { background: rgba(120,122,132,.14); }
.app-shell .workspace-tabs a.is-active span { background: rgba(255,255,255,.16); }
.app-shell .workspace-stat-grid { gap: 9px; }
.app-shell .workspace-stat-grid article { padding: 16px 18px; }
.app-shell .workspace-stat-grid strong { font-size: 26px; }
.app-shell .language-progress-row { border-radius: 10px; }
.app-shell .language-progress-row:hover { background: #f7f7f8; }
.app-shell .knowledge-split span { background: #f5f5f6; }
.app-shell .file-row:hover { background: #f7f7f8; }

.app-shell .form-layout { gap: 72px; }
.app-shell .job-form-layout > section { position: sticky; top: 100px; }
.app-shell .form-layout h1 { font-size: 42px; }
.app-shell .upload-form { padding: 28px; }
.app-shell .form-control {
  min-height: 42px;
  border-color: #d8d9de;
  border-radius: 9px;
  background: #fff;
}
.app-shell .form-control:focus {
  border-color: #7170d9;
  box-shadow: 0 0 0 3px rgba(93,91,214,.11);
}
.app-shell .file-field {
  padding: 20px;
  border-color: #cfd0d7;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(93,91,214,.07), transparent 40%),
    #fafafb;
}
.app-shell .security-note {
  border: 1px solid #ececef;
  background: #f7f7f8;
}
.app-shell .process-list { position: relative; gap: 6px; }
.app-shell .process-list::before {
  position: absolute;
  width: 1px;
  top: 28px;
  bottom: 28px;
  left: 16px;
  background: #dedfe3;
  content: "";
}
.app-shell .process-list li {
  position: relative;
  padding: 10px 0;
}
.app-shell .process-list li > span {
  color: #767881;
  border: 1px solid #d9dade;
  background: #fff;
}
.app-shell .process-list li.is-active > span {
  color: #fff;
  border-color: #202127;
  background: #202127;
}

.app-shell .sheet-setup-page { width: min(1180px, calc(100% - 40px)); }
.app-shell .sheet-setup-hero {
  margin-bottom: 14px;
  padding: 20px 22px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.app-shell .sheet-setup-hero .eyebrow { color: #737580; }
.app-shell .sheet-setup-hero p { color: var(--muted); }
.workflow-steps {
  display: grid;
  margin: 0 0 14px;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
  list-style: none;
  overflow: hidden;
}
.workflow-steps li {
  display: flex;
  min-height: 58px;
  padding: 11px 15px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}
.workflow-steps li span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d9dade;
  border-radius: 50%;
  font-weight: 800;
}
.workflow-steps li.is-complete { color: #39745a; }
.workflow-steps li.is-complete span {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.workflow-steps li.is-active {
  color: var(--ink);
  background: #fafafb;
}
.workflow-steps li.is-active span {
  color: #fff;
  border-color: #202127;
  background: #202127;
}
.app-shell .sheet-setup-form { padding: 0; gap: 0; overflow: hidden; }
.app-shell .sheet-setup-form .table-wrap { padding: 10px 18px 4px; }
.app-shell .data-table th {
  padding: 11px 12px;
  color: #8a8c94;
  background: #f7f7f8;
  letter-spacing: .02em;
}
.app-shell .data-table th:first-child { border-radius: 9px 0 0 9px; }
.app-shell .data-table th:last-child { border-radius: 0 9px 9px 0; }
.app-shell .data-table td { padding: 15px 12px; }
.app-shell .data-table tbody tr:hover { background: #fafafb; }
.sheet-name-cell { display: flex; min-width: 140px; align-items: center; gap: 7px; }
.sheet-name-cell::before {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  color: #39745a;
  background: #edf7f1;
  content: "表";
  font-size: 11px;
  font-weight: 800;
}
.sheet-toggle input { width: 18px; height: 18px; accent-color: #202127; }
.app-shell .sheet-setup-form .security-note {
  margin: 14px 18px;
}
.app-shell .sheet-setup-form .form-actions {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: #fafafb;
}

.app-shell .editor-page { width: min(1560px, calc(100% - 40px)); }
.app-shell .file-workspace-header {
  min-height: 66px;
  margin-bottom: 12px;
}
.app-shell .file-title h1 { font-size: 27px; }
.app-shell .file-icon {
  color: #2d6f4f;
  background: #ecf6f0;
}
.app-shell .file-progress-strip {
  padding: 14px 16px;
  border-color: var(--line);
  background: #fff;
}
.app-shell .file-progress-primary .progress-track,
.app-shell .mini-progress,
.app-shell .file-progress > i {
  background: #e9e9ec;
}
.app-shell .file-progress-primary .progress-track i,
.app-shell .mini-progress i,
.app-shell .file-progress > i b { background: #5d5bd6; }
.app-shell .file-progress-metrics {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.app-shell .glossary-extraction-card {
  border-color: #e2e3e7;
  background: #fafafb;
}
.app-shell .file-action-strip {
  min-height: 38px;
  padding: 0 2px;
}
.app-shell .translation-workspace {
  border-radius: 15px;
  box-shadow: none;
}
.app-shell .translation-workspace-toolbar {
  min-height: 70px;
  padding: 13px 15px;
  background: #fff;
}
.app-shell .editor-filter-bar { width: min(720px, 68%); }
.app-shell .editor-filter-bar .form-control { min-height: 36px; padding: 7px 10px; }
.app-shell .translation-workbench {
  min-height: 640px;
  grid-template-columns: 320px minmax(440px, 1fr) 300px;
}
.app-shell .string-browser { background: #fafafb; }
.app-shell .sheet-summary { background: #fff; }
.app-shell .sheet-summary a {
  padding: 6px 9px;
  background: #f1f1f3;
}
.app-shell .sheet-summary a.is-active { background: #202127; }
.app-shell .string-list-item {
  padding: 13px 14px;
  border-bottom-color: #e8e8eb;
}
.app-shell .string-list-item:hover { background: #f4f4f6; }
.app-shell .string-list-item.is-selected {
  border-left-color: #202127;
  background: #f0f0f2;
}
.app-shell .string-list-footer em {
  color: #4f5058;
  background: #fff;
}
.app-shell .string-editor { padding: 24px 30px; }
.app-shell .editor-segment {
  border-radius: 11px;
}
.app-shell .editor-segment header { background: #f7f7f8; }
.app-shell .source-segment > div { background: #fff; }
.app-shell .target-segment { border-color: #d9d9df; }
.app-shell .target-segment header {
  color: #4d4e56;
  border-color: #e4e4e7;
  background: #f4f4f6;
}
.app-shell .target-segment > div {
  min-height: 138px;
  font-size: 18px;
}
.app-shell .string-inspector { background: #fafafb; }
.app-shell .inspector-terms article,
.app-shell .memory-suggestion-list article,
.app-shell .translation-history-list article,
.app-shell .string-history-list article,
.app-shell .row-context-details > span { border-color: #e4e4e7; }

.messages {
  top: 76px;
  width: min(380px, calc(100% - 32px));
}
.message {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 14px 38px 14px 46px;
  align-items: center;
  grid-template-columns: 1fr;
  color: var(--ink);
  border-color: #dedfe3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 20, 28, .12);
  font-size: 13px;
  font-weight: 650;
}
.message-icon {
  position: absolute;
  display: grid;
  width: 20px;
  height: 20px;
  left: 15px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #70727b;
}
.message-icon::before { content: "i"; font-size: 11px; font-weight: 850; }
.message-success .message-icon { background: var(--green); }
.message-success .message-icon::before { content: "✓"; }
.message-error .message-icon { background: var(--red); }
.message-error .message-icon::before { content: "!"; }
.message-success,
.message-error {
  color: var(--ink);
  border-color: #dedfe3;
  background: #fff;
}
.message-close {
  position: absolute;
  width: 28px;
  height: 28px;
  right: 7px;
  border: 0;
  border-radius: 8px;
  color: #7b7d85;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
}
.message-close:hover { background: #f1f1f3; }
.message-timer {
  position: absolute;
  height: 2px;
  right: 0;
  bottom: 0;
  left: 0;
  background: #202127;
  transform-origin: left;
  animation: message-timeout 5.2s linear forwards;
}
@keyframes message-timeout { to { transform: scaleX(0); } }

.app-shell .wait-hud { background: rgba(22, 23, 28, .46); }
.app-shell .wait-hud-card {
  width: min(370px, 100%);
  padding: 30px 28px 25px;
  border-color: rgba(255,255,255,.9);
  border-radius: 17px;
  box-shadow: 0 28px 80px rgba(17, 18, 24, .24);
}
.app-shell .wait-hud-spinner {
  border-radius: 14px;
  background: #f0f0f2;
}
.app-shell .wait-hud-spinner span {
  border-color: #d5d5d9;
  border-top-color: #202127;
}
.app-shell .wait-hud-progress { background: #e7e7ea; }
.app-shell .wait-hud-progress span { background: #202127; }

.workspace-skeleton {
  display: grid;
  width: min(760px, 100%);
  margin: 0 auto 28px;
  gap: 11px;
}
.workspace-skeleton span,
.drawer-loading span {
  display: block;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ececef 25%, #f7f7f8 50%, #ececef 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}
.workspace-skeleton span:nth-child(2) { width: 92%; }
.workspace-skeleton span:nth-child(3) { width: 96%; }
.workspace-skeleton span:nth-child(4) { width: 86%; }
.workspace-skeleton span:nth-child(5) { width: 94%; }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }

body.drawer-open { overflow: hidden; }
.side-drawer {
  position: fixed;
  z-index: 900;
  inset: 0;
}
.side-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(19, 20, 25, .32);
  backdrop-filter: blur(2px);
  cursor: default;
  animation: drawer-fade .18s ease-out;
}
.side-drawer-panel {
  position: absolute;
  display: grid;
  width: min(610px, calc(100% - 28px));
  top: 0;
  right: 0;
  bottom: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -24px 0 70px rgba(18,20,28,.14);
  animation: drawer-enter .24s cubic-bezier(.2,.8,.2,1);
}
.side-drawer-header {
  display: flex;
  min-height: 78px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.side-drawer-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -.03em;
}
.side-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #696b74;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.side-drawer-close:hover { background: #f4f4f6; }
.side-drawer-body { overflow-y: auto; padding: 20px; }
.side-drawer-body .review-editor { grid-template-columns: 1fr; }
.side-drawer-body .panel { padding: 20px; }
.side-drawer-body .source-review { background: #fafafb; }
.side-drawer-body .source-quote { font-size: 15px; }
.side-drawer-body textarea.form-control { min-height: 190px; }
.side-drawer-body .form-actions {
  position: sticky;
  z-index: 2;
  bottom: -20px;
  margin: 0 -20px -20px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.drawer-loading { display: grid; gap: 12px; }
.drawer-loading span { height: 76px; }
.drawer-loading span:nth-child(1) { height: 120px; }
.drawer-loading span:nth-child(3) { height: 150px; }
.drawer-error {
  display: grid;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.drawer-error p { color: var(--muted); }
@keyframes drawer-fade { from { opacity: 0; } }
@keyframes drawer-enter { from { transform: translateX(100%); } }

@media (max-width: 1180px) {
  .app-shell .translation-workbench { grid-template-columns: 290px minmax(400px, 1fr); }
  .app-shell .file-progress-metrics {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .app-shell .job-form-layout > section { position: static; }
  .workflow-steps li { padding: 10px; }
  .workflow-steps li strong { font-size: 11px; }
}

@media (max-width: 680px) {
  .app-shell .topbar-inner,
  .app-shell .page,
  .app-shell .narrow-page,
  .app-shell .editor-page,
  .app-shell .sheet-setup-page { width: calc(100% - 24px); }
  .app-shell .page { padding-top: 26px; }
  .app-shell .dashboard-hero { padding-top: 8px; }
  .app-shell .dashboard-hero h1,
  .app-shell .page-heading h1,
  .app-shell .form-layout h1 { font-size: 34px; }
  .app-shell .project-card:hover { transform: none; }
  .app-shell .workspace-hero { padding: 18px; }
  .app-shell .workspace-project-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .workflow-steps {
    display: flex;
    overflow-x: auto;
  }
  .workflow-steps li { min-width: 190px; }
  .app-shell .sheet-setup-form .table-wrap { padding: 8px 10px; }
  .app-shell .string-editor { padding: 20px 16px; }
  .side-drawer-panel {
    width: 100%;
    top: 7vh;
    border: 0;
    border-radius: 18px 18px 0 0;
  }
  .side-drawer-body { padding: 14px; }
  .side-drawer-body .form-actions {
    bottom: -14px;
    margin: 0 -14px -14px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-timer,
  .workspace-skeleton span,
  .drawer-loading span,
  .side-drawer-backdrop,
  .side-drawer-panel { animation: none; }
}

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

.global-search-trigger {
  display: flex;
  min-width: 138px;
  height: 36px;
  padding: 0 8px 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #777982;
  border: 1px solid #e0e1e4;
  border-radius: 10px;
  background: #f7f7f8;
  cursor: pointer;
  font-size: 12px;
}
.global-search-trigger:hover {
  color: var(--ink);
  border-color: #d2d3d7;
  background: #fff;
}
.global-search-trigger kbd,
.command-panel kbd,
.keyboard-hints kbd {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid #dedfe3;
  border-radius: 6px;
  color: #777982;
  background: #fff;
  box-shadow: 0 1px 1px rgba(20,22,28,.06);
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
}
body.command-open { overflow: hidden; }
.command-palette {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  padding: 11vh 20px 20px;
  align-items: start;
  justify-items: center;
}
.command-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(19,20,25,.4);
  backdrop-filter: blur(5px);
}
.command-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  width: min(650px, 100%);
  max-height: min(680px, 78vh);
  grid-template-rows: auto minmax(120px, 1fr) auto;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15,17,24,.24);
  animation: command-enter .18s ease-out;
}
.command-panel > header {
  display: grid;
  min-height: 62px;
  padding: 10px 14px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.command-panel > header > span {
  color: #6b6d75;
  font-size: 24px;
}
.command-panel input {
  width: 100%;
  height: 42px;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}
.command-results {
  overflow-y: auto;
  padding: 8px;
}
.command-group-label {
  display: block;
  padding: 12px 10px 6px;
  color: #9698a0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.command-results > a {
  display: grid;
  min-height: 58px;
  padding: 8px 10px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  border-radius: 10px;
  color: var(--ink);
}
.command-results > a:hover,
.command-results > a.is-active {
  color: var(--ink);
  background: #f1f1f3;
}
.command-results > a > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #53555e;
  background: #e9e9ec;
  font-size: 11px;
  font-weight: 800;
}
.command-results > a > span:nth-child(2) { min-width: 0; }
.command-results strong,
.command-results small { display: block; }
.command-results strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.command-results small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.command-results em {
  color: #9a9ca4;
  font-style: normal;
}
.command-empty {
  display: grid;
  min-height: 170px;
  padding: 24px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}
.command-empty strong { color: var(--ink); }
.command-empty span { margin-top: 4px; font-size: 11px; }
.command-loading {
  display: grid;
  padding: 22px 12px;
  gap: 9px;
}
.command-loading span {
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eeeeF0 25%, #f8f8f9 50%, #eeeeF0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}
.command-panel > footer {
  display: flex;
  min-height: 42px;
  padding: 8px 14px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #8a8c94;
  border-top: 1px solid var(--line);
  background: #fafafb;
  font-size: 9px;
}
.command-panel > footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@keyframes command-enter {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
}

.project-command-row {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 10px;
}
.project-primary-action {
  display: grid;
  min-height: 74px;
  padding: 12px 14px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.project-primary-action > span:nth-child(2) { min-width: 0; }
.project-primary-action small,
.project-primary-action strong { display: block; }
.project-primary-action small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.project-primary-action strong {
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.action-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #202127;
  font-weight: 850;
}
.action-icon.is-warning { background: #b27115; }
.action-icon.is-running {
  color: #514fb8;
  background: #eeeeff;
}
.project-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 7px;
}
.project-quick-actions a {
  display: grid;
  min-width: 102px;
  padding: 9px 12px;
  place-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}
.project-quick-actions a:hover {
  color: var(--ink);
  border-color: #ced0d5;
  background: #fafafb;
}
.project-quick-actions a span {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 7px;
  color: #555760;
  background: #eeeeF0;
  font-weight: 800;
}
.app-shell .workspace-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.job-stage-track {
  display: grid;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  list-style: none;
}
.job-stage-track li {
  position: relative;
  display: grid;
  min-height: 66px;
  padding: 11px 14px;
  align-items: center;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  border-right: 1px solid var(--line);
}
.job-stage-track li:last-child { border-right: 0; }
.job-stage-track li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d9dade;
  border-radius: 50%;
  color: #90929a;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}
.job-stage-track strong,
.job-stage-track small { display: block; }
.job-stage-track strong { font-size: 11px; }
.job-stage-track small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.job-stage-track .is-complete > span {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.job-stage-track .is-active {
  background: #f8f8ff;
  box-shadow: inset 0 -2px #5d5bd6;
}
.job-stage-track .is-active > span {
  color: #fff;
  border-color: #5d5bd6;
  background: #5d5bd6;
}
.job-stage-track .is-blocked {
  background: #fff9f0;
}
.job-stage-track .is-blocked > span {
  color: #fff;
  border-color: var(--amber);
  background: var(--amber);
}

.recommendation-badge {
  display: inline-flex !important;
  width: max-content;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #2f7453 !important;
  background: #e9f7ef;
  font-size: 8px !important;
  font-weight: 800;
}
.recommendation-badge.is-medium {
  color: #94600f !important;
  background: #fff3d9;
}
.sheet-preview-row td {
  padding-top: 0 !important;
  background: #fafafb;
}
.sheet-preview-row:hover { background: #fafafb !important; }
.sheet-sample-grid {
  display: grid;
  padding: 12px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid #e6e7ea;
  border-radius: 11px;
  background: #fff;
}
.sheet-sample-grid section {
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: #f7f7f8;
}
.sheet-sample-grid header {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sheet-sample-grid header strong { font-size: 10px; }
.sheet-sample-grid header small {
  overflow: hidden;
  color: #8c8e96;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.sheet-sample-grid section > div {
  display: grid;
  gap: 5px;
}
.sheet-sample-grid section > div > span {
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 6px;
  color: #555760;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.sheet-sample-grid .sample-placeholder {
  color: #9b9da4;
  font-style: italic;
}
.sample-arrow {
  display: grid;
  place-items: center;
  color: #a0a2a9;
}

.keyboard-hints {
  display: flex;
  margin-top: 5px;
  align-items: center;
  gap: 9px;
  color: #9698a0;
  font-size: 8px;
}
.keyboard-hints span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.keyboard-hints kbd {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 8px;
}
.asset-data-table th:first-child,
.asset-data-table td:first-child { width: 38px; }
.asset-data-table input[type="checkbox"],
[data-select-all] {
  width: 17px;
  height: 17px;
  accent-color: #202127;
}
.app-shell .panel > .bulk-action-bar {
  margin: -2px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafb;
}

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}
.notification-menu > summary {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #555760;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  list-style: none;
}
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu > summary:hover,
.notification-menu[open] > summary {
  color: #202127;
  border-color: #cfd0d5;
  background: #f7f7f8;
}
.notification-bell-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-menu > summary em {
  position: absolute;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  top: -6px;
  right: -6px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--red);
  font-size: 8px;
  font-style: normal;
}
.notification-popover {
  position: absolute;
  z-index: 80;
  width: 360px;
  max-height: 520px;
  overflow: auto;
  top: calc(100% + 10px);
  right: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(20, 22, 30, .16);
}
.notification-popover > header {
  display: flex;
  padding: 14px 16px 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.notification-popover > header strong { font-size: 13px; }
.notification-popover > header a { font-size: 10px; }
.notification-preview-list { display: grid; }
.notification-preview {
  position: relative;
  display: grid;
  padding: 12px 16px 12px 32px;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  border-bottom: 1px solid #efeff1;
  color: var(--ink);
}
.notification-preview:hover { color: var(--ink); background: #f8f8fa; }
.notification-preview > span {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 17px;
  left: 16px;
  border-radius: 50%;
  background: #b8bac1;
}
.notification-preview.is-success > span { background: var(--green); }
.notification-preview.is-attention > span,
.notification-preview.is-warning > span { background: var(--amber); }
.notification-preview.is-unread { background: #f7f7ff; }
.notification-preview strong { font-size: 11px; }
.notification-preview small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.notification-preview time {
  grid-column: 2;
  grid-row: 1;
  color: #a1a3aa;
  font-size: 8px;
}
.notification-empty { padding: 26px 18px; color: var(--muted); text-align: center; font-size: 11px; }
.notification-page-list { display: grid; }
.notification-page-item {
  display: grid;
  padding: 15px 18px;
  align-items: center;
  grid-template-columns: 12px minmax(0, 1fr) auto 18px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.notification-page-item:hover { color: var(--ink); background: #fafafb; }
.notification-page-item.is-unread { background: #f8f8ff; }
.notification-kind-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8bac1; }
.notification-page-item.is-success .notification-kind-dot { background: var(--green); }
.notification-page-item.is-warning .notification-kind-dot,
.notification-page-item.is-attention .notification-kind-dot { background: var(--amber); }
.notification-page-item strong,
.notification-page-item small { display: block; }
.notification-page-item strong { font-size: 12px; }
.notification-page-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.notification-page-item time { color: #95979e; font-size: 9px; }
.notification-page-item em { color: #a1a3aa; font-style: normal; }

.advanced-settings {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafafb;
}
.advanced-settings > summary {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}
.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary::after { color: #94969d; content: "＋"; }
.advanced-settings[open] > summary::after { content: "−"; }
.advanced-settings > summary small { margin-left: auto; margin-right: 10px; color: var(--muted); font-size: 8px; font-weight: 500; }
.advanced-settings > label {
  display: grid;
  padding: 0 14px 14px;
  gap: 6px;
}
.upload-progress-inline { display: grid; gap: 7px; }
.upload-progress-inline > span { display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.upload-progress-inline em { color: var(--violet); font-style: normal; font-weight: 800; }
.upload-progress-inline > i {
  overflow: hidden;
  height: 6px;
  border-radius: 99px;
  background: #e9e8ef;
}
.upload-progress-inline b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
  transition: width .16s linear;
}
.wait-hud-percent { margin: -10px 0 10px !important; color: var(--violet); font-size: 13px !important; }
.wait-hud.is-upload-progress .wait-hud-progress span {
  width: 0;
  animation: none;
  transform: none;
  transition: width .16s linear;
}
.auth-footnote { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

.reconfigure-warning {
  display: grid;
  padding: 14px;
  align-items: start;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #ecd59b;
  border-radius: 11px;
  color: #6b531d;
  background: #fff9e9;
}
.reconfigure-warning > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #f7e7b8;
  font-weight: 850;
}
.reconfigure-warning strong { font-size: 11px; }
.reconfigure-warning p { margin: 3px 0 0; color: #816b35; font-size: 9px; }
.confirmation-check {
  display: flex !important;
  padding: 12px 14px;
  align-items: center;
  gap: 9px !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafb;
}
.confirmation-check input { width: 17px; height: 17px; accent-color: #202127; }
.confirmation-check span { font-size: 10px; font-weight: 700; }
.queue-position-note {
  display: flex;
  padding: 8px 12px;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: #555760;
  background: #fafafb;
}
.queue-position-note span {
  padding: 3px 7px;
  border-radius: 99px;
  color: #4d4ba9;
  background: #eaeaff;
  font-size: 8px;
  font-weight: 850;
}
.queue-position-note strong { font-size: 10px; }
.queue-position-note small { margin-left: auto; color: var(--muted); font-size: 8px; }

.review-workbook-upload {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-workbook-upload label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.review-workbook-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.terminology-review-page {
  width: min(1180px, calc(100% - 40px));
  padding: 28px 0 120px;
}
.terminology-review-header {
  display: flex;
  margin: 18px 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.terminology-review-header h1 {
  margin: 3px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.05em;
}
.terminology-review-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}
.terminology-review-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.terminology-review-row {
  display: grid;
  min-height: 112px;
  padding: 18px 20px;
  align-items: center;
  grid-template-columns: 82px minmax(240px, .8fr) minmax(320px, 1.2fr);
  gap: 22px;
  border-bottom: 1px solid var(--line);
  transition: opacity .18s ease, background .18s ease;
}
.terminology-review-row:last-child { border-bottom: 0; }
.terminology-review-row.is-rejected {
  opacity: .52;
  background: #f7f7f8;
}
.terminology-decision {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}
.terminology-decision input {
  width: 19px;
  height: 19px;
  accent-color: #5d5bd6;
}
.terminology-source small,
.terminology-source strong,
.terminology-source span,
.terminology-target small,
.terminology-target span { display: block; }
.terminology-source small,
.terminology-target small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}
.terminology-source strong {
  margin-bottom: 7px;
  font-size: 18px;
}
.terminology-source span,
.terminology-target span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.terminology-target-input { width: 100%; }
.terminology-empty-state {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.sticky-review-actions {
  position: sticky;
  z-index: 20;
  bottom: 18px;
  display: flex;
  margin-top: 18px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dcdde3;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 45px rgba(35, 27, 65, .14);
  backdrop-filter: blur(12px);
}
.sticky-review-actions strong,
.sticky-review-actions span { display: block; }
.sticky-review-actions span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .global-search-trigger { min-width: 44px; width: 44px; }
  .global-search-trigger > span { display: none; }
  .global-search-trigger kbd { border: 0; box-shadow: none; background: transparent; }
  .project-command-row { grid-template-columns: 1fr; }
  .project-quick-actions { grid-template-columns: repeat(3, 1fr); }
  .account-menu { display: none !important; }
}

@media (max-width: 800px) {
  .job-stage-track {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(190px, 1fr));
  }
  .terminology-review-row {
    grid-template-columns: 72px minmax(190px, .8fr) minmax(260px, 1.2fr);
  }
  .sheet-sample-grid { grid-template-columns: 1fr; }
  .sample-arrow { min-height: 20px; transform: rotate(90deg); }
  .learning-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .global-search-trigger {
    min-width: 38px;
    width: 38px;
    height: 36px;
    margin-left: auto;
    padding: 0;
    justify-content: center;
  }
  .global-search-trigger kbd {
    min-width: auto;
    padding: 0;
    font-size: 0;
  }
  .global-search-trigger kbd::before {
    content: "⌕";
    font-size: 21px;
  }
  .mobile-nav { margin-left: 0; }
  .notification-menu > summary { width: 36px; height: 36px; }
  .notification-popover { position: fixed; width: calc(100% - 20px); top: 68px; right: 10px; }
  .notification-page-item { grid-template-columns: 10px minmax(0, 1fr) 16px; }
  .notification-page-item time { display: none; }
  .queue-position-note { align-items: flex-start; flex-wrap: wrap; }
  .queue-position-note small { width: 100%; margin-left: 0; }
  .command-palette { padding: 8vh 10px 10px; }
  .command-panel { max-height: 84vh; border-radius: 15px; }
  .project-primary-action {
    align-items: start;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .project-primary-action .button {
    width: 100%;
    grid-column: 1 / -1;
  }
  .project-primary-action strong { white-space: normal; }
  .project-quick-actions a { min-width: 0; padding: 8px 5px; }
  .app-shell .workspace-stat-grid { grid-template-columns: 1fr 1fr; }
  .keyboard-hints { display: none; }
  .learning-stat-grid { grid-template-columns: 1fr; }
  .learning-warning-list p { display: grid; gap: 3px; }
  .side-drawer-panel {
    top: auto;
    height: 92vh;
    max-height: 92vh;
  }
  .side-drawer-header::before {
    position: absolute;
    width: 40px;
    height: 4px;
    top: 7px;
    left: 50%;
    border-radius: 99px;
    background: #d7d8dc;
    content: "";
    transform: translateX(-50%);
  }
  .side-drawer-header { position: relative; padding-top: 22px; }
  .terminology-review-page {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }
  .terminology-review-header,
  .sticky-review-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .terminology-review-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sticky-review-actions .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .sticky-review-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .command-panel,
  .command-loading span { animation: none; }
}
