@font-face {
    font-family: 'Departure Mono';
    src: url('fonts/DepartureMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body.capture-shell-2026 {
    /* Derive the 2026 shell from the shared theme token set instead of
       redefining it on body, so legacy/custom themes continue to apply. */
    --capture-bg: var(--bg-primary, var(--bg-color));
    --capture-surface: var(--bg-secondary, var(--fieldset-bg, var(--bg-color)));
    --capture-panel: var(--bg-tertiary, var(--tab-bg, var(--fieldset-bg, var(--bg-color))));
    --capture-panel-strong: var(--tab-hover-bg, color-mix(in srgb, var(--capture-panel) 84%, var(--capture-bg)));
    --capture-line: var(--border-color);
    --capture-base: var(--text-color);
    --capture-faded: var(--text-muted, var(--text-light, var(--status-text-color, var(--secondary-color))));
    --font-family: system-ui, -apple-system, 'SF Pro Display', sans-serif;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: var(--shell-bg, var(--capture-bg));
    color: var(--capture-base);
}

body.capture-shell-2026 ::selection {
    background: var(--selection-color, rgba(229, 230, 234, 0.14));
}

body.capture-shell-2026 *:focus,
body.capture-shell-2026 *:focus-visible {
    outline: none;
    box-shadow: none;
}

body.capture-shell-2026 .app-header-bar {
    width: 68px;
    min-width: 68px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-right: 1px solid var(--capture-line);
    background: var(--header-bg, var(--capture-bg));
    box-shadow: none;
}

body.capture-shell-2026 .app-brand-mark {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    border: 1px solid var(--capture-faded);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

body.capture-shell-2026 .app-logo {
    width: 56px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-align: center;
}

body.capture-shell-2026 .app-logo-wordmark {
    display: block;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

body.capture-shell-2026 .app-logo-lockup {
    margin-top: 4px;
    color: var(--capture-faded);
    font-size: 8px;
}

body.capture-shell-2026 .app-header-bar .server-icon-strip {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
    gap: 16px;
    border-right: none;
    box-shadow: none;
}

body.capture-shell-2026 .app-layout {
    flex: 1;
    min-width: 0;
    height: 100vh;
    background: var(--capture-bg);
}

body.capture-shell-2026 #serverSidebar {
    width: 0;
    min-width: 0;
    background: var(--sidebar-panel-bg, var(--capture-bg));
    border-right: none;
}

body.capture-shell-2026 #serverSidebar.expanded {
    width: 264px;
    min-width: 264px;
    border-right: 1px solid var(--capture-line);
}

body.capture-shell-2026 .server-icon-strip {
    width: 56px;
    min-width: 56px;
    padding: 16px 10px;
    gap: 12px;
    background: transparent;
    border-right: none;
    box-shadow: none;
}

body.capture-shell-2026 .server-icon-item,
body.capture-shell-2026 .server-add-btn,
body.capture-shell-2026 .server-channel-manage-btn,
body.capture-shell-2026 .server-gear-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid var(--capture-faded);
    background: transparent;
    color: var(--capture-faded);
    box-shadow: none;
    font-family: 'Departure Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50% !important;
    overflow: hidden;
}

body.capture-shell-2026 .server-icon-letter {
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

body.capture-shell-2026 .server-icon-item:hover,
body.capture-shell-2026 .server-add-btn:hover,
body.capture-shell-2026 .server-channel-manage-btn:hover,
body.capture-shell-2026 .server-gear-btn:hover,
body.capture-shell-2026 .server-icon-item.selected {
    transform: none;
    background: var(--capture-panel);
    border-color: var(--capture-base);
    color: var(--capture-base);
}

body.capture-shell-2026 .server-icon-item.selected {
    box-shadow: none;
}

body.capture-shell-2026 .server-status-dot {
    border: 1px solid var(--capture-bg);
}

body.capture-shell-2026 .server-gear-btn {
    margin-top: auto;
    border: none;
}

body.capture-shell-2026 .server-sidebar-expanded {
    flex: 1;
    min-width: 0;
    background: var(--sidebar-panel-bg, var(--capture-bg));
    padding: 0;
}

body.capture-shell-2026 .expanded-server-header {
    margin: 0;
    padding: 12px;
    border-bottom: 1px solid var(--capture-line);
    background: var(--capture-panel);
    font-family: 'Departure Mono', monospace;
    text-transform: uppercase;
}

body.capture-shell-2026 .expanded-server-name {
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
}

body.capture-shell-2026 .expanded-server-host,
body.capture-shell-2026 .expanded-server-status,
body.capture-shell-2026 #sidebarAuthArea .auth-links a,
body.capture-shell-2026 .expanded-auth-area .auth-links a {
    color: var(--capture-faded);
}

body.capture-shell-2026 .expanded-server-status,
body.capture-shell-2026 .server-reconnect-btn,
body.capture-shell-2026 .server-disconnect-btn,
body.capture-shell-2026 .server-edit-btn,
body.capture-shell-2026 .expanded-auth-area #btn_logout {
    border-radius: 0;
    font-family: 'Departure Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.capture-shell-2026 .expanded-server-status {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 8px 10px;
    background: var(--capture-panel);
}

