/* Alice: Madness Returns Inspired Styling */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&family=UnifrakturMaguntia&display=swap');

:root {
    /* Color Palette - Victorian Gothic */
    --parchment: #F4E8D0;
    --aged-paper: #E8DCC4;
    --dark-ink: #2B1810;
    --blood-red: #C41E3A;
    --dark-red: #8B0000;
    --bronze: #8B4513;
    --gold: #D4A574;
    --shadow: rgba(43, 24, 16, 0.3);
    --deep-shadow: rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-title: 'Cinzel', serif;
    --font-gothic: 'UnifrakturMaguntia', cursive;
    --font-body: 'IM Fell English', serif;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--dark-ink);
    overflow: hidden;
    height: 100vh;
}

.page-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ===== BOOK PAGE (Left Side) ===== */
.book-page {
    flex: 1;
    background: linear-gradient(to bottom right, var(--parchment) 0%, var(--aged-paper) 100%);
    position: relative;
    overflow-y: auto;
    box-shadow: 
        inset -10px 0 20px rgba(0, 0, 0, 0.1),
        5px 0 15px var(--deep-shadow);
    border-right: 2px solid var(--bronze);
}

.page-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.03) 2px,
            rgba(139, 69, 19, 0.03) 4px
        );
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

/* Aged paper stains */
.page-texture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(139, 69, 19, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.header-image {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center bottom;
    filter: sepia(0.1) contrast(1.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== SECTION TITLE WRAP ===== */
/* Absolutely overlaid on .header-image */
.section-title-wrap {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 3;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.section-title-wrap.active {
    display: flex;
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-family: var(--font-gothic);
    font-size: 10.5rem;
    color: white;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 1rem 3rem 3rem 3rem;
}

.content-section {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warning-icon {
    font-size: 1.4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.info-box {
    background: rgba(139, 69, 19, 0.08);
    border: 2px solid var(--bronze);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.contact-info {
    font-size: 1.1rem;
    line-height: 1.8;
}

.label {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--bronze);
}

.value {
    color: var(--dark-ink);
    font-weight: 400;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--bronze);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin: 0.8rem 0;
}

.social-link {
    color: var(--dark-ink);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--blood-red);
    border-bottom: 2px solid var(--blood-red);
    transform: translateX(5px);
}

.offer-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.8rem 0;
    background: rgba(255, 255, 255, 0.3);
    border-left: 3px solid var(--bronze);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.offer-item:hover {
    background: rgba(139, 69, 19, 0.1);
    border-left-color: var(--blood-red);
    transform: translateX(5px);
}

.item-icon {
    color: var(--blood-red);
    font-size: 1.2rem;
}

.placeholder-text {
    padding: 2rem;
    text-align: center;
    font-style: italic;
    color: var(--bronze);
}

.examples-container h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--bronze);
    margin: 2rem 0 1rem 0;
    letter-spacing: 1px;
}

/* ===== CIRCULAR MENU (Right Side) ===== */
.menu-container {
    width: 43%;
    position: relative;
    z-index: 10;
    background-image: url('https://64.media.tumblr.com/4cc84a48646757598b743d36c0f44db5/0b493076ebd3e396-4b/s1280x1920/c702f514c8e53868033b94b24ef324f2c7a7194e.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="black"/><g fill="white" opacity="0.05"><circle cx="10" cy="10" r="1"/><circle cx="30" cy="25" r="1"/><circle cx="50" cy="15" r="1"/><circle cx="70" cy="35" r="1"/><circle cx="90" cy="20" r="1"/><circle cx="20" cy="50" r="1"/><circle cx="40" cy="60" r="1"/><circle cx="60" cy="55" r="1"/><circle cx="80" cy="70" r="1"/><circle cx="15" cy="80" r="1"/><circle cx="45" cy="90" r="1"/><circle cx="75" cy="85" r="1"/></g></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.menu-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
}

/* Menu Items Positioning - Half Circle */
.menu-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.menu-item {
    position: absolute;
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   -webkit-text-stroke: 10px black;
paint-order: stroke fill;
    white-space: nowrap;
    transform-origin: center;
    pointer-events: all;
    z-index: 20;
    
}

/* Position items in half circle - right side (6 items) */
.menu-item:nth-child(1) { top: 5%;    right: 20%; }
.menu-item:nth-child(2) { top: 18%;   right: 7%;  }
.menu-item:nth-child(3) { top: 36%;   right: 0%;  }
.menu-item:nth-child(4) { bottom: 36%; right: 0%; }
.menu-item:nth-child(5) { bottom: 18%; right: 7%; }
.menu-item:nth-child(6) { bottom: 5%;  right: 20%;}

.menu-item-link {
    bottom: -8%;
    right: 38%;
}

.menu-item:hover,
.menu-item.active {
    color: var(--blood-red);
    transform: scale(1.2) translateX(-10px);
    filter: drop-shadow(0 0 12px rgba(196, 30, 58, 0.9));
}

.menu-item.active {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Scrollbar Styling */
.book-page::-webkit-scrollbar { width: 12px; }
.book-page::-webkit-scrollbar-track { background: rgba(139, 69, 19, 0.1); }
.book-page::-webkit-scrollbar-thumb { background: var(--bronze); border-radius: 6px; }
.book-page::-webkit-scrollbar-thumb:hover { background: var(--blood-red); }

/* Responsive Design */
@media (max-width: 1024px) {
    .page-container { flex-direction: column; }
    .book-page { min-height: 60vh; }
    .menu-container { width: 100%; min-height: 40vh; }
    .menu-circle {
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(0.8);
    }
}

@media (max-width: 768px) {
    .content-wrapper { padding: 1.5rem; }
    .header-image { height: 40vh; }
    .menu-item { font-size: 0.9rem; padding: 0.6rem 1rem; }
    .menu-circle {
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(0.65);
    }
}

/* ===== OFFER ACCORDION + CAROUSEL ===== */
.offer-item.expandable {
    display: block;
    padding: 0;
    flex-direction: unset;
    align-items: unset;
    background: rgba(255, 255, 255, 0.3);
    border-left: 3px solid var(--bronze);
    margin: 0.4rem;
    transition: border-left-color 0.3s ease;
    overflow: hidden;
}

.offer-item.expandable:hover {
    background: rgba(139, 69, 19, 0.1);
    border-left-color: var(--blood-red);
    transform: none;
}

.offer-item.expandable.open { border-left-color: var(--blood-red); }

.offer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.offer-header:hover { background: rgba(139, 69, 19, 0.08); }

.offer-label { flex: 1; font-size: 1.1rem; }

.expand-arrow {
    color: var(--bronze);
    font-size: 1.2rem;
    transition: transform 0.35s ease;
    display: inline-block;
}

.offer-item.expandable.open .expand-arrow {
    transform: rotate(180deg);
    color: var(--blood-red);
}

/* Accordion slide-down */
.offer-carousel-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-item.expandable.open .offer-carousel-wrap { max-height: 320px; }

/* ===== CAROUSEL ===== */
.carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.5rem;
}

.carousel-track-wrap { flex: 1; overflow: hidden; border-radius: 3px; }

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 200px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder-slide {
    background: rgba(139, 69, 19, 0.08);
    border: 2px dashed var(--bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bronze);
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.carousel-btn {
    background: none;
    border: 1px solid var(--bronze);
    color: var(--gold);
    font-size: 1.6rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-btn:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
    color: var(--parchment);
}

.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 0.4rem 1rem 0.75rem; }

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bronze);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    border: none;
    padding: 0;
}

.carousel-dot.active { opacity: 1; background: var(--blood-red); }

/* ===== WARNING BLOCK WITH GIFS ===== */
.seals-block {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin: 1.5rem 0;
    flex-wrap: nowrap;  /* ← change this */
}

.seal {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 3px solid var(--bronze);
    background: rgba(139, 69, 19, 0.08);
    box-shadow: 
        inset 0 0 20px rgba(139, 69, 19, 0.12),
        0 2px 8px rgba(0,0,0,0.15);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Double-ring effect */
.seal::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(139, 69, 19, 0.3);
    pointer-events: none;
}

.seal:hover {
    border-color: var(--blood-red);
    background: rgba(196, 30, 58, 0.08);
    box-shadow:
        inset 0 0 20px rgba(196, 30, 58, 0.12),
        0 4px 16px rgba(196, 30, 58, 0.2);
}

.seal:hover::before {
    border-color: rgba(196, 30, 58, 0.3);
}

.seal-icon {
    font-family: var(--font-gothic);
    font-size: 2rem;
    color: var(--blood-red);
    line-height: 1;
}

.seal-inner {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--bronze);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
    padding: 0 12px;
}

