@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/poppins-extrabold.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1f1f1f;
  --raised: #2a2a2a;
  --line: #333333;
  --text: #ffffff;
  --muted: #b3b3b3;
  --primary: #e50914;
  --danger: #ff8a91;
  --control-radius: 12px;
  --panel-radius: 16px;
  --control-border: #777777;
  font:
    14px/1.5 "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button,
.button-link {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:not(:disabled):hover,
.button-link:hover {
  border-color: #8c8c8c;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:disabled:hover { filter: none; }
.secondary {
  background: var(--raised);
  border-color: #505050;
  color: var(--text);
}
.text-button {
  background: transparent;
  color: #b3b3b3;
  padding: 10px 5px;
}
.danger {
  background: #e509141a;
  border-color: #ff8a9166;
  color: var(--danger);
}
.danger:not(:disabled):hover { border-color: var(--danger); }
.renew-button:not(:disabled):hover, .extend-action:not(:disabled):hover { border-color: #69d6a0; }
:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 20;
  padding: 12px;
  background: var(--primary);
}
.skip-link:focus {
  top: 8px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 32px 20px;
  background: #1a1a1a;
  border-right: 1px solid var(--line);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
aside > * { flex-shrink: 0; }
.brand {
  display: block;
  min-height: 44px;
  margin-bottom: 48px;
}
.brand img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}
.nav-label,
.eyebrow {
  color: #b3b3b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.nav-label {
  margin: 0 12px 14px;
}
nav {
  display: grid;
  gap: 8px;
  min-width: 0;
}
nav a,
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  background: transparent;
  color: #b3b3b3;
  font-weight: 550;
  text-align: left;
  justify-content: flex-start;
  min-height: 48px;
}
nav a[aria-current="page"] {
  background: #e509141a;
  border-color: #e509144d;
  color: #ff7078;
}
nav a:hover {
  background: #2a2a2a;
}
nav span {
  font-size: 21px;
  line-height: 1;
  width: 22px;
  text-align: center;
}
nav .nav-future {
  opacity: 0.65;
  cursor: default;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  row-gap: 4px;
}
nav .nav-future:hover { border-color: transparent; }
nav .nav-future > span { grid-row: 1 / 3; }
nav .nav-future small { grid-column: 2; justify-self: start; margin-left: 0; }
nav small {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
  background: #2a2a2a;
  border-radius: 5px;
  padding: 3px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
  font-size: 11px;
  color: #b3b3b3;
}
.sidebar-bottom p {
  margin: 8px 0 0;
}
.environment {
  color: #b3b3b3;
}
main {
  margin-left: 224px;
  padding: 30px clamp(24px, 3vw, 48px);
  max-width: 1800px;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.header-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 6px 0 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  margin: 5px 0 10px;
}
h3 {
  font-size: 17px;
}
.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.eyebrow {
  margin: 0;
}
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  margin-bottom: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-title h2 {
  margin-top: 0;
}
.welcome-title {
  margin-bottom: 18px;
}
.welcome-title h2 {
  margin: 5px 0 0;
}
.text-link {
  color: #ff7078;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  display: block;
  text-align: left;
  white-space: normal;
  background: linear-gradient(130deg, #2a2a2a, #1f1f1f);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  color: var(--muted);
}
.stat-card > span {
  display: block;
  font-size: 13px;
}
.stat-card strong {
  display: block;
  font-size: 34px;
  color: #ffffff;
  line-height: 1.3;
  margin: 12px 0;
}
.stat-card:first-child strong {
  color: #69d6a0;
}
.stat-card small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}
.quick-tests .section-title {
  margin-bottom: 22px;
}
.quick-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-options button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px;
}
.quick-options button > span {
  font-size: 18px;
}
.quick-options small {
  font-size: 12px;
  color: #b3b3b3;
  font-weight: 400;
}
.home-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}
.home-note > span {
  font-size: 30px;
  color: #ff7078;
}
.home-note h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.home-note p {
  color: var(--muted);
  margin: 0;
}
.home-note .button-link {
  margin-left: auto;
  flex-shrink: 0;
}
.page-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-actions {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.users-card .section-title {
  margin-bottom: 22px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}
.filters > label {
  min-width: 0;
  flex: 0 1 180px;
}
.filters .search {
  flex: 1 1 240px;
}
.filters .text-button {
  font-size: 12px;
  white-space: nowrap;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #b3b3b3;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: #2a2a2a;
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  padding: 10px 12px;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #b3b3b3;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}
.table-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: #b3b3b3;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
}
td {
  font-size: 13px;
  padding: 16px 10px;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: middle;
}
td small {
  display: block;
  color: #b3b3b3;
  font-size: 12px;
  margin-top: 5px;
}
.cell-name {
  min-width: 160px;
  font-weight: 600;
}
.cell-name small {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.note-line {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.actions button,
.delete-column button {
  font-size: 12px;
  padding: 9px 8px;
}
.delete-column {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 9px;
  white-space: nowrap;
  font-size: 12px;
  border: 1px solid #69d6a066;
  background: #69d6a014;
  color: #69d6a0;
}
.badge.bad {
  background: #e509141a;
  border-color: #ff8a9166;
  color: #ff8a91;
}
.badge.warn {
  background: #ff98001a;
  border-color: #ff980066;
  color: #ff9800;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination p {
  margin: 0;
}
.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--text);
  margin: 0 0 8px;
}
.empty-state p {
  margin: 0;
}
.modal {
  width: min(560px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid #333333;
  border-radius: var(--panel-radius);
  padding: 24px;
  box-shadow: 0 25px 100px #0009;
}
.modal::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-heading h2 {
  margin: 4px 0 0;
}
.close-modal {
  font-size: 25px;
  line-height: 1;
  min-width: 44px;
  padding: 8px;
}
.user-form,
.profile-form {
  display: grid;
  gap: 17px;
  margin-top: 16px;
}
.adult-choice {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 44px;
  padding-block: 8px;
}
.adult-choice input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--primary);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
}
.share-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #2a2a2a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 16px;
  font:
    14px/1.9 "Poppins",
    sans-serif;
  user-select: text;
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: flex-end;
}

