.ud-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px; /* Strict adherence to our 12px mobile padding law */
  background-color: #0a0e17; /* Slate dark console hue */
  color: #f3f4f6;
  font-family: monospace, sans-serif;
  min-height: 100vh;
}

/* High Density Profile Header Row */
.ud-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111827; /* Dark tile panel element */
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 12px;
}

.ud-user-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ud-avatar-placeholder {
  font-size: 24px;
  background-color: #1f2937;
  width: 44px; /* Secure 44px layout boundaries */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #374151;
}

.ud-profile-text-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.ud-profile-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.ud-hub-tag {
  font-size: 11px;
  color: #3b82f6; /* Blue regional hub anchor token */
}

/* User Status Badges Matrix */
.ud-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.ud-badge-caution {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b; /* Caution amber status indicator token */
  color: #f59e0b;
}

.ud-badge-verified {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981; /* Validated emerald status token */
  color: #10b981;
}

/* Hardened Read-Only Gamification Ledger Tile Container */
.ud-raffle-ledger-card {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ud-raffle-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ud-raffle-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ud-read-only-marker {
  font-size: 9px;
  font-weight: 700;
  color: #6b7280; /* Safe muted text string rule */
  letter-spacing: 0.05em;
}

.ud-ticket-counter-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 50/50 horizontal counter splits */
  gap: 12px;
}

.ud-counter-block {
  background-color: #0a0e17;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ud-counter-number {
  font-size: 22px;
  font-weight: 800;
  color: #10b981; /* Emerald metric tracking variable token */
}

.ud-counter-label {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.2;
}

/* Seeding Phase Notice Elements */
.ud-disclosure-box {
  background-color: rgba(31, 41, 55, 0.5);
  border-left: 3px solid #374151;
  padding: 10px;
  text-align: left;
}

.ud-disclosure-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #9ca3af;
}

/* Professional Provider Upgrade Banner Card */
.ud-upgrade-banner-card {
  background-color: #111827;
  border: 1px dashed #3b82f6; /* Blue callout boundary element */
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.ud-upgrade-text-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ud-upgrade-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.ud-upgrade-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #9ca3af;
}

.ud-upgrade-action-btn {
  height: 44px; /* Complete alignment with the 44px touch-target matrix standard */
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ud-upgrade-action-btn:hover { background-color: #2563eb; }

/* Interactive Content Tracking Matrix Box */
.ud-matrix-box {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tab Controls Configuration Row */
.ud-matrix-tabs {
  display: flex;
  background-color: #0a0e17;
  border-bottom: 1px solid #1f2937;
}

.ud-tab-btn {
  flex: 1;
  height: 44px; /* Precise touch target alignment limits */
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.1s ease;
}

.ud-tab-btn.ud-tab-active {
  color: #ffffff;
  border-bottom-color: #3b82f6; /* Blue slider focus indicator line */
  background-color: #111827;
}

/* Dynamic Stream Segment Panels */
.ud-matrix-panel {
  padding: 12px;
  min-height: 150px;
}

.ud-matrix-panel.ud-hidden {
  display: none !important; /* Instant state hotswapping layout tool compatibility */
}

.ud-stream-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Internal Feed Row Components */
.ud-row-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background-color: #0a0e17;
  border: 1px solid #1f2937;
  border-radius: 6px;
  text-align: left;
}

.ud-row-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ud-row-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ud-row-timestamp-text {
  font-size: 10px;
  color: #6b7280;
}

.ud-row-snippet-text {
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2-line mini clamping for compact profile rows */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ud-empty-state-text {
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  padding: 32px 0;
  margin: 0;
}

/* Media Query Layout Caps for Unified Centers (Viewport >= 1024px) */
@media (min-width: 1024px) {
  .ud-container {
    max-width: 480px; /* Force mobile viewport symmetry constraints on massive screens */
    margin: 0 auto;
    padding: 40px 12px;
  }
}
