



@font-face {
    font-family: 'Yosugara';
    src: url('/fonts/yosugaraver1_2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



.sp-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
    transition: all 0.2s ease;
}

.context-menu-item:hover .sp-icon,
.btn:hover .sp-icon {
    stroke: #ffea99;
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.8));
}

.fab-icon .sp-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
    
    display: block;
}





.binder-card.card-type-url::before,
.binder-card.card-type-memo::before,
.binder-card.card-type-image::before,
.binder-card.card-type-task::before,
.binder-card.card-type-text::before,
.binder-card.card-type-folder::before,
.binder-card.card-type-other::before,
.binder-card.card-type-binder-link::before {
    display: none;
}


.binder-card.card-type-url:not(.selected)::after,
.binder-card.card-type-memo:not(.selected)::after,
.binder-card.card-type-image:not(.selected)::after,
.binder-card.card-type-task:not(.selected)::after,
.binder-card.card-type-text:not(.selected)::after,
.binder-card.card-type-folder:not(.selected)::after,
.binder-card.card-type-other:not(.selected)::after,
.binder-card.card-type-binder-link:not(.selected)::after {
    display: none;
}


.binder-card.card-type-url,
.binder-card.card-type-memo,
.binder-card.card-type-image,
.binder-card.card-type-task,
.binder-card.card-type-text,
.binder-card.card-type-folder,
.binder-card.card-type-other,
.binder-card.card-type-binder-link {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}





.binder-card.card-type-url.selected,
.binder-card.card-type-memo.selected,
.binder-card.card-type-image.selected,
.binder-card.card-type-task.selected,
.binder-card.card-type-text.selected,
.binder-card.card-type-folder.selected,
.binder-card.card-type-other.selected,
.binder-card.card-type-binder-link.selected {
    border: none !important;
    box-shadow: none !important;
}


:root {
    
    --brass-light: #e5d070;
    --brass-main: #b3923b;
    --brass-dark: #6e551c;
    --copper: #b87333;
    --copper-dark: #5c3214;
    --leather-bg: #231a16;
    --panel-dark: #141414;
    --nixie-amber: #ff7700;
    --nixie-glow: rgba(255, 110, 0, 0.8);

    
    --led-off: #1a2a1a;
    --led-green: #00e87a;
    --led-green-glow: rgba(0, 232, 122, 0.7);

    
    --stamp-red: #c0392b;
    --stamp-red-bg: rgba(192, 57, 43, 0.15);

    
    --brass-grad: linear-gradient(135deg, var(--brass-light) 0%, var(--brass-main) 40%, var(--brass-dark) 70%, var(--brass-light) 100%);
    --copper-grad: linear-gradient(135deg, #dda066 0%, var(--copper) 50%, var(--copper-dark) 100%);
}












.binder-card.card-type-url {
    
    --brass-light: #e5d070;
    --brass-main: #b3923b;
    --brass-dark: #6e551c;
    --copper: #b87333;
    --copper-dark: #5c3214;
    --leather-bg: #231a16;
    --panel-dark: #141414;
    --nixie-amber: #ff7700;
    --nixie-glow: rgba(255, 110, 0, 0.8);
    --brass-grad: linear-gradient(135deg, var(--brass-light) 0%, var(--brass-main) 40%, var(--brass-dark) 70%, var(--brass-light) 100%);
    --copper-grad: linear-gradient(135deg, #dda066 0%, var(--copper) 50%, var(--copper-dark) 100%);

    
    
    width: 200px;
    height: 150px;

    
    perspective: 1200px;
    font-family: 'Courier New', Courier, monospace;

    
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}



.card-type-url .card-led-indicator {
    position: absolute;
    left: 3px;
    
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}


.card-type-url:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-url.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    
    filter: blur(0.3px);
}


.sp-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.1);
    transform-style: preserve-3d;
}

.card-type-url.is-flipped .sp-card-inner {
    transform: rotateY(180deg);
}


.sp-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--leather-bg);
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    
    outline: 1px solid rgba(255, 255, 255, 0.06);
    outline-offset: -1px;

    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 10px 20px rgba(0, 0, 0, 0.7),
        
        0 0 0 1.5px var(--brass-dark),
        0 0 0 3px var(--brass-main);
}


