/* Mirror Hub — shell (top bar + side nav).
   Lifted verbatim from the design handoff's screens.css for the
   shell-only rules. The other screen styles will land alongside their
   screens as the editor / photo / reconciler views are implemented.
*/

/* ── Frame layout (the surface the shell sits on) ──────────────────── */
.mh-frame {
  width: 100%; min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mh-bg);
  position: relative;
}
.mh-frame-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.mh-frame-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Top bar ────────────────────────────────────────────────────────── */
.mh-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--mh-line);
  background: var(--mh-bg);
  position: sticky; top: 0; z-index: 50;
  gap: 16px;
}
.mh-topbar-l, .mh-topbar-r { display: flex; align-items: center; gap: 14px; }
.mh-topbar-r { margin-left: auto; }
.mh-brand { display: flex; align-items: center; gap: 9px; }
.mh-brand-word {
  font-family: var(--mh-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.mh-env-badge {
  font-family: var(--mh-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mh-warn);
  border: 1px solid rgba(244,184,96,0.3);
  background: var(--mh-warn-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.mh-topbar-sep { width: 1px; height: 18px; background: var(--mh-line); }
.mh-topbar-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mh-mono);
  font-size: 11px;
  color: var(--mh-text-mute);
}
.mh-topbar-back:hover { color: var(--mh-plum); }
.mh-topbar-where {
  font-size: 11px;
  color: var(--mh-text-mute);
  padding-right: 6px;
}
.mh-icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  color: var(--mh-text-dim);
  border-radius: var(--mh-r-input);
  cursor: pointer; position: relative;
  transition: all var(--mh-dur) var(--mh-ease);
}
.mh-icon-btn:hover { background: var(--mh-plum-soft); color: var(--mh-text); }
.mh-bell-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--mh-plum-bright);
  border-radius: 50%;
}
.mh-who {
  display: flex; align-items: center; gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--mh-line);
  height: 28px;
}
.mh-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mh-plum-soft);
  color: var(--mh-plum-bright);
  font-family: var(--mh-mono);
  font-size: 9px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--mh-plum-edge);
}

/* ── Side nav ───────────────────────────────────────────────────────── */
.mh-sidenav {
  width: 200px;
  flex-shrink: 0;
  background: var(--mh-surface);
  border-right: 1px solid var(--mh-line);
  display: flex; flex-direction: column;
  padding: 14px 10px;
}
.mh-sidenav-items { display: flex; flex-direction: column; gap: 2px; }
.mh-sidenav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--mh-r-input);
  font-size: 12.5px;
  color: var(--mh-text-dim);
  cursor: pointer;
  transition: all var(--mh-dur) var(--mh-ease);
  text-decoration: none;
}
.mh-sidenav-item:hover { background: var(--mh-plum-soft); color: var(--mh-text); }
.mh-sidenav-item.is-on {
  background: var(--mh-plum-soft);
  color: var(--mh-plum-bright);
  box-shadow: inset 2px 0 0 var(--mh-plum);
}
.mh-sidenav-item.is-soon { opacity: 0.5; }
.mh-sidenav-glyph {
  display: inline-flex; width: 16px; justify-content: center;
  color: inherit;
}
.mh-sidenav-label { flex: 1; }
.mh-sidenav-badge {
  font-size: 10px;
  color: var(--mh-text-mute);
  background: var(--mh-card);
  padding: 1px 6px;
  border-radius: 3px;
}
.mh-sidenav-soon {
  font-size: 9px;
  color: var(--mh-text-faint);
  letter-spacing: 0.08em;
}
.mh-sidenav-foot {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--mh-line);
}

/* Hero pulse used by status dot during fetch */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
