/* «Каталог» — destinations, programs, dates and people.
   One memorable thing here: the photo tiles with the destination name set
   large, and seats drawn as dots (one dot = one place). The rest is paper,
   ink and hairlines. Departures are tickets: a date stub cut off by a
   perforation, the same status colour on the stub edge everywhere. */

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ct-page { display: flex; flex-direction: column; gap: 18px; }
.ct-loading, .ct-empty { padding: 48px 0; color: var(--subtle); text-align: center; }
.ct-empty h2 { margin-bottom: 8px; }
.ct-empty p { max-width: 60ch; margin: 0 auto; }

/* ── Page head ─────────────────────────────────────────────────────── */
.ct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ct-title {
  font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 10px;
}
.ct-lede { font-size: 15px; color: var(--ink-2); max-width: 74ch; line-height: 1.55; }
.ct-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-btn { white-space: nowrap; }

.ct-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-search {
  flex: 1; min-width: 220px; max-width: 420px; position: relative; display: flex; align-items: center;
}
.ct-search .ic { position: absolute; left: 11px; color: var(--subtle); }
.ct-search input { width: 100%; padding-left: 34px; background: var(--surface); }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--subtle); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs-sep { opacity: .5; }

.ct-group { display: flex; flex-direction: column; gap: 12px; }
.ct-group + .ct-group { margin-top: 18px; }
.ct-group-title { font-family: var(--font-ui); font-size: 15px; font-weight: 600; margin: 0; display: flex; gap: 8px; align-items: baseline; }
.ct-group-title span, .ct-h2 span { color: var(--subtle); font-weight: 400; font-size: 13px; }

/* ── Seats & status ────────────────────────────────────────────────── */
.seats { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; max-width: 140px; }
.seats i {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--ink) 32%, transparent);
}
.seats i.on { background: var(--ink); box-shadow: none; }
.seats-bar { display: inline-block; width: 120px; height: 7px; border-radius: 4px; background: var(--elevated); overflow: hidden; }
.seats-bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.seats-empty { font-size: 12px; color: var(--subtle); }

.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex: none; }
.st-pre i { background: none; box-shadow: inset 0 0 0 2px var(--st-pre); }
.st-open i { background: var(--st-open); }
.st-full i { background: var(--st-full); }
.st-live i { background: var(--st-live); }
.st-done i { background: var(--st-done); }
.st-off i { background: var(--st-off); }
.st-off { color: var(--st-off); }

.st-select {
  padding: 4px 26px 4px 10px; font-size: 12.5px; font-weight: 600; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; appearance: none;
  background: var(--elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23858ba0' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.st-select.st-pre { color: var(--st-pre); background-color: var(--blue-weak); }
.st-select.st-open { color: var(--st-open); background-color: var(--green-weak); }
.st-select.st-full { color: var(--st-full); background-color: var(--amber-weak); }
.st-select.st-live { color: var(--st-live); background-color: var(--elevated); }
.st-select.st-off { color: var(--st-off); background-color: var(--red-weak); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  background: var(--elevated); padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.chip-draft { background: rgba(35, 44, 69, .08); color: var(--subtle); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.promo-mark { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-weak); padding: 1px 6px; border-radius: 5px; }
.own-mark { display: inline-block; font-size: 11px; color: var(--subtle); }
.hot { color: var(--accent-ink); }

/* ── Tiles ─────────────────────────────────────────────────────────── */
.ct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
.ct-tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ct-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-photo); }
.ct-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-tile-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tile, var(--accent)); }
.ct-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ct-tile:hover .ct-tile-media img { transform: scale(1.035); }
.ct-tile-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,40,0) 42%, rgba(20,24,40,.62) 100%);
}
.ct-tile-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--tile), color-mix(in srgb, var(--tile) 45%, #232c45));
  font-family: var(--font-display); font-weight: 700; font-size: 140px; color: rgba(255,255,255,.16); line-height: 1;
}
.ct-tile-name { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.ct-tile-name span { font-size: 12.5px; opacity: .85; }
.ct-tile-name h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 2px 0 0; color: #fff; text-wrap: balance;
}
.ct-tile-flags { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.flag-draft { background: rgba(35, 44, 69, .66); color: #fff; }
.flag-hot { background: var(--accent); color: #fff; }

.ct-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ct-next { display: flex; flex-direction: column; gap: 5px; min-height: 66px; }
.ct-next-none { color: var(--subtle); font-size: 13px; justify-content: center; }
.ct-next-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-next-date { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.ct-next-prog { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-next-seats { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--subtle); }
.ct-tile-stats { display: grid; grid-template-columns: auto auto 1fr; column-gap: 18px; gap: 6px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--divider); }
.ct-tile-stats dt { font-size: 11.5px; color: var(--subtle); }
.ct-tile-stats dd { margin: 1px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Season board ──────────────────────────────────────────────────── */
.ss { --lw: 230px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 10px 16px 14px; }
/* Fixed scale: 9px a day (a 5-day trip is ~45px). Longer than the screen —
   scrolls sideways; names and months stay pinned. */
.ss-scroll { overflow: auto; max-height: calc(100vh - 230px); overscroll-behavior-x: contain; }
.ss-inner { width: max(100%, calc(var(--lw) + var(--span) * 9px)); }
.ss-head { display: grid; grid-template-columns: var(--lw) 1fr; position: sticky; top: 0; background: var(--surface); z-index: 4; padding: 6px 0 8px; border-bottom: 1px solid var(--divider); }
.ss-head > div:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.ss-months { position: relative; height: 18px; }
.ss-months span { position: absolute; top: 0; font-size: 12px; color: var(--subtle); padding-left: 5px; height: 18px; line-height: 18px; white-space: nowrap; }
.ss-months b { color: var(--ink); font-weight: 600; }
.ss-body { position: relative; }
.ss-body::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .55; z-index: 1;
  left: calc(var(--lw) + (100% - var(--lw)) * var(--today) / 100);
}
.ss-dest { font-weight: 600; font-size: 13.5px; position: relative; z-index: 3; }
.ss-dest a { color: var(--ink); text-decoration: none; position: sticky; left: 0; background: var(--surface);
  display: block; width: var(--lw); padding: 12px 10px 4px 0; box-sizing: border-box; }
.ss-dest a:hover { color: var(--accent-ink); }
.ss-row { display: grid; grid-template-columns: var(--lw) 1fr; align-items: center; min-height: 28px; }
.ss-row:hover { background: var(--paper-2); }
.ss-label { font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 0 12px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: sticky; left: 0; z-index: 3; background: var(--surface); align-self: stretch; line-height: 28px; }
.ss-row:hover .ss-label { background: var(--paper-2); }
.ss-label:hover { color: var(--accent-ink); }
.ss-draft { font-size: 11px; color: var(--subtle); }
.ss-track { position: relative; height: 22px; }
.ss-grid { position: absolute; inset: 0; pointer-events: none; }
.ss-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--divider); left: calc(var(--lw) + (100% - var(--lw)) * var(--at) / 100); }
.ss-bar {
  position: absolute; top: 2px; height: 18px; border-radius: 5px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; overflow: visible;
  font-size: 10.5px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
}
.ss-bar span { pointer-events: none; }
.ss-bar:hover { filter: brightness(1.08); z-index: 3; }
.st-bg-open { background: var(--st-open); }
.st-bg-full { background: var(--st-full); }
.st-bg-live { background: var(--st-live); }
.st-bg-done { background: var(--st-done); }
.st-bg-pre { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--st-pre); color: var(--st-pre); }
.st-bg-off { background: repeating-linear-gradient(135deg, var(--red-weak) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-off) 45%, transparent); }
.ss-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--divider); }

/* ── Destination hero ──────────────────────────────────────────────── */
.ct-hero {
  position: relative; min-height: 320px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; background: var(--tile, var(--ink));
}
.ct-hero.no-cover { background: linear-gradient(140deg, var(--tile), color-mix(in srgb, var(--tile) 40%, #232c45)); min-height: 240px; }
.ct-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ct-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,40,.05) 30%, rgba(20,24,40,.66)); }
.ct-hero-inner { position: relative; z-index: 1; padding: 28px 32px; max-width: 760px; }
.ct-hero-country { font-size: 14px; opacity: .85; }
.ct-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.03em; margin: 6px 0 0; color: #fff; }
.ct-hero-tagline { font-size: 17px; margin-top: 10px; opacity: .92; }
.ct-hero-edit {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.88); color: var(--ink); border: none; border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13px; font-weight: 500; cursor: pointer; backdrop-filter: blur(6px);
}
.ct-hero-edit:hover { background: #fff; }

.ct-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.ct-h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }

/* ── Program cards ─────────────────────────────────────────────────── */
.ct-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ct-prog {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ct-prog:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--sh-photo); }
/* Same window on every card. Cover fills it edge to edge; 16:9 keeps the
   subject instead of the old short strip that cut through faces. */
.ct-prog-img {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(150deg, var(--c1, var(--accent)), var(--c2, var(--ink)));
}
.ct-prog-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ct-prog.is-off .ct-prog-img,
.pg-cover.is-off { filter: grayscale(1); }
.ct-prog-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ct-prog-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 2px 0 0; letter-spacing: -0.01em; }
.ct-prog-full { font-size: 12.5px; color: var(--subtle); margin-top: -4px; }
.ct-prog-price { display: flex; align-items: baseline; gap: 4px 6px; flex-wrap: wrap; }
.ct-prog-price b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-prog-price small { color: var(--subtle); margin-right: 8px; }
.ct-prog-dates { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.dchip { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--paper-2); border-left: 3px solid var(--subtle); font-variant-numeric: tabular-nums; }
.dchip.st-open { border-left-color: var(--st-open); }
.dchip.st-full { border-left-color: var(--st-full); }
.dchip.st-pre { border-left-color: var(--st-pre); border-left-style: dashed; }
.dchip.st-live { border-left-color: var(--st-live); }
.dchip.more { border-left: none; color: var(--subtle); }
.ct-prog-new {
  align-items: center; justify-content: center; gap: 8px; min-height: 220px;
  border: 1.5px dashed var(--field-border); background: none; cursor: pointer; color: var(--ink-2); font: inherit;
}
.ct-prog-new .ic { width: 22px; height: 22px; }
.ct-prog-new:hover { color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }

