:root{
  /* ── Тёмно-синяя морская схема ── */
  --navy:#FF6B00; --navy-d:#E85D00; --navy-light:#FFF3E0;
  --ink:#2D2D2D; --muted:#8C8C8C;
  --bg:#FFFFFF; --card:#FFFFFF; --surface:#F5F5F5; --line:#E6E6E6;
  --green:#4CAF50; --green-d:#3F9C43; --red:#F44336; --red-d:#D63B3B;
  --radius:20px; --radius-btn:28px;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;background:var(--bg);
  color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--navy);text-decoration:none}
.wrap{max-width:960px;margin:0 auto;padding:0 20px}
.wrap-narrow{max-width:480px}

header.bar{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line);
  background:#fff;position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px;letter-spacing:.2px}
.brand svg{height:26px;width:auto;display:block}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:16px 0;
  box-shadow:0 6px 20px rgba(0,0,0,.05)}
h1{font-size:26px;font-weight:800;letter-spacing:-.3px;margin-bottom:6px}
h2{font-size:18px;font-weight:700;margin-bottom:12px}
.sub{color:var(--muted);font-size:14px}
.center{text-align:center}
.muted{color:var(--muted)}

label{display:block;font-size:12px;color:var(--muted);letter-spacing:.4px;margin:14px 0 6px;text-transform:uppercase}
input,select{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:14px;font-size:15px;
  font-family:inherit;background:#fff;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus{border-color:var(--navy);box-shadow:0 0 0 3px var(--navy-light)}
input[type="date"]{padding-left:14px !important;padding-right:14px !important;-webkit-appearance:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--navy);color:#fff;
  border:none;border-radius:var(--radius-btn);padding:14px 20px;font-size:15px;font-weight:700;cursor:pointer;
  font-family:inherit;transition:background .15s,transform .05s;width:100%;min-height:52px}
