:root {
    --bar: #0e1116;
    --bar-line: #232a35;
    --ink: #e7ebf2;
    --muted: #93a0b4;
    --accent: #4b7cff;
    --danger: #ff6b6b;
    --ok: #3ddc84;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: #fff;
    font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

#bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    background: var(--bar);
    border-bottom: 1px solid var(--bar-line);
    color: var(--ink);
}

.brand {
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
    padding-right: 6px;
}

.brand span {
    color: var(--accent);
    margin-left: 2px;
    font-weight: 600;
}

#url {
    flex: 1;
    min-width: 120px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--bar-line);
    background: #161b23;
    color: var(--ink);
    font: inherit;
    outline: none;
}

#url:focus {
    border-color: var(--accent);
}

#bar button {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--bar-line);
    background: #1a2029;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

#bar button:hover {
    background: #222a36;
}

#bar button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

#bar button.primary:hover {
    background: #3f6ae8;
}

.status {
    min-width: 130px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }

#stage {
    flex: 1;
    min-height: 0;
    background: #fff;
    position: relative;
}

#view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    display: block;
}
