/* jmapconnect.app community board (/community/). Builds on site.css: night blue, sky blue and gold. */
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-hp { position: absolute; left: -9999px; }
.cm-muted { color: var(--muted); }
.cm-small { font-size: 13px; color: var(--muted); }
.cm-good { color: var(--good); }

/* Top bar: who's signed in */
.cm .top .nav { margin-left: auto; }
.cm-me, .cm-signin { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.cm-signin { padding: 7px 14px; }
.cm-me:hover, .cm-signin:hover { background: rgba(255, 255, 255, .16); }
.cm-me span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .cm .nav a:nth-child(1), .cm .nav a:nth-child(2), .cm .nav a:nth-child(5) { display: none; } .cm-me span { display: none; } .cm-me { padding: 4px; } .cm-signin .i { display: none; } }

/* Hero */
.cm-hero { padding-bottom: 40px; }
.cm-hero-board { padding-bottom: 48px; }
.cm-hero-small { padding: 104px 0 36px; }
.cm-hero-small h1 { font-size: clamp(30px, 4.6vw, 44px); }
.cm-hero-post { padding: 104px 0 32px; }
.cm-hero-post h1 { font-size: clamp(26px, 4vw, 40px); max-width: 30em; letter-spacing: -.02em; }
.cm-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; font-size: 14.5px; color: rgba(235, 240, 255, .82); }
.cm-hero-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.cm-hero-meta .cm-name { color: #fff; font-weight: 600; }
.cm-hero .cm-chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }

.cm-search { position: relative; display: flex; gap: 10px; max-width: 640px; margin-top: 28px; }
.cm-search > .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(235, 240, 255, .6); pointer-events: none; }
.cm-search input { flex: 1; min-width: 0; padding: 14px 16px 14px 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 16px; }
.cm-search input::placeholder { color: rgba(235, 240, 255, .6); }
.cm-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cm-search .btn { border: 0; cursor: pointer; font-family: inherit; }

