:root {
    --bg-darkest: #0d0e11;
    --bg-darker: #15161c;
    --bg-card: #1f212a;
    --bg-card-hover: #262a36;
    --text-primary: #f1f3f9;
    --text-secondary: #a0a5b5;
    --text-muted: #696c7a;
    --color-accent: #00b0ff;
    --color-accent-dim: rgba(0, 176, 255, 0.15);
    --color-border: #2d313f;
    --color-error: #ff5252;
    --color-success: #00e676;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}
input,
textarea,
[contenteditable],
[contenteditable="true"],
.note-header,
.note-details,
.group-title-label,
.group-header-label,
.framework-name,
.framework-desc,
.framework-tag-btn,
.editing,
.note-card-edit {
    caret-color: var(--color-accent, #00b0ff) !important;
}
body.theme-paper input,
body.theme-paper textarea,
body.theme-paper [contenteditable],
body.theme-paper [contenteditable="true"],
body.theme-paper .note-header,
body.theme-paper .note-details,
body.theme-paper .group-title-label,
body.theme-paper .group-header-label,
body.theme-paper .framework-name,
body.theme-paper .framework-desc,
body.theme-paper .framework-tag-btn,
body.theme-paper .editing,
body.theme-paper .note-card-edit {
    caret-color: #5a4a38 !important;
}
body.theme-whiteboard input,
body.theme-whiteboard textarea,
body.theme-whiteboard [contenteditable],
body.theme-whiteboard [contenteditable="true"],
body.theme-whiteboard .note-header,
body.theme-whiteboard .note-details,
body.theme-whiteboard .group-title-label,
body.theme-whiteboard .group-header-label,
body.theme-whiteboard .framework-name,
body.theme-whiteboard .framework-desc,
body.theme-whiteboard .framework-tag-btn,
body.theme-whiteboard .editing,
body.theme-whiteboard .note-card-edit {
    caret-color: #ca8a04 !important;
}
body.theme-system input,
body.theme-system textarea,
body.theme-system [contenteditable],
body.theme-system [contenteditable="true"],
body.theme-system .note-header,
body.theme-system .note-details,
body.theme-system .group-title-label,
body.theme-system .group-header-label,
body.theme-system .framework-name,
body.theme-system .framework-desc,
body.theme-system .framework-tag-btn,
body.theme-system .editing,
body.theme-system .note-card-edit {
    caret-color: #007acc !important;
}
#custom-editing-caret {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    width: 3.5px;
    background-color: var(--color-accent, #00b0ff);
    box-shadow: 0 0 6px rgba(0, 176, 255, 0.85);
    border-radius: 2px;
    animation: custom-caret-blink 0.9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: none;
}
@keyframes custom-caret-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
body {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}
.glass-panel {
    background: rgba(21, 22, 28, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.logo-text {
    display: inline-block;
    vertical-align: middle;
}
.logo-text img {
    height: 24px;
    width: auto;
    display: block;
}
.dashboard-header .logo-text img {
    height: 42px;
}
.workspace-header .logo-text img {
    height: 42px;
}
.login-container .logo-text {
    display: block;
    width: 100%;
}
.login-container .logo-text img {
    width: 100%;
    height: auto;
}
.logo-text.clickable {
    cursor: pointer;
    transition: transform 0.2s;
}
.logo-text.clickable:hover {
    transform: scale(1.02);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid var(--color-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.45);
}
.primary-btn {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.85) 0%, rgba(0, 145, 234, 0.95) 100%);
    border: 1.5px solid #00b0ff !important;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.35);
}
.primary-btn:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.95) 0%, rgba(0, 145, 234, 1) 100%);
    border-color: #80d8ff !important;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.55);
}
.secondary-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid var(--color-border) !important;
    color: var(--text-primary);
}
.secondary-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: var(--color-accent) !important;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.35);
}
.accent-btn {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    color: var(--color-accent);
    border: 1.5px solid rgba(0, 176, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.2);
}
.accent-btn:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.35) 0%, rgba(25, 26, 35, 0.95) 100%);
    color: #ffffff;
    border-color: #80d8ff !important;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.45);
}
.small-btn {
    padding: 6px 12px;
    font-size: 12px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.input-group input, .input-group select {
    background-color: var(--bg-darkest);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-dim);
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 20px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}
.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }
.screen {
    display: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}
.screen.active {
    display: flex;
    flex-direction: column;
}
#login-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1b2030 0%, var(--bg-darkest) 70%);
}
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    text-align: center;
    border-radius: 14px;
    border: 1.5px solid #00b0ff;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    box-shadow: 0 6px 24px rgba(0, 176, 255, 0.35);
}
.login-container .logo-text {
    margin-bottom: 8px;
}
.login-container .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}
.login-box {
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 17, 26, 0.92) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.login-box h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--color-accent);
}
.login-box .help-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
    border-color: #80d8ff;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.45);
}
.google-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.9) 100%);
    color: #1f1f1f;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}
.google-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}
.github-btn {
    background: linear-gradient(135deg, rgba(36, 41, 46, 0.95) 0%, rgba(20, 23, 26, 0.95) 100%);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.github-btn:hover {
    background: linear-gradient(135deg, rgba(47, 54, 61, 0.95) 0%, rgba(30, 35, 40, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}
.dashboard-header {
    height: 70px;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.badge {
    background-color: var(--color-accent-dim);
    color: var(--color-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(0, 176, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.badge:hover {
    transform: scale(1.05);
    background-color: rgba(0, 176, 255, 0.25);
    box-shadow: 0 0 8px rgba(0, 176, 255, 0.4);
}
.ai-token-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
}
.ai-input-tokens {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(101, 31, 255, 0.25) 100%);
    color: #b388ff;
    border: 1px solid rgba(179, 136, 255, 0.3);
}
.ai-input-tokens:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.25) 0%, rgba(101, 31, 255, 0.35) 100%);
    border-color: rgba(179, 136, 255, 0.5);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
}
.ai-output-tokens {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.15) 0%, rgba(0, 145, 234, 0.25) 100%);
    color: #80d8ff;
    border: 1px solid rgba(128, 216, 255, 0.3);
}
.ai-output-tokens:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.25) 0%, rgba(0, 145, 234, 0.35) 100%);
    border-color: rgba(128, 216, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.3);
}
.dashboard-content {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px;
    overflow-y: auto;
}
.dashboard-content.billing-hidden {
    grid-template-columns: 1fr;
}
.dashboard-content.billing-hidden .billing-section {
    display: none;
}
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.boards-section {
    padding: 30px;
    min-height: 500px;
}
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.board-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}
.board-card-wrapper.end-wrapper {
    min-height: 180px;
    width: 20px;
}
.board-insertion-line {
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 10;
}
.board-card-wrapper.drag-over .board-insertion-line {
    opacity: 1;
}
.board-card-wrapper.end-wrapper .board-insertion-line {
    left: 0;
}
.board-card {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid #00b0ff;
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    height: auto;
    flex: 1;
}
.board-card:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.32) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #80d8ff;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.45);
    transform: translateY(-2px);
}
.board-card.system-board-card {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid #7c4dff !important;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.25);
}
.board-card.system-board-card:hover {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.32) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #b388ff !important;
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.45);
}
.board-card.system-board-card.recycle-board-card {
    background: linear-gradient(135deg, rgba(168, 35, 106, 0.28) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid #db2777 !important;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.25);
}
.board-card.system-board-card.recycle-board-card:hover {
    background: linear-gradient(135deg, rgba(168, 35, 106, 0.38) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #f472b6 !important;
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.45);
}
.board-card.selected,
.board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #00d2ff !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.4), 0 0 32px rgba(0, 210, 255, 0.95), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}
.board-card.system-board-card.selected,
.board-card.system-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #b388ff !important;
    box-shadow: 0 0 0 4px rgba(179, 136, 255, 0.45), 0 0 32px rgba(124, 77, 255, 0.95), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}
.board-card.system-board-card.recycle-board-card.selected,
.board-card.system-board-card.recycle-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #f472b6 !important;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.45), 0 0 32px rgba(219, 39, 119, 0.95), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}
.system-board-badge {
    background-color: #7c4dff;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    margin-left: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 6px rgba(124, 77, 255, 0.6);
}
.system-board-badge.recycle-badge {
    background-color: #db2777;
    box-shadow: 0 0 6px rgba(219, 39, 119, 0.6);
}
.system-board-badge.shared-badge {
    background-color: #059669;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.board-card.shared-board-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%) !important;
    border: 1.5px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}
.board-card.shared-board-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(25, 26, 35, 0.95) 100%) !important;
    border-color: #34d399 !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
.board-card.shared-board-card.selected,
.board-card.shared-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #34d399 !important;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.45), 0 0 32px rgba(16, 185, 129, 0.95), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}
.board-card-tag.shared-owner-tag {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    font-weight: 600;
}
.bottom-board-pill.shared-pill {
    border-bottom: 2px solid #10b981;
}
.board-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.board-card-header h3, .board-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    word-break: break-word;
    outline: none;
    border-radius: 4px;
    padding: 1px 3px;
    margin: -1px -3px;
    transition: background-color 0.15s;
    user-select: none;
    -webkit-user-select: none;
}
.board-card-title[contenteditable="true"] {
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}
.board-card-title[contenteditable="true"]:hover {
    background: rgba(255, 255, 255, 0.05);
}
.board-card-title[contenteditable="true"]:focus {
    background: rgba(0, 0, 0, 0.25) !important;
    box-shadow: 0 0 0 1px var(--color-accent) !important;
}
.board-drag-handle {
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s;
    user-select: none;
}
.board-drag-handle:hover {
    opacity: 1;
    color: var(--color-accent);
}
.board-drag-handle:active {
    cursor: grabbing;
}
.board-card p, .board-card-details {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    outline: none;
    border-radius: 4px;
    padding: 1px 3px;
    margin: -1px -3px;
    transition: background-color 0.15s;
    user-select: none;
    -webkit-user-select: none;
}
.board-card-details[contenteditable="true"] {
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
}
.board-card-details[contenteditable="true"]:hover {
    background: rgba(255, 255, 255, 0.05);
}
.board-card-details[contenteditable="true"]:focus {
    background: rgba(0, 0, 0, 0.25) !important;
    box-shadow: 0 0 0 1px var(--color-accent) !important;
    display: block !important;
    overflow-y: auto !important;
    max-height: 100px;
}
.board-card-details:empty:not(:focus)::before {
    content: "No details.";
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
}
body.theme-paper .board-card-title[contenteditable="true"]:focus,
body.theme-paper .board-card-details[contenteditable="true"]:focus {
    background: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 0 0 1px #5a4a38 !important;
}
body.theme-whiteboard .board-card-title[contenteditable="true"]:focus,
body.theme-whiteboard .board-card-details[contenteditable="true"]:focus {
    background: rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 0 0 1px #ca8a04 !important;
}
body.theme-system .board-card-title[contenteditable="true"]:focus,
body.theme-system .board-card-details[contenteditable="true"]:focus {
    background: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 0 0 1px #007acc !important;
}
.board-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}
.card-action-btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    padding: 6px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.card-action-btn:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: var(--color-accent);
}
.card-action-danger-btn:hover {
    background-color: rgba(244, 67, 54, 0.25) !important;
    border-color: #f44336 !important;
    color: #ff8a80 !important;
}
.card-action-btn svg {
    opacity: 0.8;
}
.board-card-metadata {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.board-card-counts {
    color: var(--text-secondary);
}
.board-card-grid-size {
    color: var(--text-muted);
}
.board-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}
.board-card-tag {
    background-color: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}
