/* BYNZO Home OS — scoped to #page-content.home-os */
#page-content.home-os { width: 100%; max-width: none; min-width: 0; }
.home-os { display: grid; gap: 18px; width: 100%; max-width: 100%; overflow-x: hidden; }
.home-os .quick-actions,
.home-os .home-search-wrap,
.home-os .home-stats,
.home-os .home-continue,
.home-os .home-apps,
.home-os .home-hscroll { max-width: 100%; }
.home-panel {
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-sm); min-width: 0;
}
.home-os .sec-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.home-os .sec-h h2 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.03em; }
.home-os .sec-h a, .home-os .sec-h button.linkish {
  font-size: 12px; font-weight: 600; color: var(--bnz-muted); background: none; border: 0; cursor: pointer;
}
.home-os .sec-h a:hover, .home-os .sec-h button.linkish:hover { color: var(--bnz-orange); }

.home-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start;
  max-width: 100%;
}
.home-ident { display: flex; gap: 14px; align-items: center; min-width: 0; }
.home-ident .who { min-width: 0; }
.home-ident h1 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.home-ident .meta { color: var(--bnz-muted); font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.home-ident .meta .mono { color: var(--bnz-text-2); }
.home-search-wrap { position: relative; }
.home-search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bnz-border);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.home-search:focus-within { border-color: var(--bnz-orange); box-shadow: 0 0 0 4px var(--bnz-orange-ring); }
.home-search input {
  flex: 1; border: 0; outline: none; background: transparent; font: inherit; min-width: 0; font-size: 15px;
}
.home-search-res {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: 380px; overflow: auto; padding: 8px; display: none;
}
.home-search-res.open { display: block; }
.home-search-res .g { font-size: 11px; font-weight: 700; color: var(--bnz-muted); padding: 8px 10px 4px; text-transform: none; }
.home-search-res a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.home-search-res a:hover { background: var(--bnz-bg); }

.home-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.home-stat {
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.home-stat b { display: block; font-size: 1.15rem; letter-spacing: -0.04em; }
.home-stat span { color: var(--bnz-muted); font-size: 11px; font-weight: 600; }

.home-continue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-resume {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: start;
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: 180ms var(--ease);
}
.home-resume:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #ffd0b3; }
.home-resume .k { font-size: 11px; color: var(--bnz-muted); font-weight: 700; }
.home-resume b { font-size: 13px; }
.home-resume p { font-size: 12px; color: var(--bnz-muted); margin: 0; }
.home-resume .cta { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--bnz-orange); }

