/* Shared Globe Mind update, isolated from the existing homepage and workbench. */
:root { --gm-update-lift: 0px; }
html.gm-update-offset { --gm-update-lift: 50px; scroll-padding-top: calc(82px + var(--gm-update-lift)); }
body.gm-update-home { padding-top: var(--gm-update-lift); }
.gm-update-home .site-header { top: var(--gm-update-lift); }
.gm-update-home :is(.orbit-art,.lab-orbit-stage) { scroll-margin-top: var(--gm-update-lift); }
.gm-update-home .lab-orbit-stage { top: calc(70px + var(--gm-update-lift)); }

.gm-update-strip {
  --gm-strip-ink: #f1ebff;
  --gm-strip-subtle: #cec2e6;
  position: relative;
  flex: none;
  width: 100%;
  box-sizing: border-box;
  color: var(--gm-strip-ink);
  border-bottom: 1px solid #c7adff29;
  background: radial-gradient(ellipse at 24% 140%, #513281 0%, transparent 60%),
    linear-gradient(110deg, #1a1527, #28203b 62%, #171b34);
  font-size: 13px; font-weight: 500; line-height: 1.35;
}
.gm-update-strip[hidden],.gm-update-count[hidden],.gm-update-media-error[hidden] { display: none !important; }
.gm-update-home .gm-update-strip { position: fixed; z-index: 120; inset: 0 0 auto; height: var(--gm-update-lift); }
.gm-update-strip-inner {
  width: min(1312px, calc(100% - 64px)); min-width: 0; min-height: 49px; height: 100%;
  display: flex; align-items: center; gap: 14px; margin: 0 auto;
}
.gm-update-strip-label {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 9px;
  border-radius: 6px; background: #c59eff1f; color: #e2cbff; box-shadow: inset 0 0 0 1px #d3b4ff29;
  font-size: 11px; font-weight: 650; white-space: nowrap;
}
.gm-update-strip-dot { inline-size: 5px; block-size: 5px; border-radius: 50%; background: #c893ff; box-shadow: 0 0 10px #a874ffbf; }
.gm-update-strip-copy { display: flex; align-items: center; flex: 1; gap: 11px; min-width: 0; margin: 0; }
.gm-update-strip-copy strong { flex: none; font-weight: 670; font-size: 13px; }
.gm-update-strip-copy > span { min-width: 0; color: var(--gm-strip-subtle); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-update-strip-watch {
  min-height: 33px; flex: none; margin: 0; border: 1px solid #d7b7ff64; border-radius: 8px; padding: 4px 12px;
  background: #dabfff20; color: #f6efff; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
.gm-update-strip-watch:hover { background-color: #d7b7ff38; border-color: #e1cfffad; }
.gm-update-icon-button {
  appearance: none; box-sizing: border-box; display: inline-grid; place-items: center;
  flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; margin: 0;
  background: transparent; color: inherit; cursor: pointer;
}
.gm-update-icon-button:hover { background: #b18de326; }
.gm-update-dismiss { color: #e5d8fb; }
.gm-update-cross { position: relative; display: inline-block; width: 15px; height: 15px; }
.gm-update-cross::before,.gm-update-cross::after { content: ''; position: absolute; inset: 7px 0 auto; height: 1.5px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.gm-update-cross::after { transform: rotate(-45deg); }

.gm-update-bell { position: relative; flex: none; }
.gm-update-new-bell {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c7aff840; border-radius: 10px;
  padding: 0; color: #eee5ff; background: #ddc5ff13; cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
.gm-update-new-bell:hover { background-color: #ddc5ff2a; border-color: #dabdff7a; }
.gm-update-bell-icon { width: 12px; height: 12px; display: block; position: relative; border: 1.6px solid currentColor; border-radius: 8px 8px 3px 3px; border-bottom-width: 2px; }
.gm-update-bell-icon::before,.gm-update-bell-icon::after { content: ''; position: absolute; background: currentColor; border-radius: 5px; }
.gm-update-bell-icon::before { width: 2px; height: 3px; left: 3.4px; top: -4px; }
.gm-update-bell-icon::after { width: 4px; height: 2px; left: 2.4px; bottom: -5px; }
.gm-update-count {
  display: grid; place-items: center; position: absolute; inset: -5px -5px auto auto;
  height: 16px; min-width: 16px; padding: 0 3px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid #211831; background: #b589fb; color: #201034; font: 750 10px/1 system-ui, sans-serif; pointer-events: none;
}

.gm-update-dialog {
  --gm-card: #191524;
  --gm-ink: #f5f0ff;
  --gm-muted: #bfb4d1;
  --gm-line: #cbb2f138;
  --gm-inset: #e2d2ff0b;
  --gm-focus: #bb96fb;
  position: fixed; box-sizing: border-box; padding: 0; margin: auto; isolation: isolate;
  width: min(640px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 36px); overflow: auto;
  border: 1px solid var(--gm-line); border-radius: 22px;
  background: var(--gm-card); color: var(--gm-ink);
  box-shadow: 0 32px 90px #06030f66, inset 0 1px 0 #efd9ff12;
  font-family: inherit; overscroll-behavior: contain;
}
.gm-update-dialog[open] { animation: gm-update-in .2s ease-out both; }
.gm-update-dialog::backdrop { background: #0a06188e; }
.gm-update-dialog[data-view=feed] {
  inset: 14px 16px auto auto; margin: 0; width: min(390px, calc(100% - 32px));
  border-radius: 17px; max-height: calc(100dvh - 28px);
}
.gm-update-dialog[data-view=feed]::backdrop { background: #0a061842; }
.gm-update-surface { width: 100%; min-width: 0; }
.gm-update-dialog-head {
  padding: 20px 24px 16px;
  background: radial-gradient(ellipse at 94% -40%, #7047b364, transparent 66%),linear-gradient(175deg,#312045 0%,#241a35 68%,var(--gm-card));
  border-radius: 20px 20px 0 0;
}
.gm-update-dialog-top { min-height: 35px; display: flex; align-items: center; gap: 10px; }
.gm-update-eyebrow { color: #dcc3ff; font-size: 12px; font-weight: 680; letter-spacing: .08em; }
.gm-update-date { margin-inline-start: auto; color: var(--gm-muted); font-size: 12px; white-space: nowrap; }
.gm-update-close { color: var(--gm-ink); margin-inline-start: auto; }
.gm-update-date + .gm-update-close { margin-inline-start: 1px; }
.gm-update-title { margin: 6px 0 0; color: var(--gm-ink); font-size: clamp(24px, 4.5vw, 34px); line-height: 1.18; font-weight: 740; letter-spacing: -.025em; }
.gm-update-title:focus { outline: none; }
.gm-update-deck { margin: 9px 0 0; color: var(--gm-muted); font-size: 13px; line-height: 1.6; }
.gm-update-content { padding: 0 24px 22px; }
.gm-update-preview { margin: 0 0 14px; }
.gm-update-frame { position: relative; display: grid; place-items: center; width: 100%; height: clamp(110px, 24vh, 188px); border-radius: 13px; overflow: hidden; background: #130d22; }
.gm-update-cover {
  position: relative; width: 100%; height: 100%; min-width: 0; padding: 0; margin: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; padding-inline: 18px;
  color: white; font: inherit; font-size: 14px; font-weight: 670;
  background: linear-gradient(90deg,#140e23 0%,#1b1232db 26%,#20164063 62%,#130b2045),
    url('/assets/globemind-home-v5-20261128/media/projection-light.webp') center 53% / cover no-repeat;
}
.gm-update-cover:hover .gm-update-play { background: #d4b2ff65; transform: scale(1.06); }
.gm-update-play {
  display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: #bd8aff3e; border: 1px solid #ecd6ffa0; color: white; transition: background-color .16s, transform .16s;
}
.gm-update-play::after { content: ''; width: 0; height: 0; border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: currentColor; transform: translateX(1px); }
.gm-update-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #100d19; }
.gm-update-caption { margin: 7px 0 0; font-size: 11px; color: var(--gm-muted); }
.gm-update-media-error { margin: 6px 0 0; color: #ffd1a6; font-size: 12px; }
.gm-update-models { display: grid; gap: 7px; }
.gm-update-model { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--gm-line); border-radius: 11px; background: var(--gm-inset); }
.gm-update-model-icon { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; color: #dfc4ff; background: #ad75f932; font: 650 11px/1 system-ui, sans-serif; }
.gm-update-model[data-kind=agent] .gm-update-model-icon { color: #d8dcff; background: #858bf744; }
.gm-update-model strong { display: block; font-size: 13px; color: var(--gm-ink); }
.gm-update-model p,.gm-update-access { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: var(--gm-muted); }
.gm-update-access { margin-top: 10px; }
.gm-update-footer { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 14px; }
.gm-update-primary,.gm-update-secondary {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 39px;
  padding: 7px 13px; border: 1px solid var(--gm-line); border-radius: 9px; background: var(--gm-inset); color: var(--gm-ink);
  font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer;
}
.gm-update-primary { border-color: #d1a9ff82; background: linear-gradient(135deg,#9164dc,#7146be); color: white; }
.gm-update-primary:hover { background: linear-gradient(135deg,#a479ec,#8055ce); }
.gm-update-secondary:hover { background: #b18de327; }
.gm-update-back,.gm-update-mark { background: none; padding: 5px 1px; border: 0; font: inherit; font-size: 12px; color: var(--gm-focus); cursor: pointer; }
.gm-update-mark:disabled { opacity: .5; cursor: default; }
.gm-update-feed-tools { display: flex; justify-content: space-between; align-items: center; padding: 5px 20px 8px; font-size: 12px; color: var(--gm-muted); }
.gm-update-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0 19px 20px; }
.gm-update-entry {
  display: grid; gap: 5px; width: 100%; padding: 10px 12px; text-align: left; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--gm-line); background: var(--gm-inset); color: var(--gm-ink); font: inherit;
}
.gm-update-entry:hover { background: #ac88f324; }
.gm-update-entry strong { color: var(--gm-ink); font-size: 14px; }
.gm-update-entry-meta { display: flex; align-items: center; justify-content: space-between; color: var(--gm-focus); font-size: 11px; }
.gm-update-entry-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--gm-muted); }
.gm-update-entry-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a775ef; }
.gm-update-entry-summary { color: var(--gm-muted); font-size: 12px; line-height: 1.5; }

.gm-update-workspace .gm-update-strip-inner { width: calc(100% - 32px); }
.gm-update-workspace:not(.dark,[data-theme=dark]) .gm-update-dialog[data-view=feed] { --gm-card: #f8f7fc; --gm-ink: #251a36; --gm-muted: #5d526e; --gm-line: #dcd3ea; --gm-inset: #fff; --gm-focus: #6841a5; }
.gm-update-workspace:not(.dark,[data-theme=dark]) .gm-update-dialog[data-view=feed] .gm-update-dialog-head { background: linear-gradient(150deg,#ede6f9,#f8f7fc); }
.gm-update-workspace:not(.dark,[data-theme=dark]) .gm-update-dialog[data-view=feed] .gm-update-eyebrow { color: #634292; }
.gm-update-strip :focus-visible,.gm-update-bell:focus-visible,.gm-update-dialog :is(button,a):focus-visible { outline: 2px solid #a87bec; outline-offset: 2px; }
.gm-update-cover:focus-visible { outline-offset: -3px; }
@keyframes gm-update-in { from { opacity: 0; transform: translateY(5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 640px) {
  html.gm-update-offset { --gm-update-lift: 49px; scroll-padding-top: calc(72px + var(--gm-update-lift)); }
  .gm-update-strip-inner,.gm-update-workspace .gm-update-strip-inner { width: calc(100% - 20px); gap: 8px; min-height: 48px; }
  .gm-update-strip-copy { display: block; }
  .gm-update-strip-copy strong { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .gm-update-strip-copy > span { display: block; font-size: 10px; }
  .gm-update-strip-watch { padding-inline: 8px; min-height: 32px; font-size: 11px; }
  .gm-update-dismiss { width: 30px; }
  .gm-update-strip-label { padding-inline: 6px; font-size: 10px; }
  .gm-update-dialog-head { padding: 13px 16px 12px; }
  .gm-update-content { padding: 0 16px 16px; }
  .gm-update-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 17px; }
  .gm-update-dialog[data-view=feed] { inset: 10px 12px auto auto; width: min(390px,calc(100% - 24px)); }
  .gm-update-new-bell { width: 32px; height: 32px; }
}
@media (max-width: 400px) {
  .gm-update-home .site-header .nav-wrap { gap: 5px; }
  .gm-update-home .site-header .nav-actions { gap: 5px; }
  .gm-update-home .site-header .nav-actions > a[data-entry] { padding-inline: 8px; }
  .gm-update-home .site-header .nav-actions > a[data-entry] .icon { display: none; }
  .gm-update-strip-inner,.gm-update-workspace .gm-update-strip-inner { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-update-dialog[open] { animation: none; }
  .gm-update-strip-watch,.gm-update-new-bell,.gm-update-play { transition: none; }
}
