:root {
  --ink: #0b1f3a;
  --muted: #60758c;
  --line: #d6e0ea;
  --panel: #ffffff;
  --page: #f2f6fa;
  --green: #127a55;
  --green-dark: #0a573b;
  --red: #b63232;
  --red-dark: #842323;
  --brand-blue: #2878d8;
  --blue: #246fc7;
  --gold: #d6a84b;
  --orange: #d6a84b;
  --shadow: 0 12px 30px rgba(11, 31, 58, 0.1);
  --display-title-color: #ffffff;
  --display-player-color: #ffffff;
  --display-score-color: #d6a84b;
  --display-main-color: #ffffff;
  --display-backing: rgba(255, 255, 255, 0.08);
  --display-backing-border: rgba(255, 255, 255, 0.18);
  --display-score-scale: 1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page);
  letter-spacing: 0;
}

html,
* {
  scrollbar-width: thin;
  scrollbar-color: #4c86c5 #e8eef5;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef5;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid #e8eef5;
  border-radius: 999px;
  background: linear-gradient(180deg, #5d97d4, #246fc7);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #347fce, #175ea9);
}

*::-webkit-scrollbar-corner {
  background: #e8eef5;
}

.scoremount-logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 164px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.1);
}

.scoremount-logo-viewport {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.45 / 1;
  overflow: hidden;
  background: #fff;
}

.scoremount-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.scoremount-logo-auth {
  width: min(230px, 78%);
  margin: 0 auto 4px;
  box-shadow: none;
}

.scoremount-logo-operator {
  width: 142px;
}

