:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

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

.panel {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgb(0 0 0 / 45%);
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 650;
}

h2 {
  font-size: 15px;
  font-weight: 650;
  color: #e2e8f0;
}

.session,
.status,
.empty {
  color: #94a3b8;
  font-size: 14px;
}

.link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e0f2fe;
  text-decoration: none;
  white-space: nowrap;
}

.link:hover {
  background: #1e293b;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #020617;
  color: #f8fafc;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  background: #1e293b;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button.primary {
  background: #22d3ee;
  color: #020617;
  border-color: #22d3ee;
  font-weight: 650;
}

.button.primary:hover:not(:disabled) {
  background: #67e8f9;
}

.toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #020617;
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #22d3ee;
}

.documents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #020617;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 6px;
  background: #0f172a;
}

.document-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-meta {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 560px) {
  .header,
  .document-item {
    flex-direction: column;
  }

  .actions,
  .button,
  .toggle,
  .link {
    width: 100%;
  }

  .link,
  .button,
  .toggle {
    justify-content: center;
  }
}
