/* Семейный календарь — Telegram Mini App. Цвета — из темы Telegram (--tg-theme-*),
   свои значения только запасные: светлые, тёмные по data-scheme или настройке системы. */

:root {
  --fb-bg: #f1f2f6;
  --fb-card: #ffffff;
  --fb-text: #16181d;
  --fb-hint: #868b95;
  --fb-link: #2d7be5;
  --fb-accent: #2d7be5;
  --fb-accent-text: #ffffff;
  --fb-sep: rgba(22, 24, 29, 0.08);
  --fb-danger: #e5484d;
}

:root[data-scheme="dark"] {
  --fb-bg: #0f1013;
  --fb-card: #1b1c21;
  --fb-text: #f1f2f4;
  --fb-hint: #8b909a;
  --fb-link: #5aa0f7;
  --fb-accent: #4b8ff0;
  --fb-sep: rgba(255, 255, 255, 0.08);
  --fb-danger: #ff6369;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) {
    --fb-bg: #0f1013;
    --fb-card: #1b1c21;
    --fb-text: #f1f2f4;
    --fb-hint: #8b909a;
    --fb-link: #5aa0f7;
    --fb-accent: #4b8ff0;
    --fb-sep: rgba(255, 255, 255, 0.08);
    --fb-danger: #ff6369;
  }
}

:root {
  --bg: var(--tg-theme-secondary-bg-color, var(--fb-bg));
  --card: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, var(--fb-card)));
  --text: var(--tg-theme-text-color, var(--fb-text));
  --hint: var(--tg-theme-hint-color, var(--fb-hint));
  --link: var(--tg-theme-link-color, var(--fb-link));
  --accent: var(--tg-theme-button-color, var(--fb-accent));
  --accent-text: var(--tg-theme-button-text-color, var(--fb-accent-text));
  --sep: var(--tg-theme-section-separator-color, var(--fb-sep));
  --danger: var(--tg-theme-destructive-text-color, var(--fb-danger));
  --danger-tint: rgba(229, 72, 77, 0.13);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 12px;
  --radius: 14px;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.35 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* только у html: overflow у body сделал бы его прокручиваемым, и шапка перестала бы липнуть */
html { overflow-x: hidden; }
html.locked, html.locked body { overflow: hidden; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 6px var(--gutter) 2px;
  max-width: 760px;
  margin: 0 auto;
}
.top.scrolled { box-shadow: 0 1px 0 var(--sep); }
.top::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  opacity: 0;
}
.loading .top::after { opacity: 1; animation: progress 1.1s ease-in-out infinite; }
@keyframes progress {
  0% { left: 0; width: 0; }
  50% { left: 20%; width: 60%; }
  100% { left: 100%; width: 0; }
}

.bar { display: flex; align-items: center; min-height: 48px; }
.title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-btn { min-height: 44px; padding: 0 4px; flex: none; }
.today-btn span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--card);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}
.today-btn.is-current span { color: var(--hint); }
.icon-btn {
  width: 40px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--link);
  border-radius: 12px;
}
.icon-btn:active, .today-btn:active span { opacity: 0.6; }

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 13px;
  background: var(--card);
}
.seg button {
  min-height: 44px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.15s, color 0.15s;
}
.seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-text); }

.chips {
  display: flex;
  gap: 6px;
  margin: 2px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: 44px; flex: none; display: inline-flex; align-items: center; }
.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px 0 11px;
  border-radius: 16px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.chip[aria-pressed="true"] .chip-pill {
  background: linear-gradient(var(--tint), var(--tint)), var(--card);
  box-shadow: inset 0 0 0 1.5px var(--c);
  font-weight: 600;
}

/* ---------- основа ---------- */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  min-height: 60vh;
  transition: opacity 0.2s;
}
.loading main { opacity: 0.55; transition-delay: 0.15s; }

.foot { margin: 22px 8px 4px; text-align: center; font-size: 12px; color: var(--hint); }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 72px 24px;
  text-align: center;
}
.state-title { font-size: 18px; font-weight: 700; }
.state-text { color: var(--hint); max-width: 300px; }
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--sep);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-align: center;
}
.btn-wide { display: block; width: 100%; min-height: 50px; font-size: 16px; margin-top: 16px; }

.badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--danger-tint);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
/* «кто везёт Лёву?»: красная метка, текст основным цветом — красный текст на розовом читается плохо */
.badge::before, .tl-ev .w::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--danger);
  vertical-align: 1px;
}

/* ---------- карточка события (неделя, день в месяце) ---------- */

