/* Libicard cabinet — Liquid design (owner's prototype R25, 2026-10-06; D180). Only the rules the moved screens use,
   extracted from directions/02-liquid/style.css and flow/flow.css; Manrope: SIL OFL 1.1 (fonts/OFL.txt). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/cyrillic-ext-400-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/cyrillic-400-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/latin-ext-400-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/latin-400-700.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; }
:root { --display: 'Manrope',serif; --ui: 'Manrope',sans-serif; --radius: 18px; --button-radius: 24px; --bg: #edf1fa; --surface: #ffffff; --tint: #e8eaf8; --ink: #172039; --muted: #535d74; --line: #c4ccdd; --control-line: #8692ab; --accent: #304ab1; --on-accent: #ffffff; --card-bg: linear-gradient(135deg,#3153ad,#182b65); --card-ink: #ffffff; --graphic: #8596f2; --status-ink: #236044; --status-bg: #e6f4eb; --status-line: #789e89; --frozen-ink: #194f9a; --frozen-bg: #e8f0fc; --frozen-line: #86a6cd; --closed-ink: #a32436; --closed-bg: #fce9ec; --closed-line: #cf929b; --wait-ink: #775018; --wait-bg: #fcf0d6; --wait-line: #b9a070; --aurora-one: #afc4f14d; --aurora-two: #e9bbd44d; --focus: var(--accent); --glass: #fffffff0; --glass-border: #aab6d0; --zone-one: #f1d9c3; --zone-two: #e4dced; --zone-three: #d8e4df; --split-bg: #263e4a; --split-ink: #f6fbff; --split-muted: #bed1da; --split-action: #e1eef3; --split-action-ink: #1a3542; }
body[data-theme="dark"] { --bg: #101628; --surface: #192239; --tint: #27314e; --ink: #f3f6ff; --muted: #bdc8e2; --line: #465675; --control-line: #7585ab; --accent: #c0ceff; --on-accent: #172039; --card-bg: linear-gradient(135deg,#445db2,#283e88); --card-ink: #ffffff; --graphic: #8d9df5; --status-ink: #b5ebca; --status-bg: #233b2d; --status-line: #648b73; --frozen-ink: #b5d5ff; --frozen-bg: #21344d; --frozen-line: #7298c7; --closed-ink: #ffbec7; --closed-bg: #4b2530; --closed-line: #bd7884; --wait-ink: #f2d194; --wait-bg: #45381f; --wait-line: #a18c5e; --aurora-one: #3552a533; --aurora-two: #7947832e; --focus: var(--accent); --glass: #192239f2; --glass-border: #6e80a8; --zone-one: #49302b; --zone-two: #403044; --zone-three: #2c403b; --split-bg: #0f202a; --split-ink: #f6fbff; --split-muted: #bed1da; --split-action: #bddae6; --split-action-ink: #1a3542; }
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) { --bg: #101628; --surface: #192239; --tint: #27314e; --ink: #f3f6ff; --muted: #bdc8e2; --line: #465675; --control-line: #7585ab; --accent: #c0ceff; --on-accent: #172039; --card-bg: linear-gradient(135deg,#445db2,#283e88); --card-ink: #ffffff; --graphic: #8d9df5; --status-ink: #b5ebca; --status-bg: #233b2d; --status-line: #648b73; --frozen-ink: #b5d5ff; --frozen-bg: #21344d; --frozen-line: #7298c7; --closed-ink: #ffbec7; --closed-bg: #4b2530; --closed-line: #bd7884; --wait-ink: #f2d194; --wait-bg: #45381f; --wait-line: #a18c5e; --aurora-one: #3552a533; --aurora-two: #7947832e; --focus: var(--accent); --glass: #192239f2; --glass-border: #6e80a8; --zone-one: #49302b; --zone-two: #403044; --zone-three: #2c403b; --split-bg: #0f202a; --split-ink: #f6fbff; --split-muted: #bed1da; --split-action: #bddae6; --split-action-ink: #1a3542; }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
body { margin: 0px; font-family: var(--ui); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; }
body[data-theme="light"] { color-scheme: light; }
body[data-theme="dark"] { color-scheme: dark; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0px; }
h1, h2, h3 { line-height: 1.17; text-wrap: balance; }
h1 { font: 400 clamp(36px,4vw,64px)/1.12 var(--display); letter-spacing: -0.045em; }
main { min-width: 0px; }
section, article, aside, div { min-width: 0px; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 20; padding: 12px; background: var(--surface); }
.skip:focus { top: 16px; }
.settings { display: flex; align-items: center; gap: 8px; }
.settings a, .settings button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.app-header { display: flex; align-items: center; gap: 32px; padding: 24px 40px; position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand svg { width: 122px; height: auto; }
.page-body { max-width: 1320px; margin: 0px auto; padding: 16px 40px 64px; position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
svg.ui-icon { fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1050px) {
  .page-body { padding-left: 28px; padding-right: 28px; }
  .app-header { padding-left: 28px; padding-right: 28px; gap: 20px; }
}
@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  h1 { font-size: 36px; }
  .settings { margin-left: auto; }
  .app-header { padding: 20px 16px; gap: 16px; flex-wrap: wrap; }
  .app-header .brand { order: 0; }
  .page-body { padding: 12px 16px 32px; }
}
@media (max-width: 359px) {
  .settings a, .settings button { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .app-header, .app-nav, .settings { backdrop-filter: none !important; }
}
.page-body > div:not(.breadcrumb) { min-width: 0px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
}
body { --bg: #f5f5f7; --surface: #fff; --tint: #ececf0; --ink: #18191c; --muted: #565963; --line: #d9d9e0; --control-line: #8e9199; --accent: #075fc5; --on-accent: #fff; --focus: #075fc5; --radius: 28px; --button-radius: 30px; --glass-fill: rgba(250,250,253,.76); --glass-selected: rgba(255,255,255,.7); --glass-edge: rgba(255,255,255,.95); --glass-shade: rgba(50,60,90,.16); --light-x: 50%; --light-y: 0%; --tilt-x: 0deg; --tilt-y: 0deg; background: var(--bg); }
body[data-theme="dark"] { --bg: #0e1014; --surface: #1b1d22; --tint: #262930; --ink: #f5f6f8; --muted: #bfc2cc; --line: #353942; --control-line: #7c8594; --accent: #b1d5ff; --on-accent: #102844; --focus: #b6d8ff; --glass-fill: rgba(35,39,48,.82); --glass-selected: rgba(89,98,115,.43); --glass-edge: rgba(220,235,255,.42); --glass-shade: rgba(0,0,0,.44); }
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) { --bg: #0e1014; --surface: #1b1d22; --tint: #262930; --ink: #f5f6f8; --muted: #bfc2cc; --line: #353942; --control-line: #7c8594; --accent: #b1d5ff; --on-accent: #102844; --focus: #b6d8ff; --glass-fill: rgba(35,39,48,.82); --glass-selected: rgba(89,98,115,.43); --glass-edge: rgba(220,235,255,.42); --glass-shade: rgba(0,0,0,.44); }
}
.app-shell { max-width: 1480px; margin: auto; }
.app-header { padding: 22px 48px; gap: 24px; position: sticky; top: 0px; z-index: 8; pointer-events: none; }
.app-header > * { pointer-events: auto; }
.brand svg { width: 116px; }
.page-body { max-width: 1220px; padding: 40px 48px 70px; }
@media (max-width: 1050px) {
  .app-header { padding: 20px 28px; gap: 16px; }
  .page-body { padding: 32px 28px 60px; }
}
@media (max-width: 700px) {
  .app-header { padding: 14px 20px; gap: 12px; flex-wrap: nowrap; position: relative; }
  .brand { margin-right: auto; }
  .brand svg { width: 110px; }
  .page-body { padding: 16px 20px 36px; }
}
@media (max-width: 359px) {
  .page-body { padding-left: 16px; padding-right: 16px; }
}
@media print {
  body { background: rgb(255, 255, 255) !important; color: rgb(17, 17, 17) !important; }
}
.client-footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 20px 24px; font-size: 12px; }
.client-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.client-app .brand svg { fill: var(--ink); }
.auth-layout { column-gap: 68px; }
.auth-layout .lc-auth-scene { display: block; height: 560px; border-radius: 38px; background: radial-gradient(at 8% 15%, rgb(255, 249, 239) 0px, transparent 50%), radial-gradient(at 88% 80%, rgb(200, 190, 176) 0px, transparent 46%), linear-gradient(155deg, rgb(245, 238, 226), rgb(221, 214, 203)); overflow: hidden; perspective: 1100px; isolation: isolate; }
.lc-auth-scene::after { content: ""; position: absolute; inset: auto -10% -35% -20%; height: 52%; background: radial-gradient(rgba(170, 160, 139, 0.333), transparent 65%); pointer-events: none; }
.auth-layout .telegram-signin, .lc-signup .telegram-signin { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgb(8, 123, 181); border-color: rgb(8, 123, 181); color: rgb(255, 255, 255); min-height: 52px; font-size: 14px; box-shadow: rgba(255, 255, 255, 0.15) 0px 1px 0px inset; }
.telegram-signin .telegram-mark { fill: currentcolor; width: 24px; height: 24px; flex-shrink: 0; }
.auth-layout .telegram-signin:hover, .lc-signup .telegram-signin:hover { background: rgb(6, 107, 158); border-color: rgb(6, 107, 158); filter: none; }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0px, 420px) minmax(0px, 1fr); gap: 36px; }
  .auth-layout .lc-auth-scene { height: 530px; }
}
@media (max-width: 850px) {
  .auth-layout { display: block; max-width: 480px; margin: 20px auto 35px; }
  .auth-layout .lc-auth-scene { display: none; }
}
body .app-header.lc-stationary-header { position: static; top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; min-height: 108px; padding: 22px 48px; gap: 24px; pointer-events: auto; }
.lc-stationary-header .brand { margin: 0px; flex-shrink: 0; }
.lc-stationary-header .brand svg { width: 116px; }
.lc-stationary-header .lc-header-settings { margin: 0px; gap: 8px; flex-shrink: 0; }
.lc-header-settings a, .lc-header-settings button { font: 500 12px var(--ui); height: 44px; min-width: 44px; min-height: 44px; padding: 10px 12px; gap: 7px; }
.lc-header-settings .ui-icon { width: 19px; height: 19px; }
@media (min-width: 701px) and (max-width: 1199px) {
  body .app-header.lc-stationary-header { padding: 20px 28px; min-height: 164px; align-items: flex-start; }
  body .app-header.lc-stationary-header.auth-header { min-height: 88px; align-items: center; }
}
@media (max-width: 700px) {
  body .app-header.lc-stationary-header { min-height: 80px; padding: 16px 20px; gap: 12px; }
  .lc-stationary-header .brand svg { width: 102px; }
  .lc-stationary-header .lc-header-settings { gap: 6px; }
  .lc-header-settings a, .lc-header-settings button { padding: 10px; }
  .lc-header-settings [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lc-header-settings button { width: 44px; }
  .client-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); gap: 8px 20px; }
}
@media (max-width: 360px) {
  body .app-header.lc-stationary-header { padding-left: 16px; padding-right: 16px; }
  .lc-stationary-header .brand svg { width: 92px; }
  .lc-stationary-header .lc-header-settings { gap: 4px; }
}
.client-app { background: var(--bg); }
.client-page { max-width: 1200px; padding-top: 34px; padding-bottom: 56px; }
.client-page h1 { font-weight: 600; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.055em; line-height: 1.12; }
.client-page p { margin-bottom: 12px; }
.flow-heading { margin-bottom: 30px; max-width: 760px; }
.flow-heading .lede { color: var(--muted); font-size: 16px; margin-top: 18px; max-width: 58ch; }
.flow-heading .eyebrow { font-size: 12px; letter-spacing: 0.06em; }
.flow-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; margin-bottom: 22px; }
.muted, .field-help, .flow-facts dt, .price-list dt { color: var(--muted); }
.field { display: grid; gap: 9px; margin-bottom: 24px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .selectable { width: 100%; min-width: 0px; min-height: 52px; border: 1px solid var(--control-line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 12px 16px; font-size: 17px; }
.field-help { font-size: 13px; line-height: 1.65; margin: 0px; }
.field input[readonly] { background: var(--bg); }
.checkbox-field { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 14px; margin: 16px 0px; }
.checkbox-field input { appearance: none; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface); margin: 10px; }
.checkbox-field input:checked { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--surface); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; min-height: 50px; min-width: 44px; background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); border-radius: 28px; font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.4; cursor: pointer; max-width: 100%; text-align: center; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--control-line); }
.btn:hover { filter: brightness(0.94); }
.text-link, .card-links a { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 48px; padding: 8px 4px; color: var(--accent); text-decoration: underline; }
.client-footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 20px 24px; font-size: 12px; }
.client-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-layout { display: grid; grid-template-columns: 460px minmax(0px, 1fr); gap: 100px; align-items: center; max-width: 1100px; margin: 30px auto 50px; }
.auth-header span { margin-left: auto; color: var(--muted); font-size: 13px; }
.auth-layout .flow-heading h1 { font-size: 46px; }
.auth-form .btn { width: 100%; }
.auth-layout .flow-panel { padding: 30px; }
.auth-divider { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; justify-content: center; margin: 18px 0px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1 1 0%; }
.auth-layout .flow-panel > .btn { width: 100%; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.auth-links .text-link { font-size: 12px; }
.auth-scene { position: relative; height: 540px; display: flex; align-items: center; justify-content: center; perspective: 1000px; isolation: isolate; }
@media (max-width: 1000px) {
  .auth-layout { gap: 40px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .client-page { padding-top: 20px; padding-bottom: 32px; }
  .client-page h1 { font-size: 32px; }
  .flow-panel { padding: 22px; border-radius: 24px; }
  .client-footer { padding-bottom: 100px; gap: 16px; }
  .auth-layout { display: block; margin: 16px auto 20px; }
  .auth-scene { display: none; }
  .auth-header span { display: none; }
  .auth-layout .flow-heading h1 { font-size: 36px; }
  .auth-layout .flow-panel { padding: 22px; }
  .auth-links { flex-wrap: wrap; }
  .flow-heading .lede { font-size: 14px; }
  .btn { font-size: 13px; padding: 13px 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  .client-page { animation: 0.35s ease 0s 1 normal both running content-arrive; }
}
@keyframes content-arrive { 
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0px); }
}
@media print {
  .app-header, .client-footer, .btn, .skip { display: none !important; }
  .client-page { padding: 0px; max-width: none; }
  .flow-panel { border: 0px; padding: 0px; }
  body { background: rgb(255, 255, 255) !important; color: rgb(17, 17, 17) !important; }
  .client-page * { color: rgb(17, 17, 17) !important; }
}
.client-footer a { min-width: 44px; justify-content: center; }
html { scroll-padding-top: 130px; scroll-padding-bottom: 130px; }
.client-page a, .client-page button, .client-page input { scroll-margin-top: 130px; scroll-margin-bottom: 130px; }
@media (min-width: 701px) and (max-width: 950px) {
  .auth-layout { grid-template-columns: minmax(0px, 1fr); max-width: 520px; }
  .auth-scene { display: none; }
}
.client-footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 20px 24px; font-size: 12px; }
.client-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.client-app .brand svg { fill: var(--ink); }
.auth-layout { column-gap: 68px; }
.auth-layout .lc-auth-scene { display: block; height: 560px; border-radius: 38px; background: radial-gradient(at 8% 15%, rgb(255, 249, 239) 0px, transparent 50%), radial-gradient(at 88% 80%, rgb(200, 190, 176) 0px, transparent 46%), linear-gradient(155deg, rgb(245, 238, 226), rgb(221, 214, 203)); overflow: hidden; perspective: 1100px; isolation: isolate; }
.lc-auth-scene::after { content: ""; position: absolute; inset: auto -10% -35% -20%; height: 52%; background: radial-gradient(rgba(170, 160, 139, 0.333), transparent 65%); pointer-events: none; }
.auth-layout .telegram-signin, .lc-signup .telegram-signin { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgb(8, 123, 181); border-color: rgb(8, 123, 181); color: rgb(255, 255, 255); min-height: 52px; font-size: 14px; box-shadow: rgba(255, 255, 255, 0.15) 0px 1px 0px inset; }
.telegram-signin .telegram-mark { fill: currentcolor; width: 24px; height: 24px; flex-shrink: 0; }
.auth-layout .telegram-signin:hover, .lc-signup .telegram-signin:hover { background: rgb(6, 107, 158); border-color: rgb(6, 107, 158); filter: none; }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0px, 420px) minmax(0px, 1fr); gap: 36px; }
  .auth-layout .lc-auth-scene { height: 530px; }
}
@media (max-width: 850px) {
  .auth-layout { display: block; max-width: 480px; margin: 20px auto 35px; }
  .auth-layout .lc-auth-scene { display: none; }
}
.auth-layout .lc-auth-scene { display: block; height: 560px; max-width: 660px; width: 100%; margin-inline: auto; background: transparent; border: 0px; border-radius: 0px; box-shadow: none; overflow: visible; isolation: auto; perspective: none; position: relative; }
.lc-auth-scene::after { display: none; }
.lc-auth-scene::before { content: ""; position: absolute; inset: -24px -28px; background-image: var(--login-hero); background-size: contain; background-repeat: no-repeat; background-position: center center; pointer-events: none; }
:root { --hero-light: url("images/login-light.webp"); --hero-dark: url("images/login-dark.webp"); }
body { --login-hero: var(--hero-light); }
body[data-theme="dark"] { --login-hero: var(--hero-dark); }
body[data-theme="light"] { --login-hero: var(--hero-light); }
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) { --login-hero: var(--hero-dark); }
}
@media (max-width: 1100px) {
  .auth-layout .lc-auth-scene { height: 490px; }
  .lc-auth-scene::before { inset: -10px -15px; }
}
@media (max-width: 800px) {
  .auth-layout .lc-auth-scene { display: none; }
}
@media (max-width: 560px) {
}
.flow-notice { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 22px 0; font-size: 14px; line-height: 1.65; }
.flow-notice > svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.flow-notice p { margin: 6px 0 0; }
.flow-notice.warn { background: var(--wait-bg); color: var(--wait-ink); border-color: var(--wait-line); }

/* ---- Portal additions (U3, D180): what the static prototype did with JavaScript or did not need ---- */
/* The theme switch is a plain link (no JavaScript): with no saved choice the page shows the link that matches the system theme. */
.lc-header-settings .theme-switch { display: inline-flex; align-items: center; gap: 6px; }
.lc-header-settings .theme-switch[data-when="light"] { display: none; }
@media (prefers-color-scheme: light) {
  .lc-header-settings .theme-switch[data-when="light"] { display: inline-flex; }
  .lc-header-settings .theme-switch[data-when="dark"] { display: none; }
}
/* The Telegram sign-up confirmation, the Telegram failure page and the two «not available» pages (D187 page by page; auth/telegram_*.html,
   auth/unavailable.html): the prototype's single column (flow/telegram-confirm, invalid-link), the warning about a second account, the
   form's two buttons one under the other, the reason code as a code. */
