.dash-body {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.dash-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
}

@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

.dash-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dash-card {
  background: hsl(var(--card) / 0.9);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.dash-login-card .dash-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dash-title-sm {
  font-size: 1.25rem;
  font-weight: 700;
}

.dash-muted {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.dash-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.dash-form label {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.dash-form input,
.dash-form select {
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--foreground));
}

.dash-btn {
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.dash-btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  margin-top: 0.75rem;
}

.dash-btn-ghost {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.dash-btn-danger {
  background: hsl(var(--destructive) / 0.15);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.4);
}

.dash-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.dash-error {
  color: hsl(var(--destructive));
  font-size: 0.85rem;
}

.dash-link {
  display: inline-block;
  margin-top: 1rem;
  color: hsl(var(--primary));
  font-size: 0.875rem;
}

.dash-sidebar {
  border-left: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--sidebar-background));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (max-width: 900px) {
  .dash-sidebar {
    position: static;
    height: auto;
    border-left: none;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
  }
}

.dash-main {
  min-width: 0;
}

.dash-side-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.18);
  border: 1px solid hsl(var(--primary) / 0.35);
  color: hsl(var(--primary));
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dash-brand-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.dash-side-meta {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.35);
  border: 1px solid hsl(var(--border) / 0.4);
}

.dash-side-phone {
  font-weight: 700;
  margin-top: 0.25rem;
}

.dash-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-side-bottom {
  margin-top: auto;
}

.dash-btn-block {
  width: 100%;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.dash-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  flex-wrap: wrap;
}

.dash-tab {
  text-align: right;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-tab.active {
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.35);
}

.dash-tab:hover {
  background: hsl(var(--secondary) / 0.35);
}

.dash-tab-title {
  font-weight: 700;
}

.dash-tab-sub {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.dash-tab-panel {
  padding: 1rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dash-split {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1rem;
  min-height: 480px;
}

@media (max-width: 768px) {
  .dash-split {
    grid-template-columns: 1fr;
  }
}

.dash-list {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  overflow: auto;
  max-height: 520px;
  background: hsl(var(--card) / 0.4);
}

.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  cursor: pointer;
  text-align: right;
}

.dash-list-item:hover {
  background: hsl(var(--secondary) / 0.4);
}

.dash-list-item.active {
  background: hsl(var(--primary) / 0.12);
  border-right: 3px solid hsl(var(--primary));
}

.dash-list-item.deleted {
  opacity: 0.45;
}

.dash-list-main {
  flex: 1;
  min-width: 0;
}

.dash-list-ticker {
  font-weight: 700;
  font-family: var(--font-geist, monospace);
}

.dash-list-sub {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.dash-chart-box {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  background: hsl(var(--card) / 0.35);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-chart-wrap {
  flex: 1;
  position: relative;
  min-height: 320px;
}

.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dash-up {
  color: #4ade80;
}

.dash-down {
  color: hsl(var(--destructive));
}

.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground));
}

.dash-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-stat {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border) / 0.4);
}

.dash-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
}

.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #0009;
}

.dash-modal-box {
  position: relative;
  z-index: 1;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
}

.dash-modal-wide {
  max-width: 520px;
}

.dash-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.dash-search-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.dash-search-list li {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  cursor: pointer;
}

.dash-search-list li:hover {
  background: hsl(var(--primary) / 0.1);
}

.dash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: hsl(var(--muted-foreground));
}

.dash-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dash-subtab {
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.dash-subtab.active {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}

.dash-confirm-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.dash-confirm-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.25);
  color: hsl(var(--primary));
  font-weight: 900;
}

.dash-confirm-title {
  font-weight: 800;
  margin: 0;
}