.sp-card-face::after,
.sp-memo-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.08;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}


.card-type-url:hover .sp-card-face {
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1.5px var(--brass-dark),
        0 0 0 3px var(--brass-main),
        0 0 20px rgba(179, 146, 59, 0.15);
}


.sp-card-front {
    background-image: radial-gradient(circle at 30% 20%, rgba(229, 208, 112, 0.05) 0%, transparent 50%);
}


.sp-card-back {
    transform: rotateY(180deg);
    background: #1a1512;
}


.sp-rivet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 32% 28%, #f5e4a0, #b3923b 55%, #6e551c 100%);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 10;
    
    pointer-events: none;
}

.sp-rivet.top-left {
    top: 6px;
    left: 6px;
    
    transform: rotate(0deg);
}

.sp-rivet.top-right {
    top: 6px;
    right: 6px;
    transform: rotate(45deg);
}

.sp-rivet.bottom-left {
    bottom: 6px;
    left: 6px;
    transform: rotate(-30deg);
}

.sp-rivet.bottom-right {
    bottom: 6px;
    right: 6px;
    transform: rotate(80deg);
}


.binder-card.is-pinned .card-led-indicator::after {
    content: 'ANCHOR';
    position: absolute;
    top: 50%;
    left: 6px; 
    width: 120px;
    
    width: calc(100cqh - 32px);
    
    height: 7px;
    transform: translate(-50%, -50%) rotate(-90deg);
    background: linear-gradient(180deg, #eef0f2 0%, #b8bcc2 45%, #7d828a 100%);
    border: 0.5px solid rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.6),
        inset 0 0.5px 0.5px rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', Courier, monospace;
    font-size: 5.5px;
    font-weight: 700;
    letter-spacing: 1.5px;

    
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding-left: 1.5px;

    color: #1a1a1a;
    
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    
    -webkit-font-smoothing: antialiased;
    
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    pointer-events: none;
    z-index: 21;
}


.card-type-url.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}



.sp-domain-display {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-dark);
    border: 1.5px solid var(--copper-dark);
    border-radius: 4px;
    margin: 6px 0;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}


.sp-ext-link {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--brass-light);
    text-decoration: none;
    z-index: 10;
    transition: transform 0.2s, filter 0.2s;
}

.sp-ext-link:hover {
    transform: translate(2px, -2px) scale(1.1);
    filter: drop-shadow(0 0 5px var(--nixie-amber));
}


.sp-domain-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 3px;
    pointer-events: none;
}



@keyframes nixieFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; text-shadow: 0 0 2px var(--nixie-glow); }
}

.sp-nixie-text {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ffaa44;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 4px rgba(255, 170, 68, 0.6),
        0 0 12px var(--nixie-glow),
        0 0 25px var(--nixie-amber);
    word-break: break-all;
    text-align: center;
    padding: 0 6px;
    animation: nixieFlicker 4s infinite alternate;
}


.sp-domain-display .sp-name-text {
    display: none;
}

.sp-domain-display:hover .sp-domain-text {
    display: none;
}

.sp-domain-display:hover .sp-name-text {
    display: block;
}


.sp-qr-zone {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.sp-qr-frame {
    padding: 4px;
    background: #fff;
    border: 2px solid var(--brass-main);
    border-radius: 3px;
    box-shadow:
        0 0 0 2px var(--panel-dark),
        inset 0 0 6px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
    display: inline-flex;
}


.sp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
}



.sp-tags-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 88%, transparent);
}

.sp-tags-content {
    display: flex;
    gap: 4px;
    width: max-content;
    will-change: transform;
}

.sp-tags-content.is-scrolling {
    animation: steampunkMarquee 10s linear infinite alternate;
}

@keyframes steampunkMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-distance, -50%));
    }
}


.sp-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    background: var(--copper-grad);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.55rem;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        inset 1px 1px 1px rgba(255, 255, 255, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d200a;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}


.sp-gimmick-btn {
    flex-shrink: 0;
    background: var(--brass-grad);
    color: #201705;
    border: 1px solid var(--brass-dark);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s, box-shadow 0.15s;
    margin-left: 6px;
}