body.capture-shell-2026 #sidebarAuthArea,
body.capture-shell-2026 .expanded-auth-area {
    padding: 12px;
}

body.capture-shell-2026 #sidebarAuthArea .input-group label,
body.capture-shell-2026 .expanded-auth-area .auth-form label {
    font-family: 'Departure Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--capture-faded);
}

body.capture-shell-2026 #sidebarAuthArea input[type="text"],
body.capture-shell-2026 #sidebarAuthArea input[type="email"],
body.capture-shell-2026 #sidebarAuthArea input[type="password"],
body.capture-shell-2026 #sidebarAuthArea input[type="number"],
body.capture-shell-2026 .expanded-auth-area .auth-form input,
body.capture-shell-2026 .add-server-form .input-group input {
    background: var(--capture-panel);
    border-color: var(--capture-line);
    color: var(--capture-base);
}

body.capture-shell-2026 #mainContent {
    background: var(--chat-panel-bg, var(--capture-bg));
}

body.capture-shell-2026 #chatView #chatTab {
    background: transparent;
}

body.capture-shell-2026 .chat-content-columns {
    border-top: none;
    background: var(--chat-panel-bg, var(--capture-bg));
}

body.capture-shell-2026 .chat-sidebar {
    width: 320px;
    min-width: 320px;
    flex: 0 0 320px;
    background: var(--sidebar-panel-bg, var(--capture-bg));
    border-right: 1px solid var(--capture-line);
}

body.capture-shell-2026 .channel-sidebar-title {
    height: 36px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    background: var(--capture-line);
    border-bottom: 1px solid var(--capture-line);
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.capture-shell-2026 .sidebar-header {
    min-height: 36px;
    padding: 0 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    background: var(--capture-panel);
    border-bottom: 1px solid var(--capture-line);
}

body.capture-shell-2026 .sidebar-header h3 {
    display: none;
    margin: 0;
    height: 36px;
    align-items: center;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.capture-shell-2026 .sidebar-header::before {
    content: none;
    display: none;
}

body.capture-shell-2026 .sidebar-header .room-action-btn.small {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--capture-faded);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.capture-shell-2026 .pixel-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

body.capture-shell-2026 .sidebar-header .room-action-btn.small:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
}

body.capture-shell-2026 .sidebar-header #btn_shareScreen.sharing {
    color: color-mix(in srgb, var(--capture-base) 84%, white 16%);
}

body.capture-shell-2026 .sidebar-header #btn_shareScreen.sharing:hover {
    background: var(--capture-panel);
    color: color-mix(in srgb, var(--capture-base) 92%, white 8%);
}

body.capture-shell-2026 .sidebar-header .room-action-btn.small.has-label .status-text,
body.capture-shell-2026 .screen-share-watcher-summary {
    display: none;
}

body.capture-shell-2026 .rooms-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

body.capture-shell-2026 .rooms-list-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
}

body.capture-shell-2026 .capture-room-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.capture-shell-2026 .capture-room-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 2px;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.capture-shell-2026 .capture-room-heading-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

body.capture-shell-2026 .capture-room-heading-svg {
    width: 12px;
    height: 12px;
    display: block;
    fill: currentColor;
}

body.capture-shell-2026 .capture-room-heading h3 {
    margin: 0;
    color: inherit;
    font: inherit;
}

