@import url("./tokens.css");
@import url("./base.css");
@import url("./layout.css");
@import url("./components.css");
@import url("./utilities.css");

.side-link-icon {
  font-size: 1.18rem;
  color: #7b8794;
}

.dashboard-search-shortcut {
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #667281;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-bell {
  position: relative;
}

.dashboard-bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #060a09;
  border-radius: 999px;
  background: #ff3b30;
}

.dashboard-bell-dot.hidden {
  display: none;
}

.dashboard-notifications {
  position: absolute;
  top: calc(var(--topbar-height) + 20px);
  right: 24px;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 12, 11, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.dashboard-customize-panel {
  position: absolute;
  top: calc(var(--topbar-height) + 20px);
  right: 24px;
  z-index: 41;
  width: min(380px, calc(100vw - 32px));
  max-height: min(76vh, 760px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(8, 12, 11, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.dashboard-customize-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-customize-head strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.dashboard-customize-head span {
  color: var(--text-secondary);
  line-height: 1.55;
}

.dashboard-customize-close {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
}

.dashboard-customize-section {
  padding: 18px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-customize-section:last-child {
  border-bottom: 0;
}

.dashboard-customize-section h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.dashboard-customize-grid {
  display: grid;
  gap: 12px;
}

.dashboard-customize-grid.theme-grid,
.dashboard-customize-grid.density-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-customize-grid.color-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-customize-option {
  min-height: 72px;
  padding: 14px 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.dashboard-customize-option i {
  font-size: 1.35rem;
}

.dashboard-customize-option .swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--swatch-color, var(--accent-green));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.16);
}

.dashboard-customize-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-customize-option.is-active {
  border-color: color-mix(in srgb, var(--accent-green) 80%, white 6%);
  color: var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-green) 34%, transparent);
}

.dashboard-customize-trigger.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

:root[data-theme="light"] .dashboard-notifications,
:root[data-theme="light"] .dashboard-customize-panel {
  border-color: rgba(8, 18, 13, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .dashboard-notifications-head,
:root[data-theme="light"] .dashboard-customize-head,
:root[data-theme="light"] .dashboard-customize-section {
  border-color: rgba(8, 18, 13, 0.06);
}

:root[data-theme="light"] .dashboard-notification-item:hover,
:root[data-theme="light"] .dashboard-customize-option:hover {
  background: rgba(8, 18, 13, 0.03);
}

.dashboard-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-notifications-head strong {
  display: block;
  font-size: 1rem;
}

.dashboard-notifications-head span {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.dashboard-notifications-close {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
}

.dashboard-notifications-list {
  display: grid;
  gap: 2px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
}

.dashboard-notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.dashboard-notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.dashboard-notification-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 1.1rem;
}

.dashboard-notification-item.is-warning .dashboard-notification-icon {
  background: rgba(249, 191, 36, 0.12);
  color: #f9bf24;
}

.dashboard-notification-item.is-danger .dashboard-notification-icon {
  background: rgba(255, 59, 48, 0.12);
  color: #ff6b63;
}

.dashboard-notification-item.is-success .dashboard-notification-icon {
  background: rgba(25, 210, 107, 0.12);
  color: #1be07a;
}

.dashboard-notification-copy {
  display: grid;
  gap: 4px;
}

.dashboard-notification-copy strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.dashboard-notification-copy p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.dashboard-notification-copy span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.dashboard-notification-empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--text-secondary);
}

.quote-chat-status-corner-core {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-chat-mobile-shortcuts,
.quote-chat-mobile-sheet-overlay,
.quote-chat-sheet-handle,
.quote-chat-sheet-head {
  display: none;
}

.quote-chat-mobile-confirm-hint {
  margin: 0;
  color: var(--text-secondary);
}

.quote-chat-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.quote-chat-meta-card,
.comparison-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.quote-chat-meta-card span,
.comparison-summary-card span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-chat-meta-card strong,
.comparison-summary-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-metric-head p {
  margin-bottom: 10px;
  color: #7e8a98;
  font-size: 0.98rem;
}

.dashboard-metric-head h3 {
  font-size: clamp(2.1rem, 2.8vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-metric-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.5rem;
}

.metric-green .dashboard-metric-icon {
  background: rgba(17, 69, 42, 0.78);
  color: #1be07a;
}

.metric-cyan .dashboard-metric-icon {
  background: rgba(6, 43, 59, 0.88);
  color: #2cd4ff;
}

.metric-blue .dashboard-metric-icon {
  background: rgba(7, 39, 83, 0.88);
  color: #3fa3ff;
}

.metric-amber .dashboard-metric-icon {
  background: rgba(78, 59, 3, 0.88);
  color: #f9bf24;
}

.dashboard-metric-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  isolation: isolate;
}

.dashboard-metric-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -32% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(4px);
}

.metric-green.dashboard-metric-card {
  background:
    radial-gradient(circle at top right, rgba(25, 210, 107, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(15, 27, 20, 0.96), rgba(11, 18, 14, 0.94));
  border-color: rgba(25, 210, 107, 0.12);
}

.metric-green.dashboard-metric-card::before {
  background: radial-gradient(circle, rgba(25, 210, 107, 0.24), transparent 66%);
}

.metric-cyan.dashboard-metric-card {
  background:
    radial-gradient(circle at top right, rgba(44, 212, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(10, 24, 28, 0.96), rgba(8, 15, 19, 0.94));
  border-color: rgba(44, 212, 255, 0.12);
}

.metric-cyan.dashboard-metric-card::before {
  background: radial-gradient(circle, rgba(44, 212, 255, 0.22), transparent 66%);
}

.metric-blue.dashboard-metric-card {
  background:
    radial-gradient(circle at top right, rgba(63, 163, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(10, 19, 34, 0.96), rgba(8, 14, 26, 0.94));
  border-color: rgba(63, 163, 255, 0.12);
}

.metric-blue.dashboard-metric-card::before {
  background: radial-gradient(circle, rgba(63, 163, 255, 0.22), transparent 66%);
}

.metric-amber.dashboard-metric-card {
  background:
    radial-gradient(circle at top right, rgba(249, 191, 36, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(35, 24, 6, 0.96), rgba(18, 13, 5, 0.94));
  border-color: rgba(249, 191, 36, 0.12);
}

.metric-amber.dashboard-metric-card::before {
  background: radial-gradient(circle, rgba(249, 191, 36, 0.22), transparent 66%);
}

.dashboard-metric-head p {
  margin-bottom: 8px;
  color: rgba(230, 238, 246, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric-head h3 {
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
}

.dashboard-metric-trend {
  color: rgba(230, 238, 246, 0.7);
}

.dashboard-core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, 0.68fr);
  gap: 22px;
  margin-bottom: 20px;
}

.dashboard-core-grid-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-status-list,
.comparison-offer-list {
  display: grid;
  gap: 12px;
}

.dashboard-status-item,
.comparison-offer-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-status-item header,
.comparison-offer-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-status-item p,
.comparison-offer-card p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.comparison-offer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-item-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-item-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 210, 107, 0.08);
  color: #b7f7cf;
  font-size: 0.8rem;
  font-weight: 700;
}

.table-entity-meta {
  display: grid;
  gap: 3px;
}

.table-entity-meta strong {
  font-size: 0.95rem;
}

.table-entity-meta small {
  color: var(--text-secondary);
}

.dashboard-mobile-hero,
.dashboard-recent-mobile-list {
  display: none;
}

.dashboard-mobile-hero {
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(25, 210, 107, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 16, 15, 0.98), rgba(7, 11, 10, 0.98));
}

.dashboard-mobile-hero-copy {
  display: grid;
  gap: 8px;
}

.dashboard-mobile-hero-copy h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.dashboard-mobile-hero-copy p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.dashboard-mobile-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-mobile-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-mobile-pulse-card,
.dashboard-recent-mobile-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-mobile-pulse-card span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-mobile-pulse-card strong {
  font-size: 1.12rem;
  line-height: 1.3;
}

.dashboard-mobile-pulse-card p,
.dashboard-recent-mobile-meta span {
  color: var(--text-secondary);
  line-height: 1.55;
}

.dashboard-skeleton-card {
  pointer-events: none;
}

.dashboard-skeleton-card .skeleton + .skeleton {
  margin-top: 8px;
}

.dashboard-kpi-more {
  display: none;
}

.dashboard-recent-mobile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-recent-mobile-meta {
  display: grid;
  gap: 6px;
}

.dashboard-recent-mobile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-today-section {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(25, 210, 107, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-today-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-today-section-head h2 {
  font-size: 1.24rem;
  letter-spacing: -0.04em;
}

.dashboard-today-priority-list {
  display: grid;
  gap: 12px;
}

.dashboard-today-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(25, 210, 107, 0.1), transparent 26%),
    rgba(255, 255, 255, 0.04);
}

@media (min-width: 1120px) {
  .dashboard-today-priority-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-today-card {
    min-height: 100%;
  }
}

.dashboard-today-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-today-card-detail {
  color: var(--text-secondary);
  line-height: 1.6;
}

.dashboard-today-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.dashboard-today-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.requests-mobile-list {
  display: none;
}

.requests-mobile-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(25, 210, 107, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.requests-mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.requests-mobile-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.requests-mobile-card-copy p {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.requests-mobile-card-copy h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.requests-mobile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.requests-mobile-meta-item {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.requests-mobile-meta-item span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.requests-mobile-meta-item strong {
  font-size: 0.92rem;
  line-height: 1.45;
}

.requests-mobile-context {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.requests-mobile-detail {
  color: var(--text-secondary);
  line-height: 1.6;
}

.requests-mobile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.requests-mobile-actions .btn {
  min-height: 42px;
}

.requests-mobile-card-skeleton .skeleton {
  display: block;
}

.requests-mobile-card-empty {
  min-height: 180px;
  align-content: center;
}

#requestsFiltersToggle {
  display: none;
}

.requests-mobile-sheet-overlay {
  display: none;
}

.requests-sheet-handle,
.requests-sheet-head,
.requests-comparison-close {
  display: none;
}

.dashboard-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 600;
}

.dashboard-metric-trend span {
  color: #7c8897;
  font-weight: 500;
}

.dashboard-metric-trend.is-positive {
  color: #22d36f;
}

.dashboard-metric-trend.is-negative {
  color: var(--danger);
}

.dashboard-sparkline {
  width: calc(100% + 40px);
  height: 68px;
  margin: 12px -22px -20px;
}

.dashboard-sparkline path {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-green .dashboard-sparkline path {
  stroke: #18d46c;
}

.metric-cyan .dashboard-sparkline path {
  stroke: #1bd4ff;
}

.metric-blue .dashboard-sparkline path {
  stroke: #38a2ff;
}

.metric-amber .dashboard-sparkline path {
  stroke: #f5b81f;
}

.dashboard-chart-shell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  min-height: 434px;
}

.dashboard-chart-axis {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 74px;
  padding-top: 44px;
  color: #60707e;
  font-size: 0.92rem;
}

.dashboard-chart-stage {
  position: relative;
  min-height: 434px;
}

.dashboard-grid-lines {
  position: absolute;
  inset: 18px 0 24px;
  display: grid;
  align-content: space-between;
}

.dashboard-grid-lines span {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.dashboard-overview-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 372px;
  margin-top: 16px;
}

.dashboard-overview-area {
  fill: url(#overviewFill);
}

.dashboard-overview-line {
  fill: none;
  stroke: #19d26b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(25, 210, 107, 0.16));
}

.dashboard-donut-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.dashboard-donut-wrap {
  position: relative;
  width: 164px;
  height: 164px;
}

.dashboard-donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dashboard-donut-track,
.dashboard-donut-segment {
  fill: none;
  stroke-width: 12;
}

.dashboard-donut-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.dashboard-donut-segment {
  stroke-linecap: butt;
}

.seg-direct {
  stroke: #18d46c;
}

.seg-organic {
  stroke: #14bfd4;
}

.seg-referral {
  stroke: #2e90ff;
}

.seg-social {
  stroke: #b05ad5;
}

.dashboard-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.dashboard-donut-center strong {
  font-size: 2.15rem;
  letter-spacing: -0.04em;
}

.dashboard-donut-center span,
.dashboard-source-list label {
  color: #758292;
}

.dashboard-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-source-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 28px;
}

.dashboard-source-list strong {
  color: var(--text-primary);
}

.dashboard-source-list .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dashboard-source-list .dot.direct {
  background: #18d46c;
}

.dashboard-source-list .dot.organic {
  background: #14bfd4;
}

.dashboard-source-list .dot.referral {
  background: #2e90ff;
}

.dashboard-source-list .dot.social {
  background: #b05ad5;
}

:root[data-theme="light"] .dashboard-search-shortcut,
:root[data-theme="light"] .dashboard-tab,
:root[data-theme="light"] .dashboard-donut-track,
:root[data-theme="light"] .dashboard-goal-track,
:root[data-theme="light"] .dashboard-customize-option,
:root[data-theme="light"] .dashboard-panel,
:root[data-theme="light"] .dashboard-metric-card {
  border-color: rgba(8, 18, 13, 0.08);
}

:root[data-theme="light"] .dashboard-panel,
:root[data-theme="light"] .dashboard-metric-card,
:root[data-theme="light"] .dashboard-customize-option,
:root[data-theme="light"] .dashboard-tabs {
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .dashboard-search-shortcut {
  background: rgba(8, 18, 13, 0.04);
  color: #718295;
}

:root[data-theme="light"] .dashboard-tab.is-active {
  background: rgba(8, 18, 13, 0.06);
  box-shadow: inset 0 0 0 1px rgba(8, 18, 13, 0.04);
}

:root[data-theme="light"] .dashboard-grid-lines span {
  border-top-color: rgba(8, 18, 13, 0.06);
}

:root[data-theme="light"] .dashboard-chart-axis,
:root[data-theme="light"] .dashboard-donut-center span,
:root[data-theme="light"] .dashboard-source-list label,
:root[data-theme="light"] .dashboard-goal-copy p,
:root[data-theme="light"] .dashboard-goal-progress label,
:root[data-theme="light"] .dashboard-metric-trend span {
  color: #728293;
}

.dashboard-goal-card {
  display: grid;
  gap: 12px;
}

.dashboard-goal-copy strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-goal-copy p,
.dashboard-goal-progress label {
  color: #758292;
}

.dashboard-goal-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.dashboard-goal-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17c964, #23e177);
}

.app-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(8px);
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.app-boot.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.app-boot-card {
  min-width: 260px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
}

.app-boot-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.loader {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 3px solid rgba(34, 197, 94, 0.18);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.42), rgba(51, 65, 85, 0.74), rgba(30, 41, 59, 0.42));
  background-size: 220% 100%;
  color: transparent !important;
  animation: skeletonPulse 1.2s linear infinite;
}

@media (max-width: 1200px) {
  .quote-chat-meta-strip,
  .comparison-summary-grid,
  .dashboard-core-grid,
  .dashboard-core-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-mobile-hero {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
  }

  .dashboard-today-section {
    display: grid;
    margin-bottom: 16px;
  }

  .dashboard-recent-mobile-list {
    display: grid;
    gap: 14px;
  }

  body[data-page="dashboard"] .dashboard-heading,
  body[data-page="dashboard"] .dashboard-core-grid-bottom {
    display: none;
  }

  body[data-page="dashboard"] .app-table-wrap {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="dashboard"] .dashboard-search-shell {
    order: 2;
  }

  body[data-page="dashboard"] .dashboard-topbar-actions {
    order: 1;
  }

  body[data-page="dashboard"] .dashboard-topbar-actions > * {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-search-shell {
    width: 100%;
    max-width: none;
  }

  body[data-page="dashboard"] .dashboard-search {
    min-height: 46px;
  }

  body[data-page="dashboard"] .dashboard-user-chip,
  body[data-page="dashboard"] #adminShortcut {
    display: none;
  }

  body[data-page="dashboard"] #dashboardCustomizeToggle {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-panel-head .btn {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-panel-head {
    margin-bottom: 16px;
  }

  body[data-page="dashboard"] .dashboard-core-grid {
    gap: 14px;
  }

  body[data-page="dashboard"] .dashboard-panel {
    padding: 18px 16px;
    border-radius: 22px;
  }

  body[data-page="dashboard"] .dashboard-status-list,
  body[data-page="dashboard"] .entity-list {
    gap: 10px;
  }

  body[data-page="dashboard"] .entity-list-item {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="dashboard"] .dashboard-mobile-pulse-card,
  body[data-page="dashboard"] .dashboard-recent-mobile-card,
  body[data-page="dashboard"] .dashboard-today-card {
    border-radius: 20px;
  }

  body[data-page="dashboard"] .dashboard-mobile-hero-copy p,
  body[data-page="dashboard"] .dashboard-mobile-pulse-card p,
  body[data-page="dashboard"] .dashboard-recent-mobile-meta span,
  body[data-page="dashboard"] .dashboard-today-card-detail,
  body[data-page="dashboard"] .dashboard-panel-head p,
  body[data-page="dashboard"] .dashboard-status-item p,
  body[data-page="dashboard"] .entity-list-copy p {
    font-size: 1rem;
    line-height: 1.6;
  }

  body[data-page="dashboard"] .dashboard-mobile-pulse-card span,
  body[data-page="dashboard"] .dashboard-today-card-meta,
  body[data-page="dashboard"] .app-badge,
  body[data-page="dashboard"] .dashboard-search-item-tag,
  body[data-page="dashboard"] .dashboard-search-group-label {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  body[data-page="dashboard"] .dashboard-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body[data-page="dashboard"] .dashboard-metric-card:nth-child(n + 3) {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-metric-card h3 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.05;
  }

  body[data-page="dashboard"] .dashboard-metric-card p,
  body[data-page="dashboard"] .dashboard-metric-trend {
    font-size: 1rem;
    line-height: 1.5;
  }

  body[data-page="dashboard"] .dashboard-panel-head .btn,
  body[data-page="dashboard"] .dashboard-recent-mobile-actions .btn,
  body[data-page="dashboard"] .dashboard-today-card-actions .btn,
  body[data-page="dashboard"] .dashboard-kpi-more {
    min-height: 48px;
  }

  body[data-page="dashboard"] .dashboard-kpi-more {
    display: inline-flex;
    width: 100%;
    margin: 8px 0 18px;
  }

  body[data-page="requests"] .app-topbar-actions > #requestsExportCsv,
  body[data-page="requests"] .app-topbar-actions > #logoutButton {
    display: none;
  }

  body[data-page="requests"] .app-topbar-actions > #requestsFiltersToggle {
    display: inline-flex;
  }

  body.requests-surface-open[data-page="requests"] {
    overflow: hidden;
  }

  body[data-page="requests"] .app-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body[data-page="requests"] .app-metric-card:nth-child(n + 3) {
    display: none;
  }

  body[data-page="requests"] .app-metric-card p,
  body[data-page="requests"] .app-metric-card span,
  body[data-page="requests"] .entity-list-copy p,
  body[data-page="requests"] .requests-mobile-card-copy p,
  body[data-page="requests"] .requests-mobile-detail,
  body[data-page="requests"] .requests-mobile-meta-item span,
  body[data-page="requests"] .comparison-offer-card p {
    font-size: 1rem;
    line-height: 1.55;
  }

  body[data-page="requests"] .requests-mobile-card-copy h3,
  body[data-page="requests"] .requests-mobile-meta-item strong,
  body[data-page="requests"] .comparison-summary-card strong {
    font-size: 1rem;
    line-height: 1.45;
  }

  body[data-page="requests"] .requests-mobile-actions .btn {
    min-height: 48px;
  }

  body[data-page="requests"] .requests-mobile-actions .btn[data-action="pdf"],
  body[data-page="requests"] .requests-mobile-actions .btn[data-action="csv"] {
    display: none;
  }

  body[data-page="requests"] .requests-mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    border: 0;
    background: rgba(3, 7, 18, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  body.requests-surface-open[data-page="requests"] .requests-mobile-sheet-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body[data-page="requests"] .requests-sheet-handle {
    display: block;
    width: 56px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  body[data-page="requests"] .requests-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  body[data-page="requests"] .requests-comparison-close {
    display: inline-flex;
  }

  body[data-page="requests"] .requests-filters-sheet,
  body[data-page="requests"] .requests-comparison-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 31;
    max-height: min(78vh, 760px);
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 19, 18, 0.98), rgba(7, 10, 10, 0.98));
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
    overflow-y: auto;
    transform: translateY(calc(100% + 24px));
    transition: transform var(--transition-base);
  }

  body.requests-filters-open[data-page="requests"] .requests-filters-sheet,
  body.requests-comparison-open[data-page="requests"] .requests-comparison-sheet {
    transform: translateY(0);
  }

  body[data-page="requests"] .requests-comparison-sheet .filter-shell-head {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: -14px -16px 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(13, 19, 18, 0.98), rgba(13, 19, 18, 0.86));
    backdrop-filter: blur(16px);
  }

  body[data-page="requests"] .requests-history-shell {
    position: relative;
  }

  body[data-page="new-request"] .quote-chat-home-subtitle,
  body[data-page="new-request"] .quote-chat-home-meta,
  body[data-page="new-request"] .chat-bubble-body,
  body[data-page="new-request"] .chat-quote-note {
    font-size: 1rem;
    line-height: 1.6;
  }

  body[data-page="new-request"] .quote-chat-home .quote-chat-suggestion:nth-child(n + 4) {
    display: none;
  }

  body[data-page="new-request"] .quote-chat-home .quote-chat-suggestion,
  body[data-page="new-request"] .quote-chat-actions-bare .btn,
  body[data-page="new-request"] .quote-chat-ops-toggle,
  body[data-page="new-request"] .quote-chat-ops-chip {
    min-height: 48px;
  }

  body[data-page="new-request"] .quote-chat-status-corner-core {
    margin-bottom: 14px;
  }

  body[data-page="new-request"] .quote-chat-mobile-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  body[data-page="new-request"] .quote-chat-mobile-shortcuts .btn {
    min-height: 48px;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
  }

  body[data-page="new-request"] .quote-chat-mobile-shortcuts .btn.is-disabled {
    opacity: 0.56;
  }

  body[data-page="new-request"] .quote-chat-mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 28;
    display: block;
    border: 0;
    background: rgba(3, 7, 18, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  body.chat-surface-open[data-page="new-request"] {
    overflow: hidden;
  }

  body.chat-surface-open[data-page="new-request"] .quote-chat-mobile-sheet-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body[data-page="new-request"] .quote-chat-home {
    padding-top: 4px;
  }

  .requests-mobile-list {
    display: grid;
    gap: 14px;
  }

  .app-filter-bar.app-filter-bar-compact {
    display: grid;
    gap: 12px;
  }

  .app-filter-bar.app-filter-bar-compact .form-row {
    gap: 8px;
  }

  .app-filter-bar.app-filter-bar-compact .form-row-end {
    width: 100%;
  }

  .app-filter-bar.app-filter-bar-compact .form-row-end .btn {
    width: 100%;
  }

  body[data-page="requests"] .app-table-wrap {
    display: none;
  }

  body[data-page="requests"] .filter-shell-head,
  body[data-page="requests"] .table-toolbar,
  body[data-page="requests"] .dashboard-panel-head {
    gap: 12px;
  }

  body[data-page="requests"] .app-metrics {
    gap: 12px;
  }

  body[data-page="requests"] .table-shell {
    border-radius: 22px;
  }

  body[data-page="requests"] .insight-grid {
    gap: 14px;
  }

  body[data-page="requests"] #requestComparisonPanel {
    gap: 14px;
  }

  body[data-page="requests"] #requestDecisionSummary {
    gap: 12px;
  }

  body[data-page="requests"] .comparison-offer-list {
    gap: 12px;
  }

  body[data-page="requests"] .comparison-offer-card {
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  body[data-page="requests"] .comparison-offer-card header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body[data-page="requests"] .comparison-offer-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="requests"] .comparison-item-list {
    gap: 8px;
  }

  .dashboard-search-shell,
  .dashboard-search-results,
  .dashboard-customize-panel,
  .dashboard-notifications {
    width: 100%;
    max-width: none;
  }

  .dashboard-search-shortcut {
    display: none;
  }

  .dashboard-customize-panel,
  .dashboard-notifications {
    position: fixed;
    top: auto;
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-height: min(72vh, 640px);
  }

  .dashboard-panel {
    padding: 20px 18px;
  }

  .dashboard-metric-card {
    min-height: 168px;
  }

  .quote-chat-page-bare {
    align-items: stretch;
  }

  .quote-chat-panel-bare,
  .quote-chat-shell-bare {
    min-height: 100dvh;
  }

  .quote-chat-panel-bare {
    width: 100%;
  }

  .quote-chat-home {
    place-items: start;
    align-content: start;
    min-height: auto;
    padding: 10px 0 12px;
    text-align: left;
  }

  .quote-chat-home-copy {
    width: 100%;
    gap: 10px;
  }

  .quote-chat-home-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 4px;
    border-radius: 16px;
  }

  .quote-chat-home-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.04;
  }

  .quote-chat-home-subtitle {
    max-width: none;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .quote-chat-home .quote-chat-suggestions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 2px 2px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
  }

  .quote-chat-home .quote-chat-suggestion {
    flex: 0 0 auto;
    min-height: 40px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
  }

  .quote-chat-home .quote-chat-suggestion:nth-child(n + 5) {
    display: none;
  }

  .quote-chat-home-meta {
    justify-content: flex-start;
    margin-top: 0;
    font-size: 0.83rem;
    line-height: 1.5;
  }

  .quote-chat-stream-bare,
  .quote-chat-composer-bare,
  #newRequestFeedback {
    width: 100%;
  }

  .quote-chat-stream-bare {
    padding: 10px 0 112px;
    gap: 12px;
  }

  .chat-empty {
    place-items: start;
    text-align: left;
    min-height: 48vh;
  }

  .chat-empty-copy {
    max-width: 22rem;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    background: rgba(13, 19, 18, 0.76);
    backdrop-filter: blur(18px);
  }

  .chat-empty-copy strong {
    font-size: 1rem;
    line-height: 1.55;
  }

  .quote-chat-composer-bare {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(7, 10, 10, 0), rgba(7, 10, 10, 0.94) 26%);
  }

  :root[data-theme="light"] .quote-chat-composer-bare {
    background: linear-gradient(180deg, rgba(247, 250, 248, 0), rgba(247, 250, 248, 0.94) 26%);
  }

  .quote-chat-status-corner-core {
    position: sticky;
    top: 0;
    z-index: 4;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0 10px;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(7, 10, 10, 0.94), rgba(7, 10, 10, 0.58));
  }

  :root[data-theme="light"] .quote-chat-status-corner-core {
    background: linear-gradient(180deg, rgba(247, 250, 248, 0.96), rgba(247, 250, 248, 0.72));
  }

  .quote-chat-status-corner-core .app-badge {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quote-chat-ops-panel {
    margin-bottom: 8px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 15, 0.86);
    backdrop-filter: blur(18px);
  }

  .quote-chat-ops-panel.is-disabled {
    display: none;
  }

  .quote-chat-ops-toggle {
    padding: 12px 14px;
  }

  .quote-chat-ops-toggle small {
    display: none;
  }

  .quote-chat-ops-body {
    padding: 0 12px 12px;
  }

  .quote-chat-sheet-handle {
    display: block;
    width: 56px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  .quote-chat-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .quote-chat-sheet-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    letter-spacing: -0.03em;
  }

  .quote-chat-sheet-head span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .quote-chat-sheet-close {
    min-width: 48px;
    min-height: 48px;
  }

  .quote-chat-ops-types {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quote-chat-ops-chip {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .quote-chat-ops-form {
    grid-template-columns: 1fr;
  }

  #chatProjectSavePanel {
    margin-top: 8px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(11, 17, 16, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
  }

  #chatProjectSavePanel .dashboard-panel-head {
    gap: 10px;
  }

  body[data-page="new-request"] .quote-chat-mobile-confirm-hint {
    display: block;
    padding: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .chat-project-save-form {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .quote-chat-composer-shell-bare {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(11, 17, 16, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
  }

  .quote-chat-composer-shell-bare textarea {
    min-height: 48px;
    padding: 12px 14px;
  }

  body[data-page="new-request"] .quote-chat-actions-bare.is-confirm-ready {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-page="new-request"] .quote-chat-actions-bare.is-confirm-ready #chatConfirmButton,
  body[data-page="new-request"] .quote-chat-actions-bare.is-confirm-ready #chatComposerSubmit {
    width: 100%;
  }

  body[data-page="new-request"] .quote-chat-actions-bare.is-confirm-ready #chatConfirmButton {
    order: -1;
  }

  .chat-row {
    position: relative;
    max-width: min(100%, 26rem);
    gap: 8px;
  }

  .chat-row::before {
    content: attr(data-role-label);
    position: absolute;
    top: -18px;
    left: 46px;
    color: rgba(223, 249, 234, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .chat-row.is-user::before {
    left: auto;
    right: 38px;
    color: rgba(255, 255, 255, 0.58);
  }

  .chat-row + .chat-row {
    margin-top: 10px;
  }

  .chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }

  .chat-avatar-face {
    width: 18px;
    height: 18px;
  }

  .chat-avatar-eye {
    top: 5px;
    width: 3px;
    height: 3px;
  }

  .chat-avatar-eye:first-child {
    left: 4px;
  }

  .chat-avatar-eye:nth-child(2) {
    right: 4px;
  }

  .chat-avatar-smile {
    bottom: 3px;
    width: 8px;
    height: 4px;
  }

  .chat-bubble {
    padding: 12px 13px;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  }

  .chat-bubble.is-user {
    border-bottom-right-radius: 6px;
  }

  .chat-bubble.is-assistant,
  .chat-bubble.is-system {
    border-bottom-left-radius: 6px;
  }

  .chat-bubble-body {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .chat-bubble-body > .chat-quote-response,
  .chat-bubble-body > .chat-inline-preview {
    margin-top: 12px;
  }

  .chat-quote-response {
    min-width: 0;
    gap: 12px;
  }

  .chat-quote-summary {
    align-items: flex-start;
    gap: 8px;
  }

  .chat-quote-summary strong {
    width: 100%;
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .chat-quote-total-order {
    margin-left: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
  }

  .chat-quote-card {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  .chat-quote-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .chat-quote-card-head strong {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .chat-quote-grid,
  .chat-brain-grid {
    grid-template-columns: 1fr;
  }

  .chat-quote-metric,
  .chat-brain-panel,
  .chat-quote-offer-chip {
    border-radius: 14px;
  }

  .chat-quote-metric {
    gap: 4px;
    padding: 10px;
  }

  .chat-quote-metric strong,
  .chat-quote-offer-chip strong {
    font-size: 0.88rem;
  }

  .chat-quote-note {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .chat-quote-actions {
    justify-content: stretch;
    padding-top: 0;
  }

  .chat-quote-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .chat-inline-preview {
    border-radius: 16px;
  }

  .chat-inline-preview-toggle {
    padding: 12px;
    font-size: 0.84rem;
  }

  .chat-inline-preview-body {
    padding: 0 12px 12px;
  }

  body[data-page="new-request"] .quote-chat-ops-panel,
  body[data-page="new-request"] #chatProjectSavePanel {
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  body[data-page="new-request"] .quote-chat-ops-body .quote-chat-sheet-handle,
  body[data-page="new-request"] .quote-chat-ops-body .quote-chat-sheet-head,
  body[data-page="new-request"] #chatProjectSavePanel .quote-chat-sheet-handle,
  body[data-page="new-request"] #chatProjectSavePanel .quote-chat-sheet-head {
    display: none;
  }

  body[data-page="new-request"].chat-execution-open .quote-chat-ops-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 29;
    max-height: min(78vh, 760px);
    margin: 0;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 19, 18, 0.98), rgba(7, 10, 10, 0.98));
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
    overflow: hidden;
  }

  body[data-page="new-request"].chat-execution-open .quote-chat-ops-panel > summary {
    display: none;
  }

  body[data-page="new-request"].chat-execution-open .quote-chat-ops-body {
    display: block;
    padding: 0;
    overflow-y: auto;
  }

  body[data-page="new-request"].chat-execution-open .quote-chat-ops-body .quote-chat-sheet-handle,
  body[data-page="new-request"].chat-execution-open .quote-chat-ops-body .quote-chat-sheet-head {
    display: block;
  }

  body[data-page="new-request"].chat-execution-open .quote-chat-ops-body .quote-chat-sheet-head {
    display: flex;
  }

  body[data-page="new-request"].chat-project-open #chatProjectSavePanel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 29;
    max-height: min(72vh, 720px);
    margin: 0;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 19, 18, 0.98), rgba(7, 10, 10, 0.98));
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
    overflow-y: auto;
  }

  body[data-page="new-request"].chat-project-open #chatProjectSavePanel .quote-chat-sheet-handle,
  body[data-page="new-request"].chat-project-open #chatProjectSavePanel .quote-chat-sheet-head {
    display: block;
  }

  body[data-page="new-request"].chat-project-open #chatProjectSavePanel .quote-chat-sheet-head {
    display: flex;
  }

  .projects-table-wrap {
    padding-inline: 12px;
  }

  .quote-chat-meta-strip,
  .comparison-summary-grid,
  .dashboard-core-grid,
  .dashboard-core-grid-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-mobile-hero {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .dashboard-mobile-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-mobile-pulse-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-recent-mobile-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-recent-mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-topbar-actions {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-mobile-pulse-card strong {
    font-size: 1rem;
  }

  body[data-page="dashboard"] .dashboard-metrics-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-metric-card:nth-child(n + 2) {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-recent-mobile-card,
  body[data-page="dashboard"] .dashboard-today-card {
    padding: 14px;
  }

  .dashboard-today-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-today-section-head .btn {
    width: 100%;
  }

  .dashboard-today-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-today-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .requests-mobile-card {
    padding: 16px;
    border-radius: 20px;
  }

  .requests-mobile-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .requests-mobile-meta-grid {
    grid-template-columns: 1fr;
  }

  .requests-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .requests-mobile-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  body[data-page="requests"] .app-metrics {
    grid-template-columns: 1fr;
  }

  body[data-page="requests"] .app-metric-card:nth-child(n + 2) {
    display: none;
  }

  .dashboard-metric-card,
  .dashboard-panel,
  .comparison-summary-card,
  .quote-chat-meta-card {
    border-radius: 18px;
  }

  body[data-page="requests"] .comparison-summary-card {
    padding: 14px;
    min-height: auto;
  }

  body[data-page="requests"] .comparison-summary-card strong {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  body[data-page="requests"] .requests-filters-sheet,
  body[data-page="requests"] .requests-comparison-sheet {
    padding-inline: 14px;
  }

  body[data-page="requests"] .comparison-offer-card p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .quote-chat-composer-shell-bare {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 20px;
  }

  .quote-chat-actions-bare {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .quote-chat-actions-bare .btn {
    flex: 1 1 auto;
  }

  body[data-page="new-request"] .quote-chat-home .quote-chat-suggestion:nth-child(n + 3) {
    display: none;
  }

  .chat-row {
    max-width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-row::before {
    top: -16px;
    left: 0;
  }

  .chat-row.is-user::before {
    right: 0;
  }

  .chat-row.is-user {
    justify-self: stretch;
  }

  .chat-row.is-user .chat-avatar {
    order: 2;
  }

  .chat-row.is-user .chat-bubble {
    order: 1;
  }

  .dashboard-customize-grid.theme-grid,
  .dashboard-customize-grid.density-grid,
  .dashboard-customize-grid.color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root[data-theme="light"] .requests-mobile-meta-item {
    background: rgba(8, 18, 13, 0.04);
  }

  :root[data-theme="light"] .dashboard-mobile-hero,
  :root[data-theme="light"] .dashboard-mobile-pulse-card,
  :root[data-theme="light"] .dashboard-recent-mobile-card,
  :root[data-theme="light"] .dashboard-today-card {
    border-color: rgba(8, 18, 13, 0.08);
    background: rgba(255, 255, 255, 0.96);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeletonPulse {
  0% {
    background-position: 220% 0;
  }

  100% {
    background-position: -220% 0;
  }
}

/* ══════════════════════════════════════════════════════
   Dashboard Redesign — Premium Minimal v2
   Objetivo: Linear/Stripe/Vercel level — clean, scannable
   ══════════════════════════════════════════════════════ */

/* ── Topbar icon-only buttons ── */
.dashboard-new-cta {
  background: var(--accent-green);
  color: #04150d;
  border-color: transparent;
}

.dashboard-new-cta:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-green) 36%, transparent);
}

/* ── Hero: copy compacto e legível ── */
body[data-page="dashboard"] .dashboard-hero-copy h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  max-width: 10ch;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-weight: 700;
}

body[data-page="dashboard"] .dashboard-hero-welcome {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 48ch;
}

body[data-page="dashboard"] .dashboard-hero-welcome:empty {
  display: none;
}

/* ── Hero stats: minimal, sem glow ── */
body[data-page="dashboard"] .dashboard-hero-stat {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

body[data-page="dashboard"] .dashboard-hero-stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.11);
}

body[data-page="dashboard"] .hero-stat-green {
  border-top-color: rgba(25, 210, 107, 0.3);
}

body[data-page="dashboard"] .hero-stat-cyan {
  border-top-color: rgba(44, 212, 255, 0.25);
}

body[data-page="dashboard"] .hero-stat-blue {
  border-top-color: rgba(63, 163, 255, 0.25);
}

body[data-page="dashboard"] .hero-stat-amber {
  border-top-color: rgba(249, 191, 36, 0.25);
}

/* ── Metric cards: flat elegante, sem gradiente pesado ── */
body[data-page="dashboard"] .dashboard-metric-card::before {
  display: none;
}

body[data-page="dashboard"] .metric-green.dashboard-metric-card,
body[data-page="dashboard"] .metric-cyan.dashboard-metric-card,
body[data-page="dashboard"] .metric-blue.dashboard-metric-card,
body[data-page="dashboard"] .metric-amber.dashboard-metric-card {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

body[data-page="dashboard"] .metric-green.dashboard-metric-card {
  border-top-color: rgba(25, 210, 107, 0.32);
}

body[data-page="dashboard"] .metric-cyan.dashboard-metric-card {
  border-top-color: rgba(44, 212, 255, 0.26);
}

body[data-page="dashboard"] .metric-blue.dashboard-metric-card {
  border-top-color: rgba(63, 163, 255, 0.26);
}

body[data-page="dashboard"] .metric-amber.dashboard-metric-card {
  border-top-color: rgba(249, 191, 36, 0.26);
}

body[data-page="dashboard"] .dashboard-metric-card:hover {
  background: rgba(255, 255, 255, 0.044);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ── Metric icons: menores e mais sutis ── */
body[data-page="dashboard"] .dashboard-metric-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-size: 1.05rem;
  border-radius: 12px;
}

body[data-page="dashboard"] .metric-green .dashboard-metric-icon {
  background: rgba(25, 210, 107, 0.1);
  color: #1be07a;
}

body[data-page="dashboard"] .metric-cyan .dashboard-metric-icon {
  background: rgba(44, 212, 255, 0.1);
  color: #2cd4ff;
}

body[data-page="dashboard"] .metric-blue .dashboard-metric-icon {
  background: rgba(63, 163, 255, 0.1);
  color: #3fa3ff;
}

body[data-page="dashboard"] .metric-amber .dashboard-metric-icon {
  background: rgba(249, 191, 36, 0.1);
  color: #f9bf24;
}

/* ── Metric numbers: compactos, legíveis ── */
body[data-page="dashboard"] .dashboard-metric-head h3 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  letter-spacing: -0.05em;
}

/* ── Metric label: uppercase limpo ── */
body[data-page="dashboard"] .dashboard-metric-head p {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Metric trend: apenas quando preenchido ── */
body[data-page="dashboard"] .dashboard-metric-trend:empty {
  display: none;
}

body[data-page="dashboard"] .dashboard-metric-trend {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ── Today section: limpa, sem glow ── */
body[data-page="dashboard"] .dashboard-today-section {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

body[data-page="dashboard"] .dashboard-today-section-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ── Today cards: flat, hover suave ── */
body[data-page="dashboard"] .dashboard-today-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

body[data-page="dashboard"] .dashboard-today-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Dashboard panels: mais espaçados e elegantes ── */
body[data-page="dashboard"] .dashboard-panel {
  background: rgba(255, 255, 255, 0.022);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

body[data-page="dashboard"] .dashboard-panel:hover {
  background: rgba(255, 255, 255, 0.034);
  border-color: rgba(255, 255, 255, 0.09);
}

body[data-page="dashboard"] .dashboard-panel-head {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page="dashboard"] .dashboard-panel-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ── Status items: mais discretos ── */
body[data-page="dashboard"] .dashboard-status-item {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-base);
}

body[data-page="dashboard"] .dashboard-status-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
}

/* ── Entity list: itens mais limpos ── */
body[data-page="dashboard"] .entity-list-item {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-base);
}

body[data-page="dashboard"] .entity-list-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
}

/* ── Eyebrow refinado ── */
body[data-page="dashboard"] .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Light theme overrides ── */
:root[data-theme="light"] body[data-page="dashboard"] .dashboard-hero-stat,
:root[data-theme="light"] body[data-page="dashboard"] .metric-green.dashboard-metric-card,
:root[data-theme="light"] body[data-page="dashboard"] .metric-cyan.dashboard-metric-card,
:root[data-theme="light"] body[data-page="dashboard"] .metric-blue.dashboard-metric-card,
:root[data-theme="light"] body[data-page="dashboard"] .metric-amber.dashboard-metric-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(8, 18, 13, 0.08);
}

:root[data-theme="light"] body[data-page="dashboard"] .dashboard-today-section,
:root[data-theme="light"] body[data-page="dashboard"] .dashboard-today-card,
:root[data-theme="light"] body[data-page="dashboard"] .dashboard-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(8, 18, 13, 0.08);
}

:root[data-theme="light"] body[data-page="dashboard"] .dashboard-panel-head {
  border-bottom-color: rgba(8, 18, 13, 0.07);
}
