/* ES.app timesheet 1.7.1 - one stylesheet, colours from the Telegram theme
   (--tg-theme-*) with light/dark fallbacks for a normal browser. */

:root {
  --fb-bg: #efeff4;
  --fb-card: #ffffff;
  --fb-text: #16191d;
  --fb-hint: #6d7378;
  --fb-link: #2481cc;
  --fb-button: #2481cc;
  --fb-button-text: #ffffff;
  --fb-danger: #d93a3a;
  --fb-sep: rgba(0, 0, 0, 0.09);

  --holiday-bg: rgba(255, 159, 10, 0.16);
  --holiday-text: #a85600;
  --warn-bg: #fff3dc;
  --warn-border: #e9a93a;
  --info-bg: rgba(36, 129, 204, 0.1);
  --sel-bg: rgba(36, 129, 204, 0.09);
  --lodge: #1f8a66;
  --ok: #23905a;
  --toast-bg: #24282e;
  --toast-text: #ffffff;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  --backdrop: rgba(0, 0, 0, 0.42);

  --app-vh: 100vh;
  --kbd: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-scheme='light'] { color-scheme: light; }
[data-scheme='dark'] {
  color-scheme: dark;
  --fb-bg: #0f151c;
  --fb-card: #1b2530;
  --fb-text: #e9edf1;
  --fb-hint: #8d99a6;
  --fb-link: #6ab3f3;
  --fb-button: #3a8fde;
  --fb-button-text: #ffffff;
  --fb-danger: #ff6b6b;
  --fb-sep: rgba(255, 255, 255, 0.09);

  --holiday-bg: rgba(255, 170, 60, 0.17);
  --holiday-text: #ffb65c;
  --warn-bg: rgba(240, 181, 74, 0.14);
  --warn-border: rgba(240, 181, 74, 0.55);
  --info-bg: rgba(106, 179, 243, 0.13);
  --sel-bg: rgba(106, 179, 243, 0.11);
  --lodge: #4cc795;
  --ok: #4cc795;
  --toast-bg: #f1f3f5;
  --toast-text: #16191d;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  --backdrop: rgba(0, 0, 0, 0.58);
}

: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-button));
  --accent-text: var(--tg-theme-button-text-color, var(--fb-button-text));
  --danger: var(--tg-theme-destructive-text-color, var(--fb-danger));
  --sep: var(--tg-theme-section-separator-color, var(--fb-sep));
  --field-bg: var(--bg);
  --top-inset: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  /* Secondary text. Telegram's hint colour is often too light (#999 on white
     = 2.8:1), so it is mixed from the text and card colours of the current
     theme instead: about 5.5-9:1 in light and dark themes (WCAG AA). Engines
     without color-mix() use the full text colour. */
  --muted: var(--text);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root { --muted: color-mix(in srgb, var(--text) 72%, var(--card)); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.mono, .money { font-variant-numeric: tabular-nums; }
.mono { letter-spacing: 0.02em; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* ---------- boot ---------- */
.boot { min-height: var(--app-vh); display: flex; align-items: center; justify-content: center; }
.spinner { width: 32px; height: 32px; 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); } }

/* ---------- layout ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: var(--app-vh); }
.content { padding: 8px 12px calc(24px + var(--safe-bottom) + var(--toast-space, 0px)); }
.card { background: var(--card); border-radius: 16px; padding: 8px; margin-bottom: 10px; }

/* ---------- buttons ---------- */
.icon-btn {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 0;
}
.icon-btn:active { background: var(--sep); }
.icon-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
}
.btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: var(--field-bg); color: var(--link); }
.btn:disabled { opacity: 0.55; }
.btn:active:not(:disabled) { filter: brightness(0.94); }
.btn-chip {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}
.btn-chip.strong { background: var(--card); }
.link-btn {
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--link);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.link-btn.small { font-size: 13px; }

/* ---------- header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: calc(2px + var(--top-inset)) 8px 6px;
  border-bottom: 1px solid var(--sep);
}
.hdr-row { display: flex; align-items: center; gap: 2px; min-height: 44px; }
.hdr-month { font-size: 18px; font-weight: 700; min-width: 132px; text-align: center; white-space: nowrap; }
.hdr-spacer { flex: 1; }
.hdr-totals { gap: 6px; margin-top: 2px; }
.hdr-sum {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  background: var(--card);
  text-align: left;
  font-size: 15px;
}
.hdr-sum b { font-weight: 700; white-space: nowrap; }
.hdr-sum-item { white-space: nowrap; }
.hdr-sum-label { color: var(--muted); font-weight: 500; }
.hdr-sum.is-loading b { opacity: 0.45; }
.stale-badge {
  flex: none;
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--holiday-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- banners ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 14px;
}
.banner-text { flex: 1; padding: 8px 0; }
.banner-warn { background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-border); }
.banner-info { background: var(--info-bg); }

/* ---------- month calendar ---------- */
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-hd { text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); padding: 2px 0 4px; }
.cal-hd.weekend { color: var(--holiday-text); }
.cal-week { padding: 2px; border-radius: 12px; }
.cal-week.selected { background: var(--sel-bg); }
.cal-cell {
  position: relative;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 0 3px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}
