:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #111114;
  --line: #27272a;
  --muted: #a1a1aa;
  --quiet: #71717a;
  --text: #f4f4f5;
  --emerald: #34d399;
  --indigo: #818cf8;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 211, 153, .1), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(99, 102, 241, .12), transparent 28rem),
    var(--bg);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 13px;
  color: var(--emerald);
  background: rgba(52, 211, 153, .09);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .06), 0 16px 42px rgba(0, 0, 0, .28);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-copy strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand-copy span { display: block; margin-top: 4px; color: var(--quiet); font-size: .78rem; }
.header-link { color: #d4d4d8; font-size: .9rem; text-decoration: none; }
.header-link:hover { color: var(--emerald); }
.breadcrumb { margin: 34px 0 13px; color: var(--quiet); font-size: .86rem; }
.breadcrumb a { color: #a7f3d0; text-decoration: none; }
.eyebrow { margin: 0 0 8px; color: var(--emerald); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.06; letter-spacing: -.045em; }
.lede { max-width: 750px; margin: 18px 0 0; color: #b4b4bd; font-size: 1.03rem; }
.privacy-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: #d4d4d8; font-size: .85rem; }
.privacy-note::before { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px rgba(52, 211, 153, .85); content: ""; }
.workspace {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(24, 24, 27, .92), rgba(14, 14, 17, .96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.workspace-bar strong { font-size: .94rem; }
.workspace-bar span { color: var(--quiet); font-size: .8rem; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; }
.editor { min-width: 0; padding: 18px; }
.editor + .editor { border-left: 1px solid var(--line); }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.editor-head label { font-size: .9rem; font-weight: 750; }
.stats { color: var(--quiet); font-size: .73rem; }
textarea {
  display: block;
  width: 100%;
  min-height: 310px;
  resize: vertical;
  border: 1px solid #303036;
  border-radius: 16px;
  outline: none;
  color: #f4f4f5;
  background: #0c0c0f;
  padding: 16px;
  line-height: 1.6;
  scrollbar-color: #3f3f46 transparent;
}
textarea::placeholder { color: #63636d; }
textarea:focus, select:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 211, 153, .1); }
.replace-panel { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; margin: 0 18px 18px; border: 1px solid #303036; border-radius: 15px; background: rgba(12, 12, 15, .72); padding: 13px; }
.replace-panel input { width: 100%; min-height: 42px; border: 1px solid #3f3f46; border-radius: 10px; outline: none; color: var(--text); background: #111114; padding: 8px 11px; }
.replace-panel input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 211, 153, .1); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; }
.button {
  min-height: 44px;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  color: #e4e4e7;
  background: #202024;
  padding: 10px 15px;
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); border-color: #71717a; background: #28282d; }
.button.primary { border-color: transparent; color: #052e24; background: var(--emerald); }
.button.primary:hover { background: #6ee7b7; }
.button.secondary { border-color: rgba(129, 140, 248, .4); color: #c7d2fe; background: rgba(99, 102, 241, .12); }
.button.small { min-height: 36px; padding: 7px 11px; font-size: .8rem; }
.translator-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; width: 100%; padding: 0 18px 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
select { width: 100%; min-height: 44px; border: 1px solid #3f3f46; border-radius: 12px; outline: none; color: var(--text); background: #111114; padding: 8px 12px; }
.status { width: 100%; margin: -4px 18px 16px; color: var(--quiet); font-size: .8rem; }
.table-preview { margin: 0 18px 18px; overflow-x: auto; border: 1px solid #303036; border-radius: 16px; background: #0c0c0f; }
.table-preview table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.table-preview th, .table-preview td { border-right: 1px solid #27272a; border-bottom: 1px solid #27272a; padding: 11px 13px; text-align: left; }
.table-preview th { position: sticky; top: 0; color: #a7f3d0; background: #18181b; font-size: .78rem; letter-spacing: .025em; }
.table-preview td { color: #d4d4d8; font-size: .86rem; }
.table-preview tbody tr:nth-child(odd) td { background: rgba(24, 24, 27, .45); }
.table-preview tbody tr:nth-child(even) td { background: rgba(39, 39, 42, .24); }
.table-preview th[contenteditable="true"], .table-preview td[contenteditable="true"] { outline: none; }
.table-preview th[data-placeholder]:empty::before { color: var(--quiet); content: attr(data-placeholder); font-style: italic; pointer-events: none; }
.table-preview th[contenteditable="true"]:focus, .table-preview td[contenteditable="true"]:focus { color: #f4f4f5; background: rgba(52, 211, 153, .13); box-shadow: inset 0 0 0 2px rgba(52, 211, 153, .55); }
.table-preview tr:last-child td { border-bottom: 0; }
.table-preview th:last-child, .table-preview td:last-child { border-right: 0; }
.preview-note { margin: 0; padding: 10px 13px; color: var(--quiet); font-size: .76rem; }
.content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin: 24px 0 42px; }
.content-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(17, 17, 20, .78); padding: 22px; }
.content-card h2 { margin: 0 0 11px; font-size: 1.15rem; letter-spacing: -.02em; }
.content-card h3 { margin: 22px 0 7px; font-size: .98rem; }
.content-card p, .content-card li { color: var(--muted); }
.content-card ul, .content-card ol { margin: 10px 0 0; padding-left: 21px; }
.content-card li + li { margin-top: 7px; }
.tool-links { display: grid; gap: 9px; }
.tool-links a { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #303036; border-radius: 12px; color: #d4d4d8; background: rgba(24, 24, 27, .62); padding: 11px 12px; text-decoration: none; }
.tool-links a:hover { border-color: rgba(52, 211, 153, .45); color: #a7f3d0; }
.tool-links a::after { content: "→"; }
.trust-page { width: min(800px, calc(100% - 32px)); margin: 0 auto; }
.trust-page article { margin: 28px 0 52px; border: 1px solid var(--line); border-radius: 24px; background: rgba(17, 17, 20, .86); padding: clamp(22px, 5vw, 44px); }
.trust-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.trust-page h2 { margin-top: 30px; font-size: 1.2rem; }
.trust-page p, .trust-page li { color: #b4b4bd; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0 32px; border-top: 1px solid rgba(39, 39, 42, .75); color: var(--quiet); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #a1a1aa; text-decoration: none; }
.footer-links a:hover { color: var(--emerald); }
.toast { position: fixed; z-index: 10; bottom: 20px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; border: 1px solid #3f3f46; border-radius: 12px; color: var(--text); background: #18181b; padding: 11px 15px; font-size: .87rem; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 800px) {
  .editor-grid, .content-grid { grid-template-columns: 1fr; }
  .editor + .editor { border-top: 1px solid var(--line); border-left: 0; }
  textarea { min-height: 230px; }
  .translator-controls { grid-template-columns: 1fr; }
  .replace-panel { grid-template-columns: 1fr 1fr; }
  .replace-panel .button { grid-column: 1 / -1; }
  .translator-controls .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 1180px); }
  .site-header { padding-top: 14px; }
  .brand-copy span, .header-link { display: none; }
  .breadcrumb { margin-top: 24px; }
  .workspace { border-radius: 19px; }
  .workspace-bar { align-items: flex-start; flex-direction: column; }
  .editor, .action-row { padding-right: 13px; padding-left: 13px; }
  .replace-panel { grid-template-columns: 1fr; margin-right: 13px; margin-left: 13px; }
  .button { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
