/* U35/U36, the hub (ZC_HUB=1): the products home, the wizards, the hub nav
   in the sidebar and the full-bleed product frames (shell/hub.js,
   shell/frame.js renderHubSidebar). Every rule needs a zc-hub* class that
   only hub pages set, so nothing here touches the console with the hub off. */

/* ------------------------------------------------------------ the pages */

.zc-hub { max-width: 1020px; margin: 0 auto; padding: 30px 28px 40px; }
.zc-hub-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wax-bright); }
.zc-hub-head h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.zc-hub-head p { margin: 0 0 26px; color: var(--slate); font-size: 14.5px; }

.zc-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.zc-hub-grid-one { grid-template-columns: minmax(0, 560px); }
.zc-hub-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(31, 20, 20, .04);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.zc-hub-grid > .zc-hub-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(31, 20, 20, .18); border-color: var(--line-strong); }
.zc-hub-card h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.zc-hub-card p { margin: 0; color: var(--slate); font-size: 13.5px; line-height: 1.55; }
.zc-hub-card input { width: 100%; box-sizing: border-box; }
.zc-hub-cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 2px; }

.zc-hub-logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.zc-hub-logo-zm { background: linear-gradient(135deg, #F2938A, #E25B4E); box-shadow: 0 6px 14px -6px rgba(226, 91, 78, .55); }
.zc-hub-logo-zo { background: linear-gradient(135deg, #74D0B0, #3DA882); box-shadow: 0 6px 14px -6px rgba(61, 168, 130, .55); }
.zc-hub-logo-admin { background: var(--ink-3); width: 40px; height: 40px; border-radius: 11px; color: #fff; }
.zc-hub-logo-admin .ic { width: 20px; height: 20px; }

.zc-hub-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--slate); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.zc-hub-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--slate-dim); flex: none; }
.zc-hub-chip.on { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.zc-hub-chip.on::before { background: var(--ok); }

.zc-hub-adminrow {
  margin-top: 18px; display: flex; align-items: center; gap: 16px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px;
}
.zc-hub-admintext { flex: 1; min-width: 0; }
.zc-hub-admintext h2 { margin: 0 0 2px; font-size: 15px; }
.zc-hub-admintext p { margin: 0; color: var(--slate); font-size: 13px; }

.zc-hub-status { font-size: 13px; color: var(--slate); min-height: 18px; }
.zc-hub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.zc-hub-back { margin-top: 22px; font-size: 13px; }

.zc-hub-steps { margin: 0; padding-left: 18px; color: var(--slate); font-size: 13.5px; line-height: 1.6; }
.zc-hub-steps li { margin-bottom: 6px; }

.zc-hub-pickrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.zc-hub-picklabel { font-size: 13px; color: var(--slate); }
.zc-hub-pick { min-width: 220px; }

.zc-hub-keys { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.zc-hub-keys code { display: inline-block; margin-top: 2px; padding: 3px 6px; border-radius: 6px; background: #1F1414; color: #fff; font-size: 12px; word-break: break-all; user-select: all; }

/* -------------------------------------------- the hub nav in the sidebar */

.zc-nav li.zc-hub-navsep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sb-line); }

/* --------------------------------------------- the frames (full-bleed) */

.zc-hub-framewrap { height: calc(100vh - var(--zc-topbar-h)); }
.zc-hub-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

/* While a product frame is on screen (hub.js fullBleed): no top bar, the
   frame takes the whole column, and the sidebar narrows to an icon rail. */
.zc-app.zc-hubfull .zc-topbar { display: none; }
.zc-app.zc-hubfull .zc-hub-framewrap { height: 100vh; }
.zc-app.zc-hubfull .zc-hub-framewrap-bar { height: calc(100vh - 50px); }
.zc-hub-framebar {
  height: 50px; box-sizing: border-box; margin: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}

@media (min-width: 721px) {
  .zc-app.zc-hubfull .sidebar { width: 72px; padding: 18px 10px; }
  .zc-app.zc-hubfull .sidebar .brand { justify-content: center; padding: 2px 0 14px; }
  .zc-app.zc-hubfull .sidebar .brand > span { display: none; }
  .zc-app.zc-hubfull .zc-nav a { justify-content: center; padding: 11px 0; }
  .zc-app.zc-hubfull .zc-nav a .zc-item-title { display: none; }
  .zc-app.zc-hubfull .zc-nav a.active::before { left: -10px; }
  .zc-app.zc-hubfull .zc-user { flex-direction: column; gap: 10px; padding: 12px 0 0; }
  .zc-app.zc-hubfull .zc-user-text { display: none; }
}

@media (max-width: 720px) {
  .zc-hub { padding: 20px 16px 32px; }
  .zc-hub-head h1 { font-size: 24px; }
}
