/* Musiksnack.se – mörkt vinyl-tema */

:root {
    --bg: #0a0a0b;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --surface-hover: #232328;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-2: #a1a1aa;
    --text-3: #71717a;
    --accent: #b41a2a;
    --accent-hover: #8f1421;
    --accent-soft: rgba(180, 26, 42, 0.12);
    --warn: #f59e0b;
    --ok: #10b981;
    --danger: #ef4444;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.45);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --topbar-h: calc(56px + env(safe-area-inset-top, 0px));   /* +iOS-notch/Dynamic Island (env=0 på desktop) */
    --side-w: 280px;
    --site-max: 1400px;
}

html.light {
    --bg: #f0f2f5;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-hover: #ebedf0;
    --border: #e4e6eb;
    --border-strong: #ced0d4;
    --text: #050505;
    --text-2: #65676b;
    --text-3: #8a8d91;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    overscroll-behavior: none;
    overflow-x: clip;
}
/* iOS/touch: body är scroll-container (html scrollar inte → ingen rubber-band-studs som drar
   topbaren upp/ner). Topbaren blir STICKY (i flödet) istället för fixed, så den inte
   mispositioneras vid bakåt (tomrummet). .layout tappar sin topp-padding (topbaren tar sin
   egen plats nu), och login matchar body-höjden istället för 100vh. Desktop (mus) orört. */
@media (hover: none) and (pointer: coarse) {
    html { height: 100%; overflow: hidden; }
    body { height: 100%; overflow-y: auto; overflow-x: clip; overscroll-behavior: none; }
    .topbar { position: sticky; }
    .layout { padding-top: 0; }
    .auth-page { min-height: 100%; }
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; color: var(--text); }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; margin: 0; }

/* ===== TOPBAR ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: env(safe-area-inset-top, 0px) calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
    z-index: 50;
}
.topbar-inner { display: flex; align-items: center; width: 100%; max-width: var(--site-max); margin: 0 auto; gap: 12px; }
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 22px; color: var(--text);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    width: auto; padding-left: 4px;
}
.brand-logo {
    width: 40px; height: 40px; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #2a2a2e 0%, #0a0a0b 60%, #18181b 70%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 2px #18181b, 0 0 0 1px var(--accent);
    position: relative;
}
.brand-logo::before {
    content: ''; width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent);
}
.brand-logo::after {
    content: ''; position: absolute; inset: 4px; border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
}
.brand-name { letter-spacing: -0.5px; }
.brand-img { height: 36px; width: auto; }
html.light .brand-img { filter: invert(1); }
.brand-gavle {
    align-self: center; margin-left: -3px; font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700; font-size: 14px; letter-spacing: 0.5px; color: #ff4d5e;
    opacity: 0; pointer-events: none; white-space: nowrap;
}
/* Neonskylt med "glappig" kontakt: flimrar på, glöder, en liten glitch, slocknar */
.brand-gavle.gv-on { animation: gavleNeon 2.6s ease; }
@keyframes gavleNeon {
    0% { opacity: 0; }
    3% { opacity: .9; } 5% { opacity: .15; } 7% { opacity: 1; }
    9% { opacity: .35; } 11% { opacity: 1; } 14% { opacity: .7; } 16% { opacity: 1; }
    54% { opacity: 1; } 59% { opacity: .45; } 62% { opacity: 1; }
    100% { opacity: 0; }
}
/* Bak/fram-pilar (history) – syns bara i den tvåradiga mobil-topbaren */
.topbar-histnav { display: none; }
.histnav-btn { width: 34px; height: 34px; border: none; background: transparent; color: var(--text-2); cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.histnav-btn:hover { background: var(--surface-2); color: var(--text); }
.histnav-btn:active { transform: scale(0.92); }
.histnav-btn svg { width: 20px; height: 20px; }
.topbar-hamburger { display: none; width: 40px; height: 40px; border: none; background: transparent; color: var(--text); cursor: pointer; border-radius: 50%; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar-hamburger:hover { background: var(--surface-2); }
.topbar-hamburger svg { width: 24px; height: 24px; }
.mobile-nav-backdrop { display: none; }

.searchbar {
    flex: 1; max-width: 560px; margin: 0 auto; position: relative;
}
.searchbar input {
    width: 100%; height: 40px; border-radius: 999px; padding: 0 16px 0 44px;
    background: var(--surface-2); border: 1px solid transparent; color: var(--text);
    outline: none; font-size: 14px;
}
.searchbar input:focus { background: var(--surface); border-color: var(--accent); }
.searchbar svg { position: absolute; top: 50%; transform: translateY(-50%); left: 14px; color: var(--text-2); width: 18px; height: 18px; }
.searchbar-results {
    position: absolute; top: 48px; left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px;
    max-height: 460px; overflow-y: auto; box-shadow: var(--shadow); z-index: 60;
    display: none;
}
.searchbar-results.open { display: block; }
.search-result {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border-radius: var(--radius-sm); cursor: pointer;
}
.search-result:hover { background: var(--surface-2); }
.search-result img, .search-result .avatar { width: 36px; height: 36px; border-radius: 50%; }
.search-result-meta { font-size: 12px; color: var(--text-2); }

/* Snabb-navrad på artistsidan: tillbaka-knapp + "hoppa mellan akter"-sök */
.proj-quicknav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.proj-back { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; padding: 0; }
.proj-back:hover { border-color: var(--accent); color: var(--accent); }
.proj-back svg { width: 20px; height: 20px; }
.proj-jump { flex: 1 1 auto; min-width: 0; }   /* .mus-search-bar ger position:relative för dropdownen */
.proj-jump-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; max-height: 360px; overflow-y: auto; display: none; }
.proj-jump-results.open { display: block; }
.proj-jump-results .search-result .avatar { background-size: cover; background-position: center; }

.topbar-nav {
    display: flex; align-items: center; gap: 4px;
    flex: 1; justify-content: center;
}
.topbar-nav a {
    width: 100px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); color: var(--text-2); position: relative;
}
.topbar-nav a:hover { background: var(--surface-2); color: var(--text); }
.topbar-nav a.active { color: var(--accent); border-bottom: 3px solid var(--accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.topbar-nav a svg { width: 22px; height: 22px; }

.topbar-right {
    display: flex; align-items: center; gap: 8px; width: var(--side-w);
    justify-content: flex-end; padding-right: 4px;
}
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-2); border: none; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: white;
    font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 999px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--surface);
}
.avatar-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface-2); cursor: pointer; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: none; padding: 0;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ===== LAYOUT ===== */
.layout {
    padding-top: var(--topbar-h);
    display: grid;
    grid-template-columns: calc(var(--side-w) - 15px) minmax(0,1fr) calc(var(--side-w) + 15px);
    gap: 0;
    max-width: var(--site-max);
    margin: 0 auto;
}
.sidebar-left, .sidebar-right {
    position: sticky; top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    padding: 16px 8px;
}
.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar { width: 8px; }
.sidebar-left::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

