/* Систра — мобильный диалект Уробороса.
   Токены, типографика и «тарелка» взяты из общего слоя nautiloid, но сетка
   здесь одна: телефон, колонка до 520 px. Никаких десктопных таблиц.
   Файл — снимок, а не копия nautiloid.css: форк живёт своей жизнью. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ground: #fbf7f2;
  --plate: #fffdfa;
  --text: #2a2521;
  --quiet: #7d746c;
  --rule: #e7ded4;
  --ok: #a8562f;
  --ok-bg: #b4623c;
  --on-ok: #fff;
  --ok-soft: #f4e3d8;
  --act: #b3261e;
  --gold: #c9880f;
  --shadow: 0 1px 2px rgba(42, 37, 33, 0.05), 0 8px 24px rgba(42, 37, 33, 0.06);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1815;
    --plate: #252019;
    --text: #f1e9e0;
    --quiet: #a89a8d;
    --rule: #3a322b;
    --ok: #e6a381;
    --ok-bg: #b4623c;
    --on-ok: #fff;
    --ok-soft: #3a2a22;
    --act: #ef847b;
    --gold: #d9a441;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

/* Атрибут hidden должен побеждать любой авторский display: у .sync стоит
   inline-flex, и без этого пустая пилюля оставалась на экране входа. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 16px/1.45 var(--sans);
  background: var(--ground);
  color: var(--text);
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  font-size: 26px;
  margin: 14px 0 4px;
}

.h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

p {
  margin: 0 0 8px;
}

a {
  color: var(--ok);
}

.muted {
  color: var(--quiet);
}

.small {
  font-size: 12.5px;
}

.center {
  text-align: center;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.boot {
  text-align: center;
  padding: 30vh 0;
  color: var(--quiet);
  font-family: var(--serif);
  font-size: 24px;
}

.ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* --- шапка и вкладки ---------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand small {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
  padding: 0;
}

.icon-btn:active {
  background: var(--ok-soft);
}

.sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--quiet);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--plate);
  border: 1px solid var(--rule);
  white-space: nowrap;
}

.sync .ico {
  width: 15px;
  height: 15px;
}

.sync--ok {
  color: var(--quiet);
}

.sync--wait {
  color: var(--gold);
}

.sync--off {
  color: var(--quiet);
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--plate);
  border-top: 1px solid var(--rule);
}

.tabs a {
  flex: 1;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 500;
}

.tabs a[aria-current="page"] {
  color: var(--ok);
  background: var(--ok-soft);
}

.tabs .ico {
  width: 22px;
  height: 22px;
}

/* --- карточки и строки -------------------------------------------------- */

.card {
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin: 12px 0;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.rows .row {
  margin: 0;
  padding: 10px 12px;
}

.row .what {
  flex: 1;
  min-width: 0;
}

.row .chev {
  color: var(--quiet);
  display: grid;
  place-items: center;
}

.row .chev .ico {
  width: 18px;
  height: 18px;
}

.meal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.meals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.meal.addslot {
  width: 100%;
  text-align: left;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  color: var(--quiet);
  font: inherit;
  cursor: pointer;
  min-height: 64px;
}

.meal.addslot:active {
  background: var(--ok-soft);
}

.meal.is-eaten {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--rule));
}

.check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--plate);
  display: grid;
  place-items: center;
  color: var(--on-ok);
  padding: 0;
  cursor: pointer;
}

.check[aria-pressed="true"] {
  background: var(--ok-bg);
  border-color: var(--ok-bg);
}

.check .ico {
  width: 16px;
  height: 16px;
}

.meal-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.what {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.what .slot {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--quiet);
}

.what .name {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.what .macros,
.what .meta {
  font-size: 12.5px;
  color: var(--quiet);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dots {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--quiet);
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.dots:active {
  background: var(--ok-soft);
}

.dots .ico {
  width: 20px;
  height: 20px;
}

.plus {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
}

.plus .ico {
  width: 18px;
  height: 18px;
}

/* --- тарелка ------------------------------------------------------------ */

.plate {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--s);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.plate--sm {
  width: 44px;
  height: 44px;
}

.plate--md {
  width: 64px;
  height: 64px;
}

.plate--lg {
  width: 104px;
  height: 104px;
}

.plate-in {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: var(--plate);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.plate-in b {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.plate-in small {
  font-size: 7px;
  color: var(--quiet);
  margin-top: 1px;
}

.plate--sm .plate-in small {
  display: none;
}

.plate--lg .plate-in b {
  font-size: 20px;
}

.plate--lg .plate-in small {
  font-size: 9px;
}

/* --- сегодня ------------------------------------------------------------ */

.dayhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 4px;
}

.dayhead.small {
  padding: 6px 0;
}

.dayhead-mid {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.dayhead-mid h1 {
  font-size: 22px;
  margin: 0;
}

.dayhead-mid h2 {
  font-size: 17px;
  margin: 0;
}

.dayhead-mid p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--quiet);
}

.pager {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--plate);
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.pager:active {
  background: var(--ok-soft);
}

.pager .ico {
  width: 20px;
  height: 20px;
}

.totals-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.totals-head b {
  font-family: var(--serif);
  font-size: 24px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 62px 1fr 92px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-row .k {
  color: var(--quiet);
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--rule);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--ok-bg);
  border-radius: 3px;
}

.bar i.over {
  background: var(--act);
}

.bar-row .v {
  text-align: right;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.macros-row {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

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

.weekhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 2px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 10px 0 4px;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 0 5px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--quiet);
  border: 1px solid transparent;
  min-height: 62px;
}

.day.on {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 25%, transparent);
}