.board-card-theme-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.board-theme-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.board-theme-select {
    background-color: #12131a;
    color: var(--text-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.board-theme-select option {
    background-color: #12131a;
    color: var(--text-primary);
}
.board-theme-select:hover {
    border-color: var(--color-accent);
}

/* ==========================================================================
   VISUAL THEMES ENGINE (Neon, Paper, Whiteboard, System)
   ========================================================================== */

/* --- 1. Paper Theme (Torn Manuscript Paper, Calligraphic Ink Font, Gradient Tags) --- */
body.theme-paper #board-canvas,
body.theme-paper .viewport {
    background-color: #f4eee1 !important;
}
body.theme-paper #board-canvas.grid-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='0' stroke='%23706454aa' stroke-width='2.5' stroke-dasharray='2,7' stroke-linecap='round' shape-rendering='geometricPrecision'/%3E%3Cline x1='0' y1='0' x2='0' y2='100' stroke='%23706454aa' stroke-width='2.5' stroke-dasharray='2,7' stroke-linecap='round' shape-rendering='geometricPrecision'/%3E%3C/svg%3E") !important;
    background-size: 1998px 1998px !important;
}

body.theme-paper .grid-header {
    background-color: #e4d5c1 !important;
    color: #2c2720 !important;
    border-color: #706454 !important;
    font-weight: 700 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper .grid-cell {
    border-color: rgba(70, 60, 50, 0.14) !important;
}

body.theme-paper .idea-note {
    background-color: #f7f1e3 !important;
    background-image: 
        radial-gradient(circle, rgba(140, 110, 80, 0.04) 1px, transparent 1px),
        linear-gradient(175deg, #f9f3e6 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    border-radius: 2px 7px 3px 9px !important;
    box-shadow: 2px 4px 10px rgba(50, 38, 24, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    color: #1a1510 !important;
}

body.theme-paper .idea-note .note-header,
body.theme-paper .idea-note .note-details {
    color: #1a1510 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    line-height: 1.35 !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
}

body.theme-paper .idea-note.selected {
    border: 8px solid #4a3828 !important;
    box-shadow: 0 0 0 4px rgba(90, 74, 56, 0.45), 0 10px 28px rgba(50, 38, 24, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.theme-paper .idea-group-card.selected .group-stack-top,
body.theme-paper .idea-group-card.selected {
    border: 8px solid #4a3828 !important;
    box-shadow: 0 0 0 4px rgba(90, 74, 56, 0.45), 0 10px 28px rgba(50, 38, 24, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Paper Theme Accent Colors: Dark Beige Replace All Blue Accents */
/* WebKit (Chrome, Edge, Safari) Slider Thumbs */
body.theme-paper input[type="range"]::-webkit-slider-thumb,
body.theme-paper #grid-spacing-slider::-webkit-slider-thumb,
body.theme-paper .grid-spacing-control input[type="range"]::-webkit-slider-thumb,
body.theme-paper .zoom-indicator-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #f4e9d7 !important;
    background-color: #f4e9d7 !important;
    border: 1.5px solid #5a4a38 !important;
    box-shadow: 1px 1px 4px rgba(50, 38, 24, 0.3) !important;
}

/* Firefox Slider Thumbs */
body.theme-paper input[type="range"]::-moz-range-thumb,
body.theme-paper #grid-spacing-slider::-moz-range-thumb,
body.theme-paper .grid-spacing-control input[type="range"]::-moz-range-thumb,
body.theme-paper .zoom-indicator-panel input[type="range"]::-moz-range-thumb {
    background: #f4e9d7 !important;
    background-color: #f4e9d7 !important;
    border: 1.5px solid #5a4a38 !important;
    box-shadow: 1px 1px 4px rgba(50, 38, 24, 0.3) !important;
}

/* WebKit Slider Tracks */
body.theme-paper input[type="range"]::-webkit-slider-runnable-track,
body.theme-paper #grid-spacing-slider::-webkit-slider-runnable-track,
body.theme-paper .grid-spacing-control input[type="range"]::-webkit-slider-runnable-track,
body.theme-paper .zoom-indicator-panel input[type="range"]::-webkit-slider-runnable-track {
    background: #d8c4a9 !important;
    border: 1px solid #706454 !important;
}

/* Firefox Slider Tracks */
body.theme-paper input[type="range"]::-moz-range-track,
body.theme-paper #grid-spacing-slider::-moz-range-track,
body.theme-paper .grid-spacing-control input[type="range"]::-moz-range-track,
body.theme-paper .zoom-indicator-panel input[type="range"]::-moz-range-track {
    background: #d8c4a9 !important;
    border: 1px solid #706454 !important;
}

body.theme-paper .toolbar-switch input:checked + .switch-slider {
    background: #f4e9d7 !important;
    border: 1.5px solid #5a4a38 !important;
}

body.theme-paper .switch-slider::after {
    background: #5a4a38 !important;
}

body.theme-paper input[type="checkbox"]:checked {
    background-color: #f4e9d7 !important;
    border-color: #5a4a38 !important;
    color: #5a4a38 !important;
}

body.theme-paper a,
body.theme-paper .accent-text,
body.theme-paper .dialog-heading {
    color: #5a4a38 !important;
}

body.theme-paper *:focus-visible,
body.theme-paper select:focus,
body.theme-paper input:focus,
body.theme-paper textarea:focus,
body.theme-paper button:focus,
body.theme-paper [contenteditable="true"]:focus,
body.theme-paper [contenteditable]:focus,
body.theme-paper .note-header:focus,
body.theme-paper .note-details:focus,
body.theme-paper .group-title-label:focus,
body.theme-paper .group-header-label:focus,
body.theme-paper .editing,
body.theme-paper .note-card-edit {
    background-color: #f4e9d7 !important;
    background: #f4e9d7 !important;
    color: #000000 !important;
    border: 1.5px solid #5a4a38 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 3px rgba(50, 38, 24, 0.15), 0 0 0 2px rgba(140, 110, 80, 0.35) !important;
    outline: none !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper .note-header-wrapper:focus-within,
body.theme-paper .note-details-wrapper:focus-within {
    background-color: #f4e9d7 !important;
    border-radius: 4px !important;
}

body.theme-paper .badge-accent,
body.theme-paper .pill-accent {
    background: #f4e9d7 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
}

body.theme-paper .idea-group-card {
    border: 1.5px solid #5a4a38 !important;
    border-radius: 2px 7px 3px 9px !important;
}

body.theme-paper .group-stack-layer {
    background: linear-gradient(175deg, #f4e9d7 0%, #e6d7c3 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    box-shadow: 2px 3px 8px rgba(50, 38, 24, 0.22) !important;
    border-radius: 2px 6px 3px 8px !important;
}

/* Paper Theme Checkboxes: Headers, Details, Tags Beige (Not Blue) */
body.theme-paper .toolbar-checkbox .custom-chk {
    border: 1.5px solid #5a4a38 !important;
    background-color: #eee3ce !important;
}

body.theme-paper .toolbar-checkbox input:checked + .custom-chk {
    background-color: #f4e9d7 !important;
    border-color: #5a4a38 !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.2) !important;
}

body.theme-paper .toolbar-checkbox input:checked + .custom-chk::after {
    border-color: #000000 !important;
}

/* Paper Theme Toolbar & Group Tab Extensions (Pure Black Text/Icons & Calligraphic Ink Font) */
body.theme-paper header.header,
body.theme-paper .header,
body.theme-paper .dashboard-header,
body.theme-paper .workspace-header {
    background-color: #eee3ce !important;
    background: #eee3ce !important;
    border-bottom: 1.5px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper header.header *,
body.theme-paper .header *,
body.theme-paper .dashboard-header *,
body.theme-paper .workspace-header *,
body.theme-paper .workspace-status-bar * {
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper header.header svg,
body.theme-paper .header svg,
body.theme-paper .dashboard-header svg,
body.theme-paper .workspace-header svg,
body.theme-paper .workspace-status-bar svg,
body.theme-paper .nav-btn svg,
body.theme-paper .status-item svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-paper header.header svg path,
body.theme-paper .header svg path,
body.theme-paper .dashboard-header svg path,
body.theme-paper .workspace-header svg path,
body.theme-paper .workspace-status-bar svg path,
body.theme-paper header.header svg line,
body.theme-paper .header svg line,
body.theme-paper .dashboard-header svg line,
body.theme-paper .workspace-header svg line,
body.theme-paper .workspace-status-bar svg line,
body.theme-paper header.header svg circle,
body.theme-paper .header svg circle,
body.theme-paper .dashboard-header svg circle,
body.theme-paper .workspace-header svg circle,
body.theme-paper .workspace-status-bar svg circle,
body.theme-paper header.header svg polyline,
body.theme-paper .header svg polyline,
body.theme-paper .dashboard-header svg polyline,
body.theme-paper .workspace-header svg polyline,
body.theme-paper .workspace-status-bar svg polyline,
body.theme-paper header.header svg polygon,
body.theme-paper .header svg polygon,
body.theme-paper .dashboard-header svg polygon,
body.theme-paper .workspace-header svg polygon,
body.theme-paper .workspace-status-bar svg polygon {
    stroke: #000000 !important;
}

body.theme-paper header.header button,
body.theme-paper .header button,
body.theme-paper .dashboard-header button,
body.theme-paper .workspace-header button,
body.theme-paper header.header .btn,
body.theme-paper .header .btn,
body.theme-paper .dashboard-header .btn,
body.theme-paper .workspace-header .btn,
body.theme-paper header.header .nav-btn,
body.theme-paper .header .nav-btn,
body.theme-paper .dashboard-header .nav-btn,
body.theme-paper .workspace-header .nav-btn,
body.theme-paper header.header select,
body.theme-paper .header select,
body.theme-paper .dashboard-header select,
body.theme-paper .workspace-header select,
body.theme-paper header.header input,
body.theme-paper .header input,
body.theme-paper .dashboard-header input,
body.theme-paper .workspace-header input {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    border: 1px solid #635341 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
body.theme-paper .header-select option,
body.theme-paper .workspace-header select option,
body.theme-paper .dashboard-header select option {
    background: #f4e9d7 !important;
    background-color: #f4e9d7 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}
    letter-spacing: 0.3px !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-paper header.header button:hover,
body.theme-paper .header button:hover,
body.theme-paper .dashboard-header button:hover,
body.theme-paper .workspace-header button:hover,
body.theme-paper header.header .btn:hover,
body.theme-paper .header .btn:hover,
body.theme-paper .dashboard-header .btn:hover,
body.theme-paper .workspace-header .btn:hover,
body.theme-paper header.header .nav-btn:hover,
body.theme-paper .header .nav-btn:hover,
body.theme-paper .dashboard-header .nav-btn:hover,
body.theme-paper .workspace-header .nav-btn:hover,
body.theme-paper header.header select:hover,
body.theme-paper .header select:hover,
body.theme-paper .dashboard-header select:hover,
body.theme-paper .workspace-header select:hover {
    background: linear-gradient(to right, rgba(180, 140, 90, 0.75) 0%, rgba(244, 238, 225, 0.5) 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 1px 2px 6px rgba(50, 38, 24, 0.3) !important;
    transform: none !important;
}

body.theme-paper .user-profile span,
body.theme-paper .user-profile .badge,
body.theme-paper .user-profile .ai-token-badge {
    background-color: #f4e9d7 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
}

body.theme-paper .workspace-status-bar {
    background-color: #eee3ce !important;
    border-top: 1.5px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    font-size: 15px !important;
}

body.theme-paper .workspace-status-bar span,
body.theme-paper .workspace-status-bar div {
    color: #000000 !important;
}

body.theme-paper .workspace-status-bar .board-theme-select,
body.theme-paper .workspace-status-bar .board-theme-select option {
    background: #f4e9d7 !important;
    background-color: #f4e9d7 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

body.theme-paper .group-nav-btn {
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

/* Paper Theme: Buttons on left of bottom toolbar styled as Idea Tags */
body.theme-paper .status-left .bottom-board-pill,
body.theme-paper .status-left .bottom-board-overflow-btn,
body.theme-paper .status-left button {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    border: 1px solid #635341 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    letter-spacing: 0.3px !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-paper .status-left .bottom-board-pill.active,
body.theme-paper .status-left .bottom-board-pill:hover,
body.theme-paper .status-left .bottom-board-overflow-btn:hover,
body.theme-paper .status-left button:hover {
    background: linear-gradient(to right, rgba(180, 140, 90, 0.75) 0%, rgba(244, 238, 225, 0.5) 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 1px 2px 6px rgba(50, 38, 24, 0.3) !important;
    transform: none !important;
}

body.theme-paper .group-header-label {
    background-color: #f4e9d7 !important;
    border: 1.5px solid #706454 !important;
    color: #1c1510 !important;
    font-family: 'Marck Script', 'Caveat', cursive, serif !important;
    box-shadow: 1px 2px 4px rgba(50, 38, 24, 0.15) !important;
}

/* Paper Theme Tags - Gradient from Colour (Left) to Transparent (Right) */
body.theme-paper .note-tag-dict-pill,
body.theme-paper .note-tag-pill,
body.theme-paper .auto-tag-fw-btn {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    color: #1a1510 !important;
    font-weight: 700 !important;
    font-family: 'Architects Daughter', cursive, sans-serif !important;
    letter-spacing: 0.5px !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}


/* --- 2. Whiteboard Theme (Photorealistic Sticky Notes, Felt-Tip Handwriting) --- */
body.theme-whiteboard #board-canvas,
body.theme-whiteboard .viewport {
    background-color: #f8fafc !important;
}
body.theme-whiteboard #board-canvas.grid-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='0' stroke='%2300000040' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='0' x2='0' y2='100' stroke='%2300000040' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3C/svg%3E") !important;
    background-size: 1998px 1998px !important;
}

body.theme-whiteboard .grid-header {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    font-weight: 700 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard .grid-cell {
    border-color: rgba(148, 163, 184, 0.15) !important;
}

body.theme-whiteboard .idea-note {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 3px 6px 15px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    border-radius: 2px 2px 14px 2px !important;
    color: #0f172a !important;
}

body.theme-whiteboard .idea-note .note-header {
    color: #0f172a !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    letter-spacing: 0.5px;
}

body.theme-whiteboard .idea-note .note-details {
    color: #1e293b !important;
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.theme-whiteboard .idea-note.selected {
    border: 8px solid #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

body.theme-whiteboard .idea-group-card.selected .group-stack-top,
body.theme-whiteboard .idea-group-card.selected {
    border: 8px solid #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

body.theme-whiteboard .idea-group-card {
    border-color: #cbd5e1 !important;
}

body.theme-whiteboard .group-stack-layer {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.12) !important;
    border-radius: 2px 2px 12px 2px !important;
}

/* Whiteboard Theme Toolbar & Group Tab Extensions (Pure Black Text & Icons, Single-Line Compact Layout) */
body.theme-whiteboard header.header,
body.theme-whiteboard .header,
body.theme-whiteboard .dashboard-header,
body.theme-whiteboard .workspace-header {
    background-color: #f1f5f9 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    padding: 3px 6px !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

body.theme-whiteboard .workspace-header .header-left,
body.theme-whiteboard .workspace-header .header-center,
body.theme-whiteboard .workspace-header .header-right,
body.theme-whiteboard .dashboard-header .user-profile {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

body.theme-whiteboard header.header *,
body.theme-whiteboard .header *,
body.theme-whiteboard .dashboard-header *,
body.theme-whiteboard .workspace-header * {
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    font-size: 12px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
}

body.theme-whiteboard header.header svg,
body.theme-whiteboard .header svg,
body.theme-whiteboard .dashboard-header svg,
body.theme-whiteboard .workspace-header svg,
body.theme-whiteboard .workspace-status-bar svg,
body.theme-whiteboard .nav-btn svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-whiteboard header.header svg path,
body.theme-whiteboard .header svg path,
body.theme-whiteboard .dashboard-header svg path,
body.theme-whiteboard .workspace-header svg path,
body.theme-whiteboard .workspace-status-bar svg path,
body.theme-whiteboard header.header svg line,
body.theme-whiteboard .header svg line,
body.theme-whiteboard .dashboard-header svg line,
body.theme-whiteboard .workspace-header svg line,
body.theme-whiteboard .workspace-status-bar svg line,
body.theme-whiteboard header.header svg circle,
body.theme-whiteboard .header svg circle,
body.theme-whiteboard .dashboard-header svg circle,
body.theme-whiteboard .workspace-header svg circle,
body.theme-whiteboard .workspace-status-bar svg circle,
body.theme-whiteboard header.header svg polyline,
body.theme-whiteboard .header svg polyline,
body.theme-whiteboard .dashboard-header svg polyline,
body.theme-whiteboard .workspace-header svg polyline,
body.theme-whiteboard .workspace-status-bar svg polyline,
body.theme-whiteboard header.header svg polygon,
body.theme-whiteboard .header svg polygon,
body.theme-whiteboard .dashboard-header svg polygon,
body.theme-whiteboard .workspace-header svg polygon,
body.theme-whiteboard .workspace-status-bar svg polygon {
    stroke: #000000 !important;
}

body.theme-whiteboard header.header .nav-btn,
body.theme-whiteboard header.header select,
body.theme-whiteboard header.header input,
body.theme-whiteboard .dashboard-header .nav-btn,
body.theme-whiteboard .dashboard-header select,
body.theme-whiteboard .dashboard-header input,
body.theme-whiteboard .workspace-header .nav-btn,
body.theme-whiteboard .workspace-header select,
body.theme-whiteboard .workspace-header input {
    background: #fef08a !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
}
body.theme-whiteboard .header-select option,
body.theme-whiteboard .workspace-header select option,
body.theme-whiteboard .dashboard-header select option {
    background: #fef08a !important;
    background-color: #fef08a !important;
    color: #000000 !important;
}
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    padding: 2px 5px !important;
    font-size: 12px !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
}

body.theme-whiteboard .toolbar-checkbox,
body.theme-whiteboard .toolbar-switch,
body.theme-whiteboard .toolbar-select-group,
body.theme-whiteboard .grid-spacing-control {
    font-size: 12px !important;
    letter-spacing: -0.2px !important;
    gap: 3px !important;
    padding: 1px 4px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}


body.theme-whiteboard .user-profile span,
body.theme-whiteboard .user-profile .badge,
body.theme-whiteboard .user-profile .ai-token-badge {
    padding: 2px 5px !important;
    font-size: 11px !important;
    letter-spacing: -0.2px !important;
}

body.theme-whiteboard .workspace-status-bar {
    background-color: #f1f5f9 !important;
    border-top: 1.5px solid #cbd5e1 !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard .workspace-status-bar span,
body.theme-whiteboard .workspace-status-bar div {
    color: #000000 !important;
}

body.theme-whiteboard .workspace-status-bar .board-theme-select,
body.theme-whiteboard .workspace-status-bar .board-theme-select option {
    background: #fef08a !important;
    background-color: #fef08a !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: inherit !important;
}

body.theme-whiteboard .group-nav-btn {
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard .group-header-label {
    background-color: #fef08a !important;
    border: 1.5px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Bright Sticky Note Yellow Tags (SAME FONT AS DETAILS: 'Caveat', 'Permanent Marker') */
body.theme-whiteboard .note-tag-dict-pill,
body.theme-whiteboard .note-tag-pill,
body.theme-whiteboard .auto-tag-fw-btn {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
    line-height: 1.1 !important;
    letter-spacing: 0.4px !important;
    border-radius: 1px 2px 1px 3px !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-whiteboard .auto-tag-fw-btn {
    background: linear-gradient(175deg, #fef9c3 0%, #fde047 100%) !important;
}


/* --- 3. System Theme (VS-Code Developer Style) --- */
body.theme-system #board-canvas,
body.theme-system .viewport {
    background-color: #1e1e1e !important;
}
body.theme-system #board-canvas.grid-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='10' y2='0' stroke='%23007acc66' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3Cline x1='90' y1='0' x2='100' y2='0' stroke='%23007acc66' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='0' x2='0' y2='10' stroke='%23007acc66' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='90' x2='0' y2='100' stroke='%23007acc66' stroke-width='1.2' shape-rendering='crispEdges'/%3E%3C/svg%3E") !important;
    background-size: 1998px 1998px !important;
}

body.theme-system .grid-header {
    background-color: #252526 !important;
    color: #9cdcfe !important;
    border-color: #3c3c3c !important;
    font-weight: 600 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .grid-cell {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-system .idea-note {
    background-color: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-left-width: 4px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    border-radius: 6px !important;
    color: #d4d4d4 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .idea-note .note-header {
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-weight: 600 !important;
}

body.theme-system .idea-note .note-details {
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    line-height: 1.4 !important;
}

body.theme-system .idea-note.selected {
    border: 8px solid #007acc !important;
    border-left-width: 12px !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.45), 0 0 28px rgba(0, 122, 204, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

body.theme-system .idea-group-card.selected .group-stack-top,
body.theme-system .idea-group-card.selected {
    border: 8px solid #007acc !important;
    border-left-width: 12px !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.45), 0 0 28px rgba(0, 122, 204, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

body.theme-system .idea-group-card {
    border-color: #3c3c3c !important;
}

body.theme-system .group-stack-layer {
    background: #1e1e1e !important;
    border: 1px solid #3c3c3c !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    border-radius: 6px !important;
}

/* System Theme Toolbar & Group Tab Extensions (Text & SVG Icons Match Idea Title Syntax Blue #569cd6, Single-Line Compact Layout) */
body.theme-system header.header,
body.theme-system .header,
body.theme-system .dashboard-header,
body.theme-system .workspace-header {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #1e1e1e !important;
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    padding: 3px 6px !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

body.theme-system .workspace-header .header-left,
body.theme-system .workspace-header .header-center,
body.theme-system .workspace-header .header-right,
body.theme-system .dashboard-header .user-profile {
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

body.theme-system header.header *,
body.theme-system .header *,
body.theme-system .dashboard-header *,
body.theme-system .workspace-header * {
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-size: 11.5px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
}

body.theme-system header.header svg,
body.theme-system .header svg,
body.theme-system .dashboard-header svg,
body.theme-system .workspace-header svg,
body.theme-system .workspace-status-bar svg,
body.theme-system .nav-btn svg {
    color: #569cd6 !important;
    stroke: #569cd6 !important;
}

body.theme-system header.header svg path,
body.theme-system .header svg path,
body.theme-system .dashboard-header svg path,
body.theme-system .workspace-header svg path,
body.theme-system .workspace-status-bar svg path,
body.theme-system header.header svg line,
body.theme-system .header svg line,
body.theme-system .dashboard-header svg line,
body.theme-system .workspace-header svg line,
body.theme-system .workspace-status-bar svg line,
body.theme-system header.header svg circle,
body.theme-system .header svg circle,
body.theme-system .dashboard-header svg circle,
body.theme-system .workspace-header svg circle,
body.theme-system .workspace-status-bar svg circle {
    stroke: #569cd6 !important;
}

body.theme-system header.header .nav-btn,
body.theme-system header.header select,
body.theme-system header.header input,
body.theme-system .dashboard-header .nav-btn,
body.theme-system .dashboard-header select,
body.theme-system .dashboard-header input,
body.theme-system .workspace-header .nav-btn,
body.theme-system .workspace-header select,
body.theme-system .workspace-header input {
    background: rgba(0, 122, 204, 0.2) !important;
    border: 1px solid #007acc !important;
    color: #ce9178 !important;
}
body.theme-system .header-select option,
body.theme-system .workspace-header select option,
body.theme-system .dashboard-header select option {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    color: #ce9178 !important;
}
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-size: 11px !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
}

body.theme-system .workspace-status-bar {
    background-color: #2d2d2d !important;
    border-top: 1px solid #1e1e1e !important;
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .workspace-status-bar span,
body.theme-system .workspace-status-bar div {
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .workspace-status-bar svg,
body.theme-system .workspace-status-bar svg path,
body.theme-system .workspace-status-bar svg line,
body.theme-system .workspace-status-bar svg circle,
body.theme-system .workspace-status-bar svg polyline,
body.theme-system .workspace-status-bar svg polygon {
    color: #569cd6 !important;
    stroke: #569cd6 !important;
}

/* System Theme Bottom Toolbar Buttons (Mimics Tag Button Style: rgba(0, 122, 204, 0.2), #007acc border, #ce9178 text) */
body.theme-system .bottom-board-pill,
body.theme-system .bottom-board-overflow-btn,
body.theme-system .workspace-status-bar .nav-tool-btn,
body.theme-system .workspace-status-bar .board-theme-select,
body.theme-system .workspace-status-bar .board-theme-select option {
    background: #1e1e1e !important;
    background-color: #1e1e1e !important;
    border: 1px solid #007acc !important;
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-system .bottom-board-pill:hover,
body.theme-system .bottom-board-overflow-btn:hover,
body.theme-system .workspace-status-bar .nav-tool-btn:hover {
    background: rgba(0, 122, 204, 0.35) !important;
    border-color: #007acc !important;
    color: #ffffff !important;
}

body.theme-system .bottom-board-pill.active {
    background: rgba(0, 122, 204, 0.45) !important;
    border: 1px solid #007acc !important;
    color: #4ec9b0 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Keep Clipboard (Purple) & Recycle Bin (Coral/Red) Outline Colors */
body.theme-system .bottom-board-pill.clipboard-pill,
body.theme-system #clipboard-pill {
    background: rgba(197, 134, 192, 0.15) !important;
    border: 1px solid #c586c0 !important;
    color: #c586c0 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

body.theme-system .bottom-board-pill.clipboard-pill:hover,
body.theme-system #clipboard-pill:hover {
    background: rgba(197, 134, 192, 0.3) !important;
    border-color: #c586c0 !important;
    color: #ffffff !important;
}

body.theme-system .bottom-board-pill.clipboard-pill.active,
body.theme-system #clipboard-pill.active {
    background: rgba(197, 134, 192, 0.4) !important;
    border: 1.5px solid #c586c0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.theme-system .bottom-board-pill.recycle-pill,
body.theme-system #recycle-pill {
    background: rgba(244, 135, 113, 0.15) !important;
    border: 1px solid #f48771 !important;
    color: #f48771 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

body.theme-system .bottom-board-pill.recycle-pill:hover,
body.theme-system #recycle-pill:hover {
    background: rgba(244, 135, 113, 0.3) !important;
    border-color: #f48771 !important;
    color: #ffffff !important;
}

body.theme-system .bottom-board-pill.recycle-pill.active,
body.theme-system #recycle-pill.active {
    background: rgba(244, 135, 113, 0.4) !important;
    border: 1.5px solid #f48771 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.theme-system .group-nav-btn {
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .group-header-label {
    background-color: #252526 !important;
    border: 1px solid #3c3c3c !important;
    color: #4ec9b0 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* System Theme Tags (SAME FONT AS DETAILS: 'Fira Code', 'Consolas', monospace) */
body.theme-system .note-tag-dict-pill,
body.theme-system .note-tag-pill {
    background: rgba(0, 122, 204, 0.2) !important;
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-system .auto-tag-fw-btn {
    background: rgba(0, 122, 204, 0.2) !important;
    border: 1px solid #007acc !important;
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-size: 13px !important;
    border-radius: 3px !important;
    opacity: 1 !important;
    filter: none !important;
}


/* --- Visual Theme Extensions for Login, Dashboard Selector, & Help/Controls Screens --- */

/* 1. Paper Theme Screens (Login Screen & Idea Board Selector Page) */
body.theme-paper #login-screen,
body.theme-paper #dashboard-screen {
    background-color: #f4eee1 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper #login-screen *,
body.theme-paper #dashboard-screen * {
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper .login-container,
body.theme-paper .boards-section,
body.theme-paper .billing-section,
body.theme-paper .help-container .control-card,
body.theme-paper .modal-content,
body.theme-paper .glass-panel {
    background: linear-gradient(175deg, #f7f1e3 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    color: #000000 !important;
    box-shadow: 3px 6px 16px rgba(50, 38, 24, 0.22) !important;
}

body.theme-paper .board-card {
    background: linear-gradient(175deg, #f9f3e6 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    border-radius: 2px 7px 3px 9px !important;
    box-shadow: 2px 4px 10px rgba(50, 38, 24, 0.2) !important;
}

body.theme-paper .board-card.selected,
body.theme-paper .board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #4a3828 !important;
    box-shadow: 0 0 0 4px rgba(90, 74, 56, 0.45), 0 10px 28px rgba(50, 38, 24, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Paper Theme Clipboard (Purple Outline) & Recycle Bin (Red Outline) */
body.theme-paper .board-card.clipboard-board-card,
body.theme-paper .board-card[data-board-id*="clipboard"] {
    border: 2px solid #7c4dff !important;
    box-shadow: 2px 4px 12px rgba(124, 77, 255, 0.3) !important;
}

body.theme-paper .board-card.clipboard-board-card.selected,
body.theme-paper .board-card[data-board-id*="clipboard"]:has([contenteditable="true"]:focus) {
    border: 8px solid #7c4dff !important;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.45), 0 10px 28px rgba(124, 77, 255, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.theme-paper .board-card.recycle-board-card,
body.theme-paper .board-card[data-board-id*="recycle"] {
    border: 2px solid #dc2626 !important;
    box-shadow: 2px 4px 12px rgba(220, 38, 38, 0.3) !important;
}

body.theme-paper .board-card.recycle-board-card.selected,
body.theme-paper .board-card[data-board-id*="recycle"]:has([contenteditable="true"]:focus) {
    border: 8px solid #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.45), 0 10px 28px rgba(220, 38, 38, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.theme-paper .board-card.shared-board-card {
    background: linear-gradient(175deg, #f0f7f2 0%, #d8ebd9 100%) !important;
    border: 2px solid #059669 !important;
    box-shadow: 2px 4px 12px rgba(5, 150, 105, 0.25) !important;
}
body.theme-paper .board-card.shared-board-card.selected,
body.theme-paper .board-card.shared-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #047857 !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.45), 0 10px 28px rgba(5, 150, 105, 0.5), 2px 4px 12px rgba(0, 0, 0, 0.3) !important;
}
body.theme-paper .bottom-board-pill.shared-pill {
    border: 1.5px solid #059669 !important;
    color: #065f46 !important;
    background: linear-gradient(to right, rgba(5, 150, 105, 0.25) 0%, transparent 100%) !important;
}
body.theme-paper .bottom-board-pill.shared-pill:hover,
body.theme-paper .bottom-board-pill.shared-pill.active {
    border: 2px solid #059669 !important;
    background: linear-gradient(to right, rgba(5, 150, 105, 0.5) 0%, rgba(216, 235, 217, 0.6) 100%) !important;
    color: #065f46 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35) !important;
}

body.theme-paper .bottom-board-pill.clipboard-pill {
    border: 1.5px solid #7c4dff !important;
    color: #000000 !important;
    background: linear-gradient(to right, rgba(124, 77, 255, 0.25) 0%, transparent 100%) !important;
}

body.theme-paper .bottom-board-pill.clipboard-pill:hover,
body.theme-paper .bottom-board-pill.clipboard-pill.active {
    border: 2px solid #7c4dff !important;
    background: linear-gradient(to right, rgba(124, 77, 255, 0.5) 0%, rgba(244, 238, 225, 0.6) 100%) !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.35) !important;
}

body.theme-paper .bottom-board-pill.recycle-pill {
    border: 1.5px solid #dc2626 !important;
    color: #000000 !important;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.25) 0%, transparent 100%) !important;
}

body.theme-paper .bottom-board-pill.recycle-pill:hover,
body.theme-paper .bottom-board-pill.recycle-pill.active {
    border: 2px solid #dc2626 !important;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.5) 0%, rgba(244, 238, 225, 0.6) 100%) !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
}

body.theme-paper .current-plan-card,
body.theme-paper .tier-card {
    background: #f4e9d7 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
}

body.theme-paper .trigger-lbl {
    background: #e4d5c1 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Caveat', cursive, serif !important;
}

/* Paper Theme Buttons on Login Screen & Idea Board Selector Screen (Idea Tag Styling) */
body.theme-paper #login-screen button,
body.theme-paper #dashboard-screen button,
body.theme-paper .card-action-btn,
body.theme-paper .create-board-btn,
body.theme-paper .add-board-btn,
body.theme-paper .login-btn,
body.theme-paper .social-login-btn,
body.theme-paper .auth-tab-btn,
body.theme-paper .btn-primary,
body.theme-paper .btn-secondary {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    border: 1px solid #635341 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    letter-spacing: 0.3px !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-paper #login-screen button:hover,
body.theme-paper #dashboard-screen button:hover,
body.theme-paper .card-action-btn:hover,
body.theme-paper .create-board-btn:hover,
body.theme-paper .add-board-btn:hover,
body.theme-paper .login-btn:hover,
body.theme-paper .social-login-btn:hover,
body.theme-paper .auth-tab-btn.active,
body.theme-paper .btn-primary:hover,
body.theme-paper .btn-secondary:hover {
    background: linear-gradient(to right, rgba(180, 140, 90, 0.75) 0%, rgba(244, 238, 225, 0.5) 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 1px 2px 6px rgba(50, 38, 24, 0.3) !important;
    transform: none !important;
}

/* SVG icons on Login & Dashboard screens */
body.theme-paper #login-screen svg,
body.theme-paper #dashboard-screen svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-paper #login-screen svg path,
body.theme-paper #dashboard-screen svg path,
body.theme-paper #login-screen svg line,
body.theme-paper #dashboard-screen svg line,
body.theme-paper #login-screen svg circle,
body.theme-paper #dashboard-screen svg circle,
body.theme-paper #login-screen svg polyline,
body.theme-paper #dashboard-screen svg polyline {
    stroke: #000000 !important;
}


/* 2. Whiteboard Theme Screens & Control Enhancements */
body.theme-whiteboard #login-screen,
body.theme-whiteboard #dashboard-screen {
    background-color: #f8fafc !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard #login-screen *,
body.theme-whiteboard #dashboard-screen * {
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard .login-container,
body.theme-whiteboard .boards-section,
body.theme-whiteboard .billing-section,
body.theme-whiteboard .help-container .control-card,
body.theme-whiteboard .modal-content,
body.theme-whiteboard .glass-panel {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #000000 !important;
    box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.12) !important;
}

/* Card background on Idea Board selection screen (Bright Sticky Note Yellow) */
body.theme-whiteboard .board-card {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1.5px solid #ca8a04 !important;
    border-radius: 2px 2px 12px 2px !important;
    box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.14) !important;
    color: #000000 !important;
}

body.theme-whiteboard .board-card.selected,
body.theme-whiteboard .board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

body.theme-whiteboard .board-card h3,
body.theme-whiteboard .board-card p,
body.theme-whiteboard .board-card * {
    color: #000000 !important;
}

/* Whiteboard Theme Bottom Toolbar Board Pills (Left): Bright Yellow Sticky Note Tag Style! */
body.theme-whiteboard .bottom-board-pill,
body.theme-whiteboard .bottom-board-overflow-btn {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    border-radius: 1px 3px 2px 4px !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
}

body.theme-whiteboard .bottom-board-pill:hover,
body.theme-whiteboard .bottom-board-pill.active {
    background: linear-gradient(175deg, #fef08a 0%, #fde047 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Whiteboard Theme Clipboard (Purple Marker) & Recycle Bin (Red Marker) Outlines */
body.theme-whiteboard .board-card.clipboard-board-card,
body.theme-whiteboard .board-card[data-board-id*="clipboard"] {
    border: 2.5px solid #8b5cf6 !important;
    box-shadow: 2px 4px 12px rgba(139, 92, 246, 0.3) !important;
}

body.theme-whiteboard .board-card.clipboard-board-card.selected,
body.theme-whiteboard .board-card[data-board-id*="clipboard"]:has([contenteditable="true"]:focus) {
    border: 8px solid #8b5cf6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.45), 0 10px 28px rgba(139, 92, 246, 0.5), 0 2px 8px rgba(139, 92, 246, 0.6) !important;
}

body.theme-whiteboard .board-card.recycle-board-card,
body.theme-whiteboard .board-card[data-board-id*="recycle"] {
    border: 2.5px solid #ef4444 !important;
    box-shadow: 2px 4px 12px rgba(239, 68, 68, 0.3) !important;
}

body.theme-whiteboard .board-card.recycle-board-card.selected,
body.theme-whiteboard .board-card[data-board-id*="recycle"]:has([contenteditable="true"]:focus) {
    border: 8px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.45), 0 10px 28px rgba(239, 68, 68, 0.5), 0 2px 8px rgba(239, 68, 68, 0.6) !important;
}

body.theme-whiteboard .board-card.shared-board-card {
    background: linear-gradient(175deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 2px solid #16a34a !important;
    box-shadow: 2px 5px 12px rgba(22, 163, 74, 0.25) !important;
    color: #000000 !important;
}
body.theme-whiteboard .board-card.shared-board-card.selected,
body.theme-whiteboard .board-card.shared-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #15803d !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.45), 0 10px 28px rgba(22, 163, 74, 0.5), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}
body.theme-whiteboard .bottom-board-pill.shared-pill {
    background: linear-gradient(175deg, rgba(22, 163, 74, 0.2) 0%, #bbf7d0 100%) !important;
    border: 1.5px solid #16a34a !important;
    color: #14532d !important;
}
body.theme-whiteboard .bottom-board-pill.shared-pill:hover,
body.theme-whiteboard .bottom-board-pill.shared-pill.active {
    border: 2px solid #16a34a !important;
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.4) !important;
}

body.theme-whiteboard .bottom-board-pill.clipboard-pill {
    background: linear-gradient(175deg, rgba(139, 92, 246, 0.2) 0%, #fef08a 100%) !important;
    border: 1.5px solid #8b5cf6 !important;
    color: #6d28d9 !important;
}

body.theme-whiteboard .bottom-board-pill.clipboard-pill:hover,
body.theme-whiteboard .bottom-board-pill.clipboard-pill.active {
    border: 2px solid #8b5cf6 !important;
    background: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4) !important;
}

body.theme-whiteboard .bottom-board-pill.recycle-pill {
    background: linear-gradient(175deg, rgba(239, 68, 68, 0.2) 0%, #fef08a 100%) !important;
    border: 1.5px solid #ef4444 !important;
    color: #b91c1c !important;
}

body.theme-whiteboard .bottom-board-pill.recycle-pill:hover,
body.theme-whiteboard .bottom-board-pill.recycle-pill.active {
    border: 2px solid #ef4444 !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4) !important;
}

body.theme-whiteboard .current-plan-card,
body.theme-whiteboard .tier-card {
    background: #fef9c3 !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
}

body.theme-whiteboard .trigger-lbl {
    background: #fef08a !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

/* Whiteboard Buttons across screens (Bright Sticky Note Yellow) */
body.theme-whiteboard #login-screen button,
body.theme-whiteboard #dashboard-screen button,
body.theme-whiteboard .card-action-btn,
body.theme-whiteboard .create-board-btn,
body.theme-whiteboard .add-board-btn,
body.theme-whiteboard .login-btn,
body.theme-whiteboard .social-login-btn,
body.theme-whiteboard .auth-tab-btn,
body.theme-whiteboard .btn-primary,
body.theme-whiteboard .btn-secondary {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Caveat', 'Architects Daughter', cursive, sans-serif !important;
    letter-spacing: 0.4px !important;
    border-radius: 1px 3px 2px 4px !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body.theme-whiteboard #login-screen button:hover,
body.theme-whiteboard #dashboard-screen button:hover,
body.theme-whiteboard .card-action-btn:hover,
body.theme-whiteboard .create-board-btn:hover,
body.theme-whiteboard .add-board-btn:hover,
body.theme-whiteboard .login-btn:hover,
body.theme-whiteboard .social-login-btn:hover,
body.theme-whiteboard .auth-tab-btn.active,
body.theme-whiteboard .btn-primary:hover,
body.theme-whiteboard .btn-secondary:hover {
    background: linear-gradient(175deg, #fef08a 0%, #fde047 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25) !important;
    transform: none !important;
}

/* Whiteboard SVG Icons across screens (Pure Black #000000) */
body.theme-whiteboard #login-screen svg,
body.theme-whiteboard #dashboard-screen svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-whiteboard #login-screen svg path,
body.theme-whiteboard #dashboard-screen svg path,
body.theme-whiteboard #login-screen svg line,
body.theme-whiteboard #dashboard-screen svg line,
body.theme-whiteboard #login-screen svg circle,
body.theme-whiteboard #dashboard-screen svg circle,
body.theme-whiteboard #login-screen svg polyline,
body.theme-whiteboard #dashboard-screen svg polyline {
    stroke: #000000 !important;
}

/* Whiteboard Theme Accent Color for Checkboxes, Sliders, Toggles, Overlap Dropdown (Bright Sticky Note Yellow #fde047 / #fef08a) */
body.theme-whiteboard .toolbar-checkbox .custom-chk {
    border: 1.5px solid #ca8a04 !important;
    background-color: #ffffff !important;
}

body.theme-whiteboard .toolbar-checkbox input:checked + .custom-chk {
    background-color: #fde047 !important;
    border-color: #ca8a04 !important;
    box-shadow: 1px 1px 4px rgba(202, 138, 4, 0.3) !important;
}

body.theme-whiteboard .toolbar-checkbox input:checked + .custom-chk::after {
    border-color: #000000 !important;
}

/* Snap Toggle Switch in Whiteboard Theme (Same Yellow as Top Toolbar Buttons #fef08a) */
body.theme-whiteboard .toolbar-switch .switch-slider {
    background-color: #e2e8f0 !important;
    border: 1px solid #ca8a04 !important;
}

body.theme-whiteboard .toolbar-switch input:checked + .switch-slider,
body.theme-whiteboard #chk-snap:checked + .switch-slider {
    background-color: #fef08a !important;
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #ca8a04 !important;
    box-shadow: 1px 1px 5px rgba(202, 138, 4, 0.4) !important;
}

body.theme-whiteboard .toolbar-switch .switch-slider::after,
body.theme-whiteboard .toolbar-switch input:checked + .switch-slider::after {
    background-color: #000000 !important;
}

/* Overlap Dropdown Select Background (Bright Sticky Note Yellow) */
body.theme-whiteboard #overlap-select,
body.theme-whiteboard .overlap-mode-select,
body.theme-whiteboard select#overlap-select {
    background: #fef08a !important;
    background-color: #fef08a !important;
    border: 1.5px solid #ca8a04 !important;
    color: #000000 !important;
}

/* Editing Details & Focused Inputs (Font SAME as Displayed Details: 'Caveat', 'Permanent Marker') */
body.theme-whiteboard .note-details:focus,
body.theme-whiteboard .note-details[contenteditable]:focus,
body.theme-whiteboard .idea-note textarea.note-details-input:focus,
body.theme-whiteboard textarea.note-details:focus {
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    background-color: #fef9c3 !important;
    background: #fef9c3 !important;
    color: #000000 !important;
    border: 1.5px solid #ca8a04 !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !important;
    outline: none !important;
}

body.theme-whiteboard *:focus-visible,
body.theme-whiteboard select:focus,
body.theme-whiteboard input:focus,
body.theme-whiteboard textarea:focus,
body.theme-whiteboard button:focus,
body.theme-whiteboard [contenteditable="true"]:focus,
body.theme-whiteboard [contenteditable]:focus,
body.theme-whiteboard .note-header:focus,
body.theme-whiteboard .group-title-label:focus,
body.theme-whiteboard .group-header-label:focus,
body.theme-whiteboard .editing,
body.theme-whiteboard .note-card-edit {
    background-color: #fef9c3 !important;
    background: #fef9c3 !important;
    color: #000000 !important;
    border: 2px solid #ca8a04 !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !important;
    outline: none !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

/* WebKit & Firefox Range Sliders for Whiteboard Theme (Bright Yellow Circle Handle #fde047) */
body.theme-whiteboard input[type="range"]::-webkit-slider-thumb,
body.theme-whiteboard #grid-spacing-slider::-webkit-slider-thumb,
body.theme-whiteboard .grid-spacing-control input[type="range"]::-webkit-slider-thumb,
body.theme-whiteboard .zoom-indicator-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #fde047 !important;
    background-color: #fde047 !important;
    border: 2px solid #ca8a04 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

body.theme-whiteboard input[type="range"]::-moz-range-thumb,
body.theme-whiteboard #grid-spacing-slider::-moz-range-thumb,
body.theme-whiteboard .grid-spacing-control input[type="range"]::-moz-range-thumb,
body.theme-whiteboard .zoom-indicator-panel input[type="range"]::-moz-range-thumb {
    background: #fde047 !important;
    background-color: #fde047 !important;
    border: 2px solid #ca8a04 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

body.theme-whiteboard input[type="range"]::-webkit-slider-runnable-track,
body.theme-whiteboard #grid-spacing-slider::-webkit-slider-runnable-track,
body.theme-whiteboard .grid-spacing-control input[type="range"]::-webkit-slider-runnable-track,
body.theme-whiteboard .zoom-indicator-panel input[type="range"]::-webkit-slider-runnable-track {
    background: #fef08a !important;
    border: 1px solid #ca8a04 !important;
}

body.theme-whiteboard input[type="range"]::-moz-range-track,
body.theme-whiteboard #grid-spacing-slider::-moz-range-track,
body.theme-whiteboard .grid-spacing-control input[type="range"]::-moz-range-track,
body.theme-whiteboard .zoom-indicator-panel input[type="range"]::-moz-range-track {
    background: #fef08a !important;
    border: 1px solid #ca8a04 !important;
}


/* 3. System Theme Screens & Control Enhancements */
body.theme-system #login-screen,
body.theme-system #dashboard-screen {
    background-color: #1e1e1e !important;
    color: #d4d4d4 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system #login-screen *,
body.theme-system #dashboard-screen * {
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .login-container,
body.theme-system .boards-section,
body.theme-system .billing-section,
body.theme-system .help-container .control-card,
body.theme-system .modal-content,
body.theme-system .glass-panel {
    background: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-left: 4px solid #007acc !important;
    color: #d4d4d4 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
}

body.theme-system .login-container h1,
body.theme-system .login-container h2,
body.theme-system .boards-section h2,
body.theme-system .billing-section h2,
body.theme-system .billing-section h3,
body.theme-system .help-container .dialog-heading,
body.theme-system .help-container h2,
body.theme-system .help-container h3,
body.theme-system .board-card h3 {
    color: #569cd6 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .board-card {
    background: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-left: 4px solid #4ec9b0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

body.theme-system .board-card.selected,
body.theme-system .board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #007acc !important;
    border-left: 12px solid #4ec9b0 !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.45), 0 0 28px rgba(0, 122, 204, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

/* System Theme Bottom Toolbar Board Pills (Left): Same style as Tags in Ideas! */
body.theme-system .bottom-board-pill,
body.theme-system .bottom-board-overflow-btn {
    background: rgba(0, 122, 204, 0.2) !important;
    border: 1px solid #007acc !important;
    color: #9cdcfe !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-size: 13px !important;
    border-radius: 3px !important;
}

body.theme-system .bottom-board-pill:hover,
body.theme-system .bottom-board-pill.active {
    background: rgba(0, 122, 204, 0.45) !important;
    border: 1px solid #007acc !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.5) !important;
}

/* System Theme Clipboard (Purple IDE) & Recycle Bin (Coral IDE) Outlines */
body.theme-system .board-card.clipboard-board-card,
body.theme-system .board-card[data-board-id*="clipboard"] {
    border: 1px solid #c586c0 !important;
    border-left: 4px solid #c586c0 !important;
    box-shadow: 0 4px 14px rgba(197, 134, 192, 0.3) !important;
}

body.theme-system .board-card.clipboard-board-card.selected,
body.theme-system .board-card[data-board-id*="clipboard"]:has([contenteditable="true"]:focus) {
    border: 8px solid #c586c0 !important;
    border-left: 12px solid #c586c0 !important;
    box-shadow: 0 0 0 4px rgba(197, 134, 192, 0.45), 0 0 28px rgba(197, 134, 192, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

body.theme-system .board-card.recycle-board-card,
body.theme-system .board-card[data-board-id*="recycle"] {
    border: 1px solid #f48771 !important;
    border-left: 4px solid #f48771 !important;
    box-shadow: 0 4px 14px rgba(244, 135, 113, 0.3) !important;
}

body.theme-system .board-card.recycle-board-card.selected,
body.theme-system .board-card[data-board-id*="recycle"]:has([contenteditable="true"]:focus) {
    border: 8px solid #f48771 !important;
    border-left: 12px solid #f48771 !important;
    box-shadow: 0 0 0 4px rgba(244, 135, 113, 0.45), 0 0 28px rgba(244, 135, 113, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

body.theme-system .board-card.shared-board-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, #252526 100%) !important;
    border: 1px solid #10b981 !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
}
body.theme-system .board-card.shared-board-card.selected,
body.theme-system .board-card.shared-board-card:has([contenteditable="true"]:focus) {
    border: 8px solid #10b981 !important;
    border-left: 12px solid #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 0 28px rgba(16, 185, 129, 0.8), 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}
body.theme-system .bottom-board-pill.shared-pill {
    border: 1px solid #10b981 !important;
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.15) !important;
}
body.theme-system .bottom-board-pill.shared-pill:hover,
body.theme-system .bottom-board-pill.shared-pill.active {
    border: 1px solid #10b981 !important;
    background: #10b981 !important;
    color: #1e1e1e !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

body.theme-system .bottom-board-pill.clipboard-pill {
    border: 1px solid #c586c0 !important;
    color: #c586c0 !important;
    background: rgba(197, 134, 192, 0.15) !important;
}

body.theme-system .bottom-board-pill.clipboard-pill:hover,
body.theme-system .bottom-board-pill.clipboard-pill.active {
    border: 1px solid #c586c0 !important;
    background: #c586c0 !important;
    color: #1e1e1e !important;
    box-shadow: 0 0 12px rgba(197, 134, 192, 0.5) !important;
}

body.theme-system .bottom-board-pill.recycle-pill {
    border: 1px solid #f48771 !important;
    color: #f48771 !important;
    background: rgba(244, 135, 113, 0.15) !important;
}

body.theme-system .bottom-board-pill.recycle-pill:hover,
body.theme-system .bottom-board-pill.recycle-pill.active {
    border: 1px solid #f48771 !important;
    background: #f48771 !important;
    color: #1e1e1e !important;
    box-shadow: 0 0 12px rgba(244, 135, 113, 0.5) !important;
}

body.theme-system .current-plan-card,
body.theme-system .tier-card {
    background: #1e1e1e !important;
    border: 1px solid #3c3c3c !important;
    color: #d4d4d4 !important;
}

body.theme-system .trigger-lbl {
    background: #1e1e1e !important;
    border: 1px solid #474747 !important;
    color: #9cdcfe !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

/* System Theme Buttons across screens */
body.theme-system #login-screen button,
body.theme-system #dashboard-screen button,
body.theme-system .card-action-btn,
body.theme-system .add-board-btn,
body.theme-system .social-login-btn,
body.theme-system .auth-tab-btn,
body.theme-system .btn-secondary {
    background-color: #252526 !important;
    border: 1px solid #454545 !important;
    color: #9cdcfe !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body.theme-system .card-action-btn {
    padding: 5px 4px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

body.theme-system .create-board-btn,
body.theme-system .login-btn,
body.theme-system .btn-primary {
    background-color: #0e639c !important;
    border: 1px solid #1177bb !important;
    color: #ffffff !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(14, 99, 156, 0.4) !important;
}

body.theme-system #login-screen button:hover,
body.theme-system #dashboard-screen button:hover,
body.theme-system .card-action-btn:hover,
body.theme-system .add-board-btn:hover,
body.theme-system .social-login-btn:hover,
body.theme-system .auth-tab-btn.active,
body.theme-system .btn-secondary:hover {
    background-color: #3c3c3c !important;
    border-color: #007acc !important;
    color: #ffffff !important;
}

body.theme-system .create-board-btn:hover,
body.theme-system .login-btn:hover,
body.theme-system .btn-primary:hover {
    background-color: #1177bb !important;
    border-color: #007acc !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.6) !important;
}

/* System Theme SVG Icons */
body.theme-system #login-screen svg,
body.theme-system #dashboard-screen svg {
    color: #9cdcfe !important;
    stroke: #9cdcfe !important;
}

body.theme-system #login-screen svg path,
body.theme-system #dashboard-screen svg path,
body.theme-system #login-screen svg line,
body.theme-system #dashboard-screen svg line,
body.theme-system #login-screen svg circle,
body.theme-system #dashboard-screen svg circle,
body.theme-system #login-screen svg polyline,
body.theme-system #dashboard-screen svg polyline {
    stroke: #9cdcfe !important;
}

/* System Theme Checkboxes & Editing Boxes */
body.theme-system .toolbar-checkbox .custom-chk {
    border: 1px solid #454545 !important;
    background-color: #252526 !important;
}

body.theme-system .toolbar-checkbox input:checked + .custom-chk {
    background-color: #007acc !important;
    border-color: #007acc !important;
    box-shadow: 0 0 6px rgba(0, 122, 204, 0.5) !important;
}

body.theme-system .toolbar-checkbox input:checked + .custom-chk::after {
    border-color: #ffffff !important;
}

body.theme-system *:focus-visible,
body.theme-system select:focus,
body.theme-system input:focus,
body.theme-system textarea:focus,
body.theme-system button:focus,
body.theme-system [contenteditable="true"]:focus,
body.theme-system [contenteditable]:focus,
body.theme-system .note-header:focus,
body.theme-system .note-details:focus,
body.theme-system .group-title-label:focus,
body.theme-system .group-header-label:focus,
body.theme-system .editing,
body.theme-system .note-card-edit {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
    color: #9cdcfe !important;
    border: 1px solid #007acc !important;
    border-radius: 3px !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.4) !important;
    outline: none !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

/* WebKit & Firefox Range Sliders for System Theme */
body.theme-system input[type="range"]::-webkit-slider-thumb,
body.theme-system #grid-spacing-slider::-webkit-slider-thumb,
body.theme-system .grid-spacing-control input[type="range"]::-webkit-slider-thumb,
body.theme-system .zoom-indicator-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #007acc !important;
    background-color: #007acc !important;
    border: 1px solid #005999 !important;
    box-shadow: 0 0 6px rgba(0, 122, 204, 0.6) !important;
}

body.theme-system input[type="range"]::-moz-range-thumb,
body.theme-system #grid-spacing-slider::-moz-range-thumb,
body.theme-system .grid-spacing-control input[type="range"]::-moz-range-thumb,
body.theme-system .zoom-indicator-panel input[type="range"]::-moz-range-thumb {
    background: #007acc !important;
    background-color: #007acc !important;
    border: 1px solid #005999 !important;
    box-shadow: 0 0 6px rgba(0, 122, 204, 0.6) !important;
}

body.theme-system input[type="range"]::-webkit-slider-runnable-track,
body.theme-system #grid-spacing-slider::-webkit-slider-runnable-track,
body.theme-system .grid-spacing-control input[type="range"]::-webkit-slider-runnable-track,
body.theme-system .zoom-indicator-panel input[type="range"]::-webkit-slider-runnable-track {
    background: #3c3c3c !important;
    border: 1px solid #474747 !important;
}

body.theme-system input[type="range"]::-moz-range-track,
body.theme-system #grid-spacing-slider::-moz-range-track,
body.theme-system .grid-spacing-control input[type="range"]::-moz-range-track,
body.theme-system .zoom-indicator-panel input[type="range"]::-moz-range-track {
    background: #3c3c3c !important;
    border: 1px solid #474747 !important;
}

.billing-section {
    padding: 30px;
}
.current-plan-card {
    background: linear-gradient(135deg, #1b2030 0%, #15161c 100%);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 10px;
    margin: 16px 0 24px 0;
}
.current-plan-card .plan-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.current-plan-card h3 {
    font-size: 24px;
    color: var(--color-accent);
    font-weight: 800;
    margin: 4px 0;
}
.current-plan-card .plan-desc {
    font-size: 12px;
    color: var(--text-secondary);
}
.upgrade-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tier-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}
.tier-card:hover {
    border-color: var(--color-accent);
}
.tier-card-active {
    border-color: var(--color-success) !important;
}
.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tier-header h4 {
    font-size: 15px;
    font-weight: 700;
}
.tier-header .price {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 800;
}
.tier-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.workspace-header {
    min-height: 52px;
    height: auto;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 16px;
    gap: 8px 16px;
    z-index: 10;
    flex-shrink: 0;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 24px;
    flex-shrink: 0;
}
.board-title-display {
    color: var(--text-secondary);
    font-size: 14px;
    border-left: 1.5px solid var(--color-border);
    padding-left: 20px;
    font-weight: 500;
}
.header-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    flex-shrink: 1;
}
.toolbar-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}
.toolbar-checkbox input {
    position: absolute;
    opacity: 0;
    width: 14px;
    height: 14px;
    pointer-events: none;
    margin: 0;
}
.custom-chk {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--text-secondary);
    border-radius: 2px;
    display: inline-block;
    position: relative;
    transition: all 0.15s;
}
.toolbar-checkbox input:checked + .custom-chk {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.toolbar-checkbox input:checked + .custom-chk::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 6px;
    border: solid white;
    transform: rotate(45deg);
}
.toolbar-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}
.toolbar-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
}
.switch-slider {
    width: 28px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-block;
    position: relative;
    border-radius: 16px;
    transition: background-color 0.2s;
}
.switch-slider::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: transform 0.2s;
}
.toolbar-switch input:checked + .switch-slider {
    background-color: var(--color-accent);
}
.toolbar-switch input:checked + .switch-slider::after {
    transform: translateX(12px);
}
.toolbar-select-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0;
}
.header-select {
    background-color: #12131a;
    background: #12131a;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}
.header-select option {
    background-color: #12131a !important;
    background: #12131a !important;
    color: var(--text-primary) !important;
}
.grid-spacing-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 20px;
}
.grid-spacing-control input[type="range"],
.zoom-indicator-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
}
#grid-spacing-slider,
.grid-spacing-control input[type="range"]#grid-spacing-slider {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}
.grid-spacing-control input[type="range"]::-webkit-slider-value,
.zoom-indicator-panel input[type="range"]::-webkit-slider-value {
    background: var(--color-accent);
}
.grid-spacing-control input[type="range"]::-webkit-slider-thumb,
.zoom-indicator-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 4px var(--color-accent);
}
.grid-spacing-control span {
    font-size: 12px;
    font-weight: 600;
    min-width: 36px;
    color: var(--text-primary);
}
.zoom-indicator-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 20px;
}
.header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.06);
}
.nav-btn:disabled,
.nav-btn.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background-color: transparent !important;
    color: var(--text-secondary) !important;
    pointer-events: none !important;
}
.nav-btn svg {
    opacity: 0.8;
}
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    background-color: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
}
.dropdown-menu button {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px 14px;
    text-align: left;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.dropdown-menu button:hover {
    background-color: var(--bg-card-hover);
    color: var(--color-accent);
}
.dropdown-wrapper:hover .dropdown-menu {
    display: block;
}
.viewport {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    cursor: grab;
    background-color: var(--bg-darkest);
}
.viewport:active {
    cursor: grabbing;
}
.canvas {
    position: absolute;
    width: 100000px;
    height: 100000px;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    background: transparent;
}
.grid-background {
    background-size: 1998px 1998px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='0' stroke='%2300d2ff' stroke-width='3' stroke-opacity='0.09' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='0' x2='100' y2='0' stroke='%2300d2ff' stroke-width='1.1' stroke-opacity='0.42' stroke-dasharray='8,6' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='0' x2='0' y2='100' stroke='%2300d2ff' stroke-width='3' stroke-opacity='0.09' shape-rendering='crispEdges'/%3E%3Cline x1='0' y1='0' x2='0' y2='100' stroke='%2300d2ff' stroke-width='1.1' stroke-opacity='0.42' stroke-dasharray='8,6' shape-rendering='crispEdges'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%2300d2ff' fill-opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-color: var(--bg-darkest);
}
.idea-note {
    position: absolute;
    border-radius: 7.5% !important;
    padding: 0;
    cursor: move;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    overflow: hidden;
    color: #ffffff !important;
}
.idea-note:hover {
    box-shadow: 0 0 16px rgba(0, 176, 255, 0.45);
}
.idea-note.selected {
    border: 8px solid #00d2ff !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.4), 0 0 35px rgba(0, 210, 255, 0.95), 0 0 60px rgba(0, 176, 255, 0.7) !important;
}
.note-header-wrapper {
    flex: 0 0 auto;
    position: relative;
    padding: 36px 48px 16px 48px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    transition: height 0.2s ease, flex 0.2s ease, padding 0.2s ease;
}
.note-header-wrapper.collapsed {
    height: 24px !important;
    flex: 0 0 24px !important;
    padding: 6px 48px !important;
}
.note-header-wrapper.collapsed .note-header {
    display: none !important;
}
.note-header {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0 2px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    outline: none;
    border: 1px solid transparent;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}
.note-header::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.note-details-wrapper {
    flex: 1 1 auto;
    position: relative;
    padding: 16px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: height 0.2s ease, flex 0.2s ease, padding 0.2s ease;
}
.note-details {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 2px;
    color: #ffffff !important;
    cursor: inherit;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    border: 1px solid transparent;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}
.note-header,
.group-title-label {
    user-select: none;
    -webkit-user-select: none;
}
.note-header[contenteditable="true"],
.note-details[contenteditable="true"],
.group-title-label[contenteditable="true"] {
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}
.note-details::-webkit-scrollbar,
.note-details-wrapper::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}
.note-details::-webkit-scrollbar-track,
.note-details-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    margin: 4px 0;
}
.note-details::-webkit-scrollbar-thumb,
.note-details-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 7px;
}
.note-details::-webkit-scrollbar-thumb:hover,
.note-details-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.note-header::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.note-header::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}
body.theme-paper .note-details::-webkit-scrollbar-thumb,
body.theme-paper .note-details-wrapper::-webkit-scrollbar-thumb {
    background: rgba(90, 74, 56, 0.45);
}
body.theme-paper .note-details::-webkit-scrollbar-thumb:hover,
body.theme-paper .note-details-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 74, 56, 0.75);
}
body.theme-whiteboard .note-details::-webkit-scrollbar-thumb,
body.theme-whiteboard .note-details-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
}
body.theme-whiteboard .note-details::-webkit-scrollbar-thumb:hover,
body.theme-whiteboard .note-details-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.65);
}
.note-tags-wrapper {
    flex: 0 0 auto;
    position: relative;
    padding: 16px 48px 36px 48px;
    box-sizing: border-box;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    overflow: hidden !important;
    width: 100%;
    transition: height 0.2s ease, flex 0.2s ease, padding 0.2s ease;
}

.note-tags-dict {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
}
.note-tag-dict-pill {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.85) 0%, rgba(0, 176, 255, 0.75) 65%, rgba(18, 19, 24, 0.88) 100%);
    border: 1.5px solid #00b0ff;
    box-shadow: 0 2px 8px rgba(0, 176, 255, 0.45);
    color: #ffffff !important;
    padding: 3px 20px !important;
    margin: 2px 4px;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.hide-headers .note-header-wrapper {
    display: none !important;
}
.hide-details .note-details-wrapper {
    display: none !important;
}
.hide-tags .note-tags-wrapper {
    display: none !important;
}
.hide-tags .note-tags-dict {
    display: none !important;
}
.idea-group-card {
    position: absolute;
    cursor: move;
    overflow: visible !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.idea-note.dragging, .idea-group-card.dragging {
    z-index: 2000 !important;
}
.idea-group-card.selected .group-stack-top {
    border: 8px solid #00d2ff !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.4), 0 0 35px rgba(0, 210, 255, 0.95), 0 0 60px rgba(0, 176, 255, 0.7) !important;
}
.idea-group-card.selected .group-stack-top .idea-note {
    border: none !important;
    box-shadow: none !important;
}
.group-stack-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #12131a;
    border-radius: 7.5% !important;
    border-top: 2px solid rgba(255, 255, 255, 0.45);
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    border-right: 3px solid rgba(0, 0, 0, 0.65);
    border-bottom: 3px solid rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    transition: transform 0.2s ease, left 0.15s ease-out, top 0.15s ease-out, box-shadow 0.2s ease;
}
.bottom-layer {
    left: 16px;
    top: 16px;
    z-index: 1;
    opacity: 0.9;
    filter: brightness(0.78);
    box-shadow: 6px 9px 18px rgba(0, 0, 0, 0.65);
}
.middle-layer {
    left: 8px;
    top: 8px;
    z-index: 2;
    opacity: 0.95;
    filter: brightness(0.9);
    box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.55);
}
.group-stack-top {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #12131a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    border-radius: 7.5% !important;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 3px solid rgba(0, 0, 0, 0.7);
    border-bottom: 3px solid rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.group-stack-top .idea-note {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    background-color: #12131a;
    border-radius: 7.5% !important;
}
.group-navigator-overlay {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: -1px !important;
    z-index: 100 !important;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.28) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 6px solid #00b0ff;
    border-bottom: none !important;
    border-top-left-radius: 32px !important;
    border-top-right-radius: 32px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 92px;
    font-weight: 700;
    color: #ffffff !important;
    box-shadow: 0 -8px 24px rgba(0, 176, 255, 0.35);
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.2s ease-in-out, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.group-navigator-overlay::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
}
.group-navigator-overlay:hover,
.idea-group-card:hover .group-navigator-overlay,
.idea-group-card.selected .group-navigator-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.group-nav-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-weight: 800;
    padding: 4px 24px;
    font-size: 108px;
    line-height: 1;
}
.group-nav-btn:hover {
    color: inherit;
    opacity: 0.75;
}
.group-header-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: rgba(21, 22, 28, 0.85);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}
.group-header-label:focus {
    background-color: rgba(21, 22, 28, 0.98);
    border-color: var(--color-accent);
}
.group-ungroup-btn {
    position: absolute;
    top: -65px;
    left: -65px;
    z-index: 200 !important;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(151, 28, 28, 0.95);
    color: white;
    border: 8px solid rgba(255, 255, 255, 0.7);
    font-size: 96px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.2s, transform 0.2s;
}
.group-ungroup-btn:hover,
.idea-group-card:hover .group-ungroup-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.group-ungroup-btn:hover {
    background-color: #971c1c;
    transform: scale(1.15);
}
.group-trash-btn {
    position: absolute;
    top: -65px;
    right: -65px;
    z-index: 200 !important;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(151, 28, 28, 0.95);
    color: white;
    border: 8px solid rgba(255, 255, 255, 0.7);
    font-size: 96px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
}
.group-trash-btn svg {
    width: 140px;
    height: 140px;
    stroke: currentColor;
    stroke-width: 2.6;
}
.group-trash-btn:hover,
.idea-group-card:hover .group-trash-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.group-trash-btn:hover {
    background-color: #b91c1c;
    transform: scale(1.15);
}
.group-empty-placeholder {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
    border: 2px dashed var(--color-border);
    border-radius: 6px;
    background-color: var(--bg-card);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lasso-selection {
    display: none;
    position: absolute;
    background-color: rgba(0, 176, 255, 0.12);
    border: 1px solid var(--color-accent);
    border-radius: 3px;
    pointer-events: none;
    z-index: 99;
}
.collab-cursor {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ff5252;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.6);
}
.collab-cursor-label {
    position: absolute;
    top: -18px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    width: 90%;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}
.collaborators-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px;
}
.collaborators-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.collaborators-list li:last-child {
    border-bottom: none;
}
.collaborators-list .role-tag {
    color: var(--color-accent);
    font-weight: 600;
}
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.divider-horizontal {
    height: 1px;
    background-color: var(--color-border);
}
.export-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.toggle-option {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    cursor: pointer;
}
.controls-dialog-border {
    width: 90%;
    max-width: 980px;
    border: 1.5px solid var(--color-accent);
    border-radius: 12px;
    background-color: #17181c;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.dialog-heading {
    text-align: center;
    color: var(--color-accent);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}
.controls-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}
.control-card {
    background-color: #21232c;
    border-radius: 6px;
    padding: 16px 14px;
    min-height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.15s, background-color 0.15s;
}
.control-card:hover {
    background-color: #262935;
    transform: translateY(-2px);
}
.trigger-lbl {
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}
.action-lbl {
    color: var(--text-secondary);
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 400;
}
.close-btn-container {
    display: flex;
    justify-content: center;
}
.dialog-close-btn {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.dialog-close-btn:hover {
    background-color: #0091ea;
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.4);
}
.font-12 { font-size: 12px; }
.loading-indicator {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    grid-column: 1 / -1;
}
@media (max-width: 1024px) {
    .controls-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
#workspace-screen #framework-toggle-tab {
    display: none;
}
#workspace-screen.active #framework-toggle-tab {
    display: flex;
}
#framework-toggle-tab {
    position: fixed;
    top: 90px;
    right: 0;
    z-index: 995;
    width: 28px;
    height: 48px;
    background: rgba(21, 22, 29, 0.92);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--color-accent);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
}
#framework-toggle-tab:hover {
    background: rgba(30, 32, 44, 0.98);
    color: #ffffff;
    box-shadow: -6px 0 20px rgba(0, 230, 118, 0.3);
}
#framework-toggle-tab.active {
    right: 350px;
}
#framework-toggle-tab.active #framework-toggle-icon {
    transform: rotate(180deg);
}
#framework-toggle-icon {
    transition: transform 0.3s ease;
    pointer-events: none;
}
.framework-panel {
    position: fixed;
    top: 60px;
    right: -350px;
    width: 350px;
    height: calc(100vh - 60px);
    z-index: 990;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 1px solid var(--color-border);
    background: rgba(21, 22, 29, 0.9) !important;
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
}
.framework-panel.active {
    right: 0;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}
.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent);
}
.close-panel-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
.close-panel-btn:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}
.panel-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.panel-subtitle.has-selection {
    border-left-color: #00e676;
    background: rgba(0, 230, 118, 0.08);
}
.panel-subtitle.no-selection {
    border-left-color: #ffb300;
    background: rgba(255, 179, 0, 0.08);
}
#selected-items-count {
    transition: color 0.2s ease;
}
#selected-items-count.has-selection {
    color: #00e676;
}
#selected-items-count.no-selection {
    color: #ffb300;
}
.panel-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}
.framework-item {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, background-color 0.2s;
}
.framework-item:hover {
    border-color: rgba(0, 176, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}
.framework-header {
    display: flex;
    flex-direction: column;
    cursor: context-menu;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.framework-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.auto-tag-fw-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px !important;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124, 77, 255, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none;
    align-self: flex-end !important;
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 8px;
}
.auto-tag-fw-btn:hover {
    background: linear-gradient(135deg, #b388ff 0%, #7c4dff 100%);
    box-shadow: 0 3px 8px rgba(124, 77, 255, 0.6);
    transform: translateY(-1px);
}
.auto-tag-fw-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
@keyframes tagSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.tag-spinner-icon {
    animation: tagSpinnerRotate 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 5px;
}
.tag-spinner-pill {
    font-weight: 600;
    letter-spacing: 0.3px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.framework-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.framework-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.framework-tag-btn {
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    font-size: 12px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    border: 1.5px solid var(--color-accent);
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.85) 0%, rgba(0, 176, 255, 0.75) 65%, rgba(18, 19, 24, 0.88) 100%);
    box-shadow: 0 2px 8px rgba(0, 176, 255, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    white-space: nowrap !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.framework-tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.6);
}
.framework-tag-btn.active {
    outline: 2px solid #fff !important;
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.9);
    font-weight: 800;
}
.add-fw-btn {
    margin-top: 10px;
    align-self: flex-start;
    width: 100%;
}
.add-tag-btn {
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 65%, rgba(18, 19, 24, 0.88) 100%);
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1.2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    align-self: flex-end !important;
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 4px;
    white-space: nowrap !important;
}
.add-tag-btn:hover {
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.3) 0%, rgba(0, 176, 255, 0.2) 65%, rgba(18, 19, 24, 0.88) 100%);
    border-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 176, 255, 0.4);
}
.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 4px 0px;
    max-height: 100%;
    overflow: hidden !important;
    width: 100%;
}
.note-tag-pill {
    font-size: 9px;
    font-weight: 800 !important;
    padding: 3px 20px !important;
    margin: 2px 4px;
    line-height: 1.2;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
    white-space: nowrap !important;
    color: #ffffff !important;
    border: 1.5px solid var(--color-accent);
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.85) 0%, rgba(0, 176, 255, 0.75) 65%, rgba(18, 19, 24, 0.88) 100%);
    box-shadow: 0 2px 8px rgba(0, 176, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.note-tag-more-btn {
    font-size: inherit !important;
    font-weight: 900 !important;
    padding: 3px 14px !important;
    margin: 2px 4px;
    line-height: 1;
    border-radius: 9999px !important;
    background-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    cursor: pointer;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.95), 3px 4px 8px rgba(0, 0, 0, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    user-select: none;
    white-space: nowrap !important;
}
.note-tag-more-btn:hover {
    background-color: var(--color-accent);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.6) !important;
}
.context-popover {
    position: absolute;
    display: none;
    z-index: 1200;
    width: 250px;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    padding: 15px;
    color: var(--text-primary);
}
.context-popover.active {
    display: block;
}
.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
}
.popover-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}
.popover-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popover-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.popover-input-group label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}
.popover-input-group input,
.popover-input-group textarea {
    background: #12131a;
    border: 1px solid var(--color-border);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    resize: vertical;
}
.popover-input-group input[type="color"] {
    padding: 2px;
    height: 32px;
    width: 100%;
    cursor: pointer;
}
.popover-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}
.grid-hover-plus {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
}
.grid-hover-plus.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.hover-plus-btn {
    pointer-events: auto;
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: var(--bg-darker);
    color: white;
    border: 5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, border-color 0.2s, opacity 0.2s;
    opacity: 0.9;
}
.hover-plus-btn:hover {
    transform: scale(1.15);
    opacity: 1;
    background-color: var(--bg-card-hover);
    border-color: var(--color-accent);
}
.hover-plus-btn svg {
    width: 55%;
    height: 55%;
    display: block;
}
.hover-plus-menu {
    position: absolute;
    top: calc(50% + 22px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}
.hover-plus-menu.active {
    display: flex;
}
.hover-plus-menu button {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px 14px;
    text-align: left;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.hover-plus-menu button:hover {
    background-color: var(--bg-card-hover);
    color: var(--color-accent);
}
.workspace-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border-top: 1px solid var(--color-border);
    padding: 4px 16px;
    min-height: 46px;
    height: 46px;
    font-size: 12px;
    color: var(--text-secondary);
    z-index: 10;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: visible !important;
}
.board-title-status {
    font-weight: 700;
    color: var(--text-primary);
}
.board-title-status.clickable {
    cursor: pointer;
    transition: color 0.15s;
}
.board-title-status.clickable:hover {
    color: var(--color-accent);
}
.bottom-board-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible !important;
    padding: 6px 2px;
    margin-left: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bottom-board-nav::-webkit-scrollbar {
    display: none;
}
.bottom-board-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid #00b0ff;
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.25);
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    max-width: none;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}
.bottom-board-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.32) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #80d8ff;
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.45);
    transform: translateY(-2px);
}
.bottom-board-pill.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.85) 0%, rgba(0, 145, 234, 0.95) 100%);
    border: 2px solid #80d8ff !important;
    box-shadow: 0 0 20px rgba(0, 176, 255, 0.95), 0 0 10px rgba(0, 176, 255, 0.6) !important;
    font-weight: 800;
}
.bottom-board-pill.recycle-pill {
    background: linear-gradient(135deg, rgba(168, 35, 106, 0.28) 0%, rgba(21, 22, 28, 0.95) 100%);
    border-color: #db2777;
    color: #f472b6;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.25);
}
.bottom-board-pill.recycle-pill:hover {
    background: linear-gradient(135deg, rgba(168, 35, 106, 0.38) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #f472b6;
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}
.bottom-board-pill.recycle-pill.active {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.85) 0%, rgba(168, 35, 106, 0.95) 100%);
    border: 2px solid #f472b6 !important;
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.95), 0 0 10px rgba(219, 39, 119, 0.6) !important;
    color: #ffffff;
    font-weight: 800;
}
.bottom-board-pill.clipboard-pill {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.22) 0%, rgba(21, 22, 28, 0.95) 100%);
    border-color: #7c4dff;
    color: #b388ff;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.25);
}
.bottom-board-pill.clipboard-pill:hover {
    background: linear-gradient(135deg, rgba(101, 31, 255, 0.32) 0%, rgba(25, 26, 35, 0.95) 100%);
    border-color: #b388ff;
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}
.bottom-board-pill.clipboard-pill.active {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.85) 0%, rgba(101, 31, 255, 0.95) 100%);
    border: 2px solid #b388ff !important;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.95), 0 0 10px rgba(124, 77, 255, 0.6) !important;
    color: #ffffff;
    font-weight: 800;
}
.bottom-board-pill.drag-over {
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6) !important;
}
.bottom-board-overflow-btn {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.18) 0%, rgba(21, 22, 28, 0.95) 100%);
    border: 1.5px solid rgba(0, 176, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 176, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    flex-grow: 0;
    white-space: nowrap;
    margin-left: 14px;
    margin-right: 18px;
}
.bottom-board-overflow-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}
.bottom-board-popup-card {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    width: 280px;
    box-sizing: border-box;
    opacity: 1 !important;
    animation: fadeInPopupCard 0.15s ease-out;
}
.bottom-board-popup-card .board-card {
    margin: 0;
    min-height: auto;
    background: #15161c !important;
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 176, 255, 0.5);
}
body:not(.theme-paper):not(.theme-whiteboard):not(.theme-system) .bottom-board-popup-card .board-card.system-board-card,
body.theme-neon .bottom-board-popup-card .board-card.system-board-card {
    background: #171328 !important;
}
body:not(.theme-paper):not(.theme-whiteboard):not(.theme-system) .bottom-board-popup-card .board-card.system-board-card.recycle-board-card,
body.theme-neon .bottom-board-popup-card .board-card.system-board-card.recycle-board-card {
    background: #25121e !important;
}
body:not(.theme-paper):not(.theme-whiteboard):not(.theme-system) .bottom-board-popup-card .board-card.system-board-card.clipboard-board-card,
body.theme-neon .bottom-board-popup-card .board-card.system-board-card.clipboard-board-card {
    background: #171328 !important;
}
body:not(.theme-paper):not(.theme-whiteboard):not(.theme-system) .bottom-board-popup-card .board-card.shared-board-card,
body.theme-neon .bottom-board-popup-card .board-card.shared-board-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, #15161c 100%) !important;
    border: 1.5px solid #10b981 !important;
}
body.theme-paper .bottom-board-popup-card .board-card,
body.theme-paper .bottom-board-popup-card .board-card.system-board-card,
body.theme-paper .bottom-board-popup-card .board-card.recycle-board-card,
body.theme-paper .bottom-board-popup-card .board-card.clipboard-board-card {
    background: linear-gradient(175deg, #f9f3e6 0%, #ede2cb 100%) !important;
    opacity: 1 !important;
}
body.theme-paper .bottom-board-popup-card .board-card.shared-board-card {
    background: linear-gradient(175deg, #f0f7f2 0%, #d8ebd9 100%) !important;
    border: 2px solid #059669 !important;
}
body.theme-whiteboard .bottom-board-popup-card .board-card,
body.theme-whiteboard .bottom-board-popup-card .board-card.system-board-card,
body.theme-whiteboard .bottom-board-popup-card .board-card.recycle-board-card,
body.theme-whiteboard .bottom-board-popup-card .board-card.clipboard-board-card {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    opacity: 1 !important;
}
body.theme-whiteboard .bottom-board-popup-card .board-card.shared-board-card {
    background: linear-gradient(175deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 2px solid #16a34a !important;
}
body.theme-system .bottom-board-popup-card .board-card {
    background: #252526 !important;
    opacity: 1 !important;
}
body.theme-system .bottom-board-popup-card .board-card.shared-board-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, #252526 100%) !important;
    border: 1px solid #10b981 !important;
    border-left: 4px solid #10b981 !important;
}
.bottom-board-popup-card .board-card,
.bottom-board-popup-card .board-card h3,
.bottom-board-popup-card .board-card p,
.bottom-board-popup-card .board-card .board-card-metadata,
.bottom-board-popup-card .board-card .board-card-counts,
.bottom-board-popup-card .board-card .board-card-grid-size,
.bottom-board-popup-card .board-card .board-card-footer,
.bottom-board-popup-card .board-card .board-card-footer span,
.bottom-board-popup-card .board-card .board-card-tag,
body.theme-neon .bottom-board-popup-card .board-card,
body.theme-neon .bottom-board-popup-card .board-card * {
    color: #ffffff !important;
}
body.theme-paper .bottom-board-popup-card .board-card,
body.theme-paper .bottom-board-popup-card .board-card h3,
body.theme-paper .bottom-board-popup-card .board-card p,
body.theme-paper .bottom-board-popup-card .board-card .board-card-metadata,
body.theme-paper .bottom-board-popup-card .board-card .board-card-counts,
body.theme-paper .bottom-board-popup-card .board-card .board-card-grid-size,
body.theme-paper .bottom-board-popup-card .board-card .board-card-footer,
body.theme-paper .bottom-board-popup-card .board-card .board-card-footer span,
body.theme-paper .bottom-board-popup-card .board-card .board-card-tag,
body.theme-paper .bottom-board-popup-card .board-card *,
body.theme-whiteboard .bottom-board-popup-card .board-card,
body.theme-whiteboard .bottom-board-popup-card .board-card * {
    color: #000000 !important;
}
@keyframes fadeInPopupCard {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.color-circle-option:hover {
    transform: scale(1.18);
    filter: brightness(1.2);
}
.color-circle-option.active {
    transform: scale(1.18);
}
.pipette-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 176, 255, 0.3);
}
.framework-export-checkbox {
    accent-color: var(--color-accent);
    width: 14px;
    height: 14px;
    margin-right: 6px;
}
.framework-name[contenteditable="true"], .framework-desc[contenteditable="true"] {
    border: 1px dashed var(--color-accent);
    border-radius: 3px;
    padding: 2px 4px;
}
[contenteditable="true"]:focus, .framework-tag-btn[contenteditable="true"]:focus {
    background-color: var(--bg-darkest) !important;
    color: #ffffff !important;
    outline: none !important;
    border: 1.5px dashed var(--color-accent) !important;
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.5) !important;
    border-radius: 4px;
}