.seal-side-gif {
    height: 140px;   /* matches seal height — adjust to taste */
    width: auto;
    object-fit: contain;
    align-self: center;
}

/* ===== LIGHTBOX ===== */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lightbox.open {
    display: flex;
}

#lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

#lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    z-index: 1;
}

#lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

#lightbox-close:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
    color: white;
}

/* ===== NOTES TEXT ===== */
.notes-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-ink);
    line-height: 1.8;
}

/* ===== LINKS TAB ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1.2rem 0.8rem 1rem;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(139, 69, 19, 0.04) 22px,
            rgba(139, 69, 19, 0.04) 23px
        ),
        rgba(244, 232, 208, 0.35);
    border: 1px solid rgba(139, 69, 19, 0.25);
    border-top: 2px solid var(--bronze);
    border-radius: 1px;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* dog-ear */
.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: linear-gradient(225deg, var(--aged-paper) 50%, rgba(139,69,19,0.2) 50%);
}

.link-card--clickable:hover {
    border-top-color: var(--blood-red);
    border-color: rgba(196, 30, 58, 0.35);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(196, 30, 58, 0.04) 22px,
            rgba(196, 30, 58, 0.04) 23px
        ),
        rgba(244, 232, 208, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.link-card--clickable:hover .link-card-icon {
    transform: scale(1.2);
}

.link-card-icon {
    font-size: 3rem;
    line-height: 1;
    transition: transform 0.3s ease;
    margin-bottom: 0.2rem;
}

.link-card-icon img {
    min-width: 80px;
    max-width: 90px;
    height: auto;
    object-fit: cover;
    display: block;
    /* slight sepia to match the parchment aesthetic */
    filter: sepia(0.2) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.link-card--clickable:hover .link-card-icon img,
.link-card:not(a):hover .link-card-icon img {
    filter: none;
    transform: scale(1.3);
}

.link-card-label {
    font-family: var(--font-gothic);
    font-size: 1.3rem;
    color: var(--dark-ink);
    line-height: 1;
}

.link-card-value {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--bronze);
    font-style: italic;
    word-break: break-all;
}

/* ===== WILL / WON'T GRID ===== */
.ww-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.ww-col-block {
    padding: 1rem;
    border-radius: 3px;
    border-left: 3px solid var(--bronze);
    background: rgba(255, 255, 255, 0.25);
}

.ww-col-block.yes { border-left-color: var(--bronze); }
.ww-col-block.no  { border-left-color: var(--blood-red); }

.ww-block-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--bronze);
    margin-bottom: 0.75rem;
}

.ww-col-block.no .ww-block-title { color: var(--blood-red); }

.tab-list {
    list-style: none;
    padding: 0;
}

.tab-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1rem;
    position: relative;
    color: var(--dark-ink);
}

.tab-list li::before {
    content: '🩸';
    position: absolute;
    left: -0.25rem;
    font-size: 0.6rem;
    top: 0.45rem;
}

.ww-maybe-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 69, 19, 0.06);
    border-left: 3px solid var(--gold);
    border-radius: 3px;
}

