#container {
    position: relative;
    width: 100%;
    height: var(--vvh, 100%);
    display: grid;
    grid-template-columns: 1fr 0 var(--panel-width) var(--sidebar-width);
    grid-template-rows: var(--topbar-height) 1fr;
    grid-template-areas:
        "topbar topbar topbar topbar"
        "content user-panel panel sidebar";
    transition: grid-template-columns var(--transition-normal);
}

#container.panel-collapsed {
    grid-template-columns: 1fr 0 0 var(--sidebar-width);
}

#container.resizing,
#container.resizing #panel > iframe,
#container.resizing #user-panel > iframe {
    transition: none;
}

#topbar {
    grid-area: topbar;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 80;
}

#sidebar {
    grid-area: sidebar;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    border-left: 1px solid var(--border-subtle);
}

#panel {
    grid-area: panel;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

#user-panel {
    position: absolute;
    top: var(--topbar-height);
    right: calc(var(--panel-width) + var(--sidebar-width));
    width: 400px;
    height: calc(100% - var(--topbar-height));
    overflow: hidden;
    z-index: 60;
    pointer-events: none;
}

#container.user-panel-open #user-panel {
    pointer-events: auto;
}

#container.panel-collapsed #user-panel {
    right: var(--sidebar-width);
}

#panel > iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--panel-width);
    height: 100%;
    transition: transform var(--transition-normal);
}

#container.panel-collapsed #panel > iframe {
    transform: translateX(100%);
}

#container.panel-collapsed #panel-toggle img {
    transform: rotateZ(180deg);
}

#user-panel > iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

#container.user-panel-open #user-panel > iframe {
    transform: translateX(0);
}

#content {
    grid-area: content;
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
}

.window-frame {
    width: 100%;
    height: 100%;
    display: none;
}

.window-frame.active {
    display: block;
}

#content > .window-parked {
    display: block;
    position: absolute;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}

#content > .content-pending {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-radius var(--transition-normal), background var(--transition-fast);
    font-size: 18px;
    color: var(--text-muted);
}

@media (hover: hover) {
    .sidebar-icon:hover {
        border-radius: var(--radius-xl);
        background: var(--bg-hover);
        color: var(--text-primary);
    }
}

.sidebar-icon.active {
    border-radius: var(--radius-xl);
    background: var(--bg-active);
    color: var(--text-primary);
}

.sidebar-divider {
    width: 32px;
    height: 2px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    cursor: pointer;
    overflow: hidden;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-right{
    float: right;
    position: absolute;
    right: 14px;
}
.topbar-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

@media (hover: hover) {
    .topbar-btn:hover {
        background: var(--bg-overlay);
        color: var(--text-primary);
    }
}

.topbar-btn {
    position: relative;
}

.topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
}

.topbar-left {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
}

.call-banner {
    position: absolute;
    top: calc(var(--topbar-height) / 2);
    left: 14px;
    transform: translateY(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--bg-overlay) 80%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    max-width: 360px;
    cursor: pointer;
}

html.phone .call-banner {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--call-bar-h);
    max-width: none;
    transform: none;
    z-index: 50;
    gap: 12px;
    padding: 0 16px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0;
    cursor: default;
}

html.phone .call-banner .call-icon,
html.phone .call-banner .call-btn,
html.phone .call-banner .call-icon-btn {
    display: none !important;
}

html.phone .call-banner .call-info {
    flex: 1;
}

.call-open-btn {
    display: none;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.call-open-btn img {
    width: 22px;
    height: 22px;
    filter: var(--icon-filter);
    transform: rotate(180deg);
}

html.phone .call-open-btn {
    display: flex;
}

html.phone #container.call-bar-on:not(.phone-fullscreen) #content {
    padding-bottom: var(--call-bar-h);
}

#call-sheet {
    display: none;
}

html.phone #call-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg-base);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
}

html.phone #container.call-sheet-open #call-sheet {
    transform: none;
    visibility: visible;
}

html.phone #container.call-sheet-open #user-panel {
    top: 0;
    height: 100%;
    z-index: 95;
}

.call-avatars {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.call-av {
    width: 28px;
    height: 28px;
    box-sizing: border-box;
}

.call-av img,
.call-av video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    object-fit: cover;
}

.call-banner .call-icon {
    width: 16px;
    height: 16px;
    filter: var(--icon-filter);
    flex-shrink: 0;
}

.call-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

@media (hover: hover) {
    .call-icon-btn:hover {
        opacity: 0.85;
    }
}

.call-icon-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.call-hangup-btn {
    background: var(--danger-bg);
}

.call-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