body.capture-shell-2026 .capture-room-heading-label {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

body.capture-shell-2026 .room-tabs {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: visible;
}

body.capture-shell-2026 .room-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.capture-shell-2026 .room-tabs ul ul {
    margin-top: 3px;
}

body.capture-shell-2026 .room-tabs li {
    margin: 0;
}

body.capture-shell-2026 .room-tabs ul ul li {
    margin-bottom: 4px;
}

body.capture-shell-2026 .room-row {
    gap: 0;
    width: 100%;
    min-width: 0;
}

body.capture-shell-2026 .room-tabs button[data-room-id] {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0 18px;
    border: none;
    border-left: 1px solid var(--capture-faded);
    background: transparent;
    color: var(--capture-base);
    border-radius: 0;
    box-shadow: none;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    justify-content: flex-start;
    transition: none;
    -webkit-user-select: none;
    user-select: none;
}

body.capture-shell-2026 .room-tabs button[data-room-id]:hover,
body.capture-shell-2026 .room-tabs button[data-room-id].active,
body.capture-shell-2026 .room-row.active-voice-room button[data-room-id] {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    background: var(--capture-panel);
    color: var(--capture-base);
    border: none;
    border-left: 1px solid var(--capture-base);
    background-image: none;
}

body.capture-shell-2026 .room-tabs .room-info {
    gap: 0;
}

body.capture-shell-2026 .room-tabs .room-icon,
body.capture-shell-2026 .room-tabs .room-name-short {
    display: none;
}

body.capture-shell-2026 .room-tabs .room-name {
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.capture-shell-2026 .room-peer-item {
    min-height: 36px;
    padding: 0 18px;
}

body.capture-shell-2026 .room-peer-identity {
    min-width: 0;
}

body.capture-shell-2026 .room-peer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.capture-shell-2026 .mute-button,
body.capture-shell-2026 .watch-share-button,
body.capture-shell-2026 .watch-webcam-button {
    color: var(--capture-faded);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

body.capture-shell-2026 .mute-button:hover,
body.capture-shell-2026 .watch-share-button:hover,
body.capture-shell-2026 .watch-webcam-button:hover {
    color: var(--capture-base);
}

body.capture-shell-2026 .dm-item,
body.capture-shell-2026 .dm-item .dm-open,
body.capture-shell-2026 .user-list-item,
body.capture-shell-2026 .user-list-name {
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

body.capture-shell-2026 .room-tabs .peer-count,
body.capture-shell-2026 .unread-badge {
    background: transparent !important;
    color: var(--capture-faded) !important;
    font-family: 'Departure Mono', monospace;
    font-size: 10px !important;
    letter-spacing: 0.04em;
}

body.capture-shell-2026 .room-leave-button {
    width: 40px;
    min-width: 40px;
    border: none;
    background: transparent;
    color: var(--capture-faded);
}

body.capture-shell-2026 .room-leave-button:hover,
body.capture-shell-2026 .room-row.active-voice-room .room-leave-button,
body.capture-shell-2026 .room-row.active-voice-room .room-leave-button:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
    border: none;
}

body.capture-shell-2026 .room-leave-icon {
    width: 22px;
    height: 22px;
}

body.capture-shell-2026 .dm-section,
body.capture-shell-2026 .user-list-section {
    border-top-color: var(--capture-line);
}

body.capture-shell-2026 .dm-section {
    margin-top: auto;
    padding: 16px;
    background: var(--sidebar-panel-bg, var(--capture-bg));
    gap: 8px;
    overflow: hidden;
}

body.capture-shell-2026 .dm-section.dm-section-expanded {
    height: min(90vh, calc(100% - 16px));
}

body.capture-shell-2026 .dm-header {
    padding: 0;
    cursor: pointer;
}

body.capture-shell-2026 .dm-section-content {
    flex: 1 1 auto;
    gap: 8px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.capture-shell-2026 .dm-header h3,
body.capture-shell-2026 .user-list-header h3 {
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.capture-shell-2026 .user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

body.capture-shell-2026 .dm-section-toggle {
    width: 24px;
    height: 24px;
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--capture-faded);
}

body.capture-shell-2026 .dm-section-toggle:hover {
    background: transparent;
    color: var(--capture-base);
}

body.capture-shell-2026 .dm-section-toggle .pixel-icon {
    width: 12px;
    height: 12px;
}

body.capture-shell-2026 .dm-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.capture-shell-2026 .dm-group-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.capture-shell-2026 .dm-create-group-btn,
body.capture-shell-2026 .dm-group-submit,
body.capture-shell-2026 .dm-group-cancel,
body.capture-shell-2026 .dm-group-member-chip {
    border: 1px solid var(--capture-faded);
    border-radius: 0;
    background: transparent;
    color: var(--capture-faded);
    font-family: system-ui, sans-serif;
}

body.capture-shell-2026 .dm-create-group-btn:hover,
body.capture-shell-2026 .dm-group-submit:hover,
body.capture-shell-2026 .dm-group-cancel:hover,
body.capture-shell-2026 .dm-group-member-chip:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-color: var(--capture-base);
}

body.capture-shell-2026 .dm-item {
    display: flex;
    align-items: stretch;
    min-height: 36px;
    padding: 0;
    gap: 0;
}

body.capture-shell-2026 .user-list-item {
    min-height: 36px;
    padding: 0 18px;
    border-left: 1px solid var(--capture-faded);
    border-radius: 0;
    background: transparent;
    color: var(--capture-base);
    gap: 8px;
    transition: none;
}

body.capture-shell-2026 .user-list-item:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-left-color: var(--capture-base);
}

body.capture-shell-2026 .user-list-avatar {
    width: 18px;
    height: 18px;
    border-color: var(--capture-faded);
    color: var(--capture-base);
    font-size: 9px;
}

body.capture-shell-2026 .user-call-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    margin-right: -18px;
    padding: 0;
    border: none;
    border-left: 1px solid var(--capture-faded);
    border-radius: 0;
    background: transparent;
    color: var(--capture-faded);
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

body.capture-shell-2026 .user-list-item:hover .user-call-btn,
body.capture-shell-2026 .user-call-btn:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-left-color: var(--capture-base);
}

body.capture-shell-2026 .dm-item .dm-open {
    width: 100%;
    min-height: 36px;
    padding: 0 18px;
    border: none;
    border-left: 1px solid var(--capture-faded);
    background: transparent;
    color: var(--capture-base);
    justify-content: flex-start;
    gap: 8px;
    box-shadow: none;
}

body.capture-shell-2026 .dm-item:hover,
body.capture-shell-2026 .dm-item.active {
    background: transparent;
    color: inherit;
}

body.capture-shell-2026 .dm-item:hover .dm-open,
body.capture-shell-2026 .dm-item.active .dm-open {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-left-color: var(--capture-base);
}

body.capture-shell-2026 .dm-avatar {
    width: 18px;
    height: 18px;
    border-color: var(--capture-faded);
    color: var(--capture-base);
    font-size: 9px;
}

body.capture-shell-2026 .dm-item .dm-open .dm-name {
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

body.capture-shell-2026 .dm-meta {
    margin-left: auto;
    background: transparent;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
}

body.capture-shell-2026 .dm-unread-badge {
    min-width: 0;
    margin-left: auto;
    padding: 0;
    background: transparent;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
}

body.capture-shell-2026 .dm-item:hover .dm-unread-badge,
body.capture-shell-2026 .dm-item.active .dm-unread-badge {
    background: transparent;
    color: var(--capture-base);
}

body.capture-shell-2026 .dm-call-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: none;
    border-left: 1px solid var(--capture-faded);
    border-radius: 0;
    background: transparent;
    color: var(--capture-faded);
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

body.capture-shell-2026 .dm-item:hover .dm-call-btn,
body.capture-shell-2026 .dm-item.active .dm-call-btn,
body.capture-shell-2026 .dm-call-btn:hover {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-left-color: var(--capture-base);
}

body.capture-shell-2026 .dm-call-btn:disabled,
body.capture-shell-2026 .dm-item:hover .dm-call-btn:disabled {
    opacity: 0.35;
    background: transparent;
    color: var(--capture-faded);
    border-left-color: var(--capture-faded);
}

body.capture-shell-2026 #dmUserSearch {
    width: 100%;
    height: 36px;
    border: none;
    background: var(--capture-panel);
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 10px;
}

body.capture-shell-2026 #dmUserSearch::placeholder,
body.capture-shell-2026 #messageSearch::placeholder,
body.capture-shell-2026 .message-editor .overtype-input::placeholder {
    color: var(--capture-faded);
    text-transform: uppercase;
}

body.capture-shell-2026 .chat-main {
    background: var(--chat-panel-bg, var(--capture-bg));
}

body.capture-shell-2026 .chat-main-header,
body.capture-shell-2026 #chatHeader {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--capture-panel);
    border-bottom: 1px solid var(--capture-line);
}

