/*
Theme Name: RDC Native
Theme URI: https://realdesicoach.com
Description: Ultra-lean, high-performance, native theme for RealDesiCoach - OS Desktop Grid with true macOS Dock Fan Stacks.
Author: Sourish Mazumdar
Author URI: https://realdesicoach.com
Version: 2.2.0 (True macOS Fan Stacks)
Text Domain: rdc-native
*/

:root {
    --c-brand: #E84E1B;
    --c-wa: #25D366;
    --c-wa-hover: #20BD5A;
    --c-bg: #F8F7F3;
    --c-surface: #FFFFFF;
    --c-border: #E5E3DB;
    --c-text-main: #141519;
    --c-text-muted: #555866;
    --c-text-light: #7A7D8C;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* WordPress Admin Bar Viewport Offset (Fixed OS Canvas Standard) */
:root {
    --wp-bar-offset: 0px;
}
body.admin-bar {
    --wp-bar-offset: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar {
        --wp-bar-offset: 46px;
    }
}

/* Architectural paper grid */
.desktop-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: var(--wp-bar-offset);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.brand-logo {
    height: 38px;
    object-fit: contain;
}

/* Architectural System Status Badge */
.system-status-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--c-text-main);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 7px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
}

.status-dot-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-brand);
}

.status-dot-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(232, 78, 27, 0.35);
    animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.status-code {
    font-weight: 700;
    color: var(--c-text-main);
}

.status-sep {
    color: var(--c-border);
}

.status-sub {
    color: var(--c-text-muted);
    font-weight: 500;
}

/* Hero Typography */
.os-hero {
    position: absolute;
    top: calc(var(--wp-bar-offset) + 8%);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    z-index: 5;
    padding: 0 20px;
    pointer-events: none;
}

.os-hero h1 {
    font-size: 2.35rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--c-text-main);
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.os-hero p {
    font-size: 0.96rem;
    color: var(--c-text-muted);
    margin: 0 auto;
    max-width: 530px;
    line-height: 1.55;
    font-weight: 400;
}

/* Workspace Canvas */
.os-workspace {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: auto;
}

/* Tactile Manila Folders */
.os-folder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s;
    text-align: center;
    touch-action: none;
}

.os-folder:hover:not(.is-dragging) {
    transform: scale(1.09) translateY(-3px);
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.13));
}

.os-folder:active:not(.is-dragging) {
    transform: scale(0.96);
}

.os-folder.is-dragged {
    transform: none;
}
.os-folder.is-dragged:hover:not(.is-dragging) {
    transform: scale(1.09) translateY(-3px);
}

/* Elevated Dragging State for Folders and Sticky Note */
.os-folder.is-dragging,
.sticky-note.is-dragging {
    cursor: grabbing !important;
    z-index: 650 !important;
    transition: none !important;
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.22)) !important;
    user-select: none !important;
}

.os-folder.is-dragging {
    transform: scale(1.08) translateY(-2px) !important;
}

.sticky-note.is-dragging {
    transform: rotate(-1deg) scale(1.08) !important;
}

.folder-icon {
    width: 84px;
    height: 62px;
    margin-bottom: 8px;
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.folder-back {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 52px;
    background: #E2A762;
    border-radius: 6px;
}

.folder-tab {
    position: absolute;
    top: 0;
    left: 6px;
    width: 36px;
    height: 14px;
    background: #CF924C;
    border-radius: 5px 5px 0 0;
}

.folder-paper {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 64px;
    height: 46px;
    background: #FFFFFF;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.paper-peek {
    position: absolute;
    top: 2px;
    left: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    font-weight: 700;
    color: #8A8D9B;
    letter-spacing: -0.02em;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.folder-paper::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 5px;
    width: 52px;
    height: 2px;
    background: #ECEAE4;
    box-shadow: 0 4px 0 #ECEAE4, 0 8px 0 #ECEAE4;
}

.folder-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 42px;
    background: #F0BC7F;
    border-radius: 6px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}

.folder-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-text-main);
    line-height: 1.25;
    margin-bottom: 4px;
}

.folder-subtag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--c-text-muted);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 3px 9px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