.scoremount-logo-display {
  width: clamp(104px, 10vw, 148px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

button,
a.secondary-link,
a.dashboard-button,
a.mode-choice-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font: 15px/1.3 Arial, Helvetica, sans-serif;
  background: #fbfcfd;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 120, 216, 0.3);
  outline-offset: 2px;
}

.app-shell {
  width: min(1440px, calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.top-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.top-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.top-title-block > div {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.status-pill,
.display-status {
  border: 1px solid rgba(18, 122, 85, 0.25);
  background: #e8f5ef;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.compact-button {
  min-height: 34px;
}

.settings-gear-button {
  width: 38px;
  min-width: 38px;
  padding-inline: 0;
  font-size: 20px;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.4fr);
  gap: 16px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.section-tabs[hidden] {
  display: none !important;
}

.tab-button {
  min-height: 38px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.tab-button.active {
  border-color: rgba(40, 120, 216, 0.38);
  background: #eaf3ff;
  color: var(--blue);
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.mode-section[hidden] {
  display: none !important;
}

.main-choice-section {
  min-height: 58vh;
  display: grid;
  place-items: center;
}

.main-choice-panel {
  width: min(820px, 100%);
}

.mode-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.mode-choice-button {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-color: var(--line);
  background: #fbfcfd;
  color: var(--ink);
  text-align: left;
  padding: 20px;
}

a.mode-choice-button {
  text-decoration: none;
}

.mode-choice-button:hover {
  border-color: rgba(40, 120, 216, 0.38);
  background: #eaf3ff;
}

.mode-choice-button.locked-choice,
button.locked-choice {
  opacity: 0.46;
  filter: grayscale(0.55);
  cursor: not-allowed;
}

.mode-choice-button.locked-choice:hover {
  border-color: var(--line);
  background: #fbfcfd;
}

.mode-choice-button strong {
  font-size: 24px;
}

.mode-choice-button span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.lower-grid {
  margin-top: 16px;
}

.cbe-section .operator-grid.lower-grid {
  grid-template-columns: minmax(360px, 470px) minmax(380px, 560px);
  justify-content: start;
  align-items: start;
}

.cbe-page {
  width: min(100%, 1016px);
  margin: 16px auto 0;
}

.cbe-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 12px;
}

.cbe-page-header h2 {
  margin: 0;
  font-size: 22px;
}

.cbe-page-header span,
.panel-header-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cbe-section .cbe-setup-grid.lower-grid {
  grid-template-columns: minmax(0, 1016px);
  gap: 16px;
}

.cbe-section > .page-action-row {
  width: min(100%, 1016px);
  margin-inline: auto;
}

.cbe-section #cbeSetupPanel .form-grid {
  column-gap: 8px;
  row-gap: 10px;
}

.cbe-teams-container {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.cbe-team-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.cbe-team-block-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cbe-team-members {
  display: grid;
  gap: 8px;
}

.cbe-team-member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cbe-question-warning {
  margin: 10px 0 0;
  border: 1px solid rgba(173, 35, 45, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff1f2;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.cbe-tournament-box {
  min-width: 0;
  max-width: 460px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 10px;
  background: #fbfcfd;
}

.cbe-header-tournament-box {
  display: none;
  justify-self: center;
  width: min(460px, 100%);
}

.cbe-control-active .cbe-header-tournament-box {
  display: block;
}

.training-header-tournament-box {
  display: none;
  justify-self: center;
  width: min(460px, 100%);
}

.training-control-active .training-header-tournament-box {
  display: block;
}

.cbe-tournament-box legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cbe-tournament-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.cbe-tournament-actions button,
.cbe-tournament-actions .dashboard-button {
  min-width: 132px;
  min-height: 40px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.verse-library-filters {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.form-grid label,
.login-panel label,
.format-box label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.format-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  margin-bottom: 14px;
}

.format-description {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.format-options {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.checkbox-label {
  min-height: 40px;
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink) !important;
  text-transform: none !important;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.multi-select {
  position: relative;
  min-height: 42px;
}

.multi-select summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
  list-style: none;
}

.multi-select summary::-webkit-details-marker {
  display: none;
}

.multi-select summary::after {
  content: "v";
  color: var(--muted);
  font-size: 12px;
}

.multi-select[open] summary::after {
  content: "^";
}

.multi-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(16, 47, 67, 0.16);
}

.multi-select-menu .checkbox-label {
  min-height: 34px;
  padding: 6px;
  border-radius: 6px;
}

.multi-select-menu .checkbox-label:hover {
  background: #eef6f2;
}

.section-subhead {
  margin: 6px 0 8px;
}

textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  font: 15px/1.45 Consolas, "Courier New", monospace;
  background: #fbfcfd;
}

.compact-textarea {
  min-height: 130px;
}

.complete-verse-section #completeVersePlayersInput {
  min-height: 120px;
}

.complete-verse-phone-options {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  margin: 12px 0 0;
}

.complete-verse-phone-options input[type="number"] {
  min-height: 42px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-button {
  min-height: 46px;
  border-color: #0b1f3a;
  background: #0b1f3a;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(16, 47, 67, 0.24);
}

.dashboard-button:hover {
  background: #2878d8;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  background: #0b1f3a;
}

.complete-verse-action-button {
  background: var(--blue);
}

.complete-verse-action-button:hover {
  background: #0b1f3a;
}

.complete-verse-section #completeVerseScoreList {
  margin-top: 14px;
}

.library-manager-section {
  display: grid;
  gap: 16px;
}

.library-list {
  display: grid;
  gap: 10px;
}

.library-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.library-card div {
  display: grid;
  gap: 4px;
}

.library-card-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.library-card strong {
  font-size: 17px;
}

.library-card span,
.library-card small {
  color: var(--muted);
  font-weight: 800;
}

.library-upload-box {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.library-upload-box label small,
.library-private-access-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.library-private-access-note {
  align-self: center;
  margin: 0;
}

.library-access-label {
  color: #235b45 !important;
}

.library-read-only-label {
  align-self: center;
  white-space: nowrap;
}

.library-editor-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.library-editor-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.library-editor-table th,
.library-editor-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.library-editor-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.library-editor-table input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.library-editor-table input:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.library-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.secondary-button,
a.secondary-link {
  background: #f8fafb;
  border-color: var(--line);
  color: var(--ink);
}

.secondary-button:hover,
a.secondary-link:hover {
  background: #edf3f5;
}

a.disabled-link,
a.disabled-link:hover {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.danger-button {
  background: var(--red);
  color: #fff;
}

.danger-button:hover {
  background: var(--red-dark);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.inactive-panel {
  background: #f7fafb;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.live-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.live-indicator.live {
  color: var(--green-dark);
  background: #e8f5ef;
}

.live-indicator.live span {
  background: var(--green);
}

.live-indicator.off {
  color: var(--red-dark);
  background: rgba(182, 50, 50, 0.08);
}

.live-indicator.off span {
  background: var(--red);
}

.progress-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7ec;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 180ms ease;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-strip span,
#basicTrackingNumber {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 12px;
  font-weight: 900;
}

.match-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.round-label {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 48px minmax(140px, 1fr);
  align-items: center;
  gap: 12px;
}

.team-score {
  min-width: 0;
}

.team-name {
  min-height: 48px;
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.score-value {
  font-size: 78px;
  line-height: 1;
  font-weight: 900;
  margin: 8px 0 12px;
}

.versus {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.score-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score-actions button {
  min-height: 44px;
  background: #0b1f3a;
  color: #fff;
}

.score-actions [data-cbe-score-amount="1"] {
  background: var(--blue);
}

.score-actions [data-cbe-score-amount="1"]:hover {
  background: #0b1f3a;
}

.score-actions [data-cbe-score-amount="-1"] {
  border-color: rgba(182, 50, 50, 0.24);
  background: #f8d7da;
  color: var(--red-dark);
}

.score-actions [data-cbe-score-amount="-1"]:hover {
  background: #f1bfc5;
}

.score-actions [data-training-score-amount="1"] {
  background: var(--blue);
}

.score-actions [data-training-score-amount="1"]:hover {
  background: #0b1f3a;
}

.score-actions [data-training-score-amount="-1"] {
  border-color: rgba(182, 50, 50, 0.24);
  background: #f8d7da;
  color: var(--red-dark);
}

.score-actions [data-training-score-amount="-1"]:hover {
  background: #f1bfc5;
}

.match-list,
.history-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.list-row,
.history-row,
.empty-line {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfd;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
}

.list-row span,
.list-row small,
.history-row span,
.history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.list-row strong,
.history-row strong {
  overflow-wrap: anywhere;
}

.list-row small {
  grid-column: 1 / -1;
}

.list-row.active {
  border-color: rgba(244, 124, 53, 0.65);
  background: #fff4ed;
}

.history-row {
  display: grid;
  gap: 3px;
}

.user-list {
  display: grid;
  gap: 12px;
}

.storage-health {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfcfd;
}

.storage-health-ok {
  border-color: rgba(18, 122, 85, 0.35);
  background: #f2fbf7;
}

.storage-health-warning {
  border-color: rgba(182, 50, 50, 0.35);
  background: #fff7f2;
}

.storage-health-main {
  display: grid;
  gap: 3px;
}

.storage-health-main span,
.storage-health-details,
.storage-warnings {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.storage-health-details {
  display: grid;
  gap: 6px;
  margin: 0;
}

.storage-health-details div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}

.storage-health-details dt,
.storage-health-details dd,
.storage-warnings p {
  margin: 0;
}

.storage-health-details dd {
  overflow-wrap: anywhere;
}

.storage-warnings {
  display: grid;
  gap: 4px;
  color: #7a2d18;
}

.user-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.user-row-main {
  display: grid;
  gap: 3px;
}

.user-row-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.user-permission-edit-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.user-permission-sections {
  display: grid;
  gap: 16px;
}

.user-permission-section {
  display: grid;
  gap: 8px;
}

.user-permission-section h3,
.user-permission-group h4,
.user-permission-group p {
  margin: 0;
}

.user-permission-section h3 {
  color: var(--ink);
  font-size: 14px;
}

.user-permission-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.user-permission-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7f9;
  overflow: hidden;
}

.permissions-editing .user-permission-group {
  border-color: #91b6cc;
  background: #fff;
}

.user-permission-group-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.user-permission-group-summary::-webkit-details-marker {
  display: none;
}

.user-permission-group-summary > div {
  display: grid;
  gap: 3px;
}

.user-permission-summary-actions {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.user-permission-choose-label {
  color: #286382;
  font-size: 12px;
}

.user-permission-choose-label::after {
  content: " +";
}

.user-permission-group[open] .user-permission-choose-label::after {
  content: " −";
}

.user-permission-group h4 {
  font-size: 14px;
}

.user-permission-group p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.user-permission-group-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
}

.user-permission-select-row {
  display: flex;
  justify-content: flex-end;
}

.user-permission-select-all {
  min-height: 30px;
  white-space: nowrap;
}

.user-permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 10px;
}

.user-permission-option {
  min-height: 30px;
}

.access-management-note,
.admin-access-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-access-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 800;
}

.user-password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.password-reset-requested {
  margin-right: auto;
  color: #7a2d18;
  font-size: 12px;
  font-weight: 900;
}

.user-password-reset-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.user-password-reset-form[hidden] {
  display: none;
}

.user-password-reset-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-password-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.qr-box {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.qr-box img {
  width: min(240px, 100%);
  height: auto;
}

.training-qr-box {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfd;
  text-align: center;
}

.training-qr-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.training-teams-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Keep every Bible Bowl Training section on the same visual rail. */
.training-section > .page-action-row,
.training-section > .training-join-panel,
.training-section > .cbe-page {
  width: min(100%, 1016px);
  margin-inline: auto;
}

.training-section > .training-join-panel {
  margin-top: 16px;
}

.training-control-area {
  width: 100%;
  height: 100%;
}

.training-section .training-top-grid {
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  align-items: stretch;
}

.training-section .training-top-grid > * {
  min-width: 0;
}

.training-section .training-general-panel .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.training-section .operator-grid > .panel,
.training-section #trainingSetupPanel,
.training-section .verse-library-panel,
.training-section .cbe-control-panel {
  width: 100%;
}

.training-section .cbe-control-panel {
  height: 100%;
  min-width: 0;
  max-width: none;
}

.training-section #trainingSetupPanel {
  margin-top: 16px;
}

.training-teams-container fieldset { min-width: 0; margin: 0; }
.training-teams-container legend { font-weight: 800; padding: 0 6px; }
.training-phone-members { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.training-join-panel { margin-bottom: 16px; }
.training-qr-box img { width: min(240px, 100%); height: auto; justify-self: center; }
.training-qr-box a { overflow-wrap: anywhere; }
.training-answerer-label { display: block; margin-top: 8px; font-size: 13px; }
.training-answerer-label select { display: block; width: 100%; margin-top: 4px; }
.training-player-score-list { margin-top: 16px; }

.training-player-score-list > .empty-line {
  width: 100%;
  text-align: left;
}

@media (max-width: 640px) {
  .training-section .training-top-grid { grid-template-columns: minmax(0, 1fr); }
  .training-teams-container { grid-template-columns: 1fr; }
}

.training-qr-box strong {
  font-size: 22px;
  letter-spacing: 2px;
}

.training-qr-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.join-url-box {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.first-buzz-box {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 2px solid rgba(40, 120, 216, 0.28);
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  text-align: center;
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 900;
}

.phone-player-list {
  display: grid;
  gap: 8px;
}

.phone-player-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfd;
  font-weight: 900;
}

.phone-player-page .login-shell {
  width: min(520px, calc(100% - 28px));
}

.training-team-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.training-team-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.phone-buzz-button {
  min-height: 220px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(40px, 14vw, 82px);
  font-weight: 900;
  text-transform: uppercase;
}

.phone-buzz-button:active {
  transform: scale(0.98);
}

.phone-player-status {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.empty-line {
  color: var(--muted);
  font-weight: 700;
}

.basic-game-section .operator-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.basic-score-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.basic-score-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 72px 54px 54px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
}

.basic-score-row strong {
  overflow-wrap: anywhere;
}

.basic-score-row span {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.basic-score-row button {
  min-height: 38px;
  background: #0b1f3a;
  color: #fff;
}

.basic-score-row .score-plus-button {
  background: var(--blue);
  color: #fff;
}

.basic-score-row .score-plus-button:hover {
  background: #0b1f3a;
}

.basic-score-row .score-minus-button {
  background: #f8d7da;
  color: #842323;
  border-color: rgba(182, 50, 50, 0.24);
}

.basic-score-row .score-minus-button:hover {
  background: #f1bfc5;
}

.cbe-score-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: 520px;
  overflow: auto;
}

.cbe-score-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 86px 78px minmax(128px, auto);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 800;
}

.cbe-score-row strong {
  overflow-wrap: anywhere;
}

.cbe-score-row span {
  text-align: center;
}

.cbe-score-row.winner {
  border-color: rgba(18, 122, 85, 0.55);
  background: #e8f5ef;
}

.cbe-match-score-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fbfcfd;
}

.cbe-match-score-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: #fbfcfd;
  table-layout: fixed;
}

.cbe-match-score-table th,
.cbe-match-score-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}

.cbe-match-score-table tr:last-child td {
  border-bottom: 0;
}

.cbe-match-score-table th {
  background: #edf3f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cbe-match-score-table th:nth-child(2),
.cbe-match-score-table td:nth-child(2) {
  width: 86px;
}

.cbe-match-score-table th:nth-child(3),
.cbe-match-score-table td:nth-child(3) {
  width: 170px;
}

.cbe-match-score-table strong {
  display: block;
  overflow-wrap: anywhere;
  text-align: center;
}

.cbe-match-score-table .score-cell {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.training-player-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.training-player-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: #edf3f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.training-player-chip.active {
  border-color: rgba(18, 122, 85, 0.55);
  background: #e8f5ef;
  color: var(--green-dark, #127a55);
}

.training-player-chip.disconnected {
  opacity: 0.5;
}

.training-player-chip.empty {
  font-style: italic;
  font-weight: 600;
}

.cbe-match-empty {
  color: var(--muted);
  font-weight: 900;
  text-align: left !important;
}

.cbe-table-actions {
  grid-template-columns: 1fr 1fr;
  max-width: 132px;
  margin: 0 auto;
}

.cbe-match-actions,
.cbe-question-actions,
.cbe-report-actions {
  justify-content: flex-start;
}

.cbe-control-round {
  text-align: center;
  margin-bottom: 10px;
}

.cbe-control-panel,
.cbe-progress-panel,
.cbe-section .bracket-panel {
  max-width: 980px;
  margin-inline: auto;
}

.cbe-progress-panel {
  margin: 16px auto 0;
}

.cbe-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.cbe-progress-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.cbe-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cbe-progress-heading h3 {
  margin: 0;
  font-size: 14px;
}

.cbe-progress-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cbe-asked-question-row strong {
  line-height: 1.3;
}

.selected-verse-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
  margin-top: 12px;
}

.selected-verse-box span,
.selected-verse-box small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.selected-verse-box strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.selected-verse-box p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}

.verse-library-panel {
  margin-top: 16px;
}

.cbe-section #cbeSetupPage .verse-library-panel {
  width: 100%;
}

.verse-library-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 460px;
  overflow: auto;
}

.verse-library-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.cbe-section .verse-library-row,
.training-section .verse-library-row {
  grid-template-columns: auto 56px minmax(220px, 1fr) minmax(160px, 240px);
  align-items: start;
}

.verse-question-number {
  color: var(--blue);
  font-weight: 900;
  text-align: right;
}

.verse-question-copy,
.verse-reference-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.verse-question-copy strong,
.verse-reference-copy strong {
  overflow-wrap: anywhere;
}

.verse-question-copy small,
.verse-reference-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.verse-field-label {
  color: var(--blue) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.question-library-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.verse-library-list.locked {
  opacity: 0.72;
}

.verse-check-label {
  display: grid;
  place-items: center;
}

.verse-check-label input {
  width: 20px;
  min-height: 20px;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
  font-size: 20px;
}

#completeVerseShuffleBtn {
  font-size: 0;
}

#cbeShuffleBtn {
  font-size: 0;
}

#completeVerseShuffleBtn::before {
  content: "\21bb";
  font-size: 20px;
}