.print-orient-label {
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    padding: 8px;
    text-align: center;
    transition: all 0.2s;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
}
.print-orient-label.active {
    border-color: var(--color-accent) !important;
    background-color: rgba(0, 176, 255, 0.15) !important;
    color: #ffffff !important;
}
.print-preview-thumbnail {
    background-color: var(--bg-dark);
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.print-preview-thumbnail:hover {
    border-color: var(--color-accent);
}
.print-preview-thumbnail-header {
    background-color: rgba(0,0,0,0.4);
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.print-preview-thumbnail-body {
    flex-grow: 1;
    position: relative;
    background-color: var(--bg-darkest);
    overflow: hidden;
}
.print-page-canvas {
    position: absolute;
    transform-origin: 0 0;
}

.print-monochrome-filter {
    filter: grayscale(100%) contrast(125%) !important;
}

.print-page-gridlines {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
}

.print-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d0d4dc;
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    font-family: 'Outfit', sans-serif;
}

.print-footer-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #d0d4dc;
    padding-top: 4px;
    margin-top: 8px;
    font-size: 9.5px;
    color: #6b7280;
    font-family: 'Outfit', sans-serif;
}

@media print {
    html, body {
        width: 100% !important;
        height: 100% !important;
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body > *:not(#print-container) {
        display: none !important;
    }
    #print-container {
        display: block !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-page {
        page-break-after: always !important;
        page-break-inside: avoid !important;
        break-after: page !important;
        position: relative !important;
        overflow: hidden !important;
        background: white !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .print-margin-normal {
        padding: 40px !important;
    }
    .print-margin-narrow {
        padding: 16px !important;
    }
    .print-margin-wide {
        padding: 68px !important;
    }
    .print-margin-none {
        padding: 0px !important;
    }

    .print-page-landscape {
        width: 1120px !important;
        height: 865px !important;
    }
    .print-page-portrait {
        width: 865px !important;
        height: 1120px !important;
    }
}
.fw-link-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 6px;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
    text-decoration: none;
    vertical-align: middle;
    margin-left: 8px;
    box-sizing: border-box;
}
.fw-link-icon:hover {
    background: var(--color-accent-dim) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 176, 255, 0.2);
}
.fw-link-icon svg {
    width: 14px;
    height: 14px;
}

