* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --theme-bg: #000000;
  --theme-text: #e8eaef;
  --theme-muted: #9aa0a6;
  --theme-accent: #c4b5fd;
  --theme-accent-hot: #a78bfa;
  --theme-surface: #0d0d0d;
  --theme-elevated: #141414;
  --theme-border: #2a2a2a;
  --theme-accent-soft: rgba(167, 139, 250, 0.12);
  --theme-accent-soft-08: rgba(167, 139, 250, 0.08);
  --theme-accent-soft-20: rgba(167, 139, 250, 0.2);
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "DM Sans", sans-serif;
  background: var(--theme-bg, #000000);
  color: var(--theme-text, #e8eaef);
}

.shell {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--theme-bg, #000000);
  border-bottom: 1px solid #1a1a1a;
}

.tabs-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 0;
  background: var(--theme-bg, #000000);
}

.tab-bar.tab-bar--embed {
  flex: 1;
  min-width: 0;
  width: 100%;
  border-radius: 0;
  overflow-x: visible;
  overflow-y: hidden;
}

.tab-bar--embed .tab-bar-new-tab {
  position: absolute;
  z-index: 12;
  left: 0;
  right: auto;
  bottom: 11px;
  margin: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-bar--embed .tab-drag-handle {
  pointer-events: none;
}

.tab-bar.tab-bar--sorting .tab.tab--dragging {
  z-index: 24;
  opacity: 0.92;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--theme-muted, #9aa0a6);
  cursor: pointer;
}

.nav-btn:hover {
  background: var(--theme-accent-soft-08, rgba(167, 139, 250, 0.08));
  color: var(--theme-text, #e8eaed);
}

.nav-btn:active {
  background: #262626;
}

.new-tab {
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--theme-muted, #9aa0a6);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.new-tab:hover {
  background: var(--theme-accent-soft, rgba(167, 139, 250, 0.12));
  color: var(--theme-accent, #c4b5fd);
}

.omnibar {
  display: flex;
  gap: 8px;
  padding: 8px 10px 10px;
  align-items: center;
  background: var(--theme-bg, #000000);
  position: relative;
  z-index: 5;
}

.omnibar-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--theme-border, #2a2a2a);
  border-radius: 10px;
  background: var(--theme-surface, #0d0d0d);
  transition: border-color 0.12s ease;
}

.omnibar-field:focus-within {
  border-color: #404040;
}

.omnibar .search {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--theme-text, #e8eaef);
  font-size: 14px;
}

.omnibar .search:focus {
  outline: none;
}

.omnibar-extensions-btn {
  flex-shrink: 0;
  align-self: center;
}

.omnibar-menu {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

.omnibar-menu-trigger {
  border-radius: 8px;
}

.omnibar-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--theme-border, #2a2a2a);
  background: var(--theme-elevated, #141414);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.omnibar-menu-panel[hidden] {
  display: none !important;
}

.omnibar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--theme-text, #e8eaed);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.omnibar-menu-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.omnibar-menu-item:hover {
  background: var(--theme-accent-soft, rgba(167, 139, 250, 0.12));
  color: var(--theme-accent, #c4b5fd);
}

.omnibar-menu-item:hover .omnibar-menu-icon {
  opacity: 1;
}

.omnibar-menu-item:active {
  background: var(--theme-accent-soft-20, rgba(167, 139, 250, 0.2));
}

.iframe-stack {
  flex: 1;
  position: relative;
  min-height: 0;
  background: var(--theme-bg, #000);
}

.tab-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.tab-iframe.visible {
  display: block;
}

body {
  display: flex;
  flex-direction: column;
}

.rosin-socials-dlg {
  margin: auto;
  max-width: min(380px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border: 1px solid var(--theme-border, #2a2a2a);
  border-radius: 14px;
  background: var(--theme-surface, #0d0d0d);
  color: var(--theme-text, #e8eaef);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.rosin-socials-dlg::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.rosin-socials-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.rosin-socials-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--theme-muted, #9aa0a6);
}

.rosin-socials-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rosin-socials-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--theme-border, #2a2a2a);
  background: var(--theme-elevated, #141414);
  color: var(--theme-accent, #c4b5fd);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.rosin-socials-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.rosin-socials-link:hover {
  border-color: var(--theme-accent-hot, #a78bfa);
  background: var(--theme-accent-soft-08, rgba(167, 139, 250, 0.08));
  box-shadow: 0 0 12px var(--theme-accent-soft-20, rgba(167, 139, 250, 0.2));
}

.rosin-socials-close {
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--theme-border, #2a2a2a);
  background: var(--theme-accent-soft, rgba(167, 139, 250, 0.12));
  color: var(--theme-text, #e8eaef);
  cursor: pointer;
}

.rosin-socials-close:hover {
  border-color: var(--theme-accent, #c4b5fd);
}

.rosin-socials-close:focus-visible {
  outline: 2px solid var(--theme-accent, #c4b5fd);
  outline-offset: 2px;
}
