.gcb-capture-widget {
    color: #e2e8f0;
    font-family: "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.goldfish-widget-tray__content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.gcb-capture-widget::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.goldfish-widget-tray__content {
    overflow: hidden !important;
}

.gcb-capture-widget__shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(150deg, rgba(10, 12, 18, 0.92), rgba(17, 24, 39, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 4px 6px 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: calc(100vh - var(--gcb-menubar-height, 36px) - var(--gcb-taskbar-height, 48px) - 24px);
    overflow: hidden;
    height: 100%;
}

.gcb-capture-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 2px 2px 0;
}

.gcb-capture-widget__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gcb-capture-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gcb-capture-widget__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: #94a3b8;
}

.gcb-capture-widget__title {
    font-weight: 800;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.gcb-capture-widget__header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gcb-capture-widget__stats {
    color: #cbd5e1;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcb-capture-widget__status {
    font-size: 0.8rem;
    color: #0f172a;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 4px 8px;
    display: none;
    position: static;
    margin: 4px 2px 0 2px;
    align-self: flex-start;
}

.gcb-capture-widget__status.is-error {
    background: #fef2f2;
    border-color: #fecdd3;
    color: #991b1b;
}

.gcb-capture-widget__status.is-visible {
    display: inline-flex;
}

.gcb-capture-widget__icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 5px 7px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.gcb-capture-widget__icon-btn:hover,
.gcb-capture-widget__icon-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.gcb-capture-widget__actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0 2px;
    margin-top: 0;
}

.gcb-capture-action {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(103, 232, 249, 0.08));
    border-radius: 12px;
    padding: 8px;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    min-height: 36px;
}

.gcb-capture-action .icon {
    font-size: 1.1rem;
}

.gcb-capture-action .label {
    display: none;
}

.gcb-capture-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    border-color: rgba(103, 232, 249, 0.4);
}

.gcb-capture-action:disabled,
.gcb-capture-widget__icon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gcb-capture-action.is-busy::after,
.gcb-capture-widget__icon-btn.is-busy::after,
.gcb-capture-widget__delete.is-busy::after,
.gcb-capture-ghost.is-busy::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: rgba(103, 232, 249, 0.9);
    display: inline-block;
    margin-left: 6px;
    animation: gcb-capture-spin 0.8s linear infinite;
}

.gcb-capture-widget__list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    padding: 4px 2px 2px;
}

@media (max-width: 560px) {
    .gcb-capture-widget__list {
        grid-template-columns: 1fr;
    }
}

.gcb-capture-widget__item {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 10px;
    background: rgba(16, 22, 32, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    min-width: 0;
    border-left: 3px solid rgba(255, 255, 255, 0.08);
}

.gcb-capture-item--desktop {
    border-left-color: rgba(59, 130, 246, 0.8);
}

.gcb-capture-item--browser {
    border-left-color: rgba(56, 189, 248, 0.85);
}

.gcb-capture-item--upload {
    border-left-color: rgba(16, 185, 129, 0.85);
}

.gcb-capture-item--clipboard {
    border-left-color: rgba(245, 158, 11, 0.85);
}

.gcb-capture-item--other {
    border-left-color: rgba(148, 163, 184, 0.85);
}

.gcb-capture-widget__item.is-latest {
    border-color: rgba(103, 232, 249, 0.55);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.14), rgba(16, 22, 32, 0.92));
}

.gcb-capture-widget__item.is-active {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(16, 22, 32, 0.92));
}

.gcb-capture-widget__item.is-skeleton {
    background: rgba(255, 255, 255, 0.04);
    border-style: dashed;
}

.gcb-capture-widget__thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0b1221;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gcb-capture-widget__thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.32);
}

.gcb-capture-thumb__overlay,
.gcb-capture-thumb__overlay-btn {
    display: none !important;
}


.gcb-capture-widget__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    min-width: 0;
    width: 100%;
}

