/* Shared browser mockup styles. Used by the home page, Start and Build via hb-mock.js. */
/* DASHBOARD MOCKUP */
/* DEVICE SWITCHER */
.device-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.device-context-label {
  text-align: center;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em;
  transition: opacity .25s;
}
.device-playpause-gap { width: 8px; }
.device-playpause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.device-playpause:hover {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.8);
}
.device-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05);
  transition: all .2s;
  user-select: none;
}
.device-btn.active {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* LAPTOP MOCKUP */
.hero-device-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  transition: max-width .35s ease;
}
.hero-device-wrap.device--phone {
  max-width: 320px;
}
.hero-device-wrap.device--tablet {
  max-width: 580px;
}

/* Chrome browser frame */
.hero-browser {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.15);
}
.device--phone .hero-browser {
  border-radius: 8px;
}
.device--tablet .hero-browser {
  border-radius: 9px;
}
.hb-bar {
  background: #E8E8E8;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-dots { display: flex; gap: 6px; }
.hb-dot { width: 11px; height: 11px; border-radius: 50%; }
.hb-dot:nth-child(1) { background: #FF5F57; }
.hb-dot:nth-child(2) { background: #FEBC2E; }
.hb-dot:nth-child(3) { background: #28C840; }
.hb-tab {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 8px 8px 0 0;
  padding: 5px 14px 5px 10px; font-size: .67rem;
  color: rgba(0,0,0,.65); font-weight: 500;
  border: 1px solid rgba(0,0,0,.1); border-bottom: none;
  white-space: nowrap; max-width: 200px; min-width: 0; overflow: hidden;
}
.hb-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-tab-favicon {
  width: 12px; height: 12px; background: var(--hb-accent, #F26B00);
  border-radius: 3px; flex-shrink: 0;
}
.hb-url {
  flex: 1; background: #f1f3f4; border-radius: 20px;
  padding: 4px 12px 4px 28px; font-size: .67rem;
  color: rgba(0,0,0,.5); position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hb-url::before {
  content: '🔒'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: .6rem; opacity: .6;
}
.hb-bar-right { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.hb-bar-icon { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; font-size: .6rem; color: rgba(0,0,0,.4); }
/* Two-column layout: sidebar + main */
.hb-shell {
  display: flex;
  height: 512px;
}
.hb-sidebar {
  width: 52px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #E8E9EB;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.hb-logo {
  padding: 0 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-logo-badge {
  width: 34px; height: 34px;
  background: var(--hb-accent, #F26B00);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
}
/* Sidebar nav (icon-only) */
.hb-logo {
  padding: 10px 0 12px; border-bottom: 1px solid #ECEDEF;
  margin-bottom: 4px; display: flex; align-items: center; justify-content: center;
}
.hb-nav-item {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; color: color-mix(in srgb, var(--hb-accent, #F26B00) 55%, #fff); cursor: default;
  margin: 1px 8px; border-radius: 8px;
}
.hb-nav-item.active { color: var(--hb-accent, #F26B00); background: color-mix(in srgb, var(--hb-accent, #F26B00) 14%, transparent); }
.hb-nav-icon { display: flex; }
.hb-sidebar-footer {
  margin-top: auto; padding: 10px 0 0;
  border-top: 1px solid #ECEDEF; display: flex; justify-content: center;
}
.hb-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
/* Main content area */
.hb-main {
  flex: 1; background: #F7F8FA; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.hb-topbar {
  background: transparent; border-bottom: none;
  padding: 12px 18px 8px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-shrink: 0;
}
.hb-topbar-left { min-width: 0; }
.hb-topbar-title {
  font-family: var(--font-display); font-size: .92rem; font-weight: 700; color: #111;
  white-space: nowrap; text-align: left;
}
.hb-topbar-date { font-size: .65rem; color: #888; margin-top: 1px; white-space: nowrap; text-align: left; }
.hb-ai-input {
  display: flex; align-items: center; gap: 6px;
  background: #F7F8FA; border: 1px solid #ECEDEF; border-radius: 8px;
  padding: 6px 12px; font-size: .65rem; color: #AAA; white-space: nowrap;
}
.hb-content {
  flex: 1; overflow: hidden; display: flex; flex-direction: column;
}
.hb-content-inner {
  flex: 1; display: flex; overflow: hidden;
}
.hb-col-main {
  flex: 2; padding: 12px 14px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.hb-col-main::-webkit-scrollbar { display: none; }
.hb-panels-row {
  flex: 1; display: flex; gap: 10px; overflow: hidden; min-height: 0;
}
.hb-panel { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.hb-col-side {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
/* Stats row — numbers inline */
.hb-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: #fff; border: 1px solid #ECEDEF; border-radius: 10px; overflow: hidden;
  flex-shrink: 0;
}
.hb-stat {
  padding: 8px 10px; border-right: 1px solid #ECEDEF; display: flex; flex-direction: column;
}
.hb-stat:last-child { border-right: none; }
.hb-stat-val {
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 800; color: #111; line-height: 1.1;
}
.hb-stat-val--warn { color: var(--hb-accent, #F26B00); }
.hb-stat-label { font-size: .6rem; color: #888; margin-top: 2px; }
/* Needs you section */
.hb-needs-hd { display: flex; align-items: baseline; gap: 6px; font-size: .72rem; font-weight: 600; color: #111; text-align: left; white-space: nowrap; flex-wrap: nowrap; }
.hb-needs-sub { font-size: .62rem; font-weight: 400; color: #999; }
.hb-needs-list { background: #fff; border: 1px solid #ECEDEF; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.hb-need {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-bottom: 1px solid #F4F4F6;
}
.hb-need:last-child { border-bottom: none; }
.hb-need-av {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .58rem; font-weight: 700; flex-shrink: 0;
}
.hb-need-info { flex: 1; min-width: 0; }
.hb-need-name { font-weight: 600; color: #111; font-size: .7rem; text-align: left; }
.hb-need-detail { font-size: .6rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; max-width: 220px; }
.hb-week-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.hb-week-label { font-size: .63rem; color: #555; }
.hb-week-pct { font-size: .6rem; color: #888; font-weight: 600; }
.hb-week-bar { height: 5px; background: #F0F0F2; border-radius: 3px; overflow: hidden; }
.hb-week-fill { height: 100%; border-radius: 3px; }
/* Fixed-width columns inside each hb-need row */
.hb-tag {
  font-size: .56rem; font-weight: 600; border-radius: 4px; padding: 2px 6px; white-space: nowrap;
  width: 44px; text-align: center; flex-shrink: 0;
}
.hb-tag-action { background: color-mix(in srgb, var(--hb-accent, #F26B00) 10%, transparent); color: color-mix(in srgb, var(--hb-accent, #F26B00) 72%, #000); }
.hb-tag-due { background: rgba(239,68,68,.1); color: #B91C1C; }
.hb-tag-prep { background: rgba(59,130,246,.1); color: #1D4ED8; }
.hb-tag-inbox { background: rgba(34,197,94,.1); color: #15803D; }
.hb-need-btns { display: flex; gap: 4px; flex-shrink: 0; }
.hb-btn-p { background: var(--hb-accent, #F26B00); color: var(--hb-ink, #fff); border: none; border-radius: 5px; width: 52px; font-size: .6rem; font-weight: 600; cursor: default; text-align: center; padding: 3px 0; }
.hb-btn-s { background: #F0F0F2; color: #555; border: none; border-radius: 5px; width: 40px; font-size: .6rem; cursor: default; text-align: center; padding: 3px 0; }
/* Right column cards */
.hb-card {
  background: #fff; border: 1px solid #ECEDEF; border-radius: 10px; padding: 11px 12px;
}
.hb-card-eyebrow { font-size: .58rem; color: #AAA; margin-bottom: 4px; text-align: left; }
.hb-card-title { font-size: .75rem; font-weight: 700; color: #111; text-align: left; }
.hb-card-subtitle { font-size: .62rem; color: #888; text-align: left; }
.hb-gist-label { font-size: .57rem; font-weight: 700; color: var(--hb-accent, #F26B00); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 3px; text-align: left; }
.hb-gist-item { font-size: .63rem; color: #444; display: flex; gap: 5px; margin-bottom: 2px; text-align: left; }
.hb-gist-item::before { content: '·'; color: #CCC; flex-shrink: 0; }
.hb-action-row { display: flex; gap: 6px; margin-top: 10px; }
.hb-act-p { flex: 1; background: var(--hb-accent, #F26B00); color: var(--hb-ink, #fff); border: none; border-radius: 6px; padding: 5px 0; font-size: .6rem; font-weight: 600; cursor: default; text-align: center; }
.hb-act-g { flex: 1; background: #F0F0F2; color: #555; border: none; border-radius: 6px; padding: 5px 0; font-size: .6rem; cursor: default; text-align: center; }
/* Overnight right list */
.hb-ov-row { display: flex; align-items: flex-start; gap: 7px; padding: 6px 0; border-bottom: 1px solid #F4F4F6; }
.hb-ov-row:last-child { border-bottom: none; }
.hb-ov-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; margin-top: 4px; }
.hb-ov-body { flex: 1; }
.hb-ov-name { font-size: .65rem; color: #111; font-weight: 500; text-align: left; }
.hb-ov-detail { font-size: .58rem; color: #AAA; text-align: left; }
.hb-ov-badge { font-size: .56rem; border-radius: 4px; padding: 2px 6px; background: rgba(34,197,94,.1); color: #15803D; white-space: nowrap; flex-shrink: 0; font-weight: 600; }
/* Bottom status bar */
.hb-statusbar {
  background: #fff; border-top: 1px solid #ECEDEF;
  padding: 5px 14px; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hb-statusbar-label { font-size: .56rem; font-weight: 700; color: #BBB; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.hb-schip { display: flex; align-items: center; gap: 3px; font-size: .58rem; color: #15803D; background: rgba(34,197,94,.07); border-radius: 100px; padding: 2px 7px; white-space: nowrap; }
.hb-schip::before { content: '✓'; font-weight: 700; }

/* Mobile nav bar (phone only) */
.hb-mobile-nav {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 5px 12px;
  gap: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
  z-index: 10;
}
.hb-mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .48rem;
  color: rgba(30,64,52,.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.hb-mnav-item.active {
  color: var(--hb-accent, #F26B00);
  background: color-mix(in srgb, var(--hb-accent, #F26B00) 8%, transparent);
}
.hb-mnav-icon { display: flex; align-items: center; justify-content: center; }

/* Phone layout */
.device--phone .hb-sidebar { display: none; }
.device--phone .hb-mobile-nav { display: flex; }
.device--phone .hb-shell { height: 368px; }
.device--phone .hb-stats-row { grid-template-columns: repeat(2, 1fr); }
.device--phone .hb-col-main { padding: 10px 12px 80px; }
.device--phone .hb-bottom-row { flex-direction: column; }
.device--phone .hb-col-side { display: none; }
.device--phone .hb-topbar { padding: 8px 12px; }
.device--phone .hb-topbar-title { font-size: .82rem; }
.device--phone .hb-topbar-date { display: none; }
.device--phone .hb-ai-input { display: none; }
.device--phone .hb-statusbar { display: none; }

/* Tablet layout — no sidebar, bottom nav */
.device--tablet .hb-sidebar { display: none; }
.device--tablet .hb-mobile-nav { display: flex; }
.device--tablet .hb-shell { height: 480px; }
.device--tablet .hb-stats-row { grid-template-columns: repeat(4, 1fr); }
.device--tablet .hb-col-main { padding: 12px 16px 80px; }
.device--tablet .hb-col-side { display: none; }
.device--tablet .hb-topbar { padding: 10px 16px; }
.device--tablet .hb-ai-input { display: none; }
.device--tablet .hb-statusbar { display: none; }
.device--tablet .hb-mobile-nav { gap: 0; }
.device--tablet .hb-mnav-item { font-size: .52rem; gap: 2px; padding: 4px 12px; }
.device--tablet .hb-mnav-icon svg { width: 16px; height: 16px; }


@media (max-width: 900px) { .hb-stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) {
  .device-switcher, .device-context-label { display: none !important; }
  .device--phone .hb-bar { display: none; }
  .device--phone .hero-browser { border-radius: 18px; }
}

/* App header: brand color, company name in white */
.hb-appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 14px; background: var(--hb-accent, #F26B00); color: var(--hb-ink, #fff); }
.hb-app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-app-badge { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .6rem; font-weight: 800; flex: none; overflow: hidden; }
.hb-app-name { font-family: var(--font-display); font-size: .88rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-app-links { display: flex; gap: 4px; flex: none; }
.hb-app-links span { font-size: .64rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; opacity: .78; }
.hb-app-links span.on { background: rgba(255,255,255,.2); opacity: 1; }
.hb-logo { display: none; }
.device--phone .hb-app-links, .device--tablet .hb-app-links { display: none; }

.hb-app-right { display: flex; align-items: center; gap: 12px; flex: none; }
.hb-app-me { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--hb-accent, #F26B00); display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.hb-ask { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 0; cursor: default; background: var(--hb-accent, #F26B00); color: var(--hb-ink, #fff); font-family: var(--font-body); font-size: .68rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--hb-accent, #F26B00) 45%, transparent); }
.device--phone .hb-ask { padding: 8px; }
.device--phone .hb-ask-lbl { display: none; }
