/* Public board and personal records. The existing controllers own all data. */
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] { width:100%; max-width:none; margin:0; color:var(--ui-ink); }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(.panel,.board-compose-sheet) { border:0; border-radius:0; box-shadow:none; background:transparent; }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(button,input,select) { font:inherit; }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(a,button,input,select,textarea,[contenteditable='true']):focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(button,input:not([type="checkbox"]):not([type="radio"]),select) { min-height:44px; }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(.community-page-heading,.ledger-page-heading) { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:18px 0 30px; margin:0 0 30px; border-bottom:1px solid var(--ui-line); }
:root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] .community-page-title { margin:0; font-size:clamp(32px,3.5vw,48px); line-height:1.1; letter-spacing:-.065em; font-weight:800; }

/* Browse a category, scan the subjects, then search within the list. */
:root body.user-service #boardModeView[data-community-ready] .board-shell { padding:0; overflow:visible; }
:root body.user-service #boardModeView[data-community-ready] .board-top-actions { display:none; }
:root body.user-service #boardModeView[data-community-ready] .community-heading-actions { margin-left:auto; flex:0 0 auto; }
:root body.user-service #boardModeView[data-community-ready] #boardAuthRow { display:flex; flex-direction:column-reverse; align-items:flex-end; gap:8px; margin:0; padding:0; }
:root body.user-service #boardModeView[data-community-ready] #boardAuthHint { margin:0; max-width:230px; text-align:right; font-size:12px; }
:root body.user-service #boardModeView[data-community-ready] #boardAuthHint:empty { display:none; }
:root body.user-service #boardModeView[data-community-ready] #boardFab { position:static; min-width:124px; min-height:48px; padding:12px 24px; border:0; border-radius:4px; background:var(--ui-accent) !important; color:var(--ui-on-accent) !important; box-shadow:none; font-size:15px; font-weight:800; }
:root body.user-service #boardModeView[data-community-ready] #boardFab:hover { background:var(--ui-accent); color:var(--ui-on-accent); transform:none; }
:root body.user-service #boardModeView[data-community-ready] .community-index { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; align-items:start; }
:root body.user-service #boardModeView[data-community-ready] .community-category-rail { position:static; }
:root body.user-service #boardModeView[data-community-ready] .community-rail-label { display:none; }
:root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px; width:100%; padding:0; margin:0; border:0; overflow:visible; }
:root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button { position:relative; flex:0 1 auto; justify-content:center; min-width:0; min-height:46px; padding:10px 14px; text-align:left; border:0; border-radius:3px; background:transparent; color:var(--ui-muted); font-size:14px; font-weight:600; box-shadow:none; }
:root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button.active { color:var(--ui-on-accent); background:var(--ui-accent); font-weight:750; }
:root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button:not(.active):hover { background:var(--ui-surface-subtle); color:var(--ui-ink); }
:root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button::after { display:none; }
:root body.user-service #boardModeView[data-community-ready] .board-ai-market-tab svg { display:none; }
:root body.user-service #boardModeView[data-community-ready] .board-tab-badge { margin-left:auto; background:var(--ui-surface); color:var(--ui-accent); }
:root body.user-service #boardModeView[data-community-ready] .community-list-workspace { min-width:0; }
:root body.user-service #boardModeView[data-community-ready] .community-search-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
:root body.user-service #boardModeView[data-community-ready] .community-search-toolbar #boardSearchRow { flex:1 1 560px; min-width:0; margin:0; }
:root body.user-service #boardModeView[data-community-ready] .community-search-toolbar #boardAuthRow { flex:0 0 auto; }
@media(max-width:767px) {
  :root body.user-service #boardModeView[data-community-ready] .community-search-toolbar { gap:8px; margin-bottom:12px; }
  :root body.user-service #boardModeView[data-community-ready] .community-search-toolbar #boardFab { min-width:72px; padding:10px 12px; }
}
:root body.user-service #boardModeView[data-community-ready] #boardSearchRow { display:grid; grid-template-columns:110px minmax(0,1fr); gap:0; margin:0 0 22px; padding:0; max-width:560px; background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:4px; }
:root body.user-service #boardModeView[data-community-ready] #boardSearchRow :is(input,select) { height:48px; min-width:0; border:0; border-radius:0; background:transparent; font-size:14px; padding:0 14px; box-shadow:none; }
:root body.user-service #boardModeView[data-community-ready] #boardSearchRow select { border-right:1px solid var(--ui-line); }
:root body.user-service #boardModeView[data-community-ready] #boardList { border-top:2px solid var(--ui-ink); background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] .board-table-wrap { border:0; border-radius:0; overflow:visible; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] .board-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:14px; }
:root body.user-service #boardModeView[data-community-ready] .board-table :is(th,td) { border:0; border-bottom:1px solid var(--ui-line); padding:10px 12px; vertical-align:middle; }
:root body.user-service #boardModeView[data-community-ready] .board-table th { padding-block:11px; background:var(--ui-surface-subtle); color:var(--ui-muted); font-size:12px; font-weight:500; }
:root body.user-service #boardModeView[data-community-ready] .board-table :is(th,td):first-child { width:110px; padding-left:18px; }
:root body.user-service #boardModeView[data-community-ready] .board-table :is(th,td):nth-child(3) { width:116px; }
:root body.user-service #boardModeView[data-community-ready] .board-table :is(th,td):nth-child(4) { width:98px; color:var(--ui-muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
:root body.user-service #boardModeView[data-community-ready] .board-table :is(th,td):nth-child(5) { width:54px; color:var(--ui-muted); font-size:12px; text-align:right; padding-right:18px; }
:root body.user-service #boardModeView[data-community-ready] .board-post-title { color:var(--ui-ink); font-size:15px; font-weight:650; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] .board-post-link { color:inherit; text-decoration:none; }
:root body.user-service #boardModeView[data-community-ready] .board-post-link:hover { text-decoration:underline; text-underline-offset:4px; }
:root body.user-service #boardModeView[data-community-ready] .board-cat-chip { display:inline; padding:0; border:0; border-radius:0; background:transparent; color:var(--ui-muted); font-size:12px; font-weight:600; white-space:nowrap; }
:root body.user-service #boardModeView[data-community-ready] .board-cat-chip.ai-market { color:var(--ui-accent); }
:root body.user-service #boardModeView[data-community-ready] .board-notice-row { background:var(--ui-surface-subtle); }
:root body.user-service #boardModeView[data-community-ready] .board-comment-count { color:var(--ui-accent); font-size:12px; font-weight:750; }
:root body.user-service #boardModeView[data-community-ready] .board-table .board-author-action { max-width:100%; min-width:0; min-height:32px !important; height:32px; padding:0; background:none; border:0; color:var(--ui-muted); font-size:12px; }
:root body.user-service #boardModeView[data-community-ready] .board-author-cell { max-width:100%; gap:6px; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] .board-author-avatar { width:23px; height:23px; flex:0 0 23px; }
:root body.user-service #boardModeView[data-community-ready] #boardPager { justify-content:center; margin-top:24px !important; padding-top:0; }
:root body.user-service #boardModeView[data-community-ready] #boardPager button { min-width:44px; height:44px; border-radius:3px; box-shadow:none; }

