.browser-chrome {
    margin-left: 43px;
    width: calc(100vw - 43px);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.tab-strip {
    display: flex;
    align-items: center;
    height: 38px;
    /* padding: 0 6px; */
    gap: 4px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}

.tabs-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-list::-webkit-scrollbar {
    display: none;
}

.tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 12px;
    min-width: 140px;
    max-width: 200px;
    border-radius: 4px 4px 0 0;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--border-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

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

.tab.active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: none;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--accent-1);
}

.tab-title {
    flex: 1;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    color: var(--text-faint);
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.tab-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.new-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 2px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.new-tab-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.new-tab-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.4;
}

.topbar {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    gap: 10px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar > svg[data-lucide],
.topbar > button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.topbar > svg[data-lucide],
.topbar > button svg[data-lucide] {
    width: 26px;
    height: 26px;
    padding: 5px;
    color: var(--text-muted);
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

.topbar > svg[data-lucide]:hover,
.topbar > button:hover svg[data-lucide] {
    background: var(--surface-2);
    color: var(--text);
}

.urlbar {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    height: 30px;
    padding: 0 12px;
    background-color: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.urlbar:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.urlbar svg[data-lucide] {
    color: var(--text-faint);
}

.urlbar input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text);
    outline: none;
    margin-left: 8px;
}

.urlbar input::placeholder {
    color: var(--text-faint);
}

.view-area {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-color: var(--bg);
}

.view-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.view-container.active {
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.sj-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-faint);
}

.empty-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-1);
    background: transparent;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}