/* Campus Socials — ported from the Claude Design prototype (soft neobrutal). */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(../fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/space-mono-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/space-mono-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (copied from the design) ---------- */
html[data-size="s"] { --ui-zoom: .8 !important; }
html[data-size="m"] { --ui-zoom: .9 !important; }
html[data-size="l"] { --ui-zoom: 1 !important; }
html[data-size="xl"] { --ui-zoom: 1.1 !important; }
:root {
	--font-display: 'Space Mono', ui-monospace, monospace;
	--font-body: 'DM Sans', system-ui, sans-serif;
	--font-mono: 'Space Mono', ui-monospace, monospace;
	--ui-zoom: 1; /* Display size: Large by default. */
	--brown: #381600; --yellow: #FFDE7A; --aqua: #B9F3E8;
	--lock-fill:#E9E1D4; --success-soft:#DDF5E5; --error-soft:#FDE3DF;
	--canvas:#EFE6D3; --app:#FCF8EE; --solid:#FCF8EE;
	--surface:#fff; --surface-2:#F6EFE1; --hover:#F3EADA; --line:#E3D5C2; --line-strong:#381600; --edge:#381600; --pop:3px 3px 0 #381600; --header:#FCF8EE;
	--ink:#381600; --ink-2:#5E4A3A; --ink-3:#75604F;
	--primary:#FFDE7A; --on-primary:#381600; --soft:#B9F3E8; --on-soft:#381600; --tab-active:#FFDE7A; --nav-active:#B9F3E8; --on-nav-active:#381600;
	--link:#1E6F63; --like:#D81E5B; --verified:#00EED0; --lecturer:#DCCBFA; --official:#FF9B52; --on-badge:#381600;
	--success:#1C8C4A; --warning:#B86E00; --error:#D93A2B; --on-error:#FFFFFF; --info:#3A5BD9; --warning-soft:#FFF3C4;
	--stripe:#EFE4D0; --unread:#FFF3C4; --toast:#381600; --on-toast:#FCF8EE;
	--pin-bg:#FFF3C4; --pin-label:#381600; --tag-bg:#B9F3E8; --tag-fg:#381600; --pin-tag-bg:#FFFFFF;
	--tabbar:#DCCBFA; --tab-on:#FFFFFF; --tab-off:#381600; --nav-badge:#FFFFFF; --price:#1C8C4A; --card-2:#FCF8EE; --ph:#F1E7D6; --dash:#D9C8B2;
	--like-fill:#FFB3C8; --poll-bar:#E4F9F4; --page-av-bg:#381600; --page-av-fg:#FFDE7A; --chip-soft:#E4F9F4;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--lock-fill:#2E261E; --success-soft:#173324; --error-soft:#3A1C18;
	--canvas:#0D0A07; --app:#17120D; --solid:#17120D;
	--surface:#221B15; --surface-2:#2B231B; --hover:#2E261E; --line:#3A2F25; --line-strong:#EADBC6; --edge:#EADBC6; --pop:3px 3px 0 #EADBC6; --header:#17120D;
	--ink:#FCF8EE; --ink-2:#E0D2C0; --ink-3:#C4B3A2;
	--soft:#1D4A44; --on-soft:#B9F3E8;
	--link:#B9F3E8; --like:#FF8FB1;
	--success:#7FE0A4; --warning:#FFDE7A; --error:#FF8A7A; --on-error:#2A0A05; --info:#A9B8FF; --warning-soft:#2E2512;
	--stripe:#2E261E; --unread:#2E2512; --toast:#FCF8EE; --on-toast:#381600;
	--pin-bg:#2E2512; --pin-label:#FFDE7A; --tag-bg:transparent; --tag-fg:#B9F3E8; --pin-tag-bg:transparent;
	--tabbar:#2E2547; --tab-on:#DCCBFA; --tab-off:#C4B3A2; --nav-badge:#FFDE7A; --price:#7FE0A4; --card-2:#17120D; --ph:#2B231B; --dash:#3A2F25;
	--like-fill:#FF8FB1; --poll-bar:#1D4A44; --page-av-bg:#FFDE7A; --page-av-fg:#381600; --chip-soft:#1D4A44;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--app); color: var(--ink); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }

/* ---------- Shell ---------- */
.cs-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cs-rail, .cs-side { display: none; }
.cs-main { flex: 1; zoom: var(--ui-zoom); width: 100%; min-width: 0; padding-bottom: 96px; overflow-x: clip; }

/* Mobile top bar (home) */
.cs-topbar { position: sticky; top: 0; z-index: 5; background: var(--app); padding: 14px 18px 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cs-topbar__left { display: flex; align-items: center; }
.cs-topbar__right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.cs-logo img { height: 35px; width: auto; }
.cs-circle-btn { width: 42px; height: 42px; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }

/* Screen header (post, profile) */
.cs-screenbar { position: sticky; top: 0; z-index: 5; background: var(--header); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1.5px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.cs-screenbar .cs-circle-btn { width: 40px; height: 40px; }
.cs-screenbar__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-screenbar__title { font-family: var(--font-mono); font-size: 17px; font-weight: 700; }
.cs-screenbar__sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* Mobile bottom navigation */
.cs-tabbar { position: fixed; left: 0; right: 0; bottom: 0; zoom: var(--ui-zoom); height: 76px; background: var(--tabbar); border-top: 1.5px solid var(--edge); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); z-index: 20; }
.cs-tab { justify-self: center; position: relative; width: 46px; height: 46px; border: 1.5px solid transparent; border-radius: 50%; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.cs-tab.is-on { border-color: var(--edge); background: var(--tab-on); color: var(--brown); }
.cs-tab__badge { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--nav-badge); color: var(--brown); border: 1.5px solid var(--edge); font: 700 10px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; }
.cs-tab__avatar { width: 30px; height: 30px; font-size: 11px; }
.cs-fab { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); width: 62px; height: 62px; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 7px var(--app); }

/* ---------- Avatars and tags ---------- */
.cs-av { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--aqua); color: var(--brown); display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-mono); flex-shrink: 0; }
.cs-av.is-page { border-radius: 11px; background: var(--page-av-bg); color: var(--page-av-fg); }
.cs-campus { font: 700 10px/1.5 var(--font-mono); border: 1.2px solid var(--edge); background: var(--tag-bg); color: var(--tag-fg); padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.cs-chip { display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1.5 var(--font-mono); border: 1.2px solid var(--edge); background: var(--surface-2); color: var(--ink); padding: 0 6px; border-radius: 6px; }
.cs-chip--fresher { background: var(--yellow); color: var(--brown); }
.cs-chip--author { background: #DCCBFA; color: var(--brown); }
.cs-badge { width: 17px; height: 17px; overflow: visible; flex-shrink: 0; }

/* ---------- Home ---------- */
.cs-hello { padding: 4px 18px 0; font: 700 15px/1.4 var(--font-mono); }
.cs-hello__sub { display: none; }
.cs-stories { display: flex; gap: 10px; overflow-x: auto; padding: 14px 18px 4px; scroll-padding-inline: 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-stories::-webkit-scrollbar { display: none; }
.cs-story { position: relative; flex: 0 0 100px; height: 164px; scroll-snap-align: start; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--brown); padding: 0; cursor: pointer; overflow: hidden; text-align: left; }
.cs-story__ring { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: var(--brown); display: flex; }
.cs-story__ring .cs-av { flex: 1; width: auto; height: auto; font-size: 10px; }
.cs-story__ring.is-page { border-radius: 9px; }
.cs-story__ring.is-page .cs-av { border-radius: 9px; }
.cs-story__text { position: absolute; left: 10px; right: 10px; top: 50px; font-size: 12px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cs-story__name { position: absolute; left: 8px; right: 8px; bottom: 8px; font: 700 11px/1.2 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-story--create { display: flex; flex-direction: column; color: var(--ink); }
.cs-story--create .cs-story__me { flex: 1; background: var(--aqua); color: var(--brown); display: flex; align-items: center; justify-content: center; font: 700 29px/1 var(--font-mono); border-bottom: 1.5px solid var(--edge); }
.cs-story--create .cs-story__foot { position: relative; height: 59px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; font: 700 11px/1 var(--font-mono); }
.cs-story__plus { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; }

.cs-tabs { display: flex; margin: 22px 18px 0; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 4px; gap: 4px; }
.cs-tabs__item { flex: 1; min-height: 38px; border: 1.5px solid transparent; border-radius: 9px; background: transparent; color: var(--tab-off); font: 400 13px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cs-tabs__item.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }

.cs-feed { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 30px; }
.cs-composer { display: none; }
.cs-empty { border: 1.5px dashed var(--edge); border-radius: 16px; padding: 24px 18px; text-align: center; background: var(--card-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cs-empty__title { font: 700 15px/1.3 var(--font-mono); }
.cs-empty__body { font-size: 14px; color: var(--ink-3); max-width: 300px; line-height: 1.45; }

/* ---------- Post card ---------- */
.cs-post { --av: 40px; --name: 15px; --text: 15px; --lh: 1.45; --cnt: 12px; position: relative; background: var(--surface); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px 14px 2px; display: flex; flex-direction: column; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s, background .15s; }
.cs-post:hover { box-shadow: var(--pop); transform: translate(-1px, -1px); }
.cs-post.is-pinned { background: var(--pin-bg); padding-top: 12px; }
.cs-post.is-pinned .cs-campus { background: var(--pin-tag-bg); }
.cs-post__label { font: 400 11px/1 var(--font-mono); color: var(--pin-label); display: flex; align-items: center; gap: 5px; margin-bottom: 9px; }
.cs-post__row { display: flex; gap: 10px; }
.cs-post__col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: var(--av); }
.cs-post__col .cs-av { width: var(--av); height: var(--av); }
.cs-line { width: 2px; background: var(--edge); flex-shrink: 0; }
.cs-line--top { height: 12px; }
.cs-line--bottom { flex: 1; min-height: 14px; margin-top: 4px; }
.cs-post__body { flex: 1; min-width: 0; }
.cs-post__head { display: flex; align-items: flex-start; gap: 6px; }
.cs-post__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px 6px; flex-wrap: wrap; }
/* Phones: @handle · time drops to its own line under the name (desktop puts it inline). */
.cs-post__meta--inline { order: 99; flex-basis: 100%; margin-top: 0; }
.cs-post__name { font-weight: 700; font-size: var(--name); line-height: 1.2; }
.cs-post__name:hover { text-decoration: underline; }
.cs-post__meta { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 1px; }
.cs-more { width: 32px; height: 32px; margin: -6px -8px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.cs-more:hover { background: var(--hover); }
.cs-post__text { margin: 7px 0 0; font-size: var(--text); line-height: var(--lh); text-wrap: pretty; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-tag { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cs-actions { display: flex; justify-content: space-between; max-width: 460px; margin: 2px -6px 0; }
.cs-act { background: none; border: 0; display: flex; align-items: center; gap: 7px; color: var(--ink-3); font: 400 var(--cnt)/1 var(--font-mono); padding: 0 6px; min-height: 44px; cursor: pointer; }
.cs-act.is-liked { color: var(--like); }
.cs-act.is-liked svg { fill: var(--like-fill); }
.cs-act.pop svg { animation: cs-pop .35s ease; }
@keyframes cs-pop { 40% { transform: scale(1.35); } }

.cs-pdf { margin-top: 10px; display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--edge); border-radius: 12px; padding: 9px 9px 9px 10px; background: var(--card-2); }
.cs-pdf__icon { width: 36px; height: 44px; border-radius: 7px; border: 1.5px solid var(--edge); background: #FFD9E3; color: var(--brown); display: flex; align-items: center; justify-content: center; font: 700 10px/1 var(--font-mono); flex-shrink: 0; }
.cs-pdf__info { flex: 1; min-width: 0; }
.cs-pdf__title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-pdf__meta { font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-pdf__dl { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--brown); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; gap: 6px; font: 700 13px/1 var(--font-mono); }
.cs-pdf__dl span { display: none; }
.cs-images { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; overflow: hidden; margin-top: 12px; border: 1.5px solid var(--edge); }
.cs-images.is-one { grid-template-columns: 1fr; }
.cs-images__ph { aspect-ratio: 4/3; background: var(--ph); display: flex; align-items: flex-end; padding: 10px; font: 400 11px/1.2 var(--font-mono); color: var(--ink-3); }
.cs-poll { margin-top: 10px; }
.cs-poll__opt { position: relative; height: 40px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); overflow: hidden; margin-bottom: 8px; }
.cs-poll__opt.is-top { border-width: 2px; }
.cs-poll__bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--poll-bar); }
.cs-poll__opt.is-top .cs-poll__bar { background: var(--yellow); }
.cs-poll__row { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 11px; font: 400 13px/1 var(--font-mono); }
.cs-poll__opt.is-top .cs-poll__row { font-weight: 700; }
.cs-poll__opt.is-top .cs-poll__row span:first-child { color: var(--brown); }
.cs-poll__meta { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }

/* ---------- Thread page ---------- */
.cs-titem, .cs-focus { --av: 40px; --name: 15px; --text: 15px; --lh: 1.45; --cnt: 12px; color: var(--ink); }
.cs-thread { display: flex; flex-direction: column; min-height: calc(100vh - 76px); }
.cs-titem { padding: 0 16px; display: flex; flex-direction: column; cursor: pointer; }
.cs-titem .cs-post__row { gap: 10px; }
.cs-titem .cs-post__body { padding-top: 16px; }
.cs-titem .cs-post__col { --av: 40px; }
.cs-titem.is-first .cs-line--top { opacity: 0; }
.cs-titem.is-last .cs-line--bottom { opacity: 0; }
.cs-titem .cs-actions { max-width: 460px; }
.cs-titem.is-reply { border-top: 1.5px solid var(--line); }
.cs-thread-parts { border-top: 1.5px solid var(--line); padding-top: 4px; }
.cs-replybar.cs-replybar--inline { display: none; }
.cs-titem.is-reply .cs-line { opacity: 0; }
.cs-focus { padding: 0 16px 4px; cursor: default; }
.cs-focus .cs-post__row { gap: 14px; }
/* Same 40px column as the items above, so the thread line runs straight; the bigger avatar overhangs it evenly. */
.cs-focus .cs-post__col { width: 40px; }
.cs-focus .cs-post__col .cs-av { width: 48px; height: 48px; margin: 0 -4px; font-size: 15px; }
.cs-focus .cs-line--top { height: 14px; }
.cs-focus.is-first .cs-line--top { opacity: 0; }
.cs-focus .cs-line--bottom { display: none; }
.cs-focus .cs-post__body { padding-top: 18px; }
.cs-focus .cs-post__name { font-size: 17px; }
.cs-focus__content { margin-top: 14px; min-width: 0; }
.cs-focus .cs-post__text { margin: 0; font-size: 18px; }
.cs-focus__when { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-aud { display: inline-flex; align-items: center; gap: 5px; border: 1.2px solid var(--edge); border-radius: 6px; padding: 1px 7px; background: var(--chip-soft); color: var(--ink); font-weight: 700; }
.cs-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding: 12px 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); font-size: 14px; }
.cs-stats b { font-family: var(--font-mono); }
.cs-stats span span { color: var(--ink-3); }
.cs-focus .cs-actions { max-width: 100%; }
.cs-replies-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; border-top: 1.5px solid var(--line); }
.cs-replies-head h2 { margin: 0; font: 700 15px/1 var(--font-mono); }
.cs-seg { display: flex; gap: 4px; padding: 3px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); }
.cs-seg a { min-height: 30px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 7px; color: var(--ink-3); font: 400 12px/1 var(--font-mono); display: flex; align-items: center; }
.cs-seg a.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-showmore { display: flex; gap: 10px; padding: 0 0 12px; }
.cs-showmore__pad { width: 40px; flex-shrink: 0; }
.cs-small-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 5px 10px; font: 700 12px/1.2 var(--font-mono); cursor: pointer; }
.cs-noreplies { margin: 12px 16px 24px; }
.cs-replybar { position: sticky; bottom: 76px; z-index: 4; background: var(--app); border-top: 1.5px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.cs-replybar .cs-av { width: 34px; height: 34px; font-size: 11px; }
.cs-replybar__input { flex: 1; min-height: 42px; border: 1.5px solid var(--edge); border-radius: 21px; background: var(--surface); color: var(--ink); padding: 10px 16px; font: 400 15px/1.3 var(--font-body); resize: none; outline: none; max-height: 140px; }
.cs-replybar__send { min-height: 42px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: 21px; background: var(--yellow); color: var(--brown); font: 700 13px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.cs-replybar__send[disabled] { opacity: .5; box-shadow: none; cursor: default; }

/* ---------- Profile ---------- */
.cs-cover { height: 150px; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--surface-2); display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px 16px; font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-profile { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.cs-profile__top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -44px; gap: 8px; }
.cs-profile__av { width: 88px; height: 88px; border-radius: 44px; border: 4px solid var(--solid); font: 700 28px/1 var(--font-display); }
.cs-profile__av.is-page { border-radius: 22px; }
.cs-profile__acts { display: flex; gap: 8px; padding-bottom: 4px; align-items: center; }
.cs-pill-btn { height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); font: 600 14px/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; }
.cs-pill-btn.is-primary { background: var(--yellow); color: var(--brown); font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.cs-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-profile__name { display: flex; align-items: center; gap: 6px; font: 800 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.cs-profile__handle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 15px/1 var(--font-body); color: var(--ink-3); }
.cs-profile__campus { font: 600 10px/1 var(--font-body); letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: var(--on-soft); }
.cs-profile__cat { font: 600 10px/1 var(--font-body); padding: 3px 8px; border-radius: 999px; border: 1.2px solid var(--edge); color: var(--ink); }
.cs-profile__av.is-page { box-shadow: 0 0 0 1.5px var(--edge); }
.cs-icon-btn--on { background: var(--yellow); color: var(--brown); }
.cs-pending { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font-body); padding: 4px 8px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); }
.cs-profile__role { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 14px/1.3 var(--font-body); color: var(--ink-2); }
.cs-profile__bio { margin: 0; font: 400 15px/1.5 var(--font-body); text-wrap: pretty; }
.cs-profile__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font: 400 14px/1 var(--font-body); color: var(--ink-3); }
.cs-profile__stats span { display: inline-flex; align-items: center; gap: 5px; }
.cs-profile__stats b { color: var(--ink); font-weight: 600; }
.cs-ptabs-wrap { position: sticky; top: 61px; z-index: 4; background: var(--header); padding: 8px 16px; }
.cs-ptabs { display: flex; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cs-ptabs a { flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 9px; color: var(--ink-2); font: 400 13px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; }
.cs-ptabs a.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-plist { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Shared bits for list screens ---------- */
.cs-flex { flex: 1; }
.cs-circle-btn--flat { border: 0; background: transparent; }
.cs-circle-btn--sm { width: 40px; height: 40px; }
.cs-btn-pop { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--brown); background: var(--yellow); color: var(--brown); font: 700 12px/1 var(--font-mono); box-shadow: var(--pop); white-space: nowrap; display: inline-flex; align-items: center; }
.cs-link-btn { height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--link); font: 700 12px/1 var(--font-mono); cursor: pointer; white-space: nowrap; }
.cs-link-btn[disabled] { opacity: .45; cursor: default; }
.cs-box { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cs-box > :last-child { border-bottom: 0 !important; }
.cs-empty--big { padding: 28px 20px; }
.cs-xrow__tag { font: 700 9px/1 var(--font-body); letter-spacing: .06em; padding: 4px 7px; border-radius: 999px; background: var(--soft); color: var(--on-soft); white-space: nowrap; flex-shrink: 0; }
.cs-av.is-tag { border-radius: 10px; background: var(--soft); color: var(--on-soft); font-size: 16px; }
.cs-follow { height: 34px; min-width: 86px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); font: 600 13px/1 var(--font-body); cursor: pointer; flex-shrink: 0; }
.cs-follow.is-following, .cs-follow-sm.is-following { background: var(--surface); color: var(--ink); }
.cs-pill-btn.is-following { background: transparent; }

