/* BoboCreate Online's editor page (publish/online/edit/): the bar above the editor, the loading
   cover, and the two dialogs the editor opens ("in the app", "session ended"). */
html, body { margin: 0; padding: 0; height: 100%; }
body { font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #111712; background: #f7f8f6; overflow: hidden; }
.online-bar { box-sizing: border-box; height: 36px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: #13261a; color: #e8efe9; font-size: 12.5px; white-space: nowrap; }
.online-bar a { color: #e8efe9; text-decoration: none; }
.online-bar a:hover { text-decoration: underline; }
.online-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.online-brand img { border-radius: 4px; }
.online-brand b { color: #8fd77a; font-weight: 700; }
.online-says { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #bccbbf; }
.online-links { display: inline-flex; gap: 14px; align-items: center; }
.online-links .online-get { background: #2a7e1b; color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.online-links .online-get:hover { background: #246d17; text-decoration: none; }
@media (max-width: 900px) { .online-says { display: none; } .online-bar { justify-content: space-between; } }

/* The editor fills what the bar leaves (its own :host asks for the whole window). */
bobo-root { display: grid; height: calc(100vh - 36px) !important; height: calc(100dvh - 36px) !important; }

#online-cover { position: fixed; inset: 36px 0 0 0; z-index: 900; display: grid; place-items: center; background: #f7f8f6; }
#online-cover[hidden] { display: none; }
.online-cover-box { max-width: 440px; padding: 24px; text-align: center; }
.online-cover-box .text { font-size: 15px; color: #384239; }
#online-cover:not(.failed) .text::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid #d5dcd6; border-top-color: #2a7e1b; animation: online-spin 0.9s linear infinite; }
@keyframes online-spin { to { transform: rotate(360deg); } }
.online-cover-box .actions[hidden] { display: none; }
.online-cover-box .actions { display: flex; gap: 14px; justify-content: center; }
.online-cover-box .actions a { color: #2a7a1c; }
.online-cover-box .actions a.primary { background: #2a7e1b; color: #fff; padding: 7px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }

#online-offer, #online-lock { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(17, 23, 18, 0.45); }
#online-lock { background: rgba(17, 23, 18, 0.6); backdrop-filter: blur(3px); }
#online-offer .sheet, #online-lock .sheet { box-sizing: border-box; width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
#online-offer h2, #online-lock h2 { margin: 0 0 8px; font-size: 17px; }
#online-offer p, #online-lock p { margin: 0 0 10px; color: #384239; font-size: 14px; }
#online-offer p.small { font-size: 12.5px; color: #586259; }
#online-offer .actions, #online-lock .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
#online-offer .actions a, #online-offer .actions button, #online-lock .actions button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(17, 23, 18, 0.13); background: #fff; color: #111712; text-decoration: none; cursor: pointer; }
#online-offer .actions .primary, #online-lock .actions .primary { background: #2a7e1b; border-color: #2a7e1b; color: #fff; font-weight: 600; }
#online-offer .actions .ghost { border-color: transparent; color: #586259; margin-left: auto; }
/* After a download: one line asking people to subscribe on YouTube. It never blocks anything. */
#online-yt { position: fixed; left: 0; right: 0; bottom: 64px; margin: 0 auto; width: max-content; z-index: 1500; box-sizing: border-box; max-width: calc(100vw - 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 10px 9px 16px; border-radius: 12px; background: #13261a; color: #e8efe9; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
#online-yt a, #online-yt button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
#online-yt .primary { background: #c62828; color: #fff; font-weight: 600; }
#online-yt .primary:hover { background: #a91f1f; }
#online-yt .ghost { background: transparent; color: #bccbbf; padding-left: 6px; padding-right: 6px; }
#online-yt .ghost:hover { color: #fff; }
.online-noscript { padding: 24px; }