/* The post is a reading column; its conversation has a separate rhythm. */
:root body.user-service #boardModeView[data-community-view='detail'] .community-page-heading { padding:0 0 20px; margin-bottom:0; }
:root body.user-service #boardModeView[data-community-view='detail'] .community-page-title { font-size:16px; letter-spacing:-.02em; }
:root body.user-service #boardModeView[data-community-view='detail'] .community-index,
:root body.user-service #boardModeView[data-community-view='compose'] .community-index { display:none; }
:root body.user-service #boardModeView[data-community-ready] #boardDetail { display:grid; grid-template-columns:minmax(0,1fr); width:100%; max-width:none; gap:32px; margin:0; padding:0; border:0; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] .community-article { min-width:0; padding:40px 0 0; }
:root body.user-service #boardModeView[data-community-ready] .board-detail-head { gap:14px; align-items:flex-start; }
:root body.user-service #boardModeView[data-community-ready] #boardDetailTitle { margin:0; color:var(--ui-ink); font-size:clamp(28px,2.9vw,39px); line-height:1.35; font-weight:800; letter-spacing:-.055em; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] .board-detail-meta-row { margin:24px 0 32px; padding:0 0 24px; border-bottom:1px solid var(--ui-line); }
:root body.user-service #boardModeView[data-community-ready] .board-detail-author { color:var(--ui-ink); font-size:14px; }
:root body.user-service #boardModeView[data-community-ready] .board-detail-submeta { margin-top:4px; color:var(--ui-muted); font-size:12px; }
:root body.user-service #boardModeView[data-community-ready] #boardDetailBody { min-height:200px; max-width:720px; color:var(--ui-ink); font-size:16px; line-height:1.9; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] #boardDetailBody :is(p,li) { line-height:1.9; }
:root body.user-service #boardModeView[data-community-ready] #boardDetailBody :is(h2,h3) { margin:32px 0 14px; line-height:1.45; }
:root body.user-service #boardModeView[data-community-ready] :is(#boardDetailBody,.board-comment-body) :is(img,video,iframe) { max-width:100%; }
:root body.user-service #boardModeView[data-community-ready] :is(#boardDetailBody,.board-comment-body) img { height:auto; }
:root body.user-service #boardModeView[data-community-ready] :is(#boardDetailBody,.board-comment-body) pre { max-width:100%; overflow:auto; background:var(--ui-surface-subtle); padding:14px; border:1px solid var(--ui-line); }
:root body.user-service #boardModeView[data-community-ready] :is(#boardDetailBody,.board-comment-body) table { display:block; max-width:100%; overflow:auto; overscroll-behavior-x:contain; }
:root body.user-service #boardModeView[data-community-ready] .board-post-foot { margin-top:36px; padding-top:22px; border-top:1px solid var(--ui-line); }
:root body.user-service #boardModeView[data-community-ready] .community-conversation { min-width:0; padding:0; background:var(--ui-surface); border:0; }
:root body.user-service #boardModeView[data-community-ready] #boardCommentsTitle { margin:0 0 20px !important; padding:0; border:0; font-size:18px; line-height:1.5; letter-spacing:-.035em; }
:root body.user-service #boardModeView[data-community-ready] #boardComments { position:relative; }
:root body.user-service #boardModeView[data-community-ready] :is(.board-comment,.board-reply) { position:relative; padding:18px 0; margin:0; border:0; border-top:1px solid var(--ui-line); border-radius:0; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] .board-reply { padding-left:14px; border-left:2px solid var(--ui-line); }
/* Replies are nested DOM nodes: avoid adding a second depth-based inset to the text. */
:root body.user-service #boardModeView[data-community-ready] .board-reply .board-reply { padding-left:10px; }
:root body.user-service #boardModeView[data-community-ready] .board-reply .board-reply .board-reply { padding-left:0; border-left:0; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-main { min-width:0; margin-left:0; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-grid { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:4px; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-meta { display:flex; flex-wrap:wrap; gap:5px 7px; align-items:center; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-avatar { width:26px; height:26px; flex:0 0 26px; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-author { min-width:0; color:var(--ui-ink); font-size:12px; font-weight:750; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-time { color:var(--ui-muted); font-size:12px; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-body { margin-top:12px; color:var(--ui-ink); font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-body a[href^="/shop-value/"] img { display:inline-block; width:auto; height:1.15em; max-width:1.15em; max-height:1.15em; object-fit:contain; vertical-align:-.2em; margin:0 .25em 0 0; border-radius:0; }
:root body.user-service #boardModeView[data-community-ready] :is(.board-comment-reply-inline,.board-comment-like-btn,.board-comment-more-btn) { min-width:44px; min-height:44px; padding:6px; border:0; box-shadow:none; border-radius:2px; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] :is(.board-comment-reply-inline,.board-comment-like-btn,.board-comment-more-btn):hover { background:var(--ui-surface-subtle); }
:root body.user-service #boardModeView[data-community-ready] .board-comment-menu { top:calc(100% + 4px); min-width:104px; padding:4px; border:1px solid var(--ui-line); border-radius:3px; background:var(--ui-surface); box-shadow:none; }
:root body.user-service #boardModeView[data-community-ready] .board-comment-menu button { min-height:44px; border-radius:2px; color:var(--ui-ink); }
:root body.user-service #boardModeView[data-community-ready] .board-comment-menu button:hover { background:var(--ui-surface-subtle); }
:root body.user-service #boardModeView[data-community-ready] .board-comment-reply-inline { margin-left:auto; font-size:12px; color:var(--ui-accent); }
:root body.user-service #boardModeView[data-community-ready] .board-comment-side { display:flex; flex-direction:column; align-items:flex-end; }
:root body.user-service #boardModeView[data-community-ready] #boardCommentCompose { margin:24px 0 0 !important; padding:10px; border:1px solid var(--ui-line); }
:root body.user-service #boardModeView[data-community-ready] .board-editor { border:1px solid var(--ui-line); border-radius:3px; background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] .board-editor .ProseMirror { padding:16px; font-size:15px; line-height:1.8; color:var(--ui-ink); }
:root body.user-service #boardModeView[data-community-ready] #boardCommentEditor .ProseMirror { min-height:120px; }
:root body.user-service #boardModeView[data-community-ready] #boardCommentBtn { min-height:44px; border-radius:3px; padding:10px 16px; background:var(--ui-accent); color:var(--ui-on-accent); box-shadow:none; }
:root body.user-service #boardModeView[data-community-ready] .board-detail-bottom-bar { grid-column:1/-1; margin:0; padding:20px 0; border-top:1px solid var(--ui-line); background:transparent; }
:root body.user-service #boardModeView[data-community-ready] #boardDetail[data-has-conversation='false'] .community-conversation { display:none; }
:root body.user-service #boardModeView[data-community-ready] #boardDetail[data-has-conversation='false'] .community-article { max-width:800px; }
:root body.user-service #boardModeView[data-community-view='compose'] .community-page-heading { padding:12px 0 20px; margin:0 0 20px; }
:root body.user-service #boardModeView[data-community-view='compose'] .community-page-title { font-size:28px; line-height:1.3; letter-spacing:0; }
:root body.user-service #boardModeView[data-community-ready] #boardCompose { width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] #boardCompose .board-compose-sheet { padding:0; border:0; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] #boardCategory { width:160px; padding:0 12px; border:1px solid var(--ui-line); border-radius:4px; background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] #boardTitle { width:100%; box-sizing:border-box; margin:12px 0 16px; height:48px; min-height:48px; padding:10px 12px; font-size:18px; font-weight:500; letter-spacing:0; border:1px solid var(--ui-line); border-radius:4px; background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] #boardCompose .board-editor-tools { justify-content:flex-start; margin:0; padding:4px 8px; border:1px solid var(--ui-line); border-bottom:0; background:var(--ui-surface-subtle); }
:root body.user-service #boardModeView[data-community-ready] #boardBodyEditor { box-sizing:border-box; min-height:280px; border:1px solid var(--ui-line); border-radius:0; background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] #boardBodyEditor .ProseMirror { box-sizing:border-box; padding:16px; min-height:280px; font-size:16px; line-height:1.7; }
:root body.user-service #boardModeView[data-community-ready] .board-compose-actions-bottom { margin:0; padding:16px 0; background:transparent; gap:8px; }
:root body.user-service #boardModeView[data-community-ready] .board-compose-actions-bottom button { min-width:80px; border-radius:4px; }

