.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 22px 72px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.subhead h3 {
  margin: 0;
  font-size: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 6px;
  font-size: 13px;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.account-column,
.account-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.account-column .module,
.account-stack .module {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.module {
  padding: 18px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.muted {
  color: var(--text-muted);
  margin: 10px 0 0;
}

.wolf-subtitle {
  margin-top: 4px;
}

.wolf-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(125, 208, 255, 0.22);
  border-radius: 12px;
  background: rgba(125, 208, 255, 0.06);
}

.wolf-host {
  margin-top: 4px;
  color: var(--accent-cyan);
  overflow-wrap: anywhere;
}

.wolf-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wolf-summary-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.wolf-summary-item span,
.wolf-summary-item strong {
  display: block;
}

.wolf-summary-item strong {
  margin-top: 4px;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.wolf-detail {
  margin-top: 10px;
}

.ok-text {
  color: rgba(120, 255, 160, 0.95) !important;
}

.warn-text {
  color: rgba(255, 207, 104, 0.95) !important;
}

.kv {
  margin-top: 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.row:first-child {
  border-top: none;
}

.k {
  color: var(--text-muted);
}

.v {
  color: var(--text-strong);
}

.link {
  color: var(--accent-cyan);
  text-decoration: none;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

button.primary {
  background: linear-gradient(90deg, #4f8bff, #7dd0ff);
  color: #0b1222;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.secret-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

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

.secret-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.secret {
  word-break: break-word;
  color: var(--text-strong);
}

.hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.jellyfin-detail {
  margin-top: auto;
}

.copy {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.input,
.wolf-controls select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
  padding: 8px 10px;
}

.wolf-card .v {
  text-align: right;
  overflow-wrap: anywhere;
}

.pair-row,
.wolf-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.7fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.manual-unlock {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  margin-top: 10px;
}

.pair-name {
  overflow-wrap: anywhere;
}

.copied {
  font-size: 12px;
  color: rgba(120, 255, 160, 0.9);
}

.error-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 87, 87, 0.5);
  background: rgba(255, 87, 87, 0.06);
  padding: 10px 12px;
}

@media (max-width: 820px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-stack .module {
    flex: none;
  }

  .account-column .module {
    flex: none;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 56px;
  }

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

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

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

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wolf-connection {
    align-items: stretch;
    flex-direction: column;
  }

  .wolf-summary {
    grid-template-columns: 1fr;
  }

  .pair-row,
  .wolf-controls,
  .manual-unlock {
    grid-template-columns: 1fr;
  }

  .secret-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .req-row {
    grid-template-columns: 1fr;
  }
}

.admin {
  margin-top: 12px;
}

.requests {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.req-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) minmax(200px, 1fr) minmax(140px, 0.6fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
}

.req-summary {
  display: grid;
  gap: 6px;
}

.req-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.req-flags {
  display: grid;
  gap: 8px;
  align-content: start;
}

.req-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note {
  color: var(--text-muted);
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.flag-pill input {
  width: 14px;
  height: 14px;
}

.req-note .input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-primary);
  padding: 8px 10px;
}

.req-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.req-action-stack {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .req-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .note {
    white-space: normal;
  }
}
