/* Recreated Chrome window for the live BarShift demo. Neutral, no Google branding. */
.bsd {
  --bsd-frame: #dfe4eb; --bsd-toolbar: #fff; --bsd-omni: #edf1f6; --bsd-text: #1f1f1f; --bsd-icon: #474747;
  --bsd-line: #e1e4e8; --bsd-hover: rgba(31, 31, 31, .07); --bsd-page: #f6f7f9; --bsd-folder: #5f6368;
  --bsd-profile: #2563eb; --bsd-popup-scale: 1; --bsd-page-h: 360px;
  position: relative; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--bsd-text);
}
.bsd[data-theme="dark"] {
  --bsd-frame: #1d1e21; --bsd-toolbar: #2c2d31; --bsd-omni: #1d1e21; --bsd-text: #e3e3e3; --bsd-icon: #c4c7c5;
  --bsd-line: #3a3b40; --bsd-hover: rgba(255, 255, 255, .08); --bsd-page: #232428; --bsd-folder: #aeb1b5;
}
.bsd-window { position: relative; background: var(--bsd-frame); border-radius: 12px; overflow: visible; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.bsd-window > :not(.bsd-popup):not(.bsd-menu) { overflow: hidden; }
.bsd svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.bsd-tabstrip { display: flex; align-items: flex-end; gap: 6px; height: 42px; padding: 0 8px 0 10px; border-radius: 12px 12px 0 0; }
.bsd-tab { position: relative; display: flex; align-items: center; gap: 8px; width: min(240px, 46%); height: 34px; padding: 0 10px 0 12px; background: var(--bsd-toolbar); border-radius: 10px 10px 0 0; font-size: 12px; }
.bsd-tab-fav svg, .bsd-tab-fav .bsd-fav { width: 16px; height: 16px; }
.bsd-tab-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsd-tab-x { color: var(--bsd-icon); font-size: 15px; }
.bsd-newtab { color: var(--bsd-icon); font-size: 20px; line-height: 34px; padding: 0 8px; }
.bsd-winctl { margin-left: auto; display: flex; gap: 22px; align-self: center; padding-right: 8px; }
.bsd-winctl i { width: 11px; height: 11px; border: 1.4px solid var(--bsd-icon); border-radius: 1px; opacity: .8; }
.bsd-winctl i:first-child { height: 0; border-width: 0 0 1.4px; align-self: center; }

.bsd-toolbar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px; background: var(--bsd-toolbar); color: var(--bsd-icon); }
.bsd-tool { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.bsd-tool svg { width: 18px; height: 18px; }
.bsd-omnibox { flex: 1; display: flex; align-items: center; gap: 6px; height: 36px; margin: 0 6px; padding: 0 4px; background: var(--bsd-omni); border-radius: 18px; min-width: 0; }
.bsd-url { flex: 1; min-width: 0; font-size: 14px; color: var(--bsd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsd-ext { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.bsd-ext[aria-expanded="true"] { background: var(--bsd-hover); }
.bsd-ext img { width: 16px; height: 16px; }
.bsd-badge { position: absolute; right: 0; bottom: 3px; min-width: 14px; height: 12px; padding: 0 3px; border-radius: 3px; background: var(--bsd-profile); color: #fff; font: 700 9px/12px system-ui, sans-serif; text-align: center; }
.bsd-avatar { width: 24px; height: 24px; margin: 0 4px; border-radius: 50%; background: linear-gradient(135deg, #b9c4d4, #8d9bb1); }

.bsd-bar { display: flex; align-items: center; height: 34px; padding: 0 8px 2px; background: var(--bsd-toolbar); border-bottom: 1px solid var(--bsd-line); }
.bsd-items { position: relative; flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.bsd-item { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border-radius: 14px; color: var(--bsd-text); font-size: 12px; white-space: nowrap; text-decoration: none; flex: none; }
.bsd-item:hover { background: var(--bsd-hover); }
.bsd-item .bsd-fav, .bsd-item svg { width: 16px; height: 16px; color: var(--bsd-text); }
.bsd-folder { color: var(--bsd-folder); }
.bsd-item .bsd-folder { width: 16px; height: 16px; }
.bsd-globe { color: var(--bsd-icon); }
.bsd-chevron { display: grid; place-items: center; width: 28px; height: 28px; color: var(--bsd-icon); }
.bsd-chevron svg { width: 16px; height: 16px; }
.bsd-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--bsd-line); }
.bsd-all { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 0; border-radius: 14px; background: transparent; color: var(--bsd-text); font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; flex: none; }
.bsd-all svg { width: 16px; height: 16px; }
.bsd-all:hover, .bsd-all[aria-expanded="true"] { background: var(--bsd-hover); }

.bsd-page { height: var(--bsd-page-h); background: var(--bsd-page); border-radius: 0 0 12px 12px; }

.bsd-menu { position: absolute; right: 10px; top: 122px; z-index: 6; min-width: 230px; padding: 6px 0; background: var(--bsd-toolbar); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.16); font-size: 13px; }
.bsd-menu-head { margin: 0; padding: 6px 14px; font-size: 11px; color: var(--bsd-icon); }
.bsd-menu-row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.bsd-menu-row svg { width: 16px; height: 16px; }
.bsd-menu-row small { margin-left: auto; color: var(--bsd-icon); }

.bsd-popup { position: absolute; top: 84px; right: 60px; z-index: 5; width: calc(420px * var(--bsd-popup-scale)); height: calc(600px * var(--bsd-popup-scale)); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 18px 46px rgba(0,0,0,.22); background: #fff; }
.bsd-frame { display: block; width: 420px; height: 600px; border: 0; transform: scale(var(--bsd-popup-scale)); transform-origin: 0 0; }
.bsd-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .bsd * { transition: none !important; animation: none !important; } }

.bsd-winctl { gap: 18px; }
.bsd-winctl svg { width: 14px; height: 14px; color: var(--bsd-icon); }
.bsd-ghost { position: fixed; z-index: 2147483000; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 14px; pointer-events: none;
  background: #fff; color: #1f1f1f; font: 12px "Segoe UI", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.bsd-ghost[data-theme="dark"] { background: #2c2d31; color: #e3e3e3; }
.bsd-ghost svg { width: 16px; height: 16px; fill: currentColor; }
.bsd-item.is-entering { visibility: hidden; }
.bsd-cursor { transition: opacity .3s; position: fixed; left: 0; top: 0; z-index: 2147483001; width: 22px; height: 22px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.bsd-cursor svg { width: 22px; height: 22px; }
/* like Chrome: a bookmark that does not fit moves behind the chevron instead of being cut */
.bsd-item.is-overflow { visibility: hidden; }