.cm-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin-top: 22px; }
.cm-start { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.cm-start:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.cm-start > .i { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: linear-gradient(180deg, #ffe08a, var(--gold) 55%, #f5a623); stroke: #2a1a00; }
.cm-start b { display: block; font-size: 16px; }
.cm-start small { display: block; color: rgba(235, 240, 255, .72); font-size: 13.5px; line-height: 1.35; }
@media (max-width: 760px) { .cm-starts { grid-template-columns: 1fr; } .cm-start { padding: 12px 14px; } }
@media (max-width: 520px) { .cm-search .btn { display: none; } }

/* Layout */
.cm-page { padding: 36px 0 88px; background: var(--soft); }
.cm-board { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.cm-main { min-width: 0; }
.cm-side { display: grid; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 960px) { .cm-board { grid-template-columns: 1fr; } .cm-side { position: static; } }
.cm-narrow { max-width: 760px; display: grid; gap: 18px; }
.cm-narrower { max-width: 520px; }

.cm-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.cm-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; letter-spacing: -.01em; }
.cm-card h3 .i { color: var(--accent); }

/* Tabs and sorting */
.cm-tabs { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.cm-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cm-tab b { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.cm-tab:hover { color: var(--ink); background: var(--soft); }
.cm-tab[aria-current] { background: var(--accent-soft); color: var(--accent); }
.cm-tab[aria-current] b { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .cm-tab .i { display: none; } .cm-tab { padding: 9px 8px; font-size: 14px; gap: 6px; } }
@media (max-width: 440px) { .cm-tab b { display: none; } .cm-tabs { gap: 2px; } }
.cm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.cm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-pill { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.cm-pill:hover { color: var(--ink); }
.cm-pill[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cm-filter select { font: inherit; font-size: 14px; padding: 7px 30px 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.cm-results { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 12px; }
.cm-results a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }

/* Post rows */
.cm-list { display: grid; gap: 12px; }
.cm-row { display: flex; gap: 18px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.cm-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cm-row-wait { border-style: dashed; }
.cm-row-main { min-width: 0; flex: 1; }
.cm-row h2 { font-size: 18px; line-height: 1.35; margin: 6px 0 4px; letter-spacing: -.01em; }
.cm-row h2 a { color: var(--ink); text-decoration: none; }
.cm-row h2 a:hover { color: var(--accent); }
.cm-ex { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-row-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.cm-meta .cm-name { color: var(--ink); font-weight: 600; }
.cm-dot { opacity: .5; }
.cm-replies { display: inline-flex; align-items: center; gap: 4px; }
.cm-replies .i { width: 15px; height: 15px; }
@media (max-width: 560px) { .cm-row { gap: 12px; padding: 14px; } .cm-row h2 { font-size: 16.5px; } }

/* Chips */
.cm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid var(--line); color: var(--muted); background: var(--soft); white-space: nowrap; line-height: 1.6; }
.cm-chip .i { width: 13px; height: 13px; }
.cm-k-bug { color: #b4233a; background: #fdecee; border-color: #f8d3d8; }
.cm-k-idea { color: #8a5a00; background: #fff4d1; border-color: #fbe3a0; }
.cm-k-question { color: #1d4fc4; background: #e8efff; border-color: #cfdcfd; }
.cm-s-planned { color: #6b3fc9; background: #f0eaff; border-color: #ddd0fb; }
.cm-s-working { color: #0e6f8a; background: #e1f4f9; border-color: #c2e7f1; }
.cm-s-fixed, .cm-s-answered, .cm-chip-good { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.cm-s-not-planned, .cm-s-duplicate { color: var(--muted); }
.cm-chip-paul { color: #7a4b00; background: linear-gradient(180deg, #fff3c4, #ffe08a); border-color: #f5c84a; }
.cm-chip-wait { color: var(--wait); background: var(--wait-soft); border-color: transparent; }
.cm-chip-bad { color: #b4233a; background: #fdecee; border-color: #f8d3d8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cm-k-bug, :root:not([data-theme="light"]) .cm-chip-bad { color: #ff9aa9; background: #3a1620; border-color: #5a2230; }
  :root:not([data-theme="light"]) .cm-k-idea { color: #ffd27a; background: #33270c; border-color: #4d3b12; }
  :root:not([data-theme="light"]) .cm-k-question { color: #9fbcff; background: #17224d; border-color: #24357a; }
  :root:not([data-theme="light"]) .cm-s-planned { color: #c7b0ff; background: #251a45; border-color: #3a2a6b; }
  :root:not([data-theme="light"]) .cm-s-working { color: #8fdcf0; background: #0f2f3a; border-color: #1a4756; }
  :root:not([data-theme="light"]) .cm-chip-paul { color: #2a1a00; }
}

/* Votes */
.cm-vote-f { margin: 0; }
.cm-vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 64px; min-height: 74px; padding: 6px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; flex: none; }
.cm-vote .i { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.6; }
.cm-vote b { font-size: 19px; line-height: 1.1; }
.cm-vote span { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.cm-vote:hover { border-color: var(--accent); transform: translateY(-1px); }
.cm-vote.cm-on { background: linear-gradient(180deg, #ffe08a, var(--gold) 60%, #f5a623); border-color: #f0b52a; color: #2a1a00; }
.cm-vote.cm-on .i, .cm-vote.cm-on span { color: #2a1a00; }
.cm-vote-off { cursor: default; opacity: .7; }
.cm-vote-off:hover { transform: none; border-color: var(--line); }
.cm-vote-big { flex-direction: row; width: auto; min-height: 0; gap: 8px; padding: 10px 16px; }
.cm-vote-big span { font-size: 13px; }
.cm-count { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; min-height: 74px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); flex: none; }
.cm-count .i { width: 18px; height: 18px; }
.cm-count b { font-size: 19px; color: var(--ink); line-height: 1.1; }
.cm-count span { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.cm-count-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
@media (max-width: 560px) { .cm-vote, .cm-count { width: 54px; min-height: 64px; } }

/* Avatars */
.cm-av { --h: 220; position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(140deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 65% 42%)); letter-spacing: .02em; }
.cm-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-av.xs { width: 22px; height: 22px; font-size: 9.5px; }
.cm-av.sm { width: 28px; height: 28px; font-size: 11px; }
.cm-av.lg { width: 64px; height: 64px; font-size: 22px; }
.cm-av-paul { background: var(--night); box-shadow: 0 0 0 2px var(--gold); }
.cm-dev { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #2a1a00; background: linear-gradient(180deg, #ffe08a, var(--gold)); }
.cm-dev .i { width: 12px; height: 12px; }

/* Flash messages */
.cm-flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 14px; margin: 0 0 16px; font-size: 15px; border: 1px solid transparent; }
.cm-flash .i { margin-top: 3px; }
.cm-flash-good { background: var(--good-soft); color: var(--good); }
.cm-flash-bad { background: #fdecee; color: #a01d33; }
.cm-flash-info { background: var(--wait-soft); color: var(--wait); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cm-flash-bad { background: #3a1620; color: #ff9aa9; } }

/* Side cards */
.cm-how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.cm-how p { font-size: 14px; margin: 12px 0 0; }
.cm-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.cm-mini li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; }
.cm-mini li > .i { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.cm-mini a { color: var(--ink); text-decoration: none; font-weight: 550; }
.cm-mini a:hover { color: var(--accent); }
.cm-mini small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.cm-mini-n { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; padding: 1px 6px; border-radius: 8px; background: var(--soft); color: var(--accent); }
.cm-mini-n .i { width: 14px; height: 14px; vertical-align: -2px; }
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 16px 10px; }
.cm-stats b { display: block; font-size: 24px; letter-spacing: -.02em; }
.cm-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }
.cm-side-btns { display: grid; gap: 8px; }
.cm-votecard { display: grid; gap: 8px; }
.cm-votecard-n b { font-size: 34px; letter-spacing: -.03em; margin-right: 8px; }
.cm-votecard-n span { color: var(--muted); }
.cm-votecard p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Buttons */
.cm .btn { cursor: pointer; font-family: inherit; }
.cm button.btn { border: 0; }
.cm-btn-line { background: var(--card); color: var(--ink); border: 1px solid var(--line) !important; font-size: 15px; padding: 10px 16px; }
.cm-btn-line:hover { border-color: var(--accent) !important; }
.cm-btn-bad { color: #b4233a; }
.cm-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 11px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.cm-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cm-link-bad { color: #b4233a; }
.cm-pager { display: flex; justify-content: space-between; margin-top: 20px; }

/* Empty state */
.cm-empty { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.cm-empty-i { width: 44px; height: 44px; color: var(--accent); }
.cm-empty h3 { margin: 12px 0 4px; }
.cm-empty p { color: var(--muted); margin: 0 0 18px; }

/* One post */
.cm-statusbar { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); }
.cm-statusbar > .i { width: 24px; height: 24px; margin-top: 1px; }
.cm-statusbar b { display: block; }
.cm-statusbar span { color: var(--muted); font-size: 14.5px; }
.cm-sb-fixed, .cm-sb-answered { background: var(--good-soft); border-color: transparent; color: var(--good); }
.cm-sb-planned { background: #f0eaff; border-color: transparent; color: #6b3fc9; }
.cm-sb-working { background: #e1f4f9; border-color: transparent; color: #0e6f8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cm-sb-planned { background: #251a45; color: #c7b0ff; } :root:not([data-theme="light"]) .cm-sb-working { background: #0f2f3a; color: #8fdcf0; } }
.cm-post { padding: 26px 28px; }
.cm-text { overflow-wrap: anywhere; }
.cm-text p { margin: 0 0 14px; max-width: none; }
.cm-text > :last-child { margin-bottom: 0; }
.cm-text ul, .cm-text ol { margin: 0 0 14px; padding-left: 22px; }
.cm-text pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 14px; margin: 0 0 14px; }
.cm-text pre code { background: none; border: 0; padding: 0; }
.cm-device { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 14px; }
.cm-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.cm-answer h2, .cm-thread h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 32px 0 14px; }
.cm-answer h2 .i { color: var(--good); }
.cm-reply { display: flex; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.cm-reply-body { min-width: 0; flex: 1; }
.cm-reply .cm-meta { margin-bottom: 8px; }
.cm-time { color: inherit; text-decoration: none; }
.cm-reply-paul { border-color: #f5c84a; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, var(--card)), var(--card) 120px); }
.cm-reply-answer { border-color: color-mix(in srgb, var(--good) 45%, transparent); box-shadow: 0 0 0 3px var(--good-soft), var(--shadow); }
.cm-reply-wait { border-style: dashed; opacity: .85; }
.cm-reply-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.cm-reply-tools form { margin: 0; }
.cm-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 10px; }
@media (max-width: 560px) { .cm-reply { padding: 14px; gap: 10px; } .cm-reply > .cm-av { width: 32px; height: 32px; font-size: 12px; } .cm-post { padding: 20px; } }

.cm-cta { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.cm-cta h3 { margin: 0 0 4px; }
.cm-cta p { margin: 0; color: var(--muted); font-size: 15px; }
.cm-cta-i { width: 40px; height: 40px; color: var(--accent); flex: none; }
.cm-cta .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .cm-cta { flex-direction: column; align-items: flex-start; } .cm-cta .btn { margin-left: 0; } }

/* Forms */
.cm-replyform, .cm-newform { display: grid; gap: 14px; margin-top: 8px; }
.cm-replyform h3 { margin: 0; }
.cm textarea, .cm-field input, .cm-inline input, .cm-admincard input, .cm-admincard select, .cm-ad-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.cm textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.cm textarea:focus, .cm-field input:focus, .cm-inline input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.cm-field { display: grid; gap: 6px; }
.cm-field > span { font-weight: 650; font-size: 15px; }
.cm-field small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.cm-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cm-hint { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); margin: 0; }
.cm-hint .i { width: 15px; height: 15px; flex: none; }
.cm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.cm-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.cm-inline { display: flex; gap: 10px; }
.cm-inline .btn { flex: none; }
@media (max-width: 560px) { .cm-inline { flex-direction: column; } }

.cm-kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cm-kinds legend { font-weight: 650; font-size: 15px; margin-bottom: 8px; padding: 0; }
.cm-kind { cursor: pointer; }
.cm-kind input { position: absolute; opacity: 0; pointer-events: none; }
.cm-kind-box { display: grid; gap: 4px; justify-items: start; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease; }
.cm-kind-box .i { width: 22px; height: 22px; }
.cm-kind-box b { font-size: 15px; }
.cm-kind-box small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.cm-kind.cm-k-bug, .cm-kind.cm-k-idea, .cm-kind.cm-k-question { background: none; border: 0; }
.cm-kind.cm-k-bug .i { color: #c42b44; } .cm-kind.cm-k-idea .i { color: #d18b00; } .cm-kind.cm-k-question .i { color: #2f5bd3; }
.cm-kind input:checked + .cm-kind-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cm-kind input:focus-visible + .cm-kind-box { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .cm-kinds { grid-template-columns: 1fr; } .cm-kind-box { grid-template-columns: auto 1fr; align-items: center; } .cm-kind-box small { grid-column: 2; } }

.cm-similar { border-radius: 14px; background: var(--accent-soft); padding: 12px 16px; margin-top: -4px; }
.cm-similar p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--accent); }
.cm-similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.cm-similar a { color: var(--ink); text-decoration: none; font-weight: 550; }
.cm-similar a:hover { color: var(--accent); }
.cm-similar small { margin-left: 8px; color: var(--good); font-size: 12.5px; font-weight: 650; }

.cm-signin-card { display: grid; gap: 16px; }
.cm-signin-card .ts-box:empty { display: none; }
.cm-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.cm-ticks li { display: flex; gap: 8px; align-items: center; }
.cm-ticks .i { width: 16px; height: 16px; color: var(--good); }
.cm-msg { text-align: center; padding: 34px 26px; }
.cm-msg p { margin: 12px auto 20px; max-width: 30em; }
.cm-msg-i { width: 44px; height: 44px; color: var(--accent); }
.cm-msg form { margin: 0; }

/* Account */
.cm-account-head { display: flex; align-items: center; gap: 16px; }
.cm-account-head b { display: block; font-size: 19px; }
.cm-account-head > div > span { color: var(--muted); font-size: 14.5px; }
.cm-account-head .btn { margin-left: auto; }
.cm-account { display: grid; gap: 16px; }
.cm-account h3, .cm-upload h3 { margin: 0; }
.cm-radios { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-radios legend { font-weight: 650; font-size: 15px; margin-bottom: 8px; padding: 0; }
.cm-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.cm-radio input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); }
.cm-radio b { display: block; font-size: 15px; }
.cm-radio small { color: var(--muted); font-size: 13.5px; }
.cm-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cm-radio:has(input:disabled) { opacity: .6; cursor: default; }
.cm-upload { display: grid; gap: 10px; }
.cm-upload p { margin: 0; font-size: 14.5px; }
.cm-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cm-upload-row input[type=file] { flex: 1; min-width: 200px; font: inherit; font-size: 14.5px; }
.cm-account-foot { display: flex; justify-content: flex-end; gap: 10px; }
.cm-account-foot form { margin: 0; }
.cm-danger summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 650; color: #b4233a; list-style: none; }
.cm-danger summary::-webkit-details-marker { display: none; }
.cm-danger form { display: grid; gap: 12px; margin-top: 14px; }
.cm-danger p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Paul's tools on a post */
.cm-admincard { border-color: #f5c84a; display: grid; gap: 12px; }
.cm-admincard h3 { margin: 0; }
.cm-admincard form { display: grid; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cm-admincard form:first-of-type { border-top: 0; padding-top: 0; }
.cm-admincard label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cm-admincard label.cm-check { display: flex; font-weight: 500; color: var(--ink); }
.cm-admincard input, .cm-admincard select { font-size: 15px; padding: 8px 10px; border-radius: 9px; }
.cm-admincard .btn { padding: 10px 14px; font-size: 14.5px; }

/* ---------- Admin: collapsible left menu ---------- */
.cm-ad { background: var(--soft); }
.cm-ad-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.cm-ad-folded .cm-ad-shell { grid-template-columns: 68px minmax(0, 1fr); }
.cm-ad-menu { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: var(--night); color: #cfd7f0; overflow: hidden; }
.cm-ad-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; color: #fff; font-weight: 700; }
.cm-ad-brand img { border-radius: 8px; flex: none; }
.cm-ad-fold { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; flex: none; }
.cm-ad-fold:hover { background: rgba(255, 255, 255, .16); }
.cm-ad-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfd7f0; text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
.cm-ad-item .i { width: 20px; height: 20px; flex: none; }
.cm-ad-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cm-ad-item[aria-current] { background: rgba(91, 140, 255, .22); color: #fff; }
.cm-ad-n { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: #2a1a00; }
.cm-ad-gap { flex: 1; }
.cm-ad-folded .cm-ad-label, .cm-ad-folded .cm-ad-brand img { display: none; }
.cm-ad-folded .cm-ad-brand { justify-content: center; padding: 4px 0 16px; }
.cm-ad-folded .cm-ad-fold { margin: 0; }
.cm-ad-folded .cm-ad-item { justify-content: center; padding: 10px; position: relative; }
.cm-ad-folded .cm-ad-n { position: absolute; top: 2px; right: 2px; font-size: 10px; padding: 0 5px; }
.cm-ad-main { padding: 24px 32px 64px; min-width: 0; }
.cm-ad-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cm-ad-top h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.cm-ad-fold-m { display: none; background: var(--night); }
.cm-ad-list { display: grid; gap: 14px; max-width: 860px; }
.cm-ad-card h2 { font-size: 19px; margin: 10px 0 8px; }
.cm-ad-card h2 a { color: var(--ink); text-decoration: none; }
.cm-ad-person { margin: 10px 0 0; font-size: 14px; color: var(--muted, #6b7486); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; overflow-wrap: anywhere; }
.cm-ad-person a { color: inherit; }
.cm-ad-person .i { width: 15px; height: 15px; }
.cm-ad-card .cm-text { font-size: 15.5px; }
.cm-ad-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cm-ad-acts form { margin: 0; }
.cm-ad-acts .btn { padding: 9px 14px; font-size: 14.5px; }
.cm-ad-search { position: relative; display: flex; gap: 10px; max-width: 560px; margin-bottom: 16px; }
.cm-ad-search > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cm-ad-search input { padding-left: 40px; background: var(--card); }
.cm-ad-search .btn { flex: none; }
.cm-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; box-shadow: var(--shadow); }
.cm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cm-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cm-table tr:last-child td { border-bottom: 0; }
.cm-table td > a { color: var(--ink); font-weight: 600; text-decoration: none; display: block; margin-bottom: 6px; }
.cm-table td > a:hover { color: var(--accent); }
.cm-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.cm-person { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.cm-person small { display: block; color: var(--muted); }
.cm-acts { white-space: nowrap; }
.cm-acts form { display: inline-block; margin: 0 0 4px 4px; }
@media (max-width: 760px) {
  .cm-ad-shell, .cm-ad-folded .cm-ad-shell { grid-template-columns: 1fr; }
  .cm-ad-menu { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .cm-ad-open .cm-ad-menu { transform: none; }
  .cm-ad-folded .cm-ad-label, .cm-ad-folded .cm-ad-brand img { display: initial; }
  .cm-ad-folded .cm-ad-item { justify-content: flex-start; padding: 10px 12px; }
  .cm-ad-fold-m { display: grid; }
  .cm-ad-main { padding: 16px 16px 48px; }
}
.cm-main section { padding: 0; }
@media (max-width: 560px) { .cm-vote.cm-vote-big { width: auto; min-height: 0; } }
