#screen-profile .profile-screen-shell {
  display: grid;
  gap: 14px;
  align-content: start;
}

#screen-profile .tab-subtitle {
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 2px;
}

#screen-profile .profile-main-stack {
  display: grid;
  gap: 14px;
}

#screen-profile .profile-engineer-stack {
  display: grid;
  gap: 14px;
}

#screen-profile .profile-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(202, 166, 75, 0.2);
  background:
    radial-gradient(circle at top right, rgba(41, 181, 110, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(202, 166, 75, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99) 0%, rgba(246, 236, 214, 0.96) 100%);
  box-shadow: 0 22px 48px rgba(52, 43, 20, 0.1);
}

#screen-profile .profile-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

#screen-profile .profile-hero-main {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

#screen-profile .profile-hero-kicker,
#screen-profile .profile-engineer-group-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(122, 96, 42, 0.92);
}

#screen-profile .profile-hero-name {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

#screen-profile .profile-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#screen-profile .profile-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.22);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(52, 43, 20, 0.05);
}

#screen-profile .profile-hero-chip-label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(122, 96, 42, 0.84);
}

#screen-profile .profile-hero-chip-value {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-hero-chip-wallet {
  border-color: rgba(202, 166, 75, 0.28);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(248, 239, 212, 0.92));
  box-shadow: 0 12px 24px rgba(154, 116, 40, 0.09);
}

#screen-profile .profile-hero-note {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(202, 166, 75, 0.12);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.65;
  color: #675637;
}

#screen-profile .profile-section {
  position: relative;
  overflow: clip;
  display: grid;
  gap: 0;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(202, 166, 75, 0.16);
  background:
    radial-gradient(circle at top right, rgba(202, 166, 75, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99) 0%, rgba(249, 241, 224, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(52, 43, 20, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#screen-profile .profile-section::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 20px;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(202, 166, 75, 0.95), rgba(41, 181, 110, 0.5));
}

#screen-profile .profile-section.profile-section-secondary {
  border-color: rgba(118, 98, 52, 0.18);
  background:
    radial-gradient(circle at top right, rgba(129, 95, 35, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.99) 0%, rgba(241, 231, 207, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(52, 43, 20, 0.09);
}

#screen-profile .profile-section > .profile-section-heading {
  margin-bottom: 0;
}

#screen-profile .profile-section > .profile-section-heading > .profile-section-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

#screen-profile .profile-section-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#screen-profile .profile-section-kicker {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(122, 96, 42, 0.9);
}

#screen-profile .profile-section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#screen-profile .profile-section-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

#screen-profile .profile-section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(104, 80, 36, 0.92);
}

#screen-profile .profile-section-note {
  font-size: 13px;
  line-height: 1.55;
  color: #75613d;
}

#screen-profile .profile-section > .profile-section-heading > .profile-section-trigger::after {
  content: '›';
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: rgba(101, 85, 53, 0.76);
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

#screen-profile .profile-section > .profile-section-heading > .profile-section-trigger[aria-expanded="true"]::after {
  transform: rotate(270deg);
}

#screen-profile .profile-section > .profile-section-body {
  margin-top: 0;
}

#screen-profile .profile-section > .profile-section-body > .profile-section-content {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  margin-top: 16px;
  border-top: 1px solid rgba(202, 166, 75, 0.12);
}

#screen-profile .profile-note,
#screen-profile .profile-status-note {
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
}

#screen-profile .profile-status-note[data-tone="success"] {
  color: #0f7a54;
}

#screen-profile .profile-status-note[data-tone="warn"] {
  color: #8a6928;
}

#screen-profile .profile-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

#screen-profile .profile-info span {
  color: var(--muted);
  font-weight: 500;
}

#screen-profile .profile-stack,
#screen-profile .profile-secondary-stack {
  display: grid;
  gap: 12px;
}

