.parlor-shell {
    min-height: calc(100vh - 8rem);
}
.parlor-ledger {
    position: relative;
    background-color: #ead6ad;
    background-image:
        radial-gradient(rgba(90, 50, 20, 0.06) 0.8px, transparent 0.8px),
        linear-gradient(180deg, #f3e4c4 0%, #e6cf9a 100%);
    background-size: 16px 16px, 100% 100%;
    color: #2c1a12;
    border: 10px solid #3d2418;
    box-shadow:
        inset 0 0 0 2px #c4a35a,
        0 28px 60px rgba(0, 0, 0, 0.7);
    border-radius: 6px;
}
.parlor-field {
    width: 100%;
    background: rgba(255, 248, 230, 0.72);
    border: 1px solid #8a6238;
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    color: #2c1a12;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.05rem;
}
.parlor-field:focus {
    outline: 2px solid rgba(176, 141, 87, 0.55);
    outline-offset: 1px;
}
.parlor-field[readonly] {
    opacity: 0.88;
    cursor: default;
}
body[data-parlor-mode="signin"] #parlor-username-wrap {
    display: none;
}
.parlor-btn {
    background: linear-gradient(180deg, #c4a35a, #8a6420);
    color: #1a140c;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid #5c4a2c;
    border-radius: 6px;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
}
.parlor-btn:hover { filter: brightness(1.08); }
.parlor-btn:disabled { opacity: 0.5; cursor: wait; }
.parlor-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding: 0.3rem;
    background: rgba(60, 36, 18, 0.12);
    border: 1px solid #8a6238;
    border-radius: 8px;
}
.parlor-toggle button {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b4a28;
    padding: 0.55rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
}
.parlor-toggle button.is-active {
    background: linear-gradient(180deg, #c4a35a, #8a6420);
    color: #1a140c;
}
.parlor-error {
    color: #7f1d1d;
    font-size: 0.9rem;
    min-height: 1.25rem;
}
.corkboard {
    position: relative;
    min-height: 28rem;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(90, 40, 16, 0.28), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(40, 18, 8, 0.35), transparent 46%),
        repeating-radial-gradient(circle at 10px 10px, #8a5a32 0 1px, transparent 1.5px 11px),
        linear-gradient(180deg, #7a4a28, #5a3218);
    border: 12px solid #2b1810;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.55);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.pin-note {
    position: relative;
    background: #f4e6c4;
    color: #2c1a12;
    padding: 1.35rem 1rem 1rem;
    box-shadow: 3px 8px 14px rgba(0, 0, 0, 0.35);
    transform: rotate(var(--tilt, -1.5deg));
    font-family: 'Caveat', 'Instrument Serif', cursive;
}
.pin-delete {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 1px solid #8a6238;
    border-radius: 2px;
    background: #ead6ad;
    color: #5c3310;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.7);
}
.pin-delete:hover,
.pin-delete:focus-visible {
    opacity: 1;
    color: #7f1d1d;
    border-color: #7f1d1d;
    outline: none;
}
.pin-head {
    display: block;
    width: 14px;
    height: 14px;
    margin: -1.55rem auto 0.7rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ef4444, #7f1d1d);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}
.pin-author {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a4e18;
    margin-bottom: 0.4rem;
}
.pin-body {
    font-size: 1.35rem;
    line-height: 1.3;
    white-space: pre-wrap;
}
.pin-date {
    margin: 0;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.75rem;
    font-style: italic;
    color: #6b4a28;
}
.pin-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.pin-like {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.2rem 0.45rem;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #6b4a28;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pin-like svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    pointer-events: none;
    transform-origin: center;
}
.pin-like-count {
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    min-width: 0.7rem;
    pointer-events: none;
}
.pin-like:hover,
.pin-like:focus-visible {
    color: #9f1239;
    background: rgba(127, 29, 29, 0.08);
    outline: none;
}
.pin-like.is-liked {
    color: #9f1239;
}
.pin-like.is-liked svg {
    fill: #9f1239;
    stroke: #9f1239;
}
.pin-like.is-pop svg {
    animation: heart-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heart-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.32); }
    100% { transform: scale(1); }
}
@media (max-width: 768px) {
    .corkboard {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    .pin-like {
        min-width: 3rem;
        min-height: 3rem;
    }
    .pin-like svg {
        width: 1.3rem;
        height: 1.3rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pin-like.is-pop svg { animation: none; }
}
.cork-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #f3e6c8;
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    padding: 4rem 1rem;
}
.sanctuary-link {
    color: #d9ab55;
}
.sanctuary-panel {
    margin-top: 2.5rem;
    padding: 1.5rem 1.6rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(20, 10, 6, 0.4), rgba(8, 5, 4, 0.55)),
        #1a100c;
    border: 1px solid #6e4a28;
    box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.2), 0 16px 40px rgba(0,0,0,0.45);
    border-radius: 8px;
}
.sanctuary-panel[hidden] { display: none !important; }
.roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(196, 163, 90, 0.18);
    color: #f3e6c8;
}
.roster-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.15rem;
}
.roster-revoke {
    appearance: none;
    background: transparent;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    max-width: 14rem;
    line-height: 1.35;
}
.roster-revoke:hover { background: rgba(127, 29, 29, 0.2); }
.roster-revoke:disabled { opacity: 0.4; cursor: not-allowed; }
