/* Besednik MAS branding — gold glass theme */
:root {
  --besednik-ink: #3d3024;
  --besednik-muted: #7d6e5d;
  --besednik-gold: #89612e;
  --besednik-gold-hover: #704b21;
  --besednik-line: rgba(255,255,255,.78);
  --besednik-glass: rgba(255,250,240,.76);
  --cpd-color-text-primary: var(--besednik-ink);
  --cpd-color-text-secondary: var(--besednik-muted);
  --cpd-color-bg-canvas-default: rgba(255,252,246,.82);
  --cpd-color-bg-canvas-disabled: rgba(238,226,207,.68);
  --cpd-color-bg-subtle-primary: rgba(222,199,159,.48);
  --cpd-color-bg-subtle-secondary: rgba(255,250,240,.58);
  --cpd-color-bg-action-primary-rest: var(--besednik-gold);
  --cpd-color-bg-action-primary-hovered: var(--besednik-gold-hover);
  --cpd-color-bg-action-primary-pressed: #5f3f1b;
  --cpd-color-border-interactive-primary: rgba(119,89,49,.44);
  --cpd-color-border-interactive-secondary: rgba(119,89,49,.24);
  --cpd-color-border-interactive-hovered: var(--besednik-gold);
  --cpd-color-border-focused: #a5783b;
}
html { min-height: 100%; background: #efe3d1; }
body {
  min-height: 100%;
  color: var(--besednik-ink);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255,255,255,.88), transparent 36%),
    radial-gradient(ellipse at 88% 10%, rgba(224,188,128,.44), transparent 35%),
    radial-gradient(ellipse at 74% 88%, rgba(201,158,91,.34), transparent 42%),
    linear-gradient(145deg,#faf6ee 0%,#e8d7b9 48%,#d9b675 100%);
  background-attachment: fixed;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
body::before {
  width: 42rem; height: 42rem; left: -18rem; bottom: -21rem;
  background: rgba(255,255,255,.36);
}
body::after {
  width: 32rem; height: 32rem; right: -12rem; top: -17rem;
  background: rgba(164,116,52,.17);
}
.besednik-brand {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 24px auto -8px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--besednik-ink);
  font-weight: 650;
  letter-spacing: -.02em;
}
.besednik-brand__mark {
  width: 38px; height: 38px;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: #005438;
  box-shadow: inset 0 1px 1px #fff,0 8px 24px rgba(87,59,25,.16);
  color: #69461f;
  font-size: 18px;
}
.besednik-brand__name { font-size: 18px; }
.layout-container,
#root > [class*="_layout-container_"] {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  min-height: auto;
  margin: 24px auto 40px;
  padding: 34px;
  border: 1px solid var(--besednik-line);
  border-radius: 32px;
  background: linear-gradient(145deg,rgba(255,253,248,.86),rgba(246,228,196,.62));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95),0 24px 70px rgba(76,53,25,.16);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
}
.page-heading .title, h1, h2 { letter-spacing: -.035em; }
.page-heading .title { font-size: clamp(2rem,7vw,2.7rem); color: var(--besednik-ink); }
.page-heading .text { color: var(--besednik-muted); line-height: 1.55; }
.cpd-button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.cpd-button:hover { transform: translateY(-1px); }
.cpd-button[data-kind="primary"] {
  background: linear-gradient(135deg,#98703a,#765025);
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 8px 20px rgba(95,63,27,.18);
}
.cpd-button[data-kind="secondary"] {
  background: rgba(255,252,246,.68);
  border-color: rgba(116,82,39,.28);
}
.cpd-text-control, input, textarea, select {
  background: rgba(255,252,246,.72);
  border-color: rgba(116,82,39,.3);
}
[class*="_user_"], .session-card, .cpd-alert {
  border-color: rgba(255,255,255,.82);
  outline-color: rgba(116,82,39,.2);
  border-radius: 20px;
  background: rgba(255,252,246,.56);
  box-shadow: inset 0 1px rgba(255,255,255,.88),0 10px 26px rgba(86,61,31,.08);
}
[class*="_nav-bar_"] { border-color: rgba(116,82,39,.18); }
[class*="_nav-tab_"]::before { background-color: var(--besednik-gold) !important; }
.besednik-home-copy { text-align: center; display: grid; gap: 12px; }
.besednik-home-copy .eyebrow {
  color: #8b714e; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.besednik-home-copy h1 { font-size: clamp(2.3rem,9vw,3.6rem); line-height: 1; }
.besednik-home-copy p { color: var(--besednik-muted); line-height: 1.55; }
.besednik-session {
  margin: 2px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  background: rgba(255,252,246,.54);
}
.besednik-actions { display: grid; gap: 10px; }
.besednik-guidance {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(153,112,54,.22);
  border-radius: 22px;
  background: rgba(255,248,235,.55);
}
.besednik-guidance h2 {
  margin: 0;
  font-size: 1.2rem;
}
.besednik-guidance p {
  margin: 0;
  color: var(--besednik-muted);
  line-height: 1.5;
}
.besednik-primary-link,
.besednik-secondary-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.besednik-primary-link {
  color: #fff;
  background: linear-gradient(135deg,#98703a,#765025);
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 8px 20px rgba(95,63,27,.18);
}
.besednik-secondary-link {
  color: var(--besednik-ink);
  border: 1px solid rgba(116,82,39,.28);
  background: rgba(255,252,246,.68);
}
.besednik-login-methods {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(153,112,54,.22);
  border-radius: 22px;
  background: rgba(255,248,235,.55);
}
.besednik-login-methods h2,
.besednik-login-methods p {
  margin: 0;
}
.besednik-login-methods p,
.besednik-login-methods small {
  color: var(--besednik-muted);
  line-height: 1.5;
}
.besednik-login-methods__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .besednik-login-methods__actions {
    grid-template-columns: 1fr;
  }
}
.besednik-tip {
  padding: 14px 16px;
  border-left: 4px solid var(--besednik-gold);
  border-radius: 12px;
  background: rgba(255,252,246,.7);
  color: var(--besednik-ink);
  line-height: 1.5;
}
.besednik-registration-note {
  margin: 0;
  color: var(--besednik-muted);
  font-size: .92rem;
  line-height: 1.5;
}
.besednik-expired-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.besednik-restart-link,
.besednik-back-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.besednik-restart-link {
  color: #fff;
  background: linear-gradient(135deg,#98703a,#765025);
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 8px 20px rgba(95,63,27,.18);
}
.besednik-back-link {
  color: var(--besednik-ink);
  border: 1px solid rgba(116,82,39,.28);
  background: rgba(255,252,246,.68);
}
.besednik-recovery {
  padding: 20px;
  border: 1px solid rgba(153,112,54,.22);
  border-radius: 22px;
  background: rgba(255,248,235,.55);
}
.besednik-recovery [class*="_description_"] { line-height: 1.55; }
footer { color: var(--besednik-muted); }
@media (max-width: 620px) {
  .besednik-brand { margin-top: 16px; }
  .layout-container,
  #root > [class*="_layout-container_"] {
    width: calc(100vw - 20px);
    margin: 14px auto 24px;
    padding: 24px 20px;
    border-radius: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.page-heading .icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  background: linear-gradient(145deg,#fffaf0,#d7b475);
  box-shadow: inset 0 1px 1px #fff,0 12px 30px rgba(87,59,25,.14);
  color: #69461f;
}
.page-heading .icon { border-radius: 12px; background: url('/assets/besednik-logo-20261008-256.png') center / contain no-repeat; }
/* MAS portals must stay above our z-index:1 account glass card. */
[data-vaul-overlay],
[class*="_scroll-container_"] {
  z-index: 100;
}
[data-vaul-drawer] {
  z-index: 101;
}
.page-heading .icon svg { display: none; }
.layout-container form.gap-10 { gap: 1.75rem; }

/* Four approved Besednik themes, shared presentation only, no auth behavior. */
html{--auth-bg:linear-gradient(145deg,#faf6ee,#e8d7b9 48%,#d9b675);--auth-panel:linear-gradient(145deg,#fffdf8e0,#f6e4c49e);--auth-field:#fffcf6d9;--auth-border:#77593140;--auth-accent:#89612e;--auth-hover:#704b21;--auth-on-accent:#fff;--auth-art:url('/besednik-brand/auth-theme-20261013-3/themes/honey-ajour.webp');--auth-art-opacity:.07}
html[data-besednik-brand=green]{--besednik-ink:#2d4036;--besednik-muted:#526a5b;--auth-bg:linear-gradient(150deg,#f1f6f4,#e6efe8 40%,#c7dbce);--auth-panel:linear-gradient(145deg,#fbfdfbe8,#e5efe5c9);--auth-field:#f7fbf7e0;--auth-border:#416a5140;--auth-accent:#496e58;--auth-hover:#35563f;--auth-art:url('/besednik-brand/auth-theme-20261013-3/themes/oak-canopy.webp');--auth-art-opacity:.075}
html[data-besednik-brand=folk]{--besednik-ink:#342b25;--besednik-muted:#766357;--auth-bg:linear-gradient(145deg,#faf5e9,#eee4d2 55%,#dfd0b7);--auth-panel:linear-gradient(145deg,#fffaf0ed,#f1e7d7d6);--auth-field:#fffbf2df;--auth-border:#8f483d40;--auth-accent:#913e32;--auth-hover:#743024;--auth-art:url('/besednik-brand/auth-theme-20261013-3/themes/mezen.webp');--auth-art-opacity:.055}
html[data-besednik-brand=forest]{color-scheme:dark;--besednik-ink:#f4efdf;--besednik-muted:#c0cdbf;--auth-bg:linear-gradient(145deg,#172c29,#0c201b 60%,#17291e);--auth-panel:linear-gradient(145deg,#1c332ef2,#10251feb);--auth-field:#0c211bd9;--auth-border:#b3c9b145;--auth-accent:#bba26c;--auth-hover:#d2bd8b;--auth-on-accent:#10211a;--auth-art:url('/besednik-brand/auth-theme-20261013-3/themes/forest-hut-20261011-v1.webp');--auth-art-opacity:.12;--besednik-line:#b3c9b133}
html[data-besednik-brand]{background:var(--auth-bg);--besednik-gold:var(--auth-accent);--besednik-gold-hover:var(--auth-hover);--cpd-color-text-primary:var(--besednik-ink);--cpd-color-text-secondary:var(--besednik-muted);--cpd-color-bg-canvas-default:var(--auth-field);--cpd-color-bg-canvas-disabled:var(--auth-panel);--cpd-color-bg-subtle-primary:var(--auth-panel);--cpd-color-bg-subtle-secondary:var(--auth-field);--cpd-color-bg-action-primary-rest:var(--auth-accent);--cpd-color-bg-action-primary-hovered:var(--auth-hover);--cpd-color-bg-action-primary-pressed:var(--auth-hover);--cpd-color-border-interactive-primary:var(--auth-border);--cpd-color-border-interactive-secondary:var(--auth-border);--cpd-color-border-interactive-hovered:var(--auth-accent);--cpd-color-border-focused:var(--auth-accent)}
html[data-besednik-brand] body{background:var(--auth-bg);color:var(--besednik-ink)}
html[data-besednik-brand] body::before{inset:0;width:auto;height:auto;border-radius:0;background:var(--auth-art) center/cover no-repeat;opacity:var(--auth-art-opacity);filter:none}
html[data-besednik-brand] body::after{display:none}
html[data-besednik-brand] .layout-container,html[data-besednik-brand] #root>[class*="_layout-container_"]{background:var(--auth-panel);border-color:var(--auth-border)}
html[data-besednik-brand] .cpd-text-control,html[data-besednik-brand] input,html[data-besednik-brand] textarea,html[data-besednik-brand] select{background:var(--auth-field);border-color:var(--auth-border);color:var(--besednik-ink)}
html[data-besednik-brand] .cpd-button[data-kind=primary],html[data-besednik-brand] .besednik-primary-link,html[data-besednik-brand] .besednik-restart-link{background:var(--auth-accent);color:var(--auth-on-accent)}
html[data-besednik-brand] .cpd-button[data-kind=secondary],html[data-besednik-brand] .besednik-secondary-link,html[data-besednik-brand] .besednik-back-link{background:var(--auth-field);border-color:var(--auth-border);color:var(--besednik-ink)}
html[data-besednik-brand] .besednik-session,html[data-besednik-brand] .besednik-guidance,html[data-besednik-brand] .besednik-login-methods,html[data-besednik-brand] .besednik-tip,html[data-besednik-brand] .besednik-recovery,html[data-besednik-brand] [class*="_user_"],html[data-besednik-brand] .session-card,html[data-besednik-brand] .cpd-alert{background:var(--auth-field);border-color:var(--auth-border);color:var(--besednik-ink)}
.besednik-phone-availability{font-size:.875rem;line-height:1.45;color:var(--besednik-muted);margin:0}

/* One layout for login, account, admission and phone verification. */
html[data-besednik-brand] {
  --auth-width: 32.5rem;
  --auth-radius: 24px;
  --auth-icon-bg: color-mix(in srgb, var(--auth-accent) 15%, var(--auth-field));
  --auth-error: #a02d28;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-besednik-brand=forest] {
  --besednik-ink: #f0f0e9;
  --besednik-muted: #b2bfbd;
  --auth-bg: linear-gradient(160deg, #101c22, #0c1419 70%, #182423);
  --auth-panel: #162025f2;
  --auth-field: #202d32;
  --auth-border: #556667;
  --auth-accent: #c8b590;
  --auth-hover: #dbcaac;
  --auth-on-accent: #182021;
  --auth-error: #ffb4a4;
}
html[data-besednik-brand] body {
  margin: 0;
  min-height: 100svh;
}
.besednik-brand {
  box-sizing: border-box;
  display: flex;
  width: min(calc(100% - 32px), var(--auth-width));
  margin: 20px auto 12px;
  gap: 10px;
}
.besednik-brand__mark {
  width: 36px;
  height: 36px;
  box-shadow: none;
}
html[data-besednik-brand] :is(.layout-container, #root > [class*="_layout-container_"]) {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--auth-width));
  margin: 0 auto 28px;
  padding: clamp(16px, 4.4vw, 28px);
  border-radius: var(--auth-radius);
  box-shadow: 0 12px 32px #00000016;
  gap: 18px;
}
.page-heading {
  margin: 0;
  gap: 10px;
}
.page-heading .title, .besednik-flow h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.14;
  color: var(--besednik-ink);
}
html:is([data-besednik-brand=gold], [data-besednik-brand=folk]) :is(.page-heading .title, .besednik-flow h1) {
  font-family: Georgia, "Times New Roman", serif;
}
.page-heading .icon, .besednik-flow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: var(--auth-icon-bg);
  color: var(--auth-accent);
}
.page-heading .icon svg, .besednik-flow-icon svg {
  width: 24px;
  height: 24px;
}
.page-heading .text, .besednik-flow :is(p, small) {
  margin: 0;
  line-height: 1.5;
}
.besednik-flow {
  display: grid;
  align-content: start;
}
.besednik-flow form, .besednik-flow .flow-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}
.besednik-flow :where(input:not([type=hidden]), select, button, .flow-action) {
  box-sizing: border-box;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  font: inherit;
  color: var(--besednik-ink);
  background: var(--auth-field);
}
.besednik-flow label {
  font-weight: 600;
}
.besednik-flow :is(button, .flow-action) {
  cursor: pointer;
  font-weight: 650;
  text-align: center;
}
.besednik-flow .flow-primary {
  border-color: transparent;
  background: var(--auth-accent);
  color: var(--auth-on-accent);
}
.besednik-flow .flow-primary:hover {
  background: var(--auth-hover);
}
.besednik-flow .flow-action {
  display: grid;
  align-items: center;
  text-decoration: none;
}
.besednik-flow :is(input, select, button, a):focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}
.besednik-flow small, .besednik-flow .flow-hint {
  color: var(--besednik-muted);
}
.besednik-flow .phone-entry {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-field);
}
.besednik-flow .phone-entry:focus-within {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}
.besednik-flow .phone-entry input {
  border: 0;
  outline: 0;
  background: transparent;
}
.besednik-flow .phone-code {
  padding: 0 12px;
  border-right: 1px solid var(--auth-border);
  font-weight: 700;
}
.besednik-flow .phone-error {
  color: var(--auth-error);
}
.besednik-flow .phone-call {
  display: grid;
  gap: 8px;
}
.besednik-flow a:not(.flow-primary) {
  color: var(--besednik-ink);
}
.besednik-owner-card {
  display: grid;
  gap: 12px;
}
.besednik-flow [hidden], .besednik-owner-card [hidden] {
  display: none;
}

/* The account UI supplies its own component styles. Use the same palette on those surfaces. */
html[data-besednik-brand] #root :is([class*="_user_"], .session-card, [role=dialog], [role=alertdialog]) {
  color: var(--besednik-ink);
  background: var(--auth-field);
  border-color: var(--auth-border);
  border-radius: 16px;
  box-shadow: none;
}
html[data-besednik-brand] #root [class*="_user_"] {
  padding: 12px;
  outline-color: var(--auth-border);
}
html[data-besednik-brand] #root [class*="_nav-bar_"] {
  border-color: var(--auth-border);
}
html[data-besednik-brand] #root :is([class*="_avatar_"], .cpd-avatar) {
  background-color: var(--auth-icon-bg);
  color: var(--besednik-ink);
}
html[data-besednik-brand] #root :is(h1, h2, h3, legend, label) {
  color: var(--besednik-ink);
}
.besednik-login-methods__actions {
  gap: 8px;
}
@media (max-width: 480px) {
  .besednik-brand {
    margin-top: 14px;
    margin-bottom: 10px;
  }
  html[data-besednik-brand] :is(.layout-container, #root > [class*="_layout-container_"]) {
    gap: 14px;
  }
}
/* Exact UserGreeting React card only: technical Matrix ID is not presentation content. */
._user_lnqhg_8 ._meta_lnqhg_19 ._mxid_lnqhg_36{display:none!important}