#screen-profile .profile-subcard,
#screen-profile .login-methods-card,
#screen-profile .profile-engineer-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(202, 166, 75, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 250, 241, 0.72) 100%);
  box-shadow: 0 12px 24px rgba(52, 43, 20, 0.05);
}

#screen-profile .profile-subcard-featured {
  border-color: rgba(202, 166, 75, 0.2);
  background:
    radial-gradient(circle at top right, rgba(202, 166, 75, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 254, 249, 0.94) 0%, rgba(255, 248, 232, 0.82) 100%);
}

#screen-profile .profile-engineer-card {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(251, 242, 223, 0.78) 100%);
}

#screen-profile .profile-subcard-head,
#screen-profile .profile-engineer-group-head {
  display: grid;
  gap: 4px;
}

#screen-profile .profile-engineer-intro {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

#screen-profile .profile-subcard-title,
#screen-profile .profile-engineer-group-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-subcard-note,
#screen-profile .profile-engineer-group-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

#screen-profile .profile-inline-actions,
#screen-profile .profile-inline-actions-top,
#screen-profile .profile-plan-actions,
#screen-profile .profile-admin-push-actions,
#screen-profile .profile-admin-push-send {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#screen-profile .profile-inline-actions-top {
  margin-top: 2px;
}

#screen-profile .profile-flex-btn {
  flex: 1 1 220px;
}

#screen-profile .profile-help-text,
#screen-profile .profile-label-muted {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

#screen-profile .profile-form-group-tight {
  margin-bottom: 0;
}

#screen-profile .profile-plan-card {
  line-height: 1.6;
}

#screen-profile .profile-plan-card p + p {
  margin-top: 6px;
}

#screen-profile .profile-wallet-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: max-content;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(248, 239, 212, 0.94));
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #5b461f;
  box-shadow: 0 10px 24px rgba(154, 116, 40, 0.08);
}

#screen-profile .profile-wallet-balance.is-muted {
  color: #7b6844;
  background: rgba(255, 255, 255, 0.84);
}

#screen-profile .profile-referral-card {
  display: grid;
  gap: 12px;
}

#screen-profile .profile-referral-copy strong {
  display: block;
  margin-bottom: 6px;
  color: #3f2f13;
  font-size: 16px;
  line-height: 1.25;
}

#screen-profile .profile-referral-copy p,
#screen-profile .profile-referral-feedback {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#screen-profile .profile-referral-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(202, 166, 75, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 232, 0.96), rgba(255, 238, 184, 0.72));
  color: #4b360f;
  box-shadow: 0 12px 28px rgba(154, 116, 40, 0.08);
}

#screen-profile .profile-referral-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

#screen-profile .profile-referral-link.is-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

#screen-profile .profile-referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#screen-profile .profile-referral-stats span {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
}

#screen-profile .profile-referral-stats strong {
  color: #473413;
}

#screen-profile .profile-inline-stack {
  display: grid;
  gap: 10px;
}

#screen-profile .profile-secondary-card {
  border-radius: 16px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

#screen-profile .profile-secondary-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-secondary-card-note {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

#screen-profile .profile-secondary-card-copy {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

#screen-profile .profile-analysis-slots {
  display: grid;
  gap: 10px;
}

#screen-profile .profile-analysis-slot {
  border-radius: 16px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

#screen-profile .profile-analysis-slot.is-empty {
  border-style: dashed;
  background: rgba(255, 250, 241, 0.7);
}

#screen-profile .profile-analysis-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#screen-profile .profile-analysis-slot-copy {
  min-width: 0;
  flex: 1;
}

#screen-profile .profile-analysis-slot-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-analysis-slot-note {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

#screen-profile .profile-analysis-slot-preview {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}

#screen-profile .profile-analysis-slot-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(202, 166, 75, 0.12);
}

#screen-profile .profile-analysis-slot-loading,
#screen-profile .profile-analysis-slot-error,
#screen-profile .profile-analysis-slot-text {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

#screen-profile .profile-analysis-slot-loading {
  color: var(--muted);
}

