@charset "UTF-8";

/*
 * Campus Community UI
 * Mobile-first, dependency-free visual system for the public-facing pages.
 */

:root {
  color-scheme: light;
  --color-page: #f5f7f4;
  --color-surface: #ffffff;
  --color-surface-soft: #f8faf7;
  --color-surface-raised: #ffffff;
  --color-text: #202421;
  --color-text-soft: #667069;
  --color-text-faint: #98a19b;
  --color-line: #e8ece8;
  --color-line-strong: #dce2dd;
  --color-lemon: #fff135;
  --color-lemon-soft: #fff9bb;
  --color-lemon-deep: #d5bd00;
  --color-mint: #24dfaa;
  --color-mint-soft: #ddfbf1;
  --color-mint-deep: #008d68;
  --color-coral: #ff6b62;
  --color-coral-soft: #fff0ee;
  --color-blue: #5b7cff;
  --color-violet: #8357e8;
  --color-danger: #dc3b46;
  --color-danger-soft: #fff0f1;
  --color-success: #13855f;
  --shadow-xs: 0 1px 2px rgb(25 36 29 / 5%);
  --shadow-sm: 0 8px 24px rgb(31 47 37 / 7%);
  --shadow-md: 0 18px 48px rgb(31 47 37 / 11%);
  --shadow-pop: 0 16px 50px rgb(18 36 24 / 18%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --content-width: 1180px;
  --header-height: 64px;
  --bottom-nav-height: 68px;
  --transition: 180ms ease;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
}

/* v1.4 — post templates, anonymous publishing, polls and direct messages */
.anonymous-avatar{display:grid;place-items:center;color:#516078;background:linear-gradient(145deg,#eef2f7,#dfe6ef);border:1px solid #d9e0e9}.anonymous-avatar .ui-icon{width:20px;height:20px}.anonymous-badge{display:inline-flex;align-items:center;gap:4px;margin-left:7px;padding:3px 7px;border-radius:999px;color:#596579;background:#eef2f7;font-size:10px;font-weight:800}.anonymous-badge .ui-icon{width:12px;height:12px}.comment-item.is-anonymous-owner>.avatar{color:#536175;background:#eef2f7}.label-type{display:inline-flex;align-items:center;gap:4px}.label-type .ui-icon{width:12px;height:12px}.label-poll{color:#5b43cf;background:#eeeaff}.label-secondhand{color:#ae541b;background:#fff0df}

.publish-type-fieldset{min-width:0;margin:0;padding:0;border:0}.publish-type-fieldset legend{margin-bottom:11px;font-weight:800}.publish-type-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.publish-type-card{position:relative;display:grid;min-height:124px;align-content:start;gap:5px;padding:16px;border:1px solid var(--color-line);border-radius:18px;background:var(--color-surface-soft);cursor:pointer;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease,background .2s ease}.publish-type-card:hover{transform:translateY(-2px);border-color:var(--color-line-strong);box-shadow:var(--shadow-xs)}.publish-type-card.is-active{border-color:#f1d800;background:linear-gradient(145deg,#fffbe1,#fff);box-shadow:0 0 0 3px rgba(255,233,31,.18)}.publish-type-card input{position:absolute;top:13px;right:13px;width:17px;height:17px;accent-color:#121514}.publish-type-card>span{display:grid;width:38px;height:38px;place-items:center;margin-bottom:5px;border-radius:12px;color:#17211b;background:#fff}.publish-type-card:nth-child(2)>span{color:#6247d9;background:#eeeaff}.publish-type-card:nth-child(3)>span{color:#ae541b;background:#fff0df}.publish-type-card .ui-icon{width:19px;height:19px}.publish-type-card strong{font-size:14px}.publish-type-card small{color:var(--color-text-faint);font-size:11px;line-height:1.55}

.publish-template{display:grid;gap:15px;padding:18px;border:1px solid var(--color-line);border-radius:20px;background:var(--color-surface-soft)}.poll-publish-template{background:linear-gradient(145deg,#f8f6ff,#fff)}.secondhand-publish-template{background:linear-gradient(145deg,#fff8ef,#fff)}.publish-template-heading{display:flex;align-items:center;gap:12px}.publish-template-heading>span{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;color:#5b43cf;background:#eeeaff}.secondhand-publish-template .publish-template-heading>span{color:#ae541b;background:#ffe9cf}.publish-template-heading .ui-icon{width:21px;height:21px}.publish-template-heading h2,.publish-template-heading p{margin:0}.publish-template-heading h2{font-size:16px}.publish-template-heading p{margin-top:3px;color:var(--color-text-faint);font-size:11px}.poll-option-editor{display:grid;gap:9px}.poll-option-editor label{display:grid;grid-template-columns:32px minmax(0,1fr) 34px;gap:8px;align-items:center}.poll-option-editor label>span{display:grid;width:30px;height:30px;place-items:center;border-radius:10px;color:#5b43cf;background:#eeeaff;font-size:11px;font-weight:900}.poll-option-editor [data-poll-remove]{display:grid;width:32px;height:32px;place-items:center;border:0;border-radius:9px;color:var(--color-text-faint);background:transparent;cursor:pointer}.poll-option-editor [data-poll-remove]:hover{color:var(--color-danger);background:var(--color-danger-soft)}.poll-option-editor [data-poll-remove]:disabled{visibility:hidden}.poll-option-editor [data-poll-remove] .ui-icon{width:15px;height:15px}.poll-add-option{display:flex;min-height:40px;align-items:center;justify-content:center;gap:7px;border:1px dashed #b9b0e8;border-radius:12px;color:#5b43cf;background:#fff;cursor:pointer;font:inherit;font-size:12px;font-weight:800}.poll-add-option small{margin-left:auto;margin-right:12px;color:var(--color-text-faint);font-size:10px}.poll-add-option .ui-icon{width:15px;height:15px}.poll-end-field{margin:0}.secondhand-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.money-input{position:relative}.money-input>span{position:absolute;z-index:1;left:14px;top:50%;transform:translateY(-50%);font-weight:900}.money-input input{padding-left:31px}.secondhand-negotiable{margin:0}.anonymous-publish-option{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:11px;align-items:center;padding:14px 16px;border:1px solid #dfe4eb;border-radius:16px;background:#f8fafc;cursor:pointer}.anonymous-publish-option>input{width:18px;height:18px;accent-color:var(--color-mint-deep)}.anonymous-publish-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;color:#4c5b70;background:#e9eef5}.anonymous-publish-icon .ui-icon{width:19px;height:19px}.anonymous-publish-option strong,.anonymous-publish-option small{display:block}.anonymous-publish-option small{margin-top:3px;color:var(--color-text-faint);line-height:1.55}.anonymous-publish-option.is-disabled{opacity:.65;cursor:not-allowed}

.post-poll,.post-secondhand{display:grid;gap:13px;margin-top:15px;padding:15px;border:1px solid var(--color-line);border-radius:18px}.post-poll{background:linear-gradient(145deg,#f8f6ff,#fff)}.post-secondhand{background:linear-gradient(145deg,#fff8ed,#fff)}.post-type-heading{display:flex;align-items:center;gap:10px}.post-type-heading>.post-type-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;color:#5b43cf;background:#ebe7ff}.post-secondhand .post-type-heading>.post-type-icon{color:#a9511a;background:#ffe8cd}.post-type-heading .ui-icon{width:18px;height:18px}.post-type-heading>div{min-width:0;flex:1}.post-type-heading strong,.post-type-heading small{display:block}.post-type-heading strong{font-size:13px}.post-type-heading small{margin-top:2px;color:var(--color-text-faint);font-size:10px}.post-type-status{padding:5px 8px;border-radius:999px;color:#5b43cf;background:#ebe7ff;font-size:10px;font-weight:850}.post-secondhand .post-type-status{color:#a9511a;background:#ffe8cd}.post-secondhand.status-sold .post-type-status{color:#6e7783;background:#edf0f3}.poll-vote-form,.poll-options{display:grid;gap:8px}.poll-option{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;overflow:hidden;padding:10px 12px;border:1px solid #ddd8f3;border-radius:13px;background:rgba(255,255,255,.86);cursor:pointer}.poll-option:hover{border-color:#aa9bea}.poll-option.is-selected{border-color:#7159d9;box-shadow:0 0 0 2px rgba(113,89,217,.1)}.poll-option>input{position:relative;z-index:2;width:17px;height:17px;accent-color:#6247d9}.poll-option-copy{position:relative;z-index:2;display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.poll-option-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.poll-option-copy small{flex:none;color:#676079;font-size:10px}.poll-progress{position:absolute;z-index:1;inset:auto 0 0;height:3px;background:#eeeafc}.poll-progress i{display:block;width:var(--poll-percent,0);height:100%;border-radius:99px;background:linear-gradient(90deg,#7a60e6,#b39fff);transition:width .35s ease}.poll-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--color-text-faint);font-size:10px}.poll-footer b{color:var(--color-text)}.secondhand-summary{display:grid;gap:12px}.secondhand-price{display:flex;align-items:baseline;gap:9px}.secondhand-price strong{color:#d65a17;font-size:28px;letter-spacing:-.04em}.secondhand-price del{color:var(--color-text-faint);font-size:11px}.secondhand-price>span{padding:3px 7px;border-radius:999px;color:#a9511a;background:#ffe8cd;font-size:9px;font-weight:850}.secondhand-summary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.secondhand-summary dl>div{padding:9px 10px;border:1px solid #f0dfca;border-radius:12px;background:rgba(255,255,255,.8)}.secondhand-summary dt{display:flex;align-items:center;gap:4px;color:#8a7565;font-size:9px}.secondhand-summary dt .ui-icon{width:12px;height:12px}.secondhand-summary dd{margin:4px 0 0;overflow:hidden;color:#35271d;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.secondhand-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.secondhand-actions>small{color:var(--color-text-faint);font-size:10px}.secondhand-status-actions{display:flex;flex-wrap:wrap;gap:6px}.secondhand-media-placeholder .visual-placeholder{min-height:180px}

.profile-message-button.is-locked{color:var(--color-text-faint);border-color:var(--color-line);background:var(--color-surface-soft);cursor:not-allowed}.profile-message-button .ui-icon{width:16px;height:16px}

.direct-messages-page{margin-top:24px}.direct-messages-layout{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:650px;overflow:hidden;border:1px solid var(--color-line);border-radius:24px;background:var(--color-surface);box-shadow:var(--shadow-sm)}.direct-inbox,.direct-chat{min-width:0;border:0;border-radius:0;box-shadow:none}.direct-inbox{border-right:1px solid var(--color-line);background:var(--color-surface-soft)}.direct-inbox-heading{display:flex;min-height:78px;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--color-line)}.direct-inbox-heading h2{margin:2px 0 0;font-size:17px}.direct-total-unread{display:grid;min-width:25px;height:25px;place-items:center;padding:0 7px;border-radius:99px;color:#fff;background:#ef5c67;font-size:10px}.direct-conversation-list{display:grid;max-height:620px;overflow-y:auto;padding:8px}.direct-conversation-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:15px;color:var(--color-text)}.direct-conversation-item:hover,.direct-conversation-item.is-active{background:var(--color-surface)}.direct-conversation-item.is-active{box-shadow:var(--shadow-xs)}.direct-conversation-copy,.direct-conversation-copy strong,.direct-conversation-copy small{display:block;min-width:0}.direct-conversation-copy strong,.direct-conversation-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.direct-conversation-copy strong{font-size:12px}.direct-conversation-copy small{margin-top:4px;color:var(--color-text-faint);font-size:10px}.direct-conversation-meta{display:grid;justify-items:end;gap:6px;color:var(--color-text-faint);font-size:9px}.direct-conversation-meta b{display:grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border-radius:99px;color:#fff;background:#ef5c67;font-size:8px}.direct-inbox-empty{display:grid;place-items:center;padding:30px 18px;text-align:center}.direct-inbox-empty .visual-placeholder{width:150px;min-height:110px;margin-bottom:14px}.direct-inbox-empty p{margin:5px 0 0;color:var(--color-text-faint);font-size:11px}.direct-chat{position:relative;display:grid;min-height:650px;grid-template-rows:auto minmax(0,1fr) auto;background:var(--color-surface)}.direct-chat-header{display:flex;min-height:78px;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--color-line)}.direct-chat-back{display:none;width:34px;height:34px;place-items:center;border-radius:10px;color:var(--color-text);background:var(--color-surface-soft)}.direct-chat-person{display:flex;min-width:0;flex:1;align-items:center;gap:10px;color:var(--color-text)}.direct-chat-person>span{min-width:0}.direct-chat-person strong,.direct-chat-person small{display:block}.direct-chat-person strong{font-size:13px}.direct-chat-person small{margin-top:3px;color:var(--color-text-faint);font-size:10px}.direct-chat-status{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:850}.direct-chat-status.is-available{color:#087d65;background:var(--color-mint-soft)}.direct-chat-status.is-locked{color:#6d7786;background:#edf1f5}.direct-chat-status .ui-icon{width:12px;height:12px}.direct-message-stream{min-height:0;overflow-y:auto;padding:22px;background:linear-gradient(180deg,#fbfcfc,#f6f8f8);overscroll-behavior:contain}.direct-history-note{width:max-content;max-width:90%;margin:0 auto 20px;padding:5px 10px;border-radius:99px;color:#7a838c;background:#e9edef;font-size:9px}.direct-message{display:grid;grid-template-columns:32px minmax(0,auto);gap:9px;align-items:start;max-width:78%;margin-bottom:16px}.direct-message.is-own{grid-template-columns:minmax(0,auto) 32px;margin-left:auto}.direct-message.is-own>.direct-message-avatar{order:2}.direct-message.is-own>.direct-message-body{order:1}.direct-message-body{min-width:0}.direct-message-meta{display:flex;align-items:center;gap:7px;margin:0 4px 4px;color:var(--color-text-faint);font-size:9px}.direct-message.is-own .direct-message-meta{justify-content:flex-end}.direct-message-content{padding:10px 13px;border:1px solid var(--color-line);border-radius:4px 15px 15px 15px;background:#fff;box-shadow:var(--shadow-xs);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7}.direct-message.is-own .direct-message-content{border-color:transparent;border-radius:15px 4px 15px 15px;background:var(--color-lemon-soft)}.direct-message.is-pending{opacity:.65}.direct-chat-welcome,.direct-chat-placeholder{display:grid;max-width:400px;margin:auto;place-items:center;padding:34px;text-align:center}.direct-chat-welcome .visual-placeholder,.direct-chat-placeholder .visual-placeholder{width:200px;min-height:140px;margin-bottom:18px}.direct-chat-welcome h2,.direct-chat-placeholder h2{margin:0;font-size:20px}.direct-chat-welcome p,.direct-chat-placeholder p{margin:8px 0 0;color:var(--color-text-soft);font-size:12px;line-height:1.75}.direct-chat-placeholder .btn{margin-top:17px}.direct-composer{padding:13px 16px 15px;border-top:1px solid var(--color-line);background:var(--color-surface)}.direct-composer-box{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:9px;align-items:end;padding:7px 7px 7px 13px;border:1px solid var(--color-line-strong);border-radius:16px}.direct-composer-box:focus-within{border-color:var(--color-mint-deep);box-shadow:0 0 0 3px var(--color-mint-soft)}.direct-composer textarea{width:100%;min-height:45px;max-height:140px;padding:7px 0;border:0;outline:0;background:transparent;resize:vertical;line-height:1.55}.direct-send-button{display:grid;width:42px;height:42px;place-items:center;border:0;border-radius:13px;color:#fff;background:var(--color-text);cursor:pointer}.direct-send-button:hover{background:var(--color-mint-deep)}.direct-send-button:disabled{cursor:not-allowed;opacity:.4}.direct-send-button .ui-icon{width:18px;height:18px}.direct-composer-note{margin:7px 3px 0;color:var(--color-text-faint);font-size:9px}.direct-new-message{position:absolute;right:20px;bottom:105px;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 12px;border:0;border-radius:99px;color:#fff;background:var(--color-text);box-shadow:var(--shadow-md);cursor:pointer;font:inherit;font-size:10px;font-weight:800}.direct-new-message .ui-icon{width:13px;height:13px;transform:rotate(90deg)}.page-messages .publish-fab{display:none}.post-type-toast{z-index:1100}

@media(max-width:760px){.publish-type-picker{grid-template-columns:1fr}.publish-type-card{min-height:82px;grid-template-columns:42px minmax(0,1fr);align-items:center;align-content:center}.publish-type-card>span{grid-row:1/3;margin:0}.publish-type-card strong,.publish-type-card small{grid-column:2}.publish-type-card input{top:50%;transform:translateY(-50%)}.secondhand-price-fields{grid-template-columns:1fr}.post-poll,.post-secondhand{padding:12px}.poll-option-copy{display:grid;gap:2px}.secondhand-summary dl{grid-template-columns:1fr}.direct-messages-page{width:min(100% - 16px,680px);margin-top:12px}.direct-messages-page>.page-heading{padding-inline:4px}.direct-messages-layout{display:block;min-height:calc(100vh - 190px);border-radius:18px}.direct-messages-layout.has-active-conversation .direct-inbox{display:none}.direct-inbox{border-right:0}.direct-conversation-list{max-height:none}.direct-chat{min-height:calc(100vh - 190px)}.direct-messages-layout:not(.has-active-conversation) .direct-chat{display:none}.direct-chat-back{display:grid}.direct-chat-header{min-height:66px;padding:9px 11px}.direct-chat-status{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.direct-message-stream{min-height:50vh;padding:16px 11px}.direct-message{max-width:92%}.direct-composer{position:sticky;bottom:70px;z-index:4;padding:10px 10px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(27,35,31,.06)}.direct-composer-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messages .site-footer{display:none}}

@media(prefers-reduced-motion:reduce){.publish-type-card,.poll-progress i{transition:none}.direct-message-stream{scroll-behavior:auto}}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgb(255 241 53 / 16%), transparent 28rem),
    radial-gradient(circle at 94% 14%, rgb(36 223 170 / 10%), transparent 26rem),
    var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-modal-open,
body.has-menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
label[for],
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

::selection {
  background: var(--color-lemon);
  color: #181a12;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgb(91 124 255 / 42%);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-weight: 700;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-body {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgb(222 227 222 / 82%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 70%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 16px;
  gap: 14px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(28 31 23 / 6%);
  border-radius: 13px;
  background: var(--color-lemon);
  box-shadow: 0 6px 16px rgb(213 189 0 / 18%);
  color: #2b2d20;
  font-size: 19px;
  line-height: 1;
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: -8px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--color-mint);
  content: "";
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--color-text-soft);
  font-weight: 650;
  transition: background var(--transition), color var(--transition);
}

.desktop-nav a:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.desktop-nav a.is-active,
.desktop-nav a[aria-current="page"] {
  background: var(--color-lemon-soft);
  color: #3c3700;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-search {
  position: relative;
  display: none;
  width: min(28vw, 270px);
}

.header-search .form-control {
  min-height: 42px;
  padding-left: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-soft);
}

.header-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: var(--color-text-faint);
  pointer-events: none;
  transform: translateY(-50%);
}

.mobile-menu-toggle,
.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  color: var(--color-text);
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition);
}

.mobile-menu-toggle:hover,
.icon-button:hover {
  border-color: var(--color-line-strong);
  background: var(--color-surface-soft);
}

.mobile-menu-toggle:active,
.icon-button:active {
  transform: scale(0.96);
}

.mobile-menu {
  position: fixed;
  z-index: 110;
  inset: var(--header-height) 0 auto;
  max-height: calc(100vh - var(--header-height));
  padding: 10px 16px 22px;
  overflow-y: auto;
  border-bottom: 1px solid var(--color-line);
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--color-lemon-soft);
}