.sp-gimmick-btn:hover {
    transform: rotate(180deg);
    filter: brightness(1.2);
}


.sp-gimmick-btn:active {
    transform: rotate(180deg) translateY(1px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.sp-gimmick-btn svg {
    display: block;
}







.binder-card.card-type-memo {
    --chrome-light: #ffffff;
    --chrome-main: #a6adb7;
    --chrome-dark: #374151;
    --metal-bg: #1a1d21;
    --panel-iron-light: #2c323a;
    --panel-iron-dark: #191d22;
    --chrome-grad: linear-gradient(135deg, #ffffff 0%, #a6adb7 40%, #374151 70%, #ffffff 100%);
    --silver-plate-grad: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 50%, #374151 100%);

    
    
    width: 240px;
    height: 300px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.card-type-memo .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-memo:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-memo.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}


.sp-memo-inner {
    position: relative;
    width: 100%;
    height: 100%;
}



.sp-memo-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: none;
    box-shadow: none;
    outline: none;
    border: none;
    border-radius: 0;
    padding: 0;
    
}


.card-type-memo:hover .sp-memo-face {
    box-shadow: none;
}
.card-type-memo:hover .paper-bg {
    box-shadow:
        8px 22px 34px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
}


.card-type-memo .sp-rivet {
    background: radial-gradient(circle at 30% 30%, #ffffff, #a6adb7 60%, #374151 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}


.card-type-memo.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-memo-display {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--panel-iron-light) 0%, var(--panel-iron-dark) 100%);
    border: 1.5px solid #4a5568;
    border-radius: 4px;
    margin: 6px 0;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.8),
        inset 0 0 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}


.sp-memo-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}


.sp-memo-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: #9ba8b8;
    letter-spacing: 0.5px;
    text-shadow:
        0px 2px 3px rgba(0, 0, 0, 0.9),
        -1px -1px 1px rgba(0, 0, 0, 0.9),
        1px 1px 0px rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 0 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}


.card-type-memo .sp-tag {
    background: var(--silver-plate-grad);
    color: #0e1217;
    border: 1px solid rgba(75, 85, 99, 0.8);
    text-shadow: none;
    box-shadow:
        inset 0 1px 0px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.4);
}


.card-type-memo .sp-gimmick-btn {
    background: var(--chrome-grad);
    border: 1px solid #4a5568;
    color: #111417;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(255, 255, 255, 0.15),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}


.card-type-memo .sp-gimmick-btn:hover {
    transform: scale(1.12);
    filter: brightness(1.25);
}

.card-type-memo .sp-gimmick-btn:active {
    transform: scale(0.9);
}




.card-type-memo .paper-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #dfd2b6;
    
    box-shadow:
        5px 15px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease;
}


.card-type-memo .paper-wrinkle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #888;
    mix-blend-mode: overlay;
    opacity: 0.7;
}


.card-type-memo .ember-burn-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    
    transition: opacity 0.2s ease;
    z-index: 2;
}

.card-type-memo:hover .ember-burn-layer {
    opacity: 1;
    
    transition: opacity 3.2s ease;
}


.card-type-memo .ember-edge-glow,
.card-type-memo .ember-edge-char {
    position: absolute;
    inset: -30px;
}

.card-type-memo .ember-edge-glow {
    animation-name: emberEdgeBreath;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}


.card-type-memo .ember-ring {
    position: absolute;
    
    inset: 30px;
    box-sizing: border-box;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}


.card-type-memo .ember-ring-char {
    
    padding: 9px;
    background: rgba(15, 6, 4, 0.92);
}

.card-type-memo .ember-ring-white {
    
    padding: 12px;
    background: #ffdf9e;
}

.card-type-memo .ember-ring-orange {
    
    padding: 18px;
    background: rgba(255, 110, 30, 0.5);
}


@keyframes emberEdgeBreath {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}


.card-type-memo .paper-ink-layer {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    mix-blend-mode: multiply;
    opacity: 0.9;
    color: #2a1f18;
    font-family: 'Yosugara', 'Zen Kurenaido', 'Klee One', cursive;
}