#call-text {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-timer {
    font-size: 11px;
    color: var(--text-muted);
}

.call-btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-primary);
    background: var(--bg-hover);
    transition: opacity var(--transition-fast);
}

@media (hover: hover) {
    .call-btn:hover {
        opacity: 0.9;
    }
}

.call-banner .btn-accept,
.call-panel .btn-accept {
    background: var(--success);
    color: var(--success-text);
}

.call-banner .btn-decline,
.call-panel .btn-decline {
    background: var(--danger);
    color: var(--danger-text);
}

.call-ringing .call-icon {
    animation: call-shake 0.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes call-shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-18deg); }
    40% { transform: rotate(14deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(6deg); }
}

.icon, .icon-sm, .icon-lg {
    display: inline-block;
    vertical-align: middle;
    filter: var(--icon-filter); 
}

.icon {
    width: 1lh;
    height: 1lh;
}

.icon-sm {
    width: 0.875lh;
    height: 0.875lh;
}

.icon-lg {
    width: 1.25lh;
    height: 1.25lh;
}
.friend-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.friend-input {
    width: 140px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    font-size: 13px;
    color: var(--text-primary);
}

.friend-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.friend-input-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

@media (hover: hover) {
    .friend-input-btn:hover {
        background: var(--accent-hover);
    }
}

.hover-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: var(--z-overlay);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.hover-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.hover-box-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 3px solid var(--bg-elevated);
}

.hover-box-arrow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--border-subtle);
    z-index: -1;
}

.hover-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

@media (hover: hover) {
    .hover-row:hover {
        background: var(--bg-hover);
    }
}

.hover-row .avatar {
    width: 1lh;
    height: 1lh;
    border-radius: var(--radius-full);
    background: var(--bg-overlay);
    overflow: hidden;
    flex-shrink: 0;
}

.hover-row .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-row-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.notifications-box {
    max-width: 400px;
    max-height: 60vh;
    overflow-y: auto;
    width: 300px; 
    max-height: 60vh; 
    overflow-y: auto; 
    overflow-x: hidden;
}

.notification-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 5px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row.unread {
    background: var(--bg-hover);
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    color: var(--text-primary);
}

.notification-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.collapsible-section {
    border-bottom: 1px solid var(--border-subtle);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
    width: 100%;
}

@media (hover: hover) {
    .collapsible-header:hover {
        background: var(--bg-hover);
    }
}

.collapsible-header .icon {
    transition: transform var(--transition-fast);
}

.collapsible-section.collapsed .collapsible-header .icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.collapsible-section.collapsed .collapsible-content {
    max-height: 0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-elevated);
}

.status-indicator.online { background: var(--status-online); }
.status-indicator.away { background: var(--status-away); }
.status-indicator.dnd { background: var(--status-dnd); }
.status-indicator.offline { background: var(--status-offline); }

/* CHAT */
.msg-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px; 
    padding: 4px 16px;
}

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-overlay);
    flex-shrink: 0;
    overflow: hidden;
}

.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.msg-sender {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.history-divider {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 16px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msg-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.msg-text {
    color: var(--text-normal);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word; 
    overflow-wrap: anywhere; 
}

.msg-group.consecutive {
    margin-top: -4px; 
    margin-bottom: 4px;
}
.msg-group.consecutive .msg-avatar {
    visibility: hidden; 
    height: 0; 
}
.msg-group.consecutive .msg-header {
    display: none;
}
.msg-body{
    width: 100%;
}
.typing-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    height: 16px;
    animation: fadeIn 0.2s ease-out;
}

.typing-bar .icon-sm {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input {
    display: flex;
    flex-direction: column;
}

.info-text{
    font-size: xx-small;
    color: var(--text-faint);
    user-select: none;
}
#prono-toast {
    position: fixed;
    left: 50%;
    bottom: 64px;
    z-index: 10000;
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity var(--transition-fast);
}

#prono-toast.show {
    opacity: 1;
}

#phone-dim,
#phone-sheet {
    display: none;
}

html.phone #container {
    grid-template-columns: 1fr 0 0 0;
    overflow: hidden;
}

html.phone #container.panel-collapsed {
    grid-template-columns: 1fr 0 0 0;
}

html.phone {
    --topbar-height: 56px;
    --call-bar-h: 52px;
}

html.phone,
html.phone body {
    overscroll-behavior-y: none;
}

html.phone #container.phone-fullscreen #content {
    position: fixed;
    inset: 0;
    z-index: 85;
}

html.phone #content > .frame-slide-in {
    position: fixed;
    inset: 0;
    z-index: 86;
    background: var(--bg-base);
    animation: frame-slide-in 350ms cubic-bezier(0.37, 0, 0.63, 1);
}

