/* VOLT — кабинет владельца */
.adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100svh; }
.side { position: sticky; top: 0; height: 100svh; padding: 22px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--ink); }
.side .vword { width: 104px; margin: 0 10px 4px; }
.side .role { margin: 0 10px 22px; font: 500 12px/1.3 var(--soft); color: var(--mute); }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: #c4c9cf; transition: background .2s, color .2s; }
.side a:hover { background: var(--night2); color: var(--cream); }
.side a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.side a .ico { width: 19px; height: 19px; }
.side .sp { flex: 1; }
.side .muted { font-size: 13px; color: var(--mute); }
.main { padding: 28px clamp(16px, 3.4vw, 48px) 80px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head h1 { margin: 0; font: 800 clamp(26px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -.02em; }
.head p { margin: 6px 0 0; color: var(--mute); font-size: 14.5px; }
.head .btn { min-height: 46px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--night2); border-radius: 18px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { display: block; color: var(--mute); font-size: 13px; font-weight: 600; }
.kpi b { display: block; font: 800 34px/1.1 var(--sans); margin-top: 6px; letter-spacing: -.02em; }
.kpi small { color: var(--mute); font-size: 12.5px; }
.kpi.zap { background: var(--zap); color: var(--ink); box-shadow: none; }
.kpi.zap span, .kpi.zap small { color: #3e3a1c; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.box { background: var(--night2); border-radius: 18px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.box h2 { margin: 0 0 14px; font: 700 16px/1.2 var(--sans); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.box h2 small { font-weight: 500; color: var(--mute); font-size: 12.5px; }
.chart { width: 100%; height: 200px; display: block; }
.chart .b { fill: var(--gold); opacity: .55; transition: opacity .2s; }
.chart .b.t { fill: var(--zap); opacity: 1; }
.chart .b:hover { opacity: 1; }
.chart .ax { fill: var(--mute); font: 500 10px var(--sans); }
.chart .gl { stroke: var(--line); }
.chart .nl { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linejoin: round; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.list li:last-child { border-bottom: 0; }
.list small { color: var(--mute); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: var(--night3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pips i.on { background: var(--zap); box-shadow: none; }

/* акции */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pitem { background: var(--night2); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.pitem .promo { min-height: 190px; border-radius: 0; padding: 20px; }
.pitem .promo h3 { font-size: 22px; }
.pitem .promo p, .pitem .promo .tag, .pitem .promo .till { display: none; }
.pitem .promo .badge { top: 16px; left: 20px; }
.pitem .meta { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--night3); color: var(--mute); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.live { color: var(--ok); background: rgba(95, 208, 138, .12); }
.st.plan { color: var(--gold2); background: rgba(207, 174, 107, .14); }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ed .pv { position: sticky; top: 20px; }
.ed .pv .promo { min-height: 380px; }
.ed .pv .lbl { font-size: 12.5px; color: var(--mute); font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.ed .pv .mobile { width: 300px; margin-top: 16px; }
.ed .pv .mobile .promo { min-height: 300px; }
.ed .pv .mobile .promo .tag { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw { display: flex; gap: 10px; flex-wrap: wrap; }
.sw button { width: 46px; height: 46px; border-radius: 14px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.sw button[aria-pressed="true"] { border-color: var(--cream); transform: scale(1.06); }
.sw .yellow { background: var(--zap); } .sw .gold { background: linear-gradient(150deg, #e6cf9c, #b48f4c); } .sw .kraft { background: var(--kraft); } .sw .night { background: var(--night3); }
.gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gal button { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--night3); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--mute); }
.gal button img { width: 100%; height: 100%; object-fit: cover; }
.gal button[aria-pressed="true"] { border-color: var(--zap); }
.chk { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--night); border: 1.5px solid var(--line); cursor: pointer; margin-bottom: 10px; font-size: 14.5px; }
.chk input { width: 20px; height: 20px; accent-color: var(--zap); margin: 1px 0 0; flex: none; }
.chk small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.tpl { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tpl button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed rgba(243, 238, 228, .25); background: none; font-size: 13px; font-weight: 600; color: #cfd3d8; }
.tpl button:hover { border-color: var(--zap); color: var(--zap); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn-del { color: var(--bad); border-color: rgba(255, 107, 94, .35); }

/* гости */
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tools input, .tools select { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--night2); padding: 0 14px; font-size: 14.5px; }
.tools input { flex: 1; min-width: 200px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 0 12px 10px; }
.tbl td { padding: 12px; border-top: 1px solid var(--line); }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: var(--night2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl b { font-weight: 700; }
.chip { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(245, 210, 28, .14); color: var(--zap); font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.drawer { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: end; background: rgba(5, 7, 10, .55); animation: fade .25s; }
.drawer > div { width: min(460px, 100%); height: 100%; overflow: auto; background: var(--night); padding: 22px; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); animation: slide .35s var(--ease); }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer .x { float: right; border: 0; background: var(--night2); width: 40px; height: 40px; border-radius: 50%; font-size: 20px; }
.adj { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.adj .btn { min-height: 46px; padding: 0 10px; }

/* меню */
.mcat { margin-bottom: 22px; }
.mcat h3 { margin: 0 0 8px; font: 700 15px/1 var(--sans); color: var(--gold); }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 90px 90px 58px 82px 36px; gap: 8px; align-items: center; padding: 6px 0; }
.mrow input[type=text], .mrow input[type=number], .mrow select { width: 100%; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--night2); padding: 0 10px; font-size: 14px; }
.mrow input:focus { outline: none; border-color: var(--zap); }
.mrow label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.mrow label input { accent-color: var(--zap); width: 17px; height: 17px; }
.mrow .del { border: 0; background: none; color: var(--mute); width: 36px; height: 36px; border-radius: 10px; }
.mrow .del:hover { color: var(--bad); background: rgba(255, 107, 94, .1); }
.mrow.off input[type=text] { opacity: .5; }
.mhead { color: var(--mute); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.saved { color: var(--ok); font-size: 13px; font-weight: 600; }

/* сотрудники */
.srow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.srow b { font-size: 15.5px; }
.srow small { display: block; color: var(--mute); font-size: 13px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols, .ed { grid-template-columns: 1fr; } .ed .pv { position: static; } }
@media (max-width: 820px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .vword, .side .role, .side .sp, .side .muted { display: none; }
  .side a { flex: none; padding: 9px 12px; font-size: 13.5px; }
  .main { padding-top: 20px; }
  .tbl .hide { display: none; }
  .mrow { grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mrow .wide2 { grid-column: 1 / -1; }
  .mhead { display: none; }
  .ed .pv .mobile { width: 100%; }
  .gal { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) { .kpi b { font-size: 28px; } .row2 { grid-template-columns: 1fr; } }
.adm { background: linear-gradient(90deg, var(--ink) 240px, transparent 240px); }
.ed .pv .mobile .promo h3 { font-size: 27px; }
.ed .pv .mobile .promo { padding: 22px; }
@media (max-width: 820px) { .adm { background: none; } }
