:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #11182a;
  --panel: rgba(18, 26, 45, 0.88);
  --panel-strong: #151e33;
  --sidebar: #0a0f1d;
  --text: #f5f7fb;
  --muted: #95a2b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --brand: #5fc4e3;
  --brand-strong: #86d8ef;
  --brand-soft: rgba(95, 196, 227, 0.14);
  --success: #39d98a;
  --warning: #f8c15c;
  --danger: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  --radius: 20px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-soft: #eaf0f8;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --sidebar: #111827;
  --text: #172033;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --brand-soft: rgba(95, 196, 227, 0.12);
  --shadow: 0 20px 50px rgba(30, 41, 59, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(95, 196, 227, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 268px;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--sidebar);
  color: #f8fafc;
}

.brand {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 13px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #6bcfe9, #4db7d9);
  box-shadow: 0 10px 30px rgba(95, 196, 227, 0.24);
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small,
.sidebar-footer small {
  color: #8f9bb0;
  font-size: 12px;
}

.navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding: 22px 15px;
}

.nav-label {
  margin: 0 10px 8px;
  color: #66738a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navigation a {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: #9da9bd;
  padding: 0 13px;
  font-weight: 650;
  transition: 160ms ease;
}

.navigation a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.navigation a.active {
  background: linear-gradient(90deg, rgba(95, 196, 227, 0.18), rgba(95, 196, 227, 0.07));
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-icon {
  display: grid;
  width: 25px;
  place-items: center;
  color: #7c899f;
}

.navigation a.active .nav-icon {
  color: var(--brand-strong);
}

.sidebar-footer {
  display: grid;
  gap: 3px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #d6dce7;
  font-size: 12px;
}

.main-content {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.topbar-title small,
.profile small {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions form {
  margin: 0;
}

.theme-toggle,
.notification-button,
.menu-toggle,
.logout-button {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.notification-button {
  position: relative;
}

.notification-button > span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
}

.profile {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.profile > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 850;
}

.profile > div {
  display: grid;
}

.profile strong {
  max-width: 155px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  padding: 0 13px;
}

.menu-toggle {
  display: none;
}

.content {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading h1,
.auth h1 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-heading p,
.auth p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quick-actions,
.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.filter-bar > strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #e88908);
  color: #191309;
  padding: 0 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(95, 196, 227, 0.15);
}

.button.subtle,
button.subtle,
button.ghost {
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: none;
}

button.danger,
.button.danger {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  color: var(--danger);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.metric-card::after {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-soft);
  content: "";
  filter: blur(8px);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 196, 227, 0.34);
}

.metric-icon,
.status-icon,
.feed-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.metric-icon {
  width: 46px;
  height: 46px;
}

.metric-copy {
  display: grid;
  min-width: 0;
}

.metric-copy small,
.metric-copy em,
.detail-grid small,
.status-list small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.metric-copy strong {
  overflow: hidden;
  margin: 2px 0;
  font-size: 21px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-arrow {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: var(--muted);
}

.dashboard-grid,
.grid-two,
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.span-2 {
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel + .panel,
.panel + .table-panel,
.table-panel + .panel {
  margin-top: 20px;
}

.dashboard-grid .panel + .panel,
.grid-two .panel + .panel,
.cards .panel + .panel {
  margin-top: 0;
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
  letter-spacing: -0.025em;
}

.panel h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.panel p {
  color: var(--muted);
}

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

.panel-heading > div {
  display: grid;
  gap: 4px;
}

.panel-heading a {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 750;
}

.record-count {
  color: var(--muted);
  font-size: 12px;
}

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

.status-list > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  padding: 15px;
}

.status-list > div > span:last-child {
  display: grid;
  min-width: 0;
}

.status-list strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-icon,
.feed-icon {
  width: 38px;
  height: 38px;
}

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

.summary-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}

.summary-list a:last-child {
  border-bottom: 0;
}

.summary-list span {
  color: var(--muted);
}

.summary-list strong {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

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

.detail-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  padding: 15px;
}

.detail-grid > div.wide {
  grid-column: 1 / -1;
}

.detail-grid strong {
  font-size: 14px;
}

.rows {
  display: grid;
  gap: 0;
  margin: 0;
}

.rows > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.rows > div:last-child {
  border-bottom: 0;
}

.rows dt {
  color: var(--muted);
}

.rows dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.feed {
  display: grid;
}

.feed > a,
.feed > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.feed > a:last-child,
.feed > div:last-child {
  border-bottom: 0;
}

.feed > a > span:nth-child(2),
.feed > div > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

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

.feed small,
.feed time {
  color: var(--muted);
  font-size: 12px;
}

.compact-empty,
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
}

.compact-empty {
  min-height: 180px;
  color: var(--muted);
  gap: 12px;
}

.compact-empty svg {
  width: 28px;
  height: 28px;
}

.empty-state {
  min-height: 360px;
}

.empty-state h2 {
  margin: 16px 0 4px;
}

.empty-state p {
  max-width: 620px;
}

.empty-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 22px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.empty-icon svg {
  width: 34px;
  height: 34px;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .panel-heading {
  margin: 0;
  padding: 22px 24px 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: color-mix(in srgb, var(--panel-strong) 62%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

tr:hover td {
  background: color-mix(in srgb, var(--brand-soft) 30%, transparent);
}

.empty-cell {
  height: 130px;
  color: var(--muted);
  text-align: center;
}

.badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 80%, transparent);
  color: var(--muted);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success {
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--success);
}

.badge.warning {
  border-color: color-mix(in srgb, var(--warning) 28%, transparent);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  color: var(--warning);
}

.badge.danger {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

form {
  display: grid;
  gap: 15px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
  color: var(--text);
  padding: 0 13px;
}

textarea {
  min-height: 130px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(95, 196, 227, 0.62);
  box-shadow: 0 0 0 4px rgba(95, 196, 227, 0.09);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px auto;
  align-items: end;
  gap: 10px;
}

.inline {
  display: inline-flex;
  gap: 7px;
  margin: 2px 6px 2px 0;
}

.confirm-box {
  align-items: center;
}

.confirm-box summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--danger);
  padding: 0 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.confirm-box summary::-webkit-details-marker {
  display: none;
}

.confirm-box form {
  align-items: center;
}

.confirm-box span {
  color: var(--muted);
  font-size: 13px;
}

.inline.compact {
  align-items: center;
}

.inline.compact input {
  width: 160px;
}

.rights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.notice {
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--success);
  padding: 13px 15px;
  font-weight: 700;
}

.notice.bad {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

.narrow {
  max-width: 720px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-shell .sidebar {
  display: none;
}

.auth-shell .main-content {
  width: min(1080px, 100%);
}

.auth-shell .content {
  width: 100%;
  padding: 0;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: 70px;
}

.auth > div:first-child {
  position: relative;
  padding: 40px;
}

.auth > div:first-child::before {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #6bcfe9, #4db7d9);
  box-shadow: 0 24px 50px rgba(95, 196, 227, 0.2);
  color: #201505;
  content: "B";
  font-size: 36px;
  font-weight: 900;
}

.auth-card {
  padding: 30px;
}

.auth-card h2 {
  margin-bottom: 6px;
  font-size: 25px;
}

.auth-card > a {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 190ms ease;
  }

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

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.52);
  }

  .nav-open .sidebar-backdrop {
    display: block;
  }

  .main-content {
    grid-column: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar-title {
    margin-right: auto;
  }

  .profile > div,
  .logout-button span {
    display: none;
  }

  .profile {
    min-width: auto;
  }

  .content {
    padding: 24px 18px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .auth > div:first-child {
    padding: 10px;
  }
}

@media (max-width: 680px) {
  .metric-grid,
  .grid-two,
  .cards,
  .status-list,
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > div.wide,
  .form-grid .full {
    grid-column: auto;
  }

  .metric-card {
    padding: 17px;
  }

  .panel {
    padding: 18px;
    border-radius: 16px;
  }

  .table-panel {
    padding: 0;
  }

  .table-panel .panel-heading {
    padding: 18px 18px 10px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-top: 1px solid var(--line);
    padding: 12px 18px;
  }

  td {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    border: 0;
    padding: 8px 0;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .empty-cell {
    display: block;
    height: auto;
    padding: 34px 0;
  }

  .empty-cell::before {
    display: none;
  }

  .feed > a,
  .feed > div {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .feed time {
    grid-column: 2;
  }

  .rows > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .inline,
  .inline.compact {
    display: grid;
    width: 100%;
  }

  .inline.compact input {
    width: 100%;
  }

  .auth-shell {
    padding: 16px;
  }

  .auth-card {
    padding: 22px;
  }
}

.auth-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border-radius: 24px;
  object-fit: contain;
  background: linear-gradient(145deg, #6bcfe9, #4db7d9);
  padding: 8px;
  box-shadow: 0 24px 50px rgba(95, 196, 227, 0.2);
}

.auth > div:first-child:has(.auth-logo)::before {
  display: none;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.copy-row input {
  width: 100%;
}

.monitor-config {
  display: grid;
  min-width: min(760px, 86vw);
  gap: 14px;
  padding: 14px 0 0;
}

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

.module-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 82px;
  align-items: center;
  gap: 10px;
}

.module-option input[type="number"] {
  min-width: 0;
}

.monitor-display {
  min-height: 100vh;
  overflow: hidden;
  background: #08111f;
  color: #f8fafc;
}

:root[data-monitor-theme="light"] .monitor-display {
  background: #f3f6fb;
  color: #172033;
}

.monitor-screen {
  display: grid;
  width: 100vw;
  min-height: 100vh;
  gap: clamp(18px, 2vw, 34px);
  padding: clamp(22px, 3vw, 58px);
}

.monitor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.monitor-head div {
  display: grid;
  gap: 6px;
}

.monitor-head strong {
  font-size: clamp(34px, 3.2vw, 76px);
  line-height: 1;
}

.monitor-head span,
.monitor-head time {
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: clamp(22px, 2vw, 48px);
}

.monitor-notice {
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 8px;
  padding: clamp(14px, 1.5vw, 28px);
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-size: clamp(20px, 1.6vw, 38px);
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(16px, 1.6vw, 32px);
  align-content: start;
}

.monitor-card {
  display: grid;
  min-height: clamp(190px, 18vh, 330px);
  gap: 12px;
  align-content: center;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  padding: clamp(22px, 2.4vw, 48px);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.monitor-card span {
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-size: clamp(18px, 1.3vw, 32px);
  font-weight: 800;
}

.monitor-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(42px, 4.8vw, 118px);
  line-height: 0.95;
}

.monitor-card p {
  margin: 0;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: clamp(18px, 1.4vw, 34px);
}

.monitor-card img {
  max-width: min(420px, 70%);
  max-height: 170px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .copy-row,
  .module-option {
    grid-template-columns: 1fr;
  }

  .monitor-head {
    display: grid;
  }
}
