/* The /translate pages. Built on site.css's tokens (paper, ink, line,
   blue, serif); phone first, every colour from a token so both schemes
   follow the site's own switch. */

.tr {
  --tr-card: color-mix(in srgb, var(--ink) 4%, var(--paper)); --tr-card-2: color-mix(in srgb, var(--ink) 7%, var(--paper));
  /* Review progress: reviewed is the app's green, checked a lighter green. */
  --tr-reviewed: #248a3d; --tr-checked: color-mix(in srgb, #34c759 45%, var(--paper)); --tr-track: color-mix(in srgb, var(--ink) 10%, var(--paper));
}
:root[data-theme="dark"] .tr { --tr-reviewed: #30d158; --tr-checked: color-mix(in srgb, #30d158 40%, var(--paper)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr { --tr-reviewed: #30d158; --tr-checked: color-mix(in srgb, #30d158 40%, var(--paper)); } }
.tr :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.tr [hidden] { display: none !important; }

.tr-link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--blue); text-decoration: none;
}
.tr-link:hover { text-decoration: underline; }
.tr-fine { font-size: 14px !important; color: var(--ink-3) !important; line-height: 1.5; }
.tr-alert {
  margin: 0 0 24px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 10%, var(--paper)); color: var(--ink) !important;
}

/* ---------- landing ---------- */
.tr-landing { padding: calc(var(--nav-h) + 72px) 0 var(--block); }
.tr-hero h1 { max-width: 15em; }
.tr-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.tr-lede { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 680px; }
.tr-langs { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .tr-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tr-langs { grid-template-columns: 1fr; } }
.tr-lang {
  /* The native name has a row to itself: beside the button, "Português
     (Brasil)" wraps. Each card's rows are the list's own (subgrid), so a
     row that wraps in one card keeps its neighbors' rows level with it. */
  display: grid; grid-row: span 4; grid-template-rows: subgrid;
  grid-template-columns: 1fr auto; grid-template-areas: "native native" "name btn" "cov btn" "prog prog";
  align-content: start; align-items: start; gap: 2px 16px; padding: 22px 22px 20px; border-radius: 24px; background: var(--tr-card);
}
.tr-native { grid-area: native; font: 600 clamp(22px, 7vw, 26px)/1.15 var(--serif); letter-spacing: -0.01em; }
.tr-lang-name { grid-area: name; color: var(--ink-2); font-size: 15px; }
.tr-coverage { grid-area: cov; margin-top: 8px; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-lang .btn { grid-area: btn; align-self: center; }
.tr-credits { margin-top: 72px; }
.tr-credits h2 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.tr-credits dl { margin: 0; display: grid; gap: 12px; }
.tr-credits dt { font: 600 17px var(--serif); }
.tr-credits dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; }
.tr-license { margin-top: 48px; color: var(--ink-3); font-size: 15px; }

