/* Пандора: стили виджета записи (общие для сайта и мини-приложения).
   Цвета берутся из токенов страницы: --ink, --paper, --card, --card-2, --gold, --gold-ink, --muted, --line. */
.bk { display: grid; gap: 18px; }
.bk-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab { flex: none; padding: 11px 18px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s, transform .15s; }
.bk-tab:active { transform: scale(.96); }
.bk-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.bk-about { color: var(--muted); font-size: 15px; }
.bk-about span { display: block; color: var(--ink); font-weight: 600; margin-top: 2px; }
.bk-list { list-style: none; display: grid; gap: 6px; }
.bk-svc { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: var(--card); text-align: left; transition: background-color .2s, transform .15s; }
.bk-svc:hover { background: var(--card-2); }
.bk-svc:active { transform: scale(.99); }
.bk-svc-n { font-weight: 600; font-size: 16px; min-width: 0; }
.bk-svc-n small, .bk-svc-m small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.bk-svc-m { flex: none; text-align: right; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.bk-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 16px; border-radius: 12px; background: var(--card); }
.bk-sum b { font-size: 16px; }
.bk-sum span { color: var(--muted); font-size: 14.5px; }
.bk-link { margin-left: auto; font-weight: 600; font-size: 14.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.bk-h { font-size: 15px; font-weight: 700; margin-bottom: -8px; }
.bk-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; scroll-behavior: smooth; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { flex: none; width: 58px; padding: 9px 0 8px; border-radius: 12px; background: var(--card); display: grid; justify-items: center; gap: 1px; transition: background-color .2s, color .2s; }
.bk-day b { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bk-day small { font-size: 12px; color: var(--muted); }
.bk-day[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bk-day[aria-pressed="true"] small { color: inherit; opacity: .75; }
.bk-day:disabled { opacity: .35; cursor: not-allowed; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.bk-slot { padding: 12px 0; border-radius: 10px; background: var(--card); font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; transition: background-color .2s, transform .15s; }
.bk-slot:hover { background: var(--card-2); }
.bk-slot:active { transform: scale(.96); }
.bk-slot[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.bk-loading span { height: 46px; border-radius: 10px; background: var(--card); animation: bk-pulse 1.2s ease-in-out infinite; }
@keyframes bk-pulse { 50% { opacity: .45; } }
.bk-hint { color: var(--muted); font-size: 15px; }
.bk-demo { font-size: 13.5px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--card); }
.bk-form { display: grid; gap: 14px; }
.bk-f { display: grid; gap: 6px; }
.bk-f > span { font-size: 14px; font-weight: 600; }
.bk-f > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.bk-f input, .bk-f textarea { width: 100%; padding: 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .2s; }
.bk-f textarea { resize: vertical; min-height: 64px; }
.bk-f input:focus, .bk-f textarea:focus { border-color: var(--gold); }
.bk-f em { display: none; font-style: normal; font-size: 13px; color: #B3261E; }
.bk-f.bad input { border-color: #B3261E; } .bk-f.bad em { display: block; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.bk-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.bk-check.bad { color: #B3261E; }
.bk-btn { display: inline-flex; justify-content: center; align-items: center; padding: 16px 26px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 16px; transition: transform .15s, background-color .2s; }
.bk-btn:hover { background: var(--gold-2, var(--gold)); }
.bk-btn:active { transform: scale(.97); }
.bk-btn:disabled { opacity: .6; }
.bk-form .bk-btn { width: 100%; }
.bk-ghost { background: var(--card); color: var(--ink); }
.bk-error { color: #B3261E; font-size: 14.5px; }
.bk-done { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.bk-done h4 { font-size: 22px; }
.bk-done svg { width: 52px; height: 52px; }
.bk-done circle, .bk-done path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.bk-done circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: bk-draw .8s ease forwards; }
.bk-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: bk-draw .5s .45s ease forwards; }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .bk-loading span, .bk-done circle, .bk-done path { animation: none; stroke-dashoffset: 0; } }
