/* NCRP Voice — страница проверки голосового сервера. Спокойный тёмный стиль сервера, срезанные углы. */
@font-face { font-family: "VT Exo"; font-weight: 100 900; font-display: swap; src: url(./modvoice/fonts/exo2-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VT Exo"; font-weight: 100 900; font-display: swap; src: url(./modvoice/fonts/exo2-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "VT Russo"; font-weight: 400; font-display: swap; src: url(./modvoice/fonts/russo-one-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VT Russo"; font-weight: 400; font-display: swap; src: url(./modvoice/fonts/russo-one-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "VT Mono"; font-weight: 100 900; font-display: swap; src: url(./modvoice/fonts/geist-mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VT Mono"; font-weight: 100 900; font-display: swap; src: url(./modvoice/fonts/geist-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --cyan: #1fd8e6;
  --magenta: #c75fa8;
  --amber: #d8b46a;
  --text: #dff9ff;
  --muted: #7f97b8;
  --line: rgba(31, 216, 230, .2);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(31, 216, 230, .06), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(199, 95, 168, .06), transparent 70%),
    #060b16;
  color: var(--text);
  font-family: "VT Exo", "Exo 2", "Segoe UI", sans-serif;
  font-size: 15px;
}
.vt {
  --cut: 16px;
  width: min(520px, 100%);
  padding: 26px 28px 24px;
  background: rgba(8, 15, 30, .92);
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.vt__head { margin-bottom: 20px; }
.vt__tag { font-family: "VT Mono", monospace; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.vt__title { margin: 6px 0 0; font-family: "VT Russo", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .05em; text-transform: uppercase; }

.vt__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vt__check { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; min-height: 32px; padding: 4px 10px 4px 8px; background: rgba(31, 216, 230, .03); }
.vt__mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(127, 151, 184, .35); font: 700 13px/1 "VT Mono", monospace; font-style: normal; }
.vt__value { font-family: "VT Mono", monospace; font-size: 12px; color: #9fc4d8; text-align: right; }
.vt__check[data-state="ok"] .vt__mark { color: var(--cyan); border-color: rgba(31, 216, 230, .55); background: rgba(31, 216, 230, .1); }
.vt__check[data-state="bad"] .vt__mark { color: var(--magenta); border-color: rgba(199, 95, 168, .6); background: rgba(199, 95, 168, .12); }
.vt__check[data-state="bad"] .vt__value { color: #e0a3cd; }
.vt__check[data-state="warn"] .vt__mark { color: var(--amber); border-color: rgba(216, 180, 106, .55); background: rgba(216, 180, 106, .1); }
.vt__check[data-state="warn"] .vt__value { color: var(--amber); }
.vt__check[data-state="wait"] .vt__label { color: var(--muted); }

.vt__call { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.vt__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vt__btn {
  --c: 8px;
  padding: 10px 20px;
  border: 0;
  background: var(--cyan);
  color: #04202a;
  font: 400 14px "VT Russo", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.vt__btn:hover { background: #57e4ee; }
.vt__btn:disabled { opacity: .5; cursor: default; }
.vt__btn--quiet { background: rgba(31, 216, 230, .12); color: var(--cyan); }
.vt__btn--quiet:hover { background: rgba(31, 216, 230, .2); }
.vt__state { font-family: "VT Mono", monospace; font-size: 12px; color: #9fc4d8; }
.vt__state[data-kind="bad"] { color: #e0a3cd; }
.vt__meter { position: relative; height: 8px; margin-top: 14px; background: rgba(31, 216, 230, .08); overflow: hidden; }
.vt__meter i { position: absolute; inset: 0; background: var(--cyan); transform-origin: left center; transform: scaleX(0); transition: transform .1s linear; }
.vt__people { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vt__person { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(31, 216, 230, .03); border-left: 2px solid transparent; }
.vt__person[data-speaking="1"] { border-left-color: var(--cyan); background: rgba(31, 216, 230, .08); }
.vt__person span { color: var(--muted); font-size: 13px; margin-left: auto; }
.vt__note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: #a9c0d6; }
.vt__note:empty { display: none; }
[hidden] { display: none !important; }