/* ---------- sign in, account ---------- */
.tr-intro { margin-bottom: 28px !important; }
.tr-signin-form, .tr-account-form { display: grid; gap: 18px; max-width: 440px; margin-top: 8px; }
.tr-signin-form > .btn, .tr-account-form > .btn { justify-self: start; }
.tr-label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.tr input:not([type="checkbox"]), .tr select, .tr textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--tr-card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box;
}
.tr textarea { resize: vertical; line-height: 1.45; min-height: 3.2em; }
.tr input:focus, .tr select:focus, .tr textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.tr .btn[disabled] { opacity: 0.4; cursor: default; transform: none; }
.tr-sent { margin-top: 20px; font-size: 18px !important; color: var(--ink) !important; }
.tr-choice { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.tr-choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.tr-langs-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tr-langs-pick legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.tr-account .tr-progress { font-size: 18px !important; color: var(--ink) !important; margin-bottom: 28px; }
.tr-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tr-code {
  display: inline-block; font: 600 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em;
  padding: 14px 18px; border-radius: 14px; background: var(--tr-card); color: var(--ink) !important; margin: 4px 8px 8px 0 !important;
}
.tr-mine { list-style: none; padding: 0 !important; display: grid; gap: 2px; }
.tr-mine li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.tr-mine-text { color: var(--ink); }
.tr-mine-meta { font-size: 14px; color: var(--ink-3); }
.tr-asked { scroll-margin-top: calc(var(--nav-h, 64px) + 32px); }
.tr-asked li { gap: 4px; }
.tr-asked .tr-qa-item { margin-top: 6px; }
.tr-session { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.tr-danger { color: #d70015; }
:root[data-theme="dark"] .tr-danger { color: #ff6961; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-danger { color: #ff6961; } }
.tr-mistake { margin-top: 28px !important; }
.tr-confirm {
  border: 0; border-radius: 22px; padding: 24px; max-width: 360px; width: calc(100% - 32px);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.tr-confirm::backdrop { background: rgba(0, 0, 0, 0.35); }
.tr-confirm p { font-size: 17px; line-height: 1.45; }
.tr-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.tr-cancel { background: var(--tr-card-2) !important; color: var(--ink) !important; }
.tr-danger-btn { background: #d70015 !important; }

.tr-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.tr-title h1 { font: 600 clamp(34px, 5vw, 48px)/1 var(--serif); letter-spacing: -0.02em; margin-right: 8px; }
.tr-progress { color: var(--ink-2); font-size: 16px; font-variant-numeric: tabular-nums; }
.tr-head { display: grid; gap: 16px; margin-bottom: 28px; }
.tr-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.tr-filters::-webkit-scrollbar { display: none; }
.tr-filters a {
  flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--ink-2); background: var(--tr-card);
}
.tr-filters a[aria-current="page"] { color: var(--paper); background: var(--ink); }

/* ---------- the workspace: Crowdin's Comfortable mode and Pontoon ----------
   A toolbar, the list of lines (search, filter, screen) on the left, and
   the open line beside it in a rounded card; the list and the card scroll
   on their own. No divider lines: space and the card separate the parts
   (Superlist, Cloaked, Lemni). On a phone the list and the line take
   turns, with All Lines to go back. */
.tr-ws { display: flex; flex-direction: column; height: 100dvh; padding-top: var(--nav-h); box-sizing: border-box; }
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 16px var(--gutter) 18px; }
.tr-bar .tr-title h1 { font-size: 30px; }
.tr-bar .tr-progress { font-size: 14px; }
.tr-bar .tr-progress-block { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 24px; flex: 1 1 380px; max-width: 620px; }
.tr-bar .tr-meter { flex: 1 1 160px; }
.tr-bar .tr-waiting { flex-basis: 100%; font-size: 13px; }
.tr-bar-links { display: flex; gap: 8px; margin-left: auto; }

/* Capsule buttons: the toolbar's Review and Account, Previous and Next,
   Show More. Review, the proofreader's queue, takes the blue tint. */
.tr-cap {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  font: 500 14px/1 var(--sans); color: var(--ink); background: var(--tr-card-2); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.tr-cap:hover { background: color-mix(in srgb, var(--ink) 11%, var(--paper)); }
.tr-cap:active { transform: scale(0.97); }
.tr-cap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-cap.is-accent { color: var(--blue-ink); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
.tr-cap.is-accent:hover { background: color-mix(in srgb, var(--blue) 20%, var(--paper)); }
:root[data-theme="dark"] .tr-cap.is-accent { color: #8cc2ff; background: color-mix(in srgb, #0a84ff 22%, var(--paper)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-cap.is-accent { color: #8cc2ff; background: color-mix(in srgb, #0a84ff 22%, var(--paper)); } }
.tr-badge {
  min-width: 20px; height: 20px; padding: 0 6px; margin-right: -6px; border-radius: 999px; box-sizing: border-box;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--blue);
}
.tr-cap:disabled { opacity: 0.4; cursor: default; transform: none; }
.tr-cap:disabled:hover { background: var(--tr-card-2); }

.tr-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0 8px; padding: 0 16px 16px 8px; }
.tr-side { display: flex; flex-direction: column; min-height: 0; }
.tr-side .tr-search { display: grid; gap: 8px; padding: 0 8px 10px; }
/* The status menu takes its longest label's width; the screen menu the rest. */
.tr-pickers { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
.tr .tr-side input, .tr .tr-side select {
  width: 100%; min-width: 0; font-size: 15px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--tr-card-2);
}
/* The browser's own arrow sits against the capsule's round end; draw one
   inset instead (systemGray reads on both papers). */
.tr .tr-side select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 11px 8px;
}
.tr-lines { list-style: none; margin: 0; padding: 0 0 12px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.tr-group {
  position: sticky; top: 0; z-index: 1; padding: 14px 16px 6px; background: var(--paper);
  font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.tr-line {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(14px, auto) 8px; gap: 8px; align-items: start;
  margin: 1px 0; padding: 10px 14px; border-radius: 14px; color: inherit; text-decoration: none;
}
.tr-line .tr-texts { order: -1; }
.tr-line:hover { background: var(--tr-card); }
.tr-line[aria-current="true"] { background: var(--tr-card-2); }
.tr-line .tr-en, .tr-line .tr-val { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-line .tr-en { font-size: 13px; }
.tr-line .tr-val { font-size: 15px; }
/* Dots at the row's end, as an unread dot: approved green, suggestions
   waiting orange, no translation a ring. Translated lines carry none. */
.tr-line .tr-mark { grid-column: 3; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; box-sizing: border-box; }
.tr-line .tr-looks { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--ink-3); font-size: 12px; line-height: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-line .tr-looks.is-mine { color: var(--ink); }
.tr-line .tr-looks.is-mine svg { fill: currentColor; }
.tr-line .tr-looks svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.15s ease; }
.tr-line .tr-mark svg { display: none; }
.tr-line .tr-mark.is-accepted { background: var(--tr-reviewed); }
.tr-line .tr-mark.is-pending { background: #ff9f0a; }
.tr-line .tr-mark.is-missing { border: 1.5px solid var(--ink-3); }
.tr-side-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 8px 0 14px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.tr-side-foot .tr-more { margin: 0; }
.tr-side .tr-empty { padding: 24px 16px; flex: 1; }
.tr-pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--tr-card); }
.tr-pane-line {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0 40px; align-items: start;
  max-width: 1180px; padding: 18px 28px 48px;
}
.tr-steps { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.tr-back { display: none; margin-right: auto; }
.tr-step svg { width: 16px; height: 16px; }
.tr-step.tr-prev { padding-left: 10px; }
.tr-step.tr-next { padding-right: 10px; }
.tr-pane-main { display: grid; gap: 24px; min-width: 0; }
.tr-source { display: grid; gap: 6px; }
.tr-en-big { font-size: 24px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.tr-pane-line .tr-editor { padding: 0; }
.tr-pane-line .tr-input { border-color: transparent; }
.tr .tr-pane-line .tr-note { border-color: transparent; background: var(--paper); }
.tr-pane-tools { display: grid; gap: 28px; align-content: start; padding-top: 4px; }
.tr-tool h2 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.tr-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: var(--ink-3); }
.tr-others li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; }
.tr-others .tr-flag { height: 11px; }
.tr-others span { grid-column: 2; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.tr-tool.tr-terms table { margin-top: 0; font-size: 14px; }
/* Where It Shows: the framed screenshot (the bezel is in the image),
   always on view, then the way there and a short note. */
.tr-shot-frame { position: relative; width: 100%; max-width: 240px; }
.tr-shot picture, .tr-shot img { display: block; width: 100%; height: auto; }
/* The line on its capture: an accent ring a little outside the text. */
.tr-box {
  position: absolute; margin: -3px; padding: 3px; box-sizing: content-box; border-radius: 6px;
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px color-mix(in srgb, var(--blue) 25%, transparent);
  pointer-events: none;
}
.tr-path { margin-top: 10px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.tr-shot-note { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.tr-shot-none { font-size: 13px; color: var(--ink-3); }
.tr-tool.tr-terms td { border-bottom: 0; padding: 4px 16px 4px 0; }
@media (max-width: 1180px) {
  .tr-pane-line { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tr-pane-tools { padding-top: 0; }
}
@media (max-width: 1000px) { .tr-grid { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 899px) {
  .tr-ws { display: block; height: auto; }
  .tr-grid { display: block; padding: 0; }
  .tr-side .tr-search { padding: 0 var(--gutter) 10px; }
  .tr-lines { overflow: visible; padding: 0 calc(var(--gutter) - 12px) 12px; }
  .tr-group { top: var(--nav-h); padding-left: 12px; }
  .tr-side-foot { padding: 12px var(--gutter) 28px; }
  .tr-pane { display: none; overflow: visible; border-radius: 0; background: none; }
  .tr-ws.is-open .tr-side { display: none; }
  .tr-ws.is-open .tr-pane { display: block; }
  .tr-pane-line { padding: 0 var(--gutter) 48px; }
  .tr-pane-line .tr-input, .tr .tr-pane-line .tr-note { background: var(--tr-card); }
  .tr-back { display: inline-flex; }
  /* Until a line has been opened, the list marks none as open; while one is
     open, the editor starts near the top. */
  .tr-ws:not(.is-open):not(.has-opened) .tr-line[aria-current="true"] { background: none; }
  .tr-ws.is-open .tr-bar .tr-progress-block, .tr-ws.is-open .tr-bar-links { display: none; }
}

.tr-texts { display: grid; gap: 3px; min-width: 0; }
.tr-en { color: var(--ink-2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.tr-val { color: var(--ink); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.tr-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink-2); background: var(--tr-card-2); vertical-align: 1px;
}
.tr-mark { width: 22px; height: 22px; color: var(--ink-3); justify-self: end; }
.tr-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-mark.is-pending, .tr-mark.is-accepted { color: var(--ink); }
.tr-mark.is-accepted .fill { fill: currentColor; stroke: none; }
.tr-mark.is-accepted .knock { stroke: var(--paper); }

.tr-editor { display: grid; gap: 12px; padding: 4px 18px 18px; }
.tr-where { font-size: 13px; color: var(--ink-3); }
.tr-comment { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.tr-comment span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.tr-field { display: grid; gap: 6px; }
/* The token editor: a field where placeholders are locked chips. */
.tr-input {
  font: inherit; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 3.2em;
  white-space: pre-wrap; overflow-wrap: anywhere; cursor: text;
}
.tr-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.tr-ph {
  display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 7px; line-height: 1.5;
  font: 600 0.82em/1.6 var(--sans); vertical-align: 0.06em; white-space: nowrap; user-select: all;
  color: var(--blue-ink); background: color-mix(in srgb, var(--blue) 14%, transparent);
}
:root[data-theme="dark"] .tr-ph { color: #8cc2ff; background: color-mix(in srgb, #0a84ff 24%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-ph { color: #8cc2ff; background: color-mix(in srgb, #0a84ff 24%, transparent); } }
.tr-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-ph-insert { appearance: none; border: 0; cursor: pointer; font-size: 13px; padding: 3px 9px; }
.tr-ph-insert::before { content: "+ "; opacity: 0.7; }
.tr-ph-insert.is-missing { box-shadow: 0 0 0 1.5px currentColor; }
.tr-check-line { font-size: 14px; color: #b25000; }
:root[data-theme="dark"] .tr-check-line { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-check-line { color: #ffb340; } }
.tr-cat { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tr-cat-en { font-weight: 400; }
.tr-editor textarea, .tr-editor .tr-note { background: var(--paper); }
.tr-note { font-size: 15px !important; }
/* The note travels with a suggested change, so it shows only while there is one. */
.tr-pane-line .tr-editor:not(.is-editing) .tr-note { display: none; }
.tr-long { font-size: 14px; color: #b25000; }
:root[data-theme="dark"] .tr-long { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-long { color: #ffb340; } }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tr-check {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink); background: var(--tr-card-2); border: 0;
}
.tr-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-check[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tr-approve {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink); background: var(--tr-card-2); border: 0;
}
.tr-approve svg { width: 18px; height: 18px; }
.tr-approve .fill { fill: none; stroke: currentColor; stroke-width: 1.8; }
.tr-approve .knock { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-approve[aria-pressed="true"] { background: var(--tr-reviewed); color: #fff; border-color: var(--tr-reviewed); }
.tr-approve[aria-pressed="true"] .fill { fill: #fff; stroke: none; }
.tr-approve[aria-pressed="true"] .knock { stroke: var(--tr-reviewed); }
/* Looks Right and Approve speak about the text as it stands, so they fade
   while the reader types a change (visibility leaves them out of the tab
   order and the accessibility tree once the fade ends). */
.tr-check, .tr-approve { transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, visibility 0s linear 0s; }
.tr-editor.is-editing .tr-check, .tr-editor.is-editing .tr-approve {
  opacity: 0; transform: scale(0.94); visibility: hidden; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.tr-msg { font-size: 14px; color: var(--ink-2); min-height: 1.2em; }
.tr-msg.is-error { color: #d70015; }
.tr-empty { padding: 40px 0; color: var(--ink-3); font-size: 17px; }
.tr-more { margin-top: 28px; }

/* ---------- questions, unsent fixes ---------- */
.tr-qa { display: grid; gap: 8px; }
.tr-qa:empty { display: none; }
.tr-qa-item { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--tr-card-2); }
.tr-qa-q { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.tr-qa-a { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.tr-qa-a span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.tr-qa-a.is-waiting { font-size: 13px; color: var(--ink-3); }
.tr-ask { justify-self: start; font-size: 14px; }
.tr-ask-form { display: grid; gap: 8px; }
.tr .tr-ask-form textarea { font-size: 15px; border: 0; background: var(--paper); }
.tr-questions { margin-bottom: 36px; }
.tr-questions h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.tr-question { display: grid; gap: 8px; padding: 18px; border-radius: 20px; background: var(--tr-card); }
.tr-answer-form { display: grid; gap: 8px; }
.tr-unsent { color: #b25000; background: color-mix(in srgb, #ff9f0a 18%, transparent); }
:root[data-theme="dark"] .tr-unsent { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-unsent { color: #ffb340; } }
.tr-draft-note { color: var(--ink-2); }

/* ---------- motion ---------- */
.tr-check, .tr-approve, .tr-vote { position: relative; }
.tr-check svg, .tr-approve svg { transform-origin: 50% 50%; }
.tr-count, .tr-score { display: inline-block; }
.tr-burst { position: absolute; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; z-index: 2; }
.tr-suggest.is-sent:disabled { opacity: 1; }
.tr-sent-label { display: inline-flex; align-items: center; gap: 6px; }
.tr-sent-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The open row's highlight glides between rows (a ghost under the rows). */
.tr-lines { position: relative; }
.tr-lines > li:not(.tr-group):not(.tr-glide) { position: relative; z-index: 1; }
.tr-glide { position: absolute; z-index: 0; border-radius: 14px; background: var(--tr-card-2); pointer-events: none; }
.tr-lines.is-gliding .tr-line[aria-current="true"] { background: transparent; }
/* The landing: cards rise one after another, the bars fill. */
@keyframes tr-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tr-grow { from { width: 0; } }
.tr-langs .tr-lang { animation: tr-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 0.07s); }
.tr-langs .tr-lang:nth-child(2) { --i: 1; }
.tr-langs .tr-lang:nth-child(3) { --i: 2; }
.tr-lang .tr-fill { animation: tr-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 0.07s + 0.2s); }
.tr-lang .tr-meter + .tr-meter .tr-fill { animation-delay: calc(var(--i, 0) * 0.07s + 0.32s); }

@media (prefers-reduced-motion: reduce) {
  .tr * { transition: none !important; animation: none !important; }
}

/* ---------- review ---------- */
.tr-review, .tr-admin { padding: calc(var(--nav-h) + 40px) 0 var(--block); }
.tr-review > .wrap { max-width: 880px; }
.tr-review h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; }
.tr-review h1 span { font-family: var(--serif); }
.tr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tr-item { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--tr-card); border: 2px solid transparent; }
.tr-item.is-current { border-color: var(--blue); }
.tr-item.is-done { opacity: 0.45; }
.tr-item-head { display: grid; gap: 2px; }
.tr-item .tr-en { font-size: 16px; color: var(--ink); }
.tr-sub { font-size: 13px; color: var(--ink-3); }
.tr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tr-compare { grid-template-columns: 1fr; } }
.tr-compare > div { padding: 12px 14px; border-radius: 14px; background: var(--paper); display: grid; gap: 4px; }
.tr-compare p { font-size: 17px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.tr-compare ins { text-decoration: none; background: color-mix(in srgb, var(--bar-green) 28%, transparent); border-radius: 4px; }
.tr-compare del { text-decoration: line-through; color: var(--ink-3); }
.tr-decide { display: grid; gap: 10px; }
.tr-pill {
  appearance: none; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.tr-pill.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tr-pill[disabled] { opacity: 0.5; cursor: default; }

/* ---------- admin ---------- */
.tr-admin h1 { font-size: 36px; font-weight: 600; margin-bottom: 24px; }
.tr-admin h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.tr-stock ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; font-size: 17px; }
.tr-warn { color: #b25000; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .tr-warn { color: #ffb340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-warn { color: #ffb340; } }
.tr-table-wrap { overflow-x: auto; }
.tr-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tr-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tr-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tr-table .num, .tr-stock .num { font-variant-numeric: tabular-nums; }
.tr-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tr-log code { font-size: 12px; overflow-wrap: anywhere; }

/* ---------- flags ---------- */
.tr-flag {
  display: inline-block; height: 0.72em; width: auto; aspect-ratio: 3 / 2; margin-right: 0.38em;
  vertical-align: 0.02em; border-radius: 0.12em; box-shadow: 0 0 0 1px var(--line);
}
.tr-flag-de { aspect-ratio: 5 / 3; }
.tr-flag-pt-BR { aspect-ratio: 10 / 7; }
.tr-title h1 .tr-flag, .tr-review h1 .tr-flag { height: 0.62em; }
.btn .tr-flag { height: 0.85em; }

/* ---------- review progress ---------- */
.tr-progress-block { display: grid; gap: 8px; }
.tr-lang .tr-progress-block { grid-area: prog; margin-top: 12px; gap: 10px; }
.tr-progress-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--tr-track); }
.tr-seg { display: block; height: 100%; }
.tr-seg.is-reviewed { background: var(--tr-reviewed); }
.tr-seg.is-checked { background: var(--tr-checked); }
.tr-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tr-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tr-track); }
.tr-dot.is-reviewed { background: var(--tr-reviewed); }
.tr-dot.is-checked { background: var(--tr-checked); }
.tr-waiting { font-size: 13px; color: var(--ink-2); }
.tr-head .tr-progress-block { max-width: 520px; }

/* ---------- Crowdin's two bars, votes ---------- */
.tr-meter { display: grid; gap: 4px; }
.tr-meter-label { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tr-track { display: block; height: 6px; border-radius: 999px; overflow: hidden; background: var(--tr-track); }
.tr-fill { display: block; height: 100%; border-radius: 999px; }
.tr-fill.is-translated { background: var(--blue); }
.tr-fill.is-approved { background: var(--tr-reviewed); }
.tr-check svg, .tr-vote svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-count { font-variant-numeric: tabular-nums; min-width: 0.6em; }
.tr-count:empty { display: none; }
.tr-suggs { display: grid; gap: 8px; }
.tr-suggs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-sugg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.tr-sugg-text { color: var(--ink); overflow-wrap: anywhere; }
.tr-sugg-meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.tr-sugg .tr-accept-line { grid-column: 1; justify-self: start; margin-top: 6px; }
.tr-votes { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 2px; }
.tr-vote { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 6px; border-radius: 999px; }
.tr-vote:hover { color: var(--ink); background: var(--tr-card-2); }
.tr-vote.is-down svg { transform: rotate(180deg); }
.tr-vote[aria-pressed="true"] { color: var(--blue); }
.tr-score { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.tr-score-line { display: inline-flex; align-items: center; gap: 6px; }
.tr-score-line svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
