* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(160deg, #7b8cff 0%, #6a5acd 45%, #7b4bb8 100%);
  color: #333;
}

.card {
  background: #fff;
  width: min(440px, 92vw);
  padding: 2.5rem 2.25rem 2rem;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(40, 20, 80, 0.18);
  text-align: center;
}

.card.wide {
  width: min(1100px, 94vw);
  padding: 1.75rem 2rem 2rem;
  text-align: left;
}

.card-header .mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: block;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.card.wide .card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}

.card.wide .card-header .mark {
  width: 40px;
  height: 40px;
  margin: 0;
}

.card.wide h1 {
  margin: 0;
  flex: 1;
}

.session {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.user {
  color: #6b7280;
  font-size: 0.9rem;
}

.lead {
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.status {
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card.wide .status {
  margin: 1.25rem 0 0;
}

.status:empty { display: none; }

.status.error {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fdecec;
  color: #b42318;
  text-align: left;
}

.providers {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.providers li + li { margin-top: 0.5rem; }

button {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

button.provider {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f4f5fb;
  color: #3d3a8c;
  text-align: left;
}

button.provider:hover { background: #e8e9f8; }

button.primary {
  background: #5b4cdb;
  color: #fff;
  padding: 0.7rem 1.4rem;
}

button.primary:hover { background: #4a3ec4; }

button.secondary {
  background: #f4f5fb;
  color: #3d3a8c;
  padding: 0.7rem 1.4rem;
}

button.secondary:hover { background: #e8e9f8; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.toolbar input {
  font: inherit;
  min-width: 260px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d9dbe8;
  border-radius: 10px;
  color: #333;
}

.toolbar input:focus {
  outline: 2px solid #5b4cdb;
  outline-offset: 1px;
  border-color: transparent;
}

.count {
  flex: 1;
  color: #6b7280;
  font-size: 0.9rem;
}

.table-wrap { overflow-x: auto; }

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

th {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

td.key {
  color: #3d3a8c;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

pre {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #f4f5fb;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.invalid {
  color: #b42318;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
