:root {
  --clear-global-cyan: #5ed9ff;
  --clear-global-gold: #c9a44c;
  --clear-global-footer-height: 40px;
  --clear-global-dock-top: var(--clear-active-titlebar-height, 40px);
}

.clear-surface-launchers {
  position: fixed;
  z-index: 2147483000;
  top: var(--clear-global-dock-top);
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 32px;
  padding: 0 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--clear-titlebar-ink, #eef5f8);
  isolation: isolate;
  max-width: calc(100vw - 28px);
}

.clear-quick-actions {
  display: grid;
  grid-template-columns: repeat(10, 30px);
  align-items: center;
  justify-content: end;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
}

.clear-thorium-launcher,
.clear-surface-launchers .clr-dots { flex: 0 0 auto; }

.clear-quick-action {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 1;
  transition: opacity .16s ease, transform .16s ease, background-color .16s ease, filter .16s ease;
}

.clear-quick-action img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: .94;
  object-fit: contain;
  image-rendering: auto;
  filter: none;
}

.clear-quick-action:hover,
.clear-quick-action:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(185, 139, 52, .08);
  filter: drop-shadow(0 0 4px rgba(225, 196, 119, .32));
}

.clear-quick-action:focus-visible {
  outline: 2px solid var(--clear-global-cyan);
  outline-offset: 2px;
}

.clear-global-footer {
  position: relative;
  z-index: 2147481000;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: var(--clear-global-footer-height);
  padding: 0 12px;
  overflow: hidden;
  border-top: 1px solid var(--clear-titlebar-rule, rgba(127, 127, 127, .22));
  background: var(--footer-bg, var(--clear-titlebar-bg, rgba(8, 13, 19, .94)));
  color: var(--footer-ink, var(--clear-titlebar-ink, #9ba9af));
  font: 600 8px/1.2 var(--clear-display-font, "Sora", "Segoe UI", sans-serif);
  letter-spacing: .08em;
  white-space: nowrap;
}

/* Room faces supply a fixed footer rail. Keep the shared global footer in that
   rail instead of allowing its generic grid positioning to lift it to the top. */
.room-footer.clear-global-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--clear-footer-height, var(--clear-global-footer-height));
}

.clear-global-footer__start,
.clear-global-footer__end,
.clear-global-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.clear-global-footer__slider { display: contents; }
.clear-global-footer__range { display: none; }
.clear-global-footer__start { grid-column: 1; }
.clear-global-footer__end { grid-column: 3; justify-content: flex-end; }
.clear-global-footer__brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: inherit; text-decoration: none; }
.clear-global-footer__brand img { width: 26px; height: 26px; object-fit: contain; }
.clear-global-footer a,
.clear-global-footer button { color: inherit; text-decoration: none; text-transform: uppercase; opacity: .78; }
.clear-global-footer button { padding: 4px 0; border: 0; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; }
.clear-global-footer a:hover,
.clear-global-footer a:focus-visible,
.clear-global-footer button:hover,
.clear-global-footer button:focus-visible { color: var(--clear-global-gold); opacity: 1; outline: 0; }

.clear-page-new {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid rgba(94, 217, 255, .38);
  background: rgba(94, 217, 255, .08);
  color: var(--clear-global-cyan);
  font: 700 10px/1 var(--clear-display-font, "Sora", "Segoe UI", sans-serif);
  letter-spacing: .16em;
  text-align: left;
  cursor: pointer;
}

