/* One Home — front door layout (additive; does not replace lab-mobile.css) */

:root {
  --oh-bg: #060d0b;
  --oh-card: #0d1a16;
  --oh-card-hover: #101f1a;
  --oh-border: #1a3329;
  --oh-border-soft: rgba(0, 255, 153, 0.14);
  --oh-mint: #14ff9e;
  --oh-text: #e8f5f0;
  --oh-muted: rgba(232, 245, 240, 0.62);
  --oh-radius: 14px;
  --oh-radius-sm: 10px;
  --oh-gap: 14px;
}

.oh-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 88px;
}

.oh-section {
  margin-bottom: 18px;
}

.oh-section-head {
  margin-bottom: 12px;
}

.oh-section-head h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--oh-mint);
}

.oh-section-head p {
  margin: 0;
  color: var(--oh-muted);
  font-size: 0.86rem;
}

.oh-panel {
  background: linear-gradient(180deg, var(--oh-card) 0%, #0a1411 100%);
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 18px 16px;
}

/* Welcome */
.oh-welcome {
  padding: 22px 18px;
  border-radius: var(--oh-radius);
  border: 1px solid var(--oh-border-soft);
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(20, 255, 158, 0.08), transparent 55%),
    linear-gradient(180deg, var(--oh-card) 0%, #08110e 100%);
}

.oh-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oh-muted);
}

.oh-welcome h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  font-weight: 900;
  color: var(--oh-mint);
  line-height: 1.15;
}

.oh-welcome-lead {
  margin: 0 0 16px;
  color: var(--oh-muted);
  font-size: 0.95rem;
  max-width: 36rem;
  line-height: 1.5;
}

.oh-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: var(--oh-radius-sm);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.oh-btn-primary {
  background: linear-gradient(145deg, #00cc66, #00ff99);
  color: #000;
}

.oh-btn-secondary {
  background: transparent;
  color: var(--oh-mint);
  border: 1px solid #00ffcc55;
}

.oh-btn-ghost {
  background: #060d0b;
  color: var(--oh-text);
  border: 1px solid var(--oh-border-soft);
}

.oh-btn:hover {
  filter: brightness(1.05);
}

.oh-btn:focus-visible,
.oh-ember-action:focus-visible,
.oh-room-card:focus-visible,
.oh-continue-item:focus-visible,
#oh-edit-title > summary:focus-visible {
  outline: 2px solid rgba(20, 255, 158, 0.75);
  outline-offset: 2px;
}

.oh-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #ffb84d44;
  border-radius: var(--oh-radius-sm);
  background: rgba(255, 184, 77, 0.08);
  color: #ffe8c2;
  font-size: 0.84rem;
}

/* Ember host card */
.oh-ember-host {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.oh-ember-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--oh-border-soft);
  background: #08110e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.oh-ember-body {
  flex: 1;
  min-width: 0;
}

.oh-ember-greeting {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--oh-text);
}

.oh-ember-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oh-ember-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--oh-border-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.oh-ember-list li:last-child {
  border-bottom: 0;
}

.oh-ember-item-text {
  margin: 0 0 8px;
}

.oh-ember-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--oh-mint);
  border: 1px solid #00ffcc55;
  border-radius: var(--oh-radius-sm);
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.oh-ember-action:hover {
  background: #132820;
}

.oh-ember-foot {
  margin-top: 10px;
  font-size: 0.82rem;
}

.oh-ember-foot a {
  color: var(--oh-mint);
  font-weight: 600;
  text-decoration: none;
}

/* Journey dashboard */
.oh-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.oh-stat {
  padding: 12px;
  border-radius: var(--oh-radius-sm);
  border: 1px solid var(--oh-border-soft);
  background: #060d0b;
  min-height: 76px;
}

.oh-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--oh-muted);
  margin-bottom: 6px;
}

.oh-stat-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--oh-text);
  line-height: 1.35;
}