.mobile-menu-backdrop {
  position: fixed;
  z-index: 105;
  inset: var(--header-height) 0 0;
  border: 0;
  background: rgb(17 23 19 / 26%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.top-tabs-wrap {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
}

.top-tabs {
  display: flex;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 10px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.top-tabs::-webkit-scrollbar {
  display: none;
}

.top-tab {
  position: relative;
  display: inline-flex;
  min-width: 72px;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: var(--color-text-soft);
  font-size: 16px;
  font-weight: 700;
  scroll-snap-align: start;
  transition: color var(--transition);
}

.top-tab::after {
  position: absolute;
  right: 25%;
  bottom: 0;
  left: 25%;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--color-text);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.top-tab:hover,
.top-tab.is-active,
.top-tab[aria-current="page"] {
  color: var(--color-text);
}

.top-tab.is-active,
.top-tab[aria-current="page"] {
  font-weight: 850;
}

.top-tab.is-active::after,
.top-tab[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-shell {
  display: grid;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 16px 12px 32px;
  gap: 18px;
}

.page-main,
.page-aside,
.main-column,
.side-column {
  min-width: 0;
}

.section-stack,
.feed-list,
.comment-list {
  display: grid;
  gap: 14px;
}

.section-block {
  display: grid;
  gap: 14px;
}

.section-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.section-title {
  min-width: 0;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-subtitle {
  margin-top: 2px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.section-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 650;
}

.section-link:hover {
  color: var(--color-mint-deep);
}

.card {
  min-width: 0;
  border: 1px solid rgb(230 235 230 / 92%);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-xs);
}

.card-body {
  padding: 18px;
}

.card-header,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  gap: 12px;
}

.card-header {
  border-bottom: 1px solid var(--color-line);
}

.card-footer {
  border-top: 1px solid var(--color-line);
}

.hero-banner {
  position: relative;
  display: grid;
  min-height: 164px;
  align-content: end;
  overflow: hidden;
  padding: 23px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 22%, rgb(255 255 255 / 64%) 0 8%, transparent 8.5%),
    radial-gradient(circle at 90% 56%, rgb(255 255 255 / 30%) 0 15%, transparent 15.5%),
    linear-gradient(120deg, var(--color-lemon) 0%, #fff87e 56%, #d7ffe8 100%);
  box-shadow: 0 14px 36px rgb(213 189 0 / 12%);
  color: #202319;
}

.hero-banner::before {
  position: absolute;
  top: -52px;
  right: -28px;
  width: 170px;
  height: 170px;
  border: 36px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 68%);
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  margin-top: 9px;
  font-size: clamp(24px, 7.2vw, 40px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-text {
  max-width: 42em;
  margin-top: 8px;
  color: rgb(32 35 25 / 76%);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
  gap: 9px;
}

.campus-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  background: var(--color-lemon);
  box-shadow: 0 12px 28px rgb(213 189 0 / 14%);
}

.stat-item {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid rgb(36 39 27 / 12%);
}

.stat-value {
  display: block;
  overflow: hidden;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: rgb(36 39 27 / 62%);
  font-size: 11px;
  font-weight: 650;
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.circle-card {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.circle-card:hover {
  border-color: rgb(36 223 170 / 52%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.circle-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1.22;
  overflow: hidden;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgb(255 241 53 / 72%), rgb(36 223 170 / 42%)),
    var(--color-surface-soft);
}

.circle-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.circle-card:hover .circle-cover img {
  transform: scale(1.035);
}

.circle-name {
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-meta {
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-list {
  display: grid;
  gap: 4px;
}

.circle-list-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  gap: 11px;
  transition: background var(--transition);
}

.circle-list-item:hover {
  background: var(--color-surface-soft);
}

.circle-list-cover {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--color-mint-soft);
}

.circle-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-list-content {
  min-width: 0;
  flex: 1;
}

.circle-list-name {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-list-meta {
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.topic-chip,
.tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-mint-soft);
  color: var(--color-mint-deep);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition);
}

.topic-chip::before {
  margin-right: 4px;
  content: "#";
  opacity: 0.68;
}

.topic-chip:hover {
  border-color: rgb(36 223 170 / 35%);
  background: #c8f7e8;
  transform: translateY(-1px);
}

.tag {
  min-height: 25px;
  padding: 0 9px;
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
  font-size: 11px;
}

.tag-lemon {
  background: var(--color-lemon-soft);
  color: #6b5c00;
}

.tag-coral {
  background: var(--color-coral-soft);
  color: #b94039;
}

.tag-mint {
  background: var(--color-mint-soft);
  color: var(--color-mint-deep);
}

.avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  aspect-ratio: 1;
  flex: 0 0 44px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-lemon-soft), var(--color-mint-soft));
  box-shadow: 0 0 0 1px var(--color-line);
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 850;
  object-fit: cover;
  object-position: center;
  text-transform: uppercase;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

img.avatar {
  object-fit: cover;
  object-position: center;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 11px;
}

.avatar-lg {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  font-size: 22px;
}

.avatar-xl {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
  border-width: 4px;
  font-size: 28px;
}

.post-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(230 235 230 / 94%);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-sm);
}

.post-card-body {
  padding: 17px;
}

.post-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.post-author-main {
  min-width: 0;
  flex: 1;
}

.post-author-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.post-author-name {
  overflow: hidden;
  font-weight: 820;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-time,
.muted-text {
  color: var(--color-text-faint);
  font-size: 12px;
}

.level-badge {
  display: inline-flex;
  min-height: 20px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-violet), var(--color-blue));
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.post-menu {
  flex: 0 0 auto;
}

.post-content {
  margin-top: 14px;
  color: #2c312d;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.post-title {
  margin-bottom: 7px;
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.post-content a:not(.topic-chip) {
  color: var(--color-mint-deep);
  text-decoration: underline;
  text-decoration-color: rgb(0 141 104 / 28%);
  text-underline-offset: 3px;
}

.post-topic {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--color-mint-deep);
  font-size: 13px;
  font-weight: 750;
}

.post-media {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--radius-md);
  gap: 4px;
}

.post-media.is-single {
  display: block;
  max-width: 620px;
}

.post-media-item {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  background: var(--color-surface-soft);
}

.post-media.is-single .post-media-item {
  aspect-ratio: auto;
  max-height: 520px;
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.post-media.is-single img {
  max-height: 520px;
  object-fit: contain;
  background: var(--color-surface-soft);
}

.post-media-item:hover img {
  transform: scale(1.025);
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  gap: 8px 16px;
  color: var(--color-text-faint);
  font-size: 12px;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
  gap: 6px;
}

.post-action {
  display: inline-flex;
  min-width: 0;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  transition: background var(--transition), color var(--transition),
    transform var(--transition);
}

.post-action:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.post-action:active {
  transform: scale(0.97);
}

.post-action.is-active,
.post-action[aria-pressed="true"] {
  background: var(--color-coral-soft);
  color: var(--color-coral);
}

.post-action-count {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-post {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.featured-post-banner {
  min-height: 76px;
  background:
    radial-gradient(circle at 82% 40%, rgb(255 255 255 / 22%) 0 12%, transparent 12.5%),
    linear-gradient(110deg, #ff386d, #ff7c42 64%, var(--color-lemon));
}

.featured-post-body {
  padding: 16px;
}

.hot-user-list {
  display: flex;
  padding: 4px 0;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hot-user-list::-webkit-scrollbar {
  display: none;
}

.hot-user {
  width: 68px;
  flex: 0 0 68px;
  text-align: center;
}

.hot-user .avatar {
  margin: 0 auto 7px;
}

.hot-user-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--color-text);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  gap: 7px;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition),
    opacity var(--transition);
}

.btn:hover {
  box-shadow: 0 8px 22px rgb(32 36 33 / 16%);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: none;
  transform: translateY(0) scale(0.98);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-lemon);
  color: #292a1d;
}

.btn-primary:hover {
  background: #ffe91d;
  box-shadow: 0 8px 22px rgb(213 189 0 / 19%);
}

.btn-mint {
  background: var(--color-mint);
  color: #073a2c;
}

.btn-mint:hover {
  background: #18d59f;
  box-shadow: 0 8px 22px rgb(36 223 170 / 19%);
}

.btn-secondary {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-line-strong);
  background: var(--color-surface-soft);
  box-shadow: var(--shadow-xs);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-soft);
}

.btn-ghost:hover {
  background: var(--color-surface-soft);
  box-shadow: none;
  color: var(--color-text);
}

.btn-sm {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.follow-button.is-following,
.follow-button[aria-pressed="true"] {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-text-soft);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}