.card-type-memo .paper-text-content {
    flex: 1 1 auto;
    min-height: 0;
    
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 4px;
    
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.card-type-memo .paper-text-content::-webkit-scrollbar {
    display: none;
}


.card-type-memo .paper-ink-layer p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}
.card-type-memo .paper-ink-layer strong {
    font-size: 1.1rem;
    color: #1a0f08;
    border-bottom: 1px dashed #2a1f18;
}


.card-type-memo .paper-body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    font-size: 0.95rem;
}
.card-type-memo .paper-empty {
    opacity: 0.5;
    font-style: italic;
}

.card-type-memo .paper-link {
    color: #5a3410;
    text-decoration: underline;
}


.card-type-memo .paper-footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(42, 31, 24, 0.3);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.card-type-memo .paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px;
    overflow: hidden;
}


.card-type-memo .paper-tag {
    display: inline-block;
    border: 1px solid rgba(42, 31, 24, 0.5);
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2a1f18;
    transform: rotate(-2deg);
    white-space: nowrap;
}


.card-type-memo .paper-btn {
    background: transparent;
    border: none;
    color: #2a1f18;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    box-shadow: none;
}
.card-type-memo .paper-btn:hover {
    opacity: 1;
    transform: scale(1.12);
}
.card-type-memo .paper-btn:active {
    transform: scale(0.9);
}


.card-type-memo .metal-hardware {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}


.card-type-memo .paper-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}





.binder-card.card-type-image {
    
    width: 200px;
    height: 150px;
    background: #000;
    border-radius: 4px;
    padding: 0;
    border: none;
    box-shadow: none;
    font-family: 'Courier New', Courier, monospace;
    
}



.card-type-image .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 30;
    pointer-events: none;
}

.card-type-image:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}



.card-type-image.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}



.sp-image-frame {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    overflow: hidden;

    
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -1px;

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 0, 0, 0.5);
}


.card-type-image:hover .sp-image-frame {
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.07);
}


.sp-image-bg {
    position: absolute;
    
    inset: -10%;
    width: 120%;
    height: 120%;
    
    background-size: cover;
    background-position: 0% 0%;
    background-repeat: no-repeat;
    animation: kenBurnsFloat 25s ease-in-out infinite alternate;
    transition: filter 0.4s ease;
}

@keyframes kenBurnsFloat {
    0% {
        background-position: 0% 0%;
        transform: translate(0%, 0%) scale(1.0);
    }

    33% {
        background-position: 100% 20%;
        transform: translate(-6%, -4%) scale(1.08);
    }

    66% {
        background-position: 80% 100%;
        transform: translate(4%, 6%) scale(1.03);
    }

    100% {
        background-position: 0% 80%;
        transform: translate(-4%, -3%) scale(1.08);
    }
}


.card-type-image:hover .sp-image-bg {
    filter: brightness(1.12);
}


.sp-image-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.25) 32%,
            transparent 62%);
    pointer-events: none;
}


.sp-image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 7px;
    height: 34px;
    box-sizing: border-box;
    z-index: 10;
}


.card-type-image.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.card-type-image.is-pinned .card-led-indicator::after {
    content: none;
}


.card-type-image .sp-gimmick-btn:hover {
    transform: scale(1.12);
    filter: brightness(1.25);
}

.card-type-image .sp-gimmick-btn:active {
    transform: scale(0.9);
}







.binder-card.card-type-task {
    
    width: 200px;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.card-type-task .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-task:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-task.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}


.sp-task-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.sp-task-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    
    background-color: #f5f0e8;
    background-image:
        radial-gradient(ellipse at 12% 88%, rgba(80, 50, 20, 0.09) 0%, transparent 42%),
        radial-gradient(ellipse at 87% 10%, rgba(60, 40, 10, 0.06) 0%, transparent 36%),
        radial-gradient(ellipse at 68% 75%, rgba(50, 30, 5, 0.04) 0%, transparent 28%),
        linear-gradient(155deg, #faf7f0 0%, #f2ece0 40%, #faf7f2 65%, #ede5d0 100%);

    
    outline: 1px solid rgba(0, 0, 0, 0.10);
    outline-offset: -1px;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}


.card-type-task:hover .sp-task-face {
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.70),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 0 18px rgba(240, 227, 184, 0.15);
}