.framework-tags-list {
    margin-left: 24px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    position: relative;
    width: calc(100% - 24px);
}
.framework-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 18px 3px 14px !important;
    border-radius: 9999px !important;
    font-size: 10px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.2;
    user-select: none;
    position: relative;
    transition: opacity 0.15s;
    border: 1px solid transparent;
    width: max-content;
    max-width: 100%;
    margin: 1px 0;
    white-space: nowrap !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6) !important;
}
.tag-checkbox {
    margin: 0;
    cursor: pointer;
    width: 11px;
    height: 11px;
    accent-color: #00b0ff;
    flex-shrink: 0;
}
.framework-tag-item.active {
    border-color: #ffffff;
}
.tag-drag-handle {
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    opacity: 0.6;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.tag-drag-handle:hover {
    opacity: 1;
}
.tag-name-lbl {
    cursor: pointer;
    font-size: 10px;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}
.tag-separator {
    height: 12px;
    margin: -6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    width: 100%;
    align-self: stretch;
}
.tag-separator-line {
    width: 100%;
    height: 0px;
    background-color: var(--color-accent);
    transition: height 0.15s;
    border-radius: 1.5px;
}


/* ==========================================================================
   THEME EXTENSIONS: Framework Panel & Import Framework Screen (Library Modal)
   ========================================================================== */

/* 1. Paper Theme Framework Panel & Import Screen Extensions */
body.theme-paper .framework-panel,
body.theme-paper #modal-import-frameworks-library .modal-content,
body.theme-paper #modal-confirm-delete-framework .modal-content,
body.theme-paper #modal-export .modal-content,
body.theme-paper #modal-create-board .modal-content,
body.theme-paper #modal-share .modal-content,
body.theme-paper #modal-print .modal-content,
body.theme-paper #modal-custom-dialog .modal-content,
body.theme-paper #modal-group-tag-confirm .modal-content,
body.theme-paper #modal-group-color-confirm .modal-content,
body.theme-paper #modal-summarise-sliders .modal-content,
body.theme-paper #modal-summarise-sliders .modal-card,
body.theme-paper #modal-add-framework .modal-content,
body.theme-paper #modal-export-framework .modal-content,
body.theme-paper #modal-add-tag .modal-content,
body.theme-paper #framework-context-popover {
    background: linear-gradient(175deg, #f7f1e3 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    box-shadow: 3px 6px 16px rgba(50, 38, 24, 0.22) !important;
}

body.theme-paper .framework-panel *,
body.theme-paper #modal-import-frameworks-library *,
body.theme-paper #modal-confirm-delete-framework *,
body.theme-paper #modal-export *,
body.theme-paper #modal-create-board *,
body.theme-paper #modal-share *,
body.theme-paper #modal-print *,
body.theme-paper #modal-custom-dialog *,
body.theme-paper #modal-group-tag-confirm *,
body.theme-paper #modal-group-color-confirm *,
body.theme-paper #modal-summarise-sliders *,
body.theme-paper #modal-add-framework *,
body.theme-paper #modal-export-framework *,
body.theme-paper #modal-add-tag *,
body.theme-paper #framework-context-popover * {
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}