.profile-cover {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 120%, rgb(255 255 255 / 46%) 0 24%, transparent 24.5%),
    radial-gradient(circle at 85% 0%, rgb(255 255 255 / 36%) 0 19%, transparent 19.5%),
    linear-gradient(115deg, #ff5673 0%, #ff9942 58%, var(--color-lemon) 100%);
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-body {
  position: relative;
  padding: 0 18px 20px;
}

.profile-avatar-wrap {
  margin-top: -46px;
}

.profile-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}

.profile-identity {
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.profile-handle {
  margin-top: 2px;
  color: var(--color-text-faint);
  font-size: 12px;
}

.profile-bio {
  margin-top: 13px;
  color: var(--color-text-soft);
  overflow-wrap: anywhere;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 8px 22px;
}

.profile-stat {
  color: var(--color-text-soft);
  font-size: 13px;
}

.profile-stat strong {
  margin-right: 4px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 850;
}

.profile-tabs {
  display: flex;
  margin-top: 16px;
  padding: 5px;
  overflow-x: auto;
  border-radius: 15px;
  background: var(--color-surface-soft);
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  display: inline-flex;
  min-width: 78px;
  min-height: 38px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 11px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.profile-tab.is-active,
.profile-tab[aria-current="page"] {
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  color: var(--color-text);
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.detail-card {
  overflow: visible;
}

.detail-card .post-card-body {
  padding: 19px;
}

.detail-title {
  margin-top: 18px;
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.detail-content {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.detail-content > * + * {
  margin-top: 1em;
}

.detail-content img {
  margin: 18px auto;
  border-radius: var(--radius-md);
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  gap: 10px;
}

.comment-composer {
  display: grid;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  gap: 12px;
}

.comment-item {
  display: flex;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  gap: 11px;
}

.comment-content {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.comment-author {
  font-weight: 800;
}

.comment-text {
  margin-top: 5px;
  color: #343a36;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 12px;
}

.comment-action {
  border: 0;
  background: transparent;
  color: var(--color-text-faint);
  font-size: 12px;
  font-weight: 650;
}

.comment-action:hover {
  color: var(--color-mint-deep);
}

.form-card {
  padding: 20px;
}

.form-grid {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 760;
}

.form-label .required {
  margin-left: 3px;
  color: var(--color-danger);
}

.form-control,
.form-select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--color-line-strong);
  border-radius: 13px;
  background: var(--color-surface);
  box-shadow: inset 0 1px 2px rgb(20 30 23 / 2%);
  color: var(--color-text);
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

textarea.form-control {
  min-height: 126px;
  resize: vertical;
}

.form-control:hover,
.form-select:hover {
  border-color: #c9d1cb;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-mint);
  box-shadow: 0 0 0 4px rgb(36 223 170 / 14%);
}

.form-control::placeholder {
  color: var(--color-text-faint);
}

.form-control.is-invalid,
.form-control[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 4px rgb(220 59 70 / 10%);
}

.form-help,
.form-error,
.char-count {
  color: var(--color-text-faint);
  font-size: 12px;
  line-height: 1.45;
}

.form-error {
  color: var(--color-danger);
}

.char-count {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.char-count.is-near-limit {
  color: #ad7d00;
}

.char-count.is-over-limit {
  color: var(--color-danger);
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--color-mint-deep);
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 20px;
  border: 2px dashed var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--color-mint);
  background: var(--color-mint-soft);
}

.upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-title {
  color: var(--color-text);
  font-weight: 800;
}

.upload-hint {
  margin-top: 4px;
  font-size: 12px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  gap: 8px;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 13px;
  background: var(--color-surface-soft);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(24 28 25 / 78%);
  box-shadow: 0 3px 10px rgb(0 0 0 / 22%);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding: 28px 14px;
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(22px, 6vw, 34px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.auth-subtitle {
  margin-top: 4px;
  color: var(--color-text-soft);
}

.auth-form {
  display: grid;
  margin-top: 23px;
  gap: 16px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 9px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.auth-links a:hover {
  color: var(--color-mint-deep);
}

.alert {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 13px;
  background: var(--color-surface-soft);
  gap: 9px;
  font-size: 13px;
}

.alert-success {
  border-color: rgb(19 133 95 / 18%);
  background: var(--color-mint-soft);
  color: #086146;
}

.alert-warning {
  border-color: rgb(213 189 0 / 22%);
  background: var(--color-lemon-soft);
  color: #695b00;
}

.alert-danger {
  border-color: rgb(220 59 70 / 16%);
  background: var(--color-danger-soft);
  color: #9e2630;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 32px 20px;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--color-lemon-soft), var(--color-mint-soft));
  font-size: 28px;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 850;
}

.empty-state-text {
  max-width: 32em;
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 6px;
}

.page-link {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.page-link:hover {
  border-color: var(--color-mint);
  color: var(--color-mint-deep);
}

.page-link.is-active,
.page-link[aria-current="page"] {
  border-color: var(--color-lemon);
  background: var(--color-lemon);
  color: var(--color-text);
}

.bottom-nav {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 7px 7px env(safe-area-inset-bottom);
  border-top: 1px solid rgb(222 227 222 / 82%);
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 -8px 30px rgb(31 47 37 / 7%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.bottom-nav-item {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  border-radius: 13px;
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  gap: 3px;
}

.bottom-nav-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.is-active,
.bottom-nav-item[aria-current="page"] {
  color: var(--color-text);
}

.bottom-nav-item.is-active .bottom-nav-icon,
.bottom-nav-item[aria-current="page"] .bottom-nav-icon {
  background: var(--color-lemon-soft);
  transform: translateY(-1px);
}

.publish-fab {
  position: fixed;
  z-index: 92;
  right: 18px;
  bottom: calc(var(--bottom-nav-height) + 17px + env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--color-lemon);
  box-shadow: 0 13px 34px rgb(156 136 0 / 27%);
  color: #25271b;
  font-weight: 850;
  gap: 7px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.publish-fab:hover {
  box-shadow: 0 16px 38px rgb(156 136 0 / 33%);
  transform: translateY(-2px);
}

.publish-fab:active {
  transform: scale(0.97);
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: end center;
  background: rgb(15 21 17 / 48%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open,
.modal[open] {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: min(100%, 540px);
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity var(--transition), transform var(--transition);
}

.modal.is-open .modal-dialog,
.modal[open] .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 19px 20px 13px;
  gap: 12px;
}

.modal-title {
  font-size: 19px;
  font-weight: 880;
  letter-spacing: -0.03em;
}

.modal-body {
  padding: 0 20px 20px;
  color: var(--color-text-soft);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--color-line);
  gap: 9px;
}

.toast-region {
  position: fixed;
  z-index: 1600;
  top: calc(var(--header-height) + 14px);
  right: 12px;
  left: 12px;
  display: grid;
  justify-items: stretch;
  pointer-events: none;
  gap: 9px;
}

.toast {
  display: flex;
  width: min(100%, 380px);
  min-height: 50px;
  align-items: flex-start;
  justify-self: end;
  padding: 13px 15px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 15px;
  background: rgb(32 36 33 / 94%);
  box-shadow: var(--shadow-pop);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-10px) scale(0.98);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-success {
  background: rgb(11 112 78 / 96%);
}

.toast-error {
  background: rgb(174 39 49 / 96%);
}

.toast-warning {
  background: rgb(121 91 0 / 96%);
}

.image-lightbox {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  padding: 54px 16px 24px;
  place-items: center;
  background: rgb(7 10 8 / 92%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  width: auto;
  max-width: min(100%, 1280px);
  max-height: calc(100vh - 84px);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-size: 24px;
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e9ede9;
  color: transparent !important;
}

.loading-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 65%), transparent);
  content: "";
  transform: translateX(-100%);
  animation: skeleton-loading 1.35s infinite;
}

@keyframes skeleton-loading {
  100% {
    transform: translateX(100%);
  }
}

.divider {
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: var(--color-line);
}

.text-link {
  color: var(--color-mint-deep);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-center {
  text-align: center;
}

.text-danger {
  color: var(--color-danger);
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 8px !important;
}

.mt-2 {
  margin-top: 14px !important;
}

.mt-3 {
  margin-top: 22px !important;
}

/* PHP template compatibility and complete public-page composition */
.site-body {
  --color-lemon: var(--brand, #fff135);
  --color-mint: var(--accent, #24dfaa);
}

.brand {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  max-width: 15em;
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search > span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  color: var(--color-text-faint);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.header-search input:not([type="hidden"]) {
  width: 100%;
  min-height: 42px;
  padding: 8px 15px 8px 43px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-surface-soft);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.header-search input:not([type="hidden"]):focus {
  border-color: rgb(36 223 170 / 46%);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px rgb(36 223 170 / 10%);
}

.icon-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 750;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--color-surface);
  border-radius: 999px;
  background: var(--color-coral);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.mini-profile {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.mini-profile > span {
  display: none;
  max-width: 7em;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement {
  display: flex;
  width: min(calc(100% - 24px), var(--content-width));
  min-height: 40px;
  align-items: center;
  margin: 12px auto 0;
  padding: 8px 13px;
  border: 1px solid rgb(213 189 0 / 17%);
  border-radius: 13px;
  background: var(--color-lemon-soft);
  color: #625700;
  font-size: 12px;
  gap: 9px;
}

.announcement > span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-lemon);
  color: #38331a;
  font-size: 10px;
  font-weight: 850;
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}

.site-footer {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 24px 16px 30px;
  color: var(--color-text-faint);
  font-size: 11px;
  text-align: center;
}

.site-footer p + p {
  margin-top: 3px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.compact-grid {
  gap: 10px;
}

.feed-section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.narrow-shell {
  width: min(calc(100% - 24px), 760px);
  margin: 0 auto;
  padding: 24px 0 42px;
}

.page-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.page-heading > div {
  min-width: 0;
}

.page-heading h1 {
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.page-heading p {
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 13px;
}

.section-heading h2 {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.section-heading > a {
  flex: 0 0 auto;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.section-heading > a:hover {
  color: var(--color-mint-deep);
}

.section-kicker,
.side-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 3px;
  color: var(--color-mint-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-tabs.card {
  border-radius: 16px;
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(72%, 530px);
}

.hero-copy .eyebrow {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 64%);
  color: #34351e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.hero-copy h1 {
  margin-top: 9px;
  font-size: clamp(25px, 7vw, 42px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.hero-copy p {
  margin-top: 8px;
  color: rgb(31 34 24 / 70%);
  font-size: 13px;
}

.hero-copy .btn {
  margin-top: 15px;
}

.hero-banner.has-image {
  background-image: linear-gradient(90deg, rgb(16 22 18 / 76%), rgb(16 22 18 / 10%)),
    var(--banner-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-banner.has-image .hero-copy p {
  color: rgb(255 255 255 / 82%);
}

.hero-banner.has-image .eyebrow {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgb(32 35 25 / 10%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgb(32 35 25 / 8%);
  border-radius: 50%;
  content: "";
}

.hero-orbit::before {
  inset: 12px;
}

.hero-orbit::after {
  inset: 28px;
  background: rgb(255 255 255 / 34%);
}

.hero-orbit strong {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
}

.hero-orbit i {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  border: 3px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  background: var(--color-mint);
  box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
}

.hero-orbit i:nth-child(1) {
  top: 4px;
  left: 44px;
}

.hero-orbit i:nth-child(2) {
  right: 5px;
  bottom: 25px;
  background: var(--color-coral);
}

.hero-orbit i:nth-child(3) {
  bottom: 6px;
  left: 19px;
  background: var(--color-blue);
}

.btn-dark {
  background: #23251c;
  color: #fff;
}

.btn-muted {
  border-color: var(--color-line);
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
}

.circle-card.card {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.circle-cover {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--circle-color, var(--color-mint)) 24%, white), var(--color-surface-soft));
}

.circle-cover::after {
  position: absolute;
  right: -17px;
  bottom: -22px;
  width: 67px;
  height: 67px;
  border: 12px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  content: "";
}

.circle-cover > span {
  position: relative;
  z-index: 1;
  color: var(--circle-color, var(--color-mint-deep));
  font-size: 31px;
  line-height: 1;
}

.circle-copy {
  min-width: 0;
}

.circle-copy h3 {
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-copy p {
  display: -webkit-box;
  min-height: 2.8em;
  margin-top: 4px;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.circle-copy small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-join-form {
  margin-top: 10px;
}

.circle-join-form .btn {
  width: 100%;
}

.inline-form {
  display: inline-flex;
  min-width: 0;
  margin: 0;
}

.post-card.card {
  padding: 0;
}

.post-author {
  padding: 16px 16px 0;
}

.author-copy {
  min-width: 0;
  flex: 1;
}

.author-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.author-name {
  overflow: hidden;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-name:hover {
  color: var(--color-mint-deep);
}

.author-copy > p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--color-lemon);
  color: #39361b;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.follow-btn.is-following {
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
}

.post-body {
  padding: 0 16px 16px;
}

.post-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 13px;
  gap: 6px;
}

.label,
.circle-label,
.topic-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.label-pin {
  background: var(--color-lemon-soft);
  color: #7b6900;
}

.label-featured {
  background: var(--color-coral-soft);
  color: #c24840;
}

.circle-label {
  background: var(--color-surface-soft);
  color: var(--color-text-soft);
}

.topic-label {
  background: var(--color-mint-soft);
  color: var(--color-mint-deep);
}

.post-labels + .post-title,
.post-body > .post-title:first-child {
  margin-top: 10px;
}

.post-title a:hover {
  color: var(--color-mint-deep);
}

.post-body .post-content {
  margin-top: 6px;
}

.post-media > a {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.post-media.media-count-1 {
  display: block;
  max-width: 650px;
}

.post-media.media-count-1 > a {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.post-media.media-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-media.media-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-media.media-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-actions {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  margin-top: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--color-line);
  gap: 3px;
}

.post-actions > a,
.post-actions > .post-views,
.post-actions .action-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--color-text-faint);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  gap: 4px;
  transition: background var(--transition), color var(--transition),
    transform var(--transition);
}

.post-actions > a:hover,
.post-actions .action-button:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.post-actions .action-button:active {
  transform: scale(0.96);
}

.post-actions .action-button.is-active {
  background: var(--color-coral-soft);
  color: var(--color-coral);
}

.post-actions .inline-form {
  display: block;
}

.post-actions b,
.post-actions em {
  overflow: hidden;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-detail-card .post-body .post-content {
  font-size: 16px;
  line-height: 1.9;
}

.stats-card {
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgb(255 255 255 / 48%) 0 25%, transparent 25.5%),
    var(--color-lemon);
  box-shadow: 0 12px 34px rgb(213 189 0 / 13%);
  color: #292b1e;
}

.stats-card .side-label {
  color: rgb(41 43 30 / 62%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 11px;
}

.stats-grid > div {
  min-width: 0;
  text-align: center;
}

.stats-grid > div + div {
  border-left: 1px solid rgb(41 43 30 / 12%);
}

.stats-grid strong,
.stats-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-grid strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.stats-grid span {
  margin-top: 3px;
  color: rgb(41 43 30 / 58%);
  font-size: 9px;
  font-weight: 700;
}

.stats-card > p {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgb(41 43 30 / 10%);
  color: rgb(41 43 30 / 67%);
  font-size: 11px;
  line-height: 1.55;
}

.side-card {
  padding: 18px;
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-heading h3 {
  font-size: 16px;
  font-weight: 880;
  letter-spacing: -0.03em;
}

.side-heading > span,
.side-heading > a {
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 700;
}

.hot-users {
  display: grid;
  margin-top: 10px;
  gap: 2px;
}

.hot-users > a {
  display: grid;
  min-width: 0;
  grid-template-columns: 19px 34px minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  gap: 7px;
  transition: background var(--transition);
}

.hot-users > a:hover {
  background: var(--color-surface-soft);
}

.hot-users > a > b {
  color: var(--color-text-faint);
  font-size: 11px;
  text-align: center;
}

.hot-users > a:nth-child(-n + 3) > b {
  color: var(--color-coral);
  font-weight: 900;
}

.hot-users > a > span {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.hot-users > a > span strong,
.hot-users > a > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-users > a > span strong {
  font-size: 12px;
  font-weight: 800;
}

.hot-users > a > span small {
  color: var(--color-text-faint);
  font-size: 9px;
}

.hot-users > a > em {
  color: var(--color-text-faint);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.side-card .topic-cloud {
  margin-top: 13px;
}

.topic-chip::before {
  content: none;
}

.topic-chip small {
  margin-left: 6px;
  opacity: 0.62;
  font-size: 9px;
}

.topic-cloud-wide {
  padding: 15px;
}

.community-rules {
  padding: 18px;
  background:
    linear-gradient(135deg, rgb(36 223 170 / 10%), rgb(255 241 53 / 9%)),
    var(--color-surface);
}

.community-rules h3 {
  font-size: 15px;
  font-weight: 880;
}

.community-rules p {
  margin-top: 6px;
  color: var(--color-mint-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.community-rules small {
  display: block;
  margin-top: 7px;
  color: var(--color-text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.filter-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs a {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 750;
}

.filter-tabs a.is-active {
  background: var(--color-lemon);
  box-shadow: var(--shadow-xs);
  color: #302f1e;
}

.empty-state.card {
  padding: 34px 20px;
}

.empty-state .empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--color-lemon-soft), var(--color-mint-soft));
  font-size: 25px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 850;
}

.empty-state p {
  max-width: 32em;
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.empty-state .btn {
  margin-top: 16px;
}

.bottom-nav > a {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  border-radius: 13px;
  color: var(--color-text-faint);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  gap: 3px;
}

.bottom-nav > a > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  line-height: 1;
}

.bottom-nav > a > b {
  font-weight: 700;
}

.bottom-nav > a.is-active {
  color: var(--color-text);
}

.bottom-nav > a.is-active > span {
  background: var(--color-lemon-soft);
}

.bottom-nav > a.nav-publish > span {
  background: var(--color-lemon);
  box-shadow: 0 6px 16px rgb(180 158 0 / 24%);
  color: #30301e;
  font-weight: 900;
}

.publish-fab > span {
  font-size: 20px;
  line-height: 1;
}

.publish-fab > b {
  font-weight: 850;
}

.toast [data-toast-close] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: -3px -5px -3px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 519px) {
  .brand-copy small {
    display: none;
  }

  .header-actions .btn {
    padding-right: 11px;
    padding-left: 11px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading > .btn {
    min-height: 38px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 11px;
  }

  .hero-copy {
    max-width: 76%;
  }

  .hero-copy .btn {
    min-height: 37px;
    padding: 0 13px;
    font-size: 11px;
  }

  .post-actions em {
    display: none;
  }
}

@media (min-width: 720px) {
  .mini-profile > span {
    display: inline;
  }

  .announcement {
    width: min(calc(100% - 44px), var(--content-width));
  }

  .hero-orbit {
    right: 35px;
    width: 145px;
    height: 145px;
  }

  .hero-orbit i:nth-child(1) {
    left: 60px;
  }

  .post-author {
    padding: 20px 21px 0;
  }

  .post-body {
    padding: 0 21px 20px;
  }

  .post-actions {
    padding: 11px 17px 13px;
    gap: 7px;
  }
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 36px;
  }
}

/* Secondary public pages: discovery, detail, publishing, auth and profile */
.content-shell,
.profile-shell,
.publish-shell,
.detail-layout {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 16px 12px 36px;
}

.content-shell,
.profile-shell,
.publish-shell,
.detail-main,
.detail-side,
.search-section {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

.desktop-only {
  display: none !important;
}

.discover-search {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  padding: 7px;
  border-radius: 17px;
  gap: 4px;
}

.discover-search > span {
  display: grid;
  height: 40px;
  place-items: center;
  color: var(--color-text-faint);
  font-size: 23px;
  line-height: 1;
}

.discover-search > input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 9px;
  border: 0;
  background: transparent;
}

.discover-search > input:not([type="hidden"])::placeholder {
  color: var(--color-text-faint);
}

.discover-search:focus-within {
  border-color: rgb(36 223 170 / 54%);
  box-shadow: 0 0 0 4px rgb(36 223 170 / 10%);
}

.circle-grid.large-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.circle-hero,
.topic-hero {
  position: relative;
  display: grid;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  gap: 14px;
}

.circle-hero {
  grid-template-columns: 72px minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% 0%, rgb(255 255 255 / 60%) 0 22%, transparent 22.5%),
    linear-gradient(135deg, color-mix(in srgb, var(--circle-color) 12%, var(--color-surface)), var(--color-surface));
}

.circle-hero::after,
.topic-hero::after {
  position: absolute;
  z-index: 0;
  right: -42px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 27px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.circle-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgb(255 255 255 / 68%);
  border-radius: 23px;
  background: color-mix(in srgb, var(--circle-color) 18%, white);
  box-shadow: 0 12px 28px rgb(30 45 35 / 10%);
  color: var(--circle-color);
  font-size: 30px;
}

.circle-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.circle-hero-copy > span,
.topic-hero small {
  color: var(--color-mint-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.circle-hero-copy h1,
.topic-hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 3px;
  font-size: clamp(22px, 6vw, 33px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.18;
  gap: 7px;
}

.circle-hero-copy h1 b {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-lemon);
  color: #39361b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.circle-hero-copy > p,
.topic-hero p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.circle-hero-copy > div,
.topic-hero strong {
  display: block;
  margin-top: 8px;
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 650;
}

.circle-hero-copy > div strong {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 850;
}

.circle-hero > form {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
}

.circle-hero > form .btn {
  width: 100%;
}

.member-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  gap: 10px;
}

.member-cloud > a {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
}

.member-cloud > a > span {
  width: 100%;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-card > .muted-text,
.community-rules + .muted-text {
  display: block;
  margin-top: 12px;
}

.topic-hero {
  grid-template-columns: 62px minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% 0%, rgb(255 255 255 / 52%) 0 24%, transparent 24.5%),
    linear-gradient(135deg, color-mix(in srgb, var(--topic-color) 16%, var(--color-surface)), var(--color-surface));
}

.topic-hero > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 21px;
  background: var(--topic-color);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--topic-color) 24%, transparent);
  color: #fff;
  font-size: 31px;
  font-weight: 900;
}

.topic-hero > div,
.topic-hero > .btn {
  position: relative;
  z-index: 1;
}

.topic-hero > .btn {
  grid-column: 1 / -1;
}

.detail-layout {
  align-items: start;
}

.back-link {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 750;
}

.back-link:hover {
  border-color: var(--color-mint);
  color: var(--color-mint-deep);
}

.comment-section {
  padding: 17px;
}

.comment-form {
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--color-line);
  border-radius: 17px;
  background: var(--color-surface-soft);
  gap: 10px;
}

.comment-form > div {
  min-width: 0;
  flex: 1;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line);
  resize: vertical;
}

.comment-form textarea:focus {
  box-shadow: inset 0 0 0 1px var(--color-mint), 0 0 0 4px rgb(36 223 170 / 10%);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.form-foot small {
  color: var(--color-text-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.btn-accent {
  background: var(--color-mint);
  color: #073a2c;
}

.btn-accent:hover {
  background: #18d59f;
  box-shadow: 0 8px 22px rgb(36 223 170 / 19%);
}

.login-callout {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid rgb(213 189 0 / 18%);
  border-radius: 14px;
  background: var(--color-lemon-soft);
  color: #665b00;
  font-size: 12px;
  text-align: center;
}

.login-callout a {
  margin-left: 4px;
  color: var(--color-mint-deep);
  font-weight: 850;
}

.comment-section .comment-list {
  margin-top: 17px;
}

.comment-section .comment-item {
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
}

.comment-item > div {
  min-width: 0;
  flex: 1;
}

.comment-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
}

.comment-item header > a {
  font-size: 12px;
  font-weight: 850;
}

.comment-item header > time {
  color: var(--color-text-faint);
  font-size: 9px;
}

.comment-item > div > p {
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.centered {
  padding: 20px 0;
  text-align: center;
}

.related-post {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  gap: 4px;
}

.related-post:last-of-type {
  border-bottom: 0;
}

.related-post strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-post span {
  color: var(--color-text-faint);
  font-size: 9px;
}

.publish-shell {
  align-items: start;
}

.publish-card {
  min-width: 0;
  padding: 20px;
}

.publish-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--color-line);
  gap: 14px;
}

.publish-heading > div {
  min-width: 0;
}

.publish-heading h1 {
  font-size: clamp(23px, 6vw, 32px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.publish-heading p {
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 11px;
}

.publish-form,
.stack-form {
  display: grid;
  gap: 16px;
}

.publish-form {
  margin-top: 19px;
}

.form-group > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
}

.form-group > label small {
  color: var(--color-text-faint);
  font-size: 9px;
  font-weight: 500;
}

.form-group > small {
  justify-self: end;
  color: var(--color-text-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.title-input {
  font-size: 16px;
  font-weight: 750;
}

.publish-form .form-row,
.stack-form .form-row {
  grid-template-columns: 1fr;
}

.upload-zone > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--color-lemon);
  color: #34341e;
  font-size: 25px;
  line-height: 1;
}

.upload-zone > strong {
  margin-top: 5px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 850;
}

.upload-zone > small {
  color: var(--color-text-faint);
  font-size: 9px;
}

.image-preview-grid:empty {
  display: none;
}

.publish-guideline {
  display: grid;
  padding: 13px 14px;
  border: 1px solid rgb(36 223 170 / 16%);
  border-radius: 14px;
  background: var(--color-mint-soft);
  gap: 3px;
}

.publish-guideline b {
  color: var(--color-mint-deep);
  font-size: 11px;
  font-weight: 850;
}

.publish-guideline span {
  color: var(--color-text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
  gap: 9px;
}

.publish-tips {
  padding: 19px;
}

.publish-tips h3 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.publish-tips ol {
  display: grid;
  margin-top: 13px;
  counter-reset: publish-tip;
  gap: 12px;
}

.publish-tips li {
  position: relative;
  display: grid;
  min-height: 36px;
  align-content: center;
  padding-left: 45px;
  counter-increment: publish-tip;
}

.publish-tips li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--color-lemon-soft);
  color: #756400;
  content: counter(publish-tip, decimal-leading-zero);
  font-size: 9px;
  font-weight: 900;
}

.publish-tips li b,
.publish-tips li span {
  display: block;
}

.publish-tips li b {
  font-size: 11px;
  font-weight: 820;
}

.publish-tips li span {
  color: var(--color-text-faint);
  font-size: 9px;
}

.auth-shell {
  width: min(100%, 1000px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 24px 12px 44px;
  gap: 16px;
}

.auth-visual {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: clamp(23px, 6vw, 42px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 12%, rgb(255 255 255 / 28%) 0 13%, transparent 13.5%),
    radial-gradient(circle at 80% 104%, rgb(255 255 255 / 22%) 0 27%, transparent 27.5%),
    linear-gradient(135deg, var(--color-mint), #83f2c9 52%, var(--color-lemon));
  box-shadow: var(--shadow-sm);
  color: #153126;
}

.register-shell .auth-visual {
  background:
    radial-gradient(circle at 90% 12%, rgb(255 255 255 / 28%) 0 13%, transparent 13.5%),
    radial-gradient(circle at 80% 104%, rgb(255 255 255 / 22%) 0 27%, transparent 27.5%),
    linear-gradient(135deg, #ff7a60, #ffb244 52%, var(--color-lemon));
  color: #3a291d;
}

.auth-visual .eyebrow {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 45%);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.auth-visual h1 {
  margin-top: 13px;
  font-size: clamp(29px, 8vw, 48px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.auth-visual > p {
  max-width: 33em;
  margin-top: 10px;
  color: rgb(21 49 38 / 68%);
  font-size: 12px;
}

.register-shell .auth-visual > p {
  color: rgb(58 41 29 / 68%);
}

.auth-bubbles {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.auth-bubbles i {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  background: rgb(255 255 255 / 28%);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.auth-bubbles i:nth-child(2),
.auth-bubbles i:nth-child(4) {
  transform: translateY(-18px);
}

.auth-card.card {
  width: 100%;
  padding: clamp(21px, 6vw, 34px);
}

.auth-heading {
  display: flex;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
  gap: 12px;
}

.auth-heading h2 {
  font-size: 21px;
  font-weight: 920;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.auth-heading p {
  margin-top: 3px;
  color: var(--color-text-faint);
  font-size: 10px;
}

.auth-card .stack-form {
  margin-top: 19px;
}

.auth-switch {
  margin-top: 17px;
  color: var(--color-text-soft);
  font-size: 11px;
  text-align: center;
}

.auth-switch a {
  margin-left: 4px;
  color: var(--color-mint-deep);
  font-weight: 850;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 23px;
  gap: 7px;
}

.auth-stats > div {
  display: grid;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 13px;
  background: rgb(255 255 255 / 22%);
}

.auth-stats b,
.auth-stats span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-stats b {
  font-size: 10px;
  font-weight: 850;
}

.auth-stats span {
  margin-top: 2px;
  color: rgb(58 41 29 / 58%);
  font-size: 8px;
}

.profile-shell {
  gap: 15px;
}

.profile-gradient {
  position: relative;
  height: 145px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 110%, rgb(255 255 255 / 45%) 0 25%, transparent 25.5%),
    radial-gradient(circle at 90% -8%, rgb(255 255 255 / 32%) 0 20%, transparent 20.5%),
    linear-gradient(115deg, #ff5576, #ff9d42 58%, var(--color-lemon));
}

.profile-gradient > span {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
}

.profile-gradient > span:nth-child(1) {
  top: 20px;
  right: 16%;
  width: 70px;
  height: 70px;
}

.profile-gradient > span:nth-child(2) {
  right: 8%;
  bottom: -30px;
  width: 120px;
  height: 120px;
}

.profile-gradient > span:nth-child(3) {
  top: 45px;
  left: 45%;
  width: 25px;
  height: 25px;
  background: rgb(255 255 255 / 20%);
}

.profile-hero > .profile-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: -46px;
  padding: 0 18px;
  gap: 12px;
}

.profile-copy {
  min-width: 0;
  flex: 1 1 175px;
  padding-top: 48px;
}

.profile-copy > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.profile-copy h1 {
  overflow: hidden;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-coral-soft);
  color: var(--color-coral);
  font-size: 9px;
  font-weight: 850;
}

.profile-copy > p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy blockquote {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.profile-actions {
  display: flex;
  flex: 1 0 100%;
  justify-content: flex-end;
}

.profile-hero > .profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 17px 18px 0;
  padding: 15px 0 18px;
  border-top: 1px solid var(--color-line);
  gap: 0;
}

.profile-stats > div {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.profile-stats > div + div {
  border-left: 1px solid var(--color-line);
}

.profile-stats > div strong,
.profile-stats > div span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats > div strong {
  font-size: 16px;
  font-weight: 920;
  line-height: 1.2;
}

.profile-stats > div span {
  margin-top: 3px;
  color: var(--color-text-faint);
  font-size: 9px;
}

.profile-tabs.card {
  margin-top: 0;
  padding: 5px;
  border-radius: 16px;
}

.profile-tabs > a {
  display: inline-flex;
  min-width: max-content;
  min-height: 39px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 11px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 750;
}

.profile-tabs > a.is-active {
  background: var(--color-lemon);
  box-shadow: var(--shadow-xs);
  color: #34331e;
}

.profile-content {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 16px;
}

.profile-feed {
  min-width: 0;
}

.profile-circle-grid .empty-state {
  grid-column: 1 / -1;
}

.profile-side {
  padding: 18px;
}

.profile-side h3 {
  font-size: 15px;
  font-weight: 880;
}

.profile-side dl {
  display: grid;
  margin-top: 12px;
  gap: 0;
}

.profile-side dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
  gap: 12px;
}

.profile-side dt,
.profile-side dd {
  font-size: 10px;
}

.profile-side dt {
  color: var(--color-text-faint);
}

.profile-side dd {
  font-weight: 750;
}

.profile-side .btn {
  margin-top: 14px;
}

.settings-card {
  padding: 19px;
}

.settings-card .stack-form {
  margin-top: 17px;
}

.settings-card > hr {
  height: 1px;
  margin: 21px 0;
  border: 0;
  background: var(--color-line);
}

.avatar-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 13px;
  border: 1px solid var(--color-line);
  border-radius: 17px;
  background: var(--color-surface-soft);
  gap: 13px;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.avatar-editor-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 7px;
}

.avatar-editor-copy > strong {
  font-size: 14px;
  font-weight: 850;
}

.avatar-editor-copy > p {
  color: var(--color-text-faint);
  font-size: 10px;
  line-height: 1.55;
}

.avatar-editor-copy > .btn {
  margin-top: 2px;
}

.avatar-editor-copy .upload-disabled-note {
  color: var(--color-coral);
}

.avatar-editor > [data-image-preview] {
  grid-column: 1 / -1;
  grid-template-columns: 92px;
  margin-top: 0;
  padding-top: 2px;
}

.notification-list {
  margin-top: 18px;
  overflow: hidden;
}

.notification-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 15px;
  gap: 11px;
  transition: background var(--transition);
}

.notification-item + .notification-item {
  border-top: 1px solid var(--color-line);
}

.notification-item:hover {
  background: var(--color-surface-soft);
}

.notification-item.is-unread {
  background: linear-gradient(90deg, rgb(36 223 170 / 9%), transparent 70%);
}

.notification-item > .avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1;
  flex: 0 0 44px;
}

.notification-item > .notification-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.notification-item > .notification-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item > .notification-copy small {
  color: var(--color-text-faint);
  font-size: 9px;
}

.notification-item > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--color-mint);
  box-shadow: 0 0 0 4px rgb(36 223 170 / 12%);
}

.padded-empty {
  padding: 16px;
}

.padded-empty .empty-state {
  border: 0;
}

.search-page {
  gap: 24px;
}

.search-section > .section-heading > span {
  color: var(--color-text-faint);
  font-size: 10px;
  font-weight: 700;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.person-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  padding: 17px 10px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.person-card:hover {
  border-color: rgb(36 223 170 / 42%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.person-card > strong,
.person-card > span,
.person-card > small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card > strong {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 850;
}

.person-card > span {
  margin-top: 1px;
  color: var(--color-mint-deep);
  font-size: 9px;
}

.person-card > small {
  margin-top: 4px;
  color: var(--color-text-faint);
  font-size: 9px;
}

.search-feed {
  width: min(100%, 780px);
}

@media (min-width: 600px) {
  .content-shell,
  .profile-shell,
  .publish-shell,
  .detail-layout {
    padding: 22px 22px 42px;
  }

  .circle-grid.large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .circle-hero {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    padding: 22px;
  }

  .circle-hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 27px;
  }

  .circle-hero > form {
    grid-column: auto;
  }

  .circle-hero > form .btn {
    width: auto;
  }

  .topic-hero {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 22px;
  }

  .topic-hero > span {
    width: 72px;
    height: 72px;
  }

  .topic-hero > .btn {
    grid-column: auto;
  }

  .comment-section,
  .publish-card,
  .settings-card {
    padding: 22px;
  }

  .publish-form .form-row,
  .stack-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero > .profile-main {
    padding: 0 24px;
  }

  .profile-actions {
    flex: 0 0 auto;
  }

  .profile-hero > .profile-stats {
    margin-right: 24px;
    margin-left: 24px;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .desktop-only {
    display: inline-flex !important;
  }

  .circle-grid.large-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .publish-shell {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }

  .publish-tips {
    position: sticky;
    top: calc(var(--header-height) + 18px);
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    padding: 38px 22px 55px;
    gap: 22px;
  }

  .register-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  }

  .auth-visual {
    min-height: 570px;
  }

  .register-shell .auth-visual {
    min-height: 650px;
  }

  .auth-visual h1 {
    margin-top: 20px;
  }

  .profile-gradient {
    height: 185px;
  }

  .profile-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }

  .profile-side {
    position: sticky;
    top: calc(var(--header-height) + 18px);
  }

  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .detail-side {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    max-height: calc(100vh - var(--header-height) - 36px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (min-width: 1120px) {
  .circle-grid.large-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 520px) {
  .circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-row.is-2-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal {
    place-items: center;
  }

  .modal-dialog {
    border-radius: var(--radius-xl);
    transform: translateY(10px) scale(0.97);
  }
}

@media (min-width: 720px) {
  .site-body {
    padding-bottom: 0;
  }

  .header-inner {
    padding: 0 22px;
  }

  .page-shell {
    padding: 22px;
  }

  .circle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-body {
    padding: 21px;
  }

  .post-card-body,
  .detail-card .post-card-body {
    padding: 22px;
  }

  .post-media {
    gap: 6px;
  }

  .post-actions {
    gap: 10px;
  }

  .detail-actions {
    display: flex;
  }

  .detail-actions .btn {
    min-width: 150px;
  }

  .profile-body {
    padding: 0 24px 24px;
  }

  .profile-main {
    margin-top: 12px;
  }

  .bottom-nav {
    display: none;
  }

  .publish-fab {
    right: 28px;
    bottom: 28px;
  }

  .toast-region {
    right: 22px;
    left: auto;
    width: 390px;
  }

  .toast {
    width: 100%;
  }
}

@media (min-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-toggle,
  .mobile-menu,
  .mobile-menu-backdrop {
    display: none;
  }

  .header-search {
    display: block;
  }

  .top-tabs {
    padding: 0 22px;
  }

  .page-shell,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 22px;
  }

  .page-aside,
  .side-column,
  .detail-aside {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    display: grid;
    max-height: calc(100vh - var(--header-height) - 36px);
    overflow-y: auto;
    gap: 16px;
    scrollbar-width: thin;
  }

  .circle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-card {
    border-radius: 24px;
  }

  .profile-cover {
    height: 190px;
  }
}

@media (min-width: 1160px) {
  .page-shell,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
  }

  .circle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-banner {
    min-height: 190px;
    padding: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-page: #111512;
    --color-surface: #1a1f1b;
    --color-surface-soft: #202621;
    --color-surface-raised: #1a1f1b;
    --color-text: #edf2ee;
    --color-text-soft: #aab4ad;
    --color-text-faint: #7f8a82;
    --color-line: #2c342e;
    --color-line-strong: #3a443d;
    --color-lemon-soft: #454112;
    --color-mint-soft: #143b2f;
    --color-mint-deep: #55e2b8;
    --color-coral-soft: #452321;
    --color-danger-soft: #421f24;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 25%);
    --shadow-sm: 0 8px 24px rgb(0 0 0 / 24%);
    --shadow-md: 0 18px 48px rgb(0 0 0 / 32%);
  }

  body {
    background:
      radial-gradient(circle at 10% -10%, rgb(255 241 53 / 5%), transparent 28rem),
      radial-gradient(circle at 94% 14%, rgb(36 223 170 / 5%), transparent 26rem),
      var(--color-page);
  }

  .site-header,
  .bottom-nav {
    border-color: rgb(61 70 63 / 80%);
    background: rgb(26 31 27 / 90%);
  }

  .mobile-menu {
    background: rgb(26 31 27 / 98%);
  }

  .top-tabs-wrap {
    background: var(--color-surface);
  }

  .post-content,
  .comment-text {
    color: #dce4de;
  }

  .form-control,
  .form-select {
    box-shadow: none;
  }

  .loading-skeleton {
    background: #29302b;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   v1.3 visual polish: richer offline placeholders and clearer visual rhythm
   -------------------------------------------------------------------------- */

:root {
  --color-page: #f4f7f3;
  --color-surface-soft: #f7faf6;
  --color-line: #e4eae4;
  --shadow-xs: 0 1px 2px rgb(27 45 33 / 5%), 0 5px 16px rgb(27 45 33 / 3%);
  --shadow-sm: 0 12px 32px rgb(26 48 34 / 8%);
}

body {
  background:
    linear-gradient(rgb(255 255 255 / 0.34), rgb(255 255 255 / 0.34)),
    radial-gradient(circle at 6% -4%, rgb(255 241 53 / 18%), transparent 25rem),
    radial-gradient(circle at 98% 12%, rgb(36 223 170 / 12%), transparent 28rem),
    var(--color-page);
}

.card {
  border-color: rgb(223 231 224 / 88%);
  box-shadow: var(--shadow-xs);
}

.brand-mark {
  isolation: isolate;
}

.brand-logo {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-mark.is-media-fallback .brand-logo {
  display: none;
}

/* Local photographic fallbacks for posts, circles, goods and empty states. */
.visual-placeholder {
  position: relative;
  isolation: isolate;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 110px;
  overflow: hidden;
  background: #dfe7e2;
}

.visual-placeholder-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.visual-placeholder--profile .visual-placeholder-photo {
  object-position: center 58%;
}

.direct-inbox-empty > .visual-placeholder {
  position: relative;
  inset: auto;
  width: 150px;
  height: 110px;
  min-height: 110px;
  border-radius: 18px;
}

.direct-chat-welcome > .visual-placeholder,
.direct-chat-placeholder > .visual-placeholder {
  position: relative;
  inset: auto;
  width: 200px;
  height: 140px;
  min-height: 140px;
  border-radius: 20px;
}

.visual-placeholder--palette-2 { --vp-a: #ffd4dc; --vp-b: #fff0bb; --vp-ink: #7d3545; }
.visual-placeholder--palette-3 { --vp-a: #d9ddff; --vp-b: #ecd9ff; --vp-ink: #51468b; }
.visual-placeholder--palette-4 { --vp-a: #c9f2ff; --vp-b: #d5fbea; --vp-ink: #246378; }
.visual-placeholder--palette-5 { --vp-a: #ffddc9; --vp-b: #f1dcff; --vp-ink: #754d71; }
.visual-placeholder--palette-6 { --vp-a: #d9f2ba; --vp-b: #fff1a8; --vp-ink: #49652d; }

.vp-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.7) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 70%);
  mask-image: linear-gradient(115deg, #000, transparent 70%);
}

.vp-orb {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 12px rgb(255 255 255 / 0.08);
}

.vp-orb-a {
  top: -21%;
  right: -10%;
  width: 62%;
  aspect-ratio: 1;
}

.vp-orb-b {
  right: 21%;
  bottom: -34%;
  width: 48%;
  aspect-ratio: 1;
}

.vp-icon {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 10%;
  display: grid;
  width: clamp(44px, 24%, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 30%;
  background: rgb(255 255 255 / 0.48);
  box-shadow: 0 16px 38px rgb(61 74 64 / 0.12);
  transform: rotate(4deg);
  backdrop-filter: blur(6px);
}

.vp-icon .ui-icon {
  width: 48%;
  height: 48%;
  stroke-width: 1.7;
}

.vp-copy {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.vp-copy small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0.58;
}

.vp-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: clamp(12px, 4vw, 18px);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.circle-cover,
.product-cover,
.product-main-image,
.media-frame,
.related-post-visual,
.empty-visual,
.hero-default-visual,
.mall-hero-visual,
.profile-gradient {
  position: relative;
  isolation: isolate;
}

.circle-cover > .visual-placeholder,
.product-cover > .visual-placeholder,
.product-main-image > .visual-placeholder,
.media-frame > .visual-placeholder,
.related-post-visual > .visual-placeholder,
.empty-visual > .visual-placeholder,
.hero-default-visual > .visual-placeholder,
.mall-hero-visual > .visual-placeholder,
.profile-gradient > .visual-placeholder,
.circle-hero-icon > .visual-placeholder,
.resource-card-cover > .visual-placeholder,
.resource-detail-cover > .visual-placeholder,
.post-media-placeholder > a > .visual-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.circle-cover > img,
.product-cover > img,
.product-main-image > img,
.media-frame > img,
.related-post-visual > img {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-cover.is-media-fallback > img,
.product-cover.is-media-fallback > img,
.product-main-image.is-media-fallback > img,
.media-frame.is-media-fallback > img,
.related-post-visual.is-media-fallback > img {
  display: none;
}

.circle-cover .vp-copy {
  right: 12px;
  bottom: 11px;
  left: 12px;
}

.circle-cover .vp-copy strong {
  font-size: 13px;
}

.circle-cover .vp-icon {
  top: 13%;
  right: 11%;
  width: 35%;
}

.post-media-placeholder {
  display: block;
  width: 100%;
  max-width: 650px;
  border: 0;
  border-radius: var(--radius-md);
}

.post-media.post-media-placeholder > a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 5.4;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.post-media-placeholder .vp-icon {
  top: 17%;
  right: 7%;
  width: 20%;
  max-width: 62px;
}

.post-media-placeholder .vp-copy {
  right: 32%;
}

.post-detail-card .post-media-placeholder > a {
  aspect-ratio: 16 / 6.2;
}

.product-featured,
.product-visual-note {
  z-index: 7;
}

.product-featured {
  color: #fff;
  background: rgb(31 38 33 / 0.82);
  backdrop-filter: blur(7px);
}

.product-visual-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.58);
  color: rgb(42 55 46 / 0.68);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.product-placeholder {
  position: relative;
}

.empty-state.card {
  padding: clamp(20px, 5vw, 34px);
  overflow: hidden;
}

.empty-visual {
  width: min(100%, 310px);
  aspect-ratio: 16 / 7;
  margin: 0 auto 17px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgb(38 63 46 / 0.08);
}

.visual-placeholder--empty-state .vp-copy {
  display: none;
}

.visual-placeholder--empty-state .vp-icon {
  top: 50%;
  right: 50%;
  width: 62px;
  border-radius: 21px;
  transform: translate(50%, -50%) rotate(3deg);
}

/* Home hero now has a real default art panel instead of a lone orbit. */
.hero-banner {
  min-height: 220px;
  align-content: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgb(255 255 255 / 0.62);
}

.hero-banner:not(.has-image) .hero-copy {
  max-width: min(58%, 520px);
}

.hero-default-visual {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 24px;
  bottom: 20px;
  width: min(35%, 280px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 26px;
  box-shadow: 0 20px 55px rgb(61 80 65 / 0.12);
  transform: none;
}

.hero-default-art {
  border-radius: inherit;
}

.hero-default-art .vp-icon {
  width: 72px;
}

.hero-visual-chip,
.mall-visual-mini {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.68);
  box-shadow: 0 10px 25px rgb(42 62 48 / 0.13);
  backdrop-filter: blur(8px);
}

.hero-visual-chip {
  width: 38px;
  height: 38px;
}

.hero-visual-chip .ui-icon,
.mall-visual-mini .ui-icon {
  width: 18px;
  height: 18px;
}

.hero-visual-chip.is-camera { top: -10px; left: -12px; color: #4d63d8; transform: rotate(-7deg); }
.hero-visual-chip.is-book { right: -13px; bottom: 23%; color: #088c69; transform: rotate(6deg); }
.hero-visual-chip.is-club { bottom: -9px; left: 24%; color: #c6574f; transform: rotate(-3deg); }

/* Mall and profile get useful default visual content on every viewport. */
.mall-hero-copy {
  max-width: min(58%, 650px) !important;
}

.mall-hero-points {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 8px;
}

.mall-hero-points > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.38);
  color: #465249;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
}

.mall-hero-points .ui-icon {
  width: 13px;
  height: 13px;
}

.mall-hero-visual {
  position: absolute !important;
  z-index: 2 !important;
  top: 26px;
  right: 34px;
  bottom: 26px;
  width: min(31%, 300px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgb(73 88 64 / 0.12);
  transform: none;
}

.mall-hero-placeholder {
  border-radius: inherit;
}

.mall-visual-mini {
  width: 42px;
  height: 42px;
}

.mall-visual-mini.is-one { top: 18%; left: -16px; color: #6954bb; transform: rotate(-8deg); }
.mall-visual-mini.is-two { right: -12px; bottom: 18%; color: #9a5a34; transform: rotate(8deg); }

.profile-gradient {
  background: #dff8ed;
}

.profile-cover-placeholder {
  border-radius: 0;
}

.profile-cover-placeholder .vp-icon {
  top: 18%;
  right: 8%;
  width: 92px;
}

.profile-cover-placeholder .vp-copy {
  right: 32%;
  bottom: 24px;
  left: 24px;
}

.profile-cover-placeholder .vp-copy strong {
  font-size: clamp(17px, 3vw, 25px);
}

.profile-bio {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

/* Related posts use uploaded thumbnails or a local photographic fallback. */
.related-post {
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.related-post-visual {
  display: block;
  width: 70px;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-radius: 13px;
}

.related-post-visual .vp-copy {
  display: none;
}

.related-post-visual .vp-icon {
  top: 50%;
  right: 50%;
  width: 32px;
  transform: translate(50%, -50%);
}

.related-post-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.related-post-copy small {
  color: var(--color-text-faint);
  font-size: 10px;
}

.circle-hero-icon {
  position: relative;
  isolation: isolate;
}

.circle-hero-placeholder {
  border-radius: inherit;
}

.circle-hero-placeholder .vp-copy {
  display: none;
}

.circle-hero-placeholder .vp-icon {
  top: 50%;
  right: 50%;
  width: 54%;
  transform: translate(50%, -50%);
}

.circle-hero-icon > img {
  position: absolute;
  z-index: 4;
  inset: 0;
}

.upload-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 241 53 / 0.24), transparent 28%),
    linear-gradient(145deg, #fbfcfa, #f0faf5);
}

.upload-zone::after {
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 20px solid rgb(36 223 170 / 0.08);
  border-radius: 50%;
  content: "";
}

@media (hover: hover) {
  .post-card.card,
  .side-card,
  .profile-hero,
  .product-card {
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  }

  .post-card.card:hover,
  .side-card:hover,
  .profile-hero:hover {
    border-color: rgb(36 223 170 / 0.24);
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 859px) {
  .profile-content .profile-side {
    order: -1;
  }

  .profile-side dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 719px) {
  .page-shell,
  .content-shell,
  .profile-shell,
  .detail-layout,
  .publish-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .main-column,
  .side-column,
  .section-block {
    gap: 17px;
  }

  .section-block + .section-block {
    margin-top: 8px;
  }

  .circle-copy p,
  .post-actions > a,
  .post-actions > .post-views,
  .post-actions .action-button,
  .profile-tabs > a {
    font-size: 11px;
  }

  .circle-copy small,
  .author-copy > p,
  .profile-stats > div span {
    font-size: 10px;
  }

  .hero-banner {
    min-height: 205px;
    padding: 22px;
  }

  .hero-banner:not(.has-image) .hero-copy {
    max-width: 64%;
  }

  .hero-default-visual {
    top: 20px;
    right: 14px;
    bottom: 20px;
    width: 34%;
    opacity: 0.96;
  }

  .hero-default-art .vp-copy {
    right: 10px;
    bottom: 11px;
    left: 10px;
  }

  .hero-default-art .vp-copy small,
  .hero-default-art .vp-copy strong {
    display: none;
  }

  .hero-default-art .vp-icon {
    top: 50%;
    right: 50%;
    width: 54px;
    transform: translate(50%, -50%) rotate(4deg);
  }

  .hero-visual-chip {
    width: 31px;
    height: 31px;
  }

  .hero-visual-chip.is-book {
    display: none;
  }

  .post-media.post-media-placeholder > a {
    aspect-ratio: 16 / 6.4;
  }

  .post-media-placeholder .vp-copy {
    right: 30%;
    bottom: 12px;
    left: 13px;
  }

  .post-media-placeholder .vp-copy strong {
    font-size: 13px;
  }

  .mall-hero {
    min-height: 218px;
    padding: 25px 20px;
  }

  .mall-hero-copy {
    max-width: 66% !important;
  }

  .mall-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .mall-hero p {
    font-size: 11px;
    line-height: 1.6;
  }

  .mall-hero-points > span:nth-child(3) {
    display: none;
  }

  .mall-hero-visual {
    top: 24px;
    right: 16px;
    bottom: 24px;
    width: 30%;
  }

  .mall-hero-placeholder .vp-copy {
    display: none;
  }

  .mall-hero-placeholder .vp-icon {
    top: 50%;
    right: 50%;
    width: 52px;
    transform: translate(50%, -50%);
  }

  .mall-visual-mini.is-one {
    display: none;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .profile-actions .btn,
  .profile-actions form,
  .profile-actions form .btn {
    width: 100%;
  }

  .empty-visual {
    max-width: 260px;
  }
}

@media (max-width: 420px) {
  .hero-banner:not(.has-image) .hero-copy {
    max-width: 68%;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy p {
    max-width: 24ch;
    font-size: 11px;
  }

  .hero-default-visual {
    width: 29%;
  }

  .hero-visual-chip.is-club {
    display: none;
  }

  .mall-hero-points {
    display: none;
  }

  .profile-side dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-default-visual,
  .hero-visual-chip,
  .mall-hero-visual,
  .mall-visual-mini,
  .vp-icon {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .bottom-nav,
  .publish-fab,
  .post-actions,
  .detail-actions,
  .comment-composer,
  .page-aside,
  .toast-region {
    display: none !important;
  }

  .page-shell,
  .detail-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .card,
  .post-card,
  .profile-hero {
    border-color: #ddd;
    box-shadow: none;
  }
}

/* Local Lucide vector icon system. Icons are decorative; visible labels remain. */
.ui-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
  pointer-events: none;
}

.btn,
.follow-btn,
.circle-label,
.topic-label,
.back-link,
.icon-link,
.section-link {
  gap: 6px;
}

.btn .ui-icon,
.follow-btn .ui-icon,
.back-link .ui-icon,
.icon-link .ui-icon,
.section-link .ui-icon {
  width: 16px;
  height: 16px;
}

.header-search > span .ui-icon,
.discover-search > span .ui-icon {
  width: 19px;
  height: 19px;
}

.topic-chip {
  gap: 4px;
}

.topic-chip::before {
  content: none;
}

.topic-chip > .ui-icon,
.circle-label > .ui-icon,
.topic-label > .ui-icon {
  width: 13px;
  height: 13px;
}

.circle-cover > span .ui-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}

.circle-hero-icon > .ui-icon {
  width: 35px;
  height: 35px;
  stroke-width: 1.8;
}

.topic-hero > span .ui-icon {
  width: 30px;
  height: 30px;
}

.post-actions .ui-icon {
  width: 16px;
  height: 16px;
}

.post-actions .action-button.is-active .icon-heart,
.post-actions .action-button.is-active .icon-bookmark {
  fill: currentColor;
}

.bottom-nav > a > .ui-icon {
  width: 23px;
  height: 23px;
  padding: 3px;
  overflow: visible;
  border-radius: 10px;
  transition: transform var(--transition), background var(--transition);
}

.bottom-nav > a.is-active > .ui-icon {
  background: var(--color-lemon-soft);
  transform: translateY(-1px);
}

.bottom-nav > a.nav-publish > .ui-icon {
  width: 31px;
  height: 31px;
  padding: 7px;
  background: var(--color-lemon);
  box-shadow: 0 6px 16px rgb(180 158 0 / 24%);
  color: #30301e;
}

.publish-fab > .ui-icon {
  width: 19px;
  height: 19px;
}

.empty-icon .ui-icon {
  width: 34px;
  height: 34px;
}

.upload-zone > span:first-child .ui-icon {
  width: 23px;
  height: 23px;
}

.image-preview-remove .ui-icon,
.toast [data-toast-close] .ui-icon {
  width: 15px;
  height: 15px;
}

.lightbox-close .ui-icon {
  width: 23px;
  height: 23px;
}

/* 1.1: trusted profiles, campus store and publish/AI chooser */
.bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.header-mall-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgb(36 223 170 / 24%);
  border-radius: 12px;
  color: #087a57;
  background: var(--color-mint-soft);
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.header-mall-link:hover,
.header-mall-link.is-active {
  border-color: rgb(36 223 170 / 50%);
  background: color-mix(in srgb, var(--color-mint-soft) 70%, white);
}

.header-mall-link:active {
  transform: scale(.96);
}

.header-mall-link .ui-icon {
  width: 16px;
  height: 16px;
}

.verified-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  color: #087a57;
  background: var(--color-mint-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
  gap: 3px;
}

.verified-badge .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.author-copy .verified-badge span,
.hot-users .verified-badge span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.author-copy .verified-badge,
.hot-users .verified-badge {
  min-height: 18px;
  padding: 2px 3px;
}

.publish-choice-dialog {
  position: relative;
  width: min(100%, 650px);
  padding: 30px;
  overflow: visible;
}

.modal-icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text-soft);
  background: var(--color-surface);
}

.modal-icon-close .ui-icon {
  width: 17px;
  height: 17px;
}

.publish-choice-heading {
  display: flex;
  align-items: center;
  padding-right: 36px;
  gap: 14px;
}

.publish-choice-heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--color-lemon);
}

.publish-choice-heading > span .ui-icon {
  width: 25px;
  height: 25px;
}

.publish-choice-heading p {
  color: var(--color-mint-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.publish-choice-heading h2 {
  margin-top: 1px;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.25;
}

.publish-choice-heading small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-soft);
}

.publish-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.publish-choice-card {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-surface-soft);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.publish-choice-card:hover {
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.publish-choice-card > span {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  color: #2c2d22;
  background: var(--color-lemon);
}

.publish-choice-card.is-ai > span {
  color: #087a57;
  background: var(--color-mint-soft);
}

.publish-choice-card > span .ui-icon {
  width: 25px;
  height: 25px;
}

.publish-choice-card strong {
  font-size: 18px;
}

.publish-choice-card small {
  margin-top: 4px;
  padding-right: 25px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.publish-choice-card > i {
  position: absolute;
  right: 18px;
  bottom: 23px;
  color: var(--color-text-faint);
}

.publish-choice-card > i .ui-icon {
  width: 18px;
  height: 18px;
}

.publish-choice-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 17px;
  color: var(--color-text-faint);
  font-size: 10px;
  gap: 6px;
}

.publish-choice-note .ui-icon {
  width: 14px;
  height: 14px;
}

.mall-shell,
.product-detail-shell {
  padding-bottom: 42px;
}

.mall-hero {
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 15%, rgb(255 255 255 / 55%), transparent 10rem),
    linear-gradient(125deg, var(--color-lemon) 0%, #fff8a0 55%, var(--color-mint-soft) 100%);
}

.mall-hero::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border: 44px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  content: "";
}

.mall-hero > div {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.mall-hero h1 {
  margin-top: 7px;
  font-size: clamp(29px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.mall-hero p {
  max-width: 42rem;
  margin-top: 12px;
  color: #596257;
}

.mall-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 36px;
  background: rgb(255 255 255 / 48%);
  box-shadow: 0 18px 45px rgb(124 112 0 / 12%);
  transform: rotate(4deg);
}

.mall-hero-icon .ui-icon {
  width: 52px;
  height: 52px;
  stroke-width: 1.7;
}

.mall-search {
  margin-top: 18px;
}

.mall-categories {
  display: flex;
  margin: 18px 0 28px;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}

.mall-categories::-webkit-scrollbar {
  display: none;
}

.mall-categories a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-text-soft);
  background: var(--color-surface);
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

.mall-categories a.is-active {
  border-color: #252922;
  color: #fff;
  background: #252922;
}

.mall-categories small {
  opacity: .65;
}

.mall-heading {
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.product-grid > .empty-state {
  grid-column: 1 / -1;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-cover {
  position: relative;
  display: grid;
  aspect-ratio: 1 / .8;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / 80%), transparent 35%),
    linear-gradient(145deg, var(--color-lemon-soft), var(--color-mint-soft));
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-cover img {
  transform: scale(1.035);
}

.product-cover > span .ui-icon {
  width: 48px;
  height: 48px;
  color: #778079;
  stroke-width: 1.5;
}

.product-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2e3020;
  background: var(--color-lemon);
  box-shadow: var(--shadow-xs);
  font-size: 9px;
}

.product-card-copy {
  padding: 15px;
}

.product-category {
  display: inline-flex;
  align-items: center;
  color: var(--color-mint-deep);
  font-size: 10px;
  font-weight: 800;
  gap: 4px;
}

.product-category .ui-icon {
  width: 13px;
  height: 13px;
}

.product-card h2 {
  margin-top: 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-copy > p {
  display: -webkit-box;
  min-height: 3.2em;
  margin-top: 6px;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-foot {
  display: flex;
  align-items: baseline;
  margin-top: 12px;
  gap: 6px;
}

.product-card-foot strong,
.product-price strong {
  color: #e14d41;
  font-size: 22px;
  letter-spacing: -.03em;
}

.product-card-foot strong small,
.product-price strong small {
  font-size: 12px;
}

.product-card-foot del,
.product-price del {
  color: var(--color-text-faint);
  font-size: 10px;
}

.product-card-foot > span {
  margin-left: auto;
  color: var(--color-text-faint);
  font-size: 9px;
}

.product-detail-shell .back-link {
  display: inline-flex;
  align-items: center;
  margin: 6px 0 16px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(18px, 4vw, 40px);
}

.product-main-image {
  display: grid;
  aspect-ratio: 1 / .78;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--color-lemon-soft), var(--color-mint-soft));
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  color: var(--color-text-soft);
  gap: 10px;
}

.product-placeholder .ui-icon {
  width: 58px;
  height: 58px;
  stroke-width: 1.4;
}

.product-thumbs {
  display: flex;
  margin-top: 10px;
  overflow-x: auto;
  gap: 8px;
}

.product-thumbs button {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  padding: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
}

.product-thumbs button.is-active {
  border-color: var(--color-mint);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.product-info {
  align-self: center;
}

.product-info h1 {
  margin-top: 9px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.product-price {
  display: flex;
  align-items: baseline;
  margin: 17px 0;
  gap: 9px;
}

.product-price strong {
  font-size: 36px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 13px 0;
  border-block: 1px solid var(--color-line);
  gap: 10px;
}

.product-meta div {
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid var(--color-line);
}

.product-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.product-meta dt {
  color: var(--color-text-faint);
  font-size: 10px;
}

.product-meta dd {
  display: flex;
  align-items: center;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 750;
  gap: 4px;
}

.product-meta dd .ui-icon {
  width: 14px;
  height: 14px;
}

.product-contact {
  display: flex;
  align-items: flex-start;
  margin: 18px 0;
  padding: 13px;
  border-radius: 14px;
  color: #7c6800;
  background: var(--color-lemon-soft);
  gap: 9px;
}

.product-contact > span .ui-icon {
  width: 18px;
  height: 18px;
}

.product-contact strong,
.product-contact small {
  display: block;
}

.product-contact strong {
  font-size: 11px;
}

.product-contact small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.5;
}

.product-description {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 38px);
}

.product-description > div:last-child {
  color: var(--color-text-soft);
  line-height: 1.9;
}

.related-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Verification centre */
.verification-shell {
  width: min(var(--content-width), calc(100% - 28px));
  margin: 26px auto 58px;
}

.verification-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  background: linear-gradient(125deg, #202620, #34423a);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.verification-hero-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  color: #2a2c21;
  background: var(--color-lemon);
}

.verification-hero-icon .ui-icon {
  width: 29px;
  height: 29px;
}

.verification-eyebrow,
.verification-section-kicker {
  color: var(--color-mint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.verification-hero h1 {
  margin-top: 2px;
  font-size: clamp(25px, 4vw, 36px);
}

.verification-hero p {
  margin-top: 4px;
  color: rgb(255 255 255 / 67%);
  font-size: 12px;
}

.verification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.verification-main,
.verification-aside {
  display: grid;
  gap: 16px;
}

.verification-certificate,
.verification-current,
.verification-form-panel,
.verification-history,
.verification-guide,
.verification-security,
.verification-notice {
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}

.verification-certificate,
.verification-current,
.verification-form-panel,
.verification-history {
  padding: clamp(20px, 4vw, 30px);
}

.verification-certificate {
  border-color: rgb(36 223 170 / 42%);
  background: linear-gradient(145deg, var(--color-surface), var(--color-mint-soft));
}

.verification-notice {
  display: flex;
  align-items: flex-start;
  padding: 17px 19px;
  color: #8a6800;
  background: var(--color-lemon-soft);
  gap: 11px;
}

.verification-notice-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.verification-notice h2 {
  font-size: 14px;
}

.verification-notice p {
  margin-top: 3px;
  font-size: 11px;
}

.verification-section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.verification-section-icon,
.verification-certificate-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--color-mint-deep);
  background: var(--color-mint-soft);
}

.verification-section-icon .ui-icon,
.verification-certificate-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.verification-section-copy h2 {
  margin-top: 2px;
  font-size: 19px;
}

.verification-section-copy p {
  margin-top: 3px;
  color: var(--color-text-soft);
  font-size: 11px;
}

.verification-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6d7600;
  background: var(--color-lemon-soft);
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
}

.verification-status .ui-icon {
  width: 14px;
  height: 14px;
}

.verification-status--approved {
  color: #087a57;
  background: var(--color-mint-soft);
}

.verification-status--rejected,
.verification-status--revoked {
  color: var(--color-danger);
  background: var(--color-danger-soft);
}

.verification-certificate-name {
  display: flex;
  align-items: center;
  margin-top: 23px;
  gap: 12px;
}

.verification-certificate-copy small,
.verification-certificate-copy strong {
  display: block;
}

.verification-certificate-copy small {
  color: var(--color-mint-deep);
  font-size: 10px;
  font-weight: 800;
}

.verification-certificate-copy strong {
  margin-top: 2px;
  font-size: 20px;
}

.verification-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  gap: 10px;
}

.verification-detail {
  padding: 13px;
  border-radius: 13px;
  background: var(--color-surface-soft);
}

.verification-detail dt {
  color: var(--color-text-faint);
  font-size: 9px;
}

.verification-detail dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 750;
}

.verification-description {
  margin-top: 19px;
}

.verification-description h3 {
  font-size: 12px;
}

.verification-description p {
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.verification-review-note,
.verification-privacy {
  display: flex;
  align-items: flex-start;
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 13px;
  color: var(--color-text-soft);
  background: var(--color-surface-soft);
  gap: 9px;
}

.verification-review-note > .ui-icon,
.verification-privacy > .ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.verification-review-note strong {
  font-size: 11px;
}

.verification-review-note p,
.verification-privacy p {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.6;
}

.verification-evidence {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.verification-evidence-item {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  background: var(--color-surface-soft);
}

.verification-evidence-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verification-fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.verification-legend,
.verification-label {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 800;
}

.verification-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.verification-type-option {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface-soft);
  gap: 10px;
}

.verification-type-option:has(input:checked) {
  border-color: var(--color-mint);
  box-shadow: 0 0 0 3px var(--color-mint-soft);
  background: #fff;
}

.verification-type-input {
  position: absolute;
  opacity: 0;
}

.verification-type-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--color-mint-deep);
  background: var(--color-mint-soft);
}

.verification-type-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.verification-type-copy strong,
.verification-type-copy small {
  display: block;
}

.verification-type-copy strong {
  font-size: 11px;
}

.verification-type-copy small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--color-text-faint);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.verification-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 21px;
}

.verification-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
}

.verification-field--wide {
  grid-column: 1 / -1;
}

.verification-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-line-strong);
  border-radius: 12px;
  outline: 0;
  background: var(--color-surface);
}

.verification-control:focus {
  border-color: var(--color-mint-deep);
  box-shadow: 0 0 0 3px var(--color-mint-soft);
}

.verification-control--textarea {
  min-height: 130px;
  resize: vertical;
}

.verification-help,
.verification-counter {
  color: var(--color-text-faint);
  font-size: 9px;
}

.verification-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--color-surface);
}

.verification-upload {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1.5px dashed var(--color-line-strong);
  border-radius: 16px;
  background: var(--color-surface-soft);
  text-align: left;
  gap: 12px;
}

.verification-upload:hover {
  border-color: var(--color-mint);
  background: var(--color-mint-soft);
}

.verification-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--color-mint-deep);
  background: #fff;
}

.verification-upload-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.verification-upload-copy strong,
.verification-upload-copy small {
  display: block;
}

.verification-upload-copy strong {
  font-size: 12px;
}

.verification-upload-copy small {
  margin-top: 3px;
  color: var(--color-text-faint);
  font-size: 9px;
}

.verification-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.verification-evidence-preview.image-preview-grid {
  margin-top: 4px;
}

.verification-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
}

.verification-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 13px;
  font-weight: 850;
  gap: 7px;
}

.verification-button--primary {
  color: #25271d;
  background: var(--color-lemon);
  box-shadow: 0 10px 24px rgb(170 150 0 / 17%);
}

.verification-button .ui-icon {
  width: 17px;
  height: 17px;
}

.verification-history-list {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.verification-history-item {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface-soft);
}

.verification-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verification-history-copy strong,
.verification-history-copy span {
  display: block;
}

.verification-history-copy strong {
  font-size: 12px;
}

.verification-history-copy span,
.verification-history-meta {
  color: var(--color-text-faint);
  font-size: 9px;
}

.verification-history-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 8px 13px;
}

.verification-history-note {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-soft);
  font-size: 10px;
}

.verification-empty {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border-radius: 15px;
  background: var(--color-surface-soft);
  gap: 11px;
}

.verification-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--color-text-faint);
  background: #fff;
}

.verification-empty-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.verification-empty h3 {
  font-size: 12px;
}

.verification-empty p {
  color: var(--color-text-faint);
  font-size: 10px;
}

.verification-guide,
.verification-security {
  padding: 20px;
}

.verification-aside-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-aside-header .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--color-mint-deep);
}

.verification-aside-header h2,
.verification-security h2 {
  font-size: 14px;
}

.verification-guide-list {
  display: grid;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  gap: 11px;
}

.verification-guide-item {
  display: flex;
  align-items: flex-start;
  color: var(--color-text-soft);
  font-size: 10px;
  line-height: 1.6;
  gap: 7px;
}

.verification-guide-item .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  color: var(--color-mint-deep);
}

.verification-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.verification-security-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 12px;
  color: #8a6800;
  background: var(--color-lemon-soft);
}

.verification-security-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.verification-security p {
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 10px;
  line-height: 1.6;
}

@media (min-width: 760px) {
  .publish-choice-modal {
    place-items: center;
  }
}

@media (max-width: 719px) {
  .mini-profile {
    display: none;
  }
}

@media (min-width: 720px) {
  .header-mall-link {
    display: none;
  }
}

@media (max-width: 380px) {
  .header-mall-link,
  .header-actions .icon-link {
    width: 38px;
    padding: 0;
  }

  .header-mall-link > span,
  .header-actions .icon-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .verification-layout {
    grid-template-columns: 1fr;
  }

  .verification-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bottom-nav > a > b {
    font-size: 8px;
  }

  .publish-choice-dialog {
    padding: 25px 18px 20px;
    border-radius: 25px 25px 18px 18px;
  }

  .publish-choice-grid {
    grid-template-columns: 1fr;
  }

  .publish-choice-card {
    min-height: 130px;
    padding-left: 92px;
  }

  .publish-choice-card > span {
    top: auto;
    bottom: 25px;
  }

  .mall-hero {
    min-height: 205px;
  }

  .mall-hero-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    border-radius: 25px;
  }

  .mall-hero-icon .ui-icon {
    width: 35px;
    height: 35px;
  }

  .product-grid,
  .related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .verification-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .verification-hero > .verification-status {
    grid-column: 1 / -1;
    width: max-content;
  }

  .verification-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mall-hero-icon {
    display: none;
  }

  .product-card-copy {
    padding: 12px;
  }

  .product-card h2 {
    font-size: 14px;
  }

  .product-card-copy > p {
    display: none;
  }

  .product-card-foot strong {
    font-size: 18px;
  }

  .product-card-foot > span {
    display: none;
  }

  .verification-shell {
    width: min(100% - 18px, 680px);
    margin-top: 12px;
  }

  .verification-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .verification-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .verification-type-grid,
  .verification-form-grid,
  .verification-details {
    grid-template-columns: 1fr;
  }

  .verification-evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .verification-form-actions,
  .verification-button {
    width: 100%;
  }
}

/* Fast-action feedback and no-refresh interaction states. */
form.is-pending button[type="submit"],
form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
}

form.is-pending .action-button,
form.is-pending .follow-btn,
form.is-pending .btn,
form.is-pending .ai-send-button,
form.is-pending .ai-new-button,
form.is-pending .ai-clear-button {
  opacity: 0.68;
}

form.is-pending .action-button .ui-icon,
form.is-pending .follow-btn .ui-icon,
form.is-pending .ai-send-button .ui-icon {
  animation: campus-action-pulse 0.8s ease-in-out infinite alternate;
}

.comment-list[aria-live="polite"] {
  scroll-margin-top: 88px;
}

.comment-item.is-new {
  animation: campus-comment-in 0.35s ease-out both;
}

.ai-message.ai-is-pending .ai-message-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
}

.ai-message.ai-is-pending .ai-message-content .ui-icon {
  width: 16px;
  height: 16px;
  animation: campus-action-pulse 0.7s ease-in-out infinite alternate;
}

@keyframes campus-action-pulse {
  from { opacity: 0.42; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes campus-comment-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  form.is-pending .ui-icon,
  .comment-item.is-new,
  .ai-message.ai-is-pending .ai-message-content .ui-icon {
    animation: none !important;
  }
}

/* Final specificity guards for components defined later in the legacy sheet. */
.circle-cover .vp-icon .ui-icon,
.product-cover .vp-icon .ui-icon {
  width: 48%;
  height: 48%;
  color: currentColor;
  stroke-width: 1.7;
}

.product-featured {
  color: #fff;
  background: rgb(31 38 33 / 0.82);
}

.profile-side dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-side dt .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--color-mint-deep);
}

.profile-gradient > .profile-cover-placeholder {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-page: #111512;
    --color-surface-soft: #202621;
    --color-line: #2c342e;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 25%);
    --shadow-sm: 0 12px 32px rgb(0 0 0 / 28%);
  }

  body {
    background:
      radial-gradient(circle at 6% -4%, rgb(255 241 53 / 0.06), transparent 25rem),
      radial-gradient(circle at 98% 12%, rgb(36 223 170 / 0.06), transparent 28rem),
      var(--color-page);
  }

  .card {
    border-color: rgb(53 64 56 / 0.92);
  }

  .mall-hero-points > span,
  .product-visual-note {
    border-color: rgb(255 255 255 / 0.22);
    background: rgb(20 27 22 / 0.42);
    color: rgb(255 255 255 / 0.75);
  }

  .upload-zone {
    background:
      radial-gradient(circle at 85% 15%, rgb(255 241 53 / 0.08), transparent 28%),
      linear-gradient(145deg, #1b211c, #17251f);
  }
}

/* Keep v1.4 component details above generic legacy card/label rules. */
.direct-messages-layout > .direct-inbox.card,
.direct-messages-layout > .direct-chat.card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.post-author > .anonymous-avatar.avatar {
  display: grid;
  place-items: center;
  border-color: #d9e0e9;
  background: linear-gradient(145deg, #eef2f7, #dfe6ef);
}
.post-labels .label-type.label-poll {
  color: #5b43cf;
  background: #eeeaff;
}
.post-labels .label-type.label-secondhand {
  color: #ae541b;
  background: #fff0df;
}
[data-direct-global-unread][hidden],
[data-direct-unread-count][hidden] {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .publish-type-card,
  .publish-template,
  .poll-option,
  .post-poll,
  .post-secondhand,
  .direct-chat,
  .direct-message-stream,
  .direct-message-content,
  .direct-composer {
    color: var(--color-text);
    border-color: var(--color-line);
    background: var(--color-surface-soft);
  }
  .direct-message.is-own .direct-message-content {
    background: rgb(255 241 53 / 0.14);
  }
}

/* 1.5.4 — calmer responsive density and one clear navigation layer. */
.site-body:not(.page-home) .announcement {
  display: none;
}

.desktop-nav a {
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .publish-fab {
    display: none;
  }

  .page-square .page-heading > .btn {
    display: none;
  }
}

@media (min-width: 720px) and (max-width: 1199px) {
  .site-body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    display: grid;
  }

  .header-mall-link {
    display: inline-flex;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mini-profile > span {
    display: none;
  }
}

@media (max-width: 719px) {
  :root {
    --header-height: 58px;
    --bottom-nav-height: 62px;
  }

  .site-header,
  .header-inner {
    min-height: var(--header-height);
  }

  .header-inner {
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .site-body:not(.page-home) .announcement {
    display: none;
  }

  .page-home .announcement {
    width: calc(100% - 20px);
    min-height: 34px;
    margin-top: 7px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .page-home .announcement > span {
    padding: 2px 6px;
    font-size: 9px;
  }

  .bottom-nav {
    min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    padding: 4px 6px env(safe-area-inset-bottom);
  }

  .bottom-nav > a {
    gap: 1px;
  }

  .bottom-nav > a > .ui-icon {
    width: 22px;
    height: 22px;
  }

  .bottom-nav > a.nav-publish > .ui-icon {
    width: 29px;
    height: 29px;
  }

  .page-shell,
  .content-shell,
  .profile-shell,
  .detail-layout,
  .publish-shell {
    padding: 10px 10px 28px;
  }

  .page-shell,
  .content-shell,
  .profile-shell,
  .publish-shell,
  .detail-main,
  .detail-side,
  .search-section,
  .main-column,
  .side-column,
  .section-block {
    gap: 12px;
  }

  .section-stack,
  .feed-list,
  .comment-list {
    gap: 12px;
  }

  .section-block + .section-block {
    margin-top: 2px;
  }

  .narrow-shell {
    width: min(calc(100% - 20px), 760px);
    padding: 10px 0 28px;
  }

  .page-heading {
    min-height: 42px;
    align-items: center;
    gap: 9px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
  }

  .page-square .page-heading > .btn {
    display: none;
  }

  .section-kicker {
    display: none;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .top-tabs.card,
  .profile-tabs.card,
  .topic-cloud-wide.card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .top-tabs {
    padding: 0 4px;
  }

  .top-tab {
    min-height: 45px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-banner {
    min-height: 185px;
    padding: 18px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    margin-top: 7px;
  }

  .hero-copy p {
    margin-top: 5px;
    font-size: 11px;
  }

  .page-square .topic-cloud-wide {
    flex-wrap: nowrap;
    padding: 6px 2px;
    overflow-x: auto;
    gap: 7px;
    scrollbar-width: none;
  }

  .page-square .topic-cloud-wide::-webkit-scrollbar {
    display: none;
  }

  .topic-chip {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .discover-search {
    padding: 5px;
    border-radius: 15px;
  }

  .discover-search > span,
  .discover-search > input:not([type="hidden"]) {
    min-height: 40px;
    height: 40px;
  }

  .circle-grid,
  .circle-grid.large-grid {
    gap: 10px;
  }

  .circle-card.card {
    padding: 9px;
    border-radius: 17px;
    box-shadow: none;
  }

  .circle-cover {
    aspect-ratio: 1.42;
  }

  .circle-copy h3 {
    margin-top: 8px;
  }

  .circle-copy p {
    display: none;
  }

  .circle-copy small {
    margin-top: 4px;
  }

  .circle-join-form {
    margin-top: 7px;
  }

  .circle-join-form .btn {
    min-height: 34px;
  }

  .post-card.card,
  .notification-list.card,
  .product-card.card,
  .resource-card.card {
    box-shadow: none;
  }

  .post-author {
    padding: 14px 14px 0;
  }

  .post-body {
    padding: 0 14px 14px;
  }

  .post-labels {
    margin-top: 10px;
  }

  .post-media {
    margin-top: 10px;
  }

  .post-actions {
    padding: 6px 8px 8px;
  }

  .post-actions > a,
  .post-actions > .post-views,
  .post-actions .action-button {
    min-height: 36px;
  }

  .profile-shell {
    gap: 10px;
  }

  .profile-hero {
    border-radius: 20px;
  }

  .profile-gradient {
    height: 88px;
  }

  .profile-hero > .profile-main {
    margin-top: -34px;
    padding: 0 14px;
    gap: 8px;
  }

  .profile-hero > .profile-main > .avatar-xl {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-width: 3px;
  }

  .profile-copy {
    flex-basis: 180px;
    padding-top: 35px;
  }

  .profile-copy h1 {
    font-size: 20px;
  }

  .profile-actions {
    margin-top: 2px;
    gap: 8px;
  }

  .profile-actions > .btn,
  .profile-actions > form {
    min-width: 0;
    flex: 1;
  }

  .profile-actions .btn {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .profile-hero > .profile-stats {
    margin: 10px 14px 0;
    padding: 10px 0 12px;
  }

  .profile-tabs.card {
    padding: 4px;
    border-radius: 14px;
    background: var(--color-surface-soft);
  }

  .profile-tabs > a {
    min-height: 38px;
    padding: 0 12px;
  }

  .profile-content {
    gap: 12px;
  }

  .profile-content .profile-side {
    display: none;
  }

  .page-mall .mall-hero {
    min-height: 164px;
    padding: 18px;
    border-radius: 23px;
  }

  .page-mall .mall-hero-copy {
    max-width: 63% !important;
  }

  .page-mall .mall-hero h1 {
    font-size: 27px;
  }

  .page-mall .mall-hero p {
    display: none;
  }

  .page-mall .mall-hero-points {
    margin-top: 10px;
  }

  .page-mall .mall-hero-points > span:nth-child(n + 2) {
    display: none;
  }

  .page-mall .mall-hero-visual {
    top: 15px;
    right: 14px;
    bottom: 15px;
    width: 32%;
  }

  .mall-search,
  .mall-categories {
    margin-top: 0;
  }

  .mall-categories {
    margin-bottom: 3px;
  }

  .product-grid,
  .related-products {
    gap: 10px;
  }
}

@media (max-width: 519px) {
  .header-actions {
    gap: 5px;
  }

  .header-mall-link,
  .header-actions .icon-link {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-mall-link > span,
  .header-actions .icon-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-copy p {
    display: none;
  }
}

/* 1.5.5 — full-bleed campus photography for the home hero. */
.page-home .hero-banner {
  isolation: isolate;
  display: flex;
  min-height: 238px;
  align-items: flex-end;
  padding: 28px;
  border: 0;
  border-radius: 26px;
  background: #233c31;
  box-shadow: 0 18px 42px rgb(29 53 40 / 16%);
  color: #fff;
}

.page-home .hero-banner.has-image {
  background-image: none;
}

.page-home .hero-banner::before {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgb(10 21 15 / 82%) 0%, rgb(10 21 15 / 52%) 46%, rgb(10 21 15 / 8%) 82%),
    linear-gradient(0deg, rgb(10 21 15 / 48%) 0%, transparent 64%);
  content: "";
  pointer-events: none;
}

.page-home .hero-default-visual {
  z-index: 0;
  inset: 0;
  width: auto;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  opacity: 1;
}

.page-home .hero-default-visual .visual-placeholder-photo {
  object-position: center 52%;
}

.page-home .hero-custom-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.page-home .hero-copy,
.page-home .hero-banner:not(.has-image) .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  max-width: 560px;
  color: #fff;
}

.page-home .hero-copy h1 {
  display: -webkit-box;
  max-width: 13em;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgb(0 0 0 / 28%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-home .hero-copy p,
.page-home .hero-banner.has-image .hero-copy p {
  display: -webkit-box;
  max-width: 34em;
  margin-top: 8px;
  overflow: hidden;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgb(0 0 0 / 24%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-home .hero-copy .btn {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 17px;
  border: 1px solid rgb(255 255 255 / 54%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 26px rgb(0 0 0 / 18%);
  color: #17231c;
  backdrop-filter: blur(10px);
}

@media (max-width: 1199px) {
  .page-home .hero-copy .btn {
    display: none;
  }
}

@media (max-width: 719px) {
  .page-home .hero-banner {
    min-height: 190px;
    padding: 19px;
    border-radius: 22px;
  }

  .page-home .hero-banner::before {
    background:
      linear-gradient(90deg, rgb(8 18 13 / 80%) 0%, rgb(8 18 13 / 46%) 58%, rgb(8 18 13 / 10%) 100%),
      linear-gradient(0deg, rgb(8 18 13 / 58%) 0%, transparent 72%);
  }

  .page-home .hero-copy,
  .page-home .hero-banner:not(.has-image) .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .page-home .hero-copy h1 {
    max-width: 11em;
    font-size: 28px;
  }

  .page-home .hero-copy p,
  .page-home .hero-banner.has-image .hero-copy p {
    display: -webkit-box;
    max-width: 28em;
    margin-top: 5px;
    font-size: 11px;
    -webkit-line-clamp: 1;
  }
}
