.dashboard-workspace {
  padding-top: clamp(34px, 5vw, 72px);
}

.dashboard-hero {
  align-items: start;
  min-height: 190px;
  overflow: hidden;
  position: relative;
}

.dashboard-hero h1 {
  max-width: 620px;
}

.hero-brand-crop {
  height: clamp(150px, 17vw, 250px);
  pointer-events: none;
  position: absolute;
  right: clamp(22px, 8vw, 140px);
  top: -2px;
  width: clamp(210px, 23vw, 335px);
  z-index: -1;
}

.hero-brand-crop span,
.signed-out__mark span {
  border: clamp(16px, 2.2vw, 31px) solid rgba(239, 47, 40, 0.58);
  border-radius: 30% 38% 32% 30%;
  inset: 0;
  position: absolute;
}

.hero-brand-crop span:nth-child(2),
.signed-out__mark span:nth-child(2) {
  border-color: rgba(255, 112, 72, 0.42);
  transform: translate(34px, 22px);
}

.hero-brand-crop span:nth-child(3),
.signed-out__mark span:nth-child(3) {
  border-color: rgba(255, 209, 90, 0.34);
  transform: translate(68px, 45px);
}

.metric-strip--hero {
  background: linear-gradient(135deg, rgba(255, 240, 231, 0.94), rgba(255, 254, 252, 0.86));
  border-color: rgba(255, 112, 72, 0.32);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-areas:
    "teams create"
    "model actions"
    "model usage";
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.8fr);
  margin-bottom: 18px;
}

.dashboard-teams {
  grid-area: teams;
}

.dashboard-create {
  grid-area: create;
}

.quick-actions {
  grid-area: actions;
}

.dashboard-model {
  grid-area: model;
}

.usage-panel {
  display: grid;
  grid-area: usage;
  grid-template-rows: auto 1fr auto;
}

.surface-header--toolbar {
  align-items: center;
}

.table-tools {
  align-items: center;
  display: flex;
  gap: 9px;
}

.search-shell {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--nav-muted);
  display: inline-flex;
  font-size: 12px;
  min-height: 32px;
  min-width: 210px;
  padding: 7px 11px;
}

.data-table--dashboard .data-row {
  grid-template-columns: minmax(250px, 1.35fr) minmax(86px, 0.45fr) minmax(130px, 0.7fr) minmax(100px, 0.52fr) minmax(80px, 0.45fr) minmax(94px, 0.5fr);
}

.team-cell,
.resource-row {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.team-cell > span:last-child,
.resource-row > span:nth-child(2) {
  min-width: 0;
}

.team-avatar--small {
  border-radius: 6px;
  height: 30px;
  width: 30px;
}

.surface--accent {
  background:
    linear-gradient(135deg, rgba(255, 240, 231, 0.96), rgba(255, 254, 252, 0.86)),
    var(--surface);
}

.quick-action-list,
.mini-resource-list {
  display: grid;
  padding: 10px 12px 14px;
}

.quick-action,
.resource-row {
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 8px;
  text-decoration: none;
}

.quick-action {
  align-items: center;
  gap: 12px;
}

.quick-action span:nth-child(2) {
  flex: 1;
  font-size: 14px;
  font-weight: 650;
}

.quick-action::after {
  color: var(--accent);
  content: "->";
  font-family: var(--font-mono);
  font-size: 12px;
}

.quick-action:hover,
.resource-row:hover {
  background: rgba(255, 240, 231, 0.74);
}

.quick-action--disabled {
  color: var(--nav-muted);
}

.quick-action--disabled::after {
  color: var(--nav-muted);
}

.status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.status-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(230, 189, 168, 0.68);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  padding: 15px;
}

.status-card span,
.status-card small {
  color: var(--muted);
  font-size: 12px;
}

.status-card strong {
  color: var(--ink);
  font-size: 27px;
  font-weight: 760;
  line-height: 1;
}

.resource-row {
  align-items: center;
  border-top: 1px solid rgba(230, 189, 168, 0.54);
}

.spark-bars {
  align-items: end;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(18, 1fr);
  min-height: 160px;
  padding: 24px 22px 16px;
}

.spark-bars span {
  background: linear-gradient(to top, rgba(239, 47, 40, 0.2), rgba(255, 154, 56, 0.44));
  border-radius: 999px 999px 2px 2px;
  display: block;
  height: var(--bar-height);
}

.status-copy {
  border-top: 1px solid rgba(230, 189, 168, 0.62);
  display: grid;
  gap: 5px;
  padding: 18px 20px;
}

.status-copy strong {
  font-size: 15px;
}

.status-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.signed-out--brand {
  margin: clamp(32px, 8vw, 96px) auto 0;
  overflow: hidden;
  position: relative;
}

.signed-out__mark {
  height: 160px;
  opacity: 0.52;
  position: absolute;
  right: -24px;
  top: -34px;
  width: 220px;
  z-index: 0;
}

.signed-out--brand > *:not(.signed-out__mark) {
  position: relative;
  z-index: 1;
}

.signed-out--brand p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 54ch;
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-areas:
      "teams"
      "create"
      "actions"
      "model"
      "usage";
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1181px) {
  .dashboard-teams {
    min-height: 300px;
  }
}

@media (max-width: 980px) {
  .hero-brand-crop {
    opacity: 0.42;
    right: 14px;
  }

  .data-table--dashboard .data-row {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .table-tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .search-shell {
    min-width: 0;
    width: 100%;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
