body.sol-shell-mode-auth,
body.sol-shell-mode-dashboard {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #10203a;
}

body.sol-shell-mode-editor {
  background: #0f1723;
}

#root[data-sol-shell-root='true'] {
  min-height: 100vh;
}

.sol-shell-app {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #10203a;
}

.sol-shell-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
}

.sol-shell-auth-hero {
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.sol-shell-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.sol-shell-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sol-shell-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.26);
}

.sol-shell-auth-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sol-shell-auth-copy {
  margin: 0;
  max-width: 34rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.sol-shell-auth-points {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.sol-shell-point {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.sol-shell-point-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  margin-top: 0.38rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
  flex: none;
}

.sol-shell-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.sol-shell-card {
  width: min(480px, 100%);
  border-radius: 30px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.sol-shell-card h1,
.sol-shell-card h2,
.sol-shell-card h3,
.sol-shell-card p {
  color: inherit;
}

.sol-shell-card-header {
  margin-bottom: 1.25rem;
}

.sol-shell-card-header h2 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.sol-shell-card-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.sol-shell-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 0.5rem;
  padding: 0.35rem;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  background: #edf2ff;
}

.sol-shell-tab {
  border: 0;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #475569;
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.sol-shell-tab.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.12);
}

.sol-shell-form {
  display: grid;
  gap: 1rem;
}

.sol-shell-field {
  display: grid;
  gap: 0.45rem;
}

.sol-shell-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}

.sol-shell-field input,
.sol-shell-status-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sol-shell-field input:focus,
.sol-shell-status-select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.sol-shell-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.sol-shell-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.sol-shell-button {
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.sol-shell-button:hover {
  transform: translateY(-1px);
}

.sol-shell-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.sol-shell-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.sol-shell-button-secondary {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.sol-shell-button-ghost {
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
}

.sol-shell-button-danger {
  color: #fef2f2;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 18px 34px rgba(185, 28, 28, 0.2);
}

.sol-shell-notice {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font-size: 0.94rem;
  line-height: 1.65;
}

.sol-shell-notice-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.sol-shell-notice-success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.sol-shell-note {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sol-shell-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
}

.sol-shell-dashboard {
  min-height: 100vh;
  padding: 2.5rem 2.2rem 2rem;
  box-sizing: border-box;
}

.sol-shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sol-shell-topbar-left {
  display: grid;
  gap: 0.3rem;
}

.sol-shell-topbar-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.sol-shell-topbar-crumb {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.sol-shell-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sol-shell-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  font-size: 0.92rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.sol-shell-user-pill strong {
  font-weight: 800;
}

.sol-shell-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sol-shell-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(191, 219, 254, 0.36);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.sol-shell-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0.15rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.sol-shell-column-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.05rem;
}

.sol-shell-column-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-flex;
}

.sol-shell-column-icon-warning {
  background: #f59e0b;
}

.sol-shell-column-icon-info {
  background: #0ea5e9;
}

.sol-shell-column-icon-success {
  background: #16a34a;
}

.sol-shell-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.sol-shell-count-warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.sol-shell-count-info {
  color: #0f4c81;
  background: rgba(14, 165, 233, 0.16);
}

.sol-shell-count-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
}

.sol-shell-column-body {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-top: 1rem;
}

.sol-shell-empty {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 100%;
  padding: 2rem 1rem;
  color: #94a3b8;
  text-align: center;
}

.sol-shell-empty-mark {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.32);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.sol-shell-project-card {
  border-radius: 18px;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.55);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 0.85rem;
}

.sol-shell-project-code {
  font-size: 0.86rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.05em;
}

.sol-shell-project-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.sol-shell-project-meta {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.92rem;
}

.sol-shell-project-date {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.sol-shell-project-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sol-shell-project-actions-left,
.sol-shell-project-actions-right {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.sol-shell-mini-button {
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.sol-shell-mini-button.is-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.sol-shell-loading {
  display: grid;
  place-items: center;
  min-height: 420px;
  color: #475569;
}

.sol-shell-editor-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 80;
  width: min(430px, calc(100vw - 2rem));
  border-radius: 22px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 24px 55px rgba(2, 8, 23, 0.42);
  color: #e2e8f0;
  backdrop-filter: blur(14px);
}

.sol-shell-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.sol-shell-editor-title {
  margin: 0;
  font-size: 0.98rem;
}

.sol-shell-editor-subtitle {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.sol-shell-editor-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.sol-shell-editor-status.is-connected {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.sol-shell-editor-status.is-syncing {
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
}

.sol-shell-editor-status.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.sol-shell-editor-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sol-shell-editor-actions .sol-shell-button,
.sol-shell-editor-actions .sol-shell-status-select {
  flex: 1;
}

.sol-shell-editor-actions .sol-shell-button {
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
}

.sol-shell-editor-bar {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #e2e8f0;
  backdrop-filter: none;
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.sol-shell-editor-toggle {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.32);
  backdrop-filter: blur(14px);
}

.sol-shell-editor-toggle-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.sol-shell-editor-toggle-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sol-shell-editor-toggle-code {
  font-size: 0.95rem;
  line-height: 1;
}

.sol-shell-editor-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
  flex: none;
}

.sol-shell-editor-menu {
  width: min(360px, calc(100vw - 2rem));
  border-radius: 22px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 24px 55px rgba(2, 8, 23, 0.42);
  backdrop-filter: blur(14px);
}

.sol-shell-editor-menu-head {
  margin-bottom: 0.85rem;
}

.sol-shell-editor-menu-title {
  margin: 0;
  font-size: 1rem;
  color: #f8fafc;
}

.sol-shell-editor-menu-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sol-shell-editor-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.sol-shell-editor-menu-grid .sol-shell-button,
.sol-shell-editor-menu-grid .sol-shell-status-select {
  width: 100%;
}

.sol-shell-editor-menu-grid .sol-shell-button {
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
}

.sol-shell-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.75rem;
  width: min(340px, calc(100vw - 2rem));
}

.sol-shell-toast {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  animation: sol-shell-toast-in 180ms ease-out;
}

.sol-shell-toast-info {
  background: rgba(30, 64, 175, 0.94);
}

.sol-shell-toast-success {
  background: rgba(22, 101, 52, 0.94);
}

.sol-shell-toast-error {
  background: rgba(153, 27, 27, 0.96);
}

.sol-shell-toast-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.sol-shell-toast-copy {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.88);
}

@keyframes sol-shell-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .sol-shell-auth {
    grid-template-columns: 1fr;
  }

  .sol-shell-auth-hero {
    padding: 3rem 1.4rem 1rem;
  }

  .sol-shell-auth-panel {
    padding: 1rem 1.4rem 2.4rem;
  }

  .sol-shell-dashboard {
    padding: 1.4rem 1rem 2rem;
  }

  .sol-shell-columns {
    grid-template-columns: 1fr;
  }

  .sol-shell-column {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .sol-shell-inline-fields {
    grid-template-columns: 1fr;
  }

  .sol-shell-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sol-shell-topbar-actions {
    width: 100%;
  }

  .sol-shell-topbar-actions .sol-shell-button {
    flex: 1;
  }

  .sol-shell-card {
    padding: 1.35rem;
  }

  .sol-shell-editor-bar {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .sol-shell-editor-bar {
    left: auto;
    align-items: flex-end;
  }

  .sol-shell-editor-menu {
    width: min(320px, calc(100vw - 2rem));
  }

  .sol-shell-editor-menu-grid {
    grid-template-columns: 1fr;
  }
}
