/* Staypo — the owner's cabinet. One style sheet; colours are the approved tokens below. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-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 {
  --bg: #f7f1ea;
  --surface: #fffdfa;
  --text: #2b211c;
  --muted: #6b5d54;
  --border: #e8dccd;
  --accent: #1f6f5c;
  --on-accent: #ffffff;
  --accent-hover: #195c4c;
  --nav-active-bg: #e3efea;
  --nav-active-text: #165446;
  --weekend: #f6eee4;
  --today: #e7f1ec;
  --confirmed: #c0392b;
  --on-confirmed: #ffffff;
  --hold: #e8a33d;
  --on-hold: #2b1a05;
  --ical: #d8cbbb;
  --on-ical: #3a2e26;
  --ical-edge: #8f8070;
  /* service tokens (not in the palette): errors, warnings */
  --danger: #b42318;
  --danger-bg: #fbeceb;
  --warning-bg: #fdf3e1;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-btn-lg: 12px;
  --radius-bar: 10px;
  --tap: 44px;
  --gutter: 24px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 12px;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- the frame: top bar (computer), bottom bar (phone) ---------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}
.logo:hover {
  text-decoration: none;
}
/* The logo is one file, app/web/static/logo.svg: the same mark as the icons and letters. */
.logo-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
}
.topnav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.topnav a {
  padding: 9px 14px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 600;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.topnav a:hover {
  background: var(--weekend);
  text-decoration: none;
}
.topnav a[aria-current="page"] {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.account {
  position: relative;
  margin-left: auto;
}
.account > summary {
  list-style: none;
  cursor: pointer;
}
.account > summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  background: var(--nav-active-bg);
  border: 1px solid var(--border);
  color: var(--nav-active-text);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgb(43 33 28 / 12%);
  padding: 8px;
}
.menu-head {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.menu a,
.menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: var(--tap);
  border-radius: var(--radius-btn);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.menu a:hover,
.menu button:hover {
  background: var(--weekend);
  text-decoration: none;
}
.menu form {
  margin: 0;
}
.env-label {
  background: var(--warning-bg);
  color: var(--on-hold);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head .subtitle {
  color: var(--muted);
  margin: 6px 0 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.bottomnav,
.fab,
.mobile-head {
  display: none;
}

/* ---------- buttons and controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--weekend);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-btn-lg);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-bg);
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
}
.btn-icon {
  width: var(--tap);
  padding: 0;
}
.btn-block {
  width: 100%;
  /* a long label wraps instead of widening the page (a phone at 360 px) */
  white-space: normal;
  text-align: center;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn-lg);
  background: var(--surface);
}
.segmented a {
  min-height: var(--tap);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
}
.segmented a:hover {
  text-decoration: none;
  color: var(--text);
}
.segmented a[aria-current="true"] {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}

/* ---------- cards, stats, lists ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.card + .card {
  margin-top: 16px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
/* «Усі»: a full tap target without making the card's head taller */
.card-head > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: -10px 0;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid > .card + .card {
  margin-top: 0;
}
.card + .grid,
.grid + .grid,
.grid + .card {
  margin-top: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  min-width: 0;
}
.stat-label {
  font-weight: 600;
  margin: 0 0 4px;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}
.stat-note {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  color: var(--text);
  position: relative;
  min-height: 64px;
}
a.item:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.item-stripe {
  width: 5px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--border);
  flex: none;
}
.item-main {
  flex: 1;
  min-width: 0;
}
.item-title {
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.item-side {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
  flex: none;
}
.amount {
  font-weight: 800;
  white-space: nowrap;
}
.empty {
  color: var(--muted);
  padding: 8px 0;
}
.dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 8px 20px;
  margin: 0;
}
.dl dt {
  color: var(--muted);
}
.dl dd {
  margin: 0;
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  white-space: nowrap;
}

/* status colours: bars, badges, stripes, the legend */
.is-confirmed {
  --status: var(--confirmed);
  --on-status: var(--on-confirmed);
}
.is-hold {
  --status: var(--hold);
  --on-status: var(--on-hold);
}
.is-ical {
  --status: var(--ical);
  --on-status: var(--on-ical);
}
.is-cancelled,
.is-expired {
  --status: var(--border);
  --on-status: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--status, var(--border));
  color: var(--on-status, var(--text));
  white-space: nowrap;
}
.badge.is-ical {
  border: 1px dashed var(--ical-edge);
}
.badge-soft {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.badge-warn {
  background: var(--warning-bg);
  color: var(--on-hold);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.item-stripe.is-confirmed,
.item-stripe.is-hold,
.item-stripe.is-ical {
  background: var(--status);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--status, var(--surface));
  border: 1px solid transparent;
}
.swatch.is-ical {
  border: 1px dashed var(--ical-edge);
}
.swatch.is-free {
  background: var(--surface);
  border-color: var(--border);
}

/* ---------- notices ---------- */

.notice {
  border-radius: var(--radius-btn-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 600;
}
.notice-warn {
  background: var(--warning-bg);
  color: var(--on-hold);
}
.notice-error {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}
.field > label,
.label {
  font-weight: 700;
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* no zoom on phones */
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 0;
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-weight: 600;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex: none;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  font-weight: 600;
}
.choice input:checked + span {
  background: var(--nav-active-bg);
  border-color: var(--accent);
  color: var(--nav-active-text);
}
.choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 6px;
}
.code-input {
  font-size: 26px;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 800;
}

/* ---------- the login pages ---------- */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.auth-card .logo {
  margin-bottom: 24px;
}

/* ---------- connecting OLX and monobank (pages of their own, from the bot or the cabinet) */

.connect-card {
  max-width: 560px;
}
.connect-card h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.connect-card h1 .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.connect-card .btn-block + .btn-block {
  margin-top: 10px;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 16px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps > li .form,
.steps > li .btn-block {
  justify-self: stretch;
}
.step-title {
  font-weight: 800;
  line-height: 30px;
}
.connect-notes {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 6px;
}
.connect-detail {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.connect-detail summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.connect-after {
  margin: 12px 0 0;
}
.connect-support {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 0 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- the calendar: flats × days ---------- */

.cal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.cal-legend {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cal-scroll {
  overflow-x: auto;
}
.cal {
  --days: 14;
  --label: 220px;
  --day-min: 76px;
  min-width: calc(var(--label) + var(--days) * var(--day-min));
}
.cal.cal-month {
  --day-min: 44px;
}
/* every row is a grid of the same columns: cells and bars share its only row */
.cal-head,
.cal-row {
  display: grid;
  grid-template-columns: var(--label) repeat(var(--days), minmax(var(--day-min), 1fr));
}
.cal-head > *,
.cal-row > * {
  grid-row: 1;
}
.cal-corner,
.cal-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}
.cal-corner {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}
.cal-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
}
.cal-label a {
  color: var(--text);
  font-weight: 700;
}
.cal-label .item-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  padding: 10px 4px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cal-day b {
  display: block;
  margin: 4px auto 0;
  font-size: 15px;
  color: var(--text);
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
}
.cal-day.is-today b {
  background: var(--accent);
  color: var(--on-accent);
}
.is-weekend {
  background: var(--weekend);
}
.is-today {
  background: var(--today);
}
.cal-cell {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 4px;
  position: relative;
}
a.cal-cell:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--nav-active-bg) 70%, transparent);
  color: var(--nav-active-text);
}
.cal-cell.is-selected {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-cell.is-past {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}
.cal-bar {
  z-index: 2;
  align-self: center;
  margin: 0 6px;
  min-height: 46px;
  padding: 6px 10px;
  border-radius: var(--radius-bar);
  background: var(--status);
  color: var(--on-status);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  line-height: 1.25;
}
.cal-bar:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.cal-bar.is-ical {
  border: 1.5px dashed var(--ical-edge);
}
.cal-bar strong {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-bar span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-bar.is-cut-start {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}
.cal-bar.is-cut-end {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}
.cal-month .cal-bar {
  margin: 0 3px;
  padding: 4px 6px;
}
.cal-month .cal-bar span {
  display: none;
}

/* the month of one flat (the phone screen) */
.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
}
.month-head h2 {
  font-size: 22px;
  text-align: center;
  flex: 1;
}
.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 12px 8px;
}
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 6px;
}
.month-wd {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0 6px;
}
.mday {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding: 2px 0;
}
a.mday:hover {
  text-decoration: none;
}
.mday small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.mday.is-booked {
  color: var(--on-status);
  z-index: 0;
}
.mday.is-booked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--status);
}
.mday.is-booked small {
  color: inherit;
  opacity: 0.85;
}
.mday.is-run-start::before {
  left: 3px;
  border-top-left-radius: var(--radius-bar);
  border-bottom-left-radius: var(--radius-bar);
}
.mday.is-run-end::before {
  right: 3px;
  border-top-right-radius: var(--radius-bar);
  border-bottom-right-radius: var(--radius-bar);
}
.mday.is-ical::before {
  border-top: 1.5px dashed var(--ical-edge);
  border-bottom: 1.5px dashed var(--ical-edge);
}
.mday.is-ical.is-run-start::before {
  border-left: 1.5px dashed var(--ical-edge);
}
.mday.is-ical.is-run-end::before {
  border-right: 1.5px dashed var(--ical-edge);
}
.mday.is-today {
  background-image: none;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 10px;
}
.mday.is-selected {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-radius: 10px;
}
.mday.is-past:not(.is-booked) {
  color: color-mix(in srgb, var(--muted) 60%, transparent);
}

