* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f5f0;
    color: #2a2a2a;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 200px;
    background: #f5f1ed;
    border-right: 1px solid #e0e0dc;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar.collapsed {
    width: 60px;
    align-items: center;
    padding: 20px 10px;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: #fffbf7;
    border-color: #d4a574;
}

.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .space-item-text,
.sidebar.collapsed .drawer-label {
    display: none;
}

.sidebar.collapsed .space-emoji {
    margin: 0 !important;
}

.sidebar.collapsed .space-item {
    justify-content: center;
    padding: 12px 8px;
    width: 40px;
}

.sidebar.collapsed .drawer-item {
    width: 40px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
}

.drawer-text {
    display: inline;
}

.drawer-icon {
    display: none;
}

.sidebar.collapsed .drawer-text {
    display: none;
}

.sidebar.collapsed .drawer-icon {
    display: inline;
}

.sidebar.collapsed .add-space-btn {
    width: 40px;
    padding: 8px;
    border: 1px solid #e0e0dc;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    display: inline;
}

.sidebar.collapsed .btn-text {
    display: none;
}

.sidebar.collapsed .add-space-btn::after {
    content: '+';
    font-size: 18px;
    font-weight: 500;
}



.spaces-list {
    margin-bottom: 30px;
}

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;

    margin-bottom: 12px;
}

.space-item {
    padding: 12px;
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-left: 3px solid transparent;
}

.space-item:nth-child(2) {
    border-left-color: #d4a574;
    background: #fffdf9;
}

.space-item:nth-child(3) {
    border-left-color: #87ceeb;
    background: #f0f8ff;
}

.space-item:hover {
    background: #fffbf7;
    border-color: #d4a574;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

.space-item.active {
    background: linear-gradient(135deg, #fff4ed 0%, #ffe8d9 100%);
    border: 1px solid #d4a574;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
}

.space-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.space-item-text {
    flex: 1;
    min-width: 0;
}

.space-name {
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
}

.space-count {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.sidebar-drawer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0dc;
}

.drawer-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;

    margin-bottom: 12px;
}

.drawer-item {
    padding: 10px 12px;
    background: #f9f7f4;
    border: 1px solid #e0e0dc;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 6px;
    font-size: 11px;
    color: #999;
    transition: all 0.2s;
    text-align: center;
}

.drawer-item:hover {
    background: #e7d7c8;
    border-color: #d4a574;
    color: #af9376;
}

.add-space-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed #d0ccc8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 8px;
}

.add-space-btn:hover {
    border-color: #d4a574;
    color: #d4a574;
    background: #fffbf7;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-right: 0;
    transition: margin-right 0.3s ease;
}

.main.envelopes-open {
    margin-right: 280px;
}

.header {
    background: white;
    border-bottom: 1px solid #e0e0dc;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.header-left {
    flex: 1;
}

.header-title {
    font-size: 32px;
    font-weight: 300;
    margin: 0;
}

.header-meta {
    display: none;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-controls {
    display: flex;
    gap: 6px;
    background: #f9f7f4;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #e0e0dc;
}

.filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.filter-btn:hover {
    background: white;
    color: #d4a574;
}

.filter-btn.active {
    background: white;
    color: #d4a574;
    box-shadow: 0 1px 3px rgba(212, 165, 116, 0.2);
}

.action-btn {
    padding: 8px 16px;
    background: #f9f7f4;
    border: 1px solid #e0e0dc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f0ebe3;
    border-color: #d4a574;
}

.action-btn.envelope {
    background: linear-gradient(135deg, #ffefd5 0%, #ffe8d9 100%);
    border-color: #d4a574;
    color: #d4a574;
}

.action-btn.reset {
    background: linear-gradient(135deg, #ffefd5 0%, #ffe8d9 100%);
    border-color: #d4a574;
    color: #d4a574;
}

.desk-view {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.desk-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    background: linear-gradient(135deg, #fffbf7 0%, #fdf8f3 100%);
}

.desk-cue {
    position: absolute;
    font-size: 80px;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.desk-cue-1 {
    top: 20px;
    right: 60px;
}

.desk-cue-2 {
    bottom: 40px;
    left: 40px;
    transform: rotate(-15deg);
}

.desk-content {
    position: relative;
    z-index: 1;
}

.space-group {
    margin-bottom: 50px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes topOfMindPress {
    0% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(-3px);
    }
}

@keyframes stackCardPress {
    0% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(-4px);
    }
}

@keyframes stackRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(9);
        opacity: 0;
    }
}

@keyframes drawerSpring {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.space-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0dc;
}

.space-group-emoji {
    font-size: 24px;
}

.space-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a2a;
}

.space-group-count {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

.captures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.capture-card {
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    height: fit-content;
    transform: rotate(calc((var(--index, 0) % 3 - 1) * 0.5deg));
}

gap: 10px;
position: relative;
overflow: hidden;
}

.capture-card.color-coded {
    background-color: var(--space-color, white);
    border-left: 4px solid var(--space-accent, #e0e0dc);
}

.capture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.capture-card:hover {
    border-color: #d4a574;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15);
    transform: translateY(-4px);
}

.capture-card:hover::before {
    opacity: 1;
}

.capture-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    /* text-wrap: balance; */
}

.capture-text a {
    display: block;
    color: #0066cc;
    text-decoration: none;
    font-size: 11px;
    word-break: break-all;
    border-bottom: none;
    transition: all 0.2s;
    margin-top: 6px;
}

.capture-text a:hover {
    color: #0052a3;
}

.capture-link-preview {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    font-size: 11px;
    color: #999;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.capture-link-preview span {
    background: #e8d4c4;
    color: #8b6f47;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;

}

.capture-link-preview span.read {
    background: #d4f4dd;
    color: #2d7d4d;
}

.capture-link-preview span.anticipated {
    background: #fef3c7;
    color: #92400e;
}

.capture-link-preview span.article {
    background: #dbeafe;
    color: #1e40af;
}

.capture-link-preview span.book {
    background: #f3e8ff;
    color: #6b21a8;
}

.capture-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.capture-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 10px;
    color: #999;
}