.ww-maybe-label {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
}

.ww-maybe-tag {
    font-size: 0.85rem;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--gold);
    color: var(--dark-ink);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

/* ===== TURNAROUND CARDS ===== */
.turnaround-gif {
    display: block;
    width: 15%;
    max-height: auto;
    object-fit: cover;
    object-position: center center;
    margin: 0 auto 1.5rem auto;
    border-radius: 3px;
}

.turnaround-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.ta-card {
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-left: 3px solid var(--bronze);
    border-radius: 3px;
    text-align: center;
    transition: border-left-color 0.3s ease;
}

.ta-card:hover { border-left-color: var(--blood-red); }

.ta-label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--bronze);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.ta-value {
    font-family: var(--font-gothic);
    font-size: 2rem;
    color: var(--dark-ink);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.ta-desc {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--bronze);
}

/* ===== LOOKING FOR GIF (reuse turnaround-gif) ===== */

/* ===== INNER TABS (Looking For) ===== */
/* ===== INNER TABS — Victorian chapter tabs ===== */
.inner-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.inner-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bronze), var(--bronze), transparent);
    opacity: 0.5;
}

.inner-tab {
    position: relative;
    background: rgba(232, 220, 196, 0.4);
    border: 1px solid var(--bronze);
    border-bottom: none;
    padding: 0.45rem 1.1rem 0.5rem;
    font-family: var(--font-title);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--bronze);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.25s ease;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.inner-tab:hover {
    background: rgba(212, 165, 116, 0.25);
    color: var(--dark-ink);
}

.inner-tab.active {
    background: linear-gradient(to bottom, rgba(244, 232, 208, 0.9), rgba(232, 220, 196, 0.7));
    color: var(--blood-red);
    border-color: var(--blood-red);
    font-weight: 700;
    z-index: 1;
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 -2px 0 var(--blood-red);
}

.inner-tab.active::before {
    content: '✦';
    font-size: 0.5rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    opacity: 0.7;
}

.inner-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.inner-panel.active { display: block; }

/* ===== PREFS GRID — horizontal scroll, no vertical overflow ===== */
.prefs-grid {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.prefs-grid::-webkit-scrollbar { height: 5px; }
.prefs-grid::-webkit-scrollbar-track { background: rgba(139, 69, 19, 0.08); border-radius: 3px; }
.prefs-grid::-webkit-scrollbar-thumb { background: var(--bronze); border-radius: 3px; }
.prefs-grid::-webkit-scrollbar-thumb:hover { background: var(--blood-red); }

/* alias — same behaviour */
.prefs-grid--wide { /* inherits .prefs-grid */ }

.pref-group {
    flex: 0 0 300px;
    scroll-snap-align: start;
    align-self: flex-start;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(139, 69, 19, 0.04) 22px,
            rgba(139, 69, 19, 0.04) 23px
        ),
        rgba(244, 232, 208, 0.35);
    border: 1px solid rgba(139, 69, 19, 0.25);
    border-top: 2px solid var(--bronze);
    padding: 0.9rem 1rem 0.75rem;
    border-radius: 1px;
    position: relative;
}

/* corner dog-ear */
.pref-group::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: linear-gradient(225deg, var(--aged-paper) 50%, rgba(139,69,19,0.2) 50%);
}

.pref-group-title {
    font-family: var(--font-gothic);
    font-size: 1.1rem;
    color: var(--dark-ink);
    margin-bottom: 0.6rem;
    line-height: 1;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    padding-bottom: 0.4rem;
}