.sp-task-bolt {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 35% 28%, #9c9c9c, #3d3d3d 55%, #141414 100%);
    border-radius: 50%;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(210, 210, 210, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.sp-task-bolt.top-left {
    top: 6px;
    left: 6px;
}

.sp-task-bolt.top-right {
    top: 6px;
    right: 6px;
}

.sp-task-bolt.bottom-left {
    bottom: 6px;
    left: 6px;
}

.sp-task-bolt.bottom-right {
    bottom: 6px;
    right: 6px;
}


.card-type-task.is-pinned .sp-task-bolt.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-task-display {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 4px 0;
    padding: 0 4px;
    overflow: hidden;
}


.sp-task-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: #1e140a;
    letter-spacing: 0.2px;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}


.sp-task-stamp {
    position: absolute;
    right: 4px;
    top: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid currentColor;
    border-radius: 2px;
    padding: 1px 5px;
    pointer-events: none;
    white-space: nowrap;
    transform: rotate(-10deg);
    transform-origin: top right;
    filter: blur(0.35px);
}


.sp-task-stamp.status-todo {
    color: #888;
    border-color: #888;
    transform: rotate(-5deg);
}

.sp-task-stamp.status-doing {
    color: #d35400;
    border-color: #d35400;
    transform: rotate(-2deg);
}

.sp-task-stamp.status-done {
    color: #27ae60;
    border-color: #27ae60;
    transform: rotate(5deg);
}


.sp-task-stamp.status-none {
    display: none !important;
}


.card-type-task .sp-tag {
    background: linear-gradient(135deg, #5a5a5a 0%, #3d3d3d 50%, #2a2a2a 100%);
    color: #c8c8c8;
    border: 1px solid #1a1a1a;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    box-shadow:
        inset 0 1px 0px rgba(255, 255, 255, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.5);
}


.card-type-task .sp-gimmick-btn:hover {
    transform: rotate(60deg);
    filter: brightness(1.2);
}

.card-type-task .sp-gimmick-btn:active {
    transform: rotate(120deg) scale(0.88);
}






.binder-card.card-type-text {
    --brass-light: #e5d070;
    --brass-main: #b3923b;
    --brass-dark: #6e551c;
    --copper: #b87333;
    --copper-dark: #5c3214;
    --brass-grad: linear-gradient(135deg, var(--brass-light) 0%, var(--brass-main) 40%, var(--brass-dark) 70%, var(--brass-light) 100%);

    
    width: 200px;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.card-type-text .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-text:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-text.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}


.sp-text-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.sp-text-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #141414;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    
    outline: 1px solid rgba(255, 255, 255, 0.06);
    outline-offset: -1px;

    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 10px 20px rgba(0, 0, 0, 0.7),
        0 0 0 1.5px var(--brass-dark),
        0 0 0 3px var(--brass-main);
}


.card-type-text:hover .sp-text-face {
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1.5px var(--brass-dark),
        0 0 0 3px var(--brass-main),
        0 0 20px rgba(179, 146, 59, 0.15);
}





.card-type-text.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-text-window {
    flex-grow: 1;
    background: #f2e8c2;
    
    border: 1.5px solid var(--copper-dark);
    border-radius: 3px;
    margin: 6px 0;
    overflow: hidden;
    position: relative;

    
    box-shadow:
        inset 12px 0 16px rgba(0, 0, 0, 0.50),
        inset -12px 0 16px rgba(0, 0, 0, 0.50),
        inset 0 4px 10px rgba(0, 0, 0, 0.65);

    
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}


.sp-text-tape-content {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    line-height: 1.6;
    color: #1a0c02;
    padding: 4px 14px 0;
    
    white-space: pre-wrap;
    word-break: break-word;
    animation: tapeFeed 22s linear infinite;
}

@keyframes tapeFeed {
    0% {
        transform: translateY(100%);
    }

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


.card-type-text:hover .sp-text-tape-content {
    animation-play-state: paused;
}


.card-type-text .sp-gimmick-btn:hover {
    transform: scale(1.12);
    filter: brightness(1.25);
}

.card-type-text .sp-gimmick-btn:active {
    transform: scale(0.9);
}






.binder-card.card-type-folder {
    
    width: 200px;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.card-type-folder .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-folder:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-folder.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}


.sp-folder-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.sp-folder-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    
    background-color: #1e0f06;
    background-image:
        repeating-linear-gradient(93deg,
            transparent, transparent 2px,
            rgba(255, 255, 255, 0.012) 2px, rgba(255, 255, 255, 0.012) 3px),
        linear-gradient(158deg, #2c1408 0%, #1a0c05 38%, #261108 68%, #160a04 100%);

    
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;

    
    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, 0.85),
        0 10px 22px rgba(0, 0, 0, 0.7),
        0 0 0 1.5px rgba(60, 28, 10, 0.9),
        0 0 0 3px rgba(30, 14, 5, 0.8);
}


.card-type-folder:hover .sp-folder-face {
    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, 0.85),
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1.5px rgba(60, 28, 10, 0.9),
        0 0 0 3px rgba(30, 14, 5, 0.8),
        0 0 20px rgba(160, 80, 30, 0.18);
}