/* ---------- the dialogue ---------- */

.chat {
  display: grid;
  gap: 10px;
}
.msg {
  max-width: min(640px, 88%);
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.msg-text {
  white-space: pre-wrap;
}
.msg-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.msg.from-guest {
  justify-self: start;
  border-bottom-left-radius: 4px;
}
.msg.from-ai,
.msg.from-owner,
.msg.from-staypo {
  justify-self: end;
  border-bottom-right-radius: 4px;
}
.msg.from-ai {
  background: var(--nav-active-bg);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}
.msg.from-owner {
  background: var(--weekend);
}
.msg.from-staypo {
  background: var(--warning-bg);
}
.msg.is-old {
  opacity: 0.75;
}
.proposal {
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-card);
  padding: 16px;
  background: var(--surface);
}

/* ---------- reports ---------- */

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
progress,
meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: var(--weekend);
  overflow: hidden;
  appearance: none;
}
progress::-webkit-progress-bar,
meter::-webkit-meter-bar {
  background: var(--weekend);
  border-radius: 999px;
  border: 0;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}
meter::-webkit-meter-optimum-value {
  background: var(--accent);
  border-radius: 999px;
}

/* ---------- the property form ---------- */

.sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-title .icon {
  color: var(--accent);
}
.sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 12px 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.season-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
/* the price tables (stage 9.3): «від N діб → ціна, вихідні», «від N гостей → +грн» */
.tier-rows {
  display: flex;
  flex-direction: column;
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tier-row-guests {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}
.tier-row .error,
.season-row .season-nights {
  grid-column: 1 / -1;
}
.season-nights summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.season-nights[hidden] {
  display: none;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row .input {
  font-size: 14px;
}
.guest-text {
  white-space: pre-wrap;
  background: var(--weekend);
  border-radius: var(--radius-btn);
  padding: 12px;
  font-size: 14px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

/* ---------- the phone ---------- */

@media (max-width: 1023px) {
  :root {
    --gutter: 16px;
  }
  .topbar {
    display: none;
  }
  .mobile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--gutter);
    background: var(--bg);
  }
  .mobile-head .logo {
    font-size: 20px;
  }
  .mobile-head .account {
    margin-left: auto;
  }
  .page {
    padding: 8px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  }
  h1 {
    font-size: 26px;
  }
  .bottomnav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    border-radius: var(--radius-btn-lg);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
  }
  .bottomnav a:hover {
    text-decoration: none;
  }
  .bottomnav a[aria-current="page"] {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
  }
  .fab {
    display: inline-flex;
    position: fixed;
    right: var(--gutter);
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 41;
    border-radius: 999px;
    padding: 14px 22px;
    box-shadow: 0 10px 24px rgb(31 111 92 / 30%);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat-value {
    font-size: 24px;
  }
  .grid-2,
  .grid-3,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 16px;
  }
  .page-head {
    align-items: stretch;
  }
  .page-head .actions {
    width: 100%;
  }
  .hide-phone {
    display: none !important;
  }
  .cal {
    --label: 136px;
  }
  .cal-label {
    padding: 10px;
  }
  .season-row,
  .tier-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .bar-row progress,
  .bar-row meter {
    grid-column: 1 / -1;
    order: 3;
  }
  .table-cards thead {
    display: none;
  }
  .table-cards,
  .table-cards tbody,
  .table-cards tr,
  .table-cards td {
    display: block;
    width: 100%;
  }
  .table-cards tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .table-cards td {
    border: 0;
    padding: 2px 0;
  }
  .table-cards td.num {
    text-align: left;
  }
  .auth-card {
    padding: 24px 20px;
  }
}

