/* «Пульт владельца» (owner-dashboard.js): a window over the cinema and the /owner page on a phone. Mobile first:
   one column of cards; two from 760 px. Colours come from style.css's variables when it is loaded (the cinema)
   and from the fallbacks here on /owner. */
.od-root { --od-bg: var(--bg, #0c0e12); --od-panel: var(--panel, #14171e); --od-panel-2: var(--panel-2, #1a1e27); --od-line: var(--line, #262b36);
  --od-text: var(--text, #e8eaee); --od-muted: var(--muted, #8a91a0); --od-accent: var(--accent, #e5a00d); --od-ok: var(--ok, #3ecf7a); --od-bad: var(--bad, #ff6b6b); --od-warn: #f0b429;
  color: var(--od-text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.owner-dash-modal { padding: 0; align-items: stretch; z-index: 2800; }
.owner-dash-modal .od-panel { width: 100%; max-width: 1040px; margin: 0 auto; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--od-panel-2), var(--od-bg)); border-left: 1px solid var(--od-line); border-right: 1px solid var(--od-line); }
.od-page { margin: 0; min-height: 100vh; background: radial-gradient(900px 500px at 70% -10%, #171b24 0%, #0c0e12 60%); }
.od-page .od-panel { max-width: 1040px; margin: 0 auto; }
.od-panel { padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.od-head { position: sticky; top: -12px; z-index: 2; margin: -12px -12px 10px; padding: calc(12px + env(safe-area-inset-top)) 12px 10px;
  background: rgba(12, 14, 18, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--od-line); }
.od-head-row { display: flex; align-items: center; gap: 8px; }
.od-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; min-width: 0; flex: 1; }
.od-title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-sub { margin-top: 2px; color: var(--od-muted); font-size: 12.5px; }
.od-sub b { color: var(--od-text); font-weight: 600; }
.od-btn { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--od-line); background: var(--od-panel); color: var(--od-text);
  font: inherit; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.od-btn:hover { border-color: var(--od-muted); }
.od-btn:focus-visible { outline: 2px solid var(--od-accent); outline-offset: 2px; }
.od-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .od-btn .od-btn-t { display: none; } }
.od-btn.od-main { background: var(--od-accent); border-color: var(--od-accent); color: #1a1205; font-weight: 700; }
.od-btn[aria-busy="true"] svg { animation: odSpin .8s linear infinite; }
@keyframes odSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .od-btn[aria-busy="true"] svg { animation: none; } }
.od-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--od-muted); }
.od-dot.ok { background: var(--od-ok); }
.od-dot.warn { background: var(--od-warn); }
.od-dot.down { background: var(--od-bad); }
.od-banner { margin: 0 0 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(240, 180, 41, .4); background: rgba(240, 180, 41, .1); font-size: 13.5px; }
.od-banner.bad { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .1); }
.od-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .od-grid { grid-template-columns: 1fr 1fr; } .od-card.od-wide { grid-column: 1 / -1; } }
.od-card { background: var(--od-panel); border: 1px solid var(--od-line); border-radius: 14px; padding: 12px; min-width: 0; }
.od-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); font-weight: 600; }
.od-card h3 .od-count { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--od-text); font-weight: 500; }
.od-empty { color: var(--od-muted); font-size: 13.5px; }
.od-list { list-style: none; margin: 0; padding: 0; }
.od-list > li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .05); min-width: 0; }
.od-list > li:first-child { border-top: none; padding-top: 0; }
.od-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.od-line1 .od-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-line1 .od-right { margin-left: auto; flex-shrink: 0; color: var(--od-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.od-meta { color: var(--od-muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.od-meta b { color: var(--od-text); font-weight: 500; }
.od-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.od-tag { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--od-panel-2); border: 1px solid var(--od-line); color: var(--od-text); white-space: nowrap; }
.od-tag.ok { border-color: rgba(62, 207, 122, .45); color: var(--od-ok); }
.od-tag.warn { border-color: rgba(240, 180, 41, .5); color: var(--od-warn); }
.od-tag.bad { border-color: rgba(255, 107, 107, .5); color: var(--od-bad); }
.od-bar { height: 4px; border-radius: 2px; background: var(--od-line); margin-top: 6px; overflow: hidden; }
.od-bar i { display: block; height: 100%; background: var(--od-accent); border-radius: 2px; }
.od-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 420px) { .od-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.od-stat { background: var(--od-panel-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.od-stat .od-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-stat .od-l { color: var(--od-muted); font-size: 11.5px; }
.od-mods { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 420px) { .od-mods { grid-template-columns: 1fr 1fr; } }
.od-mod { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--od-panel-2); min-width: 0; }
.od-mod .od-mod-t { min-width: 0; }
.od-mod .od-mod-t div:first-child { font-weight: 600; font-size: 13.5px; }
.od-mod .od-mod-t div:last-child { color: var(--od-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-err { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.od-err .od-lvl { font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-right: 6px; }
.od-err .od-lvl.error { color: var(--od-bad); }
.od-err .od-lvl.warn { color: var(--od-warn); }
.od-err .od-when { color: var(--od-muted); font-family: system-ui, sans-serif; font-size: 11.5px; margin-right: 6px; }
.od-phone[hidden] { display: none; }
.od-phone { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 0 0 10px; padding: 12px; border-radius: 14px; background: var(--od-panel); border: 1px solid var(--od-line); }
.od-phone img { width: 132px; height: 132px; border-radius: 10px; background: #fff; display: block; }
.od-phone .od-phone-t { min-width: 0; display: grid; gap: 8px; }
.od-phone input { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--od-line); background: var(--od-bg); color: var(--od-text); font: inherit; font-size: 12.5px; }
.od-phone .od-phone-b { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 420px) { .od-phone { grid-template-columns: 1fr; justify-items: center; } .od-phone .od-phone-t { width: 100%; } }
.od-foot { margin-top: 12px; color: var(--od-muted); font-size: 12px; text-align: center; }
.od-root .od-gate { max-width: 420px; margin: 18vh auto 0; padding: 20px; text-align: center; }
.od-root .od-gate h1 { font-size: 20px; margin: 0 0 8px; }
.od-root .od-gate p { color: var(--od-muted); margin: 0 0 6px; }
/* the way in, in ⚙️ → «Владелец сервиса»: a secondary button (the window's one filled button stays «Сохранить») */
.od-open { width: 100%; margin-top: 6px; min-height: 44px; border-radius: 11px; border: 1px solid var(--line, #262b36); background: var(--panel, #14171e); color: var(--text, #e8eaee); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.od-open:hover { border-color: var(--muted, #8a91a0); }
/* «Приветствие новичков» in ⚙️ (welcome-admin.js) */
.welcome-admin textarea { width: 100%; min-height: 92px; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--line, #262b36); border-radius: 10px; background: var(--panel, #14171e);
  color: var(--text, #e8eaee); font: inherit; font-size: 13.5px; line-height: 1.4; resize: vertical; }
.welcome-admin textarea:focus { border-color: var(--accent, #e5a00d); outline: none; }
.welcome-admin .welcome-count { color: var(--muted, #8a91a0); font-size: 12px; text-align: right; margin-top: 2px; }
.welcome-admin .welcome-preview { width: 100%; margin-top: 8px; min-height: 40px; border-radius: 11px; border: 1px solid var(--line, #262b36); background: var(--panel, #14171e); color: var(--text, #e8eaee); font: inherit; font-size: 13.5px; cursor: pointer; }
.welcome-admin .welcome-preview:hover { border-color: var(--muted, #8a91a0); }
/* «Всем в зале по N ★» (0.39.1): on each room card — a number, the button, the inline confirm, what the server did */
.od-grant { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.od-grant-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.od-root .od-grant-n { width: 96px; min-height: 44px; box-sizing: border-box; padding: 0 10px; border-radius: 11px; border: 1px solid var(--od-line);
  background: var(--od-bg); color: var(--od-text); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; } /* 16 px: no zoom on an iPhone */
.od-root .od-grant-n:focus { border-color: var(--od-accent); outline: none; }
.od-root .od-grant-n:disabled { opacity: .6; }
.od-grant .od-btn:disabled { opacity: .45; cursor: default; }
.od-grant-hint { margin-top: 4px; }
.od-grant-ask { margin-top: 8px; padding: 10px; border-radius: 11px; background: var(--od-panel-2); border: 1px solid var(--od-line); }
.od-grant-q { font-weight: 600; overflow-wrap: anywhere; }
.od-grant-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.od-grant-res { margin-top: 6px; font-size: 13px; color: var(--od-muted); overflow-wrap: anywhere; }
.od-grant-res.ok { color: var(--od-ok); }
.od-grant-res.err { color: var(--od-bad); }
@media (max-width: 480px) { .od-grant-go, .od-grant-b .od-btn { flex: 1 1 auto; } }
.od-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* n104 (0.66.0) «Выдать»: ★ and cases to any member of a club */
#od-give { margin: 0 0 10px; } /* above the cards: the owner's one action on any member */
#od-give[hidden] { display: none; }
.od-give-in { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.od-give h3 { margin: 0; }
.od-give-sum { list-style: none; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.od-give-sum::-webkit-details-marker { display: none; }
.od-give-sum h3::after { content: ' ▾'; color: var(--od-muted); }
.od-give[open] .od-give-sum h3::after { content: ' ▴'; }
.od-give-sum:focus-visible { outline: 2px solid var(--od-accent); outline-offset: 2px; border-radius: 8px; }
.od-give-pick { position: relative; }
.od-give-q, .od-give-note, .od-give-f input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--od-line);
  background: var(--od-bg); color: var(--od-text); font: inherit; }
.od-give-q:focus-visible, .od-give-note:focus-visible, .od-give-f input:focus-visible { outline: 2px solid var(--od-accent); outline-offset: 1px; }
.od-give-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow: auto; border-radius: 11px; }
.od-give-list:empty { display: none; }
.od-give-list .od-empty { padding: 10px 12px; }
.od-give-one { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--od-line); background: var(--od-panel-2);
  color: var(--od-text); font: inherit; text-align: left; cursor: pointer; }
.od-give-one:hover, .od-give-one:focus-visible { background: rgba(229, 160, 13, .12); outline: none; }
.od-give-nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-give-one .od-meta { margin-left: auto; white-space: nowrap; }
.od-give-av { flex: none; display: inline-flex; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--od-line); }
.od-give-av img { width: 100%; height: 100%; object-fit: cover; }
.od-give-who { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 10px; border-radius: 11px; border: 1px solid var(--od-accent); background: rgba(229, 160, 13, .08); }
.od-give-who[hidden] { display: none; }
.od-give-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-give-who .od-btn { margin-left: auto; }
.od-give-row { display: flex; gap: 10px; }
.od-give-f { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--od-muted); min-width: 0; }
.od-give-res.ok { color: var(--od-ok); }
.od-give-res.err { color: var(--od-bad); }
.od-give-res:empty { display: none; }
.od-give-log summary { cursor: pointer; min-height: 36px; line-height: 36px; color: var(--od-muted); }
@media (max-width: 420px) { .od-give-one .od-meta { display: none; } .od-give-who .od-meta { display: none; } }