.oh-stat-value.oh-placeholder-tag {
  color: var(--oh-muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.oh-card-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.oh-avatar {
  border-radius: var(--oh-radius);
  border: 1px solid #00ffcc33;
  object-fit: cover;
  background: #000;
}

.oh-card-main {
  flex: 1;
  min-width: 220px;
}

.oh-name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.oh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.oh-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #00ffcc44;
  color: #a9fff1;
  font-size: 0.72rem;
  font-weight: 800;
}

.oh-bio {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--oh-text);
}

.oh-muted {
  color: var(--oh-muted);
  font-size: 0.86rem;
}

.oh-progress {
  height: 8px;
  border-radius: 999px;
  background: #0a1411;
  border: 1px solid #00ffcc22;
  overflow: hidden;
  margin: 10px 0 6px;
}

.oh-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00cc66, #14ff9e);
}

.oh-profile-complete-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #14ff9e;
}

.oh-profile-complete-pct {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--oh-text);
}

.oh-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.oh-checklist li {
  padding: 5px 0;
  font-size: 0.88rem;
}

.oh-checklist .ok {
  color: #14ff9e;
}

.oh-checklist .pending {
  color: var(--oh-muted);
}

.oh-checklist-heading {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--oh-text);
}

/* Rooms */
.oh-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.oh-room-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-radius: var(--oh-radius-sm);
  border: 1px solid var(--oh-border-soft);
  background: #060d0b;
  color: var(--oh-text);
  text-decoration: none;
  min-height: 108px;
  transition: border-color 0.15s, background 0.15s;
}

.oh-room-card:hover {
  border-color: #00ffcc66;
  background: var(--oh-card-hover);
}

.oh-room-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.oh-room-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--oh-text);
}

.oh-room-desc {
  font-size: 0.8rem;
  color: var(--oh-muted);
  line-height: 1.4;
  font-weight: 400;
}

/* Continue */
.oh-continue-list {
  display: grid;
  gap: 8px;
}

.oh-continue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--oh-radius-sm);
  border: 1px solid var(--oh-border-soft);
  background: #060d0b;
  color: var(--oh-text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.oh-continue-item:hover {
  border-color: #00ffcc55;
}

.oh-continue-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.oh-continue-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}

.oh-continue-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--oh-muted);
  margin-top: 2px;
}

/* Secondary panels */
.oh-secondary {
  margin-top: 6px;
}

.oh-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--oh-border-soft);
}

.oh-row:last-child {
  border-bottom: 0;
}

.oh-empty {
  padding: 14px;
  border-radius: var(--oh-radius-sm);
  border: 1px dashed var(--oh-border-soft);
  color: var(--oh-muted);
  font-size: 0.86rem;
  text-align: center;
}

.oh-loading {
  color: var(--oh-muted);
  font-size: 0.86rem;
  padding: 8px 0;
}

/* Edit form */
.oh-form-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.oh-form-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--oh-muted);
}

.oh-form-grid input,
.oh-form-grid textarea,
.oh-form-grid select {
  width: 100%;
  padding: 10px;
  border-radius: var(--oh-radius-sm);
  border: 1px solid #00ffcc33;
  background: #060d0b;
  color: var(--oh-text);
  font: inherit;
}

.oh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.oh-avatar-edit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.oh-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: var(--oh-radius);
  border: 1px solid #00ffcc44;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.oh-avatar-edit-fields {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 10px;
}

/* Legacy module grid (hidden but kept for hydration) */
.oh-modules,
.oh-quick-actions {
  display: none !important;
}

.ecosystem-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecosystem-feed li {
  padding: 10px 0;
  border-bottom: 1px solid var(--oh-border-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ecosystem-feed li:last-child {
  border-bottom: 0;
}

.ecosystem-feed a {
  color: var(--oh-mint);
  text-decoration: none;
}

.ecosystem-feed a:hover {
  text-decoration: underline;
}

.ecosystem-feed-module {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oh-muted);
  margin-right: 8px;
}

@media (max-width: 520px) {
  .oh-wrap {
    padding-bottom: 96px;
  }

  .oh-btn-row .oh-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .oh-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oh-rooms-grid {
    grid-template-columns: 1fr;
  }
}
