.bb-guide-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(23, 63, 53, 0.2);
  border-radius: 22px;
  overflow: hidden;
  background: #f6f8f0;
  color: #10271f;
  box-shadow: 0 28px 100px rgba(13, 38, 31, 0.34);
}

.bb-guide-dialog:not([open]) {
  display: none;
}

.bb-guide-dialog::backdrop {
  background: rgba(10, 31, 25, 0.62);
  backdrop-filter: blur(5px);
}

.bb-guide-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
}

.bb-guide-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(23, 63, 53, 0.16);
  background: linear-gradient(120deg, #eef4df 0%, #fff4cf 100%);
}

.bb-guide-eyebrow {
  margin: 0 0 2px;
  color: #997100;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bb-guide-header h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.bb-guide-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(23, 63, 53, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.84);
  color: #173f35;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bb-guide-close span {
  font-size: 22px;
  line-height: 1;
}

.bb-guide-close:hover {
  background: #fff;
}

.bb-guide-close:focus-visible,
.bb-guide-footer a:focus-visible {
  outline: 3px solid #176dcc;
  outline-offset: 3px;
}

.bb-guide-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 20px;
}

.bb-guide-intro {
  margin: 0 0 16px;
  color: #3a5047;
  font-size: 16px;
  line-height: 1.45;
}

.bb-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-guide-step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 63, 53, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(38, 66, 53, 0.08);
}

.bb-guide-step-title {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.bb-guide-step-title > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #173f35;
  color: #fff;
  font-weight: 900;
}