.cal-cell.blank { pointer-events: none; }
.cal-cell:active { background: var(--sep); }
.cal-num { font-size: 15px; font-weight: 600; line-height: 1.2; }
.cal-cell.weekend .cal-num { color: var(--holiday-text); }
.cal-cell.holiday { background: var(--holiday-bg); }
.cal-cell.holiday .cal-num { color: var(--holiday-text); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-mark { font-size: 13px; line-height: 1.2; min-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.2px; }
.cal-cell.k-worked .cal-mark { color: var(--link); font-weight: 600; }
.cal-cell.k-off .cal-mark, .cal-cell.k-pending .cal-mark { color: var(--muted); }
.cal-lodge { position: absolute; top: 3px; right: 3px; color: var(--lodge); }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 8px 6px 2px;
  font-size: 13px;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend svg { color: var(--lodge); }
.lg-hours { color: var(--link); }
.lg-off { color: var(--muted); font-weight: 400; }
.lg-holiday { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--holiday-bg); box-shadow: inset 0 0 0 1px var(--holiday-text); }

/* ---------- week list ---------- */
.week { padding: 4px 0 0; }
.week-head { display: flex; align-items: center; padding: 0 4px; }
.week-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.week-title b { font-size: 16px; }
.day-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 60px;
  padding: 10px 14px;
  border: none;
  border-top: 1px solid var(--sep);
  background: transparent;
  text-align: left;
}
.day-row:active { background: var(--sel-bg); }
.day-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.day-date { font-weight: 600; font-size: 15px; }
.day-row.weekend .day-date, .day-row.holiday .day-date { color: var(--holiday-text); }
.day-row.today .day-date::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.day-line { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.day-row.k-worked .day-line:first-of-type, .day-row.k-pending .day-line:first-of-type { color: var(--text); }
.day-line.note { color: var(--link); font-size: 13px; }
.day-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 42%; text-align: right; }
.day-hours { font-size: 16px; color: var(--link); white-space: nowrap; font-variant-numeric: tabular-nums; }
.day-bonus, .day-pending { font-size: 13px; color: var(--muted); }
.day-lodge { color: var(--lodge); }
.tag { align-self: flex-start; font-size: 13px; padding: 1px 8px; border-radius: 8px; margin: 2px 0; }
.tag-holiday { background: var(--holiday-bg); color: var(--holiday-text); }