#cbeShuffleBtn::before {
  content: "\21bb";
  font-size: 20px;
}

.icon-button.active {
  border-color: rgba(40, 120, 216, 0.48);
  background: #e2efff;
  color: var(--blue);
}

.settings-grid input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

.settings-grid input[type="range"] {
  min-height: 44px;
}

.verse-library-row.active {
  border-color: rgba(18, 122, 85, 0.55);
  background: #e8f5ef;
}

.verse-library-row div {
  display: grid;
  gap: 4px;
}

.verse-library-row span,
.verse-library-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bracket-panel {
  margin-top: 16px;
  overflow: hidden;
}

.dashboard-preview {
  min-height: 250px;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  background: #07090b;
}

.preview-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-title {
  margin: 4px 0 14px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.preview-board {
  min-height: 170px;
}

.compact-preview {
  min-height: 170px;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 8px;
}

.compact-preview .bracket-title {
  color: var(--gold);
  font-size: 10px;
}

.compact-preview .bracket-team {
  min-height: 26px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  padding: 5px 7px;
}

.compact-preview.standings-board {
  color: #fff;
}

.compact-preview .standings-table {
  min-width: 460px;
}

.compact-preview .standings-row {
  grid-template-columns: 42px minmax(120px, 1fr) repeat(5, 46px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
}

.compact-preview .standings-head {
  color: var(--gold);
  background: rgba(245, 190, 61, 0.1);
}

.preview-scoreboard {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 160px;
}

.preview-scoreboard div {
  display: grid;
  gap: 8px;
  text-align: center;
}

.preview-scoreboard strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.preview-scoreboard span {
  font-size: 68px;
  line-height: 1;
  font-weight: 900;
}

.preview-scoreboard em {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.saved-history-list {
  display: grid;
  gap: 10px;
}

.saved-history-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.history-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--blue);
  background: #e7f1f7;
  font-weight: 900;
}

.saved-history-row div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.saved-history-row span,
.saved-history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bible-history-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bible-history-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fbfcfd;
}