.card-type-folder.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-folder-nameplate {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    padding: 0 4px;
}


.sp-folder-plate {
    width: 100%;
    background: linear-gradient(135deg,
            #e0c458 0%,
            #c4a030 25%,
            #a07820 50%,
            #c4a030 75%,
            #ddc050 100%);
    border-radius: 2px;
    padding: 9px 10px;
    position: relative;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 245, 180, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        inset 1px 0 0 rgba(0, 0, 0, 0.15),
        inset -1px 0 0 rgba(0, 0, 0, 0.15);
}


.sp-folder-plate::before,
.sp-folder-plate::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: radial-gradient(circle at 30% 30%, #e5d070, #b3923b 60%, #6e551c 100%);
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.sp-folder-plate::before {
    top: 3px;
}

.sp-folder-plate::after {
    bottom: 3px;
}


.sp-folder-path {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    font-weight: bold;
    color: #2a1400;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    
    text-shadow:
        -1px -1px 0px rgba(0, 0, 0, 0.55),
        1px 1px 0px rgba(255, 235, 150, 0.5),
        0px 1px 2px rgba(0, 0, 0, 0.4);
}


.card-type-folder .sp-gimmick-btn:hover {
    transform: translateX(2px) scale(1.1);
    filter: brightness(1.25);
}

.card-type-folder .sp-gimmick-btn:active {
    transform: translateX(4px) scale(0.9);
}





.binder-card.card-type-other {
    
    width: 200px;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.card-type-other .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-other:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-other.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}

.sp-crate-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


.sp-crate-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    
    background-color: #5c3a18;
    background-image:
        repeating-linear-gradient(180deg,
            transparent, transparent 4px,
            rgba(0, 0, 0, 0.09) 4px, rgba(0, 0, 0, 0.09) 5px),
        repeating-linear-gradient(180deg,
            transparent, transparent 11px,
            rgba(255, 255, 255, 0.025) 11px, rgba(255, 255, 255, 0.025) 12px),
        linear-gradient(162deg, #7a4e25 0%, #4a2c0e 35%, #6b4018 65%, #3c2008 100%);

    
    outline: 1px solid rgba(255, 255, 255, 0.04);
    outline-offset: -1px;

    
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.7),
        0 10px 22px rgba(0, 0, 0, 0.7),
        0 0 0 1.5px rgba(20, 10, 2, 0.9),
        0 0 0 3px rgba(40, 22, 6, 0.7);
}


.card-type-other:hover .sp-crate-face {
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.7),
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1.5px rgba(20, 10, 2, 0.9),
        0 0 0 3px rgba(40, 22, 6, 0.7),
        0 0 18px rgba(100, 60, 20, 0.2);
}


.card-type-other.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-crate-band {
    position: absolute;
    left: 0;
    right: 0;
    height: 9px;
    background: linear-gradient(to bottom,
            #4a4a4a 0%,
            #1e1e1e 40%,
            #2c2c2c 70%,
            #424242 100%);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 -1px 2px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(140, 140, 140, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    z-index: 4;
    pointer-events: none;
}


.sp-crate-band::before,
.sp-crate-band::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: radial-gradient(circle at 35% 30%, #6a6a6a, #2a2a2a 70%);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.sp-crate-band::before {
    left: 12px;
}

.sp-crate-band::after {
    right: 12px;
}

.sp-crate-band-upper {
    top: 30px;
}

.sp-crate-band-lower {
    top: 104px;
}


.sp-crate-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    
    margin: 4px 0;
    gap: 1px;
}