/* Fine ink dash bullet inside pref-groups */
.pref-group .tab-list {
    columns: 2;
    column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group .tab-list li {
    break-inside: avoid;
    font-size: 0.88rem;
    line-height: 1.65;
    padding-left: 0.9rem;
    color: var(--dark-ink);
}

.pref-group .tab-list li::before {
    content: '-';
    font-size: 0.7rem;
    color: var(--blood-red);
    left: 0;
    top: 0.3rem;
    opacity: 0.7;
}

/* ===== MULTI-COLUMN PREF-GROUP VARIANTS ===== */
/* 2-column cards — medium lists (9–15 items) */
.pref-group.col-2 {
    flex: 0 0 280px;
}

.pref-group.col-2 .tab-list {
    columns: 2;
    column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

/* 3-column cards — long lists (16+ items) */
.pref-group.col-3 {
    flex: 0 0 380px;
}

.pref-group.col-3 .tab-list {
    columns: 3;
    column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-2 .tab-list li,
.pref-group.col-3 .tab-list li {
    break-inside: avoid;
}

/* 4-column cards */
.pref-group.col-4 {
    flex: 0 0 480px;
}

.pref-group.col-4 .tab-list {
    columns: 4;
    column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-4 .tab-list li {
    break-inside: avoid;
}

/* 5-column cards */
.pref-group.col-5 {
    flex: 0 0 580px;
}

.pref-group.col-5 .tab-list {
    columns: 5;
    column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

/* 6-column cards */
.pref-group.col-6 {
    flex: 0 0 680px;
}

.pref-group.col-6 .tab-list {
    columns: 6;
     column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

/* 7-column cards */
.pref-group.col-7 {
    flex: 0 0 780px;
}

.pref-group.col-7 .tab-list {
    columns: 7;
     column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-7 .tab-list li {
    break-inside: avoid;
}

/* 8-column cards */
.pref-group.col-8 {
    flex: 0 0 880px;
}

.pref-group.col-8 .tab-list {
    columns: 8;
     column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-8 .tab-list li {
    break-inside: avoid;
}

.pref-group.col-5 .tab-list li,
.pref-group.col-6 .tab-list li {
    break-inside: avoid;
}

/* 9-column cards */
.pref-group.col-9 {
    flex: 0 0 980px;
}

.pref-group.col-9 .tab-list {
    columns: 9;
     column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-9 .tab-list li {
    break-inside: avoid;
}

/* 10-column cards */
.pref-group.col-10 {
    flex: 0 0 1080px;
}

.pref-group.col-10 .tab-list {
    columns: 10;
     column-gap: 1.2rem;
    column-rule: 1px solid rgba(139, 69, 19, 0.15);
}

.pref-group.col-10 .tab-list li {
    break-inside: avoid;
}

/* ===== LIMITS — kill every source of extra vertical space ===== */
.content-section[data-tab="limits"] {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content-section[data-tab="limits"] .prefs-grid {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content-section[data-tab="limits"] .info-box {
    margin-bottom: 0;
}



/* ===== TURNAROUND — kill extra vertical space ===== */
.content-section[data-tab="turnaround"] {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content-section[data-tab="turnaround"] .info-box {
    margin-bottom: 0;
}

.book-page:has(.content-section[data-tab="turnaround"].active) .content-wrapper {
    padding-bottom: 0;
}

/* ===== OFFER — kill extra vertical space ===== */
.content-section[data-tab="offer"] .info-box {
    margin-bottom: 0;
}




/* ===== CREDITS ===== */
.credits-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--bronze);
    background: rgba(139, 69, 19, 0.05);
}

.credits-label {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronze);
    white-space: nowrap;
    margin-right: 0.3rem;
}

.credits-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0rem;
    align-items: center;
}

.credits-list li {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* separator dot between items */
.credits-list li + li::before {
    content: '·';
    color: var(--bronze);
    margin: 0 0.4rem;
}

.credits-list a {
    color: var(--bronze);
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s ease;
}

.credits-list a:hover { color: var(--blood-red); }


.section-gif {
    display: block;
    width: 50%;
    max-height: 200px;
    object-fit: cover;
    object-position: center center;
    margin: 0 auto 1rem auto;
    border-radius: 3px;
}

.queue-divider-gif {
    display: block;
    height: auto;
    max-height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 1.5rem auto 0.5rem auto;
}

.section-gif--limits {
    width: 30%;   /* adjust to taste */
    max-height: 200px;
}

.limits-gifs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.limits-gifs .section-gif--limits {
    margin: 0;
}
.looking-gifs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.looking-gifs img {
    height: 150px;   /* adjust to taste */
    width: auto;
    object-fit: contain;
}

/* ===== LOOKING FOR + LIMITS — larger text ===== */
.content-section[data-tab="looking"] .tab-list li,
.content-section[data-tab="limits"] .tab-list li {
    font-size: 1.3rem;
}

.content-section[data-tab="looking"] .pref-group-title,
.content-section[data-tab="limits"] .pref-group-title {
    font-size: 1.3rem;
}

.content-section[data-tab="looking"] .ww-block-title,
.content-section[data-tab="limits"] .ww-block-title {
    font-size: 1.3rem;
}
/* ===== QUEUE (Trello) ===== */
.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    position: relative;
}
.queue-header::after {
    content: '✦';
    position: absolute;
    bottom: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(196,30,58,0.4);
    background: var(--parchment);
    padding: 0 0.4rem;
}

.queue-live-badge {
    font-family: var(--font-gothic);
    font-size: 0.9rem;
    color: var(--blood-red);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.queue-live-badge::before {
    content: '⬤';
    font-size: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

.queue-board-link {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--bronze);
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(139,69,19,0.3);
    padding: 0.2rem 0.6rem;
    transition: all 0.2s ease;
}
.queue-board-link:hover { color: var(--blood-red); border-color: var(--blood-red); background: rgba(196,30,58,0.05); }

.queue-loading {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--bronze);
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0.7;
    font-size: 1rem;
}

.queue-error {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--blood-red);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
}

.queue-lists {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.queue-list-block {
    border-left: 3px solid var(--bronze);
    padding-left: 1rem;
}

.queue-list-title {
    font-family: var(--font-gothic);
    font-size: 1.2rem;
    color: var(--dark-ink);
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
}

.queue-empty {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--bronze);
    font-size: 0.9rem;
    opacity: 0.7;
}

.queue-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 3px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s ease;
}

.queue-card:hover { background: rgba(139, 69, 19, 0.08); }

.queue-card-labels {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.queue-label {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.queue-card-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark-ink);
    flex: 1;
}

.queue-card-due {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--bronze);
    text-transform: uppercase;
    white-space: nowrap;
}

.queue-card-due.overdue { color: var(--blood-red); }

/* ═══════════════════════════════════════════════════
   FULL QUEUE SYSTEM — Gothic Alice · sideways scroll
   2 columns visible at a time, horizontally scrollable
═══════════════════════════════════════════════════ */

/* Outer scroll track — full width of the content area */
.q-list-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
    padding-top: 0.25rem;
    /* Show ~2 columns at a time */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--blood-red) rgba(43,24,16,0.2);
}
.q-list-group::-webkit-scrollbar { height: 6px; }
.q-list-group::-webkit-scrollbar-track {
    background: rgba(43,24,16,0.15);
    border-radius: 3px;
}
.q-list-group::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 3px;
}

/* Each column — 2 always fully visible with the gap */
.q-trello-list {
    flex: 0 0 calc(47% - 0.6rem);
    min-width: calc(47% - 0.6rem);
    scroll-snap-align: start;
    /* Gothic parchment card background */
    background:
        linear-gradient(160deg, rgba(232,220,196,0.97) 0%, rgba(215,200,172,0.97) 100%);
    border: 1px solid rgba(139,69,19,0.35);
    border-top: 3px solid var(--blood-red);
    box-shadow:
        inset 0 0 30px rgba(43,24,16,0.06),
        3px 3px 0 rgba(43,24,16,0.15),
        6px 6px 0 rgba(43,24,16,0.07);
    position: relative;
    overflow: hidden;
}
/* Worn-edge decoration */
.q-trello-list::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--dark-red), var(--blood-red), var(--dark-red));
}

