/* Shcrab Пульт — screen layout and screen-level pieces (from the approved mockups). */
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overscroll-behavior: none; }
button { font: inherit; }
/* App shell: one screen inside the Telegram viewport */
.app { position: relative; width: 100%; height: var(--tg-viewport-stable-height, 100vh); display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-weight: 300; font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.app p, .app h1, .app h2, .app h3 { margin: 0; }
.scroll > * { flex-shrink: 0; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-6); padding-bottom: var(--space-6); }
.block { display: flex; flex-direction: column; }
.pad { padding: 0 var(--space-4); }
.mainbar { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-6); background: var(--bg); box-shadow: inset 0 1px 0 var(--line); }
.mainbar-row { display: flex; gap: var(--space-2); }
.mainbar-row > * { flex: 1; }
a.sc-tab { text-decoration: none; }
a.sc-list-row { color: inherit; }
.sc-btn > span { white-space: nowrap; }

/* Decision card on Сьогодні */
.decision { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); margin: 0 var(--space-4); }
.decision + .decision { margin-top: var(--space-2); }
.decision__q { font-size: 15px; line-height: 24px; font-weight: 400; }
.decision__ctx { font-size: 13px; line-height: 21px; color: var(--muted); margin-top: 6px; }
.decision__btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.decision__note { font-size: 12px; line-height: 18px; color: var(--muted); }
.time { font-size: 15px; line-height: 20px; font-weight: 400; font-variant-numeric: tabular-nums; width: 48px; flex: none; }

/* Person head on the card */
.person { display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-4); }
.person__avatar { width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--surface-2); display: grid; place-items: center; font-size: 18px; font-weight: 400; flex: none; }
.person__name { font-family: var(--font-display); font-size: 26px; line-height: 26px; text-transform: uppercase; }
.person__meta { color: var(--muted); font-size: 13px; line-height: 20px; margin-top: var(--space-2); }

/* Key-value rows */
.kv { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 44px; box-sizing: border-box; align-items: center; }
.kv + .kv { box-shadow: inset 0 1px 0 var(--line); }
.kv__k { color: var(--muted); font-size: 13px; line-height: 20px; flex: none; }
.kv__v { font-size: 14px; line-height: 22px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.link { color: var(--accent-ink); text-decoration: none; font-weight: 400; }

/* Participation slider */
.slider { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--space-4); scrollbar-width: none; }
.slide { flex: 0 0 326px; scroll-snap-align: center; background: var(--surface); border-radius: var(--radius-md); display: flex; flex-direction: column; overflow: hidden; }
.slide__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-2); }
.slide__title { font-family: var(--font-display); font-size: 17px; line-height: 20px; text-transform: uppercase; }
.slide__sub { padding: 0 var(--space-4); font-size: 11px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: var(--space-3); }
.slide__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-3) var(--space-4) var(--space-4); }
.dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: var(--space-3); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); border: 0; padding: 0; cursor: pointer; }
.dot[aria-current="true"] { width: 18px; border-radius: 3px; background: var(--accent); }

/* Contact rows */
.contact__icon { width: 36px; height: 36px; flex: none; border-radius: var(--radius-pill); background: var(--surface-2); display: grid; place-items: center; }
.contact__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Accordion (schedule) */
.acc { background: var(--surface); border-radius: var(--radius-md); margin: 0 var(--space-4); overflow: hidden; }
.acc + .acc { margin-top: var(--space-2); }
.acc__head { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: var(--space-3) var(--space-4); border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.acc__caret { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0; flex: none; }
.acc[data-open="true"] .acc__caret { transform: rotate(-135deg); margin-top: 4px; }
.acc__body { box-shadow: inset 0 1px 0 var(--line); }

/* Chips for multi-choice filters */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 400 13px/18px var(--font-text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Radio rows */
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); box-sizing: border-box; flex: none; display: grid; place-items: center; }
[aria-checked="true"] > .radio { border-color: var(--accent); }
[aria-checked="true"] > .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Month switcher */
.month { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.month__btn { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.month__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.month__label { font-size: 15px; line-height: 20px; font-weight: 400; }

/* Progress bar (paid of charged) */
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.toast-wrap { position: absolute; left: 16px; right: 16px; bottom: 112px; display: flex; justify-content: center; }

/* The Shcrab mark (vector trace of the site's raster mark) */
.mark { display: block; color: var(--ink); }
.mark path { fill: currentColor; }
.mark--empty { width: 72px; height: 72px; opacity: 0.35; }

/* Loading: the //. motif lights up under the Shcrab mark */
.loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); }
.loader__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); opacity: 0.35; }
.loader .mark { position: relative; width: 96px; height: 96px; }
.slashes { position: relative; display: flex; gap: 2px; margin: 0; font-family: var(--font-display); font-size: 44px; line-height: 44px; }
.slashes span { opacity: 0.15; animation: sc-slash 1.4s ease-in-out infinite; }
.slashes span:nth-child(2) { animation-delay: 0.2s; }
.slashes span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sc-slash { 0%, 100% { opacity: 0.15; color: var(--ink); } 30% { opacity: 1; color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .slashes span { animation: none; opacity: 1; } }

.acc[data-open="false"] .acc__body { display: none; }
.sc-segmented a { flex: 1; min-height: 34px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font: 400 13px/18px var(--font-text); text-decoration: none; }
.sc-segmented a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

