:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b16;
  color: #f4f6ff;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: #080b16; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.blank-launcher { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 12px 18px; background: #111a31; color: #c1cbe4; font-size: 0.875rem; }
.blank-launcher button { padding: 10px 16px; }

.toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #273152;
  background: rgba(10, 15, 31, 0.94);
}

.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 750; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { color: #70e4d2; font-size: 1.4rem; }
.controls { display: flex; gap: 5px; }

button { border: 0; border-radius: 9px; color: #07131a; background: #70e4d2; font: inherit; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { background: #a2f0e4; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-button { width: 32px; height: 32px; color: #dce6ff; background: #1d2745; font-size: 1.15rem; }
.icon-button:hover:not(:disabled) { color: #07131a; background: #c6d2ff; }

.address-form { flex: 1; min-width: 0; display: flex; gap: 8px; }
input { min-width: 0; width: 100%; border: 1px solid #344266; border-radius: 9px; padding: 9px 12px; color: #f8fbff; background: #111a31; font: inherit; outline: none; }
input:focus { border-color: #70e4d2; box-shadow: 0 0 0 3px rgba(112, 228, 210, 0.15); }
.address-form button { padding: 0 16px; }
.status { width: 100px; color: #aeb9d8; font-size: 0.82rem; text-align: right; }

.welcome { position: relative; flex: 1; display: grid; place-content: center; overflow: hidden; padding: 52px 20px; text-align: center; background: radial-gradient(circle at 50% 40%, #172a55 0%, #0c1429 28%, #080b16 65%); }
.welcome > :not(.orb) { position: relative; z-index: 1; }
.orb { position: absolute; width: min(55vw, 600px); aspect-ratio: 1; border: 1px solid rgba(112, 228, 210, 0.3); border-radius: 50%; box-shadow: 0 0 150px 45px rgba(78, 110, 255, 0.16), inset 0 0 100px rgba(112, 228, 210, 0.08); }
.eyebrow { margin: 0 0 16px; color: #70e4d2; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; }
h1 { max-width: 730px; margin: 0; font-size: clamp(2.35rem, 7vw, 5.2rem); line-height: 0.98; letter-spacing: -0.07em; }
.welcome-copy { max-width: 545px; margin: 24px auto; color: #c1cbe4; font-size: 1.04rem; line-height: 1.6; }
.welcome-form { display: flex; width: min(100%, 620px); gap: 9px; margin: 30px auto 0; padding: 7px; border: 1px solid #344266; border-radius: 14px; background: rgba(12, 20, 41, 0.86); }
.welcome-form input { border: 0; background: transparent; }
.welcome-form button { flex: none; padding: 11px 18px; }
.hint { margin-top: 18px; color: #8391b5; font-size: 0.78rem; }
.shortcuts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.proxy-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.proxy-options label { display: grid; gap: 6px; text-align: left; font-size: 0.9rem; color: #c1cbe4; }
.proxy-options select { max-width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #344266; background: #111a31; color: #f8fbff; font: inherit; }
.proxy-options select:focus-visible { outline: 2px solid #70e4d2; outline-offset: 2px; }
.shortcuts button { min-height: 44px; padding: 10px 20px; border: 1px solid #344266; background: #1d2745; color: #f4f6ff; }
.shortcuts button:hover:not(:disabled) { background: #2b3b60; border-color: #70e4d2; }
.shortcuts button:focus-visible { outline: 2px solid #70e4d2; outline-offset: 3px; }
[hidden] { display: none !important; }

.proxy-view { flex: 1; background: #fff; }
#proxy-frame { display: block; width: 100%; height: calc(100vh - 65px); border: 0; background: #fff; }
#proxy-frame:fullscreen { width: 100vw; height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Zen-inspired browser chrome; the proxy remains Orbit. */
:root { background: #202635; }
body { background: #202635; }
.shell { height: 100dvh; min-height: 580px; display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); padding: 8px; gap: 0 8px; background: linear-gradient(145deg, #303951, #202635 65%); }
.sidebar { grid-row: 1 / -1; display: flex; flex-direction: column; min-height: 0; padding: 16px 8px 8px; }
.sidebar-heading { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.sidebar-caption { margin-left: auto; font-size: .875rem; color: #b6c0d5; }
.sidebar-label { padding: 14px 10px 4px; color: #aebbd3; font-size: .75rem; letter-spacing: .12em; }
.new-tab { text-align: left; padding: 12px; background: #ffffff0d; color: #e4eaf5; font-size: .9rem; font-weight: 500; }
#tab-list { overflow-y: auto; flex: 1; }
.tab-row { display: flex; align-items: center; border-radius: 10px; margin: 5px 0; padding: 3px; }
.tab-row.active { background: #ffffff18; box-shadow: inset 0 0 0 1px #ffffff0c; }
.tab-open { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; text-align: left; padding: 11px 8px; font-size: .9rem; font-weight: 500; }
.tab-open, .tab-close { background: transparent; color: #e2e7f2; }
.tab-close { width: 30px; height: 32px; font-size: 1.1rem; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 18px 8px 4px; color: #bbc5d9; font-size: .875rem; }
.sidebar-footer > :last-child { margin-left: auto; }
.workspace-dot { width: 8px; height: 8px; background: #9db7f3; border-radius: 50%; }
.toolbar { grid-column: 2; min-height: 0; padding: 6px 4px 12px; background: transparent; border: 0; gap: 8px; }
.toolbar .brand { display: none; }
.icon-button { background: transparent; }
.address-form { border-radius: 10px; background: #ffffff0a; }
.address-form input { border: 0; background: transparent; font-size: .9rem; }
.address-form button { background: transparent; color: #c5d4f5; }
.status { font-size: .875rem; width: 110px; overflow-wrap: anywhere; }
.welcome, .proxy-view { grid-column: 2; grid-row: 2; border-radius: 14px; overflow: hidden; min-height: 0; box-shadow: 0 6px 24px #0003; }
.welcome { background: radial-gradient(ellipse at 75% 95%, #35465d, transparent 65%), #151c29; overflow-y: auto; padding: 32px 24px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 550; letter-spacing: -.05em; }
.eyebrow { color: #a9bcdc; letter-spacing: .16em; font-size: .75rem; }
.welcome-copy { font-size: 1rem; color: #a9b5ca; margin: 18px auto 6px; }
.welcome-form { margin-top: 26px; border-color: #ffffff18; background: #ffffff06; }
.welcome-form button { background: #b5c9ed; }
.hint { font-size: .875rem; }
.proxy-options select { background: #202a3a; }
.proxy-frame, #proxy-frame { height: 100%; width: 100%; border: 0; background: white; display: block; }
.proxy-frame:fullscreen { width: 100vw; height: 100vh; }
.shell.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.sidebar-collapsed .sidebar { display: none; }
button:focus-visible { outline: 2px solid #bed3ff; outline-offset: 2px; }
@media (max-width: 720px) {
  .shell { grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: 100px minmax(0, 1fr); }
  .sidebar-caption { display: none; }
  .welcome { padding: 24px 12px; }
  .proxy-options { flex-direction: column; }
}

@media (max-width: 720px) {
  .toolbar { gap: 8px; padding: 10px; flex-wrap: wrap; }
  .brand { min-width: max-content; }
  .status { display: none; }
  .address-form { order: 2; flex-basis: 100%; }
  #proxy-frame { height: 100%; }
  .welcome-form { flex-direction: column; }
  .welcome-form button { width: 100%; }
}