/* Column headers */
.q-list-header {
    padding: 0.85rem 0.75rem;
    font-family: var(--font-gothic);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(139,69,19,0.25);
    background: rgba(43,24,16,0.04);
}
/* Left cell: drag handle left-aligned */
.q-list-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
/* Centre cell: title */
.q-list-header > span:not(.q-count) {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.25rem;
}
/* Right cell: count + admin buttons right-aligned */
.q-list-header-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}
.q-count {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    background: rgba(43,24,16,0.08);
    border: 1px solid rgba(139,69,19,0.2);
    padding: 0.1rem 0.45rem;
    color: var(--bronze);
    flex-shrink: 0;
}

/* Colour-coded headers per list type */
.list-todo    .q-list-header { color: var(--blood-red);  border-bottom-color: rgba(196,30,58,0.3); }
.list-todo    .q-trello-list, .list-todo { border-top-color: var(--blood-red); }
.list-wip     .q-list-header { color: var(--gold);       border-bottom-color: rgba(212,165,116,0.3); }
.list-wip     { border-top-color: var(--gold) !important; }
.list-sketch  .q-list-header { color: #5a4a90;           border-bottom-color: rgba(90,74,144,0.3); }
.list-sketch  { border-top-color: #5a4a90 !important; }
.list-done    .q-list-header { color: #2a6a2a;           border-bottom-color: rgba(42,106,42,0.3); }
.list-done    { border-top-color: #2a6a2a !important; }
.list-default .q-list-header { color: var(--bronze);     border-bottom-color: rgba(139,69,19,0.2); }

/* Cards scroll area */
.q-cards {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 60px;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(196,30,58,0.4) transparent;
}
.q-cards::-webkit-scrollbar { width: 3px; }
.q-cards::-webkit-scrollbar-thumb { background: rgba(196,30,58,0.4); border-radius: 2px; }

.q-empty-col {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--bronze);
    display: block;
    text-align: center;
    opacity: 0.55;
    padding: 1rem 0;
}

/* ── Individual card — gothic manuscript style ── */
.q-card {
    background: rgba(255,252,245,0.7);
    border: 1px solid rgba(139,69,19,0.2);
    border-left: 3px solid rgba(196,30,58,0.25);
    padding: 1rem 1.1rem;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: border-left-color 0.2s, background 0.2s, box-shadow 0.2s;
    /* Subtle page lines */
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 19px,
        rgba(139,69,19,0.04) 19px, rgba(139,69,19,0.04) 20px
    );
}
.q-card::after {
    content: '❧';
    position: absolute;
    bottom: 0.4rem; right: 0.6rem;
    font-size: 0.65rem;
    color: rgba(196,30,58,0.2);
    pointer-events: none;
    transition: color 0.2s;
}
.q-card:hover {
    border-left-color: var(--blood-red);
    background: rgba(255,248,238,0.9);
    box-shadow: 2px 2px 8px rgba(43,24,16,0.12);
}
.q-card:hover::after { color: rgba(196,30,58,0.5); }

/* Image strip */
.q-card-img-strip {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0.55rem;
    border-radius: 1px;
    scrollbar-width: thin;
    scrollbar-color: rgba(196,30,58,0.3) transparent;
}
.q-card-img-strip::-webkit-scrollbar { height: 3px; }
.q-card-img-strip::-webkit-scrollbar-thumb { background: rgba(196,30,58,0.3); }

.q-card-img {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(139,69,19,0.2);
    cursor: zoom-in;
    opacity: 0;
    transition: opacity 0.3s;
}
.q-card-img-strip:has(.q-card-img:nth-child(2)) .q-card-img {
    flex: 0 0 88%;
    width: 88%;
}
.q-card-img.loaded { opacity: 1; }

/* Label pills */
.q-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.45rem;
}
.q-card-label-pill {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* Card name */
.q-card-name {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--dark-ink);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

/* Due date */
.q-card-due {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-top: 0.25rem;
}
.q-card-due.overdue {
    color: var(--blood-red);
    font-weight: 700;
}
.q-card-due.overdue::before { content: '⚠ '; }

/* Link pills */
.q-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.4rem 0 0.1rem;
}
.q-card-link-pill {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--bronze);
    text-decoration: none;
    border: 1px solid rgba(139,69,19,0.3);
    background: rgba(244,232,208,0.5);
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.q-card-link-pill:hover {
    border-color: var(--blood-red);
    color: var(--blood-red);
    background: rgba(196,30,58,0.06);
}
.q-card-link-pill::before { content: '↗ '; opacity: 0.7; }

/* Card footer */
.q-card-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(139,69,19,0.1);
    flex-wrap: wrap;
}
.q-details-btn {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(43,24,16,0.05);
    border: 1px solid rgba(139,69,19,0.3);
    color: var(--bronze);
    cursor: pointer;
    padding: 0.22rem 0.65rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.q-details-btn:hover {
    background: var(--dark-ink);
    color: var(--parchment);
    border-color: var(--dark-ink);
}
.q-trello-link {
    font-family: var(--font-title);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(139,69,19,0.5);
    text-decoration: none;
    transition: color 0.15s;
    margin-left: auto;
}
.q-trello-link:hover { color: var(--blood-red); }

/* ═══════════════════════════════════════════════════
   ADMIN QUEUE STYLES
═══════════════════════════════════════════════════ */

/* Admin toggle button in queue header */
.admin-toggle-btn {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    background: transparent;
    border: 1px solid rgba(139,69,19,0.35);
    color: var(--bronze);
    cursor: pointer;
    transition: all 0.2s;
}
.admin-toggle-btn:hover { border-color: var(--dark-ink); color: var(--dark-ink); background: rgba(43,24,16,0.06); }
.admin-toggle-btn.admin-active {
    background: rgba(43,24,16,0.85);
    border-color: var(--gold);
    color: var(--gold);
}

/* Admin banner */
.admin-mode-bar {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-style: italic;
    background: rgba(43,24,16,0.88);
    border: 1px solid var(--gold);
    border-left: 3px solid var(--gold);
    color: var(--gold);
    padding: 0.55rem 1rem;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* Admin card orange accent */
.admin-card-mode { border-left: 2px solid #c07010 !important; }

.admin-card-controls {
    display: flex; gap: 0.3rem; flex-wrap: wrap;
    margin: 0.4rem 0 0.3rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(139,69,19,0.15);
}
.admin-card-btn {
    font-family: var(--font-title);
    font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border: 1px solid rgba(139,69,19,0.25);
    cursor: pointer;
    transition: all 0.12s;
    background: rgba(244,232,208,0.5);
    color: var(--bronze);
}
.admin-card-btn:hover { background: var(--dark-ink); color: var(--parchment); border-color: var(--dark-ink); }
.admin-card-btn-delete { color: var(--blood-red) !important; border-color: rgba(196,30,58,0.3) !important; margin-left: auto; }
.admin-card-btn-delete:hover { background: rgba(196,30,58,0.15) !important; }

.admin-add-card-btn {
    display: block; width: 100%; margin-top: 0.5rem; padding: 0.35rem;
    font-family: var(--font-title); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(244,232,208,0.3);
    border: 1px dashed rgba(139,69,19,0.3);
    color: var(--bronze); cursor: pointer;
    transition: all 0.15s;
}
.admin-add-card-btn:hover { border-color: var(--dark-ink); color: var(--dark-ink); background: rgba(244,232,208,0.6); }

.admin-add-list-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-title); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(244,232,208,0.3);
    border: 1px dashed rgba(139,69,19,0.3);
    color: var(--bronze); cursor: pointer;
    transition: all 0.15s;
}
.admin-add-list-btn:hover { border-color: var(--dark-ink); color: var(--dark-ink); background: rgba(244,232,208,0.6); }

/* Admin select (move card dropdown) */
.admin-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B4513'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem !important;
    cursor: pointer;
}
.admin-select option { background: #f4e8d0; color: #2a1a0a; }

/* Rename list button in list header */
.admin-rename-list-btn {
    margin-left: auto; padding: 0.1rem 0.35rem;
    font-size: 0.7rem; line-height: 1;
    background: none; border: 1px solid transparent;
    color: rgba(139,69,19,0.5); cursor: pointer; border-radius: 2px;
    transition: all 0.15s; flex-shrink: 0;
}
.admin-rename-list-btn:hover {
    color: var(--bronze); border-color: rgba(139,69,19,0.35);
    background: rgba(139,69,19,0.08);
}

/* Delete list button in list header */
.admin-delete-list-btn {
    margin-left: auto; padding: 0.1rem 0.35rem;
    font-size: 0.7rem; line-height: 1;
    background: none; border: 1px solid transparent;
    color: rgba(196,30,58,0.5); cursor: pointer; border-radius: 2px;
    transition: all 0.15s; flex-shrink: 0;
}
.admin-delete-list-btn:hover {
    color: var(--blood-red); border-color: rgba(196,30,58,0.4);
    background: rgba(196,30,58,0.08);
}

/* Embed pills with delete button in admin mode */
.q-card-link-pill-wrap { display: inline-flex; align-items: center; gap: 0; }
.admin-embed-del-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1rem; height: 1.1rem; margin-left: 1px;
    font-size: 0.55rem; line-height: 1;
    background: rgba(196,30,58,0.12); border: 1px solid rgba(196,30,58,0.25);
    border-left: none; border-radius: 0 3px 3px 0;
    color: var(--blood-red); cursor: pointer; flex-shrink: 0;
    transition: background 0.15s;
}
.admin-embed-del-btn:hover { background: rgba(196,30,58,0.3); }

