/* Lingua Aid: all styles. Colours and themes are CSS variables on :root. */
:root {
  --bg: #fff;
  --card: #fff;
  --text: #3c3c3c;
  --muted: #777;
  --line: #e5e5e5;
  --green: #58cc02;
  --greenD: #58a700;
  --red: #ff4b4b;
  --redD: #ea2b2b;
  --redBg: #fff0f0;
  --blue: #1cb0f6;
  --blueD: #1899d6;
  --blueBg: #ddf4ff;
  --c2: var(--red);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #131f24;
    --card: #1b2b32;
    --text: #f1f7fb;
    --muted: #9bb0ba;
    --line: #37464f;
    --redBg: #3a2022;
    --blueBg: #16323f;
  }
}
:root[data-theme='dark'] {
  --bg: #131f24;
  --card: #1b2b32;
  --text: #f1f7fb;
  --muted: #9bb0ba;
  --line: #37464f;
  --redBg: #3a2022;
  --blueBg: #16323f;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
nav,
header {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button,
a {
  outline: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}
button,
select {
  font: inherit;
  color: inherit;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 110px;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 5;
  border-bottom: 2px solid var(--line);
  margin: 0 -16px 16px;
}
.loc {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 14px;
  padding: 6px 12px;
  font-weight: 800;
  cursor: pointer;
  background: var(--card);
}
.help {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-bottom: 4px solid var(--redD);
  border-radius: 14px;
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}
.help:active,
.btn:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 4px;
}
h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 24px 0 10px;
}
.sub {
  color: var(--muted);
  margin: 0 0 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  font-weight: 800;
}
.tile.sos {
  border-color: var(--red);
  background: var(--redBg);
}
.tile:active,
.row:active,
.cat:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.row,
.cat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  width: 100%;
}
.list > .row:nth-child(5n + 1),
.list > div:nth-child(5n + 1) > .cat {
  --c2: #ff4b4b;
}
.list > .row:nth-child(5n + 2),
.list > div:nth-child(5n + 2) > .cat {
  --c2: #1cb0f6;
}
.list > .row:nth-child(5n + 3),
.list > div:nth-child(5n + 3) > .cat {
  --c2: #ff9600;
}
.list > .row:nth-child(5n + 4),
.list > div:nth-child(5n + 4) > .cat {
  --c2: #58cc02;
}
.list > .row:nth-child(5n + 5),
.list > div:nth-child(5n + 5) > .cat {
  --c2: #ce82ff;
}
.loc .fl {
  font-size: 24px;
}
.hero .em,
.soon .em {
  font-size: 64px;
}
.tile .em {
  font-size: 30px;
}
.row .em {
  font-size: 24px;
}
.cat .em {
  font-size: 28px;
}
.cat {
  font-size: 18px;
  font-weight: 900;
}
.cat .ct {
  flex: 1;
}
.cat small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.cat > svg {
  color: var(--muted);
  transition: transform 0.15s;
}
.cat.open > svg {
  transform: rotate(180deg);
}
.cat.open {
  border-color: var(--blue);
}
.cpanel {
  padding: 12px 0 6px;
}
.cpanel[hidden] {
  display: none;
}
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 16px;
  padding: 12px 14px;
}
.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  border: 0;
  border-bottom: 4px solid var(--greenD);
  border-radius: 14px;
  padding: 13px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.btn:disabled {
  background: var(--line);
  border-bottom-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.btn.blue {
  background: var(--blue);
  border-bottom-color: var(--blueD);
}
.btn svg {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 6px;
}
select {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--card);
  font-weight: 800;
  margin: 6px 0 18px;
}
select:focus {
  outline: none;
  border-color: var(--muted);
}
label {
  font-weight: 900;
}
.hero {
  text-align: center;
  padding: 28px 0 8px;
}
.soon {
  text-align: center;
  padding: 60px 10px;
}
.sen .t {
  font-size: 20px;
  font-weight: 900;
}
.sen .p {
  color: var(--blue);
  font-weight: 800;
}
.sen > .cap {
  margin-bottom: 6px;
}
.v + .v {
  border-top: 2px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
  margin-bottom: 4px;
}
.tag.f {
  background: var(--blueD);
  color: #fff;
}
.tag.inf {
  background: var(--greenD);
  color: #fff;
}
.ar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pl {
  width: auto;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
}
.cap {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.cap svg {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 5px;
}
.big {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  margin: 6px 0;
}
.say {
  background: var(--blueBg);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 19px;
}
.num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.num b {
  font-size: 24px;
  font-weight: 900;
}
.num a {
  width: auto;
  padding: 10px 16px;
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.kv b {
  color: var(--muted);
  font-size: 13px;
}
.mail {
  color: var(--blue);
  font-weight: 900;
  word-break: break-all;
}
.tos {
  display: block;
  margin: 32px auto 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}
.terms p {
  margin: 0 0 12px;
}
.bar {
  height: 10px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}
.bar[hidden] {
  display: none;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.2s;
}
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  margin: 6px 0 18px;
}
.field .ph {
  color: var(--muted);
}
.field svg {
  color: var(--muted);
  flex: none;
}
.field:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  margin: 8px 0 14px;
}
.search:focus-within {
  border-color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font: inherit;
  font-weight: 800;
  color: inherit;
  padding: 13px 0;
}
.row .ck {
  margin-left: auto;
  color: var(--green);
  font-weight: 900;
}
.seg {
  display: flex;
  gap: 8px;
}
.seg button {
  flex: 1;
  border: 2px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: var(--card);
  padding: 9px 4px;
  font-weight: 800;
  cursor: pointer;
}
.seg button.on {
  border-color: var(--blue);
  background: var(--blueBg);
  color: var(--blue);
}
a.row {
  text-decoration: none;
  color: inherit;
}
.flag {
  display: inline-block;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  vertical-align: -3px;
}
h1 .flag {
  margin-right: 8px;
}
.fl {
  display: flex;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
}
nav div {
  display: flex;
  width: 100%;
  max-width: 560px;
}
nav button {
  flex: 1;
  background: none;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
nav button .i {
  font-size: 22px;
  filter: grayscale(1);
  opacity: 0.7;
}
nav button.on {
  color: var(--blue);
  background: var(--blueBg);
  border-color: var(--blue);
}
nav button.on .i {
  filter: none;
  opacity: 1;
}
.ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  animation: up 0.2s ease-out;
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet {
    animation: none;
  }
}
.close {
  float: right;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--muted);
  outline-offset: 2px;
}