.gcb-capture-widget__meta .label {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcb-capture-widget__meta .time {
    display: none;
}

.gcb-capture-widget__badges {
    display: flex;
    gap: 6px;
}

.gcb-capture-badge {
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 9px;
    text-transform: capitalize;
}

.gcb-capture-badge.is-accent {
    border-color: rgba(103, 232, 249, 0.6);
    background: rgba(103, 232, 249, 0.28);
    color: #0f172a;
}

.gcb-capture-widget__badges + .label {
    margin-top: 2px;
}

.gcb-capture-widget__title {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcb-capture-widget__sub {
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcb-capture-widget__delete {
    border: none;
    background: rgba(0, 0, 0, 0.44);
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.12s ease, opacity 0.12s ease;
    opacity: 0;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
}

.gcb-capture-widget__item:hover .gcb-capture-widget__delete {
    opacity: 1;
}

.gcb-capture-widget__delete:hover {
    color: #ef4444;
}

.gcb-capture-widget__empty {
    text-align: center;
    color: #94a3b8;
    padding: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.gcb-capture-widget__footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.gcb-capture-widget__footer-actions {
    display: flex;
    gap: 8px;
}

.gcb-capture-link {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: underline;
}

.gcb-capture-ghost,
.gcb-capture-primary {
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.gcb-capture-ghost {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
}

.gcb-capture-primary {
    border: 1px solid rgba(103, 232, 249, 0.5);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.28), rgba(56, 189, 248, 0.22));
    color: #0f172a;
    font-weight: 700;
}

.gcb-capture-ghost:hover,
.gcb-capture-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.gcb-capture-ghost:disabled,
.gcb-capture-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gcb-capture-widget__item.is-skeleton .label,
.gcb-capture-widget__item.is-skeleton .time,
.gcb-capture-widget__item.is-skeleton .gcb-capture-widget__thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    background-size: 200% 100%;
    animation: gcb-capture-shimmer 1.4s ease infinite;
}

.gcb-capture-widget__item.is-skeleton .label { height: 14px; border-radius: 6px; }
.gcb-capture-widget__item.is-skeleton .time { height: 12px; width: 70%; border-radius: 6px; }

@keyframes gcb-capture-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes gcb-capture-spin {
    to { transform: rotate(360deg); }
}

.gcb-capture-overlay {
    position: absolute;
    inset: 0;
    z-index: 8000;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.gcb-capture-overlay.is-visible {
    opacity: 1;
    pointer-events: none;
}

.gcb-capture-overlay.is-off-desktop {
    opacity: 1;
    pointer-events: none;
}

.gcb-capture-overlay.is-visible.is-off-desktop {
    opacity: 1;
    pointer-events: none;
}

.gcb-capture-overlay__backdrop {
    position: absolute;
    top: calc(var(--gcb-menubar-height, 36px) + 6px);
    left: 0;
    right: calc(var(--gcb-widget-tray-width, 320px) + 16px);
    bottom: calc(var(--gcb-taskbar-height, 48px) + 6px);
    background: transparent;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.gcb-capture-overlay__panel {
    position: absolute;
    top: calc(var(--gcb-menubar-height, 36px) + 20px);
    left: 32px;
    right: calc(var(--gcb-widget-tray-width, 320px) + 28px);
    bottom: calc(var(--gcb-taskbar-height, 48px) + 20px);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    overflow: hidden;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.38s ease;
    pointer-events: auto;
    z-index: 8000;
}

.gcb-capture-overlay:not(.is-visible) .gcb-capture-overlay__panel {
    pointer-events: none;
}

.gcb-capture-overlay.is-visible .gcb-capture-overlay__panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .gcb-capture-overlay__backdrop {
        top: calc(var(--gcb-menubar-height, 36px) + 12px);
        bottom: calc(var(--gcb-taskbar-height, 48px) + 12px);
        right: 12px;
    }
    .gcb-capture-overlay__panel {
        top: calc(var(--gcb-menubar-height, 36px) + 16px);
        bottom: calc(var(--gcb-taskbar-height, 48px) + 16px);
        right: 18px;
        left: 18px;
    }
}

.gcb-capture-overlay__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.gcb-capture-overlay__status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(103, 232, 249, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.4);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 10px;
    display: none;
}

.gcb-capture-overlay__status.is-error {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecdd3;
}

.gcb-capture-overlay__status.is-visible {
    display: inline-flex;
}

.gcb-capture-overlay__body {
    overflow: auto;
    display: grid;
    gap: 12px;
}

.gcb-capture-overlay__head {
    display: grid;
    gap: 2px;
    color: #0f172a;
}

.gcb-capture-overlay__title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}

.gcb-capture-overlay__sub {
    color: #475569;
    font-size: 0.95rem;
}

.gcb-capture-overlay__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gcb-capture-pill {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    color: #0f172a;
}

.gcb-capture-pill--danger {
    border-color: #fecdd3;
    color: #b91c1c;
    background: #fff1f2;
}

.gcb-capture-overlay__viewer {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    min-height: 320px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gcb-capture-overlay__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.18s ease;
    cursor: grab;
    user-select: none;
}

.gcb-capture-overlay__img.is-grabbing {
    cursor: grabbing;
}

.gcb-capture-overlay__placeholder {
    color: #94a3b8;
}

.gcb-capture-overlay__meta {
    display: grid;
    gap: 4px;
    color: #cbd5e1;
}

.goldfish-capture-body {
    padding: calc(var(--gcb-titlebar-clear, 72px) + 8px) 10px 10px 10px;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    color: #0f172a;
    font-family: "SF Pro Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.goldfish-capture-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.goldfish-capture-header {
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(248, 250, 252, 0.9);
}

.goldfish-capture-placeholder {
    flex: 1;
    display: grid;
    place-items: center;
    color: #475569;
    font-size: 14px;
    text-align: center;
    padding: 12px;
}
