/* NEO LOUNGE — брони: экран хостес, страница гостя, схема зала (подключается после neo.css) */
/* ===== схема зала: база ===== */
.hallmap { display: block; width: 100%; height: auto; }
.hallmap .walls * { fill: none; stroke: var(--muted); stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; opacity: .5; }
.hallmap .walls .stairs { stroke-width: 3; }
.hallmap .labels text { fill: var(--muted); font: 700 22px "Manrope", sans-serif; text-anchor: middle; opacity: .75; }
.hallmap .labels .small { font-size: 15px; }
.tbl rect, .tbl ellipse { fill: var(--c); stroke: var(--cs); stroke-width: 2; transition: filter .15s; }
.tbl text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tbl .n { fill: #fff; font: 800 20px "Unbounded", "Manrope", sans-serif; }
.tbl.mini .n { font-size: 13px; }
.tbl .note { fill: #fff; font: 700 11px "Manrope", sans-serif; opacity: .9; }
.tbl .lbl { fill: var(--muted); font: 700 16px "Manrope", sans-serif; }
.tbl.free { --c: #2f9e6e; --cs: #5cc495; }
.tbl.booked { --c: #c98a1e; --cs: #e7b24f; }
.tbl.seated { --c: #c2453a; --cs: #e0715f; }
.tbl.busy { --c: #c2453a; --cs: #e0715f; }
.tbl.small { --c: #6c746f; --cs: #8a918d; opacity: .4; }
.tbl.sel .top { stroke: var(--ink); stroke-width: 4; }
a.tbl:hover .top { filter: brightness(1.15); }
.mapcard { padding: 10px; }
.legend { display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.legend .free { background: #2f9e6e; } .legend .booked { background: #c98a1e; } .legend .seated { background: #c2453a; }
.legend .busy { background: #c2453a; } .legend .small { background: #6c746f; opacity: .5; }

/* страница для гостей */
.book { max-width: 980px; margin: 0 auto; }
.book-head { text-align: center; margin: 10px 0 18px; }
.book-head .kicker { font: 600 11px/1 "Manrope", sans-serif; letter-spacing: .4em; }
.book-title { font: 800 clamp(34px, 7vw, 56px)/1.05 "Unbounded", sans-serif; color: var(--green); margin: 8px 0; }
.book-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
.book-filters .field { margin: 0; }
.book-form { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 640px) { .book-filters { grid-template-columns: 1fr 1fr; } }

.pill.st-new { background: #dbe8f7; color: #2d5d93; }
.pill.st-waiting { background: color-mix(in srgb, #c98a1e 20%, transparent); color: #a8701a; }
.pill.st-seated { background: color-mix(in srgb, #c2453a 18%, transparent); color: #c2453a; }
.pill.st-closed, .pill.st-noshow, .pill.st-cancelled { background: var(--line); color: var(--muted); }
.bk-form .field { margin-bottom: 8px; }

/* ===== экран хостес ===== */
.wrap:has(.rp) { max-width: none; padding: 0; }
.rp { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: calc(100vh - 59px); }
.rp-left { display: flex; flex-direction: column; min-height: 0; background: var(--card); border-right: 1px solid var(--line); }
.rp-scroll { flex: 1; overflow: auto; padding: 10px; }
.rp-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.rp-tabs { display: flex; align-items: center; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.rp-tabs > a { padding: 9px 16px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.rp-tabs > a.on { background: var(--bg); color: var(--ink); }
.rp-tabs .rp-info { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--muted); border-radius: 50%; font: 700 13px/1 serif; margin-left: 6px; }
.rp-datef { margin-left: auto; position: relative; }
.rp-datef span { font-weight: 700; border-bottom: 1px dashed currentColor; pointer-events: none; }
.rp-datef input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }

.rp-cardlink { display: block; color: var(--ink); margin-bottom: 8px; }
.rp-card { position: relative; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.rp-cardlink:hover .rp-card { border-color: var(--green); }
.rp-card-body { padding: 10px 14px 4px; line-height: 1.35; font-size: 15px; }
.rp-card-no { font-size: 16px; }
.rp-card-tbl { color: #e0476a; } .rp-card-tbl span { color: var(--muted); }
.rp-card-guest { font-size: 16px; margin-top: 2px; }
.rp-card-note { color: var(--muted); font-size: 13px; }
.rp-pill { position: absolute; top: 0; right: 0; padding: 12px 14px; min-width: 120px; font-size: 14px; border-bottom-left-radius: 6px; }
.rp-pill.st-new { background: #c8e2ef; color: #1b2a33; }
.rp-pill.st-waiting { background: #f3dfb3; color: #3a2a08; }
.rp-pill.st-seated { background: #bfe6cf; color: #10301f; }
.rp-pill.st-closed, .rp-pill.st-noshow, .rp-pill.st-cancelled { background: var(--line); color: var(--muted); }
.rp-mini { position: relative; height: 34px; margin-top: 2px; }
.rp-mini-t { position: absolute; top: 2px; font-size: 12px; color: #e0476a; white-space: nowrap; transform: translateX(-10%); }
.rp-mini-bar { position: absolute; left: 10px; right: 10px; bottom: 0; height: 16px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 7.69%) bottom / 100% 6px no-repeat; opacity: .9; }
.rp-mini-bar i { position: absolute; bottom: 0; height: 16px; background: #8fd4a4; border-right: 6px solid #e0476a; opacity: .85; }
.rp-empty { text-align: center; color: var(--muted); margin-top: 30vh; }

.rp-sttabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 4px; }
.rp-sttabs a { text-align: center; padding: 8px 4px; background: var(--bg); color: var(--muted); font-size: 13px; line-height: 1.2; }
.rp-sttabs a b { display: block; color: var(--ink); }
.rp-sttabs a.on, .rp-sttabs a:last-child { background: #c8e2ef; color: #1b2a33; }
.rp-sttabs a.on b, .rp-sttabs a:last-child b { color: #1b2a33; }
.rp-search { display: flex; gap: 6px; padding: 6px 4px 6px; }
.rp-search input { flex: 1; }

.rp-dhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font: 700 16px "Unbounded", sans-serif; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.rp-x { color: var(--muted); font-size: 22px; line-height: 1; }
.rp-photo { position: relative; height: 230px; background: linear-gradient(135deg, #2b3a33, #121815) center / cover; color: #fff; }
.rp-photo-sm { height: 120px; }
.rp-photo-txt { position: absolute; left: 16px; top: 14px; right: 40px; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rp-photo-txt b { display: block; font-size: 18px; } .rp-photo-txt small { font-size: 13px; }
.rp-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #3fae7e; }
.rp-photo .rp-dot { position: absolute; right: 16px; top: 18px; box-shadow: 0 0 0 4px rgba(63,174,126,.25); }
.rp-dot-booked { background: #e7b24f; } .rp-dot-seated { background: #e0715f; }
.rp-cap { position: absolute; left: 16px; bottom: 14px; font-size: 16px; }
.rp-tline { display: block; color: var(--ink); padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rp-created { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.rp-guest { padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 14px; margin: 0 0 10px; }
.rp-bad { color: var(--danger); }

.rp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 10px;
  background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font: 600 15px "Manrope", sans-serif; cursor: pointer; }
.rp-btn:hover { filter: brightness(1.12); }
.rp-btn.on { background: color-mix(in srgb, #4b7a99 45%, var(--bg)); }
.rp-btn.go { color: #5cc495; } .rp-btn.stop { color: #e0715f; background: color-mix(in srgb, #c2453a 18%, var(--bg)); }
.rp-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.rp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.rp-grid2 .rp-btn, .rp-btn-wide { border-radius: 6px; }
.rp-btn-wide { margin-bottom: 10px; color: var(--ink); }
.rp-btn-book { background: linear-gradient(180deg, #4b7a99, #3b6680); color: #fff; }
.rp-btn-open { background: linear-gradient(180deg, #3f7a5c, #2f604a); color: #fff; }
.rp-pop { position: relative; }
.rp-pop > summary { list-style: none; } .rp-pop > summary::-webkit-details-marker { display: none; }
.rp-pop[open] > .rp-popbody { padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin: -4px 0 10px; background: var(--card); }
.rp-grid2 .rp-pop[open] { grid-column: 1 / -1; }

.rp-timebar { background: #0b0f0d; color: #e8ece9; padding: 10px 40px 4px; }
:root[data-theme="light"] .rp-timebar { background: #1b221e; }
.rp-tb-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 16px; }
.rp-tb-head b { font-size: 22px; } .rp-tb-head > span:last-child { justify-self: end; border-bottom: 1px dashed currentColor; }
.rp-ruler { position: relative; margin: 6px 0 2px; padding-bottom: 20px; }
.rp-ruler input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background:
    linear-gradient(90deg, #3a403d 0 var(--p), transparent var(--p)) left 55% / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, #cfd5d1 0 1.5px, transparent 1.5px calc(100% / var(--nh))) bottom / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, #8f9a94 0 1px, transparent 1px calc(100% / var(--n))) bottom / 100% 12px no-repeat; }
.rp-ruler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 30px; border: 0;
  background: radial-gradient(circle at 50% 4px, #fff 5px, transparent 5.5px), linear-gradient(#fff, #fff) center / 2px 100% no-repeat; }
.rp-ruler input[type=range]::-moz-range-thumb { width: 14px; height: 30px; border: 0; background: linear-gradient(#fff, #fff) center / 2px 100% no-repeat; }
.rp-ticks span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11px; color: #c3cbc6; }

.rp-mapwrap { flex: 1; overflow: auto; display: grid; place-items: center; padding: 20px 40px; min-height: 0; }
.rp-mapwrap .hallmap { max-width: 1000px; max-height: 100%; }
.rp-bottom { display: flex; align-items: center; gap: 14px; padding: 8px 20px 12px; }
.rp-seg { display: inline-flex; border-radius: 6px; overflow: hidden; }
.rp-seg a { padding: 12px 18px; background: var(--card); color: #e0476a; font: 700 12px "Manrope", sans-serif; letter-spacing: .08em; }
.rp-seg a.on { background: var(--line); color: var(--ink); }
.rp-daytotal { margin-left: auto; font-size: 13px; }

.rp-listview { width: 100%; max-width: 1000px; align-self: start; }
.rp-lrow { display: grid; grid-template-columns: 16px 90px 90px 1fr; gap: 10px; align-items: center; padding: 10px 6px; color: var(--ink); border-bottom: 1px solid var(--line); }
.rp-lbar { position: relative; height: 18px; background: var(--card); border-radius: 4px; }
.rp-lbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #c98a1e; }
.rp-lbar i.st-new { background: #4b8bbd; } .rp-lbar i.st-seated { background: #c2453a; }
.rp-lbar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }

.rp-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.rp-modal-box { position: relative; background: #fff; color: #1b221e; border-radius: 10px; padding: 26px 30px; width: min(470px, 92vw); }
.rp-modal-box h3 { text-align: center; font-size: 20px; margin: 0 0 16px; }
.rp-modal-box .rp-x { position: absolute; right: 16px; top: 12px; }
.rp-sumtotal { background: #f1f3f5; border-radius: 8px; padding: 14px; text-align: center; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.rp-sumrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 5px 0; }
.rp-sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.rp-sdot-1 { background: #3b82f6; } .rp-sdot-2 { background: #f59e0b; } .rp-sdot-3 { background: #10b981; } .rp-sdot-4 { background: #ef4444; }

/* мебель на схеме */
.tbl .seat { fill: var(--c); stroke: var(--cs); stroke-width: 1.5; opacity: .55; }

@media (max-width: 1000px) {
  .rp { grid-template-columns: 1fr; height: auto; }
  .rp-left { order: 2; border-right: 0; }
  .rp-scroll { max-height: none; }
  .rp-timebar { padding: 10px 16px 4px; }
  .rp-ticks span:nth-child(even) { display: none; }
  .rp-seg a { padding: 12px 12px; }
  .rp-bottom { flex-wrap: wrap; }
  .rp-mapwrap { padding: 10px; overflow-x: auto; place-items: start; }
  .rp-mapwrap .hallmap { min-width: 700px; }
}

/* схема: занятые — красным, выбранный стол — обводка, мебель */
.tbl.busy { --c: #c2453a; --cs: #e0715f; opacity: 1; }
.tbl.sel .top { stroke: var(--ink); stroke-width: 4; }
.tbl.sel .seat { stroke: var(--cs); stroke-width: 1.5; }
.legend .busy { background: #c2453a; opacity: 1; }
.rp-search .rp-btn { width: auto; min-height: 44px; padding: 0 16px; border-radius: 8px; }

/* вид «СПИСОК»: плитки столов */
.rp-tlist { width: 100%; max-width: 1280px; align-self: start; }
.rp-order { display: flex; justify-content: center; margin: 0 0 14px; }
.rp-order a { padding: 8px 16px; background: var(--card); color: var(--muted); font-weight: 600; border: 1px solid var(--line); }
.rp-order a:first-child { border-radius: 6px 0 0 6px; } .rp-order a:last-child { border-radius: 0 6px 6px 0; }
.rp-order a.on { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.rp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rp-tcard { display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.rp-tcard:hover { filter: brightness(1.08); } .rp-tcard.on { border-color: var(--green); }
.rp-tpic { position: relative; height: 170px; background: #2a302d center / cover; display: grid; place-items: center; }
.rp-tsvg { width: 100%; flex: 1; min-height: 0; padding: 0 12px 10px; }
.rp-tpic.nophoto { display: flex; flex-direction: column; align-items: stretch; background: var(--bg); }
.rp-tpic.nophoto .rp-tstate { order: -1; position: static; padding-right: 30px; background: none; color: var(--ink); text-shadow: none; }
.rp-tsvg .seat { opacity: .75; }
.rp-tstate { position: absolute; left: 0; top: 0; right: 26px; padding: 6px 10px; display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0)); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.rp-tstate b { font-weight: 600; font-size: 16px; } .rp-tstate small { font-size: 13px; opacity: .9; }
.rp-tstate .rp-tbusy { margin-top: 4px; }
.rp-tpic .rp-dot { position: absolute; right: 10px; top: 12px; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.rp-tfoot { padding: 8px 12px 10px; }
.rp-tfoot small { color: var(--muted); font-size: 13px; }
.rp-tfoot b { font-size: 21px; } .rp-tfoot > div { display: flex; align-items: baseline; gap: 6px; }
.rp-tcap { margin-left: auto; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .rp-tgrid { grid-template-columns: 1fr 1fr; } .rp-tpic { height: 130px; } }

/* ===== страница брони для гостей ===== */
.wrap:has(.gb) { max-width: none; padding: 0; }
.gb { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.gb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: #0b0f0d; color: #e8ece9; }
.gb-brand b { display: block; font: 800 18px "Unbounded", sans-serif; letter-spacing: .04em; color: #5cc495; }
.gb-brand small { color: #9aa49f; font-size: 13px; }
.gb-phone { color: #e8ece9; font-size: 16px; white-space: nowrap; }
.gb-timebar { padding-top: 6px; }
.gb-date { position: relative; justify-self: end; cursor: pointer; }
.gb-date span { border-bottom: 1px dashed currentColor; }
.gb-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; width: 100%; }
.gb-map { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 14px 24px 24px; }
.gb-map .hallmap { max-width: 1000px; }
.gb-hint { margin: 0 0 6px; font-size: 14px; }

.gb-pop { position: absolute; left: 24px; top: 200px; z-index: 30; width: 400px; max-width: calc(100% - 32px);
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: hidden; }
.gb-pic { position: relative; height: 230px; background: #20262a center / cover; color: #fff; }
.gb-pic.nophoto { background: var(--bg); color: var(--ink); display: flex; flex-direction: column; }
.gb-pic-t { position: absolute; left: 18px; top: 14px; font-size: 20px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); z-index: 1; }
.gb-pic.nophoto .gb-pic-t { text-shadow: none; }
.gb-pic .rp-dot { position: absolute; right: 18px; top: 22px; box-shadow: 0 0 0 4px rgba(63,174,126,.25); }
.gb-pic-svg { width: 100%; height: 100%; padding: 50px 40px 34px; }
.gb-pic-svg .seat { opacity: .75; }
.gb-cap { position: absolute; left: 18px; bottom: 12px; font-size: 16px; }
.gb-body { padding: 16px 18px 18px; }
.gb-busy { margin: 0 0 8px; }
.gb-go { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 14px; padding: 16px 22px; border: 0; border-radius: 6px;
  background: linear-gradient(90deg, #4f5a66, #3d4650); color: #fff; font: 500 19px "Manrope", sans-serif; cursor: pointer; }
.gb-go span { font-size: 22px; } .gb-go:hover { filter: brightness(1.12); }

.gb-field { background: var(--bg); border-radius: 6px; padding: 8px 14px; font-size: 17px; margin-bottom: 12px; }
.gb-field small { display: block; color: var(--muted); font-size: 12px; }
.gb-when { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.gb-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: var(--muted); font: 500 15px "Manrope", sans-serif; cursor: pointer; }
.gb-box b { font-size: 18px; color: var(--ink); letter-spacing: .05em; }
.gb-box.on { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.gb-box:disabled { opacity: .45; cursor: default; }
.gb-q { font: 500 22px "Manrope", sans-serif; margin: 16px 0 12px; }
.gb-tabs { display: flex; }
.gb-tabs button { padding: 12px 24px; border: 0; background: transparent; color: var(--muted); font: 700 13px "Manrope", sans-serif; letter-spacing: .1em; cursor: pointer; border-radius: 6px 6px 0 0; }
.gb-tabs button.on { background: var(--bg); color: var(--ink); }
.gb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: var(--bg); padding: 12px; border-radius: 0 6px 6px 6px; }
.gb-cell { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); color: var(--ink); font-family: "Manrope", sans-serif; cursor: pointer; overflow: hidden; }
.gb-cell b { font-size: 20px; font-weight: 600; line-height: 1.1; } .gb-cell small { font-size: 11px; color: var(--muted); }
.gb-cell.ok:hover { border-color: var(--green); }
.gb-cell.part { background: linear-gradient(90deg, var(--card) calc(var(--f) * 100%), var(--line) 0); }
.gb-cell.off { background: var(--line); color: var(--muted); cursor: default; opacity: .6; }
.gb-cell.off::after { content: "✕"; position: absolute; right: 5px; top: 1px; font-size: 12px; }
.gb-contacts { margin-top: 14px; }
.gb-contacts .field { margin-bottom: 10px; }
.gb-sum { font-weight: 700; margin: 0 0 10px; }
.gb-note { font-size: 12px; margin: 8px 0 0; }

@media (max-width: 760px) {
  .gb-head { padding: 10px 14px; } .gb-phone { font-size: 14px; }
  .gb-map { padding: 10px; overflow-x: auto; align-items: stretch; }
  .gb-map .hallmap { min-width: 640px; }
  .gb-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 88vh; overflow: auto; border-radius: 14px 14px 0 0; }
  .gb-pic { height: 170px; }
  .gb-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ===== стиль iOS: брони, схема зала, страница гостя ===== */
:root {
  --ios-bg: #f2f2f7; --ios-card: #ffffff; --ios-card2: #f2f2f7; --ios-fill: rgba(118, 118, 128, .12); --ios-fill2: rgba(118, 118, 128, .2);
  --ios-sep: rgba(60, 60, 67, .12); --ios-label: #000; --ios-sec: rgba(60, 60, 67, .6); --ios-ter: rgba(60, 60, 67, .3);
  --ios-blue: #007aff; --ios-green: #34c759; --ios-orange: #ff9500; --ios-red: #ff3b30; --ios-gray: #8e8e93;
  --ios-seg: #ffffff; --ios-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
  --ios-floor: #ffffff; --ios-zone: #f2f2f7; --ios-wall: #c7c7cc; --ios-sofa: #e5e5ea; --ios-cush: #d1d1d6;
  --ios-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --ios-bg: #000; --ios-card: #1c1c1e; --ios-card2: #2c2c2e; --ios-fill: rgba(118, 118, 128, .24); --ios-fill2: rgba(118, 118, 128, .36);
  --ios-sep: rgba(84, 84, 88, .6); --ios-label: #fff; --ios-sec: rgba(235, 235, 245, .6); --ios-ter: rgba(235, 235, 245, .3);
  --ios-blue: #0a84ff; --ios-green: #30d158; --ios-orange: #ff9f0a; --ios-red: #ff453a; --ios-gray: #8e8e93;
  --ios-seg: #636366; --ios-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
  --ios-floor: #1c1c1e; --ios-zone: #2c2c2e; --ios-wall: #48484a; --ios-sofa: #3a3a3c; --ios-cush: #48484a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ios-bg: #000; --ios-card: #1c1c1e; --ios-card2: #2c2c2e; --ios-fill: rgba(118, 118, 128, .24); --ios-fill2: rgba(118, 118, 128, .36);
    --ios-sep: rgba(84, 84, 88, .6); --ios-label: #fff; --ios-sec: rgba(235, 235, 245, .6); --ios-ter: rgba(235, 235, 245, .3);
    --ios-blue: #0a84ff; --ios-green: #30d158; --ios-orange: #ff9f0a; --ios-red: #ff453a; --ios-gray: #8e8e93;
    --ios-seg: #636366; --ios-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    --ios-floor: #1c1c1e; --ios-zone: #2c2c2e; --ios-wall: #48484a; --ios-sofa: #3a3a3c; --ios-cush: #48484a;
  }
}

.rp, .gb { font-family: var(--ios-font); color: var(--ios-label); background: var(--ios-bg); -webkit-font-smoothing: antialiased; }
.rp b, .gb b { font-weight: 600; }
.rp .muted, .gb .muted { color: var(--ios-sec); }
.rp input, .rp select, .gb input, .gb select { font-family: var(--ios-font); border-radius: 10px; border: 0; background: var(--ios-fill); color: var(--ios-label); }
.rp label, .gb label { color: var(--ios-sec); font-weight: 500; }

/* --- схема зала --- */
.hallmap .floor { fill: var(--ios-floor); }
.hallmap .zone { fill: var(--ios-zone); }
.hallmap .walls * { stroke: var(--ios-wall); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 1; fill: none; }
.hallmap .bar-top { fill: var(--ios-sofa); }
.hallmap .stairs-box { fill: var(--ios-zone); stroke: var(--ios-wall); stroke-width: 2; }
.hallmap .stairs-lines { stroke: var(--ios-wall); stroke-width: 2; stroke-linecap: round; }
.hallmap .labels text { fill: var(--ios-gray); font: 600 15px var(--ios-font); letter-spacing: 0; opacity: 1; }
.hallmap .labels .small { font-size: 13px; }
.tbl { --c: var(--ios-green); }
.tbl.free { --c: var(--ios-green); } .tbl.booked { --c: var(--ios-orange); } .tbl.seated, .tbl.busy { --c: var(--ios-red); }
.tbl.small { --c: var(--ios-gray); opacity: .45; }
.tbl .fx { filter: url(#fxSoft); }
.tbl .fx-body { fill: var(--ios-sofa); stroke: none; }
.tbl .fx-cush { fill: var(--ios-cush); stroke: none; }
.tbl .top { fill: var(--c); stroke: none; filter: url(#fxSoft); transition: filter .15s; }
.tbl.sel .top { stroke: var(--ios-blue); stroke-width: 4; paint-order: stroke; }
a.tbl:hover .top { filter: url(#fxSoft) brightness(1.08); }
.tbl .n { fill: #fff; font: 700 19px var(--ios-font); stroke: none; }
.tbl.mini .n { font-size: 12px; }
.tbl .note { fill: #fff; font: 600 10.5px var(--ios-font); stroke: none; opacity: .95; }
.tbl .lbl { fill: var(--ios-gray); font: 600 12px var(--ios-font); letter-spacing: .08em; }
.legend { color: var(--ios-sec); font-family: var(--ios-font); }
.legend .free { background: var(--ios-green); } .legend .busy, .legend .seated { background: var(--ios-red); } .legend .booked { background: var(--ios-orange); }
.legend i { border-radius: 50%; }

/* --- ползунок времени --- */
.rp-timebar { background: var(--ios-card); color: var(--ios-label); border-bottom: .5px solid var(--ios-sep); padding: 12px 40px 6px; }
:root[data-theme="light"] .rp-timebar { background: var(--ios-card); }
.rp-tb-head { font-size: 15px; }
.rp-tb-head b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rp-tb-head > span:last-child, .rp-tb-head > .gb-cal { color: var(--ios-blue); border: 0; font-weight: 500; }
.rp-ruler input[type=range] { height: 28px;
  background:
    linear-gradient(90deg, var(--ios-blue) 0 var(--p), var(--ios-fill2) var(--p)) center / 100% 4px no-repeat; }
.rp-ruler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 .5px 4px rgba(0, 0, 0, .12), 0 6px 13px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.rp-ruler input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.rp-ticks span { color: var(--ios-sec); font-size: 11px; font-variant-numeric: tabular-nums; }

/* --- левая панель хостес --- */
.rp-left { background: var(--ios-bg); border-right: .5px solid var(--ios-sep); }
.rp-tabs { border-bottom: 0; padding: 12px; gap: 0; }
.rp-tabs > a:not(.rp-info) { padding: 6px 16px; border-radius: 8px; color: var(--ios-label); font-weight: 500; font-size: 14px; }
.rp-tabs > a.on { background: var(--ios-seg); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.rp-tabs { background: none; }
.rp-tabs > a:first-child { margin-left: 0; }
.rp-tabs .rp-info { border: 0; background: var(--ios-fill); color: var(--ios-blue); font: 600 14px var(--ios-font); width: 28px; height: 28px; margin-left: 8px; }
.rp-datef span { color: var(--ios-blue); border: 0; font-weight: 500; }
.rp-scroll { padding: 0 12px 12px; }
.rp-cardlink { margin-bottom: 10px; color: var(--ios-label); }
.rp-card { background: var(--ios-card); border: 0; border-radius: 14px; box-shadow: none; }
.rp-cardlink:hover .rp-card { border: 0; box-shadow: 0 0 0 2px var(--ios-blue); }
.rp-card-body { padding: 12px 14px 4px; font-size: 15px; }
.rp-card-no { font-size: 13px; font-weight: 600; color: var(--ios-sec); letter-spacing: .02em; }
.rp-card-tbl { color: var(--ios-blue); font-weight: 600; } .rp-card-tbl span { color: var(--ios-sec); font-weight: 400; }
.rp-card-guest { font-size: 17px; font-weight: 600; }
.rp-card-note { color: var(--ios-sec); }
.rp-pill { top: 10px; right: 10px; min-width: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.rp-pill.st-new { background: color-mix(in srgb, var(--ios-blue) 15%, transparent); color: var(--ios-blue); }
.rp-pill.st-waiting { background: color-mix(in srgb, var(--ios-orange) 18%, transparent); color: var(--ios-orange); }
.rp-pill.st-seated { background: color-mix(in srgb, var(--ios-green) 18%, transparent); color: var(--ios-green); }
.rp-pill.st-closed, .rp-pill.st-noshow, .rp-pill.st-cancelled { background: var(--ios-fill); color: var(--ios-sec); }
.rp-mini { height: 30px; margin: 0 14px 10px; }
.rp-mini-t { color: var(--ios-sec); font-size: 12px; transform: none; top: 0; }
.rp-mini-bar { left: 0; right: 0; height: 6px; bottom: 2px; background: var(--ios-fill); border-radius: 3px; }
.rp-mini-bar i { height: 6px; bottom: 0; border: 0; border-radius: 3px; background: var(--ios-blue); opacity: 1; }
.rp-sttabs { margin: 0 12px 8px; padding: 2px; gap: 0; background: var(--ios-fill); border-radius: 9px; }
.rp-sttabs a, .rp-sttabs a:last-child { background: none; color: var(--ios-label); border-radius: 7px; font-size: 12px; padding: 6px 2px; }
.rp-sttabs a b, .rp-sttabs a:last-child b { color: var(--ios-label); }
.rp-sttabs a.on { background: var(--ios-seg); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); color: var(--ios-label); }
.rp-search { padding: 0 12px 12px; }
.rp-search input { background: var(--ios-fill); border-radius: 10px; min-height: 36px; }
.rp-search .rp-btn { min-height: 36px; border-radius: 10px; background: none; color: var(--ios-blue); font-weight: 500; }

.rp-dhead { font: 700 20px var(--ios-font); letter-spacing: -.01em; border-bottom: 0; background: var(--ios-bg); }
.rp-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ios-fill); color: var(--ios-sec); font-size: 14px; font-weight: 700; }
.rp-photo { margin: 0 12px 12px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #3a3a3c, #1c1c1e) center / cover; }
.rp-photo-txt { font-weight: 500; }
.rp-dot { background: var(--ios-green); } .rp-dot-booked { background: var(--ios-orange); } .rp-dot-seated { background: var(--ios-red); }
.rp-photo .rp-dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.rp-created { color: var(--ios-sec); }
.rp-guest { background: var(--ios-card); color: var(--ios-label); border-radius: 12px; padding: 10px 14px; }
.rp-tline { background: var(--ios-card); color: var(--ios-label); border-bottom: .5px solid var(--ios-sep); padding: 12px 14px; }
.rp-tline:first-child { border-radius: 12px 12px 0 0; } .rp-tline:last-of-type { border-radius: 0 0 12px 12px; border-bottom: 0; margin-bottom: 12px; }

/* кнопки: тонированные, как в iOS */
.rp-btn { min-height: 50px; border-radius: 12px; background: var(--ios-card); color: var(--ios-blue); font: 600 15px var(--ios-font); }
.rp-btn:hover { filter: none; background: var(--ios-card2); }
.rp-grid4 { gap: 8px; border-radius: 0; overflow: visible; }
.rp-grid4 .rp-btn { border-radius: 12px; }
.rp-grid4 form:nth-child(1) .rp-btn { color: var(--ios-blue); }
.rp-grid4 form:nth-child(2) .rp-btn { color: var(--ios-orange); }
.rp-btn.go { color: var(--ios-green); }
.rp-btn.stop { color: var(--ios-red); background: var(--ios-card); }
.rp-btn.on { background: var(--ios-blue); color: #fff; }
.rp-grid4 form:nth-child(2) .rp-btn.on { background: var(--ios-orange); color: #fff; }
.rp-btn.go.on { background: var(--ios-green); color: #fff; }
.rp-grid2 { gap: 8px; }
.rp-btn-book, .rp-btn-open { color: #fff; }
.rp-btn-book { background: var(--ios-blue); } .rp-btn-open { background: var(--ios-green); }
.rp-btn-book:hover { background: var(--ios-blue); filter: brightness(1.08); } .rp-btn-open:hover { background: var(--ios-green); filter: brightness(1.08); }
.rp-pop[open] > .rp-popbody { background: var(--ios-card); border: 0; border-radius: 12px; }
.rp .btn.primary { background: var(--ios-blue); border-color: var(--ios-blue); border-radius: 12px; font-family: var(--ios-font); }

/* низ: сегмент СПИСОК / СХЕМА, порядок */
.rp-main { background: var(--ios-bg); }
.rp-seg, .rp-order { display: inline-flex; padding: 2px; background: var(--ios-fill); border-radius: 9px; overflow: visible; }
.rp-seg a, .rp-order a, .rp-order a:first-child, .rp-order a:last-child { padding: 6px 18px; border: 0; border-radius: 7px; background: none;
  color: var(--ios-label); font: 500 13px var(--ios-font); letter-spacing: 0; text-transform: none; }
.rp-seg a.on, .rp-order a.on { background: var(--ios-seg); color: var(--ios-label); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.rp-order { margin: 0 auto 14px; }
.rp-tlist .rp-order { display: flex; width: max-content; }
.rp-daytotal { color: var(--ios-sec); }

/* плитки столов */
.rp-tgrid { gap: 12px; }
.rp-tcard { background: var(--ios-card); border: 0; border-radius: 16px; box-shadow: none; }
.rp-tcard.on { box-shadow: 0 0 0 3px var(--ios-blue); }
.rp-tcard:hover { filter: none; box-shadow: var(--ios-shadow); }
.rp-tpic.nophoto { background: var(--ios-card); }
.rp-tstate b { font-weight: 600; font-size: 15px; }
.rp-tstate small { color: var(--ios-sec); }
.rp-tfoot { border-top: .5px solid var(--ios-sep); }
.rp-tfoot b { font-size: 20px; font-weight: 700; }
.rp-tfoot small, .rp-tcap { color: var(--ios-sec); }

/* сводка */
.rp-modal { backdrop-filter: blur(8px); background: rgba(0, 0, 0, .35); }
.rp-modal-box { background: var(--ios-card); color: var(--ios-label); border-radius: 14px; font-family: var(--ios-font); }
.rp-sumtotal { background: var(--ios-fill); border-radius: 12px; }

/* --- страница гостя --- */
.gb-head { background: color-mix(in srgb, var(--ios-card) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); color: var(--ios-label);
  border-bottom: .5px solid var(--ios-sep); position: sticky; top: 0; z-index: 40; }
.gb-brand b { font: 700 17px var(--ios-font); letter-spacing: -.01em; color: var(--ios-label); }
.gb-brand small { color: var(--ios-sec); }
.gb-phone { color: var(--ios-blue); font-weight: 500; }
.gb-hint { color: var(--ios-sec); }
.gb-map .hallmap { border-radius: 18px; background: var(--ios-card); box-shadow: var(--ios-shadow); }
.gb-pop { background: var(--ios-bg); border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.gb-pop .rp-dhead { background: var(--ios-bg); }
.gb-pic { margin: 0 12px; border-radius: 14px; overflow: hidden; height: 210px; }
.gb-pic.nophoto { background: var(--ios-card); }
.gb-pic-t { font-size: 17px; }
.gb-body { padding: 12px; }
.gb-busy { background: var(--ios-card); padding: 12px 14px; margin: 0 0 1px; border-radius: 0; }
.gb-busy:first-child { border-radius: 12px 12px 0 0; } .gb-busy:nth-last-child(2) { border-radius: 0 0 12px 12px; }
.gb-busy:first-child:nth-last-child(2) { border-radius: 12px; }
.gb-go { justify-content: center; gap: 8px; border-radius: 14px; background: var(--ios-blue); font: 600 17px var(--ios-font); padding: 15px; }
.gb-go:hover { filter: brightness(1.08); }
.gb-field { background: var(--ios-card); border-radius: 12px; }
.gb-box { border: 0; background: var(--ios-card); border-radius: 12px; color: var(--ios-sec); font-family: var(--ios-font); }
.gb-box b { font-variant-numeric: tabular-nums; }
.gb-box.on { background: var(--ios-card); box-shadow: 0 0 0 2px var(--ios-blue); color: var(--ios-blue); }
.gb-q { font: 700 22px var(--ios-font); letter-spacing: -.01em; }
.gb-tabs { display: inline-flex; padding: 2px; background: var(--ios-fill); border-radius: 9px; margin-bottom: 10px; }
.gb-tabs button { padding: 6px 22px; border-radius: 7px; color: var(--ios-label); font: 500 13px var(--ios-font); letter-spacing: 0; }
.gb-tabs button.on { background: var(--ios-seg); color: var(--ios-label); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.gb-grid { background: none; padding: 0; gap: 8px; border-radius: 0; }
.gb-cell { border: 0; border-radius: 12px; background: var(--ios-card); font-family: var(--ios-font); padding: 8px 0 6px; }
.gb-cell b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gb-cell small { color: var(--ios-sec); }
.gb-cell.ok:hover { box-shadow: 0 0 0 2px var(--ios-blue); }
.gb-cell.part { background: linear-gradient(90deg, var(--ios-card) calc(var(--f) * 100%), var(--ios-fill) 0); }
.gb-cell.off { background: var(--ios-fill); opacity: .5; }
.gb-cell.off b { text-decoration: line-through; }
.gb-cell.off::after { content: none; }
.gb-sum { color: var(--ios-label); }
.gb-contacts .field input, .gb-contacts .field select { background: var(--ios-card); min-height: 44px; }

/* календарик на 2 недели */
.gb-cal { position: relative; justify-self: end; }
.gb-cal > summary { list-style: none; cursor: pointer; color: var(--ios-blue); font-weight: 500; }
.gb-cal > summary::-webkit-details-marker { display: none; }
.gb-cal-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 320px; padding: 14px; background: var(--ios-card);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--ios-label); }
.gb-cal-title { font-weight: 700; font-size: 17px; margin: 0 4px 10px; text-transform: capitalize; }
.gb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.gb-cal-grid .wd { font-size: 12px; font-weight: 600; color: var(--ios-ter); text-transform: uppercase; padding-bottom: 4px; }
.gb-cal-grid .day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 18px; color: var(--ios-label); font-variant-numeric: tabular-nums; }
.gb-cal-grid a.day:hover { background: var(--ios-fill); }
.gb-cal-grid .day.today { color: var(--ios-blue); font-weight: 600; }
.gb-cal-grid .day.sel { background: var(--ios-blue); color: #fff; font-weight: 600; }
.gb-cal-grid .day.off { color: var(--ios-ter); }
.gb-cal-pop::before { content: "Бронь доступна на 2 недели вперёд"; display: block; order: 9; }
.gb-cal-pop::before { font-size: 12px; color: var(--ios-sec); margin: 0 4px 8px; }
@media (max-width: 760px) {
  .gb-cal-pop { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; }
  .gb-pop { border-radius: 16px 16px 0 0; }
  .rp-timebar { padding: 10px 16px 4px; }
}

/* ===== строгий вариант: монохром, без цветных пятен ===== */
:root {
  --ios-blue: #1c1c1e; --on-accent: #fff;
  --st-free: #ffffff; --st-free-ink: #1c1c1e; --st-free-line: #c7c7cc;
  --st-book: #aeaeb2; --st-book-ink: #fff;
  --st-busy: #1c1c1e; --st-busy-ink: #fff;
}
:root[data-theme="dark"] {
  --ios-blue: #f2f2f7; --on-accent: #000;
  --st-free: #2c2c2e; --st-free-ink: #fff; --st-free-line: #48484a;
  --st-book: #636366; --st-book-ink: #fff;
  --st-busy: #f2f2f7; --st-busy-ink: #000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ios-blue: #f2f2f7; --on-accent: #000;
    --st-free: #2c2c2e; --st-free-ink: #fff; --st-free-line: #48484a;
    --st-book: #636366; --st-book-ink: #fff;
    --st-busy: #f2f2f7; --st-busy-ink: #000;
  }
}
/* столы: свободен — светлый, бронь — серый, заняты — тёмный */
.tbl.free { --c: var(--st-free); --ink-on: var(--st-free-ink); }
.tbl.booked { --c: var(--st-book); --ink-on: var(--st-book-ink); }
.tbl.seated, .tbl.busy { --c: var(--st-busy); --ink-on: var(--st-busy-ink); }
.tbl.free .top { stroke: var(--st-free-line); stroke-width: 1.5; }
.tbl.sel .top { stroke: var(--ios-blue); stroke-width: 3; }
.tbl .n, .tbl .note { fill: var(--ink-on); }
.legend .free { background: var(--st-free); box-shadow: inset 0 0 0 1.5px var(--st-free-line); }
.legend .booked { background: var(--st-book); } .legend .busy, .legend .seated { background: var(--st-busy); }
.rp-dot { background: var(--st-free); box-shadow: inset 0 0 0 1.5px var(--st-free-line); }
.rp-dot-booked { background: var(--st-book); box-shadow: none; } .rp-dot-seated { background: var(--st-busy); box-shadow: none; }
.rp-photo .rp-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }

/* метки статусов — нейтральные */
.rp-pill.st-new, .rp-pill.st-waiting, .rp-pill.st-seated { background: var(--ios-fill); color: var(--ios-label); }
.rp-pill.st-seated { background: var(--st-busy); color: var(--st-busy-ink); }
.rp-mini-bar i { background: var(--ios-label); }
.rp-card-tbl { color: var(--ios-label); }

/* кнопки: один цвет текста, выбранное — заливка */
.rp-grid4 form:nth-child(1) .rp-btn, .rp-grid4 form:nth-child(2) .rp-btn, .rp-btn.go, .rp-btn.stop, .rp-btn { color: var(--ios-label); }
.rp-btn.on, .rp-grid4 form:nth-child(2) .rp-btn.on, .rp-btn.go.on { background: var(--ios-blue); color: var(--on-accent); }
.rp-btn.stop { color: var(--ios-red); }
.rp-btn-book, .rp-btn-open, .rp-btn-book:hover, .rp-btn-open:hover { background: var(--ios-blue); color: var(--on-accent); }
.rp-btn-open { background: var(--ios-card); color: var(--ios-label); box-shadow: inset 0 0 0 1px var(--ios-sep); }
.rp-btn-open:hover { background: var(--ios-card2); color: var(--ios-label); }
.rp .btn.primary { color: var(--on-accent); }
.rp-search .rp-btn { color: var(--ios-label); }
.gb-go { color: var(--on-accent); }
.gb-cal-grid .day.sel { color: var(--on-accent); }
.gb-phone, .gb-cal > summary, .rp-datef span, .rp-tb-head > span:last-child, .rp-tabs .rp-info { color: var(--ios-label); }
.gb-box.on { color: var(--ios-label); }
.rp-ruler input[type=range] { background: linear-gradient(90deg, var(--ios-label) 0 var(--p), var(--ios-fill2) var(--p)) center / 100% 3px no-repeat; }
.rp a[href^="tel"], .rp-daytotal a, .gb a[href^="tel"] { color: var(--ios-label); }

/* ===== занятые — бургунди; полоска «сколько до брони» под номером ===== */
:root:not(#neo) { --st-busy: #4f1324; --st-busy-ink: #fff; }
@media (prefers-color-scheme: dark) { :root:not(#neo):not([data-theme="light"]) { --st-busy: #6a1c30; } }
:root:not(#neo)[data-theme="dark"] { --st-busy: #6a1c30; }
:root:not(#neo)[data-theme="light"] { --st-busy: #4f1324; }
.rp-pill.st-seated { background: color-mix(in srgb, var(--st-busy) 15%, transparent); color: var(--st-busy); }
.legend .busy, .legend .seated { background: var(--st-busy); }
.tbl .nbar { fill: var(--ink-on); opacity: .5; }
.tbl.free .nbar { fill: #30b956; opacity: 1; }
.tbl .note { font-size: 11px; font-weight: 600; opacity: .9; }

/* на случай старых правил в neo.css */
.tbl.busy { opacity: 1; }


/* позиции из шаблона приходят переменными --x / --w (так VS Code не ругается) */
.rp-ticks span, .rp-mini-t { left: var(--x); }
.rp-mini-bar i { left: var(--x); width: var(--w); }


/* шрифты как на всём сайте: текст — Manrope, заголовки и номера — Unbounded */
.rp-dhead, .rp-tb-head b, .gb-q, .gb-brand b, .rp-tfoot b { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: 0; }
.rp-dhead { font-size: 17px; }
.tbl .n { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: 18px; }
.tbl.mini .n { font-size: 11px; }