body.capture-shell-2026 .chat-main-header {
    padding: 0 12px;
    justify-content: flex-start;
}

body.capture-shell-2026 #chatHeader {
    flex: 1;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
    border: none;
    background: transparent;
}

body.capture-shell-2026 .chat-main-header .content-subtabs {
    padding: 0;
    gap: 0;
    flex: 0 0 auto;
    height: 100%;
    align-items: center;
}

body.capture-shell-2026 .chat-main-header .subtab-button {
    padding: 0;
    height: 36px;
    min-height: 36px;
    border: none;
    background: transparent;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: none;
}

body.capture-shell-2026 .chat-main-header .subtab-button:hover,
body.capture-shell-2026 .chat-main-header .subtab-button.active {
    background: transparent;
    border: none;
    color: var(--capture-base);
    background-image: none;
    box-shadow: none;
}

body.capture-shell-2026 .chat-main-header .subtab-button i {
    display: none;
}

body.capture-shell-2026 .chat-main-header .subtab-button .subtab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

body.capture-shell-2026 .chat-main-header .subtab-button .subtab-label {
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

body.capture-shell-2026 .content-header-separator,
body.capture-shell-2026 #chatHeader h3 {
    margin: 0;
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.capture-shell-2026 .content-header-separator {
    color: var(--capture-faded);
    line-height: 1;
}

body.capture-shell-2026 .content-header-separator-title {
    margin: 0;
}

body.capture-shell-2026 #chatHeader h3 {
    min-width: 0;
    line-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.capture-shell-2026 .chat-header-controls {
    margin-left: auto;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    flex: 0 0 auto;
}

body.capture-shell-2026 .search-container {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}

body.capture-shell-2026 .clear-search-btn,
body.capture-shell-2026 #btn_loadOlder {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.capture-shell-2026 .clear-search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    padding: 0;
    background: var(--capture-line);
}