.bible-history-table th,
.bible-history-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.bible-history-table th {
  background: #edf3f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bible-history-row:hover {
  background: #f3f7f8;
}

.bible-history-details-row td {
  background: #f6f9fa;
  padding: 12px;
}

.bible-history-details-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bible-history-details-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.bible-history-details-table th,
.bible-history-details-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.bible-history-details-table tr:last-child td {
  border-bottom: 0;
}

.bible-history-details-table th {
  background: #edf3f5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: auto;
  padding: 4px 20px 10px 0;
}

.bracket-column {
  display: grid;
  grid-template-rows: 34px 1fr;
  min-width: 150px;
}

.bracket-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-slots {
  display: grid;
  grid-template-rows: repeat(var(--slot-count), minmax(34px, 1fr));
  gap: 0;
  align-items: stretch;
}

.bracket-team {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  padding: 0 10px;
  background: #cfe4ff;
  color: #33424d;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  z-index: 2;
}

.line-bracket .bracket-team {
  box-shadow: 0 1px 0 rgba(16, 47, 67, 0.08);
}

.line-bracket .bracket-line {
  position: absolute;
  display: block;
  background: #2f3a43;
  pointer-events: none;
  z-index: 1;
}

.line-bracket .bracket-line.horizontal {
  transform: translateY(-1px);
}

.line-bracket .bracket-line.vertical {
  transform: translateX(-1px);
}

.line-bracket .bracket-team.active {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 3px rgba(244, 124, 53, 0.62);
}

.line-bracket .bracket-team.winner {
  background: #bddcff;
  box-shadow: inset 0 0 0 3px rgba(18, 122, 85, 0.35);
}

.line-bracket .bracket-team.champion-team {
  background: #ffdd38;
  color: #0b1f3a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-preview .line-bracket .bracket-line,
.dashboard-page .line-bracket .bracket-line {
  background: #d7dee3;
}

.line-bracket.compact-preview .bracket-team {
  font-size: 11px;
  font-weight: 800;
}

.line-bracket.compact-preview .bracket-team.champion-team {
  font-size: 9px;
}

.double-elimination-bracket {
  position: relative;
  display: block;
  overflow: auto;
  padding: 0;
}

.de-bracket-lines {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.de-path {
  fill: none;
  stroke: #34434d;
  stroke-width: 2;
}

.de-path.loser-path {
  stroke: #b44b58;
  stroke-dasharray: 6 4;
}

.de-match-node,
.de-champion-node {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #94a9b6;
  border-radius: 4px;
  background: #f8fbfd;
  box-shadow: 0 2px 6px rgba(16, 47, 67, 0.12);
}

.de-match-node.elimination {
  border-color: #c78991;
}

.de-match-node.championship {
  border-color: #a78b22;
}

.de-match-node.active {
  box-shadow: 0 0 0 3px rgba(244, 124, 53, 0.72);
}

.de-match-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 7px;
  background: #dcecf5;
  color: #264454;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.de-match-node.elimination .de-match-title {
  background: #f4dfe2;
  color: #71313a;
}

.de-match-node.championship .de-match-title {
  background: #fff0aa;
  color: #594b12;
}

.de-match-team {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 26px;
  padding: 0 6px;
  border-top: 1px solid #dce3e8;
  color: #26363f;
}

.de-match-team small {
  color: #657985;
  font-size: 9px;
  font-weight: 900;
}

.de-match-team strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.de-match-team b {
  color: #17364a;
  font-size: 12px;
  text-align: right;
}

.de-match-team.winner {
  background: #d9f0e5;
  color: #0d684a;
}

.de-champion-node {
  display: grid;
  place-content: center;
  gap: 5px;
  border-color: #d0ad18;
  background: #ffdf45;
  color: #28230d;
  text-align: center;
}

.de-champion-node small {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.de-champion-node strong {
  max-width: 100%;
  overflow: hidden;
  padding: 0 8px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-preview .de-match-title {
  height: 20px;
  font-size: 8px;
}

.compact-preview .de-match-team {
  grid-template-columns: 25px minmax(0, 1fr) 18px;
  min-height: 23px;
  padding: 0 4px;
}

.compact-preview .de-match-team strong {
  font-size: 9px;
}

.projector .de-match-title {
  height: 30px;
  font-size: 13px;
}

.projector .de-match-team {
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  min-height: 31px;
  padding: 0 9px;
}

.projector .de-match-team small,
.projector .de-match-team strong,
.projector .de-match-team b {
  font-size: 15px;
}

.standings-board {
  display: block;
  min-height: 220px;
  overflow-x: auto;
}

.standings-table {
  display: grid;
  min-width: 560px;
  gap: 6px;
}

.standings-row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) repeat(5, 56px);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 800;
}

.standings-head {
  color: var(--muted);
  background: #eef3f6;
  text-transform: uppercase;
  font-size: 11px;
}

.standings-row span:not(:nth-child(2)),
.standings-row strong ~ span {
  text-align: center;
}

.pool-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: visible;
}

.pool-standings-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pool-standings-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pool-board .standings-table {
  min-width: 0;
}

.pool-board .standings-row {
  grid-template-columns: 42px minmax(110px, 1fr) repeat(5, 42px);
}

.elimination-table {
  min-width: 460px;
}

.elimination-row {
  grid-template-columns: 52px minmax(160px, 1fr) 60px 60px 110px;
}

.results-table {
  min-width: 820px;
}

.results-row {
  grid-template-columns: minmax(120px, 1fr) 64px minmax(140px, 1fr) 64px minmax(140px, 1fr) 64px minmax(140px, 1fr);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  background: #0b1f3a;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.dashboard-page {
  min-height: 100vh;
  background: #07162b;
  color: #fff;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(40, 120, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 92%, rgba(214, 168, 75, 0.12), transparent 25rem),
    var(--page);
}

.login-shell {
  width: min(420px, calc(100% - 32px));
}

.login-panel {
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.login-panel h1 {
  font-size: 28px;
}

.form-error {
  border: 1px solid rgba(182, 50, 50, 0.3);
  border-radius: 6px;
  padding: 10px;
  color: var(--red-dark);
  background: rgba(182, 50, 50, 0.08);
  font-weight: 800;
}

.form-success {
  border: 1px solid rgba(18, 122, 85, 0.3);
  border-radius: 6px;
  padding: 10px;
  color: var(--green-dark);
  background: rgba(18, 122, 85, 0.08);
  font-weight: 800;
}

.public-link {
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}

.display-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 28px;
}

