/* PavlovLab sign-in pages (/_auth/ui). Mobile first; no external assets (strict CSP, no inline styles).
   The project colour comes from brand.css (--pc, --pc-2, --pc-soft); defaults below are indigo. */

:root {
  --pc: #6366f1;
  --pc-2: #4f46e5;
  --pc-3: #3a32c4;
  --pc-soft: rgba(79, 70, 229, .12);
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --border: #e5e7ef;
  --border-strong: #d5d8e4;
  --text: #0f1424;
  --text-2: #3b4256;
  --muted: #6b7286;
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, .10);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, .09);
  --radius: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c13;
    --surface: #121521;
    --surface-2: #171b29;
    --border: #232839;
    --border-strong: #2f3549;
    --text: #eceef5;
    --text-2: #c3c8d6;
    --muted: #8a91a6;
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lg {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
.lg a { color: var(--pc-2); text-decoration: none; }
.lg a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .lg a { color: var(--pc); } }
.lg h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.lg p { margin: 0; }
.lg :focus-visible { outline: 2px solid var(--pc-2); outline-offset: 2px; border-radius: 6px; }
.lg [hidden] { display: none !important; }
.lg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- layout ------------------------------------------------------------------------------
   Phone: a colour header (pattern, glass logo frame, name), a white sheet over its lower edge, a grey footer plate.
   Wide screens: one card, the colour panel on the left, the step in the middle of the right side. */

.lg { --glass-line: rgba(255, 255, 255, .55); }
.lg-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); position: relative; }