.sp-crate-label {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 900;
    color: #150a02;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.15;
    
    text-shadow:
        1px 0 0 rgba(0, 0, 0, 0.15),
        -1px 0 0 rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(0, 0, 0, 0.1);
    filter: blur(0.2px);
}


.sp-crate-ext {
    font-family: 'Courier New', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(20, 10, 2, 0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
}


.card-type-other .sp-gimmick-btn:hover {
    transform: translateX(2px) scale(1.1);
    filter: brightness(1.25);
}

.card-type-other .sp-gimmick-btn:active {
    transform: translateX(4px) scale(0.9);
}





.binder-card.card-type-binder-link {
    
    width: 200px;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    
}


.card-type-binder-link .card-led-indicator {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--led-off);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 20;
    pointer-events: none;
}

.card-type-binder-link:hover .card-led-indicator {
    background: var(--led-green);
    box-shadow:
        0 0 6px var(--led-green-glow),
        0 0 14px var(--led-green-glow),
        inset 0 0 3px rgba(255, 255, 255, 0.4);
}


.card-type-binder-link.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--stamp-red);
    background: var(--stamp-red-bg);
    border: 2.5px solid var(--stamp-red);
    padding: 3px 10px;
    width: auto;
    height: auto;
    right: auto;
    bottom: auto;
    border-radius: 2px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0.92;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: blur(0.3px);
}


.card-type-binder-link.is-pinned .sp-rivet.top-right {
    background: radial-gradient(circle at 35% 30%, #ff6666, #c0392b 60%, #7a1515 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 180, 180, 0.6),
        0 0 8px rgba(255, 50, 50, 0.9),
        0 0 16px rgba(220, 30, 30, 0.7),
        0 0 28px rgba(192, 57, 43, 0.5);
}


.sp-vault-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    
    background-color: #0e1115;
    background-image:
        repeating-linear-gradient(90deg,
            transparent, transparent 9px,
            rgba(255, 255, 255, 0.007) 9px, rgba(255, 255, 255, 0.007) 10px),
        repeating-linear-gradient(180deg,
            transparent, transparent 24px,
            rgba(255, 255, 255, 0.016) 24px, rgba(255, 255, 255, 0.016) 25px),
        linear-gradient(155deg, #1c2028 0%, #0b0e14 50%, #171b22 100%);

    
    outline: 1px solid rgba(255, 255, 255, 0.03);
    outline-offset: -1px;

    
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.95),
        0 10px 24px rgba(0, 0, 0, 0.85),
        0 0 0 1.5px rgba(65, 78, 95, 0.6),
        0 0 0 3px rgba(22, 28, 36, 0.9);

    transition: box-shadow 0.3s ease, filter 0.3s ease;
}


.card-type-binder-link:hover .sp-vault-face {
    box-shadow:
        inset 0 0 18px rgba(0, 0, 0, 0.95),
        0 16px 32px rgba(0, 0, 0, 0.9),
        0 0 0 1.5px rgba(85, 105, 130, 0.75),
        0 0 0 3px rgba(22, 28, 36, 0.9),
        0 0 22px rgba(74, 144, 226, 0.1);
}


.card-type-binder-link.binder-link-highlight .sp-vault-face {
    animation: binderLinkPulse 0.8s ease-in-out infinite alternate;
}

@keyframes binderLinkPulse {
    0% {
        filter: brightness(1.0);
    }

    100% {
        filter: brightness(1.18);
    }
}


.sp-vault-keyhole-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-bottom: 6px;
}


