/* Dashboard shell: mirrors scalattice.com black canvas + editorial spacing */

.cloud-page {
  max-width: var(--layout-max);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding:
    var(--cloud-header-offset)
    var(--layout-gutter)
    clamp(3rem, 8vw, 5rem);
  overflow-x: clip;
}

.cloud-page .eyebrow {
  margin-bottom: 0.75rem;
}

.cloud-page__header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.cloud-page__header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.cloud-page__lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.cloud-page__meta {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.cloud-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.cloud-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.cloud-card .cloud-card__hint {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.cloud-label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cloud-input,
.account-input,
.auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cloud-input:focus,
.account-input:focus,
.auth-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.cloud-input:disabled,
.account-input:disabled {
  opacity: 0.55;
}

.cloud-checkbox-row,
.cloud-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

.cloud-radio-row {
  margin: 0.65rem 0;
}

.cloud-checkbox-row input,
.cloud-radio-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: rgba(255, 255, 255, 0.85);
}

.cloud-radio-row:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}

/* Native selects: dark popup + legible options (avoid white-on-white system UI) */
.cloud-select,
.slt-select,
select.cloud-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.cloud-select:hover,
.slt-select:hover,
select.cloud-input:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.08);
}

.cloud-select:focus,
.slt-select:focus,
select.cloud-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.09);
}

.cloud-select:disabled,
.slt-select:disabled,
select.cloud-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cloud-select option,
.slt-select option,
select.cloud-input option {
  background-color: var(--color-gray-800);
  color: var(--color-white);
}

.cloud-msg,
.account-msg,
.auth-msg {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cloud-msg[data-tone="error"],
.account-msg[data-tone="error"],
.auth-msg[data-tone="error"] {
  color: var(--danger);
}

.cloud-actions--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.cloud-actions--stack > .btn {
  width: 100%;
  justify-content: center;
}

.cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cloud-actions--inline {
  margin-top: 0;
  flex-shrink: 0;
}

.cloud-stat {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0;
}

.cloud-list {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
}

.cloud-list li + li {
  margin-top: 0.35rem;
}