.ev {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  background: linear-gradient(var(--tint), var(--tint)), var(--card);
  box-shadow: inset 4px 0 0 var(--c);
  text-align: left;
}
.ev:active { filter: brightness(0.96); }
.ev.warn { box-shadow: inset 4px 0 0 var(--c), inset 0 0 0 1.5px var(--danger); }
.ev-time {
  width: 44px;
  flex: none;
  font-size: 13px;
  line-height: 19px;
  font-variant-numeric: tabular-nums;
}
.ev-time b { display: block; font-weight: 600; }
.ev-time span { display: block; color: var(--hint); }
.ev-time.allday { color: var(--hint); font-size: 12px; line-height: 16px; padding-top: 2px; }
.ev-body { flex: 1; min-width: 0; }
.ev-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-meta {
  margin-top: 1px;
  font-size: 13px;
  line-height: 18px;
  color: var(--hint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- неделя ---------- */

.day-sec { margin-top: 16px; }
.day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
}
.is-today > .day-head { color: var(--link); }
.pill {
  padding: 1px 8px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}
.day-empty {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed var(--sep);
  font-size: 13px;
  color: var(--hint);
}
.day-empty.is-today { border-style: solid; border-color: var(--accent); }
.day-empty.is-today span:first-child { color: var(--link); font-weight: 600; }
.empty-card {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  color: var(--hint);
  font-size: 14px;
  text-align: center;
}

/* ---------- день ---------- */

.allday { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.allday .ev { padding-top: 8px; padding-bottom: 8px; }
.day-note { margin: 12px 4px 0; color: var(--hint); font-size: 14px; }
.timeline {
  position: relative;
  margin-top: 10px;
  border-radius: var(--radius);
  background: var(--card);
}
.hour { position: absolute; left: 50px; right: 0; height: 1px; background: var(--sep); }
.hour span {
  position: absolute;
  left: -44px;
  top: -8px;
  font-size: 11px;
  line-height: 16px;
  color: var(--hint);
  font-variant-numeric: tabular-nums;
}
.tl-area { position: absolute; top: 0; bottom: 0; left: 54px; right: 6px; }
.tl-ev {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 3px 6px 3px 9px;
  border-radius: 8px;
  background: linear-gradient(var(--tint), var(--tint)), var(--card);
  box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--card);
  overflow: hidden;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
}
.tl-ev.warn { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1.5px var(--danger), 0 0 0 1px var(--card); }
.tl-ev .t { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev .m { display: block; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tl-ev .w { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ev.short { flex-direction: row; align-items: baseline; gap: 6px; padding-top: 1px; padding-bottom: 1px; }
.tl-ev.short .t { flex: 0 1 auto; min-width: 0; }
.tl-ev.short .m { flex: 0 1000 auto; min-width: 0; }   /* узкий блок: сначала сжимается время, название видно */
.now { position: absolute; left: 50px; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.now::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

/* ---------- месяц ---------- */

.month { margin-top: 6px; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.mhead {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hint);
  text-align: center;
  text-transform: uppercase;
}
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mcell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  min-height: 62px;
  padding: 3px 2px 4px;
  border-top: 1px solid var(--sep);
}
.mnum {
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mcell.out .mnum { color: var(--hint); opacity: 0.6; }
.mcell.out .mpill, .mcell.out .mmore { opacity: 0.45; }
.mcell.sel .mnum { box-shadow: inset 0 0 0 1.5px var(--text); font-weight: 700; }
.mcell.today .mnum { background: var(--accent); color: var(--accent-text); font-weight: 700; box-shadow: none; }
.mpill {
  display: block;
  height: 15px;
  padding: 0 2px 0 4px;
  border-radius: 3px;
  background: linear-gradient(var(--tint), var(--tint)), var(--card);
  box-shadow: inset 2px 0 0 var(--c);
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.mpill.warn { box-shadow: inset 2px 0 0 var(--c), inset 0 0 0 1px var(--danger); }
.mmore { padding-left: 4px; font-size: 10px; line-height: 12px; color: var(--hint); font-weight: 600; }
.mmore.warn { color: var(--danger); }

/* ---------- списки: группы, галочки ---------- */

.tgroup { margin-top: 16px; }
.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
}
.count {
  margin-left: auto;
  min-width: 22px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--card);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.tlist { border-radius: var(--radius); background: var(--card); overflow: hidden; }
.tlist.first { margin-top: 12px; }

/* вся строка — чекбокс; квадрат 26px в зоне 44px */
.check-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 4px 14px 4px 4px;
  text-align: left;
}
.check-row + .check-row {      /* разделитель — от текста, не через галочку */
  background-image: linear-gradient(var(--sep), var(--sep));
  background-position: 52px 0;
  background-size: 100% 1px;
  background-repeat: no-repeat;
}
.check-row:active { background-color: var(--sep); }
.box { position: relative; flex: none; width: 48px; height: 44px; }
.box::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--hint);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.box::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  width: 7px;
  height: 13px;
  border: solid var(--accent-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.check-row[aria-checked="true"] .box::before { background: var(--accent); box-shadow: none; }
.check-row[aria-checked="true"] .box::after { opacity: 1; transform: rotate(45deg); }
.check-row[aria-busy="true"] .box::before { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.cr-body { flex: 1; min-width: 0; padding: 6px 0; }
.cr-title { display: block; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.cr-meta { display: block; margin-top: 1px; font-size: 13px; line-height: 18px; color: var(--hint); overflow-wrap: anywhere; }
.cr-meta.soon { color: var(--link); font-weight: 600; }
.cr-meta.bad { color: var(--danger); font-weight: 600; }
.cr-qty { flex: none; max-width: 40%; margin-left: 10px; font-size: 14px; color: var(--hint); text-align: right; overflow-wrap: anywhere; }
.check-row[aria-checked="true"] .cr-title { color: var(--hint); text-decoration: line-through; }
.check-row[aria-checked="true"] .cr-meta.soon, .check-row[aria-checked="true"] .cr-meta.bad { color: var(--hint); font-weight: 400; }

/* свёрнутый блок «Куплено» / «Сделано» / «Подарено» */
.fold {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
}
.chev {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.fold[aria-expanded="true"] .chev { transform: rotate(45deg); }
.tlist.done .cr-title { font-size: 15px; }
.tlist.done .check-row[aria-checked="true"] .box::before { opacity: 0.6; }

/* ---------- списки: чипы, карточки ---------- */

.chip-n { font-size: 12px; font-weight: 600; color: var(--hint); font-variant-numeric: tabular-nums; }
.chip.sub .chip-pill { padding: 0 13px; }
.chip.sub[aria-pressed="true"] .chip-pill { background: var(--accent); color: var(--accent-text); box-shadow: none; font-weight: 600; }
.chip.sub[aria-pressed="true"] .chip-n { color: inherit; opacity: 0.8; }
.chip.plain .chip-pill { padding: 0 13px; }
.chip.plain[aria-pressed="true"] .chip-pill { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--link); font-weight: 600; }
main .chips { margin-top: 6px; }
main .seg { margin-top: 10px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }

.state.small { padding: 40px 24px 24px; }
.note { margin: 8px 4px 0; font-size: 13px; line-height: 18px; color: var(--hint); }

.cards { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.card { padding: 12px 14px; border-radius: var(--radius); background: var(--card); transition: opacity 0.2s; }
.card.busy { opacity: 0.75; }
.card-title { font-size: 16px; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
.card-meta { margin-top: 2px; font-size: 14px; color: var(--hint); overflow-wrap: anywhere; }
.card-notes { margin-top: 4px; font-size: 14px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-notes.review { color: var(--hint); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--hint);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.tag.who { background: linear-gradient(var(--tint), var(--tint)), var(--card); color: var(--text); }
.tag.mine { background: var(--accent); color: var(--accent-text); }
.tag.ok { background: rgba(52, 199, 89, 0.16); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.abtn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));   /* где нет color-mix — var(--bg) */
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.abtn.primary { background: var(--accent); color: var(--accent-text); }
.abtn.quiet { flex: 0 1 auto; background: none; color: var(--hint); font-weight: 500; }
.abtn:active { opacity: 0.6; }
/* подпись у ссылок на Google Maps (условия Google: «Google Maps» не переводим и не прячем) */
.gattr { margin: 6px 2px 0; font-size: 11px; line-height: 14px; color: var(--hint); }
.stars { display: flex; margin: 4px 0 0 -8px; }
.star { width: 44px; height: 44px; font-size: 28px; line-height: 44px; text-align: center; color: var(--hint); opacity: 0.35; }
.star.on { color: #f5a524; opacity: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.94);
  color: #fff;
  font-size: 14px;
  line-height: 19px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* в тёмной теме фон страницы почти как у тоста — светлее и с каймой, чтобы ошибку было видно */
:root[data-scheme="dark"] .toast { background: rgba(58, 58, 60, 0.97); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) .toast { background: rgba(58, 58, 60, 0.97); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.5); }
}

/* ---------- шторка события ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-width: 600px;
  max-height: 86vh;
  margin: 0 auto;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px 18px 0 0;
  background: var(--card);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.26s;
}
.sheet.open { transform: none; visibility: visible; transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.grab { width: 38px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--hint); opacity: 0.35; }
.sh-head { padding-left: 14px; box-shadow: inset 4px 0 0 var(--c); }
.sh-title { font-size: 21px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sh-when { margin-top: 3px; color: var(--hint); font-size: 15px; }
.sh-head .badge { margin-top: 8px; }
.sh-rows { margin-top: 16px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.sh-row { padding: 10px 14px; }
.sh-row + .sh-row { border-top: 1px solid var(--sep); }
.sh-label { font-size: 12px; color: var(--hint); }
.sh-value { margin-top: 1px; font-size: 15px; overflow-wrap: anywhere; }
.sh-row.notes .sh-value { white-space: pre-wrap; }
.sh-dots { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: 1px; }
.sh-dots .dot { width: 8px; height: 8px; }
.sheet .foot { margin-top: 12px; }
.sheet .actions { margin-top: 12px; }
.sheet .actions .abtn { flex: 1 1 0; }

/* ---------- /terms ---------- */

.terms { max-width: 640px; min-height: 0; padding: 24px 16px 32px; }
.terms h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.terms p { margin: 0; font-size: 16px; line-height: 1.5; }
.terms a { color: var(--link); }