/* Placements */
#folder-business {
    top: 36%;
    left: calc(50% + 45px);
    transform: translateX(-50%);
}
#folder-business:hover {
    transform: translateX(-50%) scale(1.09) translateY(-3px);
}

#folder-senior {
    top: 55%;
    right: 18%;
}

#folder-junior {
    bottom: 22%;
    left: 18%;
}

/* Active Elevated Folder (In Focus In Front of 40% Blur Backdrop) */
.os-folder.is-active-folder {
    z-index: 505 !important;
    pointer-events: auto;
}
.os-folder.is-active-folder .folder-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

/* Tactile Physical Sticky Note (Compact Resting State + In-Place Zoom) */
.sticky-note {
    position: absolute;
    top: 28%;
    left: 20%;
    width: 136px;
    background: #FEF9C3;
    padding: 11px 12px 9px 12px;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: rotate(-3deg);
    cursor: grab;
    touch-action: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s;
    z-index: 30;
    border-top: 4px solid #FACC15;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
    box-sizing: border-box;
}

.sticky-note:hover:not(.is-zoomed):not(.is-dragging) {
    transform: rotate(-1deg) scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sticky-note:active:not(.is-zoomed):not(.is-dragging) {
    cursor: grabbing;
}

.sticky-pin {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(2px);
    border-radius: 2px;
}

.sticky-title {
    font-size: 0.64rem;
    font-weight: 800;
    color: #854D0E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sticky-lines {
    font-size: 0.58rem;
    color: #713F12;
    line-height: 1.40;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sticky-lines li {
    margin-bottom: 4px;
}

/* Crop points 2-4 in resting state */
.sticky-note:not(.is-zoomed) .sticky-lines li:nth-child(n+2) {
    display: none;
}

.sticky-note:not(.is-zoomed) .sticky-lines li:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-hint {
    font-size: 0.50rem;
    color: #A16207;
    margin-top: 6px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* In-Place Enlarged State (Physical Zoom) */
.sticky-note.is-zoomed {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    width: 320px;
    max-width: calc(100vw - 32px);
    min-height: 350px;
    aspect-ratio: auto;
    box-sizing: border-box;
    transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
    z-index: 10000;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28), 0 10px 25px rgba(0, 0, 0, 0.12);
    cursor: zoom-out;
    padding: 24px 24px 20px 24px;
    border-top: 6px solid #FACC15;
    border-radius: 4px;
    animation: zoomSpring 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-note.is-zoomed .sticky-pin {
    width: 44px;
    height: 12px;
    top: -8px;
}

.sticky-note.is-zoomed .sticky-title {
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.sticky-note.is-zoomed .sticky-lines {
    font-size: 0.78rem;
    line-height: 1.6;
}

.sticky-note.is-zoomed .sticky-lines li {
    margin-bottom: 8px;
}

.sticky-note.is-zoomed .sticky-lines li:nth-child(n+2) {
    display: list-item;
}

.sticky-note.is-zoomed .sticky-lines li:first-child {
    display: list-item;
    -webkit-line-clamp: unset;
}

.sticky-note.is-zoomed .sticky-hint {
    font-size: 0.68rem;
    margin-top: 14px;
    color: #854D0E;
}

@keyframes zoomSpring {
    0% { transform: translate(-50%, -50%) scale(0.65) rotate(-3deg); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

.sticky-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 21, 26, 0.16);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    z-index: 9999;
}
.sticky-backdrop.active {
    display: block;
}

/* TRUE macOS DOCK FAN / STACK (Direct Match to images.jpeg Reference) */
.macos-fan-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 21, 26, 0.12);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    z-index: 500;
    cursor: default;
}
.macos-fan-overlay.active {
    display: block;
}

.macos-fan-stack {
    display: none;
    position: fixed;
    z-index: 510;
    pointer-events: auto;
    width: max-content;
    max-width: calc(100vw - 24px);
    flex-direction: column-reverse;
    gap: 8px;
}
.macos-fan-stack.active {
    display: flex;
}

/* Individual Floating Fan Item */
.fan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s, border-color 0.18s, background-color 0.15s;
    user-select: none;
    position: relative;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #E2DFD6;
    border-radius: 3px;
    padding: 7px 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fan-item:hover {
    background: #FAFAF7;
    border-color: #D1CEBF;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Cardstock Typography Container */
.fan-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #141519;
    font-family: 'JetBrains Mono', -apple-system, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Ink-Stamped Typographic Tag */
.fan-sub {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 1.25;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}
.sub-blue {
    color: #1D4ED8;
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.sub-green {
    color: #047857;
    background: #ECFDF5;
    border-color: #A7F3D0;
}

/* Unified Ink Icon Block */
.fan-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: none;
    transition: transform 0.15s;
}

/* Clean Vector & Font Icon Display */
.fan-icon-box svg {
    display: block;
    width: 13px;
    height: 13px;
}
.fan-icon-box i {
    font-size: 0.86rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Icon Ink Accents (Subtle Archival Washes) */
.icon-biz-call, .icon-biz-auto, .icon-biz-doc {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.icon-senior-call, .icon-senior-code, .icon-senior-doc {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.icon-junior-call, .icon-junior-code, .icon-junior-doc {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

/* Left Arc Trajectory (Folders on Right: Curves Up and to the Left) */
.fan-arc-left {
    align-items: flex-end;
}
.fan-arc-left .fan-item {
    justify-content: flex-end;
}
.fan-arc-left .fan-item:hover {
    transform: scale(1.05) translateX(-4px);
}
.fan-arc-left .fan-item-1 {
    transform: translateX(0);
    animation: arcSpringLeft1 0.20s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan-arc-left .fan-item-2 {
    transform: translateX(-16px);
    animation: arcSpringLeft2 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan-arc-left .fan-item-3 {
    transform: translateX(-34px);
    animation: arcSpringLeft3 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes arcSpringLeft1 {
    0% { opacity: 0; transform: translate(0, 15px) scale(0.7); }
    100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes arcSpringLeft2 {
    0% { opacity: 0; transform: translate(-5px, 20px) scale(0.7); }
    100% { opacity: 1; transform: translate(-16px, 0) scale(1); }
}
@keyframes arcSpringLeft3 {
    0% { opacity: 0; transform: translate(-15px, 25px) scale(0.7); }
    100% { opacity: 1; transform: translate(-34px, 0) scale(1); }
}

/* Right Arc Trajectory (Folders on Left: Curves Up and to the Right) */
.fan-arc-right {
    align-items: flex-start;
}
.fan-arc-right .fan-item {
    justify-content: flex-start;
}
.fan-arc-right .fan-item:hover {
    transform: scale(1.05) translateX(4px);
}
.fan-arc-right .fan-item-1 {
    transform: translateX(0);
    animation: arcSpringRight1 0.20s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan-arc-right .fan-item-2 {
    transform: translateX(16px);
    animation: arcSpringRight2 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.fan-arc-right .fan-item-3 {
    transform: translateX(34px);
    animation: arcSpringRight3 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes arcSpringRight1 {
    0% { opacity: 0; transform: translate(0, 15px) scale(0.7); }
    100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes arcSpringRight2 {
    0% { opacity: 0; transform: translate(5px, 20px) scale(0.7); }
    100% { opacity: 1; transform: translate(16px, 0) scale(1); }
}
@keyframes arcSpringRight3 {
    0% { opacity: 0; transform: translate(15px, 25px) scale(0.7); }
    100% { opacity: 1; transform: translate(34px, 0) scale(1); }
}

/* Persistent High-Contrast WhatsApp Trigger (Impossible to Miss) */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 28px;
    background: var(--c-wa);
    color: #FFFFFF !important;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.90rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.40), 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 9990;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background-color 0.15s;
    cursor: pointer;
}

.floating-whatsapp-btn:hover {
    background: var(--c-wa-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.50);
}

.floating-whatsapp-btn svg {
    flex-shrink: 0;
}

/* Subtle Desktop Credit Mark */
.desktop-credit {
    position: fixed;
    bottom: 26px;
    left: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--c-text-light);
    z-index: 10;
    pointer-events: none;
}

/* Kind Words: index-card stack on the desk + notes wall */
#folder-notes {
    top: 60%;
    left: 47%;
}

.notes-icon {
    position: relative;
    width: 84px;
    height: 62px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.notes-icon .nc {
    position: absolute;
    top: 4px;
    left: 6px;
    right: 6px;
    bottom: 2px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 3px;
}

.notes-icon .nc-1 {
    transform: rotate(-9deg);
    background: #FEF9C3;
    border-top: 4px solid #FACC15;
}

.notes-icon .nc-2 {
    transform: rotate(5deg);
    border-top: 4px solid #93C5FD;
}

.notes-icon .nc-3 {
    transform: rotate(-1deg);
    border-top: 4px solid var(--c-brand);
    padding: 5px 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nc-stars {
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--c-brand);
}

.nc-line {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--c-border);
}

.nc-line-short {
    width: 60%;
}

.notes-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 21, 26, 0.16);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10001;
    cursor: default;
}

.notes-overlay.active {
    display: flex;
}

.notes-wall {
    position: relative;
    width: min(1000px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px 28px 30px 28px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28), 0 10px 25px rgba(0, 0, 0, 0.12);
    user-select: text;
    animation: notesRise 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.notes-close:hover {
    color: var(--c-text-main);
}

.notes-title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.notes-sub {
    margin: 0 0 24px 0;
    font-size: 0.86rem;
    color: var(--c-text-muted);
}

.notes-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -10px 0 2px 0;
}

.notes-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--c-text-light);
}

.notes-arrows {
    display: inline-flex;
    gap: 8px;
}

.notes-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.notes-arrow:hover {
    color: var(--c-text-main);
    border-color: var(--c-text-light);
}

.notes-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px 6px 18px 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.note-card {
    position: relative;
    flex: 0 0 min(320px, 82%);
    scroll-snap-align: start;
    margin: 0;
    padding: 24px 20px 16px 20px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.note-card-yellow {
    background: #FEF9C3;
    border-top: 5px solid #FACC15;
    transform: rotate(-1deg);
}

.note-card-green {
    background: #F0FDF4;
    border-top: 5px solid #4ADE80;
    transform: rotate(-0.5deg);
}

.note-card-blue {
    background: #EFF6FF;
    border-top: 5px solid #60A5FA;
    transform: rotate(1deg);
}

.note-card-pink {
    background: #FDF2F8;
    border-top: 5px solid #F472B6;
    transform: rotate(0.6deg);
}

/* Notes pinned open on the desk */
.desk-note {
    position: absolute;
    width: 196px;
    padding: 16px 14px 11px 14px;
    background: #FEF9C3;
    border-top: 4px solid #FACC15;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: grab;
    touch-action: none;
    text-align: left;
    z-index: 30;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s;
}

.desk-note-a {
    top: 22%;
    right: 15%;
    transform: rotate(2.5deg);
}

.desk-note-b {
    bottom: 12%;
    left: 54%;
    background: #EFF6FF;
    border-top-color: #60A5FA;
    transform: rotate(-2deg);
}

.desk-note:hover:not(.is-dragging) {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.desk-note.is-dragged {
    transform: none;
}

.desk-note.is-dragging {
    cursor: grabbing !important;
    z-index: 650 !important;
    transition: none !important;
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.22)) !important;
    user-select: none !important;
    transform: rotate(-1deg) scale(1.08) !important;
}

.desk-note .note-pin {
    top: -8px;
}

.desk-note p {
    margin: 6px 0 8px 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c-text-main);
}

.desk-note-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--c-text-muted);
}

.note-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFEDD5;
    color: var(--c-brand);
    font-weight: 800;
    font-size: 1.05rem;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.note-pin {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 36px;
    height: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.note-stars {
    color: var(--c-brand);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.note-card blockquote {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--c-text-main);
}

.note-card figcaption {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.note-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.note-who {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--c-text-muted);
}

.note-who strong {
    font-size: 0.86rem;
    color: var(--c-text-main);
}

.note-tag {
    margin-left: auto;
    font-size: 0.62rem;
}

@keyframes notesRise {
    0% { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .notes-wall { animation: none; }
}

/* Mobile Responsive Engine */
@media (max-width: 768px) {
    .top-bar { padding: 14px 18px; }
    .brand-logo { height: 28px; }
    .system-status-badge { font-size: 0.62rem; padding: 5px 10px; }
    .status-sub { display: none; }
    .status-sep { display: none; }

    .os-hero { top: calc(var(--wp-bar-offset) + 8%); padding: 0 16px; }
    .os-hero h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 8px 0; }
    .os-hero p { font-size: 0.80rem; max-width: 300px; line-height: 1.45; }

    .sticky-note {
        top: calc(var(--wp-bar-offset) + 36%);
        left: 12%;
        right: auto;
        width: 118px;
        min-height: 104px;
        aspect-ratio: auto;
        box-sizing: border-box;
        padding: 9px 10px 7px 10px;
    }
    .sticky-title { font-size: 0.58rem; margin-bottom: 4px; }
    .sticky-lines { font-size: 0.52rem; line-height: 1.30; }
    .sticky-lines li { margin-bottom: 2px; }
    .sticky-hint { font-size: 0.48rem; margin-top: 5px; }

    .sticky-note.is-zoomed {
        width: 310px;
        max-width: calc(100vw - 28px);
        min-height: 340px;
        padding: 20px 20px 18px 20px;
    }
    .sticky-note.is-zoomed .sticky-title { font-size: 0.82rem; margin-bottom: 12px; }
    .sticky-note.is-zoomed .sticky-lines { font-size: 0.74rem; line-height: 1.55; }
    .sticky-note.is-zoomed .sticky-lines li { margin-bottom: 7px; }
    .sticky-note.is-zoomed .sticky-hint { font-size: 0.64rem; margin-top: 12px; }

    #folder-business {
        top: calc(var(--wp-bar-offset) + 29%);
        left: auto;
        right: 14%;
        transform: none;
    }
    #folder-business:hover {
        transform: scale(1.09) translateY(-3px);
    }
    #folder-senior {
        top: calc(var(--wp-bar-offset) + 53%);
        left: auto;
        right: 14%;
    }
    #folder-junior {
        top: calc(var(--wp-bar-offset) + 60%);
        bottom: auto;
        left: 18%;
        right: auto;
    }

    /* Mobile Cardstock Index Slips */
    .fan-item {
        padding: 5px 8px;
        gap: 7px;
        max-width: calc(100vw - 28px);
    }
    .fan-label {
        font-size: 0.68rem;
        gap: 6px;
    }
    .fan-sub {
        font-size: 0.54rem;
        padding: 2px 4px;
    }
    .fan-icon-box {
        width: 20px;
        height: 20px;
    }
    .fan-icon-box svg {
        width: 10px;
        height: 10px;
    }
    .fan-icon-box i {
        font-size: 0.70rem;
    }

    /* Mobile Gentle Curves (Subtle Stagger Without Viewport Clipping) */
    .fan-arc-left .fan-item-1 { transform: translateX(0); animation: none; }
    .fan-arc-left .fan-item-2 { transform: translateX(-6px); animation: none; }
    .fan-arc-left .fan-item-3 { transform: translateX(-12px); animation: none; }

    .fan-arc-right .fan-item-1 { transform: translateX(0); animation: none; }
    .fan-arc-right .fan-item-2 { transform: translateX(6px); animation: none; }
    .fan-arc-right .fan-item-3 { transform: translateX(12px); animation: none; }

    /* Full-Width Thumb-Friendly Mobile WhatsApp Bar */
    .floating-whatsapp-btn {
        bottom: 14px;
        left: 16px;
        right: 16px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.94rem;
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    }

    #folder-notes {
        top: calc(var(--wp-bar-offset) + 71%);
        left: auto;
        right: 14%;
    }
    .notes-wall { padding: 24px 16px 22px 16px; }
    .notes-grid { gap: 20px; }
    .note-card-yellow,
    .note-card-green,
    .note-card-blue,
    .note-card-pink { transform: none; }
    .note-card { flex-basis: 84%; }

    .desk-note-a {
        top: calc(var(--wp-bar-offset) + 77%);
        right: auto;
        left: 5%;
        width: 150px;
        padding: 12px 10px 8px 10px;
        transform: rotate(-2deg);
    }
    .desk-note-b { display: none; }
    .desk-note p {
        margin: 4px 0 5px 0;
        font-size: 0.62rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .desk-note-name { display: block; font-size: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .desk-note .note-stars { font-size: 0.7rem; letter-spacing: 1px; }

    .desktop-credit { display: none; }
}