.display-header {
  margin: 0;
}

.display-header > div:first-child {
  display: grid;
  gap: 4px;
}

.display-header > .display-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.display-title-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.display-event-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.display-event-details[hidden] {
  display: none;
}

.display-event-details .eyebrow {
  margin: 0;
}

.display-header h1 {
  font-size: clamp(22px, 2.6vw, 38px);
  color: var(--display-title-color);
}

.display-event-details .eyebrow {
  font-size: clamp(11px, 1.1vw, 16px);
}

.display-intro {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  text-align: center;
}

.display-intro[hidden] {
  display: none;
}

.display-intro h2 {
  max-width: min(88vw, 780px);
  color: var(--display-title-color);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.display-intro-content {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.display-intro-details {
  justify-content: center;
}

.display-intro-details .eyebrow {
  color: #cfd6dc;
  font-size: clamp(15px, 1.6vw, 24px);
}

.dashboard-page.complete-verse-dashboard .display-shell {
  gap: 10px;
  padding-top: 16px;
}

.dashboard-page.complete-verse-dashboard .display-header > div:first-child {
  display: grid;
  gap: 6px;
}

.dashboard-page.complete-verse-dashboard .display-header h1 {
  color: #cfd6dc;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.dashboard-page.complete-verse-dashboard .display-event-details .eyebrow {
  color: #cfd6dc;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.display-status {
  max-width: 42vw;
  border-color: rgba(245, 190, 61, 0.4);
  background: rgba(245, 190, 61, 0.12);
  color: var(--gold);
  text-align: right;
  white-space: normal;
}

.display-shell {
  color: var(--display-main-color);
}

.display-header-status {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.display-dashboard-status {
  border: 1px solid rgba(18, 122, 85, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  color: #bdf3d7;
  background: rgba(18, 122, 85, 0.16);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.display-scoreboard {
  display: grid;
  align-content: center;
  gap: 28px;
}

.display-round {
  color: var(--gold);
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.display-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(56px, 0.12fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.display-team {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.display-name {
  color: var(--display-player-color);
  min-height: 96px;
  font-size: clamp(38px, 6vw, 90px);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: center;
}

.display-score {
  font-size: clamp(
    calc(96px * var(--display-score-scale)),
    calc(15vw * var(--display-score-scale)),
    calc(260px * var(--display-score-scale))
  );
  line-height: 0.9;
  font-weight: 900;
  color: var(--display-score-color);
  text-align: center;
}

.display-vs {
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.display-bracket {
  min-height: 0;
  overflow: hidden;
}

.display-basic-game {
  min-height: 0;
  overflow: hidden;
}

.display-cbe {
  min-height: 0;
  overflow: hidden;
}

.display-complete-verse {
  min-height: 0;
  overflow: hidden;
}

.projector {
  height: calc(100vh - 150px);
  min-height: 420px;
  padding: 10px 0;
}

.projector .bracket-title {
  color: var(--gold);
  font-size: clamp(12px, 1.1vw, 18px);
}

.projector:not(.line-bracket) .bracket-team {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: clamp(13px, 1.2vw, 20px);
}

.projector.line-bracket .bracket-team {
  font-size: clamp(16px, 1.7vw, 26px);
}

.projector.line-bracket .bracket-team.champion-team {
  font-size: clamp(11px, 1vw, 15px);
}

.basic-display-grid {
  height: calc(100vh - 150px);
  min-height: 420px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.basic-display-grid.columns {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.basic-display-grid.square {
  width: min(100%, calc(100vh - 170px));
  max-width: 980px;
  aspect-ratio: 1;
  margin: 0 auto;
  grid-template-columns: repeat(var(--square-columns, 2), minmax(0, 1fr));
  align-content: stretch;
  align-items: stretch;
}

.basic-display-grid.circle {
  position: relative;
  display: block;
}

.basic-display-grid.circle .basic-display-player {
  position: absolute;
  left: var(--circle-x, 50%);
  top: var(--circle-y, 50%);
  width: min(var(--circle-card-width, 180px), 25vw);
  min-height: var(--circle-card-height, 110px);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 12px;
}

.basic-display-player {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 130px;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--display-backing);
  color: var(--display-player-color);
  text-align: center;
}

.basic-display-player strong {
  max-width: 100%;
  font-size: clamp(18px, 3vw, 46px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.basic-display-player span {
  color: var(--display-score-color);
  font-size: clamp(42px, 8vw, 130px);
  line-height: 0.9;
  font-weight: 900;
}

.basic-display-grid.circle .basic-display-player strong {
  font-size: clamp(13px, 2vw, 26px);
}

.basic-display-grid.circle .basic-display-player span {
  font-size: clamp(30px, 5vw, 68px);
}

.complete-verse-display {
  height: calc(100vh - 150px);
  min-height: 420px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
}

.dashboard-page.complete-verse-dashboard .complete-verse-display {
  height: calc(100vh - 92px);
  min-height: 0;
}

.complete-verse-phone-join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 22px);
  background: var(--display-backing);
}

.complete-verse-phone-join div {
  display: grid;
  gap: 6px;
}

.complete-verse-phone-join span {
  color: var(--display-main-color);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 900;
  text-transform: uppercase;
}

.complete-verse-phone-join strong {
  color: var(--display-score-color);
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.complete-verse-phone-join small,
.complete-verse-phone-join em,
.complete-verse-phone-join a {
  color: var(--display-main-color);
  font-size: clamp(13px, 1.2vw, 18px);
  font-style: normal;
  overflow-wrap: anywhere;
}

.complete-verse-phone-join a,
.join-url-box a {
  color: inherit;
  overflow-wrap: anywhere;
}

.complete-verse-phone-join img {
  width: clamp(120px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.complete-verse-question {
  display: grid;
  gap: 10px;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--display-backing);
  text-align: center;
}

.complete-verse-question-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.complete-verse-question-meta span {
  color: var(--display-score-color);
  font-size: clamp(15px, 1.8vw, 26px);
  font-weight: 900;
  text-transform: uppercase;
}

.complete-verse-question strong {
  color: var(--display-main-color);
  font-size: clamp(28px, 4.5vw, 72px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.complete-verse-question em {
  color: var(--display-score-color);
  font-size: clamp(28px, 4vw, 58px);
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
}

.training-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.training-display-team-group h3 {
  margin: 0 0 10px;
  color: var(--display-player-color);
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.training-phone-join-bottom {
  margin-top: 20px;
}

/* Bible Bowl Training keeps the complete match view within one dashboard:
   event details, scores, question, two eight-player rosters, then join QR. */
.dashboard-page.training-dashboard .display-shell {
  gap: 10px;
  padding: 14px 20px;
}

.dashboard-page.training-dashboard .display-header {
  gap: 12px;
}

.dashboard-page.training-dashboard .display-header-status {
  gap: 5px;
}

.dashboard-page.training-dashboard .display-dashboard-status,
.dashboard-page.training-dashboard .display-status {
  padding: 5px 10px;
  font-size: 11px;
}

.dashboard-page.training-dashboard .display-training {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 10px;
}

.dashboard-page.training-dashboard .display-round {
  font-size: clamp(14px, 1.4vw, 20px);
}

.dashboard-page.training-dashboard .display-teams {
  grid-template-columns: minmax(0, 1fr) minmax(28px, 0.06fr) minmax(0, 1fr);
  gap: 12px;
}

.dashboard-page.training-dashboard .display-team {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--display-backing);
}

.dashboard-page.training-dashboard .display-name {
  min-height: 0;
  font-size: clamp(22px, 2.8vw, 42px);
  text-align: left;
}

.dashboard-page.training-dashboard .display-score {
  font-size: clamp(
    calc(48px * var(--display-score-scale)),
    calc(5.5vw * var(--display-score-scale)),
    calc(82px * var(--display-score-scale))
  );
}

.dashboard-page.training-dashboard .display-vs {
  font-size: clamp(13px, 1.3vw, 20px);
}

.dashboard-page.training-dashboard .complete-verse-question {
  gap: 5px;
  padding: 10px 16px;
}

.dashboard-page.training-dashboard .complete-verse-question-meta span {
  font-size: clamp(11px, 1vw, 14px);
}

.dashboard-page.training-dashboard .complete-verse-question strong {
  font-size: clamp(19px, 2.2vw, 32px);
  line-height: 1.15;
}

.dashboard-page.training-dashboard .complete-verse-question em {
  font-size: clamp(17px, 1.8vw, 27px);
}

.dashboard-page.training-dashboard .training-display-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page.training-dashboard .training-display-team-group h3 {
  margin-bottom: 5px;
  font-size: clamp(13px, 1.2vw, 18px);
}

.dashboard-page.training-dashboard .training-display-team-group .complete-verse-player-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-page.training-dashboard .training-display-team-group .complete-verse-player {
  min-height: 48px;
  gap: 3px;
  padding: 6px;
}

.dashboard-page.training-dashboard .training-display-team-group .complete-verse-player-name strong {
  font-size: clamp(13px, 1.25vw, 19px);
}

.dashboard-page.training-dashboard .training-display-team-group .complete-verse-player-status {
  font-size: clamp(8px, 0.7vw, 10px);
}

.dashboard-page.training-dashboard .training-phone-join-bottom {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 12px;
}

.dashboard-page.training-dashboard .training-phone-join-bottom > div {
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
}

.dashboard-page.training-dashboard .training-phone-join-bottom span,
.dashboard-page.training-dashboard .training-phone-join-bottom small,
.dashboard-page.training-dashboard .training-phone-join-bottom a {
  font-size: clamp(10px, 0.9vw, 13px);
}

.dashboard-page.training-dashboard .training-phone-join-bottom strong {
  font-size: clamp(22px, 2.5vw, 34px);
}

.dashboard-page.training-dashboard .training-phone-join-bottom img {
  width: clamp(64px, 6vw, 84px);
  padding: 5px;
}

@media (max-width: 720px) {
  .dashboard-page.training-dashboard .display-shell {
    padding: 10px;
  }

  .dashboard-page.training-dashboard .display-header {
    flex-direction: column;
  }

  .dashboard-page.training-dashboard .display-header-status {
    justify-items: start;
  }

  .dashboard-page.training-dashboard .display-teams {
    grid-template-columns: 1fr;
  }

  .dashboard-page.training-dashboard .display-vs {
    display: none;
  }

  .dashboard-page.training-dashboard .training-display-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page.training-dashboard .training-phone-join-bottom > div {
    grid-template-columns: 1fr;
  }
}

.complete-verse-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-content: start;
}

.complete-verse-player {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--display-backing);
  color: var(--display-player-color);
  text-align: center;
}

.complete-verse-player.buzzed {
  border-color: rgba(245, 190, 61, 0.8);
  background: rgba(245, 190, 61, 0.18);
  box-shadow: 0 0 0 4px rgba(245, 190, 61, 0.12);
}

.complete-verse-player.disconnected {
  opacity: 0.58;
  border-style: dashed;
}

.complete-verse-player-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.complete-verse-player-name strong {
  font-size: clamp(18px, 2.5vw, 40px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.complete-verse-player-name b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--display-score-color);
  color: #0b1f3a;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1;
}

.complete-verse-player-status {
  color: #f1bfc5;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
}

.complete-verse-player span {
  color: var(--display-score-color);
  font-size: clamp(
    calc(40px * var(--display-score-scale)),
    calc(6vw * var(--display-score-scale)),
    calc(110px * var(--display-score-scale))
  );
  line-height: 0.9;
  font-weight: 900;
}

.complete-verse-winner {
  position: relative;
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
  overflow: hidden;
}

.complete-verse-winner strong {
  position: relative;
  z-index: 1;
  color: var(--display-title-color);
  font-size: clamp(56px, 9vw, 150px);
  line-height: 0.95;
  font-weight: 900;
}

.complete-verse-winner span {
  position: relative;
  z-index: 1;
  color: var(--display-score-color);
  font-size: clamp(24px, 3vw, 54px);
  font-weight: 900;
}

.celebration-burst {
  position: absolute;
  inset: 10%;
  background:
    radial-gradient(circle at 15% 25%, rgba(245, 190, 61, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 80% 20%, rgba(244, 124, 53, 0.95) 0 7px, transparent 8px),
    radial-gradient(circle at 25% 78%, rgba(18, 122, 85, 0.95) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 52% 35%, rgba(245, 190, 61, 0.55) 0 90px, transparent 92px);
  animation: celebrationPulse 1.8s ease-in-out infinite;
}

@keyframes celebrationPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.cbe-display-grid {
  height: calc(100vh - 150px);
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  align-content: center;
}

.cbe-display-team {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 180px;
  border: 2px solid var(--display-backing-border);
  border-radius: 8px;
  padding: 20px;
  background: var(--display-backing);
  color: var(--display-player-color);
  text-align: center;
}

.cbe-display-team.winner {
  border-color: rgba(18, 122, 85, 0.95);
  background: rgba(18, 122, 85, 0.26);
}

.cbe-display-team strong {
  font-size: clamp(24px, 3vw, 52px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cbe-display-team span {
  color: var(--display-score-color);
  font-size: clamp(52px, 7vw, 126px);
  line-height: 0.9;
  font-weight: 900;
}

.cbe-display-team em,
.cbe-display-team small {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 900;
}

.projector:not(.line-bracket) .bracket-team.active {
  border-color: var(--orange);
  background: rgba(244, 124, 53, 0.18);
}

.projector:not(.line-bracket) .bracket-team.winner {
  border-color: rgba(18, 122, 85, 0.9);
  background: rgba(18, 122, 85, 0.24);
}

.projector.standings-board {
  color: #fff;
}

.projector .standings-table {
  min-width: min(900px, 100%);
  max-width: 1100px;
  margin: 0 auto;
}

.projector .standings-row {
  grid-template-columns: 72px minmax(240px, 1fr) repeat(5, 72px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: clamp(14px, 1.5vw, 22px);
}

.projector .standings-head {
  color: var(--gold);
  background: rgba(245, 190, 61, 0.1);
}

.projector.pool-board {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-content: start;
}

.projector.pool-board .standings-row {
  grid-template-columns: 54px minmax(150px, 1fr) repeat(5, 54px);
  font-size: clamp(12px, 1.15vw, 18px);
}

.projector .elimination-row {
  grid-template-columns: 72px minmax(240px, 1fr) 80px 80px 140px;
}

.projector .results-table {
  min-width: min(1180px, 100%);
}

.projector .results-row {
  grid-template-columns: minmax(150px, 1fr) 82px minmax(180px, 1fr) 82px minmax(180px, 1fr) 82px minmax(180px, 1fr);
}

@media (max-width: 1200px) {
  .app-shell {
    width: min(100%, calc(100% - 56px));
  }

  .cbe-section .operator-grid.lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

  .operator-grid,
  .score-grid,
  .demo-grid,
  .display-teams,
  .saved-history-row,
  .mode-choice-grid,
  .basic-score-row,
  .cbe-score-row {
    grid-template-columns: 1fr;
  }

  .versus,
  .display-vs {
    display: none;
  }

  .display-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-header > .display-title-block {
    align-items: center;
  }

  .top-bar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .top-actions {
    justify-self: start;
  }

  .top-actions,
  .form-grid,
  .format-options {
    width: 100%;
  }

  .form-grid,
  .format-options,
  .user-password-reset-form {
    grid-template-columns: 1fr;
  }

  .cbe-page-header,
  .panel-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scoremount-logo-operator {
    width: 132px;
  }

  .user-row-header,
  .user-permission-group-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .user-permission-edit-actions {
    width: 100%;
  }

  .user-permission-edit-actions button {
    flex: 1 1 0;
  }

  .user-permission-summary-actions {
    grid-template-columns: 1fr auto;
    justify-items: start;
  }

  .cbe-progress-grid,
  .cbe-section .verse-library-row,
  .training-section .verse-library-row {
    grid-template-columns: 1fr;
  }

  .verse-question-number {
    text-align: left;
  }

  .display-status {
    max-width: none;
    text-align: left;
  }

  .display-shell {
    padding: 18px;
  }

  .section-tabs {
    flex-direction: column;
  }

  .cbe-tournament-box {
    width: 100%;
    max-width: none;
  }

  .cbe-tournament-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .top-title-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-header > .display-title-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .scoremount-logo-display {
    width: 116px;
  }
}

/* ------------------------------------------------------------------
   Scoremount product shell, overview, access management, and analytics
   ------------------------------------------------------------------ */

.control-page {
  --workspace-gutter: clamp(20px, 3vw, 44px);
  background: #f4f7fb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.control-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.control-layout > .app-shell {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 28px var(--workspace-gutter) 52px;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 264px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px 20px;
  color: #dbe7f5;
  background:
    radial-gradient(circle at 15% 0%, rgba(40, 120, 216, 0.24), transparent 32%),
    linear-gradient(180deg, #0b1f3a 0%, #071629 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: grid;
  gap: 9px;
  padding: 0 6px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.scoremount-logo-sidebar {
  width: 174px;
  border: 0;
  box-shadow: none;
}

.sidebar-brand > span {
  color: #8fa5bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 22px;
  padding: 24px 0;
}

.sidebar-nav-group {
  display: grid;
  gap: 5px;
}

.sidebar-nav-group > p {
  margin: 0 10px 5px;
  color: #7890aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

button.sidebar-nav-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  padding: 0 11px;
  color: #c8d6e7;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

button.sidebar-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

button.sidebar-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(40, 120, 216, 0.34), rgba(40, 120, 216, 0.16));
  box-shadow: inset 3px 0 0 #d6a84b;
}

.sidebar-nav-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.78;
}

.sidebar-nav-item.active .sidebar-nav-mark {
  border-color: #d6a84b;
  background: #d6a84b;
}

.sidebar-footer {
  display: grid;
  gap: 15px;
  margin-top: auto;
  padding: 18px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-display-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(214, 168, 75, 0.48);
  border-radius: 8px;
  color: #f4ce7f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-display-link:hover {
  color: #fff;
  border-color: #d6a84b;
  background: rgba(214, 168, 75, 0.12);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #0b1f3a;
  background: #d6a84b;
  font-size: 14px;
  font-weight: 900;
}

.sidebar-user > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-user strong,
.sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  color: #fff;
  font-size: 13px;
}

.sidebar-user small {
  color: #8fa5bd;
  font-size: 11px;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
  border-color: var(--line);
  background: #fff;
}

.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--ink);
}

.control-layout .top-bar {
  min-height: 70px;
  margin-bottom: 26px;
}

.control-layout .top-title-block h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.025em;
}

.control-layout .eyebrow,
.panel-kicker,
.overview-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel-kicker,
.overview-kicker {
  margin: 0 0 5px;
}

#mainModeSection.main-choice-section {
  display: block;
  min-height: 0;
}

.overview-layout {
  display: grid;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.overview-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 216px;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(40, 120, 216, 0.66), transparent 42%),
    linear-gradient(125deg, #0b1f3a, #12345d);
  box-shadow: 0 24px 56px rgba(11, 31, 58, 0.18);
}

.overview-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 44px solid rgba(214, 168, 75, 0.16);
  border-radius: 50%;
}

.overview-hero > * {
  position: relative;
  z-index: 1;
}

.overview-hero h2 {
  max-width: 720px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.overview-hero p:not(.overview-kicker) {
  max-width: 670px;
  margin: 14px 0 0;
  color: #c8d7e8;
  font-size: 15px;
  line-height: 1.6;
}

.overview-hero .overview-kicker {
  color: #f2c96e;
}

.overview-hero .dashboard-button {
  min-width: 184px;
  min-height: 46px;
  flex: 0 0 auto;
  border-color: #d6a84b;
  color: #0b1f3a;
  background: #d6a84b;
}

.overview-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.overview-status-card,
.analytics-kpi {
  display: grid;
  gap: 5px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.055);
}

.overview-status-card > span,
.analytics-kpi > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.overview-status-card strong {
  font-size: 21px;
}

.overview-status-card small,
.analytics-kpi small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.overview-modules-panel.main-choice-panel {
  width: 100%;
}

.overview-modules-panel .mode-choice-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.overview-modules-panel .mode-choice-button {
  min-height: 128px;
  align-content: end;
  border-radius: 11px;
  padding: 18px;
  background: linear-gradient(145deg, #fff, #f8fbff);
}

.overview-modules-panel .mode-choice-button strong {
  font-size: 18px;
}

.analytics-section,
.user-management-section {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.analytics-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 10px 0 22px;
}

.analytics-heading h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
}

.analytics-heading p:not(.panel-kicker) {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.analytics-range-label {
  display: grid;
  min-width: 180px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr);
  gap: 10px;
  min-width: min(390px, 100%);
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-kpi {
  min-height: 132px;
  align-content: start;
}

.analytics-kpi strong {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.analytics-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.analytics-chart-panel,
#auditPanel {
  grid-column: 1 / -1;
}

.analytics-panel {
  min-width: 0;
  border-radius: 12px;
}

.analytics-chart {
  display: flex;
  align-items: end;
  min-height: 210px;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 8px 0;
  border-top: 1px solid #edf1f6;
}

.analytics-bar {
  display: grid;
  grid-template-rows: 160px auto;
  min-width: 34px;
  flex: 1 0 34px;
  gap: 8px;
  text-align: center;
}

.analytics-bar > span {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 160px;
  border-bottom: 1px solid #dbe4ee;
}

.analytics-bar i {
  width: min(22px, 68%);
  height: var(--analytics-height);
  min-height: 6px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #2878d8, #175ea9);
}

.analytics-bar small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.analytics-ranked-list,
.audit-list {
  display: grid;
  gap: 4px;
}

.analytics-ranked-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
}

.analytics-ranked-row:first-child {
  border-top: 0;
}

.analytics-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--blue);
  background: #eaf3ff;
  font-size: 11px;
  font-weight: 900;
}

.analytics-ranked-row > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.analytics-ranked-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-ranked-row > b {
  font-size: 13px;
}

.analytics-rank-bar {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.analytics-rank-bar i {
  display: block;
  width: var(--analytics-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.analytics-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.analytics-user-activity-panel {
  grid-column: 1 / -1;
}

.analytics-panel-description {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.analytics-duration-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  color: #40566f;
  background: #f5f9fe;
  font-size: 12px;
  line-height: 1.5;
}

.analytics-user-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.analytics-user-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e2e9f1;
  border-radius: 10px;
}

.analytics-user-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
}

.analytics-user-table th,
.analytics-user-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e8eef5;
  text-align: left;
  vertical-align: middle;
}

.analytics-user-table th {
  color: #53657a;
  background: #f6f8fb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analytics-user-table tbody tr:last-child td {
  border-bottom: 0;
}

.analytics-user-table tbody tr.selected {
  background: #eef6ff;
}

.analytics-user-identity {
  display: grid;
  min-width: 140px;
  gap: 3px;
}

.analytics-user-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-user-identity small,
.analytics-user-table td {
  color: var(--muted);
  font-size: 12px;
}

.analytics-active-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  color: #176447;
  font-size: 10px;
  font-weight: 800;
}

.analytics-active-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a9b68;
  box-shadow: 0 0 0 3px rgba(26, 155, 104, 0.14);
}

.analytics-view-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #bfd3eb;
  border-radius: 7px;
  color: #155fa9;
  background: #f4f9ff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-user-detail {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fbfcfe;
}

.analytics-user-detail-header {
  padding: 16px;
  border-bottom: 1px solid #e4ebf3;
  background: #fff;
}

.analytics-user-detail-header h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.analytics-user-detail-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.analytics-user-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.analytics-user-detail-metrics div {
  padding: 10px;
  border-radius: 8px;
  background: #eef4fb;
}

.analytics-user-detail-metrics span,
.analytics-user-detail-metrics strong {
  display: block;
}

.analytics-user-detail-metrics span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analytics-user-detail-metrics strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.analytics-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.analytics-page-tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #225b92;
  background: #e6f1fc;
  font-size: 10px;
  font-weight: 800;
}

.analytics-user-timeline {
  max-height: 380px;
  overflow-y: auto;
  border-top: 1px solid #e4ebf3;
  background: #fff;
}

.analytics-user-timeline-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 11px 13px;
  border-bottom: 1px solid #edf1f6;
}

.analytics-user-timeline-row::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.analytics-user-timeline-row strong,
.analytics-user-timeline-row small,
.analytics-user-timeline-row time {
  display: block;
}

.analytics-user-timeline-row strong {
  font-size: 12px;
}

.analytics-user-timeline-row small,
.analytics-user-timeline-row time {
  color: var(--muted);
  font-size: 10px;
}

.analytics-user-timeline-row time {
  white-space: nowrap;
}

.audit-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf1f6;
}

.audit-row:first-child {
  border-top: 0;
}

.audit-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #d6a84b;
  box-shadow: 0 0 0 4px rgba(214, 168, 75, 0.16);
}

.audit-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.audit-row time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.user-row {
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(11, 31, 58, 0.045);
}

.user-identity-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.role-badge,
.user-access-chips small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  color: #37516c;
  background: #edf2f7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-badge.role-admin {
  color: #6a4b0d;
  background: #fff4d9;
}