.lc-tg.auth-single { max-width: 520px; margin: 48px auto 60px; }
.lc-tg .flow-heading h1 { font-size: clamp(32px, 4vw, 42px); overflow-wrap: break-word; text-wrap: pretty; }
.lc-tg .flow-panel > :last-child { margin-bottom: 0; }
.lc-tg .flow-notice { margin: 0 0 20px; }
.lc-tg .flow-notice p { margin: 0; }
.lc-tg .flow-notice a, .lc-tg .flow-panel > p a { color: var(--accent); }
.lc-tg .auth-form { margin-top: 22px; }
.lc-tg .auth-form .field { margin-bottom: 20px; }
.lc-tg .lc-tg-actions { display: grid; gap: 12px; }
.lc-tg .lc-tg-actions .btn { width: 100%; }
.lc-tg .flow-panel > .lc-tg-actions { margin-top: 20px; }
.lc-tg .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .lc-tg.auth-single { margin: 20px auto; }
  .lc-tg .flow-notice { padding: 16px; gap: 10px; }
}
/* The Telegram sign-in is a POST form (CSRF), styled like the prototype's link. */
.auth-layout .flow-panel > form.telegram-form { margin: 0; }
.auth-layout .flow-panel > form.telegram-form > .btn { width: 100%; }
.auth-layout .flow-notice { margin: 0 0 18px; }
.field input[type="text"], .field input[type="password"] { width: 100%; }
/* ---- The e-mail sign-up and recovery pages (D187 page by page; the design's flow/register, check-email, recovery, recovery-sent, reset
   and invalid-link: one centred column, .auth-single there): auth/register.html, check_email.html, register_complete.html, forgot.html,
   reset.html and link_invalid.html. Every rule under their root, .lc-signup. ---- */
