/* Editorial theme. The market grid and original business controls are retained. */
:root{--bg:#fafafa;--surface:#fff;--surface-alt:#f4f4f3;--ink:#171717;--ink-2:#555;--muted:#727272;--soft:#eee;--line:#e8e8e8;--accent:#262626;--accent-strong:#171717;--accent-light:#efefed;--tag:#f2f2f0;--paper:#fff;--shadow:none;--shadow-high:0 20px 80px #0002;--radius:12px;--button-ink:#fff;--mint:#a8bbb1}
html[data-theme=dark]{--bg:#121212;--surface:#1b1b1b;--surface-alt:#242424;--ink:#f2f2f0;--ink-2:#cececa;--muted:#aaa;--soft:#333;--line:#363636;--accent:#e0e0dc;--accent-strong:#f2f2f0;--accent-light:#30302e;--tag:#292929;--paper:#202020;--shadow:none;--shadow-high:0 20px 80px #0008;--button-ink:#171717;--mint:#a8bbb1}
::selection{background:#a8bbb155}.brand-name .dot,.brand-sub span:last-child{color:var(--muted)}.brand-name{font-weight:700}.brand-sub{line-height:1.5}.round-btn:hover{border-color:var(--muted)}.header-post,.primary-button,.form-foot .primary-button,.comment-bottom button,.tab-post-inner,.empty-board button,.filter-chip.active{background:var(--accent);color:var(--button-ink);box-shadow:none}.header-post:hover{box-shadow:none}.aside-card,.post-card{box-shadow:none}.post-card{border-radius:12px;animation:none}.post-card:hover{border-color:var(--muted);box-shadow:none;transform:translateY(-2px)}.card-title{font-weight:650}.status-mini.open{color:var(--ink-2)}.status-mini.claimed{color:var(--ink-2)}.status-mini.working{color:#876b36}.status-mini.done{color:#4c7b67}html[data-theme=dark] .status-mini.working{color:#cdbb93}html[data-theme=dark] .status-mini.done{color:#a9c9b7}.avatar{background:var(--surface-alt)!important;color:var(--ink-2);border-color:var(--line)}.corner-label{background:var(--surface);color:var(--ink-2)}.post-card .card-excerpt{color:var(--ink-2)}.feed-heading h2{font-size:23px;font-weight:650}.feed-heading h2 span{font-size:13px}.text-poster{color:var(--ink)!important}.text-poster.theme-mint{background:#eff4f0}.text-poster.theme-pink{background:#f5f0f1}.text-poster.theme-cream{background:#f6f4ee}.text-poster.theme-blue{background:#eff2f5}.text-poster.theme-plum{background:#f2eff4}.text-poster.theme-sage{background:#f0f2ed}.text-poster.theme-peach{background:#f5f1ed}.text-poster.theme-charcoal{background:#ededeb}
html[data-theme=dark] .text-poster.theme-mint{background:#1d2822}html[data-theme=dark] .text-poster.theme-pink{background:#2b2023}html[data-theme=dark] .text-poster.theme-cream{background:#29271f}html[data-theme=dark] .text-poster.theme-blue{background:#1d252e}html[data-theme=dark] .text-poster.theme-plum{background:#27212c}html[data-theme=dark] .text-poster.theme-sage{background:#23291f}html[data-theme=dark] .text-poster.theme-peach{background:#2d241e}html[data-theme=dark] .text-poster.theme-charcoal{background:#252525}
.preview-banner{background:var(--surface-alt);color:var(--ink-2);border-color:var(--line)}.admin-notice,.mod-hint,.mod-alert,.admin-danger,.admin-tool-buttons .outline-button{background:var(--surface-alt)!important;color:var(--ink-2)!important;border-color:var(--line)!important}.mod-lock{border-radius:12px}.mod-actions button.danger{color:var(--ink-2)}.primary-button{border-color:var(--accent)}.empty-board{border-style:solid}.attachment-image img{border-color:var(--line)}
/* Fixed slide area prevents content and page height changes. */
.welcome.carousel{display:block;min-height:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);margin-bottom:30px;isolation:auto}.welcome:before,.welcome:after{display:none}.hero-slide{position:relative;padding:26px 28px 20px;height:250px;overflow:hidden}.hero-slide[hidden]{display:none}.hero-eyebrow{font-size:9px;letter-spacing:.18em;color:var(--muted);margin:0 0 22px;font-weight:600}.welcome .hero-slide h1{font-size:clamp(23px,2.4vw,34px);font-weight:550;line-height:1.45;letter-spacing:-.9px;max-width:90%;position:relative;z-index:1;margin:0 0 10px;white-space:pre-line}.welcome .hero-description{font-size:12px;color:var(--ink-2);margin:0;position:relative;z-index:1}.welcome-btn{background:var(--accent);border-color:var(--accent);color:var(--button-ink);padding:9px 13px;font-size:11px;margin-top:19px;border-radius:6px;position:relative;z-index:1}.welcome-btn:hover{background:var(--accent);transform:none;opacity:.8}.hero-number{font:italic 125px/1 var(--serif);position:absolute;right:20px;bottom:5px;color:var(--surface-alt);pointer-events:none}.carousel-tools{border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:9px 20px}.carousel-tools button{background:none;border:0;color:var(--muted);min-height:32px;min-width:32px;display:grid;place-items:center;font-size:10px}.carousel-tools button:hover{color:var(--ink)}.carousel-indicators{display:flex;gap:6px;flex:1}.carousel-tools .carousel-indicators button[aria-current=true]{color:var(--ink);font-weight:750;border-bottom:1px solid var(--ink)}#heroPause{padding:0 8px}.reading-content section{margin:0 0 24px}.reading-content h3{font-size:15px;margin:0 0 8px;font-weight:650}.reading-content p{font-size:13px;line-height:1.95;color:var(--ink-2);margin:0}.reading-content{padding:6px 0 12px}.spoiler-label{display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:3px 6px;border:1px solid var(--line);border-radius:4px;color:var(--ink-2);margin-bottom:8px}.spoiler-cover{height:100%;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:var(--surface-alt);color:var(--ink-2);padding:15px;text-align:center}.spoiler-cover small{font-size:10px;color:var(--muted)}.spoiler-prompt{padding:14px 0 22px}.spoiler-prompt p{font-size:14px;line-height:1.9}.spoiler-prompt .spoiler-actions{display:flex;gap:12px;margin-top:24px}.spoiler-notice{padding:10px 12px;background:var(--surface-alt);border:1px solid var(--line);font-size:12px;line-height:1.8}
/* Private profile: overlapping portrait and quiet, text-based statistics. */
.profile-page{margin-bottom:27px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.profile-cover{height:190px;background:var(--surface-alt);overflow:hidden;border-bottom:1px solid var(--line)}.profile-cover img{width:100%;height:100%;object-fit:cover}.profile-info{padding:0 23px 22px;position:relative}.profile-topline{display:flex;justify-content:space-between;align-items:flex-end;margin-top:-40px;position:relative;gap:12px;margin-bottom:14px}.profile-avatar{width:86px;height:86px;border:4px solid var(--surface);border-radius:50%;background:var(--surface-alt);display:grid;place-items:center;overflow:hidden;font-size:28px;font-weight:600}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-topline>button{margin-bottom:2px;background:var(--surface);min-height:36px}.profile-info h2{margin:0;font-size:24px;letter-spacing:-.5px}.profile-id{font-size:11px;color:var(--muted);margin:3px 0 12px;overflow-wrap:anywhere}.profile-bio{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}.profile-stats{display:flex;gap:20px;font-size:12px;color:var(--ink-2);flex-wrap:wrap}.profile-stats b{color:var(--ink);font-weight:700;margin-right:3px}.profile-notice{font-size:11px;line-height:1.8;color:var(--muted);padding-top:17px;margin:0}.profile-tools{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.profile-tabs{display:flex;overflow:auto;scrollbar-width:none;border-top:1px solid var(--line);padding:0 14px}.profile-tabs button{min-height:48px;flex:1;min-width:max-content;padding:0 10px;font-size:12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted)}.profile-tabs button[aria-selected=true]{border-bottom-color:var(--ink);font-weight:700;color:var(--ink)}.profile-group-label{font-size:10px;letter-spacing:.1em;padding:14px 23px 10px;color:var(--muted);border-top:1px solid var(--line);margin:0}.profile-filter{display:flex;gap:8px;align-items:center;margin:0 0 14px;flex-wrap:wrap}.profile-filter select{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);max-width:100%;font-size:12px}.activity-row{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:17px;margin-bottom:10px;overflow-wrap:anywhere}.activity-row h3{font-size:14px;margin:4px 0 8px}.activity-row p{font-size:12px;line-height:1.8;margin:8px 0}.activity-row small{font-size:11px;color:var(--muted)}.activity-row .activity-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.profile-editor-avatar{display:flex;gap:17px;align-items:center;margin:18px 0}.profile-editor-avatar .profile-avatar{width:80px;height:80px;flex-shrink:0}.profile-editor-cover{height:140px;border:1px solid var(--line);border-radius:8px;background:var(--surface-alt);overflow:hidden}.profile-editor-cover img{height:100%;width:100%;object-fit:cover}.profile-image-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}.crop-preview{width:100%;height:225px;object-fit:cover;background:var(--surface-alt)}.crop-controls{display:grid;gap:12px;margin:15px 0}.crop-controls label{display:grid;grid-template-columns:65px 1fr;align-items:center;gap:12px;font-size:12px}.feed-message{padding:20px;border:1px solid var(--line);background:var(--surface);margin-bottom:20px;border-radius:10px;font-size:13px}.feed-message button{margin-top:12px}.load-more{width:100%;padding:12px;border:1px solid var(--line);background:var(--surface);border-radius:8px;margin:14px 0;color:var(--ink-2)}.activity-feed{display:block!important}.activity-feed .empty-board{margin:0}.profile-page~.feed-heading{margin-top:6px}
/* Keep bottom bar in the viewport, outside every transformed/scrolling container.
   Remove blur/compositing used by the previous mobile bar to avoid WebKit drift. */
.mobile-tabbar{transform:none!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--surface)!important;box-shadow:none!important;isolation:isolate;contain:layout paint;z-index:90}.tab-item.active{color:var(--ink)}.tab-post-inner{border-radius:14px}.tab-item{touch-action:manipulation}.modal-root.is-open~.mobile-tabbar{visibility:hidden}body.modal-page-locked .mobile-tabbar{visibility:hidden}.modal-panel{border:1px solid var(--line)}.modal-root{z-index:200}.modal-scroll{overscroll-behavior:contain}.toast-host{z-index:300}.profile-page .outline-button{border-radius:100px}.profile-page img{max-width:100%}
@media(max-width:660px){
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));overflow-x:clip;min-height:100svh}.page-layout{padding-bottom:28px}.mobile-tabbar{position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:calc(64px + env(safe-area-inset-bottom,0px))!important;padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px))!important;align-items:center;border-top:1px solid var(--line)}.tab-item{height:52px}.tab-post{height:52px}.tab-post-inner{height:44px;width:48px;box-shadow:none}.float-top{bottom:calc(82px + env(safe-area-inset-bottom,0px))}.feed-heading h2{font-size:20px}.hero-slide{height:230px;padding:22px 20px 15px}.welcome .hero-slide h1{font-size:26px;max-width:100%;letter-spacing:-.8px}.hero-eyebrow{font-size:8px;margin-bottom:20px}.welcome .hero-description{font-size:11px;max-width:90%;line-height:1.8}.welcome.carousel{margin-bottom:23px}.hero-number{font-size:110px;right:12px}.carousel-tools{padding:6px 12px}.profile-cover{height:145px}.profile-info{padding:0 16px 19px}.profile-topline{margin-top:-34px}.profile-avatar{width:76px;height:76px}.profile-info h2{font-size:22px}.profile-stats{gap:16px}.profile-tabs{padding:0 6px}.profile-tabs button{font-size:12px;padding:0 9px}.profile-group-label{padding:13px 16px 8px}.profile-page{border-radius:10px}.modal-root .modal-panel{border-radius:16px 16px 0 0}.modal-root.is-detail .modal-panel{border-radius:0}.modal-scroll{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.card-excerpt{font-size:11px}.card-title{font-size:13px}.card-extra{align-items:flex-start;gap:3px;flex-wrap:wrap}.post-card:hover{transform:none}.profile-filter select{min-height:39px}.sort-cue{display:none}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html{scroll-behavior:auto}}

/* Legacy illustrative covers keep their structure within the monochrome theme. */
.artwork{filter:grayscale(1)}
/* The portrait itself remains the file picker, including keyboard access. */
.user-avatar-picker input{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border-radius:inherit}
.user-avatar-picker:focus-within{outline:2px solid var(--ink);outline-offset:3px}