@media (min-width: 1024px) {
  .hide-desktop,
  .fab {
    display: none !important;
  }
}

/* positions of the calendar bars (no inline styles: the CSP forbids them) */
.gs-1 { grid-column-start: 1; } .gs-2 { grid-column-start: 2; } .gs-3 { grid-column-start: 3; } .gs-4 { grid-column-start: 4; }
.gs-5 { grid-column-start: 5; } .gs-6 { grid-column-start: 6; } .gs-7 { grid-column-start: 7; }
.gs-8 { grid-column-start: 8; } .gs-9 { grid-column-start: 9; } .gs-10 { grid-column-start: 10; }
.gs-11 { grid-column-start: 11; } .gs-12 { grid-column-start: 12; } .gs-13 { grid-column-start: 13; }
.gs-14 { grid-column-start: 14; } .gs-15 { grid-column-start: 15; } .gs-16 { grid-column-start: 16; }
.gs-17 { grid-column-start: 17; } .gs-18 { grid-column-start: 18; } .gs-19 { grid-column-start: 19; }
.gs-20 { grid-column-start: 20; } .gs-21 { grid-column-start: 21; } .gs-22 { grid-column-start: 22; }
.gs-23 { grid-column-start: 23; } .gs-24 { grid-column-start: 24; } .gs-25 { grid-column-start: 25; }
.gs-26 { grid-column-start: 26; } .gs-27 { grid-column-start: 27; } .gs-28 { grid-column-start: 28; }
.gs-29 { grid-column-start: 29; } .gs-30 { grid-column-start: 30; } .gs-31 { grid-column-start: 31; }
.gs-32 { grid-column-start: 32; }
.gn-1 { grid-column-end: span 1; } .gn-2 { grid-column-end: span 2; } .gn-3 { grid-column-end: span 3; }
.gn-4 { grid-column-end: span 4; } .gn-5 { grid-column-end: span 5; } .gn-6 { grid-column-end: span 6; }
.gn-7 { grid-column-end: span 7; } .gn-8 { grid-column-end: span 8; } .gn-9 { grid-column-end: span 9; }
.gn-10 { grid-column-end: span 10; } .gn-11 { grid-column-end: span 11; } .gn-12 { grid-column-end: span 12; }
.gn-13 { grid-column-end: span 13; } .gn-14 { grid-column-end: span 14; } .gn-15 { grid-column-end: span 15; }
.gn-16 { grid-column-end: span 16; } .gn-17 { grid-column-end: span 17; } .gn-18 { grid-column-end: span 18; }
.gn-19 { grid-column-end: span 19; } .gn-20 { grid-column-end: span 20; } .gn-21 { grid-column-end: span 21; }
.gn-22 { grid-column-end: span 22; } .gn-23 { grid-column-end: span 23; } .gn-24 { grid-column-end: span 24; }
.gn-25 { grid-column-end: span 25; } .gn-26 { grid-column-end: span 26; } .gn-27 { grid-column-end: span 27; }
.gn-28 { grid-column-end: span 28; } .gn-29 { grid-column-end: span 29; } .gn-30 { grid-column-end: span 30; }
.gn-31 { grid-column-end: span 31; }
.cal-days-28 { --days: 28; } .cal-days-29 { --days: 29; }
.cal-days-30 { --days: 30; } .cal-days-31 { --days: 31; }

