/* 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: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  background: linear-gradient(145deg,#fffaf0,#d7b475);
  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 svg { display: none; }
.page-heading .icon::after { content: "Б"; font-size: 26px; font-weight: 650; }
.layout-container form.gap-10 { gap: 1.75rem; }