.home-chips { display: flex; gap: 6px; overflow: auto; padding-bottom: 2px; scrollbar-width: none; }
.home-chips::-webkit-scrollbar { display: none; }
.home-chips button {
  flex: none; border: 1px solid var(--bnz-border); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--bnz-text-2);
}
.home-chips button.on { background: var(--bnz-black); color: #fff; border-color: var(--bnz-black); }

.home-apps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.home-app {
  position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  padding-inline-end: 36px;
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 14px; min-height: 76px;
  box-shadow: var(--shadow-sm); transition: 180ms var(--ease); text-align: start;
}
.home-app:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d4d4d8; }
.home-app .app-ico { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.home-app h3 { font-size: 13px; margin: 0; letter-spacing: -0.02em; }
.home-app p { margin: 2px 0 0; font-size: 11px; color: var(--bnz-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-app .fav {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border: 0; background: transparent;
  cursor: pointer; color: var(--bnz-faint); display: grid; place-items: center; border-radius: 8px;
}
.home-app .fav.on { color: var(--bnz-orange); }
.home-app .fav:hover { background: var(--bnz-orange-soft); }
.home-app .ping-n {
  position: absolute; top: 8px; inset-inline-start: 8px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--bnz-orange); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.home-favs { display: flex; gap: 8px; flex-wrap: wrap; }
.home-favs a {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bnz-border);
  border-radius: 999px; padding: 6px 10px 6px 6px; font-size: 12px; font-weight: 700;
}
.home-favs a:hover { border-color: var(--bnz-orange); }
.home-favs .app-ico { width: 24px; height: 24px; border-radius: 8px; }

.home-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; max-width: 100%; }
.home-live { display: grid; gap: 10px; }
.home-live-card {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px;
  background: var(--bnz-bg); border: 1px solid var(--bnz-border); border-radius: 14px; transition: 180ms var(--ease);
}
.home-live-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #ffd0b3; }
.home-thumb {
  height: 64px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px;
  position: relative; overflow: hidden;
}
.home-thumb .badge { position: absolute; top: 6px; inset-inline-start: 6px; }
.home-act { display: grid; gap: 8px; }
.home-act a, .home-act .cardish {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--bnz-border); border-radius: 14px; padding: 10px 12px;
  transition: 180ms var(--ease);
}
.home-act a:hover { border-color: #d4d4d8; box-shadow: var(--shadow-sm); }
.home-act .bar { height: 4px; background: #ececef; border-radius: 99px; margin-top: 8px; overflow: hidden; grid-column: 1 / -1; }
.home-act .bar i { display: block; height: 100%; background: var(--bnz-orange); border-radius: 99px; }
.home-act .st { font-size: 11px; font-weight: 700; color: var(--bnz-muted); }

.home-hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.home-offer {
  flex: 0 0 220px; background: #fff; border: 1px solid var(--bnz-border); border-radius: 14px; padding: 12px;
  transition: 180ms var(--ease);
}
.home-offer:hover { border-color: #ffd0b3; transform: translateY(-2px); }
.home-offer b { color: var(--bnz-orange); font-size: 15px; }
.home-offer p { margin: 4px 0 0; font-size: 12px; color: var(--bnz-muted); }

.home-people { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 1600px) {
  .home-people { grid-template-columns: 1fr 1fr; }
}
.home-person {
  display: flex; gap: 10px; align-items: flex-start; background: var(--bnz-bg); border: 1px solid var(--bnz-border);
  border-radius: 14px; padding: 10px; transition: 180ms var(--ease);
}
.home-person:hover { box-shadow: var(--shadow-sm); }
.home-person .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.home-files a {
  display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bnz-border);
}
.home-files a:last-child { border-bottom: 0; }
.home-file-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; flex: none;
}
.home-up a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bnz-border); font-size: 13px; }
.home-up a:last-child { border-bottom: 0; }
.home-up .when { color: var(--bnz-muted); font-size: 12px; white-space: nowrap; }

.home-notes a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--bnz-border); }
.home-notes a:last-child { border-bottom: 0; }

.home-empty, .home-err, .home-off {
  text-align: center; padding: 22px 12px; color: var(--bnz-muted); font-size: 13px;
}
.home-err { color: #9a3412; background: var(--bnz-orange-soft); border-radius: 14px; }
.home-banner {
  border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600;
}
.home-banner.off { background: #18181b; color: #fff; }
.home-banner.err { background: #fee2e2; color: #991b1b; }
.home-banner button {
  background: none; border: 0; color: inherit; font-weight: 800; cursor: pointer; text-decoration: underline;
}

.home-skel { display: grid; gap: 10px; }
.home-skel i {
  display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #ececef, #f7f7f8, #ececef);
  background-size: 200% 100%; animation: homeShimmer 1.2s ease infinite;
}
.home-skel .box { height: 72px; border-radius: 14px; background: #ececef; animation: homeShimmer 1.2s ease infinite; }
@keyframes homeShimmer { 50% { background-position: 100% 0; } }

.home-demo-states {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px;
}
.home-demo-states span { font-size: 11px; color: var(--bnz-faint); font-weight: 700; }
.home-demo-states button {
  border: 1px dashed var(--bnz-border); background: transparent; border-radius: 999px;
  padding: 4px 8px; font-size: 11px; cursor: pointer; color: var(--bnz-muted);
}
.home-demo-states button.on { border-color: var(--bnz-orange); color: var(--bnz-orange); }

@media (max-width: 1440px) {
  .home-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .home-hero, .home-split, .home-people { grid-template-columns: 1fr; }
  .home-continue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .home-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-continue { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-continue { grid-template-columns: 1fr; }
  .home-apps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-live-card { grid-template-columns: 72px minmax(0, 1fr); }
  .home-live-card .btn { justify-self: start; grid-column: 2; }
}
