/*
 * Golf: The Journey translation panel. The game's night look (the phone's Pine tokens in
 * packages/design-tokens/src/tokens.css, copied here because this page has no build step):
 * a deep pine ground, near-black panels with a hairline edge, warm cream ink, one lime act.
 */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2');
}

:root {
  /* Grounds: --phone-surface-* */
  --ground: #0c1615; /* well */
  --ground-top: #0f2421; /* the pine bar */
  --deep: #070e0e;
  --panel: #091212;
  --raised: #141e1d;
  --selected: #1c2726;
  --raised-2: #24302f;
  --lit: #1f6b5c;
  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-edge: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --button-edge: rgba(255, 255, 255, 0.22);
  /* Ink: --phone-text-* */
  --ink-1: #f7f5ee;
  --ink-2: #bfbdb6;
  --ink-3: #83827d;
  --ink-on-act: #10150a;
  /* Colour as meaning only */
  --act: #d1fd2e; /* the one primary action */
  --mint: #56eda6; /* a link, a door */
  --done: #3deba0; /* approved */
  --done-soft: rgba(61, 235, 160, 0.34); /* in review */
  --up: #2bea74;
  --down: #ff5544; /* a blocking problem (--phone-accent-down) */
  --down-ink: #ff7b86; /* red words on night, kept clear of orange */
  --down-wash: rgba(255, 85, 68, 0.1);
  --wash-you: rgba(209, 253, 46, 0.08);
  --focus: #56eda6;

  --radius-panel: 8px;
  --radius-tile: 8px;
  --radius-input: 6px;
  --radius-pill: 999px;
  --gutter: 16px;
  --bar-h: 56px;
  --action-h: 76px;
  --kb: 0px;

  --font: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  background-image: radial-gradient(120% 60% at 50% -10%, var(--ground-top) 0%, var(--ground) 62%);
  background-attachment: fixed;
  color: var(--ink-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mint);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  background: var(--raised);
  color: var(--ink-1);
  padding: 10px 14px;
  border-radius: var(--radius-input);
}
.skip-link:focus {
  top: 8px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ the bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(7, 14, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink-1);
  min-width: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  flex: none;
  border-radius: 7px;
}
.brand-name {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.brand-sub {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.nav-link:hover {
  color: var(--ink-1);
  background: var(--raised);
  text-decoration: none;
}
.nav-link[aria-current='page'] {
  color: var(--ink-1);
  background: var(--selected);
}
.menu-button {
  min-width: 44px;
}
.menu {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--bar-h) - 4px);
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 6px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.menu[hidden] {
  display: none;
}
.menu .nav-link {
  min-height: 46px;
  border-radius: 6px;
  font-size: 16px;
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .menu-button,
  .menu {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ the page */

main,
main:focus,
main:focus-visible {
  outline: none;
}

.page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px var(--gutter) 48px;
}
.page.narrow {
  max-width: 720px;
}
.page.deck-page {
  max-width: 1120px;
  padding-bottom: calc(var(--action-h) + 32px + env(safe-area-inset-bottom, 0px));
}

.page.deck-page.review-page {
  max-width: 860px;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 4px 0 18px;
}
.page-head h1 {
  margin: 0;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
}
.crumb::before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 2px;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
h2 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
p {
  margin: 0 0 12px;
}
.lede {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 60ch;
}
.quiet {
  color: var(--ink-2);
}
.small {
  font-size: 14px;
}
.caption {
  color: var(--ink-3);
  font-size: 14px;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.num {
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-edge);
  border-radius: var(--radius-panel);
  padding: 18px;
}
.panel + .panel,
.card + .panel,
.panel + .card,
.stack > * + * {
  margin-top: 14px;
}
.panel > h2 + p,
form.panel > h2 + p {
  margin-top: 4px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .grid-2 > .panel + .panel {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ buttons */

.button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--button-edge);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-1);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.button:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--act);
  border-color: var(--act);
  color: var(--ink-on-act);
  font-weight: 600;
}
.button.primary:hover {
  background: #dcff5c;
}
/* A disabled primary must not look primary. */
.button:disabled,
.button.primary:disabled {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-3);
  cursor: not-allowed;
  transform: none;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}
.button.ghost:hover {
  background: var(--raised);
  color: var(--ink-1);
}
.button.danger {
  color: var(--down-ink);
  border-color: rgba(255, 77, 94, 0.45);
}
.button.small {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}
.button.wide {
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Tabs and chips are pills. */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs.wrap {
  flex-wrap: wrap;
  width: auto;
  border-radius: var(--radius-panel);
}
input[type='file'] {
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  max-width: 100%;
}
input[type='file']::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--button-edge);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-1);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.tab:hover {
  color: var(--ink-1);
  text-decoration: none;
}
.tab[aria-current='page'] {
  background: var(--selected);
  color: var(--ink-1);
}

.chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink-1);
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
}
.chip:hover {
  background: var(--selected);
}
.chip.text {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--raised);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.approved {
  color: var(--done);
  background: rgba(61, 235, 160, 0.1);
}
.tag.pending {
  color: var(--ink-1);
  background: var(--selected);
}
.tag.rejected {
  color: var(--down-ink);
  background: var(--down-wash);
}
.tag.superseded,
.tag.todo {
  color: var(--ink-3);
}
.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ------------------------------------------------------------------ forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label,
.label {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
}
.field .hint {
  color: var(--ink-3);
  font-size: 14px;
}
input[type='text'],
input[type='password'],
input[type='search'],
input[type='number'],
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line-strong);
  background: var(--deep);
  color: var(--ink-1);
  font: inherit;
  font-size: 16px; /* 16px or more keeps iOS from zooming */
}
select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(86, 237, 166, 0.18);
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--raised);
  cursor: pointer;
  font-size: 15px;
}
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--mint);
  cursor: pointer;
}
.form-grid {
  display: grid;
  gap: 0 14px;
}
@media (min-width: 700px) {
  .form-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.error-text {
  color: var(--down-ink);
  font-size: 15px;
}

/* ------------------------------------------------------------------ progress */

.progress {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--selected);
  overflow: hidden;
  display: flex;
}
.progress .seg-done {
  background: var(--done);
}
.progress .seg-review {
  background: var(--done-soft);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.legend .k-done {
  background: var(--done);
}
.legend .k-review {
  background: var(--done-soft);
}
.legend .k-todo {
  background: var(--selected);
  border: 1px solid var(--line-strong);
}

.lang-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lang-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.flag {
  width: 40px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.flag.small {
  width: 20px;
  height: 15px;
  border-radius: 2px;
}
.with-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lang-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}
.lang-sub {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 2px;
}
.big-pct {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Doors: tappable cards with a quiet hint, never a row of yellow buttons. */
.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--line-edge);
  border-radius: var(--radius-tile);
  background: var(--raised);
  color: var(--ink-1);
  position: relative;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.door:hover {
  background: var(--selected);
  border-color: var(--line-strong);
  text-decoration: none;
}
.door::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mint);
  border-top: 2px solid var(--mint);
  transform: rotate(45deg);
}
.door-count {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.door-label {
  font-weight: 500;
}
.door-hint {
  color: var(--ink-3);
  font-size: 14px;
}
.door.empty .door-count {
  color: var(--ink-3);
}
@media (max-width: 520px) {
  .door {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding-right: 44px;
  }
  .door::after {
    top: 50%;
    margin-top: -5px;
  }
  .door-count {
    min-width: 2.6em;
    font-size: 24px;
  }
  .door-text {
    display: flex;
    flex-direction: column;
  }
}

/* A door that is switched off (reviewing not turned on yet): the same card, not a link. */
.door.off {
  cursor: default;
}
.door.off::after {
  display: none;
}
.door.off:hover {
  background: var(--raised);
  border-color: var(--line-edge);
}
.door.off .door-label {
  color: var(--ink-2);
}

.mine {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.mine b {
  color: var(--ink-1);
  font-weight: 600;
}
.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ------------------------------------------------------------------ tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 13px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td.n,
th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tr.you td {
  background: var(--wash-you);
}

/* ------------------------------------------------------------------ the card */

.deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.deck-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
}
.page-head .deck-title {
  margin-bottom: 0;
}
.deck-title h1 {
  font-size: 22px;
  margin: 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  padding: 18px 18px 20px;
  position: relative;
  touch-action: pan-y;
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform;
}
.card.leaving-right {
  transform: translateX(40%) rotate(3deg);
  opacity: 0;
}
.card.leaving-left {
  transform: translateX(-40%) rotate(-3deg);
  opacity: 0;
}
.card.entering {
  transform: translateY(14px);
  opacity: 0;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
}
.english {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink-1);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
}
.english.long {
  font-size: 20px;
}
.syn {
  color: var(--mint);
  font-weight: 400;
}
/* The card: one column on a phone; the words and the box on the left, the help on the right on a desk. */
.card-side > :first-child.card-section {
  margin-top: 16px;
}
@media (min-width: 1000px) {
  .card.split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas: 'main side' 'compose side';
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    padding: 22px 24px 24px;
  }
  .card.split .card-main {
    grid-area: main;
  }
  .card.split .card-side {
    grid-area: side;
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
  .card.split .card-side > :first-child,
  .card.split .card-side > :first-child.card-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .card.split .compose {
    grid-area: compose;
  }
}
@media (min-width: 900px) {
  .english {
    font-size: 30px;
  }
  .english.long {
    font-size: 22px;
  }
}
.context {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.section-label {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 8px;
}
.forms-note {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 8px;
}
.forms-note b {
  color: var(--ink-1);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 14px;
}
.gloss {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gloss li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
}
.gloss .term {
  color: var(--ink-2);
}
.gloss .arrow {
  color: var(--ink-3);
}
.gloss .agreed {
  color: var(--ink-1);
  font-weight: 500;
}
.gloss .note {
  color: var(--ink-3);
  font-size: 14px;
  flex-basis: 100%;
}

.hint-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--raised);
  border: 1px solid var(--line-edge);
}
.hint-box.sent-back {
  border-left: 3px solid var(--down-ink);
}
.hint-box .hint-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
}
.hint-box .quote {
  color: var(--ink-1);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
}
.hint-box .was {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 6px;
}
.hint-box .button {
  margin-top: 10px;
}