.main {
    padding: 16px calc(20px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
    width: 100%;
    min-width: 0;     /* tvingar grid-kolumnen att respektera 1fr utan att overflowa */
}

.sidebar-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text);
}
.sidebar-nav-item:hover { background: var(--surface-2); }
.sidebar-nav-item.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-nav-item .ico {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface-2); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar-nav-item.active .ico { background: var(--accent); color: #fff; }
.sidebar-nav-item .ico svg { width: 18px; height: 18px; }
.sidebar-nav-item .label { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { margin-left: auto; flex-shrink: 0; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
/* Forum-lista under "Forum/grupper"-rubriken: ikonlösa, indragna, kompakta */
.sidebar-subitem { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 68px; border-radius: var(--radius-sm); color: var(--text-2); }
.sidebar-subitem:hover { background: var(--surface-2); color: var(--text); }
.sidebar-subitem .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.sidebar-subitem .nav-badge { font-size: 10px; min-width: 16px; height: 16px; }
.sidebar-subitem.not-member { opacity: .5; }
.sidebar-subitem.not-member:hover { opacity: 1; }
/* Post-"..."-meny: bredare + mindre text så namn inte bryts */
.post-menu .notif-item .meta p { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
/* Block/mute-status på medlemskort + hanteringssida */
.member-card.is-blocked, .member-card.is-muted { opacity: .55; }
.member-card .member-flag { flex-shrink: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--danger, #dc2626); color: #fff; }
.member-card .member-flag.muted { background: var(--surface-3, #555); }
.member-card .member-undo { flex-shrink: 0; font-size: 12px; padding: 4px 9px; }
/* Teststart-sida (ny startsida) + nyhetskort */
.start-welcome-title { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; margin: 14px 0 16px; }
.start-welcome-title > span { text-transform: uppercase; letter-spacing: .06em; font-size: 22px; font-weight: 800; white-space: nowrap; }
.start-welcome-title::before, .start-welcome-title::after { content: ""; height: 2px; flex: 1 1 0; max-width: 84px; border-radius: 2px; }
.start-welcome-title::before { background: linear-gradient(to right, transparent, var(--text-3)); }
.start-welcome-title::after { background: linear-gradient(to left, transparent, var(--text-3)); }
@media (max-width: 600px) { .start-welcome-title { gap: 10px; } .start-welcome-title > span { white-space: normal; font-size: 16px; letter-spacing: .04em; } .start-welcome-title::before, .start-welcome-title::after { max-width: 22px; } }
.start-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.start-widgets .start-widget { margin: 0; }
.start-widget-h { font-size: 14px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.start-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.start-list-item:last-of-type { border-bottom: none; }
.start-list-item:hover .sli-name { color: var(--accent); }
.start-list-item .sli-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.start-section-title { font-size: 18px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.news-card { padding: 0; overflow: hidden; }
.news-card-img { width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.news-card-head { padding: 11px 20px 9px; }
.news-card-date { font-size: 12px; font-weight: 600; color: var(--text-3, var(--text-2)); margin-bottom: 4px; }
.news-card-title { font-size: 20px; font-weight: 800; margin: 0; }
.news-card-text { padding: 11px 20px 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.news-img-prev { width: 100%; max-width: 480px; aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-radius: var(--radius-sm); background-color: var(--surface-2); }
.news-img-prev.empty { border: 2px dashed var(--border); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.news-grid .news-card { margin: 0; }
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; } .start-widgets { grid-template-columns: 1fr; gap: 16px; } }
.start-listing { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--text); }
.start-listing:hover .sli-name { color: var(--accent); }
.start-listing-img { width: 54px; height: 54px; flex-shrink: 0; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.start-listing-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.start-tile { display: block; text-decoration: none; color: var(--text); }
.start-tile-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.start-tile:hover .start-tile-title { color: var(--accent); }
.start-tile-meta { display: block; font-size: 12px; color: var(--text-3); margin: 3px 0 9px; }
.start-tile-img { display: block; width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-radius: 8px; background-color: var(--surface-2); }
/* Event-bild i widgeten: samma blurrade 16:9 som kalendern (stående bilder centreras, blurr på sidorna) */
.start-tile .cal-card-img { border-radius: 8px; overflow: hidden; }

.sidebar-section-title {
    text-transform: uppercase; font-size: 11px; letter-spacing: 1px;
    color: var(--text-3); margin: 16px 12px 6px;
}
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ===== CARDS ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.card.tight { padding: 12px; }
.card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.card-title { font-size: 17px; font-weight: 700; }

/* ===== AVATARS ===== */
.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background-size: cover; background-position: center;
    background-color: var(--surface-2);
    flex-shrink: 0; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.xl { width: 144px; height: 144px; border: 4px solid var(--bg); }

/* ===== COMPOSER ===== */
.composer-pill {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2); border-radius: 999px;
    padding: 10px 16px; cursor: pointer;
    color: var(--text-2); flex: 1;
}
.composer-pill:hover { background: var(--surface-hover); }
.composer-actions {
    display: flex; border-top: 1px solid var(--border);
    margin-top: 12px; padding-top: 8px; gap: 4px;
}
.composer-actions button {
    flex: 1; background: transparent; border: none; color: var(--text-2);
    padding: 10px; border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 14px;
}
.composer-actions button:hover { background: var(--surface-2); color: var(--text); }
.composer-actions svg { width: 22px; height: 22px; }
/* Drag-och-släpp av bilder i composern */
.modal-body.composer-dragover { outline: 2px dashed var(--accent); outline-offset: -10px; background: var(--accent-soft); border-radius: 12px; }
.composer-dnd-hint { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 8px; }

/* ===== POSTCARD ===== */
.postcard { padding: 16px; }
.postcard-head {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 10px;
}
.postcard-head .meta { flex: 1; min-width: 0; }
.postcard-head .name { font-weight: 700; }
.postcard-head .name a { color: var(--text); }
.postcard-head .name a:hover { text-decoration: underline; }
.postcard-head .sub { font-size: 12px; color: var(--text-2); }
.postcard-body {
    font-size: 15px; white-space: pre-wrap; word-wrap: break-word;
    line-height: 1.45; padding: 4px 0 12px;
}
.postcard-body a { color: var(--accent); }
.postcard-media {
    display: grid; gap: 4px;
    border-radius: var(--radius-sm); overflow: hidden;
    margin: 0 -16px 12px;
}
.postcard-media.n1 { display: block; }
.postcard-media.n1 .single-img { position: relative; display: flex; justify-content: center; align-items: center; max-height: 500px; overflow: hidden; background: var(--surface-2); }
.postcard-media.n1 .single-img::before { content: ''; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; filter: blur(24px) brightness(0.55); transform: scale(1.1); pointer-events: none; }
.postcard-media.n1 .single-img img { position: relative; z-index: 1; display: block; width: auto; height: auto; max-width: 100%; max-height: 500px; object-fit: contain; aspect-ratio: auto; cursor: zoom-in; }
.postcard-media.n2 { grid-template-columns: 1fr 1fr; }
.postcard-media.n3 { grid-template-columns: 1fr 1fr; }
.postcard-media.n3 img:first-child { grid-row: span 2; height: 100%; }
.postcard-media.n4 { grid-template-columns: 1fr 1fr; }
.postcard-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.9); padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 96vw; max-height: 92vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5); cursor: default;
}
.lightbox-close {
    position: fixed; top: 16px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    font-size: 32px; line-height: 1; cursor: pointer; padding-bottom: 4px;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-count {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; background: rgba(0,0,0,0.55); padding: 5px 14px;
    border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .5px;
}
@media (max-width: 600px) {
    .lightbox-nav { width: 44px; height: 44px; font-size: 27px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* Event-omslag: stående bilder centrerade, blurrad fyllnad på sidorna (man ser hela bilden) */
.event-cover { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 460px; overflow: hidden; background: var(--surface-2); }
.event-cover::before {
    content: ''; position: absolute; inset: -8%;
    background-image: var(--cover); background-size: cover; background-position: center;
    filter: blur(28px) brightness(0.5); transform: scale(1.08); pointer-events: none;
}
.event-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }

/* Inbäddade spelare (Spotify/YouTube/SoundCloud) i inlägg & kommentarer */
.embed-player { margin: 10px 0 2px; max-width: 460px; }
.embed-player iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.embed-player.embed-yt { aspect-ratio: 16 / 9; }
.embed-player.embed-yt iframe { height: 100%; }
p:empty { display: none; }   /* embeds bryter ut ur kommentarens <p> → dölj ev. tom rest */

/* Emoji-väljare (meddelanden m.m.) */
.emoji-btn { background: none; border: none; cursor: pointer; font-size: 22px; padding: 0 6px; line-height: 1; flex-shrink: 0; transition: transform 0.1s; }
.emoji-btn:hover { transform: scale(1.14); }
.emoji-panel { position: fixed; z-index: 200; display: none; flex-direction: column; width: 314px; max-height: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; transform: translateY(-100%); }
.emoji-panel.open { display: flex; }
.emoji-search { width: 100%; box-sizing: border-box; margin-bottom: 6px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px; outline: none; flex-shrink: 0; }
.emoji-search:focus { border-color: var(--accent); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; overflow-y: auto; }
.emoji-sec { grid-column: 1 / -1; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; padding: 5px 2px 2px; }
.emoji-empty { grid-column: 1 / -1; padding: 18px 8px; text-align: center; color: var(--text-2); font-size: 13px; }
.emoji-cell { background: none; border: none; cursor: pointer; font-size: 21px; padding: 4px; border-radius: 6px; line-height: 1; }
.emoji-cell:hover { background: var(--surface-2); }
.emoji-grid { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.emoji-grid::-webkit-scrollbar { width: 8px; }
.emoji-grid::-webkit-scrollbar-track { background: transparent; }
.emoji-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 2px solid var(--surface); }
.emoji-grid::-webkit-scrollbar-thumb:hover { background: var(--text-3, var(--text-2)); }

.reaction-counts {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-2); font-size: 13px;
    padding: 6px 0; border-bottom: 1px solid var(--border);
}
.reaction-counts .emoji-stack {
    display: inline-flex; align-items: center;
}
.reaction-counts .emoji-stack span {
    font-size: 16px; margin-right: -6px;
}

.reaction-bar {
    display: flex; padding-top: 6px; gap: 2px;
}
.reaction-bar button {
    flex: 1; background: transparent; border: none; color: var(--text-2);
    padding: 8px; border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 600; font-size: 14px; position: relative;
}
.reaction-bar button:hover { background: var(--surface-2); color: var(--text); }
.reaction-bar button.active { color: var(--accent); }
.reaction-bar svg { width: 20px; height: 20px; }

.reaction-popover {
    position: absolute; bottom: 100%; left: 0;
    background: var(--surface); border-radius: 999px;
    padding: 6px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none; gap: 4px; z-index: 30;
    transform: translateY(-4px);
}
.reaction-popover.open { display: flex; }
.reaction-popover button {
    width: 40px; height: 40px; border-radius: 50%; background: transparent;
    border: none; cursor: pointer; font-size: 22px; padding: 0;
    transition: transform 100ms;
}
.reaction-popover button:hover { transform: scale(1.4); background: var(--surface-2); }

/* ===== COMMENTS ===== */
.comments { padding-top: 8px; }
.comment {
    display: flex; gap: 8px; margin-top: 10px;
}
.comment .body {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 8px 12px; flex: 1; min-width: 0;
}
.comment .body .name { font-weight: 700; font-size: 13px; }
.comment .body p { margin: 2px 0 0; word-wrap: break-word; }
.comment .meta-row { font-size: 12px; color: var(--text-2); padding: 4px 12px 0; display: flex; gap: 12px; }
.comment .meta-row a { color: var(--text-2); }
.comment .meta-row a:hover { color: var(--text); text-decoration: underline; }
.comment-form {
    display: flex; gap: 8px; padding-top: 12px; align-items: flex-start;
}
.comment-form .input {
    flex: 1; background: var(--surface-2); border-radius: 999px;
    padding: 8px 12px; border: 1px solid transparent; color: var(--text);
    outline: none; min-height: 36px;
}
.comment-form .input:focus { border-color: var(--accent); }
.cmt-emoji-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; font-size: 19px; line-height: 1; padding: 0; width: 36px; height: 36px; border-radius: 50%; opacity: .65; transition: opacity .12s, background .12s; }
.cmt-emoji-btn:hover { opacity: 1; background: var(--surface-2); }
/* Trådade svar */
.comment-replies { margin-left: 40px; }
.comment.reply { margin-top: 8px; }
.cmt-reply-btn { background: none; border: none; padding: 0; color: var(--text-3); font-weight: 700; font-size: 12px; cursor: pointer; }
.cmt-reply-btn:hover { color: var(--accent); text-decoration: underline; }
.reply-form { display: flex; gap: 8px; padding-top: 8px; margin-left: 40px; align-items: flex-start; }
.reply-form .input { flex: 1; background: var(--surface-2); border-radius: 999px; padding: 8px 12px; border: 1px solid transparent; color: var(--text); outline: none; min-height: 36px; }
.reply-form .input:focus { border-color: var(--accent); }
.cmt-reply-btn.danger:hover { color: var(--danger); }
.cmt-react-wrap { position: relative; display: inline-flex; }
.cmt-react-toggle.reacted { color: var(--accent); }
.cmt-react-popover { padding: 4px; }
.cmt-react-popover button { width: 34px; height: 34px; font-size: 19px; }
.cmt-react-summary { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.cmt-react-summary[hidden] { display: none; }
.cmt-emoji-stack { display: inline-flex; align-items: center; padding-right: 4px; }
.cmt-emoji-stack span { font-size: 14px; margin-right: -4px; }
.cmt-edit { margin-top: 6px; }
.cmt-edit .input { width: 100%; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; border: 1px solid var(--accent); color: var(--text); outline: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 14px; border: none; cursor: pointer;
    background: var(--surface-2); color: var(--text);
    transition: background 100ms;
}
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); }
.btn-block { display: flex; width: 100%; padding: 11px 16px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 50%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== INPUTS ===== */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="url"],
textarea, select {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); outline: none; font-size: 15px;
}
.input:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--accent); background: var(--surface);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.4; }
/* Datum/tid: kompakt bredd + synliga väljarikoner i mörkt tema */
input[type="date"], input[type="time"] { width: auto; min-width: 0; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; }
html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
/* Snygg "Välj fil"-knapp överallt på siten */
input[type="file"] { font-size: 13px; color: var(--text-2); max-width: 100%; }
input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px; padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .12s, border-color .12s;
}
input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; appearance: none; transition: background .12s, border-color .12s;
}
input[type="file"]::-webkit-file-upload-button:hover { background: var(--surface-hover); border-color: var(--border-strong); }
input[type="file"]::file-selector-button:hover { background: var(--surface-hover); border-color: var(--border-strong); }
label.field { display: block; margin-bottom: 12px; }
label.field .lab { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.help { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ===== AUTH ===== */
.auth-page {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(ellipse at top, rgba(225, 29, 72, 0.08), transparent 60%),
        var(--bg);
}
.auth-shell {
    width: 100%; max-width: 980px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.auth-promo h1 {
    font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -2px;
    background: linear-gradient(45deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.auth-promo p { color: var(--text-2); font-size: 17px; max-width: 420px; }

.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 28px;
    box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 20px; }
.auth-card .footer {
    border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px;
    text-align: center; font-size: 14px; color: var(--text-2);
}
.auth-card .footer a { color: var(--accent); font-weight: 600; }
/* Lika höga rutor på desktop: korten sträcks (align-items:stretch) och footern fästs i botten. */
@media (min-width: 761px) {
    .auth-card { display: flex; flex-direction: column; }
    .auth-card .footer { margin-top: auto; }
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { height: 40px; width: auto; display: inline-block; }
html.light .auth-logo img { filter: invert(1); }

/* ===== PROFILE ===== */
.profile-cover {
    height: 360px; background: var(--surface-2);
    background-size: cover; background-position: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
}
.profile-cover.empty {
    background: linear-gradient(135deg, #1f1f23 0%, #2a1a23 50%, #18181b 100%);
}
.cover-ctrl { position: absolute; right: 16px; bottom: 48px; display: flex; gap: 8px; z-index: 3; }
.profile-cover.repositioning { cursor: grab; user-select: none; }
.profile-cover.repositioning.dragging { cursor: grabbing; }
/* Projekt-/bandbild: fast 16:9, beskärs (cover) så att listor blir enhetliga. */
.proj-img {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background-size: cover; background-position: center;
    background-color: var(--surface-2);
}
.proj-img.empty { background: linear-gradient(135deg, #1f1f23 0%, #2a1a23 50%, #18181b 100%); }
/* Dra-för-att-placera (bara i redigerings-preview:n) */
#projImgPreview:not(.empty) { cursor: grab; user-select: none; }
#projImgPreview.dragging { cursor: grabbing; }
#projImgPreview.empty .grp-cover-hint { display: none; }
#projImgPreview.drop-hover { outline: 2px dashed var(--accent); outline-offset: -4px; }
/* Kommande-event-kort i höger sidofält */
.upcoming-filter {
    width: 100%; margin: 0 0 12px; padding: 9px 34px 9px 12px;
    background-color: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; cursor: pointer; line-height: 1.2;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: border-color .12s;
}
.upcoming-filter:hover { border-color: var(--border-strong); }
.upcoming-filter:focus { outline: none; border-color: var(--accent); }
.upcoming-filter option { background: var(--surface); color: var(--text); font-weight: 600; }
/* Kalender-rubrik + avsändare-dropdown på samma rad i högerspalten */
.cal-head { margin-bottom: 12px; }
.cal-head-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; margin: 0 0 8px; text-transform: uppercase; }
.cal-head-filters { display: flex; gap: 6px; }
.cal-head-filters .upcoming-filter { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; font-size: 12px; padding: 7px 22px 7px 9px; background-position: right 7px center; }

/* Kategori-chip (event-sidan) + kategori-väljare i feed-admin */
.cat-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; line-height: 1.6; letter-spacing: 0.2px; }
a.cat-chip:hover { filter: brightness(1.12); }
.feed-cat-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feed-cat-form .lab-mini { font-size: 12px; color: var(--text-2); }
.feed-cat-form select, .feed-cat-form input[type=text] { height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 0 10px; font-size: 13px; }

.sidebar-event { display: block; padding: 7px 12px; border-radius: 8px; }
.sidebar-event:hover { background: var(--surface-2); }
.sidebar-event .se-date { font-size: 12.5px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.3; }
.sidebar-event .se-place { font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.3px; }
.sidebar-event .se-body { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; }
.sidebar-event .se-thumb { position: relative; flex-shrink: 0; width: 54px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.sidebar-event .se-thumb::before { content: ''; position: absolute; inset: -14%; background-image: var(--cover); background-size: cover; background-position: center; filter: blur(7px) brightness(0.6); transform: scale(1.14); }
.sidebar-event .se-thumb.empty { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.sidebar-event .se-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.sidebar-event .se-info { flex: 1; min-width: 0; }
.cal-meta { text-transform: uppercase; font-weight: 800; font-size: 13px; letter-spacing: 0.4px; color: var(--accent); }
/* Streaming-knappar (struktur kopierad från HQ artistsidor) */
.streaming-links { display: flex; gap: 8px; flex-wrap: wrap; }
.streaming-link {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.streaming-link:hover { background: var(--surface-hover); border-color: var(--text-3); }
.streaming-link img { width: 20px; height: 20px; border-radius: 50%; }
.sidebar-event .se-title { font-weight: 600; font-size: 13px; margin: 1px 0 0; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* @-autocomplete för medlemmar i projektformuläret */
.member-suggest {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; display: none;
}
.member-suggest.open { display: block; }
.member-suggest .ms-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.member-suggest .ms-item:hover { background: var(--surface-2); }
.profile-header {
    margin-top: -32px;
    background: var(--surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0 24px 16px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.profile-header-row {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 36px 0 14px;
}
.profile-header-row .pf-avatar { flex-shrink: 0; margin-top: -68px; }
.profile-header-row .info { flex: 1; min-width: 0; padding-top: 2px; }
.profile-header-row .name { font-size: 32px; font-weight: 800; }
.profile-header-row .meta { color: var(--text-2); margin-top: 4px; }
.profile-header-row .name .uname { font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.profile-header-row .uname-line { font-size: 15px; font-weight: 500; color: var(--text-2); margin-top: 2px; }
.profile-header-row .uname-line .member-since { font-size: 11px; opacity: 0.75; }
.profile-bio { margin-top: 8px; color: var(--text); line-height: 1.5; }
.profile-longbio { color: var(--text); line-height: 1.7; }
.profile-longbio a { color: var(--accent); }

/* Egen profil (pf-mode): bild högre upp, namn t.h., redigera nere t.h., bio+länkar full bredd. Gäller ej Sidor. */
.profile-header.pf-mode .profile-header-row { align-items: center; gap: 20px; padding: 30px 0 8px; }
.profile-header.pf-mode .pf-avatar { margin-top: -92px; align-self: flex-start; }
.profile-header.pf-mode .info { flex: 1; min-width: 0; margin-top: -10px; }
.profile-header.pf-mode .name { font-size: 28px; font-weight: 800; line-height: 1.15; }
.profile-header.pf-mode .profile-header-actions { position: static; top: auto; right: auto; display: flex; gap: 8px; flex-shrink: 0; }
.profile-header.pf-mode .profile-bio { margin-top: 12px; color: var(--text); line-height: 1.55; }
.profile-header.pf-mode .profile-links { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-links .btn { padding: 4px 10px; font-size: 12px; gap: 4px; }
.profile-links .btn svg { width: 12px !important; height: 12px !important; }
.profile-header.pf-mode .profile-tabwrap { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); margin-top: 6px; }
.profile-header.pf-mode .profile-tabwrap .profile-tabs { border-top: none; flex: 1; min-width: 0; }

/* ===== MUSIKER-KATALOG & ANNONSER ===== */
.mus-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mus-filter select, .mus-filter input[type="search"] {
    height: 38px; padding: 0 12px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); outline: none; font-size: 14px;
}
.mus-filter input[type="search"] { flex: 1; min-width: 160px; }
/* Sök musiker — live-filterrad */
.mus-search { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.mus-search-bar { position: relative; display: flex; align-items: center; }
.mus-search-bar svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.mus-search-bar input { width: 100%; height: 44px; border-radius: 999px; padding: 0 16px 0 42px; background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none; font-size: 15px; }
.mus-search-bar input:focus { border-color: var(--accent); }
.mus-search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mus-search-filters select { flex: 1; min-width: 140px; height: 38px; border-radius: 999px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none; font-size: 13px; cursor: pointer; }
.mus-search-filters select:focus { border-color: var(--accent); }
.mus-search-filters input { flex: 1; min-width: 110px; height: 38px; border-radius: 999px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none; font-size: 13px; }
.mus-search-filters input:focus { border-color: var(--accent); }
.mus-search-filters .mus-clear { flex: 0 0 auto; height: 38px; }
.mus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mus-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.mus-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mus-pitch { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.mus-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mus-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.mus-chip i { font-style: normal; font-weight: 800; opacity: 0.7; font-size: 11px; }
.mus-chip.status { background: var(--surface-hover); color: var(--text-2); }
.mus-row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.mus-row-lab { flex-shrink: 0; width: 96px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-3); }
.mus-row .mus-chips { margin-top: 0; }
.mus-inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.mus-inst { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.mus-inst-name { font-size: 14px; }
.mus-inst select { height: 32px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 0 6px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; font-size: 14px; user-select: none; }
.chip-pick input { accent-color: #22c55e; }
.chip-pick:has(input:checked) { background: rgba(34,197,94,.15); border-color: #22c55e; color: #22c55e; }
.listing-kind { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 5px; margin-right: 8px; vertical-align: middle; }
.listing-kind.seek { background: var(--accent-soft); color: var(--accent); }
.listing-kind.offer { background: rgba(16,185,129,0.14); color: var(--ok); }

/* Anslagstavla – hopfällbar lista (titel synlig, klicka för att öppna) */
.listing-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.listing-summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; align-items: center; gap: 10px; }
.listing-summary::-webkit-details-marker { display: none; }
.listing-summary:hover { background: var(--surface-hover); }
.listing-summary .listing-kind { margin-right: 0; }
.listing-item[open] .listing-summary { border-bottom: 1px solid var(--border); }
.listing-summary-title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-summary-time { color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.listing-chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); transition: transform 0.18s ease; }
.listing-item[open] .listing-chev { transform: rotate(90deg); }
.listing-detail { padding: 12px 14px; }
.listing-edit { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; }
.mus-invite { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.mus-invite > div { flex: 1; min-width: 240px; }
.mus-invite strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--text); }
.mus-invite p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.mus-invite b { color: var(--text); font-weight: 700; }
.mus-invite .btn { flex-shrink: 0; }
/* Tag-input med autocomplete */
.taginput { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); cursor: text; }
.taginput-chips { display: contents; }
.taginput-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 3px 6px 3px 10px; border-radius: 999px; }
.taginput-chip button { background: none; border: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0.7; padding: 0 2px; }
.taginput-chip button:hover { opacity: 1; }
.taginput-field { flex: 1; min-width: 120px; border: none; background: none; color: var(--text); outline: none; font-size: 14px; height: 28px; }
.taginput-drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; display: none; }
.taginput-drop.open { display: block; }
.taginput-opt { padding: 9px 12px; cursor: pointer; font-size: 14px; }
.taginput-opt:hover { background: var(--surface-2); }
.taginput-opt.new { color: var(--accent); font-weight: 600; border-top: 1px solid var(--border); }

/* ===== FORUM / GRUPPER ===== */
.forum-header { padding: 20px 24px; }
/* Valfri toppbild på forum/grupp — full bredd, 16:9, bara när bild finns */
.forum-cover { margin: -20px -24px 18px; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.grp-cover-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--surface-2); overflow: hidden; user-select: none; }
.grp-cover-preview:not(.empty) { cursor: grab; }
.grp-cover-preview.dragging { cursor: grabbing; }
.grp-cover-preview.empty { border: 2px dashed var(--border-strong); background-color: transparent; }
.grp-cover-preview.drop-hover { outline: 2px dashed var(--accent); outline-offset: -4px; }
.grp-cover-hint { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.grp-cover-preview.empty .grp-cover-hint { display: none; }
.forum-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.forum-head-info { min-width: 0; flex: 1; }
.forum-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.forum-lock { font-size: 0.7em; vertical-align: middle; }
.forum-about { margin-top: 12px; color: var(--text); line-height: 1.6; }
.forum-about a { color: var(--accent); }
.forum-head-actions { flex-shrink: 0; }
.forum-header .profile-tabs { margin-top: 18px; }

.forum-list { display: flex; flex-direction: column; }
.forum-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--border); transition: background 0.12s; }
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--surface-2); }
.forum-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.forum-ico svg { width: 22px; height: 22px; }
.forum-main { flex: 1; min-width: 0; }
.forum-main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; }
.forum-name-link { min-width: 0; color: var(--text); }
.forum-name { display: block; font-weight: 700; font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-row-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.forum-joined { font-size: 13px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.forum-count { flex-shrink: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.forum-desc-link { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.forum-desc-link:hover { color: var(--text); }

/* ===== KALENDER LISTVY ===== */
.cal-list-month { text-transform: capitalize; font-size: 18px; margin: 22px 0 10px; }
.cal-view > .cal-list-month:first-child { margin-top: 2px; }
/* Kalender listvy: små kort i 2-3 kolumner (som artistrutorna), 1 på mobil */
.cal-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 4px; }
.cal-card { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .12s; }
.cal-card:hover { border-color: var(--border-strong); }
.cal-card-img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.cal-card-img::before { content: ''; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; filter: blur(14px) brightness(0.6); transform: scale(1.1); pointer-events: none; }
.cal-card-img.empty { background: linear-gradient(135deg, var(--accent) 0%, #2a1a23 100%); }
.cal-card-img.empty::before { content: none; }
.cal-card-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.cal-card-date { position: relative; z-index: 1; text-align: center; color: #fff; line-height: 1; }
.cal-card-date .m { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; }
.cal-card-date .d { display: block; font-size: 30px; font-weight: 800; margin-top: 2px; }
.cal-card-body { padding: 9px 12px 12px; min-width: 0; }
.cal-card-body .cal-meta { font-size: 12px; }
.cal-card-title { font-weight: 700; font-size: 14px; margin: 2px 0 0; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-card-sub { font-size: 11.5px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-filter { width: auto; min-width: 190px; max-width: 100%; margin: 0; }
/* Event-cover: cover_pos satt → fyll/beskär med vald position; annars contain + suddig kant */
.event-cover.fit-cover::before { display: none; }
.event-cover.fit-cover img { object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ===== KALENDER MÅNADSVY ===== */
.cal-toggle { display: inline-flex; gap: 4px; }
.cal-month { padding: 16px 18px; margin-bottom: 16px; }
.cal-month-title { text-transform: capitalize; margin-bottom: 12px; font-size: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-3); padding-bottom: 4px; }
.cal-cell { min-height: 60px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 4px 7px; background: var(--surface); overflow: visible; }
.cal-cell.empty { border: none; background: transparent; }
.cal-cell.has { background: var(--surface-2); }
.cal-day-num { font-size: 12px; font-weight: 700; color: var(--text-2); text-align: right; padding: 0 2px; }
/* Prickar i stället för text — info i hover-overlay */
.cal-dots { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px 3px 0; }
.cal-blip { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); font-size: 0; transition: transform 0.1s; }
.cal-blip:hover { transform: scale(1.35); z-index: 41; }
.cal-blip[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
    z-index: 40; width: max-content; max-width: 220px; white-space: normal; text-align: center;
    background: var(--text); color: var(--bg);
    font-size: 12px; font-weight: 600; line-height: 1.45;
    padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow); pointer-events: none;
}
.cal-blip[data-tip]:hover::before {
    content: ''; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--text); z-index: 40; pointer-events: none;
}
@media (max-width: 600px) {
    .cal-cell { min-height: 50px; }
    .cal-day-num { font-size: 11px; }
}
.profile-header-actions { position: absolute; top: 14px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.profile-tabs {
    display: flex; gap: 4px; border-top: 1px solid var(--border);
    padding-top: 4px; overflow-x: auto;
}
.profile-tabs a {
    padding: 14px 16px; color: var(--text-2); font-weight: 600;
    border-bottom: 3px solid transparent; white-space: nowrap;
}
.profile-tabs a:hover { color: var(--text); background: var(--surface-2); }
.profile-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
/* Tydligare "pill"-flikar för Musiklivet */
.ml-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ml-tabs a {
    padding: 10px 20px; font-weight: 700; font-size: 14.5px; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: background .12s, color .12s, border-color .12s; white-space: nowrap;
}
.ml-tabs a:hover { color: var(--text); border-color: var(--border-strong); }
.ml-tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.profile-grid {
    display: grid; grid-template-columns: 360px 1fr; gap: 16px;
    margin-top: 16px;
}
@media (max-width: 920px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* ===== FORMS / MODAL ===== */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center; z-index: 100;
    padding: 16px;
}
.modal {
    background: var(--surface); border-radius: var(--radius-lg);
    width: 100%; max-width: 540px; max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}
.modal-head {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.modal-head h3 { font-size: 18px; }
.modal-head .close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}
.modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); }

/* ===== APP-PROMO POPUP (mobilapp) ===== */
.app-promo { display: none; }            /* döljs tills JS visar (efter localStorage-koll) */
.app-promo.show { display: flex; }
.app-promo-card { max-width: 390px; position: relative; text-align: center; }
.app-promo-body { padding: 32px 26px 24px; }
.app-promo-x { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.app-promo-x:hover { color: var(--text); background: var(--surface-2); }
.app-promo-icon { font-size: 46px; line-height: 1; margin-bottom: 6px; }
.app-promo-title { font-size: 21px; font-weight: 800; margin: 0 0 10px; }
.app-promo-text { color: var(--text-2); line-height: 1.55; margin: 0 auto 22px; font-size: 15px; max-width: 300px; }
.app-store-btn { display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 13px; transition: transform .1s, box-shadow .15s; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.app-store-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.32); }
.app-store-btn svg { width: 27px; height: 27px; flex-shrink: 0; }
.app-store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.app-store-btn span small { font-size: 11px; font-weight: 500; letter-spacing: .2px; opacity: .92; }
.app-store-btn span b { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.app-promo .app-store-btn, .app-promo .app-store-btn * { color: #fff !important; }   /* vit Apple-badge, ej sajtens länkröda */
.app-promo-later { display: block; margin: 16px auto 0; background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 4px; }
.app-promo-later:hover { color: var(--text-2); text-decoration: underline; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 48px 16px;
    color: var(--text-2);
}
.empty-state .vinyl-icon {
    width: 56px; height: 56px; margin: 0 auto 14px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
    opacity: 0.7;
}
.empty-state .vinyl-icon::before { display: none; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { max-width: 320px; margin: 0 auto; }

/* ===== NOTIFICATIONS DROPDOWN ===== */
.dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); width: min(360px, calc(100vw - 16px)); max-height: 480px;
    overflow-y: auto; box-shadow: var(--shadow);
    display: none; z-index: 60;
}
.dropdown.open { display: block; }
.dropdown-head {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700;
}
.notif-item {
    display: flex; gap: 10px; padding: 10px 16px; align-items: flex-start;
    border-left: 3px solid transparent; cursor: pointer;
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--accent-soft); border-left-color: var(--accent); }
.notif-item .meta { flex: 1; min-width: 0; }
.notif-item .meta p { margin: 0; font-size: 14px; }
.notif-item .meta .time { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Notisinställningar – matris webb/mobil */
.notif-prefs { width: 100%; border-collapse: collapse; }
.notif-prefs th { text-align: center; font-size: 13px; color: var(--text-2); font-weight: 600; padding: 4px 8px 10px; }
.notif-prefs th:first-child { text-align: left; }
.notif-prefs td { padding: 13px 8px; border-top: 1px solid var(--border); font-size: 15px; }
.notif-prefs td:not(:first-child) { text-align: center; width: 64px; }
.notif-prefs input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* ===== MESSAGES ===== */
.msg-layout {
    display: grid; grid-template-columns: 248px 1fr;
    height: calc(100vh - var(--topbar-h)); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.msg-list {
    border-right: 1px solid var(--border); overflow-y: auto;
}
.msg-list-item {
    padding: 9px 14px; cursor: pointer; display: flex; gap: 9px; align-items: center;
    border-bottom: 1px solid var(--border);
}
.msg-list-item .avatar { width: 34px; height: 34px; flex-shrink: 0; }
.msg-list-item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-left: auto; }
.msg-list-item:hover { background: var(--surface-2); }
.msg-list-item.active { background: var(--surface-2); }
.msg-list-item .name { font-weight: 700; font-size: 14px; }
.msg-list-item .preview { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 18px; }
.msg-list-head .btn { font-size: 13px; padding: 5px 12px; }
/* Konversations-item med ⋯-meny (ta bort / dölj) */
.msg-item { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.msg-item:hover { background: var(--surface-2); }
.msg-item.is-active { background: var(--surface-2); }
.msg-item .msg-list-item { flex: 1 1 auto; min-width: 0; border-bottom: none; background: transparent; }
.msg-item-menu-btn { flex-shrink: 0; width: 36px; align-self: stretch; background: none; border: none; color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; opacity: .5; transition: opacity .12s, background .12s, color .12s; }
.msg-item:hover .msg-item-menu-btn { opacity: 1; }
.msg-item-menu-btn:hover { background: var(--surface-3, rgba(127,127,127,.16)); color: var(--text); }
@media (hover: none) { .msg-item-menu-btn { opacity: .75; } }
.msg-item-menu { position: absolute; top: calc(100% - 4px); right: 8px; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.22); padding: 5px; min-width: 152px; }
.msg-item-menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.msg-item-menu button:hover { background: var(--surface-2); }
.msg-item-menu .cmenu-danger { color: var(--danger, #dc2626); }
/* "Arkiverade"-sektion längst ner i listan */
.msg-archived { border-top: 1px solid var(--border); margin-top: 2px; }
.msg-archived-head { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: none; color: var(--text-2); padding: 11px 14px; cursor: pointer; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.msg-archived-head:hover { background: var(--surface-2); color: var(--text); }
.msg-archived-head .arch-caret { font-size: 10px; width: 10px; flex-shrink: 0; }
.msg-archived-head .arch-count { color: var(--text-3, var(--text-2)); font-weight: 600; }
/* Nytt meddelande — mottagarväljare med @-sök */
.nm-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.recipient-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: text; }
.recipient-box input { flex: 1; min-width: 120px; border: none; background: transparent; color: var(--text); outline: none; font-size: 14px; padding: 4px; }
.nm-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 3px 6px 3px 3px; font-size: 13px; font-weight: 600; }
.nm-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.nm-chip button { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.nm-chip button:hover { color: var(--danger); }
.nm-results { margin-top: 6px; display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.nm-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-size: 14px; }
.nm-result:hover { background: var(--surface-2); }
.nm-result img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nm-result span { color: var(--text-2); }
.nm-result b { color: var(--text); font-weight: 700; }
/* (redigerat)-markör + inläggsredigerare */
.edited-tag { color: var(--text-3); font-size: 12px; }
.edited-tag[hidden] { display: none; }
.post-edit { margin: 4px 0; }
/* Förhållningsregler (delad: /om + registreringssidan) */
.conduct-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.conduct-intro { color: var(--text-2); font-size: 14px; line-height: 1.65; margin: 0 0 16px; }
.conduct-rule { margin-bottom: 13px; padding-left: 12px; border-left: 2px solid var(--accent); }
.conduct-rule h4 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.conduct-rule p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin: 0; }
.conduct-foot { color: var(--text-2); font-size: 13.5px; line-height: 1.65; margin: 16px 0 0; }
/* "Vad är Musiksnack?"-panel (login + reg) */
.about-list { list-style: none; margin: 6px 0 0; padding: 0; }
.about-list li { font-size: 13.5px; color: var(--text-2); line-height: 1.55; padding: 8px 0; border-bottom: 1px solid var(--border); }
.about-list li:last-child { border-bottom: none; padding-bottom: 0; }
.about-list strong { color: var(--text); font-weight: 700; }
.auth-side-divider { border-top: 1px solid var(--border); margin: 18px 0; }
.site-credits { text-align: center; font-size: 12.5px; color: var(--text-3, var(--text-2)); line-height: 1.6; margin: 26px auto 0; max-width: 620px; padding: 0 8px; }
.site-credits a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.site-credits a:hover { color: var(--accent); }
/* Regel-panel på registreringssidan + "jag har läst"-checkruta */
.auth-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow); }
@media (min-width: 761px) { .auth-side { max-height: calc(100vh - 64px); overflow-y: auto; } }
.agree-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 16px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.agree-check input { margin-top: 1px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.agree-check strong { color: var(--text); }
.msg-thread {
    display: flex; flex-direction: column; height: 100%;
}
.msg-thread-head {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; gap: 10px; align-items: center;
}
.msg-back { display: none; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: var(--text); }
.msg-back:hover { background: var(--surface-2); }
.msg-back svg { width: 22px; height: 22px; }
.msg-thread-body {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.msg-bubble {
    max-width: 65%; padding: 9px 14px; border-radius: 18px;
    font-size: 14px; line-height: 1.4; word-wrap: break-word;
}
.msg-bubble.me {
    align-self: flex-end; background: var(--accent); color: #fff;
}
.msg-bubble.them {
    align-self: flex-start; background: var(--surface-2);
}
.msg-thread-form {
    border-top: 1px solid var(--border); padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.msg-thread-form-row { display: flex; gap: 8px; align-items: center; }
.msg-thread-form input {
    flex: 1; padding: 10px 14px; background: var(--surface-2);
    border: 1px solid transparent; border-radius: 999px;
    color: var(--text); outline: none;
}
.msg-thread-form input:focus { border-color: var(--accent); }

/* ===== MEDDELANDERADER: reply + reaktioner + ⋯-handlingar ===== */
.msg-row { display: flex; flex-direction: column; max-width: 72%; gap: 3px; }
.msg-row.me { align-self: flex-end; align-items: flex-end; }
.msg-row.them { align-self: flex-start; align-items: flex-start; }
.msg-row .msg-bubble { max-width: 100%; }
.msg-bubble-wrap { position: relative; display: flex; align-items: center; gap: 6px; max-width: 100%; }
.msg-row.me .msg-bubble-wrap { flex-direction: row-reverse; }
.msg-actions { position: relative; display: flex; align-items: center; opacity: .4; transition: opacity .12s; }
.msg-bubble-wrap:hover .msg-actions, .msg-actions:hover { opacity: 1; }
.msg-act { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 50%; line-height: 0; color: var(--text-2); display: flex; }
.msg-act svg { width: 18px; height: 18px; }
.msg-act:hover { background: var(--surface-2); color: var(--text); }
.msg-menu { display: none; position: absolute; bottom: 100%; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 1500; }
.msg-row.them .msg-menu { left: 0; }
.msg-row.me .msg-menu { right: 0; }
.msg-menu.open { display: block; }
.msg-menu.down { bottom: auto; top: 100%; margin-bottom: 0; margin-top: 6px; }
.msg-menu-react { display: flex; gap: 1px; }
.msg-menu-react button { background: none; border: none; cursor: pointer; font-size: 21px; padding: 3px 5px; border-radius: 8px; line-height: 1; transition: transform .1s; }
.msg-menu-react button:hover { transform: scale(1.25); background: var(--surface-2); }
.msg-menu-reply { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: none; cursor: pointer; color: var(--text); text-align: left; padding: 8px; border-radius: 8px; font-size: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.msg-menu-reply:hover { background: var(--surface-2); }
.msg-reactions { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 1px; }
.msg-reactions[hidden] { display: none; }
.msg-react-badge { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; font-size: 12px; cursor: pointer; line-height: 1.5; }
.msg-react-badge.own { border-color: var(--accent); background: var(--accent-soft); }
.msg-react-badge .rc { color: var(--text-2); font-size: 11px; }
.msg-reply-quote { font-size: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 3px 9px; max-width: 100%; cursor: pointer; display: flex; gap: 6px; overflow: hidden; }
.msg-reply-quote .rq-name { font-weight: 700; color: var(--accent); flex-shrink: 0; }
.msg-reply-quote .rq-text { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-reply-quote:hover { background: var(--surface); }
.msg-reply-bar { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.msg-reply-bar[hidden] { display: none; }
.msg-reply-bar .mrb-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.msg-reply-bar .mrb-name { color: var(--accent); }
.msg-reply-bar .mrb-close { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.msg-flash { animation: msgFlash 1.2s ease; border-radius: 10px; }
@keyframes msgFlash { 0%, 100% { background: transparent; } 30% { background: var(--accent-soft); } }

/* ===== MARKNAD (köp & sälj) ===== */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
.listing-card { display: block; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .1s, border-color .1s; }
.listing-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lc-img { position: relative; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: var(--surface); }
.lc-img.empty { display: flex; align-items: center; justify-content: center; }
.lc-noimg { font-size: 40px; opacity: .35; }
.lc-type { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.lt-sell { background: #16a34a; } .lt-buy { background: #2563eb; } .lt-give { background: #d946ef; } .lt-trade { background: #f59e0b; }
.lc-flag { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; }
.lc-body { padding: 9px 11px; }
.lc-price { font-weight: 800; font-size: 15px; }
.lc-title { font-size: 14px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-filter { display: flex; flex-direction: column; gap: 8px; }
.market-filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.market-filter-row select, .market-filter-row input { padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; }

.market-detail .md-main { display: grid; grid-template-columns: 1fr; gap: 20px; }
.md-hero { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: var(--surface-2); border-radius: var(--radius); cursor: zoom-in; }
.md-hero.empty { display: flex; align-items: center; justify-content: center; font-size: 60px; opacity: .35; cursor: default; }
.md-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.md-thumb { width: 62px; height: 62px; border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; border: 2px solid transparent; }
.md-thumb.active { border-color: var(--accent); }
.md-title { font-size: 23px; font-weight: 800; margin: 8px 0 4px; line-height: 1.2; }
.md-price { font-size: 21px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.md-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; margin-bottom: 14px; font-size: 14px; }
.md-facts > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.md-facts span { color: var(--text-2); }
.md-facts a { color: var(--accent); }
.md-desc { white-space: pre-wrap; line-height: 1.55; margin-bottom: 16px; }
.md-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.save-btn.saved { border-color: var(--accent); color: var(--accent); }
.md-owner-bar { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.md-seller { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); }
.md-status { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.md-status.st-reserved { background: #f59e0b; color: #fff; }
.md-status.st-sold { background: #6b7280; color: #fff; }
.md-status.st-archived { background: var(--surface); color: var(--text-2); }
.md-safety { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; line-height: 1.5; margin-top: 6px; }

.mine-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mine-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--surface-2); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.mine-info { flex: 1; min-width: 0; }
.mine-title { font-weight: 700; display: block; color: var(--text); }
.mine-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.mine-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 600px) { .mine-row { flex-wrap: wrap; } .mine-actions { width: 100%; } }

.lf-images { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.lf-img { position: relative; width: 92px; height: 92px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid var(--border); }
.lf-img.primary { border-color: var(--accent); }
.lf-star, .lf-del { position: absolute; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; line-height: 1; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.lf-star { top: 3px; left: 3px; color: #fbbf24; }
.lf-del { top: 3px; right: 3px; }

.md-comments { margin-top: 16px; }
.lc-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); position: relative; }
.lc-comment .avatar.sm { flex-shrink: 0; }
.lc-c-body { flex: 1; min-width: 0; padding-right: 22px; }
.lc-c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-c-head a { color: var(--text); text-decoration: none; }
.lc-c-seller { font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 1px 7px; border-radius: 999px; }
.lc-bid { font-weight: 800; color: #16a34a; margin: 3px 0; }
.lc-c-body p { margin: 2px 0 0; line-height: 1.45; word-wrap: break-word; }
.lc-c-hide { position: absolute; top: 8px; right: 0; background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 18px; line-height: 1; }
.lc-c-hide:hover { color: var(--danger); }
.lc-comment-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lc-comment-form input { padding: 9px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text); outline: none; }
.lc-comment-form input[name="body"] { flex: 1; min-width: 180px; }
.lc-comment-form input:focus { border-color: var(--accent); }
.review-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.review-form select, .review-form input { padding: 8px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text); outline: none; font-size: 14px; }
.review-form input { flex: 1; min-width: 160px; }
.review-form select:focus, .review-form input:focus { border-color: var(--accent); }

/* ===== EVENT / GROUP / PAGE CARDS ===== */
.entity-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
}
.entity-card .cover {
    aspect-ratio: 16/9; background: var(--surface-2);
    border-radius: var(--radius-sm); margin: -16px -16px 12px;
    background-size: cover; background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
}
.entity-card h3 { font-size: 18px; margin-bottom: 4px; }
.entity-card .meta { color: var(--text-2); font-size: 13px; margin-bottom: 12px; }
.entity-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
/* Smalare kort → tre kolumner (artister/band-vyn) */
.entity-grid.entity-cols-3 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ===== RECORD CARD (vinyl) ===== */
.record-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.record-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: transform 120ms, border-color 120ms;
}
.record-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.record-card .cover {
    aspect-ratio: 1/1; background: var(--surface-2);
    background-size: cover; background-position: center;
    position: relative;
}
.record-card .cover.empty {
    background:
        radial-gradient(circle at center, #2a2a2e 0%, #0a0a0b 65%, #18181b 80%);
}
.record-card .cover.empty::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 32%; height: 32%; border-radius: 50%; background: var(--accent);
}
.record-card .meta { padding: 10px 12px; }
.record-card .artist { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-card .title { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .layout { grid-template-columns: minmax(0,1fr); }   /* enkel kolumn på tablet/iPad */
    .sidebar-right { display: none; }                   /* slipper det trasiga mellanläget 900–1100px */
    .main:not(.wide) { max-width: 720px; margin-inline: auto; }
    .topbar-hamburger { display: flex; }
    .sidebar-left {
        display: block; position: fixed; top: var(--topbar-h); left: 0; bottom: 0; height: auto;
        width: 280px; max-width: 84vw; padding: 12px 8px;
        background: var(--bg); border-right: 1px solid var(--border); z-index: 70;
        transform: translateX(-100%); transition: transform 0.22s ease;
        box-shadow: 4px 0 32px rgba(0,0,0,0.28);
    }
    body.mobile-nav-open .sidebar-left { transform: translateX(0); }
    .mobile-nav-backdrop { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,0.45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
    body.mobile-nav-open .mobile-nav-backdrop { opacity: 1; pointer-events: auto; }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: minmax(0,1fr); }
    .sidebar-right { display: none; }
    .topbar-right { width: auto; }
    .auth-shell { grid-template-columns: 1fr; gap: 24px; }
    .auth-promo { text-align: center; }
    .auth-promo h1 { font-size: 40px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-cover { height: 200px; }
    .profile-header-row { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 12px; }
    .profile-header-row .name { font-size: 24px; }
    .profile-header-row .pf-avatar { margin-top: -56px; }
    .profile-header.pf-mode .profile-header-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0 4px; }
    .profile-header.pf-mode .pf-avatar { margin-top: -64px; }
    .profile-header.pf-mode .name { font-size: 24px; }
    .profile-header.pf-mode .profile-tabwrap { flex-wrap: wrap; gap: 8px; }
    .avatar.xl { width: 120px; height: 120px; }
    .msg-layout { grid-template-columns: 1fr; }
    .msg-list { display: none; }
    .msg-layout.show-list .msg-list { display: block; }
    .msg-layout.show-list .msg-thread { display: none; }
    .msg-back { display: inline-flex; }
}
@media (max-width: 560px) {
    /* Tvåradig topbar: loggan får en egen rad överst (länk → start-feeden),
       hamburgare + sök + notis + tema + profilbild ligger på raden under. */
    :root { --topbar-h: calc(98px + env(safe-area-inset-top, 0px)); }
    .topbar-inner { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; align-content: center; position: relative; }
    .brand { display: flex; order: -1; width: 100%; justify-content: flex-start; padding: 0; }
    .brand-img { height: 30px; }
    /* Pilarna ligger absolut uppe till höger, i linje med loggan – påverkar inte radbrytningen */
    .topbar-histnav { display: flex; align-items: center; gap: 2px; position: absolute; top: 0; right: 0; height: 30px; }
    .topbar-hamburger { order: 1; flex-shrink: 0; }
    /* flex-basis 0 (inte auto) → söken räknas som 0 vid radbrytning, så
       hamburgare + sök + ikoner alltid ryms på EN rad (annars wrappar ikonerna ner). */
    .searchbar { order: 2; flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
    .topbar-right { order: 3; width: auto; gap: 2px; flex-shrink: 0; flex-wrap: nowrap; }
    .main { padding: 14px calc(12px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
    /* Forum/grupp-detalj: stapla info ovanför knapparna så inget kläms ihop */
    .forum-head-top { flex-direction: column; align-items: stretch; gap: 12px; }
    .forum-head-actions { display: flex; gap: 8px; }
    .forum-title { font-size: 22px; }
    /* Notis-dropdownen: full bredd (med marginal) på mobil – annars sticker den ut */
    #notifDropdown { position: fixed; top: calc(var(--topbar-h) + 4px); left: 8px; right: 8px; width: auto; max-height: calc(100vh - var(--topbar-h) - 16px); }
}

/* ===== RECORDS BROWSER ===== */
.rec-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: flex-start;
}
.rec-side {
    position: sticky; top: calc(var(--topbar-h) + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    max-height: calc(100vh - var(--topbar-h) - 24px);
    overflow-y: auto;
}
.rec-side h6 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--text-3); margin: 16px 0 6px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.rec-side h6:first-child { margin-top: 0; }
.rec-side ul { list-style: none; padding: 0; margin: 0; }
.rec-side li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 8px; border-radius: 6px; cursor: pointer;
    color: var(--text); font-size: 13.5px;
    transition: background 80ms;
    user-select: none;
}
.rec-side li:hover { background: var(--surface-2); }
.rec-side li.active {
    background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.rec-side li .cnt {
    color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums;
}
.rec-side li.active .cnt { color: var(--accent); opacity: 0.7; }
.rec-side .show-more {
    padding: 4px 8px; color: var(--text-2); cursor: pointer; font-size: 12px;
}
.rec-side .show-more:hover { color: var(--accent); }
.rec-side-scope {
    background: var(--surface-2); border-radius: 8px; padding: 4px;
    display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px;
}
.rec-side-scope li {
    padding: 8px 10px; border-radius: 6px; font-weight: 600;
}
.rec-side-stat {
    padding: 10px 4px 14px; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.rec-side-stat .big {
    font-size: 28px; font-weight: 800; font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -1px; line-height: 1;
}
.rec-side-stat .sub { color: var(--text-3); font-size: 12px; margin-top: 4px; }

.rec-main { min-width: 0; }
.rec-bar {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-bottom: 14px;
}
.rec-search {
    flex: 1; min-width: 200px; position: relative;
}
.rec-search input {
    width: 100%; height: 40px; border-radius: 999px; padding: 0 36px 0 40px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); outline: none; font-size: 14px;
    transition: border-color 100ms;
}
.rec-search input:focus { border-color: var(--accent); }
.rec-search svg { position: absolute; top: 50%; transform: translateY(-50%); left: 14px; color: var(--text-2); width: 16px; height: 16px; }
.rec-search button {
    position: absolute; top: 50%; transform: translateY(-50%); right: 8px;
    background: none; border: none; color: var(--text-2); cursor: pointer;
    padding: 6px; border-radius: 50%; display: none;
}
.rec-search.has-text button { display: block; }

.rec-bar select.rec-sort {
    height: 40px; border-radius: 999px; padding: 0 32px 0 14px;
    background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a1a1aa' stroke-width='2'><polyline points='1 1 6 6 11 1'/></svg>") no-repeat right 12px center;
    border: 1px solid var(--border); color: var(--text); font-size: 13px;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.rec-bar .view-toggle {
    display: inline-flex; background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px;
}
.rec-bar .view-toggle button {
    width: 32px; height: 32px; border-radius: 999px; background: transparent;
    border: none; cursor: pointer; color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
}
.rec-bar .view-toggle button.active { background: var(--accent); color: #fff; }

/* Grid view — Letterboxd-stil, ren posterruta */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.rec-tile {
    cursor: pointer; position: relative;
    transition: transform 120ms ease;
}
.rec-tile:hover { transform: translateY(-3px); }
.rec-tile .cover {
    aspect-ratio: 1/1;
    background: var(--surface-2);
    background-size: cover; background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    transition: box-shadow 120ms, outline 80ms;
    outline: 0 solid transparent;
    outline-offset: 0;
}
.rec-tile:hover .cover {
    box-shadow: 0 12px 32px rgba(0,0,0,.6);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.rec-tile .cover.empty {
    background:
        radial-gradient(circle at center, #2a2a2e 0%, #0a0a0b 65%, #18181b 80%);
}
.rec-tile .cover.empty::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 32%; height: 32%; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.rec-tile .cover .badge-format {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 999px; letter-spacing: 0.5px;
    opacity: 0; transition: opacity 120ms;
}
.rec-tile:hover .cover .badge-format { opacity: 1; }
.rec-tile .meta { padding: 8px 4px 0; min-height: 38px; }
.rec-tile .artist {
    font-size: 12.5px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: 0.2px;
}
.rec-tile .title {
    font-size: 12px; color: var(--text-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-style: italic;
}
.rec-tile .year { font-size: 11px; color: var(--text-3); }

/* List view — Discogs-stil, kompakt tabell */
.rec-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.rec-list .head {
    display: grid;
    grid-template-columns: 48px minmax(140px,2fr) minmax(140px,2fr) 70px 60px 80px 110px;
    gap: 12px; padding: 10px 14px;
    background: var(--surface-2); color: var(--text-3);
    text-transform: uppercase; font-size: 11px; letter-spacing: 1.2px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.rec-list .row {
    display: grid;
    grid-template-columns: 48px minmax(140px,2fr) minmax(140px,2fr) 70px 60px 80px 110px;
    gap: 12px; padding: 8px 14px;
    align-items: center; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 80ms;
}
.rec-list .row:last-child { border-bottom: none; }
.rec-list .row:hover { background: var(--surface-2); }
.rec-list .thumb {
    width: 44px; height: 44px; border-radius: 4px;
    background: var(--surface-2); background-size: cover; background-position: center;
    flex-shrink: 0;
}
.rec-list .thumb.empty {
    background: radial-gradient(circle, #28282d 0%, #0a0a0b 65%, #18181b 80%);
    position: relative;
}
.rec-list .thumb.empty::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 32%; height: 32%; border-radius: 50%; background: var(--accent);
}
.rec-list .col-artist { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-list .col-title  { font-style: italic; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-list .col-year, .rec-list .col-format, .rec-list .col-country, .rec-list .col-label { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Artist-vy: alfabetisk indelning med små thumbs */
.rec-artists {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0;
}
.rec-artists .letter-head {
    padding: 12px 16px 6px;
    color: var(--accent); font-weight: 800; font-size: 22px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.rec-artists .letter-head:first-child { border-top: none; }
.rec-artists .artist-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 80ms;
}
.rec-artists .artist-row:hover { background: var(--surface-2); }
.rec-artists .artist-row .thumbs {
    display: flex; gap: -8px;
    flex-shrink: 0;
}
.rec-artists .artist-row .thumbs .t {
    width: 36px; height: 36px; border-radius: 4px;
    background: var(--surface-2); background-size: cover; background-position: center;
    margin-left: -8px;
    box-shadow: 0 0 0 2px var(--surface);
}
.rec-artists .artist-row .thumbs .t:first-child { margin-left: 0; }
.rec-artists .artist-row .name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-artists .artist-row .cnt { color: var(--text-3); font-size: 13px; }
.rec-artists .artist-row .arrow { color: var(--text-3); }

/* A-Ö jump bar (för artist-vyn) */
.rec-jumpbar {
    position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 4px;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow); z-index: 10;
}
.rec-jumpbar a {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; font-size: 10px;
    color: var(--text-2); border-radius: 50%; cursor: pointer;
    transition: all 80ms;
}
.rec-jumpbar a:hover, .rec-jumpbar a.active { background: var(--accent); color: #fff; }
.rec-jumpbar a.disabled { opacity: 0.25; pointer-events: none; }
@media (max-width: 1340px) { .rec-jumpbar { display: none; } }

/* Empty state */
.rec-empty {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 48px 16px;
    text-align: center; color: var(--text-2);
}

/* Mobile sidebar collapse */
.rec-side-toggle {
    display: none;
    background: var(--surface-2); border: 1px solid var(--border);
    height: 40px; border-radius: 999px; padding: 0 16px;
    color: var(--text); font-size: 13px; align-items: center; gap: 6px; cursor: pointer;
}
@media (max-width: 900px) {
    .rec-app { grid-template-columns: 1fr; }
    .rec-side {
        position: fixed; left: 0; top: 0; bottom: 0; width: 280px;
        max-height: 100vh; border-radius: 0;
        z-index: 90; transform: translateX(-100%); transition: transform 200ms;
    }
    .rec-side.open { transform: translateX(0); }
    .rec-side-toggle { display: inline-flex; }
    .rec-side-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.6);
        display: none; z-index: 89;
    }
    .rec-side-backdrop.open { display: block; }
}

/* ============== DETAIL OVERLAY ============== */
.rec-detail-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
    z-index: 200;
    overflow-y: auto;
    animation: fadeIn 120ms;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.rec-detail-sheet {
    max-width: 1080px; margin: 32px auto; min-height: calc(100vh - 64px);
    background: var(--bg); border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    animation: slideUp 200ms;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.rec-detail-close {
    position: fixed; top: 16px; right: 16px; z-index: 210;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.rec-detail-hero {
    --hero-bg: var(--surface);
    background: linear-gradient(180deg, var(--hero-bg) 0%, var(--bg) 100%);
    padding: 40px 40px 32px;
    display: grid; grid-template-columns: 320px 1fr; gap: 32px;
    position: relative;
}
.rec-detail-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 30% 30%, rgba(0,0,0,.3), transparent 80%);
    pointer-events: none;
}
.rec-detail-hero .cover-large {
    aspect-ratio: 1/1; border-radius: var(--radius);
    background-size: cover; background-position: center;
    background-color: var(--surface-2);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    position: relative; z-index: 1;
}
.rec-detail-hero .cover-large.empty {
    background: radial-gradient(circle, #28282d 0%, #0a0a0b 65%, #18181b 80%);
}
.rec-detail-hero .cover-large.empty::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 32%; height: 32%; border-radius: 50%; background: var(--accent);
}
.rec-detail-hero .info {
    padding-top: 16px; position: relative; z-index: 1;
    color: #fff;
}
.rec-detail-hero .info .pretitle {
    font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.7); margin-bottom: 8px;
}
.rec-detail-hero .info .artist {
    font-size: 18px; font-weight: 600; margin-bottom: 4px;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.rec-detail-hero .info h1 {
    font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -1px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    margin: 0 0 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.rec-detail-hero .info .facts {
    display: flex; gap: 12px; flex-wrap: wrap;
    color: rgba(255,255,255,.85); font-size: 14px;
    margin-bottom: 24px;
}
.rec-detail-hero .info .facts span { padding: 4px 10px; background: rgba(255,255,255,.1); border-radius: 999px; backdrop-filter: blur(4px); }
.rec-detail-hero .info .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-detail-hero .info .actions .btn { box-shadow: 0 4px 16px rgba(0,0,0,.3); }

.rec-detail-body { padding: 32px 40px 40px; }
.rec-detail-body section { margin-bottom: 32px; }
.rec-detail-body section h3 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-3); margin: 0 0 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
    font-weight: 700;
}

/* Tracklist */
.tracklist {
    display: flex; flex-direction: column;
}
.tracklist .track {
    display: grid;
    grid-template-columns: 28px 1fr 60px;
    gap: 14px; align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.tracklist .track:last-child { border-bottom: none; }
.tracklist .track:hover { background: var(--surface); }
.tracklist .track .pos { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.tracklist .track .ttl { color: var(--text); }
.tracklist .track .dur { color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.tracklist .heading {
    padding: 10px 4px 4px;
    font-weight: 700; color: var(--text-2); font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Identifiers / credits as collapsible */
.rec-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.rec-detail-grid dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.rec-detail-grid dt { color: var(--text-3); }
.rec-detail-grid dd { margin: 0; color: var(--text); }
.rec-detail-grid dd a { color: var(--accent); }

.versions-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.version-tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px; cursor: pointer;
    transition: border-color 100ms;
}
.version-tile:hover { border-color: var(--accent); }
.version-tile .cover {
    aspect-ratio: 1/1; background: var(--surface-2);
    background-size: cover; background-position: center;
    border-radius: 6px; margin-bottom: 8px;
}
.version-tile .meta { font-size: 12px; color: var(--text-2); }

@media (max-width: 720px) {
    .rec-detail-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
    .rec-detail-hero .cover-large { max-width: 240px; margin: 0 auto; }
    .rec-detail-hero .info { text-align: center; }
    .rec-detail-hero .info .facts { justify-content: center; }
    .rec-detail-hero .info h1 { font-size: 32px; }
    .rec-detail-body { padding: 20px; }
    .rec-detail-grid { grid-template-columns: 1fr; }
    .rec-list .head, .rec-list .row {
        grid-template-columns: 44px minmax(100px,1.2fr) 70px 80px;
    }
    .rec-list .col-title, .rec-list .col-format, .rec-list .col-country,
    .rec-list .head > *:nth-child(3), .rec-list .head > *:nth-child(5), .rec-list .head > *:nth-child(7) { display: none; }
}

/* ===== UTILITIES ===== */
.row { display: flex; gap: 8px; align-items: center; }
.row-between { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.muted { color: var(--text-2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.fw-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flash {
    background: var(--accent-soft); color: var(--accent); padding: 10px 14px;
    border-radius: var(--radius-sm); margin-bottom: 12px;
    border: 1px solid rgba(225,29,72,0.3);
}
.flash.ok { background: rgba(16,185,129,.12); color: var(--ok); border-color: rgba(16,185,129,.3); }
.hidden { display: none !important; }
.divider-h { height: 1px; background: var(--border); margin: 12px 0; }

/* ===== TA ÖVER (ägaröverföring) ===== */
.claim-owner { border: 1px solid var(--accent); }
.claim-req { padding: 14px 0; border-top: 1px solid var(--border); }
.claim-req:first-of-type { border-top: 0; padding-top: 2px; }
.claim-msg { margin: 0 0 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; white-space: pre-wrap; word-break: break-word; }

/* ===== SCROLL-LOADED ===== */
.loading-spinner {
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; width: 28px; height: 28px;
    animation: spin 0.8s linear infinite; margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Subtila vinyl-skiveffekter på cover & headers */
.vinyl-streak {
    background-image:
        linear-gradient(to right, transparent 0%, rgba(225, 29, 72, 0.08) 50%, transparent 100%);
}

/* ===== GRUPP-INBJUDAN POPUP ===== */
.invite-pop { z-index: 200; animation: fadeIn .18s ease; }
.invite-pop-card { max-width: 380px; width: 100%; animation: popIn .22s cubic-bezier(.2,.9,.3,1.3); }
.invite-pop-icon { font-size: 42px; line-height: 1; }
.invite-pop-avatar { display: inline-block; margin-top: 12px; }
.invite-pop-avatar img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Textknapp (ser ut som en länk) – t.ex. "Skicka ny kod" / "Avbryt" */
.btn-link { background: none; border: none; padding: 0; color: var(--text-2); cursor: pointer; font: inherit; text-decoration: underline; }
.btn-link:hover { color: var(--accent); }

/* @-mentions i inlägg/kommentarer/meddelanden – avvikande färg så de syns mot texten */
.u-mention { color: var(--accent); font-weight: 600; text-decoration: none; }
.u-mention:hover { text-decoration: underline; }
.msg-bubble.me .u-mention { color: #fff; text-decoration: underline; }   /* mot accent-bakgrund i egna bubblor */

/* === Omröstningar i inlägg (poll_block.php) === */
.poll { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.poll-opt {
    position: relative; display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 12px; border-radius: var(--radius-sm); overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left;
}
.poll-opt:hover:not(:disabled) { border-color: var(--accent); }
.poll-opt:disabled { cursor: default; }
.poll-opt .poll-label { position: relative; z-index: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-opt .poll-pct { position: relative; z-index: 1; flex-shrink: 0; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.poll-fill {
    position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    transition: width .35s ease;
}
.poll-opt.mine { border-color: var(--accent); }
.poll-opt.mine .poll-pct { color: var(--accent); font-weight: 700; }
.poll-meta { font-size: 12px; color: var(--text-2); padding: 2px 2px 0; }

/* Omröstning i composern */
.composer-poll { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.composer-poll.hidden { display: none; }
.composer-poll-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.composer-poll-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.composer-poll-row input { flex: 1; min-width: 0; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 12px; font-family: inherit; font-size: 14px; outline: none; }
.composer-poll-row input:focus { border-color: var(--accent); }

/* === Admin: kompakta åtgärdsknappar på användarraderna === */
.adm-btn {
    padding: 3px 9px; font-size: 11.5px; font-weight: 600; line-height: 1.6;
    border-radius: 6px; background: transparent; border: 1px solid var(--border);
    color: var(--text-2); cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: color .12s, border-color .12s, background .12s;
}
.adm-btn:hover { color: var(--text); border-color: var(--accent); }
.adm-btn.danger { color: #f87171; border-color: rgba(248,113,113,.35); }
.adm-btn.danger:hover { background: rgba(248,113,113,.12); border-color: #f87171; color: #fca5a5; }

/* === "Vem har reagerat?"-modal === */
.react-who {
    display: inline-flex; align-items: center; background: none; border: none; padding: 0;
    font: inherit; color: inherit; cursor: pointer; border-radius: 6px;
}
.react-who { padding: 4px 8px; margin-left: -8px; }
.react-who:hover { background: var(--surface-2); color: var(--text); }
.reactor-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 6px;
    border-radius: var(--radius-sm); color: var(--text);
}
.reactor-row:hover { background: var(--surface-2); }
.reactor-row .reactor-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.reactor-row .reactor-emoji { flex-shrink: 0; font-size: 16px; }

/* Smala Gilla/Kommentera-knappar i samma rad som reaktionssummeringen */
.reaction-counts .rc-btn {
    background: transparent; border: none; color: var(--text-2);
    padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 13px; font-family: inherit; white-space: nowrap;
    position: relative; flex-shrink: 0;
}
.reaction-counts .rc-btn:hover { background: var(--surface-2); color: var(--text); }
.reaction-counts .rc-btn.active { color: var(--accent); }
.reaction-counts .rc-btn svg { width: 16px; height: 16px; }
/* Reaktionsväljaren öppnas ovanför den lilla Gilla-knappen — högerställd så den inte sticker ut ur kortet */
.reaction-counts .reaction-popover { left: auto; right: 0; }

/* Flikar i Reaktioner-modalen */
.reactor-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; }
.reactor-tab {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
    padding: 4px 11px; border-radius: 999px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
}
.reactor-tab:hover { color: var(--text); border-color: var(--accent); }
.reactor-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Öppna omröstningar: "av Namn" + lägg-till-rad */
.poll-label .poll-by { font-size: 10.5px; color: var(--text-2); font-weight: 500; }
.poll-add { margin-top: 2px; }
.poll-add .poll-add-form { display: none; }
.poll-add.open .poll-add-btn { display: none; }
.poll-add.open .poll-add-form { display: flex; gap: 6px; align-items: center; }
.poll-add-btn {
    background: none; border: 1px dashed var(--border); color: var(--text-2);
    padding: 7px 12px; border-radius: var(--radius-sm); cursor: pointer; width: 100%;
    font-family: inherit; font-size: 13px; font-weight: 600; text-align: left;
}
.poll-add-btn:hover { color: var(--text); border-color: var(--accent); }
.poll-add-form input {
    flex: 1; min-width: 0; height: 36px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    padding: 0 12px; font-family: inherit; font-size: 13px; outline: none;
}
.poll-add-form input:focus { border-color: var(--accent); }
.poll-add-form button {
    flex-shrink: 0; background: var(--accent); border: none; color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
}