/* ---------- sheets ---------- */
.sheet-layer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--kbd);
}
.sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); animation: fade 0.18s ease-out; }
.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  max-height: calc(var(--app-vh) - 16px);
  max-height: min(calc(100% - 16px), calc(var(--app-vh) - 16px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
  animation: slide-up 0.22s ease-out;
}
.sheet-layer-full .sheet { height: calc(var(--app-vh) - 16px); }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }
.sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 16px;
  border-bottom: 1px solid var(--sep);
}
.sheet-titles { flex: 1; min-width: 0; padding: 4px 0; }
.sheet-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.sheet-subtitle { font-size: 13px; color: var(--muted); }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* --toast-space: room for the messages at the bottom while they are shown
     (Toasts.jsx), so the sheet's own buttons can be scrolled above them */
  padding: 12px 16px calc(20px + var(--safe-bottom) + var(--toast-space, 0px));
}
.sheet-actions { display: grid; gap: 8px; margin-top: 18px; }
.sheet-menu-wrap { position: relative; }
.menu-backdrop { position: fixed; inset: 0; z-index: 1; }
.menu-pop {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 2;
  min-width: 210px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-item {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 15px;
}
.menu-item.danger { color: var(--danger); }

/* ---------- form ---------- */
.field { margin-top: 12px; }
.field label, .label-row > label:first-child, .section-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.section-title { margin-top: 18px; }
.req { font-weight: 400; }
input[type='text'], input[type='tel'], input[type='time'], select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 16px; /* 16px: iOS does not zoom into the field */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type='time'] { text-align: left; font-variant-numeric: tabular-nums; }
input[type='time']::-webkit-date-and-time-value { text-align: left; }
select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
select:disabled, input:disabled { opacity: 0.6; }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.invalid { border-color: var(--danger) !important; }
.attention { border-color: var(--warn-border) !important; }
.field-error { margin-top: 4px; font-size: 13px; color: var(--danger); }
.inline-error, .inline-warn { margin: 4px 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.inline-error { background: var(--warn-bg); color: var(--text); }
.inline-warn { background: var(--warn-bg); }
.note-box { padding: 8px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--info-bg); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-top: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid3 .field { margin-top: 6px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label-row > label:first-child { margin-bottom: 0; }
.check { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; margin: 0 !important; font-size: 14px !important; color: var(--text) !important; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

.segmented { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--field-bg); }
.segmented button {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button.on { background: var(--accent); color: var(--accent-text); }

.net-line { margin-top: 14px; font-size: 15px; }
.net-line.muted b { color: var(--muted); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  margin-top: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--sep);
  border-bottom: 1px solid var(--sep);
  cursor: pointer;
}
.switch-text { display: flex; flex-direction: column; }
.switch-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.switch-title svg { color: var(--lodge); }
input.switch {
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 16px;
  background: var(--sep);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: background 0.15s;
  box-shadow: inset 0 0 0 1px var(--sep);
}
input.switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
input.switch:checked { background: var(--ok); }
input.switch:checked::before { transform: translateX(20px); }

.splits { display: grid; gap: 10px; }
.split { padding: 10px; border-radius: 12px; border: 1px solid var(--sep); }
.split-time { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.split-time select { flex: 1; min-width: 0; }
.split-sum { font-size: 14px; color: var(--muted); }
.split-sum.ok { color: var(--ok); }

.api-box { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--field-bg); font-size: 14px; }

.phone-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px; }

/* ---------- payout ---------- */
.pay-total { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; }
.pay-total > span:first-child { color: var(--muted); font-size: 14px; }
.pay-total b { font-size: 28px; font-weight: 700; }
.pay-section { margin-top: 18px; }
.pay-section h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid var(--sep);
  font-size: 15px;
}
.kv > span:last-child, .kv > b:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv.sub { padding-left: 12px; color: var(--muted); font-size: 14px; }
.kv.strong { font-weight: 600; }
.kv.total { border-bottom: none; font-size: 17px; }
.kv-top { align-items: flex-start; }
.kv-list { display: flex; flex-direction: column; align-items: flex-end; white-space: normal !important; }
.kv-hint { padding: 4px 0 4px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pay-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 4px 6px; }
.pay-table td { padding: 8px 4px; border-top: 1px solid var(--sep); vertical-align: top; }
.pay-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-table tr.holiday td:first-child .nowrap { color: var(--holiday-text); }
.pay-table tfoot td { font-weight: 700; }
.pay-table th:first-child, .pay-table td:first-child { padding-left: 0; }
.pay-table th:last-child, .pay-table td:last-child { padding-right: 0; }
.reimb { padding: 10px; margin-bottom: 8px; border: 1px solid var(--sep); border-radius: 12px; display: grid; gap: 8px; }
.reimb-row { display: flex; gap: 8px; align-items: center; }
.reimb-amount { flex: 1; }
.reimb-admin { margin-top: 12px; }

/* ---------- week review ---------- */
.review-list { margin-bottom: 8px; }
.review-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sep);
}
.review-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-date { font-weight: 600; font-size: 15px; }
.review-row.holiday .review-date { color: var(--holiday-text); }
.review-text { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.review-side { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--link); font-size: 15px; }
.review-side svg { color: var(--lodge); }

/* ---------- full screen ---------- */
.fullscreen {
  min-height: var(--app-vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--top-inset)) 20px calc(24px + var(--safe-bottom) + var(--toast-space, 0px));
}
.fs-card { width: 100%; max-width: 420px; display: grid; gap: 12px; text-align: center; }
.fs-icon { color: var(--link); display: flex; justify-content: center; }
.fs-card h1 { font-size: 21px; line-height: 1.3; }
.fs-card p { margin: 0; color: var(--muted); font-size: 15px; }
.fs-card p:last-of-type { margin-bottom: 8px; }
.fullscreen .btn-secondary { background: var(--card); }

/* ---------- toasts (bottom, above every sheet) ----------
   Inside Telegram the web view ends above the MainButton, so the bottom of
   the page is always visible; the safe area and the keyboard are added. */
.toasts {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(12px + var(--safe-bottom) + var(--kbd));
  z-index: 5000;
  display: grid;
  gap: 6px;
  max-width: 544px;
  margin: 0 auto;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 14px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-text);
  box-shadow: var(--shadow);
  font-size: 15px;
  animation: fade 0.18s ease-out;
}
.toast-error { box-shadow: var(--shadow), inset 4px 0 0 var(--fb-danger); }
.toast-success { box-shadow: var(--shadow), inset 4px 0 0 var(--ok); }
.toast-text { flex: 1; padding: 8px 0; }
.toast-btn {
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border: none;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.toast-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: inherit;
  opacity: 0.75;
}
