.client-page-shell {
  min-height: 100vh;
}

.client-main {
  width: min(1400px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 1rem 0 1.6rem;
}

.client-topbar-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.client-topbar p {
  margin: 0;
}

.client-help-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.client-help-inline p {
  white-space: nowrap;
}

.client-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.client-title-row .brand-mark {
  width: 24px;
  height: 24px;
}

.client-title-row h1 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.client-title-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55em;
  line-height: 0.8;
  color: #e2b370;
  transform: translateY(-0.02em);
}

.client-title-user {
  color: #eaf2ff;
}

.client-section {
  display: block;
}

.client-request-toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.client-request-toolbar .field.grow {
  flex: 1;
}

.client-request-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(100%, 340px);
}

.client-request-picker-trigger-label {
  color: #9fb3cc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-request-picker-trigger-track {
  color: #e7f0fd;
  font-weight: 800;
}

.client-request-news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(120, 148, 184, 0.52);
  box-shadow: 0 0 0 0 rgba(104, 201, 126, 0);
  flex: 0 0 auto;
}

.client-request-news-dot.active {
  background: rgba(84, 215, 114, 0.98);
  box-shadow: 0 0 0 4px rgba(84, 215, 114, 0.18);
  animation: client-news-dot-pulse 1.7s ease-out infinite;
}

.client-request-picker-modal {
  width: min(760px, 100%);
}

.client-request-picker-subtitle {
  margin: 0.2rem 0 0;
}

.client-request-picker-list {
  min-height: min(52vh, 360px);
  max-height: min(52vh, 360px);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
}

.client-request-picker-item {
  padding: 0;
  border-color: rgba(130, 153, 183, 0.24);
}

.client-request-picker-item.active {
  border-color: rgba(130, 174, 240, 0.48);
  background: rgba(80, 117, 177, 0.14);
}

.client-request-picker-item.has-updates {
  border-color: rgba(84, 215, 114, 0.32);
}

.client-request-picker-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.58rem 0.62rem;
  display: grid;
  gap: 0.24rem;
  cursor: pointer;
}

.client-request-picker-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.client-request-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.client-request-picker-track {
  font-weight: 800;
  font-size: 0.92rem;
  color: #eef5ff;
}

.client-request-picker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.79rem;
  color: #a8bdd8;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.client-request-picker-status {
  max-width: 68%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.client-request-picker-updated {
  color: #97abc6;
  flex: 0 0 auto;
}

.client-request-picker-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

.client-summary {
  margin-bottom: 0.85rem;
}

.client-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.1rem;
  flex-wrap: wrap;
  padding: 0.2rem 0;
}

.client-summary-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.client-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(121, 152, 197, 0.3);
  background: rgba(74, 106, 157, 0.14);
  color: #deebff;
  padding: 0.2rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.client-summary-chip span {
  color: #f0f6ff;
}

.client-summary-chip-topic {
  border-color: rgba(143, 168, 208, 0.32);
  background: rgba(96, 126, 171, 0.15);
}

.client-summary-chip-lawyer {
  border-color: rgba(123, 165, 132, 0.34);
  background: rgba(74, 124, 86, 0.16);
}

.client-summary-dates {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  color: #9fb3cc;
  font-size: 0.79rem;
}

.client-summary-dates b {
  color: #dce8f8;
  font-weight: 700;
}

.client-help-modal {
  width: min(760px, 100%);
}

.client-help-stack {
  display: grid;
  gap: 0.75rem;
}

.client-help-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.client-help-description {
  margin: 0;
  color: #dbe6f4;
  line-height: 1.45;
}

#client-page-status {
  margin-top: 0.7rem;
}

@media (max-width: 1120px) {
  .client-summary-row {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .client-main {
    width: calc(100% - 1rem);
  }

  .client-help-inline {
    max-width: 100%;
  }

  .client-request-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .client-request-picker-trigger {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }

  .client-summary-dates {
    display: grid;
    gap: 0.3rem;
  }
}

@keyframes client-news-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 215, 114, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(84, 215, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 215, 114, 0);
  }
}