/* List drag handles */
.list-drag-handle { cursor: grab; opacity: 0.4; font-size: 1rem; flex-shrink: 0; transition: opacity 0.15s; }
.list-drag-handle:hover { opacity: 0.9; }
.list-draggable { transition: opacity 0.15s, box-shadow 0.15s; }
.list-dragging  { opacity: 0.45; box-shadow: 0 0 0 2px var(--gold); cursor: grabbing; }
.list-drag-over { box-shadow: 0 0 0 2px var(--blood-red) !important; }

/* Admin modal backdrop */
.admin-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,5,3,0.88);
    backdrop-filter: blur(4px);
    z-index: 9200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.admin-modal-panel {
    background: linear-gradient(160deg, var(--parchment) 0%, var(--aged-paper) 100%);
    border: 1px solid rgba(139,69,19,0.4);
    border-top: 3px solid var(--blood-red);
    width: 100%; max-width: 500px; max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 8px 8px 0 rgba(43,24,16,0.25), 0 0 40px rgba(0,0,0,0.5);
}
.admin-modal-sm { max-width: 380px; }

.admin-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid rgba(139,69,19,0.2);
    background: rgba(43,24,16,0.05);
    font-family: var(--font-gothic); font-size: 0.95rem;
    color: var(--blood-red);
}
.admin-modal-close {
    background: none; border: 1px solid rgba(139,69,19,0.25);
    color: var(--bronze); cursor: pointer; font-size: 0.9rem;
    width: 1.7rem; height: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-title);
    transition: all 0.2s;
}
.admin-modal-close:hover { background: var(--blood-red); color: var(--parchment); border-color: var(--blood-red); }
.admin-modal-body {
    padding: 1.1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.55rem; flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(196,30,58,0.3) transparent;
}
.admin-modal-footer {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    padding: 0.8rem 1.1rem; border-top: 1px solid rgba(139,69,19,0.2);
    background: rgba(43,24,16,0.03);
}
.admin-label {
    font-family: var(--font-title); font-size: 0.6rem; color: var(--bronze);
    letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem;
}
.admin-req { color: var(--blood-red); }
.admin-hint { color: var(--bronze); font-size: 0.6rem; text-transform: none; letter-spacing: 0; opacity: 0.65; }
.admin-hint-text { font-family: var(--font-body); font-style: italic; font-size: 0.78rem; color: var(--bronze); opacity: 0.7; margin: 0; }