.capture-time {
    font-size: 10px;
    color: #bbb;
}

.capture-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
}

.capture-envelope {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f9f7f4;
    border: 1px solid #e0e0dc;
    border-radius: 3px;
    font-size: 10px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.capture-envelope:hover {
    background: #f0ebe3;
    border-color: #d4a574;
    color: #d4a574;
}

.capture-time {
    font-size: 10px;
    color: #bbb;
}

.capture-action {
    font-size: 12px;
    color: #d4a574;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.capture-star {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
    min-width: 14px;
    text-align: center;
}

.capture-card:hover .capture-star {
    opacity: 1;
}

/* Always show if already starred */
.capture-star[data-starred="true"] {
    opacity: 1;
}

.capture-card:hover .capture-action {
    opacity: 1;
}

.nearby-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #e0e0dc;
}

.nearby-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.nearby-header-title {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;

}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.stack-card {
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    padding: 16px;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 140px;
    position: relative;
    user-select: none;
}

.stack-card:hover {
    border-color: #d4a574;
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15);
    transform: translateY(-4px);
}

.stack-card:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 165, 116, 0.1);
}

.stack-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.stack-meta {
    font-size: 10px;
    color: #bbb;
    margin-top: 8px;
}

.stack-space {
    font-size: 9px;
    color: #d4a574;
    font-weight: 500;
}

.shuffle-btn {
    padding: 8px 12px;
    background: #f9f7f4;
    border: 1px solid #e0e0dc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    transition: all 0.2s;
    text-align: center;
    margin-top: 12px;
}

.shuffle-btn:hover {
    background: #f0ebe3;
    border-color: #d4a574;
    color: #d4a574;
}

.drawer-section {
    background: #d2be9f;
    border-top: 1px solid #e0e0dc;
    padding: 35px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    flex: 0 0 auto;
    max-height: 40vh;
    min-height: 50px;
}

.drawer-section::before {
    display: none;
}