.mfa-modal { width:min(520px, calc(100% - 32px)); }
.mfa-modal form, .mfa-stage, .mfa-manual-body { display:grid; gap:18px; }
.mfa-modal .modal-heading { margin-bottom:20px; }
.mfa-modal .modal-heading h2 { font-size:20px; line-height:1.35; }
.mfa-provider { margin:6px 0 0; color:var(--muted); font-size:13px; }
.mfa-status { margin:0 0 22px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:var(--raised); font-size:13px; }
.mfa-status.active { color:#b4e1c3; }
.mfa-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 0 20px; margin:0 0 22px; border-bottom:1px solid var(--line); gap:8px; list-style:none; }
.mfa-steps li { display:flex; gap:7px; align-items:center; color:var(--muted); font-size:12px; }
.mfa-steps li > span { display:grid; place-items:center; width:26px; height:26px; flex-shrink:0; border-radius:50%; background:var(--raised); border:1px solid #505050; font-weight:600; }
.mfa-steps [aria-current=step] { color:var(--text); font-weight:600; }
.mfa-steps [aria-current=step] > span { background:var(--primary); border-color:var(--primary); }
.mfa-steps .complete > span { color:#b4e1c3; border-color:#6b9d7c; }
.mfa-section-heading { text-align:center; }
.mfa-section-heading h3 { margin:0; font-size:18px; }
.mfa-section-heading p, .mfa-manual p { margin:6px 0 0; font-size:13px; color:var(--muted); }
.mfa-qr { display:grid; place-items:center; background:#fff; border-radius:12px; padding:10px; width:fit-content; max-width:100%; justify-self:center; }
.mfa-qr canvas { display:block; width:244px; max-width:100%; height:auto; image-rendering:pixelated; }
.mfa-manual { border:1px solid #505050; border-radius:12px; min-width:0; }
.mfa-manual summary { padding:13px 14px; min-height:48px; cursor:pointer; color:var(--muted); font-size:13px; }
.mfa-manual summary:focus-visible { outline:2px solid white; outline-offset:3px; border-radius:10px; }
.mfa-manual-body { padding:4px 14px 16px; gap:12px; }
.mfa-manual input { font-family:ui-monospace,monospace; font-size:13px; letter-spacing:.25px; }
.mfa-manual p { margin:0; }
.mfa-recovery-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; margin:0; padding:14px; gap:10px 12px; border-radius:12px; background:var(--bg); border:1px solid var(--line); }
.mfa-recovery-codes li { font-family:ui-monospace,monospace; font-size:13px; white-space:nowrap; text-align:center; user-select:all; }
.mfa-saved { display:flex; flex-direction:row; gap:12px; align-items:center; min-height:48px; cursor:pointer; }
.mfa-saved input { width:20px; min-height:20px; height:20px; flex-shrink:0; accent-color:var(--primary); }
.mfa-modal [name=code][inputmode=numeric] { text-align:center; font-family:ui-monospace,monospace; font-size:28px; letter-spacing:.35em; padding-left:calc(14px + .35em); min-height:60px; }
.mfa-actions { margin-top:4px; }
.mfa-actions [type=submit] { flex:1; }
.plan-cost { grid-column:1 / -1; margin:0; }
.library-icon { display:inline-block; width:20px; height:20px; flex-shrink:0; vertical-align:middle; fill:none; stroke:currentColor; }
button:has(> .library-icon) { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.settings-icon .library-icon { width:22px; height:22px; }
.device-list { display:grid; gap:14px; }
.device-card { border:1px solid #505050; border-radius:12px; padding:16px; }
.device-card h3 { display:flex; align-items:center; gap:10px; margin:0 0 10px; font-size:16px; overflow-wrap:anywhere; }
.device-card p { margin:6px 0; font-size:13px; }
.device-state.playing { color:#b4e1c3; }
.device-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.device-actions button { flex:1 1 160px; }
@media (min-width:600px) {
  #user-form > label:has(select[name=screens]), #trial-form > label:has(select[name=screens]) { grid-column:auto; }
}
@media (max-width:479px) {
  .mfa-recovery-codes { padding:12px; gap:10px 8px; }
  .mfa-recovery-codes li { font-size:12px; }
}
@media (max-width:359px) {
  .mfa-steps li { flex-direction:column; gap:5px; }
  .mfa-recovery-codes { grid-template-columns:1fr; }
  .mfa-recovery-codes li { font-size:13px; }
}
.form-error,
#profile-error,
#password-error {
  color: #ff8a91;
  margin: 0;
}
.form-error:empty, #profile-error:empty, #password-error:empty { display: none; }
.profile-form .hint { margin: 0; }
.app-updates-modal form { display:grid; gap:16px; }
.app-updates-modal input[type=file] { width:100%; max-width:100%; padding:12px; }
.app-updates-modal progress { width:100%; margin-top:20px; accent-color:var(--primary); }
.update-candidate { padding:16px; border:1px solid var(--line); border-radius:14px; }
.update-candidate h3 { margin-top:0; }
#app-updates-toggle { white-space:normal; text-align:left; justify-content:flex-start; }
#app-updates-toggle .library-icon { width:22px; height:22px; }
.extra-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.extra-actions button {
  justify-content: flex-start;
}
.extra-actions p {
  margin: 0;
  color: var(--muted);
}
#copy-feedback {
  color: #69d6a0;
  font-size: 13px;
}
#message {
  padding: 12px 16px;
  border: 1px solid #69d6a066;
  background: #69d6a014;
  color: #69d6a0;
  border-radius: 9px;
  margin: 0 0 22px;
}
#message.error {
  border-color: #ff8a9166;
  background: #e509141a;
  color: #ff7078;
}
.login {
  max-width: 420px;
  margin: 60px auto;
}
.login form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.login-brand { display: block; width: 176px; max-width: 70%; height: auto; margin: 4px auto 28px; }
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.icon-button {
  min-width: 44px;
  padding: 8px;
}
.menu-open #nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 9;
}
@media (min-width: 1200px) {
  .cell-name {
    width: 25%;
  }
}
@media (min-width: 1280px) {
  table { table-layout: fixed; }
  th:nth-child(1) { width: 16%; }
  th:nth-child(2), th:nth-child(3) { width: 9%; }
  th:nth-child(4) { width: 13%; }
  th:nth-child(5) { width: 12%; }
  th:nth-child(6) { width: 10%; }
  th:nth-child(7) { width: 20%; }
  th:nth-child(8) { width: 11%; }
  .cell-name { overflow-wrap: anywhere; }
  .delete-column { width: auto; white-space: normal; }
  .delete-column button { width: 100%; }
}
@media (max-width: 1150px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .quick-tests .section-title {
    align-items: start;
  }
}
@media (max-width: 900px) {
  aside {
    width: 200px;
    padding-inline: 16px;
  }
  main {
    margin-left: 200px;
    padding: 24px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .quick-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  aside {
    transform: translateX(-100%);
    transition: transform 0.15s;
    width: 244px;
  }
  .menu-open aside {
    transform: translateX(0);
  }
  main {
    margin: 0;
    padding: 20px 16px;
    width: 100%;
  }
  header {
    align-items: start;
    gap: 10px;
    margin-bottom: 24px;
  }
  .header-leading {
    align-items: start;
  }
  h1 {
    font-size: 23px;
  }
  header .muted {
    font-size: 13px;
  }
  header .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  #logout {
    padding-inline: 12px;
    flex-shrink: 0;
  }
  .section-title {
    gap: 12px;
  }
  .welcome-title {
    align-items: start;
  }
  .welcome-title .text-link {
    font-size: 12px;
    max-width: 100px;
    text-align: right;
  }
  .card {
    padding: 20px 16px;
  }
  .stat-card {
    padding: 16px 12px;
  }
  .stat-card strong {
    font-size: 29px;
  }
  .stat-card small {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .quick-tests .section-title {
    flex-direction: column;
  }
  .quick-tests .section-title > button {
    width: 100%;
  }
  .quick-options {
    gap: 10px;
  }
  .quick-options button {
    padding: 14px;
  }
  .home-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .home-note > div {
    flex: 1;
    min-width: 0;
  }
  .home-note .button-link {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
  .page-actions {
    align-items: start;
    flex-direction: column;
  }
  .toolbar-actions {
    width: 100%;
  }
  .toolbar-actions button {
    flex: 1;
    font-size: 13px;
    min-height: 48px;
  }
  .users-card .section-title {
    align-items: start;
  }
  .users-card .section-title p {
    font-size: 12px;
  }
  .users-card .section-title h2 {
    font-size: 18px;
  }
  .users-card #reload {
    font-size: 12px;
    padding-inline: 12px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filters .search {
    grid-column: 1/-1;
  }
  .filters .text-button {
    grid-column: 1/-1;
    justify-self: start;
    padding: 0;
    min-height: 44px;
  }
  .filters label {
    font-size: 12px;
  }
  .filters input,
  .filters select {
    font-size: 16px;
    min-height: 48px;
  }
}
@media (max-width: 1279px) {
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tbody {
    display: grid;
    gap: 14px;
  }
  tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    gap: 14px 10px;
    background: #1f1f1f;
  }
  td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: 14px;
  }
  .cell-name {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .cell-status {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .cell-type,
  .cell-expiry {
    grid-column: 1/-1;
  }
  .cell-type::before,
  .cell-expiry::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 3px;
  }
  .cell-actions {
    grid-column: 1/-1;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .actions button {
    min-height: 48px;
    font-size: 13px;
  }
  .delete-column {
    grid-column: 1/-1;
    width: auto;
    justify-self: end;
  }
  .delete-column button {
    min-height: 44px;
  }
  .note-line {
    max-width: none;
    white-space: normal;
  }
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination > div {
    display: flex;
  }
  .pagination button {
    flex: 1;
    min-height: 48px;
  }
}
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px; }
  .modal {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px;
  }
  .modal input,
  .modal select,
  .modal textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .modal-actions button {
    min-height: 48px;
    flex: 1;
  }
  .close-modal {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#menu-toggle {
  display: none;
}
@media (max-width: 767px) {
  #menu-toggle:not([hidden]) {
    display: inline-flex;
  }
}

#close-menu {
  display: none;
}
@media (max-width: 767px) {
  #close-menu {
    display: flex;
    position: absolute;
    right: 12px;
    top: 14px;
  }
  .menu-open {
    overflow: hidden;
  }
  .brand {
    margin-top: 18px;
  }
  body:not(.menu-open) #sidebar {
    visibility: hidden;
  }
  .menu-open #sidebar {
    visibility: visible;
  }
}