.btn:hover{background:var(--navy-d)} .btn:active{transform:scale(.99)}
.btn:disabled,.btn-ghost:disabled,button:disabled{background:#FFD4A3 !important;color:#fff !important;border-color:#FFD4A3 !important;opacity:1;cursor:not-allowed}
.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn-ghost:hover{background:var(--surface);border-color:var(--navy)}
.btn-sm{width:auto;padding:8px 14px;font-size:13px;border-radius:12px;min-height:0}
.btn-green{background:var(--green)} .btn-green:hover{background:var(--green-d)}
.btn-red{background:var(--red)} .btn-red:hover{background:var(--red-d)}
.btn-grey{background:#9AA3AD} .btn-grey:hover{background:#828c97}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:700}
.b-wait{background:var(--navy-light);color:var(--navy)}
.b-ok{background:#E7F8EE;color:#1c7a43}
.b-no{background:#FDECEC;color:#c2342f}
.b-mut{background:#EEEEEE;color:#666}
.b-err{background:#FDECEC;color:#c2342f}
.b-grey{background:#EEEEEE;color:#666}

table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);font-weight:700}

.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(10px);background:var(--ink);
  color:#fff;padding:12px 20px;border-radius:24px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;
  transition:opacity .25s,transform .25s;z-index:999}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.ok{background:var(--green)} .toast.err{background:var(--red)}

.dot{width:11px;height:11px;border-radius:50%;display:inline-block}
.dot.on{background:var(--green)} .dot.off{background:var(--red)}

.big-status{text-align:center;padding:40px 20px;border-radius:var(--radius)}
.big-status.ready{background:var(--green);color:#fff}

.nav{display:flex;gap:6px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid var(--line);background:#fff}
.nav a{padding:8px 14px;border-radius:12px;color:var(--ink);font-weight:600;font-size:14px}
.nav a.active,.nav a:hover{background:var(--navy-light);color:var(--navy)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.stat .n{font-size:30px;font-weight:800} .stat .l{font-size:13px;color:var(--muted);margin-top:2px}
.stat-n{font-size:30px;font-weight:800;color:var(--ink)}
.stat-l{font-size:13px;color:var(--muted);margin-top:2px}

.fade-in{animation:zg-fade .3s ease both}
@keyframes zg-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.hint{font-size:12px;color:var(--muted);margin:6px 0 4px}
.foot{text-align:center;color:var(--muted);font-size:12px;padding:24px 0 32px}

/* согласия (чекбоксы) — отменяем глобальный uppercase у label */
.check{display:flex;align-items:flex-start;gap:10px;margin:12px 0 0;text-transform:none;
  font-size:14px;color:var(--ink);letter-spacing:0;cursor:pointer}
.check input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;
  flex:0 0 auto;margin-top:1px;border:2px solid #C9C2B8;border-radius:6px;background:#fff;
  box-sizing:border-box;cursor:pointer;position:relative;transition:border-color .15s}
.check input[type=checkbox]:checked{border-color:#FF6B00}
.check input[type=checkbox]:checked::after{content:'';position:absolute;left:50%;top:46%;
  width:5px;height:10px;border:solid #FF6B00;border-width:0 2px 2px 0;
  transform:translate(-50%,-50%) rotate(45deg)}
.check span{flex:1;line-height:1.4}

/* спиннер ожидания */
.spinner{width:44px;height:44px;border:4px solid var(--navy-light);border-top-color:var(--navy);
  border-radius:50%;margin:8px auto 0;animation:zg-spin 1s linear infinite}
@keyframes zg-spin{to{transform:rotate(360deg)}}

/* ═══════════════════ Гость (mobile first) ═══════════════════ */
.order-label{font-size:13px;color:var(--muted);margin-top:6px;text-align:center}
.order-num{font-size:82px;line-height:1.02;font-weight:800;letter-spacing:1px;color:var(--navy);
  text-align:center;margin:4px 0 14px;font-variant-numeric:tabular-nums}

/* прогресс: «Принят • Готовится • Готов» */
.prog{margin:2px auto 14px}
.dots{display:flex;justify-content:center;gap:46px;position:relative;margin:0 auto 9px;width:148px}
.dots::before{content:"";position:absolute;top:7px;left:14px;right:14px;height:2px;background:var(--line);z-index:0}
.dots span{position:relative;z-index:1;width:16px;height:16px;border-radius:50%;background:#fff;
  border:2px solid var(--line);transition:background .3s,border-color .3s,box-shadow .3s}
.dots span.on{background:var(--navy);border-color:var(--navy)}
.dots span.active{background:var(--navy);border-color:var(--navy);box-shadow:0 0 0 5px var(--navy-light);
  animation:zg-pulse 1.4s ease-in-out infinite}
@keyframes zg-pulse{0%,100%{box-shadow:0 0 0 5px var(--navy-light)}50%{box-shadow:0 0 0 9px rgba(0,0,0,.05)}}
.dlabels{display:flex;justify-content:center;width:160px;margin:0 auto}
.dlabels span{flex:1;text-align:center;font-size:11px;color:var(--muted);line-height:1.3}

.ostatus{text-align:center;font-size:18px;color:var(--muted);font-weight:600;margin-bottom:4px}
.otimer{text-align:center;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:2px}
.sub-btn{min-height:56px;border-radius:var(--radius-btn);font-size:16px;margin-top:14px}
.sub-btn.subscribed,.sub-btn.subscribed:hover{background:var(--green)}
.consent{font-size:12px;color:var(--muted);text-align:center;margin-top:10px;line-height:1.45}
.consent a{color:var(--navy);text-decoration:underline}

/* ═══════════════════ Юридические страницы ═══════════════════ */
.legal-page{max-width:760px;margin:0 auto;padding:32px 22px 64px;color:var(--ink);line-height:1.65}
.legal-page h1{font-size:26px;margin-bottom:18px}
.legal-page h2{font-size:18px;margin:22px 0 8px}
.legal-page h3{font-size:15px;margin:14px 0 6px}
.legal-page p{margin:8px 0;font-size:15px}
.legal-page ul{margin:8px 0 8px 22px}
.legal-page li{margin:4px 0;font-size:15px}

/* ═══════════════════ Касса (tablet first) ═══════════════════ */
body.cashier-bg{background:var(--surface)}
.big-new{display:flex;width:80%;max-width:520px;margin:10px auto;min-height:120px;
  font-size:26px;border-radius:var(--radius-btn);box-shadow:0 16px 36px rgba(0,0,0,.18)}
.offline-new{display:flex;width:80%;max-width:520px;margin:0 auto 10px;min-height:56px}
.order-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;
  border-radius:var(--radius);padding:20px 22px;margin:12px 0;box-shadow:0 6px 20px rgba(0,0,0,.06);
  user-select:none;-webkit-user-select:none;touch-action:manipulation}
.oc-left{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.oc-num{font-size:38px;font-weight:800;letter-spacing:1px;color:var(--ink);min-width:70px}
.oc-act{flex:0 0 auto}
.oc-act .btn-green{min-height:52px;padding:12px 26px;font-size:16px;border-radius:var(--radius-btn);width:auto}

/* PIN-вход */
.pin-dots{display:flex;justify-content:center;gap:14px;margin:18px 0 22px}
.pin-dots span{width:16px;height:16px;border-radius:50%;background:#E4E4E4}
.pin-dots span.filled{background:var(--navy)}
.pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:320px;margin:0 auto}
.pin-key{font-size:24px;font-weight:700;min-height:64px;border-radius:16px;border:1px solid var(--line);
  background:#fff;color:var(--ink);cursor:pointer;font-family:inherit;transition:transform .05s,background .15s}
.pin-key:hover{background:var(--navy-light)} .pin-key:active{transform:scale(.98)}
.pin-empty{visibility:hidden} .pin-back{color:var(--muted)}

/* ── Главная метрика дашборда (hero) ── */
.hero-card{background:var(--navy);color:#fff;border-radius:var(--radius);padding:22px 24px;margin:16px 0;
  box-shadow:0 16px 36px rgba(0,0,0,.18)}
.hero-card .h-l{font-size:13px;opacity:.85;letter-spacing:.3px}
.hero-card .h-n{font-size:42px;font-weight:800;letter-spacing:-.5px;margin-top:4px;line-height:1;
  font-variant-numeric:tabular-nums}
.hero-card .h-s{font-size:13px;opacity:.82;margin-top:10px}

/* ── кассир: вкладки, время готовки, ручной ввод, warn-тост ── */
.tabs{display:flex;gap:8px;margin:0 0 12px}
.tab{flex:1;border:1px solid #E6E6E6;background:#fff;border-radius:12px;padding:9px 6px;font-size:14px;font-weight:600;color:#8C8C8C;cursor:pointer;font-family:inherit}
.tab.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.tab span{font-weight:700}
.oc-time{display:inline-block;margin-left:8px;font-size:13px;font-weight:700;padding:1px 8px;border-radius:8px;white-space:nowrap}
.t-green{background:#E7F6E9;color:#2E7D32}
.t-yellow{background:#FFF3E0;color:#B26A00}
.t-red{background:#FDECEA;color:#C62828}
.btn-warn{background:#5A5A5A;color:#fff}
.toast.warn{background:#444}
.manual-input{width:100%;text-align:center;font-size:24px;font-weight:700;letter-spacing:6px;padding:12px;border:2px solid #E6E6E6;border-radius:12px;margin-bottom:10px;font-family:inherit;-webkit-appearance:none}

/* ───── Гостевой рейтинг под статусом «Готов» ───── */
.rate-sep{height:1px;background:#EEE;margin:20px 0 14px}
.rate-title{text-align:center;font-size:17px;font-weight:800;color:var(--ink);margin-bottom:12px}
.stars{display:flex;gap:10px;justify-content:center;margin-bottom:10px}
.star{background:none;border:none;padding:0;cursor:pointer;line-height:0;-webkit-tap-highlight-color:transparent}
.star svg{width:40px;height:40px;display:block;transition:transform .08s}
.star:hover svg{transform:scale(1.06)} .star:active svg{transform:scale(.92)}
.rate-cap{text-align:center;font-size:14px;color:var(--muted);line-height:1.35;min-height:38px}
.rate-cap.show{color:var(--ink);font-weight:600}

/* ───── Кабинет: рейтинг ───── */
.rate-head{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.rate-big{display:flex;align-items:flex-end;gap:8px}
.rate-big>span:first-child{font-size:46px;font-weight:800;line-height:.95;letter-spacing:-1px;color:var(--ink)}
.rate-of{font-size:16px;color:var(--muted);margin-bottom:6px}
.rate-stars-row{position:relative;display:inline-block}
.rate-stars-row .srow{display:flex;gap:4px}
.rate-stars-row .sfill{position:absolute;top:0;left:0;overflow:hidden;display:flex;gap:4px}
.rate-stars-row svg{width:24px;height:24px;display:block;flex:none}
.rate-chart-title{font-size:14px;color:var(--muted);font-weight:700;margin:18px 0 8px}
.rate-chart{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;height:120px}
.rate-chart .rb{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}
.rate-chart .rb-v{font-size:11px;font-weight:700;margin-bottom:4px;color:var(--ink)}
.rate-chart .rb-bar{width:100%;max-width:30px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#FF6B00,#FFB366);min-height:4px}
.rate-chart .rb-d{font-size:11px;color:var(--muted);margin-top:6px}

/* ───── Кабинет: стикеры ───── */
.stk-code-box{display:flex;align-items:center;justify-content:space-between;background:var(--navy-light);border-radius:12px;padding:14px 16px;margin-top:8px}
.stk-code-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.stk-code-val{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:22px;font-weight:800;letter-spacing:3px;color:var(--ink)}
.stk-history{display:flex;flex-direction:column}
.stk-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:9px 0;border-top:1px solid #F0F0F0}
.stk-row .c{font-family:ui-monospace,Menlo,Consolas,monospace;letter-spacing:1px;color:var(--ink)}
.stk-row .on{color:var(--navy);font-weight:700}
.stk-row .off{color:var(--muted)}

/* ───── Кабинет: вкладки ───── */
.tabs{display:flex;gap:6px;overflow-x:auto;padding:4px 0 2px;margin:0 0 18px;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar{height:0}
.tab-btn{flex:0 0 auto;background:none;border:none;padding:9px 15px;border-radius:20px;font-size:14px;
  font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap}
.tab-btn:hover{color:var(--ink)}
.tab-btn.active{background:var(--navy);color:#fff}
.tab-panel{display:none}
.tab-panel.active{display:block}
.sec-h{font-size:18px;font-weight:800;margin:6px 0 14px}
.grid-4{grid-template-columns:repeat(2,1fr)}
@media(min-width:960px){.grid-4{grid-template-columns:repeat(4,1fr)}}
/* тренд заказов (линейный график) */
.trend{width:100%}
.trend svg{display:block;width:100%;height:auto}
/* тариф */
.trial-banner{border:2px solid var(--navy);background:var(--navy-light)}
.tariffs-grid{display:grid;gap:14px}
@media(min-width:860px){.tariffs-grid{grid-template-columns:repeat(3,1fr)}}
.tariff-card{background:var(--card);border-radius:20px;padding:22px;position:relative;display:flex;flex-direction:column;gap:6px}
.tariff-card.cur{border:2px solid var(--navy);background:var(--navy-light)}
.tariff-card .tcur{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;
  font-size:11px;font-weight:800;padding:4px 12px;border-radius:18px}
.tariff-card .tname{font-size:17px;font-weight:800}
.tariff-card .tprice{font-size:24px;font-weight:800;color:var(--navy)}
.tariff-card .tprice span{font-size:13px;color:var(--muted);font-weight:700}
.tariff-card .btn{margin-top:auto}
.tariff-card .tfeat{list-style:none;margin:10px 0 4px;padding:0;display:flex;flex-direction:column;gap:7px}
.tariff-card .tfeat li{position:relative;padding-left:22px;font-size:13.5px;line-height:1.35;color:var(--ink)}
.tariff-card .tfeat li::before{content:'';position:absolute;left:3px;top:3px;width:5px;height:9px;border:solid #FF6B00;border-width:0 2px 2px 0;transform:rotate(45deg)}
.tariff-card .tpop{font-size:11px;font-weight:700;background:#FFE3CC;color:#8A3D00;padding:2px 8px;border-radius:10px;margin-left:6px;white-space:nowrap}
.tariff-card .tcurrent{margin-top:auto;text-align:center;font-weight:700;color:#fff;background:#FFD4A3;border-radius:28px;padding:13px 20px;font-size:14px}
/* заблокированные карточки (по тарифу) */
.stat.locked{background:#F0F0F0;display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.stat.locked .lock-tier{font-size:11px;font-weight:800;color:var(--navy);background:#fff;border-radius:14px;padding:3px 10px}
.locked-card{background:#F0F0F0}
.locked-card .lock-ic svg{width:34px;height:34px;margin-bottom:8px;display:block}
.staff-soon{margin-top:14px;color:var(--muted);font-size:14px}

/* ───── Этап 2: select, локации, модалка, сотрудники ───── */
select{width:100%;padding:13px 14px;border:1.5px solid #E2DDD5;border-radius:14px;font-size:15px;
  background:#fff;color:var(--ink);font-family:inherit;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center}
select:focus{outline:none;border-color:var(--navy)}
.loc-hint{color:var(--muted);font-size:13px;margin-top:6px;min-height:16px}
/* модалка */
.modal-overlay{position:fixed;inset:0;background:rgba(45,45,45,.45);display:flex;align-items:center;
  justify-content:center;z-index:1000;padding:20px}
.modal{background:#fff;border-radius:22px;padding:24px;max-width:380px;width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal-rows{margin-top:12px;display:flex;flex-direction:column;gap:2px}
.modal .mrow{display:flex;justify-content:space-between;align-items:center;padding:9px 0;
  border-bottom:1px solid #F0ECE5}
.modal .mrow:last-child{border-bottom:none}
.modal .mrow span{color:var(--muted);font-size:14px}
.modal .mrow b{font-weight:800}
/* список сотрудников */
.staff-list{display:flex;flex-direction:column;gap:8px}
.staff-row{display:flex;justify-content:space-between;align-items:center;gap:10px;
  background:#FAF8F5;border-radius:14px;padding:12px 14px}
.staff-row .se{font-weight:700;font-size:14px;word-break:break-all}
.staff-row .sm{color:var(--muted);font-size:12px;margin-top:2px}

/* ───── Часть 3: переключатель точек в шапке ───── */
.point-switch{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:10px;min-width:0}
.point-switch #point-select{width:auto;min-width:0;max-width:min(50vw,340px);padding:8px 32px 8px 12px;
  font-size:13px;font-weight:700;border-radius:14px}
.point-switch #point-add{flex:0 0 auto;white-space:nowrap}
@media(max-width:560px){ .point-switch #point-select{max-width:44vw} .point-switch{margin-right:6px} }


/* ───── Этап 3: баннер неоплаты, история платежей, лояльность ───── */
.pay-banner{display:flex;align-items:center;gap:12px;justify-content:space-between;border-radius:16px;
  padding:13px 18px;margin:16px 0;font-weight:700;font-size:14px;flex-wrap:wrap}
.pay-banner.yellow{background:#FFF3CD;color:#7A5B00;border:1.5px solid #F0D070}
.pay-banner.orange{background:#FFE3CC;color:#8A3D00;border:1.5px solid #FF9A4D}
.pay-banner.red{background:#FBD9D9;color:#8A1010;border:1.5px solid #E68080}
.pay-banner-btn{flex:0 0 auto;background:#FF6B00;color:#fff;border:none;border-radius:18px;
  padding:9px 16px;font-weight:800;font-size:13px;cursor:pointer;white-space:nowrap}
.billing-list{display:flex;flex-direction:column;gap:8px}
.bill-row{display:flex;justify-content:space-between;align-items:center;gap:10px;
  background:#FAF8F5;border-radius:14px;padding:11px 14px}
.bill-row .bd{font-weight:700;font-size:14px}
.bill-row .bt{color:var(--muted);font-size:12px;margin-top:2px}
.bill-row .bz{text-align:right;font-weight:800;font-size:14px}
.bill-row .bs{display:block;font-size:11px;font-weight:700;margin-top:3px}
.bill-row .bs.paid{color:#1B8A3A}
.bill-row .bs.refunded{color:#8C8C8C}
.bill-row .bs.failed{color:#C0392B}
.bill-row .bs.pending{color:#B8860B}
#loyalty-card{max-width:520px}
#loyalty-card.locked-card{padding:18px 20px}
#loyalty-card.locked-card .lock-ic svg{width:26px;height:26px;margin-bottom:6px}
/* плашка оплаты в панели кассира */
.cash-banner{display:none;border-radius:14px;padding:11px 16px;margin:0 0 12px;font-weight:700;font-size:14px}
.cash-banner.yellow{background:#FFF3CD;color:#7A5B00;border:1.5px solid #F0D070}
.cash-banner.red{background:#FBD9D9;color:#8A1010;border:1.5px solid #E68080}

/* ───── Мобильная версия: бургер, роли, экспорт ───── */
.burger{display:none;align-items:center;justify-content:center;background:none;border:none;
  padding:6px;margin-right:4px;cursor:pointer;border-radius:10px}
.burger svg{width:26px;height:26px;display:block}
.role-cards{display:grid;gap:12px;grid-template-columns:1fr;margin-top:4px}
@media(min-width:860px){.role-cards{grid-template-columns:repeat(3,1fr)}}
.role-card{background:#FAF8F5;border-radius:16px;padding:16px}
.role-card .ric{width:30px;height:30px;display:block;margin-bottom:8px}
.role-card .rt{font-weight:800;font-size:15px;margin-bottom:4px}
.role-card .rd{color:var(--muted);font-size:13px;line-height:1.45}
@media(max-width:768px){
  .burger{display:flex}
  .wrap{position:relative}
  /* меню перекрывает контент (overlay), а не сдвигает страницу */
  .tabs{display:none;flex-direction:column;gap:2px;background:var(--card);border-radius:16px;
    padding:8px;margin:0;box-shadow:0 14px 34px rgba(0,0,0,.20)}
  .tabs.open{display:flex;position:fixed;left:12px;right:12px;top:56px;z-index:60;
    max-height:calc(100vh - 68px);overflow:auto}
  .tab-btn{width:100%;text-align:left;border-radius:12px}
  /* кассовые фильтры (Активные/Готовы/Все) — НЕ сворачивать в меню, оставить строкой */
  .cashier-tabs{display:flex !important;flex-direction:row;gap:8px;background:none;
    border-radius:0;padding:0;margin:0 0 12px;box-shadow:none;position:static;
    left:auto;right:auto;top:auto;max-height:none;overflow-x:auto}
  /* поля дат экспорта: строго друг под другом, отступ 8px, без наезда */
  .exp-row{flex-direction:column;align-items:stretch !important;gap:8px;width:100%;padding:0 8px}
  .exp-row > div{width:100%;min-width:0;max-width:100%}
  .exp-row #exp-btn{width:100%}
}
/* экспорт: поля не вылезают за карточку ни при какой ширине (вкл. нативный date-input iOS) */
.exp-row{max-width:100%}
.exp-row > div{min-width:0;max-width:100%}
.exp-row input{display:block;width:100% !important;max-width:100% !important;box-sizing:border-box;min-width:0 !important}
/* live-виджет на дашборде */
.live-strip{display:flex;gap:18px;flex-wrap:wrap;background:var(--card);border-radius:14px;
  padding:12px 16px;margin-bottom:10px;font-size:14px;color:var(--muted)}
.live-strip b{color:var(--ink);font-size:16px;font-weight:800}
/* «Это не мой заказ» (гость) */
.notmine-link{display:none;margin:14px auto 0;background:none;border:none;color:#8C8C8C;
  font-size:13px;text-decoration:underline;cursor:pointer;font-family:inherit;text-align:center;width:100%}
/* #7: звёзды заблокированы после оценки */
.stars.rated{pointer-events:none}
/* Баг 3: режим фокуса на оценке при переходе из Google Wallet (?from=wallet) */
body.rate-focus .order-label,
body.rate-focus .prog,
body.rate-focus .otimer,
body.rate-focus .notmine-link,
body.rate-focus .rate-sep,
body.rate-focus #review-links,
body.rate-focus #feedback-box{display:none !important}
body.rate-focus .order-num{font-size:34px;margin:4px 0 8px;color:var(--ink)}
body.rate-focus #ready-banner{padding:14px 16px}
body.rate-focus #ready-banner svg{width:30px;height:30px}
body.rate-focus #ready-banner h2{font-size:18px;margin-top:4px}
body.rate-focus #rating-block{margin-top:7vh}
body.rate-focus .rate-title{font-size:22px;margin-bottom:18px}
body.rate-focus .stars{gap:14px;margin-bottom:8px}
body.rate-focus .star svg{width:56px;height:56px}
body.rate-focus .rate-cap{font-size:16px;margin-top:14px}
/* плашка-CTA «привяжите отзовик» */
.review-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#FFF3E9;border:1px solid #FFD9B8}
.review-cta span{flex:1;min-width:160px;font-weight:600}
/* поле обратной связи гостя (оценка ниже 4 звёзд) */
.fb-textarea{width:100%;box-sizing:border-box;border:1.5px solid #D9D3C9;border-radius:12px;padding:12px;font-family:inherit;font-size:15px;resize:vertical;min-height:72px}
.fb-textarea:focus{outline:none;border-color:#FF6B00}
/* плашка «нет стикера» — дашборд */
.nosticker-banner{display:none;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#FFF3E9;border:1px solid #FFD9B8}
.nosticker-banner b{color:var(--ink)}
/* чек-лист первого запуска */
.chk{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.chk li{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.chk .chk-ic{flex:0 0 auto;width:22px;height:22px;border:2px solid #C9C2B8;border-radius:50%;position:relative}
.chk li.done .chk-ic{border-color:var(--green);background:var(--green)}
.chk li.done .chk-ic::after{content:"";position:absolute;left:6px;top:3px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.chk .chk-l{flex:1;font-weight:600;min-width:120px}
.chk li.done .chk-l{color:var(--muted);text-decoration:line-through}
.chk-btn{flex:0 0 auto}
/* плашка «нет стикера» — касса */
.cash-banner.nosticker{background:#FFF3E9;color:#8A3D00;border:1px solid #FFD9B8;padding:11px 14px;border-radius:12px}
.cash-banner.nosticker a{color:#FF6B00;font-weight:700;text-decoration:underline}
/* сводный дашборд владельца — список точек */
.summary-points{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.sp-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px;cursor:pointer;transition:border-color .15s,background .15s}
.sp-card:hover{border-color:#FF6B00;background:#FFF8F2}
.sp-name{font-weight:800;font-size:16px;margin-bottom:6px}
.sp-metrics{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.sp-metrics b{color:var(--ink)}
/* настройка лояльности (D-1) */
.loy-visits{display:flex;align-items:center;gap:10px}
.loy-visits input{width:120px}
.loy-visits-suf{color:var(--muted);font-weight:600}
.loy-quick{display:flex;gap:8px;margin-top:10px}
.loy-chip{border:1.5px solid #E2DDD5;background:#fff;border-radius:10px;padding:8px 18px;font-weight:700;cursor:pointer;font-size:15px}
.loy-chip:hover{border-color:#FF6B00}
.loy-types{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.loy-type{border:1.5px solid #E2DDD5;background:#fff;border-radius:12px;padding:10px 16px;font-weight:700;cursor:pointer;font-size:14px}
.loy-type.on{border-color:#FF6B00;background:#FFF3E9;color:#8A3D00}
/* прогресс-бар визитов (гость + превью) */
.visit-progress{margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px}
.vp-text{font-size:14px;color:#2D2D2D;line-height:1.4;margin-bottom:9px}
.vp-text b{color:#FF6B00}
.vp-dots{display:flex;gap:7px;flex-wrap:wrap}
.vp-dot{width:15px;height:15px;border-radius:50%;background:#EDE7DF}
.vp-dot.on{background:#FF6B00}
/* блоки превью «как увидит гость» в конфигураторе (D-3 баг #3) */
.loy-preview{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.loy-preview-h{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin:0 0 4px}
.loy-preview-sub{font-size:13px;color:var(--muted);margin:0 0 10px}
/* плашка награды кассиру (D-3) */
.cash-reward{background:#FFF3E9;border:1px solid #FFD9B8;border-radius:14px;padding:12px 14px;margin-bottom:8px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.cash-reward .cr-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cash-reward .cr-info b{color:#8A3D00;font-size:15px}
.cash-reward .cr-code{font-size:13px;color:#5A3A1A;font-weight:700;letter-spacing:.3px}
.cash-reward .cr-hint{font-size:12px;color:#8A6A4A;line-height:1.35}
.cash-reward .btn{flex:0 0 auto}
/* плашка награды у гостя (D-2) */
.reward-banner{margin-top:12px;background:#FFF3E9;border:1px solid #FFD9B8;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.45;color:#5A3A1A;text-align:left}
.reward-banner b{color:#8A3D00}
/* #8: иконка замка лояльности только в заблокированном состоянии */
#loyalty-card:not(.locked-card) .lock-ic{display:none}

/* ───── Мобильная шапка: компактнее, без наезда ───── */
@media(max-width:768px){
  header.bar{padding:13px 12px;gap:6px}
  .brand svg{height:21px}
  .point-switch{margin-right:2px;gap:5px}
  .point-switch #point-select{max-width:42vw}
  .point-switch #point-add{padding:8px 9px;font-size:12px}
  header.bar #logout{padding:8px 11px;font-size:12px}
}