/* Personal records are a ledger, with separate balance and adjustment workspaces. */
:root body.user-service #recordsModeView[data-community-ready] .ledger-page-heading { display:block; margin-bottom:0; border:0; }
:root body.user-service #recordsModeView[data-community-ready] #recordsTabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0 0 32px; padding:0; border:1px solid var(--ui-line); background:var(--ui-surface); }
:root body.user-service #recordsModeView[data-community-ready] #recordsTabs button { display:flex; align-items:center; justify-content:center; min-height:60px; margin:0; padding:12px 8px; border:0; border-right:1px solid var(--ui-line); border-radius:0; background:transparent; color:var(--ui-muted); font-size:14px; font-weight:600; }
:root body.user-service #recordsModeView[data-community-ready] #recordsTabs button:last-child { border-right:0; }
:root body.user-service #recordsModeView[data-community-ready] #recordsTabs button.active { color:var(--ui-on-accent); background:var(--ui-accent); font-weight:750; }
:root body.user-service #recordsModeView[data-community-ready] #recordsTabs button::after { display:none; }
:root body.user-service #recordsModeView[data-community-ready] .ledger-workspace { min-width:0; }
:root body.user-service #recordsModeView[data-community-ready] .ledger-workspace > .panel { padding:0; margin:0; }
:root body.user-service #recordsModeView[data-community-ready] .auth-notice { margin:0 0 24px; padding:24px; border:1px solid var(--ui-line); border-left:3px solid var(--ui-accent); border-radius:0; background:var(--ui-surface); color:var(--ui-ink); }
:root body.user-service #recordsModeView[data-community-ready] .auth-notice:empty { display:none; }
:root body.user-service #recordsModeView[data-community-ready] .records-section-head { padding:0 0 24px; border-bottom:1px solid var(--ui-line); margin-bottom:20px; }
:root body.user-service #recordsModeView[data-community-ready] .ledger-favorite-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px 24px; align-items:center; margin-bottom:26px; }
:root body.user-service #recordsModeView[data-community-ready] .records-head-actions { display:flex; flex-wrap:nowrap; align-items:center; margin:0; width:auto; }
:root body.user-service #recordsModeView[data-community-ready] #favoritesSearchInput { max-width:320px; width:100%; padding:12px; border-radius:3px; background:var(--ui-surface); }
:root body.user-service #recordsModeView[data-community-ready] #favoritesEditBtn { flex:0 0 auto; min-width:56px; white-space:nowrap; }
:root body.user-service #recordsModeView[data-community-ready] .favorites-sort-row { margin:0; padding:0; justify-content:flex-end; gap:2px; }
:root body.user-service #recordsModeView[data-community-ready] .favorites-sort-row button { padding:8px 12px; border:0; border-radius:2px; background:transparent; font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] .favorites-sort-row button.active { background:var(--ui-accent-soft); color:var(--ui-accent); }
:root body.user-service #recordsModeView[data-community-ready] #favoritesDecisionFilters { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; margin:0; }
:root body.user-service #recordsModeView[data-community-ready] #favoritesDecisionFilters button { flex:0 1 auto; padding:10px 14px; border:1px solid var(--ui-line); border-radius:3px; background:var(--ui-surface); box-shadow:none; font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] #favoritesDecisionFilters button.active { color:var(--ui-accent); border-color:var(--ui-accent); background:var(--ui-accent-soft); }
:root body.user-service #recordsModeView[data-community-ready] #myTradeList { display:block; padding:0; margin:0; border-top:2px solid var(--ui-ink); background:var(--ui-surface); }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-item { display:grid; grid-template-columns:minmax(0,1fr) 92px; gap:20px; padding:26px 24px; margin:0; border:0; border-bottom:1px solid var(--ui-line); border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-main { min-width:0; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-title { min-width:0; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-kicker { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-date { color:var(--ui-muted); font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-playerline { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-player { font-size:18px; font-weight:750; line-height:1.4; letter-spacing:-.04em; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-actions { display:flex; align-items:center; gap:2px; }
:root body.user-service #recordsModeView[data-community-ready] .trade-icon-btn { width:44px; height:44px; min-width:44px; padding:8px; border:0; border-radius:3px; color:var(--ui-muted); background:transparent; font-size:16px; }
:root body.user-service #recordsModeView[data-community-ready] .trade-icon-btn:hover { color:var(--ui-accent); background:var(--ui-surface-subtle); }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-media { align-self:start; width:92px; height:108px; background:var(--ui-surface-subtle); border:0; border-radius:0; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-media img { width:100%; height:100%; object-fit:contain; }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-top:24px; padding:20px 0 0; border-top:1px solid var(--ui-line); }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid > span { display:flex; flex-direction:column; gap:7px; padding:0; border:0; }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid em { color:var(--ui-muted); font-size:12px; font-style:normal; }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid strong { color:var(--ui-ink); font-size:19px; line-height:1.3; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-change.up :is(strong,small) { color:var(--ui-accent); }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-change.down :is(strong,small) { color:var(--ui-danger); }
:root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid small { font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] .trade-record-sub { max-width:780px; margin-top:20px; padding:18px 0 0; border-top:1px solid var(--ui-line); color:var(--ui-muted); font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
:root body.user-service #recordsModeView[data-community-ready] #assetsTrendSection { padding:0; }
:root body.user-service #recordsModeView[data-community-ready] #assetSummary { padding:28px; border:0; border-radius:0; background:var(--ui-accent); color:var(--ui-on-accent); }
:root body.user-service #recordsModeView[data-community-ready] #assetSummary :is(strong,b,span,em,.asset-summary-title,.asset-summary-meta) { color:inherit; }
:root body.user-service #recordsModeView[data-community-ready] .ledger-asset-analysis { display:grid; grid-template-columns:minmax(0,1fr) 300px; background:var(--ui-surface); border:1px solid var(--ui-line); }
:root body.user-service #recordsModeView[data-community-ready] #assetChart { min-width:0; padding:24px 16px; min-height:330px; border:0; border-radius:0; }
:root body.user-service #recordsModeView[data-community-ready] #assetInsight { margin:0; padding:28px; border:0; border-left:1px solid var(--ui-line); border-radius:0; box-shadow:none; background:transparent; }
:root body.user-service #recordsModeView[data-community-ready] #assetsInputSection { display:grid; grid-template-columns:minmax(280px,390px) minmax(0,1fr); gap:40px; align-items:start; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-editor { padding:28px; border-top:3px solid var(--ui-accent); background:var(--ui-surface); }
:root body.user-service #recordsModeView[data-community-ready] #assetForm { display:flex; flex-direction:column; gap:20px; margin:0; padding:0; border:0; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjust-field { display:flex; flex-direction:column; gap:9px; width:100%; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjust-field > span { color:var(--ui-muted); font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] #assetForm input { width:100%; min-width:0; padding:12px; height:48px; border:1px solid var(--ui-line); border-radius:3px; background:var(--ui-surface); font-size:16px; }
:root body.user-service #recordsModeView[data-community-ready] #assetForm button[type=submit] { width:100%; padding:12px; min-height:48px; border:0; border-radius:3px; background:var(--ui-accent); color:var(--ui-on-accent); font-weight:750; box-shadow:none; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjust-quick { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjust-quick button { padding:8px; border:1px solid var(--ui-line); border-radius:3px; background:transparent; color:var(--ui-muted); font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] #assetValueHint { min-height:44px; margin:16px 0 0; font-size:12px; line-height:1.8; }
:root body.user-service #recordsModeView[data-community-ready] .ledger-section-title { margin:0 0 24px; padding-bottom:18px; border-bottom:2px solid var(--ui-ink); font-size:20px; letter-spacing:-.035em; }
:root body.user-service #recordsModeView[data-community-ready] #assetAdjustmentList { padding:0; margin:0; border:0; border-radius:0; background:transparent; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-title { margin:0 0 18px; color:var(--ui-muted); font-size:12px; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; padding:20px 0; border-bottom:1px solid var(--ui-line); background:transparent; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row > span { flex-wrap:wrap; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row strong { color:var(--ui-ink); overflow-wrap:anywhere; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row em { color:var(--ui-muted); }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row b { margin-left:auto; color:var(--ui-ink); font-size:22px; font-variant-numeric:tabular-nums; }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row.up b { color:var(--ui-accent); }
:root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-row.down b { color:var(--ui-danger); }

@media (max-width:1199px) {
  :root body.user-service #boardModeView[data-community-ready] .community-index { grid-template-columns:minmax(0,1fr); gap:22px; }
  :root body.user-service #boardModeView[data-community-ready] .community-category-rail { position:static; }
  :root body.user-service #boardModeView[data-community-ready] .community-rail-label { display:none; }
  :root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs { flex-direction:row; flex-wrap:wrap; gap:6px; }
  :root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button { flex:0 1 auto; min-height:44px; padding:10px 13px; text-align:center; }
  :root body.user-service #recordsModeView[data-community-ready] .ledger-asset-analysis { grid-template-columns:1fr; }
  :root body.user-service #recordsModeView[data-community-ready] #assetInsight { border-left:0; border-top:1px solid var(--ui-line); }
}
@media (max-width:899px) {
  :root body.user-service:has(#boardModeView:not(.hidden)) #servicePageTitle { display:none !important; }
  :root body.user-service:has(#boardModeView:not(.hidden)) main.wrap > .service-workspace-head { padding-bottom:12px; row-gap:0; }
  :root body.user-service #boardModeView[data-community-ready] .community-page-heading { display:none !important; }
  :root body.user-service #boardModeView[data-community-ready] .community-index { gap:12px; }
  :root body.user-service #boardModeView[data-community-ready] .board-desktop-list { display:none; }
  :root body.user-service #boardModeView[data-community-ready] #boardList { border-top:1px solid var(--ui-line); }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-list { display:block; border:0 !important; border-radius:0 !important; overflow:visible !important; background:var(--ui-surface); }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-item { margin:0; padding:8px 14px 7px; border:0; border-bottom:1px solid var(--ui-line); border-radius:0; background:transparent; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-item.board-notice-row { background:var(--ui-accent-soft); }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-title { color:var(--ui-ink); font-size:14px; line-height:1.36; font-weight:600; letter-spacing:0; overflow-wrap:anywhere; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-label { display:inline-flex; align-items:center; min-height:18px; margin-right:6px; padding:0 5px; border-radius:3px; background:var(--ui-accent); color:var(--ui-on-accent); font-size:10.5px; line-height:1; font-weight:750; vertical-align:1px; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta { display:flex; gap:0; flex-wrap:wrap; align-items:center; margin-top:4px; color:var(--ui-muted); font-size:11px; line-height:1.3; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta > * { display:inline-flex; align-items:center; min-width:0; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta > * + *::before { content:""; width:1px; height:11px; margin:0 7px; background:var(--ui-line); flex:0 0 auto; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-category { color:var(--ui-muted); font-weight:600; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-category.ai-market { color:var(--ui-accent); }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta .board-author-action { min-height:18px !important; height:auto; padding:0; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta .board-author-cell { gap:4px; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-meta .board-author-avatar { width:16px; height:16px; flex-basis:16px; font-size:8px; }
  :root body.user-service #recordsModeView[data-community-ready] .ledger-favorite-controls { grid-template-columns:1fr; }
  :root body.user-service #recordsModeView[data-community-ready] .favorites-sort-row { justify-content:flex-start; }
  :root body.user-service #recordsModeView[data-community-ready] #assetsInputSection { grid-template-columns:1fr; gap:32px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  :root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] :is(.community-page-heading,.ledger-page-heading) { gap:12px; padding:12px 0 24px; margin-bottom:24px; }
  :root body.user-service :is(#boardModeView,#recordsModeView)[data-community-ready] .community-page-title { font-size:34px; }
  :root body.user-service #boardModeView[data-community-ready] #boardAuthHint { display:none; }
  :root body.user-service #boardModeView[data-community-ready] #boardFab { min-width:86px; min-height:44px; padding:10px 18px; font-size:13px; }
  :root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs { gap:5px; }
  :root body.user-service #boardModeView[data-community-ready] #boardCategoryTabs button { padding:8px 11px; font-size:12px; }
  :root body.user-service #boardModeView[data-community-ready] #boardSearchRow { grid-template-columns:93px minmax(0,1fr); margin-bottom:12px; }
  :root body.user-service #boardModeView[data-community-ready] #boardSearchRow input { font-size:16px; }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-item { padding:8px 13px 7px; }
  :root body.user-service #boardModeView[data-community-ready] .community-article { padding:28px 0 0; }
  :root body.user-service #boardModeView[data-community-ready] #boardDetailTitle { font-size:29px; }
  :root body.user-service #boardModeView[data-community-ready] #boardDetailBody { font-size:16px; min-height:160px; }
  :root body.user-service #boardModeView[data-community-ready] .community-conversation { padding:0; }
  :root body.user-service #boardModeView[data-community-ready] .board-compose-sheet { padding:16px 0; }
  :root body.user-service #recordsModeView[data-community-ready] .ledger-page-heading { margin-bottom:0; }
  :root body.user-service #recordsModeView[data-community-ready] #recordsTabs { margin-bottom:16px; }
  :root body.user-service #recordsModeView[data-community-ready] #recordsTabs button { min-height:56px; padding:10px 4px; font-size:12px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-item { position:relative; display:block; padding:16px 0; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-head { display:block; min-height:112px; padding-right:58px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-player { font-size:17px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-playerline { gap:6px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-actions { margin-top:10px; margin-left:-8px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-media { position:absolute; top:16px; right:0; width:54px; height:70px; background:transparent; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid { gap:20px; margin-top:12px; padding-top:20px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid strong { font-size:20px; }
  :root body.user-service #recordsModeView[data-community-ready] .asset-adjustment-editor { padding:16px 0; }
  :root body.user-service #recordsModeView[data-community-ready] #assetSummary { padding:24px 18px; }
}

:root body.user-service #boardModeView[data-community-ready] #boardDetailTitle { scroll-margin-top:28px; }
:root body.user-service #boardModeView[data-community-ready] #boardDetailBody { padding:0; border:0; border-radius:0; background:transparent; }
@media (max-width:1023px) { :root body.user-service #boardModeView[data-community-ready] #boardDetailTitle { scroll-margin-top:90px; } }
/* Keep list actions with the categories instead of reserving another header row. */
:root body.user-service #boardModeView .community-category-rail { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
:root body.user-service #boardModeView .community-category-rail #boardCategoryTabs { flex:1 1 auto; }
:root body.user-service #boardModeView .community-category-rail #boardAuthRow { flex:0 0 auto; margin:0 0 0 auto; }
:root body.user-service #boardModeView .community-category-rail #boardFab { min-height:44px; padding:10px 20px; }

:root body.user-service #recordsModeView[data-community-ready] .favorites-decision-filters span { font-size:12px; }

:root body.user-service #recordsModeView[data-community-ready] .favorites-decision-filters { margin-inline:0; padding-inline:0; }
:root body.user-service #recordsModeView[data-community-ready] .favorites-decision-filters button { min-width:0; white-space:normal; }

@media(max-width:600px) {
  :root body.user-service #recordsModeView[data-community-ready] #favoritesDecisionFilters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  :root body.user-service #recordsModeView[data-community-ready] .favorites-decision-filters span { line-height:1.45; }
}

:root body.user-service #recordsModeView[data-community-ready] :is(.records-section-head,.favorites-performance-summary,.asset-summary-shell) { margin-inline:0; padding-inline:0; }

@media(max-width:767px) {
  /* Edge-to-edge row backgrounds, with text aligned to search and page headings. */
  :root body.user-service #boardModeView[data-community-ready] #boardList { margin-inline:calc(-1 * var(--ui-mobile-gutter)); }
  :root body.user-service #boardModeView[data-community-ready] .board-mobile-item { padding-inline:var(--ui-mobile-gutter); }
  :root body.user-service #boardModeView[data-community-ready] .community-article { padding-top:16px; }
  :root body.user-service #boardModeView[data-community-ready] .board-detail-meta-row { margin:16px 0 20px; padding-bottom:16px; }
  :root body.user-service #recordsModeView[data-community-ready] #assetsInputSection { gap:24px; }
  :root body.user-service #recordsModeView[data-community-ready] #assetInsight { padding:16px; }
}

@media(max-width:767px) {
  :root body.user-service #boardModeView[data-community-ready] #boardDetail { gap:24px; }
  :root body.user-service #boardModeView[data-community-ready] :is(.board-comment,.board-reply) { padding-block:12px; }
  :root body.user-service #boardModeView[data-community-ready] .board-comment-body { margin-top:8px; line-height:1.7; }
  :root body.user-service #boardModeView[data-community-ready] .board-editor .ProseMirror { padding:12px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-head { min-height:80px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-ledger-grid { gap:12px 16px; padding-top:16px; }
  :root body.user-service #recordsModeView[data-community-ready] .trade-record-sub { margin-top:16px; padding-top:12px; }
}

/* Compose: one readable writing surface with discoverable editing tools. */
:root body.user-service #boardModeView[data-community-view='compose'] .board-shell { max-width:920px; margin-inline:auto; }
:root body.user-service #boardModeView[data-community-view='compose'] .community-page-heading { margin-bottom:24px; padding-bottom:20px; }
:root body.user-service #boardCompose .board-compose-row { display:flex; align-items:center; gap:14px; }
:root body.user-service #boardCompose .board-compose-row label { font-size:13px; font-weight:600; color:var(--ui-muted); }
:root body.user-service #boardModeView[data-community-ready] #boardCategory { height:44px; }
:root body.user-service #boardModeView[data-community-ready] #boardTitle { margin:18px 0; height:54px; padding:14px 16px; font-size:20px; font-weight:600; }
:root body.user-service #boardCompose .board-writing-frame { border:1px solid var(--ui-line); border-radius:6px; background:var(--ui-surface); }
:root body.user-service #boardModeView[data-community-ready] #boardCompose .board-editor-tools { display:flex; flex-wrap:wrap; align-items:center; gap:3px; padding:8px; border:0; border-bottom:1px solid var(--ui-line); border-radius:6px 6px 0 0; }
:root body.user-service #boardCompose .board-editor-tools button { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; min-width:36px; min-height:36px; padding:6px 10px; border:0; border-radius:4px; background:transparent; color:var(--ui-ink); font-size:13px; cursor:pointer; transition:background 140ms ease; }
:root body.user-service #boardCompose .board-editor-tools button:hover,:root body.user-service #boardCompose .board-editor-tools button[aria-pressed='true'],:root body.user-service #boardCompose .board-editor-tools button[aria-expanded='true'] { background:var(--ui-line); }
:root body.user-service #boardCompose .board-editor-tools button:disabled { opacity:.35; cursor:default; }
:root body.user-service #boardCompose .board-editor-tools svg { width:16px; height:16px; }
.board-tool-divider { width:1px; height:18px; background:var(--ui-line); margin:0 4px; }
:root body.user-service #boardModeView[data-community-ready] #boardBodyEditor { border:0; min-height:320px; background:transparent; }
:root body.user-service #boardModeView[data-community-ready] #boardBodyEditor .ProseMirror { min-height:320px; padding:20px; outline:none; font-size:16px; line-height:1.8; }
:root body.user-service #boardBodyEditor[data-empty='1']::before { left:20px; top:20px; font-size:16px; line-height:1.8; color:var(--ui-muted); }
:root body.user-service #boardBodyEditor .ProseMirror p { margin:0 0 .8em; }
:root body.user-service #boardBodyEditor .ProseMirror :is(ul,ol) { padding-left:24px; }
:root body.user-service #boardBodyEditor .ProseMirror blockquote { border-left:3px solid var(--ui-line); margin:16px 0; padding:4px 16px; color:var(--ui-muted); }
.board-editor-footer { display:flex; justify-content:space-between; gap:12px; padding:12px 20px; border-top:1px solid var(--ui-line); color:var(--ui-muted); font-size:12px; }
#boardBodyCount { white-space:nowrap; font-variant-numeric:tabular-nums; }
.board-link-panel[hidden] { display:none; }
.board-link-panel { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px; border-bottom:1px solid var(--ui-line); font-size:13px; }
.board-link-panel input { flex:1 1 200px; min-width:0; width:100%; }
.board-link-panel button { min-height:36px; }
#boardLinkError:not(:empty) { flex-basis:100%; color:var(--ui-muted); }
:root body.user-service #boardModeView[data-community-ready] .board-compose-actions-bottom { padding:18px 0 24px; }
@media(max-width:767px) {
 :root body.user-service #boardModeView[data-community-view='compose'] .community-page-title { font-size:20px; }
 :root body.user-service #boardModeView[data-community-ready] #boardTitle { font-size:16px; }
 :root body.user-service #boardCompose .board-editor-tools button { min-height:44px; min-width:38px; padding:6px 8px; }
 :root body.user-service #boardModeView[data-community-ready] #boardBodyEditor .ProseMirror { min-height:280px; padding:16px; }
 :root body.user-service #boardBodyEditor[data-empty='1']::before { left:16px; top:16px; }
 .board-editor-footer { padding:12px 16px; font-size:11px; }
}
@media(max-width:1023px) {
 :root body.user-service #boardModeView[data-community-ready][data-community-view='compose'] .community-page-heading { display:flex !important; padding:8px 0 16px; margin-bottom:18px; }
}
