/* Общие части экранов. Цвета — только из tokens.css. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.screen { position: relative; width: 100%; overflow: hidden; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Логотип: настоящий текст, Manrope 800 */
.logo { display: block; font-weight: 800; letter-spacing: -.045em; color: var(--white); line-height: 1; white-space: nowrap; }
.logo i { font-style: normal; color: var(--logo-accent); }

/* Нажатое и наведённое состояния: вуаль поверх элемента */
.tap { position: relative; transition: transform .12s; }
.tap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: transparent; pointer-events: none; transition: background .12s; }
@media (hover: hover) { .tap:hover::after { background: var(--hover-veil); } }
.tap:active::after { background: var(--press-veil); }
.tap:active { transform: scale(.985); }
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 1px; }

/* Круглая панель с обводкой (дата и т. п.) */
.pillbar { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: var(--r-pill); }

/* Переключатель */
.seg { display: grid; grid-template-columns: 118fr 118fr 116fr; height: 34px; border-radius: var(--r-seg); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: grid; place-items: center; border-radius: var(--r-seg); font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--seg-on); }

/* Основная кнопка */
.btn-main { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-text); font-weight: 800; }

/* Строка-карточка с обводкой */
.rowcard { display: flex; align-items: center; height: 66px; border: 1px solid var(--line); border-radius: var(--r-card); }

/* Нижнее меню */
.dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: var(--dock-bg); }
.dock__items { display: grid; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.dock a[aria-current] { color: var(--accent-dock); }

/* Всплывающая подсказка: действие без своего экрана, как в макете */
.toast { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 88px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--plate); color: var(--ink); font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* Свои окна выбора: список и календарь */
.pk { position: fixed; z-index: 95; inset: 0; display: flex; align-items: flex-end; background: var(--scrim-2); }
.pk__sheet { width: 100%; max-height: 70vh; overflow-y: auto; padding: 12px 16px 20px; border-radius: 24px 24px 0 0; background: var(--plate-6); }
.pk__o { display: block; width: 100%; height: 46px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.pk__h { display: flex; align-items: center; justify-content: space-between; height: 44px; font-size: 15px; }
.pk__h button { width: 44px; height: 44px; font-size: 22px; text-align: center; }
.pk__g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.pk__g small { color: var(--ink-2); font-size: 12px; line-height: 28px; }
.pk__g button { height: 42px; border-radius: 21px; text-align: center; font-size: 14px; }
.pk__g button:active { background: var(--accent-book); }

/* Точка логотипа на макете круглая и крупнее глифа шрифта */
.logo-dot { display: inline-block; width: .235em; height: .235em; margin-left: .03em; border-radius: 50%; background: var(--logo-accent); }
