:root {
  --bg: #111417;
  --bg-card: #1a1d20;
  --btn-bg: #24282c;
  --btn-hover: #303438;
  --btn-active: #3c4044;
  --input-bg: #1c2023;
  --input-hover: #272b2e;
  --text-muted: #9b9fa3;
  --text-dim: #73787c;
  --ui-radius: 12px;
  --app-icon-size: 48px;
}

button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable="true"] { user-select: text; -webkit-user-select: text; }
.tab-title, .tab-icon, .tab-close { user-select: none; -webkit-user-select: none; }
.tab-title { line-height: 1.45; }
.tab-close, .tab-close:hover { transform: none; transition: opacity .15s ease, color .15s ease; }
.new-tab-btn { display: grid; place-items: center; padding: 0; }
.new-tab-btn svg { display: block; margin: 0; }
.tab-bar { background: var(--bg); }
html, body, #browserView { overflow: clip; }
.tab-item.tab-is-dragging, .tab-item.tab-gliding { background: var(--btn-hover) !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
[role="tab"]:focus-visible, [role="menuitemradio"]:focus-visible {
  outline: none !important;
}
.search-bar, .new-tab-search-bar,
.settings-search-input, .settings-input-sm, .modal-input {
  background: var(--input-bg) !important;
  color: var(--text);
}
.search-bar:hover, .new-tab-search-bar:hover, .search-bar:focus,
.new-tab-search-bar:focus { background: var(--input-hover) !important; }
.search-bar::placeholder, .new-tab-search-bar::placeholder,
.settings-search-input::placeholder { color: var(--text-muted); }
.home-bottom-dock, .bottom-bar, .bottom-bar-reveal-btn, .bottom-bar-hide-btn {
  background: var(--bg-card) !important;
}
.home-dock-item, .settings-nav-item, .settings-row-sub,
.search-leading-icon, .settings-search-icon { color: var(--text-muted); }
.tab-item { background: var(--bg-card); color: var(--text-muted); }
.tab-item.active, .tab-item:hover { background: var(--btn-hover); color: var(--text); }
.tab-item.pinned { flex: 0 0 54px !important; min-width: 54px !important; }
.tab-item.pinned .tab-title, .tab-item.pinned .tab-close { display: none; }
.tab-item.hibernated { opacity: .55; }
.tab-item.muted .tab-title::before { content: 'â—Œ '; }
.new-tab-screen { background-color: var(--bg); }
.view-enter, .settings-enter { animation: atlasEnter .28s cubic-bezier(.16,1,.3,1) both; }
@keyframes atlasEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.view-exit, .settings-exit { animation: atlasExit .14s ease both; pointer-events: none; }
@keyframes atlasExit { to { opacity: 0; } }
.home-content { animation: atlasEnter .28s ease; }
.new-tab-screen.active, .browser-frame.active-tab-frame { animation: none; }
.new-tab-screen.active.atlas-frame-enter { animation: atlasEnter .22s ease both; }
.atlas-wordmark { display: inline-flex; align-items: center; gap: 7px; }
.atlas-welcome-icon { width: .85em; height: .85em; object-fit: contain; }
.welcome-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .24em; }
.atlas-frame-enter { animation: atlasEnter .22s ease both; }
.settings-content-pane {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 12px 4px 30px 16px;
  min-width: 0;
  overflow: visible;
}
#settingsView { overflow-y: auto; align-items:flex-start; padding-bottom:140px; scroll-padding-bottom:120px; }
.settings-window { height: auto; min-height: 0; overflow: visible; flex-shrink:0; display:grid; grid-template-columns:240px minmax(0,1fr); column-gap:36px; row-gap:20px; align-items:start; }
.settings-content-pane { display:contents; }
.settings-section-title { grid-column:2; grid-row:1; }
.settings-sidebar { position: sticky; top: 12px; align-self: flex-start; grid-column:1; grid-row:2; }
.settings-cards-container { background: var(--bg-card); overflow: visible; border-radius: var(--ui-radius); grid-column:2; grid-row:2; }
.settings-nav-item.active { background: var(--btn-hover); }
.settings-nav-item svg { order: 2; margin-left: auto; }
.settings-nav-item span { order: 1; }
.settings-control { max-width: 48%; }
.settings-row { gap: 18px; }
.settings-row-sub { max-width: 600px; }
.settings-note { margin: 0; padding: 16px 22px 20px; max-width: none; line-height: 1.6; overflow-wrap: anywhere; }
#settingKeybindStatus:not(:empty) { padding: 0 22px 20px; line-height: 1.6; }
#settingKeybindStatus:empty { display: none; }
.settings-input-sm { max-width: 100%; }
.settings-action-btn, .settings-action-btn.primary, .modal-btn.primary {
  background: var(--btn-bg) !important;
  color: var(--text);
}
#addShortcutModal .modal-btn, #addShortcutModal .modal-btn.primary { background: var(--btn-bg) !important; }
#addShortcutModal .modal-btn:hover, #addShortcutModal .modal-btn.primary:hover,
#addShortcutModal .modal-btn:active, #addShortcutModal .modal-btn.primary:active { background: var(--btn-hover) !important; }
#addShortcutModal .modal-input, #addShortcutModal .modal-input:hover, #addShortcutModal .modal-input:focus { background: var(--input-bg) !important; box-shadow: none !important; }
.modal-input::placeholder { color: var(--text-muted); }
.search-suggestions-dropdown { background: var(--input-hover) !important; color: var(--text); border-radius:24px; }
.search-suggestions-dropdown { position:fixed!important; bottom:auto!important; right:auto!important; margin:0!important; transform:none!important; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; z-index:10050; box-sizing:border-box; }
.suggestion-item { min-height:44px; touch-action:pan-y; }
.suggestion-text { min-width:0; overflow-wrap:anywhere; white-space:normal!important; }
.suggestion-icon,.suggestion-arrow { flex:none; }
.suggestion-item.selected { outline:2px solid var(--text-muted); outline-offset:-3px; border-radius:16px; }
.suggestion-item, .suggestion-text { color: var(--text); }
.suggestion-icon, .suggestion-arrow { color: var(--text-muted); }
.suggestion-item:hover, .suggestion-item.selected { background: var(--btn-bg); }
.settings-action-btn:hover, .settings-action-btn.primary:hover, .modal-btn.primary:hover {
  background: var(--btn-hover) !important;
}
.settings-action-btn.danger { color: #efa2a2; }
.clean-switch-slider { background: #44494d !important; border: none !important; box-shadow: none !important; }
.clean-switch input { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: pointer; }
.clean-switch:has(input:focus-visible) .clean-switch-slider { background: #747474 !important; }
.clean-switch input:checked + .clean-switch-slider { background: #73797e !important; box-shadow: none !important; }
.clean-switch input:checked + .clean-switch-slider::before { background: #ffffff !important; }
.pill-btn.home-icon-btn { width: 36px; height: 36px; padding: 8px; display: grid; place-items: center; }
.home-icon-btn svg { width: 19px; height: 19px; }
.home-dock-item.discord-link { text-decoration: none; }
.site-info-popup { background: var(--input-bg) !important; border: none; border-radius: 18px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-info-popup .site-info-item { border-radius: 12px; }
.site-info-popup .clean-switch-slider { background: var(--btn-bg) !important; }
.site-info-popup input:checked + .clean-switch-slider { background: #73797e !important; }
.site-info-domain, .site-info-back-btn, .site-info-badge.disabled { color: var(--text-muted); }
.site-info-icon, .site-info-item-title { color: var(--text); }

.atlas-dropdown { position: relative; min-width: 138px; }
.atlas-dropdown-button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  background: var(--btn-bg); color: var(--text); cursor: pointer;
  font-size: 13px; white-space: nowrap; text-align: left;
}
.atlas-dropdown-button:hover, .atlas-dropdown-button[aria-expanded="true"] { background: var(--btn-hover); }
.atlas-dropdown-label { flex: 1; }
.atlas-dropdown-icon { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; }
.atlas-dropdown-chevron { width: 12px; height: 12px; color: var(--text-muted); flex-shrink: 0; }
.search-engine-control { width: 151px; }
.search-engine-control .atlas-dropdown { min-width: 0; }
.search-engine-control .atlas-dropdown-button { background: transparent; padding: 8px 7px 8px 12px; font-size: 12px; }
.search-engine-control > svg { display: none; }
.search-engine-control .atlas-dropdown-chevron { position: static; transform: none; width: 12px; height: 12px; }
.browser-frame.active-tab-frame.atlas-frame-enter { animation: atlasEnter .22s ease both; }
.search-wrapper .search-bar, .new-tab-search-wrapper .new-tab-search-bar { padding-right: 170px; }
.atlas-dropdown-menu {
  position: fixed; z-index: 20000; background: #242424;
  color: #f0f1f2; padding: 6px; border-radius: 12px;
  box-shadow: 0 12px 40px #0008;
  animation: atlasMenuEnter .15s ease both;
}
.atlas-dropdown-menu { min-width: 200px; max-height: min(380px, 70vh); overflow-y: auto; }
@keyframes atlasMenuEnter { from { opacity: 0; } to { opacity: 1; } }
.atlas-menu-closing { animation: atlasMenuExit .14s ease both !important; pointer-events: none; }
@keyframes atlasMenuExit { from { opacity: var(--atlas-menu-opacity, 1); } to { opacity: 0; } }
.atlas-dropdown-icon.bing-logo { width: 21px; height: 21px; }
.atlas-brand-icon { filter: none; }
.atlas-dropdown-option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; color: inherit; padding: 10px 12px;
  border-radius: 7px; text-align: left; font-size: 13px; cursor: pointer;
}
.atlas-dropdown-option span:first-child { flex: 1; }
.atlas-dropdown-option:hover, .atlas-dropdown-option:focus-visible { background: #ffffff0e; }
.atlas-dropdown-option[aria-checked="true"] { background: #3a3a3a; }
.settings-shortcut-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: none; }
.settings-shortcut-controls button { min-width: 90px; }
.settings-shortcut-controls input { width: 205px; }
.settings-status { font-size: 12px; color: var(--text-muted); min-height: 16px; }
.settings-custom-css { flex-direction: column; align-items: stretch; }
.settings-custom-css textarea {
  width: 100%; min-height: 130px; padding: 14px; color: var(--text);
  background: var(--input-bg); border-radius: 9px; resize: vertical;
  font-family: Consolas, monospace !important; font-size: 12px; user-select: text;
}

.settings-keybind-controls { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bottom-address-wrapper { position: absolute; left: 50%; transform: translateX(-50%); width: min(680px, 50%); flex: none; max-width: none; min-width: 0; background: var(--input-bg) !important; }
.bottom-address-wrapper:hover, .bottom-address-wrapper:focus-within { background: var(--input-hover) !important; }
@media (min-width: 761px) {
  #bottomBar[data-atlas-address-layout] .bottom-address-wrapper {
    left: var(--atlas-address-left); width: var(--atlas-address-width); transform: none;
    transition: background-color .18s ease;
  }
  #browserView:has(.atlas-split-resizing) .bottom-address-wrapper { transition: background-color .18s ease; }
}
.bottom-address-bar:focus-visible { outline: none !important; box-shadow: none !important; }
.bottom-bar { gap: 10px; transition: transform .42s cubic-bezier(.22, .61, .36, 1), opacity .42s cubic-bezier(.22, .61, .36, 1); }
#browserView .viewport-container { transition: height .42s cubic-bezier(.22, .61, .36, 1), margin .42s cubic-bezier(.22, .61, .36, 1), border-radius .42s ease; }
#browserView.view-enter .bottom-bar { animation: atlasEnter .28s ease both; }
.bottom-bar-hide-btn, .bottom-bar-hide-btn:hover, .bottom-bar-reveal-btn, .bottom-bar-reveal-btn:hover { background: var(--bg-card) !important; }
.bottom-bar-hide-btn:hover svg, .bottom-bar-reveal-btn:hover svg { color: #fff; }
#browserView .bottom-bar-reveal-btn { background: var(--bg) !important; }
#browserView.bottom-bar-hidden .bottom-bar-reveal-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(28px);
  transition: transform .48s cubic-bezier(.22, .61, .36, 1), color .18s ease;
}
.bottom-bar-reveal-btn::before {
  content: '';
  position: absolute;
  inset: -4px -20px -8px;
  transform: translateY(-28px);
  transition: transform .48s cubic-bezier(.22, .61, .36, 1);
}
#browserView.bottom-bar-hidden .bottom-bar-reveal-btn:hover,
#browserView.bottom-bar-hidden:has(.bottom-bar-hover-zone:hover) .bottom-bar-reveal-btn,
#browserView.bottom-bar-hidden .bottom-bar-reveal-btn:focus-visible { transform: translateX(-50%); }
.bottom-bar-hover-zone{display:none;position:absolute;left:0;right:0;bottom:0;height:32px;z-index:34;background:transparent}
#browserView.bottom-bar-hidden .bottom-bar-hover-zone{display:block}
.bottom-bar-reveal-btn::before{pointer-events:none}
.bottom-bar-reveal-btn:hover::before,
.bottom-bar-reveal-btn:focus-visible::before { transform: none; }
@media (hover: none) {
  #browserView.bottom-bar-hidden .bottom-bar-hover-zone{display:none}
  #browserView.bottom-bar-hidden .bottom-bar-reveal-btn { transform: translateX(-50%); }
  .bottom-bar-reveal-btn::before { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #browserView.bottom-bar-hidden .bottom-bar-reveal-btn,
  .bottom-bar-reveal-btn::before,
  #browserView .bottom-bar,
  #browserView .viewport-container { transition: none; }
}
.atlas-history-panel { width: min(320px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 100px)); padding: 10px; }
.atlas-history-heading { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 14px; }
.atlas-history-heading button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.atlas-history-heading svg { width: 15px; height: 15px; }
.atlas-history-list { display: flex; flex-direction: column; gap: 3px; }
.atlas-history-entry { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border-radius: 7px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.atlas-history-entry:hover, .atlas-history-entry:focus-visible, .atlas-history-heading button:hover { background: var(--btn-bg); }
.atlas-history-entry > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.atlas-history-row { display: flex; align-items: center; border-radius: 7px; }
.atlas-history-removing { height: 0; min-height: 0; opacity: 0; transform: translateX(-6px); margin-bottom: -3px; overflow: hidden; pointer-events: none; transition: height .18s ease, opacity .12s ease, transform .18s ease, margin-bottom .18s ease; }
.ondevice-item.atlas-history-removing { padding-top: 0; padding-bottom: 0; }
.atlas-history-row.atlas-history-removing > * { flex-shrink: 0; }
.atlas-history-row:hover { background: var(--btn-bg); }
.atlas-history-row > .atlas-history-entry { flex: 1; min-width: 0; }
.atlas-history-delete { display: grid; place-items: center; width: 25px; height: 25px; margin-right: 4px; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; flex-shrink: 0; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.atlas-history-row:hover .atlas-history-delete, .atlas-history-row:focus-within .atlas-history-delete { opacity: 1; }
.atlas-history-delete[hidden] { display: none; }
.atlas-history-delete, .atlas-history-delete:hover, .atlas-history-delete:focus-visible,
.atlas-history-heading button, .atlas-history-heading button:hover, .atlas-history-heading button:focus-visible { background: transparent !important; border: none !important; box-shadow: none !important; }
.atlas-history-delete svg { width: 13px; height: 13px; }
#atlasHistoryButton svg { width: 23px; height: 23px; }
.atlas-session-group > span { flex: 1; }
.atlas-session-arrow { width: 12px; height: 12px; transform: rotate(-90deg); flex-shrink: 0; }
.atlas-session-popout { width: min(320px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 32px)); z-index: 20001; }
.atlas-restore-backdrop { align-items: flex-end; justify-content: flex-start; padding: 18px; background: transparent; backdrop-filter: none; pointer-events: none !important; z-index: 20002; }
.atlas-restore-backdrop .modal-card { position: relative; width: 260px; max-width: 100%; padding: 14px; gap: 0; background: #242424; pointer-events: auto; border-radius: 14px; transform: translateY(8px); }
.atlas-restore-backdrop.active .modal-card { transform: none; }
.atlas-restore-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.atlas-restore-title { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text); }
.atlas-restore-backdrop .modal-btn { flex: none; width: 100%; height: 38px; background: #363636 !important; color: #fff !important; }
.atlas-restore-backdrop .modal-btn:hover { background: #444 !important; }
.atlas-restore-close { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; padding: 0; color: #ddd; background: transparent !important; border: none !important; cursor: pointer; }
.atlas-restore-close svg { width: 14px; height: 14px; }
.atlas-restore-error { padding-top: 10px; color: #ddd; font-size: 12px; line-height: 1.5; }
.atlas-history-favicon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.atlas-history-entry strong, .atlas-history-entry small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.atlas-history-entry strong { font-size: 12px; font-weight: 500; }
.atlas-history-entry small, .atlas-history-empty { font-size: 11px; color: var(--text-muted); }
.atlas-history-empty { padding: 8px 6px; line-height: 1.6; }
.atlas-split [data-atlas-pane] { position: absolute; top: 0; bottom: 0; height: 100%; margin: 0; }
.atlas-split [data-atlas-pane="left"] { left: 0; right: auto; width: calc(var(--atlas-split-position, 50%) - 5px); }
.atlas-split [data-atlas-pane="right"] { left: calc(var(--atlas-split-position, 50%) + 5px); right: 0; width: calc(100% - var(--atlas-split-position, 50%) - 5px); }
.browser-frame.atlas-split-visible { display: block !important; }
.atlas-split .new-tab-search-wrapper { width: 100%; }
.atlas-split .new-tab-title { font-size: clamp(24px, 3vw, 40px); }
.atlas-split #newTabShortcutsRow { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; }
.atlas-split .new-tab-screen, .atlas-split-empty { gap: 0; }
.atlas-split .new-tab-title, .atlas-split-empty h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 40px); }
.atlas-split .new-tab-search-wrapper { margin-bottom: 24px; }
.atlas-split-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); padding: 24px; z-index: 10; }
.atlas-split .atlas-split-empty { gap: 0; }
.atlas-split .new-tab-search-bar { height: 48px; font-size: 14px; }
.atlas-split-empty[hidden], .atlas-split-divider[hidden] { display: none; }
.atlas-split-empty h2 { color: var(--text); font-size: 32px; }
.atlas-split-empty input { width: 100%; font-size: 13px; }
.atlas-split [data-atlas-pane] { border: 1px solid #ffffff14 !important; border-radius: 16px !important; overflow: hidden; clip-path: inset(0 round 16px); }
#browserView .viewport-container.atlas-split { border: 0 !important; border-radius: 16px !important; background: var(--bg); overflow: hidden; }
.atlas-split-tab-picker { opacity: 0; transform: translateY(6px); visibility: hidden; pointer-events: none; }
.atlas-split .atlas-split-tab-picker { opacity: 1; transform: none; visibility: visible; pointer-events: auto; display: flex; flex-direction: column; width: min(420px, 100%); max-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: var(--bg-card); border-radius: 12px; padding: 5px; margin-top: 0; }
.atlas-split-tab-picker::-webkit-scrollbar { display: none; }
.atlas-split-tab-picker .atlas-open-tab-option { flex-shrink: 0; padding: 12px; }
.atlas-split-empty .atlas-split-tab-picker { margin-top: 0; }
.atlas-open-tab-option > span { flex: 1; }
.atlas-split-divider { position: absolute; top: 0; bottom: 0; left: calc(var(--atlas-split-position, 50%) - 5px); width: 10px; display: grid; place-items: center; z-index: 30; background: transparent; cursor: col-resize; touch-action: none; }
.atlas-split-divider span { width: 3px; height: 42px; border-radius: 4px; background: var(--text-dim); transition: background .15s ease; }
.atlas-split-divider:hover span, .atlas-split-divider:focus-visible span { background: #fff; }
.atlas-split-resizing .browser-frame { pointer-events: none; }
#atlasSplitButton[aria-pressed="true"] { color: #fff; }
.nav-icon-btn, .pill-btn, .new-tab-btn { background: var(--btn-bg) !important; }
.bottom-bar button, .bottom-bar button svg { color: #fff; }
#bottomBar .nav-icon-btn, #bottomBar .pill-btn, #bottomBar .address-action-btn { color: #fff !important; }
#navReload svg { width: 18px; height: 18px; color: var(--text) !important; }
.atlas-link-preview { position: fixed; left: 20px; bottom: 82px; z-index: 60; max-width: min(560px, calc(100vw - 40px)); padding: 8px 12px; border-radius: 9px; border: 1px solid #ffffff12; background: var(--bg-card); color: var(--text); box-shadow: 0 4px 16px #0003; font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease, bottom .2s ease; }
.atlas-link-preview[data-visible="true"] { opacity: 1; transform: none; }
#browserView.bottom-bar-hidden .atlas-link-preview { bottom: 20px; }
#navDevtools svg { width: 20px; height: 20px; }
#navReload svg, #navDevtools svg { display: block; flex-shrink: 0; }
.atlas-reload-icon { color: var(--text) !important; width: 16px !important; height: 16px !important; }
.atlas-history-time { width: 62px; flex: none; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.atlas-history-show-all { width: 100%; margin-top: 8px; padding: 10px; background: var(--btn-bg); color: var(--text); border-radius: 10px; cursor: pointer; }
.atlas-history-show-all:hover { background: var(--btn-hover); }
.bottom-bar-hide-btn svg, .bottom-bar-reveal-btn svg { color: var(--text-muted); }
.atlas-tab-pair { display: flex; gap: 3px; padding: 3px; border: none !important; background: var(--bg-card); border-radius: 12px; width: 220px; flex: 0 1 220px; max-width: 220px; min-width: 92px; position: relative; transition: transform .18s ease; }
.atlas-history-panel, .atlas-session-popout { scrollbar-width: thin; scrollbar-color: var(--btn-hover) var(--bg-card); }
.atlas-tab-pair.atlas-group-dragging { transition: none; z-index: 5; }
.tab-item.atlas-paired-tab { flex: 1 1 0; width: auto; max-width: none; min-width: 0; padding-left: 7px; padding-right: 5px; gap: 5px; border-radius: 8px; }
.atlas-tab-measure, .atlas-tab-measure * { animation: none !important; transition: none !important; }
#tabList[data-atlas-split-headers-detached="true"] .tab-item { transition:none; will-change:transform,clip-path; pointer-events:none; }
.tab-item.atlas-pair-left { margin-right: 0; }
.tab-item.atlas-pair-right { box-shadow: none; }
.atlas-split .browser-frame, .atlas-split .new-tab-screen { animation: none !important; }
.atlas-split-expanding { position: absolute !important; top: 0; height: 100%; z-index: 21; pointer-events: none; }
.atlas-split[data-atlas-split-animation="enter"] [data-atlas-pane="right"]:is(.browser-frame, .new-tab-screen, .atlas-split-empty) {
  animation: atlasSplitFade .22s cubic-bezier(.2,.7,.3,1) both !important;
}
.atlas-split[data-atlas-split-animation="replace"][data-atlas-split-animation-pane="left"] [data-atlas-pane="left"]:is(.browser-frame, .new-tab-screen, .atlas-split-empty),
.atlas-split[data-atlas-split-animation="replace"][data-atlas-split-animation-pane="right"] [data-atlas-pane="right"]:is(.browser-frame, .new-tab-screen, .atlas-split-empty),
#tabList[data-atlas-split-animation="enter"] .atlas-pair-right,
#tabList[data-atlas-split-animation="replace"][data-atlas-split-animation-pane="left"] .atlas-pair-left,
#tabList[data-atlas-split-animation="replace"][data-atlas-split-animation-pane="right"] .atlas-pair-right {
  animation: atlasSplitOpen .22s cubic-bezier(.2,.7,.3,1) both !important;
  will-change: transform, opacity;
}
.atlas-split[data-atlas-split-animation="exit"][data-atlas-split-animation-pane="left"] [data-atlas-pane="left"]:is(.browser-frame, .new-tab-screen, .atlas-split-empty),
.atlas-split[data-atlas-split-animation="exit"][data-atlas-split-animation-pane="right"] [data-atlas-pane="right"]:is(.browser-frame, .new-tab-screen, .atlas-split-empty),
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="left"] .atlas-pair-left,
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="right"] .atlas-pair-right {
  animation: atlasSplitClose .22s cubic-bezier(.4,0,.2,1) both !important;
  will-change: transform, opacity;
  pointer-events: none;
}
.atlas-split[data-atlas-split-animation="exit"] .atlas-split-divider { opacity: 0; transition: opacity .22s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.atlas-split[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="left"] [data-atlas-pane="left"]:is(.new-tab-screen, .atlas-split-empty),
.atlas-split[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="right"] [data-atlas-pane="right"]:is(.new-tab-screen, .atlas-split-empty) {
  animation: atlasSplitBlankClose .12s ease-out both !important;
}
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="left"] .atlas-pair-left,
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="right"] .atlas-pair-right {
  animation: atlasSplitTabCollapse .22s cubic-bezier(.4,0,.2,1) both !important;
}
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"] .atlas-tab-pair {
  animation: atlasSplitGroupCollapse .22s cubic-bezier(.4,0,.2,1) both;
}
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="left"] .atlas-pair-right,
#tabList[data-atlas-split-animation="exit"][data-atlas-split-remove-blank="true"][data-atlas-split-animation-pane="right"] .atlas-pair-left {
  animation: atlasSplitTabRestore .22s cubic-bezier(.4,0,.2,1) both;
}
@keyframes atlasSplitBlankClose { from { opacity: var(--atlas-split-close-opacity, 1); } to { opacity: 0; } }
@keyframes atlasSplitTabCollapse {
  from { width: var(--atlas-tab-collapse-width); max-width: var(--atlas-tab-collapse-width); }
  to { opacity: 0; width: 0; max-width: 0; padding-left: 0; padding-right: 0; gap: 0; }
}
@keyframes atlasSplitGroupCollapse { from { padding: 3px; gap: 3px; } to { padding: 0; gap: 0; } }
@keyframes atlasSplitTabRestore { from { padding-left: 7px; padding-right: 5px; } to { padding-left: 12px; padding-right: 10px; } }
@keyframes atlasSplitOpen { from { opacity: 0; transform: translate3d(14px,0,0); } to { opacity: 1; transform: none; } }
@keyframes atlasSplitFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlasSplitClose { from { opacity: var(--atlas-split-close-opacity, 1); transform: var(--atlas-split-close-transform, none); } to { opacity: 0; transform: translate3d(14px,0,0); } }
.tab-item.atlas-paired-tab.closing { animation: atlasPairedTabClose .22s ease both; }
@keyframes atlasPairedTabClose { to { opacity: 0; } }
.tab-item.atlas-paired-tab.opening { animation: atlasMenuEnter .22s ease both; }
.shortcut-remove-btn { width: 20px !important; height: 20px !important; background: var(--btn-bg) !important; color: #fff !important; border:0; display:flex !important; align-items:center !important; justify-content:center !important; padding:0 !important; line-height:0; pointer-events:auto; }
.shortcut-remove-btn svg { width:10px !important; height:10px !important; display:block; margin:0 !important; flex:none; }
.shortcut-remove-btn:hover { background: var(--btn-hover) !important; }
.shortcut-card:focus-within .shortcut-remove-btn { opacity:1; visibility:visible; pointer-events:auto; transform:none; }
.shortcut-icon { background: var(--btn-bg) !important; }
.shortcuts-row { display:flex; flex-wrap:wrap; justify-content:center; align-content:flex-start; min-height:180px; width:min(580px,100%); gap:24px 12px; position:relative; }
.shortcuts-row > .shortcut-card { width:calc((100% - 48px)/5); flex:none; }
.shortcut-label { max-width:100%; width:100%; }
.shortcut-add-fading { z-index:2; }
.atlas-search-page #newTabShortcutsRow { display:none!important; }
.nav-icon-btn:hover, .pill-btn:hover, .new-tab-btn:hover { background: var(--btn-hover) !important; }
.tab-item.opening { animation: tabOpenAnim .22s cubic-bezier(.2,.7,.3,1) both; }
.tab-item.closing { animation: tabCloseAnim .22s cubic-bezier(.4,0,.2,1) both; }
@keyframes tabOpenAnim {
  from { opacity: 0; transform: translateX(14px); flex-basis: 0; width: 0; max-width: 0; min-width: 0; padding-left: 0; padding-right: 0; }
  to { opacity: 1; transform: none; flex-basis: 220px; width: 220px; max-width: 220px; padding-left: 12px; padding-right: 10px; }
}
@keyframes tabCloseAnim {
  from { width: var(--tab-close-width, 220px); max-width: var(--tab-close-width, 220px); flex-basis: var(--tab-close-width, 220px); }
  to { opacity: 0; transform: translateX(-14px); flex-basis: 0; width: 0; max-width: 0; min-width: 0; padding-left: 0; padding-right: 0; margin-right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (max-width: 760px) {
  .bottom-address-wrapper { position: relative; left: auto; transform: none; width: auto; flex: 1; }
  #settingsView { padding: 24px 20px 105px; }
  .settings-window { grid-template-columns:minmax(0,1fr); gap:20px; }
  .settings-sidebar { position: static; width: 100%; grid-column:1; grid-row:1; }
  .settings-section-title { grid-column:1; grid-row:2; }
  .settings-cards-container { grid-column:1; grid-row:3; }
  .settings-nav-list { flex-direction: row; flex-wrap: wrap; }
  .settings-nav-item { flex: 1; width: auto; padding: 10px; }
  .settings-nav-item svg { display: none; }
  .settings-content-pane { padding: 0; }
  .settings-row { align-items: flex-start; flex-wrap: wrap; }
  .settings-control { max-width: 100%; }
  .settings-shortcut-controls { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .search-engine-control { width: 131px; }
  .search-engine-control .atlas-dropdown-button { gap: 6px; padding-left: 7px; font-size: 11px; }
  .search-wrapper .search-bar, .new-tab-search-wrapper .new-tab-search-bar { padding-right: 146px; }
  .search-engine-control .atlas-dropdown-icon { width: 14px; height: 14px; }
  .bottom-bar { gap: 6px; padding: 0 8px; }
  .nav-buttons { gap: 2px; }
  .nav-icon-btn { width: 28px; }
}
.atlas-history-panel { display:flex; flex-direction:column; overflow:visible; }
.atlas-history-heading { flex-shrink:0; }
.atlas-history-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.atlas-history-show-all { flex-shrink:0; margin-top:8px; border:0; border-radius:10px; }
#atlasExtensionsButton { color:#fff; }
.tab-icon-svg { color:#fff; }
#atlasExtensionsButton svg { width:22px; height:22px; }

.custom-site-branding-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .24s ease, opacity .2s ease; }
.custom-site-branding-reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.custom-site-branding { display: grid; gap: 16px; min-height: 0; overflow: hidden; padding: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); transition: padding-bottom .24s ease; }
.custom-site-branding-reveal.is-open .custom-site-branding { padding-bottom: 24px; }
.custom-site-branding label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text); line-height: 20px; }
.custom-site-branding input { width: 100%; height: 40px; flex: none; box-sizing: border-box; border: none; border-radius: 8px; padding: 10px 14px; line-height: 20px; }
#customFaviconError:empty { display: none; }
#customFaviconError { font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }

.settings-custom-title-group { transition: background-color .12s ease; border-bottom: 1px solid #ffffff0a; }
.settings-custom-title-group:hover { background: rgba(255,255,255,.02); }
.settings-custom-title-group > .settings-row { border-bottom: none; }
.settings-custom-title-group > .settings-row:hover { background: transparent; }
.search-suggestions-dropdown { scrollbar-color: transparent transparent; }
.search-suggestions-dropdown::-webkit-scrollbar, .search-suggestions-dropdown::-webkit-scrollbar-track, .search-suggestions-dropdown::-webkit-scrollbar-thumb { background: transparent; }
.suggestion-item { flex-shrink: 0; box-sizing: border-box; }
#newTabScreen.active, .atlas-split-empty:not([hidden]) { display: grid; grid-template-rows: minmax(0,1fr) auto auto minmax(0,1fr); justify-items: center; align-content: normal; }
.new-tab-screen > .new-tab-title, .atlas-split-empty > .new-tab-title { grid-row: 2; margin: 0 0 22px; font-size: clamp(24px,3vw,40px); }
.new-tab-screen > .new-tab-search-wrapper, .atlas-split-empty > .new-tab-search-wrapper { grid-row: 3; margin: 0 0 24px; }
.new-tab-screen > .shortcuts-row, .new-tab-screen > .atlas-split-tab-picker, .atlas-split-empty > .atlas-split-tab-picker { grid-row: 4; align-self: start; margin-top: 0; }
.new-tab-search-bar { height: 48px; box-sizing: border-box; }

#newTabScreen.active, .atlas-split-empty:not([hidden]) { grid-template-columns: minmax(0,1fr); }
.new-tab-search-wrapper { max-width: 680px; min-width: 0; }
.search-suggestions-dropdown { overflow: hidden !important; }
.suggestion-item { height: 44px; }
.suggestion-text { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
.atlas-split .search-engine-control { width: 58px; }
.atlas-split .search-engine-control .atlas-dropdown-label { display: none; }
.atlas-split .search-engine-control .atlas-dropdown-button { justify-content: center; gap: 7px; padding: 8px; }
.atlas-split .new-tab-search-wrapper .new-tab-search-bar { padding-right: 76px; }

.new-tab-search-wrapper { transition: max-width .22s cubic-bezier(.2,.7,.3,1); }
.atlas-split .new-tab-search-wrapper { max-width: 540px; }
.atlas-split[data-atlas-split-animation="exit"] .new-tab-search-wrapper { max-width: 680px; }
.new-tab-screen > .shortcuts-row, .new-tab-screen > .atlas-split-tab-picker, .atlas-split-empty > .atlas-split-tab-picker { grid-column: 1; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.new-tab-screen > .atlas-split-tab-picker, .atlas-split-empty > .atlas-split-tab-picker { display: flex; flex-direction: column; width: min(420px,100%); max-height: 160px; overflow-y: auto; background: var(--bg-card); border-radius: 12px; padding: 5px; }
.atlas-split .atlas-split-tab-picker { transition-delay: 0s; }
.new-tab-screen > .shortcuts-row { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.atlas-split #newTabShortcutsRow { opacity: 0; transform: translateY(-6px); visibility: hidden; transition-delay: 0s,0s,.18s; }

.tab-icon { position: relative; }
.tab-placeholder-globe { width: 16px; height: 16px; position: absolute; inset: 0; }
.tab-placeholder-globe[hidden], .tab-favicon-pending { display: none; }

#browserView{--atlas-proxy-radius:14px}
#browserView:has(.viewport-container.atlas-split){--atlas-proxy-radius:16px}
#browserView .bottom-bar{border-radius:var(--atlas-proxy-radius)!important}

.browser-frame:fullscreen {
  position: fixed !important; inset: 0 !important;
  width: 100vw !important; height: 100vh !important;
  max-width: none !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  clip-path: none !important; transform: none !important;
}

#newTabScreen.active,.atlas-split-empty:not([hidden]){grid-template-rows:minmax(0,1fr) 48px minmax(0,1fr)}
.new-tab-screen>.new-tab-title,.atlas-split-empty>.new-tab-title{grid-row:1;align-self:end;margin-bottom:22px}
.new-tab-screen>.new-tab-search-wrapper,.atlas-split-empty>.new-tab-search-wrapper{grid-row:2;margin:0}
.new-tab-screen>.shortcuts-row,.new-tab-screen>.atlas-split-tab-picker,.atlas-split-empty>.atlas-split-tab-picker{grid-row:3;margin-top:24px;align-self:start;justify-content:center}

.atlas-history-panel,.atlas-history-list{scrollbar-color:transparent transparent}.atlas-history-panel::-webkit-scrollbar-track,.atlas-history-list::-webkit-scrollbar-track,.atlas-history-panel::-webkit-scrollbar-thumb,.atlas-history-list::-webkit-scrollbar-thumb{background:transparent}
.bottom-bar-hide-btn,.bottom-bar-reveal-btn{border:none!important}

.atlas-history-panel,.atlas-history-list{scrollbar-width:none!important}.atlas-history-panel::-webkit-scrollbar,.atlas-history-list::-webkit-scrollbar{display:none;width:0;height:0;background:transparent}

/* Keep the bottom URL control and its collapse handle visually borderless. */
#browserView #bottomBar,
#browserView #bottomBar .bottom-address-wrapper,
#browserView #bottomBar .bottom-address-bar,
#browserView #bottomBar .bottom-bar-hide-btn,
#browserView .bottom-bar-reveal-btn {
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
}
#browserView #bottomBar .bottom-address-wrapper:focus-within,
#browserView #bottomBar .bottom-address-bar:focus-visible {
  box-shadow: none !important;
}

/* The visible collapse handle shares the viewport's fine outline, without reintroducing the bottom address bar border. */
#browserView.bottom-bar-hidden .bottom-bar-reveal-btn {
  border: 1px solid rgba(255,255,255,.09) !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0;
  box-shadow: none !important;
  box-sizing: border-box;
}

/* Keep site controls anchored to the address field while content expands. */
.site-info-popup { box-sizing: border-box; width: 334px; padding: 12px; transform-origin: bottom left; overflow-x: hidden; }
.site-info-header { position: relative; min-height: 20px; padding: 8px 10px; gap: 12px; align-items: center; }
.site-info-header-titles { min-width: 0; justify-content: center; text-align: left; padding: 0; }
.site-info-title-main { line-height: 20px; }
.site-info-back-btn { position: static; width: 20px; height: 20px; padding: 0; flex: 0 0 20px; }
.site-info-back-btn svg { width: 18px; height: 18px; }
.site-info-cookies-subview, .site-info-ondevice-subview { padding-inline: 0; }
.cookies-subview-desc, .cookies-subview-section { padding-inline: 10px; }
.cookies-toggle-row, .cookies-manage-row { padding: 8px 10px; gap: 12px; }
.cookies-toggle-info, .cookies-manage-left { gap: 12px; min-width: 0; }
.cookies-divider { margin: 2px 10px; }
.site-info-popup .site-info-item, .ondevice-item { padding: 8px 10px; gap: 12px; }
.site-info-popup .site-info-icon, .ondevice-item-icon { width: 20px; height: 20px; }
.site-info-popup .site-info-icon svg, .ondevice-item-icon svg { width: 18px; height: 18px; }
.ondevice-header-section, .ondevice-site-section { padding-inline: 10px; }
.ondevice-list { padding: 0; }
.ondevice-list-frame { position: relative; min-height: 0; isolation: isolate; }
.ondevice-list-frame::before, .ondevice-list-frame::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px; z-index: 1;
  pointer-events: none; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: opacity .18s ease;
}
.ondevice-list-frame::before {
  top: 0; opacity: var(--site-data-top-edge, 0);
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}
.ondevice-list-frame::after {
  bottom: 0; opacity: var(--site-data-bottom-edge, 0);
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
.ondevice-list { margin-top: 0; scrollbar-width: none; }
.ondevice-list::-webkit-scrollbar, .site-info-popup::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.site-info-popup {
  scrollbar-width: none;
  transition: opacity .22s ease, transform .22s ease, height .28s cubic-bezier(.16,1,.3,1), visibility 0s linear .22s;
}
.site-info-popup.active { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .site-info-popup, .ondevice-list-frame::before, .ondevice-list-frame::after { transition-duration: .01ms; transition-delay: 0s; }
}
.ondevice-item-left { gap: 12px; }
.ondevice-item-domain { font-size: 13.5px; font-weight: 500; }
.ondevice-section-title { font-size: 13.5px; }
.ondevice-empty-msg { padding: 8px 10px; text-align: left; }
.site-info-popup .clean-switch-slider { background: #55595c !important; box-shadow: inset 0 0 0 1px #888c90 !important; }
.site-info-popup input:checked + .clean-switch-slider { background: #73797e !important; box-shadow: none; }
.clean-switch input:focus-visible + .clean-switch-slider { outline: 2px solid var(--text); outline-offset: 3px; }
.clean-switch input:disabled + .clean-switch-slider { opacity: .5; cursor: not-allowed; }

#settingWispInput[data-saved="true"] { border: 1px solid #58b878 !important; outline: none; box-shadow: none; }
#settingWispStatus:empty { display: none; }

#settingWispInput { border: 1px solid transparent !important; box-sizing: border-box; }
#settingWispInput[data-saved="true"] { border-color: #58b878 !important; }