.mobile-action {
  display: inline-flex;
}
.desktop-action { display: none; }
.delete-column button + button {
  margin: 8px 0 0;
}
.renew-button {
  background: #69d6a014;
  border-color: #69d6a066;
  color: #69d6a0;
}
.cell-name {
  min-width: 140px;
}
.actions button {
  white-space: nowrap;
}
#legacy-recovery {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 1279px) {
  .desktop-action {
    display: none;
  }
  .mobile-action {
    display: inline-flex;
  }
  .delete-column {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    justify-self: stretch;
  }
  .delete-column button + button {
    margin: 0;
  }
  .delete-column button {
    min-height: 48px;
  }
  .actions {
    grid-template-columns: 1fr 1fr;
  }
  .actions .mobile-action {
    grid-column: 1/-1;
  }
}

.header-account {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.settings-icon { display: none; }
nav .settings-icon { display: block; }
nav .nav-settings { background: transparent; border-color: transparent; color: var(--muted); }
nav .nav-settings:hover { background: var(--raised); }
.toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.toolbar-actions .credit-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
}
#users-account-slot .header-account {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#users-account-slot .header-account button { width: 100%; font-size: 14px; }
.credit-balance {
  padding: 8px 12px;
  border: 1px solid #69d6a066;
  background: #69d6a014;
  color: #69d6a0;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.credit-summary {
  background: #69d6a014;
  border: 1px solid #69d6a066;
  color: #69d6a0;
  padding: 14px;
  border-radius: 9px;
}
.cell-username,
.cell-password {
  font-family: "Poppins", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
  user-select: all;
}
.account-readonly {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #2a2a2a;
  border: 1px solid #333333;
  border-radius: 10px;
}
.account-readonly input {
  background: #2a2a2a;
  border-style: dashed;
  cursor: not-allowed;
}
.account-readonly .modal-actions {
  margin: 0;
}
.extend-action {
  border-color: #69d6a066;
  color: #69d6a0;
}
.cell-name {
  width: auto;
  min-width: 110px;
}
#extension-choice {
  margin: 18px 0;
}
#profile-password-note {
  margin: 0;
}
@media (max-width: 767px) {
  header { flex-direction: column; align-items: stretch; gap: 16px; }
  .header-account {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .header-account button { font-size: 13px; padding-inline: 12px; }
  .credit-balance {
    font-size: 12px;
    padding: 8px 10px;
    margin-inline-end: auto;
  }
  .toolbar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-actions #add-client { grid-column: 1 / -1; }
  .toolbar-actions .credit-balance {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-inline-end: 0;
    font-size: 13px;
  }
}
@media (max-width: 1279px) {
  .cell-username,
  .cell-password {
    grid-column: 1/-1;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cell-username::before,
  .cell-password::before {
    content: attr(data-label);
    display: block;
    font:
      11px/1.5 "Poppins",
      system-ui,
      sans-serif;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .actions .extend-action {
    grid-column: 1/-1;
  }
  .account-readonly .modal-actions {
    flex-direction: column;
  }
}

/* Paleta de android/ui/theme/Theme.kt; mesma família tipográfica do aplicativo. */
.stat-card {
  background: var(--surface);
}
.schedule-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin: 12px 0;
  background: var(--surface, #20222a);
  border-radius: 12px;
}
.schedule-row small {
  color: var(--muted, #bfc0c9);
}
#schedule-text {
  width: 100%;
  box-sizing: border-box;
}
#games-view .panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
#games-view .panel h3 { margin: 0; }
#games-view > .section-title p { color: var(--muted); }
#schedule-date { max-width: 240px; }
#schedule-preview, #schedule-import { justify-self: start; }
#schedule-feedback:empty, #schedule-preview-list:empty { display: none; }
#schedule-feedback { margin: 0; }
#schedule-preview-list {
  max-height: 60vh;
  overflow: auto;
}

body.not-found { grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100vh; }
.not-found main { width: min(100%, 640px); margin: auto; padding: 32px; }

/* Authentication is also enforced by every administrative API endpoint. */
body.signed-out #sidebar, body.signed-out main > header, body.signed-out footer, body.signed-out #nav-backdrop { display:none !important; }
body.signed-out main { margin:0; padding:24px; min-height:100dvh; display:flex; flex-direction:column; justify-content:center; }
body.signed-out #login { width:100%; margin:0 auto; }
body.signed-out #login form { margin-top:0; }
body.signed-out #message { width:100%; max-width:420px; margin:0 auto 16px; }
dialog[aria-label="Meu acesso ao painel"] form { display:grid; gap:16px; }
.captcha-row { --captcha-size:clamp(56px,18vw,72px); display:grid; grid-template-columns:minmax(0,1fr) var(--captcha-size); align-items:stretch; gap:12px; }
.captcha-row img { display:block; width:100%; max-width:none; height:var(--captcha-size); object-fit:fill; border-radius:12px; background:#181818; }
.captcha-row button { width:var(--captcha-size); height:var(--captcha-size); min-width:44px; padding:0; font-size:20px; }
.login-field { display:grid; gap:8px; }
.login fieldset { min-width:0; margin:0; padding:0; border:0; display:grid; gap:20px; }
.login fieldset[hidden] { display:none; }
.login-mfa-heading { text-align:center; }
.login-mfa-heading p { margin:10px 0 0; line-height:1.5; }
.login-mfa-heading .muted { margin:0; font-size:17px; font-weight:500; color:var(--text,#f5f5f5); }
.login-mfa-icon { display:block; width:56px; height:56px; margin:0 auto 20px; object-fit:contain; border-radius:14px; }
#login-mfa-code { text-align:center; font-size:22px; letter-spacing:3px; min-height:56px; }
.login-recovery-hint { margin:8px 0 0; text-align:center; color:var(--muted); font-size:12px; line-height:1.6; }
.login-back { width:100%; }
.login-input { position:relative; }
.login-input input { min-height:48px; padding-right:56px; }
.login-password input { padding-right:100px; }
.login-input-actions { position:absolute; right:2px; top:50%; transform:translateY(-50%); display:flex; }
.login-input-action { width:44px; height:44px; padding:10px; background:transparent; border-color:transparent; color:var(--muted); border-radius:10px; }
.login-input-action svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.login-input [data-clear-login] { visibility:hidden; }
.login-input:focus-within [data-clear-login] { visibility:visible; }
.password-eye-off, [data-toggle-login-password][aria-pressed="true"] .password-eye { display:none; }
[data-toggle-login-password][aria-pressed="true"] .password-eye-off { display:block; }
.login-input input::-ms-reveal, .login-input input::-ms-clear { display:none; }

@media (min-width: 600px) {
  #user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #user-form .form-notes, #user-form > label:has(select), #client-error, #save-user { grid-column: 1 / -1; }
  #profile-form, .account-readonly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #profile-form > .account-readonly, #profile-form > label:has(textarea), #profile-form > p, #profile-form > .modal-actions, #profile-monthly, #profile-new-password, #profile-adult,
  .account-readonly > p, .account-readonly > .modal-actions { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-username, .cell-type { grid-column: 1; }
  .cell-password, .cell-expiry { grid-column: 2; }
  .cell-username, .cell-password { grid-row: 2; }
  .cell-type, .cell-expiry { grid-row: 3; }
  .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .actions .mobile-action, .actions .extend-action { grid-column: auto; }
}
@media (max-width: 767px) {
  #games-view .panel { padding: 20px 16px; }
  #schedule-date { max-width: none; }
  #schedule-preview, #schedule-import { justify-self: stretch; min-height: 48px; }
}
