/* User-selected final Geography Diorama background. */
html:root body,html:root body.launcher,html:root body:not(.launcher){background:#153d35 url('../image/geography-user-landscape.webp?v=user-1') center/cover fixed no-repeat!important;isolation:isolate}
html:root body::before{content:''!important;position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:-1!important;pointer-events:none!important;opacity:1!important;transform:none!important;filter:none!important;background:#153d35 url('../image/geography-user-landscape.webp?v=user-1') center/cover no-repeat!important}
html:root body>.bg-spheres{display:none!important}
html:root body:has(.stage) .shell>header{background:#fffaf0ed;border-radius:0 0 16px 16px;padding-left:14px;padding-right:14px}
html:root body:has(.stage) aside.side{background:#fffaf0ed;border-radius:16px;padding:16px;box-shadow:0 8px 24px #102b4220}
html:root body:has(#reader)>header h1,html:root body:has(#reader)>header h1 span,html:root body:has(#reader)>header p,html:root body>.video-header h1,html:root body>.video-header h1 span,html:root body>.video-header p{color:#fff!important;text-shadow:0 2px 6px #10283c!important}
@media print{html:root body{background:white!important}html:root body::before{display:none!important}}

/* Magic Lens controls aligned with the reference layout. */
html:root body:has(.explorer > #guide-slot) .shell {
  padding-top: 12px;
}

html:root body:has(.explorer > #guide-slot) .shell > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: auto;
  min-height: 50px;
  padding: 4px 18px;
  border-radius: 13px;
  background: #fff7e8ef;
}

.shell > header:has(#course-label) > .brand {
  display: none;
}

.shell > header > #course-label {
  margin-left: auto;
  color: #294d43;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.shell > header > #back-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ae2458, #78123b);
  color: #fff;
  font: 700 13px/1.2 'Segoe UI', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 12px #49162d33;
}

.shell > header > #back-btn:hover {
  background: #78123b;
}

.explorer > .toolbar .toolbar-actions {
  margin-left: auto;
}

.explorer > #guide-slot {
  width: 100%;
  min-width: 0;
}

.explorer > #guide-slot > #guide-card {
  display: block;
  box-sizing: border-box;
  padding: 8px 14px;
  background: #fffaf0f5;
  border: 1px solid var(--line, #d9d0bd);
  border-radius: 12px;
}

.explorer > #guide-slot .guide-top {
  justify-content: space-between;
}

.explorer > #guide-slot .guide-help {
  display: flex;
  justify-content: flex-start;
  margin-top: 5px;
}

.explorer > #guide-slot #guide-help,
.explorer > .underbar > #canvas-help {
  display: none;
}

.explorer > .underbar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  padding: 10px 18px;
  background: #fff7e8ef;
  border-radius: 12px;
  color: #294d43;
}

@media (max-width: 740px) {
  html:root body:has(.explorer > #guide-slot) .shell > header {
    padding-inline: 10px;
  }

  .shell > header > #course-label {
    font-size: 11px;
  }

  .shell > header > #back-btn {
    min-height: 40px;
    padding-inline: 13px;
  }
}