/* ── Tickets (departures) ──────────────────────────────────────────── */
.tickets { display: flex; flex-direction: column; gap: 8px; }
.ticket {
  position: relative;
  /* Date, then status, then seats. The spare width sits in the price column,
     so the number stays on the right and the middle does not open a hole. */
  display: grid; grid-template-columns: 208px minmax(0, 1fr) max-content max-content; align-items: center; gap: 0 20px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 12px 16px 12px 0; text-decoration: none; color: var(--ink);
  border-left: 4px solid var(--subtle);
}
a.ticket:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.st-line-open { border-left-color: var(--st-open); }
.st-line-full { border-left-color: var(--st-full); }
.st-line-pre { border-left-color: var(--st-pre); border-left-style: dashed; }
.st-line-live { border-left-color: var(--st-live); }
.st-line-done { border-left-color: var(--st-done); }
.st-line-off { border-left-color: var(--st-off); }
.ticket.is-archived { opacity: .7; }
.ticket-date {
  position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  padding: 0 16px; border-right: 1.5px dashed var(--stroke);
}
/* The perforation: two half-moons punched out of the ticket edge. */
.ticket-date::before, .ticket-date::after {
  content: ""; position: absolute; right: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
}
.ticket-date::before { top: -20px; }
.ticket-date::after { bottom: -20px; }
.ticket-date > b {
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em; line-height: 1.2;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ticket-date span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.ticket-date .dt-public-id { font-weight: 700; color: var(--ink); }
.ticket-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ticket-facts { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ticket-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; }
.ticket-note { font-size: 12.5px; color: var(--ink-2); }
.ticket-seats { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.ticket-price { justify-self: end; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ticket-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.ticket-act .btn-small b { color: var(--accent-ink); }
.ticket-editor { grid-column: 1 / -1; padding: 12px 0 0 16px; }
.ticket-editor .ct-card { box-shadow: none; background: var(--paper-2); }
.ticket-compact { grid-template-columns: 208px minmax(160px, 1fr) max-content max-content; }

/* ── Generic surfaces & forms in the catalog ───────────────────────── */
/* Column with one rhythm: every block (rows, strips, buttons) is 16px apart, so a
   label always sits closer to its own input than to the row above. A grey note
   hugs the thing it explains. */
.ct-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sh-card); }
.ct-card h3 { margin: 0 0 2px; }
.ct-card > h3,
.ct-card > .ct-card-head h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
}
.ct-card > h3 { margin-bottom: 0; }
.ct-card > h3,
.ct-card > .ct-card-head {
  padding-bottom: 12px; border-bottom: 1px solid var(--divider);
}
.ct-card h4 { font-size: 13px; font-weight: 600; margin: 6px 0 -8px; color: var(--ink-2); }
.ct-card > p.muted.sm, .ct-card > .muted.sm { margin: -8px 0 0; }
.ct-card .field { gap: 8px; }
.ct-card .field > .muted.sm { margin: 0; }
.ct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.ct-card-head h3 { margin: 0; }
.ct-form { display: flex; flex-direction: column; gap: 14px; }
.ct-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-field-narrow { flex: 0 0 150px !important; }
.sc-colors { display: flex; align-items: center; gap: 8px; }
.sc-colors input[type="color"] { width: 56px; flex: none; }
.sc-swatch { width: 42px; height: 42px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; font-size: 20px; }
.sc-colors .btn-small { margin-left: 4px; white-space: nowrap; height: 42px; }
.ct-cover-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-cover-pick img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-md); }
.ct-ro-note { font-size: 13px; color: var(--ink-2); background: var(--paper-2); border: 1px dashed var(--stroke); border-radius: var(--r-md); padding: 8px 12px; }
.ct-savebar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 30%);
}
.sm-select { padding: 6px 10px; font-size: 13px; }
select.sm-select:not(.st-select) { padding-right: 30px; background-position: right 11px center; }
.money-input { display: flex; align-items: center; position: relative; }
.money-input input { width: 100%; padding-right: 30px; text-align: right; }
.money-input span { position: absolute; right: 11px; color: var(--subtle); font-size: 13px; pointer-events: none; }
.ct-table th { padding: 6px 10px; }
.ct-table td { padding: 8px 10px; }
.ct-table tfoot td { font-weight: 600; border-top: 1px solid var(--stroke); }

/* ── Program page ──────────────────────────────────────────────────── */
.pg-sheet {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px;
  padding: 18px 18px 14px; box-shadow: var(--sh-card);
}
.pg-head { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.pg-cover { width: 108px; height: 108px; border-radius: 22px; background: linear-gradient(150deg, var(--c1, var(--accent)), var(--c2, var(--ink))) center / cover; box-shadow: var(--sh-photo), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pg-title h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.pg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pg-price { text-align: right; }
.pg-price b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pg-price span { font-size: 12.5px; color: var(--subtle); }
.pg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 36px; height: 21px; border-radius: 11px; background: var(--field-border); position: relative; transition: background .15s ease; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.switch input:checked + .switch-ui { background: var(--st-open); }
.switch input:checked + .switch-ui::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs {
  position: relative;
  display: flex; align-items: center; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none;
  background: var(--elevated); border-radius: 14px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13.5px;
  line-height: 1; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.tabs a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tabs a.on {
  color: var(--ink); background: var(--surface); font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 20, 36, .06), 0 8px 16px -10px rgba(16, 20, 36, .45);
}
.tabs a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
/* The runner is the selected pill. Once it is in the bar, the link itself
   stays clear so the pill can slide from the previous tab. */
.tab-runner {
  position: absolute; z-index: 0; border-radius: 10px; pointer-events: none;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 20, 36, .06), 0 8px 16px -10px rgba(16, 20, 36, .45);
  transition:
    left .34s cubic-bezier(.22, 1, .36, 1), width .34s cubic-bezier(.22, 1, .36, 1),
    top .34s cubic-bezier(.22, 1, .36, 1), height .34s cubic-bezier(.22, 1, .36, 1);
}
.tabs > .tab-runner::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.tabs > .tab-runner.is-danger::after { background: var(--red); }
.tabs:has(.tab-runner) a.on { background: none; box-shadow: none; }
.tabs:has(.tab-runner) a.on::after { content: none; }
.tabs:has(.tab-runner) a.on:hover { background: none; }
@media (prefers-reduced-motion: reduce) {
  .tab-runner { transition: none; }
}
.tab-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 11px; font-weight: 600; line-height: 1; color: var(--subtle);
  background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 9px;
  font-variant-numeric: tabular-nums;
}
.tabs a.on .tab-count { background: var(--accent-weak); color: var(--accent-ink); }
.pg-tab { padding-top: 4px; }