#screen-profile .profile-analysis-slot-error {
  color: var(--danger, #b04848);
}

#screen-profile .profile-analysis-slot-text {
  color: var(--text);
}

#screen-profile .profile-summary-toggle {
  border: 1px solid rgba(202, 166, 75, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0 16px;
}

#screen-profile .profile-engineer-toggle {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94) 0%, rgba(252, 245, 229, 0.9) 100%);
  box-shadow: 0 12px 28px rgba(52, 43, 20, 0.05);
}

#screen-profile .profile-summary-toggle > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

#screen-profile .profile-summary-toggle > summary::after {
  content: '›';
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1;
  color: rgba(122, 96, 42, 0.82);
  transition: transform 0.2s ease, color 0.2s ease;
}

#screen-profile .profile-summary-toggle[open] > summary::after {
  transform: rotate(90deg);
  color: var(--text);
}

#screen-profile .profile-engineer-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

#screen-profile .profile-engineer-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#screen-profile .profile-engineer-summary-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-engineer-summary-note {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
  color: #6f5b36;
}

#screen-profile .profile-engineer-summary-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 255, 255, 0.68);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: rgba(122, 96, 42, 0.8);
  transition: transform 0.2s ease, color 0.2s ease;
}

#screen-profile .profile-engineer-toggle[open] .profile-engineer-summary-arrow {
  color: var(--text);
  transform: rotate(90deg);
}

#screen-profile .profile-summary-toggle > summary::-webkit-details-marker {
  display: none;
}

#screen-profile .profile-summary-body {
  padding: 0 0 14px;
}

#screen-profile .profile-life-vision-textarea {
  min-height: 172px;
}

#screen-profile #pricing-tiers-container {
  display: grid;
  gap: 14px;
}

#screen-profile .profile-pricing-note {
  margin: 0;
}

#screen-profile .pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#screen-profile .pricing-tier-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 13px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(202, 166, 75, 0.18);
  background: rgba(255, 250, 241, 0.72);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

#screen-profile .pricing-tier-card.is-active {
  border-color: rgba(202, 166, 75, 0.52);
  box-shadow: 0 10px 24px rgba(202, 166, 75, 0.12);
  transform: translateY(-1px);
}

#screen-profile .pricing-tier-card.is-current {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.94), rgba(247, 238, 216, 0.9));
}

#screen-profile .pricing-tier-eyebrow {
  font-size: 13px;
  font-weight: 800;
}

#screen-profile .pricing-tier-state {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: #5f5030;
}

#screen-profile .pricing-tier-select-note {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(122, 93, 41, 0.82);
}

#screen-profile .pricing-tier-details-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(202, 166, 75, 0.16);
  background: rgba(255, 250, 241, 0.78);
}

#screen-profile .pricing-tier-details-head {
  display: grid;
  gap: 6px;
}

#screen-profile .pricing-tier-details-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text);
}

#screen-profile .pricing-tier-details-summary {
  font-size: 13px;
  line-height: 1.6;
  color: #6e5d39;
}

#screen-profile .pricing-tier-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#screen-profile .pricing-tier-metric,
#screen-profile .pricing-tier-audience {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

#screen-profile .pricing-tier-metric-label {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

#screen-profile .pricing-tier-metric-value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

#screen-profile .pricing-tier-panel-actions {
  display: flex;
  justify-content: flex-start;
}

#screen-profile .pricing-tier-details-footer {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

#screen-profile .login-methods-grid {
  display: grid;
  gap: 10px;
}

#screen-profile .login-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

#screen-profile .login-method-copy {
  flex: 1 1 auto;
  min-width: 0;
}

#screen-profile .login-method-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .login-method-note {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

#screen-profile .profile-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#screen-profile .profile-support-card {
  display: grid;
  gap: 12px;
}

#screen-profile .profile-support-textarea,
#screen-profile .profile-big-textarea {
  width: 100%;
  resize: vertical;
  border: 1.5px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.6;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(52, 43, 20, 0.04);
  outline: none;
}