.lc-signup { max-width: 520px; margin: 48px auto 60px; }
.lc-signup .flow-panel > .flow-notice:first-child { margin: 0 0 18px; }
.lc-signup .flow-panel > p:last-child { margin-bottom: 0; }
.lc-signup .flow-panel > p + .field-help { margin-top: 4px; }
.lc-signup .flow-panel > .field-help + form { margin-top: 18px; }
.lc-signup form > .field-help { margin: -8px 0 22px; }
.lc-signup .field > .field-help { margin: 0; }
.lc-signup .button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.lc-signup .lc-signup-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.lc-signup .lc-signup-links .text-link { font-size: 14px; }
.lc-signup .telegram-form + .field-help { margin: 12px 0 0; text-align: center; }
.lc-signup .flow-panel > form[action="/cabinet/register"] > .btn { width: 100%; }
@media (max-width: 700px) {
  .lc-signup { margin: 20px auto; }
  .lc-signup .button-row .btn { width: 100%; }
}
/* D207 stage 2, the Telegram view: the frame puts data-tg-app on <body> inside the Mini App (presentation only). One marker rule: an
   element marked data-tg-only shows only there, one marked data-tg-hide only outside it (the sign-in page: no password and no Telegram
   sign-in inside the Mini App). The same rule is in cabinet.css. */
body:not([data-tg-app]) [data-tg-only], body[data-tg-app] [data-tg-hide] { display: none !important; }