.admin-input, .admin-textarea {
    width: 100%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(139,69,19,0.3);
    color: var(--dark-ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.45rem 0.7rem;
    box-sizing: border-box; resize: none;
    transition: border-color 0.2s;
}
.admin-input:focus, .admin-textarea:focus { outline: none; border-color: var(--blood-red); background: rgba(255,255,255,0.7); }
.admin-textarea { height: 80px; resize: vertical; }
.admin-textarea-lg { height: 140px; }

.admin-img-preview { overflow: hidden; border: 1px solid rgba(139,69,19,0.25); }
.admin-img-preview img { display: block; width: 100%; max-height: 160px; object-fit: contain; background: rgba(43,24,16,0.05); }

.admin-error {
    font-family: var(--font-body); font-style: italic;
    font-size: 0.8rem; color: var(--blood-red);
    background: rgba(196,30,58,0.08); border: 1px solid rgba(196,30,58,0.3);
    border-left: 3px solid var(--blood-red);
    padding: 0.4rem 0.7rem;
}
.admin-btn-primary {
    font-family: var(--font-title); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.4rem 1rem;
    background: rgba(43,24,16,0.85); border: 1px solid rgba(43,24,16,0.6); color: var(--parchment);
    cursor: pointer; transition: all 0.2s;
}
.admin-btn-primary:hover { background: var(--dark-ink); border-color: var(--dark-ink); }
.admin-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-btn-secondary {
    font-family: var(--font-title); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    background: transparent; border: 1px solid rgba(139,69,19,0.3); color: var(--bronze);
    cursor: pointer; transition: all 0.2s;
}
.admin-btn-secondary:hover { border-color: var(--dark-ink); color: var(--dark-ink); background: rgba(43,24,16,0.05); }

/* Label picker */
.admin-label-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 300px; overflow-y: auto; }
.admin-label-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(139,69,19,0.2);
    background: rgba(244,232,208,0.05);
    color: var(--dark-ink);
    font-family: var(--font-body); font-size: 0.82rem;
    cursor: pointer; transition: all 0.12s; border-radius: 3px;
}
.admin-label-toggle.active { border-color: var(--lbl-color, var(--gold)); background: color-mix(in srgb, var(--lbl-color, var(--gold)) 15%, transparent); }
.admin-label-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lbl-color, #888); flex-shrink: 0; }
.admin-label-check { margin-left: auto; font-size: 0.75rem; color: var(--lbl-color, #888); }

/* Paste zone */
.admin-paste-zone {
    border: 2px dashed rgba(139,69,19,0.3); border-radius: 4px;
    padding: 1rem; text-align: center; cursor: pointer;
    color: var(--bronze); font-family: var(--font-body); font-style: italic; font-size: 0.85rem;
    transition: border-color 0.15s;
    outline: none;
}
.admin-paste-zone:focus, .admin-paste-zone.has-image { border-color: var(--gold); }
.admin-attach-or {
    text-align: center; color: var(--bronze); opacity: 0.5;
    font-family: var(--font-title); font-size: 0.6rem; letter-spacing: 0.1em;
    margin: 0.3rem 0;
}

/* Image manager */
.aim-image-list { display: flex; flex-direction: column; gap: 0.4rem; }
.aim-item {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(244,232,208,0.06); border: 1px solid rgba(139,69,19,0.2);
    border-radius: 3px; padding: 0.35rem 0.5rem; cursor: grab;
}
.aim-item.aim-dragging { opacity: 0.4; }
.aim-item.aim-over { border-color: var(--gold); }
.aim-drag-handle { font-size: 0.9rem; color: var(--bronze); opacity: 0.5; cursor: grab; flex-shrink: 0; }
.aim-thumb { width: 36px; height: 36px; object-fit: cover; border: 1px solid rgba(139,69,19,0.2); border-radius: 2px; flex-shrink: 0; }
.aim-name { flex: 1; font-family: var(--font-body); font-size: 0.75rem; color: var(--parchment); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aim-actions { display: flex; gap: 0.3rem; }
.aim-btn {
    background: none; border: 1px solid rgba(139,69,19,0.2);
    color: var(--bronze); cursor: pointer; font-size: 0.7rem;
    width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center;
    border-radius: 2px; transition: all 0.12s;
}
.aim-btn:hover { background: var(--dark-ink); color: var(--parchment); }
.aim-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.aim-del { color: var(--blood-red) !important; border-color: rgba(196,30,58,0.25) !important; }
.aim-del:hover { background: rgba(196,30,58,0.2) !important; }

/* ═══════════════════════════════════════════════════
   QUEUE LIGHTBOX — gothic dark overlay
═══════════════════════════════════════════════════ */
#queue-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9100;
    align-items: center;
    justify-content: center;
}
#queue-lightbox.open { display: flex; }

.qlb-backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 5, 3, 0.94);
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}
.qlb-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: rgba(43,24,16,0.6);
    border: 1px solid rgba(196,30,58,0.5);
    color: var(--parchment);
    font-size: 1rem; cursor: pointer;
    width: 2.2rem; height: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    transition: all 0.2s;
    font-family: var(--font-title);
}
.qlb-close:hover { background: var(--blood-red); border-color: var(--blood-red); }
.qlb-img {
    position: relative; z-index: 1;
    max-width: 92vw; max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(196,30,58,0.3);
    box-shadow: 0 0 80px rgba(0,0,0,0.9), 0 0 30px rgba(196,30,58,0.1);
    animation: qlb-pop 0.2s ease both;
}
@keyframes qlb-pop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   QUEUE CARD DETAIL OVERLAY — gothic manuscript panel
═══════════════════════════════════════════════════ */
#queue-card-detail {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9050;
    align-items: center;
    justify-content: center;
}
#queue-card-detail.open { display: flex; }