#screen-profile .profile-support-textarea {
  min-height: 128px;
}

#screen-profile .profile-support-textarea-sm,
#screen-profile .profile-admin-push-textarea {
  min-height: 110px;
}

#screen-profile .profile-big-textarea {
  min-height: 260px;
}

#screen-profile .profile-support-textarea:focus,
#screen-profile .profile-big-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  background: white;
}

#screen-profile .prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#screen-profile .prompt-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: linear-gradient(180deg, #fffef9 0%, #fffaf0 100%);
}

#screen-profile .prompt-card h4 {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-passkey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

#screen-profile .profile-passkey-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

#screen-profile .profile-passkey-delete-btn {
  flex-shrink: 0;
}

#screen-profile .profile-engineer-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(202, 166, 75, 0.22);
  background: rgba(255, 253, 248, 0.54);
}

#screen-profile .profile-admin-push-root,
#screen-profile .profile-admin-push-form {
  display: grid;
  gap: 12px;
}

#screen-profile .profile-admin-push-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

#screen-profile .profile-admin-push-users {
  display: grid;
  gap: 8px;
}

#screen-profile .profile-admin-push-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 250, 241, 0.72);
}

#screen-profile .profile-admin-push-user input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #8a6928;
}

#screen-profile .profile-admin-push-user-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

#screen-profile .profile-admin-push-user-name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}

#screen-profile .profile-admin-push-user-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

#screen-profile .profile-admin-push-user-row,
#screen-profile .profile-admin-push-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}

#screen-profile .profile-admin-push-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

#screen-profile .profile-admin-push-pill.is-active {
  color: #0f7a54;
  background: rgba(15, 122, 84, 0.1);
  border-color: rgba(15, 122, 84, 0.16);
}

#screen-profile .profile-admin-push-pill.is-neutral {
  color: #6a5731;
}

#screen-profile .profile-admin-push-pill.is-muted {
  color: var(--muted);
}

#screen-profile .profile-admin-push-empty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(202, 166, 75, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

#screen-profile .profile-footer {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(202, 166, 75, 0.14);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 10px 24px rgba(52, 43, 20, 0.05);
}

#screen-profile .profile-legal-links {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

#screen-profile .profile-legal-links a {
  color: inherit;
  text-decoration: none;
}

#screen-profile .profile-legal-links a:hover {
  color: var(--text);
}

#screen-profile .profile-footer-actions {
  display: flex;
  justify-content: flex-start;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  border-radius: 18px;
  background: white;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
}

@media (max-width: 900px) {
  #screen-profile .pricing-tiers-grid,
  #screen-profile .profile-support-grid,
  #screen-profile .prompt-grid,
  #screen-profile .pricing-tier-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  #screen-profile .pricing-tiers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #screen-profile .profile-screen-shell {
    gap: 12px;
  }

  #screen-profile .profile-main-stack {
    gap: 12px;
  }

  #screen-profile .profile-hero-card,
  #screen-profile .profile-section,
  #screen-profile .profile-footer {
    padding: 16px;
    border-radius: 20px;
  }

  #screen-profile .profile-section-title-row {
    align-items: flex-start;
  }

  #screen-profile .profile-section-badge {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
  }

  #screen-profile .login-method-row,
  #screen-profile .profile-passkey-row,
  #screen-profile .profile-admin-push-user {
    flex-direction: column;
    align-items: stretch;
  }

  #screen-profile .profile-admin-push-user-row,
  #screen-profile .profile-admin-push-user-actions,
  #screen-profile .profile-inline-actions,
  #screen-profile .profile-inline-actions-top,
  #screen-profile .profile-plan-actions,
  #screen-profile .profile-admin-push-actions,
  #screen-profile .profile-admin-push-send {
    justify-content: stretch;
  }

  #screen-profile .profile-flex-btn,
  #screen-profile .profile-admin-push-send .btn,
  #screen-profile .profile-admin-push-actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }
}
