/* Sea Grape Labs preview bar for Zylvora OS: cinematic-safe (tokens scoped to the bar), with an account
   switcher and the guided scenarios. Only .sglbar*, .sgg* classes. */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
.sglbar, .sglbar-toast, .sgg, .sgg-ring, .sglbar-acc {
  --b-ink: #08181a; --b-ink-2: #0d2c33; --b-leaf: #426544; --b-fresh: #8fbf72; --b-sand: #eadfc9; --b-foam: #f3efe3; --b-mist: #a9bdb5; --b-grape: #77475b;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.4; font-weight: 400; letter-spacing: normal; text-transform: none; text-align: left;
}
.sglbar { position: fixed; inset: 0 0 auto 0; height: 52px; z-index: 2147483000; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--b-ink); color: var(--b-foam); border-bottom: 1px solid rgba(255, 255, 255, .08); box-sizing: border-box; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.sglbar *, .sglbar *::before, .sglbar *::after, .sgg *, .sglbar-acc * { box-sizing: border-box; }
body.bar-tucked .sglbar:not(.is-open) { transform: translateY(-100%); }
.sglbar a { color: inherit; text-decoration: none; }
.sglbar :focus-visible, .sgg :focus-visible, .sglbar-acc :focus-visible { outline: 2px solid var(--b-fresh); outline-offset: 2px; }
.sglbar-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.sglbar-brand svg { width: 28px; height: 28px; display: block; }
.sglbar-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.sglbar-brand b { font-size: 13.5px; font-weight: 700; }
.sglbar-brand small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--b-mist); margin-top: 2px; }
.sglbar-steps { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.sglbar-step { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; color: var(--b-mist); font-size: 13px; font-weight: 600; }
.sglbar-step:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sglbar-n { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: rgba(255, 255, 255, .1); }
.sglbar-step.is-done .sglbar-n { background: var(--b-leaf); color: #fff; }
.sglbar-step.is-current { background: var(--b-foam); color: var(--b-ink); }
.sglbar-step.is-current .sglbar-n { background: var(--b-ink); color: #fff; }
.sglbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sglbar-btn { font: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: var(--b-foam); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.sglbar-btn:hover { border-color: #fff; }
.sglbar-guide { background: var(--b-leaf); border-color: var(--b-leaf); color: #fff; }
.sglbar-who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.sglbar-who i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; background: var(--b-grape); color: #fff; flex: none; }
.sglbar-next { color: #fff; font-size: 13px; font-weight: 700; background: rgba(143, 191, 114, .18); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.sglbar-menu { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 8px; padding: 0; }
.sglbar-menu span { width: 20px; height: 2px; background: var(--b-foam); border-radius: 2px; }
.sglbar-here { display: none; font-size: 12.5px; color: var(--b-mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sglbar-here b { color: #fff; }
.sglbar-acc { position: fixed; z-index: 2147483002; top: 56px; right: 12px; width: min(330px, calc(100vw - 24px)); max-height: calc(100dvh - 70px); overflow: auto; background: var(--b-ink-2); color: var(--b-foam); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.sglbar-acc h4 { margin: 8px 8px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--b-mist); }
.sglbar-acc button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; color: inherit; border-radius: 10px; cursor: pointer; font: inherit; text-align: left; }
.sglbar-acc button:hover, .sglbar-acc button[aria-current="true"] { background: rgba(255, 255, 255, .07); }
.sglbar-acc button i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: var(--b-leaf); color: #fff; flex: none; }
.sglbar-acc button span { display: grid; line-height: 1.25; min-width: 0; }
.sglbar-acc button b { font-size: 13.5px; }
.sglbar-acc button small { font-size: 12px; color: var(--b-mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sglbar-acc .live i { background: #E36A0E; }
@media (max-width: 1220px) { .sglbar-l { display: none; } .sglbar-step { padding: 6px; } .sglbar-step.is-current .sglbar-l { display: inline; } .sglbar-next { display: none; } }
@media (max-width: 860px) {
  .sglbar { gap: 8px; padding: 0 8px 0 10px; }
  .sglbar-brand small { display: none; }
  .sglbar-here { display: block; flex: 1 1 auto; }
  .sglbar-steps, .sglbar-right { display: none; }
  .sglbar-menu { display: flex; }
  .sglbar.is-open .sglbar-steps, .sglbar.is-open .sglbar-right { display: flex; position: absolute; left: 0; right: 0; background: var(--b-ink-2); padding: 10px 12px; }
  .sglbar.is-open .sglbar-steps { top: 52px; flex-wrap: wrap; gap: 6px; }
  .sglbar.is-open .sglbar-l { display: inline; }
  .sglbar.is-open .sglbar-right { top: var(--sglbar-steps-h, 156px); flex-wrap: wrap; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
}
.sglbar-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 2147483003; background: var(--b-ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }

/* Guided scenario card */
.sgg.sgg-left { right: auto; left: 16px; }
.sgg p.sgg-say { font-size: 13px; color: #a9bdb5; border-left: 2px solid #77475b; padding-left: 10px; }

.sgg { position: fixed; z-index: 2147483001; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); background: var(--b-ink); color: var(--b-foam); border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); padding: 16px 16px 14px; animation: sggIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sggIn { from { opacity: 0; transform: translateY(14px); } }
.sgg-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sgg-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--b-fresh); font-weight: 800; }
.sgg-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.sgg h3 { margin: 0 0 4px; font-size: 17px; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.sgg p { margin: 0 0 12px; font-size: 14px; color: #d6dfd9; line-height: 1.45; }
.sgg-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.sgg-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.sgg-dots i.d { background: var(--b-leaf); }
.sgg-dots i.c { background: var(--b-fresh); }
.sgg-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sgg-go { font: inherit; font-size: 13.5px; font-weight: 800; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--b-fresh); color: var(--b-ink); cursor: pointer; }
.sgg-lite { font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 7px 11px; background: none; color: var(--b-foam); cursor: pointer; }
.sgg-here { font-size: 12.5px; color: var(--b-fresh); font-weight: 700; }
.sgg-done { background: rgba(143, 191, 114, .15); color: var(--b-fresh); border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.sgg-ring { position: fixed; z-index: 2147482999; pointer-events: none; border-radius: 14px; box-shadow: 0 0 0 3px #8fbf72, 0 0 0 9px rgba(143, 191, 114, .28); transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s, height .35s, opacity .3s; animation: sggPulse 1.8s ease-in-out infinite; }
@keyframes sggPulse { 50% { box-shadow: 0 0 0 3px #8fbf72, 0 0 0 14px rgba(143, 191, 114, .12); } }
@media (prefers-reduced-motion: reduce) { .sglbar, .sgg-ring { transition: none; animation: none; } .sgg { animation: none; } }

@media (max-width: 759px) {
  .sgg { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 12px 14px; border-radius: 16px; }
  .sgg.sgg-up { bottom: auto; top: 60px; }
  .sgg h3 { font-size: 15.5px; }
  .sgg p { font-size: 13px; margin-bottom: 8px; }
  .sgg p.sgg-say, .sgg-dots { display: none; }
  .sgg-top { margin-bottom: 4px; }
}