/* ---------- Explore ---------- */
.cs-xhead { position: sticky; top: 0; z-index: 6; background: var(--header); border-bottom: 1.5px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cs-xhead__row { display: flex; align-items: center; gap: 8px; }
.cs-xsearch { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--edge); color: var(--ink-3); }
.cs-xsearch:focus-within { box-shadow: 0 0 0 1.5px var(--edge); }
.cs-xsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 15px/1 var(--font-body); -webkit-appearance: none; appearance: none; }
.cs-xsearch input::-webkit-search-cancel-button { display: none; }
.cs-xsearch__clear { color: var(--ink-3); padding: 4px; display: flex; }
.cs-xhead__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cs-scope { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); }
.cs-scope a { height: 32px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font: 600 13px/1 var(--font-body); display: flex; align-items: center; white-space: nowrap; }
.cs-scope a.is-on { background: var(--yellow); color: var(--brown); }
.cs-tabs--x, .cs-tabs--n { margin: 0; }
.cs-tabs--x { overflow-x: auto; scrollbar-width: none; }
.cs-tabs--x .cs-tabs__item { flex: 1 0 auto; min-height: 34px; padding: 0 10px; font-size: 12px; }
.cs-tabs--n .cs-tabs__item { min-height: 36px; font-size: 12px; }
.cs-suggest-box { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 16px; padding: 6px 10px; box-shadow: var(--pop); }
.cs-sg { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1.5px solid var(--line); color: var(--ink); }
.cs-sg .cs-av { width: 38px; height: 38px; font-size: 12px; }
.cs-sg__main { flex: 1; min-width: 0; }
.cs-sg__main b { display: block; font-size: 15px; }
.cs-sg__main small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-sg--recent { min-height: 44px; font: 500 15px/1 var(--font-body); gap: 10px; border-bottom: 0; }
.cs-sg__clock { color: var(--ink-3); flex-shrink: 0; }
.cs-sg__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 2px; font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-sg__head button { border: 0; background: none; color: var(--link); font: 700 12px/1 var(--font-mono); cursor: pointer; text-transform: none; letter-spacing: 0; }
.cs-sg__all { display: block; padding: 12px 4px 8px; color: var(--link); font: 700 14px/1 var(--font-mono); }
.cs-xbody { padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 18px; }
.cs-xsec { display: flex; flex-direction: column; gap: 8px; }
.cs-xsec__title { margin: 0; font: 700 17px/1.2 var(--font-display); }
.cs-xsec__label { margin: 0; font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-trend { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1.5px solid var(--line); color: var(--ink); }
.cs-trend:hover, .cs-prow:hover { background: var(--hover); }
.cs-trend__rank { font: 700 15px/1 var(--font-mono); width: 22px; color: var(--ink-3); }
.cs-trend__main { flex: 1; min-width: 0; }
.cs-trend__main b { display: block; font-size: 14px; }
.cs-trend__main small, .cs-prow__main small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.cs-pop { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.cs-pop:hover, .cs-xrow:hover { box-shadow: var(--pop); transform: translate(-1px, -1px); }
.cs-pop__who { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cs-pop__text { font-size: 13px; line-height: 1.45; }
.cs-pop__meta { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-prow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1.5px solid var(--line); }
.cs-prow__main { flex: 1; min-width: 0; color: var(--ink); }
.cs-prow__main b { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.cs-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cs-fpill { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-body); display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer; }
.cs-fpill.is-on { background: var(--yellow); color: var(--brown); }
.cs-fsel { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-fsel select { height: 34px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 0 8px; font: 600 12px/1 var(--font-body); max-width: 170px; }
.cs-xrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.cs-xrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-xrow__top { display: flex; align-items: center; gap: 6px; }
.cs-xrow__label { min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.3; }
.cs-xrow__top .cs-xrow__tag { margin-left: auto; }
.cs-xrow__sub { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- Notifications ---------- */
.cs-nhead { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1.5px solid var(--line); padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-nhead__row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.cs-nhead__title { flex: 1; margin: 0; font: 700 20px/1 var(--font-display); }
.cs-nlist { padding: 6px 0 40px; }
.cs-ngroup { margin: 0; padding: 14px 16px 6px; font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cs-note { position: relative; display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1.5px solid var(--line); cursor: pointer; }
.cs-note:hover { background: var(--hover); }
.cs-note.is-unread { background: var(--unread); }
.cs-note__dot { position: absolute; left: 5px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: #D81E5B; }
.cs-note__icon { width: 30px; display: flex; justify-content: center; padding-top: 3px; flex-shrink: 0; }
.cs-note__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-note__avs { display: flex; }
.cs-note__avs a + a { margin-left: -8px; }
.cs-note__avs .cs-av { width: 32px; height: 32px; font-size: 10px; border: 2px solid var(--app); outline: 1.5px solid var(--edge); }
.cs-note__avs .cs-av.is-page { border-radius: 9px; }
.cs-note__line { display: flex; gap: 8px; align-items: flex-start; }
.cs-note__text { flex: 1; font-size: 15px; line-height: 1.4; text-wrap: pretty; overflow-wrap: anywhere; }
.cs-note__time { font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.cs-note__post { border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cs-note__snip { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cs-note__pacts { display: flex; gap: 16px; }
.cs-note__pact { border: 0; background: none; padding: 0; color: var(--ink-3); font: 700 12px/1 var(--font-mono); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.cs-note__pact.is-liked { color: var(--like); }
.cs-note__pact.is-liked svg { fill: var(--like-fill); }
.cs-note__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-note-btn { height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; white-space: nowrap; }
.cs-note-btn.is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); }

/* ---------- Hashtag ---------- */
.cs-tagpage { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-taghero { padding: 20px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--edge); display: flex; flex-direction: column; gap: 12px; }
.cs-taghero__row { display: flex; align-items: center; gap: 14px; }
.cs-taghero__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--on-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-taghero__icon--big { width: 72px; height: 72px; border-radius: 36px; }
.cs-taghero__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cs-taghero h1 { margin: 0; font: 800 24px/1.1 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.cs-taghero__stats { font: 400 14px/1.3 var(--font-body); color: var(--ink-3); }
.cs-tagfollow { align-self: flex-start; height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 700 13px/1 var(--font-display); cursor: pointer; }
.cs-tagfollow.is-following { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cs-seg--round { border-radius: 999px; background: var(--surface-2); padding: 4px; gap: 4px; }
.cs-seg--round a { flex: 1; height: 34px; min-height: 0; justify-content: center; border: 0; border-radius: 999px; color: var(--ink-3); font: 600 13px/1 var(--font-body); }
.cs-seg--round a.is-on { background: var(--tab-active); color: var(--on-primary); box-shadow: inset 0 0 0 1.5px var(--edge); font-weight: 600; }
.cs-tagempty { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-tagempty .cs-empty__body { margin: 0 auto; }

/* ---------- Toast ---------- */
.cs-toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; background: var(--toast); color: var(--on-toast); border-radius: 12px; padding: 12px 16px; font: 500 14px/1.3 var(--font-body); z-index: 50; transition: .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.cs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
	body { background: var(--app); }
	.cs-shell { flex-direction: row; justify-content: center; gap: 32px; padding: 0 24px; }
	.cs-rail { display: flex; zoom: var(--ui-zoom); width: 250px; flex-shrink: 0; padding: 24px 0; flex-direction: column; gap: 4px; position: sticky; top: 0; height: calc(100vh / var(--ui-zoom)); overflow-y: auto; }
	.cs-main { flex: 0 1 640px; min-width: 0; padding-bottom: 48px; }
	.cs-side { display: flex; zoom: var(--ui-zoom); width: 350px; flex-shrink: 0; padding: 28px 0 48px; flex-direction: column; gap: 18px; position: sticky; top: 0; height: calc(100vh / var(--ui-zoom)); overflow-y: auto; }
	.cs-topbar, .cs-tabbar { display: none; }

	.cs-hello { padding: 28px 0 0; font-size: 22px; }
	.cs-hello__sub { display: block; font: 400 15px/1.4 var(--font-body); color: var(--ink-3); margin-top: 4px; }
	.cs-stories { gap: 12px; padding: 18px 2px 6px; scroll-padding-inline: 2px; }
	.cs-story { flex-basis: 112px; height: 184px; }
	.cs-story--create .cs-story__me { font-size: 33px; }
	.cs-story--create .cs-story__foot { height: 66px; }
	.cs-tabs { margin: 22px 0 0; border-radius: 14px; padding: 5px; gap: 5px; }
	.cs-tabs__item { min-height: 42px; border-radius: 10px; font-size: 14px; }
	.cs-feed { gap: 14px; padding: 16px 0 0; }
	.cs-composer { display: block; margin-top: 16px; background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; padding: 16px; }
	.cs-composer__row { display: flex; gap: 12px; }
	.cs-composer__row .cs-av { width: 42px; height: 42px; }
	.cs-composer textarea { width: 100%; border: 0; resize: none; font: 400 17px/1.4 var(--font-body); color: var(--ink); background: transparent; padding: 9px 0; outline: none; }
	.cs-composer__chips { display: flex; gap: 8px; flex-wrap: wrap; }
	.cs-composer__chip { display: flex; align-items: center; gap: 6px; border: 1.2px solid var(--edge); background: var(--surface); border-radius: 8px; padding: 4px 10px; font: 400 12px/1.3 var(--font-mono); color: var(--ink); }
	.cs-composer__chip.is-aud { background: var(--chip-soft); }
	.cs-composer__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--dash); }
	.cs-composer__tools { display: flex; gap: 4px; }
	.cs-composer__tool { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
	.cs-composer__tool:hover { background: var(--hover); }
	.cs-btn-primary { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font: 700 14px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
	.cs-btn-primary[disabled] { opacity: .5; box-shadow: none; cursor: default; }

	.cs-post { --av: 44px; --name: 16px; --text: 16px; --lh: 1.5; --cnt: 13px; border-radius: 18px; padding: 16px 18px 4px; }
	.cs-post__col .cs-av { font-size: 14px; }
	.cs-post__col .cs-av.is-page { border-radius: 12px; }
	.cs-post__label { font-size: 12px; }
	.cs-post__text { margin-top: 6px; }
	.cs-pdf__dl { width: auto; min-height: 42px; padding: 0 14px; }
	.cs-pdf__dl span { display: inline; }

	.cs-screenbar { background: var(--app); }
	.cs-xhead, .cs-nhead { background: var(--app); }
	.cs-thread, .cs-profile-wrap, .cs-page { border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); min-height: 100vh; }
	.cs-replybar:not(.cs-replybar--inline) { display: none; }
	.cs-replybar.cs-replybar--inline { display: flex; position: static; border-top: 0; border-bottom: 1.5px solid var(--line); padding: 12px 16px; }
	.cs-post__meta--inline { order: 0; flex-basis: auto; }
	.cs-cover { height: 190px; }
	.cs-ptabs-wrap { top: 61px; }

	/* Rail */
	.cs-rail__logo { display: flex; align-items: center; padding: 0 10px 22px; }
	.cs-rail__logo img { height: 48px; width: auto; }
	.cs-rail nav { display: flex; flex-direction: column; gap: 4px; }
	.cs-rail__link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1.5px solid transparent; border-radius: 12px; color: var(--ink); font: 400 15px/1.2 var(--font-mono); }
	.cs-rail__link:hover { background: var(--hover); }
	.cs-rail__link.is-on { border-color: var(--edge); background: var(--nav-active); color: var(--brown); font-weight: 700; }
	.cs-rail__count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); font: 700 11px/1 var(--font-body); display: flex; align-items: center; justify-content: center; }
	.cs-rail__new { margin-top: 16px; min-height: 52px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--yellow); color: var(--brown); font: 700 16px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--pop); cursor: pointer; }
	.cs-rail__me { margin-top: 24px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--edge); }
	.cs-rail__me-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cs-rail__me-sub { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); }
	.cs-rail__me > div { min-width: 0; flex: 1; }
	.cs-rail__menu { width: 36px; height: 36px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

	/* Right sidebar */
	.cs-search { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--edge); border-radius: 999px; padding: 0 16px; min-height: 48px; flex-shrink: 0; }
	.cs-search span { font: 400 13px/1 var(--font-mono); color: var(--ink-3); }
	.cs-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 13px/1 var(--font-mono); }
	.cs-search input::placeholder { color: var(--ink-3); }
	.cs-search:focus-within { box-shadow: 0 0 0 1.5px var(--edge); }
	.cs-trends a { display: block; color: var(--ink); }
	.cs-trends a:hover b { text-decoration: underline; }
	.cs-card__more { display: inline-block; margin-top: 10px; color: var(--link); font: 700 12px/1 var(--font-mono); }
	.cs-card { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; padding: 18px; }
	.cs-card h2 { margin: 0 0 12px; font: 700 16px/1.2 var(--font-mono); }
	.cs-card--verify { background: #DCCBFA; color: var(--brown); padding: 20px; }
	.cs-card--verify h2 { font-size: 17px; margin: 0; }
	.cs-card--verify p { margin: 8px 0 16px; font-size: 14px; line-height: 1.45; }
	.cs-card--verify a { min-height: 44px; width: 100%; border: 1.5px solid var(--brown); border-radius: 12px; background: var(--yellow); color: var(--brown); font: 700 14px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--brown); }
	.cs-list { display: flex; flex-direction: column; gap: 12px; }
	.cs-event { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--edge); border-radius: 12px; padding: 10px; }
	.cs-event__date { width: 48px; height: 52px; border-radius: 9px; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-mono); }
	.cs-event__date.alt { background: var(--aqua); }
	.cs-event__date small { font-size: 10px; }
	.cs-event__date b { font-size: 19px; line-height: 1; }
	.cs-event__title { font-weight: 700; font-size: 14px; }
	.cs-event__meta { font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 2px; }
	.cs-event__going { font: 700 11px/1.3 var(--font-mono); color: var(--price); margin-top: 2px; }
	.cs-suggest { display: flex; align-items: center; gap: 10px; }
	.cs-suggest .cs-av { font-size: 12px; }
	.cs-suggest__info { flex: 1; min-width: 0; }
	.cs-suggest__name { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
	.cs-suggest__sub { font: 400 11px/1.4 var(--font-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cs-follow-sm { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
	.cs-trends { list-style: none; margin: 8px 0 0; padding: 0; }
	.cs-trends li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1.5px dashed var(--dash); }
	.cs-trends li:last-child { border-bottom: 0; }
	.cs-trends b { font-size: 15px; }
	.cs-trends small { display: block; font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 2px; }
	.cs-trends em { font: normal 400 11px/1 var(--font-mono); color: var(--ink-3); }
	.cs-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 6px; font: 400 11px/1.4 var(--font-mono); color: var(--ink-3); }
	.cs-toast { bottom: 32px; }
}

/* ---------- Events ---------- */
.cs-evhead { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1.5px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.cs-evhead__row { display: flex; align-items: center; gap: 10px; }
.cs-evhead h1 { flex: 1; margin: 0; font: 700 20px/1 var(--font-display); }
.cs-evcta { height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--brown); background: var(--yellow); color: var(--brown); font: 700 13px/1 var(--font-mono); display: flex; align-items: center; gap: 6px; box-shadow: var(--pop); white-space: nowrap; }
.cs-evcta.is-quiet { background: transparent; color: var(--ink); border-color: var(--edge); box-shadow: none; }
.cs-evhead .cs-scope { align-self: flex-start; }
.cs-evchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.cs-evchips::-webkit-scrollbar { display: none; }
.cs-evchips .cs-fpill { flex-shrink: 0; }
.cs-evchips .cs-fpill.is-on { border-color: var(--brown); }
.cs-evchips__gap { margin-left: 8px; }
.cs-evbody { padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.cs-evlabel { margin: 0; font: 700 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-evmine { display: flex; flex-direction: column; gap: 10px; }
.cs-evmine__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.cs-evmini { flex: 0 0 220px; display: flex; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.cs-evmini__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cs-evmini__title { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-evtag { align-self: flex-start; font: 700 10px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; border: 1.5px solid var(--edge); color: #381600; }
.cs-evdate { position: absolute; left: 12px; bottom: -22px; width: 52px; height: 58px; border: 2px solid #381600; border-radius: 12px; color: #381600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 3px 3px 0 #381600; }
.cs-evdate small { font: 700 11px/1 var(--font-mono); }
.cs-evdate b { font: 700 21px/1 var(--font-display); }
.cs-evdate--sm { position: static; width: 48px; height: 52px; border-width: 1.5px; border-radius: 10px; box-shadow: none; flex-shrink: 0; }
.cs-evdate--sm small { font-size: 10px; }
.cs-evdate--sm b { font-size: 19px; }
.cs-evdate--lg { left: 16px; bottom: -28px; width: 62px; height: 68px; border-radius: 14px; gap: 3px; box-shadow: 4px 4px 0 #381600; }
.cs-evdate--lg small { font-size: 12px; }
.cs-evdate--lg b { font-size: 26px; }
.cs-evcount { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-evgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cs-evcard { border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.cs-evcard:hover { box-shadow: var(--pop); transform: translate(-1px, -1px); }
.cs-evcard.is-dim { opacity: .65; }
.cs-evcover { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; aspect-ratio: 16 / 7; padding: 10px; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--ph); background-size: cover; background-position: center; border-bottom: 1.5px solid var(--edge); font: 400 10px/1.2 var(--font-mono); color: var(--ink-3); }
.cs-evcover[style*="background-image"] { background-repeat: no-repeat; }
.cs-evflag { position: absolute; top: 10px; left: 10px; font: 700 10px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1.5px solid #381600; }
.cs-evcard__body { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.cs-evcard__title { font: 700 16px/1.25 var(--font-display); text-wrap: pretty; }
.cs-evcard.is-cancelled .cs-evcard__title { text-decoration: line-through; }
.cs-evcard__line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.cs-evcard__line svg { flex-shrink: 0; }
.cs-evcard__venue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-evcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1.5px solid var(--line); min-width: 0; }
.cs-av--xs { width: 24px; height: 24px; font-size: 8px; }
.cs-av--xs.is-page { border-radius: 7px; }
.cs-evcard__host { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cs-evcard__foot .cs-badge { width: 15px; height: 15px; }
.cs-evcard__going { font: 700 12px/1 var(--font-mono); white-space: nowrap; }
.cs-evempty { border: 1.5px dashed var(--edge); border-radius: 18px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cs-evempty__icon { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--soft); color: var(--on-soft); display: flex; align-items: center; justify-content: center; }
.cs-evempty__title { font: 700 17px/1.3 var(--font-display); }
.cs-evempty__body { font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 300px; }
.cs-evempty__btn { margin-top: 4px; min-height: 42px; padding: 0 18px; border: 1.5px solid #381600; border-radius: 10px; background: var(--yellow); color: #381600; font: 700 13px/1 var(--font-mono); display: flex; align-items: center; box-shadow: var(--pop); }

/* Event page */
.cs-evdetail .cs-screenbar { padding: 10px 12px; gap: 6px; }
.cs-evdetail__bar { font-size: 16px; }
.cs-evhero { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; aspect-ratio: 16 / 8; padding: 12px; background: repeating-linear-gradient(135deg, var(--stripe) 0 14px, transparent 14px 28px), var(--ph); background-size: cover; background-position: center; border-bottom: 1.5px solid var(--edge); font: 400 11px/1.2 var(--font-mono); color: var(--ink-3); }
.cs-evmain { padding: 40px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.cs-evbanner { padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.cs-evbanner.is-cancelled { padding: 14px 16px; border: 2px solid #381600; background: #D93A2B; color: #fff; box-shadow: 3px 3px 0 #381600; }
.cs-evbanner__t { font: 700 15px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.cs-evbanner.is-ended { border: 1.5px solid var(--edge); background: var(--surface-2); font: 600 14px/1.3 var(--font-body); }
.cs-evbanner.is-changed { border: 2px solid #381600; background: #FFF3C4; color: #381600; display: flex; gap: 10px; align-items: flex-start; }
.cs-evbanner.is-changed svg { flex-shrink: 0; margin-top: 1px; }
.cs-evchipsrow { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-evchip { font: 700 11px/1 var(--font-mono); padding: 5px 9px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); display: flex; align-items: center; gap: 5px; }
.cs-evtitle { margin: 0; font: 700 23px/1.2 var(--font-display); text-wrap: pretty; }
.cs-evtitle.is-struck { text-decoration: line-through; }
.cs-evfacts { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-evfact { display: flex; gap: 12px; padding: 12px 14px; }
.cs-evfact + .cs-evfact { border-top: 1.5px solid var(--line); }
.cs-evfact > svg { flex-shrink: 0; color: var(--ink-3); margin-top: 1px; }
.cs-evfact.is-changed { background: #FFF3C4; color: #381600; }
:root[data-theme="dark"] .cs-evfact.is-changed { background: var(--warning-soft); color: var(--ink); }
.cs-evfact__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-evfact__main > span { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cs-evfact__main small { font-size: 13px; color: var(--ink-2); }
.cs-evfact__main .cs-evfact__was { color: var(--ink-3); }
.cs-evlink { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--link); font: 700 13px/1 var(--font-mono); word-break: break-all; }
.cs-evlocked { display: flex; align-items: center; gap: 6px; }
.cs-evhost { display: flex; align-items: center; gap: 10px; }
.cs-evhost small { display: block; font-size: 12px; color: var(--ink-3); }
.cs-evhost__name { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-weight: 700; font-size: 15px; }
.cs-evhost__name .cs-badge { width: 16px; height: 16px; }
.cs-evrsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-evrsvp__btn { min-height: 52px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-mono); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cs-evrsvp__btn small { font: 400 11px/1 var(--font-mono); }
.cs-evrsvp__btn.is-going { border-color: #381600; color: #381600; }
:root[data-theme="dark"] .cs-evrsvp__btn.is-going { border-color: var(--edge); color: var(--ink); }
.cs-evrsvp__btn.is-going.is-on { background: var(--yellow); color: #381600; box-shadow: 3px 3px 0 #381600; }
.cs-evrsvp__btn.is-int.is-on { background: #DCCBFA; color: #381600; }
.cs-evremind { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cs-evremind[hidden] { display: none; }
.cs-evcounts { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
.cs-evcounts b { font-family: var(--font-mono); color: var(--ink); }
.cs-evfg { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.cs-evfg__avs { display: flex; }
.cs-evfg__avs .cs-av { width: 26px; height: 26px; border: 2px solid var(--app); font-size: 8px; }
.cs-evfg__avs .cs-av + .cs-av { margin-left: -8px; }
.cs-evhostacts { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-evact { height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.cs-evact.is-primary { background: var(--yellow); color: #381600; border-color: #381600; }
.cs-evact.is-danger { color: var(--error); border-color: var(--error); }
.cs-evdesc { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.cs-evdesc p { margin: 0 0 10px; }
.cs-evdesc p:last-child { margin: 0; }
.cs-evdisc__head { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1.5px solid var(--line); }
.cs-evdisc__head h2 { margin: 0; font: 700 16px/1 var(--font-display); }
.cs-evdisc__head span { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-evcompose { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.cs-evcompose textarea { border: 0; background: transparent; color: var(--ink); font: 400 15px/1.45 var(--font-body); outline: none; resize: none; }
.cs-evcompose__foot { display: flex; justify-content: flex-end; }
.cs-evpost { height: 36px; padding: 0 16px; border: 1.5px solid #381600; border-radius: 10px; background: var(--yellow); color: #381600; font: 700 13px/1 var(--font-mono); cursor: pointer; }
.cs-evpost[disabled] { opacity: .45; cursor: default; }
.cs-evhosttag { align-self: flex-start; font: 700 10px/1 var(--font-mono); padding: 4px 7px; border-radius: 6px; background: #DCCBFA; color: #381600; border: 1.2px solid #381600; }
.cs-evhosttag.is-sm { padding: 3px 6px; }
.cs-evposts { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.cs-evposts__none { padding: 20px; text-align: center; font-size: 14px; color: var(--ink-3); }
.cs-evpost-card { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cs-evpost-card.is-pinned { background: var(--pin-bg); }
.cs-evpost-card__pin { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-mono); color: var(--pin-label); }
.cs-evpost-card__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cs-evpost-card__head .cs-av { width: 32px; height: 32px; font-size: 10px; }
.cs-evpost-card__head .cs-av.is-page { border-radius: 8px; }
.cs-evpost-card__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-evpost-card__time { font: 400 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.cs-evpin { border: 0; background: none; color: var(--ink-3); font: 700 11px/1 var(--font-mono); cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px; }
.cs-evpost-card__text { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cs-evpost-card__foot { display: flex; gap: 14px; font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-evpost-card__foot button, .cs-evpost-card__foot a { border: 0; background: none; color: var(--ink-3); font: 400 12px/1 var(--font-mono); cursor: pointer; padding: 0; }
.cs-evlike.is-liked { color: var(--like); }

/* Sheets (bottom sheet on phones, dialog on desktop) */
.cs-sheet[hidden] { display: none; }
.cs-sheet__scrim { position: fixed; inset: 0; z-index: 70; background: rgba(56, 22, 0, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cs-sheet__box { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--app); border-top: 2px solid var(--edge); border-radius: 24px 24px 0 0; padding: 18px 18px 26px; display: flex; flex-direction: column; gap: 16px; animation: cs-sheet-in .22s ease; zoom: var(--ui-zoom); }
@keyframes cs-sheet-in { from { transform: translateY(30px); opacity: 0; } }
.cs-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 18px/1.2 var(--font-display); }
.cs-sheet__x { width: 36px; height: 36px; flex-shrink: 0; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-sheet__p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cs-sheet__box textarea { border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 12px 14px; font: 400 15px/1.45 var(--font-body); outline: none; resize: none; }
.cs-sheet__btns { display: flex; gap: 8px; }
.cs-sheet__btns button { flex: 1; min-height: 48px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-mono); cursor: pointer; }
.cs-sheet__btns .is-danger { background: var(--error); color: #fff; box-shadow: var(--pop); }
.cs-sheet__list { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 16px; overflow: hidden; }
.cs-sheet__list button { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 14px 8px 10px; border: 0; border-bottom: 1.5px solid var(--line); margin-bottom: -1.5px; background: transparent; color: var(--ink); font: 500 16px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.cs-sheet__list button:hover { background: var(--hover); }
.cs-sheet__list button > span { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-sheet__list .is-danger { color: var(--error); }
.cs-sheet__list .is-danger > span { background: var(--error-soft); }

/* Create / edit */
.cs-evform { display: flex; flex-direction: column; }
.cs-evform__head { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1.5px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-evform__row { display: flex; align-items: center; gap: 8px; }
.cs-evform__title { font: 700 17px/1.1 var(--font-display); }
.cs-evform__step { font: 400 12px/1 var(--font-mono); color: var(--ink-3); margin-top: 4px; }
.cs-evform__cancel { height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font: 600 14px/1 var(--font-body); display: flex; align-items: center; }
.cs-evform__bar { height: 8px; border: 1.5px solid var(--edge); border-radius: 5px; background: var(--surface); overflow: hidden; }
.cs-evform__bar span { display: block; height: 100%; background: var(--yellow); transition: width .2s; }
.cs-evform__body { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cs-evstep { display: flex; flex-direction: column; gap: 16px; }
.cs-evform.is-js .cs-evstep:not(.is-on) { display: none; }
.cs-evq { margin: 0; font: 700 18px/1.3 var(--font-display); }
.cs-evfield { display: flex; flex-direction: column; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cs-evfield[hidden] { display: none; }
.cs-evfield > span, .cs-evfield > legend { font: 700 12px/1 var(--font-mono); padding: 0; margin-bottom: 7px; }
.cs-evfield > span { margin: 0; }
.cs-evfield input:not(.cs-sr) { height: 48px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0 14px; font: 500 15px/1 var(--font-body); outline: none; width: 100%; min-width: 0; }
.cs-evfield input.is-mono { font-family: var(--font-mono); }
.cs-evfield input:focus, .cs-evtext:focus { box-shadow: var(--pop); }
.cs-evcats { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-evcat span { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-body); display: inline-flex; align-items: center; cursor: pointer; }
.cs-evcat input:checked + span { background: var(--yellow); color: #381600; border-color: #381600; }
.cs-evcat input:focus-visible + span, .cs-evvt input:focus-visible + span, .cs-evopt:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-evcoverpick { aspect-ratio: 16 / 8; border: 1.5px dashed var(--edge); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: 600 14px/1 var(--font-body); background-size: cover; background-position: center; }
.cs-evcoverpick.has-cover { border-style: solid; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.cs-evswitch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); cursor: pointer; }
.cs-evswitch b { display: block; font: 600 15px/1.2 var(--font-body); }
.cs-evswitch small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cs-evswitch__track { width: 40px; height: 24px; border-radius: 12px; background: var(--line); border: 1.5px solid var(--edge); position: relative; flex-shrink: 0; transition: background .15s; }
.cs-evswitch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 1.5px solid var(--edge); box-sizing: border-box; transition: left .15s; }
.cs-evswitch input:checked + .cs-evswitch__track { background: #3FBFA9; }
.cs-evswitch input:checked + .cs-evswitch__track::after { left: 18px; }
.cs-evswitch input:focus-visible + .cs-evswitch__track { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-evtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-evspan { font: 700 13px/1.4 var(--font-mono); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.cs-evspan[hidden] { display: none; }
.cs-evhint { margin: 0; font-size: 13px; color: var(--ink-3); }
.cs-evhint--icon { display: flex; align-items: center; gap: 8px; }
.cs-evhint[hidden] { display: none; }
.cs-evvt { display: flex; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 4px; gap: 4px; }
.cs-evvt label { flex: 1; }
.cs-evvt span { min-height: 38px; border: 1.5px solid transparent; border-radius: 9px; color: var(--ink-2); font: 400 12px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cs-evvt input:checked + span { background: var(--yellow); color: #381600; border-color: #381600; font-weight: 700; }
.cs-evtext { border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 12px 14px; font: 400 15px/1.45 var(--font-body); outline: none; resize: none; }
.cs-evopt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); cursor: pointer; }
.cs-evopt:has(input:checked) { border: 2px solid #381600; box-shadow: var(--pop); }
:root[data-theme="dark"] .cs-evopt:has(input:checked) { border-color: var(--edge); }
.cs-evopt:has(input:disabled:not(:checked)) { opacity: .5; cursor: default; }
.cs-evopt b { display: block; font-size: 15px; }
.cs-evopt small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cs-evopt__ic { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-evopt__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--edge); flex-shrink: 0; }
.cs-evopt:has(input:checked) .cs-evopt__dot { background: var(--brown); }
:root[data-theme="dark"] .cs-evopt:has(input:checked) .cs-evopt__dot { background: var(--edge); }
.cs-evpreview { border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--pop); display: flex; flex-direction: column; }
.cs-evpreview__body { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cs-evpreview__body b { font: 700 16px/1.25 var(--font-display); color: var(--ink); }
.cs-evpreview__body small { font-size: 13px; color: var(--ink-3); }
.cs-everr { font-size: 14px; color: var(--error); font-weight: 600; }
.cs-everr[hidden] { display: none; }
.cs-evform__foot { background: var(--app); border-top: 1.5px solid var(--line); padding: 10px 16px 14px; }
.cs-evnext { width: 100%; min-height: 50px; border: 1.5px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.cs-evnext[disabled] { opacity: .6; }

@media (min-width: 1000px) {
	.cs-evhead, .cs-evform__head { background: var(--app); }
	.cs-evgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cs-sheet__box { left: 50%; right: auto; top: 50%; bottom: auto; width: 460px; transform: translate(-50%, -50%); border: 2px solid var(--edge); border-radius: 20px; box-shadow: 4px 4px 0 var(--edge); padding: 22px; animation: none; }
}

/* ---------- Onboarding ---------- */
.cs-onb-body { background: var(--app); }
.cs-onb { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cs-onb__brand { display: none; }
.cs-onb__card { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cs-onb__top { display: flex; align-items: center; gap: 12px; padding: 8px 20px; min-height: 56px; flex-shrink: 0; }
.cs-onb__back { width: 40px; height: 40px; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-onb__progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cs-onb__bar { height: 10px; border: 1.5px solid var(--edge); border-radius: 6px; background: var(--surface); overflow: hidden; }
.cs-onb__bar span { display: block; height: 100%; background: var(--yellow); border-right: 1.5px solid var(--edge); transition: width .3s; }
.cs-onb__steptext { display: flex; justify-content: space-between; font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-onb__offline { margin: 0 20px 6px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--edge); border-radius: 12px; padding: 10px 12px; background: var(--warning-soft); font-size: 13px; line-height: 1.4; }
.cs-onb__offline[hidden] { display: none; }
.cs-onb__offline span { flex: 1; }
.cs-onb__offline button { border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 5px 10px; font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-onb__body { flex: 1; display: flex; flex-direction: column; padding: 10px 20px 26px; min-height: 0; }
.cs-onb__main { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.cs-onb__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.cs-onb h1 { margin: 0; font: 700 24px/1.25 var(--font-mono); text-wrap: pretty; }
.cs-onb__lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cs-onb__fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.cs-onb__fine a { text-decoration: underline; }
.cs-onb__btn { width: 100%; min-height: 50px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-mono); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 16px; }
.cs-onb__btn.is-primary { background: var(--yellow); color: #381600; box-shadow: var(--pop); }
.cs-onb__btn.is-primary[disabled], .cs-onb__btn.is-primary.is-off { opacity: .5; }
.cs-onb__btn.is-small { min-height: 42px; border-radius: 12px; font-size: 13px; gap: 8px; }
.cs-onb__btn:focus-visible, .cs-onb__link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-onb__g { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid #381600; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-body); color: #381600; }
.cs-onb__link { align-self: center; border: 0; background: none; padding: 6px; color: var(--link); font: 700 13px/1 var(--font-mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cs-onb__link.is-right { align-self: flex-end; padding: 0; font-size: 12px; }
.cs-onb__link.is-left { align-self: flex-start; padding: 0; }
.cs-onb__stack { display: flex; flex-direction: column; gap: 10px; }
.cs-onb__stack[hidden] { display: none; }
.cs-onb__field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cs-onb__field > span:first-child, .cs-onb__field > legend { font: 700 12px/1 var(--font-mono); padding: 0; }
.cs-onb__field > legend { margin-bottom: 8px; }
.cs-onb__lab { display: flex; justify-content: space-between; }
.cs-onb__lab b { font-weight: 400; color: var(--ink-3); }
.cs-onb__field input:not(.cs-sr), .cs-onb__field select, .cs-onb__field textarea, .cs-onb__search input { width: 100%; height: 50px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0 14px; font: 400 16px/1 var(--font-body); outline: none; }
.cs-onb__field select { padding: 0 12px; cursor: pointer; }
.cs-onb__field textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: none; }
.cs-onb__field input:focus, .cs-onb__field select:focus, .cs-onb__field textarea:focus, .cs-onb__search input:focus, .cs-onb__code:focus { box-shadow: var(--pop); }
.cs-onb .is-err { border-color: var(--error) !important; }
.cs-onb .is-mono { font-family: var(--font-mono) !important; }
.cs-onb__msg { font-size: 13px; line-height: 1.4; }
.cs-onb__msg[hidden] { display: none; }
.cs-onb__msg.is-err { color: var(--error); }
.cs-onb__msg.is-ok { color: var(--success); }
.cs-onb__msg a { color: var(--link); font-weight: 700; text-decoration: underline; }
.cs-onb__hint { font-size: 12px; color: var(--ink-3); }
.cs-onb__pw { position: relative; display: block; }
.cs-onb__pw input { padding-right: 64px !important; }
.cs-onb__pw button { position: absolute; right: 6px; top: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-onb__meter { display: flex; gap: 4px; }
.cs-onb__meter i { flex: 1; height: 6px; border-radius: 3px; border: 1.2px solid var(--edge); }
.cs-onb__pwhint { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.cs-onb__pwhint b { font: 700 12px/1 var(--font-mono); }
.cs-onb__code { width: 100%; height: 64px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: center; font: 400 30px/1 var(--font-mono); letter-spacing: .5em; padding-left: .5em; outline: none; }
.cs-onb__resend { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-onb__mini { border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 6px 12px; font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-onb__mini[disabled] { opacity: .5; cursor: default; }
.cs-onb__proto { align-self: flex-start; font: 400 11px/1 var(--font-mono); color: var(--ink-3); border: 1.2px dashed var(--edge); border-radius: 8px; padding: 6px 10px; }
.cs-onb__or { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-onb__or i { flex: 1; height: 1.5px; background: var(--line); }
.cs-onb__note { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--edge); border-radius: 12px; padding: 10px 12px; background: var(--card-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.cs-onb__note svg { color: var(--ink); flex-shrink: 0; margin-top: 1px; }
.cs-onb__tile { width: 56px; height: 56px; border-radius: 16px; border: 1.5px solid var(--edge); color: #381600; display: flex; align-items: center; justify-content: center; box-shadow: var(--pop); flex-shrink: 0; }
.cs-onb__headrow { display: flex; align-items: center; gap: 12px; }
.cs-onb__center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; }
.cs-onb__center.is-left { align-items: flex-start; text-align: left; }
.cs-onb__resumelogo { height: 56px; width: auto; }
.cs-onb__dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.cs-onb__at { position: relative; display: block; }
.cs-onb__at > i { position: absolute; left: 14px; top: 15px; font: 400 16px/1 var(--font-mono); color: var(--ink-3); font-style: normal; }
.cs-onb__at input { padding: 0 44px 0 34px !important; }
.cs-onb__at > em { position: absolute; right: 14px; top: 16px; font-style: normal; color: var(--error); }
.cs-onb__at > em.is-ok { color: var(--success); }
.cs-onb__sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-onb__sugg:empty { display: none; }
.cs-onb__sugg button { border: 1.5px solid var(--edge); border-radius: 8px; background: var(--chip-soft); color: var(--ink); padding: 6px 10px; font: 400 13px/1 var(--font-mono); cursor: pointer; }
.cs-onb__search { position: relative; display: block; }
.cs-onb__search svg { position: absolute; left: 14px; top: 16px; color: var(--ink-3); }
.cs-onb__search input { padding-left: 42px; }
.cs-onb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-onb__chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 13px/1 var(--font-mono); cursor: pointer; display: inline-flex; align-items: center; }
.cs-onb__chip.is-on, .cs-onb__chip:has(input:checked) { background: var(--yellow); color: #381600; font-weight: 700; }
label.cs-onb__chip { padding: 0; }
label.cs-onb__chip span { padding: 0 14px; min-height: 37px; display: flex; align-items: center; }
.cs-onb__chip:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-onb__schools { border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow-y: auto; max-height: 290px; }
.cs-onb__school { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1.5px solid var(--line); cursor: pointer; }
.cs-onb__school[hidden] { display: none; }
.cs-onb__school b { min-width: 72px; font: 700 13px/1.2 var(--font-mono); }
.cs-onb__school span { flex: 1; font-size: 14px; color: var(--ink-2); }
.cs-onb__school i { display: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: #381600; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-onb__school:has(input:checked) { background: var(--chip-soft); }
.cs-onb__school:has(input:checked) i { display: flex; }
.cs-onb__school:focus-within { outline: 2px solid var(--link); outline-offset: -2px; }
.cs-onb__none { padding: 16px; font-size: 14px; color: var(--ink-3); }
.cs-onb__none[hidden] { display: none; }
.cs-onb__opt, .cs-onb__vopt { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.cs-onb__opt:has(input:checked) { background: var(--chip-soft); box-shadow: var(--pop); }
.cs-onb__opt:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-onb__opt b, .cs-onb__vopt b { display: block; font-size: 16px; }
.cs-onb__opt small, .cs-onb__vopt small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cs-onb__ini { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--edge); color: #381600; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-mono); flex-shrink: 0; }
.cs-onb__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--edge); flex-shrink: 0; }
.cs-onb__opt:has(input:checked) .cs-onb__dot { background: var(--yellow); }
.cs-onb__vopt em { font: 700 11px/1 var(--font-mono); font-style: normal; border: 1.2px solid var(--edge); border-radius: 6px; padding: 3px 6px; background: var(--surface-2); white-space: nowrap; }
.cs-onb__unlocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-onb__unlocks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cs-onb__unlocks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--aqua); color: #381600; flex-shrink: 0; }
.cs-onb__ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cs-onb__plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cs-onb__pending { align-self: flex-start; display: flex; align-items: center; gap: 6px; font: 700 12px/1 var(--font-mono); border: 1.5px solid var(--edge); border-radius: 8px; padding: 5px 10px; background: #FFF3C4; color: #381600; }
.cs-onb__pending i { width: 7px; height: 7px; border-radius: 50%; background: #B86E00; }
.cs-onb__photo { display: flex; align-items: center; gap: 16px; }
.cs-onb__avatar { width: 96px; height: 96px; border-radius: 50%; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; font: 700 28px/1 var(--font-mono); color: #381600; overflow: hidden; flex-shrink: 0; }
.cs-onb__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-onb__photobtns { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cs-onb__crop { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cs-onb__crop[hidden] { display: none; }
.cs-onb__crop > b { font: 700 13px/1 var(--font-mono); }
.cs-onb__cropbox { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #1E1813; touch-action: none; cursor: grab; }
.cs-onb__cropbox canvas { width: 100%; height: 100%; display: block; }
.cs-onb__cropring { position: absolute; left: 19%; top: 19%; width: 62%; height: 62%; border-radius: 50%; border: 2px solid #FCF8EE; box-shadow: 0 0 0 999px rgba(23, 18, 13, .55); pointer-events: none; }
.cs-onb__zoom { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--font-mono); }
.cs-onb__zoom input { flex: 1; accent-color: #381600; }
.cs-onb__two { display: flex; gap: 8px; }
.cs-onb__count { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-onb__cam { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; border: 1.5px solid var(--edge); background: #1E1813; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-onb__cam[hidden], .cs-onb__camoff[hidden], .cs-onb__idprev[hidden], .cs-onb__idph[hidden] { display: none; }
.cs-onb__cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-onb__camframe { position: relative; width: 82%; aspect-ratio: 1.586; border: 2.5px dashed var(--yellow); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.cs-onb__cam small { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font: 400 12px/1 var(--font-mono); color: #FCF8EE; }
.cs-onb__camoff { border: 1.5px solid var(--edge); border-radius: 16px; padding: 16px; background: var(--warning-soft); display: flex; flex-direction: column; gap: 8px; }
.cs-onb__camoff b { font: 700 14px/1 var(--font-mono); }
.cs-onb__camoff span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cs-onb__idprev { position: relative; border-radius: 14px; border: 1.5px solid var(--edge); overflow: hidden; background: var(--ph); }
.cs-onb__idprev img { width: 100%; display: block; aspect-ratio: 1.586; object-fit: cover; }
.cs-onb__idprev span { position: absolute; top: 10px; right: 10px; border: 1.2px solid var(--edge); border-radius: 6px; background: var(--aqua); color: #381600; padding: 3px 8px; font: 700 12px/1 var(--font-mono); }
.cs-onb__idph { aspect-ratio: 1.586; border: 1.5px dashed var(--edge); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 14px; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--ph); }
.cs-onb__fgroup { display: flex; flex-direction: column; gap: 6px; }
.cs-onb__fgroup h2 { margin: 0; font: 700 12px/1 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.cs-onb__flist { border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-onb__frow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1.5px solid var(--line); margin-bottom: -1.5px; cursor: pointer; }
.cs-onb__frow .cs-av { width: 40px; height: 40px; font-size: 12px; }
.cs-onb__frow .cs-av.is-page { border-radius: 10px; }
.cs-onb__frow b { display: block; font-size: 14px; }
.cs-onb__frow small { display: block; font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-onb__frow .cs-flex { min-width: 0; }
.cs-onb__check { width: 24px; height: 24px; border: 1.5px solid var(--edge); border-radius: 6px; color: #381600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-onb__check svg { visibility: hidden; }
.cs-onb__frow input:checked + .cs-onb__check { background: var(--yellow); }
.cs-onb__frow input:checked + .cs-onb__check svg { visibility: visible; }
.cs-onb__frow:focus-within { outline: 2px solid var(--link); outline-offset: -2px; }
.cs-onb__how { align-self: stretch; border: 1.5px solid var(--edge); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cs-onb__how small { font: 700 12px/1 var(--font-mono); color: var(--ink-3); text-transform: uppercase; }
.cs-onb__how > div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cs-onb__how > div > span { width: 26px; height: 26px; border: 1.5px solid var(--edge); border-radius: 7px; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-mono); flex-shrink: 0; }
.cs-onb__how i { display: inline-flex; border: 1.2px solid var(--edge); border-radius: 6px; padding: 2px 4px; }
.cs-onb__how p { margin: 0; font-size: 13px; color: var(--ink-3); }
.cs-onb__sheet { gap: 12px; }
.cs-onb__sheet .cs-onb__btn { margin-top: 4px; }
.cs-av.has-photo { padding: 0; overflow: hidden; }
.cs-av.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Landing */
.cs-land { min-height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 8px 20px 28px; }
.cs-land__top { display: flex; align-items: center; justify-content: space-between; }
.cs-land__logo { height: 40px; width: auto; }
.cs-land__topbtns { display: flex; gap: 10px; }
.cs-land__topbtns .cs-onb__btn { width: auto; min-height: 0; padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.cs-land__desk, .cs-land__third { display: none; }
.cs-land__hero { display: contents; }
.cs-land__copy { display: flex; flex-direction: column; gap: 12px; order: 1; }
.cs-land__kicker { align-self: flex-start; font: 700 11px/1.4 var(--font-mono); border: 1.2px solid var(--edge); border-radius: 6px; padding: 2px 8px; background: #B9F3E8; color: #381600; }
.cs-land h1 { margin: 0; font: 700 34px/1.1 var(--font-mono); }
.cs-land__copy p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cs-land__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cs-land__cards { display: flex; flex-direction: column; gap: 12px; order: 3; }
.cs-land__trends { order: -1; }
.cs-land__post { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; box-shadow: var(--pop); }
.cs-land__post .cs-av { width: 36px; height: 36px; font-size: 11px; }
.cs-land__post > div { min-width: 0; flex: 1; }
.cs-land__who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.cs-land__who small { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-land__text { font-size: 14px; line-height: 1.45; margin-top: 4px; }
.cs-land__stats { display: block; font: 400 11px/1 var(--font-mono); color: var(--ink-3); margin-top: 6px; }
.cs-land__trends { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px 16px; }
.cs-land__trends > b { display: block; font: 700 13px/1 var(--font-mono); margin-bottom: 8px; }
.cs-land__trend { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.cs-land__trend + .cs-land__trend { border-top: 1.5px solid var(--line); }
.cs-land__trend span { display: block; font-weight: 700; font-size: 15px; }
.cs-land__trend small { display: block; font: 400 11px/1 var(--font-mono); color: var(--ink-3); margin-top: 2px; }
.cs-land__trend em { font: 400 12px/1 var(--font-mono); font-style: normal; }
.cs-land__marquee { overflow: hidden; border-top: 1.5px solid var(--edge); border-bottom: 1.5px solid var(--edge); padding: 12px 0; margin: 0 -20px; background: var(--surface); order: 2; }
.cs-land__marquee > div { display: flex; gap: 10px; width: max-content; animation: cs-marquee 40s linear infinite; }
.cs-land__marquee span { font: 700 13px/1 var(--font-mono); padding: 6px 12px; border: 1.5px solid var(--edge); border-radius: 8px; color: #381600; white-space: nowrap; }
@keyframes cs-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cs-land__marquee > div { animation: none; } }
.cs-land__foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); order: 4; }

@media (min-width: 760px) {
	.cs-onb-body { background: var(--canvas); background-image: radial-gradient(var(--dash) 1.3px, transparent 1.3px); background-size: 22px 22px; }
	.cs-onb { align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
	.cs-onb__brand { display: block; position: absolute; top: 24px; left: 40px; }
	.cs-onb__brand img { height: 44px; width: auto; }
	.cs-onb__card { flex: none; width: 520px; height: 790px; max-height: calc(100vh - 80px); background: var(--app); border: 1.5px solid var(--edge); border-radius: 22px; box-shadow: 6px 6px 0 var(--edge); overflow: hidden; }
	.cs-onb__top { padding: 22px 28px 10px; }
	.cs-onb__offline { margin: 0 28px 6px; }
	.cs-onb__body { padding: 10px 28px 28px; overflow-y: auto; }
	.cs-onb__schools { max-height: 250px; }
	.cs-land { padding: 0; gap: 0; background: var(--app); }
	.cs-land__top { padding: 22px 56px; }
	.cs-land__logo { height: 48px; }
	.cs-land__desk { display: inline; }
	.cs-land__third { display: flex; }
	.cs-land__topbtns .cs-land__desk { display: flex; }
	.cs-land__topbtns .cs-onb__btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
	.cs-land__trends { order: 0; }
	.cs-land__hero { display: grid; order: 1; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 36px 56px 40px; }
	.cs-land__copy { gap: 20px; }
	.cs-land__kicker { font-size: 12px; padding: 3px 10px; }
	.cs-land h1 { font-size: 60px; line-height: 1.05; text-wrap: balance; }
	.cs-land__copy p { font-size: 19px; max-width: 520px; }
	.cs-land__ctas { flex-direction: row; max-width: 440px; gap: 12px; margin: 0; }
	.cs-land__cards { gap: 14px; }
	.cs-land__marquee { margin: 0; order: 2; }
	.cs-land__foot { padding: 22px 56px 28px; }
}

/* ---------- Composer (/compose) and reply screen ---------- */
.cs-view-compose .cs-tabbar, .cs-view-reply .cs-tabbar { display: none; }
.cs-view-compose .cs-main, .cs-view-reply .cs-main { padding-bottom: 0; }
.cs-compose { display: flex; flex-direction: column; min-height: calc(100vh / var(--ui-zoom)); min-height: calc(100dvh / var(--ui-zoom)); }
.cs-cmp-head { position: sticky; top: 0; z-index: 5; background: var(--app); border-bottom: 1.5px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.cs-cmp-head .cs-circle-btn { width: 40px; height: 40px; }
.cs-cmp-head__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-cmp-head__title { font-family: var(--font-mono); font-size: 17px; font-weight: 700; }
.cs-cmp-head__sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cs-cmp-head__sub[hidden] { display: none; }
.cs-cmp-head__center { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.cs-cmp-cancel { color: var(--ink); font-family: var(--font-mono); font-size: 14px; padding: 8px 4px; }
.cs-cmp-post { min-height: 38px; padding: 0 18px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font-family: var(--font-mono); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--pop); white-space: nowrap; flex-shrink: 0; }
.cs-cmp-post[disabled] { opacity: .4; cursor: default; }
.cs-cmp-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cs-cmp-draft { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--pin-bg); }
.cs-cmp-draft[hidden] { display: none; }
.cs-cmp-draft__main { flex: 1; min-width: 0; }
.cs-cmp-draft__title { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.cs-cmp-draft__info { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-cmp-draft__open { border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 6px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; }
.cs-cmp-draft__x { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; }
.cs-cmp-as { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-cmp-as__label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.cs-cmp-chip { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-2); font: 600 13px/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.cs-cmp-chip.is-on { border-color: var(--edge); background: var(--soft); color: var(--on-soft); }
.cs-cmp-chip .cs-av.cs-cmp-chip__av { width: 24px; height: 24px; border-width: 1.2px; font-size: 9px; }
.cs-cmp-chip .cs-av.is-page { border-radius: 7px; }
.cs-cmp-items { display: flex; flex-direction: column; }
.cs-cmp-item, .cs-cmp-addto, .cs-cmp-target { display: flex; gap: 12px; }
.cs-cmp-item__rail { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; }
.cs-cmp-item__rail .cs-av { width: 44px; height: 44px; font-size: 14px; }
.cs-cmp-addto .cs-cmp-item__rail .cs-av { width: 36px; height: 36px; font-size: 11px; }
.cs-cmp-target .cs-cmp-item__rail { width: 40px; }
.cs-cmp-target .cs-cmp-item__rail .cs-av { width: 40px; height: 40px; font-size: 12px; }
.cs-cmp-item__line { width: 0; flex: 1; min-height: 16px; margin-top: 4px; border-left: 2px dashed var(--edge); }
.cs-cmp-item__line.is-solid { border-left-style: solid; }
.cs-cmp-addto .cs-cmp-item__line, .cs-cmp-target .cs-cmp-item__line { min-height: 14px; }
.cs-cmp-item__main { flex: 1; min-width: 0; padding-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.cs-cmp-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 2px 12px 8px; background: transparent; }
.cs-cmp-item.is-active .cs-cmp-box { border-color: var(--edge); background: var(--surface); }
.cs-cmp-box textarea { display: block; width: 100%; min-height: 60px; resize: none; border: none; outline: none; background: transparent; font: 400 17px/1.5 var(--font-body); color: var(--ink); padding: 8px 0 0; overflow: hidden; }
.cs-cmp-box__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-cmp-box__count, .cs-cmp-tools__count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cs-cmp-tools__count { font-size: 12px; margin-right: 8px; }
.is-warn { color: var(--warning) !important; }
.cs-cmp-box__rm { display: flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; cursor: pointer; padding: 2px 0; }
.cs-cmp-sg { border-radius: 14px; border: 1.5px solid var(--edge); background: var(--surface); box-shadow: var(--pop); overflow: hidden; }
.cs-cmp-sg[hidden] { display: none; }
.cs-cmp-sg__row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border: 0; background: none; color: var(--ink); text-align: left; }
.cs-cmp-sg__row:hover { background: var(--hover); }
.cs-cmp-sg__row .cs-av { width: 32px; height: 32px; border-width: 1.2px; font-size: 11px; }
.cs-cmp-sg__row span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-cmp-sg__row b { font-size: 14px; }
.cs-cmp-sg__row small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cs-cmp-imgs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.cs-cmp-imgs.is-multi { grid-template-columns: 1fr 1fr; }
.cs-cmp-img { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--ph); border: 1.5px solid var(--edge); }
.cs-cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-cmp-img__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-cmp-prog { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 8px; border: 1.5px solid var(--edge); border-radius: 5px; background: var(--surface); overflow: hidden; }
.cs-cmp-prog i { display: block; height: 100%; background: var(--yellow); transition: width .14s linear; }
.cs-cmp-prog.is-line { position: static; }
.cs-cmp-prog.is-dark { position: static; border-color: #FCF8EE; background: transparent; }
.cs-cmp-pdf { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--card-2); }
.cs-cmp-pdf__icon { width: 36px; height: 44px; border-radius: 7px; border: 1.5px solid var(--edge); background: #FFD9E3; color: #381600; font: 700 10px/1 var(--font-mono); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-cmp-pdf__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-cmp-pdf__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-cmp-pdf__meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cs-cmp-pdf__x { width: 30px; height: 30px; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.cs-cmp-vid { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--edge); background: #2B231B; color: #FCF8EE; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; gap: 8px; }
.cs-cmp-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cs-cmp-vid__meta { position: relative; font-family: var(--font-mono); font-size: 12px; }
.cs-cmp-vid .cs-cmp-prog { position: relative; }
.cs-cmp-vid__x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #FCF8EE; background: #381600; color: #FCF8EE; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-cmp-poll { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.cs-cmp-poll__title { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-cmp-poll__opt { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--app); }
.cs-cmp-poll__opt input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 14px/1 var(--font-body); outline: none; }
.cs-cmp-poll__opt > span { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-cmp-poll__opt button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-cmp-poll__add { align-self: flex-start; border: none; background: transparent; color: var(--link); font: 700 13px/1 var(--font-mono); cursor: pointer; padding: 4px 0; }
.cs-cmp-poll__len { display: flex; flex-direction: column; gap: 6px; }
.cs-cmp-poll__len > span { font: 700 12px/1 var(--font-mono); }
.cs-cmp-poll__len > div { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-cmp-poll__len button { height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-cmp-poll__len button.is-on { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-cmp-poll__ver { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--app); color: var(--ink); cursor: pointer; text-align: left; }
.cs-cmp-poll__ver > span:first-child { flex: 1; font: 500 14px/1.35 var(--font-body); }
.cs-switch { width: 40px; height: 24px; border-radius: 12px; background: var(--line); border: 1.5px solid var(--edge); position: relative; flex-shrink: 0; }
.cs-switch i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 1.5px solid var(--edge); transition: left .15s; }
.cs-switch.is-on { background: #3FBFA9; }
.cs-switch.is-on i { left: 18px; }
.cs-cmp-poll__rm { align-self: flex-start; border: none; background: transparent; color: var(--error); font: 400 12px/1 var(--font-mono); cursor: pointer; padding: 4px 0; }
.cs-cmp-status { display: flex; align-items: center; gap: 10px; }
.cs-cmp-status__bar { flex: 1; height: 10px; border: 1.5px solid var(--edge); border-radius: 6px; overflow: hidden; background: var(--surface); }
.cs-cmp-status__bar i { display: block; height: 100%; background: var(--yellow); transition: width .14s linear; }
.cs-cmp-status.is-failed .cs-cmp-status__bar i { background: var(--error); }
.cs-cmp-status > span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.cs-cmp-status.is-failed > span { color: var(--error); }
.cs-cmp-status button { border: 1.5px solid var(--edge); border-radius: 8px; background: var(--yellow); color: var(--brown); padding: 4px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; }
.cs-cmp-addrow { display: flex; gap: 12px; align-items: center; }
.cs-cmp-addrow.is-off { opacity: .45; }
.cs-cmp-addrow__pad { width: 44px; display: flex; justify-content: center; flex-shrink: 0; }
.cs-cmp-plus { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: var(--pop); }
.cs-cmp-addrow__label { border: 0; background: none; padding: 0; color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; cursor: pointer; text-align: left; }
.cs-cmp-settings { margin-left: 56px; display: flex; flex-direction: column; gap: 8px; }
.cs-cmp-settings__row { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-cmp-menu { position: relative; }
.cs-cmp-set { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 400 12px/1 var(--font-mono); cursor: pointer; }
.cs-cmp-set.is-aud { background: var(--chip-soft); }
.cs-cmp-set span { display: flex; align-items: center; }
.cs-cmp-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 10; min-width: 250px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); box-shadow: var(--pop); padding: 6px; display: flex; flex-direction: column; }
.cs-cmp-pop[hidden], .cs-cmp-pop [hidden] { display: none; }
.cs-cmp-pop button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.cs-cmp-pop button:hover { background: var(--hover); }
.cs-cmp-pop button.is-on { background: var(--chip-soft); }
.cs-cmp-pop b { display: block; font-size: 14px; }
.cs-cmp-pop small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.cs-cmp-note { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.cs-cmp-note[hidden] { display: none; }
.cs-cmp-note svg { flex-shrink: 0; }
.cs-cmp-tools { position: sticky; bottom: 0; z-index: 4; background: var(--app); border-top: 1.5px solid var(--line); padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; }
.cs-cmp-tool { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-cmp-tool:hover { background: var(--hover); }
.cs-cmp-tool.is-dim { opacity: .35; }
.cs-cmp-tool.is-hint { background: var(--yellow); color: var(--brown); box-shadow: inset 0 0 0 1.5px var(--edge); }
.cs-cmp-tools__gap { flex: 1; }
.cs-cmp-tools__active { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-right: 8px; }
.cs-cmp-tools__plus { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cs-cmp-addto__main, .cs-cmp-target__main { flex: 1; min-width: 0; padding-bottom: 14px; }
.cs-cmp-addto__head, .cs-cmp-target__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-cmp-addto__head b { font-size: 14px; }
.cs-cmp-addto__handle { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.cs-cmp-addto__tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1.2px solid var(--edge); background: var(--surface-2); padding: 0 6px; border-radius: 6px; }
.cs-cmp-addto__text { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-cmp-target__head b { font-size: 15px; }
.cs-cmp-target__meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.cs-cmp-target__text { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cs-cmp-body:has(.cs-cmp-target) { gap: 0; }
.cs-cmp-replyrow { display: flex; gap: 12px; }
.cs-cmp-replyrow__av .cs-av { width: 40px; height: 40px; font-size: 12px; }
.cs-cmp-replyrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-cmp-to { align-self: flex-start; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); cursor: pointer; text-align: left; }
.cs-cmp-to b { color: var(--link); }
.cs-cmp-tolist { border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 6px; box-shadow: var(--pop); }
.cs-cmp-tolist[hidden] { display: none; }
.cs-cmp-tolist__hint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding: 6px 8px; }
.cs-cmp-tolist__row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.cs-cmp-tolist__row:hover { background: var(--hover); }
.cs-cmp-tolist__row input { position: absolute; opacity: 0; pointer-events: none; }
.cs-cmp-tolist__box { width: 20px; height: 20px; border: 1.5px solid var(--edge); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--brown); flex-shrink: 0; }
.cs-cmp-tolist__box svg { visibility: hidden; }
.cs-cmp-tolist__row input:checked + .cs-cmp-tolist__box { background: var(--yellow); }
.cs-cmp-tolist__row input:checked + .cs-cmp-tolist__box svg { visibility: visible; }
.cs-cmp-tolist__row input:focus-visible + .cs-cmp-tolist__box { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-cmp-tolist__row b { font-size: 14px; }
.cs-cmp-tolist__row span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.cs-cmp-replyta { width: 100%; min-height: 120px; resize: none; border: none; outline: none; background: transparent; font: 400 17px/1.5 var(--font-body); color: var(--ink); padding: 4px 0 0; overflow: hidden; }
.cs-cmp-blocked, .cs-replyblocked { display: flex; align-items: center; gap: 8px; margin: 8px 0 0 52px; padding: 10px 12px; border: 1.5px dashed var(--edge); border-radius: 10px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.cs-replyblocked { margin: 6px 16px 14px; }
.cs-cmp-leave[hidden] { display: none; }
.cs-cmp-leave__scrim { position: fixed; inset: 0; z-index: 40; background: rgba(23, 18, 13, .45); }
.cs-cmp-leave__box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); z-index: 41; background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; box-shadow: var(--pop); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cs-cmp-leave__title { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.cs-cmp-leave__body { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cs-cmp-leave__save { min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font-family: var(--font-mono); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--pop); }
.cs-cmp-leave__discard { min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--error); font-family: var(--font-mono); font-size: 14px; font-weight: 700; cursor: pointer; }
.cs-cmp-leave__keep { min-height: 40px; border: 0; background: none; color: var(--ink); font-family: var(--font-mono); font-size: 13px; cursor: pointer; }

/* Phone reply bar opens the reply screen */
.cs-replybar__pill { flex: 1; display: flex; align-items: center; height: 42px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink-3); padding: 0 16px; font: 400 15px/1 var(--font-body); }
/* Desktop inline reply */
.cs-replyin { display: none; }
.cs-addthread { display: flex; gap: 12px; align-items: center; padding: 4px 16px 14px; }
.cs-addthread__pad { width: 44px; display: flex; justify-content: center; }
.cs-addthread__label { color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; }

/* Real photos and videos in posts */
.cs-images.is-three > :first-child { grid-row: span 2; aspect-ratio: auto; }
.cs-images__img { display: block; aspect-ratio: 4/3; background: var(--ph); overflow: hidden; }
.cs-images.is-one .cs-images__img { max-height: 520px; }
.cs-images__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-video { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin-top: 12px; border: 1.5px solid var(--edge); background: #2B231B; color: #FCF8EE; }
.cs-video video { width: 100%; height: 100%; background: #000; }
.cs-video__idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; background: none; color: #FCF8EE; cursor: pointer; }
.cs-video__idle[hidden] { display: none; }
.cs-video__btn { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--brown); border: 1.5px solid #FCF8EE; display: flex; align-items: center; justify-content: center; }
.cs-video__meta { font-family: var(--font-mono); font-size: 12px; }
.cs-pdf a.cs-pdf__dl { text-decoration: none; }
/* Polls you can vote in */
.cs-poll__final { font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.cs-poll__vote { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 13px; cursor: pointer; margin-bottom: 8px; }
.cs-poll__vote:hover { background: var(--hover); }
.cs-poll__vote.is-off { opacity: .5; }
.cs-poll.is-busy { opacity: .7; pointer-events: none; }
.cs-poll__opt.is-win { border-width: 2px; }
.cs-poll__opt.is-win .cs-poll__bar, .cs-poll__opt.is-mine .cs-poll__bar { background: var(--yellow); }
.cs-poll__opt.is-win .cs-poll__row, .cs-poll__opt.is-mine .cs-poll__row { font-weight: 700; }
.cs-poll__row span:first-child { display: flex; align-items: center; gap: 6px; }
.cs-poll__lock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border: 1.5px dashed var(--edge); border-radius: 10px; font-size: 13px; line-height: 1.35; }
.cs-poll__lock span { flex: 1; min-width: 150px; }
.cs-poll__verify { border: 1.5px solid #381600; border-radius: 8px; background: var(--yellow); color: #381600; padding: 6px 10px; font: 700 12px/1 var(--font-mono); cursor: pointer; }

@media (min-width: 1000px) {
	.cs-view-compose .cs-main, .cs-view-reply .cs-main { padding-bottom: 0; }
	.cs-compose { min-height: calc(100vh / var(--ui-zoom)); }
	.cs-cmp-head { padding: 10px 16px; }
	.cs-replyin { display: block; padding: 6px 20px 14px; border-bottom: 1.5px solid var(--line); }
	.cs-replyin__to { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin: 0 0 6px 52px; }
	.cs-replyin__to b { color: var(--link); }
	.cs-replyin__to[hidden], .cs-replyin__more[hidden] { display: none; }
	.cs-replyin__row { display: flex; gap: 12px; align-items: flex-start; }
	.cs-replyin__row .cs-av { width: 40px; height: 40px; font-size: 12px; }
	.cs-replyin textarea { flex: 1; min-width: 0; min-height: 40px; resize: none; border: none; outline: none; background: transparent; font: 400 17px/1.5 var(--font-body); color: var(--ink); padding: 7px 0 0; overflow: hidden; }
	.cs-replyin.is-open textarea { min-height: 84px; }
	.cs-replyin__open { min-height: 38px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font-family: var(--font-mono); font-size: 14px; font-weight: 700; cursor: pointer; opacity: .5; }
	.cs-replyin.is-open .cs-replyin__open { display: none; }
	.cs-replyin__sg { margin: 6px 0 0 52px; }
	.cs-replyin__more { margin-left: 52px; display: flex; flex-direction: column; gap: 8px; }
	.cs-replyin__tools { display: flex; align-items: center; gap: 2px; padding-top: 8px; border-top: 1.5px dashed var(--dash); }
	.cs-replyin__send { min-height: 38px; padding: 0 18px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font-family: var(--font-mono); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--pop); }
	.cs-replyin__send[disabled] { opacity: .4; box-shadow: none; cursor: default; }
	.cs-replyblocked { margin: 6px 20px 14px; }
}
.cs-cmp-chip .cs-av.cs-cmp-chip__av.is-page { border-radius: 50%; background: #CFE6F7; color: #381600; }

/* ---------- Safety: post menu, report and block sheets, placeholders ---------- */
.cs-layer__scrim { position: fixed; inset: 0; z-index: 70; background: rgba(56, 22, 0, .12); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.cs-layer.is-sheet .cs-sheet__box { display: flex; }
.cs-pmenu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; zoom: var(--ui-zoom); background: var(--surface); border-top: 2px solid var(--edge); border-radius: 26px 26px 0 0; padding: 10px 14px calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 0 var(--edge); display: flex; flex-direction: column; gap: 10px; animation: cs-sheet-in .24s cubic-bezier(.3,.7,.4,1); }
.cs-pmenu__handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px 0 2px; }
.cs-pmenu__group { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--app); overflow: hidden; }
.cs-pmenu__item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 10px; border: 0; border-bottom: 1.5px solid var(--line); margin-bottom: -1.5px; background: transparent; color: var(--ink); font: 500 16px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.cs-pmenu__item:hover { background: var(--hover); }
.cs-pmenu__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-pmenu__item.is-danger { color: var(--error); }
.cs-pmenu__item.is-danger .cs-pmenu__ic { background: var(--error-soft); }
.cs-pmenu__cancel { min-height: 52px; border: 2px solid var(--edge); border-radius: 16px; background: var(--yellow); color: var(--brown); font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: 3px 3px 0 var(--edge); margin-top: 4px; }
.cs-ph { display: flex; gap: 10px; padding: 0 16px; }
.cs-ph.is-card { padding: 4px 0; }
.cs-ph__col { display: flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; }
.cs-ph__top, .cs-ph__bottom { width: 2px; background: var(--edge); opacity: 0; }
.cs-ph__top { height: 12px; }
.cs-ph__bottom { flex: 1; min-height: 8px; }
.cs-ph.has-top .cs-ph__top, .cs-ph.has-bottom .cs-ph__bottom { opacity: 1; }
.cs-ph.is-card .cs-ph__top { height: 0; }
.cs-ph__dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--edge); margin: 8px 0 4px; flex-shrink: 0; }
.cs-ph__main { flex: 1; min-width: 0; padding: 8px 0 12px; }
.cs-ph__box { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed var(--edge); border-radius: 12px; padding: 10px 12px; background: var(--card-2); }
.cs-ph__box span { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.cs-ph__box button { flex-shrink: 0; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 5px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; }
.cs-blk__head { display: flex; align-items: center; gap: 12px; font: 700 18px/1.25 var(--font-display); }
.cs-blk__head .cs-av { width: 48px; height: 48px; font-size: 14px; }
.cs-blk__facts { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.cs-blk__facts > div { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1.5px solid var(--line); font-size: 14px; line-height: 1.4; }
.cs-blk__facts > div:last-child { border-bottom: 0; }
.cs-blk__facts svg { color: var(--ink-2); flex-shrink: 0; }
.cs-blk__also { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 500 15px/1.3 var(--font-body); }
.cs-blk__box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--edge); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brown); }
.cs-blk__box svg { visibility: hidden; }
.cs-blk__also.is-on .cs-blk__box { background: var(--yellow); }
.cs-blk__also.is-on .cs-blk__box svg { visibility: visible; }
.cs-rep { gap: 14px; }
.cs-rep__head { display: flex; align-items: center; gap: 10px; }
.cs-rep__titles { flex: 1; }
.cs-rep__title { font: 700 18px/1.2 var(--font-display); }
.cs-rep__sub { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 4px; }
.cs-rep__list { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; max-height: 430px; overflow-y: auto; }
.cs-rep__list button { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 500 15px/1.3 var(--font-body); }
.cs-rep__list button:last-child { border-bottom: 0; }
.cs-rep__list button span { flex: 1; }
.cs-rep__list button svg { color: var(--ink-3); }
.cs-rep__list button:hover, .cs-rep__list button.is-on { background: var(--soft); }
.cs-rep__reason { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font: 600 14px/1.3 var(--font-body); }
.cs-rep__field { display: flex; flex-direction: column; gap: 7px; }
.cs-rep__field > span { font: 700 12px/1 var(--font-mono); }
.cs-rep__field i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.cs-rep__field input { height: 46px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0 14px; font: 500 15px/1 var(--font-body); outline: none; }
.cs-rep__note { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.cs-rep__go { min-height: 50px; border: 1.5px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.cs-rep__done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }
.cs-rep__tick { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #381600; background: #CDEFD6; color: #381600; display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--edge); }
.cs-rep__thanks { font: 700 19px/1.3 var(--font-display); }
.cs-rep__p { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 320px; }
.cs-rep__quick { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cs-rep__quick button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 500 15px/1.25 var(--font-body); }
.cs-rep__quick button:last-child { border-bottom: 0; }
.cs-rep__quick button > span:first-child { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-rep__quick .is-danger { color: var(--error); }
.cs-rep__quick .is-danger > span:first-child { background: var(--error-soft); }
.cs-rep__quick b { display: block; font-weight: 500; }
.cs-rep__quick small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Notices, appeals, rules */
.cs-nbar { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1.5px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.cs-nbar__back { width: 40px; height: 40px; border-radius: 20px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cs-nbar__back:hover { background: var(--hover); }
.cs-nbar__title { flex: 1; margin: 0; font: 700 17px/1.1 var(--font-display); }
.cs-notice__body { padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.cs-notice__hero { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid #381600; border-radius: 16px; color: #381600; box-shadow: 3px 3px 0 var(--edge); }
.cs-notice__hero svg { flex-shrink: 0; }
.cs-notice__title { font: 700 17px/1.25 var(--font-display); }
.cs-notice__lead { font-size: 14px; line-height: 1.45; margin-top: 5px; }
.cs-notice__sect { display: flex; flex-direction: column; gap: 6px; }
.cs-kicker { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cs-notice__post { opacity: .5; border: 1.5px dashed var(--edge); border-radius: 16px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cs-notice__who { display: flex; align-items: center; gap: 8px; }
.cs-notice__who .cs-av { width: 28px; height: 28px; font-size: 9px; }
.cs-notice__who b { font-size: 14px; }
.cs-notice__who span { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-notice__text { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cs-notice__card { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.cs-notice__card > div { padding: 12px 14px; }
.cs-notice__card > div:first-child { border-bottom: 1.5px solid var(--line); }
.cs-notice__rule { font-weight: 700; font-size: 15px; margin-top: 6px; }
.cs-notice__rulebody { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.cs-notice__next { font-size: 14px; line-height: 1.45; margin-top: 6px; }
.cs-notice__status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; font-size: 14px; line-height: 1.4; }
.cs-notice__status svg { flex-shrink: 0; }
.cs-notice__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-notice__btns a { flex: 1; min-width: 140px; min-height: 48px; border: 1.5px solid var(--edge); border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-mono); }
.cs-notice__rulebtn { background: var(--surface); color: var(--ink); }
.cs-notice__appeal { background: var(--yellow); color: #381600 !important; border-color: #381600 !important; box-shadow: var(--pop); }
.cs-notice__used { font-size: 13px; color: var(--ink-3); text-align: center; }
.cs-appeal__what { padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.cs-appeal__field { display: flex; flex-direction: column; gap: 8px; }
.cs-appeal__field > span:first-child { font: 700 15px/1.3 var(--font-display); }
.cs-appeal__field textarea { border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 12px 14px; font: 400 15px/1.45 var(--font-body); outline: none; resize: none; }
.cs-appeal__count { font: 400 12px/1 var(--font-mono); color: var(--ink-3); text-align: right; }
.cs-appeal__note { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.cs-appeal__go { min-height: 50px; border: 1.5px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.cs-appeal__go.is-dim { opacity: .45; }
.cs-rules__lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cs-rule { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 14px 16px; scroll-margin-top: 80px; }
.cs-rule:target { background: var(--pin-bg); box-shadow: var(--pop); }
.cs-rule h2 { margin: 0; font: 700 16px/1.3 var(--font-display); }
.cs-rule p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
/* Suspended */
.cs-view-suspended .cs-rail, .cs-view-suspended .cs-side, .cs-view-suspended .cs-tabbar { display: none !important; }
.cs-susp { min-height: calc(100vh / var(--ui-zoom)); display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.cs-susp__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 380px; }
.cs-susp__badge { width: 76px; height: 76px; border-radius: 22px; border: 2px solid #381600; background: #FDE3DF; color: #D93A2B; display: flex; align-items: center; justify-content: center; box-shadow: 4px 4px 0 var(--edge); transform: rotate(-4deg); }
.cs-susp__title { margin: 8px 0 0; font: 700 22px/1.25 var(--font-display); }
.cs-susp__p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cs-susp__still { width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); font-size: 14px; line-height: 1.45; }
.cs-susp__still .cs-kicker { margin-bottom: 6px; }
.cs-susp__btns { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.cs-susp__appeal, .cs-susp__rule { min-height: 50px; border: 1.5px solid var(--edge); border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-mono); }
.cs-susp__appeal { background: var(--yellow); color: #381600; border-color: #381600; box-shadow: var(--pop); }
.cs-susp__rule { min-height: 48px; background: var(--surface); color: var(--ink); font-size: 14px; }
.cs-susp__ro { min-height: 44px; border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
	.cs-pmenu { left: auto; bottom: auto; width: 252px; border: 2px solid var(--edge); border-radius: 18px; box-shadow: 4px 4px 0 var(--edge); padding: 6px; gap: 0; animation: cs-menu-in .16s cubic-bezier(.3,.7,.4,1); }
	.cs-layer.is-menu .cs-layer__scrim { background: rgba(56, 22, 0, .10); }
	.cs-pmenu__handle, .cs-pmenu__cancel { display: none; }
	.cs-pmenu__group { border: 0; border-radius: 0; background: transparent; gap: 2px; }
	.cs-pmenu__group + .cs-pmenu__group { border-top: 1.5px solid var(--line); padding-top: 6px; margin-top: 6px; }
	.cs-pmenu__item { min-height: 46px; padding: 6px 10px 6px 6px; border: 0; margin: 0; border-radius: 12px; font-size: 15px; gap: 12px; }
	.cs-pmenu__ic { width: 34px; height: 34px; border-radius: 10px; }
	.cs-layer .cs-sheet__box.cs-rep { width: 480px; }
	.cs-layer .cs-sheet__box.cs-blk { width: 440px; }
	.cs-view-suspended .cs-shell { display: block; padding: 0; }
	.cs-view-suspended .cs-main { max-width: none; }
}
@keyframes cs-menu-in { from { transform: scale(.94); opacity: 0; } }

/* ---------- Announcement banner (Home) ---------- */
.cs-annc { display: flex; gap: 10px; align-items: flex-start; margin: 14px 16px 0; padding: 12px 14px; border: 2px solid #381600; border-radius: 14px; background: var(--yellow); color: #381600; box-shadow: 3px 3px 0 var(--edge); }
.cs-annc[hidden] { display: none; }
.cs-annc > b { font: 700 16px/1.2 var(--font-mono); }
.cs-annc > div { flex: 1; min-width: 0; }
.cs-annc > div > div { font: 700 15px/1.3 var(--font-body); }
.cs-annc span { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.cs-annc a { text-decoration: underline; }
.cs-annc button, .cs-annc > i { border: 0; background: none; color: #381600; font: 700 16px/1 var(--font-body); cursor: pointer; padding: 0 2px; font-style: normal; }
@media (min-width: 1000px) { .cs-annc { margin: 18px 0 0; } }

/* ---------- Moderation console (/admin) ---------- */
.cs-adm-body { background: var(--canvas); min-height: 100vh; }
.adm-top { position: sticky; top: 0; z-index: 20; background: var(--app); border-bottom: 2px solid var(--edge); padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-brand { display: flex; align-items: center; gap: 10px; }
.adm-brand img { height: 30px; width: auto; }
.adm-brand span { font: 700 16px/1 var(--font-display); }
.adm-brand b { font: 700 11px/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; background: #381600; color: #FCF8EE; }
.adm-links { display: flex; gap: 12px; font: 600 12px/1 var(--font-mono); }
.adm-links a { color: var(--link); text-decoration: underline; }
.adm-flex { flex: 1; }
.adm-who { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-body); color: var(--ink-2); }
.adm-who span { height: 34px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 0 14px; font-weight: 500; }
.adm-theme { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--edge); }
.adm-theme button { border: none; background: transparent; color: var(--ink-2); font: 600 12px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.adm-theme button.is-on { background: var(--yellow); color: #381600; }
.adm-shell { display: flex; gap: 24px; padding: 20px 24px 0; max-width: 1440px; margin: 0 auto; align-items: flex-start; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; width: 240px; flex-shrink: 0; position: sticky; top: 76px; }
.adm-nav__item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 12px; color: var(--ink); font: 500 14px/1.2 var(--font-body); white-space: nowrap; }
.adm-nav__item:hover { background: var(--hover); }
.adm-nav__item.is-on { background: var(--surface); border-color: var(--edge); font-weight: 700; }
.adm-nav__label { flex: 1; }
.adm-count { font: 700 11px/1 var(--font-mono); padding: 4px 7px; border-radius: 999px; background: var(--yellow); color: #381600; border: 1.2px solid #381600; }
.adm-count.is-red { background: #FF8A7A; }
.adm-key { font: 400 10px/1 var(--font-mono); color: var(--ink-3); padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-bottom: 70px; }
.adm-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.adm-title h1 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.adm-title span { font-size: 14px; color: var(--ink-3); }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.adm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 2px solid var(--edge); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--pop); }
.adm-card__l { font: 700 12px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.adm-card__n { font: 700 34px/1 var(--font-display); }
.adm-pill { font: 700 11px/1 var(--font-mono); padding: 4px 8px; border-radius: 999px; color: #381600; border: 1.2px solid #381600; white-space: nowrap; }
.adm-pill.is-red { background: #FF8A7A; }
.adm-pill.is-green { background: #CDEFD6; padding: 6px 9px; border-width: 1.5px; }
.adm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.adm-two--tight { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.adm-two--ann { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.adm-box { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.adm-box--pad { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: visible; }
.adm-box__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1.5px solid var(--line); font: 700 15px/1.2 var(--font-display); }
.adm-box__head > span:first-child { flex: 1; }
.adm-box__head--sm { padding: 10px 14px; font: 400 13px/1 var(--font-body); }
.adm-box__head--sm > span:first-child { flex: 0 0 auto; }
.adm-box__head small { color: var(--ink-3); }
.adm-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1.5px solid var(--edge); }
.adm-seg a { font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; color: var(--ink); }
.adm-seg a.is-on { background: var(--yellow); color: #381600; }
.adm-seg a.is-dim { color: var(--ink-3); opacity: .6; }
.adm-seg--wide { border-radius: 14px; padding: 4px; }
.adm-seg--wide a { flex: 1; text-align: center; border-radius: 10px; padding: 9px 0; font-family: var(--font-mono); font-weight: 700; }
.adm-seg--wide a.is-on { border: 1.5px solid var(--edge); }
.adm-su { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px; align-items: center; padding: 10px 16px; border-top: 1.5px solid var(--line); font-size: 14px; }
.adm-su > b, .adm-su > span:not(.adm-su__c) { text-align: right; font: 700 14px/1 var(--font-mono); }
.adm-su > span:last-child { font-weight: 400; color: var(--ink-2); }
.adm-su--head { border-top: 0; padding: 8px 16px; font: 700 11px/1 var(--font-mono) !important; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.adm-su--head > span { font: 700 11px/1 var(--font-mono) !important; color: var(--ink-3) !important; }
.adm-su--head > span:first-child { text-align: left; }
.adm-su--tot { border-top: 2px solid var(--edge); padding: 12px 16px; font: 700 14px/1 var(--font-mono); }
.adm-su--tot > span:first-child { text-align: left; }
.adm-su--tot > span:last-child { font-weight: 700; color: var(--ink); }
.adm-su__c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-tag { font: 700 10px/1 var(--font-body); letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: var(--soft); color: var(--on-soft); }
.adm-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 40px; }
.adm-bar i { display: block; height: 100%; background: var(--yellow); }
.adm-top5 { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1.5px solid var(--line); color: var(--ink); }
.adm-top5:first-of-type { border-top: 0; }
.adm-top5:hover { background: var(--hover); }
.adm-top5 > b { font: 700 18px/1 var(--font-mono); min-width: 34px; }
.adm-top5__main { flex: 1; min-width: 0; }
.adm-top5__main > span { display: block; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top5__main small { display: block; font: 400 12px/1 var(--font-mono); color: var(--ink-3); margin-top: 4px; }
.adm-urg { font: 700 10px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; border: 1.2px solid #381600; color: #381600; background: #F1E7D6; }
.adm-urg.is-urgent { background: #FF8A7A; }
.adm-urg.is-high { background: #FFDE7A; }
.adm-muted { color: var(--ink-3); }
.adm-small { font-size: 12px; }
.adm-mono { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.adm-kicker { font: 700 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.adm-empty { border: 2px dashed var(--edge); border-radius: 18px; padding: 40px 20px; text-align: center; }
.adm-empty__t { font: 700 20px/1.2 var(--font-display); }
.adm-empty__b { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.adm-meta { font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); }
.adm-id { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-id__left, .adm-id__right { display: flex; flex-direction: column; gap: 12px; }
.adm-id__left { gap: 8px; }
.adm-id__photo { position: relative; aspect-ratio: 16/10; border: 2px solid var(--edge); border-radius: 16px; background: repeating-linear-gradient(135deg, var(--stripe) 0 14px, transparent 14px 28px), var(--ph); padding: 0; overflow: hidden; cursor: zoom-in; }
.adm-id.is-zoom .adm-id__photo { aspect-ratio: 3/4; cursor: zoom-out; }
.adm-id__photo img { width: 100%; height: 100%; object-fit: contain; }
.adm-id.is-zoom .adm-id__photo img { object-fit: cover; }
.adm-id__zoom { position: absolute; top: 10px; right: 10px; font: 700 11px/1 var(--font-mono); padding: 5px 8px; border-radius: 999px; background: #381600; color: #FCF8EE; }
.adm-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.adm-kv { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.adm-kv > div { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1.5px solid var(--line); }
.adm-kv > div:last-child { border-bottom: 0; }
.adm-kv span { min-width: 120px; font: 700 11px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.adm-kv b { flex: 1; font-size: 15px; font-weight: 600; }
.adm-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-rej { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.adm-rej[hidden] { display: none; }
.adm-rej > span { font: 700 12px/1 var(--font-mono); }
.adm-rej > div { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-rej button { height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--app); color: var(--ink); font: 600 13px/1 var(--font-body); cursor: pointer; }
.adm-rej button b { font-family: var(--font-mono); margin-right: 6px; }
.adm-3btn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-3btn > *, .adm-2btn > * { min-height: 56px; border: 2px solid #381600; border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-mono); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.adm-3btn span, .adm-2btn span, .adm-acts span { opacity: .6; }
.adm-3btn .is-green, .adm-2btn .is-green { background: #CDEFD6; color: #381600; box-shadow: var(--pop); }
.adm-3btn .is-red { background: #FDE3DF; color: #381600; box-shadow: var(--pop); }
.adm-3btn .adm-btn { border-color: var(--edge); }
.adm-2btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-2btn > * { min-height: 44px; font-size: 14px; }
.adm-2btn > :last-child { background: var(--surface-2); color: #381600; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-filters label { display: flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-mono); color: var(--ink-3); }
.adm-filters select { height: 34px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 0 10px; font: 500 13px/1 var(--font-body); }
.adm-chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 600 12px/1 var(--font-body); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.adm-chip.is-on { background: var(--yellow); color: #381600; }
.adm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-reps { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-replist { display: flex; flex-direction: column; gap: 6px; }
.adm-repitem { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); }
.adm-repitem.is-on { background: var(--surface); border: 2px solid var(--edge); }
.adm-repitem__top { display: flex; align-items: center; gap: 6px; }
.adm-repitem__top b { font: 700 12px/1 var(--font-mono); }
.adm-repitem__top small { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.adm-repitem__text { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adm-repdetail { display: flex; flex-direction: column; gap: 10px; }
.adm-lock { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--warning-soft); font-size: 14px; }
.adm-subject { border: 2px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.adm-subject__top { display: flex; align-items: center; gap: 8px; }
.adm-subject__top b { font: 700 12px/1 var(--font-mono); }
.adm-hid { font: 600 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.adm-subject__ctx { border-left: 2px solid var(--line); padding-left: 10px; font-size: 13px; color: var(--ink-2); }
.adm-subject__text { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.adm-subject__by { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.adm-subject__by a { color: var(--link); }
.adm-reason { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.adm-reason b { font-family: var(--font-mono); }
.adm-detail { font-size: 13px; color: var(--ink-2); font-style: italic; }
.adm-from, .adm-hist { font-size: 13px; color: var(--ink-2); }
.adm-hist { font-size: 14px; color: var(--ink); }
.adm-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.adm-acts.is-locked { opacity: .45; }
.adm-acts button { min-height: 44px; padding: 6px 10px; border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 13px/1.2 var(--font-mono); cursor: pointer; }
.adm-acts button:disabled { opacity: .4; cursor: default; }
.adm-acts .is-pink { background: #FDE3DF; color: #381600; border-color: #381600; }
.adm-acts .is-yellow { background: #FFF3C4; color: #381600; border-color: #381600; }
.adm-acts .is-red { background: var(--error); color: #fff; border-color: #381600; box-shadow: var(--pop); }
.adm-confirm { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface); box-shadow: var(--pop); }
.adm-confirm[hidden], .adm-confirm [hidden] { display: none; }
.adm-confirm__t { font: 700 16px/1.2 var(--font-display); }
.adm-confirm__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 13px/1 var(--font-body); color: var(--ink-2); }
.adm-confirm__row select { height: 36px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--app); color: var(--ink); padding: 0 10px; }
.adm-days { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-days button { height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--app); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.adm-days button.is-on { background: var(--yellow); color: #381600; }
.adm-confirm__btns { display: flex; gap: 8px; }
.adm-confirm__btns button { flex: 1; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-mono); cursor: pointer; }
.adm-confirm__btns .is-go { background: var(--yellow); color: #381600; box-shadow: var(--pop); }
.adm-input { width: 100%; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--app); color: var(--ink); padding: 10px 12px; font: 400 14px/1.4 var(--font-body); outline: none; }
.adm-input:focus { box-shadow: 0 0 0 3px var(--soft); }
textarea.adm-input { resize: vertical; }
.adm-appeal { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.adm-appeal.is-first { border-width: 2px; box-shadow: var(--pop); }
.adm-appeal__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-appeal__head b { font-size: 15px; }
.adm-tagline { font: 700 11px/1 var(--font-mono); padding: 4px 7px; border-radius: 6px; border: 1.2px solid #381600; background: #FDE3DF; color: #381600; }
.adm-quote { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.adm-quote.is-dashed { background: transparent; border: 1.5px dashed var(--edge); }
.adm-info { padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.adm-row { padding: 12px 16px; border-top: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.adm-box__head + .adm-row { border-top: 0; }
.adm-row__t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-row__t b { font-size: 15px; }
.adm-row__p { font-size: 14px; color: var(--ink-2); }
.adm-row__btns, .adm-row__add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-row__add[hidden] { display: none; }
.adm-row__add .adm-input { width: auto; min-height: 36px; padding: 6px 10px; }
.adm-sm { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); font: 700 13px/1 var(--font-mono); cursor: pointer; }
.adm-sm.is-green { background: #CDEFD6; color: #381600; box-shadow: 2px 2px 0 var(--edge); }
.adm-addmod { display: flex; gap: 10px; }
.adm-add { min-width: 70px; border: 2px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 14px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.adm-mod { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1.5px solid var(--line); }
.adm-mod b { font-size: 15px; }
.adm-mod .adm-small { margin-top: 4px; }
.adm-rm { border: 1.5px solid var(--error); border-radius: 10px; background: var(--surface); color: var(--error); padding: 8px 12px; font: 700 13px/1 var(--font-mono); cursor: pointer; }
.adm-ann { gap: 12px; }
.adm-ann label > span, .adm-ann legend { display: block; font: 700 12px/1 var(--font-mono); margin-bottom: 6px; }
.adm-ann i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.adm-ann fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-check { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--app); font-size: 14px; }
.adm-check.is-off { opacity: .55; }
.adm-check input { position: absolute; opacity: 0; }
.adm-check > span { width: 18px; height: 18px; border: 1.5px solid var(--edge); border-radius: 5px; background: var(--surface); }
.adm-check input:checked + span { background: var(--yellow); }
.adm-inline { display: flex; align-items: center; gap: 10px; }
.adm-inline > span { margin: 0 !important; font: 400 13px/1 var(--font-body) !important; color: var(--ink-2); }
.adm-inline .adm-input { width: auto; }
.adm-send { min-height: 50px; border: 2px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); }
.adm-annside { display: flex; flex-direction: column; gap: 12px; }
.cs-annc.is-preview { margin: 0; }
.adm-search { max-width: 360px; }
.adm-search .adm-input { border-radius: 999px; background: var(--surface); padding-left: 18px; }
.adm-log { display: grid; grid-template-columns: 150px 140px 200px minmax(0, 1fr); gap: 10px; padding: 9px 16px; border-top: 1.5px solid var(--line); font-size: 14px; align-items: center; }
.adm-log--head { border-top: 0; font: 700 11px/1 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.adm-hints { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 8px 16px; background: #381600; color: #FCF8EE; font: 400 11px/1 var(--font-mono); }
.adm-hints.is-off > span:not(:last-child) { display: none; }
.adm-hints kbd { font: 700 10px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px; background: #FCF8EE; color: #381600; margin-right: 6px; }
.adm-hints button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.adm-hints.is-off button::after { content: ' (show)'; }
@media (max-width: 820px) {
	.adm-shell { flex-direction: column; gap: 14px; padding: 14px 14px 0; }
	.adm-nav { flex-direction: row; width: auto; overflow-x: auto; position: static; padding-bottom: 4px; max-width: 100%; }
	.adm-nav__item { flex-shrink: 0; }
	.adm-key, .adm-hints { display: none; }
	.adm-id, .adm-reps, .adm-two--ann { grid-template-columns: 1fr; }
	.adm-acts { grid-template-columns: 1fr 1fr; }
	.adm-log { grid-template-columns: 1fr; gap: 4px; }
	.adm-log--head { display: none; }
	.adm-who { display: none; }
}

.adm-label { font: 700 12px/1 var(--font-mono); }
.adm-check input:checked + span { display: flex; align-items: center; justify-content: center; }
.adm-check input:checked + span::after { content: '✓'; font: 700 11px/1 var(--font-mono); color: #381600; }

/* ---------- Settings ---------- */
.cs-saver { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ph); font: 700 12px/1 var(--font-mono); color: var(--ink-2); cursor: pointer; }
.cs-images__img { position: relative; }
.cs-video__saver { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1.2px solid #FCF8EE; background: #381600; }
.st .cs-nbar__title { font-size: 18px; }
.st-title-d { display: none; }
.st-layout { display: flex; flex-direction: column; padding: 14px 16px 40px; }
.st-layout.has-sec .st-list { display: none; }
.st-layout:not(.has-sec) .st-detail { display: none; }
.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-sec { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 14px; color: var(--ink); }
.st-sec:hover { background: var(--hover); }
.st-sec__ic { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #381600; }
.st-sec__label { flex: 1; font: 600 15px/1.2 var(--font-body); }
.st-sec__badge { font: 700 10px/1 var(--font-mono); padding: 4px 7px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); }
.st-row__chev { color: var(--ink-3); display: flex; }
.st-ver { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); padding: 12px 4px 0; }
.st-detail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-detail__title { display: none; font: 700 20px/1.1 var(--font-display); margin-bottom: 4px; }
.st-group { display: flex; flex-direction: column; gap: 8px; }
.st-group__title { font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px; }
.st-card { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.st-card > * + * { border-top: 1.5px solid var(--line); }
.st-note { font-size: 12px; line-height: 1.45; color: var(--ink-3); padding: 0 4px; }
.st-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
a.st-row:hover, button.st-row:hover { background: var(--hover); }
.st-row.is-danger { color: var(--error); }
.st-row__main { flex: 1; min-width: 0; }
.st-row__label { display: block; font: 500 15px/1.25 var(--font-body); }
.st-row__sub { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-3); margin-top: 3px; }
.st-row__value { font-size: 14px; color: var(--ink-3); text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row__lock { color: var(--ink-3); display: flex; }
.st-chip { font: 700 11px/1 var(--font-mono); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.st-chip.is-warn { background: var(--warning-soft); color: var(--warning); }
.st-chip.is-ok { background: var(--success-soft); color: var(--success); }
.st-chip.is-err { background: var(--error-soft); color: var(--error); }
.st-chip.is-off { background: var(--surface-2); color: var(--ink-2); }
.st-switch { width: 44px; height: 26px; border-radius: 13px; background: var(--line); border: 1.5px solid var(--edge); position: relative; flex-shrink: 0; padding: 0; cursor: pointer; }
.st-switch i { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 1.5px solid var(--edge); transition: left .15s; }
[aria-checked="true"] > .st-switch, .st-switch[aria-checked="true"] { background: #3FBFA9; }
[aria-checked="true"] > .st-switch i, .st-switch[aria-checked="true"] i { left: 20px; }
.st-switch.is-sm { width: 40px; height: 24px; border-radius: 12px; }
.st-switch.is-sm i { width: 17px; height: 17px; }
.st-switch.is-sm[aria-checked="true"] i { left: 18px; }
.st-switch.is-locked { opacity: .5; }
.st-seg { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.st-seg .st-row__sub { margin-top: -6px; }
.st-seg__opts { display: flex; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--app); padding: 4px; gap: 4px; flex-wrap: wrap; }
.st-seg__opts button { flex: 1 0 auto; min-height: 36px; padding: 0 10px; border: 1.5px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2); font: 400 12px/1 var(--font-mono); cursor: pointer; }
.st-seg__opts button.is-on { background: var(--yellow); color: #381600; border-color: #381600; font-weight: 700; }
.st-pe { display: flex; align-items: center; padding: 8px 14px; min-height: 46px; }
.st-pe > span:first-child { flex: 1; font: 500 15px/1.25 var(--font-body); }
.st-pe > span:not(:first-child) { width: 56px; display: flex; justify-content: center; }
.st-card > .st-pe + .st-pe { border-top: 1.5px solid var(--line); }
.st-pe--head { min-height: 0; padding: 10px 14px 4px; font: 700 11px/1 var(--font-mono); color: var(--ink-3); }
.st-card > .st-pe--head + .st-pe { border-top: 0; }
.st-times { display: flex; gap: 10px; padding: 10px 14px 14px; }
.st-times[hidden] { display: none; }
.st-times label { flex: 1; display: flex; flex-direction: column; gap: 6px; font: 700 11px/1 var(--font-mono); color: var(--ink-3); }
.st-times input { height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--app); color: var(--ink); padding: 0 12px; font: 500 15px/1 var(--font-body); }
.st-word { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.st-word span { flex: 1; min-width: 0; font: 600 15px/1.2 var(--font-body); }
.st-word small { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.st-word button { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.st-empty { padding: 18px 14px; text-align: center; font-size: 14px; color: var(--ink-3); }
.st-addword { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.st-addword label[for] { font: 700 12px/1 var(--font-mono); }
.st-addword input[name="word"] { height: 46px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--app); color: var(--ink); padding: 0 14px; font: 500 15px/1 var(--font-body); outline: none; }
.st-durs, .st-chips > div { display: flex; gap: 6px; flex-wrap: wrap; }
.st-pill { position: relative; }
.st-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.st-pill span { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-body); cursor: pointer; }
.st-pill.is-on span, .st-pill input:checked + span { background: var(--yellow); color: #381600; border-color: #381600; }
.st-pill input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.st-chips .st-pill span { height: 36px; }
.st-mute { align-self: flex-start; height: 40px; padding: 0 16px; border: 1.5px solid #381600; border-radius: 10px; background: var(--yellow); color: #381600; font: 700 13px/1 var(--font-mono); cursor: pointer; }
.st-person { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.st-person .cs-av { width: 40px; height: 40px; font-size: 12px; }
.st-person > span { flex: 1; min-width: 0; }
.st-person b { display: block; font-size: 15px; }
.st-person small { display: block; font: 400 12px/1 var(--font-mono); color: var(--ink-3); margin-top: 4px; }
.st-person button { height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--edge); background: transparent; color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.st-form { display: flex; flex-direction: column; gap: 14px; }
.st-intro { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.st-intro.is-sm { font-size: 14px; color: var(--ink-3); margin-top: -8px; }
.st-field { display: flex; flex-direction: column; gap: 7px; }
.st-field > span:first-child { display: flex; justify-content: space-between; gap: 8px; font: 700 12px/1 var(--font-mono); }
.st-field > span:first-child i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.st-input { display: flex; align-items: center; height: 48px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 0 14px; gap: 4px; }
.st-input.is-ro { background: var(--surface-2); }
.st-input.is-area { height: auto; }
.st-input b { font: 700 15px/1 var(--font-mono); color: var(--ink-3); }
.st-input input, .st-input select, .st-input textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 15px/1 var(--font-body); outline: none; }
.st-input textarea { font: 400 15px/1.45 var(--font-body); resize: none; padding: 12px 0; }
.st-input:focus-within { box-shadow: 0 0 0 3px var(--soft); }
.st-help { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.st-help[hidden] { display: none; }
.st-help.is-err, .st-err { color: var(--error); }
.st-help.is-ok { color: var(--success); }
.st-err { font-size: 13px; font-weight: 600; }
.st-err[hidden] { display: none; }
.st-bar { display: flex; align-items: center; gap: 10px; }
.st-bar[hidden] { display: none; }
.st-bar > div { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.st-bar i { height: 6px; border-radius: 3px; background: var(--line); }
.st-bar span { font: 700 12px/1 var(--font-mono); color: var(--ink-2); }
.st-primary { min-height: 50px; border: 1.5px solid #381600; border-radius: 12px; background: var(--yellow); color: #381600; font: 700 15px/1 var(--font-mono); cursor: pointer; box-shadow: var(--pop); display: flex; align-items: center; justify-content: center; }
.st-primary.is-danger { background: var(--error); color: #fff; border-color: var(--edge); }
.st-primary:disabled { opacity: .45; }
.st-secondary { min-height: 50px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font-mono); cursor: pointer; }
.st-secondary[hidden] { display: none; }
.st-link { align-self: flex-start; color: var(--link); font: 700 13px/1 var(--font-mono); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.st-banner { padding: 12px 14px; border: 2px solid #381600; border-radius: 14px; background: #CDEFD6; color: #381600; font-size: 14px; line-height: 1.45; box-shadow: 3px 3px 0 #381600; }
.st-banner.is-warn { background: var(--warning-soft); }
.st-acct { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.st-acct > div { flex: 1; min-width: 0; }
.st-acct__g { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--edge); background: #fff; color: #381600; display: flex; align-items: center; justify-content: center; font: 700 18px/1 var(--font-display); flex-shrink: 0; }
.st-acct__name { font-weight: 700; font-size: 15px; }
.st-acct__sub { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); margin-top: 3px; }
.st-chips { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-chips legend { font: 700 12px/1 var(--font-mono); margin-bottom: 8px; padding: 0; }
.st-step { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.st-h { margin: 0; font: 700 20px/1.3 var(--font-display); }
.st-delstep { display: flex; flex-direction: column; gap: 14px; }
.st-delstep[hidden] { display: none; }
.st-facts > div { display: flex; gap: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.st-facts svg { flex-shrink: 0; }
.st-radios { display: flex; flex-direction: column; gap: 8px; }
.st-radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); cursor: pointer; font: 500 15px/1.25 var(--font-body); position: relative; }
.st-radio.is-on { border-width: 2px; }
.st-radio input { position: absolute; opacity: 0; }
.st-radio span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--edge); flex-shrink: 0; }
.st-radio input:checked + span { background: #381600; box-shadow: inset 0 0 0 3px var(--surface); }
.st-delbtns { display: flex; gap: 8px; }
.st-delbtns > * { flex: 1; }
.st-done { align-items: center; text-align: center; padding: 20px 0; }
.st-done__dot { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); border: 2px solid #381600; box-shadow: 3px 3px 0 var(--edge); }
.st-cardx { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.st-cardx__t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.st-cardx__b { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; }
.st-meta { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); }
.st-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--edge); color: var(--ink-3); }
.st-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 15px/1 var(--font-body); }
.st-faq { border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.st-faq[hidden] { display: none; }
.st-faq summary { display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; font: 600 15px/1.3 var(--font-body); list-style: none; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary span { flex: 1; }
.st-faq summary b::after { content: '+'; font: 700 18px/1 var(--font-mono); }
.st-faq[open] summary b::after { content: '−'; }
.st-faq > div { padding: 0 14px 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.st-nofaq { padding: 20px; text-align: center; font-size: 14px; color: var(--ink-3); }
.st-nofaq[hidden] { display: none; }
@media (min-width: 1000px) {
	.st-title-m { display: none; }
	.st-title-d { display: block; }
	.st .cs-nbar { padding-left: 54px; }
	.st .cs-nbar__back { display: none; }
	.st-layout, .st-layout.has-sec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 18px 16px 40px; align-items: start; }
	.st-layout .st-list, .st-layout.has-sec .st-list { display: flex; position: sticky; top: 78px; }
	.st-layout .st-detail { display: flex !important; }
	.st-sec.is-on { background: var(--surface); border-color: var(--edge); }
	.st-detail__title { display: block; }
}

/* ---------- Thread edge cases ---------- */
.cs-replyblocked.is-limited { border-style: solid; background: var(--yellow-soft, #FFF1BF); color: var(--brown); align-items: flex-start; }
.cs-replyblocked > div { display: flex; flex-direction: column; gap: 2px; }
.cs-replyblocked b { font: 700 13px/1.3 var(--font-mono); }
.cs-replyblocked svg { flex-shrink: 0; margin-top: 2px; }
.cs-foldbtn { padding: 0 16px 12px; }
.cs-foldbtn .cs-showmore__pad { display: flex; justify-content: center; align-self: stretch; margin: -12px 0 -12px; }
.cs-fold-line { width: 0; border-left: 2px dotted var(--edge); }
.cs-fold[hidden], .cs-foldbtn[hidden] { display: none; }
.cs-morereplies { padding: 6px 16px 18px; }
.cs-morereplies a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 13px/1 var(--font-mono); }
.cs-morereplies span { color: var(--ink-3); }
.cs-noreplies { gap: 6px; }
.cs-noreplies__icon { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--chip-soft); display: flex; align-items: center; justify-content: center; color: var(--ink); margin-bottom: 6px; }
.cs-noreplies__btn { margin-top: 8px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1.5px solid var(--brown); border-radius: 10px; background: var(--yellow); color: var(--brown); font: 700 13px/1 var(--font-mono); box-shadow: var(--pop); }
.cs-hiddenreplies { border-top: 1.5px solid var(--line); margin-top: 8px; }
.cs-hiddenreplies__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.cs-hiddenreplies__head h2 { margin: 0 0 4px; font: 700 15px/1 var(--font-mono); }
.cs-hiddenreplies__head p { margin: 0; font-size: 12px; color: var(--ink-3); }
.cs-hiddenreplies__none { padding: 0 16px 16px; color: var(--ink-3); font-size: 14px; }

/* ---------- Profile extras ---------- */
.cs-cover.has-photo { padding: 0; background: var(--surface-2); overflow: hidden; }
.cs-cover.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-profile__av.is-blank { background: var(--surface-2); }
.cs-profile__stats a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.cs-profile__stats a:hover b { text-decoration: underline; }
.cs-pill-btn.is-danger { color: var(--error); border-color: var(--error); background: var(--surface); }
.cs-profile__mutual { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.cs-profile__mutual-avs { display: flex; }
.cs-profile__mutual-avs .cs-av { width: 22px; height: 22px; font-size: 8px; border: 1.5px solid var(--solid); margin-right: -6px; }
.cs-profile__mutual-avs .cs-av:last-child { margin-right: 4px; }
.cs-shelf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.cs-shelf__b { border: 0; background: none; padding: 2px 6px 6px 2px; cursor: pointer; border-radius: 50%; }
.cs-shelf__b:focus-visible { outline: 2px solid var(--link); }
.cs-shelf__b[hidden] { display: none; }
.cs-shelf__more { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; box-shadow: 2px 2px 0 var(--edge); }
.cs-medal { position: relative; display: inline-block; flex-shrink: 0; }
.cs-medal__seal { position: absolute; inset: 0; overflow: visible; }
.cs-medal__icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cs-medal__tab { position: absolute; right: -5px; bottom: -3px; min-width: 16px; height: 16px; padding: 0 3px; display: flex; align-items: center; justify-content: center; color: #381600; border: 1.5px solid var(--edge); border-radius: 5px; font: 700 9px/1 var(--font-mono); }
.cs-medal__tiertop { position: absolute; left: 50%; top: -5px; transform: translateX(-50%); color: #381600; border: 2px solid var(--edge); border-radius: 999px; padding: 3px 8px; font: 700 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cs-medal__ribbon { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(-4deg); background: var(--edge); color: var(--app); font-family: var(--font-mono); font-weight: 700; line-height: 1; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; white-space: nowrap; }
.cs-bsheet-box { align-items: center; text-align: center; }
.cs-bsheet { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cs-bsheet__medal { padding: 8px 0 10px; }
.cs-bsheet__title { margin: 0; font: 700 20px/1.2 var(--font-display); }
.cs-bsheet__num { font: 700 13px/1 var(--font-mono); padding: 6px 10px; border-radius: 8px; background: #FFC83D; color: #381600; border: 1.5px solid #381600; }
.cs-bsheet__body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 340px; }
.cs-bsheet__date { font: 400 12px/1 var(--font-mono); color: var(--ink-3); background: var(--surface-2); border-radius: 6px; padding: 6px 10px; }
.cs-bsheet__share { min-height: 44px; padding: 0 24px; border: 1.5px solid var(--brown); border-radius: 12px; background: var(--yellow); color: var(--brown); font: 700 14px/1 var(--font-mono); box-shadow: var(--pop); cursor: pointer; }
.cs-bsheet__done { width: 100%; min-height: 46px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-mono); cursor: pointer; }
.cs-share__head { display: flex; align-items: center; justify-content: space-between; font: 700 18px/1.2 var(--font-display); }
.cs-share__x { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.cs-share__seg { display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); }
.cs-share__seg button { flex: 1; min-height: 36px; border: 1.5px solid transparent; border-radius: 9px; background: none; color: var(--ink-2); font: 400 13px/1 var(--font-mono); cursor: pointer; }
.cs-share__seg button.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-share__pv { display: flex; justify-content: center; }
.cs-share__pv canvas { width: min(280px, 70vw); height: auto; border-radius: 10px; }
.cs-share__pv canvas.is-story { width: min(180px, 46vw); }
.cs-share__meta { text-align: center; font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-share__btns { display: flex; gap: 8px; }
.cs-share__btns button { flex: 1; min-height: 46px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-mono); cursor: pointer; }
.cs-share__btns button.is-primary { flex: 1.6; background: var(--yellow); color: var(--brown); border-color: var(--brown); box-shadow: var(--pop); }
.cs-pempty { padding: 28px 18px; }
.cs-pempty__lock { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; background: var(--surface); }
.cs-pempty2 { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 18px; }
.cs-pempty2__dot { width: 64px; height: 64px; border-radius: 50%; background: var(--chip-soft); margin-bottom: 10px; }
.cs-youblocked { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); padding: 14px; }
.cs-youblocked__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--error-soft); color: var(--error); display: flex; align-items: center; justify-content: center; }
.cs-youblocked__title { font: 700 14px/1.3 var(--font-mono); }
.cs-youblocked p { margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.cs-youblocked__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-youblocked__acts > * { min-height: 36px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); display: inline-flex; align-items: center; cursor: pointer; }
.cs-youblocked__acts .is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); box-shadow: 2px 2px 0 var(--brown); }

/* Followers / Following */
.cs-ftabs { display: flex; gap: 4px; margin: 10px 16px; padding: 4px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); }
.cs-ftabs a { flex: 1; min-height: 38px; display: flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 9px; color: var(--ink-2); font: 400 13px/1 var(--font-mono); }
.cs-ftabs a.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-flist { padding: 4px 12px 24px; }
.cs-flist__box { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cs-frow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 14px; border-bottom: 1.5px solid var(--line); }
.cs-frow:last-child { border-bottom: 0; }
.cs-frow__av .cs-av { width: 40px; height: 40px; font-size: 12px; }
.cs-frow__main { flex: 1; min-width: 0; }
.cs-frow__name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--ink); font-size: 15px; }
.cs-frow__handle { font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }
.cs-frow__bio { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-frow__acts { display: flex; align-items: center; gap: 4px; }
.cs-frow__acts .cs-follow { min-width: 0; height: 32px; font: 700 12px/1 var(--font-mono); }
.cs-frow__more { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cs-frow__more:hover { background: var(--hover); }

/* Edit profile */
.cs-pe__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--header); border-bottom: 1.5px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.cs-pe__bar h1 { margin: 0; font: 700 17px/1 var(--font-display); }
.cs-pe__cancel { color: var(--ink); font-size: 15px; }
.cs-pe__save { min-height: 36px; padding: 0 16px; border: 1.5px solid var(--brown); border-radius: 10px; background: var(--yellow); color: var(--brown); font: 700 13px/1 var(--font-mono); box-shadow: 2px 2px 0 var(--brown); cursor: pointer; }
.cs-pe__save[disabled] { opacity: .6; }
.cs-pe__body { padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.cs-pe__cover { position: relative; height: 130px; border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--surface-2); display: flex; align-items: center; justify-content: center; }
.cs-pe__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-pe__coverbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-pe__rm { position: absolute; right: 10px; bottom: 10px; min-height: 28px; padding: 0 10px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--surface); color: var(--error); font: 700 11px/1 var(--font-mono); cursor: pointer; }
.cs-pe__rm[hidden] { display: none; }
.cs-pe__avrow { display: flex; align-items: flex-end; gap: 12px; margin-top: -54px; padding-left: 14px; position: relative; z-index: 1; }
.cs-pe__av { position: relative; cursor: pointer; }
.cs-pe__av .cs-av { width: 80px; height: 80px; font: 700 24px/1 var(--font-display); border: 2px solid var(--edge); }
.cs-pe__avcam { position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; }
.cs-pe__rm--photo { position: static; margin-bottom: 6px; }
.cs-pe__field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.cs-pe__label { display: flex; justify-content: space-between; font: 700 12px/1.2 var(--font-mono); color: var(--ink); }
.cs-pe__count { font-weight: 400; color: var(--ink-3); }
.cs-pe__count.is-near { color: var(--warning); }
.cs-pe input[type=text], .cs-pe textarea, .cs-pe select { width: 100%; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: 400 15px/1.4 var(--font-body); box-sizing: border-box; }
.cs-pe textarea { resize: vertical; min-height: 84px; }
.cs-pe input:focus-visible, .cs-pe textarea:focus-visible, .cs-pe select:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.cs-pe__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-pe__half { max-width: calc(50% - 5px); }
.cs-pe__vis legend { margin-bottom: 6px; }
.cs-pe__seg { display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); }
.cs-pe__seg label { flex: 1; min-height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 9px; color: var(--ink-2); font: 400 12px/1 var(--font-mono); cursor: pointer; text-align: center; }
.cs-pe__seg label.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-pe__seg input { position: absolute; opacity: 0; pointer-events: none; }
.cs-pe__seg label:focus-within { outline: 2px solid var(--link); }
.cs-pe__help { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.cs-pe__locked { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-pe__lrow { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1.5px solid var(--line); }
.cs-pe__lrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-pe__lrow b { font-size: 14px; font-weight: 600; }
.cs-pe__lrow a { font: 700 12px/1 var(--font-mono); color: var(--link); text-decoration: underline; white-space: nowrap; }
.cs-pe__pend { font: 700 11px/1 var(--font-mono); padding: 4px 8px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); }
.cs-pe__locked .cs-pe__help { padding: 10px 12px; }
@media (min-width: 1000px) {
	.cs-pe__body { padding: 20px 20px 48px; }
	.cs-pe__cover { height: 190px; }
}

/* ---------- Messages ---------- */
.cs-msgbtn { position: relative; }
.cs-msgbtn__dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); font: 700 10px/15px var(--font-mono); text-align: center; }
.cs-msgbtn__dot[hidden] { display: none; }
.cs-view-messages .cs-main { padding-bottom: 0; }
.cs-msgs { display: block; }
.cs-msgs.has-chat .cs-inbox { display: none; }
.cs-msgs:not(.has-chat) .cs-chat { display: none; }
.cs-inbox { padding-bottom: 96px; }
.cs-inbox__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.cs-inbox__head h1 { margin: 0; font: 700 20px/1 var(--font-display); }
.cs-inbox__new { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--edge); }
.cs-inbox__as { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.cs-inbox__as a { flex-shrink: 0; min-height: 30px; padding: 0 12px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 400 12px/1 var(--font-mono); }
.cs-inbox__as a.is-on { background: var(--ink); color: var(--app); font-weight: 700; }
.cs-inbox__pagebar { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--yellow); color: var(--brown); font: 700 12px/1.35 var(--font-mono); }
.cs-inbox__pageav { width: 26px; height: 26px; font-size: 9px; flex-shrink: 0; }
.cs-inbox__tabs { display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); }
.cs-inbox__tabs a { flex: 1; min-height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid transparent; border-radius: 9px; color: var(--ink-2); font: 400 12px/1 var(--font-mono); }
.cs-inbox__tabs a.is-on { border-color: var(--brown); background: var(--yellow); color: var(--brown); font-weight: 700; }
.cs-inbox__search { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 14px; min-height: 42px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink-3); }
.cs-inbox__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 14px/1 var(--font-body); }
.cs-inbox__search:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
.cs-inbox__note { margin: 0 16px 6px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.cs-inbox__list { border-top: 1.5px solid var(--line); }
.cs-inbox__empty { margin: 18px 16px; }
.cs-inbox__none { padding: 18px 16px; margin: 0; color: var(--ink-3); font-size: 14px; }
.cs-irow { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--ink); }
.cs-irow:hover { background: var(--hover); }
.cs-irow.is-open { background: var(--surface-2); }
.cs-irow__av { width: 46px; height: 46px; font-size: 13px; flex-shrink: 0; }
.cs-irow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-irow__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-irow__name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cs-mname { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-mbadge { flex-shrink: 0; }
.cs-irow__ago { font: 400 11px/1 var(--font-mono); color: var(--ink-3); flex-shrink: 0; }
.cs-irow__last { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.cs-irow__last > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-irow.is-unread .cs-irow__last > span:first-child { color: var(--ink); font-weight: 600; }
.cs-irow__dot { width: 8px; height: 8px; border-radius: 50%; background: #E0245E; flex-shrink: 0; }
.cs-irow__muted { font: 400 10px/1 var(--font-mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }

.cs-chat { display: flex; flex-direction: column; height: calc((100vh - 76px) / var(--ui-zoom)); height: calc((100dvh - 76px - env(safe-area-inset-bottom)) / var(--ui-zoom)); }
.cs-chat__none { margin: auto; color: var(--ink-3); font-size: 14px; }
.cs-chat__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1.5px solid var(--line); background: var(--header); flex-shrink: 0; }
.cs-chat__title { font: 700 17px/1 var(--font-display); }
.cs-chat__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.cs-chat__av { width: 38px; height: 38px; font-size: 11px; flex-shrink: 0; }
.cs-chat__who > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-chat__name { display: flex; align-items: center; gap: 5px; }
.cs-chat__handle { font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-chat__asbar { padding: 8px 16px; background: var(--yellow); color: var(--brown); font: 700 12px/1.3 var(--font-mono); border-bottom: 1.5px solid var(--edge); flex-shrink: 0; }
.cs-chat__req { margin: 10px 12px 0; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--warning-soft); flex-shrink: 0; }
.cs-chat__req p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.cs-chat__reqbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chat__reqbtns button { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-chat__reqbtns .is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); box-shadow: 2px 2px 0 var(--brown); }
.cs-chat__reqbtns .is-danger { color: var(--error); border-color: var(--error); }
.cs-chat__pending { padding: 8px 16px; font-size: 12px; color: var(--ink-3); border-bottom: 1.5px solid var(--line); flex-shrink: 0; }
.cs-chat__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.cs-chat__older { align-self: center; margin-bottom: 8px; min-height: 32px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 12px/1 var(--font-mono); cursor: pointer; }
.cs-chat__day { align-self: center; margin: 12px 0 8px; font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-chat__start { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 20px; }
.cs-chat__startav { width: 64px; height: 64px; font-size: 18px; margin-bottom: 6px; }
.cs-chat__start span { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.cs-chat__start p { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); max-width: 280px; line-height: 1.45; }
.cs-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; margin-bottom: 6px; position: relative; }
.cs-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.cs-msg.is-pending .cs-bub { opacity: .85; }
.cs-bub { position: relative; max-width: 100%; border: 1.5px solid var(--edge); border-radius: 16px 16px 16px 6px; background: var(--surface); color: var(--ink); padding: 9px 13px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.cs-msg.is-mine .cs-bub { background: var(--yellow); color: var(--brown); border-color: var(--brown); border-radius: 16px 16px 6px 16px; }
.cs-bub:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.cs-bub a { color: inherit; text-decoration: underline; }
.cs-bub.is-media { padding: 4px; }
.cs-bub.is-deleted { background: transparent; border-style: dashed; color: var(--ink-3); cursor: default; }
.cs-msg.is-mine .cs-bub.is-deleted { background: transparent; border-color: var(--edge); color: var(--ink-3); }
.cs-bub__deleted { font-style: italic; font-size: 14px; }
.cs-bub__quote { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-left: 3px solid currentColor; border-radius: 6px; background: rgba(56, 22, 0, .07); font-size: 12px; }
.cs-bub__quote span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; opacity: .85; }
.cs-bub__media { display: block; border-radius: 12px; overflow: hidden; background: var(--ph); max-width: 260px; }
.cs-bub__media img, .cs-bub__media video { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.cs-bub__media.is-blur img, .cs-bub__media.is-blur video { filter: blur(22px); }
.cs-bub__saver { width: 220px; height: 160px; border: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--surface-2); cursor: pointer; }
.cs-bub__saver span { padding: 7px 12px; border-radius: 999px; background: #381600; color: #FCF8EE; font: 700 12px/1 var(--font-mono); }
.cs-bub__prog { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(56, 22, 0, .45); }
.cs-bub__prog svg { width: 100%; height: 100%; }
.cs-bub__pdf { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cs-bub__pdfic { width: 36px; height: 42px; flex-shrink: 0; border: 1.5px solid var(--edge); border-radius: 6px; background: #FFE3EC; color: #381600; display: flex; align-items: center; justify-content: center; font: 700 9px/1 var(--font-mono); }
.cs-bub__pdfmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-bub__pdfmain b { font-size: 14px; overflow-wrap: anywhere; }
.cs-bub__pdfmain span { font: 400 11px/1 var(--font-mono); opacity: .75; }
.cs-bub__pdfdl { width: 34px; height: 34px; flex-shrink: 0; border: 1.5px solid var(--brown); border-radius: 8px; background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; text-decoration: none !important; }
.cs-bub__post { display: flex; flex-direction: column; gap: 4px; text-decoration: none !important; min-width: 220px; }
.cs-bub__postlab { font: 700 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cs-bub__post span:last-child { font-size: 13px; opacity: .9; }
.cs-bub__post.is-gone { font-style: italic; opacity: .7; }
.cs-bub.is-voice { padding: 8px 10px; }
.cs-voice { display: flex; align-items: center; gap: 8px; --p: 0%; }
.cs-voice__play { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cs-voice__wave { display: flex; align-items: center; gap: 2px; height: 22px; background: linear-gradient(90deg, currentColor var(--p), transparent var(--p)); -webkit-background-clip: text; }
.cs-voice__wave i { display: block; width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.cs-voice.is-playing .cs-voice__wave i { opacity: .8; }
.cs-voice__len { font: 400 11px/1 var(--font-mono); min-width: 30px; }
.cs-voice__rate { min-width: 28px; height: 20px; border: 1.2px solid currentColor; border-radius: 5px; background: transparent; color: inherit; font: 700 10px/1 var(--font-mono); cursor: pointer; }
.cs-msg__reacts { display: inline-flex; align-items: center; gap: 2px; margin-top: -8px; margin-left: 8px; padding: 1px 6px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); font-size: 13px; position: relative; z-index: 1; }
.cs-msg.is-mine .cs-msg__reacts { margin-left: 0; margin-right: 8px; }
.cs-msg__reacts b { font: 700 10px/1 var(--font-mono); margin-left: 2px; }
.cs-msg__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 400 10.5px/1 var(--font-mono); color: var(--ink-3); }
.cs-msg__meta span { display: inline-flex; align-items: center; gap: 2px; }
.cs-msg__read { color: var(--success); }
.cs-msg__failed { border: 1.5px solid var(--error); border-radius: 6px; background: var(--error-soft); color: var(--error); font: 700 10px/1 var(--font-mono); padding: 3px 6px; cursor: pointer; }
.cs-rbar { display: flex; align-items: center; gap: 2px; margin: 6px 0 4px; padding: 4px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); box-shadow: 3px 3px 0 var(--edge); }
.cs-rbar button { min-width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cs-rbar button:hover, .cs-rbar button.is-on { background: var(--surface-2); }
.cs-rbar .cs-rbar__reply { border-radius: 999px; padding: 0 12px; background: var(--yellow); color: var(--brown); border: 1.5px solid var(--brown); font: 700 12px/1 var(--font-mono); }
.cs-chat__err { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 9px 12px; border: 1.5px solid var(--error); border-radius: 10px; background: var(--error-soft); color: var(--error); font-size: 13px; line-height: 1.35; flex-shrink: 0; }
.cs-chat__err[hidden] { display: none; }
.cs-chat__err span { flex: 1; }
.cs-chat__err button { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px; }
.cs-chat__cant { padding: 16px; text-align: center; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-top: 1.5px solid var(--line); flex-shrink: 0; }
.cs-chat__replying { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1.5px solid var(--line); font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.cs-chat__replying[hidden] { display: none; }
.cs-chat__replying > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-chat__replying em { font-style: normal; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-chat__replying button { border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.cs-comp { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1.5px solid var(--line); background: var(--app); flex-shrink: 0; }
.cs-comp__plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cs-comp__box { flex: 1; min-width: 0; min-height: 42px; border: 1.5px solid var(--edge); border-radius: 21px; background: var(--surface); display: flex; align-items: center; padding: 0 14px; }
.cs-comp__box:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
.cs-comp__box textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 400 15px/1.35 var(--font-body); padding: 10px 0; max-height: 140px; }
.cs-comp__go { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--brown); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 2px 2px 0 var(--brown); flex-shrink: 0; }
.cs-comp__go.is-rec { background: #FF6B5E; color: #2A0A05; }
.cs-comp__rec { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--error); font: 700 12px/1.2 var(--font-mono); min-height: 40px; }
.cs-comp__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--error); animation: cs-blink 1s infinite; }
.cs-comp__rec span { flex: 1; }
.cs-comp__rec button { border: 0; background: none; color: var(--error); font: 700 12px/1 var(--font-mono); cursor: pointer; }
@keyframes cs-blink { 50% { opacity: .2; } }
.cs-pick { padding: 12px 0; overflow-y: auto; }
@media (min-width: 1000px) {
	.cs-view-messages .cs-side { display: none; }
	.cs-view-messages .cs-main { flex: 0 1 1000px; padding-bottom: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
	.cs-msgs { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh / var(--ui-zoom)); }
	.cs-msgs.has-chat .cs-inbox, .cs-msgs:not(.has-chat) .cs-chat { display: flex; }
	.cs-inbox { display: flex; flex-direction: column; border-right: 1.5px solid var(--line); overflow-y: auto; padding-bottom: 24px; }
	.cs-inbox__head { padding-top: 22px; }
	.cs-chat { height: calc(100vh / var(--ui-zoom)); }
	.cs-chat__back { display: none; }
	.cs-msg { max-width: 70%; }
}
/* Phones: a conversation takes the whole screen (no tab bar over the composer). */
@media (max-width: 999px) {
	body:has(.cs-msgs.has-chat) .cs-tabbar { display: none; }
	.cs-msgs.has-chat .cs-chat { height: calc(100vh / var(--ui-zoom)); height: calc(100dvh / var(--ui-zoom)); }
	.cs-msgs.has-chat .cs-comp { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Pages ---------- */
.cs-pages { padding-bottom: 24px; }
.cs-pages__head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.cs-pages__head h1 { flex: 1; margin: 0; font: 700 20px/1 var(--font-display); }
.cs-pages__acts { display: flex; gap: 6px; }
.cs-pages__btn { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); white-space: nowrap; }
.cs-pages__btn.is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); box-shadow: 2px 2px 0 var(--brown); }
.cs-pages__filters { display: flex; flex-direction: column; gap: 0; }
.cs-pages__school { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; font: 700 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-pages__school select { flex: 1; min-width: 0; min-height: 36px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 10px; font: 600 13px/1 var(--font-body); }
.cs-pages__cats { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.cs-pages__cats a { flex-shrink: 0; min-height: 32px; padding: 0 12px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-body); }
.cs-pages__cats a.is-on { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-pages__count { margin: 0; padding: 8px 16px; border-top: 1.5px solid var(--line); font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-pages__list { padding: 4px 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-pgcard { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.cs-pgcard__av { width: 44px; height: 44px; font-size: 13px; }
.cs-pgcard__main { flex: 1; min-width: 0; }
.cs-pgcard__name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--ink); font-size: 15px; }
.cs-pgcard__sub { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.cs-pgcard .cs-follow { min-width: 0; height: 34px; display: inline-flex; align-items: center; font: 700 12px/1 var(--font-mono); }
.cs-pgbanner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 12px 0; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--warning-soft); }
.cs-pgbanner p { flex: 1; min-width: 200px; margin: 0; font-size: 13px; line-height: 1.45; }
.cs-pgbanner > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cs-pgbanner button, .cs-pgbanner a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-pgbanner .is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); box-shadow: 2px 2px 0 var(--brown); }
.cs-pgbanner.is-tips { background: var(--chip-soft); flex-direction: column; align-items: flex-start; }
.cs-pgbanner.is-tips b { font: 700 14px/1 var(--font-mono); }
.cs-pgbanner.is-tips button { border: 0; background: none; font-size: 18px; padding: 0 6px; }
/* Create a page */
.cs-pnew { min-height: calc(100vh / var(--ui-zoom) - 96px); display: flex; flex-direction: column; }
.cs-pnew__bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.cs-pnew__titles { flex: 1; }
.cs-pnew__title { font: 700 17px/1.1 var(--font-display); }
.cs-pnew__step { font: 400 11px/1.4 var(--font-mono); color: var(--ink-3); }
.cs-pnew__cancel { color: var(--ink); font-size: 14px; }
.cs-pnew__prog { height: 8px; margin: 0 16px 8px; border: 1.5px solid var(--edge); border-radius: 999px; overflow: hidden; background: var(--surface); }
.cs-pnew__prog i { display: block; height: 100%; background: var(--yellow); transition: width .2s; }
.cs-pnew__form { display: flex; flex-direction: column; flex: 1; }
.cs-pnew__sec { padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; border-top: 1.5px solid var(--line); }
.cs-pnew__sec[hidden] { display: none; }
.cs-pnew__sec h2 { margin: 0; font: 700 16px/1.2 var(--font-display); }
.cs-pnew input[type=text], .cs-pnew textarea, .cs-pman input[type=text], .cs-pman textarea, .cs-pman select { width: 100%; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: 400 15px/1.4 var(--font-body); box-sizing: border-box; }
.cs-pnew__handle { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); padding: 0 12px; }
.cs-pnew__handle span { font: 700 14px/1 var(--font-mono); color: var(--ink-3); }
.cs-pnew__handle input[type=text] { border: 0; padding-left: 0; font-family: var(--font-mono); }
.cs-pnew__handle:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
.cs-pe__help.is-ok { color: var(--success); }
.cs-pe__help.is-err { color: var(--error); }
.cs-pnew__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-pnew__cats label { position: relative; min-height: 36px; padding: 0 12px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); font: 600 13px/1 var(--font-body); cursor: pointer; }
.cs-pnew__cats label.is-on { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-pnew__cats input { position: absolute; opacity: 0; pointer-events: none; }
.cs-pnew__cats label:focus-within { outline: 2px solid var(--link); }
.cs-pnew__review { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
.cs-pnew__rav { width: 52px; height: 52px; font-size: 15px; flex-shrink: 0; }
.cs-pnew__review > div { display: flex; flex-direction: column; gap: 3px; }
.cs-pnew__review span { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-pnew__facts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.cs-pnew__foot { padding: 12px 16px 24px; }
.cs-pnew__primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 1.5px solid var(--brown); border-radius: 12px; background: var(--yellow); color: var(--brown); font: 700 14px/1 var(--font-mono); box-shadow: var(--pop); cursor: pointer; }
.cs-pnew__primary[disabled] { opacity: .5; box-shadow: none; cursor: default; }
.cs-pnew__ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 14px/1 var(--font-mono); }
.cs-pnew__lock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 24px 60px; text-align: center; max-width: 380px; margin: 0 auto; }
.cs-pnew__lockbadge { width: 96px; height: 96px; border: 2px solid var(--brown); border-radius: 24px; background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; font: 700 40px/1 var(--font-display); box-shadow: 6px 6px 0 var(--brown); transform: rotate(-6deg); margin-bottom: 10px; }
.cs-pnew__lock h1 { margin: 0; font: 700 20px/1.3 var(--font-display); }
.cs-pnew__lock p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cs-pnew__pending { padding: 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--warning-soft); font-size: 13px; line-height: 1.45; }
/* Manage page */
.cs-pman__tabs { margin-top: 10px; }
.cs-pman__body { padding: 4px 12px 32px; display: flex; flex-direction: column; gap: 12px; }
.cs-pman__banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--warning-soft); }
.cs-pman__banner p { flex: 1; min-width: 200px; margin: 0; font-size: 13px; line-height: 1.45; }
.cs-pman__banner button { min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-pman__team { border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cs-pman__row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 12px; padding: 12px; border-bottom: 1.5px solid var(--line); }
.cs-pman__row:last-child { border-bottom: 0; }
.cs-pman__row .cs-av { width: 40px; height: 40px; font-size: 12px; }
.cs-pman__row.is-invited { opacity: .8; }
.cs-pman__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-pman__who b { font-size: 15px; }
.cs-pman__who span { font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-pman__chip { justify-self: end; padding: 3px 8px; border: 1.5px solid var(--edge); border-radius: 999px; font: 700 10px/1 var(--font-mono); background: var(--surface-2); }
.cs-pman__chip.is-owner { background: var(--yellow); color: var(--brown); }
.cs-pman__chip.is-admin { background: #DCCBFA; color: #381600; }
.cs-pman__ctl { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cs-pman__ctl select { width: auto; min-height: 32px; padding: 0 8px; font: 600 12px/1 var(--font-body); }
.cs-pman__rm { min-height: 32px; padding: 0 10px; border: 1.5px solid var(--error); border-radius: 8px; background: var(--surface); color: var(--error); font: 700 11px/1 var(--font-mono); cursor: pointer; }
.cs-pman__link { border: 0; background: none; color: var(--link); text-decoration: underline; font: 700 11px/1 var(--font-mono); cursor: pointer; }
.cs-pman__invite { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.cs-pman__invrow { display: flex; gap: 6px; }
.cs-pman__invrow input { flex: 1; min-width: 0; }
.cs-pman__invrow select { width: auto; }
.cs-pman__invrow button { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--brown); border-radius: 10px; background: var(--yellow); color: var(--brown); font: 700 13px/1 var(--font-mono); cursor: pointer; box-shadow: 2px 2px 0 var(--brown); }
.cs-pman__leave, .cs-pman__delete { align-self: flex-start; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--error); border-radius: 10px; background: var(--surface); color: var(--error); font: 700 13px/1 var(--font-mono); cursor: pointer; }
.cs-pman__card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); }
.cs-pman__badgehead { flex-direction: row; align-items: center; }
.cs-pman__badgehead > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cs-pman__badgehead span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.cs-pman__shield { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.cs-pman__bchip { flex-shrink: 0; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); font: 700 10px/1 var(--font-mono) !important; color: var(--ink-2) !important; }
.cs-pman__bchip.is-pending { background: var(--warning-soft); color: var(--warning) !important; }
.cs-pman__bchip.is-no { background: var(--error-soft); color: var(--error) !important; }
.cs-pman__bchip.is-ok { background: var(--success-soft); color: var(--success) !important; }
.cs-pman__note { padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface-2); font-size: 13px; line-height: 1.45; }
.cs-pman__note.is-pending { background: var(--warning-soft); }
.cs-pman__note.is-ok { background: var(--success-soft); }
.cs-pman__note.is-no { background: var(--error-soft); }
.cs-pman__note b { display: block; font: 700 14px/1.3 var(--font-mono); margin-bottom: 4px; }
.cs-pman__note p { margin: 0 0 6px; }
.cs-pman__note span { font: 700 11px/1.3 var(--font-mono); }
.cs-pman__attach { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px dashed var(--edge); border-radius: 10px; font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-pman__attach:focus-within { outline: 2px solid var(--link); }

/* ---------- Library ---------- */
.cs-lib { padding-bottom: 32px; }
.cs-lib__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.cs-lib__search { flex: 1; margin: 0; }
.cs-lib__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 16px 10px; font: 700 11px/1.4 var(--font-mono); color: var(--ink-3); }
.cs-lib__crumbs a { color: var(--link); text-decoration: underline; }
.cs-lib__crumbs [aria-current] { color: var(--ink); }
.cs-lib__head { padding: 4px 16px 12px; }
.cs-lib__head h1 { margin: 0 0 4px; font: 700 20px/1.3 var(--font-display); }
.cs-lib__head p { margin: 0; font-size: 13px; color: var(--ink-3); }
.cs-lib__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 16px 12px; }
.cs-lib__sort > span { font: 700 11px/1 var(--font-mono); color: var(--ink-3); margin-right: 2px; }
.cs-lib__sort a { min-height: 30px; padding: 0 11px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 12px/1 var(--font-body); }
.cs-lib__sort a.is-on { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-lib__list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-lrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); }
.cs-lrow > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cs-lrow b { font-size: 15px; }
.cs-lrow small { font-size: 12px; color: var(--ink-3); }
.cs-lrow.is-mine { box-shadow: 4px 4px 0 var(--edge); }
.cs-lrow.is-other { border-style: dashed; background: transparent; }
.cs-ldoc { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); }
.cs-ldoc__ic { width: 38px; height: 46px; flex-shrink: 0; border: 1.5px solid var(--edge); border-radius: 6px; background: #FFE3EC; color: #381600; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 9px/1.2 var(--font-mono); }
.cs-ldoc__ic small { font-weight: 400; font-size: 8px; }
.cs-ldoc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-ldoc__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-ldoc__tag, .cs-ldoc__code { padding: 1px 6px; border: 1.2px solid var(--edge); border-radius: 5px; font: 700 9px/1.5 var(--font-mono); }
.cs-ldoc__code { background: var(--yellow); color: var(--brown); }
.cs-ldoc b { font-size: 14px; }
.cs-ldoc__meta { font: 400 11px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-ldocp__pages { display: flex; gap: 10px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.cs-ldocp__page { position: relative; flex-shrink: 0; width: 128px; height: 168px; border: 1.5px solid var(--edge); border-radius: 6px; background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.cs-ldocp__page i { height: 5px; border-radius: 3px; background: #EFE6D3; }
.cs-ldocp__page i.is-short { width: 60%; }
.cs-ldocp__page small { position: absolute; right: 8px; bottom: 6px; font: 400 8px/1 var(--font-mono); color: #8a7a6a; }
.cs-ldocp__facts { margin: 0 12px 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-ldocp__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1.5px solid var(--line); font-size: 13px; }
.cs-ldocp__facts div:last-child { border-bottom: 0; }
.cs-ldocp__facts dt { color: var(--ink-3); }
.cs-ldocp__facts dd { margin: 0; font-weight: 600; text-align: right; }
.cs-ldocp__facts a { color: var(--ink); }
.cs-ldocp__acts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; padding: 0 12px 12px; }
.cs-ldocp__post { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); }
.cs-ldocp__post > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cs-ldocp__post small { font-size: 12px; color: var(--ink-3); }
.cs-ldocp__flag { margin: 0 16px; border: 0; background: none; padding: 4px 0; color: var(--error); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-lflag__opts { display: flex; flex-direction: column; gap: 8px; }
.cs-lflag__opts button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 14px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.cs-lflag__opts span { width: 18px; height: 18px; border: 1.5px solid var(--edge); border-radius: 50%; flex-shrink: 0; }
.cs-lflag__opts .is-on span { background: var(--yellow); box-shadow: inset 0 0 0 3px var(--surface); }
.cs-sheet__btns .is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); }

/* ---------- Marketplace ---------- */
.cs-mk { padding-bottom: 24px; }
.cs-mk__icon { width: 36px; height: 36px; }
.cs-pages__btn.is-off { opacity: .6; cursor: default; }
.cs-mk__banned { text-decoration: none; color: var(--ink); background: var(--error-soft); }
.cs-mk__filters { display: block; }
.cs-mk__kinds { overflow-x: auto; scrollbar-width: none; }
.cs-mk__kinds a { flex: 1 0 auto; padding: 0 10px; }
.cs-mk__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 8px; }
.cs-mk__scope { display: flex; gap: 4px; padding: 3px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); }
.cs-mk__scope a { min-height: 28px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; color: var(--ink-2); font: 600 12px/1 var(--font-body); }
.cs-mk__scope a.is-on { background: var(--yellow); color: var(--brown); }
.cs-mk__sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; zoom: var(--ui-zoom); background: var(--app); border-top: 2px solid var(--edge); border-radius: 24px 24px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -12px 40px rgba(56,22,0,.2); }
.cs-mk__sheet[hidden] { display: none; }
.cs-mk__sheethead { display: flex; align-items: center; justify-content: space-between; font: 700 18px/1 var(--font-display); }
.cs-mk__sheethead button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.cs-mk__range { display: flex; align-items: center; gap: 8px; }
.cs-mk__range input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 12px; font: 400 15px/1 var(--font-body); }
.cs-mk__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-mk__chips label { position: relative; min-height: 34px; padding: 0 12px; display: flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); font: 600 13px/1 var(--font-body); cursor: pointer; }
.cs-mk__chips input { position: absolute; opacity: 0; pointer-events: none; }
.cs-mk__chips label:has(input:checked), .cs-mk__chips label.is-on { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-mk__chips label:focus-within { outline: 2px solid var(--link); }
.cs-mk__sheetbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 6px; }
.cs-mkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 12px 12px; }
.cs-mkgrid--flush { padding: 4px 0 12px; }
.cs-mkcard { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-mkcard__ph { position: relative; display: block; aspect-ratio: 1 / 1; background: repeating-linear-gradient(135deg, var(--stripe) 0 12px, transparent 12px 24px), var(--surface-2); border-bottom: 1.5px solid var(--edge); }
.cs-mkcard__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-mkcard__flag { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border: 1.5px solid var(--brown); border-radius: 6px; background: var(--yellow); color: var(--brown); font: 700 9px/1 var(--font-mono); text-transform: uppercase; }
.cs-mkcard__flag.is-off { background: var(--surface-2); color: var(--ink); border-color: var(--edge); }
.cs-mkcard__save { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cs-mkcard__save.is-on, .cs-ls .cs-circle-btn.is-on { background: var(--yellow); color: var(--brown); }
.cs-mkcard__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; color: var(--ink); }
.cs-mkcard__body b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-mkcard__price { font: 700 15px/1.2 var(--font-mono); color: var(--success); }
.cs-mkcard__who { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.cs-mymk { padding: 4px 12px; display: flex; flex-direction: column; gap: 10px; }
.cs-mymk__row { padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.cs-mymk__top, .cs-mf__review, .cs-rate__item { display: flex; gap: 12px; color: var(--ink); }
.cs-mymk__ph { width: 64px; height: 64px; flex-shrink: 0; border: 1.5px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cs-mymk__ph img { width: 100%; height: 100%; object-fit: cover; }
.cs-mymk__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-mymk__main small { font-size: 12px; color: var(--ink-3); }
.cs-mymk__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--warning); }
.cs-mymk__st { padding: 1px 6px; border: 1.2px solid currentColor; border-radius: 5px; font: 700 9px/1.5 var(--font-mono); }
.cs-mymk__st.is-active { color: var(--success); }
.cs-mymk__st.is-sold { color: var(--ink-2); }
.cs-mymk__st.is-expired { color: var(--error); }
.cs-mymk__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-mymk__acts > * { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-mymk__acts .is-primary { background: var(--yellow); color: var(--brown); border-color: var(--brown); }
.cs-mymk__acts .is-danger { color: var(--error); border-color: var(--error); }
.cs-mksold__opts { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 14px; overflow: hidden; }
.cs-mksold__opts button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.cs-mksold__opts button:last-child { border-bottom: 0; }
.cs-mksold__opts .cs-av { width: 36px; height: 36px; font-size: 11px; flex-shrink: 0; }
.cs-mksold__opts span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cs-mksold__opts small { font-size: 11px; color: var(--ink-3); }
.cs-mksold__opts i { width: 18px; height: 18px; border: 1.5px solid var(--edge); border-radius: 50%; }
.cs-mksold__opts .is-on i { background: var(--yellow); box-shadow: inset 0 0 0 3px var(--surface); }
.cs-mksold__else { background: transparent !important; border: 1.5px dashed var(--edge); }
/* Listing page */
.cs-ls { padding-bottom: 32px; }
.cs-mk__gone { margin: 10px 12px; padding: 12px 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface-2); box-shadow: 4px 4px 0 var(--edge); }
.cs-mk__gone.is-sold { background: var(--yellow); color: var(--brown); }
.cs-mk__gone b { font: 700 14px/1.3 var(--font-mono); }
.cs-mk__gone p { margin: 4px 0 10px; font-size: 13px; }
.cs-mk__gone a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); }
.cs-ls__photos { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 10px 12px 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface-2); aspect-ratio: 4 / 3; }
.cs-ls__photo { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }
.cs-ls__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-ls__count { position: sticky; right: 10px; top: 10px; align-self: flex-start; margin-left: -60px; padding: 3px 8px; border-radius: 999px; background: #381600; color: #FCF8EE; font: 700 11px/1 var(--font-mono); white-space: nowrap; height: fit-content; margin-top: 10px; }
.cs-ls__photos.is-off, .cs-ls__body.is-off { opacity: .55; }
.cs-ls__body { padding: 0 16px; }
.cs-ls__tags { display: flex; gap: 6px; }
.cs-ls__tags span { padding: 2px 8px; border: 1.2px solid var(--edge); border-radius: 999px; font: 700 10px/1.4 var(--font-mono); background: var(--surface); }
.cs-ls__tags .cs-ls__kind { background: var(--chip-soft); }
.cs-ls__body h1 { margin: 8px 0 4px; font: 700 20px/1.3 var(--font-display); }
.cs-ls__price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 20px/1.2 var(--font-mono); color: var(--success); }
.cs-ls__price span { padding: 2px 8px; border: 1.2px dashed var(--edge); border-radius: 999px; font: 700 10px/1.4 var(--font-mono); color: var(--ink); }
.cs-ls__body .cs-ldocp__facts { margin: 0 0 12px; }
.cs-ls__about { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.cs-ls__posted { margin: 0 0 12px; font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.cs-ls__seller { display: flex; align-items: center; gap: 12px; margin: 0 12px 12px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--ink); }
.cs-ls__seller .cs-av { width: 44px; height: 44px; font-size: 13px; }
.cs-ls__seller > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cs-ls__seller b { display: flex; align-items: center; gap: 4px; }
.cs-ls__seller small { font-size: 12px; color: var(--ink-3); }
.cs-stars span { color: var(--line); }
.cs-stars span.is-on { color: #E8A200; }
.cs-ls__acts { padding: 0 12px 10px; }
.cs-ls__safety { margin: 0 16px 8px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.cs-zoom { position: fixed; inset: 0; z-index: 72; background: #17120D; color: #FCF8EE; display: flex; flex-direction: column; }
.cs-zoom__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font: 700 13px/1 var(--font-mono); }
.cs-zoom__bar button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #FCF8EE; background: none; color: #FCF8EE; font-size: 20px; cursor: pointer; }
.cs-zoom img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.cs-zoom__nav { display: flex; justify-content: space-between; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.cs-zoom__nav button { min-height: 40px; padding: 0 16px; border: 1.5px solid #FCF8EE; border-radius: 999px; background: none; color: #FCF8EE; font: 700 13px/1 var(--font-mono); cursor: pointer; }
.cs-zoom__nav button:disabled { opacity: .35; }
.cs-shopstats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-shopstats > div { padding: 12px; display: flex; flex-direction: column; gap: 3px; border-right: 1.5px solid var(--line); }
.cs-shopstats > div:last-child { border-right: 0; }
.cs-shopstats b { font: 700 22px/1 var(--font-mono); }
.cs-shopstats small { font-size: 11px; color: var(--ink-3); }
.cs-rate { margin: 12px; padding: 14px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.cs-rate__item > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.cs-rate__item small { font-size: 12px; color: var(--ink-3); }
.cs-rate__stars { display: flex; gap: 6px; }
.cs-rate__stars label { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--edge); border-radius: 10px; font-size: 22px; color: var(--line); cursor: pointer; }
.cs-rate__stars label.is-on { color: #E8A200; background: var(--warning-soft); }
.cs-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.cs-rate__stars label:focus-within { outline: 2px solid var(--link); }
.cs-rate__note { min-height: 44px; border: 1.5px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 12px; font: 400 15px/1 var(--font-body); }
/* New listing */
.cs-mf__lock { transform: rotate(-4deg); }
.cs-mf__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-mf__kinds label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); cursor: pointer; }
.cs-mf__kinds label.is-on { box-shadow: 4px 4px 0 var(--edge); background: var(--warning-soft); }
.cs-mf__kinds label.is-locked { opacity: .6; cursor: default; }
.cs-mf__kinds input { position: absolute; opacity: 0; pointer-events: none; }
.cs-mf__kinds label:focus-within { outline: 2px solid var(--link); }
.cs-mf__kinds i { width: 30px; height: 30px; border: 1.5px solid var(--edge); border-radius: 8px; }
.cs-mf__kinds b { font: 700 14px/1 var(--font-mono); }
.cs-mf__kinds small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.cs-mf__rules { padding: 14px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--error-soft); font-size: 13px; }
.cs-mf__rules b { display: block; text-align: center; font: 700 13px/1.3 var(--font-mono); margin-bottom: 8px; }
.cs-mf__rules ul { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.cs-mf__rules p { margin: 0; font-size: 12px; color: var(--ink-2); }
.cs-mf__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cs-mf__photos:empty { display: none; }
.cs-mf__ph { position: relative; aspect-ratio: 1; border: 1.5px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cs-mf__ph img { width: 100%; height: 100%; object-fit: cover; }
.cs-mf__ph em { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: #381600; color: #FCF8EE; font: 700 9px/1.3 var(--font-mono); font-style: normal; }
.cs-mf__ph b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(56,22,0,.45); color: #fff; font: 700 13px/1 var(--font-mono); }
.cs-mf__ph button { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); cursor: pointer; }
.cs-mf__price { align-items: end; }
.cs-mf__check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cs-mf__review { padding: 12px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); }
@media (min-width: 700px) { .cs-mkgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cs-mk__sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 440px; border: 1.5px solid var(--edge); border-radius: 20px; } }

/* ---------- Phone side drawer ---------- */
.cs-drawer[hidden] { display: none; }
.cs-drawer { position: fixed; inset: 0; z-index: 80; zoom: var(--ui-zoom); }
.cs-drawer__scrim { position: absolute; inset: 0; background: rgba(56, 22, 0, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.cs-drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--app); border-right: 2px solid var(--edge); border-radius: 0 24px 24px 0; padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateX(-104%); transition: transform .22s cubic-bezier(.3,.7,.4,1); display: flex; flex-direction: column; gap: 6px; }
.cs-drawer.is-open .cs-drawer__scrim { opacity: 1; }
.cs-drawer.is-open .cs-drawer__panel { transform: none; }
.cs-drawer__top { display: flex; align-items: flex-start; gap: 8px; }
.cs-drawer__top > a:first-child { flex: 1; }
.cs-drawer__av { width: 52px; height: 52px; font-size: 16px; border: 1.5px solid var(--edge); }
.cs-drawer__pages { display: flex; gap: 6px; }
.cs-drawer__pages .cs-av { width: 32px; height: 32px; font-size: 9px; }
.cs-drawer__top .cs-circle-btn { width: 36px; height: 36px; }
.cs-drawer__name { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--ink); font: 700 18px/1.2 var(--font-display); }
.cs-drawer__handle { font: 400 12px/1.3 var(--font-mono); color: var(--ink-3); }
.cs-drawer__stats { display: flex; gap: 14px; margin: 6px 0 4px; font-size: 14px; }
.cs-drawer__stats a { color: var(--ink-3); }
.cs-drawer__stats b { color: var(--ink); }
.cs-drawer__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--yellow); color: var(--brown); font: 700 11px/1 var(--font-mono); }
.cs-drawer__chip i { width: 7px; height: 7px; border-radius: 50%; background: #E8A200; }
.cs-drawer__chip.is-cta i { background: #00C2A8; }
.cs-drawer__label { margin: 12px 0 2px; font: 700 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cs-drawer__switch { display: flex; flex-direction: column; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--surface); overflow: hidden; }
.cs-drawer__switch a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1.5px solid var(--line); color: var(--ink); }
.cs-drawer__switch a:last-child { border-bottom: 0; }
.cs-drawer__switch a.is-on { background: var(--chip-soft); }
.cs-drawer__switch .cs-av { width: 34px; height: 34px; font-size: 10px; flex-shrink: 0; }
.cs-drawer__switch a > span:not(.cs-av):not(.cs-drawer__add) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-drawer__panel > * { flex-shrink: 0; }
.cs-drawer__switch b { font-size: 14px; }
.cs-drawer__switch small { font: 400 11px/1.2 var(--font-mono); color: var(--ink-3); }
.cs-drawer__switch em { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--yellow); color: var(--brown); display: flex; align-items: center; justify-content: center; flex: none; }
.cs-drawer__add { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--edge); display: flex; align-items: center; justify-content: center; }
.cs-drawer__links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.cs-drawer__links a { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 12px; color: var(--ink); font: 400 15px/1 var(--font-mono); }
.cs-drawer__links a.is-on { background: var(--chip-soft); border-color: var(--edge); font-weight: 700; }
.cs-drawer__links span { flex: 1; }
.cs-drawer__links b { min-width: 22px; height: 22px; padding: 0 6px; border: 1.5px solid var(--edge); border-radius: 11px; background: var(--yellow); color: var(--brown); font: 700 11px/19px var(--font-mono); text-align: center; }
.cs-drawer__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.cs-drawer__foot .cs-circle-btn { width: 42px; height: 42px; }
.cs-drawer__theme { flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 12px/1 var(--font-mono); cursor: pointer; }
.cs-drawer__out { min-height: 42px; padding: 0 14px; display: flex; align-items: center; border: 1.5px solid var(--error); border-radius: 12px; color: var(--error); font: 700 12px/1 var(--font-mono); }
@media (min-width: 1000px) { .cs-drawer { display: none !important; } }