body.capture-shell-2026 .clear-search-btn:hover,
body.capture-shell-2026 #btn_loadOlder:hover {
    background: var(--capture-panel-strong);
    color: var(--capture-base);
}

body.capture-shell-2026 .search-option {
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
}

body.capture-shell-2026 #messageSearch {
    width: 300px;
    height: 100%;
    padding: 4px 8px;
    border: none;
    border-radius: 0;
    background-color: var(--capture-line);
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
}

body.capture-shell-2026 #chatHeader .channel-info {
    height: 100%;
    display: flex;
    align-items: stretch;
}

body.capture-shell-2026 #btn_loadOlder {
    border-left: 1px solid var(--capture-line);
}

body.capture-shell-2026 .search-option input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid var(--capture-faded);
    background: transparent;
}

body.capture-shell-2026 .search-option input[type="checkbox"]:checked {
    background: var(--capture-base);
    box-shadow: inset 0 0 0 3px var(--capture-bg);
}

body.capture-shell-2026 #remoteStreamsSubtab,
body.capture-shell-2026 #textChatSubtab {
    background: var(--capture-bg);
}

body.capture-shell-2026 #remoteStreamsSubtab {
    padding: 0;
}

body.capture-shell-2026 #remoteStreamsSubtab .remote-video-area {
    padding: 16px;
}

body.capture-shell-2026 #remoteStreamsContainer {
    border: 1px solid var(--capture-line);
    background: var(--video-bg);
}

body.capture-shell-2026 .empty-state,
body.capture-shell-2026 #noChannelSelected {
    background: transparent;
    color: var(--capture-faded);
}

body.capture-shell-2026 #remoteStreamsEmpty {
    border: 1px dashed var(--capture-line);
    background: var(--capture-panel-strong);
}

body.capture-shell-2026 .empty-state-title,
body.capture-shell-2026 .empty-state-description,
body.capture-shell-2026 #noChannelSelected p {
    font-family: 'Departure Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.capture-shell-2026 .messages-container {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--messages-bg, var(--capture-bg));
}