/* ── Overview: calculator + facts ──────────────────────────────────── */
.ov { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ov-side { display: flex; flex-direction: column; gap: 18px; }
.calc { display: flex; flex-direction: column; gap: 14px; }
.calc-grid { display: flex; flex-direction: column; gap: 8px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field-border); border-radius: var(--r-md); overflow: hidden; }
.stepper button { width: 32px; height: 34px; border: none; background: var(--paper-2); cursor: pointer; font-size: 16px; color: var(--ink-2); }
.stepper button:hover:not(:disabled) { color: var(--accent-ink); background: var(--accent-weak); }
.stepper button:disabled { color: var(--stroke); cursor: not-allowed; }
.stepper input { width: 46px; border: none; border-radius: 0; text-align: center; padding: 6px 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { box-shadow: none; }
.calc-discounts { display: flex; flex-direction: column; gap: 6px; }
.calc-out { background: var(--paper-2); border-radius: var(--r-md); padding: 12px 14px; }
.calc-table td { padding: 5px 0; border: none; font-size: 13.5px; }
.calc-table td:nth-child(2) { color: var(--subtle); text-align: right; padding-right: 14px; }
.calc-table td:last-child { text-align: right; font-weight: 500; }
.calc-table tr:hover td { background: none; }
.calc-disc-row td { color: var(--green) !important; }
.calc-total td { border-top: 1px solid var(--stroke) !important; padding-top: 10px !important; font-family: var(--font-display); font-size: 20px; font-weight: 700 !important; color: var(--ink) !important; }
.calc-rub td { color: var(--subtle) !important; font-size: 12.5px; }
.calc-promo { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-ink); margin-top: 8px; }
.calc-warn { font-size: 13px; color: var(--amber); margin-top: 8px; }
.mini-dates { display: flex; flex-direction: column; }
.mini-date {
  display: grid; grid-template-columns: 110px 100px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--ink);
}
.mini-date:last-child { border-bottom: none; }
.mini-date:hover .mini-date-d { color: var(--accent-ink); }
.mini-date-d { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-date-p { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.facts { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.facts li { line-height: 1.45; }
.facts-note { display: block; font-size: 12.5px; color: var(--subtle); }

.params, .pr, .money { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }

/* ── Dates tab ─────────────────────────────────────────────────────── */
.dt { display: flex; flex-direction: column; gap: 12px; }
.dt-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dt-legend { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.dt-actions { margin-left: auto; display: flex; gap: 8px; }
.dt-subs { display: flex; align-items: center; gap: 6px; }
.dt-paste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dt-paste-grid textarea { width: 100%; font-variant-numeric: tabular-nums; }
.dt-paste-preview { background: var(--paper-2); border-radius: var(--r-md); padding: 10px 14px; font-size: 13.5px; max-height: 220px; overflow-y: auto; }
.dt-paste-preview ul { padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.dt-paste-preview li.dup { color: var(--subtle); text-decoration: line-through; }

.ct-menu {
  position: absolute; z-index: 300; min-width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); box-shadow: var(--sh-2);
  display: flex; flex-direction: column;
}
.ct-menu button { text-align: left; background: none; border: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.ct-menu button:hover { background: var(--paper-2); }

/* ── People tab ────────────────────────────────────────────────────── */
.pp { display: flex; flex-direction: column; gap: 14px; }
.pp-deps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pp-dep {
  flex: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; min-width: 112px;
  background: var(--surface); border: 1px solid var(--stroke); border-left-width: 3px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.pp-dep b { font-weight: 600; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-dep span { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.pp-dep.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pp-dep.on span { color: rgba(255,255,255,.7); }
.pp-seats { display: inline-flex; align-items: center; gap: 3px; vertical-align: baseline; }
.pp-seats .ic { width: 11px; height: 11px; stroke-width: 1.9; }

/* Hotel mark on a departure chip: one Monopoly house + count. */
.pp-hotels {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.pp-hotels b { font-size: 12px; font-weight: 600; color: inherit; }
.pp-house { display: block; width: 11px; height: 10px; flex: none; fill: #2f9e4f; }
.pp-dep.on .pp-house { fill: #7ad698; }
.pp-hotels.is-empty .pp-house { fill: none; stroke: var(--subtle); stroke-width: 1.25; }
.pp-dep.on .pp-hotels.is-empty .pp-house { stroke: rgba(255, 255, 255, .42); }

.pp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pp-stat { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pp-stat-label { font-size: 12.5px; color: var(--subtle); }
.pp-stat > b { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pp-stat > b small { font-family: var(--font-ui); font-size: 13px; color: var(--subtle); font-weight: 400; letter-spacing: 0; }
.pp-rooms-free { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.pp-rooms-free li { display: flex; align-items: center; gap: 8px; }
.room-kind { font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--elevated); color: var(--ink-2); padding: 1px 6px; border-radius: 5px; }
.pp-rooms-free .no { color: var(--subtle); font-weight: 500; }
.pp-rooms-free .ok { color: var(--green); }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--elevated); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--st-open); border-radius: 3px; }

.pp-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: var(--amber-weak); border-radius: var(--r-md); padding: 10px 14px; font-size: 13.5px;
}
.pp-banner-soft { background: var(--paper-2); border: 1px dashed var(--stroke); }
.pp-bday { background: var(--amber-weak); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.pp-bday > b { color: var(--amber); }
.bday-mark {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; color: var(--amber); background: var(--amber-weak);
  border-radius: 5px; padding: 1px 5px; vertical-align: 1px; white-space: nowrap;
}
.pp-tr.is-bday { box-shadow: inset 3px 0 0 var(--amber); }
.pp-banner-item { display: inline-flex; align-items: center; gap: 6px; }
.pp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-room-add { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.pp-room-add .ic { margin-right: 2px; }
.pp-spacer { flex: 1; }

.pp-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.room { background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, background .12s; }
.room.full { background: var(--paper-2); }
.room.over { border-color: var(--red); }
.room.drop { border-color: var(--accent); background: var(--accent-weak); }
.room-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-height: 24px; }
.room-no { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); min-width: 16px; }
.room-bed { background: none; border: 1px dashed var(--field-border); border-radius: 5px; font-size: 11.5px; padding: 0 5px; color: var(--ink-2); cursor: pointer; }
.room-hotel { color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-del { margin-left: auto; width: 24px; height: 24px; }
.room-body { display: flex; flex-wrap: wrap; gap: 5px; }
.occ {
  font-size: 12.5px; padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #fff;
  cursor: grab; user-select: none; white-space: nowrap;
}
.occ i { font-style: normal; opacity: .7; font-size: 11px; }
.occ.dragging { opacity: .4; }
.occ-free { font-size: 12px; padding: 3px 8px; border-radius: 7px; border: 1px dashed var(--field-border); color: var(--subtle); }
.room-loose { background: var(--paper-2); border-style: dashed; }

.pp-list { display: flex; flex-direction: column; gap: 8px; }
.pp-list-head { display: flex; align-items: center; justify-content: space-between; }
.pp-list-head h3 { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.pp-list-head h3 span { color: var(--subtle); font-weight: 400; font-size: 13px; }
.pp-table { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; }
.pp-tr {
  display: grid; grid-template-columns: 34px minmax(170px, 2.2fr) minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--divider); cursor: pointer;
}
.pp-tr:last-child { border-bottom: none; }
.pp-tr:hover, .pp-tr.is-open { background: var(--paper-2); }
.pp-th { cursor: default; font-size: 12.5px; color: var(--subtle); padding-top: 8px; padding-bottom: 8px; }
.pp-th:hover { background: none; }
.pp-tr > span { min-width: 0; }
.pp-tr .num { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pp-tr small { display: block; font-size: 12px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-tr .neg small { color: var(--red); }
.pp-n { color: var(--subtle); font-variant-numeric: tabular-nums; }
.pp-who b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-marks { color: var(--ink-2) !important; }
.room-chip { font-size: 12px; background: var(--elevated); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.room-stays { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: 100%; }
.room-stays .room-chip { display: flex; flex-direction: column; max-width: 100%; min-width: 0; white-space: normal; overflow: hidden; }
.room-stays .room-chip b,
.room-stays .room-chip small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.room-stays .room-chip small { font-weight: 400; }
.pp-paid { display: flex; flex-direction: column; gap: 4px; }
.pp-flight { display: flex; flex-direction: column; }
.pp-tr.is-off { opacity: .55; }
.pp-tr.is-off b { text-decoration: line-through; }

.pp-editor { background: var(--paper-2); border-bottom: 1px solid var(--divider); padding: 16px; }
.pe-form { display: flex; flex-direction: column; gap: 16px; }
.pp-party { display: flex; flex-direction: column; gap: 6px; }
.pp-party p { margin: 0; }
.pp-companions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-companions li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13px; }
.pp-city .cu-picker { min-width: 0; }

.pe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pe-grid fieldset { border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 10px 12px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pe-grid legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.pe-pay { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pe-pay-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.pe-pay-head h4 { margin: 0; font-size: 14px; }
.pe-pay-add { display: flex; gap: 8px; flex-wrap: wrap; }
.pe-pay-add select, .pe-pay-add input { flex: 1 1 120px; min-width: 0; }

.pp-team { display: flex; flex-direction: column; gap: 10px; }
.pp-team h3 { margin: 0; }
.pp-team-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-team-item { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 10px; padding: 4px 6px 4px 12px; }
.pp-team-add { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-team-add input, .pp-team-add select { flex: 1 1 140px; max-width: 220px; }

/* ── Prices tab ────────────────────────────────────────────────────── */
.pr-app { font-size: 14px; }
.rules { display: flex; flex-direction: column; gap: 10px; }
.rule { border: 1px solid var(--divider); border-radius: var(--r-md); padding: 10px 12px; background: var(--paper-2); }
.rule-head { display: flex; align-items: center; gap: 12px; }
.rule-head b { font-weight: 600; white-space: nowrap; }
.rule-say { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.rule-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rule-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--subtle); min-width: 130px; }
.rule-lab { display: inline-flex; align-items: center; gap: 6px; }
.rule-fields .rule-note { flex: 1 1 280px; }
.pr-deps input { width: 140px; text-align: right; }
.promo-row { padding: 10px 0; border-top: 1px solid var(--divider); }
.promo-row:first-of-type { border-top: none; }
.promo-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pr-join { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }

.promo-cards { display: flex; flex-direction: column; gap: 14px; }
.promo-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  min-width: 0; padding-left: 24px; overflow: hidden;
}
.promo-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--subtle);
}
.promo-card.pm-live::before { background: var(--green); }
.promo-card.pm-soon::before { background: var(--amber); }
.promo-card.pm-past { background: var(--paper-2); }
.promo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.promo-card-id { min-width: 0; }
.promo-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.pm-live .promo-kicker { color: var(--green); }
.pm-soon .promo-kicker { color: var(--amber); }
.promo-card h3 {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.promo-pct-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.promo-pct-block span:last-child { font-size: 12px; color: var(--subtle); }
.promo-pct { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--accent-ink); letter-spacing: -0.03em; }
.promo-pct-own { font-size: 22px; color: var(--ink); }
.promo-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  padding: 14px 16px; border-radius: 14px; background: #19335f; color: #fff; font-size: 14px;
}
.promo-banner-mark {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f0b59a;
}
.promo-banner strong { font-weight: 700; }
.promo-banner span:not(.promo-banner-mark) { color: rgba(255,255,255,.78); }
.promo-banner.is-empty {
  background: transparent; color: var(--subtle); border: 1px dashed var(--stroke); font-size: 13px;
}
.ct-form .form-row .field input,
.ct-form .form-row .field select { min-width: 0; }
.promo-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.promo-board {
  min-width: 0; display: flex; flex-direction: column; gap: 8px;
  background: var(--paper-2); border-radius: 14px; padding: 12px;
}
.pm-past .promo-board { background: var(--surface); }
.promo-board-head { display: flex; align-items: center; gap: 10px; }
.promo-board-head .pm-find { flex: 1; min-width: 0; margin: 0; }
.ct-card h4.promo-list-title { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.promo-list-title span { color: var(--muted); font-weight: 500; }
.promo-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.promo-tour, .promo-out {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 8px; border-radius: 10px; background: var(--surface);
}
.promo-tour-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.promo-off {
  display: flex; flex: none; border: 1px solid var(--field-border); border-radius: 10px; overflow: hidden; background: var(--surface);
}
.promo-off select, .promo-off input {
  border: 0; border-radius: 0; background: transparent; box-shadow: none; height: 32px; padding: 4px 8px;
}
.promo-off select { width: 58px; padding-right: 26px; background-position: right 8px center; }
.promo-off input { width: 72px; border-left: 1px solid var(--divider); text-align: right; }
.promo-off select:focus, .promo-off input:focus { box-shadow: inset 0 0 0 2px var(--accent-weak); }
.promo-chip {
  flex: none; font-size: 11px; font-weight: 600; color: var(--amber);
  background: var(--amber-weak); padding: 2px 6px; border-radius: 6px;
}
.promo-add { flex: none; background: transparent; color: var(--ink); }
.promo-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.promo-empty, .promo-none, .promo-note { margin: 0; font-size: 13px; color: var(--subtle); }
.promo-note { font-style: italic; }
.promo-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-find { width: 100%; box-sizing: border-box; }
.promo-sheet-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr); gap: 28px; align-items: start; }
.promo-sheet-fields, .promo-sheet-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.promo-sheet-side { position: sticky; top: 16px; }
.promo-sheet-kicker {
  margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--subtle);
}
.promo-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-choice { position: relative; display: inline-flex; }
.promo-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.promo-choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.promo-choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.promo-choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-weak); }
.promo-swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.promo-swatch-navy { background: #19335f; }
.promo-swatch-black { background: #121214; }
.promo-swatch-wine { background: #7a1624; }
@media (max-width: 900px) {
  .promo-lists, .promo-sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-sheet-side { position: static; }
  .promo-pct { font-size: 26px; }
}
.promo-when { font-weight: 500; }
.fx input { width: 130px; }

/* ── Showcase tab ──────────────────────────────────────────────────── */
.sc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sc-form { display: flex; flex-direction: column; gap: 16px; }
.sc .gallery-strip,
.sc .video-box {
  align-items: center; min-height: 112px; padding: 12px;
  background: var(--paper-2); border: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 14px;
}
.sc .gallery-strip:not(:has(.gallery-item)),
.sc .video-box:not(:has(.video-item)) { justify-content: center; }
.sc .gallery-strip:has(.gallery-item),
.sc .video-box:has(.video-item) { border-style: solid; border-color: var(--divider); }
.sc-form .gallery-item { width: 148px; height: 104px; border-radius: 12px; cursor: grab; box-shadow: var(--sh-1); }
.sc-days { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.sc-day { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; }
.sc-day-n { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--subtle); padding-top: 8px; text-align: center; }
.sc-day-fields { display: flex; flex-direction: column; gap: 6px; }
.sc-day-fields input, .sc-day-fields textarea { width: 100%; }
.sc-day-act { display: flex; flex-direction: column; gap: 2px; }
.sc-preview { position: sticky; top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ph-frame {
  position: relative; width: 300px; height: 628px; padding: 11px; border-radius: 48px;
  background:
    linear-gradient(165deg, #5c616c 0%, #2c3038 8%, #14161a 22%, #0c0d10 55%, #2a2e36 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 0 0 3px #07080a,
    0 22px 44px -20px rgba(16, 20, 36, .6);
}
.ph-side {
  position: absolute; width: 3px; left: -2px; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #8b909a, #3a3e46 45%, #121316);
}
.ph-silent { top: 96px; height: 24px; }
.ph-vol1 { top: 138px; height: 48px; }
.ph-vol2 { top: 196px; height: 48px; }
.ph-power { left: auto; right: -2px; top: 162px; height: 74px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #8b909a, #3a3e46 45%, #121316); }
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: #f7f3ec; color: #1f2740; font-size: 13px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 54px 14px 26px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
}
.ph-island {
  position: absolute; top: 11px; left: 50%; z-index: 2; width: 84px; height: 26px;
  transform: translateX(-50%); background: #07080a; border-radius: 20px;
}
.ph-island i {
  position: absolute; right: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3d5270, #0c1422 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.ph-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 22px; font-size: 14px; font-weight: 600; letter-spacing: -0.03em;
}
.ph-status { display: inline-flex; align-items: center; gap: 5px; }
.ph-status svg { width: 16px; height: 12px; fill: currentColor; display: block; }
.ph-status svg:last-child { width: 24px; }
.ph-home {
  position: absolute; left: 50%; bottom: 8px; z-index: 2; width: 112px; height: 5px;
  transform: translateX(-50%); border-radius: 5px; background: #1a1a1a;
}
.ph-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; padding: 4px 4px 0; }
.ph-card { position: relative; height: 230px; border-radius: 20px; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; padding: 14px; flex: none; }
.ph-symbol { position: absolute; top: 12px; right: 14px; font-size: 30px; line-height: 1; }
.ph-video { position: absolute; top: 10px; left: 10px; font-size: 10.5px; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 6px; }
.ph-card-text { display: flex; flex-direction: column; gap: 3px; }
.ph-card-text b { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.1; }
.ph-card-text span { font-size: 12.5px; opacity: .92; }
.ph-meta { font-size: 11.5px !important; opacity: .8 !important; }
.ph-section { font-weight: 600; font-size: 13px; padding: 4px 4px 0; }
.ph-list, .ph-days { padding-left: 20px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }

/* ── Dialog ────────────────────────────────────────────────────────── */
.ct-dialog-wrap { position: fixed; inset: 0; z-index: 500; background: rgba(35, 44, 69, .42); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; }
.ct-dialog { background: var(--surface); border-radius: var(--r-xl); padding: 22px 22px 18px; width: 460px; max-width: 100%; box-shadow: var(--sh-2); display: flex; flex-direction: column; gap: 10px; }
.ct-dialog h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.ct-dialog p { color: var(--ink-2); line-height: 1.5; }
.ct-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ── Print pages ───────────────────────────────────────────────────── */
body.ct-print-mode .sidebar, body.ct-print-mode .anya-bar { display: none !important; }
body.ct-print-mode main { max-width: 1000px; margin: 0 auto; }
.print-page { background: #fff; border-radius: var(--r-lg); padding: 28px 36px 40px; box-shadow: var(--sh-1); border: 1px solid var(--stroke); }
.pr-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -6px 0 22px; }
.pr-toolbar .btn-primary { margin-left: auto; }
.pl-head { margin-bottom: 20px; }
.pl-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin-bottom: 6px; }
.pl-head p { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-head p.pl-bday, .pl-head p.pl-clash { display: block; margin-top: 10px; background: var(--amber-weak); border-radius: 8px; padding: 8px 12px; color: var(--ink); }
.pl-clash b { color: var(--amber); }
.pl-bday b { color: var(--amber); }
.pl-dest { margin-top: 22px; break-inside: avoid-page; }
.pl-dest h2 { font-size: 22px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.pl-prog { padding: 10px 0 12px; border-bottom: 1px solid var(--divider); break-inside: avoid; }
.pl-prog-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pl-prog-head h3 { margin: 0; font-size: 15px; }
.pl-price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-price small { color: var(--subtle); font-weight: 400; }
.pl-promo { font-size: 13px; color: var(--accent-ink); margin-top: 2px; }
.pl-dates { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.pl-date { font-size: 12.5px; padding: 1px 7px; border-radius: 5px; background: #fff; border: 1px solid var(--stroke); font-variant-numeric: tabular-nums; }
.pl-date.st-full { background: #f9cb9c; border-color: #f9cb9c; }
.pl-date.st-pre { background: #a4c2f4; border-color: #a4c2f4; }
.pl-date.st-off { background: #ea9999; border-color: #ea9999; text-decoration: line-through; }
.pl-rules { margin: 6px 0 0 18px; font-size: 12.5px; color: var(--ink-2); }
.pl-note { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; }
.rl-doc .pl-key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 0; color: #3a4258; }
.rl-doc .pl-dest h2 { color: #121722; border-bottom-color: #121722; }
.rl-doc .pl-prog-head h3, .rl-doc .pl-price { color: #121722; }
.rl-doc .pl-promo { color: #c2410c; }
.rl-doc .pl-rules, .rl-doc .pl-note, .rl-doc .pl-price small { color: #3a4258; }
.rl-doc .ps, .rl-doc .ps-desc { color: #121722; }
.rl-doc .ps-facts div { background: #f4f1eb; }
.rl-doc .ps-facts span { color: #667085; }
.rl-doc .ps-facts b { color: #121722; }
.rl-doc .ps-cover h1 { color: #fff; }

/* separate + outer border: collapse + translucent stroke drops the last row in print */
.print-table {
  margin: 8px 0 20px; font-size: 13px; width: 100%;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid rgba(18, 23, 34, 0.28);
}
.print-table th, .print-table td {
  border: 0;
  border-right: 1px solid rgba(18, 23, 34, 0.22);
  border-bottom: 1px solid rgba(18, 23, 34, 0.22);
  padding: 6px 8px;
}
.print-table tr > :last-child { border-right: 0; }
.print-table tr:last-child > * { border-bottom: 0; }
/* Day, month and year in one tight row. The hidden months make every
   abbreviation as wide as the widest, so the years line up without a hole. */
.rl-birth { white-space: nowrap; }
.rl-born {
  display: inline-grid;
  grid-template-columns: 2ch max-content 4ch;
  column-gap: 0.35em;
  align-items: baseline;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
  color: inherit;
  font-size: inherit;
}
.rl-d { text-align: right; }
.rl-m { display: inline-block; }
.rl-m::after {
  content: "янв\Aфев\Aмар\Aапр\Aмай\Aиюн\Aиюл\Aавг\Aсен\Aокт\Aноя\Aдек";
  white-space: pre;
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.rooming h2, .program-sheet h2 { font-size: 18px; margin: 18px 0 8px; }

.ps { display: flex; flex-direction: column; gap: 18px; }
.ps-cover { height: 340px; border-radius: 18px; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; padding: 26px 30px; position: relative; overflow: hidden; }
.ps-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,24,40,.7)); }
.ps-cover > div { position: relative; z-index: 1; }
.ps-cover h1 { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.ps-tag { font-size: 16px; margin-top: 6px; }
.ps-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ps-facts div { background: var(--paper-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.ps-facts span { font-size: 12px; color: var(--subtle); }
.ps-facts b { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.ps-desc { font-size: 15px; line-height: 1.6; max-width: 72ch; }
.ps-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-dates span { border: 1px solid var(--stroke); border-radius: 8px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.ps-dates span.full { color: var(--subtle); text-decoration: line-through; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ps ul, .ps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ps-days li p { color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; }
.ps-foot { color: var(--subtle); font-size: 12px; border-top: 1px solid var(--divider); padding-top: 10px; }

/* Rooming list is a sheet the guide hands to a hotel. Fixed ink, not the
   panel's mood: a Halloween theme must not print cream type on white paper. */
.rl-doc { color: #121722; }
.rl-mast {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  border-radius: 18px; color: #121722;
  background:
    radial-gradient(520px 160px at 100% -30%, rgba(232, 93, 44, .18), transparent 62%),
    #f7f3ec;
}
.rl-mast img {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 3px #fff;
}
.rl-word {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #1b2a4a;
}
.rl-claim { margin-top: 2px; font-size: 12.5px; color: #3a4258; }
.rl-mast-meta { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.rl-mast-meta b { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.rl-mast-meta span { font-size: 12.5px; color: #3a4258; }
.rl-stripe { height: 5px; border-radius: 999px; margin: 16px 0 18px; background: linear-gradient(90deg, #e85d2c, #1b2a4a); }
.rl-where {
  margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #e85d2c;
}
.rl-doc > h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 6px; color: #121722;
}
.rl-doc > .rl-when { margin: 0; color: #3a4258; font-size: 15px; }
.rl-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rl-fact {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  background: #f4f1eb; border: 1px solid rgba(18, 23, 34, .08);
  font-size: 12.5px; font-weight: 600; color: #121722;
}
.rl-doc p.pl-bday, .rl-doc p.pl-clash {
  display: block; margin-top: 10px; background: #fff1cc; border-radius: 8px;
  padding: 8px 12px; color: #121722;
}
.rl-doc .pl-clash b, .rl-doc .pl-bday b { color: #8a5a00; }
.rl-doc h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: #121722;
  text-shadow: none;
}
.rl-doc h2::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; background: #e85d2c; flex: none;
}
.rl-doc .print-table thead th {
  background: #121722; color: #fff; font-size: 11.5px; font-weight: 600;
  border-right-color: rgba(255, 255, 255, .16); border-bottom-color: #e85d2c;
}
.rl-doc .print-table thead th small { color: rgba(255, 255, 255, .72); font-weight: 500; }
.rl-doc tr.rl-band td {
  background: #f4f1eb; color: #3a4258; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding-top: 8px; padding-bottom: 8px;
}
.rl-notes { margin: 0 0 16px; padding-left: 18px; font-size: 13px; color: #3a4258; }
.rl-notes b { color: #121722; }
.rl-rooms-need {
  display: flex; flex-direction: column; gap: 8px;
  margin: -4px 0 12px; padding: 12px 14px; border-radius: 10px;
  background: #f4f1eb; border: 1px solid rgba(18, 23, 34, .08);
  color: #121722;
}
.rl-need-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rl-need-hotel {
  flex: none; min-width: 7.5rem; margin: 0; padding-right: 4px;
  font-size: 13px; font-weight: 700; color: #121722;
}
.rl-need-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rl-need-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 9px; border-radius: 8px;
  background: #fff; border: 1px solid rgba(18, 23, 34, .14);
  font-size: 12.5px; font-weight: 500; color: #3a4258;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rl-need-chip b { font-weight: 700; font-size: 13.5px; color: #121722; }
.rl-foot {
  display: flex; gap: 16px; align-items: center; margin-top: 28px; padding-top: 16px;
  border-top: 2px solid #121722; break-inside: avoid;
}
.rl-foot > div { min-width: 0; }
.rl-foot img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.rl-foot p { margin: 0; font-size: 12.5px; color: #3a4258; line-height: 1.45; }
.rl-foot a { color: #c2410c; text-decoration: none; }
.rl-foot-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em; color: #121722;
}
.rl-private {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: #fde7dc; color: #8a3416; font-size: 12.5px; break-inside: avoid;
}
/* The warning is a running footer, so a short sheet does not leave it alone on page 2. */
.print-page.rooming { page: rooming; }
.rl-mast, .rl-foot { break-inside: avoid; }
@media (max-width: 640px) {
  .rl-mast { flex-wrap: wrap; padding: 14px; }
  .rl-mast-meta { margin-left: 0; text-align: left; }
  .rl-doc > h1 { font-size: 26px; }
  .rl-foot { align-items: flex-start; }
}

@media print {
  @page { margin: 14mm; }
  @page rooming { margin: 14mm 14mm 18mm; }
  body { background: #fff; }
  .rl-private {
    position: fixed; bottom: 4mm; left: 0; right: 0; margin: 0;
    padding: 4px 14mm 0; border-radius: 0; font-size: 10px; line-height: 1.35;
    background: #fff; border-top: 1px solid #e7cfc4;
  }
  .sidebar, .anya-bar, .no-print, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .print-page { border: none; box-shadow: none; padding: 0; }
  .ps-cover, .pl-date, .ps-facts div, .rl-print td[class*="rl-tint"],
  .rl-mast, .rl-stripe, .rl-fact, .rl-private, .rl-doc h2::before,
  .rl-doc .print-table thead th, .rl-doc tr.rl-band td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-table { border-color: #888; }
  .print-table th, .print-table td { border-color: #888; }
}

/* ── Narrow screens ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .ov, .sc { grid-template-columns: 1fr; }
  .sc-preview { position: static; }
  .ticket:not(.ticket-compact) { grid-template-columns: 188px minmax(0, 1fr) max-content max-content; }
  .pp-tr { grid-template-columns: 28px minmax(150px, 2fr) 1fr 1fr 1fr; }
  .pp-tr > :nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  main { padding: 16px; }
  .ct-title { font-size: 30px; }
  .ct-hero h1 { font-size: 38px; }
  .pg-sheet { padding: 14px 12px 12px; border-radius: 16px; }
  .pg-head { grid-template-columns: 64px 1fr; }
  .pg-cover { width: 64px; height: 64px; border-radius: 16px; }
  .pg-side { grid-column: 1 / -1; align-items: flex-start; }
  .form-row { flex-direction: column; }
  .ct-field-narrow { flex: 1 1 auto !important; }
  .dt-paste-grid, .ps-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-tile, .ct-tile-media img { transition: none; }
  .ct-tile:hover { transform: none; }
  .ct-tile:hover .ct-tile-media img { transform: none; }
}

/* ── Fine-tuning after the first screenshots ───────────────────────── */
#pp-body { display: flex; flex-direction: column; gap: 14px; }
.ticket-sub .st-select { width: auto; align-self: flex-start; }
.ticket-act { min-width: 128px; }
.ph-card-text { min-width: 0; flex: 1; }
.ph-card-text b { overflow-wrap: anywhere; }
.promo-row .ct-table { table-layout: fixed; }
.promo-row .ct-table td:first-child { width: 170px; }
.promo-row .ct-table td:last-child { width: 44px; }
.promo-past { margin-top: 8px; border-top: 1px solid var(--divider); padding-top: 8px; }
.promo-past > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; padding: 4px 0; }
.promo-past[open] > summary { margin-bottom: 4px; }
.pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pe-trio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pe-grid .form-row { gap: 8px; }
@media (max-width: 1000px) { .pe-grid { grid-template-columns: 1fr; } }
.promo-card .ct-form-actions { margin-top: auto; }

/* ── Подрядчики и рабочие файлы (0094) ─────────────────────────────── */
.cr-kinds { flex-wrap: wrap; }
.cr-list { display: flex; flex-direction: column; gap: 0; }
.ct-card.cr-list { padding-top: 4px; padding-bottom: 4px; }
.cr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px) auto; gap: 16px; align-items: start; padding: 14px 0; }
.cr-row + .cr-row { border-top: 1px solid var(--divider); }
.cr-tab .cr-row { grid-template-columns: minmax(0, 1fr) auto; }
.cr-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-name b { font-weight: 600; }
.cr-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.cr-contacts a { color: var(--ink-2); }
.cr-contacts a:hover { color: var(--accent-ink); }
.cr-note { margin: 0; font-size: 12.5px; color: var(--subtle); white-space: pre-line; }
.cr-role { max-width: 560px; padding: 6px 10px; font-size: 13px; }
.cr-progs { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.cr-progs a { color: var(--ink-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-progs a:hover { color: var(--accent-ink); }
.cr-actions { display: flex; gap: 2px; }
.cr-tab { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.cr-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-md);
  border: 1px dashed var(--field-border); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cr-chip small { font-weight: 400; color: var(--subtle); font-size: 12px; }
.cr-chip:hover { border-color: var(--accent); border-style: solid; background: var(--accent-weak); }
.cr-chip .ic { width: 14px; height: 14px; color: var(--accent); }
.cr-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-pick select { flex: 1 1 260px; max-width: 420px; }
.cr-tab #cr-form-slot .cr-form { margin-top: 14px; box-shadow: none; }
@media (max-width: 760px) {
  .cr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-progs { grid-column: 1 / -1; grid-row: 2; }
}

.fl-tab { max-width: 900px; }
.fl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fl-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; }
.fl-row + .fl-row { border-top: 1px solid var(--divider); }
.fl-kind { justify-self: start; }
.fl-estimate { background: var(--green-weak); color: var(--st-open); }
.fl-contract { background: var(--blue-weak); color: var(--st-pre); }
.fl-link { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-link .ic { width: 14px; height: 14px; color: var(--subtle); flex: none; }
.fl-link:hover { color: var(--accent-ink); }
.fl-src { white-space: nowrap; }
.fl-add { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; }
@media (max-width: 760px) {
  .fl-add { grid-template-columns: 1fr; }
  .fl-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fl-src { display: none; }
}
.cr-contacts.muted { color: var(--subtle); }

/* ── Подрядчики v2 (0105): список, карточка, состав заезда, расчёты ─── */
.cr-toolbar select { min-width: 0; max-width: 240px; }
.cr-hidden { margin: 8px 2px 0; }
a.cr-row-link { grid-template-columns: minmax(0, 1fr) minmax(0, 220px) minmax(0, 150px); color: inherit; text-decoration: none; padding: 14px 10px; margin: 0 -10px; border-radius: var(--r-md); }
a.cr-row-link:hover { background: var(--paper-2); }
a.cr-row-link + a.cr-row-link { border-top: 1px solid var(--divider); }
.cr-row-blocked .cr-name b { color: var(--subtle); text-decoration: line-through; text-decoration-thickness: 1px; }
.cr-sub { font-size: 12.5px; color: var(--subtle); }
.cr-contacts span { color: var(--subtle); }
.cr-facts { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cr-debt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; font-variant-numeric: tabular-nums; }
.cr-debt b { font-weight: 600; }
.cr-debt small { color: var(--subtle); font-size: 12px; }
.cr-late b, .cr-late small { color: var(--red); }
.cr-st-reserve { background: var(--amber-weak); color: var(--amber); }
.cr-st-blocked { background: var(--red-weak); color: var(--red); }
.cr-st-active { background: var(--green-weak); color: var(--green); }
.cr-stars { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; white-space: nowrap; }
.cr-stars-on { color: var(--accent); letter-spacing: 1px; }
.cr-stars-off { color: var(--stroke); letter-spacing: 1px; margin-left: -4px; }
.cr-stars b { font-weight: 600; }
.cr-stars small { color: var(--subtle); }
/* Partner card. The checks are real inputs (submit, tests) but they cover
   the tile, so the screen shows a profile instead of a checklist. */
#cr-form-slot:empty, #crc-form:empty { display: none; }
.cr-form {
  gap: 0; max-width: 960px; padding: 4px 26px 18px;
  border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(16, 20, 36, 0.04), 0 16px 40px -24px rgba(16, 20, 36, 0.28);
  container: cr-form / inline-size;
}
.cr-form-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 16px; }
.cr-form-head h3 {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.03em; line-height: 1.15;
}
.cr-form-head p { margin: 5px 0 0; max-width: 54ch; color: var(--subtle); font-size: 13.5px; line-height: 1.45; }
.cr-avatar {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 16px; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em;
}
.cr-glance { margin: 8px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink); }
.cr-avatar.is-empty { background: var(--paper-2); color: var(--subtle); box-shadow: inset 0 0 0 1px var(--stroke); font-size: 28px; line-height: 1; }
.cr-avatar .ic { width: 22px; height: 22px; }
.cr-sec { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.cr-form-head + .cr-sec, .cr-sec + .cr-sec { border-top: 1px solid var(--divider); }
.cr-sec-h { display: flex; flex-direction: column; gap: 3px; }
.cr-sec-title {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em; color: var(--ink);
}
.cr-sec-lede { margin: 0; font-size: 13px; line-height: 1.45; color: var(--subtle); }
.cr-id { display: flex; flex-direction: column; gap: 14px; }
.cr-who, .cr-status-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.cr-who > span, .cr-status-wrap > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.cr-who input {
  width: 100%; height: 52px; padding: 0 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  border-radius: 14px; background: var(--paper-2); border-color: transparent;
}
.cr-who input::placeholder { font-weight: 500; }
.cr-who input:hover { background: var(--surface); border-color: var(--field-border); }
.cr-who input:focus { background: var(--surface); }
.cr-status { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-st {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; margin: 0; padding: 0 14px 0 12px;
  border: 1px solid var(--stroke); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; cursor: pointer; user-select: none;
}
.cr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cr-st[data-st="active"] .cr-dot { background: var(--green); }
.cr-st[data-st="reserve"] .cr-dot { background: var(--amber); }
.cr-st[data-st="blocked"] .cr-dot { background: var(--red); }
.cr-st:not(:has(input:checked)) .cr-dot { opacity: .45; }
.cr-st:hover:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--ink) 22%, var(--stroke)); color: var(--ink); }
.cr-st[data-st="active"]:has(input:checked) { background: var(--green-weak); border-color: color-mix(in srgb, var(--green) 42%, transparent); color: var(--green); font-weight: 600; }
.cr-st[data-st="reserve"]:has(input:checked) { background: var(--amber-weak); border-color: color-mix(in srgb, var(--amber) 48%, transparent); color: var(--amber); font-weight: 600; }
.cr-st[data-st="blocked"]:has(input:checked) { background: var(--red-weak); border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--red); font-weight: 600; }
.cr-status-note input { width: 100%; background: var(--paper-2); border-color: transparent; }
.cr-form[data-status="reserve"] .cr-status-note input:not(:focus) { background: var(--amber-weak); }
.cr-form[data-status="blocked"] .cr-status-note input:not(:focus) { background: var(--red-weak); }
.cr-status-note input:hover { background: var(--surface); border-color: var(--field-border); }
.cr-status-note input:focus { background: var(--surface); }
.cr-kind-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-kind {
  position: relative; display: inline-flex; flex-direction: row; align-items: center;
  gap: 7px; height: 34px; margin: 0; padding: 0 12px 0 8px;
  border: 1px solid var(--stroke); border-radius: 8px; background: var(--surface); color: var(--ink);
  cursor: pointer; user-select: none;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.cr-kind > span:last-child { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.cr-kind-mark { font-size: 16px; line-height: 1; }
.cr-kind:hover:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--ink) 24%, var(--stroke)); }
.cr-kind:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.cr-app-lock { margin: 0; font-size: 13px; line-height: 1.4; color: var(--red); }
.cr-where-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.cr-where-search { position: relative; flex: 1 1 200px; max-width: 260px; display: flex; align-items: center; }
.cr-where-search .ic { position: absolute; left: 12px; color: var(--subtle); pointer-events: none; }
.cr-where-search input {
  width: 100%; height: 38px; padding-left: 34px; border-radius: var(--r-pill);
  background: var(--paper-2); border-color: transparent;
}
.cr-where-search input:hover, .cr-where-search input:focus { background: var(--surface); border-color: var(--field-border); }
.cr-where-hint { margin: 0; flex: 1 1 240px; font-size: 13px; line-height: 1.4; color: var(--subtle); }
.cr-where-hint.is-on { color: var(--ink-2); }
.cr-where-empty { margin: 0; }
.cr-picked-wrap { display: flex; flex-direction: column; gap: 8px; }
.cr-picked { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-picked-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 10px 0 8px;
  border: 0; border-radius: 8px; background: var(--ink); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cr-picked-chip::after { content: "×"; margin-left: 2px; font-weight: 500; opacity: .65; }
.cr-picked-chip:hover { filter: brightness(1.15); }
.cr-where-group + .cr-where-group { margin-top: 4px; }
.cr-region {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em; color: var(--ink);
}
.cr-where-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-where {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 32px; margin: 0; padding: 0 10px 0 6px;
  border: 1px solid var(--stroke); border-radius: 8px; background: var(--surface);
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none;
}
.cr-flag { font-size: 16px; line-height: 1; flex: none; }
.cr-where:hover:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--ink) 24%, var(--stroke)); }
.cr-where:has(input:checked) { order: -1; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cr-hit {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: inherit; background: transparent; box-shadow: none;
  opacity: 0.02; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.cr-hit:focus, .cr-hit:focus-visible { outline: none; box-shadow: none; border-color: transparent; }
.cr-kind:has(.cr-hit:focus-visible),
.cr-where:has(.cr-hit:focus-visible),
.cr-st:has(.cr-hit:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-reach {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px;
  padding: 14px; border-radius: 16px; background: var(--paper-2);
}
.cr-reach .cr-span { grid-column: 1 / -1; }
.cr-channels { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cr-channel-bar { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cr-channel-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-channel-x {
  margin-left: 8px; padding: 0; border: 0; background: none; color: var(--subtle);
  font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.cr-channel-x:hover { color: var(--ink); }
.cr-reach .field > span:first-child { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.cr-in { position: relative; display: block; }
.cr-in .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.cr-in input { height: 42px; padding-left: 36px; background: var(--surface); }
.cr-in:focus-within .ic { color: var(--ink); }
.cr-note-field { display: flex; flex-direction: column; gap: 12px; }
.cr-note-field textarea {
  width: 100%; min-height: 88px; border-radius: 14px;
  background: var(--paper-2); border-color: transparent;
}
.cr-note-field textarea:hover, .cr-note-field textarea:focus { background: var(--surface); border-color: var(--field-border); }
.cr-form .ct-form-actions { border-top: 1px solid var(--divider); padding-top: 16px; }
@container cr-form (max-width: 680px) {
  .cr-reach, .cr-channels { grid-template-columns: 1fr; }
  .cr-reach .cr-span { grid-column: auto; }
  .cr-where-search { max-width: none; }
}
.cr-warn { color: var(--red); }
.btn-link { background: none; border: none; padding: 0; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font: inherit; }

.cr-card .pg-tab { margin-top: 16px; }
.cr-ov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cr-ov .ct-card h3 { margin-top: 0; }
.cr-dl { display: grid; gap: 6px; margin: 12px 0 0; }
.cr-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.cr-dl dt { color: var(--subtle); }
.cr-dl dd { margin: 0; }
.cr-status-line { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-md); font-size: 13px; }
.cr-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cr-plain a { color: var(--ink); }
.cr-reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cr-reviews p { margin: 4px 0 0; font-size: 13px; white-space: pre-line; }
.cr-trips { display: flex; flex-direction: column; }
.cr-trip { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.cr-trip + .cr-trip { border-top: 1px solid var(--divider); }
.cr-trip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-trip-head a { color: var(--ink); text-decoration: none; }
.cr-trip-head a:hover { color: var(--accent-ink); }
.cr-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-rate-stars { display: inline-flex; }
.cr-rate-stars button { background: none; border: none; padding: 0 2px; font-size: 20px; line-height: 1; color: var(--stroke); cursor: pointer; }
.cr-rate-stars button.on { color: var(--accent); }
.cr-rate-review { flex: 1 1 220px; max-width: 460px; padding: 6px 10px; font-size: 13px; }
.cr-rates td { vertical-align: top; }
.cr-rate-add { display: grid; grid-template-columns: minmax(0, 2fr) 110px 70px 140px minmax(0, 1.5fr) 140px 140px auto; gap: 8px; margin-top: 14px; }
.cr-kpis, .cr-dep-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cr-kpis > div, .cr-dep-total > div { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--sh-1); }
.cr-dep-total { margin: 16px 0 0; }
.cr-kpis small, .cr-dep-total small { color: var(--subtle); font-size: 12px; }
.cr-kpis b, .cr-dep-total b { font-family: var(--font-ui); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.cr-kpi-debt b { color: var(--red); }
.cr-charges td { vertical-align: middle; }
.cr-charges input[type="date"] { padding: 4px 6px; font-size: 12.5px; }
.cr-num { width: 64px; padding: 4px 6px; font-size: 13px; text-align: right; }
.cr-num-w { width: 92px; }
.cr-pay { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cr-pay-paid { background: var(--green-weak); color: var(--green); }
.cr-pay-part { background: var(--amber-weak); color: var(--amber); }
.cr-pay-due { background: var(--paper-2); color: var(--ink-2); }
.cr-pay-late { background: var(--red-weak); color: var(--red); }
.cr-charges .btn-link { display: block; margin-top: 2px; font-size: 12px; }
.cr-tab { max-width: 1100px; min-width: 0; }
.cr-tab > * { min-width: 0; }
.cr-dep .pp-deps { max-width: 100%; }
.cr-add { margin-top: 12px; }
.cr-add summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); margin-bottom: 10px; }
.cr-dep .pp-deps { margin-bottom: 12px; }
.cr-fill { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin: 8px 0 12px; border-radius: var(--r-md); background: var(--accent-weak); font-size: 13px; }
.cr-crew { display: flex; flex-direction: column; }
.cr-crew-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.cr-crew-row + .cr-crew-row { border-top: 1px solid var(--divider); }
.cr-crew-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-crew-head a { color: var(--ink); text-decoration: none; }
.cr-crew-money { display: flex; flex-direction: column; gap: 8px; overflow-x: auto; }
.cr-charge-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-charge-add select, .cr-charge-add input { padding: 5px 8px; font-size: 13px; }
.cr-charge-add input[name="title"] { flex: 1 1 180px; }
.cr-charge-add select[name="rate"] { flex: 1 1 200px; max-width: 320px; }
.cr-dep-pick { margin-top: 12px; }
.mn-src { font-size: 12.5px; }
.mn-warn { margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--amber-weak); color: var(--ink); font-size: 13px; }
@media (max-width: 1000px) {
  .cr-rate-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-rate-add input[name="title"], .cr-rate-add select[name="tour_id"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  a.cr-row-link { grid-template-columns: minmax(0, 1fr) auto; }
  a.cr-row-link .cr-facts { grid-column: 1 / -1; grid-row: 2; }
  .cr-ov { grid-template-columns: 1fr; }
  .cr-kpis, .cr-dep-total { grid-template-columns: 1fr; }
  .cr-toolbar select { max-width: none; flex: 1 1 140px; }
  .cr-form { padding: 2px 16px 16px; border-radius: var(--r-lg); }
}

/* «Настройки»: tab strip above the tab's own page. */
.settings-tabs { margin-bottom: 20px; }

/* ── Rooming list (for the guide) ──────────────────────────────────── */
.rl { display: flex; flex-direction: column; gap: 18px; }
#rl-body { display: flex; flex-direction: column; gap: 18px; }
.rl-block {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
}
.rl-block-note { margin: 0; }
.rl-clash {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--amber-weak);
  border: 1px solid color-mix(in srgb, var(--amber) 42%, transparent);
  color: var(--ink); font-size: 13.5px; line-height: 1.35;
}
.rl-clash > b { color: var(--amber); font-weight: 700; }
.rl-clash-item { display: inline-flex; align-items: baseline; gap: 6px; }
.rl-clash-item b { font-weight: 650; }
.rl-clash-item span { color: var(--ink-2); }
.rl-clash-more { color: var(--ink-2); }
.rl-stay.clash { box-shadow: 0 0 0 2px var(--amber); }
.rl-sheet tr.rl-clash-row th { box-shadow: inset 3px 0 0 var(--amber); }
.rl-scale {
  font-size: 11px; color: var(--subtle); font-weight: 600;
}
.rl-scale-plot {
  position: relative; height: 28px;
  margin: 0 10px;
}
.rl-scale-line {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}
.rl-scale-tick {
  position: absolute; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  white-space: nowrap;
}
.rl-scale-tick:first-child { transform: translateX(0); align-items: flex-start; }
.rl-scale-tick:last-child { transform: translateX(-100%); align-items: flex-end; }
.rl-scale-mark {
  display: block; width: 1px; height: 8px;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}
.rl-scale-label { line-height: 1.2; }
.rl-block-rails { display: flex; flex-direction: column; gap: 10px; }
.rl-track {
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  padding: 8px 10px;
}
.rl-track-plot {
  position: relative;
  height: 88px;
}
.rl-block-add { display: flex; }
.rl-rail { display: flex; gap: 10px; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
.rl-stay {
  position: relative;
  flex: 0 1 260px; max-width: 280px; text-align: left; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 34px 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface);
  color: var(--ink); cursor: pointer;
}
.rl-stay-timed {
  position: absolute; top: 0; bottom: 0;
  flex: none; max-width: none; min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: center;
  gap: 3px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.rl-stay-timed b,
.rl-stay-timed > span {
  flex: 0 0 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.25;
}
.rl-stay b { font-weight: 650; font-size: 14px; }
.rl-stay > span { font-size: 12px; color: var(--subtle); }
.rl-stay.on { color: #fff; }
.rl-stay.bad { outline: 2px solid var(--red); outline-offset: 1px; }
.rl-stay.on > span { color: rgba(255,255,255,.78); }
.rl-htint-0 { --ht: #3a4654; --ht-soft: #eef1f4; --ht-line: #c5ced8; }
.rl-htint-1 { --ht: #345246; --ht-soft: #eef3f0; --ht-line: #c5d6cc; }
.rl-htint-2 { --ht: #5c463c; --ht-soft: #f6f1ee; --ht-line: #e0d2cb; }
.rl-htint-3 { --ht: #3c4660; --ht-soft: #eef0f5; --ht-line: #cdd3e2; }
.rl-htint-4 { --ht: #5c4048; --ht-soft: #f6f0f2; --ht-line: #e2d0d6; }
.rl-htint-5 { --ht: #345458; --ht-soft: #eef4f4; --ht-line: #c5dbde; }
.rl-stay.rl-htint-0,
.rl-stay.rl-htint-1,
.rl-stay.rl-htint-2,
.rl-stay.rl-htint-3,
.rl-stay.rl-htint-4,
.rl-stay.rl-htint-5 { background: var(--ht-soft); border-color: var(--ht-line); }
.rl-stay.rl-htint-0.on,
.rl-stay.rl-htint-1.on,
.rl-stay.rl-htint-2.on,
.rl-stay.rl-htint-3.on,
.rl-stay.rl-htint-4.on,
.rl-stay.rl-htint-5.on { background: var(--ht); border-color: var(--ht); }
.rl-stay-edit {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); cursor: pointer;
}
.rl-stay-edit:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.rl-stay.on .rl-stay-edit { background: rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.rl-stay.on .rl-stay-edit:hover { background: rgba(255,255,255,.24); color: #fff; }
.rl-stay-edit .ic { width: 14px; height: 14px; }
.rl-stay-add { flex: 0 0 auto; align-items: center; justify-content: center; flex-direction: row; gap: 6px; border-style: dashed; color: var(--ink-2); padding-right: 14px; }
.rl-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rl-tools { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; width: 100%; }
.rl-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rl-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--stroke); }
.rl-switch button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.rl-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1, 0 1px 2px rgba(0,0,0,.06)); }
.rl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-lg); }
.rl-form .field { flex: 1 1 140px; min-width: 0; margin: 0; }
.rl-form > p { flex: 1 1 100%; margin: 0; }
.rl-form .check { flex: 1 1 220px; }
.rl-counts { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rl-counts legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rl-counts[disabled] { opacity: .45; }
.rl-count { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rl-count input { width: 64px; }
.rl-spread { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; }
.rl-spread .check { flex: 0 1 auto; }
.rl-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rl-empty { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.rl-empty h3 { margin: 0; }
.rl-empty p { margin: 0; max-width: 68ch; color: var(--ink-2); }
.rl-work { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.rl-dock { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 8px; }
.rl-group { display: flex; flex-direction: column; gap: 8px; }
.rl-group > span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); }
#rl-body { --ht: #3a4654; --ht-soft: #eef1f4; --ht-line: #c5ced8; }
#rl-body[data-hotel="0"] { --ht: #3a4654; --ht-soft: #eef1f4; --ht-line: #c5ced8; }
#rl-body[data-hotel="1"] { --ht: #345246; --ht-soft: #eef3f0; --ht-line: #c5d6cc; }
#rl-body[data-hotel="2"] { --ht: #5c463c; --ht-soft: #f6f1ee; --ht-line: #e0d2cb; }
#rl-body[data-hotel="3"] { --ht: #3c4660; --ht-soft: #eef0f5; --ht-line: #cdd3e2; }
#rl-body[data-hotel="4"] { --ht: #5c4048; --ht-soft: #f6f0f2; --ht-line: #e2d0d6; }
#rl-body[data-hotel="5"] { --ht: #345458; --ht-soft: #eef4f4; --ht-line: #c5dbde; }
.rl-person {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px; border: 0; background: var(--ht); color: #fff;
  cursor: grab; font-size: 13px;
}
.rl-person b { font-weight: 600; }
.rl-person small { opacity: .75; font-size: 11.5px; }
.rl-person.is-crew { background: transparent; color: var(--ht); border: 1px dashed var(--ht); }
.rl-person.is-extra { background: var(--ht-soft); color: var(--ht); border: 1px solid var(--ht-line); }
.rl-person.is-out { opacity: .55; }
.rl-person.is-on { outline: 2px solid var(--accent); outline-offset: 1px; }
.rl-person.dragging { opacity: .35; }
.rl-ok { display: inline-flex; margin-left: auto; color: #3ecf8e; flex: none; }
.rl-person.is-crew .rl-ok, .rl-person.is-extra .rl-ok { color: #0e8f62; }
.rl-sheet .rl-ok { color: #0e8f62; }
.rl-ok .ic { width: 15px; height: 15px; stroke-width: 2; }
.rl-marks {
  display: inline-flex; align-items: center; gap: 3px; margin-left: auto; flex: none;
}
.rl-marks > i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.45);
}
.rl-marks > i.on { background: #3ecf8e; border-color: #3ecf8e; }
.rl-person.is-crew .rl-marks > i, .rl-person.is-extra .rl-marks > i {
  background: color-mix(in srgb, var(--ht) 16%, transparent);
  border-color: color-mix(in srgb, var(--ht) 36%, transparent);
}
.rl-person.is-crew .rl-marks > i.on, .rl-person.is-extra .rl-marks > i.on {
  background: var(--ht); border-color: var(--ht);
}
.rl-who { display: inline-flex; align-items: center; gap: 6px; }
.rl-sheet .rl-ok { margin-left: 0; vertical-align: -2px; }
.rl-x { margin-left: auto; opacity: .7; padding: 0 2px; }
.rl-person:has(.rl-ok) .rl-x,
.rl-person:has(.rl-marks) .rl-x { margin-left: 0; }
/* Rooms sit side by side at the size of their beds. Equal columns left a
   wide empty floor around every mattress. */
.rl-board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 14px;
}
.rl-board > .room {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}
.rl-board > .room-loose {
  width: auto;
  min-width: 220px;
  max-width: 320px;
}
.rl-board .room { padding: 14px; gap: 12px; }
.rl-board .room-head { flex-wrap: wrap; gap: 8px; min-height: 0; }
.rl-board .room-body { gap: 8px; }
.rl-board .rl-person { width: auto; padding: 6px 10px; }
.rl-room-name { background: none; border: 0; padding: 0; font-weight: 600; font-size: 13px; color: inherit; cursor: pointer; text-align: left; }
/* A room is a floor plan: walls in the hotel colour, a window, a door, a mattress per sleep. */
.rl-board .rl-room {
  --floor: #f6f3ee;
  --wall: var(--ht, #3a4654);
  background: var(--floor);
  border: none;
  box-shadow: none;
  padding: 10px 0 0;
  gap: 0;
  border-radius: 16px;
}
.rl-board .rl-room .room-head { padding: 0 12px 8px; }
.rl-board .room-floor {
  position: relative;
  margin: 0 12px 12px;
  padding: 12px 12px 10px;
  /* As wide as the longest mattress, centered under the title.
     Short names line up with long ones; the title does not stretch the beds. */
  display: grid;
  grid-template-columns: minmax(0, max-content);
  align-self: center;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  gap: 6px;
  border: 3px solid var(--wall);
  border-radius: 4px;
  background: var(--floor);
}
.rl-board .room-floor::before {
  content: "";
  position: absolute;
  top: -3px; left: 16px;
  width: 36px; height: 8px;
  background: color-mix(in srgb, #9ec9e8 70%, #fff);
  border: 3px solid var(--wall);
  border-top: 0;
  border-radius: 0 0 2px 2px;
}
/* A bed lies across the room: a pillow at the left, the person on the sheet.
   Width comes from the floor: every mattress matches the longest name. */
.rl-board .bed {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  height: 46px;
  min-width: 0;
  padding: 4px 12px 4px 4px;
  border-radius: 4px 8px 8px 4px;
  background: #fff;
  box-shadow: 0 0 0 1.5px #d5c9bb, 0 3px 0 #e7ddd2;
}
.rl-board .bed::before {
  content: "";
  flex: none;
  align-self: stretch;
  width: 22px;
  border-radius: 3px;
  background: linear-gradient(#f8ecdc, #eddcc6);
  box-shadow: inset 0 0 0 1px #e6d3bc;
}
/* Two sleepers share one mattress, heads on the same pillow, one above the other. */
.rl-board .bed-double {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: 76px;
  padding: 5px 10px 5px 5px;
}
.rl-board .bed-double::before { width: 34px; min-height: 64px; }
.rl-board .bed-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
/* Same top-down view as the other beds: a narrow canvas with the fold
   across the middle. No legs — those read as a side-on grill. */
.rl-board .bed-cot {
  width: 100%;
  max-width: 100%;
  height: 32px;
  margin-bottom: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  border-radius: 3px;
  background:
    linear-gradient(#b7aa9a, #b7aa9a) 58% 0 / 2px 100% no-repeat,
    #e7d8c4;
  box-shadow: inset 0 0 0 1.5px #c4b49e;
}
.rl-board .bed-cot::before {
  width: 16px;
  align-self: stretch;
  height: auto;
  border-radius: 2px;
  background: #fffaf3;
  box-shadow: inset 0 0 0 1px #e0d0bc;
}
.rl-board .bed-cot::after { content: none; }
.rl-board .bed .rl-person {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: 0 2px;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12.5px;
  line-height: 1.15;
}
.rl-board .bed .rl-person.is-crew,
.rl-board .bed .rl-person.is-extra { background: transparent; color: var(--ink); border: 0; }
.rl-board .bed .rl-person b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.rl-board .bed .rl-ok,
.rl-board .bed .rl-marks,
.rl-board .bed .rl-x { display: none; }
.rl-board .bed-free {
  flex: 0 0 auto;
  min-width: 0;
  padding-right: 4px;
  font-size: 11px;
  color: #b3a89c;
}
.rl-board .bed-double .rl-person,
.rl-board .bed-double .bed-free {
  flex: none;
  height: 30px;
  display: flex;
  align-items: center;
}
.rl-board .bed-double .rl-person + .rl-person,
.rl-board .bed-double .rl-person + .bed-free,
.rl-board .bed-double .bed-free + .bed-free {
  box-shadow: inset 0 1px 0 #efe6dc;
}
.rl-board .room.drop .room-floor { background: var(--accent-weak); }
.rl-board .room.over .room-floor { border-color: var(--red); }
.rl-room.rl-tint-0 { --wall: #e85d2c; }
.rl-room.rl-tint-1 { --wall: #0e8f62; }
.rl-room.rl-tint-2 { --wall: #c47b08; }
.rl-room.rl-tint-3 { --wall: #3d5bb5; }
.rl-room.rl-tint-4 { --wall: #8a3d8f; }
.rl-room.rl-tint-5 { --wall: #0e7c86; }
.rl-room.rl-tint-6 { --wall: #c43b63; }
.rl-room.rl-tint-7 { --wall: #6b5344; }
.rl-sheet-wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-width: 0;
}
.rl-sheet-tools { display: flex; }
.rl-sheet-need {
  display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px;
  padding: 10px 12px; border-radius: 10px; background: var(--paper-2);
  border: 1px solid var(--stroke); color: var(--ink);
}
.rl-sheet-need .rl-need-hotel { min-width: 6.5rem; color: var(--ink); }
.rl-sheet-need .rl-need-chip {
  background: var(--surface); border-color: var(--stroke); color: var(--ink-2);
}
.rl-sheet-need .rl-need-chip b { color: var(--ink); }
.rl-sheet-note { margin: 0; max-width: 68ch; }
.rl-sheet-scroll { width: 100%; overflow-x: auto; }
.rl-sheet { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; }
.rl-sheet th, .rl-sheet td { padding: 0; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.rl-sheet td.muted { padding: 12px; }
.rl-sheet thead th { padding: 12px 12px; font-size: 12.5px; font-weight: 650; text-align: left; background: var(--paper-2); }
.rl-sheet thead th small, .rl-sheet tbody th small { display: block; margin-top: 2px; font-weight: 400; color: var(--subtle); }
.rl-sheet tbody th { padding: 10px 12px; text-align: left; font-weight: 600; font-size: 13.5px; position: sticky; left: 0; background: var(--surface); min-width: 160px; white-space: nowrap; }
.rl-sheet-group th { padding: 10px 12px !important; background: var(--paper-2) !important; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); position: static; }
.rl-cell {
  display: block; width: 100%; min-height: 48px; padding: 12px; border: 0; background: transparent;
  text-align: left; cursor: pointer; font-size: 13px; color: var(--subtle);
}
.rl-cell:hover { background: var(--paper-2); }
.rl-cell.rl-tint-0, .rl-print td.rl-tint-0 { background: #fde7dc; color: #8a3416; }
.rl-cell.rl-tint-1, .rl-print td.rl-tint-1 { background: #d9f3e6; color: #0d6b48; }
.rl-cell.rl-tint-2, .rl-print td.rl-tint-2 { background: #fff1cc; color: #8a5a00; }
.rl-cell.rl-tint-3, .rl-print td.rl-tint-3 { background: #e4e9f8; color: #2c3f86; }
.rl-cell.rl-tint-4, .rl-print td.rl-tint-4 { background: #f6e4f4; color: #6e2d78; }
.rl-cell.rl-tint-5, .rl-print td.rl-tint-5 { background: #e3f4f4; color: #0e5c5c; }
.rl-cell.rl-tint-6, .rl-print td.rl-tint-6 { background: #fde8ef; color: #8a2448; }
.rl-cell.rl-tint-7, .rl-print td.rl-tint-7 { background: #eee8df; color: #5c4632; }
.rl-pop {
  position: fixed; z-index: 400; width: 240px; max-height: 320px; overflow: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; box-shadow: var(--sh-2);
}
.rl-pop b { font-size: 12.5px; padding: 4px 6px 6px; }
.rl-pop button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; color: var(--ink); font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.rl-pop button:hover { background: var(--paper-2); }
.rl-pop small { color: var(--subtle); }
@media (max-width: 860px) {
  .rl-work { grid-template-columns: 1fr; }
  .rl-dock { position: static; }
}

/* «Страница на сайте» (catalog-site.js, 0122) */
.ct-site-link { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--sh-card); }
.ct-site-link:hover { border-color: var(--accent); }
.ct-site-link b { display: block; }
.ct-site-link small { color: var(--ink-2); }
.ct-site-ico { font-size: 24px; }
.ct-site-go { margin-left: auto; font-size: 20px; color: var(--ink-2); }
.se-page { display: flex; flex-direction: column; gap: 16px; }
.se-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.se-head .muted { max-width: 680px; margin: 6px 0 0; }
.se-head-actions { display: flex; gap: 8px; position: sticky; top: 12px; }
.se-sections { display: flex; flex-direction: column; gap: 12px; }
.se-sec-head { display: flex; gap: 12px; align-items: flex-start; }
.se-sec-head h3 { margin: 0; }
.se-sec-head .muted { margin: 2px 0 0; }
.se-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.se-sec-tools { margin-left: auto; display: flex; gap: 4px; }
.se-marker { background: var(--paper-2); box-shadow: none; }
.se-list { display: flex; flex-direction: column; gap: 10px; }
.se-list-row { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px dashed var(--stroke); border-radius: var(--r-md, 12px); }
.se-list-body { flex: 1; min-width: 0; }
.se-list-body > input { width: 100%; }
.se-list-tools { display: flex; flex-direction: column; gap: 4px; }
.se-list-add { align-self: flex-start; }
.se-item { display: flex; flex-direction: column; gap: 10px; }
.se-item-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.se-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.se-img { position: relative; width: 104px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.se-img img { width: 100%; height: 100%; object-fit: cover; }
.se-img-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }
.se-img-tools button { border: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.se-img-add { width: 104px; height: 78px; border-radius: 10px; border: 2px dashed var(--stroke); display: grid; place-items: center; font-size: 26px; color: var(--ink-2); cursor: pointer; }
.se-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.se-add-btn { text-align: left; border: 1px solid var(--stroke); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.se-add-btn:hover { border-color: var(--accent); }
.se-add-btn span { font-size: 12px; color: var(--ink-2); }
.se-swatch { display: flex; align-items: center; gap: 6px; align-self: flex-end; }
.se-swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--a); display: inline-block; }
.se-swatch i + i { background: var(--c); }
@media (max-width: 640px) { .se-item-row { grid-template-columns: 1fr; } .se-head-actions { position: static; } }

/* ── Аудит программы (0137) ─────────────────────────────────────────── */
.ta { display: flex; flex-direction: column; gap: 14px; }
.ta-head { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; align-items: flex-end; }
.ta-head h3 { margin: 0; }
.ta-head p { margin: 4px 0 0; max-width: 62ch; color: var(--subtle); font-size: 13.5px; line-height: 1.45; }
.ta-stats { display: flex; gap: 8px; }
.ta-stat {
  min-width: 84px; padding: 8px 14px; border-radius: 12px;
  background: var(--paper-2, var(--elevated));
}
.ta-stat b { display: block; font-size: 20px; letter-spacing: -0.4px; line-height: 1.15; }
.ta-stat span { font-size: 12px; color: var(--subtle); }
.ta-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ta-filters select { min-width: 180px; }
.ta-filters input[type="search"] { flex: 1 1 200px; max-width: 320px; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ta-chip {
  border: 1px solid var(--stroke); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.ta-chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, var(--stroke)); }
.ta-chip.on { background: var(--accent-weak); border-color: transparent; color: var(--accent-ink); font-weight: 650; }
.ta-day + .ta-day { margin-top: 22px; }
.ta-day-title { margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.ta-day-title::first-letter { text-transform: uppercase; }
.ta-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; }
.ta-item + .ta-item { margin-top: 10px; }
.ta-rail { position: relative; }
.ta-rail::before {
  content: ""; position: absolute; left: 6px; top: 22px; bottom: -18px; width: 2px;
  background: var(--stroke);
}
.ta-item:last-child .ta-rail::before { display: none; }
.ta-dot {
  position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin-top: 16px;
  border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--blue) 35%, transparent);
}
.ta-item.is-add .ta-dot { background: var(--green); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--green) 35%, transparent); }
.ta-item.is-del .ta-dot { background: var(--red); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--red) 35%, transparent); }
.ta-item.is-act .ta-dot { background: var(--ink-2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--stroke); }
.ta-card {
  min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface);
}
.ta-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ta-av {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent-ink);
}
.ta-av[data-h="1"] { background: color-mix(in srgb, var(--blue) 16%, var(--surface)); color: var(--blue); }
.ta-av[data-h="2"] { background: color-mix(in srgb, var(--green) 18%, var(--surface)); color: var(--green); }
.ta-av[data-h="3"] { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: var(--ink); }
.ta-av[data-h="4"] { background: color-mix(in srgb, var(--red) 14%, var(--surface)); color: var(--red); }
.ta-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.ta-who strong { font-size: 14px; }
.ta-role { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.ta-time { font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.ta-op { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; }
.ta-add { background: var(--green-weak); color: var(--green); }
.ta-upd { background: var(--blue-weak); color: var(--blue); }
.ta-del { background: var(--red-weak); color: var(--red); }
.ta-act { background: var(--elevated); color: var(--ink-2); }
.ta-what { margin: 0; font-size: 15px; font-weight: 650; }
.ta-lines { display: flex; flex-direction: column; gap: 8px; }
.ta-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.ta-say { font-size: 14px; line-height: 1.4; }
.ta-ctx { font-weight: 500; color: var(--ink-2); }
.ta-diffs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ta-diff { display: grid; grid-template-columns: minmax(108px, 180px) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.ta-field { color: var(--subtle); font-size: 13px; }
.ta-vals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; min-width: 0; font-size: 14px; }
.ta-old { color: var(--subtle); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--subtle) 65%, transparent); overflow-wrap: anywhere; }
.ta-new { background: var(--accent-weak); color: var(--accent-ink); font-weight: 700; padding: 2px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.ta-arrow { color: var(--subtle); }
.ta-empty { color: var(--subtle); }
.ta-none { margin: 8px 0 0; color: var(--subtle); }
.ta-more { align-self: flex-start; }
.ta-blank { padding: 8px 0 4px; }
.ta-blank h3 { margin: 0 0 4px; font-size: 16px; }
.ta-blank p { margin: 0; color: var(--subtle); font-size: 13.5px; line-height: 1.45; max-width: 62ch; }
@media (max-width: 640px) {
  .ta-diff { grid-template-columns: 1fr; gap: 2px; }
  .ta-top { flex-wrap: wrap; }
  .ta-time { margin-left: auto; }
}
