/* Generated by design-sync/build.mjs - do not edit. */
/* ---- src/styles/tokens.css ---- */
:root {
  color-scheme: light dark;
  --gx-bg: light-dark(#f5f0e7, #25211f);
  --gx-panel: light-dark(#fffaf3, #30292a);
  --gx-ink: light-dark(#392c2e, #f1e7df);
  --gx-muted: light-dark(#756267, #bca7ad);
  --gx-line: light-dark(#d8c9c9, #514145);
  --gx-accent: light-dark(#743947, #d89da9);
  --gx-action: #743947;
  --gx-action-ink: #ffffff;
  --gx-soft: light-dark(#e8ded7, #33252a);
  --gx-art: #743947;
  --gx-art-ink: #ffffff;
  /* Meaning stays independent from the user's accent. */
  --gx-error: light-dark(#a52e2e, #ffaaa4);
  --gx-warning: light-dark(#80520c, #edc278);
  --gx-success: light-dark(#326044, #a6d3b4);
  --gx-support-a: light-dark(#326044, #a6d3b4);
  --gx-support-b: light-dark(#80520c, #edc278);
  --gx-support-c: light-dark(#a52e2e, #ffaaa4);
  --gx-token: light-dark(#f0dcb0, #55442c);
  --gx-token-ink: light-dark(#473315, #f9e5bc);
  --gx-token-edge: light-dark(#a68140, #c4a363);
  --gx-focus: light-dark(#392c2e, #f1e7df);
  --gx-font-body: "DM Sans", "Noto Sans KR", sans-serif;
  --gx-font-display: "Instrument Serif", "Noto Serif KR", serif;
  --gx-font-logo: "Patrick Hand", cursive;
  --gx-font-korean-display: "Noto Serif KR", serif;
  --gx-font-mono: ui-monospace, "Noto Sans KR", monospace;
  --m: 1;
  --gx-motion-feedback: 160ms; /* @kind other */
  --gx-motion-panel: 200ms; /* @kind other */
  --gx-motion-cover: 200ms; /* @kind other */
  font-family: var(--gx-font-body);
  color: var(--gx-ink);
  background: var(--gx-bg);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; max-width: 100%; touch-action: manipulation; }
button, input, select, textarea { border: 1px solid var(--gx-line); border-radius: 4px; }
button {
  min-height: 40px; padding: 8px 14px; background: var(--gx-panel); color: var(--gx-ink);
  cursor: pointer; font-weight: 500; height: auto; line-height: 1.3;
  flex-shrink: 0; width: max-content; max-width: 100%; overflow-wrap: normal; white-space: nowrap;
  transition: background-color var(--gx-motion-feedback) ease-out, color var(--gx-motion-feedback) ease-out, border-color var(--gx-motion-feedback) ease-out, transform var(--gx-motion-feedback) ease-out;
}
@media (hover: hover) {
  button:hover:not(:disabled) { border-color: var(--gx-muted); background: var(--gx-bg); }
}
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled, button[aria-disabled="true"] { cursor: default; opacity: .5; }
button[aria-disabled="true"]:active { transform: none; }
button.primary { color: var(--gx-action-ink); border-color: var(--gx-action); background: var(--gx-action); }
@media (hover: hover) {
  button.primary:hover:not(:disabled) { color: var(--gx-action-ink); background: var(--gx-action); transform: translateY(-1px); }
}
input, select, textarea { color: var(--gx-ink); background: var(--gx-panel); padding: 8px 10px; min-width: 0; border-color: var(--gx-muted); }
input::placeholder, textarea::placeholder { color: var(--gx-muted); opacity: 1; }
textarea { width: 100%; resize: vertical; line-height: 1.7; }
input:disabled, select:disabled, textarea:disabled { background: var(--gx-bg); }
:focus-visible { outline: 2px solid var(--gx-focus); outline-offset: 3px; }
label { display: grid; gap: 6px; font-weight: 500; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 500; }
h2 { font-size: 16px; font-weight: 500; }
h3 { font-size: 14px; font-weight: 500; }
code, pre { font-family: var(--gx-font-mono); }
.muted, .hint { color: var(--gx-muted); }
.hint { font-size: 13px; }
.error-text { color: var(--gx-error); overflow-wrap: anywhere; white-space: pre-line; }
.success-text { color: var(--gx-success); }
.support-a { color: var(--gx-support-a); }
.support-b { color: var(--gx-support-b); }
.support-c { color: var(--gx-support-c); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes gkact { from { background-position: 100% 0; } to { background-position: -100% 0; } }

[data-rm="1"] *, [data-rm="1"] *::before, [data-rm="1"] *::after { transition: none !important; animation: none !important; }
@keyframes gxIndet { 0% { transform: translateX(-110%); } 100% { transform: translateX(340%); } }
summary::-webkit-details-marker { display: none; }

.motion-arrow:focus-visible { --gx-arrow-hover: 1; }
@media (hover: hover) {
  .motion-arrow:hover { --gx-arrow-hover: 1; }
}
.motion-arrow:active:not(:disabled) { transform: none; }
.gx10-t { transition: transform 200ms ease-out; }
.connection-card:focus { outline: 2px dashed var(--gx-focus); outline-offset: 3px; }
.connection-card:active:not(:disabled) { transform: none; }
.connection-lookup-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; }

/* ---- src/styles/layout.css ---- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--gx-bg); color: var(--gx-ink); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; margin: 0 35px; border-bottom: 2px solid var(--gx-ink); }
.brand { font: 34px/1 var(--gx-font-display); letter-spacing: -1px; }
.brand span { color: var(--gx-accent); }
.library-navigation { display: flex; flex-wrap: wrap; gap: 18px; }
.library-navigation button { background: transparent; border-color: transparent; padding: 8px 4px; font-size: 14px; }
.library-navigation button[aria-current="page"] { color: var(--gx-accent); text-decoration: underline; text-underline-offset: 6px; }
.main-workspace { flex: 1; min-width: 0; width: 100%; }
.main-workspace:focus-visible { outline-offset: -3px; }
.project-tab { background: var(--gx-panel); }
@media (hover: hover) {
  .project-tab:hover:not(:disabled):not([aria-selected="true"]) { background: var(--gx-bg) !important; }
}
.project-tab[aria-selected="true"] { border-color: var(--gx-accent); background: var(--gx-soft); }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 35px; padding: 18px 0; border-top: 1px solid var(--gx-line); color: var(--gx-muted); font-size: 12px; }
.appearance-panel { margin: 0 clamp(20px, 4vw, 56px); padding: 22px 0; border-bottom: 1px solid var(--gx-line); animation: panel-reveal var(--gx-motion-panel) ease-out; }
.appearance-panel h2 { margin-bottom: 14px; }
.accent-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; border: 0; min-width: 0; }
.accent-options button { display: flex; align-items: center; gap: 8px; border-radius: 24px; background: transparent; font-size: 13px; }
.accent-options button[aria-pressed="true"] { background: var(--gx-soft); border-color: var(--gx-accent); }
.accent-swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--gx-line); }
.custom-accent { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.custom-accent input { width: 44px; height: 40px; padding: 3px; cursor: pointer; }
.color-note { margin-top: 14px; color: var(--gx-muted); font-size: 12px; }
.font-notices { margin-top: 12px; font-size: 12px; color: var(--gx-muted); }
.font-notices summary { cursor: pointer; padding: 5px 0; }
.font-notices details { margin-left: 12px; }
.font-notices pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; background: var(--gx-panel); padding: 16px; }
.library-view { padding: 29px 35px 24px; }
.library-polish { padding: 14px 16px; }
.library-polish-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; align-items: start; }
.library-polish-title { margin: 0; font: 600 26px/1.3 var(--gx-font-body); letter-spacing: -.02em; }
.library-polish-cover { max-height: 150px; }
.work-frame button.primary, .library-polish button.primary { font-size: 14px !important; }
@media (min-width: 940px) {
  .library-polish-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
}
@media (min-width: 1100px) {
  .library-polish { padding: 28px 36px; }
  .library-polish-grid { gap: 48px; }
  .library-polish-title { font-size: 39px; }
  .library-polish-cover { max-height: 360px; }
}
.folio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 52px; align-items: start; }
.folio-kicker, .book-label { font: 12px/1.5 var(--gx-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.folio-kicker { color: var(--gx-accent); margin-bottom: 10px; }
.folio-heading { font: 500 39px/1.5 var(--gx-font-korean-display); letter-spacing: -2.5px; padding: 8px 0 20px; }
.folio-heading em { font-style: normal; color: var(--gx-accent); }
.folio-description { color: var(--gx-muted); font-size: 12px; line-height: 1.9; margin-bottom: 25px; }
.folio-list { border-bottom: 1px solid var(--gx-line); }
.folio-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 17px 0; border: 0; border-top: 1px solid var(--gx-line); border-radius: 0; text-align: left; background: transparent; transition: padding 200ms ease-out, color 200ms ease-out; }
.folio-row[aria-pressed="true"] { color: var(--gx-accent); background: transparent; border-color: var(--gx-line); padding-left: 8px; }
@media (hover: hover) {
  .folio-row:hover:not(:disabled) { color: var(--gx-accent); background: transparent; border-color: var(--gx-line); padding-left: 8px; }
}
.folio-row[aria-pressed="true"] strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.folio-row strong { font: 400 28px/1.4 var(--gx-font-display); overflow-wrap: anywhere; }
.folio-number { min-width: 24px; font-family: var(--gx-font-mono); font-size: 12px; color: var(--gx-muted); }
.folio-row-meta { text-align: right; color: var(--gx-muted); }
.folio-row-meta small { display: block; font-size: 12px; }
.add-game { margin-top: 22px; background: transparent; border-radius: 24px; }
.library-empty { padding: 22px 0; border-top: 1px solid var(--gx-line); color: var(--gx-muted); }
.library-activity { min-height: 24px; margin-top: 12px; font-size: 13px; color: var(--gx-muted); }
.folio-book { padding: 16px 0 0; min-width: 0; }
.book-cover { min-height: 339px; padding: 22px 25px; position: relative; isolation: isolate; overflow: hidden; background: var(--gx-art); color: var(--gx-art-ink); box-shadow: 8px 6px 0 -1px var(--gx-panel), 9px 7px 0 var(--gx-line); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; transition: transform var(--gx-motion-cover) ease-out, background-color var(--gx-motion-panel) ease-out, color var(--gx-motion-panel) ease-out; }
.book-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px solid var(--gx-art-ink); opacity: .25; }
.book-circle { position: absolute; z-index: -1; top: 65px; left: 22%; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--gx-art-ink); opacity: .65; }
.book-circle::after { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: repeating-linear-gradient(90deg, var(--gx-art-ink) 0 1px, transparent 1px 7px); transform: rotate(-30deg); }
.book-title { font: 400 55px/.92 var(--gx-font-display); letter-spacing: -1.5px; overflow-wrap: anywhere; }
.book-label { font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.book-tail { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.project-summary { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.project-summary p + p { margin-top: 5px; }
.review-progress { color: var(--gx-muted); }
.open-project { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-radius: 99px; padding: 12px 17px; font-size: 12px; font-weight: 500; }
.library-removal { grid-column: 1 / -1; margin-top: 16px; }
.library-removal button { border-radius: 99px; font-size: 12px; }
.library-removal > button { background: transparent; }
.library-removal-confirmation { margin-top: 12px; padding: 16px; border: 1px solid var(--gx-line); background: var(--gx-panel); font-size: 13px; overflow-wrap: anywhere; }
.library-removal-confirmation p + p { margin-top: 8px; color: var(--gx-muted); }
.library-removal-confirmation .inline-actions { margin-top: 12px; }
.empty-cover { min-height: 370px; display: flex; flex-direction: column; justify-content: center; gap: 14px; margin-top: 16px; padding: 32px; border: 1px solid var(--gx-line); color: var(--gx-muted); }
.empty-cover-mark { font: 90px/1 var(--gx-font-display); color: var(--gx-accent); margin-bottom: 12px; }
.empty-cover p:last-child { font-size: 13px; }
.project-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 22px 28px 0; }
.back-library { border-color: transparent; background: transparent; padding-left: 0; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px 24px; }
.game-heading > div { min-width: 0; }
.game-heading h1 { font: 400 35px/1.4 var(--gx-font-display); overflow-wrap: anywhere; }
.game-heading p { color: var(--gx-muted); font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.engine-info { font-size: 13px; color: var(--gx-muted); text-align: right; overflow-wrap: anywhere; }
.pipeline { border-top: 1px solid var(--gx-line); border-bottom: 1px solid var(--gx-line); padding: 20px 28px 12px; }
.pipeline-strip { list-style: none; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); padding: 0; margin: 0; gap: 18px; }
.pipeline-strip li { min-width: 0; }
.pipeline-strip li + li { border-left: 1px solid var(--gx-line); padding-left: 18px; }
.step-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.step-title h2 { font-size: 14px; }
.step-title > span:last-child:not(:first-child) { font-size: 13px; margin-left: auto; }
.pipeline-strip li > p { color: var(--gx-muted); font-size: 13px; margin: 0 0 12px; }
.pipeline-strip button { font-size: 13px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 0; appearance: none; background: var(--gx-line); accent-color: var(--gx-accent); margin: 12px 0 5px; }
progress::-webkit-progress-bar { background: var(--gx-line); }
progress::-webkit-progress-value { background: var(--gx-accent); }
progress::-moz-progress-bar { background: var(--gx-accent); }
.backup-note { font-size: 13px; color: var(--gx-muted); text-align: right; margin-top: 14px; }
.translation-settings { border-top: 1px solid var(--gx-line); padding-top: 18px; margin-top: 16px; }
.provider-form { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 12px; }
.provider-form legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.provider-form label, .language-settings label { font-size: 13px; }
.provider-form > .hint { grid-column: 1 / -1; }
.language-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.language-settings input { width: 130px; }
.language-settings button { margin-left: auto; }
.pipeline-feedback:not(:empty), .warnings, .unsupported { margin-top: 14px; overflow-wrap: anywhere; }
.pipeline-feedback p + p { margin-top: 8px; }
.activity-indicator { margin-top: 14px; padding: 16px; border: 1px solid var(--gx-line); background: var(--gx-panel); }
.activity-indicator progress { height: 8px; margin-bottom: 0; background: repeating-linear-gradient(90deg, var(--gx-accent) 0 15%, var(--gx-line) 15% 50%); background-size: 200% 100%; animation: activity-progress 200ms ease-out infinite; }
.activity-indicator progress::-webkit-progress-bar { background: transparent; }
.activity-indicator progress::-moz-progress-bar { background: transparent; }
@keyframes activity-progress { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.unsupported { border-left: 3px solid var(--gx-support-c); padding-left: 12px; }
.unsupported p { margin-top: 6px; }
.warnings summary { cursor: pointer; color: var(--gx-warning); }
.warnings p { padding-top: 6px; }
.app-error { padding: 12px 28px; border-bottom: 1px solid var(--gx-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: var(--gx-error); background: var(--gx-panel); overflow-wrap: anywhere; }
.sync-grid { margin-top: 30px; }
.sync-section { min-width: 0; border-top: 2px solid var(--gx-ink); padding-top: 20px; }
.sync-section h2 { margin-bottom: 12px; }
.sync-section .folio-description { margin-bottom: 20px; }
.sync-consents { border: 0; padding: 0; margin: 0; min-width: 0; }
.sync-consent { display: flex; align-items: start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--gx-line); cursor: pointer; }
.sync-consent:last-child { border-bottom: 1px solid var(--gx-line); }
.sync-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gx-accent); }
.sync-consent strong { font-weight: 500; }
.sync-consent .hint { display: block; margin-top: 6px; font-weight: 400; }
.sync-consents:disabled .sync-consent { cursor: default; }
.sync-providers { display: grid; gap: 10px; }
.sync-providers button { text-align: left; padding: 12px 16px; }
.sync-details { margin: 0 0 20px; }
.sync-details dt { color: var(--gx-muted); font-size: 12px; }
.sync-details dd { margin: 6px 0 0; overflow-wrap: anywhere; font-family: var(--gx-font-mono); font-size: 13px; }
.sync-queue { margin-top: 28px; border-top: 1px solid var(--gx-line); padding-top: 20px; }
.sync-queue p { margin-top: 8px; }
.sync-note { margin: 16px 0; white-space: pre-line; }
.app-error p { white-space: pre-line; }
.sync-refresh { margin-top: 28px; }
.sync-login-prompt { padding: 18px; margin-bottom: 24px; background: var(--gx-panel); border-left: 3px solid var(--gx-accent); overflow-wrap: anywhere; }
.sync-login-prompt a { display: block; margin-top: 8px; color: var(--gx-accent); }
.sync-notice { color: var(--gx-ink); }
@keyframes panel-reveal { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) { .folio-book:hover .book-cover { transform: rotate(-1deg) translateY(-3px); } }
@media (max-width: 1000px) {
  .pipeline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pipeline-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .provider-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .game-heading { align-items: start; flex-direction: column; gap: 10px; }
  .engine-info { text-align: left; }
}
@media (max-width: 750px) {
  .folio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 27px; }
  .folio-heading { font-size: 31px; }
  .book-cover { min-height: 322px; padding: 19px; }
  .book-title { font-size: 46px; }
}
@media (max-width: 600px) {
  .empty-cover { min-height: 200px; padding: 24px; }
  .empty-cover-mark { font-size: 60px; }
  .game-heading, .pipeline, .app-error { padding-left: 20px; padding-right: 20px; }
  .project-navigation { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 520px) {
  .app-header { min-height: 75px; margin: 0 20px; gap: 10px; }
  .library-navigation { gap: 10px; font-size: 12px; }
  .library-navigation button { min-height: 44px; }
  .library-view { padding: 23px 20px; }
  .folio-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .folio-heading { font-size: 34px; padding-bottom: 12px; }
  .folio-description { margin-bottom: 16px; }
  .folio-row { padding: 11px 0; }
  .folio-row strong { font-size: 26px; }
  .folio-book { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; align-items: center; padding-top: 13px; }
  .book-cover { min-height: 173px; padding: 14px; }
  .book-title { font-size: 30px; }
  .book-label { font-size: 12px; }
  .book-circle { top: 45px; }
  .book-tail { display: block; margin: 0; }
  .open-project { margin-top: 13px; width: 100%; gap: 8px; padding: 12px 8px; font-size: 12px; }
  .pipeline-strip, .provider-form { grid-template-columns: minmax(0, 1fr); }
  .pipeline-strip li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--gx-line); padding-top: 16px; }
  .language-settings { align-items: stretch; flex-direction: column; }
  .language-settings input { width: 100%; }
  .language-settings button { margin-left: 0; }
  .backup-note { text-align: left; }
}

/* Each saved item keeps its own provenance until that item is checked. */
.saved-record { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--gx-line); border-radius: 3px; font-size: 12px; color: var(--gx-muted); white-space: nowrap; }

/* ---- src/styles/editor.css ---- */
.editor-workspace { display: grid; flex: 1; min-height: 0; min-width: 0; overflow: auto; background: var(--gx-bg); }
.visual-workspace { min-height: 0; min-width: 0; overflow: auto; }
.review-editor-card > section { padding: 0 !important; }
.review-workspace .context-panel { padding: 0; border: 0; }
.review-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-width: 0; min-height: 0; }
.context-panel { padding: 22px 20px; border-left: 1px solid var(--gx-line); overflow: auto; min-width: 0; }
.context-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 18px 0; border-bottom: 1px solid var(--gx-line); font-size: 13px; }
.context-fields dt, .axis-label { color: var(--gx-muted); }
.context-fields dd { margin: 0; overflow-wrap: anywhere; }
.ui-evidence { padding-top: 20px; }
.evidence-surfaces { list-style: none; padding: 0; }
.evidence-surface { border-bottom: 1px solid var(--gx-line); padding: 18px 0; overflow-wrap: anywhere; }
.evidence-surface h4 { font-size: 13px; font-weight: 500; }
.evidence-axes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; font-size: 12px; }
.evidence-axis { background: var(--gx-panel); border: 1px solid var(--gx-line); padding: 8px; }
.axis-label { display: block; margin-bottom: 4px; }
.evidence-warning { color: var(--gx-warning); }
.evidence-steps { padding-left: 20px; font-size: 12px; }
.evidence-steps summary, .evidence-candidate summary { cursor: pointer; padding: 8px 0; }
.evidence-steps pre { overflow: auto; max-height: 260px; padding: 10px; background: var(--gx-panel); }
.evidence-candidate { font-size: 13px; }
.review-controls { margin-top: 18px; padding: 14px; border: 1px solid var(--gx-line); background: var(--gx-panel); }
.review-state { font-weight: 600; }
.review-actions { margin-top: 10px; }
.review-controls .error-text { margin-top: 10px; }
.units-pane { display: flex; flex-direction: column; border-right: 1px solid var(--gx-line); min-width: 0; min-height: 0; }
.search-tools { display: flex; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--gx-line); }
.search-label { flex: 1; min-width: 0; }
.search-tools input { width: 100%; }
.search-tools select { max-width: 125px; }
.unit-scroll { overflow: auto; flex: 1; min-height: 0; padding: 0 3px; }
.unit-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 13px; }
.unit-table th { position: sticky; top: 0; z-index: 1; background: var(--gx-panel); color: var(--gx-muted); font-weight: 500; }
.unit-table th, .unit-table td { padding: 12px 14px; border-bottom: 1px solid var(--gx-line); }
.unit-table th:last-child { width: 94px; }
.unit-table tbody tr { cursor: pointer; }
@media (hover: hover) {
  .unit-table tbody tr:hover { background: var(--gx-bg); }
}
.unit-table tbody tr.selected { background: var(--gx-soft); }
.unit-table tbody tr.selected td:first-child { box-shadow: inset 3px 0 var(--gx-accent); }
.unit-table tbody tr:focus-visible { outline-offset: -2px; }
.unit-table tbody tr[aria-disabled="true"] { cursor: default; }
.cell-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.unit-status { font-size: 13px; white-space: nowrap; }
.status-untranslated, .status-unreviewed { color: var(--gx-muted); }
.status-translated, .status-approved { color: var(--gx-success); }
.status-user-edited { color: var(--gx-accent); }
.status-needs-review { color: var(--gx-warning); }
.status-invalid { color: var(--gx-error); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--gx-line); padding: 12px 16px; color: var(--gx-muted); font-size: 13px; }
.pagination > div { display: flex; gap: 6px; }
.pagination button { font-size: 13px; padding: 5px 8px; }
.editor { padding: 22px 26px 28px; overflow: auto; min-width: 0; }
.editor-heading { display: flex; flex-direction: column; gap: 8px; }
.unit-id { font-family: var(--gx-font-mono); font-size: 13px; color: var(--gx-muted); overflow-wrap: anywhere; }
.context-path { font-size: 13px; color: var(--gx-muted); overflow-wrap: anywhere; margin-top: 5px; }
.text-section { border-bottom: 1px solid var(--gx-line); padding: 20px 0; }
.text-section h3 { color: var(--gx-muted); font-weight: 500; margin-bottom: 10px; }
.reading-text { font-size: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.token-text { white-space: pre-wrap; }
.token-chip { display: inline-block; font-family: var(--gx-font-mono); font-size: 13px; font-weight: 400; line-height: 1.5; padding: 2px 6px; color: var(--gx-token-ink); background: var(--gx-token); border: 1px solid var(--gx-token); border-bottom-color: var(--gx-token-edge); border-radius: 4px; vertical-align: baseline; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
button.token-chip { min-height: 30px; }
@media (hover: hover) {
  button.token-chip:hover:not(:disabled) { background: var(--gx-token); border-color: var(--gx-token-edge); }
}
.token-chip.ghost { background: transparent; border: 1px dashed var(--gx-muted); color: var(--gx-muted); }
@media (hover: hover) {
  button.token-chip.ghost:hover:not(:disabled) { background: var(--gx-bg); border-color: var(--gx-ink); }
}
.editor form { padding-top: 20px; }
.editor textarea { margin-top: 8px; font-size: 16px; }
.editor textarea[aria-invalid="true"] { border-color: var(--gx-error); }
.editor .hint { margin-top: 9px; }
.token-palette, .missing-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.token-palette:empty { display: none; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.editor-actions button { font-size: 13px; }
.text-button { margin-top: 10px; padding-left: 0; border-color: transparent; text-decoration: underline; font-size: 13px; }
#save-feedback p { margin-top: 10px; font-size: 13px; }
.previous-version { background: var(--gx-bg); border-left: 2px solid var(--gx-muted); margin-top: 20px; padding: 14px; }
.previous-version h3 { font-size: 13px; }
.previous-version p { color: var(--gx-muted); font-size: 13px; margin: 12px 0 4px; }
.previous-version .reading-text { font-size: 14px; }
.empty-panel { padding: 36px 24px; color: var(--gx-muted); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.empty-panel h2 { color: var(--gx-ink); }
.empty-panel button { align-self: flex-start; }
.token-example { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.dirty-note { font-size: 13px; color: var(--gx-muted); padding: 10px 20px; border-bottom: 1px solid var(--gx-line); }
.visual-workspace > .search-tools { align-items: center; flex-wrap: wrap; }
.visual-summary { padding: 12px 20px; border-bottom: 1px solid var(--gx-line); }
.visual-preview { margin-top: 20px; }
.visual-preview img { display: block; max-width: 100%; height: auto; margin-top: 10px; }
@media (max-width: 1190px) { .editor { padding-left: 20px; padding-right: 20px; } .search-tools { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 520px) {
  .search-tools { flex-wrap: wrap; }
  .search-label { flex-basis: 100%; }
  .search-tools select { max-width: 100%; }
  .pagination > div { flex-wrap: wrap; }
  .unit-table th, .unit-table td { padding: 12px 8px; }
  .empty-panel { padding: 28px 20px; }
}