html.phone #content > .frame-slide-under {
    visibility: visible;
    animation: frame-sink 350ms cubic-bezier(0.37, 0, 0.63, 1);
}

html.phone #content > .frame-slide-out {
    position: fixed;
    inset: 0;
    z-index: 86;
    visibility: visible;
    animation: frame-slide-out 350ms cubic-bezier(0.37, 0, 0.63, 1) forwards;
}

html.phone #content > .frame-slide-back {
    animation: frame-rise 350ms cubic-bezier(0.37, 0, 0.63, 1);
}

#boot-cover {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    background: var(--bg-base);
    transition: opacity 150ms linear;
}

#boot-cover.gone {
    opacity: 0;
    pointer-events: none;
}

@keyframes frame-slide-in {
    from { transform: translateY(100%) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes frame-slide-out {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(100%) scale(0.9); opacity: 0; }
}

@keyframes frame-sink {
    from { transform: scale(1); }
    to { transform: scale(0.9); }
}

@keyframes frame-rise {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes sheet-up {
    from { transform: translateY(20vh); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

html.phone #action-menu-container.phone-sheet {
    animation: sheet-up 150ms cubic-bezier(0.37, 0, 0.63, 1);
}

html.phone #panel,
html.phone #sidebar {
    grid-area: auto;
    position: absolute;
    top: var(--topbar-height);
    bottom: 0;
    z-index: 70;
    transform: translateX(100vw);
    transition: transform var(--transition-normal);
}

html.phone #sidebar {
    right: 0;
    width: var(--sidebar-width);
}

html.phone #panel {
    right: var(--sidebar-width);
    width: calc(80% - var(--sidebar-width));
}

html.phone #container:not(.panel-collapsed) #panel,
html.phone #container:not(.panel-collapsed) #sidebar {
    transform: translateX(0);
}

html.phone #panel > iframe,
html.phone #container.panel-collapsed #panel > iframe {
    width: 100%;
    transform: none;
}

html.phone #phone-dim {
    position: absolute;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 65;
}

html.phone #container:not(.panel-collapsed) #phone-dim {
    display: block;
}

html.phone #container.sheet-open #phone-dim {
    display: block;
    top: 0;
    z-index: 9998;
}

html.phone #user-panel,
html.phone #container.panel-collapsed #user-panel {
    left: 0;
    right: 0;
    width: auto;
}

html.phone #user-panel > iframe {
    width: 100%;
    border-left: none;
}

html.phone .topbar-center {
    gap: 8px;
}

html.phone .topbar-right {
    right: calc((var(--sidebar-width) - 44px) / 2);
}

html.phone .topbar-btn,
html.phone #profile-ring {
    width: 44px;
    height: 44px;
}

html.phone .notifications-box {
    position: fixed;
    top: var(--topbar-height);
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    transform: none;
}

html.phone .notifications-box.active {
    transform: none;
}

html.phone .notifications-box .hover-box-arrow {
    display: none;
}

html.phone #phone-sheet.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 50%;
    z-index: 9999;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    animation: sheet-up 150ms cubic-bezier(0.37, 0, 0.63, 1);
}

html.phone #phone-sheet.open.expanded {
    max-height: 100%;
}

.phone-sheet-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.phone-sheet-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-overlay);
    overflow: hidden;
    flex-shrink: 0;
}

.phone-sheet-avatar img,
.phone-sheet-avatar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-sheet-meta {
    flex: 1;
    min-width: 0;
}

.phone-sheet-name {
    font-weight: 600;
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
}

.phone-sheet-text {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.phone-sheet-rows {
    overflow-y: auto;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}

.phone-sheet-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
}

.phone-sheet-row:active {
    background: var(--bg-hover);
}

.phone-sheet-row.danger {
    color: var(--danger-text);
}

.phone-sheet-row {
    gap: 16px;
}

.phone-sheet-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: var(--icon-filter);
}

#tray-top-dim {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
}

#tray-top-dim.show {
    display: block;
}

.modal-container.capture-picker {
    width: min(860px, 92vw);
    max-height: 80vh;
}

.capture-tabs {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.capture-tab {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.capture-tab.active {
    color: var(--accent-primary);
}

.capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    overflow-y: auto;
    min-height: 0;
}

.capture-tile[hidden] {
    display: none;
}

.capture-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

@media (hover: hover) {
    .capture-tile:hover {
        border-color: var(--accent-active);
        background: var(--bg-hover);
    }
}

.capture-tile img,
.capture-blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
}

.capture-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.capture-tile.monitor .capture-name {
    font-weight: 700;
}