.bb-guide-step-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.bb-guide-step > p {
  margin: 0;
  color: #385046;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.bb-guide-screen {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  padding: 10px;
  border: 1px solid rgba(43, 92, 75, 0.2);
  border-radius: 13px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    linear-gradient(145deg, #deecf8 0%, #eef5e5 56%, #fff0bd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.bb-guide-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #173f35;
  color: #fff;
}

.bb-guide-screen-bar strong {
  font-size: 12px;
}

.bb-guide-screen-action,
.bb-guide-field,
.bb-guide-invite-code,
.bb-guide-permission,
.bb-guide-object-access {
  padding: 7px 8px;
  border: 1px solid rgba(23, 63, 53, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.bb-guide-screen-action {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #173f35;
}

.bb-guide-screen-action span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #e5b526;
  font-size: 16px;
  font-weight: 900;
}

.bb-guide-field,
.bb-guide-invite-code,
.bb-guide-object-access {
  display: grid;
  gap: 2px;
}

.bb-guide-field small,
.bb-guide-invite-code small,
.bb-guide-object-access small {
  color: #687b72;
  font-size: 9px;
  font-weight: 750;
}

.bb-guide-field strong,
.bb-guide-invite-code strong,
.bb-guide-object-access strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-guide-invite-code span {
  color: #267047;
  font-size: 9px;
  font-weight: 800;
}

.bb-guide-screen-button {
  min-height: 27px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #173f35;
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.bb-guide-colors {
  display: flex;
  gap: 6px;
  padding: 4px 2px;
}

.bb-guide-colors i {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #2e6ea3;
  box-shadow: 0 0 0 1px rgba(23, 63, 53, 0.2);
}

.bb-guide-colors i:nth-child(2) { background: #4f8c42; }
.bb-guide-colors i:nth-child(3) { background: #d79b18; }
.bb-guide-colors i:nth-child(4) { background: #9d5a73; }

.bb-guide-permission {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 6px;
}

.bb-guide-permission strong {
  grid-column: 1 / -1;
}

.bb-guide-permission span {
  padding: 3px 5px;
  border-radius: 6px;
  background: #e2f0e3;
  color: #23633d;
  font-size: 9px;
  font-weight: 800;
}

.bb-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #e8efd9;
}

.bb-guide-footer p {
  margin: 0;
  color: #30473d;
  font-size: 13px;
  line-height: 1.4;
}

.bb-guide-footer a {
  flex: none;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #173f35;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .bb-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Public landing only: cabinet styles remain independent. */
.public-landing-screen { padding: 32px; }
.public-landing-screen .product-showcase { max-width: 1240px; gap: 24px; align-self: start; }
.product-intro { max-width: 960px; }
.product-kicker { margin: 18px 0 12px; }
.product-intro h1 { max-width: 950px; font-size: clamp(32px,4vw,52px); line-height: 1.08; letter-spacing: -.035em; }
.product-lead { margin-top: 16px; font-size: 17px; max-width: 760px; }
.product-proof { margin-top: 12px; }
.product-jump-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.product-jump-links a { display:inline-flex; align-items:center; min-height:44px; padding:8px 14px; border:1px solid #b8cbbb; border-radius:24px; color:#173f35; background:#f8fbf5; font-size:14px; text-decoration:none; font-weight:700; }
.product-grid { gap:16px; }
.product-card { padding:20px; scroll-margin-top:16px; }
.product-card:hover { transform:none; }
.product-card-head { min-height:64px; flex-wrap:nowrap; gap:12px; }
.product-card-copy { margin-top:16px; }
.product-card h2 { font-size:26px; line-height:1.15; }
.product-card-build .product-number { color:#805900; }
.product-features span { font-size:12px; background:#f2f6ef; }
.product-actions,.product-registration-links { margin-top:20px; }
.product-registration-links { display:block; max-width:none; }
.product-registration-actions { display:flex; flex-wrap:wrap; gap:8px; }
.product-primary,.product-card-links .product-primary { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:12px; border:1px solid #173f35; border-radius:12px; background:#173f35; color:#fff; font-size:15px; line-height:1.3; font-weight:750; text-align:center; text-decoration:none; }
.product-primary:hover,.product-card-links .product-primary:hover { background:#0e3027; color:#fff; }
.product-guide-open,.product-return-link,.product-card-links .product-return-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 12px; border:1px solid #b8cbbb; border-radius:10px; background:#fff; color:#173f35; font:inherit; font-size:14px; line-height:1.4; text-decoration:none; cursor:pointer; }
.product-guide-open:hover { background:#e1eee7; color:#173f35; }
.product-registration-note { padding:0; background:transparent; font-weight:400; }
.product-action-note,.product-registration-note { margin:10px 0 0; color:#4d5e53; font-size:14px; line-height:1.5; }
.product-platforms { margin:0 0 0 auto; gap:8px; flex-shrink:0; }
.product-platform { flex:0 0 auto; width:auto; min-width:44px; min-height:44px; flex-direction:row; gap:6px; padding:8px; font-size:12px; line-height:1.2; }
.product-platform svg { width:18px; height:18px; }
.product-platform-android svg { color:#267c39; }
.public-landing-screen .product-illustration { position:relative; inset:auto; width:100%; height:160px; aspect-ratio:auto; margin:16px 0 -20px; transform:none; align-items:flex-end; justify-content:flex-end; }
.public-landing-screen .product-illustration img { width:100%; height:100%; object-fit:contain; object-position:right bottom; }
@media (min-width:761px) {
  .public-landing-screen .product-illustration {
    margin-top:auto;
    flex-shrink:0;
    border-top:16px solid transparent;
    box-sizing:content-box;
  }
}
.public-footer { gap:8px 20px; align-items:center; padding-top:16px; border-top:1px solid #bfcebd; }
.public-footer > span,.public-footer > strong { flex-basis:100%; }
.public-footer strong { font-size:13px; color:#4d5e53; }
.public-footer a { min-height:44px; font-size:13px; }
.public-landing-screen a:focus-visible,.public-landing-screen button:focus-visible { outline:3px solid #176dcc; outline-offset:3px; }
.bb-guide-close { min-height:44px; flex-shrink:0; }
@media (max-width:960px) and (min-width:761px) { .product-grid { grid-template-columns:1fr; } .product-card { max-width:640px; width:100%; justify-self:center; } }
@media (max-width:760px) {
  .public-landing-screen { padding:22px 16px; }
  .public-landing-screen .product-showcase { gap:20px; }
  .product-intro h1 { font-size:32px; line-height:1.12; }
  .product-kicker { margin-top:16px; font-size:11px; letter-spacing:.08em; }
  .product-lead { font-size:16px; line-height:1.5; margin-top:12px; }
  .product-jump-links { gap:6px; margin-top:12px; }
  .product-jump-links a { padding:8px 10px; font-size:13px; }
  .product-card { padding:18px; }
  .product-card h2 { font-size:25px; }
  .public-landing-screen .product-illustration { height:125px; margin-bottom:-18px; }
  .bb-guide-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:16px; }
  .bb-guide-shell { max-height:calc(100dvh - 16px); }
  .bb-guide-header { padding:14px; gap:8px; align-items:flex-start; }
  .bb-guide-header h2 { font-size:24px; }
  .bb-guide-body { padding:14px; }
  .bb-guide-steps { grid-template-columns:1fr; }
  .bb-guide-footer { flex-direction:column; align-items:stretch; }
  .bb-guide-footer a { min-height:48px; }
}
@media (max-width:360px) { .product-registration-actions > * { width:100%; } .product-intro h1 { font-size:30px; } }
@media (max-width:760px) {
  .product-kicker { display:none; }
  .product-intro h1 { margin-top:16px; }
  .product-jump-links { gap:4px; }
  .product-jump-links a { flex:1; justify-content:center; padding:8px 6px; font-size:12px; }
  .product-card { display:grid; grid-template-columns:52px minmax(0,1fr); column-gap:12px; }
  .product-card > * { grid-column:1 / -1; }
  .product-card-head { grid-column:1 / -1; grid-row:1; align-self:start; min-height:0; }
  .product-icon { width:52px; height:52px; border-radius:14px; }
  .product-card-copy { grid-column:1 / -1; grid-row:2; margin:14px 0 0; }
  .product-card h2 { font-size:23px; }
  .product-number { font-size:10px; }
  .product-card-copy > p:last-child { font-size:14px; margin-top:10px; }
  .product-features { margin-top:14px; }
  .product-actions,.product-registration-links { margin-top:14px; }
  .public-landing-screen .product-illustration { height:100px; }
}