body.capture-shell-2026 .messages-list {
    gap: 8px;
}

body.capture-shell-2026 .message-item {
    max-width: 1200px;
    padding: 8px;
}

body.capture-shell-2026 .message-item:hover {
    background: var(--accent-weak-bg, var(--capture-panel));
}

body.capture-shell-2026 .message-avatar,
body.capture-shell-2026 .inline-user-avatar {
    border: 1px solid var(--capture-faded);
    border-radius: 50% !important;
    background: transparent;
    background-image: none;
    color: var(--capture-base);
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
}

body.capture-shell-2026 .message-avatar {
    width: 24px;
    height: 24px;
}

body.capture-shell-2026 .inline-user-avatar {
    width: 24px;
    height: 24px;
}

body.capture-shell-2026 .message-item.own-message .message-content {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.capture-shell-2026 .message-header {
    align-items: center;
    gap: 10px;
}

body.capture-shell-2026 .message-author {
    font-weight: 600;
    color: var(--capture-base);
}

body.capture-shell-2026 .message-time {
    font-size: 13px;
    color: var(--capture-faded);
}

body.capture-shell-2026 .message-text {
    padding-left: 0;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--capture-base);
}

body.capture-shell-2026 .reply-btn,
body.capture-shell-2026 .add-reaction-btn {
    color: var(--capture-faded);
}

body.capture-shell-2026 .reply-btn .pixel-icon,
body.capture-shell-2026 .add-reaction-btn .pixel-icon {
    width: 16px;
    height: 16px;
}

body.capture-shell-2026 .reply-btn:hover,
body.capture-shell-2026 .add-reaction-btn:hover {
    background: transparent;
    color: var(--capture-base);
}

body.capture-shell-2026 .reaction {
    color: var(--capture-faded);
}

body.capture-shell-2026 .reaction:hover,
body.capture-shell-2026 .reaction.aggregated.user-reacted,
body.capture-shell-2026 .reaction.aggregated.user-reacted:hover {
    color: var(--capture-base);
}

body.capture-shell-2026 .messages-top-loader,
body.capture-shell-2026 .new-messages-indicator {
    align-self: center;
    padding: 8px 12px;
    border: 1px solid var(--capture-line);
    background: var(--capture-panel);
    color: var(--capture-faded);
    box-shadow: none;
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.capture-shell-2026 .message-input-container {
    padding: 0;
    border-top: 1px solid var(--capture-line);
    background: var(--capture-bg);
}

body.capture-shell-2026 .typing-indicator {
    height: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid var(--capture-line);
    color: var(--capture-faded);
    font-family: 'Departure Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.capture-shell-2026 .typing-dots .dot {
    border-radius: 0;
    background-color: var(--capture-faded);
}

body.capture-shell-2026 .message-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    border: none;
    background-image: none;
    box-shadow: none;
    transition: none;
}

body.capture-shell-2026 .message-input-wrapper:focus-within {
    border-color: transparent;
    background-image: none;
    box-shadow: none;
}

body.capture-shell-2026 #btn_sendMessage {
    position: static;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--capture-base);
    cursor: pointer;
}

body.capture-shell-2026 #btn_sendMessage:hover {
    background: var(--capture-panel-strong);
}

body.capture-shell-2026 .message-editor {
    flex: 1 1 auto;
    min-width: 0;
}

body.capture-shell-2026 .message-editor .overtype-container {
    border: none !important;
    background: transparent !important;
}