.day .wd {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day .dd {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.day.today .dd {
  font-weight: 700;
}

.dots3 {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  height: 4px;
}

.dots3 i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule);
}

.dots3 i.f {
  background: currentColor;
}

.weekgrid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.wg-row {
  display: grid;
  grid-template-columns: 52px repeat(3, 1fr);
  gap: 6px;
  align-items: stretch;
}

.wg-day {
  font-size: 11px;
  color: var(--quiet);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.wg-day.today {
  color: var(--ok);
  font-weight: 600;
}

.wg-cell {
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  padding: 8px 6px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: transparent;
  color: var(--quiet);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  min-height: 40px;
}

.wg-cell.filled {
  border-style: solid;
  background: var(--plate);
  color: var(--text);
}

.wg-cell .ico {
  width: 14px;
  height: 14px;
}

/* --- рецепты ------------------------------------------------------------ */

.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 4px;
}

.pagehead h1 {
  margin: 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--quiet);
  text-decoration: none;
  font-size: 14px;
}

.back .ico {
  width: 18px;
  height: 18px;
}

.recipehead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 2px;
}

.recipehead h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1.15;
}

.recipehead p {
  margin: 4px 0 0;
}

.kbju {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 0;
}

.kbju div {
  background: var(--ground);
  border-radius: 12px;
  padding: 8px 10px;
}

.kbju dt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--quiet);
}

.kbju dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.kbju dd small {
  display: block;
  font-size: 11px;
  color: var(--quiet);
  font-weight: 400;
}

.comp {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.comp i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}

.comp span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comp b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.comp b small {
  color: var(--quiet);
  font-weight: 400;
}

.steps {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
}

.template {
  font: 13px/1.5 var(--mono);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0;
}

.howto p:last-child {
  margin-bottom: 0;
}

/* --- поля и кнопки ------------------------------------------------------ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.field > span {
  font-size: 11.5px;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--plate);
  color: var(--text);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.4;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--plate);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px);
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.btn.go {
  background: var(--ok-bg);
  border-color: var(--ok-bg);
  color: var(--on-ok);
}

.btn.quiet {
  background: transparent;
}

.btn.danger {
  color: var(--act);
  border-color: color-mix(in srgb, var(--act) 30%, var(--rule));
}

.btn.wide {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.form-actions .btn {
  flex: 1 1 auto;
}

.chiprow {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.chiprow::-webkit-scrollbar {
  display: none;
}

.chiprow.center {
  justify-content: center;
}

.chip {
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--plate);
  color: var(--quiet);
  white-space: nowrap;
  cursor: pointer;
  min-height: 36px;
}

.chip[aria-pressed="true"] {
  background: var(--ok-bg);
  border-color: var(--ok-bg);
  color: var(--on-ok);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0 12px;
  margin: 10px 0;
}

.search .ico {
  width: 18px;
  height: 18px;
  color: var(--quiet);
  flex: 0 0 18px;
}

.search input {
  font: inherit;
  font-size: 16px;
  border: 0;
  background: transparent;
  padding: 11px 0;
  width: 100%;
  color: var(--text);
  outline: none;
}

/* --- проверки импорта --------------------------------------------------- */

.issues {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 13.5px;
}

.issues p {
  margin: 0 0 4px;
  font-weight: 600;
}

.issues ul {
  margin: 0;
  padding-left: 18px;
}

.issues.bad {
  background: color-mix(in srgb, var(--act) 10%, transparent);
  color: var(--act);
}

.issues.warn {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--text);
}

.empty {
  text-align: center;
  padding: 22px 14px;
}

.empty p {
  margin: 0 0 12px;
  color: var(--quiet);
}

.empty.small {
  padding: 14px;
}

/* --- вход --------------------------------------------------------------- */

.login {
  max-width: 360px;
  margin: 12vh auto 0;
  text-align: center;
}

.login h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.login form {
  text-align: left;
}

.error {
  color: var(--act);
  font-size: 14px;
}

/* --- шторка ------------------------------------------------------------- */

.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  margin: auto auto 0;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
}

.sheet::backdrop {
  background: rgba(20, 15, 12, 0.4);
}

.sheet-card {
  background: var(--plate);
  color: var(--text);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 19px;
}

.sheet-head p {
  margin: 2px 0 0;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.label {
  font-size: 11.5px;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 4px;
}

.confirm-text {
  font-size: 16px;
  margin: 6px 0 14px;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.pick-row.static {
  cursor: default;
  background: var(--ground);
}

.pick-row:active {
  background: var(--ground);
}

.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-day {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-date {
  width: 52px;
  font-size: 13px;
  color: var(--quiet);
}

.plan-slots {
  display: flex;
  gap: 6px;
  flex: 1;
}

.plan-slots .chip {
  flex: 1;
  min-height: 40px;
}

/* --- тост --------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  background: var(--text);
  color: var(--ground);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet-card {
    animation: sheet-in 0.18s ease-out;
  }
  @keyframes sheet-in {
    from {
      transform: translateY(12px);
      opacity: 0.6;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