.user-access-chips {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.user-access-chips small {
  min-height: 20px;
  color: #1d5c43;
  background: #e8f5ef;
  font-size: 9px;
}

.user-permission-edit-actions select {
  min-width: 176px;
}

.training-workflow-header {
  display: grid;
  width: min(100%, 1016px);
  gap: 18px;
  margin: 12px auto 18px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.055);
}

.training-workflow-header h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
}

.training-workflow-header > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.workflow-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8495a8;
  font-size: 12px;
}

.workflow-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: 34px;
  width: calc(100% - 38px);
  height: 2px;
  background: #dfe7ef;
}

.workflow-stepper span,
.workflow-stepper strong {
  position: relative;
  z-index: 1;
}

.workflow-stepper span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid #dfe7ef;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
}

.workflow-stepper li.active {
  color: var(--ink);
}

.workflow-stepper li.active span {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(40, 120, 216, 0.12);
}

.workflow-stepper li.complete {
  color: #3e6e5a;
}

.workflow-stepper li.complete span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.workflow-stepper li.complete:not(:last-child)::after {
  background: rgba(18, 122, 85, 0.45);
}

.training-join-panel {
  border-color: rgba(40, 120, 216, 0.3);
  background: linear-gradient(145deg, #fff, #f4f9ff);
}

@media (max-width: 1180px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .overview-modules-panel .mode-choice-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 1020px) {
  .control-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .control-layout > .app-shell {
    width: 100%;
    padding-top: 18px;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 20px 0 60px rgba(3, 14, 28, 0.35);
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-open::before {
    content: "";
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(4, 16, 31, 0.52);
  }

  .sidebar-toggle {
    display: inline-block;
  }

  .analytics-content-grid {
    grid-template-columns: 1fr;
  }

  .analytics-chart-panel,
  .analytics-user-activity-panel,
  #auditPanel {
    grid-column: auto;
  }

  .analytics-user-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .control-layout > .app-shell {
    padding-inline: 14px;
  }

  .overview-hero,
  .analytics-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-hero {
    min-height: 0;
    padding: 28px 22px;
  }

  .overview-hero .dashboard-button,
  .analytics-filters,
  .analytics-range-label {
    width: 100%;
  }

  .analytics-filters {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .overview-status-grid,
  .analytics-kpi-grid,
  .overview-modules-panel .mode-choice-grid {
    grid-template-columns: 1fr;
  }

  .analytics-kpi {
    min-height: 104px;
  }

  .analytics-user-detail-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-stepper {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .workflow-stepper li::after {
    display: none;
  }

  .user-permission-edit-actions {
    flex-direction: column;
  }

  .user-permission-edit-actions select {
    width: 100%;
  }

  .audit-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .audit-row time {
    grid-column: 2;
  }
}
