.orbit-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.orbit-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--card-radius, .75rem);
    background: rgb(var(--bg));
    transition: border-color .15s, box-shadow .15s;
}

.orbit-group-title {
    margin: 1.4rem 0 .6rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgb(var(--muted-fg));
}

.orbit-lens-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    color: rgb(var(--primary));
    background: rgb(var(--primary) / .1);
}

.orbit-lens-icon svg {
    width: 16px;
    height: 16px;
}

#orbitLenses .orbit-item-body {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

#orbitLenses .orbit-item-url {
    white-space: normal;
}

.orbit-item.active {
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary) / .12);
}

.orbit-item-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: rgb(var(--primary));
    cursor: pointer;
}

.orbit-item-body {
    flex: 1;
    min-width: 0;
}

.orbit-item-name {
    font-weight: 600;
    font-size: .92rem;
    color: rgb(var(--fg));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orbit-item-url {
    font-size: .78rem;
    color: rgb(var(--muted-fg));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orbit-item-actions {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
}

.orbit-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    border: 1px solid rgb(var(--border));
    background: transparent;
    color: rgb(var(--muted-fg));
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.orbit-icon-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-icon-btn:hover {
    background: rgba(var(--primary) / .08);
    color: rgb(var(--primary));
    border-color: rgb(var(--primary));
}

.orbit-icon-btn.danger:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border-color: #ef4444;
}

.orbit-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: rgb(var(--muted-fg));
    font-size: .88rem;
    border: 1px dashed rgb(var(--border));
    border-radius: var(--card-radius, .75rem);
}

.orbit-none-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--card-radius, .75rem);
    background: rgba(var(--muted-fg) / .04);
    margin-bottom: .6rem;
}

.orbit-none-item.active {
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary) / .12);
}

.orbit-none-label {
    font-size: .88rem;
    color: rgb(var(--muted-fg));
}

.orbit-form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .9rem;
}

.orbit-form-row label {
    font-size: .82rem;
    font-weight: 600;
    color: rgb(var(--fg));
}

.orbit-form-row input[type="text"],
.orbit-form-row input[type="url"] {
    padding: .6rem .75rem;
    border-radius: .5rem;
    border: 1px solid rgb(var(--border));
    background: rgb(var(--bg));
    color: rgb(var(--fg));
    font-family: inherit;
    font-size: .875rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.orbit-form-row input:focus {
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary) / .15);
}

.orbit-form-hint {
    font-size: .76rem;
    color: rgb(var(--muted-fg));
}

.orbit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%) translateY(1rem);
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.1rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: .75rem;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, .12));
    font-size: .85rem;
    font-weight: 500;
    color: rgb(var(--fg));
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: rgb(var(--primary));
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-modal {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.confirm-modal h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.confirm-modal p {
    font-size: .875rem;
    color: rgb(var(--muted-fg));
    line-height: 1.5;
}
