:root {
  color-scheme: dark;
  --bg: #171c1b;
  --panel: #202724;
  --line: #39413b;
  --text: #f2f5ef;
  --muted: #acb6ac;
  --lime: #d5f563;
  --ink: #1b2419;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
header {
  height: 76px;
  padding: 0 clamp(22px, 5vw, 88px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand,
.head-actions,
.dialog-head,
.section-head,
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 760;
  font-size: 2rem;
  letter-spacing: -0.07em;
  gap: 11px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand-area {
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
}
.head-actions {
  font-size: 0.9rem;
  color: var(--muted);
}
main {
  max-width: 1480px;
  margin: auto;
  padding: clamp(34px, 5vw, 78px) clamp(22px, 5vw, 88px);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 5.1vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 1.02;
  font-weight: 580;
}
.login-form h1 {
  font-size: clamp(3.75rem, 6.3vw, 6.4rem);
}
h2 {
  font-weight: 590;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}
.eyebrow,
.poster-tag {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 22px;
}
.accent {
  color: var(--lime);
}
.intro,
.field-note,
.empty p {
  color: var(--muted);
  line-height: 1.6;
}
.intro {
  margin: 23px 0 30px;
  max-width: 400px;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 140px);
  align-items: stretch;
}
.login-form {
  padding: clamp(16px, 3vw, 46px) 0;
  max-width: 430px;
  width: 100%;
  align-self: center;
}
.poster {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  background: var(--lime);
  color: var(--ink);
}
.poster canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: -1;
}
.poster-copy {
  padding: clamp(24px, 3.2vw, 52px);
}
.poster-copy h2 {
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  letter-spacing: -0.07em;
  line-height: 1;
  margin-top: 15px;
}
.poster-tag {
  font-size: 0.72rem;
}
.login-form form,
dialog form {
  display: grid;
  gap: 20px;
}
label {
  display: grid;
  gap: 8px;
  font-weight: 550;
  font-size: 0.92rem;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #202623;
  border: 1px solid #485148;
  border-radius: 9px;
  padding: 12px 14px;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
::placeholder {
  color: #939e94;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 11px 17px;
  border-radius: 9px;
  font-weight: 590;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.primary,
button[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.quiet {
  background: transparent;
}
.danger {
  background: #58312c;
  color: #ffe3dd;
  border-color: #774239;
}
.section-head,
.dialog-head {
  justify-content: space-between;
}
.section-head {
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.minor {
  margin: 42px 0 16px;
}
.cards,
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
}
.card,
.empty,
.tile,
.chat,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.card,
.empty {
  padding: 24px;
}
.card h2 {
  margin: 12px 0 26px;
  overflow-wrap: anywhere;
}
.meta,
.field-note {
  font-size: 0.87rem;
  color: var(--muted);
}
.empty h2 {
  margin-bottom: 8px;
}
.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 20px;
}
.tile {
  position: relative;
  min-height: 155px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #344137;
  color: var(--lime);
  font-size: 1.6rem;
}
.tile video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile .name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #171c1be8;
  color: white;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.82rem;
}
.controls {
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.chat {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 330px;
  max-height: 72vh;
}
.chat ol {
  flex: 1;
  list-style: none;
  padding: 0;
  overflow: auto;
}
.chat li {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0 0 14px;
}
.chat li strong {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.chat form {
  display: flex;
  gap: 6px;
}
.chat input {
  min-width: 0;
}
.screen-frame {
  position: relative;
  margin-bottom: 16px;
  background: #0a0e0d;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.screen-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
}
.point {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff382a;
  box-shadow:
    0 0 0 5px #ff382a55,
    0 0 14px #fff8;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.screen-name {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #171c1bdd;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.8rem;
  line-height: 1.3;
  pointer-events: none;
}
.table-wrap {
  overflow: auto;
  margin-top: 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.85rem;
  color: var(--muted);
}
td button {
  margin: 2px 5px 2px 0;
  font-size: 0.85rem;
}
dialog {
  width: min(490px, 94vw);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
dialog::backdrop {
  background: #090e0cc9;
}
#status:not(:empty) {
  margin-top: 18px;
  color: #f0cb9d;
}
p[role="alert"] {
  color: #ffbbb0;
}
p[role="alert"]:empty {
  display: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .login-layout {
    gap: 26px;
    grid-template-columns: 1fr 0.8fr;
  }
  .poster {
    min-height: 380px;
  }
  .call-layout {
    grid-template-columns: 1fr;
  }
  .chat {
    max-height: 420px;
  }
}
@media (max-width: 650px) {
  header {
    height: 62px;
  }
  .head-actions span {
    display: none;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-form {
    max-width: 100%;
  }
  .poster {
    min-height: 205px;
  }
  .poster-copy h2 {
    font-size: 2.4rem;
  }
  .login-form h1 {
    font-size: 3.6rem;
  }
  .section-head {
    align-items: flex-start;
  }
  .brand-area {
    padding-left: 12px;
  }
  .login-form form {
    gap: 14px;
  }
  .dialog-head {
    align-items: flex-start;
  }
  .section-head .eyebrow {
    margin-bottom: 10px;
  }
}
