/* Инструмент ведущего: простая рабочая страница, закрыта от поисковиков */
.hostapp { padding: 1.2rem 0 4rem; width: min(100% - 2rem, 64rem); max-width: 100%; align-self: center; flex: 0 0 auto; }
.hostapp h1 { font-size: var(--fs-h2); margin-bottom: .3em; }
.hostapp h2 { font-size: var(--fs-h3); margin: 1.4em 0 .5em; }
.host-top { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.host-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.host-tabs button, .hostapp button, .hostapp .btn { font: 600 var(--fs-m)/1.2 var(--sans); }
.tab { padding: .6rem 1rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; min-height: 44px; }
.tab[aria-current="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.tab:hover:not([aria-current="true"]) { background: var(--paper-3); }
.hbtn { padding: .65rem 1.1rem; border: 1px solid var(--wine); background: var(--wine); color: #fff; cursor: pointer; min-height: 44px; }
.hbtn:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.hbtn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.hbtn.ghost:hover { background: var(--paper-3); }
.hbtn.small { padding: .35rem .7rem; min-height: 36px; font-size: var(--fs-s); }
.hbtn:disabled { opacity: .55; cursor: not-allowed; }
.hform { display: grid; gap: .8rem; max-width: 40rem; }
.hgrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.hostapp label { display: grid; gap: .25rem; font-size: var(--fs-s); color: var(--ink-soft); }
.hostapp label.check { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-size: var(--fs-m); }
.hostapp input[type="text"], .hostapp input[type="password"], .hostapp input[type="date"], .hostapp select, .hostapp textarea { font: 400 var(--fs-m)/1.3 var(--sans); padding: .6rem .7rem; border: 1px solid var(--ink-soft); background: #fffdf7; color: var(--ink); min-height: 44px; width: 100%; }
.hostapp input[type="checkbox"], .hostapp input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--wine); }
.errs { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--wine); background: #f7e6e3; color: var(--wine-deep); }
.errs ul { margin: 0; padding-left: 1.2rem; }
.warns { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--rule); background: var(--paper-2); }
.okmsg { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #1d5a2e; background: #e4efdc; color: #14401f; }
.seat { border: 1px solid var(--rule); background: var(--paper-2); padding: .7rem .8rem; margin: 0 0 .6rem; }
.seat-main { display: grid; gap: .6rem; grid-template-columns: 2rem minmax(0, 1fr) minmax(7rem, 9rem) 4.5rem; align-items: end; }
.seat-no { font: 700 var(--fs-l)/1 var(--serif); color: var(--wine); padding-bottom: .8rem; }
.seat .pts { font: 700 var(--fs-l)/1 var(--serif); text-align: right; padding-bottom: .7rem; }
.seat details { margin-top: .5rem; }
.seat summary { cursor: pointer; font-size: var(--fs-s); color: var(--ink-soft); min-height: 32px; display: flex; align-items: center; }
.seat-extra { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-top: .5rem; }
.seat .parts { font-size: var(--fs-s); color: var(--ink-soft); margin: .3rem 0 0; }
.minirow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
.tbl.host-tbl table { min-width: 0; }
.gcard { border: 1px solid var(--rule); background: var(--paper-2); padding: .8rem 1rem; margin: 0 0 .7rem; }
.gcard.voided { opacity: .65; }
.gcard h3 { margin: 0 0 .3rem; font-size: var(--fs-l); }
.gcard-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.avs { display: flex; flex-wrap: wrap; gap: .5rem; }
.avs label { display: flex; align-items: center; gap: .3rem; color: var(--ink); }
.av { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font: 700 1.1rem/1 var(--serif); }
.av0 { background: #8a1224; color: #f3ece1; } .av1 { background: #0a0708; color: #e0c07a; } .av2 { background: #c9a04a; color: #0a0708; }
.av3 { background: #4a0a14; color: #f3ece1; } .av4 { background: #2f4a3a; color: #f3ece1; } .av5 { background: #3a3552; color: #f3ece1; }
.plrow { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.plrow .grow { flex: 1 1 12rem; min-width: 0; }
@media (max-width: 36rem) { .seat-main { grid-template-columns: 1.6rem minmax(0, 1fr); } .seat-main .role-lbl { grid-column: 2; grid-row: 2; } .seat .pts { grid-column: 2; grid-row: 3; text-align: left; padding: 0; } .seat .pts:empty { display: none; } }
.hostapp input.pick { font-size: var(--fs-m); }
.hostapp input.pick.ok { border-color: #1d5a2e; box-shadow: inset 4px 0 0 #1d5a2e; }
.hostapp input.pick.bad { border-color: var(--wine); box-shadow: inset 4px 0 0 var(--wine); }
.hbtn.danger { border-color: var(--wine); color: var(--wine-deep); }
.statbox { border: 1px solid var(--rule); background: var(--paper-2); padding: .7rem 1rem; }
.statbox p { margin: .2rem 0; }
.photobox { display: grid; gap: .6rem; justify-items: start; }
.phimg { border-radius: 50%; object-fit: cover; }
.plrow img.av { object-fit: cover; }
[hidden] { display: none !important; }
.combo { position: relative; min-width: 0; }
.combo-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin: 2px 0 0; padding: 0; list-style: none; max-height: 13rem; overflow-y: auto; background: #fff; border: 1px solid var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.combo-list li { display: flex; flex-direction: column; gap: .1rem; min-height: 2.75rem; justify-content: center; padding: .5rem .8rem; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: var(--fs-m); }
.combo-list li:last-child { border-bottom: 0; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--paper-2); }
.combo-list li.none { cursor: default; color: var(--ink-soft); font-size: var(--fs-s); }
.combo-list .sub { font-size: var(--fs-s); color: var(--ink-soft); }
.pickstat { margin: .35rem 0 0 2.6rem; font-size: var(--fs-s); min-height: 0; }
.pickstat:empty { display: none; }
.pickstat.ok { color: #1d5a2e; font-weight: 600; }
.pickstat.bad { color: var(--wine); font-weight: 600; }
@media (max-width: 36rem) { .pickstat { margin-left: 2.1rem; } }
.hostapp .combo input.pick { width: 100%; box-sizing: border-box; }
.hostapp label.winner { display: block; margin-bottom: 1.1rem; }
.hostapp .res-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.hostapp .res-head .pts { margin-left: auto; font-weight: 700; }
.hostapp .seat.res .seat-extra { display: grid; gap: .8rem; }
.hostapp a.hbtn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.hostapp a.hbtn:not(.ghost) { color: #fff; }
.hostapp a.hbtn.ghost { color: var(--ink); }
.hostapp h1 + .minirow { margin-top: 1rem; }
@media (max-width: 36rem) {
  .tbl.host-tbl table { width: 100%; font-size: .85rem; table-layout: auto; }
  .tbl.host-tbl th, .tbl.host-tbl td { padding: .5rem .25rem; }
  .tbl.host-tbl th { font-size: .8rem; white-space: nowrap; }
  .tbl.host-tbl:has(th:nth-child(6)) th:last-child, .tbl.host-tbl:has(th:nth-child(6)) td:last-child { display: none; }
}

/* календарь администратора */
.cal-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .8rem 0; }
.cal-title { min-width: 9.5rem; text-align: center; font: 600 var(--fs-l)/1.2 var(--serif); }
.hcal { width: 100%; max-width: 34rem; border-collapse: collapse; table-layout: fixed; background: var(--paper-2); border: 1px solid var(--rule); }
.hcal th, .hcal td { border: 1px solid var(--rule); padding: 0; text-align: center; font-size: var(--fs-s); font-weight: 400; }
.hcal th { padding: .4rem 0; color: var(--ink-soft); }
.daybtn { width: 100%; min-height: 2.9rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-weight: 400; position: relative; }
.daybtn:hover { background: var(--paper-3); }
.daybtn.has-ev { background: var(--wine); color: #fff; font-weight: 600; }
.daybtn.has-bd { background: var(--gold); color: var(--ink); font-weight: 600; }
.daybtn.has-bd.has-ev { background: var(--gold); color: var(--ink); box-shadow: inset 0 -.55rem 0 var(--wine); }
.daybtn.is-today { box-shadow: inset 0 0 0 3px var(--ink); }
.daybtn.is-sel { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--paper-2); }
.daybtn:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0; font-size: var(--fs-s); color: var(--ink-soft); }
.cal-legend .key { width: 1rem; height: 1rem; display: inline-block; margin-left: .6rem; }
.cal-legend .key-bd { background: var(--gold); margin-left: 0; }
.cal-legend .key-ev { background: var(--wine); }
.cal-detail h4 { margin: .8rem 0 .2rem; }
.cal-detail ul { margin: 0; padding-left: 1.2rem; }

.evph-grid { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.evph-grid li { display: grid; gap: .4rem; }
.evph-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #222; }
