/*
 * Cheshire base stylesheet: layout and component styles for the forum frontend. No inline styles in PHP files -- all CSS lives here.
 * @package Cheshire
 * @see templates/themes/default/
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

/* CSS variables for primary/accent color + content width; default = previous value of this theme (no visual change without an active AdminCP
   setting). Overridden by a :root override block when needed, see Cheshire\Services\Theme::cssVarsBlock(). */
:root{--cheshire-primary:#2E4057;--cheshire-accent:#3D6B8C;--cheshire-content-width:960px}

/* === Reset & base === */
.cheshire-wrap *{box-sizing:border-box}
.cheshire-wrap{font-family:sans-serif;line-height:1.5;color:var(--cheshire-text,#333);background:var(--cheshire-bg,transparent);max-width:var(--cheshire-content-width,960px);margin:0 auto;background-image:var(--cheshire-bg-image,none);background-size:var(--cheshire-bg-size,auto);background-repeat:var(--cheshire-bg-repeat,no-repeat);background-attachment:var(--cheshire-bg-attachment,scroll);background-position:center top}

/* Hybrid mode: the own page shell (_layout.htt) has no WBCE theme as a base, hence a minimal own reset -- only under #cheshire-standalone
   (body ID exists in hybrid mode only), integrated mode stays untouched. */
#cheshire-standalone{margin:0;font-family:sans-serif;line-height:1.5;color:var(--cheshire-text,#333);background:var(--cheshire-surface-alt,#f7f8fa)}
#cheshire-standalone *{box-sizing:border-box}
#cheshire-standalone-main{max-width:var(--cheshire-content-width,960px);margin:0 auto;padding:1rem}

/* === Breadcrumb === */
.cheshire-breadcrumb{font-size:.85rem;color:var(--cheshire-text-muted,#666);margin-bottom:1rem}
/* Own color via --cheshire-breadcrumb instead of a pure derivation, see Theme::cssVarsBlock() */
/* No fallback to --cheshire-accent any more -- changing the accent color would otherwise unexpectedly change the (independent) breadcrumb color
   too. Own fixed theme default at the end of the chain (--cheshire-brand-text stays as a dead intermediate step, it is never set itself, see
   cssVarsBlock()). */
.cheshire-breadcrumb a{color:var(--cheshire-breadcrumb,#3D6B8C);text-decoration:none}
.cheshire-breadcrumb a:hover{text-decoration:underline}
/* Same navigation at the end of the page, so users are not disoriented after scrolling (forum/thread view). */
.cheshire-breadcrumb-bottom{margin-top:1.5rem;margin-bottom:0;padding-top:.8rem;border-top:1px solid var(--cheshire-border-strong,#e2e6ea)}
.cheshire-back-to-top{float:right}

/* === Editor === */
/* The BBCode toolbar must wrap with many add-on buttons (e.g. Smilies/ITG/MsgBox on top of the 8 core buttons) instead of overflowing the
   container -- flex-wrap added, analogous to the TTE toolbar (.ev-toolbar, see TipTapEditor/assets/editor.css). */
.cheshire-editor-toolbar{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:.25rem}
.cheshire-editor-toolbar button{border:1px solid var(--cheshire-border-strong,#ccc);background:var(--cheshire-surface-alt,#f5f5f5);border-radius:3px;padding:.25rem .5rem;cursor:pointer}
.cheshire-editor-toolbar button:hover{background:var(--cheshire-surface-alt,#e8e8e8)}
.CodeMirror{border:1px solid var(--cheshire-border-strong,#ccc);border-radius:3px;background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#000)}
textarea.cheshire-editor{border:1px solid var(--cheshire-border-strong,#ccc);border-radius:3px;padding:.5rem;width:100%;background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#222)}

/* Generic base rule for normal form fields (text/number/date/textarea/select) outside the editor special cases above -- previously they had NO
   color rule of their own and ran on the browser default (always white background/black text), even in dark mode. Token-based like the rest of
   the stylesheet; the light-mode fallback (#fff/#222/#ccc) deliberately equals the former browser default, so it is pixel-identical without
   dark mode; once .cheshire-dark is active, the overridden --cheshire-* variables apply automatically (no own dark block needed). Deliberately
   NOT checkbox/radio/range/color/file (they have their own, often smaller look). */
.cheshire-wrap input[type=text],.cheshire-wrap input[type=search],.cheshire-wrap input[type=email],
.cheshire-wrap input[type=url],.cheshire-wrap input[type=password],.cheshire-wrap input[type=number],
.cheshire-wrap input[type=date],.cheshire-wrap input[type=datetime-local],.cheshire-wrap input[type=time],
.cheshire-wrap input[type=tel],.cheshire-wrap input:not([type]),.cheshire-wrap textarea,.cheshire-wrap select,
#cheshire-standalone input[type=text],#cheshire-standalone input[type=search],#cheshire-standalone input[type=email],
#cheshire-standalone input[type=url],#cheshire-standalone input[type=password],#cheshire-standalone input[type=number],
#cheshire-standalone input[type=date],#cheshire-standalone input[type=datetime-local],#cheshire-standalone input[type=time],
#cheshire-standalone input[type=tel],#cheshire-standalone input:not([type]),#cheshire-standalone textarea,#cheshire-standalone select{
  background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#222);
  border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px;padding:.4rem .5rem
}

/* CodeMirror internals (lines/gutter/cursor/selection) follow the same tokens in dark mode -- the vendored codemirror.css (assets/libs/) stays
   untouched (fixed third-party file), these rules only override it via selector specificity. */
.cheshire-wrap.cheshire-dark .CodeMirror,#cheshire-standalone.cheshire-dark .CodeMirror{background:var(--cheshire-surface);color:var(--cheshire-text)}
.cheshire-wrap.cheshire-dark .CodeMirror-gutters,#cheshire-standalone.cheshire-dark .CodeMirror-gutters{background:var(--cheshire-surface-alt);border-color:var(--cheshire-border)}
.cheshire-wrap.cheshire-dark .CodeMirror-linenumber,#cheshire-standalone.cheshire-dark .CodeMirror-linenumber{color:var(--cheshire-text-muted)}
.cheshire-wrap.cheshire-dark .CodeMirror-cursor,#cheshire-standalone.cheshire-dark .CodeMirror-cursor{border-left-color:var(--cheshire-text)}
.cheshire-wrap.cheshire-dark .CodeMirror-selected,#cheshire-standalone.cheshire-dark .CodeMirror-selected{background:var(--cheshire-surface-alt)}

.cheshire-category{margin-bottom:1.5rem}
.cheshire-category-title{font-size:1.1rem;font-weight:700;padding:.5rem 0;border-bottom:2px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));margin-bottom:.5rem;display:flex;align-items:center;gap:.4rem}
.cheshire-category-toggle{background:none;border:none;color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));cursor:pointer;font-size:.85rem;padding:0 .2rem}
/* Content display: see ContentDisplay.php */
.cheshire-category-description{font-size:.82rem;color:var(--cheshire-text-muted,#666);margin:0 0 .5rem}
.cheshire-badge-thread-count{background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#666);font-size:.72rem;padding:.1rem .4rem;border-radius:3px;margin-left:auto;font-weight:400}

/* === Forum row === */
/* First column is the expand/collapse arrow (.cheshire-forum-expand), analogous to the category level -- see markup order in ForumController.php. */
.cheshire-forum-row{display:grid;grid-template-columns:auto 2rem 1fr auto auto;gap:.5rem;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--cheshire-border,#eee)}
/* Content display "compact view", see ContentDisplay.php */
.cheshire-forum-row-compact{padding:.3rem 0;font-size:.9em}
.cheshire-forum-row-compact .cheshire-forum-icon{font-size:.8em}
.cheshire-forum-row-compact .cheshire-forum-description{display:none}
.cheshire-forum-name{font-weight:600;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none}
.cheshire-forum-name:hover{text-decoration:underline}
.cheshire-forum-description{font-size:.82rem;color:var(--cheshire-text-muted,#666);margin:.1rem 0 0}
.cheshire-forum-stats{display:flex;gap:.35rem;justify-content:flex-end;align-items:center}
/* Thread/post counts as badges instead of running text, same pattern as .cheshire-badge-thread-count on category level. */
.cheshire-forum-badge{font-size:.72rem;padding:.15rem .55rem;border-radius:10px;white-space:nowrap;font-weight:400}
.cheshire-forum-badge-threads{background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-forum-badge-posts{background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#666)}
.cheshire-forum-lastpost{font-size:.78rem;color:var(--cheshire-text-faint,#999);text-align:right;white-space:nowrap;min-width:11rem}
.cheshire-forum-expand{text-align:left}
.cheshire-forum-toggle{background:var(--cheshire-surface-alt,#f0f4f8);border:1px solid var(--cheshire-border-strong,#c5d5e8);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));cursor:pointer;font-size:.75rem;padding:.15rem .5rem;border-radius:4px}
.cheshire-forum-toggle:hover{background:var(--cheshire-surface-alt,#e2ecf5)}
.cheshire-forum-mini-threads{padding:.3rem 0 .6rem 2.5rem;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-mini-thread-row{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;font-size:.85rem;padding:.25rem 0}
.cheshire-mini-thread-row a{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none;font-weight:600}
.cheshire-mini-thread-row a:hover{text-decoration:underline}
.cheshire-mini-thread-stats{display:flex;gap:.3rem;flex-wrap:nowrap}
.cheshire-mini-thread-lastpost{margin-left:auto;font-size:.75rem;color:var(--cheshire-text-faint,#999);white-space:nowrap}
.cheshire-mini-thread-more{display:inline-block;margin-top:.3rem;font-size:.8rem;color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-mini-thread-more:hover{text-decoration:underline}

/* === Thread list === */
.cheshire-thread-row{display:grid;grid-template-columns:1fr auto auto auto;gap:.5rem;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-thread-title{font-weight:600;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none}
.cheshire-thread-title:hover{text-decoration:underline}
.cheshire-badge-solved{background:#27AE60;color:#fff;font-size:.72rem;padding:.1rem .4rem;border-radius:3px;margin-left:.4rem}
.cheshire-badge-unread{background:#E67E22;color:#fff;font-size:.72rem;padding:.1rem .4rem;border-radius:3px;margin-left:.4rem}
/* #1318: thread list - threads with unread posts get a bold title (badge "n neu" sits in the meta column). */
.cheshire-thread-row-unread .cheshire-thread-title{font-weight:700}
/* New/solved counters in the category head, visible only while the category is collapsed (JS class .cheshire-category-collapsed). */
.cheshire-cat-status-badges{display:none;margin-left:.4rem}
.cheshire-category-collapsed .cheshire-cat-status-badges{display:inline-flex;gap:.3rem}
.cheshire-cat-status-badges .cheshire-badge-solved{margin-left:0}
/* "+ New thread" icon link directly in the forum row, next to the new/solved badges (see ForumController.php). Round, compact, primary color like
   .cheshire-btn-new, but as an icon instead of text. */
.cheshire-forum-new-icon{display:inline-flex;align-items:center;justify-content:center;width:1.3rem;height:1.3rem;margin-left:.4rem;background:var(--cheshire-primary,#2E4057);color:#fff;border-radius:50%;font-size:.7rem;text-decoration:none;line-height:1;vertical-align:middle}
.cheshire-forum-new-icon:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-badge-closed{background:#7f8c8d;color:#fff;font-size:.72rem;padding:.1rem .4rem;border-radius:3px;margin-left:.4rem}
/* Forum link per row, since a tag view mixes threads from several forums (unlike forum_show.htt). */
.cheshire-thread-forum{display:block;font-size:.75rem;color:var(--cheshire-text-faint,#999);margin-top:.1rem}
.cheshire-thread-forum-link{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-thread-forum-link:hover{text-decoration:underline}
.cheshire-tag-empty{color:var(--cheshire-text-faint,#999);padding:.6rem 0}
/* Posts/views in the thread list as badges in the same look as the forum stats (.cheshire-forum-badge, see above), only narrower for the more
   compact thread row. */
.cheshire-thread-stats{display:flex;gap:.4rem;flex-wrap:nowrap}
.cheshire-thread-badge{font-size:.72rem;padding:.15rem .5rem;border-radius:10px;white-space:nowrap;font-weight:400;background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#666)}

/* === Move / bulk edit === */
.cheshire-move-thread-form{display:inline-block;margin-left:.6rem;font-size:.85rem}
.cheshire-move-thread-form select{padding:.2rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px}
.cheshire-bulk-move-bar{position:sticky;bottom:0;background:var(--cheshire-warning-bg,#fff3cd);border:1px solid var(--cheshire-warning-border,#ffc107);border-radius:6px;padding:.6rem .9rem;margin:.8rem 0;font-size:.85rem;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.cheshire-bulk-move-bar input[type="number"],.cheshire-bulk-move-bar input[type="text"]{padding:.25rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px}
/* Chip design: light chip background + strong colored outline instead of a solid fill -- the color comes as CSS custom property --tag-color
   from the respective tag/thread type (see Tag.php/ThreadType.php, style="--tag-color:#hex"), fallback to the normal accent color if unset. */
.cheshire-tag{display:inline-flex;align-items:center;gap:.3rem;background:var(--cheshire-surface,#fff);border:2px solid var(--tag-color,var(--cheshire-accent,#3D6B8C));color:var(--tag-color,var(--cheshire-accent,#3D6B8C));font-size:.72rem;font-weight:600;padding:.15rem .55rem;border-radius:999px;margin:.1rem;text-decoration:none}
.cheshire-icon-sticky,.cheshire-icon-type{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));margin-right:.15rem}
/* Pinned (sticky) threads get an own row highlight in addition to the pin icon -- left accent border + slightly offset background, same tokens as
   the sticky icon itself (dark-mode safe via var(--cheshire-x,...)). */
.cheshire-thread-row-sticky,.cheshire-mini-thread-row-sticky{border-left:3px solid var(--cheshire-accent,#3D6B8C);background:var(--cheshire-surface-alt,#f7f8fa);padding-left:.5rem;border-radius:4px}
.cheshire-thread-lastpost,.cheshire-lastpost,.cheshire-lastpost-empty{font-size:.78rem;color:var(--cheshire-text-faint,#999);text-align:right;white-space:nowrap}
.cheshire-lastpost a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-lastpost a:hover{text-decoration:underline}
.cheshire-lastpost-jump{display:inline-block;margin-left:.3rem;text-decoration:none;opacity:.7;font-size:.95em}
.cheshire-lastpost-jump:hover{opacity:1;text-decoration:none}
/* Last-post block in two lines (date+time on top, below "by X" + jump icon), the name is truncated with "..." instead of running out of the
   border. The avatar (.cheshire-lastpost-avatar) only appears on smartphones (see media query). Applies to all themes (base layer); the themes
   only set grid/visibility in their media query. */
.cheshire-lastpost{display:inline-flex;align-items:center;gap:.45rem;max-width:100%;vertical-align:middle}
.cheshire-lastpost-avatar{display:none;flex:0 0 auto;width:1.9rem;height:1.9rem;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#666);font-size:.8rem;font-weight:600;line-height:1}
.cheshire-lastpost-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.cheshire-lastpost-text{display:flex;flex-direction:column;align-items:flex-end;min-width:0;line-height:1.35}
.cheshire-lastpost-when{white-space:nowrap}
.cheshire-lastpost-by{display:flex;align-items:baseline;gap:.25rem;max-width:11rem;min-width:0}
.cheshire-lastpost-von{flex:0 0 auto}
.cheshire-lastpost-user{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-lastpost-by .cheshire-lastpost-jump{flex:0 0 auto;margin-left:0}
.cheshire-forum-stats,.cheshire-thread-stats{flex-direction:column;align-items:flex-end;gap:.2rem}
.cheshire-mini-thread-lastpost .cheshire-lastpost-text{flex-direction:row;align-items:baseline;gap:.4rem}
.cheshire-mini-thread-lastpost .cheshire-lastpost-by{max-width:9rem}
/* Status badges (new/solved/closed) are output a second time to the right of the title for smartphones (-title-badges); on desktop they stay in
   the meta column and the copy is hidden. */
.cheshire-forum-title-badges,.cheshire-thread-title-badges{display:none}
@media (max-width:899px){
    /* 0.1.706: smartphone + tablet (below 900px). Smartphone layout: row 1 = expand button, icon, title + status badges on the right; row 2 = counter badges (threads/posts) across the full
       width; row 3 = avatar + date + "by name" (wraps only when space is short, name truncated with "..."). */
    .cheshire-forum-row{grid-template-columns:auto 2rem minmax(0,1fr);align-items:start;row-gap:.4rem}
    .cheshire-forum-expand{grid-column:1;grid-row:1}
    .cheshire-forum-icon{grid-column:2;grid-row:1}
    .cheshire-forum-info{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:.15rem .4rem;min-width:0}
    .cheshire-forum-info .cheshire-forum-name{flex:1 1 0;min-width:0}
    .cheshire-forum-info .cheshire-forum-description{flex:0 0 100%}
    .cheshire-forum-title-badges,.cheshire-thread-title-badges{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;flex:0 0 auto}
    .cheshire-forum-status-badges,.cheshire-thread-status-badges{display:none}
    .cheshire-forum-meta{grid-column:1 / -1;grid-row:2;display:block;min-width:0}
    .cheshire-forum-stats{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:.35rem}
    .cheshire-thread-stats{align-items:flex-start;gap:.1rem}
    .cheshire-thread-stats .cheshire-thread-badge{background:none;border:0;padding:0;font-size:.8rem;color:var(--cheshire-text-muted,#666);white-space:nowrap}
    .cheshire-forum-lastpost{display:block;grid-column:1 / -1;grid-row:3;text-align:left;min-width:0;white-space:normal}
    /* Mini thread list: 3 rows per thread -- title (one line, "..."), badges, last post */
    .cheshire-forum-mini-threads{padding-left:.5rem}
    .cheshire-mini-thread-row{display:block;padding:.4rem 0;border-bottom:1px solid var(--cheshire-border,#eee)}
    .cheshire-mini-thread-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .cheshire-mini-thread-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin-top:.25rem}
    .cheshire-mini-thread-lastpost{display:block;margin:.3rem 0 0;white-space:normal;text-align:left}
    .cheshire-mini-thread-lastpost a{font-weight:400}
    .cheshire-mini-thread-lastpost .cheshire-lastpost-by{max-width:100%}
    .cheshire-thread-row{grid-template-columns:minmax(5.5rem,1fr) auto}
    .cheshire-thread-main{grid-column:1 / -1;grid-row:1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:.15rem .4rem;min-width:0}
    .cheshire-thread-main .cheshire-thread-title{flex:1 1 0;min-width:0}
    .cheshire-thread-main .cheshire-thread-forum{flex:0 0 100%}
    .cheshire-thread-meta{grid-column:1;grid-row:2;display:block;min-width:0}
    .cheshire-thread-lastpost{display:block;grid-column:2;grid-row:2;text-align:left;white-space:normal;min-width:0}
    .cheshire-lastpost-avatar{display:inline-flex}
    .cheshire-lastpost-text{align-items:flex-start}
    .cheshire-lastpost-by{max-width:none}
    /* Forum row + mini thread list: date and "by name" side by side when there is room; otherwise "by name" below */
    .cheshire-forum-lastpost .cheshire-lastpost-text,.cheshire-mini-thread-lastpost .cheshire-lastpost-text{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 .45rem}
    .cheshire-forum-lastpost .cheshire-lastpost-by,.cheshire-mini-thread-lastpost .cheshire-lastpost-by{max-width:100%}
}

/* === Pagination profile override === */
.cheshire-pagination-pref{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;margin:.8rem 0 1.2rem;padding:.7rem 1rem;background:var(--cheshire-surface-alt,#f4f6f8);border-radius:6px}
.cheshire-pagination-pref select{padding:.3rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px}

/* === Consent / legal checkboxes ===
   !important on layout props: the WBCE flat theme's global form CSS applies its own label/input[checkbox] rules (block labels, full-width
   inputs) that otherwise break this layout. Used for registration consent and the upload copyright confirmation. */
.cheshire-consent-box{margin:1rem 0;padding:.8rem 1rem;background:var(--cheshire-surface-alt,#f8f9fa);border:1px solid var(--cheshire-border-strong,#dee2e6);border-radius:6px}
.cheshire-consent-item{display:flex!important;align-items:flex-start;gap:.5rem;margin-bottom:.5rem;cursor:pointer;font-weight:400;line-height:1.4}
.cheshire-consent-item:last-child{margin-bottom:0}
.cheshire-consent-item input[type="checkbox"]{margin-top:.2rem;flex-shrink:0;width:auto!important;min-width:16px;height:16px}
.cheshire-consent-item span{flex:1 1 auto}
@media (max-width:480px){
    .cheshire-consent-item{gap:.4rem;font-size:.88rem}
}

/* === Post === */
.cheshire-post{border:1px solid var(--cheshire-border,#eee);border-radius:6px;margin-bottom:1rem;overflow:hidden}
.cheshire-post-author{background:var(--cheshire-surface-alt,#f5f5f5);padding:.5rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);display:flex;align-items:flex-start;gap:.5rem}
/* Own avatar column on the left of the post head, first flex item before checkbox/author block -- balances the head row visually against the
   moderation action bar on the right. Shrunk (not hidden) on narrow screens, so the row stays readable as a unit. */
.cheshire-post-avatar{flex:0 0 auto;display:block;line-height:0}
.cheshire-post-avatar img{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block;border:1px solid var(--cheshire-border,#ddd)}
@media (max-width:480px){.cheshire-post-avatar img{width:28px;height:28px}}
/* Name+role vs. time/posts link in separate rows instead of one flat row. */
.cheshire-post-author-block{display:flex;flex-direction:column;gap:.15rem}
.cheshire-post-author-name{font-size:.88rem;font-weight:600;display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.cheshire-post-author-meta{font-size:.76rem;color:var(--cheshire-text-faint,#999);display:flex;align-items:center;gap:.35rem}
.cheshire-post-author-meta .cheshire-btn-userposts{color:inherit;text-decoration:none}
.cheshire-post-author-meta .cheshire-btn-userposts:hover{text-decoration:underline}
.cheshire-meta-dot{opacity:.6}
/* Managing actions (edit/delete/solution/edited notice/add-on tools) right-aligned in the same row as author/date -- "top right in the post row".
   Basic actions (like/quote/reply/report) stay in .cheshire-post-actions at the bottom. */
.cheshire-post-actions-top{margin-left:auto;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;flex-shrink:0}
/* Explicit base tone for the post text, so the gradation head (surface-alt, grey) -> content (surface, white) -> nested blocks
   attachments/signature/support (surface-alt, grey, see cheshire-content-block) is readable at a glance -- previously the content was only
   implicitly white (no own background), which blurred the border to the head more than necessary. */
.cheshire-post-body{padding:.8rem;background:var(--cheshire-surface,#fff)}
/* Safety net for images inserted directly into the post text (TipTap/Markdown/ITG), see modern.css for the rationale. */
.cheshire-post-body img{max-width:100%;height:auto}
/* Layout for real quotes in the post text -- BBCode regex AND TTE (cheshire.js buildQuoteBlockquoteHtml()) both render <blockquote data-author>.
   ::before shows the author as a label, no extra JS/markup needed. */
.cheshire-post-body blockquote{border-left:3px solid var(--cheshire-accent,#3D6B8C);margin:.6rem 0;padding:.5rem .9rem;background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#555);border-radius:0 4px 4px 0}
.cheshire-post-body blockquote[data-author]::before{content:"Zitat von " attr(data-author) ":";display:block;font-weight:600;font-size:.82rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));margin-bottom:.3rem}
/* Compact reference [quoteref=ID] from the 2nd quote on (Parser::renderQuoteRefTag()): author + jump link visible, full content as own CSS
   hover popup instead of a title attribute (multi-line/stylable). The badge must be "framed" like the full quote -- hence block-level with
   border bar instead of an inline pill. [replyref=ID:N] (Parser::renderReplyRefTag()) uses the same classes, only with an own border tone via
   .cheshire-replyref-badge. */
.cheshire-quoteref-badge{position:relative;display:block;margin:.6rem 0;padding:.5rem .9rem;background:var(--cheshire-surface-alt,#f0f4f8);border-left:3px solid var(--cheshire-accent,#3D6B8C);border-radius:0 4px 4px 0}
.cheshire-replyref-badge{border-left-color:var(--cheshire-primary,#2E4057)}
.cheshire-quoteref-jump{display:inline-flex;align-items:center;gap:.3rem;font-size:.82rem;font-weight:600;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none}
.cheshire-quoteref-jump:hover{text-decoration:underline}
.cheshire-quoteref-author-deleted{font-style:italic;color:var(--cheshire-text-muted,#666)}
.cheshire-quoteref-unavailable{display:block;margin:.6rem 0;padding:.5rem .9rem;font-size:.82rem;font-style:italic;color:var(--cheshire-text-muted,#666);background:var(--cheshire-surface-alt,#f0f0f0);border-left:3px dashed var(--cheshire-border-strong,#c5d5e8);border-radius:0 4px 4px 0}
.cheshire-quoteref-popup{visibility:hidden;opacity:0;position:absolute;left:0;bottom:calc(100% + .4rem);z-index:20;width:280px;max-width:80vw;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#c5d5e8);border-radius:6px;box-shadow:var(--cheshire-shadow-sm,0 4px 16px rgba(0,0,0,.15));padding:.6rem .8rem;font-size:.82rem;line-height:1.4;color:var(--cheshire-text,#333);transition:opacity .12s ease}
.cheshire-quoteref-badge:hover .cheshire-quoteref-popup,.cheshire-quoteref-badge:focus-within .cheshire-quoteref-popup{visibility:visible;opacity:1}
.cheshire-post-actions{padding:.4rem .8rem;border-top:1px solid var(--cheshire-border,#eee);font-size:.82rem}
/* Move checkbox as a small chip instead of a bare inline element (see modern.css/ThreadController.php). */
.cheshire-move-chip{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;margin-right:.5rem;border:1px solid var(--cheshire-border-strong,#c5d5e8);border-radius:6px;background:var(--cheshire-surface,#fff);vertical-align:middle;cursor:pointer}
.cheshire-move-chip:hover{background:var(--cheshire-surface-alt,#f0f4f8)}
.cheshire-move-checkbox{margin:0;cursor:pointer}
.cheshire-btn-like,.cheshire-btn-quote,.cheshire-btn-reply,.cheshire-btn-copy{background:var(--cheshire-surface-alt,#f0f4f8);border:1px solid var(--cheshire-border-strong,#c5d5e8);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.2rem .6rem;border-radius:4px;cursor:pointer;font-size:.82rem;margin-right:.3rem}
.cheshire-btn-like:hover,.cheshire-btn-quote:hover,.cheshire-btn-reply:hover,.cheshire-btn-copy:hover{background:var(--cheshire-surface-alt,#e0eaf4)}
/* Display only (no button) for the like count on the own post -- no hover/cursor pointer, so it is clear nothing is clickable here. */
.cheshire-like-count-static{display:inline-block;color:var(--cheshire-text-muted,#667);padding:.2rem .6rem;font-size:.82rem;margin-right:.3rem}
/* Post export: export button + dropdown menu (TXT/Markdown/PDF) */
.cheshire-export-wrap{position:relative;display:inline-block}
.cheshire-btn-export{background:var(--cheshire-surface-alt,#f0f4f8);border:1px solid var(--cheshire-border-strong,#c5d5e8);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.2rem .6rem;border-radius:4px;cursor:pointer;font-size:.82rem;margin-right:.3rem}
.cheshire-btn-export:hover{background:var(--cheshire-surface-alt,#e0eaf4)}
/* Opens UPWARDS (bottom instead of top) -- .cheshire-post has overflow:hidden (rounded corners), the action bar sits right at the bottom edge, so
   a downward menu would be cut off there (same logic as .cheshire-quoteref-popup further up in this file) */
.cheshire-export-menu{display:none;position:absolute;left:0;bottom:calc(100% + .3rem);z-index:20;min-width:160px;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#c5d5e8);border-radius:6px;box-shadow:var(--cheshire-shadow-sm,0 4px 16px rgba(0,0,0,.15));padding:.3rem 0}
.cheshire-export-menu.cheshire-export-open{display:block}
/* Invisible bridge over the gap button/menu, so the menu stays open when moving the mouse to it (no time delay) */
.cheshire-export-menu::after{content:"";position:absolute;left:0;right:0;top:100%;height:.5rem}
.cheshire-export-menu a{display:block;padding:.35rem .8rem;font-size:.82rem;color:var(--cheshire-text,#333);text-decoration:none}
.cheshire-export-menu .cheshire-btn-copy{display:block;padding:.35rem .8rem;font-size:.82rem;color:var(--cheshire-text,#333);text-decoration:none;background:none;border:0;width:100%;text-align:left;cursor:pointer;margin:0;font-family:inherit}
.cheshire-export-menu a:hover{background:var(--cheshire-surface-alt,#e0eaf4)}
/* Short text feedback on the quote button (cheshire.js flashQuoteFeedback) */
.cheshire-quote-flash{background:var(--cheshire-success-bg,#dff5e1);border-color:var(--cheshire-success,#3a9d4f);color:var(--cheshire-success,#2f7d40)}

/* === Quick reply === */
.cheshire-quick-reply{margin-top:1.5rem}
.cheshire-quick-reply textarea{width:100%;padding:.6rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:6px;min-height:80px;font-family:inherit}
.cheshire-quick-reply .cheshire-reply-actions button{margin-top:.4rem;padding:.5rem 1rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}

/* === Guest notice === */
.cheshire-guest-notice{background:var(--cheshire-info-bg,#EBF5FB);border:1px solid var(--cheshire-info-border,#AED6F1);border-radius:5px;padding:.7rem;margin-top:.5rem;font-size:.88rem}
.cheshire-guest-notice a{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-weight:600}

/* === Auth forms === */
.cheshire-auth-form{max-width:400px;margin:2rem auto}
/* The signature form uses .cheshire-auth-form (login/registration look), but with the editor toolbar (TipTap/BBCode) the fixed 400px are far too
   narrow -- modifier class instead of changing the base width for login/register. */
.cheshire-form-wide{max-width:700px}
.cheshire-auth-form h1{margin-bottom:1rem}
.cheshire-auth-form label{display:block;margin:.6rem 0 .2rem;font-size:.88rem;font-weight:600}
.cheshire-auth-form input{width:100%;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:5px}
.cheshire-auth-form button{margin-top:.8rem;padding:.6rem 1.2rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer;font-weight:600}
#cheshire-pw-strength{display:none !important;margin:.4rem 0 .6rem;padding:.5rem .7rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#ddd);border-radius:4px;font-size:.88rem;line-height:1.5}
#cheshire-pw-strength.active{display:block !important}

/* Every setting gets its own titled box instead of running one after the other without structure -- grid wrapper for the 3 short forms
   (frequency/pagination/editor), stacked full-width box for the subscription list below (see subscriptions.htt, SubscriptionController::index()). */
.cheshire-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1rem 0}
.cheshire-settings-box{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:1rem 1.2rem}
.cheshire-settings-box h2{margin:0 0 .6rem;font-size:1.05rem}
.cheshire-settings-box label{display:block;margin:.5rem 0 .2rem;font-size:.9rem}
.cheshire-settings-box button{margin-top:.6rem;padding:.4rem 1rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer;font-weight:600}
.cheshire-error{background:var(--cheshire-danger-bg,#FDEDEC);border:1px solid var(--cheshire-danger-border,#C0392B);border-radius:5px;padding:.6rem;margin:.6rem 0;font-size:.88rem;color:var(--cheshire-danger-text,#7B241C)}
/* DMCA form */
.cheshire-dmca-intro{color:var(--cheshire-text-muted,#555);font-size:.9rem;max-width:600px;margin-bottom:1rem}
.cheshire-dmca-success{background:var(--cheshire-success-bg,#EAFAF1);border:1px solid var(--cheshire-success-border,#27AE60);border-radius:5px;padding:.8rem 1rem;color:var(--cheshire-success-text,#1E8449)}

/* === Pagination === */
.cheshire-pagination{margin:1rem 0;display:flex;gap:.4rem;flex-wrap:wrap}
.cheshire-pagination a{padding:.3rem .7rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:4px;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none;font-size:.88rem}
.cheshire-pagination a.active,.cheshire-pagination a:hover{background:var(--cheshire-primary,#2E4057);color:#fff;border-color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}

/* === Tag cloud ===
   Tier classes t1..t5 come from TagCloud::withTiers() (Services/TagCloud.php), replacing the old hard-coded inline font-size computation in the
   logic code. */
.cheshire-tag-cloud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;line-height:1.6;padding:.7rem 0}
/* Chip design: the counter inherits the outline/text color of the chip (see above), instead of the old fixed light text on a solid fill. */
.cheshire-tag-count{font-size:.75em;color:inherit;opacity:.75}
.cheshire-tag{transition:transform .12s ease,opacity .12s ease}
.cheshire-tag:hover{transform:scale(1.08);opacity:.92}
.cheshire-tag-t1{font-size:.68rem;opacity:.7}
.cheshire-tag-t2{font-size:.8rem;opacity:.8}
.cheshire-tag-t3{font-size:.95rem;opacity:.9;font-weight:600}
.cheshire-tag-t4{font-size:1.12rem;opacity:.96;font-weight:600}
.cheshire-tag-t5{font-size:1.35rem;opacity:1;font-weight:700}

/* === Delete button === */
.cheshire-btn-delete{background:none;border:1px solid var(--cheshire-danger-border,#C0392B);color:var(--cheshire-danger-text,#C0392B);border-radius:4px;padding:.2rem .5rem;cursor:pointer;font-size:.8rem}
.cheshire-btn-delete:hover{background:#C0392B;color:#fff}
.cheshire-thread-actions{display:inline-block}

/* === Search === */
.cheshire-search-form{display:flex;gap:.5rem;margin:1rem 0}
.cheshire-search-form input{flex:1;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:5px}
.cheshire-search-form button{padding:.5rem 1rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}
.cheshire-search-result{padding:.7rem 0;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-search-type{background:var(--cheshire-accent,#3D6B8C);color:#fff;font-size:.72rem;padding:.1rem .4rem;border-radius:3px;margin-right:.4rem}
.cheshire-search-forum{font-size:.82rem;color:var(--cheshire-text-muted,#666)}
.cheshire-search-excerpt{font-size:.85rem;color:var(--cheshire-text-muted,#666);margin:.3rem 0 0}
/* "Did you mean...?" fallback search (3-stage search) */
.cheshire-search-suggestion{font-size:.9rem;color:var(--cheshire-text-muted,#666);margin:.5rem 0}
.cheshire-search-suggestion a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C))}

/* Forum/category badges: show on tag/thread-type/search result lists which forum/category a hit comes from -- same pill pattern as
   .cheshire-search-type/.cheshire-thread-badge, only neutral instead of the accent color, since they show origin instead of result type. No own icon
   per forum/category (no icon column in the models) -- placeholder 📁/🗂. */
.cheshire-badge-forum,.cheshire-badge-category{display:inline-block;font-size:.75rem;padding:.1rem .45rem;border-radius:10px;background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#666);margin-right:.3rem;white-space:nowrap}
.cheshire-badge-forum a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-badge-forum a:hover{text-decoration:underline}

/* === Edit button + timestamp === */
.cheshire-btn-edit{background:none;border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));border-radius:4px;padding:.2rem .5rem;cursor:pointer;font-size:.8rem;text-decoration:none;margin-right:.3rem}
.cheshire-btn-edit:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-edited{font-size:.75rem;color:var(--cheshire-text-faint,#aaa);margin-left:.5rem;font-style:italic}
/* "Edited" notice as an own row below the author meta block instead of between the action buttons -- no indent. */
.cheshire-post-edited-line{margin-top:.15rem}
.cheshire-post-edited-line .cheshire-edited{margin-left:0}
/* Content display: see ContentDisplay.php */
.cheshire-post-date{font-size:.78rem;color:var(--cheshire-text-faint,#999);font-weight:400}
.cheshire-post-rank-badge{color:#fff;font-size:.68rem;font-weight:700;padding:.05rem .4rem;border-radius:3px;white-space:nowrap}

/* === Post subject === */
.cheshire-post-subject{font-weight:600;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.3rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);font-size:.9rem}
.cheshire-reply-subject{width:100%;padding:.4rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:5px;margin-bottom:.4rem;box-sizing:border-box}

/* === Report button === */
.cheshire-btn-report{background:none;border:1px solid var(--cheshire-warning-border,#E67E22);color:#E67E22;border-radius:4px;padding:.2rem .5rem;font-size:.8rem;text-decoration:none;margin-left:.3rem}
.cheshire-btn-report:hover{background:#E67E22;color:#fff}

/* === Solution marking === */
.cheshire-btn-solve{background:none;border:1px solid var(--cheshire-success-border,#27AE60);color:var(--cheshire-success-text,#27AE60);border-radius:4px;padding:.2rem .5rem;cursor:pointer;font-size:.8rem;margin-left:.3rem}
.cheshire-btn-solve:hover{background:#27AE60;color:#fff}
.cheshire-badge-solution{background:#27AE60;color:#fff;font-size:.78rem;padding:.2rem .5rem;border-radius:4px;margin-left:.3rem}

/* === Signature === */
/* Own border/spacing removed -- now part of <details class="cheshire-content-block">, see Signature::render(). */
.cheshire-signature{font-size:.85rem;color:var(--cheshire-text-muted,#666)}
.cheshire-signature img{max-height:var(--cheshire-sig-img-h,80px);max-width:min(100%,var(--cheshire-sig-img-w,100%));vertical-align:middle}

/* "+ New thread" already had the class .cheshire-btn-new in the markup (ForumController.php), but none of the 3 theme files had a CSS rule for
   it -- it ran as a plain unstyled text link. Now aligned with the existing button pattern (.cheshire-btn-primary/.cheshire-btn-subscribe: full
   accent color, white text, hover change). */
.cheshire-btn-new{display:inline-block;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;padding:.4rem 1rem;font-size:.85rem;text-decoration:none;cursor:pointer}
.cheshire-btn-new:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
/* Cancel link next to the submit button, uniform in new/edit. */
.cheshire-btn-cancel{display:inline-block;padding:.4rem 1rem;font-size:.85rem;border-radius:5px;text-decoration:none;cursor:pointer;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));border:1px solid var(--cheshire-border-strong,#c5d5e8);background:var(--cheshire-surface-alt,#f0f4f8)}
.cheshire-btn-cancel:hover{background:var(--cheshire-surface-alt,#e0eaf4)}
/* Dropzone error text as a fixed row below the file instead of a tooltip, so the remove link is never covered. */
/* Specificity + !important, since libs/dropzone/dropzone.css (loaded later) would otherwise place the message again as a floating tooltip over the
   remove link. Own row with a clearly visible 2px red border. */
.cheshire-dropzone.dropzone .dz-preview:not(.dz-error) .dz-error-message,.cheshire-dropzone.dropzone .dz-preview .dz-error-message:empty{display:none!important}
.cheshire-dropzone.dropzone .dz-preview.dz-error .dz-error-message{position:static!important;opacity:1!important;display:block;pointer-events:auto;top:auto!important;left:auto!important;width:auto!important;min-width:0;margin:.4rem 0 0;padding:.3rem .5rem;font-size:.8rem;line-height:1.3;color:#8a1f11;background:#fdecea;border:2px solid #c0392b;border-radius:4px;text-align:left;white-space:normal;word-break:break-word;box-sizing:border-box}
.cheshire-dropzone.dropzone .dz-preview .dz-error-message:after{display:none!important}
.cheshire-dropzone.dropzone .dz-preview .dz-remove{position:relative;z-index:5;display:block;margin-top:.4rem;text-align:center}
.cheshire-dropzone.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1!important}
.cheshire-wrap.cheshire-dark .cheshire-dropzone.dropzone .dz-preview .dz-error-message{color:#ffb4a8;background:rgba(192,57,43,.18)}

/* === Social media profile links === */
/* Switched from a pale chip look (text on light background) to the real button pattern, see .cheshire-btn-new above -- same rationale. */
.cheshire-social-links{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}
.cheshire-social-item{background:var(--cheshire-primary,#2E4057);border-radius:5px;font-size:.85rem;overflow:hidden}
.cheshire-social-item a{color:#fff;text-decoration:none;display:block;padding:.3rem .7rem}
.cheshire-social-item a:hover{background:var(--cheshire-accent,#3D6B8C)}

/* === Support links: donations/wishlists/vouchers === */
.cheshire-support-group{margin:.6rem 0}
.cheshire-support-group-title{margin:0 0 .3rem;font-size:.9rem;color:var(--cheshire-text-muted,#555)}
.cheshire-support-links{display:flex;flex-wrap:wrap;gap:.5rem}
/* Same switch as .cheshire-social-item. */
.cheshire-support-item{background:var(--cheshire-primary,#2E4057);color:#fff;padding:.3rem .7rem;border-radius:5px;font-size:.85rem;text-decoration:none;display:inline-block}
.cheshire-support-item:hover{background:var(--cheshire-accent,#3D6B8C)}
.cheshire-support-edit-list{list-style:none;margin:0 0 1rem;padding:0}
.cheshire-support-edit-row{padding:.4rem 0;border-bottom:1px solid var(--cheshire-border,#e0e0e0)}

/* === Community business card === */
.cheshire-card{display:flex;gap:1rem;align-items:flex-start;margin:1rem 0}
.cheshire-avatar-placeholder{flex-shrink:0;width:72px;height:72px;border-radius:50%;background:var(--cheshire-primary,#2E4057);color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:1.8rem;font-weight:700}
.cheshire-card-main h1{margin:0 0 .2rem}
.cheshire-card-meta{margin:.15rem 0;color:var(--cheshire-text-muted,#555);font-size:.9rem}
.cheshire-card-score{font-weight:700;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-rating{margin-top:.4rem;font-size:.9rem}
.cheshire-rating-emoji{font-size:1.3rem;vertical-align:middle}
.cheshire-rate-form{display:flex;align-items:center;gap:.4rem;margin-top:.4rem;flex-wrap:wrap}
.cheshire-rate-form label{display:inline-flex;align-items:center;gap:.15rem;font-size:.85rem}
.cheshire-rating-choice{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;border:2px solid transparent;border-radius:50%;cursor:pointer}
.cheshire-rating-choice:hover{background:var(--cheshire-surface-alt,#f5f5f5)}
.cheshire-rating-radio{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}
.cheshire-rating-emoji-pick{font-size:1.3rem;line-height:1}
.cheshire-rating-choice:has(.cheshire-rating-radio:checked){border-color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));background:var(--cheshire-surface-alt,#eef2f6)}
.cheshire-rating-radio:focus-visible ~ .cheshire-rating-emoji-pick{outline:2px solid var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));outline-offset:2px;border-radius:50%}
.cheshire-rate-submit{display:none}
.cheshire-bio{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.6rem .9rem;margin:.6rem 0;font-size:.9rem}
.cheshire-card-edit{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.8rem 1rem;margin:.6rem 0}
.cheshire-card-edit textarea{width:100%;max-width:600px;padding:.4rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px}
.cheshire-avatar-edit-form{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.6rem 0;font-size:.85rem}
.cheshire-avatar-rules-confirm{display:flex!important;align-items:flex-start;gap:.5rem;flex-basis:100%;cursor:pointer;font-weight:400;line-height:1.4;font-size:.85rem}
.cheshire-avatar-rules-confirm input[type="checkbox"]{margin-top:.2rem;flex-shrink:0;width:auto!important;min-width:16px;height:16px}
.cheshire-help-text{font-size:.78rem;color:var(--cheshire-text-faint,#888);margin:.3rem 0 .8rem}
.cheshire-tab-toggles{display:flex;flex-direction:column;gap:.2rem;margin:.5rem 0;font-size:.85rem}
/* Profile block order via CSS "order", see ContentDisplay::profileBlockOrder() + user_profile.htt. 2-column grid instead of 1 column for better
   use of space -- the grid respects "order" like flexbox, so the drag & drop order stays usable. Tabs/guestbook span both columns via
   .cheshire-profile-block-full. */
.cheshire-profile-blocks{display:grid;grid-template-columns:1.3fr 1fr;gap:1.2rem;align-items:start}
.cheshire-profile-block-full{grid-column:1/-1}
@media (max-width:768px){
    .cheshire-profile-blocks{grid-template-columns:1fr}
}
/* Uniform buttons instead of single text links -- .cheshire-profile-link-btn is the common class for <a>, <button> (in forms) and add-on buttons
   from the hook "user.profile_links". */
.cheshire-card-links{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}
.cheshire-profile-link-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .8rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:6px;background:var(--cheshire-surface,#fff);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.82rem;line-height:1.3;text-decoration:none;cursor:pointer}
.cheshire-profile-link-btn:hover{background:var(--cheshire-surface-alt,#f0f4f8)}
.cheshire-demo-link{opacity:.55;cursor:not-allowed}
.cheshire-demo-link:hover{background:var(--cheshire-surface,#fff)}
.cheshire-expertise{margin:1rem 0}
.cheshire-expertise-row{display:grid;grid-template-columns:120px 1fr 40px;align-items:center;gap:.6rem;margin:.3rem 0;font-size:.85rem}
.cheshire-expertise-bar{background:#eee;border-radius:4px;height:8px;overflow:hidden}
.cheshire-expertise-bar div{background:var(--cheshire-primary,#2E4057);height:100%}
.cheshire-profile-tabs{margin-top:1.5rem}
.cheshire-tab-nav{display:flex;flex-wrap:wrap;gap:.4rem;border-bottom:1px solid var(--cheshire-border-strong,#e2e2e2);margin-bottom:.8rem;padding-bottom:.4rem}
.cheshire-tab-btn{background:var(--cheshire-surface-alt,#f0f0f0);border:none;padding:.45rem .9rem;border-radius:5px 5px 0 0;cursor:pointer;font-size:.88rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-tab-btn.active{background:var(--cheshire-primary,#2E4057);color:#fff}
.cheshire-tab-panel{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.8rem 1rem}
.cheshire-tab-panel h4{margin:.2rem 0 .3rem;font-size:.88rem;color:var(--cheshire-text-muted,#555)}
.cheshire-subtab-nav{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.6rem}
.cheshire-subtab-btn{background:var(--cheshire-surface-alt,#eef1f4);border:none;padding:.3rem .7rem;border-radius:4px;cursor:pointer;font-size:.8rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-subtab-btn.active{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-more-note{color:var(--cheshire-text-faint,#999);font-size:.78rem;margin:.4rem 0 0}
.cheshire-activity-list{list-style:none;margin:0;padding:0}
.cheshire-activity-list li{padding:.2rem 0;font-size:.87rem;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-activity-list li:last-child{border-bottom:none}
.cheshire-status-badge{background:var(--cheshire-surface-alt,#eef2f6);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.05rem .5rem;border-radius:3px;font-size:.75rem;margin-left:.3rem}
.cheshire-empty{color:var(--cheshire-text-faint,#999);font-size:.85rem}

/* === TOP lists === */
.cheshire-top-periods{display:flex;flex-wrap:wrap;gap:.4rem;margin:.8rem 0}
.cheshire-top-period{padding:.35rem .8rem;border-radius:5px;background:var(--cheshire-surface-alt,#f0f0f0);text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.85rem}
.cheshire-top-period.active{background:var(--cheshire-primary,#2E4057);color:#fff}
.cheshire-top-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.cheshire-top-section{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.8rem 1rem}
.cheshire-top-section h3{margin:0 0 .5rem;font-size:1rem}
.cheshire-top-list{list-style:none;margin:0;padding:0}
.cheshire-top-list li{display:flex;justify-content:space-between;padding:.25rem 0;font-size:.88rem;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-top-list li:last-child{border-bottom:none}
.cheshire-top-rank{color:var(--cheshire-text-faint,#999);margin-right:.3rem}
.cheshire-top-count{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-weight:600}

/* === Statistics & WIO === */
.cheshire-stats-section{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.8rem 1rem;margin:1rem 0}
.cheshire-stats-section h3{margin:0 0 .5rem;font-size:1rem}
.cheshire-stats-totals{display:flex;flex-wrap:wrap;gap:.8rem}
.cheshire-stats-badge{display:flex;flex-direction:column;align-items:center;min-width:90px;padding:.5rem .8rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border,#eee);border-radius:6px}
.cheshire-stats-badge strong{font-size:1.3rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-stats-badge span{font-size:.78rem;color:var(--cheshire-text-faint,#999)}
.cheshire-stats-newest{margin:.7rem 0 0;font-size:.88rem}
.cheshire-stats-record{margin:0;font-size:.9rem}
.cheshire-wio-group{margin-bottom:.9rem}
.cheshire-wio-group:last-child{margin-bottom:0}
.cheshire-wio-group h4{margin:0 0 .3rem;font-size:.9rem;color:var(--cheshire-text-faint,#999)}
.cheshire-wio-list{list-style:none;margin:0;padding:0}
.cheshire-wio-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.3rem 0;font-size:.85rem;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-wio-list li:last-child{border-bottom:none}
.cheshire-wio-location{color:var(--cheshire-text-faint,#999);font-size:.78rem}
.cheshire-wio-ip{margin-left:auto;font-family:monospace;font-size:.78rem;color:var(--cheshire-text-faint,#999)}
/* Ping button/checkbox/group start CSS removed -- pinging now works via the "Who is online" widget on the support chat staff page
   (supportchat.css .sc-online-*), WIO only shows presence. */

/* === Slots (ad/announcement areas) === */
.cheshire-slot{margin:.8rem 0;text-align:center}
.cheshire-slot-banner-img{max-width:100%;height:auto;border-radius:6px}
.cheshire-slot-wbce-iframe{width:100%;min-height:250px;border:1px solid var(--cheshire-border,#eee);border-radius:6px}
.cheshire-slot-code,.cheshire-slot-html{font-size:.85rem;color:var(--cheshire-text-faint,#999)}

/* === Portal (3-zone grid) ===
   Left narrow / middle wide / right narrow, like a classic portal layout. Per-user drag & drop + arrow buttons between/within the zones
   (cheshire.js). */
.cheshire-portal-grid{display:grid;grid-template-columns:1fr 2fr 1fr;gap:1rem;margin-top:1rem;align-items:start}
.cheshire-portal-col{display:flex;flex-direction:column;gap:1rem;min-width:0}
/* The outline was too weak (--cheshire-border, very light) -- widgets visually ran into each other. Stronger border tone like
   .cheshire-content-block, same contrast principle. */
.cheshire-portal-widget{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border-strong,#d5d9dd);border-radius:8px;padding:.8rem 1rem;cursor:grab}
.cheshire-portal-widget h3{margin:0 0 .5rem;font-size:1rem}
.cheshire-portal-placeholder{color:var(--cheshire-text-faint,#999);font-size:.85rem;margin:0}
/* Real widget contents (subscription list/TOP lists/score) instead of placeholders -- .cheshire-top-list is already styled above and reused 1:1,
   only the new classes here. */
.cheshire-portal-list{list-style:none;margin:0;padding:0}
.cheshire-portal-list li{padding:.25rem 0;font-size:.88rem;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-portal-list li:last-child{border-bottom:none}
.cheshire-portal-list-type{color:var(--cheshire-text-faint,#999);font-size:.78rem;margin-right:.3rem}
.cheshire-portal-more{display:inline-block;margin-top:.6rem;font-size:.82rem}
.cheshire-portal-score{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.cheshire-portal-score-rank{font-weight:600}
.cheshire-portal-score-value{font-size:1.3rem;font-weight:700;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-portal-score-units{margin-top:.3rem;color:var(--cheshire-text-faint,#999);font-size:.8rem}
/* "Latest posts" widget shows full-text excerpts instead of titles only -- own scrollable inner area, so the box keeps a fixed maximum height
   instead of blowing up the whole portal grid. */
.cheshire-portal-widget-scroll{max-height:360px;overflow-y:auto}
.cheshire-portal-list-posts li{border-bottom:1px solid var(--cheshire-border,#eee);padding:.5rem 0}
.cheshire-portal-list-posts li:last-child{border-bottom:none}
.cheshire-portal-post-title{font-weight:600;font-size:.88rem}
.cheshire-portal-post-meta{color:var(--cheshire-text-faint,#999);font-size:.76rem;margin:.15rem 0}
.cheshire-portal-post-excerpt{font-size:.84rem;color:var(--cheshire-text-muted,#555);line-height:1.4}
/* Configuration form of the 'custom' widget (PortalController::renderCustom()) -- simple stacked form, no own design system needed, uses the
   same text/select field base styles as other Cheshire forms. */
.cheshire-portal-custom-form{display:flex;flex-direction:column;gap:.5rem}
.cheshire-portal-custom-form label{display:flex;flex-direction:column;gap:.2rem;font-size:.82rem;color:var(--cheshire-text-muted,#555)}
.cheshire-portal-custom-form select,.cheshire-portal-custom-form input{padding:.35rem .5rem;border:1px solid var(--cheshire-border,#ccc);border-radius:4px;background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#333);font-size:.85rem}
.cheshire-portal-custom-title{margin:0 0 .4rem;font-size:.92rem;font-weight:600}
.cheshire-portal-list-meta{color:var(--cheshire-text-faint,#999);font-size:.78rem}
/* WIO portal widget: counter row above the member list, same tone as the other portal meta rows. */
.cheshire-portal-wio-counts{font-size:.82rem;color:var(--cheshire-text-faint,#999);margin:0 0 .4rem}
/* Toolbar per widget box (drag handle, arrows, hide). Arrow visibility purely via CSS -- no server/JS position knowledge needed: ▲ disappears on
   the first, ▼ on the last widget of a zone (:first-child/:last-child), ◄ in the left zone, ► in the right. */
.cheshire-portal-widget-toolbar{display:flex;align-items:center;gap:.15rem;margin:-.3rem -.3rem .4rem;opacity:.55}
.cheshire-portal-widget-toolbar:hover{opacity:1}
.cheshire-drag-handle{cursor:grab;color:var(--cheshire-text-faint,#999);padding:.1rem .3rem;font-size:.85rem}
.cheshire-portal-btn{background:none;border:none;cursor:pointer;color:var(--cheshire-text-faint,#999);font-size:.78rem;padding:.15rem .35rem;border-radius:4px;line-height:1}
.cheshire-portal-btn:hover{background:var(--cheshire-border,#eee);color:var(--cheshire-text,#333)}
.cheshire-portal-btn-hide{margin-left:auto}
.cheshire-portal-col-left .cheshire-portal-btn[data-action="left"],
.cheshire-portal-col-right .cheshire-portal-btn[data-action="right"]{display:none}
.cheshire-portal-widget:first-child .cheshire-portal-btn[data-action="up"],
.cheshire-portal-widget:last-child .cheshire-portal-btn[data-action="down"]{display:none}
.cheshire-portal-status{min-height:1.2em;font-size:.8rem;color:var(--cheshire-text-faint,#999);margin:.5rem 0 0}
.cheshire-portal-hidden{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--cheshire-border,#eee)}
.cheshire-portal-hidden h3{margin:0 0 .5rem;font-size:.9rem;color:var(--cheshire-text-faint,#999)}
.cheshire-portal-hidden-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.cheshire-portal-hidden-list li{display:flex;align-items:center;gap:.5rem;background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.3rem .6rem;font-size:.82rem}
.cheshire-portal-hidden-list .cheshire-portal-btn{background:var(--cheshire-border,#eee)}
/* Portal: layout only in edit mode */
.cheshire-portal-edit-toggle{margin:.2rem 0 .8rem;padding:.35rem .8rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:6px;background:var(--cheshire-surface,#fff);color:inherit;cursor:pointer;font-size:.85rem}
.cheshire-portal-editing .cheshire-portal-edit-toggle{background:var(--cheshire-accent,#3D6B8C);color:#fff;border-color:transparent}
.cheshire-portal:not(.cheshire-portal-editing) .cheshire-portal-widget-toolbar,
.cheshire-portal:not(.cheshire-portal-editing) .cheshire-portal-hidden,
.cheshire-portal:not(.cheshire-portal-editing) .cheshire-portal-status{display:none}
.cheshire-portal:not(.cheshire-portal-editing) .cheshire-portal-widget{cursor:auto}
.cheshire-portal-editing .cheshire-portal-widget{outline:1px dashed var(--cheshire-border-strong,#bbb);outline-offset:2px}

/* "Portal as start page" row above the grid, see PortalController::index() $home_html. */
.cheshire-portal-home{margin:.6rem 0 1rem;font-size:.85rem;color:var(--cheshire-text-muted,#666);display:flex;align-items:center;gap:.6rem}
.cheshire-portal-home button{background:none;border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));border-radius:var(--cheshire-radius,4px);padding:.3rem .8rem;font-size:.85rem;cursor:pointer}
.cheshire-portal-home button:hover{background:var(--cheshire-surface-alt,#f0f4f8)}
/* Same toggle in the forum overview (ForumController::index()), own class for somewhat more compact spacing next to .cheshire-view-toggle instead
   of the portal widget context. */
.cheshire-portal-home-inline{margin:.4rem 0 1rem;font-size:.85rem;color:var(--cheshire-text-muted,#666);display:flex;align-items:center;gap:.6rem}
.cheshire-portal-home-inline button{background:none;border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));border-radius:var(--cheshire-radius,4px);padding:.25rem .7rem;font-size:.82rem;cursor:pointer}
.cheshire-portal-home-inline button:hover{background:var(--cheshire-surface-alt,#f0f4f8)}
/* Period tabs in the trending widget, operated like .cheshire-top-periods/-period of the TOP lists. */
.cheshire-portal-tabs{display:flex;flex-wrap:wrap;gap:.3rem;margin:0 0 .6rem}
.cheshire-portal-tab{padding:.2rem .6rem;border-radius:5px;background:var(--cheshire-surface-alt,#f0f0f0);text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.78rem}
.cheshire-portal-tab.active{background:var(--cheshire-primary,#2E4057);color:#fff}
@media (max-width:700px){.cheshire-portal-grid{grid-template-columns:1fr}}

/* "Since your last visit" widget in the forum overview -- 4 category links + mark-all-read. Disappears server-side as soon as all counters are 0
   (see ForumController::sinceVisitWidgetHtml()), so no JS hide logic. Fixed 4-column grid instead of a changing short/empty inline-flex row -- all 4
   categories are ALWAYS visible as an own column (also with counter 0, see --empty/--zero modifiers below), so the widget always fills the full
   width with information. */
.cheshire-since-visit-widget{margin:.4rem 0 1rem;padding:.6rem .8rem;border:1px solid var(--cheshire-border,#ddd);border-radius:var(--cheshire-radius,4px);background:var(--cheshire-surface-alt,#f7f9fb)}
.cheshire-since-visit-title{font-weight:600;font-size:.85rem;color:var(--cheshire-text-muted,#666);display:block;margin-bottom:.4rem}
.cheshire-since-visit-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.5rem}
.cheshire-since-visit-link{display:flex;align-items:center;justify-content:center;gap:.3rem;padding:.4rem .5rem;border-radius:5px;background:var(--cheshire-surface,#fff);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none;font-size:.82rem;border:1px solid var(--cheshire-border,#ddd);text-align:center}
.cheshire-since-visit-link:hover{background:var(--cheshire-surface-alt,#eef2f6)}
.cheshire-since-visit-link--empty{opacity:.55;cursor:default}
.cheshire-since-visit-link--empty:hover{background:var(--cheshire-surface,#fff)}
.cheshire-badge-unread--zero{background:var(--cheshire-text-faint,#aaa)}
@media (max-width:640px){.cheshire-since-visit-links{grid-template-columns:1fr}}
.cheshire-since-visit-markall{margin-top:.5rem}
.cheshire-since-visit-markall button{background:var(--cheshire-primary,#2E4057);border:none;color:#fff;border-radius:var(--cheshire-radius,4px);padding:.35rem .9rem;font-size:.78rem;cursor:pointer}
.cheshire-since-visit-markall button:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-portal-home .cheshire-portal-btn,.cheshire-portal-home-inline .cheshire-portal-btn{background:var(--cheshire-primary,#2E4057);color:#fff;border-radius:5px;padding:.35rem .9rem;font-size:.8rem;line-height:1.2}
.cheshire-portal-home .cheshire-portal-btn:hover,.cheshire-portal-home-inline .cheshire-portal-btn:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
/* Empty state -- the widget stays visible at least once a day instead of disappearing completely. */
.cheshire-since-visit-widget--empty{opacity:.85}
.cheshire-since-visit-empty-text{font-size:.82rem;color:var(--cheshire-text-muted,#666);margin:0 0 .4rem}

/* === Private messages (PM) === */
.cheshire-pm-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.8rem 0}
.cheshire-pm-tab{padding:.35rem .8rem;border-radius:5px;background:var(--cheshire-surface-alt,#f0f0f0);text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.85rem}
.cheshire-pm-tab.active{background:var(--cheshire-primary,#2E4057);color:#fff}
.cheshire-pm-new{margin-left:auto;padding:.35rem .8rem;border-radius:5px;background:var(--cheshire-accent,#3D6B8C);color:#fff;text-decoration:none;font-size:.85rem}
.cheshire-pm-list{display:flex;flex-direction:column;border:1px solid var(--cheshire-border,#eee);border-radius:6px;overflow:hidden}
.cheshire-pm-row{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:.6rem;align-items:center;padding:.55rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);text-decoration:none;color:inherit;font-size:.87rem}
.cheshire-pm-row:last-child{border-bottom:none}
a.cheshire-pm-row:hover{background:var(--cheshire-surface-alt,#f9fafb)}
.cheshire-pm-unread{background:var(--cheshire-surface-alt,#eef4fa);font-weight:600}
.cheshire-pm-partner{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-pm-badge{background:#E67E22;color:#fff;border-radius:10px;padding:.05rem .45rem;font-size:.72rem;margin-left:.3rem}
.cheshire-pm-excerpt{color:var(--cheshire-text-muted,#666);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-pm-date{color:var(--cheshire-text-faint,#999);font-size:.78rem;text-align:right}
.cheshire-pm-thread{display:flex;flex-direction:column;gap:.3rem;margin:.6rem 0}
.cheshire-pm-msg{background:var(--cheshire-surface-alt,#f9fafb);border-radius:8px;padding:.35rem .7rem;max-width:90%}
.cheshire-pm-mine{align-self:flex-end;background:var(--cheshire-surface-alt,#eef4fa)}
.cheshire-pm-msg-meta{color:var(--cheshire-text-faint,#999);font-size:.75rem;margin-bottom:.1rem}
/* Subject divider row in the PM history */
.cheshire-pm-subject-divider{display:flex;align-items:center;gap:.6rem;margin:.6rem 0 .25rem;color:var(--cheshire-text-faint,#999);font-size:.8rem}
.cheshire-pm-subject-divider::before,.cheshire-pm-subject-divider::after{content:"";flex:1;border-top:1px solid var(--cheshire-border,#ddd)}
.cheshire-pm-subject-divider span{font-weight:600}
.cheshire-pm-msg-body{font-size:.9rem;line-height:1.35}.cheshire-pm-msg-body>:first-child{margin-top:0}.cheshire-pm-msg-body>:last-child{margin-bottom:0}
.cheshire-pm-reply,.cheshire-pm-compose{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem}
.cheshire-pm-reply textarea{width:100%;box-sizing:border-box;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px}
.cheshire-pm-compose label{display:flex;flex-direction:column;gap:.2rem;font-size:.85rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-pm-compose input,.cheshire-pm-compose textarea{padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;font-family:inherit;box-sizing:border-box}
.cheshire-pm-compose button:not(.ev-tb-btn),.cheshire-pm-reply button:not(.ev-tb-btn){align-self:flex-start;padding:.4rem 1.2rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}
.cheshire-pm-actions{margin-top:1rem;font-size:.85rem}
.cheshire-pm-badge-topbar{background:#E67E22;color:#fff;border-radius:10px;padding:.05rem .45rem;font-size:.72rem;margin-left:.2rem}

/* PM extensions: search, attachments, block/contacts, report, broadcast */
.cheshire-pm-search{display:flex;gap:.3rem;margin-left:auto}
.cheshire-pm-search input{padding:.35rem .6rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;font-size:.85rem}
.cheshire-pm-search button{padding:.35rem .7rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;background:var(--cheshire-surface,#fff);cursor:pointer}
/* PM two-column: navigation/search as a side column */
.cheshire-pm-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:1.2rem;align-items:start}
.cheshire-pm-side .cheshire-pm-nav{flex-direction:column;align-items:stretch;margin:.8rem 0;padding:.8rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border,#eee);border-radius:10px}
.cheshire-pm-side .cheshire-pm-nav a{display:block;text-align:left}
.cheshire-pm-side .cheshire-pm-search{margin-left:0;width:100%}
.cheshire-pm-side .cheshire-pm-search input{flex:1;min-width:0}
@media (max-width:860px){.cheshire-pm-layout{grid-template-columns:1fr}.cheshire-pm-side{order:-1}}

.cheshire-pm-partner-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.4rem 0 1rem}
.cheshire-pm-partner-btn{padding:.3rem .7rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;background:var(--cheshire-surface,#fff);font-size:.8rem;cursor:pointer}
.cheshire-pm-report-link{margin-left:.5rem;color:var(--cheshire-danger-text,#C0392B);text-decoration:none;font-size:.8rem}
.cheshire-pm-att-input{flex-direction:row !important;align-items:center;gap:.5rem !important;font-size:.85rem;color:var(--cheshire-text-muted,#555)}
.cheshire-pm-att-list{margin-top:.5rem;display:flex;flex-wrap:wrap;gap:.5rem}
.cheshire-pm-att-img{max-width:180px;max-height:140px;border-radius:6px;display:block}
.cheshire-pm-att-file{display:inline-block;padding:.3rem .7rem;background:var(--cheshire-surface-alt,#eef2f6);border-radius:5px;font-size:.82rem;text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-pm-contact-add{display:flex;gap:.5rem;margin:.6rem 0 1rem}
.cheshire-pm-contact-add input{flex:1;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px}
.cheshire-pm-contact-add button{padding:.5rem 1rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}
.cheshire-pm-contact-list{display:flex;flex-direction:column;border:1px solid var(--cheshire-border,#eee);border-radius:6px;overflow:hidden;margin-bottom:1.2rem}
.cheshire-pm-contact-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);font-size:.88rem}
.cheshire-pm-contact-row:last-child{border-bottom:none}
.cheshire-pm-contact-row button{padding:.2rem .6rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;background:var(--cheshire-surface,#fff);cursor:pointer;font-size:.8rem}
.cheshire-pm-hint{color:var(--cheshire-text-muted,#666);font-size:.88rem;margin:.3rem 0 1rem}
/* PM pages had NO card wrapper around the main content (unlike e.g. profile/form pages). Not noticeable in the default/classic theme, but in the
   modern theme (which creates its "card" look via exactly such wrappers) the PM page looked unstyled/flat. Deliberately defined here as a no-op
   (display:block, no visual change for default/classic) -- the actual card look comes specifically from modern.css. */
.cheshire-pm-panel{display:block}
.cheshire-mod-pm-hint{display:inline-block;color:var(--cheshire-text-muted,#666);font-size:.85rem;margin:0}
.cheshire-mod-warn-form{display:inline-flex;align-items:center;gap:.3rem;margin:.3rem .3rem 0 0}
.cheshire-mod-warn-done{color:var(--cheshire-success-text,#388e3c);font-size:.8rem;margin:.3rem 0 0}
/* Warning form collapsed behind its own button instead of permanently open below the post. */
.cheshire-mod-warn-details{margin:.4rem 0 0}
.cheshire-mod-warn-toggle{cursor:pointer;display:inline-block;background:var(--cheshire-danger-bg,#fdecea);color:var(--cheshire-danger-text,#C0392B);border:1px solid var(--cheshire-danger-border,#e6b3ad);border-radius:4px;padding:.2rem .6rem;font-size:.8rem;font-weight:600;list-style:none;user-select:none}
.cheshire-mod-warn-toggle::-webkit-details-marker{display:none}
.cheshire-mod-warn-details[open] .cheshire-mod-warn-toggle{margin-bottom:.4rem}
.cheshire-mod-warn-points{width:4em}
/* The form stays (POST action), but display:contents passes the grid layout of the parent .cheshire-card-links to the inner button -- the button
   itself already carries cheshire-profile-link-btn (see above). */
.cheshire-profile-buddy{display:contents}
.cheshire-success{background:var(--cheshire-success-bg,#EAFAF1);border:1px solid var(--cheshire-success-border,#27AE60);border-radius:5px;padding:.6rem;margin:.6rem 0;font-size:.88rem;color:var(--cheshire-success-text,#1E8449)}

/* === Guestbook & avatar placeholders === */
.cheshire-avatar-img{flex-shrink:0;width:72px;height:72px;border-radius:50%;object-fit:cover}
.cheshire-avatar-guest{width:40px;height:40px}
.cheshire-avatar-wrap{position:relative;display:inline-block;flex-shrink:0}
.cheshire-avatar-badge{position:absolute;color:#fff;font-size:.62rem;font-weight:700;line-height:1.3;padding:.1rem .4rem;border-radius:4px;white-space:nowrap;box-shadow:var(--cheshire-shadow-sm,0 1px 3px rgba(0,0,0,.35));pointer-events:none}
.cheshire-avatar-badge i{margin-right:.15rem}
.cheshire-avatar-badge-top-left{top:-4px;left:-6px}
.cheshire-avatar-badge-top-right{top:-4px;right:-6px}
.cheshire-avatar-badge-bottom-left{bottom:-4px;left:-6px}
.cheshire-avatar-badge-bottom-right{bottom:-4px;right:-6px}
.cheshire-avatar-badge-diagonal{top:10px;left:-30px;width:104px;text-align:center;border-radius:0;padding:.15rem 0;transform:rotate(-45deg)}
.cheshire-avatar-report-link{display:block;text-align:center;font-size:.7rem;color:var(--cheshire-text-faint,#999);margin-top:.2rem;text-decoration:none}
.cheshire-avatar-report-link:hover{color:var(--cheshire-danger-text,#C0392B);text-decoration:underline}
.cheshire-warnings{background:var(--cheshire-warning-bg,#fff8f0);border:1px solid var(--cheshire-warning-border,#f0d9b5);border-radius:6px;padding:.6rem 1rem;margin:.6rem 0;font-size:.85rem}
.cheshire-warning-entry{padding:.4rem 0;border-top:1px solid var(--cheshire-warning-border,#f0e0c5)}
.cheshire-warning-entry:first-of-type{border-top:none}
.cheshire-warning-disabled-note{color:var(--cheshire-warning-text,#8a6d3b);font-size:.8rem;margin:0 0 .4rem}
.cheshire-warning-meta{display:block;font-size:.75rem;color:var(--cheshire-text-faint,#888)}
.cheshire-warning-expired{opacity:.55}
.cheshire-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin:.4rem 0}
.cheshire-badge-chip{color:#fff;font-size:.75rem;font-weight:600;padding:.15rem .55rem;border-radius:12px;white-space:nowrap;cursor:default}
.cheshire-digest-freq{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.8rem 1rem;margin:.6rem 0 1.2rem;display:flex;align-items:flex-end;gap:.6rem;flex-wrap:wrap}
.cheshire-digest-freq select{padding:.4rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px}
.cheshire-poll{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.8rem 1rem;margin:.8rem 0}
.cheshire-poll h3{margin:0 0 .5rem}
.cheshire-poll-option{display:block;margin:.3rem 0;font-size:.9rem}
.cheshire-poll-closed{color:var(--cheshire-danger-text,#C0392B);font-size:.85rem;font-weight:600}
.cheshire-poll-results{margin-top:.6rem}
.cheshire-poll-result-row{display:flex;align-items:center;gap:.5rem;margin:.35rem 0;font-size:.85rem}
.cheshire-poll-result-label{flex:0 0 30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-poll-bar-track{flex:1;background:var(--cheshire-surface-alt,#e5e9ed);border-radius:4px;height:10px;overflow:hidden}
.cheshire-poll-bar{background:var(--cheshire-accent,#3D6B8C);height:100%}
.cheshire-poll-result-pct{flex:0 0 auto;color:var(--cheshire-text-muted,#666);white-space:nowrap}
.cheshire-poll-total{color:var(--cheshire-text-faint,#999);font-size:.78rem;margin:.4rem 0 0}
.cheshire-poll-hint{color:var(--cheshire-text-muted,#666);font-size:.85rem}
.cheshire-poll-edit-toggle{margin-top:.6rem;background:none;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:4px;padding:.25rem .6rem;font-size:.8rem;cursor:pointer}
.cheshire-poll-admin-form{margin-top:.5rem}
.cheshire-poll-admin-form label{font-size:.82rem;display:block;margin:.3rem 0}
.cheshire-poll-admin-form input[type=text]{width:100%;max-width:22rem}
/* Poll: collapsible on mobile / desktop side column + dialog */
.cheshire-poll-mobile-only{display:none}
.cheshire-poll-collapse{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;margin:.8rem 0}
.cheshire-poll-collapse>summary{cursor:pointer;font-weight:600;padding:.6rem .9rem}
.cheshire-poll-collapse>.cheshire-poll{border:0;margin:0}
.cheshire-poll-side h2{margin-top:0}
.cheshire-poll-side .cheshire-poll{border:0;padding:0;margin:0;background:none}
.cheshire-poll-side-question{font-weight:600;margin:.2rem 0}
.cheshire-poll-side-list{margin:.3rem 0;padding-left:1.1rem;font-size:.88rem}
.cheshire-poll-side-list li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-poll-open{margin-top:.5rem;width:100%}
.cheshire-poll-dialog{max-width:min(36rem,92vw);width:100%;border:1px solid var(--cheshire-border,#ccc);border-radius:8px;padding:1rem 1.2rem;background:var(--cheshire-surface,#fff);color:inherit}
.cheshire-poll-dialog::backdrop{background:rgba(0,0,0,.45)}
.cheshire-poll-dialog .cheshire-poll{border:0;padding:0;margin:0;background:none}
.cheshire-poll-dialog-close{float:right;background:none;border:0;font-size:1.1rem;cursor:pointer;color:inherit}
@media (max-width:960px){.cheshire-poll-mobile-only{display:block}.cheshire-poll-desktop-only{display:none}.cheshire-poll-side{display:none}}

.cheshire-demo-link{color:var(--cheshire-text-faint,#999);cursor:default;border-bottom:1px dashed var(--cheshire-border-strong,#ccc);user-select:none}
.cheshire-guestbook{margin-top:1.5rem}
.cheshire-guestbook h3{margin:0 0 .5rem;font-size:1rem}
.cheshire-guestbook-pending{background:var(--cheshire-warning-bg,#fff8e6);border:1px solid var(--cheshire-warning-border,#e8d8a0);border-radius:6px;padding:.6rem .8rem;margin-bottom:1rem;font-size:.88rem}
.cheshire-guestbook-pending-entry{border-top:1px solid var(--cheshire-warning-border,#e8d8a0);margin-top:.5rem;padding-top:.5rem}
.cheshire-guestbook-pending-entry button{margin-top:.3rem;padding:.25rem .6rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;background:var(--cheshire-surface,#fff);font-size:.8rem;cursor:pointer}
.cheshire-guestbook-list{display:flex;flex-direction:column;gap:.6rem}
.cheshire-guestbook-entry{display:flex;gap:.7rem;align-items:flex-start;background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.6rem .9rem}
.cheshire-guestbook-meta{color:var(--cheshire-text-faint,#999);font-size:.78rem;margin-bottom:.15rem}
.cheshire-guestbook-msg{font-size:.9rem;white-space:pre-wrap}
.cheshire-guestbook-form{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem;max-width:500px}
.cheshire-guestbook-form label{display:flex;flex-direction:column;gap:.2rem;font-size:.85rem;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-guestbook-form input,.cheshire-guestbook-form textarea{padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;font-family:inherit;box-sizing:border-box}
.cheshire-guestbook-form button{align-self:flex-start;padding:.4rem 1.2rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}

/* === Notifications & subscriptions === */
.cheshire-subscribe-form{display:inline-block;margin-left:.6rem}
.cheshire-btn-subscribe{padding:.35rem .8rem;border-radius:5px;background:var(--cheshire-surface-alt,#f0f0f0);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));border:1px solid var(--cheshire-border-strong,#ddd);cursor:pointer;font-size:.85rem}
.cheshire-btn-subscribe.active{background:var(--cheshire-accent,#3D6B8C);color:#fff;border-color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C))}
.cheshire-sub-list{display:flex;flex-direction:column;border:1px solid var(--cheshire-border,#eee);border-radius:6px;overflow:hidden}
.cheshire-sub-row{display:flex;align-items:center;gap:.7rem;padding:.55rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);font-size:.87rem}
.cheshire-sub-row:last-child{border-bottom:none}
.cheshire-sub-type{background:var(--cheshire-surface-alt,#eef2f6);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.05rem .5rem;border-radius:3px;font-size:.75rem}
.cheshire-sub-row a{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));flex:1}
.cheshire-sub-row a.cheshire-sub-category{flex:none;color:var(--cheshire-text-faint,#999);font-size:.78rem;background:var(--cheshire-surface-alt,#f5f5f5);padding:.05rem .5rem;border-radius:3px;text-decoration:none}
.cheshire-sub-row a.cheshire-sub-category:hover{text-decoration:underline}

/* === Report workflow / moderation === */
.cheshire-mod-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:.8rem 0}
.cheshire-mod-filter{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.4rem 0 .8rem}
.cheshire-mod-filter input[type=search]{flex:1 1 220px;min-width:0}
.cheshire-mod-tab{padding:.35rem .8rem;border-radius:5px;background:var(--cheshire-surface-alt,#f0f0f0);text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.85rem}
.cheshire-mod-tab.active{background:var(--cheshire-primary,#2E4057);color:#fff}
/* Shared mod-CP header navigation (reports/safe) */
.cheshire-modcp-nav{display:flex;gap:.6rem;margin:.6rem 0 1rem;border-bottom:1px solid var(--cheshire-border,#eee);padding-bottom:.6rem}
.cheshire-modcp-tab{padding:.4rem .9rem;border-radius:5px 5px 0 0;text-decoration:none;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));font-size:.9rem;font-weight:600}
.cheshire-modcp-tab.active{background:var(--cheshire-primary,#2E4057);color:#fff}
.cheshire-modcp-count{background:#777;color:#fff;border-radius:10px;padding:.05rem .45rem;font-size:.72rem;margin-left:.2rem}
.cheshire-mod-list{display:flex;flex-direction:column;border:1px solid var(--cheshire-border,#eee);border-radius:6px;overflow:hidden}
.cheshire-mod-row{display:grid;grid-template-columns:auto 2fr auto auto auto auto;gap:.6rem;align-items:center;padding:.55rem .8rem;border-bottom:1px solid var(--cheshire-border,#eee);text-decoration:none;color:inherit;font-size:.87rem}
.cheshire-mod-row:last-child{border-bottom:none}
a.cheshire-mod-row:hover{background:var(--cheshire-surface-alt,#f9fafb)}
.cheshire-mod-type{background:var(--cheshire-surface-alt,#eef2f6);color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));padding:.05rem .5rem;border-radius:3px;font-size:.75rem}
/* Status badge in the "Done/Archived" tab -- distinguishes real safe cases (post/thread) from generically closed reports (signature/DMCA/add-on),
   see ModerationController. */
.cheshire-mod-status-badge{padding:.05rem .5rem;border-radius:10px;font-size:.72rem;font-weight:600;white-space:nowrap}
.cheshire-mod-status-safe{background:var(--cheshire-danger-bg,#fdecea);color:var(--cheshire-danger-text,#C0392B)}
.cheshire-mod-status-done{background:var(--cheshire-success-bg,#e8f6ef);color:var(--cheshire-success-text,#1e8a5f)}
.cheshire-mod-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-mod-content small{color:var(--cheshire-text-faint,#999)}
.cheshire-mod-reason{font-weight:600}
.cheshire-mod-reporter,.cheshire-mod-date{color:var(--cheshire-text-faint,#999);font-size:.8rem}
.cheshire-mod-report-meta{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.7rem 1rem;margin:.8rem 0;font-size:.9rem}
.cheshire-mod-report-meta p{margin:.2rem 0}
.cheshire-mod-spy{border:2px dashed var(--cheshire-danger-border,#C0392B);border-radius:8px;padding:1rem;margin:1rem 0;background:var(--cheshire-warning-bg,#fff9f8)}
.cheshire-mod-spy-notice{color:var(--cheshire-danger-text,#C0392B);font-weight:600;font-size:.85rem;margin:0 0 .6rem}
.cheshire-mod-author{color:var(--cheshire-text-muted,#666);font-size:.85rem}
.cheshire-mod-message{margin-top:.5rem}
/* Operator tip below the search field. */
.cheshire-search-hint{font-size:.8rem;color:var(--cheshire-text-faint,#999);margin:.3rem 0 1rem}
.cheshire-search-hint code{background:var(--cheshire-surface-alt,#f4f4f4);padding:.05rem .35rem;border-radius:3px}
/* Own block for the signature TEXT above the image gallery in the mod report. */
.cheshire-mod-sig-text{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:6px;padding:.7rem 1rem;margin-bottom:.8rem}
.cheshire-mod-sig-gallery{display:flex;flex-wrap:wrap;gap:.8rem}
.cheshire-mod-sig-item{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:var(--cheshire-surface-alt,#fafafa);border:1px solid var(--cheshire-border-strong,#ddd);border-radius:6px;padding:.5rem}
.cheshire-mod-actions{margin:1rem 0}
.cheshire-mod-action-group{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:.8rem}
.cheshire-mod-action-group:last-child{margin-bottom:0}
.cheshire-mod-action-group h4{width:100%;font-size:.8rem;color:var(--cheshire-text-muted,#666);margin:0 0 .2rem;text-transform:uppercase;letter-spacing:.03em}
.cheshire-mod-type-badge{background:var(--cheshire-primary,#2E4057);color:#fff;padding:.1rem .6rem;border-radius:12px;font-size:.7rem;font-weight:500;vertical-align:middle;margin-left:.5rem}
.cheshire-mod-comment-hint{color:var(--cheshire-text-faint,#999);font-size:.8rem}
.cheshire-mod-comments{display:flex;flex-direction:column;gap:.6rem;margin:.6rem 0}
.cheshire-mod-comment{background:var(--cheshire-surface-alt,#f9fafb);border-radius:6px;padding:.5rem .8rem}
.cheshire-mod-comment-meta{color:var(--cheshire-text-faint,#999);font-size:.75rem;display:block;margin-bottom:.2rem}
.cheshire-mod-comment-text{font-size:.88rem;white-space:pre-wrap}
.cheshire-mod-comment-form{display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.cheshire-mod-comment-form textarea{width:100%;box-sizing:border-box;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px}
.cheshire-mod-comment-form button{align-self:flex-start;padding:.4rem 1.2rem;background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;cursor:pointer}
/* Uniform styling for all report forms (post/PM/avatar/signature) */
.cheshire-report-form{max-width:480px}
.cheshire-report-form label{display:block;margin-bottom:.9rem;font-weight:600}
.cheshire-report-form select,.cheshire-report-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:.3rem;padding:.5rem;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:5px;font-family:inherit;font-weight:400}
.cheshire-report-form textarea{resize:vertical}
.cheshire-mod-safe-list{display:flex;flex-direction:column;gap:.8rem}
.cheshire-mod-safe-row{border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.8rem 1rem;background:var(--cheshire-surface-alt,#f9fafb)}
.cheshire-mod-safe-row-deleted{border-color:var(--cheshire-success-border,#c7e6cf);background:var(--cheshire-success-bg,#f4fbf6)}
.cheshire-mod-safe-meta{font-size:.85rem;color:var(--cheshire-text-muted,#555);margin-bottom:.5rem}
.cheshire-mod-hard-deleted-badge{color:var(--cheshire-success-text,#2E7D32);font-weight:600;font-size:.85rem;margin:.6rem 0 0}
.cheshire-btn-mod{color:inherit;text-decoration:none}
.cheshire-post-reported-link{margin-left:.5rem;font-weight:600}

/* === Reported post === */
.cheshire-post-reported{border:1px dashed var(--cheshire-warning-border,#E67E22);border-radius:6px;margin-bottom:1rem}
.cheshire-post-reported-notice{padding:.6rem 1rem;color:#E67E22;font-size:.88rem;font-style:italic}

/* === Site header (logo/title) === */
/* margin-top overridable via --cheshire-header-padding-top, see Theme::cssVarsBlock(). Deliberately margin-top (outer spacing) and not
   padding-top: padding only enlarges the box itself (inner spacing above logo/title) and creates no gap to the top edge of the box. */
.cheshire-site-header{position:relative;display:flex;align-items:center;gap:.8rem;padding:1rem 0 .6rem;margin-top:var(--cheshire-header-padding-top,0)}
.cheshire-site-logo{font-size:2.3rem;text-decoration:none;line-height:1}
.cheshire-site-heading{display:flex;flex-direction:column}
.cheshire-site-title{font-size:1.5rem;font-weight:700;color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none}
.cheshire-site-title:hover{text-decoration:underline}
.cheshire-site-tagline{margin:.1rem 0 0;font-size:.85rem;color:var(--cheshire-text-muted,#666)}
/* Logo position + sticky header, see Cheshire\Services\Theme::logoPosition()/config(). */
.cheshire-site-logo img{max-height:2.3rem;width:auto;display:block}
.cheshire-site-header--logo-center{justify-content:center;text-align:center;flex-wrap:wrap}
.cheshire-site-header--logo-center .cheshire-site-heading{align-items:center}
.cheshire-site-header--logo-right{flex-direction:row-reverse}
.cheshire-site-header--sticky{position:sticky;top:0;z-index:50;background:var(--cheshire-surface,#fff);box-shadow:var(--cheshire-shadow-sm,0 1px 4px rgba(0,0,0,.08))}
/* Corner decoration, see the Theme::config() comment on scope (header/topbar/button chrome, not every card). Without setting 0 = unchanged. */
.cheshire-site-header{border-radius:var(--cheshire-radius,0);box-shadow:var(--cheshire-radius-shadow,none)}
/* Header rendered outside of .cheshire-wrap (see Bootstrap.php SITE_HEADER_OUTSIDE_HTML/_layout.htt) -- own selector instead of a
   child selector of .cheshire-wrap, since it is no descendant any more. Same width/centering as the content below, so nothing visually jumps. */
.cheshire-site-header--outside{max-width:var(--cheshire-content-width,960px);margin:0 auto;margin-top:var(--cheshire-header-padding-top,0);padding:1.2rem 1rem .8rem}

/* === Topbar (login/logout bar) === */
.cheshire-topbar{display:flex;justify-content:flex-end;align-items:center;gap:.8rem;padding:.55rem 1rem;font-size:.85rem;background:var(--cheshire-header-bg,var(--cheshire-primary,#2E4057));color:#fff;border-radius:var(--cheshire-radius,6px);box-shadow:var(--cheshire-radius-shadow,none);margin-bottom:1rem}
/* Notice for admins only, shown when the 30-day preview cookie (Bootstrap.php) overrides the real AdminCP theme setting. Deliberately
   conspicuous/warning-colored, not a normal notice box. */
.cheshire-preview-notice{background:#fff3cd;color:#664d03;border:1px solid #ffe69c;border-radius:6px;padding:.5rem .8rem;font-size:.82rem;margin-bottom:1rem}
.cheshire-preview-notice a{color:#664d03;text-decoration:underline;font-weight:600}
/* Compact 26px logo sitewide in the topbar, see Bootstrap::setGlobals() ($topbar_logo). margin-right:auto keeps pushing burger/nav links/toggle
   to the right end. */
.cheshire-topbar-logo{margin-right:auto;display:inline-flex;align-items:center;font-size:1.2rem;line-height:1;text-decoration:none}
.cheshire-topbar-logo img{height:26px;width:auto;display:block;border-radius:4px}
/* The mode, not the page, decides what is visible -- integrated mode always shows the compact logo (base rule above), hybrid/standalone shows
   the large banner sitewide instead and fades in the compact logo only below the breakpoint. */
.cheshire-wrap:not(.cheshire-integrated) .cheshire-topbar-logo{display:none}
@media (max-width:768px){
    .cheshire-wrap:not(.cheshire-integrated) .cheshire-site-header{display:none}
    /* .cheshire-site-header--outside sits outside .cheshire-wrap, so it needs an own selector without the wrap ancestor condition. */
    .cheshire-site-header--outside{display:none}
    .cheshire-wrap:not(.cheshire-integrated) .cheshire-topbar-logo{display:inline-flex}
}
.cheshire-btn-login,.cheshire-btn-register,.cheshire-btn-logout,.cheshire-btn-pm,.cheshire-btn-mod{padding:.2rem .6rem;border-radius:var(--cheshire-radius,4px);text-decoration:none;font-size:.82rem;border-color:rgba(255,255,255,.6)!important;color:#fff!important}
.cheshire-btn-login{background:rgba(255,255,255,.18)}
/* Nav link colors + burger menu. The burger button is invisible by default -- it only appears inside the dynamic @media block from
   Cheshire\Services\Theme::navCssBlock() (breakpoint > 0 set). */
.cheshire-topbar a{color:var(--cheshire-nav-link,#fff)}
.cheshire-topbar a:hover{color:var(--cheshire-nav-hover,#fff);background:rgba(255,255,255,.18)}
.cheshire-topbar a.active{color:var(--cheshire-nav-active,#fff);text-decoration:underline;font-weight:600}
.cheshire-nav-links{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.cheshire-nav-burger{display:none;background:none;border:1px solid rgba(255,255,255,.5);color:inherit;border-radius:var(--cheshire-radius,4px);width:2rem;height:2rem;font-size:1.1rem;line-height:1;cursor:pointer;align-items:center;justify-content:center}
/* Navigation icons in SVG mode, see NavIcons.php. stroke="currentColor" in the SVG automatically follows the nav link/hover/active color
   (color inheritance); without the setting ('text', default) this class never appears in the markup. */
.cheshire-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;margin-right:.35em;vertical-align:-0.125em}
.cheshire-nav-icon svg{width:1em;height:1em;display:block}
/* Visitor switch for light/dark, always visible (unlike the burger, which only appears from a breakpoint) -- click logic in cheshire.js, the
   icon is pre-rendered server-side to match the cookie. */
.cheshire-color-toggle{background:none;border:1px solid rgba(255,255,255,.5);color:inherit;border-radius:var(--cheshire-radius,4px);width:2rem;height:2rem;font-size:1rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin-left:.5rem;flex:0 0 auto}
.cheshire-color-toggle:hover{background:rgba(255,255,255,.18)}

/* Free links: plain text links, no badge/icon look (see CustomLinks.php head comment). One markup for header (in .cheshire-topbar, inherits its link
   color/hover via the existing ".cheshire-topbar a" rules) and footer (own border at the bottom of the page). */
.cheshire-custom-links{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;padding:.8rem 1rem;margin-top:1rem;font-size:var(--cheshire-custom-links-font-size,.82rem);color:var(--cheshire-text-muted,#666);border-top:1px solid var(--cheshire-border,#e2e6ea)}
.cheshire-custom-links a{color:inherit;text-decoration:none}
.cheshire-custom-links a:hover{text-decoration:underline}
.cheshire-topbar .cheshire-custom-links{padding:0;margin:0 0 0 .4rem;border-top:none;font-size:var(--cheshire-custom-links-font-size,.82rem);gap:.6rem;flex-wrap:nowrap}
/* Header links sit as the third flex child in .cheshire-site-header (see Bootstrap.php $header_links_html) -- margin-left:auto pushes them to the
   right edge, align-self:flex-start keeps them at the top instead of vertically centered (the header is align-items:center). Known limitation:
   with logo position "right" (flex-direction: row-reverse) the order is visually swapped -- rare combination, deliberately not handled. */
/* A free-standing container box via position:absolute, completely removed from the flex layout of the logo positioning -- works independently
   of left/center/right (margin-left:auto as third flex child competed with .cheshire-site-header--logo-center's justify-content:center and pushed
   the logo to the left). Needs position:relative on .cheshire-site-header, see the base rule above. */
.cheshire-header-links{position:absolute;top:.15rem;right:0;border-top:none;padding:0;margin:0;flex-wrap:nowrap}

/* Who-is-online footer row: sits directly BEFORE the free links (see _layout.htt/Renderer::injectAssets() -- same dual-mode order). Left-aligned
   instead of centered; modern/support themes additionally give it the category box look (see their .cheshire-wio-footer override, analogous to
   .cheshire-category) -- default/classic keep the plain border line like .cheshire-category there has no box either. The row sits in
   _layout.htt/Renderer deliberately OUTSIDE .cheshire-wrap (same position as the free links, which have no box of their own, so the excess width
   never showed) -- without an own width limit it spanned the full body width instead of the 960px content column. max-width/margin:auto
   duplicate .cheshire-wrap on purpose, so the box matches the category width wherever it lands in the DOM. */
.cheshire-wio-footer{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem;padding:.6rem 1rem;margin:1rem auto 0;max-width:var(--cheshire-content-width,960px);font-size:.82rem;color:var(--cheshire-text-muted,#666);border-top:1px solid var(--cheshire-border,#e2e6ea);justify-content:flex-start}
.cheshire-wio-footer-total{font-weight:600;color:var(--cheshire-text,#333)}
.cheshire-wio-footer-detail{color:inherit}
.cheshire-wio-footer-detail a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-wio-footer-detail a:hover{text-decoration:underline}

/* === Help/manual (FAQ) === */
.cheshire-help-intro{color:var(--cheshire-text-muted,#666);margin-bottom:1.2rem}
.cheshire-help-sections{display:flex;flex-direction:column;gap:1.2rem}
.cheshire-help-cat{background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.9rem 1.2rem}
.cheshire-help-cat h2{margin:0 0 .5rem;font-size:1.05rem}
.cheshire-help-badge{font-size:.72rem;font-weight:400;color:#E67E22;border:1px solid var(--cheshire-warning-border,#E67E22);border-radius:4px;padding:.05rem .4rem;margin-left:.4rem}
.cheshire-help-list{margin:0;padding-left:1.2rem}
.cheshire-help-list li{margin:.25rem 0}
.cheshire-help-list a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-help-list a:hover{text-decoration:underline}
.cheshire-help-empty{color:var(--cheshire-text-faint,#999)}
.cheshire-help-article table{border-collapse:collapse;margin:.8rem 0;width:100%}
.cheshire-help-article th,.cheshire-help-article td{border:1px solid var(--cheshire-border,#eee);padding:.4rem .6rem;text-align:left;font-size:.9rem}
.cheshire-help-article blockquote{border-left:3px solid var(--cheshire-border-strong,#ddd);margin:.6rem 0;padding:.2rem 1rem;color:var(--cheshire-text-muted,#555)}
.cheshire-help-article code{background:var(--cheshire-surface-alt,#f4f4f4);padding:.1rem .3rem;border-radius:3px;font-size:.88rem}
.cheshire-btn-login{background:var(--cheshire-primary,#2E4057);color:#fff}
.cheshire-btn-register{border:1px solid var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057))}
.cheshire-btn-logout{border:1px solid #aaa;color:var(--cheshire-text-muted,#666)}
.cheshire-btn-pm{padding:.2rem .6rem;border-radius:4px;text-decoration:none;font-size:.82rem;border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C))}

/* === Password strength bar === */
.cheshire-pw-strength-wrap{margin:.4rem 0 .6rem}
.cheshire-pw-strength-wrap:not(:empty){background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#ddd);border-radius:4px;padding:.5rem .7rem}
#cheshire-pw-strength{position:relative;z-index:1}

/* === MFA instructions === */
.cheshire-mfa-instructions{background:var(--cheshire-info-bg,#EBF5FB);border:1px solid var(--cheshire-info-border,#AED6F1);border-radius:6px;padding:1rem;margin:.8rem 0;font-size:.9rem}
.cheshire-mfa-instructions ol{margin:.5rem 0 0 1.2rem;padding:0}
.cheshire-mfa-instructions li{margin:.4rem 0}

/* === Newbie link notices ===
   Clearly more conspicuous warning box instead of the previously reused, subtle info box (.cheshire-mfa-instructions was "too inconspicuous");
   the -blocked modifier uses the stronger danger tokens for the rejected post (more serious than the notice case).
   @see ThreadController::create()/reply()/editPost() (NOTICE_HTML) */
.cheshire-link-warning{display:flex;align-items:flex-start;gap:.6rem;background:var(--cheshire-warning-bg,#fff8e6);border:1px solid var(--cheshire-warning-border,#f0c36d);border-left:5px solid var(--cheshire-warning-border,#f0c36d);border-radius:6px;padding:.9rem 1.1rem;margin:.8rem 0;font-size:.92rem;font-weight:600;color:var(--cheshire-warning-text,#8a6d3b)}
.cheshire-link-warning-icon{font-size:1.4rem;line-height:1;flex-shrink:0}
.cheshire-link-warning-text{font-weight:600}
.cheshire-link-warning-text small{display:block;font-weight:400;margin-top:.25rem;font-size:.85rem;opacity:.9}
.cheshire-link-warning--blocked{background:var(--cheshire-danger-bg,#fdecea);border-color:var(--cheshire-danger-border,#e6b3ad);color:var(--cheshire-danger-text,#C0392B)}
/* Notice about broken internal links -- same warning box as above, list of hits + alternative suggestions as an own block instead of the
   single-line <small>. @see ThreadController::show() */
.cheshire-link-warning-list{margin:.4rem 0 0;padding-left:1.1rem;font-weight:400;font-size:.85rem;opacity:.9}
.cheshire-link-warning-list li{margin:.15rem 0}
.cheshire-link-warning-list a{text-decoration:underline}
/* Deletion request notice banner in the thread -- same warning tokens as .cheshire-link-warning above, so light/dark mode follows automatically. */
.cheshire-notice{display:flex;align-items:flex-start;gap:.6rem;border-radius:6px;padding:.9rem 1.1rem;margin:.8rem 0;font-size:.92rem}
.cheshire-notice-warn{background:var(--cheshire-warning-bg,#fff8e6);border:1px solid var(--cheshire-warning-border,#f0c36d);border-left:5px solid var(--cheshire-warning-border,#f0c36d);color:var(--cheshire-warning-text,#8a6d3b)}
.cheshire-backup-codes{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}
.cheshire-backup-codes li code{background:var(--cheshire-surface-alt,#f0f0f0);padding:.3rem .6rem;border-radius:4px;font-family:monospace;font-size:.9rem}

/* MD inline render */
[id^="cheshire-md-"] h1,[id^="cheshire-md-"] h2,[id^="cheshire-md-"] h3{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));margin:.8rem 0 .3rem;line-height:1.3}
[id^="cheshire-md-"] h1{font-size:1.3rem;border-bottom:1px solid var(--cheshire-border-strong,#ddd);padding-bottom:.2rem}
[id^="cheshire-md-"] h2{font-size:1.1rem}
[id^="cheshire-md-"] pre{background:#1e1e1e;color:var(--cheshire-text-faint,#d4d4d4);padding:.7rem 1rem;border-radius:5px;overflow-x:auto;font-size:.83rem}
[id^="cheshire-md-"] code{background:var(--cheshire-surface-alt,#f0f4f8);padding:.1rem .3rem;border-radius:3px;font-size:.85rem;color:var(--cheshire-danger-text,#c7254e)}
[id^="cheshire-md-"] pre code{background:none;padding:0;color:var(--cheshire-text-faint,#d4d4d4)}
[id^="cheshire-md-"] blockquote{border-left:3px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));margin:.5rem 0;padding:.3rem .7rem;background:var(--cheshire-surface-alt,#f0f4f8);color:var(--cheshire-text-muted,#555);border-radius:0 4px 4px 0}
[id^="cheshire-md-"] table{border-collapse:collapse;width:100%;margin:.5rem 0;font-size:.88rem}
[id^="cheshire-md-"] th{background:var(--cheshire-primary,#2E4057);color:#fff;padding:.35rem .6rem;text-align:left}
[id^="cheshire-md-"] td{border:1px solid var(--cheshire-border-strong,#ddd);padding:.3rem .6rem}
[id^="cheshire-md-"] tr:nth-child(even){background:var(--cheshire-surface-alt,#f8f9fa)}
[id^="cheshire-md-"] a{color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C))}
[id^="cheshire-md-"] hr{border:none;border-top:1px solid var(--cheshire-border-strong,#ddd);margin:1rem 0}

/* Age-rating (FSK) confirmation page */
.cheshire-fsk-gate{max-width:600px;margin:2rem auto;text-align:center;background:var(--cheshire-warning-bg,#fff3cd);border:1px solid var(--cheshire-warning-border,#ffc107);border-radius:8px;padding:1.5rem}
.cheshire-fsk-gate h1{margin-top:0;font-size:1.3rem}
.cheshire-btn-primary{background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;padding:.6rem 1.4rem;font-size:1rem;cursor:pointer;margin:.8rem 0}
.cheshire-btn-primary:hover{background:var(--cheshire-accent,#3D6B8C)}

/* Applications ticker */
.cheshire-applications-ticker{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;background:var(--cheshire-warning-bg,#fff3cd);border:1px solid var(--cheshire-warning-border,#ffc107);border-radius:6px;padding:.6rem 1rem;margin-bottom:.8rem;font-size:.9rem}
.cheshire-btn-apply{background:var(--cheshire-primary,#2E4057);color:#fff;border:none;border-radius:5px;padding:.4rem .9rem;text-decoration:none;font-size:.85rem;white-space:nowrap}
.cheshire-btn-apply:hover{background:var(--cheshire-accent,#3D6B8C)}
.cheshire-app-position{border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:.8rem 1rem;margin-bottom:.8rem}
.cheshire-app-position h3{margin:0 0 .5rem}
.cheshire-app-status{display:inline-block;padding:.3rem .7rem;border-radius:5px;font-size:.85rem}
.cheshire-app-pending{background:var(--cheshire-warning-bg,#fff3cd);color:var(--cheshire-warning-text,#856404)}
.cheshire-app-approved{background:var(--cheshire-success-bg,#d4edda);color:var(--cheshire-success-text,#155724)}
.cheshire-app-rejected-note{color:var(--cheshire-danger-text,#C0392B);font-size:.85rem}
.cheshire-app-description{background:var(--cheshire-surface-alt,#f4f6f8);border-radius:5px;padding:.6rem .8rem;font-size:.88rem;color:var(--cheshire-text,#444);margin:.4rem 0}

/* Signature image gallery */
.cheshire-sig-gallery{margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--cheshire-border,#eee);max-width:600px}
.cheshire-sig-gallery-grid{display:flex;flex-wrap:wrap;gap:.6rem;margin:.6rem 0}
.cheshire-sig-gallery-item{position:relative;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:6px;padding:.3rem;background:var(--cheshire-surface-alt,#fafafa)}
.cheshire-sig-gallery-item img{display:block;max-width:100px;max-height:80px;border-radius:4px;cursor:pointer}
.cheshire-sig-gallery-item img:hover{outline:2px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C))}
.cheshire-sig-gallery-item form{position:absolute;top:-.5rem;right:-.5rem}
.cheshire-sig-gallery-item button{border:1px solid var(--cheshire-border-strong,#ddd);background:var(--cheshire-surface,#fff);border-radius:50%;width:22px;height:22px;line-height:1;cursor:pointer;font-size:.75rem}
.cheshire-sig-gallery-upload{margin-top:.4rem}
.cheshire-sig-rules-confirm{display:flex;align-items:center;gap:.4rem;font-size:.85rem;margin:.4rem 0}
.cheshire-sig-report-link{display:inline-block;margin-top:.3rem;font-size:.75rem;color:var(--cheshire-text-faint,#999);text-decoration:none}
.cheshire-sig-report-link:hover{color:var(--cheshire-danger-text,#C0392B);text-decoration:underline}
/* "Report signature" next to the expand/collapse heading instead of below the content -- overrides the block spacing from above for this
   context, hidden when the block is collapsed like the label. */
details.cheshire-content-block summary .cheshire-sig-report-link{display:inline;margin-top:0;margin-left:.6rem;font-weight:400}
details.cheshire-content-block:not([open]) summary .cheshire-sig-report-link{display:none}
.cheshire-sig-gallery-item-locked{background:var(--cheshire-danger-bg,#fdf0ee)}
.cheshire-sig-gallery-locked-badge{display:block;font-size:.7rem;color:var(--cheshire-danger-text,#c0392b);text-align:center;margin-top:.2rem}

/* Video upload/embed (donor_only) */
.cheshire-attachment-video video{display:block;border-radius:6px;background:#000}
.cheshire-video-embed{position:relative;max-width:560px;margin:.6rem 0;aspect-ratio:16/9}
.cheshire-video-embed iframe{width:100%;height:100%;border-radius:6px}
/* GDPR click-to-load placeholder instead of auto-embed */
.cheshire-video-consent{display:flex;align-items:center;justify-content:center;background:var(--cheshire-surface-alt,#eef1f4);border:1px solid var(--cheshire-border-strong,#d5dce3);border-radius:6px}
.cheshire-video-load-btn{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));border-radius:6px;padding:.7rem 1.2rem;font-size:1rem;cursor:pointer}
.cheshire-video-load-btn:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-video-load-btn small{font-size:.72rem;font-weight:normal;color:inherit;opacity:.8}

/* Generic GDPR embeds (YouTube/Vimeo/SoundCloud/Spotify via [embed=URL]) -- same click-to-load pattern as video above, but without a fixed
   16:9 assumption (audio players are flatter). */
.cheshire-embed{position:relative;max-width:560px;margin:.6rem 0;min-height:160px}
.cheshire-embed iframe{width:100%;height:100%;min-height:160px;border-radius:6px;border:0}
.cheshire-embed-consent{display:flex;align-items:center;justify-content:center;min-height:120px;background:var(--cheshire-surface-alt,#eef1f4);border:1px solid var(--cheshire-border-strong,#d5dce3);border-radius:6px}
.cheshire-embed-load-btn{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));border-radius:6px;padding:.7rem 1.2rem;font-size:1rem;cursor:pointer}
.cheshire-embed-load-btn:hover{background:var(--cheshire-accent,#3D6B8C);color:#fff}
.cheshire-embed-load-btn small{font-size:.72rem;font-weight:normal;color:inherit;opacity:.8}

/* Common frame pattern for post content blocks (attachments/signature/support wishlist, extensible for future blocks) -- visible contrast, so the
   post end and the block start do not "blur into each other". Details/summary for native collapse logic without mandatory JS; the screen-size
   dependent default (open/closed) is handled in cheshire.js (breakpoint).
   @see src/Services/Signature.php, src/Services/Support.php, src/Controllers/ThreadController.php */
details.cheshire-content-block{margin:.5rem 0;border:1px solid var(--cheshire-border-strong,#ddd);border-radius:6px;padding:.4rem .7rem;background:var(--cheshire-surface-alt,#f7f8fa)}
details.cheshire-content-block summary{cursor:pointer;font-size:.82rem;color:var(--cheshire-text-muted,#555);font-weight:600;list-style:revert}
details.cheshire-content-block[open] summary{margin-bottom:.5rem}
/* The label stays visible when the block is collapsed too (icon only was too terse: "without a name you are at a loss, even if it is a
   pencil"). Applies uniformly to attachments/signature/support wishlist (same class). The "report signature" link (.cheshire-sig-report-link)
   stays visible only when the block is EXPANDED, see its own rule below. */

/* Safety CSS for MD attachment content loaded via fetch() (see ThreadController.php comment) -- without these rules wide tables/code lines
   could break the page. */
.cheshire-md-inline{max-width:100%}
.cheshire-md-inline *{max-width:100%;box-sizing:border-box}
.cheshire-md-inline pre{background:#1e1e1e;color:#d4d4d4;padding:1rem 1.2rem;border-radius:6px;overflow-x:auto;font-size:.88rem;line-height:1.5}
.cheshire-md-inline code{background:var(--cheshire-surface-alt,#f0f4f8);padding:.1rem .35rem;border-radius:3px;font-size:.88rem;color:#c7254e}
.cheshire-md-inline pre code{background:none;padding:0;color:#d4d4d4}
.cheshire-md-inline table{border-collapse:collapse;width:100%;margin:.8rem 0;table-layout:fixed}
.cheshire-md-inline th{background:var(--cheshire-primary,#2E4057);color:#fff;padding:.5rem .8rem;text-align:left}
.cheshire-md-inline td{border:1px solid var(--cheshire-border,#ddd);padding:.4rem .8rem;word-break:break-word}
.cheshire-md-inline img{height:auto;border-radius:4px}
.cheshire-md-inline blockquote{border-left:4px solid var(--cheshire-accent,#3D6B8C);margin:.8rem 0;padding:.4rem .8rem .4rem 1rem;background:var(--cheshire-surface-alt,#f0f4f8);color:#555;border-radius:0 4px 4px 0}
.cheshire-md-inline p,.cheshire-md-inline li{overflow-wrap:anywhere}

/* Parsedown renders GFM tables technically correctly, but without any CSS safety the <table> ended up unstyled/raw in .cheshire-post-content --
   the MD attachment preview (.cheshire-md-inline, see above) solved this long ago, normal Markdown posts did not. Same look adopted here. */
.cheshire-post-content table{border-collapse:collapse;width:100%;margin:.8rem 0;table-layout:fixed}
.cheshire-post-content th{background:var(--cheshire-primary,#2E4057);color:#fff;padding:.5rem .8rem;text-align:left}
.cheshire-post-content td{border:1px solid var(--cheshire-border,#ddd);padding:.4rem .8rem;word-break:break-word}
.cheshire-post-content tr:nth-child(2n) td{background:var(--cheshire-surface-alt,#f7f8fa)}

/* Code blocks (BBCode [code]/[html] etc. AND Markdown fences, see Parser::renderCodeBlock()) had no box look of their own -- plain browser default
   <pre>. Deliberately self-contained (not via TipTapEditor/assets/prose.css) and fully theme/dark-mode safe via var(--cheshire-x,...). The language
   badge (.ev-code-lang) and copy button (.ev-code-copy) are only shown when addons/TipTapEditor/assets/prose.js actually inserts them (see the
   post.render_after hook in TipTapEditor/init.php) -- without the TTE add-on the code block stays readable/styled, only without the two JS extras. */
.cheshire-code{position:relative;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:.88rem;line-height:1.5;background:var(--cheshire-surface-alt,#f6f8fa);border:1px solid var(--cheshire-border-strong,#d0d7de);border-radius:8px;padding:1rem 1.1rem;overflow-x:auto;margin:0 0 1em;tab-size:2}
.cheshire-code code{display:block;background:transparent;padding:0;border:none;font-size:100%;white-space:pre;color:var(--cheshire-text,inherit)}
.ev-code-lang{position:absolute;top:.7rem;right:2.2rem;font-size:11px;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em;text-transform:uppercase;color:var(--cheshire-text-muted,#6e8daa);background:var(--cheshire-surface,#d3e1ee);padding:0 6px;border-radius:6px;user-select:none;pointer-events:none}
.ev-code-copy{position:absolute;top:.3rem;right:.4rem;display:flex;align-items:center;justify-content:center;width:24px;height:20px;padding:0;background:transparent;border:1px solid transparent;border-radius:5px;cursor:pointer;color:var(--cheshire-text-faint,#8c959f);opacity:0;transition:opacity .15s,background .12s,color .12s,border-color .12s;line-height:1}
.cheshire-code:hover .ev-code-copy{opacity:1}
.ev-code-copy:hover{background:var(--cheshire-surface,rgba(255,255,255,.85));border-color:var(--cheshire-border-strong,#d0d7de);color:var(--cheshire-text,#1f2328)}
.ev-code-copy.ev-code-copied{color:var(--cheshire-success-text,#1a7f37);border-color:var(--cheshire-success-border,#2da44e);background:var(--cheshire-success-bg,#dafbe1);opacity:1}
/* hljs syntax colors: deliberately fixed (not var()-based) accent colors -- medium saturation/brightness, so they stay readable on light AND dark
   --cheshire-surface-alt without maintaining 2 complete palettes. No formal WCAG check like for the UI chrome dark palette, visual test only. */
.cheshire-code .hljs-comment,.cheshire-code .hljs-quote{color:#8a9097;font-style:italic}
.cheshire-code .hljs-keyword,.cheshire-code .hljs-selector-tag,.cheshire-code .hljs-built_in,.cheshire-code .hljs-name,.cheshire-code .hljs-tag{color:#c026d3}
.cheshire-code .hljs-string,.cheshire-code .hljs-attr,.cheshire-code .hljs-symbol,.cheshire-code .hljs-bullet{color:#059669}
.cheshire-code .hljs-number,.cheshire-code .hljs-literal,.cheshire-code .hljs-variable,.cheshire-code .hljs-template-variable{color:#d97706}
.cheshire-code .hljs-title,.cheshire-code .hljs-section{color:#3b82f6}
.cheshire-code .hljs-attribute{color:#8b5cf6}
.cheshire-code .hljs-type,.cheshire-code .hljs-selector-id,.cheshire-code .hljs-selector-class{color:#14b8a6}
.cheshire-code .hljs-meta{color:#9098a0}
.cheshire-code .hljs-emphasis{font-style:italic}
.cheshire-code .hljs-strong{font-weight:600}

/* Image attachments as a horizontal swipe row instead of one below the other with a visible file name -- name only as tooltip (title attribute)
   or alt text, download counter short & small. */
.cheshire-att-img-row{display:flex;gap:.5rem;overflow-x:auto;padding:.2rem 0 .5rem;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.cheshire-att-thumb{position:relative;flex:0 0 auto;display:block;scroll-snap-align:start;border-radius:6px;overflow:hidden;line-height:0}
.cheshire-att-thumb img{display:block;border-radius:6px}
.cheshire-att-thumb-dl{position:absolute;right:.3rem;bottom:.3rem;background:rgba(0,0,0,.6);color:#fff;font-size:.68rem;padding:.05rem .35rem;border-radius:3px;line-height:1.4}

/* Signature: list "posts without signature" */
details.cheshire-sig-off-list{margin:.8rem 0;font-size:.85rem}
details.cheshire-sig-off-list summary{cursor:pointer;color:var(--cheshire-text-muted,#555);font-weight:600}
details.cheshire-sig-off-list ul{margin:.4rem 0 0;padding-left:1.2rem}
details.cheshire-sig-off-list li{margin:.2rem 0}

/* === Dark mode ===
   Whole page + AdminCP default + visitor toggle. .cheshire-wrap.cheshire-dark overrides all token variables with the dark palette. Every color in
   the rest of the stylesheet uses var(--cheshire-x,ORIGINAL) -- without this class it is pixel-identical to the previous state. Contrast ratios
   checked arithmetically against WCAG 2.1 AA (4.5:1 text, 3:1 UI borders).
   @see Cheshire\Services\Theme::config()['color_mode'], Bootstrap.php (class + toggle button), cheshire.js (switch logic) */
.cheshire-wrap.cheshire-dark,#cheshire-standalone.cheshire-dark{
  --cheshire-bg:#15171c;
  --cheshire-surface:#1f232b;
  --cheshire-surface-alt:#232a37;
  --cheshire-text:#e7e9ec;
  --cheshire-text-muted:#aab0bd;
  --cheshire-text-faint:#8a90a0;
  --cheshire-border:#2b313d;
  --cheshire-border-strong:#6e7484;
  --cheshire-brand-text:#8ab4e8;
  --cheshire-success-bg:#15301f;
  --cheshire-success-text:#74d18f;
  --cheshire-success-border:#2c5b3a;
  --cheshire-warning-bg:#3a2f10;
  --cheshire-warning-text:#e3c25e;
  --cheshire-warning-border:#5e4d1c;
  --cheshire-danger-bg:#3a1616;
  --cheshire-danger-text:#ef8b8b;
  --cheshire-danger-border:#5c2626;
  --cheshire-info-bg:#12293a;
  --cheshire-info-text:#82c6ea;
  --cheshire-info-border:#234a63;
  --cheshire-shadow-sm:0 1px 4px rgba(0,0,0,.5);
  --cheshire-shadow-md:0 2px 10px rgba(0,0,0,.6);
  /* TipTapEditor/assets/editor.css defines its own, so far purely light --ev-* palette in an own :root block (add-on file). Since CSS custom
     properties always win from the nearest defining ancestor in the DOM (not by file order), this declaration overrides the --ev-* values for every
     element below .cheshire-wrap.cheshire-dark (the TipTap toolbar/editor area always sits there), without touching the add-on file itself. The few
     additionally hard-coded (non-var) light colors in editor.css (e.g. blockquote/table head/code block language select) are handled separately
     in editor.css under an own .cheshire-dark section (the add-on stays functional on its own without the Cheshire core).
     @see addons/TipTapEditor/assets/editor.css */
  --ev-bg:#15171c;
  --ev-card:#1f232b;
  --ev-text:#e7e9ec;
  --ev-muted:#aab0bd;
  --ev-border:#2b313d;
  --ev-border-st:#6e7484;
  --ev-hover:#232a37;
  --ev-accent-soft:#15301f;
  --ev-accent-dark:#5fe08a;
  --ev-code-bg:#232a37;
  --ev-shadow:0 8px 28px rgba(0,0,0,.6);
  --ev-shadow-sm:0 2px 10px rgba(0,0,0,.5);
}

/* Template catalog: generalized, theme-independent version of the 2-column grid from templates/themes/support/thread_show.htt (there still
   named support-specific). Lives here in the common file (loaded by all 4 themes), so EVERY page in EVERY theme can use the "sidebar right"
   template by class name without duplicating CSS -- uses the same CSS variables every theme already defines (--cheshire-surface/-border-strong/
   -radius/...). templates/themes/support/thread_show.htt stays unchanged (own, already productive classes) -- this template is meant for NEW
   pages, first pilot: profile view.
   @see docs/Cheshire_Baukasten_v2_Grobplan.md section 3 (module C) */
/* gap raised from 1.2rem to 2rem -- affects all users of this template (Filebase, profile pilot), since .flb-detail (unlike a post card) has
   no border/background of its own and the narrower gap looked tighter than the identical value in the support theme thread view
   (.cheshire-support-thread-grid, own unchanged class -- still 1.2rem there, see assets/themes/support.css). */
.cheshire-schablone-sidebar-right{display:grid;grid-template-columns:1fr 280px;gap:2rem;align-items:start}
.cheshire-schablone-main{min-width:0}
.cheshire-schablone-sidebar{display:flex;flex-direction:column;gap:1rem;position:sticky;top:1rem}
.cheshire-schablone-sidebar-card{background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#ddd);border-radius:var(--cheshire-radius,8px);padding:.9rem 1rem}
.cheshire-schablone-sidebar-card h2{margin:0 0 .6rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--cheshire-text-muted,#666)}
.cheshire-schablone-sidebar-card dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.3rem .6rem;font-size:.83rem}
.cheshire-schablone-sidebar-card dt{color:var(--cheshire-text-muted,#666)}
.cheshire-schablone-sidebar-card dd{margin:0;text-align:right;color:var(--cheshire-text,#333)}
/* Forms only (.flb-form): limit the main column to a sensible width instead of the full grid width (1fr) -- the sidebar stays 280px, other
   users of the template (detail page, profile pilot) are not affected by this rule. */
/* This rule has 2 classes in the selector (.flb-form .cheshire-schablone-sidebar-right) and thus higher specificity than the
   @media(max-width:960px) collapse rule below (only 1 class) -- regardless of CSS order the more specific rule wins, so the 960px rule never
   applied to Filebase forms and the 2 columns stayed forced side by side on every viewport. Fix: this width setting now only applies above the
   collapse breakpoint, below it the general 1fr rule can apply again. */
@media (min-width:961px){
  .flb-form .cheshire-schablone-sidebar-right,.shr-form .cheshire-schablone-sidebar-right{grid-template-columns:minmax(0,760px) 280px}
}
/* The 2rem gap alone was not enough, since .flb-detail (unlike the sidebar cards) had no border/background area of its own -- the main column
   now gets the same card look as .cheshire-schablone-sidebar-card, so the separation of the 2 columns is clearly visible. */
/* Background on --cheshire-surface-alt (with a visibly offset fallback grey) instead of --cheshire-surface: the fallback (#fff) of the latter is in
   EVERY theme with a light mode identical to the page background color (the page itself is white/transparent), and --cheshire-surface is not defined in
   the light-mode :root of the theme CSS files at all (only in .cheshire-dark), so the fallback practically always applies -- the main column thus NEVER
   had a visible surface contrast to the page, only the thin 1px border, which together with the empty grid gap was hardly noticeable and looked like
   one continuous surface with the sidebar. With surface-alt there is always a clear surface difference to the (white) page, regardless of whether the
   theme sets its own variables. */
.flb-detail .cheshire-schablone-main,.shr-detail .cheshire-schablone-main{background:var(--cheshire-surface-alt,#f2f4f8);border:1px solid var(--cheshire-border-strong,#d3d8de);border-radius:var(--cheshire-radius,8px);padding:1rem 1.2rem}
@media (max-width:960px){
  .cheshire-schablone-sidebar-right{grid-template-columns:1fr}
  .cheshire-schablone-sidebar{position:static}
}

/* Second template "card grid": categories/topics as tiles instead of list rows, like Discourse/Reddit. Same principle as above: ready-made,
   theme-independent CSS classes, no new markup system -- a page uses this template simply by giving its list these classes. Not yet wired to a use
   case (no pilot) -- pure provision of the template, analogous to the sidebar-right template above. */
.cheshire-schablone-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}
.cheshire-schablone-card{background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border-strong,#ddd);border-radius:var(--cheshire-radius,8px);padding:1rem;display:flex;flex-direction:column;gap:.4rem;transition:box-shadow .15s,transform .15s}
.cheshire-schablone-card:hover{box-shadow:var(--cheshire-shadow-md,0 2px 10px rgba(0,0,0,.08));transform:translateY(-1px)}
.cheshire-schablone-card h3{margin:0;font-size:.95rem;font-weight:600}
.cheshire-schablone-card h3 a{color:inherit;text-decoration:none}
.cheshire-schablone-card p{margin:0;font-size:.83rem;color:var(--cheshire-text-muted,#666);flex:1}
.cheshire-schablone-card .cheshire-schablone-card-meta{display:flex;gap:.6rem;font-size:.78rem;color:var(--cheshire-text-muted,#666);border-top:1px solid var(--cheshire-border,#eee);padding-top:.5rem;margin-top:.2rem}


/* Member/team list (/members, /team): uses .cheshire-top-section/-period; fixed width against a jumping breadcrumb */
.cheshire-wrap-full{width:100%}
.cheshire-members-filter{display:flex;gap:.5rem;flex-wrap:wrap;margin:.8rem 0}
.cheshire-members-filter input[type=search]{width:14rem;max-width:100%}
.cheshire-members-filter select{width:auto}
.cheshire-members-table{width:100%;border-collapse:collapse}
.cheshire-members-table th,.cheshire-members-table td{padding:.45rem .6rem;text-align:left;border-bottom:1px solid var(--cheshire-border,#eee)}
.cheshire-members-table a,.cheshire-team-card h3 a{color:var(--cheshire-brand-text,var(--cheshire-primary,#2E4057));text-decoration:none;font-weight:600}
.cheshire-members-table a:hover,.cheshire-team-card h3 a:hover{text-decoration:underline}
.cheshire-members-avatar,.cheshire-team-avatar{border-radius:50%;object-fit:cover}
/* Member list on mobile (datatable principle): hide unimportant columns -- p3 (registered, last visit) goes first, p2 (group, posts) next;
   avatar + name always stay. */
.cheshire-members-filter select{max-width:100%}
.cheshire-members-table td:nth-child(2){overflow-wrap:anywhere}
@media (max-width:800px){ .cheshire-members-table .cheshire-col-p3{display:none} }
@media (max-width:480px){
  .cheshire-members-table .cheshire-col-p2{display:none}
  .cheshire-members-filter input[type=search],.cheshire-members-filter select,.cheshire-members-filter button{flex:1 1 100%;width:100%;box-sizing:border-box}
}
.cheshire-team-group h2{font-size:1.2rem;margin:1.5rem 0 .6rem}
.cheshire-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.cheshire-team-card h3{margin:.4rem 0 .2rem;font-size:1.05rem}
.cheshire-team-role{font-weight:600;margin:.2rem 0}
.cheshire-team-tasks,.cheshire-team-forums{font-size:.88rem;color:var(--cheshire-text-muted,#666);margin:.3rem 0}

/* Maintenance/gate card: same width/typography as the login page */
.cheshire-gate-card{max-width:560px;background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#eee);border-radius:8px;padding:1.2rem 1.5rem}
.cheshire-gate-card .cheshire-top-periods{margin-top:1rem}

/* Gate (gate.htt): notice/error pages, card = .cheshire-gate-card */
.cheshire-gate .cheshire-gate-card{margin-left:auto;margin-right:auto}
.cheshire-gate-card h1{margin-top:0}
.cheshire-gate-form{margin-top:.8rem}
.cheshire-gate-check{display:block;margin:.8rem 0}
/* Permalink icon in the post head */
.cheshire-btn-permalink{background:none;border:0;padding:0 .25rem;margin-left:.3rem;cursor:pointer;font-size:.85rem;opacity:.6;color:inherit}
.cheshire-btn-permalink:hover{opacity:1}

.cheshire-pm-add{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-top:.5rem}
.cheshire-pm-add small{opacity:.7;width:100%}
.cheshire-pm-del{display:inline;margin-left:.4rem}.cheshire-pm-del button{background:none;border:0;cursor:pointer;opacity:.6;padding:0;font-size:.8rem}.cheshire-pm-del button:hover{opacity:1}
.cheshire-pm-contacts{margin:.4rem 0 .8rem}.cheshire-pm-contacts summary{cursor:pointer}.cheshire-pm-contact-list{display:flex;flex-wrap:wrap;gap:.3rem .9rem;max-height:10rem;overflow:auto;padding:.5rem 0}.cheshire-pm-contact{display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem}

/* Align the reply form with "New thread". Cause: ".cheshire-quick-reply button" also colored the editor toolbar buttons large/blue (now only
   .cheshire-reply-actions). Dropzone as a narrow row, so it is not mistaken for the text field. */
.cheshire-dropzone.dropzone{min-height:0;padding:.4rem .8rem;max-width:32rem;border-width:1px}
.cheshire-dropzone.dropzone .dz-message{margin:.4rem 0;font-size:.85rem}
.cheshire-quick-reply .cheshire-editor-toolbar button{margin-top:0;padding:.25rem .5rem;background:var(--cheshire-surface-alt,#f5f5f5);color:inherit;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:3px}
/* More compact post display, especially around code blocks. */
.cheshire-post-body p{margin:0 0 .6em}
.cheshire-post-body .cheshire-code{margin:.4em 0 .6em;padding:.6rem .8rem;line-height:1.35}
.cheshire-post-body .cheshire-code code{line-height:inherit}

/* Bulk selection in the PM overview */
.cheshire-pm-rowwrap{display:flex;align-items:center;gap:.5rem}
.cheshire-pm-rowwrap .cheshire-pm-row{flex:1;min-width:0}
.cheshire-pm-sel{flex:0 0 auto;margin-left:.4rem}
.cheshire-pm-bulkbar{display:flex;align-items:center;gap:1rem;padding:.6rem .8rem;border-top:1px solid var(--cheshire-border,#eee)}

/* Mobile polish: form fields/editor shells no longer burst the viewport; long words/code in posts wrap; PM trash buttons compact. */
.cheshire-wrap form, .cheshire-wrap textarea, .cheshire-wrap input[type=text],
.cheshire-editor-toolbar, .cheshire-dropzone { box-sizing: border-box; max-width: 100%; min-width: 0; }
.cheshire-post-body, .cheshire-post-content { overflow-wrap: anywhere; }
.cheshire-post-body img, .cheshire-post-body table, .cheshire-post-body pre,
.cheshire-post-content img, .cheshire-post-content table, .cheshire-post-content pre { max-width: 100%; }
.cheshire-post-body pre, .cheshire-post-content pre, .cheshire-post-body table, .cheshire-post-content table { overflow-x: auto; }
@media (max-width: 640px) {
  .cheshire-pm-row .cheshire-pm-date { white-space: nowrap; }
  .cheshire-pm-row form { display: inline-block; margin: 0; }
  .cheshire-pm-row form button { white-space: nowrap; font-size: .8rem; padding: .3rem .5rem; }
  .cheshire-pm-trash-empty button, .cheshire-topbar a, .cheshire-badge { white-space: nowrap; }
}

/* Closed text (BBCode) */
.cheshire-closed-msg{margin:.6rem 0;overflow-wrap:anywhere}
.cheshire-closed-msg>:first-child{margin-top:0}
.cheshire-closed-msg>:last-child{margin-bottom:0}
.cheshire-legal-text{overflow-wrap:anywhere}

/* Notices/labels in the moderation card (move thread) */
.cheshire-move-hint{font-size:.78rem;color:var(--cheshire-text-muted,#4a5563);margin:.4rem 0 0}
.cheshire-move-label{display:block;font-size:.8rem;color:var(--cheshire-text-muted,#4a5563);margin-bottom:.2rem}

/* @mention in the post */
a.cheshire-mention{font-weight:600;text-decoration:none;padding:0 .25em;border-radius:3px;background:rgba(61,107,140,.14)}
a.cheshire-mention:hover{text-decoration:underline}

/* PM buttons equal width, long subjects/names with ellipsis (full text as tooltip), trash actions in an own row, selects stay in the card.
   @see PmController.php, SubscriptionController.php */
.cheshire-pm-nav a.cheshire-pm-new{margin-left:0}
.cheshire-pm-side .cheshire-pm-nav .cheshire-pm-tab,.cheshire-pm-side .cheshire-pm-nav .cheshire-pm-new{display:block;width:100%;box-sizing:border-box;text-align:left}
.cheshire-pm-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto}
.cheshire-pm-row>*{min-width:0}
.cheshire-pm-partner,.cheshire-pm-subject{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-pm-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}
.cheshire-pm-actions form{display:inline-block;margin:0}
.cheshire-pm-actions button{white-space:nowrap}
.cheshire-pm-subject-divider span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-pm-msg{overflow-wrap:anywhere}
.cheshire-settings-box select,.cheshire-digest-freq select{max-width:100%;box-sizing:border-box}

/* PM "new message"/conversation two-column; contacts card, cancel next to send. @see pm_compose.htt, pm_thread.htt */
.cheshire-pm-pick{margin:.8rem 0;padding:.8rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border,#eee);border-radius:10px}
.cheshire-pm-pick h3{margin:0 0 .5rem;font-size:.95rem}
.cheshire-pm-pick-list{display:flex;flex-direction:column;gap:.15rem;max-height:16rem;overflow-y:auto}
.cheshire-pm-pick-item{display:flex;align-items:center;gap:.4rem;font-size:.88rem;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cheshire-pm-pick-empty{margin:0;font-size:.85rem;color:var(--cheshire-text-muted,#666)}
.cheshire-pm-form-actions{display:flex;align-items:center;gap:1rem}
.cheshire-pm-cancel{font-size:.9rem}
@media (max-width:860px){.cheshire-pm-layout-compose .cheshire-pm-side{order:2}}

/* Drop zone image upload: see assets/cheshire.js [data-droparea]; Filebase + Showroom */
.cheshire-droparea{position:relative;border:2px dashed var(--cheshire-border,#b9c2d0);border-radius:8px;padding:1rem;text-align:center;cursor:pointer;background:var(--cheshire-surface-alt,transparent);transition:border-color .15s,background .15s}
.cheshire-droparea:hover,.cheshire-droparea.is-over{border-color:var(--cheshire-primary,#0a3fa8);background:rgba(10,63,168,.06)}
.cheshire-droparea input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;left:50%;bottom:0}
.cheshire-droparea-hint{color:var(--cheshire-text-muted,#666);font-size:.9rem}
.cheshire-droparea-previews{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:.6rem}
.cheshire-droparea-previews:empty{display:none}
.cheshire-droparea-item{position:relative}
.cheshire-droparea-item img{width:96px;height:72px;object-fit:cover;border-radius:4px;display:block}
.cheshire-droparea-remove{position:absolute;top:-6px;right:-6px;width:20px;height:20px;line-height:18px;padding:0;border:0;border-radius:50%;background:#c0392b;color:#fff;cursor:pointer;font-size:14px}
.cheshire-droparea-error{display:none;margin-top:.5rem;padding:.3rem .5rem;font-size:.85rem;color:#8a1f11;background:#fdecea;border:2px solid #c0392b;border-radius:4px;text-align:left}
.cheshire-wrap.cheshire-dark .cheshire-droparea-error{color:#ffb4a8;background:rgba(192,57,43,.18)}
.cheshire-existing-images{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:.8rem}
.cheshire-existing-image{text-align:center}
.cheshire-existing-image img{width:96px;height:72px;object-fit:cover;border-radius:4px;display:block;margin-bottom:.2rem}
.cheshire-droparea-file{display:inline-block;padding:.3rem .6rem;border:1px solid var(--cheshire-border,#ccc);border-radius:4px;font-size:.88rem;background:var(--cheshire-surface,#fff)}
.cheshire-droparea-item:has(.cheshire-droparea-file) .cheshire-droparea-remove{top:-8px;right:-8px}

/* WCAG 2.4.1 (bypass blocks) / 2.4.7 (focus visible): skip link visible on focus only; global focus ring for keyboard users. Colors via
   variables, so themes/dark mode can adjust them. */
.cheshire-skip-link{position:absolute;left:.5rem;top:-4rem;z-index:10000;padding:.55rem 1rem;background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#12161c);border:2px solid var(--cheshire-focus-color,#0b57d0);border-radius:6px;font-weight:600;text-decoration:none;transition:top .1s}
.cheshire-skip-link:focus{top:.5rem}
#cheshire-main:focus{outline:none}
.cheshire-wrap a:focus-visible,
.cheshire-wrap button:focus-visible,
.cheshire-wrap input:focus-visible,
.cheshire-wrap select:focus-visible,
.cheshire-wrap textarea:focus-visible,
.cheshire-wrap summary:focus-visible,
.cheshire-wrap [tabindex]:focus-visible,
#cheshire-standalone-main a:focus-visible,
#cheshire-standalone-main button:focus-visible,
#cheshire-standalone-main input:focus-visible,
#cheshire-standalone-main select:focus-visible,
#cheshire-standalone-main textarea:focus-visible,
#cheshire-standalone-main summary:focus-visible,
.cheshire-support-search:focus-within{outline:3px solid var(--cheshire-focus-color,#0b57d0);outline-offset:2px}
/* #1281: slim focus frame around editor/drop area (2px, inside; WCAG 2.4.7/1.4.11 still met) */
.cheshire-droparea:focus-within{outline:2px solid var(--cheshire-focus-color,#0b57d0);outline-offset:-2px}
.cheshire-droparea .ev-prose:focus-visible{outline:none}
.cheshire-dark{--cheshire-focus-color:#8ab4f8}

/* WCAG 2.3.3 / 2.2.2: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .cheshire-wrap *, .cheshire-wrap *::before, .cheshire-wrap *::after,
    #cheshire-standalone-main *, .shr-page *, .flb-page * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === Profile details (forum form + profile), @see Services/ProfileFields.php === */
.cheshire-profile-req{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid var(--cheshire-border-strong,#ccc);border-radius:6px;background:var(--cheshire-surface-alt,#f7f8fa)}
.cheshire-profile-req legend{padding:0 .4rem;font-weight:600}
.cheshire-profile-req-row{margin:.5rem 0}
.cheshire-profile-req-row select{max-width:100%}
.cheshire-profile-req-note,.cheshire-profile-req-help{display:block;font-size:.82rem;color:var(--cheshire-text-muted,#666)}
.cheshire-profile-req-stale{padding:.4rem .6rem;border-left:3px solid var(--cheshire-accent,#3D6B8C);background:var(--cheshire-surface,#fff)}
.cheshire-profile-fields{margin:1rem 0}
.cheshire-profile-fields-list{list-style:none;margin:0 0 .6rem;padding:0}
.cheshire-profile-fields-item{padding:.25rem 0;border-bottom:1px solid var(--cheshire-border,#e0e0e0)}
.cheshire-profile-fields-private{color:var(--cheshire-text-muted,#666)}
.cheshire-profile-fields-row{margin:.6rem 0}

/* === Profile: environment details as chips (linked to /tag/<slug>) === */
.cheshire-profile-chips{display:flex;flex-wrap:wrap;gap:.3rem;margin:.4rem 0}
.cheshire-profile-chip{font-weight:400;font-size:.8rem}
.cheshire-profile-chip strong{font-weight:700}
.cheshire-profile-fields h3{margin:0 0 .4rem;font-size:.95rem}

/* BBCode paragraphs (instead of <br><br>), spacing stylable via CSS */
.cheshire-bb-p{margin:0 0 .75em}
.cheshire-bb-p:last-child{margin-bottom:0}

/* Warning in the post button bar (popover) */
.cheshire-post-actions .cheshire-mod-warn-details{display:inline-block;position:relative;margin:0 0 0 .3rem;vertical-align:middle}
.cheshire-post-actions .cheshire-mod-warn-details[open] .cheshire-mod-warn-toggle{margin-bottom:0}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form{position:absolute;right:0;bottom:calc(100% + .3rem);z-index:20;min-width:16rem;padding:.6rem;background:var(--cheshire-surface,#fff);border:1px solid var(--cheshire-border,#ddd);border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.18)}

/* Forum overview -- fixed columns (every row is its own grid, "auto" gave different widths), plus button as a fixed slot with high contrast. Desktop only. */
@media (min-width:701px){
    .cheshire-forum-row{grid-template-columns:auto 2rem 1fr 19rem 11rem}
    .cheshire-forum-meta{display:flex;gap:.5rem;justify-content:flex-end;align-items:center}
    .cheshire-forum-status-badges{flex:1 1 auto;justify-content:flex-end}
    .cheshire-forum-stats{flex:0 0 10.5rem}
    .cheshire-forum-new-slot{flex:0 0 1.6rem;display:inline-flex;justify-content:center}
}
.cheshire-forum-new-icon{margin-left:0;width:1.5rem;height:1.5rem;font-size:1.1rem;font-weight:700;background:var(--cheshire-primary,#2E4057);color:#fff;border:2px solid var(--cheshire-primary,#2E4057)}
.cheshire-forum-new-icon:hover{background:#fff;color:var(--cheshire-primary,#2E4057)}

/* Thread list -- fixed columns, button bar (edit/pin/close/delete) right-aligned on one line. */
@media (min-width:701px){
    .cheshire-thread-row{grid-template-columns:1fr 15rem 13rem 9.5rem}
    .cheshire-thread-meta{display:flex;gap:.5rem;justify-content:flex-end;align-items:center}
    .cheshire-thread-actions{display:flex;gap:.25rem;justify-content:flex-end;align-items:center}
    .cheshire-thread-actions form{display:inline-flex;margin:0}
}

/* Post head set off more strongly from the page background; fine print with more contrast. Colors via theme setting
   (--cheshire-post-head-bg/-border/-text), empty = these default values. */
.cheshire-post{border-color:var(--cheshire-post-head-border,var(--cheshire-border,#c5ccd6))}
.cheshire-post-author{background:var(--cheshire-post-head-bg,var(--cheshire-surface-alt,#e9edf3));border-bottom:1px solid var(--cheshire-post-head-border,var(--cheshire-border,#c5ccd6))}
.cheshire-post-author-meta,.cheshire-post-date,.cheshire-post-author .cheshire-edited,.cheshire-post-edited-line .cheshire-edited{color:var(--cheshire-post-head-text,#505a68)}
.cheshire-dark .cheshire-post-author-meta,.cheshire-dark .cheshire-post-date,.cheshire-dark .cheshire-post-author .cheshire-edited,.cheshire-dark .cheshire-post-edited-line .cheshire-edited{color:var(--cheshire-post-head-text,#b9c2cf)}

/* Appearance per member (user_appearance.htt) */
.cheshire-appearance-opt { display: block; padding: .35rem 0; cursor: pointer; }
.cheshire-appearance-opt input { margin-right: .5rem; }

/* Settings shell (side navigation left, content right) */
.cheshire-settings-shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.cheshire-settings-nav { display: flex; flex-direction: column; gap: 1rem; }
.cheshire-settings-nav-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-bottom: .25rem; }
.cheshire-settings-nav a { display: block; padding: .4rem .7rem; border-radius: 6px; text-decoration: none; color: inherit; }
.cheshire-settings-nav a:hover { background: rgba(127, 127, 127, .12); }
.cheshire-settings-nav a.is-active { background: var(--cheshire-primary, #2E4057); color: #fff; font-weight: 600; }
.cheshire-settings-main .cheshire-auth-form { max-width: none; margin: 0; }
/* Settings pages: checkbox/radio not 100% wide, environment/appearance/subscriptions single-column */
.cheshire-settings-main .cheshire-auth-form input[type=checkbox],.cheshire-settings-main .cheshire-auth-form input[type=radio]{width:auto;padding:0;margin:0;flex:none}
.cheshire-settings-main .cheshire-auth-form label.cheshire-appearance-opt,.cheshire-settings-main .cheshire-profile-fields-pub{display:flex;align-items:center;gap:.5rem;font-weight:400;margin:.4rem 0}
.cheshire-settings-main .cheshire-profile-fields-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.3rem 1.25rem;margin:.9rem 0}
.cheshire-settings-main .cheshire-profile-fields-row select{min-width:12rem}
.cheshire-settings-main .cheshire-profile-fields-pub{margin:0 0 .45rem}
.cheshire-settings-main .cheshire-profile-req-help{flex-basis:100%}
.cheshire-settings-main .cheshire-settings-grid{grid-template-columns:minmax(0,1fr);max-width:46rem}
.cheshire-settings-main .cheshire-settings-box select{width:auto;max-width:100%}
.cheshire-settings-main .cheshire-settings-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.5rem}
.cheshire-settings-main .cheshire-settings-row input[type=text],.cheshire-settings-main .cheshire-settings-row input[type=password]{flex:1 1 12rem;width:auto}
@media (max-width:640px){.cheshire-settings-main .cheshire-profile-fields-row select{min-width:0;width:100%}}
@media (max-width: 700px) {
    .cheshire-settings-shell { grid-template-columns: minmax(0, 1fr); }
    .cheshire-settings-main { min-width: 0; }
    .cheshire-settings-main .cheshire-auth-form { padding: 1rem; }
    .cheshire-settings-main .cheshire-settings-row input[type=text], .cheshire-settings-main .cheshire-settings-row input[type=password] { flex-basis: 100%; }
    .cheshire-settings-nav { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
    .cheshire-settings-nav-group { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
    .cheshire-settings-nav-title { width: 100%; }
}

/* Header area + cards of the settings pages */
.cheshire-settings-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid rgba(127, 127, 127, .3); border-radius: 10px; }
.cheshire-settings-head-avatar .cheshire-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.cheshire-settings-head-info { flex: 1; min-width: 12rem; }
.cheshire-settings-head-stats span { margin-right: .9rem; font-size: .85rem; opacity: .75; }
.cheshire-settings-card { border: 1px solid rgba(127, 127, 127, .3); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.cheshire-settings-card h2 { margin-top: 0; font-size: 1.1rem; }
.cheshire-settings-card textarea { width: 100%; box-sizing: border-box; }
.cheshire-settings-card .cheshire-tab-toggles label { display: block; padding: .25rem 0; }

/* Library: manual tiles + meta row */
.cheshire-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;margin:1rem 0}
.cheshire-library-tile{display:flex;flex-direction:column;gap:.35rem;padding:1rem 1.1rem;background:var(--cheshire-surface-alt,#f9fafb);border:1px solid var(--cheshire-border,#e1e4e8);border-radius:var(--cheshire-radius,8px);text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.cheshire-library-tile:hover,.cheshire-library-tile:focus-visible{border-color:var(--cheshire-primary,#6a4c93);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.cheshire-library-icon{font-size:1.8rem;line-height:1}
.cheshire-library-name{font-weight:700;font-size:1.05rem}
.cheshire-library-desc{font-size:.88rem;color:var(--cheshire-text-muted,#666)}
.cheshire-library-meta{font-size:.78rem;color:var(--cheshire-text-faint,#999)}

/* Library: subcategories */
.cheshire-help-subcat{margin:.8rem 0 0 .6rem;padding-left:.8rem;border-left:3px solid var(--cheshire-border,#ddd)}
.cheshire-help-subcat h3{margin:0 0 .4rem;font-size:.98rem}

/* Library: media */
.cheshire-help-figure{margin:1rem 0}
.cheshire-help-figure img{max-width:100%;height:auto;border:1px solid var(--cheshire-border,#ddd);border-radius:4px}
.cheshire-help-figure figcaption{font-size:.85rem;color:var(--cheshire-text-muted,#777);margin-top:.3rem}

/* Library: quick start */
.cheshire-help-steps{margin:.4rem 0 1rem 1.4rem;padding:0}
.cheshire-help-steps li{margin:.25rem 0}
.cheshire-help-path-meta{margin:.2rem 0 .4rem;font-size:.88rem}
.cheshire-help-progress{margin:0 0 1rem;font-size:.85rem}
.cheshire-help-progress progress{display:block;width:100%;max-width:420px;height:.6rem;margin-top:.25rem}
.cheshire-help-stepnav{display:flex;justify-content:space-between;gap:1rem;margin:1.5rem 0 .5rem;padding-top:.8rem;border-top:1px solid var(--cheshire-border,#ddd)}
.cheshire-help-done{font-weight:bold}

/* Search: date and hit highlighting */
.cheshire-search-date{font-size:.78rem;color:var(--cheshire-text-muted,#666);margin-left:.4rem;white-space:nowrap}
.cheshire-search-hit{background:#ffe58a;color:#222;padding:0 .12em;border-radius:3px}

/* Settings shell: profile head spans both columns, navigation as a white card */
.cheshire-settings-shell > .cheshire-settings-head { grid-column: 1 / -1; margin: 0; padding: .7rem 1rem; background: var(--cheshire-surface, #fff); border: 1px solid var(--cheshire-border-strong, #ddd); border-radius: 10px; }
.cheshire-settings-shell > .cheshire-settings-head .cheshire-avatar-img { width: 48px; height: 48px; }
.cheshire-settings-nav { background: var(--cheshire-surface, #fff); border: 1px solid var(--cheshire-border-strong, #ddd); border-radius: 10px; padding: .9rem; }
@media (max-width: 640px) {
    .cheshire-settings-shell > .cheshire-settings-head { padding: .5rem .75rem; gap: .6rem; }
    .cheshire-settings-shell > .cheshire-settings-head .cheshire-avatar-img { width: 36px; height: 36px; }
    .cheshire-settings-head-stats { display: none; }
    .cheshire-settings-head-info { min-width: 0; }
    .cheshire-settings-nav { padding: .6rem; }
}

/* Uniform cards/buttons on all settings pages */
.cheshire-settings-main h1 { margin-top: 0; }
.cheshire-settings-main .cheshire-settings-card, .cheshire-settings-main .cheshire-settings-box { background: var(--cheshire-surface, #fff); border: 1px solid var(--cheshire-border-strong, #ddd); border-radius: 10px; padding: 1rem 1.25rem; }
.cheshire-settings-main .cheshire-settings-card button, .cheshire-settings-main .cheshire-settings-box button { margin-top: .8rem; padding: .6rem 1.2rem; background: var(--cheshire-primary, #2E4057); color: #fff; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; }
.cheshire-settings-main .cheshire-settings-card button:disabled { opacity: .5; cursor: not-allowed; }
.cheshire-settings-main .cheshire-settings-card .cheshire-avatar-edit-form label { display: block; margin: .6rem 0 .2rem; }
.cheshire-settings-main .cheshire-settings-card input[type=checkbox] { width: auto; margin-right: .4rem; }

/* Uniform frame for ALL settings pages (title inside the frame, sections separated by lines only). :where() = specificity 0 -> modern/support
   frames (own rounding/shadow) keep precedence. */
:where(.cheshire-settings-main) .cheshire-auth-form { background: var(--cheshire-surface, #fff); border: 1px solid var(--cheshire-border-strong, #ddd); border-radius: 10px; padding: 1.25rem 1.5rem; box-sizing: border-box; }
.cheshire-settings-main .cheshire-auth-form .cheshire-settings-card,
.cheshire-settings-main .cheshire-auth-form .cheshire-settings-box { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 1.25rem; box-shadow: none; }
.cheshire-settings-main .cheshire-auth-form > .cheshire-settings-card ~ .cheshire-settings-card,
.cheshire-settings-main .cheshire-auth-form > .cheshire-settings-grid ~ .cheshire-settings-box { border-top: 1px solid var(--cheshire-border, #e5e5e5); padding-top: 1.25rem; }
.cheshire-settings-main .cheshire-auth-form .cheshire-settings-card:last-child,
.cheshire-settings-main .cheshire-auth-form .cheshire-settings-box:last-child { margin-bottom: 0; }

/* Sidebar card "environment details" = same heading/spacing as "quick access" */
.cheshire-schablone-sidebar-card .cheshire-profile-fields { margin: 0; }

/* Public profile view in the white container */
.cheshire-profile-container { background: var(--cheshire-surface, #fff); border: 1px solid var(--cheshire-border-strong, #ddd); border-radius: 10px; padding: 1.25rem; }
@media (max-width: 640px) { .cheshire-profile-container { padding: .75rem; } }

/* Jump bar/status row visible in the classic theme only (see themes/classic.css) */
.cheshire-jumpbar,.cheshire-statusline{display:none}

/* Search tips legend (collapsible), palette derived from the primary color */
.cheshire-search-legend{margin:.3rem 0 1rem;font-size:.9rem}
.cheshire-search-legend>summary{cursor:pointer;color:var(--cheshire-primary,#2E4057);font-weight:600;list-style:none;display:inline-block}
.cheshire-search-legend>summary::-webkit-details-marker{display:none}
.cheshire-search-legend>summary::before{content:"\25B8";display:inline-block;margin-right:.35rem;transition:transform .15s}
.cheshire-search-legend[open]>summary::before{transform:rotate(90deg)}
.cheshire-search-legend-box{margin-top:.5rem;padding:.6rem;background:var(--cheshire-surface-alt,#f4f4f4);border-left:4px solid var(--cheshire-primary,#2E4057);border-radius:4px}
.cheshire-search-legend-box table{width:100%;border-collapse:collapse;background:var(--cheshire-surface,#fff)}
.cheshire-search-legend-box th,.cheshire-search-legend-box td{padding:.45rem .7rem;text-align:left;vertical-align:middle}
.cheshire-search-legend-box th{width:9rem;font-weight:400;color:var(--cheshire-text-faint,#666)}
.cheshire-search-legend-box tr:nth-child(even){background:var(--cheshire-surface-alt,#f4f4f4)}
.cheshire-search-legend-box code{font-family:ui-monospace,Consolas,monospace;padding:.1rem .45rem;border-radius:3px;color:var(--cheshire-primary,#2E4057);background:color-mix(in srgb,var(--cheshire-primary,#2E4057) 8%,transparent);border:1px solid color-mix(in srgb,var(--cheshire-primary,#2E4057) 30%,transparent)}
@media (max-width:640px){.cheshire-search-legend-box th,.cheshire-search-legend-box td{display:block;width:auto}.cheshire-search-legend-box th{padding-bottom:0}}

/* PM notice -- colored button (color from the profile, --cheshire-pm-alert), optional pulse, slide-in banner */
.cheshire-btn-pm.cheshire-pm-alert{background:var(--cheshire-pm-alert,#E67E22)!important;border-color:var(--cheshire-pm-alert,#E67E22)!important;color:#fff!important;font-weight:600}
.cheshire-btn-pm.cheshire-pm-alert .cheshire-pm-badge-topbar{background:#fff;color:#222}
.cheshire-btn-pm.cheshire-pm-pulse{animation:cheshire-pm-pulse 2s ease-in-out infinite}
@keyframes cheshire-pm-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--cheshire-pm-alert,#E67E22) 55%,transparent)}50%{box-shadow:0 0 0 6px transparent}}
@media (prefers-reduced-motion:reduce){.cheshire-btn-pm.cheshire-pm-pulse{animation:none}}
.cheshire-pm-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.6rem 0;padding:.6rem 1rem;background:color-mix(in srgb,var(--cheshire-pm-alert,#E67E22) 14%,var(--cheshire-surface,#fff));border:1px solid var(--cheshire-pm-alert,#E67E22);border-left-width:5px;border-radius:6px;color:var(--cheshire-text,#222)}
.cheshire-pm-banner a{flex:1;color:inherit;font-weight:600;text-decoration:none}
.cheshire-pm-banner a:hover{text-decoration:underline}
.cheshire-pm-banner-close{background:none;border:0;font-size:1.3rem;line-height:1;cursor:pointer;color:inherit;padding:0 .3rem}

/* PM conversation -- actions + add participants as a "conversation" card in the right column; link "all messages" as a pill.
   @see pm_thread.htt, PmController::thread() */
.cheshire-pm-convo-card .cheshire-pm-partner-actions{flex-direction:column;align-items:stretch;gap:.4rem;margin:0 0 .8rem}
.cheshire-pm-convo-card .cheshire-pm-partner-actions form{display:block!important;margin:0}
.cheshire-pm-convo-card .cheshire-pm-partner-actions button,.cheshire-pm-convo-card .cheshire-pm-partner-actions a{display:block;width:100%;box-sizing:border-box;text-align:left}
.cheshire-pm-partner-btn-danger{color:var(--cheshire-danger,#b3261e)}
.cheshire-pm-add label{display:block;margin:0 0 .4rem;font-size:.9rem}
.cheshire-pm-add input[type=text]{display:block;width:100%;box-sizing:border-box;margin-top:.25rem}
.cheshire-pm-add button{display:block;width:100%;box-sizing:border-box;text-align:left}
.cheshire-pm-add small{display:block;margin-top:.4rem;font-size:.8rem;color:var(--cheshire-text-muted,#666)}
.cheshire-pm-all-link{margin:0 0 .8rem}
.cheshire-pm-all-link a{display:inline-block;padding:.3rem .7rem;border:1px solid var(--cheshire-border,#ddd);border-radius:999px;background:var(--cheshire-surface-alt,#f5f5f5);color:inherit;text-decoration:none;font-size:.9rem}
.cheshire-pm-all-link a:hover{border-color:var(--cheshire-primary,#3d6b8c)}

/* PM counter in the topbar -- circle, number centered, bolder. @see Bootstrap::setGlobals() */
.cheshire-pm-badge-topbar{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:1.5rem;height:1.5rem;padding:0 .35rem;border-radius:999px;font-size:.85rem;font-weight:800;line-height:1;margin-left:.35rem;vertical-align:middle}
.cheshire-btn-pm.cheshire-pm-alert .cheshire-pm-badge-topbar{background:#fff;color:var(--cheshire-pm-alert,#E67E22);box-shadow:0 0 0 2px rgba(0,0,0,.12)}

/* Button style (member/AdminCP setting btn_style): solid = member colour optional, chip = outlined like the since-visit links.
   Applies to mark-read buttons and the portal-home buttons. Mobile: full width, centred. */
.cheshire-since-visit-markall button,.cheshire-portal-home .cheshire-portal-btn,.cheshire-portal-home-inline .cheshire-portal-btn{background:var(--cheshire-btn-bg,#2E4057);color:var(--cheshire-btn-fg,#fff)}
.cheshire-btn-chip .cheshire-since-visit-markall button,.cheshire-btn-chip .cheshire-portal-home .cheshire-portal-btn,.cheshire-btn-chip .cheshire-portal-home-inline .cheshire-portal-btn{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:34px;padding:.4rem .9rem;border:1px solid var(--cheshire-btn-bg,var(--cheshire-border-strong,#c3cbd8));border-radius:5px;background:var(--cheshire-surface,#fff);color:var(--cheshire-btn-bg,var(--cheshire-brand-text,var(--cheshire-primary,#2E4057)));font-size:.82rem;font-weight:400;line-height:1.2;text-decoration:none;cursor:pointer}
.cheshire-btn-chip .cheshire-since-visit-markall button:hover,.cheshire-btn-chip .cheshire-portal-home .cheshire-portal-btn:hover,.cheshire-btn-chip .cheshire-portal-home-inline .cheshire-portal-btn:hover{background:var(--cheshire-surface-alt,#eef2f6);color:var(--cheshire-btn-bg,var(--cheshire-brand-text,var(--cheshire-primary,#2E4057)));border-color:var(--cheshire-btn-bg,var(--cheshire-primary,#2E4057))}
.cheshire-dark.cheshire-btn-chip .cheshire-since-visit-markall button,.cheshire-dark.cheshire-btn-chip .cheshire-portal-home .cheshire-portal-btn,.cheshire-dark.cheshire-btn-chip .cheshire-portal-home-inline .cheshire-portal-btn,.cheshire-dark .cheshire-btn-chip .cheshire-since-visit-markall button{background:var(--cheshire-surface-alt,#131f33)}
@media (max-width:820px){
.cheshire-since-visit-links{display:flex;flex-direction:column;gap:.4rem}
.cheshire-since-visit-link{width:100%;box-sizing:border-box;justify-content:center;text-align:center}
.cheshire-since-visit-markall{display:block;width:100%;flex:1 1 100%;box-sizing:border-box}
.cheshire-since-visit-markall form{display:block;width:100%}
.cheshire-since-visit-markall button,.cheshire-portal-home .cheshire-portal-btn,.cheshire-portal-home-inline .cheshire-portal-btn{display:flex;width:100%;box-sizing:border-box;justify-content:center;text-align:center}
}

/* PM thread as messenger: bubbles are only as wide as their content (max 75%), others left, own messages right with a tinted bubble.
   (Before, foreign bubbles stretched to 90% while own ones shrank -- looked like uneven indentation.) */
.cheshire-pm-thread{align-items:flex-start;gap:.45rem}
.cheshire-pm-msg{width:fit-content;max-width:min(75%,680px);box-sizing:border-box;padding:.45rem .8rem;border-radius:14px 14px 14px 4px;border:1px solid var(--cheshire-border,#e6e9ee);background:var(--cheshire-surface-alt,#f4f6f8)}
.cheshire-pm-mine{align-self:flex-end;border-radius:14px 14px 4px 14px;background:color-mix(in srgb,var(--cheshire-primary,#2E4057) 9%,var(--cheshire-surface,#fff));border-color:color-mix(in srgb,var(--cheshire-primary,#2E4057) 22%,transparent)}
.cheshire-pm-subject-divider{align-self:stretch}
@media (max-width:700px){.cheshire-pm-msg{max-width:90%}}

/* PM attachment field: native file chooser styled like the forum chips (the real dropzone is only used for posts) */
.cheshire-pm-att-input{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;font-size:.85rem;color:var(--cheshire-text-muted,#666)}
.cheshire-pm-att-input input[type=file]{font-size:.8rem;max-width:100%}
.cheshire-pm-att-input input[type=file]::file-selector-button{margin-right:.6rem;padding:.3rem .8rem;border:1px solid var(--cheshire-border-strong,#c3cbd8);border-radius:8px;background:var(--cheshire-surface,#fff);color:var(--cheshire-text,#1c2430);font-size:.8rem;cursor:pointer}
.cheshire-pm-att-input input[type=file]::file-selector-button:hover{background:var(--cheshire-surface-alt,#eef2f6)}


/* PM Dropzone (attachments for new message / reply, all recipients) */
.cheshire-pm-att-label{font-size:.9rem;margin:.6rem 0 .3rem;color:var(--cheshire-text-muted,#5b6677)}
.cheshire-pm-dropzone.dropzone{min-height:0;padding:.6rem;border:1px dashed var(--cheshire-border-strong,#c3cbd8);border-radius:6px;background:transparent;color:inherit;margin-bottom:.7rem}
.cheshire-pm-dropzone.dropzone .dz-message{margin:.6rem 0;font-size:.9rem}
.cheshire-pm-dropzone.dropzone .dz-preview .dz-remove{color:inherit}
.cheshire-pm-pending{margin:.2rem 0 .4rem;padding-left:1.2rem;font-size:.85rem}
.cheshire-dark .cheshire-pm-dropzone.dropzone,.cheshire-wrap.cheshire-dark .cheshire-pm-dropzone.dropzone{border-color:rgba(255,255,255,.28);background:transparent;color:inherit}
.cheshire-dark .cheshire-pm-dropzone.dropzone .dz-message{color:inherit}
@media (max-width:820px){.cheshire-pm-dropzone.dropzone{padding:.4rem}}


/* PM messenger v2 (0.1.656): own messages right in light green, others left in light blue (same palette as the AdminCP dashboard
   --admincp-success-* / --admincp-info-*). Rows: [avatar] + column (bubble + actions). Tokens overridable by Designpacks. */
.cheshire-pm{--cheshire-pm-mine-bg:#d4edda;--cheshire-pm-mine-border:#b3dcc0;--cheshire-pm-mine-name:#256b36;--cheshire-pm-other-bg:#dceefb;--cheshire-pm-other-border:#b7dbf0;--cheshire-pm-other-name:#1d5f85}
.cheshire-pm.cheshire-dark,.cheshire-dark .cheshire-pm{--cheshire-pm-mine-bg:#15301f;--cheshire-pm-mine-border:#2c5b3a;--cheshire-pm-mine-name:#74d18f;--cheshire-pm-other-bg:#12293a;--cheshire-pm-other-border:#234a63;--cheshire-pm-other-name:#82c6ea}
.cheshire-pm-thread{align-items:stretch;gap:.15rem}
.cheshire-pm-line{display:flex;align-items:flex-end;gap:.5rem;align-self:stretch;max-width:100%;margin-top:.45rem}
.cheshire-pm-line.cheshire-pm-cont{margin-top:0}
.cheshire-pm-line-mine{justify-content:flex-end}
.cheshire-pm-col{position:relative;display:flex;flex-direction:column;min-width:0;max-width:min(75%,680px)}
.cheshire-pm-line-mine .cheshire-pm-col{align-items:flex-end}
.cheshire-pm-ava{flex:0 0 32px;width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--cheshire-surface-alt,#eef2f6);align-self:flex-start}
.cheshire-pm-ava-gap{display:block;background:none}
.cheshire-pm-msg{width:fit-content;max-width:100%;align-self:auto;box-sizing:border-box;padding:.4rem .75rem .3rem;color:var(--cheshire-text,#222);border:1px solid var(--cheshire-pm-other-border);background:var(--cheshire-pm-other-bg);border-radius:14px 14px 14px 4px;overflow-wrap:anywhere}
.cheshire-pm-msg.cheshire-pm-mine{background:var(--cheshire-pm-mine-bg);border-color:var(--cheshire-pm-mine-border);border-radius:14px 14px 4px 14px;align-self:auto}
.cheshire-pm-cont .cheshire-pm-msg{border-top-left-radius:14px}
.cheshire-pm-cont .cheshire-pm-msg.cheshire-pm-mine{border-top-right-radius:14px}
.cheshire-pm-msg-who{font-size:.8rem;font-weight:600;color:var(--cheshire-pm-other-name);margin-bottom:.1rem}
.cheshire-pm-time{font-size:.7rem;color:var(--cheshire-text-faint,#6b7686);text-align:right;margin-top:.1rem;line-height:1.2}
.cheshire-pm-msg-actions{position:absolute;bottom:.2rem;left:100%;margin-left:.45rem;white-space:nowrap;font-size:.75rem;opacity:0;transition:opacity .15s}
.cheshire-pm-line-mine .cheshire-pm-msg-actions{left:auto;right:100%;margin:0 .45rem 0 0}
.cheshire-pm-line:hover .cheshire-pm-msg-actions,.cheshire-pm-line:focus-within .cheshire-pm-msg-actions{opacity:1}
@media (hover:none){.cheshire-pm-msg-actions{opacity:.75}}
@media (max-width:700px){.cheshire-pm-msg-actions{position:static;margin:.1rem .4rem 0!important;opacity:.8}}
.cheshire-pm-msg-actions .cheshire-pm-report-link{margin-left:0}
.cheshire-pm-msg-actions .cheshire-pm-del{margin-left:.4rem}
.cheshire-pm-day{display:flex;justify-content:center;align-self:stretch;margin:.8rem 0 .3rem}
.cheshire-pm-day span{font-size:.75rem;font-weight:600;padding:.15rem .7rem;border-radius:999px;background:var(--cheshire-surface-alt,#eef2f6);border:1px solid var(--cheshire-border,#e6e9ee);color:var(--cheshire-text-muted,#5b6677)}
.cheshire-pm-att-img{max-width:100%;max-height:260px;border-radius:8px;display:block}
@media (max-width:700px){.cheshire-pm-col{max-width:88%}.cheshire-pm-ava{flex-basis:28px;width:28px;height:28px}}

/* PM form: only the submit buttons get the filled look, never the editor toolbar buttons; toolbar stays light (higher specificity than host button rules) */
.cheshire-pm-compose button:not(.ev-tb-btn),.cheshire-pm-reply button:not(.ev-tb-btn){align-self:flex-start}
.cheshire-wrap .ev-toolbar .ev-tb-btn{background:transparent;color:var(--ev-text,var(--cheshire-text,#222));border:0;box-shadow:none;padding:0 7px;height:32px;min-width:32px;margin:0;border-radius:8px;align-self:auto}
.cheshire-wrap .ev-toolbar .ev-tb-btn:hover{background:var(--ev-hover,var(--cheshire-surface-alt,#eef2f6))}
.cheshire-wrap .ev-toolbar .ev-tb-btn.active{background:var(--ev-accent-soft,var(--cheshire-surface-alt,#eef2f6))}
.cheshire-pm-dropzone.dropzone{width:100%;box-sizing:border-box}

/* 0.1.660: mobile category head wraps its badges instead of overflowing; "mark as read" forms span the full row (also inside flex widgets). */
@media (max-width:899px){
.cheshire-category-title{flex-wrap:wrap;row-gap:.35rem;max-width:100%;box-sizing:border-box}
.cheshire-category-title .cheshire-cat-status-badges{flex-wrap:wrap}
/* 0.1.706 (#1319 pt 5): thread count stays right of the title, new/solved badges wrap onto their own row below the title. */
.cheshire-category-title .cheshire-badge-thread-count{order:1;margin-left:auto}
.cheshire-category-title .cheshire-cat-status-badges{order:2;flex:0 0 100%}
}

/* #1278 PN mobile: images/embeds/code inside bubbles never exceed the viewport */
.cheshire-pm-thread{min-width:0;max-width:100%}
.cheshire-pm-msg{min-width:0}
.cheshire-pm-msg-body img,.cheshire-pm-msg-body video,.cheshire-pm-msg-body iframe,.cheshire-pm-msg-body table{max-width:100%;height:auto}
.cheshire-pm-msg-body pre,.cheshire-pm-msg-body code{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:700px){.cheshire-pm-msg{max-width:100%}}

/* ---- 0.1.681-dev Frontend-Design #1288/#1289: Zeilen abgrenzen, Hover, Aktions-Buttons, Einrückung, Mini-Badges rechts ---- */
.cheshire-thread-row,.cheshire-forum-row{padding-left:.6rem;padding-right:.6rem;border-radius:6px;transition:background .12s,box-shadow .12s}
.cheshire-thread-row:nth-child(even),.cheshire-forum-row:nth-child(even){background:var(--cheshire-surface-alt,#f7f8fa)}
.cheshire-thread-row:hover,.cheshire-forum-row:hover{background:var(--cheshire-hover-bg,#e6eef7);box-shadow:inset 3px 0 0 var(--cheshire-accent,#3D6B8C)}
.cheshire-forum-info .cheshire-forum-description{padding-left:.6rem;margin-top:.25rem;line-height:1.35}
/* Aktions-Buttons einheitlich (Edit/Pin/Close/Delete): gleiche Größe, kein überdimensioniertes X */
.cheshire-thread-meta .cheshire-btn-edit,.cheshire-thread-meta .cheshire-btn-delete{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:1.8rem;height:1.8rem;padding:0;font-size:.85rem;line-height:1;border-radius:4px;cursor:pointer}
.cheshire-thread-meta .cheshire-btn-delete{font-size:.8rem;font-weight:700}
.cheshire-btn-edit:focus-visible,.cheshire-btn-delete:focus-visible{outline:2px solid var(--cheshire-accent,#3D6B8C);outline-offset:1px}
/* Mini-Themenliste: Zeile mit Titel links, Post/Views-Badges rechts (wie Forum-Badges) */
@media (min-width:701px){
    .cheshire-mini-thread-row{display:grid;grid-template-columns:1fr auto 11rem;gap:.5rem;align-items:center;padding:.3rem .5rem;border-radius:4px}
    .cheshire-mini-thread-row:hover{background:var(--cheshire-hover-bg,#e6eef7)}
    .cheshire-mini-thread-meta{display:contents}
    .cheshire-mini-thread-stats{justify-self:end;min-width:10.5rem;display:flex;justify-content:flex-end;gap:.35rem}
    .cheshire-mini-thread-lastpost{text-align:right;white-space:nowrap}
}
/* Mobil: Zeilen klar als Karten abgegrenzt */
@media (max-width:700px){
    .cheshire-thread-row,.cheshire-forum-row{border:1px solid var(--cheshire-border,#ddd);margin-bottom:.5rem;padding:.6rem}
    .cheshire-mini-thread-row{padding:.5rem;margin-bottom:.3rem;border:1px solid var(--cheshire-border,#eee);border-radius:6px}
    .cheshire-thread-meta .cheshire-btn-edit,.cheshire-thread-meta .cheshire-btn-delete{width:2.2rem;height:2.2rem}
}

/* 0.1.686-dev #1297 Mini-Themenliste: Spalten bündig zur Forenzeile (von rechts gemessen): Letzter Beitrag 11rem | Posts/Views zentriert unter
   Themen/Beiträge (10.5rem, Platz für das +-Feld rechts davon) | Status rechtsbündig unter "gelöst". Mobil: Status wieder sichtbar (unter dem Titel). */
@media (min-width:701px){
    .cheshire-mini-thread-row{display:grid;grid-template-columns:minmax(0,1fr) 8rem 12.6rem 11rem;column-gap:.5rem;row-gap:0;align-items:center;padding-right:.6rem}
    .cheshire-mini-thread-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .cheshire-mini-thread-meta{display:contents}
    .cheshire-mini-thread-meta .cheshire-thread-status-badges{grid-column:2;justify-content:flex-end}
    .cheshire-mini-thread-stats{grid-column:3;flex-direction:column;align-items:center;gap:.2rem;width:10.5rem;min-width:0;justify-self:start}
    .cheshire-mini-thread-lastpost{grid-column:4;margin-left:0;text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis}
    .cheshire-forum-meta:not(:has(.cheshire-forum-new-slot)){padding-right:2.1rem}
}
@media (max-width:700px){
    .cheshire-mini-thread-meta .cheshire-thread-status-badges{display:flex;flex-wrap:wrap;gap:.3rem}
}

/* 0.1.683-dev (Florian 6150): Verwarn-Popover -- Formular umbrechen statt über den Layer hinauszulaufen, Button als Vollton-Gefahrenbutton
   (war transparent/außerhalb), Popups drehen nach unten, wenn oben kein Platz ist (siehe cheshire.js, Klasse cheshire-popup-down). */
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;box-sizing:border-box;width:max-content;max-width:min(22rem,calc(100vw - 2rem));margin:0}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form select{flex:1 1 10rem;min-width:0}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form button[type=submit]{flex:1 1 100%;box-sizing:border-box;white-space:normal;background:var(--cheshire-danger,#C0392B);color:#fff;border:1px solid var(--cheshire-danger,#C0392B);border-radius:4px;padding:.4rem .7rem;font-weight:600;cursor:pointer;width:auto;height:auto}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form button[type=submit]:hover{filter:brightness(.92)}

/* 0.1.683-dev: Popups werden per JS (position:fixed) platziert -- Vordergrund, nie abgeschnitten */
.cheshire-export-menu.cheshire-export-open,.cheshire-post-actions .cheshire-mod-warn-details[open] .cheshire-mod-warn-form{box-shadow:0 6px 20px rgba(0,0,0,.25)}

/* 0.1.685-dev: Verwarn-Popover -- Select und Punktefeld gleich hoch, kräftigerer roter Rahmen. Mini-Themenliste: Status/Stats unter der Forenzeile ausgerichtet. */
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form{border:2px solid var(--cheshire-danger,#C0392B);padding:.7rem}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form select,.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form input[type=number]{box-sizing:border-box;height:2.75rem;margin:0;padding:0 .6rem;line-height:1.2}
.cheshire-post-actions .cheshire-mod-warn-details .cheshire-mod-warn-form input[type=number]{width:5rem;flex:0 0 auto}

/* 0.1.688-dev: Thread-Aktionsbuttons als Font-Awesome-Icons (einheitlich, einfarbig); aktiver Zustand (angepinnt/geschlossen) gefüllt.
   Mini-Themenliste mobil: Innenabstand zur Umrandung. */
.cheshire-thread-meta .cheshire-btn-edit .fa,.cheshire-thread-meta .cheshire-btn-delete .fa{font-size:.95rem;line-height:1;font-weight:400}
.cheshire-thread-meta .cheshire-btn-edit.is-active{background:var(--cheshire-accent,#3D6B8C);color:#fff}
@media (max-width:700px){
    .cheshire-mini-thread-row{padding:.7rem .9rem}
}

/* 0.1.689-dev: Aktionsbuttons exakt gleich groß (Support-Theme setzte beim X min-height/Innenabstand; Glyphen unterschiedlich breit -> feste Icon-Box) */
.cheshire-wrap .cheshire-thread-meta .cheshire-btn-edit,.cheshire-wrap .cheshire-thread-meta .cheshire-btn-delete{box-sizing:border-box;width:1.8rem;height:1.8rem;min-width:0;min-height:0;padding:0;margin:0;gap:0;border-radius:4px;font-size:.95rem;line-height:1}
.cheshire-wrap .cheshire-thread-meta .cheshire-btn-edit .fa,.cheshire-wrap .cheshire-thread-meta .cheshire-btn-delete .fa{display:block;width:1rem;height:1rem;font-size:.95rem;line-height:1rem;text-align:center}
@media (max-width:700px){
    .cheshire-wrap .cheshire-thread-meta .cheshire-btn-edit,.cheshire-wrap .cheshire-thread-meta .cheshire-btn-delete{width:2.2rem;height:2.2rem}
}

/* 0.1.690-dev: Ursache gefunden -- die Aktionsbuttons liegen in .cheshire-thread-actions, nicht in .cheshire-thread-meta; die Regeln von 0.1.688/689
   haben deshalb nie gegriffen. Hier mit dem richtigen Container (gleiche Größe für Stift/Pin/Schloss/X, feste Icon-Box). */
.cheshire-thread-actions{display:flex;align-items:center;gap:.4rem}
.cheshire-thread-actions form{display:inline-flex;margin:0}
.cheshire-thread-actions .cheshire-btn-edit.cheshire-btn-edit,.cheshire-thread-actions .cheshire-btn-delete.cheshire-btn-delete{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:1.8rem;height:1.8rem;min-width:0;min-height:0;padding:0;margin:0;gap:0;border-radius:4px;font-size:.95rem;line-height:1;cursor:pointer}
.cheshire-thread-actions .cheshire-btn-edit .fa,.cheshire-thread-actions .cheshire-btn-delete .fa{display:block;width:1rem;height:1rem;font-size:.95rem;line-height:1rem;text-align:center}
.cheshire-thread-actions .cheshire-btn-edit.is-active{background:var(--cheshire-accent,#3D6B8C);color:#fff}
@media (max-width:700px){
    .cheshire-thread-actions .cheshire-btn-edit.cheshire-btn-edit,.cheshire-thread-actions .cheshire-btn-delete.cheshire-btn-delete{width:2.2rem;height:2.2rem}
}

/* #1319: PN-Posteingang auf dem Smartphone als Karte (wie Forenzeile): Betreff oben, Absender + Datum, Vorschau. */
@media (max-width:700px){
    .cheshire-pm-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"subject subject" "partner date" "excerpt excerpt";gap:.2rem .6rem;padding:.6rem .7rem}
    .cheshire-pm-row .cheshire-pm-subject{grid-area:subject;white-space:normal;overflow:visible;text-overflow:clip;font-weight:600;overflow-wrap:anywhere}
    .cheshire-pm-row .cheshire-pm-partner{grid-area:partner;font-size:.82rem}
    .cheshire-pm-row .cheshire-pm-date{grid-area:date;white-space:nowrap;align-self:center}
    .cheshire-pm-row .cheshire-pm-excerpt{grid-area:excerpt;font-size:.82rem}
    .cheshire-pm-rowwrap{align-items:flex-start;gap:.4rem;margin-bottom:.35rem}
    .cheshire-pm-rowwrap .cheshire-pm-sel{margin-top:.9rem}
    .cheshire-pm-rowwrap .cheshire-pm-row{border-radius:8px;margin-bottom:0}
}

/* 0.1.707 (Florian, point 1): marked solution -- post highlighted (green frame + banner), card with excerpt at the top of the thread, "solved" badge in lists is a link. */
.cheshire-post-solution{border:2px solid #27AE60;border-radius:6px}
.cheshire-solution-banner{background:#27AE60;color:#fff;font-size:.8rem;font-weight:600;padding:.2rem .7rem;border-radius:3px 3px 0 0}
.cheshire-solution-card{border:2px solid #27AE60;border-radius:6px;background:var(--cheshire-surface-alt,#f4faf6);padding:.7rem .9rem;margin:0 0 1rem}
.cheshire-solution-card-head{font-size:.9rem;color:#1e8449;margin-bottom:.3rem}
.cheshire-solution-card-text{font-size:.88rem;color:var(--cheshire-text,#333);margin-bottom:.4rem;overflow-wrap:anywhere}
.cheshire-solution-card-link{font-size:.85rem;font-weight:600;color:var(--cheshire-brand-text,var(--cheshire-accent,#3D6B8C));text-decoration:none}
.cheshire-solution-card-link:hover{text-decoration:underline}
a.cheshire-badge-solved{text-decoration:none}
a.cheshire-badge-solved:hover{filter:brightness(1.1);text-decoration:underline}