.lg-hd { position: relative; overflow: hidden; flex-shrink: 0; height: 236px; background: var(--pc); color: #fff; }
.lg-hero .lg-hd { height: 336px; }
.lg-bd { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.lg-bd-waves { background-image: url(backdrops/waves.svg); }
.lg-bd-rings { background-image: url(backdrops/rings.svg); }
.lg-bd-topo { background-image: url(backdrops/topo.svg); }
.lg-bd-dots { background-image: url(backdrops/dots.svg); background-repeat: repeat; background-size: 24px 24px; }
.lg-bd-grid { background-image: url(backdrops/grid.svg); background-repeat: repeat; background-size: 32px 32px; }
.lg-bd-diagonal { background-image: url(backdrops/diagonal.svg); background-repeat: repeat; background-size: 24px 24px; }
.lg-glow { position: absolute; width: 420px; height: 420px; right: -180px; bottom: -220px; border-radius: 999px; background: rgba(255, 255, 255, .10); pointer-events: none; }

.lg-bar { position: relative; z-index: 2; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.lg-back-ico { width: 40px; height: 40px; margin-left: -8px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; }
.lg .lg-back-ico { color: #fff; }
.lg-back-ico:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.lg-back-ico svg { width: 22px; height: 22px; }

.lg-id { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 24px 0; }
.lg-hero .lg-id { padding-top: 22px; }
/* The glass frame holds the project's own mark: its app icon (own plate and corners) or a white letter. */
.lg-logo {
  position: relative; width: 60px; height: 60px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .20); border: 1px solid var(--glass-line); color: #fff; font-size: 24px; font-weight: 800; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -10px 20px -12px rgba(8, 10, 30, .25), 0 24px 48px -20px rgba(8, 10, 30, .55);
}
.lg-logo > svg.logo { display: block; width: 68%; height: 68%; }
.lg-hero .lg-logo { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
.lg-name { margin: 12px 0 0; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; max-width: 100%; overflow-wrap: anywhere; }
.lg-subline { margin: 2px 0 0; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .94); }
.lg-hero .lg-name { margin-top: 18px; font-size: 26px; }
.lg-hero .lg-subline { margin-top: 6px; font-size: 15px; }
.lg-hd .lg-secured-panel { display: none; }

.lg-sheet {
  position: relative; z-index: 3; flex: 1; margin-top: -28px; padding: 32px 24px 8px; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -14px 32px -22px rgba(8, 10, 30, .45);
}
.lg-deskbar { display: none; }
/* auto margins centre the step in the free space and let the sheet simply grow (and the page scroll) when it is too tall */
.lg-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; margin: auto; padding: 0 0 20px; }
.lg-card-wide { max-width: 640px; }

.lg-foot {
  margin: 8px 12px 12px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted);
}
.lg-links-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.lg .lg-foot a { color: var(--muted); }
.lg-secured { margin: 0; display: flex; align-items: center; gap: 6px; }
.lg-ico-s { width: 14px; height: 14px; flex-shrink: 0; }

@media (min-width: 900px) {
  body.lg { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
  .lg-page:not(.lg-wide) {
    width: 960px; max-width: 100%; min-height: 640px; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: 1fr auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 32px 72px -32px rgba(15, 20, 36, .32);
  }
  .lg-page:not(.lg-wide) .lg-hd, .lg-page:not(.lg-wide).lg-hero .lg-hd {
    grid-row: 1 / span 2; height: auto; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  }
  .lg-page:not(.lg-wide) .lg-bar { display: none; }
  .lg-page:not(.lg-wide) .lg-id, .lg-page:not(.lg-wide).lg-hero .lg-id { align-items: flex-start; text-align: left; padding: 0; margin-top: 96px; }
  .lg-page:not(.lg-wide) .lg-logo { width: 80px; height: 80px; border-radius: 23px; font-size: 32px; }
  .lg-page:not(.lg-wide) .lg-name, .lg-page:not(.lg-wide).lg-hero .lg-name { margin-top: 28px; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; }
  .lg-page:not(.lg-wide) .lg-subline, .lg-page:not(.lg-wide).lg-hero .lg-subline { margin-top: 8px; font-size: 16px; }
  .lg-page:not(.lg-wide) .lg-secured-panel { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .94); }
  .lg-page:not(.lg-wide) .lg-sheet { margin: 0; padding: 40px 72px 16px; border-radius: 0; box-shadow: none; grid-column: 2; grid-row: 1; }
  .lg-page:not(.lg-wide) .lg-deskbar { display: flex; position: absolute; z-index: 4; top: 20px; left: 24px; right: 20px; align-items: center; justify-content: space-between; }
  .lg-page:not(.lg-wide) .lg-foot { grid-column: 2; grid-row: 2; justify-self: center; margin: 0 0 24px; padding: 10px 18px; border-radius: 14px; flex-direction: row; }
  .lg-page:not(.lg-wide) .lg-foot .lg-secured { display: none; }

  /* wide pages (account, privacy, terms): the phone layout inside a 760px card */
  .lg-wide { width: 760px; max-width: 100%; border: 1px solid var(--border); border-radius: 28px; overflow: hidden; min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 32px 72px -32px rgba(15, 20, 36, .32); }
  .lg-wide .lg-sheet { padding: 32px 56px 8px; }
}

.lg-back-txt { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.lg .lg-back-txt { color: var(--text-2); }

/* --- language switcher (details/summary, no JS) --------------------------------------------- */

.lg-lang { position: relative; }
.lg-lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-2);
  font-size: 14px; font-weight: 550;
}
.lg-lang summary::-webkit-details-marker { display: none; }
.lg-lang summary::after { content: "▾"; font-size: 11px; }
.lg-lang summary svg { width: 16px; height: 16px; }
.lg-lang-glass summary { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.lg-lang ul {
  position: absolute; right: 0; top: 44px; z-index: 5; margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgba(15, 20, 36, .3);
}
.lg-lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.lg .lg-lang li a { color: var(--text); }
.lg-lang li a:hover, .lg-lang li a[aria-current] { background: var(--pc-soft); text-decoration: none; }
@media (min-width: 900px) {
  .lg-page:not(.lg-wide) .lg-bar .lg-lang { display: none; }
}

/* --- content ---------------------------------------------------------------------------------- */

.lg-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.lg-sub { color: var(--muted); font-size: 15px; line-height: 1.45; text-align: center; }
.lg-stack { display: flex; flex-direction: column; gap: 10px; }
.lg-form { display: flex; flex-direction: column; gap: 14px; }
.lg-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.lg-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.lg-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lg-field-row a { font-weight: 600; font-size: 14px; }
.lg-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.lg-input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
.lg-input::placeholder { color: var(--muted); opacity: .7; }
.lg-input:focus { outline: none; border-color: var(--pc-2); box-shadow: 0 0 0 4px var(--pc-soft); }
.lg-input-code { height: 56px; text-align: center; letter-spacing: .3em; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-input-code::placeholder { letter-spacing: .2em; }

.lg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
}
.lg-btn:hover { background: var(--surface-2); text-decoration: none; }
.lg a.lg-btn { color: var(--text); }
.lg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.lg-btn-sm { height: 44px; }
/* "Last used" mark on the method this browser signed in with last time (as big sign-in pages do). */
.lg-btn { position: relative; }
.lg-last { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--pc-2); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; }
.lg-prose { display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.lg-prose h2 { margin: 10px 0 0; font-size: 16px; font-weight: 650; color: var(--text); }
.lg-prose a { overflow-wrap: anywhere; }
.lg-btn-primary, .lg a.lg-btn-primary { background: var(--pc-2); border-color: var(--pc-2); color: #fff; font-weight: 600; }
.lg-btn-primary:hover { background: var(--pc-2); filter: brightness(1.08); }

.lg-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.lg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.lg-alert svg { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.lg-alert-error { background: var(--danger-soft); color: var(--danger); }
.lg-alert-ok { background: var(--ok-soft); color: var(--ok); }
.lg-alert:empty { display: none; }

.lg-center { text-align: center; font-size: 14px; color: var(--muted); }
.lg-links { display: flex; flex-direction: column; gap: 10px; text-align: center; font-size: 14px; }
.lg-links-split { flex-direction: row; justify-content: space-between; }

.lg-choice { display: flex; flex-direction: column; gap: 2px; }
.lg-choice strong { font-weight: 600; font-size: 15px; }
.lg-choice span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lg-choices { display: flex; flex-direction: column; gap: 10px; }
.lg-choices form { margin: 0; }
.lg-choices button, .lg-choices a {
  display: block; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.lg-choices button:hover:not(:disabled), .lg-choices a:hover { border-color: var(--pc-2); background: var(--pc-soft); text-decoration: none; }
.lg-choices button:disabled { opacity: .55; cursor: not-allowed; }

.lg-qr { align-self: center; padding: 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); line-height: 0; }
.lg-qr svg { width: 200px; height: 200px; }
.lg-secret { font-family: var(--mono); font-size: 14px; word-break: break-all; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; user-select: all; }
.lg-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }

.lg-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pc-soft); color: var(--pc-2); }
.lg-icon svg { width: 26px; height: 26px; }
.lg-icon-ok { background: var(--ok-soft); color: var(--ok); }
.lg-icon-warn { background: var(--danger-soft); color: var(--danger); }
.lg-message { align-items: center; text-align: center; }

