
/* 55GMS browser shell — tabs on top, web content in the middle, dock at the bottom. */

:root {
  color-scheme: dark;

  --bg: #0a0a0a;
  --chrome: #111111;
  --surface: #1a1a1a;
  --surface-hover: #202020;
  --surface-active: #262626;
  --border: #262626;
  --border-strong: #363636;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6f6f6f;
  --accent: #3b82f6;
  --warning: #f5a524;
  --shadow-pop: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);

  --tabstrip-h: 42px;
  --dock-h: 52px;
  --radius-sm: 6px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 180ms;

  --font:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.qapv7vq {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Shell layout ---------- */

.q82s00 {
  display: grid;
  grid-template-rows: var(--tabstrip-h) minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
}

/* ---------- Buttons ---------- */

.t9ohzr {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.t9ohzr:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.t9ohzr:active:not(:disabled) {
  background: var(--surface-active);
}

.t9ohzr:disabled {
  color: var(--text-3);
  opacity: 0.5;
  cursor: default;
}

.y3oz7 {
  width: 24px;
  height: 24px;
}

.oqmiv {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.oqmiv:hover {
  background: var(--surface-hover);
}

/* ---------- Tab strip ---------- */

.s8r38gp {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
}

.qz8uw70 {
  flex: 0 1 auto;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.qz8uw70::-webkit-scrollbar {
  display: none;
}

.rxlmd {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.yaioh9w {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 220px;
  min-width: 112px;
  max-width: 220px;
  height: 32px;
  padding: 0 4px 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: default;
  user-select: none;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.yaioh9w:hover {
  background: var(--surface);
  color: var(--text);
}

.yaioh9w[aria-selected="true"] {
  background: var(--surface-active);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Separator between two inactive, un-hovered tabs. */
.yaioh9w + .yaioh9w::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: var(--border);
  transition: opacity var(--dur) var(--ease);
}

.yaioh9w:hover::before,
.yaioh9w[aria-selected="true"]::before,
.yaioh9w:hover + .yaioh9w::before,
.yaioh9w[aria-selected="true"] + .yaioh9w::before {
  opacity: 0;
}

.f6fawdj {
  position: relative;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
}

.azbweq {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}

.mahozv {
  display: none;
  color: var(--text-3);
}

.f6fawdj.wizpl .azbweq {
  display: none;
}

.f6fawdj.wizpl .mahozv {
  display: block;
}

.akk1h {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--text);
  animation: spin 0.7s linear infinite;
}

.yaioh9w.q3jdy .akk1h {
  display: block;
}

.yaioh9w.q3jdy .azbweq,
.yaioh9w.q3jdy .mahozv {
  display: none !important;
}

.yaioh9w.unk3hw8 .mahozv {
  color: var(--warning);
}

.h6c4m {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12.5px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
}

.kvsxy3x {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.kvsxy3x .qapv7vq {
  width: 14px;
  height: 14px;
}

.yaioh9w:hover .kvsxy3x,
.yaioh9w[aria-selected="true"] .kvsxy3x,
.kvsxy3x:focus-visible {
  opacity: 1;
}

.kvsxy3x:hover {
  background: var(--border-strong);
  color: var(--text);
}

@media (hover: none) {
  .kvsxy3x {
    opacity: 1;
  }
}

.yaioh9w.aihfic {
  animation: tab-in var(--dur) var(--ease);
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.eusctlt {
  flex: none;
}

/* ---------- Viewport ---------- */

.t1wbh0u {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.rptm3jw,
.rptm3jw iframe {
  position: absolute;
  inset: 0;
}

.rptm3jw iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  /* Background tabs stay alive (scroll, media, JS state) but are hidden. */
  visibility: hidden;
  pointer-events: none;
}

.rptm3jw iframe.qbohi {
  visibility: visible;
  pointer-events: auto;
}

/* Loading progress */
.tfzkdl2 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  height: 2px;
  width: 0;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.tfzkdl2.s6rrkvk {
  opacity: 1;
  animation: progress-run 8s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}

.tfzkdl2.xo7pl {
  width: 100%;
  opacity: 0;
  transition:
    width 200ms var(--ease),
    opacity 300ms 200ms var(--ease);
}

@keyframes progress-run {
  from {
    width: 0;
  }

  to {
    width: 85%;
  }
}

/* ---------- New tab page ---------- */

.fi5cm2u {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(
      600px 300px at 50% 100%,
      rgba(255, 255, 255, 0.035),
      transparent 70%
    ),
    var(--bg);
  overflow-y: auto;
}

.fs47yr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.z7137v0 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.vhwmdn8 {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-2);
}

.jnxb2d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  width: 100%;
}

.r98trp5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.r98trp5:hover {
  background: var(--chrome);
  border-color: var(--border);
  color: var(--text);
}

.r98trp5 img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
}

/* ---------- Page banner (per-tab errors) ---------- */

.ze5tq {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 6px 6px 6px 12px;
  border-radius: var(--radius);
  background: var(--chrome);
  box-shadow: var(--shadow-pop);
  transform: translateX(-50%);
  animation: pop-in var(--dur) var(--ease);
}

.ze5tq > .qapv7vq {
  color: var(--warning);
}

.h97vb {
  min-width: 0;
  color: var(--text);
}

.uen1mz {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

/* ---------- Dock ---------- */

.frs03u {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 220ms var(--ease);
}

.qgbgr6o {
  min-height: 0;
  overflow: hidden;
}

.q82s00.n8vuyk5 .frs03u {
  grid-template-rows: 0fr;
}

/* Suggestions and menus pop up above the dock, so let them escape the clip while open. */
.q82s00:not(.n8vuyk5) .qgbgr6o.qe7iib {
  overflow: visible;
}

.wlkcma {
  display: grid;
  grid-template-columns: 1fr minmax(0, 680px) 1fr;
  align-items: center;
  gap: 12px;
  height: var(--dock-h);
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--chrome);
  border-top: 1px solid var(--border);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.q82s00.n8vuyk5 .wlkcma {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    visibility 0s 220ms;
}

.la6hr {
  justify-self: start;
  display: flex;
  align-items: center;
}

.ll5obhh {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
}

.aq0z82,
.cisdftl {
  grid-area: 1 / 1;
}

.cisdftl,
.utygywe .aq0z82 {
  display: none;
}

.utygywe .cisdftl {
  display: block;
}

/* Reopen handle when the dock is collapsed */
.ad92fv4 {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 56px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--chrome);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 100%);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease),
    visibility 0s var(--dur);
}

.ad92fv4:hover {
  color: var(--text);
  background: var(--surface);
}

.q82s00.n8vuyk5 .ad92fv4 {
  opacity: 0.85;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity var(--dur) 120ms var(--ease),
    transform var(--dur) 120ms var(--ease),
    color var(--dur) var(--ease),
    visibility 0s;
}

.q82s00.n8vuyk5 .ad92fv4:hover {
  opacity: 1;
}

/* ---------- Omnibox ---------- */

.dz3sf {
  position: relative;
  min-width: 0;
}

.nxf38b2 {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nxf38b2:hover {
  border-color: var(--border-strong);
}

.nxf38b2:focus-within {
  border-color: #52525b;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.dz3sf.vpe4k1u .nxf38b2 {
  border-color: var(--border-strong);
  box-shadow: none;
}

.fflwt {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.fflwt .qapv7vq {
  width: 14px;
  height: 14px;
}

.fflwt.ap4d7 {
  color: var(--text-2);
}

.oz0qgf {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  text-overflow: ellipsis;
}

.oz0qgf::placeholder {
  color: var(--text-3);
}

/* Suggestions open upward, best match nearest the input. */
.n6zlk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column-reverse;
  max-height: min(360px, 60vh);
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border-radius: 12px;
  background: var(--chrome);
  box-shadow: var(--shadow-pop);
  animation: pop-up 140ms var(--ease);
}

.r7m8x {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.r7m8x .qapv7vq {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.orrtzug {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mcwlx4x {
  flex: none;
  color: var(--text-3);
  font-size: 12px;
}

.r7m8x:hover,
.r7m8x[aria-selected="true"] {
  background: var(--surface-hover);
}

.r7m8x mark {
  background: none;
  color: var(--text-2);
}

/* ---------- Overflow menu ---------- */

.b1gtzke {
  position: relative;
}

.r5ex6e {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 4px;
  border-radius: 10px;
  background: var(--chrome);
  box-shadow: var(--shadow-pop);
  animation: pop-up 140ms var(--ease);
}

.zkivham {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.zkivham span {
  flex: 1;
}

.zkivham .qapv7vq {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}

.zkivham:hover:not(:disabled),
.zkivham:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.zkivham:disabled {
  color: var(--text-3);
  cursor: default;
}

.zkivham kbd {
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text-3);
}

.v5nc1 {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}

.ckumih {
  display: none;
}

/* ---------- Toasts ---------- */

.aw3bc {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 12px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: bottom 220ms var(--ease);
}

.q82s00.n8vuyk5 .aw3bc {
  bottom: 32px;
}

.ooqjp {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  white-space: nowrap;
  animation: pop-up 160ms var(--ease);
}

.ooqjp.j27uw {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}

/* ---------- Animations ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pop-up {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .wlkcma {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 6px;
  }

  .yaioh9w {
    flex-basis: 160px;
    min-width: 96px;
  }

  .z7137v0 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .iiqc1o {
    display: none;
  }

  .ckumih {
    display: flex;
  }

  .ll5obhh {
    gap: 0;
  }

  .nxf38b2 {
    padding: 0 10px;
  }

  .fflwt {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .akk1h {
    animation: spin 1.6s linear infinite !important;
  }

  .tfzkdl2.s6rrkvk {
    width: 60%;
    animation: none !important;
  }
}

.yaioh9w.jkxfif {
  flex: 0 0 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 0;
  justify-content: center;
}
.yaioh9w.jkxfif .h6c4m,
.yaioh9w.jkxfif .kvsxy3x { display: none; }
.yaioh9w.c5nc0 {
  z-index: 15;
  cursor: grabbing;
  box-shadow: 0 8px 19px rgba(0,0,0,.45);
  transition: none !important;
}
.rxlmd.xfko3g .yaioh9w:not(.c5nc0) { transition: transform 160ms var(--ease); }
body.x7gaiu { cursor: grabbing; user-select: none; }
#tzatlc.h8zvi { color: var(--accent); }
#tzatlc.h8zvi .qapv7vq { fill: currentColor; }
.jqrps {
  position: fixed;
  z-index: 35;
  right: 16px;
  bottom: calc(var(--dock-h) + 14px);
  width: min(350px, calc(100vw - 32px));
  max-height: min(440px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--chrome);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.e5u4ic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 8px;
  font-size: 14px;
}
.fuo8y { overflow-y: auto; padding: 4px 8px 8px; }
.sl2e1lb {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
}
.sl2e1lb:hover { background: var(--surface-hover); }
.fl7r1 {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 9px 7px;
  color: var(--text);
  cursor: pointer;
}
.fl7r1 strong,
.fl7r1 small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl7r1 small { color: var(--text-3); margin-top: 2px; }
.kpfpu3 { flex: none; }
.ucm5gl { color: var(--text-2); padding: 20px 12px; text-align: center; }
.blu88c {
  position: fixed;
  z-index: 45;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--chrome);
  box-shadow: var(--shadow-pop);
}
.blu88c button {
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
}
.blu88c button:hover { background: var(--surface-hover); }
.blu88c button:disabled { opacity: .4; cursor: default; }
@media (max-width: 520px) {
  .yaioh9w.jkxfif { min-width: 40px; max-width: 40px; flex-basis: 40px; }
  .jqrps { right: 7px; bottom: calc(var(--dock-h) + 7px); }
}

.ekr46 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--text);
}
.ekr46 .qapv7vq { color: var(--text-2); }
.ekr46:focus-visible { background: var(--surface-hover); }