body.theme-paper #framework-toggle-tab {
    background: #f4e9d7 !important;
    border: 1.5px solid #5a4a38 !important;
    border-right: none !important;
    color: #000000 !important;
}

body.theme-paper #framework-toggle-tab svg,
body.theme-paper .framework-panel svg,
body.theme-paper #modal-import-frameworks-library svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-paper .framework-item,
body.theme-paper #library-frameworks-list-container .glass-panel {
    background: linear-gradient(175deg, #f9f3e6 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    border-radius: 2px 7px 3px 9px !important;
    box-shadow: 2px 4px 10px rgba(50, 38, 24, 0.2) !important;
}

body.theme-paper .framework-name {
    color: #000000 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    font-family: 'Marck Script', 'Dancing Script', cursive !important;
}

body.theme-paper .framework-desc,
body.theme-paper .panel-subtitle {
    color: #000000 !important;
    font-family: 'Marck Script', cursive !important;
}

/* Paper Theme Framework Buttons (Matching Paper Theme Buttons & Tags) */
body.theme-paper .framework-panel button,
body.theme-paper #modal-import-frameworks-library button,
body.theme-paper .add-fw-btn,
body.theme-paper .auto-tag-fw-btn,
body.theme-paper .close-panel-btn {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    border: 1px solid #635341 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
}