body.capture-shell-2026 .message-editor .overtype-wrapper {
    min-height: 0 !important;
    max-height: 240px !important;
    background: var(--capture-panel) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body.capture-shell-2026 .message-editor .overtype-toolbar {
    min-height: 36px;
    border-bottom: 1px solid var(--capture-line) !important;
    background: var(--capture-line) !important;
    padding: 0 6px !important;
    display: flex !important;
    align-items: center !important;
}

body.capture-shell-2026 .message-editor .overtype-toolbar-button,
body.capture-shell-2026 .message-editor .overtype-toolbar button {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    background: transparent !important;
    color: var(--capture-faded) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

body.capture-shell-2026 .message-editor .overtype-toolbar button svg,
body.capture-shell-2026 .message-editor .overtype-toolbar-button svg {
    width: 24px;
    height: 24px;
}

body.capture-shell-2026 .message-editor .overtype-toolbar-button:hover,
body.capture-shell-2026 .message-editor .overtype-toolbar button:hover,
body.capture-shell-2026 .message-editor .overtype-toolbar-button.active {
    background: var(--capture-panel-strong) !important;
    color: var(--capture-base) !important;
}

body.capture-shell-2026 .message-editor .overtype-toolbar-separator {
    height: 20px;
    margin: 8px 2px;
    background: var(--capture-faded);
    opacity: 0.3;
}

body.capture-shell-2026 .message-editor .overtype-input,
body.capture-shell-2026 .message-editor .overtype-preview {
    min-height: 80px !important;
    background: var(--capture-panel) !important;
    color: var(--capture-base) !important;
    padding: 8px 12px !important;
    font-size: 14px;
    line-height: 1.5;
}

body.capture-shell-2026 #attachmentPreview {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--capture-line);
    background: var(--capture-panel-strong);
}

body.capture-shell-2026 .emoji-picker {
    border: 1px solid var(--capture-line);
    background: var(--capture-panel-strong);
    box-shadow: none;
}

body.capture-shell-2026 .emoji-search input,
body.capture-shell-2026 .emoji-category-btn {
    background: var(--capture-panel);
    color: var(--capture-base);
    border-color: var(--capture-line);
}

body.capture-shell-2026 #settingsPanel,
body.capture-shell-2026 .modal-content,
body.capture-shell-2026 .screenshare-modal-content {
    background: var(--capture-bg);
    border-color: var(--capture-line);
}

body.capture-shell-2026 .settings-panel-header,
body.capture-shell-2026 .modal-header,
body.capture-shell-2026 .screenshare-modal-header {
    background: var(--capture-panel);
}

body.capture-shell-2026 .settings-panel-header h2,
body.capture-shell-2026 .modal-header h3,
body.capture-shell-2026 .screenshare-modal-header h3 {
    font-family: 'Departure Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    body.capture-shell-2026 .chat-sidebar {
        width: 280px;
        min-width: 280px;
        flex-basis: 280px;
    }

    body.capture-shell-2026 #serverSidebar.expanded {
        width: 224px;
        min-width: 224px;
    }
}

@media (max-width: 960px) {
    body.capture-shell-2026 .app-header-bar {
        width: 68px;
        min-width: 68px;
    }

    body.capture-shell-2026 .app-logo-lockup {
        display: none;
    }

    body.capture-shell-2026 .chat-main-header {
        padding: 0 8px;
        gap: 8px;
    }

    body.capture-shell-2026 .chat-main-header .subtab-button,
    body.capture-shell-2026 .chat-main-header .content-header-separator,
    body.capture-shell-2026 #chatHeader h3 {
        font-size: 14px;
    }

    body.capture-shell-2026 .content-header-separator-title {
        margin: 0 8px;
    }

    body.capture-shell-2026 .chat-sidebar {
        width: 72px;
        min-width: 72px;
        flex-basis: 72px;
    }

    body.capture-shell-2026 .channel-sidebar-title,
    body.capture-shell-2026 .sidebar-header::before,
    body.capture-shell-2026 .capture-room-heading,
    body.capture-shell-2026 .dm-section {
        display: none;
    }

    body.capture-shell-2026 .room-tabs .room-row.active-voice-room + ul {
        display: block;
        margin-top: 4px;
        padding-left: 0;
        border-left: none;
        overflow: visible;
    }

    body.capture-shell-2026 .room-tabs .room-row.active-voice-room + ul .room-peer-item {
        display: flex;
        min-height: 28px;
        padding-left: 0;
        justify-content: center;
    }

    body.capture-shell-2026 .room-tabs .room-row.active-voice-room + ul .room-peer-item:not(:has(.room-peer-actions)) {
        display: none;
    }

    body.capture-shell-2026 .room-tabs .room-row.active-voice-room + ul .room-peer-identity {
        display: none;
    }

    body.capture-shell-2026 .room-tabs .room-row.active-voice-room + ul .room-peer-actions {
        margin-left: 0;
        gap: 4px;
    }
}
