/* Stealth Browse - Hide It Power Up */

.hide-it-toggle-container:not([hidden]):not(.appearance-hidden) {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

#hide-it-toggle-container[hidden],
#hide-it-toggle-container.appearance-hidden,
.top-bar #hide-it-toggle-container[hidden],
.top-bar #hide-it-toggle-container.appearance-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#hide-it-toggle-btn img,
.top-bar #hide-it-toggle-btn img {
    width: 11px !important;
    height: 11px !important;
    max-width: 11px !important;
    max-height: 11px !important;
    display: block !important;
    object-fit: contain !important;
}

#hide-it-toggle-btn.is-open,
#hide-it-toggle-btn.is-active {
    color: #a78bfa;
    background: rgba(90, 13, 214, 0.22);
}

.hide-it-window {
    --panel-fill-alpha: 0.28;
    --frost-tint-alpha: 0.18;
    position: fixed;
    top: 96px;
    right: 72px;
    width: 420px;
    height: 480px;
    min-width: 320px;
    min-height: 280px;
    z-index: 2147483647 !important;
    border-radius: 16px;
    overflow: hidden !important;
    background: rgba(22, 22, 30, var(--panel-fill-alpha, 0.28)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    display: none;
    flex-direction: column;
    color: #f2f2f6;
    font-family: inherit;
    pointer-events: auto;
    clip-path: inset(0 round 16px);
    -webkit-clip-path: inset(0 round 16px);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#hide-it-window.show,
#hide-it-window.page-frost-host {
    border-radius: 16px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 16px) !important;
    -webkit-clip-path: inset(0 round 16px) !important;
}

#hide-it-window .page-frost-layer,
#hide-it-window .page-frost-image,
#hide-it-window .page-frost-layer::after {
    border-radius: 16px !important;
}

.hide-it-window.show {
    display: flex;
}

.hide-it-glass-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        radial-gradient(ellipse at 20% 0%, rgba(90, 13, 214, 0.18), transparent 55%);
}

.hide-it-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    min-height: 28px;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.hide-it-header:active { cursor: grabbing; }

.hide-it-header-icon {
    width: 16px;
    height: 16px;
    opacity: 0.92;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(72%) sepia(42%) saturate(1200%) hue-rotate(230deg) brightness(1.05);
}

.hide-it-header-title {
    font-size: 13px;
    font-weight: 650;
    flex: 1;
    min-width: 0;
}

.hide-it-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hide-it-icon-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    width: 28px;
    height: 28px;
    border-radius: var(--stealth-cut-sm, 8px 2px 2px 2px);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hide-it-icon-btn:hover {
    background: rgba(90, 13, 214, 0.28);
    border-color: rgba(90, 13, 214, 0.45);
}

.hide-it-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    flex: 1;
    min-height: 0;
}

.hide-it-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.hide-it-action-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    border-radius: var(--stealth-cut, 12px 2px 2px 2px);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.hide-it-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hide-it-action-btn.primary {
    background: linear-gradient(135deg, #5a0dd6, #4900c2);
    border-color: rgba(90, 13, 214, 0.55);
    color: #fff;
}

.hide-it-action-btn.primary:hover {
    filter: brightness(1.06);
}

.hide-it-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hide-it-status {
    min-height: 16px;
    font-size: 12px;
    color: rgba(242, 242, 246, 0.72);
    flex-shrink: 0;
}

.hide-it-page-key {
    font-size: 11px;
    color: rgba(242, 242, 246, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.hide-it-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.hide-it-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(242, 242, 246, 0.55);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--stealth-cut-panel, 22px 4px 4px 4px);
}

.hide-it-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--stealth-cut-panel, 22px 4px 4px 4px);
}

.hide-it-item-sel {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-family: ui-monospace, Consolas, monospace;
    word-break: break-all;
    color: rgba(242, 242, 246, 0.9);
}

.hide-it-item .hide-it-action-btn {
    padding: 6px 10px;
    flex-shrink: 0;
}

.hide-it-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 3;
}