body.theme-paper .framework-panel button:hover,
body.theme-paper #modal-import-frameworks-library button:hover,
body.theme-paper .add-fw-btn:hover,
body.theme-paper .auto-tag-fw-btn:hover {
    background: linear-gradient(to right, rgba(180, 140, 90, 0.75) 0%, rgba(244, 238, 225, 0.5) 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 1px 2px 6px rgba(50, 38, 24, 0.3) !important;
}

/* Paper Theme Framework Tags (Matching Idea Tags) */
body.theme-paper .framework-tag-btn,
body.theme-paper .framework-tag-item,
body.theme-paper .tag-pill,
body.theme-paper .fw-tag-badge {
    background: linear-gradient(to right, rgba(140, 110, 80, 0.45) 0%, transparent 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Architects Daughter', cursive, sans-serif !important;
    letter-spacing: 0.5px !important;
    border-radius: 2px 5px 2px 6px !important;
    box-shadow: 1px 1px 3px rgba(50, 38, 24, 0.15) !important;
    text-shadow: none !important;
}

/* Paper Theme Search Inputs & Modal Controls */
body.theme-paper #fw-search-input,
body.theme-paper #library-fw-search-input,
body.theme-paper .framework-search-bar,
body.theme-paper #modal-export input[type="text"],
body.theme-paper #modal-export input[type="file"],
body.theme-paper #modal-share input[type="email"],
body.theme-paper #modal-share select,
body.theme-paper #modal-export select {
    background: #f4e9d7 !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
    font-family: 'Marck Script', cursive !important;
}

body.theme-paper #modal-export .btn,
body.theme-paper #modal-share .btn,
body.theme-paper #modal-custom-dialog .btn,
body.theme-paper #modal-create-board .btn,
body.theme-paper #modal-group-tag-confirm .btn,
body.theme-paper #modal-group-color-confirm .btn,
body.theme-paper #modal-summarise-sliders .btn {
    background: #f4e9d7 !important;
    border: 1.5px solid #5a4a38 !important;
    color: #000000 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    box-shadow: 1px 2px 5px rgba(50, 38, 24, 0.2) !important;
}