.qcd-backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 5, 3, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.qcd-panel {
    position: relative; z-index: 1;
    /* Aged parchment */
    background:
        linear-gradient(160deg, var(--parchment) 0%, var(--aged-paper) 100%);
    background-image:
        linear-gradient(160deg, var(--parchment) 0%, var(--aged-paper) 100%),
        repeating-linear-gradient(
            0deg, transparent, transparent 23px,
            rgba(139,69,19,0.06) 23px, rgba(139,69,19,0.06) 24px
        );
    background-blend-mode: normal;
    border: 1px solid rgba(139,69,19,0.4);
    border-top: 3px solid var(--blood-red);
    box-shadow:
        8px 8px 0 rgba(43,24,16,0.3),
        16px 16px 0 rgba(43,24,16,0.12),
        0 0 60px rgba(0,0,0,0.6);
    width: min(560px, 94vw);
    max-height: 88vh;
    display: flex; flex-direction: column;
    animation: qlb-pop 0.2s ease both;
}

.qcd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(139,69,19,0.2);
    background: rgba(43,24,16,0.04);
    flex-shrink: 0;
}
.qcd-eyebrow {
    font-family: var(--font-gothic);
    font-size: 1rem;
    color: var(--blood-red);
    letter-spacing: 0.04em;
}
.qcd-close {
    background: none;
    border: 1px solid rgba(139,69,19,0.3);
    color: var(--bronze);
    font-size: 0.9rem; cursor: pointer;
    width: 1.8rem; height: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-title);
    transition: all 0.2s;
}
.qcd-close:hover { background: var(--blood-red); color: var(--parchment); border-color: var(--blood-red); }

.qcd-body {
    padding: 1.4rem 1.6rem 1.8rem;
    overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: rgba(196,30,58,0.3) transparent;
}
.qcd-body::-webkit-scrollbar { width: 4px; }
.qcd-body::-webkit-scrollbar-thumb { background: rgba(196,30,58,0.3); }

.qcd-title {
    font-family: var(--font-gothic);
    font-size: 1.5rem; color: var(--dark-ink); line-height: 1.25;
    margin-bottom: 0.6rem;
}
.qcd-due {
    font-family: var(--font-title); font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bronze); margin-bottom: 1rem;
}
.qcd-due.overdue { color: var(--blood-red); font-weight: 700; }
.qcd-due.overdue::before { content: '⚠ '; }

.qcd-section-label {
    font-family: var(--font-title); font-size: 0.6rem;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--bronze); opacity: 0.75;
    margin: 1rem 0 0.5rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.qcd-section-label::after {
    content:''; flex:1; height:1px;
    background: linear-gradient(90deg, rgba(139,69,19,0.3), transparent);
}

.qcd-labels { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.3rem; }
.qcd-label-pill {
    font-family: var(--font-title); font-size: 0.62rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #fff; padding: 0.2rem 0.7rem;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.qcd-desc {
    font-family: var(--font-body);
    font-size: 0.9rem; color: var(--dark-ink); line-height: 1.7;
    background: rgba(255,255,255,0.4);
    border-left: 3px solid var(--blood-red);
    padding: 0.7rem 1rem;
    white-space: pre-wrap; word-break: break-word;
}

.qcd-images {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.2rem;
}
.qcd-img {
    height: 140px; width: auto; max-width: 250px;
    object-fit: cover;
    border: 1px solid rgba(139,69,19,0.25);
    cursor: zoom-in;
    opacity: 0; transition: opacity 0.3s, border-color 0.2s;
    flex-shrink: 0;
}
.qcd-img.loaded { opacity: 1; }
.qcd-img:hover { border-color: var(--blood-red); }

.qcd-links {
    display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem;
}
.qcd-link-pill {
    font-family: var(--font-title); font-size: 0.62rem; letter-spacing: 0.05em;
    color: var(--bronze); text-decoration: none;
    border: 1px solid rgba(139,69,19,0.25);
    background: rgba(244,232,208,0.4);
    padding: 0.3rem 0.7rem;
    word-break: break-all;
    transition: all 0.2s;
}
.qcd-link-pill:hover { border-color: var(--blood-red); color: var(--blood-red); background: rgba(196,30,58,0.06); }
.qcd-link-pill::before { content: '↗ '; opacity: 0.7; }

.qcd-trello-btn {
    display: inline-block; margin-top: 1.3rem;
    font-family: var(--font-title); font-size: 0.65rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--dark-ink); text-decoration: none;
    border: 1px solid rgba(139,69,19,0.4);
    padding: 0.35rem 0.9rem;
    background: rgba(43,24,16,0.05);
    transition: all 0.2s;
}
.qcd-trello-btn:hover { background: var(--dark-ink); color: var(--parchment); }

/* ── Admin password modal gothic reskin ── */
.admin-pw-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,5,3,0.85);
    z-index: 9200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.admin-pw-panel {
    background: linear-gradient(160deg, var(--parchment) 0%, var(--aged-paper) 100%);
    border: 1px solid rgba(139,69,19,0.4);
    border-top: 3px solid var(--blood-red);
    box-shadow: 8px 8px 0 rgba(43,24,16,0.25);
    width: 100%; max-width: 380px;
    display: flex; flex-direction: column;
}
.admin-pw-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid rgba(139,69,19,0.2);
    background: rgba(43,24,16,0.04);
}
.admin-pw-eyebrow {
    font-family: var(--font-gothic); font-size: 1rem; color: var(--blood-red);
}
.admin-pw-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.admin-pw-hint {
    font-family: var(--font-body); font-style: italic;
    font-size: 0.88rem; color: var(--bronze); opacity: 0.85;
}
