/* IBM Plex Sans (SIL Open Font License) served from the app itself - not Google Fonts, which saw every visitor's address
   and had to be allowed by the content security policy (security review 2026-10-31). One variable file per script. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* LinguistDesk design tokens and the shared components' styles (LingoDesk.UI).
   SKINS (html[data-skin]): porcelain (default - warm white, emerald), evergreen (light pages, deep green menu),
   midnight (dark), system (porcelain or midnight, following the device). Every colour below is a token, so a skin is
   only a block of tokens. Layout: a left rail for the app, one content column; cards only for separate objects. */
:root {
  --ld-bg: #f7f6f2;
  --ld-surface: #ffffff;
  --ld-surface-2: #fbfaf7;
  --ld-fg: #14201c;
  --ld-muted: #5f6b67;
  --ld-line: #e6e2d9;
  --ld-line-strong: #d6d1c5;
  --ld-accent: #156b5b;
  --ld-accent-hover: #0f584a;
  --ld-accent-fg: #ffffff;
  --ld-accent-soft: #e5f1ec;
  --ld-warn: #94570a;
  --ld-warn-soft: #fbf0db;
  --ld-danger: #b42318;
  --ld-rail: #ffffff;
  --ld-rail-fg: #3c4845;
  --ld-rail-muted: #8a948f;
  --ld-rail-line: #ebe7df;
  --ld-rail-hover: #f4f2ed;
  --ld-rail-active: #e8f2ee;
  --ld-rail-active-fg: #0f584a;
  --ld-brand: #14201c;
  /* the banner across the top (dark on every skin, as in the Azure portal) */
  --ld-banner-h: 50px;
  --ld-bar: #13241f; --ld-bar-fg: #eef4f2; --ld-bar-muted: #a2b6b1; --ld-bar-accent: #7fd6c6;
  --ld-bar-line: rgba(255, 255, 255, .12); --ld-bar-hover: rgba(255, 255, 255, .09);
  --ld-bar-field: rgba(255, 255, 255, .07); --ld-bar-field-focus: rgba(255, 255, 255, .12);
  --ld-shadow: 0 1px 2px rgba(20, 32, 28, .04), 0 1px 3px rgba(20, 32, 28, .05);
  --ld-shadow-lg: 0 12px 32px rgba(20, 32, 28, .12), 0 2px 6px rgba(20, 32, 28, .06);
  --ld-font: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ld-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;   /* the device's own: no font download */
  --ld-radius: 10px;
  color-scheme: light;
}
/* light pages, the deep green menu */
:root[data-skin="evergreen"] {
  --ld-bg: #f5f7f6; --ld-line: #dfe6e3; --ld-line-strong: #cdd8d4;
  --ld-rail: #11302a; --ld-rail-fg: #d3e5e0; --ld-rail-muted: #8fb0a8; --ld-rail-line: rgba(255, 255, 255, .1);
  --ld-rail-hover: rgba(255, 255, 255, .07); --ld-rail-active: rgba(255, 255, 255, .13); --ld-rail-active-fg: #ffffff; --ld-brand: #ffffff;
  --ld-bar: #0a1d19;
}
/* dark: chosen, or the device's choice */
:root[data-skin="midnight"] {
  --ld-bg: #0e1413; --ld-surface: #151e1c; --ld-surface-2: #121a18; --ld-fg: #e3ece9; --ld-muted: #9aaca7; --ld-line: #25312e;
  --ld-line-strong: #33423e; --ld-accent: #5cc2b1; --ld-accent-hover: #7dd3c4; --ld-accent-fg: #0b1513; --ld-accent-soft: #17302a;
  --ld-warn: #f0b75c; --ld-warn-soft: #2e2414; --ld-danger: #f97066; --ld-rail: #0a100f; --ld-rail-fg: #c9d9d5; --ld-rail-muted: #748883;
  --ld-rail-line: rgba(255, 255, 255, .08); --ld-rail-hover: rgba(255, 255, 255, .06); --ld-rail-active: rgba(92, 194, 177, .14);
  --ld-rail-active-fg: #ffffff; --ld-brand: #ffffff; --ld-shadow: 0 1px 2px rgba(0, 0, 0, .3); --ld-shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
  --ld-bar: #050908; --ld-bar-line: rgba(255, 255, 255, .08);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="system"] {
    --ld-bg: #0e1413; --ld-surface: #151e1c; --ld-surface-2: #121a18; --ld-fg: #e3ece9; --ld-muted: #9aaca7; --ld-line: #25312e;
    --ld-line-strong: #33423e; --ld-accent: #5cc2b1; --ld-accent-hover: #7dd3c4; --ld-accent-fg: #0b1513; --ld-accent-soft: #17302a;
    --ld-warn: #f0b75c; --ld-warn-soft: #2e2414; --ld-danger: #f97066; --ld-rail: #0a100f; --ld-rail-fg: #c9d9d5; --ld-rail-muted: #748883;
    --ld-rail-line: rgba(255, 255, 255, .08); --ld-rail-hover: rgba(255, 255, 255, .06); --ld-rail-active: rgba(92, 194, 177, .14);
    --ld-rail-active-fg: #ffffff; --ld-brand: #ffffff; --ld-shadow: 0 1px 2px rgba(0, 0, 0, .3); --ld-shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
    --ld-bar: #050908; --ld-bar-line: rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}

body.ld { background: var(--ld-bg); color: var(--ld-fg); font-family: var(--ld-font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.ld h1, body.ld h2, body.ld h3 { letter-spacing: -.012em; }

/* the title and its line on the left, the page's actions on the right: beside the title whenever the title keeps a
   comfortable width (a long line used to push one button underneath on some pages but not others), on a line of their own,
   still on the right, when there are many (Reports); full width on a phone (lingodesk-app.css) */
.ld-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin: 2px 0 22px; }
.ld-page-header > div:first-child { flex: 1 1 28rem; min-width: 0; }
.ld-page-header > .ld-actions { flex: 0 1 auto; margin-left: auto; justify-content: flex-end; }
.ld-page-header h1 { font-size: 27px; font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
.ld-page-header p { margin: 6px 0 0; color: var(--ld-muted); max-width: 72ch; font-size: 15px; }

.ld-card { background: var(--ld-surface); border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 20px 22px; min-width: 0;
  box-shadow: var(--ld-shadow); }
.ld-card h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.ld-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.ld-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.7 var(--ld-mono); padding: 0 9px; border-radius: 999px;
  background: var(--ld-accent-soft); color: var(--ld-accent); white-space: nowrap; }
.ld-badge.is-warn { background: var(--ld-warn-soft); color: var(--ld-warn); }

.ld-meter { display: grid; gap: 6px; }
.ld-meter-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ld-meter-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ld-muted); }
.ld-meter-bar { height: 6px; border-radius: 999px; background: var(--ld-line); overflow: hidden; }
.ld-meter-bar > i { display: block; height: 100%; background: var(--ld-accent); }
.ld-meter-bar.is-full > i { background: var(--ld-warn); }