body.theme-paper #modal-summarise-sliders .summarise-stats-box,
body.theme-paper #modal-summarise-sliders .slider-val-badge {
    background: rgba(140, 110, 80, 0.15) !important;
    border: 1px solid #706454 !important;
    color: #000000 !important;
}

body.theme-paper #modal-share .collaborators-list li {
    background: #f4e9d7 !important;
    border: 1px dashed #5a4a38 !important;
    color: #000000 !important;
}


/* 2. Whiteboard Theme Framework Panel & Import Screen Extensions */
body.theme-whiteboard .framework-panel,
body.theme-whiteboard #modal-import-frameworks-library .modal-content,
body.theme-whiteboard #modal-confirm-delete-framework .modal-content,
body.theme-whiteboard #modal-export .modal-content,
body.theme-whiteboard #modal-create-board .modal-content,
body.theme-whiteboard #modal-share .modal-content,
body.theme-whiteboard #modal-print .modal-content,
body.theme-whiteboard #modal-custom-dialog .modal-content,
body.theme-whiteboard #modal-group-tag-confirm .modal-content,
body.theme-whiteboard #modal-group-color-confirm .modal-content,
body.theme-whiteboard #modal-summarise-sliders .modal-content,
body.theme-whiteboard #modal-summarise-sliders .modal-card,
body.theme-whiteboard #modal-add-framework .modal-content,
body.theme-whiteboard #modal-export-framework .modal-content,
body.theme-whiteboard #modal-add-tag .modal-content,
body.theme-whiteboard #framework-context-popover {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
    box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.12) !important;
}

