
:root {
  color-scheme: dark;
  --ink: #f8f4ff;
  --muted: #b9aec7;
  --purple: #9f42ff;
  --purple-soft: #c28aff;
  --gold: #f2c45f;
  --gold-light: #ffe7a6;
  --panel: rgba(17, 10, 27, .86);
  --panel-soft: rgba(25, 14, 39, .72);
  --line: rgba(194, 138, 255, .22);
  --danger: #ff8f9b;
  --success: #9de6b4;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #030205; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(115, 31, 201, .2), transparent 33rem),
    radial-gradient(circle at 92% 3%, rgba(242, 196, 95, .11), transparent 28rem),
    linear-gradient(160deg, #030205 0%, #08040d 55%, #030205 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a.button { touch-action: manipulation; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; position: relative; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(194, 138, 255, .14);
  background: rgba(3, 2, 5, .82);
  backdrop-filter: blur(18px);
}
.topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 45px; height: 45px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(159,66,255,.35)); }
.brand-copy strong { display: block; letter-spacing: .13em; font-size: .95rem; }
.brand-copy span { display: block; color: var(--gold); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
}
.nav a:hover, .nav a:focus-visible, .nav button:hover, .nav button:focus-visible, .nav .active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(159,66,255,.09);
}
.nav form { margin: 0; }
.main { padding: 46px 0 72px; }
.eyebrow { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; max-width: 780px; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { line-height: 1.65; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 720px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 28px; align-items: end; margin-bottom: 30px; }
.hero-mark { justify-self: end; width: min(270px, 75%); opacity: .28; filter: drop-shadow(0 0 38px rgba(159,66,255,.25)); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-12 { grid-column: span 12; }
.span-3 { grid-column: span 3; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--panel), rgba(8,5,13,.92));
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel.soft { background: var(--panel-soft); box-shadow: none; }
.panel > :last-child { margin-bottom: 0; }
.stat { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.stat strong { font-size: 2.6rem; color: var(--gold-light); }
.stat span { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.button, button.primary, button.secondary, button.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary, button.primary {
  color: #170b22;
  background: linear-gradient(110deg, var(--purple-soft), var(--gold-light));
  box-shadow: 0 10px 30px rgba(159,66,255,.18);
}
.button.secondary, button.secondary { color: var(--ink); border-color: var(--line); background: rgba(159,66,255,.09); }
.button.danger, button.danger { color: #1d080b; background: var(--danger); }
.button:hover, button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,231,166,.72);
  outline-offset: 3px;
}
.notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(157,230,180,.34);
  background: rgba(31,107,62,.18);
  color: #c8f5d5;
}
.notice.warning { border-color: rgba(242,196,95,.35); background: rgba(113,78,8,.19); color: var(--gold-light); }
.notice.error { border-color: rgba(255,143,155,.35); background: rgba(120,25,37,.2); color: #ffd5da; }
.preview-banner { background: #f2c45f; color: #211100; text-align: center; padding: 8px 14px; font-weight: 850; font-size: .82rem; }
.release-card { min-height: 255px; display: flex; flex-direction: column; }
.release-card .form-actions { margin-top: auto; padding-top: 18px; }
.release-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.release-heading h2 { margin: 0; }
.platform-mark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--gold-light);
  border: 1px solid rgba(242,196,95,.28);
  background: rgba(242,196,95,.08);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
}
.button.disabled {
  color: #84798f;
  border-color: rgba(185,174,199,.15);
  background: rgba(185,174,199,.05);
  cursor: not-allowed;
}
.button.disabled:hover { transform: none; }
.consent-list { margin: 18px 0 24px; padding-left: 21px; color: var(--muted); }
.consent-list li { margin: 10px 0; line-height: 1.55; }
.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(159,66,255,.07);
  color: var(--ink);
}
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--purple); }
.check-row label { margin: 0; color: var(--ink); line-height: 1.55; cursor: pointer; opacity: 1; }
.check-row label strong { display: block; color: var(--gold-light); font-size: 1rem; margin-bottom: 3px; }
.check-row label span { display: block; color: #eee7f7; }
label { display: block; margin: 15px 0 7px; color: #ddd4e8; font-weight: 700; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(4,2,7,.8);
  border: 1px solid rgba(194,138,255,.28);
  border-radius: 12px;
  padding: 12px 13px;
}
textarea { min-height: 118px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.device-card { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(7,4,12,.58); }
.device-card h3 { margin-bottom: 5px; }
.device-card p { color: var(--muted); margin: 0; }
.device-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip, .status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(159,66,255,.12);
  border: 1px solid rgba(194,138,255,.2);
  color: #e1ccf9;
  font-size: .76rem;
  font-weight: 750;
}
.status.new { color: #e7d4ff; }
.status.confirmed { color: #c8e7ff; border-color: rgba(102,190,255,.3); }
.status.in_progress { color: var(--gold-light); border-color: rgba(242,196,95,.3); }
.status.fixed, .status.closed { color: var(--success); border-color: rgba(157,230,180,.3); }
.severity.blocking, .severity.high { color: #ffd0d5; border-color: rgba(255,143,155,.35); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
.tester-table { min-width: 700px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid rgba(194,138,255,.12); vertical-align: top; }
th { color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(159,66,255,.06); }
td { font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.table-form { display: flex; gap: 7px; align-items: center; }
.table-form select { min-width: 125px; padding: 8px; }
.table-form button { min-height: 36px; padding: 7px 10px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(480px, 100%); padding: 34px; }
.login-logo { display: block; width: 104px; height: 104px; object-fit: contain; margin: 0 auto 20px; filter: drop-shadow(0 0 28px rgba(159,66,255,.35)); }
.login-card h1 { font-size: 2.1rem; text-align: center; margin-bottom: 8px; }
.login-card .eyebrow, .login-card .lead { text-align: center; }
.login-card .lead { margin: 0 auto 22px; }
.login-card button { width: 100%; margin-top: 20px; }
.invitation-card { width: min(560px, 100%); }
.simple-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.simple-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid rgba(229,191,102,.2); border-radius: 13px; background: rgba(229,191,102,.04); }
.simple-steps span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--gold); color: #170d20; font-weight: 800; }
.compact-consent { margin-top: 20px; }
.invite-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.invite-summary article { padding: 16px; border-radius: 15px; background: var(--panel-soft); border: 1px solid var(--line); }
.invite-summary strong { display: block; margin-top: 5px; font-size: 1.35rem; color: var(--text); }
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-actions .button { padding: 9px 12px; font-size: .84rem; }
.email-window { width: min(720px, 100%); margin: 30px auto; }
.email-meta { display: grid; gap: 6px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.email-meta strong { color: var(--text); }
.email-message { max-width: 620px; margin: 0 auto; padding: 30px; }
.email-message-logo { display: block; width: 150px; height: 150px; object-fit: contain; margin: 0 0 22px auto; }
.email-message h2 { color: var(--gold); font-size: 1.65rem; }
.email-cta { margin: 25px 0; }
.preview-switcher { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
@media (max-width: 700px) { .invite-summary { grid-template-columns: 1fr; } .email-message { padding: 22px; } }
.privacy-note { margin-top: 22px; color: var(--muted); font-size: .8rem; text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.report-summary { max-width: 350px; color: var(--muted); }
.report-summary strong { color: var(--ink); display: block; margin-bottom: 4px; }
.preserve { white-space: pre-wrap; color: #ddd4e8; }
.definition { display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 9px 20px; margin: 0; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; }
.footer { padding: 28px 0 42px; color: #897f96; font-size: .78rem; text-align: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .topbar { position: static; }
  .topbar-inner { padding: 13px 0; align-items: flex-start; }
  .brand-copy span { display: none; }
  .nav { max-width: 58%; gap: 2px; }
  .nav a, .nav button { padding: 8px; font-size: .84rem; }
  .main { padding-top: 30px; }
  .panel { padding: 19px; border-radius: 18px; }
  .field-row, .filters { grid-template-columns: 1fr; }
  .login-card { padding: 25px 20px; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