.drawer-title {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.drawer-count {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

.drawer-content {
    margin-top: 8px;
    padding-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    animation: drawerSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.drawer-capture-card {
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    transition: all 0.2s;
    opacity: 0.7;
}

.drawer-capture-card:hover {
    opacity: 1;
    border-color: #d0ccc8;
    background: #fffbf7;
}

.envelopes-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    min-width: 180px;
    max-width: 60vw;
    height: 100vh;
    background: #fff9f4;
    border-left: 1px solid #e0e0dc;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 150;
    overflow-y: auto;
    resize: horizontal;
}

.envelopes-panel::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    z-index: 160;
}

.envelopes-panel.active {
    transform: translateX(0);
}

.envelopes-header {
    padding: 20px;
    border-bottom: 1px solid #d4a574;
    background: #fff9f4;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.envelopes-title {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.close-envelopes {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: all 0.2s;
}

.close-envelopes:hover {
    color: #d4a574;
}

.envelopes-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.envelope-card {
    padding: 14px;
    background: rgb(247, 231, 191);
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    margin-right: 2px;
    margin-left: 2px;
    position: relative;
    overflow: visible;
    min-height: 80px;
    border-left: none;
    transform: rotate(calc((var(--index, 0) % 3 - 1) * 0.8deg));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.envelope-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.envelope-card::after {
    content: '✉️';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 12px;
    opacity: 0.25;
}

.envelope-card:nth-child(1)::before {
    transform: rotate(1.8deg);
}

.envelope-card:nth-child(1)::after {
    transform: rotate(-2.3deg);
}

.envelope-card:nth-child(2)::before {
    transform: rotate(-2.1deg);
}

.envelope-card:nth-child(2)::after {
    transform: rotate(1.6deg);
}

.envelope-card:nth-child(3)::before {
    transform: rotate(2.4deg);
}

.envelope-card:nth-child(3)::after {
    transform: rotate(-1.7deg);
}

.envelope-card:nth-child(4)::before {
    transform: rotate(-1.9deg);
}

.envelope-card:nth-child(4)::after {
    transform: rotate(2.2deg);
}

.envelope-card:nth-child(5)::before {
    transform: rotate(1.5deg);
}

.envelope-card:nth-child(5)::after {
    transform: rotate(-2.5deg);
}

.envelope-card:nth-child(6)::before {
    transform: rotate(-2.3deg);
}

.envelope-card:nth-child(6)::after {
    transform: rotate(1.9deg);
}

.envelope-card:nth-child(7)::before {
    transform: rotate(2.1deg);
}

.envelope-card:nth-child(7)::after {
    transform: rotate(-0.6deg);
}

.envelope-card::before,
.envelope-card::after {
    content: '';
    position: absolute;
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 8px;
    z-index: -1;
}

.envelope-card::before {
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    bottom: -4px;
    right: -4px;
}

.envelope-card::after {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    bottom: -8px;
    right: -8px;
}

.envelope-emoji {
    font-size: 28px;
    margin-bottom: 4px;
    display: block;
}

.envelope-name {
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 2px;
}

.envelope-count {
    font-size: 11px;
    color: #999;
}

.envelope-preview {
    display: none;
}

.envelope-card.active {
    background: #ffe8d9;
    border-color: #e8e4df;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.envelope-visual-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a574 0%, transparent 100%);
    opacity: 0.3;
}

.envelope-emoji {
    font-size: 20px;
    margin-bottom: 6px;
}

.envelope-name {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 0;
}

.envelope-count {
    display: none;
}

.new-envelope-btn {
    padding: 10px;
    background: transparent;
    border: none;
    border-top: 1px dashed #d0ccc8;
    cursor: pointer;
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: auto;
}

.new-envelope-btn:hover {
    border-color: #d4a574;
    color: #d4a574;
    background: #fffbf7;
}

.envelope-toggle {
    background: transparent;
    border: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: fit-content;
    height: fit-content;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    filter: drop-shadow(0 0 1rem gold) blur(0.25px);
}

.envelope-toggle:hover {
    transform: rotate(-10deg);
}

.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 200;
    min-width: 240px;
    display: none;
    margin-top: 4px;
}

.filter-menu.active {
    display: block;
}

.filter-menu-section {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0dc;
}

.filter-menu-section:last-child {
    border-bottom: none;
}

.filter-menu-title {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.filter-option {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-option:hover {
    background: #f9f7f4;
    border-color: #e0e0dc;
}

.filter-option.active {
    background: #e8d4c4;
    border-color: #d4a574;
    color: #333;
}

.top-of-mind-section {
    background: #c8dae7;
    border-bottom: 1px solid #e8d4c4;
    padding: 24px 40px;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow:
        0 4px 12px rgba(212, 165, 116, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.top-of-mind-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}

.top-of-mind-header h3 {
    font-size: 11px;
    font-weight: 800;
    color: #798f96;

    text-transform: uppercase;
    margin: 0;
    opacity: 0.95;
    tracking: 0.1em;
}

.top-of-mind-header h3::before {
    content: '';
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.top-of-mind-minimize {
    background: white;
    border: 1px solid #d4a574;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #d4a574;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(212, 165, 116, 0.08);
}

.top-of-mind-minimize:hover {
    background: #fffbf7;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
    border-color: #c9934a;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(1.15);
    }
}

.top-of-mind-minimize:active {
    transform: scale(0.95);
}

.top-of-mind-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 11px;
}

.top-of-mind-item {
    background: #fdfaf6;
    border: 1px solid #e8d4c4;
    border-radius: 8px;
    padding: 13px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: auto;
}

.top-of-mind-item:nth-child(1) {
    transform: rotate(-0.5deg);
}

.top-of-mind-item:nth-child(2) {
    transform: rotate(0.8deg);
}

.top-of-mind-item:nth-child(3) {
    transform: rotate(-0.6deg);
}

.top-of-mind-item:nth-child(4) {
    transform: rotate(0.7deg);
}

.top-of-mind-item:nth-child(5) {
    transform: rotate(-0.4deg);
}

.top-of-mind-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4a574;
    opacity: 0;
    transition: opacity 0.2s;
}

.top-of-mind-item:hover {
    border-color: #d4a574;
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.14);
    transform: translateY(-3px);
    background: #fffbf7;
}

.top-of-mind-item:hover::before {
    opacity: 1;
}

.top-of-mind-item:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.1);
    border-color: #c9934a;
}

.top-of-mind-item-text {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    font-weight: 500;
}

.top-of-mind-item-tag {
    display: inline-block;
    font-size: 8.5px;
    padding: 4px 10px;
    background: #f5f1ed;
    border-radius: 12px;
    color: #8b7355;
    margin-right: 4px;
    font-weight: 700;

    border: 1px solid #e8d4c4;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    width: fit-content;
    margin-top: 4px;
}