.lg-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; color: var(--muted); font-size: 14px; }
.lg-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--pc-2); animation: lg-spin .8s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-spinner { animation: none; } }

.lg-linkbtn { border: 0; background: none; padding: 4px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.lg-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- account page (/_auth/ui/account): the profile and "Sign-in & security" blocks ---------------------------- */

.lg-card-wide { max-width: 640px; }
.ac-box { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.ac-box h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.ac-who { flex-direction: row; align-items: center; gap: 14px; }
.ac-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--pc-soft); color: var(--pc-2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.ac-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.ac-row form, .ac-split form { margin: 0; }
.ac-sub { padding: 8px 0 8px 48px; border-top: 1px dashed var(--border); }
.ac-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--text-2); flex-shrink: 0; }
.ac-ico svg { width: 20px; height: 20px; }
.ac-main { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.ac-main strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ac-note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ac-note.ok { color: var(--ok); }
.ac-note.warn { color: #d97706; }
.ac-btn { height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ac-btn:hover:not(:disabled) { background: var(--surface-2); }
.ac-btn:disabled { opacity: .45; cursor: not-allowed; }
.ac-btn-primary { background: var(--pc-2); border-color: var(--pc-2); color: #fff; }
.ac-btn-primary:hover:not(:disabled) { background: var(--pc-2); filter: brightness(1.08); }
.ac-btn-danger { color: var(--danger); border-color: var(--danger); }
.ac-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ac-split h2 { margin: 0; }

/* Account page: way back to the project, at the top like the mockup. */
.ac-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.ac-back:hover { text-decoration: underline; }


/* --- method tiles (sign-in and sign-up choice, other second-step ways) -------------------------------------------- */

.lg-tiles { display: grid; gap: 10px; }
.lg-cols-1 { grid-template-columns: minmax(0, 1fr); }
.lg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg-tile-form { margin: 0; display: flex; }
.lg-tile-form > .lg-mt { flex: 1; }
.lg-mt {
  position: relative; height: 92px; padding: 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  text-align: center; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 20, 36, .05), 0 10px 24px -14px rgba(15, 20, 36, .30);
}
.lg a.lg-mt { color: var(--text); }
.lg-mt:hover { border-color: var(--pc-2); text-decoration: none !important; }
.lg-mt .lg-ico { width: 28px; height: 28px; }
.lg-mt-sm { height: 76px; font-size: 13px; line-height: 1.25; }
.lg-mt-sm .lg-ico { width: 24px; height: 24px; }
.lg-soon {
  height: 52px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--border-strong);
  border-radius: 14px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: not-allowed;
}
.lg-soon .lg-ico { width: 18px; height: 18px; }
.lg-soon-wide { width: 100%; height: 48px; border-radius: 12px; font-size: 15px; }
.lg-cap { margin: 2px 0 -8px; }
.lg-chip-soon { padding: 1px 8px; border-radius: 999px; background: var(--border); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 16px; flex-shrink: 0; }
.lg-chip-accent { background: var(--pc-soft); color: var(--pc-2); font-size: 12px; padding: 2px 9px; line-height: 18px; }
.lg-note { text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* --- e-mail chip, password eye ---------------------------------------------------------------------------------------- */

.lg-chip {
  margin-top: 6px; height: 36px; padding: 0 12px 0 4px; max-width: 100%; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px;
}
.lg a.lg-chip { color: var(--text); }
.lg-chip:hover { text-decoration: none !important; border-color: var(--pc-2); }
.lg-chip-av { width: 28px; height: 28px; border-radius: 999px; background: var(--border); color: var(--text-2); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lg-chip-mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-chip-ch { color: var(--pc-2); font-weight: 600; flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .lg-chip-ch { color: var(--pc); } }
.lg-pw { position: relative; display: block; }
.lg-pw .lg-input { padding-right: 48px; }
.lg-eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lg-eye svg { width: 20px; height: 20px; }
.lg-eye:hover { background: var(--surface-2); }
.lg-center-text { text-align: center; }

/* --- list card (help, cookie settings) -------------------------------------------------------------------------------- */

.lg-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); overflow: hidden; }
.lg-list li { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text); }
.lg-list li:first-child { border-top: 0; }
.lg-list li .lg-ico-s { width: 16px; height: 16px; color: var(--muted); }
.lg-list-cookies li { padding: 14px 16px; align-items: flex-start; }
.lg-li-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lg-li-main strong { font-size: 15px; font-weight: 600; }
.lg-li-main span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.lg-switch {
  appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 44px; height: 26px; margin: 2px 0 0; border: 0; border-radius: 999px;
  background: var(--border-strong); cursor: pointer; transition: background .15s;
}
.lg-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(15, 20, 36, .3); transition: transform .15s; }
.lg-switch:checked { background: var(--pc-2); }
.lg-switch:checked::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .lg-switch, .lg-switch::after { transition: none; } }

/* --- first-visit cookie notice (bottom sheet; works without JS) ------------------------------------------------------- */

.lg-cookie {
  position: fixed; z-index: 20; left: 8px; right: 8px; bottom: 8px; padding: 18px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); box-shadow: 0 16px 48px -16px rgba(15, 20, 36, .35);
}
.lg-cookie h2 { margin: 0; font-size: 16px; font-weight: 700; }
.lg-cookie p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.lg-cookie-btns { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg .lg-cookie a.lg-btn { color: var(--text); }
.lg .lg-cookie a.lg-btn-primary { color: #fff; }
@media (min-width: 900px) {
  .lg-cookie { left: 50%; right: auto; bottom: 24px; width: 420px; transform: translateX(-50%); border-radius: 16px; }
}
