:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7f8;
  color: #17212b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(26, 188, 156, 0.13), transparent 280px),
    #f5f7f8;
}

button,
a {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

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

.eyebrow,
.label {
  margin: 0 0 6px;
  color: #0d766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

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

h2 {
  font-size: 18px;
}

.connect,
.primary,
.icon-button {
  border: 0;
  cursor: pointer;
}

.connect,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.connect:hover,
.primary:hover {
  background: #263241;
}

.primary:disabled {
  cursor: progress;
  background: #7b8794;
}

.status-band {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dce4e8;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  margin-bottom: 16px;
}

.status-band .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a3adb8;
}

.status-band.ready .dot {
  background: #10b981;
}

.status-band.warning .dot {
  background: #f59e0b;
}

.workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.panel {
  border: 1px solid #dce4e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(30, 41, 59, 0.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 18px;
  border-bottom: 1px solid #edf1f3;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef4f4;
  color: #0f766e;
  font-size: 20px;
  font-weight: 800;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f7f3;
  color: #0d766e;
  font-size: 12px;
  font-weight: 800;
}

.account-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.account {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dce4e8;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.account.selected {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.account img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.account strong,
.account small {
  display: block;
}

.account small {
  margin-top: 3px;
  color: #64748b;
}

.empty {
  padding: 24px;
  color: #64748b;
  line-height: 1.5;
}

.empty.error {
  color: #b42318;
}

.upload-panel {
  min-height: 430px;
}

form {
  padding: 18px;
}

.file-drop {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 28px;
  border: 2px dashed #b8c7ce;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.09), rgba(244, 114, 182, 0.08)),
    #fbfdfd;
  cursor: pointer;
  text-align: center;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.file-title {
  display: block;
  max-width: 100%;
  color: #17212b;
  font-size: 22px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.file-meta {
  display: block;
  max-width: 520px;
  margin-top: 10px;
  color: #5b6775;
  line-height: 1.5;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.result {
  margin: 0 18px 18px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #dce4e8;
  background: #f8fafc;
  color: #334155;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result.success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.result.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.result.pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 20px, 1120px);
    padding-top: 20px;
  }

  .topbar,
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .connect {
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }
}
