/* V2Y Clarity 3.5.2: calm, content-first UI. Overrides only presentation. */
html[data-theme="dark"] body.v352-clarity {
  --bg:#171717; --panel:#202020; --panel2:#292929; --line:#373737;
  --ink:#f5f5f5; --muted:#b2b2b2; --v312-soft:#272727;
  --v352-shadow:0 5px 24px rgba(0,0,0,.10);
}
html[data-theme="light"] body.v352-clarity {
  --bg:#fafafa; --panel:#fff; --panel2:#f4f4f5; --line:#e5e5e5;
  --ink:#1b1b1d; --muted:#62656a; --v312-soft:#fafafa;
  --v352-shadow:0 5px 25px rgba(16,24,40,.04);
}
.v352-clarity { background:var(--bg); color:var(--ink); font:14px/1.58 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.v352-clarity *, .v352-clarity *::before, .v352-clarity *::after {box-sizing:border-box;}
.v352-clarity .shell {max-width:1420px;padding-inline:clamp(14px,2.2vw,30px)}
.v352-clarity .app-layout {grid-template-columns:222px minmax(0,1fr);gap:clamp(20px,3vw,45px);padding-top:25px}
.v352-clarity :is(.main,.sidebar,.home-feed,.feed-row-content,.feed-search,.head-actions) {min-width:0;}
.v352-clarity h1 {font-size:clamp(25px,2.5vw,32px);font-weight:730;letter-spacing:-.85px;line-height:1.25}
.v352-clarity h2 {font-size:clamp(16px,1.8vw,20px);font-weight:680;letter-spacing:-.35px}
.v352-clarity p {line-height:1.65}
.v352-clarity :is(.muted,.mini,.feed-row-byline,.feed-row-excerpt) {color:var(--muted)}
.v352-clarity :is(.panel,.rail-panel,.cat-card,.feed-list,.thread-card,.v31-pulse-widget,.v33-card,.v34-pro-grid>section) {border-color:var(--line);border-radius:17px;box-shadow:none}
.v352-clarity :is(.panel,.rail-panel,.cat-card,.feed-list,.thread-card,.v31-pulse-widget,.v33-card) {background:var(--panel)}
.v352-clarity :is(.primary-btn,.secondary-btn,.icon-btn,.v352-register,.v352-signin) {border-radius:12px;box-shadow:none;min-height:42px;transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
.v352-clarity .primary-btn {background:var(--accent);border-color:var(--accent);font-size:13px;font-weight:650;white-space:normal;text-align:center}
.v352-clarity .primary-btn:hover {filter:brightness(1.08)}
.v352-clarity .secondary-btn {background:transparent;border:1px solid var(--line);font-weight:600}
.v352-clarity :where(button,input,textarea,select,a,summary):focus-visible {outline:3px solid var(--accent2);outline-offset:3px}
.v352-clarity input, .v352-clarity select, .v352-clarity textarea {accent-color:var(--accent);min-width:0;max-width:100%;}
.v352-clarity :is(.form-grid input,.form-grid textarea,.form-grid select,.v34-filters input,.v34-filters select,.v313-filters select,.search-controls input,.search-form input,.v34-stack input,.v34-stack textarea,.v34-stack select,.v35-inline select) {border:1px solid var(--line);background:var(--v312-soft);color:var(--ink);border-radius:11px;min-height:44px;padding:10px 12px}
.v352-clarity textarea {resize:vertical}
.v352-clarity :where(.form-grid,.v34-stack,.v34-filters) label {color:var(--ink);font-size:13px;font-weight:600;line-height:1.4}
.v352-clarity .form-grid label.checkbox {font-weight:450}
.v352-clarity :where(.panel,.form-grid,.v34-filters,.v313-filters) {min-width:0}
.v352-clarity .panel {padding:clamp(16px,2.2vw,24px)}
.v352-clarity :is(.post-body, .post-body p,.feed-row-excerpt,.v33-card p) {overflow-wrap:anywhere}
.v352-clarity :is(pre,code,table,iframe,img,video) {max-width:100%}
.v352-clarity pre {overflow:auto}
/* Single, calm header. */
.v352-clarity .site-header {background:var(--panel);backdrop-filter:none;-webkit-backdrop-filter:none;border-color:var(--line)}
.v352-clarity .head {height:68px;gap:clamp(16px,3vw,36px)}
.v352-clarity .brand {gap:10px;font-weight:700}
.v352-clarity .mark {width:36px;height:36px;flex-basis:36px;background:var(--accent);border-radius:11px;font-size:21px}
.v352-clarity .v30-brand-name {font-size:16px;letter-spacing:-.45px}
.v352-clarity .brand-sub {font-size:10px;letter-spacing:.1px}
.v352-clarity .top-links {gap:7px;font-weight:550}
.v352-clarity .top-links a {padding:10px 14px;border-radius:11px;font-size:13px;color:var(--muted)}
.v352-clarity .top-links a[aria-current="page"] {background:var(--panel2);color:var(--ink);box-shadow:none}
.v352-clarity .top-links a:hover {color:var(--ink);background:var(--panel2)}
.v352-clarity .head-actions {gap:7px}
.v352-clarity .icon-btn {width:42px;height:42px;color:var(--muted);background:transparent;border:1px solid transparent}
.v352-clarity .icon-btn:hover {background:var(--panel2);color:var(--ink);border-color:transparent}
.v352-clarity .v312-header-avatar {width:37px;height:37px;min-width:37px;border:1px solid var(--line);font-size:14px}
.v352-clarity .v352-signin {display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;font-weight:600;color:var(--ink);text-decoration:none}
.v352-clarity .v352-signin:hover {background:var(--panel2)}
.v352-clarity .v352-register {display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;border:1px solid var(--line);background:var(--panel2);font-weight:650;color:var(--ink);text-decoration:none}
.v352-clarity .v352-register:hover {background:var(--line)}
.v352-clarity .v312-new-topic {min-height:41px;padding:8px 13px}
/* Sidebar is integrated into the page, not an extra boxed dashboard. */
.v352-clarity .sidebar {background:transparent;border:0;box-shadow:none;border-radius:0;padding:5px 0;top:86px;max-height:calc(100dvh - 102px)}
.v352-clarity .sidebar .v312-side-title {font-size:11px;letter-spacing:.2px;text-transform:none;font-weight:680;color:var(--muted);padding:12px 14px 5px}
.v352-clarity .sidebar .v312-side-separator {margin-top:15px;padding-top:16px;border-color:var(--line)}
.v352-clarity .sidebar>a {min-height:41px;padding:10px 13px;color:var(--muted);font-size:13px;font-weight:540;gap:11px}
.v352-clarity .sidebar>a .v312-icon {width:19px;height:19px}
.v352-clarity .sidebar>a:is(:hover,.v312-active) {color:var(--ink);background:var(--panel2);box-shadow:none}
.v352-clarity .sidebar>a.v312-active {font-weight:660}
.v352-clarity .sidebar .v312-category-link {font-size:12.5px;padding-block:8px;min-height:37px}
.v352-clarity .v352-guest-sidebar {margin:17px 9px 0;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--panel)}
.v352-clarity .v352-guest-sidebar p {font-size:12px;color:var(--muted);margin:0 0 9px}
.v352-clarity .v352-guest-sidebar a {display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:660;color:var(--ink)}
.v352-clarity .v352-guest-sidebar .v312-icon {width:14px;height:14px}
/* Keep the guest navigation compact. */
.v352-clarity .v352-guest-note {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 15px;margin:0 0 16px;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:11px 15px;color:var(--muted);font-size:12.5px}
.v352-clarity .v352-guest-note a {font-weight:660;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
/* Home, content first. */
.v352-clarity .home-hero {padding:4px 0 8px;background:transparent;border:0;border-radius:0;margin:0 0 14px;box-shadow:none}
.v352-clarity .home-hero h1 {font-size:clamp(25px,2.3vw,32px);font-weight:720;margin:0 0 6px;letter-spacing:-.9px}
.v352-clarity .home-hero p {max-width:750px;font-size:13px;color:var(--muted);margin:0;line-height:1.55}
.v352-clarity .home-hero-actions {flex:0 0 auto}
.v352-clarity .home-categories {margin-bottom:20px}
.v352-clarity .home-categories-grid {display:flex;flex-wrap:nowrap;gap:8px;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:0 1px 7px}
.v352-clarity .home-category {display:flex;flex:0 0 auto;min-height:42px;max-width:245px;min-width:0;gap:8px;padding:8px 13px;border:1px solid var(--line);background:var(--panel);border-radius:11px;box-shadow:none}
.v352-clarity .home-category:hover {background:var(--panel2)}
.v352-clarity .home-category.selected {border-color:var(--accent);box-shadow:none;background:color-mix(in srgb,var(--accent) 9%,var(--panel))}
.v352-clarity .home-category-icon {display:none}
.v352-clarity .home-category-info strong {font-size:12.5px;font-weight:600;white-space:nowrap;max-width:145px;overflow:hidden;text-overflow:ellipsis;display:block}
.v352-clarity .home-category-info small {display:none}
.v352-clarity .home-category-count {font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}
.v352-clarity .home-categories .section-heading {margin-bottom:9px}
.v352-clarity .home-categories .section-heading h2 {font-size:13px;font-weight:650}
.v352-clarity .home-categories .section-more {font-size:12px}
.v352-clarity .home-columns {grid-template-columns:minmax(0,1fr) minmax(230px,275px);gap:clamp(14px,2vw,24px)}
.v352-clarity .home-right-rail {min-width:0}
.v352-clarity .home-feed {min-width:0}
.v352-clarity .section-heading {margin-bottom:12px}
.v352-clarity .section-heading h2 {font-weight:680;font-size:19px}
.v352-clarity .feed-total {font-weight:520;font-size:13px}
.v352-clarity .feed-search {border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:6px 6px 6px 13px;margin-bottom:12px}
.v352-clarity .feed-search input {background:transparent;border:0;min-width:0;font-size:13px;padding:8px 6px}
.v352-clarity .feed-search input:focus-visible {outline:0}
.v352-clarity .feed-search:focus-within {outline:2px solid var(--accent);outline-offset:2px}
.v352-clarity .feed-search button {border-radius:9px;background:var(--panel2);color:var(--ink);border-color:var(--line);font-weight:650;min-height:40px;padding:7px 14px}
.v352-clarity .feed-tabs {border-bottom:1px solid var(--line);margin:0 0 8px;gap:10px;overflow:auto}
.v352-clarity .feed-tabs a {min-height:43px;padding:10px 3px;margin-right:10px;font-size:12.5px;font-weight:550}
.v352-clarity .feed-tabs a.active {border-bottom-color:var(--accent);color:var(--ink);font-weight:690}
.v352-clarity .feed-current-filter {margin-bottom:8px}
.v352-clarity .feed-list {border:1px solid var(--line);border-radius:15px;overflow:hidden}
.v352-clarity .feed-row {padding:15px 16px;gap:12px;border-bottom:1px solid var(--line);transition:background-color .16s ease}
.v352-clarity .feed-row:hover {background:var(--panel2)}
.v352-clarity .feed-row-avatar {border-radius:50%;width:37px;height:37px;flex-shrink:0}
.v352-clarity .feed-row-title {font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.v352-clarity .feed-row-excerpt {font-size:12px;line-height:1.5}
.v352-clarity .feed-row-stats {color:var(--muted);font-size:11px}
.v352-clarity .home-right-rail .v31-pulse-widget {padding:16px;border-radius:15px}
.v352-clarity .home-right-rail .v31-pulse-widget h2 {font-size:16px}
.v352-clarity .home-right-rail .v31-pulse-card {padding:10px 8px}
/* Thread: actions stay small; report form only opens on explicit request. */
.v352-clarity .post {padding:clamp(15px,2vw,23px);}
.v352-clarity .post-head {border-color:var(--line)}
.v352-clarity .post-actions {gap:7px;border-color:var(--line);align-items:center}
.v352-clarity .post-actions :is(button,a.secondary-btn) {background:transparent;color:var(--muted);border-color:var(--line);min-height:39px;font-weight:540;padding:8px 10px;border-radius:10px}
.v352-clarity .post-actions :is(button,a.secondary-btn):hover {background:var(--panel2);color:var(--ink)}
.v352-clarity .v352-report {position:relative;flex:0 0 auto;min-width:0}
.v352-clarity .v352-report summary {list-style:none;cursor:pointer;padding:8px 11px;min-height:39px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px;display:flex;align-items:center}
.v352-clarity .v352-report summary::-webkit-details-marker {display:none}
.v352-clarity .v352-report[open] {flex:1 1 100%}
.v352-clarity .v352-report[open] summary {display:inline-flex;margin-bottom:10px}
.v352-clarity .v352-report .report-form {display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-top:5px;border:1px solid var(--line);background:var(--panel2);padding:12px;border-radius:12px}
.v352-clarity .v352-report .report-form label {flex:1 1 220px;font-size:12px;font-weight:580}
.v352-clarity .v352-report .report-form input {background:var(--panel);max-width:100%;min-height:43px}
.v352-clarity .v352-report .report-form button {min-height:43px}
/* Resource filters: only essential fields visible until the user expands. */
.v352-clarity .v34-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end}
.v352-clarity .v34-filters>div {min-width:0}
.v352-clarity .v34-filters .v352-advanced-filters {grid-column:1/-1;grid-row:2;min-width:0;border-top:1px solid var(--line);padding-top:10px}
.v352-clarity .v352-advanced-filters summary {cursor:pointer;display:inline-flex;align-items:center;min-height:40px;color:var(--muted);font-weight:600;font-size:12.5px;padding:7px 4px}
.v352-clarity .v352-advanced-filters summary:hover {color:var(--ink)}
.v352-clarity .v352-filter-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:8px}
.v352-clarity .v352-filter-grid>div {min-width:0}
.v352-clarity .v352-filter-grid :is(input,select) {width:100%}
.v352-clarity .v33-head {align-items:center;gap:12px}
.v352-clarity .v33-head-actions {display:flex;flex-wrap:wrap;gap:8px}
.v352-clarity .v33-card {min-width:0}
/* Drawer, bottom nav, and touch screens. */
.v352-clarity .v312-drawer {background:var(--panel);width:min(354px,calc(100vw - 14px))}
.v352-clarity .v312-drawer-head {background:var(--panel);min-height:62px}
.v352-clarity .v352-drawer-actions {display:flex;gap:4px;align-items:center}
.v352-clarity .v312-drawer-nav {gap:1px}
.v352-clarity .v312-drawer-nav>a {font-size:13px;font-weight:550;border-radius:10px;min-height:44px}
.v352-clarity .v312-drawer-nav>a:hover {background:var(--panel2)}
.v352-clarity .v312-drawer-label {letter-spacing:.3px;text-transform:none;font-size:11px}
.v352-clarity .bottom-nav {background:var(--panel);border-color:var(--line)}
.v352-clarity .bottom-nav>a, .v352-clarity .bottom-nav>button {color:var(--muted)}
.v352-clarity .bottom-nav>a:hover, .v352-clarity .bottom-nav>button:hover {background:var(--panel2);color:var(--ink)}
.v352-clarity .footer {color:var(--muted)}
/* Guardrails for long content and accessible mobile layouts. */
.v352-clarity .main :where(.cat-grid,.v33-card-grid,.v35-collections,.home-columns,.messages-layout,.v34-pro-grid,.profile-media-grid,.v35-stats) {min-width:0;max-width:100%}
.v352-clarity .main :where(.thread-card,.cat-card,.v33-card,.panel,section,article) {min-width:0}
.v352-clarity .main :where(.form-grid,.search-form,.feed-tabs,.v34-filters) {max-width:100%}
.v352-clarity :where(.tabs,.feed-tabs,.v313-tabs,.v31-pulse-filters) {scrollbar-width:thin}
.v352-clarity :where(.form-grid input[type=file],.v34-stack input[type=file]) {overflow-wrap:anywhere}
@media (max-width:1180px) {
 .v352-clarity .app-layout {display:block;padding-top:20px}
 .v352-clarity .sidebar {display:none}
 .v352-clarity .v312-menu-button {display:grid}
}
@media (max-width:1040px) {
 .v352-clarity .top-links {display:none}
 .v352-clarity .home-columns {grid-template-columns:minmax(0,1fr) minmax(220px,270px)}
}
@media (max-width:820px) {
 .v352-clarity .home-columns {grid-template-columns:minmax(0,1fr)}
 .v352-clarity .home-right-rail {margin-top:8px}
 .v352-clarity .v34-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
 .v352-clarity .v352-advanced-filters {grid-column:1/-1}
}
@media (max-width:720px) {
 .v352-clarity .head {height:60px;gap:7px}
 .v352-clarity .brand {max-width:calc(100vw - 144px)}
 .v352-clarity .mark {width:34px;height:34px;flex-basis:34px}
 .v352-clarity .v30-brand-name {font-size:14px}
 .v352-clarity .v312-new-topic {display:none}
 .v352-clarity .v312-theme-button {display:none}
 .v352-clarity .v312-header-avatar {display:none}
 .v352-clarity .v312-menu-button {display:none}
 .v352-clarity .v352-register {display:none}
 .v352-clarity .head-actions {gap:2px}
 .v352-clarity .head-actions .icon-btn {width:40px;height:40px}
 .v352-clarity .app-layout {padding-top:15px}
 .v352-clarity .main {padding-bottom:calc(93px + env(safe-area-inset-bottom))}
 .v352-clarity .home-hero {padding:5px 0 10px}
 .v352-clarity .home-categories-grid {grid-template-columns:none;display:flex;gap:7px}
 .v352-clarity .home-category {min-height:40px;padding:7px 10px}
 .v352-clarity .home-category-info strong {font-size:12px}
 .v352-clarity .home-hero h1 {font-size:25px}
 .v352-clarity .home-hero p {font-size:12.5px}
 .v352-clarity .feed-search {padding-left:10px}
 .v352-clarity .feed-row {grid-template-columns:34px minmax(0,1fr);padding:13px 12px;gap:10px}
 .v352-clarity .feed-row-stats {grid-column:2;justify-content:flex-start;flex-wrap:wrap;gap:8px;min-width:0}
 .v352-clarity .feed-row-title {font-size:13.5px}
 .v352-clarity .feed-tabs {gap:0}
 .v352-clarity .feed-tabs a {font-size:12px;min-height:42px;padding:9px 3px;margin-right:14px}
 .v352-clarity .post-actions {gap:6px}
 .v352-clarity .v34-filters {grid-template-columns:minmax(0,1fr)}
 .v352-clarity .v34-filters .v352-advanced-filters {grid-column:1;grid-row:auto}
 .v352-clarity .v352-filter-grid {grid-template-columns:minmax(0,1fr)}
 .v352-clarity .bottom-nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px max(5px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));min-height:63px}
 .v352-clarity .bottom-nav>a,.v352-clarity .bottom-nav>button {min-height:55px;border-radius:10px}
 .v352-clarity .footer {display:none}
}
@media (max-width:430px) {
 .v352-clarity .shell {padding-inline:12px}
 .v352-clarity .brand {max-width:calc(100vw - 120px);gap:8px}
 .v352-clarity .brand-sub {display:none}
 .v352-clarity .v352-signin {font-size:12px;padding-inline:6px;min-height:40px}
 .v352-clarity .v312-header-messages {display:none}
 .v352-clarity .home-hero h1 {font-size:24px}
 .v352-clarity .feed-search button {padding:6px 10px}
 .v352-clarity .v352-guest-note {font-size:12px;padding:10px 11px}
 .v352-clarity .v34-filters {padding:14px}
 .v352-clarity .v352-report .report-form label {flex-basis:100%}
}
@media (max-width:340px) {
 .v352-clarity .v312-header-notifications {display:none}
 .v352-clarity .v30-brand-name {font-size:12px}
 .v352-clarity .v352-signin {font-size:11px}
 .v352-clarity .v312-drawer {width:100vw}
 .v352-clarity .bottom-nav small {font-size:9px}
}
@media (prefers-reduced-motion:reduce) {
 .v352-clarity *, .v352-clarity *::before,.v352-clarity *::after {transition-duration:0.01ms!important;animation-duration:0.01ms!important}
}