/* ---------- additions: the month page, small helpers ---------- */
.month-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}
.flat-pick {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
}
.flat-pick .select {
  font-weight: 700;
}
.month-title {
  font-size: clamp(17px, 5vw, 22px);
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-head .btn-quiet {
  color: var(--muted);
}
.mday.is-blank {
  visibility: hidden;
}
.mday small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}
.month-legend {
  margin: 16px 0 24px;
}
.month-bookings {
  margin-top: 8px;
}
.js .js-hidden {
  display: none;
}
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px 16px;
  overflow-x: auto;
}
.crumbs {
  margin: 0 0 6px;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--tap);
  font-weight: 700;
}
.code {
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-left: 6px;
}
.subhead {
  margin: 20px 0 10px;
}
.stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.stack form {
  margin: 0;
}
.plain-list {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.price-list {
  margin: 0;
  display: grid;
  gap: 8px;
}
.price-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.price-list dt {
  color: var(--muted);
}
.price-list dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.price-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.price-total dt,
.price-total dd {
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
}
.quote-card {
  position: sticky;
  top: 16px;
}
.quote-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.narrow {
  max-width: 720px;
}
@media (max-width: 1023px) {
  .table-card {
    background: none;
    border: 0;
    padding: 0;
  }
  .quote-card {
    position: static;
  }
}
.field-wide {
  grid-column: 1 / -1;
}
.preview {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 4px;
}
.preview-result {
  margin-top: 12px;
}
.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}
.item-actions form {
  margin: 0;
}
.calendars {
  margin-top: 16px;
}
.add-calendar {
  margin-top: 16px;
}
.season-row .error {
  grid-column: 1 / -1;
}
@media (max-width: 1023px) {
  .item-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.item-stripe.is-active {
  background: var(--accent);
}
.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 14px;
  flex: none;
}
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.escalation {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}
.escalation .section-title .icon {
  color: var(--danger);
}
.proposal + .proposal,
.proposal + .card {
  margin-top: 0;
}
.proposal .actions {
  margin-top: 12px;
}
.proposal form {
  margin: 0;
}
.report-rows {
  margin-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.chips a:hover {
  background: var(--weekend);
  text-decoration: none;
}
.options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn-lg);
  cursor: pointer;
  min-height: var(--tap);
}
.option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}
.option > span {
  display: grid;
  gap: 2px;
}
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--nav-active-bg);
}
/* «Як ШІ діє сам»: the numbers of the discount rules, under their options. */
.rule-params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-top: 4px;
}
.input-short {
  max-width: 180px;
}
.always-notice {
  font-weight: 500;
}
.stack-row {
  margin-top: 14px;
}
.stack-row form {
  margin: 0;
}
.listing-row {
  flex-wrap: wrap;
}
.listing-form {
  display: flex;
  gap: 8px;
  min-width: min(100%, 260px);
  margin: 0;
}
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  background: var(--weekend);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  display: inline-block;
}
.mt {
  margin-top: 10px;
}
.after-card {
  margin-top: 10px;
}
@media (max-width: 1023px) {
  .month-head .btn:not(.btn-icon) {
    padding-left: 12px;
    padding-right: 12px;
  }
  /* a booking's card: what to do with it comes first on the phone */
  .split-actions-first > aside {
    order: -1;
  }
}
@media (max-width: 380px) {
  .month-head {
    gap: 6px;
  }
  .month-title {
    font-size: 16px;
  }
  .month-head .btn:not(.btn-icon) {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ---------- the public site: landing and documents (design/landing.dc.html) ---------- */

:root {
  --chat-bg: #fbf7f2;
}
.site {
  font-size: 16px;
}
.doc a:hover {
  color: var(--nav-active-text);
}
.site :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header-inner,
.site-footer-inner,
.lp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-logo {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.site-logo:hover {
  text-decoration: none;
}
.site-logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 16px;
  font-weight: 700;
}
.site-nav a {
  color: var(--muted);
  padding: 10px 0;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.site-actions {
  display: flex;
  gap: 8px;
}
.site-btn {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.site-btn:hover {
  text-decoration: none;
  background: var(--weekend);
}
.site-btn-primary {
  padding: 0 18px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.site-btn-primary:hover {
  background: var(--accent-hover);
}
/* Staging and the PC: the seller's details are not filled in yet (prod hides them). */
.site-plaque {
  margin: 0;
  padding: 10px 16px;
  background: var(--warning-bg);
  color: var(--on-hold);
  font-weight: 700;
  text-align: center;
}
.site-env {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 10px;
}

/* the landing */
.lp-pad-64 {
  padding-top: 64px;
  padding-bottom: 64px;
}
.lp-pad-72 {
  padding-top: 72px;
  padding-bottom: 72px;
}
.lp-stack-10,
.lp-stack-28,
.lp-stack-32 {
  display: flex;
  flex-direction: column;
}
.lp-stack-10 {
  gap: 10px;
}
.lp-stack-28 {
  gap: 28px;
}
.lp-stack-32 {
  gap: 32px;
}
.lp-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.lp-hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lp-pill {
  align-self: flex-start;
  padding: 6px 12px;
  /* Not a full pill: on a phone the line wraps in two, evenly. */
  border-radius: 14px;
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.lp-h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.lp-hero-sub {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lp-lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lp-btn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--radius-btn-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
}
.lp-btn:hover {
  text-decoration: none;
  background: var(--weekend);
}
.lp-btn-primary {
  padding: 0 28px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 18px;
}
.lp-btn-primary:hover {
  background: var(--accent-hover);
}
.lp-btn-block {
  width: 100%;
  text-align: center; /* two lines on a phone stay centred */
}
.lp-btn-light {
  padding: 0 28px;
  border-color: var(--surface);
  background: var(--surface);
  color: var(--nav-active-text);
  font-weight: 900;
  font-size: 18px;
}
.lp-btn-light:hover {
  background: var(--nav-active-bg);
}
.lp-note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.lp-demo {
  flex: 1 1 400px;
  min-width: 0;
  position: relative;
  padding-bottom: 56px;
}
.lp-chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgb(43 33 28 / 10%);
  overflow: hidden;
}
.lp-chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-chat-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-chat-name {
  font-weight: 800;
  font-size: 16px;
}
.lp-chat-sub {
  font-size: 13px;
  color: var(--muted);
}
.lp-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.lp-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--chat-bg);
}
.lp-msg {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
}
.lp-msg-in {
  align-self: flex-start;
  max-width: 80%;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.lp-msg-out {
  align-self: flex-end;
  max-width: 82%;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: var(--on-accent);
}
.lp-msg-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.lp-msg-out .lp-msg-time {
  color: var(--on-accent);
  opacity: 0.85;
}
.lp-toast {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: min(300px, 80%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgb(43 33 28 / 16%);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lp-toast-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--hold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-toast-title {
  font-size: 14px;
  font-weight: 900;
}
.lp-toast-sub {
  font-size: 13px;
  color: var(--muted);
}
.lp-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lp-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.lp-grid {
  display: grid;
  gap: 16px;
}
.lp-grid-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.lp-grid-300 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.lp-gap-18 {
  gap: 18px;
}
.lp-gap-20 {
  gap: 20px;
}
.lp-card {
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-card-pain {
  padding: 22px;
}
.lp-card-feature {
  padding: 24px;
}
.lp-card-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}
.lp-card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.lp-step {
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}
.lp-step-title {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
}
.lp-price {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.lp-price-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-price-card {
  flex: 1 1 380px;
  min-width: 0;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lp-price-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-price-row {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 2px 12px;
  flex-wrap: wrap;
}
.lp-price-value {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.lp-price-unit {
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
}
/* The full price next to the promo's one, struck through. */
.lp-price-old {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.lp-price-row .lp-price-old {
  font-size: 26px;
  text-decoration-thickness: 2px;
}
/* The rest of the grid in one line: «з 4-ї — 900 ₴ · з 10-ї — 600 ₴ · рік — …». */
.lp-price-line {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
/* The plaque of the promo «Ціна для перших клієнтів» and the seats left. */
.lp-promo {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.lp-promo-name {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}
.lp-promo-left {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
/* The calculator: the number of flats, the sums a month and a year (site.js shows them
   while the visitor types; without it the button asks the server). */
.lp-calc {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
}
.lp-calc-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.lp-calc-label {
  font-weight: 800;
}
.lp-calc-input {
  width: 104px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}
.lp-calc-result {
  display: grid;
  gap: 4px;
}
.lp-calc-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
}
.lp-calc-period {
  color: var(--muted);
  font-weight: 700;
}
.lp-calc-sum {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
/* The typed number is not the one the sums are for (site.js): the button counts it. */
.lp-calc-stale .lp-calc-result {
  opacity: 0.45;
}
/* Under the card's button: how a subscription is paid, with the wallets' marks. */
.lp-pay {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}
.lp-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}
.lp-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lp-check {
  flex: 0 0 auto;
  margin-top: 2px;
}
.lp-price-note {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.lp-faq {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-faq-title {
  margin-bottom: 12px;
}
.lp-faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  padding: 0 20px;
}
.lp-faq-item summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.lp-faq-item summary::-webkit-details-marker {
  display: none;
}
.lp-faq-item p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.lp-final {
  border-radius: 24px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp-final-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-final-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--nav-active-bg);
}
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer-inner {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.site-footer-links a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: underline;
}
.site-footer-links a:hover {
  color: var(--text);
}
.site-requisites {
  padding-top: 0;
  font-size: 13px;
}
mark.fill {
  background: var(--warning-bg);
  color: var(--text);
  padding: 0 4px;
  border-radius: 4px;
}

/* the documents */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.doc-meta {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 15px;
}
.doc h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  font-weight: 900;
}
.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.65;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul,
.doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.doc li + li {
  margin-top: 4px;
}
.doc-note {
  border-left: 4px solid var(--hold);
  background: var(--warning-bg);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 20px;
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 24px;
  font-weight: 700;
}
.doc-toc a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* a flat priced by the guests (stage 9.3): its calendar price is «від» the base guests' */
.price-from {
  font-size: 0.85em;
  color: var(--muted);
}

/* the blog (content/blog, app/web/blog.py): the documents' long text, plus what Markdown
   adds — sub-headings with anchors, quotes, code, tables that scroll on a phone */
.blog-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.blog-page h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.blog-lead {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
.blog-article {
  padding-top: 32px;
}
.crumbs-site ol {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs-site li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.4;
}
.crumbs-site li + li::before {
  content: "›";
  margin-right: 8px;
}
.crumbs-site a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.crumbs-site [aria-current] {
  color: var(--text);
}
.doc h2,
.doc h3 {
  scroll-margin-top: 16px;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 900;
}
.heading-anchor {
  color: var(--muted);
  font-weight: 700;
  opacity: 0.35;
}
.doc h2:hover .heading-anchor,
.doc h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}
.blog-body {
  overflow-wrap: break-word;
}
.blog-body a:not(.heading-anchor) {
  text-decoration: underline;
}
.blog-body blockquote {
  margin: 0 0 12px;
  padding: 10px 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 8px;
}
.blog-body blockquote p:last-child {
  margin-bottom: 0;
}
.blog-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}
.blog-body pre {
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.blog-body pre code {
  border: 0;
  padding: 0;
}
.blog-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}
.blog-body table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 15px;
  background: var(--surface);
}
.blog-body th,
.blog-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.blog-body th {
  font-weight: 800;
}
.blog-body .align-center {
  text-align: center;
}
.blog-body .align-right {
  text-align: right;
}
.blog-toc {
  margin: 0 0 28px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.blog-toc .blog-toc-title {
  margin: 0;
  font-weight: 900;
}
.blog-toc li + li {
  margin-top: 0;
}
.blog-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-toc ul ul {
  padding-left: 18px;
}
.blog-toc a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.blog-card-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}
.blog-card-title a {
  color: var(--text);
}
.blog-card-title a:hover {
  color: var(--nav-active-text);
}
.blog-card-text {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}
.blog-card-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.badge-draft {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--text);
  font-weight: 800;
}
.blog-feed {
  margin: 24px 0 0;
  font-size: 14px;
}
.blog-feed a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.blog-cta {
  padding-bottom: 48px;
}
.blog-related {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 72px;
}
.blog-related-title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
}
.blog-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  /* the phone: the logo and the two buttons on one row; the page is one scroll, the
     section links would only push the first screen down */
  .site-header-inner {
    gap: 8px 12px;
  }
  .site-nav {
    display: none;
  }
  .site-logo {
    font-size: 20px;
    gap: 8px;
  }
  .site-logo-mark {
    width: 28px;
    height: 28px;
  }
  .site-btn,
  .site-btn-primary {
    padding: 0 12px;
    font-size: 14px;
  }
  .lp-hero {
    padding-top: 40px;
  }
  .lp-lead {
    font-size: 18px;
  }
  .lp-final {
    padding: 36px 24px;
  }
  .lp-price-card {
    padding: 24px;
  }
  .lp-price-value {
    font-size: 48px;
  }
  /* the calculator: the label over the field, the field and the button on one row */
  .lp-calc-label {
    flex: 1 0 100%;
  }
  .lp-calc-input {
    flex: 1 1 80px;
    width: auto;
    min-width: 0;
  }
}

/* ---------- the subscription ---------- */

.plan-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.plan-status {
  font-size: 28px;
  font-weight: 900;
}
.plan-price {
  font-size: 22px;
  font-weight: 800;
}
/* The promo «Ціна для перших клієнтів»: the plaque on «Підписка» and the full price struck
   through next to the discounted one. */
.promo-plaque {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius-btn);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-weight: 800;
}
.price-old {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.checkout-card {
  max-width: 560px;
}
/* «Підписка»: its small text (captions, explanations, the history) is 14–15 px; the other
   pages keep .hint at 13 px. */
.subscription-page .hint,
.subscription-page .table th {
  font-size: 14px;
}
.subscription-page .table td {
  font-size: 15px;
}
.subscription-page .form + .hint {
  margin-top: 14px; /* not glued to the consent that ends the form */
}

/* Under a «pay by card» button (templates/_pay.html): what it takes, the wallets' marks, the
   consent. */
.pay {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.pay-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pay-terms {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
/* The marks are the wallets' own files, shown whole and in their proportions (never
   clipped: no overflow, no object-fit). Both are --pay-mark tall to the eye: Apple's file
   is the mark itself; Google's is 1094 x 742 with the mark (752 x 400) inside its own clear
   space, at 170 from the top and 172 from the bottom. So its box is taller, and negative
   margins let that transparent space lie over the white around the row. Its side space
   (170 of 400 of the height, about 13 px) is the distance to Apple's mark and to whatever
   follows. */
.pay-marks {
  --pay-mark: 30px;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.pay-mark {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
}
.pay-mark-apple {
  height: var(--pay-mark);
}
.pay-mark-google {
  height: calc(var(--pay-mark) * 742 / 400);
  margin-block: calc(var(--pay-mark) * -170 / 400) calc(var(--pay-mark) * -172 / 400);
  pointer-events: none; /* its clear space may lie over a neighbour */
}

/* ---------- the setup wizard (/welcome) and the shadow mode's offer ---------- */
.wizard-bar {
  display: block;
  width: 100%;
  height: 10px;
  margin: 0 0 16px;
  border: 0;
  border-radius: var(--radius-bar);
  background: var(--weekend);
  color: var(--accent);
  overflow: hidden;
  appearance: none;
}
.wizard-bar::-webkit-progress-bar {
  background: var(--weekend);
  border-radius: var(--radius-bar);
}
.wizard-bar::-webkit-progress-value {
  background: var(--accent);
  border-radius: var(--radius-bar);
}
.wizard-bar::-moz-progress-bar {
  background: var(--accent);
  border-radius: var(--radius-bar);
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.wizard-card .wizard-steps {
  grid-template-columns: 1fr;
}
.wizard-step a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.wizard-step a:hover {
  border-color: var(--accent);
}
.wizard-step.is-current a {
  border-color: var(--accent);
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.wizard-dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
}
.wizard-dot svg {
  width: 16px;
  height: 16px;
}
.wizard-step.is-done .wizard-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.wizard-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wizard-label .item-title {
  overflow-wrap: anywhere;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offer p {
  margin: 0;
}
@media (max-width: 1023px) {
  .wizard-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .wizard-steps .wizard-label {
    display: none;
  }
  .wizard-steps .wizard-step a {
    justify-content: center;
    padding: 6px;
  }
  .wizard-card .wizard-steps {
    grid-template-columns: 1fr;
  }
  .wizard-card .wizard-steps .wizard-label {
    display: flex;
  }
  .wizard-card .wizard-steps .wizard-step a {
    justify-content: flex-start;
    padding: 8px 10px;
  }
}

/* ---------- the admin panel (/admin) ---------- */
.admin-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.admin-head-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 600;
}
.admin-nav a[aria-current="page"] {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.admin-unlock {
  max-width: 440px;
  margin: 24px auto;
}
.admin-table td {
  vertical-align: top;
}
/* A subscription payment in the operator's card: its state ends the line and is never
   cut off; on a phone «Позначити повернутим» goes under the text. */
.admin-payment .item-title {
  white-space: normal;
}
@media (max-width: 640px) {
  .admin-nav {
    margin-left: 0;
    width: 100%;
  }
  .admin-payment {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 1023px) {
  .admin-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-weight: 600;
  }
}

/* ---------- the invoice (printable) ---------- */

.invoice-body {
  background: var(--bg);
}
.invoice {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  gap: 20px;
}
.invoice-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invoice h1 {
  margin: 0;
}
.invoice h2 {
  margin: 0 0 6px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.invoice-meta {
  margin: -8px 0 0;
  color: var(--muted);
}
.invoice-parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.invoice-parties p {
  margin: 0;
  overflow-wrap: anywhere;
}
.invoice-table tfoot th {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.invoice-purpose-text {
  margin: 0 0 6px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-btn);
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media print {
  .no-print,
  .site-env {
    display: none !important;
  }
  .invoice-body,
  .invoice {
    background: #fff;
    color: #000;
  }
  .invoice {
    padding: 0;
  }
}