.claire {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline !important;
  column-gap: 7px;
  max-width: min(100%, 820px);
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}
.claire__breath { align-self: baseline; line-height: 1; }
.claire > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.clear-blank-page { min-height: 100%; margin: 0; background: #f6f3eb; color: #2a2622; }
.clear-blank-page[data-room="darkroom"] { background: #050a10; color: #edf2f2; }
.clear-blank { min-height: 100vh; display: grid; place-content: center; gap: 12px; padding: 32px; }
.clear-blank h1 { margin: 0; color: var(--clear-global-gold); font: 300 clamp(26px, 4vw, 48px)/1 var(--clear-display-font, "Sora", sans-serif); letter-spacing: .22em; }
.clear-blank__purpose { margin: 0; max-width: 720px; opacity: .68; }
.clear-blank__search { position: relative; width: min(820px, calc(100vw - 48px)); }

body[data-clear-embedded="true"] .room-footer,
body[data-clear-embedded="true"] .room__thorium,
body[data-clear-embedded="true"] .clear-surface-launchers { display: none !important; }

@media (max-width: 980px) {
  .clear-quick-actions { max-width: min(70vw, 450px); overflow-x: auto; scrollbar-width: none; }
  .clear-quick-actions::-webkit-scrollbar { display: none; }
  .clear-global-footer {
    grid-template-columns: minmax(340px, 1fr) minmax(260px, auto) minmax(340px, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .clear-global-footer::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .clear-surface-launchers {
    right: 6px;
    left: 6px;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px 28px;
    align-items: center;
    gap: 2px;
    padding: 0 2px;
  }
  .clear-quick-actions {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
  }
  .clear-quick-action { width: 100%; height: 26px; min-width: 0; }
  .clear-quick-action img { width: min(18px, 76%); height: min(18px, 76%); }
  .clear-shell[data-form-factor="mobile"] .clear-surface-launchers .clear-thorium-launcher,
  .clear-surface-launchers .room__thorium {
    width: 28px;
    height: 28px;
  }
  .clear-thorium-launcher img,
  .clear-surface-launchers .room__thorium img { width: 20px; height: 20px; }
  .clear-surface-launchers .clr-dots { width: 28px; min-width: 28px; height: 28px; padding: 3px; }
  .clear-surface-launchers .clr-dots img { width: 22px; height: 22px; }
  .clear-global-footer {
    display: block !important;
    min-height: var(--clear-global-footer-height);
    padding: 0;
    overflow: hidden;
    color: var(--clear-global-cyan);
    font-size: 7px;
    letter-spacing: .04em;
  }
  .clear-global-footer__slider {
    position: absolute;
    inset: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
  }
  .clear-global-footer__slider::-webkit-scrollbar { display: none; }
  .clear-global-footer__slider:focus-visible {
    outline: 1px solid var(--clear-global-cyan);
    outline-offset: -2px;
  }
  .clear-global-footer a,
  .clear-global-footer button,
  .clear-global-footer a:hover,
  .clear-global-footer button:hover {
    color: inherit;
    text-decoration: none;
    opacity: .78;
  }
  .clear-global-footer a:focus-visible,
  .clear-global-footer button:focus-visible {
    color: inherit;
    opacity: 1;
    outline: 1px solid var(--clear-global-cyan);
    outline-offset: 2px;
  }
  .clear-global-footer__start,
  .clear-global-footer__end {
    grid-column: auto;
    flex: 0 0 auto;
    gap: 8px;
    scroll-snap-align: center;
  }
  .clear-global-footer__range {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 0;
    left: 12px;
    display: block;
    box-sizing: border-box;
    width: calc(100% - 24px);
    height: 12px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: ew-resize;
    touch-action: none;
  }
  .clear-global-footer__range::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--clear-global-cyan) 68%, transparent);
  }
  .clear-global-footer__range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -6px;
    border: 1px solid color-mix(in srgb, var(--clear-global-cyan) 86%, white);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--clear-global-cyan);
    box-shadow: 0 0 7px color-mix(in srgb, var(--clear-global-cyan) 52%, transparent);
  }
  .clear-global-footer__range::-moz-range-track {
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--clear-global-cyan) 68%, transparent);
  }
  .clear-global-footer__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 1px solid color-mix(in srgb, var(--clear-global-cyan) 86%, white);
    border-radius: 50%;
    background: var(--clear-global-cyan);
    box-shadow: 0 0 7px color-mix(in srgb, var(--clear-global-cyan) 52%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clear-quick-action { transition: none; }
}
