/* Sections flow on one paper surface. Borders describe data, not containers. */
:root{--bg:#fcfbf9;--paper:#fcfbf9;--ink:#26313c;--muted:#606a74;--line:#dedbd4;--radius:0;--control-height:28px}
body,.shell,.workspace{background:var(--bg)}.topbar{background:var(--bg);height:62px;border-bottom:1px solid var(--line)}
.content-grid,.admin-content-grid{gap:36px}.context-sidebar,.admin-content-grid>aside{padding-left:26px;border-left:1px solid var(--line)}
.side-card,.side-card.community-note,.side-card.community-prompt,.community-numbers,.form-card,.account-card,.local-admin-entry,.profile-card,.member-card,.category-card,.thread-list,.post-card,.reply-composer,.join-prompt,.notification-list,.moderation-list,.admin-table-scroll,.admin-filters,.admin-stat,.admin-entry-notes{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.side-card{padding:0 0 24px!important;margin:0 0 26px!important;border-bottom:1px solid var(--line)!important}.side-card:last-child{border-bottom:0!important}.side-card h2{font-size:18px;line-height:1.5}.side-card .eyebrow{color:#77664f}.side-description,.community-note p,.community-note ol{color:var(--muted)}.community-numbers{padding:0!important}
.welcome-hero{border:0;border-radius:0;min-height:285px;margin-bottom:30px}.welcome-hero>div:first-child{padding:30px 34px}.welcome-hero h1{font-size:36px}.sculpture{width:225px;height:225px}
.thread-list{overflow:visible}.thread-row{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:19px 0!important;box-shadow:none!important}.thread-row:hover{background:#f5f3ef;transform:none!important}.thread-row h3{font-size:16px}.thread-kickers{margin-bottom:8px}.feed-tabs{border-bottom:1px solid var(--line);margin-bottom:0}.feed-tabs a,.settings-tabs a{border-radius:0!important;background:none!important}
.section-intro{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--line)}.section-intro .page-heading{font-size:30px}.section-intro p{font-size:14px;color:var(--muted)}.section-intro .button{align-self:center}
.side-card:hover,.member-card:hover,.category-card:hover,.post-card:hover,.form-card:hover{transform:none!important;box-shadow:none!important}
.category-grid{gap:0 28px}.category-card{padding:22px 0!important;border-bottom:1px solid var(--line)!important}.category-card h2{font-size:21px}.category-card p{color:var(--muted)}.category-card>.icon{margin-bottom:12px}
.members-grid{gap:0 28px}.member-card{padding:24px 0!important;border-bottom:1px solid var(--line)!important}.member-card h2{font-size:16px}
.form-card{padding:0!important}.form-card h2,.reply-heading h2{font-size:19px}.form-card>label{margin-top:16px}.form-bottom{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.account-card{border-top:1px solid var(--line)!important;padding:23px 0!important}.account-card p{color:var(--muted)}.settings-section{border-bottom:1px solid var(--line)}
.post-card{border-bottom:1px solid var(--line)!important;margin-bottom:28px}.post-author{background:none;border-bottom:1px solid var(--line);padding:15px 0}.prose{padding:23px 0}.post-actions{padding:12px 0;border-top:1px solid var(--line)}.post-tags{padding-left:0;padding-right:0}.reply-composer{padding:0!important;margin-top:25px}.join-prompt{border-top:1px solid var(--line)!important;padding:22px 0!important}
.profile-cover{border-radius:0}.profile-main{padding-left:0;padding-right:0}.profile-bio{padding:22px 0;border-top:1px solid var(--line);color:var(--muted)}
.notification-item,.restore-row,.audit-row,.report-card{border-bottom:1px solid var(--line);padding-left:0;padding-right:0}.notification-item.unread{border-left:0;background:#f6f1e7}.notification-item.unread::before{content:'';width:5px;height:5px;background:var(--orange);border-radius:50%;flex-shrink:0}
.admin-tabs{gap:25px;margin-bottom:25px;padding:0}.admin-tabs a{padding:7px 0!important;min-height:34px;gap:12px;border-radius:0;background:none!important}.admin-tabs a:last-child{margin-left:auto}
.admin-stat-grid{gap:0;margin:0 0 30px;border-bottom:1px solid var(--line);padding-bottom:22px}.admin-stat{padding:0 22px!important;border-right:1px solid var(--line)!important}.admin-stat:first-child{padding-left:0!important}.admin-stat:last-child{border-right:0!important}.admin-stat b{font-size:29px;line-height:1.3;margin:7px 0}.admin-stat small{color:var(--muted)}
.admin-table th{background:none;color:var(--muted);padding:10px 12px;font-size:10px;border-bottom:1px solid var(--line)}.admin-table td{padding:11px 12px;font-size:13px;border-bottom:1px solid var(--line)}.admin-table td:first-child,.admin-table th:first-child{padding-left:0}.admin-table td:last-child,.admin-table th:last-child{padding-right:0}.admin-table tr:last-child td{border-bottom:1px solid var(--line)}.admin-filters{padding:0 0 20px!important;border-bottom:1px solid var(--line)!important;border-radius:0;gap:15px}.admin-filters label{margin-bottom:6px}.admin-results-line{margin:17px 0 12px}
.local-admin-entry{padding:24px 0!important}.admin-entry-notes{padding:18px 0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;gap:12px}.admin-entry-emblem{background:none;border:0;border-radius:0;width:40px;height:40px;margin-bottom:20px}
.auth-layout{border:0;border-radius:0;background:none;box-shadow:none;gap:36px}.auth-story{border-radius:0}.auth-card{background:none;padding:26px 0 26px 12px}.auth-card .button{min-height:28px!important}
/* Compact controls are scoped strongly enough to beat earlier component sizes. */
.workspace .button,.topbar .button,.workspace .button.small,.workspace .button.primary,.workspace .button.dark,.workspace .button.outline{padding:3px 10px!important;min-height:27px!important;height:auto!important;font-size:12px!important;line-height:19px!important;border-radius:4px;gap:8px}.button .icon{width:17px;height:17px}
.workspace input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.workspace select,.admin-filters input,.admin-filters select{padding:3px 8px!important;min-height:28px!important;height:auto!important;line-height:20px!important;font-size:13px!important;border-radius:4px;background:#fff;color:var(--ink);border-color:#c9c5be}
.workspace textarea{padding:6px 8px!important;font-size:13px!important;line-height:1.6!important;border-radius:4px;background:#fff;color:var(--ink);border-color:#c9c5be}.workspace input[type=file]{min-height:30px;padding:4px 6px!important}.workspace .password-field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]){padding-right:52px!important}.password-field>button{min-height:23px;padding:2px 7px!important}.topbar .global-search input{min-height:28px!important;line-height:20px;padding-top:3px!important;padding-bottom:3px!important}.topbar .global-search>button,.logout-button{min-height:26px!important;padding-top:3px!important;padding-bottom:3px!important}.topic-rating button,.topic-rating select{min-height:27px!important;padding:3px 7px!important}.text-button{min-height:25px;padding:3px 0}.rail nav>a{padding-top:7px;padding-bottom:7px;min-height:32px}
.page-footer{background:none;border-top:1px solid var(--line);margin-top:8px}.rank-badge,.category-pill,.tag{border-radius:3px}
/* Give every table edge and navigation hover face its own breathing room. */
.admin-table th:first-child,.admin-table td:first-child{padding-left:16px}.admin-table th:last-child,.admin-table td:last-child{padding-right:16px}
.feed-tabs,.settings-tabs,.admin-tabs{gap:10px;flex-wrap:wrap}.feed-tabs a,.settings-tabs a,.admin-tabs a{padding:5px 12px!important;min-height:30px;height:auto!important;line-height:20px;border-radius:4px 4px 0 0!important}.admin-tabs a:last-child{margin-left:auto}
.auth-card .checkbox-label{display:flex!important;align-items:center!important;gap:12px;line-height:1.5;margin:20px 0!important;min-height:24px;padding:0!important}.auth-card .checkbox-label input[type=checkbox]{display:block;flex:0 0 16px;width:16px;height:16px;min-height:0;margin:0!important;padding:0!important;align-self:center}.auth-card .checkbox-label span{display:block;margin:0;line-height:1.5}.auth-card label[for=password-confirmation]{margin-top:16px}
/* Icon/label rows share a real gap and one vertical alignment model. */
.rail nav>a,.admin-tabs>a,.settings-tabs>a:has(>.icon),.side-card-title,.side-card h2:has(>.icon),.icon-heading{display:flex;align-items:center!important;column-gap:12px!important}
.icon-heading .icon-label{display:block;min-width:0;line-height:1.5}
.icon-heading>.section-heading-icon,.side-card h2>.icon,.rail nav>a>.icon,.admin-tabs>a>.icon{display:block;flex-shrink:0;align-self:center;margin:0!important;vertical-align:middle}
.role:has(>.icon),.verified-label,.rank-badge,.topic-rank{display:inline-flex;align-items:center;column-gap:10px}.role>.icon,.verified-label>.icon,.rank-badge>.icon,.topic-rank>.icon{display:block;flex-shrink:0;margin:0!important}
.rail nav>a:hover>.icon,.admin-tabs>a:hover>.icon,.icon-heading:hover>.icon{transform:none!important}
@media(max-width:1100px){.context-sidebar,.admin-content-grid>aside{padding:24px 0 0;border-left:0;border-top:1px solid var(--line);gap:26px}.side-card{border-bottom:0!important}}
@media(max-width:650px){.content-grid,.admin-content-grid{gap:24px}.workspace{padding-top:24px}.section-intro .page-heading{font-size:26px}.welcome-hero>div:first-child{padding:24px}.welcome-hero h1{font-size:29px}.side-card{border-bottom:1px solid var(--line)!important}.members-grid{gap:0 20px}.admin-stat-grid{gap:18px 0}.admin-stat:nth-child(3){padding-left:0!important}.admin-stat:nth-child(2){border-right:0!important}.auth-card{padding:25px 0}.workspace input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.workspace select,.workspace textarea{font-size:16px!important;line-height:22px!important;min-height:32px!important}.workspace .button,.topbar .button{min-height:30px!important}.admin-tabs{gap:16px}.admin-tabs a:last-child{margin-left:0}}