body.theme-whiteboard .framework-panel *,
body.theme-whiteboard #modal-import-frameworks-library *,
body.theme-whiteboard #modal-confirm-delete-framework *,
body.theme-whiteboard #modal-export *,
body.theme-whiteboard #modal-create-board *,
body.theme-whiteboard #modal-share *,
body.theme-whiteboard #modal-print *,
body.theme-whiteboard #modal-custom-dialog *,
body.theme-whiteboard #modal-group-tag-confirm *,
body.theme-whiteboard #modal-group-color-confirm *,
body.theme-whiteboard #modal-summarise-sliders *,
body.theme-whiteboard #modal-add-framework *,
body.theme-whiteboard #modal-export-framework *,
body.theme-whiteboard #modal-add-tag *,
body.theme-whiteboard #framework-context-popover * {
    color: #000000 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive, sans-serif !important;
}

body.theme-whiteboard #framework-toggle-tab {
    background: #fef08a !important;
    border: 1.5px solid #ca8a04 !important;
    border-right: none !important;
    color: #000000 !important;
}

body.theme-whiteboard #framework-toggle-tab svg,
body.theme-whiteboard .framework-panel svg,
body.theme-whiteboard #modal-import-frameworks-library svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

body.theme-whiteboard .framework-item,
body.theme-whiteboard #library-frameworks-list-container .glass-panel {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1.5px solid #ca8a04 !important;
    border-radius: 2px 2px 12px 2px !important;
    box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.14) !important;
}

body.theme-whiteboard .framework-name {
    color: #000000 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    font-family: 'Permanent Marker', 'Caveat', cursive !important;
}

body.theme-whiteboard .framework-desc,
body.theme-whiteboard .panel-subtitle {
    color: #000000 !important;
    font-family: 'Caveat', 'Permanent Marker', cursive !important;
}

/* Whiteboard Theme Framework Buttons (Bright Sticky Note Yellow) */
body.theme-whiteboard .framework-panel button,
body.theme-whiteboard #modal-import-frameworks-library button,
body.theme-whiteboard .add-fw-btn,
body.theme-whiteboard .auto-tag-fw-btn,
body.theme-whiteboard .close-panel-btn {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-family: 'Caveat', 'Architects Daughter', cursive, sans-serif !important;
    border-radius: 1px 3px 2px 4px !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
}

body.theme-whiteboard .framework-panel button:hover,
body.theme-whiteboard #modal-import-frameworks-library button:hover,
body.theme-whiteboard .add-fw-btn:hover,
body.theme-whiteboard .auto-tag-fw-btn:hover {
    background: linear-gradient(175deg, #fef08a 0%, #fde047 100%) !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Whiteboard Theme Framework Tags (Matching Idea Tags: 'Caveat', 'Permanent Marker') */
body.theme-whiteboard .framework-tag-btn,
body.theme-whiteboard .framework-tag-item,
body.theme-whiteboard .tag-pill,
body.theme-whiteboard .fw-tag-badge {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
    border-radius: 1px 2px 1px 3px !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
    text-shadow: none !important;
}

/* Whiteboard Theme Search Inputs & Modal Controls */
body.theme-whiteboard #fw-search-input,
body.theme-whiteboard #library-fw-search-input,
body.theme-whiteboard .framework-search-bar,
body.theme-whiteboard #modal-export input[type="text"],
body.theme-whiteboard #modal-export input[type="file"],
body.theme-whiteboard #modal-share input[type="email"],
body.theme-whiteboard #modal-share select,
body.theme-whiteboard #modal-export select {
    background: #fef08a !important;
    border: 1.5px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: 'Caveat', 'Permanent Marker', cursive, sans-serif !important;
}

body.theme-whiteboard #modal-export .btn,
body.theme-whiteboard #modal-share .btn,
body.theme-whiteboard #modal-custom-dialog .btn,
body.theme-whiteboard #modal-create-board .btn,
body.theme-whiteboard #modal-group-tag-confirm .btn,
body.theme-whiteboard #modal-group-color-confirm .btn,
body.theme-whiteboard #modal-summarise-sliders .btn {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1.5px solid #ca8a04 !important;
    color: #000000 !important;
    font-family: 'Caveat', 'Architects Daughter', cursive, sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 1px 2px 5px rgba(180, 130, 20, 0.18) !important;
}

body.theme-whiteboard #modal-summarise-sliders .summarise-stats-box,
body.theme-whiteboard #modal-summarise-sliders .slider-val-badge {
    background: linear-gradient(175deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
}

body.theme-whiteboard #modal-share .collaborators-list li {
    background: #fef9c3 !important;
    border: 1px solid #ca8a04 !important;
    color: #000000 !important;
}


/* 3. System Theme Framework Panel & Import Screen Extensions */
body.theme-system .framework-panel,
body.theme-system #modal-import-frameworks-library .modal-content,
body.theme-system #modal-confirm-delete-framework .modal-content,
body.theme-system #modal-export .modal-content,
body.theme-system #modal-create-board .modal-content,
body.theme-system #modal-share .modal-content,
body.theme-system #modal-print .modal-content,
body.theme-system #modal-custom-dialog .modal-content,
body.theme-system #modal-group-tag-confirm .modal-content,
body.theme-system #modal-group-color-confirm .modal-content,
body.theme-system #modal-summarise-sliders .modal-content,
body.theme-system #modal-summarise-sliders .modal-card,
body.theme-system #modal-add-framework .modal-content,
body.theme-system #modal-export-framework .modal-content,
body.theme-system #modal-add-tag .modal-content,
body.theme-system #framework-context-popover {
    background: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-left: 4px solid #007acc !important;
    color: #d4d4d4 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
}

body.theme-system .framework-panel *,
body.theme-system #modal-import-frameworks-library *,
body.theme-system #modal-confirm-delete-framework *,
body.theme-system #modal-export *,
body.theme-system #modal-create-board *,
body.theme-system #modal-share *,
body.theme-system #modal-print *,
body.theme-system #modal-custom-dialog *,
body.theme-system #modal-group-tag-confirm *,
body.theme-system #modal-group-color-confirm *,
body.theme-system #modal-summarise-sliders *,
body.theme-system #modal-add-framework *,
body.theme-system #modal-export-framework *,
body.theme-system #modal-add-tag *,
body.theme-system #framework-context-popover * {
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system #framework-toggle-tab {
    background: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-right: none !important;
    color: #9cdcfe !important;
}

body.theme-system #framework-toggle-tab svg,
body.theme-system .framework-panel svg,
body.theme-system #modal-import-frameworks-library svg {
    color: #9cdcfe !important;
    stroke: #9cdcfe !important;
}

body.theme-system .framework-item,
body.theme-system #library-frameworks-list-container .glass-panel {
    background: #252526 !important;
    border: 1px solid #3c3c3c !important;
    border-left: 4px solid #4ec9b0 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

body.theme-system .framework-name {
    color: #569cd6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system .framework-desc,
body.theme-system .panel-subtitle {
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

/* System Theme Framework Buttons */
body.theme-system .framework-panel button,
body.theme-system #modal-import-frameworks-library button,
body.theme-system .close-panel-btn {
    background-color: #252526 !important;
    border: 1px solid #454545 !important;
    color: #9cdcfe !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body.theme-system .add-fw-btn,
body.theme-system .auto-tag-fw-btn {
    background-color: #0e639c !important;
    border: 1px solid #1177bb !important;
    color: #ffffff !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 6px rgba(14, 99, 156, 0.4) !important;
}

body.theme-system .framework-panel button:hover,
body.theme-system #modal-import-frameworks-library button:hover {
    background-color: #3c3c3c !important;
    border-color: #007acc !important;
    color: #ffffff !important;
}

body.theme-system .add-fw-btn:hover,
body.theme-system .auto-tag-fw-btn:hover {
    background-color: #1177bb !important;
    border-color: #007acc !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.6) !important;
}

/* System Theme Framework Tags (Matching Idea Details / Tags Font: 'Fira Code', 'Consolas', monospace) */
body.theme-system .framework-tag-btn,
body.theme-system .framework-tag-item,
body.theme-system .tag-pill,
body.theme-system .fw-tag-badge {
    background: rgba(0, 122, 204, 0.2) !important;
    color: #ce9178 !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* System Theme Search Inputs & Modal Controls */
body.theme-system #fw-search-input,
body.theme-system #library-fw-search-input,
body.theme-system .framework-search-bar,
body.theme-system #modal-export input[type="text"],
body.theme-system #modal-export input[type="file"],
body.theme-system #modal-share input[type="email"],
body.theme-system #modal-share select,
body.theme-system #modal-export select {
    background: #1e1e1e !important;
    border: 1px solid #007acc !important;
    color: #9cdcfe !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system #modal-export .btn.primary-btn,
body.theme-system #modal-share .btn.primary-btn,
body.theme-system #modal-custom-dialog .btn.primary-btn,
body.theme-system #modal-create-board .btn.primary-btn,
body.theme-system #modal-group-tag-confirm .btn.primary-btn,
body.theme-system #modal-group-color-confirm .btn.primary-btn,
body.theme-system #modal-summarise-sliders .btn.primary-btn {
    background: #0e639c !important;
    border: 1px solid #007acc !important;
    color: #ffffff !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system #modal-export .btn.secondary-btn,
body.theme-system #modal-share .btn.secondary-btn,
body.theme-system #modal-custom-dialog .btn.secondary-btn,
body.theme-system #modal-create-board .btn.secondary-btn,
body.theme-system #modal-group-tag-confirm .btn.secondary-btn,
body.theme-system #modal-group-color-confirm .btn.secondary-btn,
body.theme-system #modal-summarise-sliders .btn.secondary-btn {
    background: #3c3c3c !important;
    border: 1px solid #555555 !important;
    color: #cccccc !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
}

body.theme-system #modal-summarise-sliders .summarise-stats-box,
body.theme-system #modal-summarise-sliders .slider-val-badge {
    background: #1e1e1e !important;
    border: 1px solid #007acc !important;
    color: #9cdcfe !important;
}

body.theme-system #modal-share .collaborators-list li {
    background: #1e1e1e !important;
    border: 1px solid #3c3c3c !important;
    color: #9cdcfe !important;
}

/* Idea Context Menu */
.idea-context-menu {
    position: fixed !important;
    display: none;
    z-index: 2500 !important;
    min-width: 240px;
    max-width: 340px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
    user-select: none;
    background: rgba(21, 22, 28, 0.96) !important;
    border: 1.5px solid #00b0ff;
    color: #ffffff;
    font-family: inherit;
}
.idea-context-menu.active {
    display: block;
}
.idea-context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    color: #ffffff;
}
.idea-context-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}
.idea-context-item:hover {
    background: rgba(0, 176, 255, 0.22);
    color: #00e5ff;
}
.idea-context-item:hover svg {
    opacity: 1;
    stroke: #00e5ff;
}
.idea-context-divider {
    height: 1px;
    margin: 4px 0;
    opacity: 0.18;
    background: currentColor;
}
.idea-context-header {
    padding: 4px 16px 2px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.65;
}

/* Paper Theme Context Menu */
body.theme-paper .idea-context-menu {
    background: linear-gradient(175deg, #f7f1e3 0%, #ede2cb 100%) !important;
    border: 1.5px solid #5a4a38 !important;
    color: #2c2014 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
    box-shadow: 3px 6px 18px rgba(50, 38, 24, 0.28) !important;
}
body.theme-paper .idea-context-item {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2c2014 !important;
}
body.theme-paper .idea-context-header {
    color: #5a4a38 !important;
    font-family: 'Marck Script', 'Dancing Script', 'Caveat', cursive, serif !important;
}
body.theme-paper .idea-context-item:hover {
    background: rgba(90, 74, 56, 0.16) !important;
    color: #5a4a38 !important;
}
body.theme-paper .idea-context-item svg {
    stroke: #2c2014 !important;
}

/* Whiteboard Theme Context Menu */
body.theme-whiteboard .idea-context-menu {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
body.theme-whiteboard .idea-context-item {
    color: #0f172a !important;
    font-weight: 500;
}
body.theme-whiteboard .idea-context-header {
    color: #64748b !important;
}
body.theme-whiteboard .idea-context-item:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}
body.theme-whiteboard .idea-context-item svg {
    stroke: #0f172a !important;
}

/* System Theme Context Menu */
body.theme-system .idea-context-menu {
    background: #252526 !important;
    border: 1.5px solid #3c3c3c !important;
    color: #cccccc !important;
    font-family: 'Fira Code', 'Consolas', monospace !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
body.theme-system .idea-context-item {
    color: #cccccc !important;
}
body.theme-system .idea-context-header {
    color: #007acc !important;
}
body.theme-system .idea-context-item:hover {
    background: #094771 !important;
    color: #ffffff !important;
}
body.theme-system .idea-context-item svg {
    stroke: #cccccc !important;
}

/* View-Only Idea Board Styles */
.control-disabled,
#workspace-screen.view-only-board .control-disabled,
#workspace-screen.view-only-board button:disabled,
#workspace-screen.view-only-board select:disabled,
#workspace-screen.view-only-board input:disabled,
#workspace-screen.view-only-board .toolbar-select-group.control-disabled,
#workspace-screen.view-only-board .toolbar-switch.control-disabled {
    opacity: 0.28 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

body.theme-paper .control-disabled,
body.theme-paper #workspace-screen.view-only-board .control-disabled,
body.theme-paper #workspace-screen.view-only-board button:disabled,
body.theme-paper #workspace-screen.view-only-board select:disabled,
body.theme-paper #workspace-screen.view-only-board input:disabled {
    opacity: 0.35 !important;
    filter: grayscale(100%) !important;
    color: #8c8273 !important;
}

body.theme-whiteboard .control-disabled,
body.theme-whiteboard #workspace-screen.view-only-board .control-disabled,
body.theme-whiteboard #workspace-screen.view-only-board button:disabled,
body.theme-whiteboard #workspace-screen.view-only-board select:disabled,
body.theme-whiteboard #workspace-screen.view-only-board input:disabled {
    opacity: 0.3 !important;
    filter: grayscale(100%) !important;
    color: #94a3b8 !important;
}

body.theme-system .control-disabled,
body.theme-system #workspace-screen.view-only-board .control-disabled,
body.theme-system #workspace-screen.view-only-board button:disabled,
body.theme-system #workspace-screen.view-only-board select:disabled,
body.theme-system #workspace-screen.view-only-board input:disabled {
    opacity: 0.28 !important;
    filter: grayscale(100%) !important;
    color: #6e7681 !important;
}

#workspace-screen.view-only-board #grid-hover-plus,
#workspace-screen.view-only-board .grid-hover-plus,
#workspace-screen.view-only-board #framework-toggle-tab,
#workspace-screen.view-only-board .group-ungroup-btn,
#workspace-screen.view-only-board .group-trash-btn {
    display: none !important;
}

#workspace-screen.view-only-board .idea-note,
#workspace-screen.view-only-board .idea-group-card {
    cursor: default !important;
}