.compose {
  margin-top: 18px;
  margin-bottom: 14px;
}
.compose textarea,
.compose input,
textarea {
  scroll-margin-top: calc(var(--bar-h) + 16px);
  scroll-margin-bottom: calc(var(--action-h) + var(--kb) + 24px);
}
.compose textarea {
  min-height: 112px;
  font-size: 19px;
  line-height: 1.4;
  background: var(--deep);
}
.compose label {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.checks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-height: 22px;
}
.checks li {
  display: flex;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
}
.checks li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
}
.checks li.block {
  color: var(--down-ink);
}
.checks li.block::before {
  background: var(--down);
}
.checks li.warn {
  color: var(--ink-2);
}
.checks li.warn::before {
  background: var(--ink-3);
}
.checks li.good {
  color: var(--ink-3);
}
.checks li.good::before {
  background: var(--done);
}

/* The one action bar on a deck: fixed to the bottom, above the phone keyboard. */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--kb);
  z-index: 15;
  background: rgba(7, 14, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.keyboard-open .action-bar {
  padding-bottom: 12px;
}
.action-inner {
  max-width: var(--deck-inner, 1088px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.action-inner .spacer {
  flex: 1;
}
.action-inner .button.primary {
  min-width: 132px;
}
.action-inner .kbd-hint {
  color: var(--ink-3);
  font-size: 13px;
}
@media (max-width: 899px) {
  .kbd-hint {
    display: none;
  }
}
@media (max-width: 420px) {
  .action-inner .button {
    padding: 0 14px;
  }
  .action-inner .button.primary {
    min-width: 0;
    flex: 1;
  }
}
.swipe-hint {
  margin: 12px 2px 0;
  color: var(--ink-3);
  font-size: 14px;
}

.translation-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--raised);
  border-radius: var(--radius-tile);
  border: 1px solid var(--line-edge);
}
.translation-box .their {
  font-size: 22px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.translation-box .by {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 8px;
}

.empty-state {
  text-align: left;
  padding: 28px 22px;
}
.empty-state h2 {
  margin-bottom: 6px;
}

/* Review list */
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.review-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-item:last-child {
  border-bottom: 0;
}
.review-item .pick {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  min-height: 44px;
}
.review-item .pick label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.review-item .en {
  color: var(--ink-2);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.review-item .tr {
  font-size: 17px;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.review-item .meta {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

/* Search and history */
.results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.result {
  border-bottom: 1px solid var(--line);
}
.result:last-child {
  border-bottom: 0;
}
.result a {
  display: block;
  padding: 12px 2px;
  color: var(--ink-1);
}
.result a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}
.result .en {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.result .tr {
  color: var(--ink-2);
  font-size: 15px;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.result .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline .t-text {
  font-size: 17px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 4px;
}
.timeline .t-meta {
  color: var(--ink-3);
  font-size: 14px;
}
.timeline .t-note {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 6px;
}

/* Admin */
.secret {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-tile);
  background: var(--raised);
  border: 1px solid var(--line-strong);
}
.secret code {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-1);
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
  user-select: all;
}
.link-out {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  margin: 6px 0 8px;
  user-select: all;
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.off td {
  color: var(--ink-3);
}
.diff-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.diff-counts div {
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--raised);
}
.diff-counts b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.diff-counts span {
  color: var(--ink-2);
  font-size: 14px;
}
.sample {
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  margin: 4px 0;
}

/* Public progress */
.public-lang {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.public-lang:last-child {
  border-bottom: 0;
}

/* People: a language and its Can review switch */
.lang-review-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.lang-review .check {
  white-space: nowrap;
}
.caption.joined {
  margin-top: 2px;
}

/* Invites: the numbers stay on one line; Revoke sits under the state */
td.one-line {
  white-space: nowrap;
}
.invite-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Sign in */
.signin {
  max-width: 420px;
  margin: 8vh auto 0;
}
.signin .panel {
  padding: 24px;
}
.join-head {
  margin-bottom: 10px;
}
.join-head h1 {
  margin: 0;
}
.signin-foot {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 15px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--kb) + var(--action-h) + 20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 40;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-panel);
  background: var(--raised-2);
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading {
  color: var(--ink-3);
  padding: 32px 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Glossary list */
.term-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.term-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.term-list li:last-child {
  border-bottom: 0;
}
.term-list .person-actions {
  margin-top: 0;
  flex: none;
}
.term-list .pair {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 17px;
}
.term-list .pair .arrow {
  color: var(--ink-3);
}
.term-list .pair .agreed {
  font-weight: 500;
}
.term-list .note {
  flex-basis: 100%;
  color: var(--ink-2);
  font-size: 15px;
  order: 3;
}
.term-list .by {
  color: var(--ink-3);
  font-size: 13px;
}