.sp-vault-keyhole-area svg {
    filter:
        drop-shadow(0 0 4px rgba(130, 155, 185, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
    transition: filter 0.3s ease;
}

.card-type-binder-link:hover .sp-vault-keyhole-area svg,


.sp-vault-plate {
    flex-shrink: 0;
    height: 18px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #e0c458 0%, #c4a030 25%, #a07820 50%, #c4a030 75%, #ddc050 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 235, 150, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}


.sp-vault-plate::before,
.sp-vault-plate::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e8d060, #a07820 70%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 235, 150, 0.5);
}

.sp-vault-plate::before {
    left: 4px;
}

.sp-vault-plate::after {
    right: 4px;
}

.sp-vault-plate-text {
    font-size: 0.58rem;
    font-weight: 700;
    color: #2a1400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    
    text-shadow:
        -0.5px -0.5px 0 rgba(0, 0, 0, 0.55),
        0.5px 0.5px 0 rgba(255, 235, 150, 0.5);
}



.sp-binder-link-twine-tag {
    position: absolute;
    right: 9px;
    top: 9px;
    transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg)));
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 8;
    
    transform-origin: top center;
}


.sp-binder-link-twine {
    width: 2.5px;
    height: 10px;
    background: linear-gradient(to bottom, #8a6840 0%, #6a4828 50%, #4a3020 100%);
    box-shadow: 0.5px 0 1.5px rgba(0, 0, 0, 0.6);
    transform-origin: top center;
}


.sp-binder-link-tag-label {
    width: 14px;
    height: 8px;
    background: #f5f0e8;
    border: 0.5px solid #c0a870;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.3rem;
    font-family: 'Courier New', monospace;
    color: #3a2a10;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform-origin: top center;
}


@keyframes twineSwing {

    0%,
    100% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) - 10deg));
    }

    50% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) + 10deg));
    }
}


.binder-card.dragging .sp-binder-link-twine-tag {
    animation: twineSwing 1.4s ease-in-out infinite;
}


@keyframes twineSettle {
    0% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) + 8deg));
    }

    22% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) - 6deg));
    }

    42% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) + 4deg));
    }

    60% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) - 2deg));
    }

    75% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) + 1deg));
    }

    87% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg) - 0.3deg));
    }

    100% {
        transform: translateX(50%) rotate(calc(-1 * var(--card-rotation, 0deg)));
    }
}

.binder-card.drag-settling .sp-binder-link-twine-tag {
    animation: twineSettle 1.2s ease-out forwards;
}


.card-type-binder-link .sp-gimmick-btn:hover {
    transform: rotate(90deg) scale(1.15);
    filter: brightness(1.3);
}




.binder-card.is-booting .sp-card-face,
.binder-card.is-booting .sp-memo-face,
.binder-card.is-booting .sp-folder-face,
.binder-card.is-booting .sp-task-face,
.binder-card.is-booting .sp-text-face,
.binder-card.is-booting .sp-crate-face,
.binder-card.is-booting .sp-vault-face,
.binder-card.is-booting .sp-image-frame {
    filter: brightness(0.3) grayscale(0.7);
}

.binder-card.is-booting .card-led-indicator {
    background: var(--led-off) !important;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8) !important;
}


.binder-card.is-ignited .sp-card-face,
.binder-card.is-ignited .sp-memo-face,
.binder-card.is-ignited .sp-folder-face,
.binder-card.is-ignited .sp-task-face,
.binder-card.is-ignited .sp-text-face,
.binder-card.is-ignited .sp-crate-face,
.binder-card.is-ignited .sp-vault-face,
.binder-card.is-ignited .sp-image-frame {
    animation: spIgnitionFlicker 0.6s ease-out forwards;
}

@keyframes spIgnitionFlicker {
    0% {
        filter: brightness(0.3) grayscale(0.7);
    }

    10% {
        filter: brightness(1.6) sepia(0.4);
    }

    20% {
        filter: brightness(0.5) grayscale(0.3);
    }

    30% {
        filter: brightness(1.2) sepia(0.1);
    }

    40% {
        filter: brightness(0.8);
    }

    100% {
        filter: brightness(1) grayscale(0);
    }
}


.binder-card.is-ignited .card-led-indicator {
    animation: spLedIgnition 0.6s ease-out forwards;
}

@keyframes spLedIgnition {
    0% {
        background: var(--led-off);
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    }

    15% {
        background: var(--led-green);
        box-shadow: 0 0 8px var(--led-green-glow);
    }

    25% {
        background: var(--led-off);
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    }

    35% {
        background: var(--led-green);
        box-shadow: 0 0 12px var(--led-green-glow);
    }

    100% {
        background: var(--led-off);
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
    }
}