.ld-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.ld-plan { display: flex; flex-direction: column; gap: 10px; }
.ld-plan.is-current { border-color: var(--ld-accent); box-shadow: 0 0 0 1px var(--ld-accent) inset; }
.ld-plan-price { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ld-plan-price small { font-size: 14px; font-weight: 400; color: var(--ld-muted); }
.ld-plan ul { margin: 0; padding-left: 18px; color: var(--ld-fg); font-size: 14px; }
.ld-plan ul li + li { margin-top: 3px; }
.ld-plan .ld-plan-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--ld-line-strong); background: var(--ld-surface); color: var(--ld-fg); font: 500 14px var(--ld-font); cursor: pointer;
  text-decoration: none; box-shadow: 0 1px 1px rgba(20, 32, 28, .04); transition: background-color .12s, border-color .12s, color .12s; }
.ld-btn:hover { border-color: var(--ld-accent); color: var(--ld-accent); }
.ld-btn.is-primary { background: var(--ld-accent); border-color: var(--ld-accent); color: var(--ld-accent-fg); }
.ld-btn.is-primary:hover { background: var(--ld-accent-hover); border-color: var(--ld-accent-hover); color: var(--ld-accent-fg); }
.ld-btn[disabled] { opacity: .55; cursor: not-allowed; }
/* a pressed button at work (ld-busy.js): a small spinner in the button's own colour, no second press */
.is-busy { pointer-events: none; cursor: progress; }
.is-busy::before { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 2px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ld-busy-spin .7s linear infinite; }
.ld-btn.is-busy[disabled] { opacity: .8; }
@keyframes ld-busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-busy::before { animation-duration: 2s; } }
.ld-btn:focus-visible, .ld-nav a:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }

.ld-note { padding: 10px 14px; border-radius: 6px; background: var(--ld-warn-soft); color: var(--ld-fg); border-left: 3px solid var(--ld-warn); font-size: 14px; }
.ld-note.is-ok { background: var(--ld-accent-soft); border-left-color: var(--ld-accent); }

.ld-empty { text-align: left; color: var(--ld-muted); font-size: 14px; }
