:root {
  color-scheme: light;
  --ink: #22201e;
  --muted: #716b64;
  --line: #eeebe7;
  --orange: #c5431d;
  --paper: #fff;
  --top: 52px;
  --bottom: 54px;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f2f0ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: transparent; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #d6592d; outline-offset: 2px; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.boot-screen, .boot-error { min-height: 100dvh; display: grid; gap: .4rem; place-content: center; text-align: center; }
.boot-mark { color: var(--orange); font-size: 2rem; font-weight: 800; }

.app-frame {
  width: min(100%, 920px);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template: "top" auto "toolbar" auto "content" minmax(0, 1fr) "nav" auto / minmax(0, 1fr);
  background: var(--paper);
}
.topbar {
  grid-area: top;
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.site-bar {
  min-height: var(--top);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand > span { display: grid; place-items: center; width: 32px; height: 32px; background: #d9542a; border-radius: 9px; color: white; font-size: 18px; font-weight: 800; }
.trigger { white-space: nowrap; min-height: 36px; }
.area { min-width: 0; max-width: 110px; text-overflow: ellipsis; overflow: hidden; font-size: 12px; font-weight: 650; }
.area span { color: var(--muted); }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 20px; }
.search-trigger:hover, .search-trigger[aria-expanded="true"] { background: #f6f3f0; }
.search-trigger svg { width: 20px; height: 20px; }
.feed-toolbar { grid-area: toolbar; min-width: 0; background: white; border-bottom: 1px solid var(--line); z-index: 1; }
.feed-toolbar-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 12px; }
.views { display: flex; min-height: 44px; }
.views button { white-space: nowrap; position: relative; padding: 0 clamp(5px, 1.9vw, 15px); font-size: 14px; font-weight: 650; color: var(--muted); }
.views button[aria-current] { color: var(--ink); }
.views button[aria-current]::after { position: absolute; content: ""; height: 3px; inset: auto 7px 1px; background: var(--orange); border-radius: 3px; }
.browse-modes { display: flex; padding: 2px; border-radius: 9px; background: #f4f2ef; }
.browse-modes button { display: flex; align-items: center; gap: 4px; min-height: 29px; padding: 0 6px; border-radius: 7px; font-size: 12px; white-space: nowrap; color: #625e58; }
.browse-modes button[aria-pressed="true"] { background: white; color: var(--orange); box-shadow: 0 1px 3px #38201520; font-weight: 650; }
.browse-modes svg { width: 15px; height: 15px; }
.category-picker { margin-left: auto; min-width: 0; }
.category-picker select {
  width: 100%;
  max-width: 128px;
  min-height: 34px;
  padding: 3px 4px;
  border: 0;
  background: #f4f2ef;
  font-size: 12px;
  text-overflow: ellipsis;
}
.selected { color: var(--orange); }
.footer { grid-area: nav; background: white; z-index: 2; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer nav { min-height: var(--bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.footer button { display: grid; gap: 1px; justify-items: center; align-content: center; font-size: 11px; }
.footer button span { font-size: 21px; line-height: 1; }
.footer button:nth-child(3) span { border-radius: 12px; padding: 1px 8px 3px; color: white; background: #d9542a; }
.feed-content { grid-area: content; position: relative; overflow: auto; overscroll-behavior-y: contain; background: white; }
.feed-content.immersive { scroll-snap-type: y mandatory; touch-action: pan-y pinch-zoom; scrollbar-width: none; background: #211e1d; }
.feed-content.immersive::-webkit-scrollbar { display: none; }
.post {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px clamp(15px, 3vw, 26px) 5px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.post-author { display: flex; gap: 10px; align-items: center; }
.post-author strong { font-size: 15px; }
.avatar { display: grid; place-items: center; flex: 0 0 39px; height: 39px; overflow: hidden; background: #f7e7dc; color: #803116; border-radius: 50%; }
.post-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.follow { margin-left: auto; font-size: 12px; white-space: nowrap; padding: 5px 9px; border: 1px solid currentColor; border-radius: 20px; color: var(--orange); }
.follow[aria-pressed="true"] { color: inherit; opacity: .76; }
.post-type { width: max-content; max-width: 100%; font-size: 11px; font-weight: 650; color: var(--orange); }
.post-copy h2 { font-size: 17px; line-height: 1.4; margin: 3px 0 4px; }
.post-copy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-text { line-height: 1.65; font-size: 15px; white-space: pre-wrap; }
.read-more, .post-tags { font-size: 13px; color: #84513c; }
.post-tags button:hover { text-decoration: underline; }
.post-tags { display: flex; flex-wrap: wrap; column-gap: 10px; margin-top: 5px; }
.post-media { min-width: 0; width: min(100%, 550px); }
.images { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.images.multiple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.images.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.images button { min-width: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 9px; background: #f5f1ec; }
.images:not(.multiple) img { object-fit: contain; }
.images.multiple button { aspect-ratio: 1; }
.images .image-count { position: absolute; display: grid; place-items: center; inset: 0; background: #1515158c; color: white; font-size: 16px; font-weight: 650; }
.post-media video { width: 100%; max-height: 400px; border-radius: 10px; display: block; background: #222423; }
.post-actions { display: flex; align-items: center; gap: clamp(8px, 5vw, 36px); max-width: 550px; }
.post-actions button { min-height: 40px; min-width: 36px; display: inline-flex; justify-content: flex-start; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.post-actions button svg { width: 18px; height: 18px; }
.post-actions button:hover, .post-actions button[aria-pressed="true"] { color: var(--orange); }
.post-actions button[aria-pressed="true"] { font-weight: 700; }
.post-actions .more { margin-left: auto; justify-content: center; font-size: 20px; }
.immersive .post {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 285px;
  justify-content: flex-end;
  padding: 0 clamp(14px, 4vw, 28px) 6px;
  gap: 8px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: linear-gradient(155deg, #543b33, #211e1d 72%);
  border-color: #ffffff1f;
  color: white;
}
.immersive .post.has-media { background: #080808; }
.immersive .post.has-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: min(60%, 320px);
  background: linear-gradient(transparent, #080808a8 50%, #080808e8);
  pointer-events: none;
  z-index: 1;
}
.immersive .post-media {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}
.immersive .media-backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(24px);
  transform: scale(1.12);
  opacity: .64;
  pointer-events: none;
}
.immersive .images { position: relative; display: block; height: 100%; }
.immersive .images button { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
.immersive .images img { object-fit: contain; }
.immersive .images .image-count { inset: 12px 12px auto auto; min-height: 32px; padding: 4px 9px; border-radius: 18px; font-size: 12px; }
.immersive .post-media video {
  position: relative;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.immersive .post.has-video { padding-bottom: 56px; }
.immersive .has-media :is(.post-author, .post-copy, .post-actions) { position: relative; z-index: 2; }
.immersive .has-media :is(.post-copy h2, .post-text) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 4px #000a;
}
.immersive .post-meta, .immersive .post-type, .immersive .read-more, .immersive .post-tags { color: #f2d9ca; }
.immersive .post-author, .immersive .post-copy { pointer-events: none; }
.immersive .post-copy a { pointer-events: auto; }
.immersive h2 { font-size: clamp(18px, 4vw, 26px); }
.immersive .post-tags { display: none; }
.immersive .post-actions button { color: #fff; }
.immersive .post-actions button[aria-pressed="true"] { color: #ffb798; }
.immersive .feed-more { scroll-snap-align: end; color: white; }
.immersive .text-feature {
  height: auto;
  min-height: 100%;
  justify-content: flex-start;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(18px, 4vh, 38px) clamp(18px, 5vw, 48px) 10px;
  background: linear-gradient(150deg, #47312e, #25201e 75%);
}
.immersive .text-feature .post-copy { flex: 1 0 auto; }
.immersive .text-feature h2 { margin: 6px 0 14px; font-size: clamp(28px, 6.5vw, 52px); line-height: 1.16; }
.immersive .text-feature .post-text { font-size: clamp(16px, 3.8vw, 23px); line-height: 1.52; }
.immersive .text-feature .text-medium .post-text { font-size: clamp(19px, 4.8vw, 32px); }
.immersive .text-feature .text-short .post-text { font-size: clamp(23px, min(6vw, 4.5vh), 44px); }
.immersive .text-feature .post-actions { width: 100%; }
@media (min-width: 600px) {
  .app-frame { border-inline: 1px solid var(--line); }
  .site-bar { padding-inline: 22px; }
  .feed-toolbar-top { padding-inline: 15px 22px; gap: 10px; }
  .browse-modes button { padding-inline: 10px; }
  .category-picker select { min-width: 108px; }
}
@media (min-width: 1024px) {
  .app-frame { --top: 60px; --bottom: 64px; }
  .site-bar .brand-label { font-size: 21px; }
  .area, .views button, .post-author strong { font-size: 17px; }
  .browse-modes button, .category-picker select, .footer button, .post-meta, .post-type, .post-actions button { font-size: 14px; }
  .post-copy h2 { font-size: 22px; }
  .post-text { font-size: 18px; }
  .immersive .post:not(.text-feature) h2 { font-size: 26px; }
}
.detail-page { --detail-inset: clamp(16px, 5vw, 36px); scroll-padding-top: 52px; }
.detail-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--detail-inset);
  font-size: 14px;
  font-weight: 650;
}
.detail-bar button { justify-self: start; min-height: 42px; color: var(--orange); }
.detail-page .post { padding: 21px var(--detail-inset) 5px; gap: 16px; }
.detail-page .post h1 { margin: 5px 0 12px; font-size: clamp(24px, 5vw, 36px); line-height: 1.22; }
.detail-page .post-text { font-size: clamp(16px, 2.5vw, 19px); line-height: 1.72; }
.detail-page .post-media { width: 100%; max-width: none; }
.detail-page .post-media video { max-height: min(62dvh, 520px); }
.detail-page .images { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.detail-page .images button { aspect-ratio: auto; background: transparent; }
.detail-page .images img { height: auto; max-height: min(70dvh, 640px); object-fit: contain; }
.detail-page .post-actions { flex-wrap: wrap; }
.discussion { padding: 18px var(--detail-inset) 30px; }
.discussion h2 { margin: 0 0 10px; font-size: 18px; }
.discussion > p { color: var(--muted); font-size: 14px; }
.discussion > button { margin-bottom: 10px; min-height: 36px; color: var(--orange); }
.discussion .comment-form { padding-top: 10px; }
.discussion .comments li { padding: 12px 0; }
.feed-more { display: block; width: 100%; padding: 15px 0; color: var(--orange); }
.feed-status, .page-content { background: white; padding: 18px 15px; }
.feed-status button, .page-content p { color: var(--muted); }
.page-content h1 { font-size: 22px; margin: 0 0 12px; }
.page-content p { margin-top: 12px; }
.channel, .region-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.region-row[aria-pressed="true"] { color: var(--orange); font-weight: 700; }
.popover {
  position: absolute;
  z-index: 3;
  top: calc(var(--top) + env(safe-area-inset-top, 0px) + 4px);
  inset-inline: auto 6px;
  width: min(calc(100% - 12px), 300px);
  max-height: min(65dvh, 500px);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 30px #30271c25;
}
.areas { inset-inline: 6px auto; }
.areas > p { padding: 8px 0; font-size: 13px; color: var(--muted); }
input, select { background: white; border: 1px solid #ccc5bd; padding: 8px; border-radius: 6px; min-width: 0; }
.primary { background: #bf421e; color: #fff; border-radius: 7px; padding: 8px 9px; white-space: nowrap; }
.search, .comment-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search label { flex-basis: 100%; font-weight: 650; }
.search input, .comment-form input { flex: 1; }
.notice { position: absolute; z-index: 4; bottom: calc(var(--bottom) + 12px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; background: #292827; color: white; border-radius: 7px; padding: 8px 12px; font-size: 13px; }
dialog { max-height: min(75dvh, 680px); border: 0; border-radius: 16px; padding: 0; width: min(calc(100% - 20px), 520px); margin: auto auto max(7px, env(safe-area-inset-bottom, 0px)); }
dialog::backdrop { background: #0007; }
.dialog-body { padding: 12px 15px 16px; }
.dialog-body > p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.dialog-body > input { width: 100%; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { font-size: 18px; margin: 0; }
.dialog-heading button { min-width: 40px; min-height: 40px; font-size: 23px; }
.comments { padding: 0; margin: 0 0 10px; list-style: none; }
.comments li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 14px; }
.comments li p { line-height: 1.4; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.expanded-image { max-height: 59dvh; object-fit: contain; }
.image-picker { display: flex; gap: 6px; justify-content: center; padding-top: 8px; }
.image-picker button { min-width: 28px; min-height: 28px; border-radius: 7px; background: #eee; }
.image-picker button[aria-pressed="true"] { background: #bf421e; color: white; }
/* Shared community workspace and operations console */
.brand-label { font-size: 16px; letter-spacing: -.04em; white-space: nowrap; }
.workspace { padding: 24px clamp(14px,4vw,24px) 36px; color: #272622; }
.workspace-head, .office-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.workspace-head h1, .office-title h1 { margin:0 0 4px; font-size:clamp(24px,5vw,31px); letter-spacing:-.045em; }
.workspace-head p, .office-title p, .compact p { color:#746e63; line-height:1.6; }
.workspace h2, .office h2 { margin:0; font-size:17px; letter-spacing:-.02em; }
.surface { padding:16px; border:1px solid #ebe6de; border-radius:15px; background:#fff; }
.workspace > .surface + .surface, .workspace > .form-stack + .surface { margin-top:13px; }
.soft { min-height:34px; border-radius:9px; background:#f4eee6; color:#5d452e; padding:7px 11px; font-weight:650; }
.soft[aria-pressed="true"] { background:#e4ebdd; color:#3f5b38; outline:1px solid #adc29f; }
.buttons, .pill-grid, .post-detail-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.post-detail-actions { margin:12px 0 4px; }
.tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.tile { display:flex; align-items:center; gap:10px; text-align:left; padding:12px; border:1px solid #ebe6de; background:#fff; border-radius:14px; min-height:72px; }
.tile-icon, .person-avatar { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color:#744325; background:var(--tile-tone,#fae8db); font-size:18px; font-weight:750; }
.tile strong, .tile small { display:block; }
.tile strong { font-size:14px; white-space:nowrap; }
.tile small, .person small, .thread small { display:block; color:#746e63; font-size:11px; margin-top:4px; }
.chevron { margin-left:auto; color:#927963; }
.form-stack { display:grid; gap:13px; }
.form-stack label,.office-note,.field-with-action label { display:grid; gap:5px; font-size:13px; font-weight:650; }
.form-stack input,.form-stack textarea,.form-stack select,.field-with-action input,.office-note textarea { width:100%; min-width:0; min-height:39px; padding:9px 10px; border:1px solid #ded7cd; border-radius:9px; background:#fff; color:#28241e; font:inherit; font-weight:400; }
textarea { resize:vertical; }
.field-with-action { display:flex; align-items:end; gap:8px; }
.field-with-action label { flex:1; }
.field-with-action button { flex:none; }
.inline-notice { padding:9px 11px; margin:0 0 12px; border-radius:9px; font-size:13px; background:#e6efe4; color:#375434; }
.inline-notice.danger { background:#fff0e8; color:#913924; }
.person { display:flex; gap:12px; align-items:center; }
.person button { margin-left:auto; }
.stats, .office-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.stats div { background:#f8eee3; border-radius:12px; padding:11px; }
.stats small, .stats strong { display:block; }
.stats strong { font-size:24px; margin-top:4px; }
.menu-list button,.message-row,.record { width:100%; padding:10px 0; border-bottom:1px solid #eee8df; text-align:left; display:flex; align-items:center; gap:9px; }
.menu-list button:last-child,.message-row:last-child,.record:last-child { border:0; }
.menu-list button span,.record > span,.record > small,.menu-list small { margin-left:auto; }
.record small,.message-row small { display:block; color:#756d63; font-size:12px; }
.record strong { font-size:14px; }
.empty { padding:18px 8px; color:#746e63; text-align:center; font-size:14px; }
.workspace-dialog { border:0; width:min(94vw,580px); max-height:83dvh; padding:0; border-radius:15px; }
.workspace-dialog .dialog-body { display:grid; gap:12px; }
.workspace-dialog .dialog-heading { margin-bottom:1px; }
.result-list { display:grid; gap:4px; }
.result-list .compact { display:grid; gap:6px; }
.result-list h3,.form-stack h3,.compact h3 { margin:0; }
.answer { white-space:pre-wrap; line-height:1.6; }
.thread { display:grid; gap:10px; }
.thread > header { display:flex; align-items:center; gap:10px; }
.thread > header > button:last-child { margin-left:auto; }
.bubbles { min-height:195px; max-height:48vh; overflow:auto; padding:10px; background:#f8f4ef; border-radius:10px; display:flex; flex-direction:column; gap:8px; }
.bubble { max-width:82%; align-self:flex-start; background:#fff; border-radius:9px; padding:8px 11px; white-space:pre-wrap; overflow-wrap:anywhere; }
.bubble.mine { align-self:flex-end; background:#f4dfc9; }
.office { min-height:100dvh; background:#f6f2ec; color:#2d2b25; }
.office-header { height:64px; padding:0 clamp(12px,4vw,38px); border-bottom:1px solid #e9e1d5; display:flex; align-items:center; justify-content:space-between; background:#fffdf8; gap:8px; }
.office-brand { display:flex; align-items:center; gap:10px; }
.office-brand > span { background:#a14d2f; color:#fff; display:grid; place-items:center; border-radius:10px; width:37px; height:37px; font-weight:800; }
.office-brand small,.office-brand strong { display:block; }
.office-brand small { font-size:10px; color:#7e7060; }
.office-layout { display:grid; grid-template-columns:180px minmax(0,1fr); max-width:1200px; margin:0 auto; }
.office-nav { display:flex; flex-direction:column; gap:5px; padding:20px 12px; background:#eae1d3; }
.office-nav button { display:flex; align-items:center; gap:9px; text-align:left; white-space:nowrap; padding:10px 12px; font-size:14px; border-radius:8px; }
.office-nav button[aria-current] { color:#763d2a; background:#fffaf3; font-weight:700; }
.office-content { padding:clamp(13px,4vw,34px); min-width:0; }
.office-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.office-metrics button { text-align:left; padding:15px 12px; display:grid; gap:5px; }
.office-metrics strong { color:#9b442a; font-size:32px; line-height:1.2; }
.office-metrics small { color:#847463; }
.office-guide { margin-top:14px; }
.office-guide h2 { margin-bottom:5px; }
.console-table { padding:0 15px; }
.console-row { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; text-align:left; padding:13px 0; border-bottom:1px solid #eee8df; }
.console-row:last-child { border-bottom:none; }
.console-row small { display:block; color:#887b70; margin-top:4px; font-size:11px; }
.console-state { margin-left:auto; padding:4px 8px; border-radius:15px; background:#f5eee2; color:#694c32; white-space:nowrap; font-size:12px; }
.office-form,.office-login { max-width:450px; }
.office-login { margin:24px auto; width:min(94%,430px); }
.office-login h1 { margin:0 0 14px; }
.office-title h1,.office-login h1 { font-size:26px; }
.body-copy { white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-image { max-height:190px; object-fit:contain; }
.next-page { margin-top:12px; }
.demo-strip { padding:7px 12px; font-size:12px; text-align:center; color:#5b4432; background:#fbe9ce; }
@media (max-width:660px) {
  .office-layout { grid-template-columns:1fr; }
  .office-nav { padding:7px; overflow-x:auto; flex-direction:row; }
  .office-nav button { padding:8px; font-size:13px; }
  .office-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:420px) {
  .brand-label { display:none; }
  .tile { padding:9px; gap:7px; }
  .tile-icon { width:31px;height:31px; }
}
.edition-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.edition-grid input,.edition-grid select { min-width:0; }

.demo-indicator { align-self:center; padding:3px 5px; color:#7f4a2a; background:#f7e5cc; font-size:10px; border-radius:5px; white-space:nowrap; }

.cover-picker { min-width: 0; display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.cover-picker legend { padding: 0 6px; font-size: 14px; font-weight: 650; }
.cover-picker p { color: var(--muted); font-size: 13px; }
.cover-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cover-options label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.cover-options label:has(input:checked) { border-color: var(--orange); color: var(--orange); }
.cover-options label input { width: auto; min-height: auto; margin: 0; }
.cover-options img { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; object-fit: contain; background: #1a1918; border-radius: 4px; }

.wechat-qr { width: min(240px, 100%); height: auto; image-rendering: pixelated; justify-self: center; }


/* Production shell polish — 2026-11-26 */
body { background:#edf1f0; }
@media (min-width:921px) {
  .app-frame { border-inline:1px solid #dfe5e3; box-shadow:0 0 42px #25352f14; }
}
.workspace { width:100%; max-width:860px; margin-inline:auto; }
.surface { box-shadow:0 2px 10px #26352f08; }
.media-uploader { display:grid; gap:11px; padding:13px; border:1px solid #e5e0d8; border-radius:13px; background:#fbfaf8; }
.media-uploader-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.media-uploader-head > div { display:grid; gap:3px; min-width:0; }
.media-uploader-head strong { font-size:15px; }
.media-uploader-head small,.media-count { color:#776f66; font-size:12px; line-height:1.5; }
.media-add { position:relative; overflow:hidden; flex:none; cursor:pointer; }
.media-add input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.media-preview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.media-preview { min-width:0; margin:0; overflow:hidden; border:1px solid #e5dfd6; border-radius:11px; background:white; }
.media-preview-image { position:relative; display:grid; place-items:center; aspect-ratio:1; overflow:hidden; background:#f0ede8; color:#8b8177; }
.media-preview-image img { width:100%; height:100%; object-fit:cover; }
.media-preview-image b { position:absolute; left:6px; top:6px; padding:3px 6px; border-radius:999px; background:#201f1dcc; color:white; font-size:10px; font-weight:700; }
.media-preview figcaption { display:grid; gap:5px; padding:7px; }
.media-preview figcaption > span:first-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; color:#6f675f; }
.media-order-actions { display:flex; align-items:center; gap:3px; }
.media-order-actions button { min-width:28px; min-height:28px; padding:0 5px; border-radius:6px; background:#f5f1eb; font-size:11px; color:#5e544b; }
.media-order-actions button:last-child { margin-left:auto; color:#9a4936; }
@media (max-width:520px) {
  .media-uploader-head { align-items:flex-start; }
  .media-uploader-head small { max-width:220px; }
  .media-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Released-site shell refinement — 2026-11-26 */
.topbar { box-shadow:0 1px 0 #ffffff inset,0 3px 14px #26352f08; }
.brand > span { background:linear-gradient(145deg,#d9542a,#bd3e1b); box-shadow:0 4px 10px #a83d2026; }
.brand-label { letter-spacing:-.03em; }
.header-sector { color:#435159; }
.header-inbox,.search-trigger,.area { transition:background .15s ease,color .15s ease; }
.footer { box-shadow:0 -5px 20px #22352d0b; }
.footer button { position:relative; color:#7b817d; transition:color .15s ease,background .15s ease; }
.footer button.selected { color:#bd4a25; font-weight:700; background:linear-gradient(180deg,#fff,#fff8f4); }
.footer button.selected::before { content:""; position:absolute; top:0; width:24px; height:2px; border-radius:999px; background:#d9542a; }
.workspace-head { padding:17px 15px 10px; }
.workspace-head h1 { margin:0; letter-spacing:-.035em; }
.tiles { gap:10px; padding:4px 12px 16px; }
.tile { border:1px solid #ece9e4; border-radius:15px; background:#fff; box-shadow:0 5px 18px #2b322c0a; }
.tile:hover { border-color:#ddd7cf; transform:translateY(-1px); }
@media (min-width:700px) {
  .workspace-head { padding-inline:20px; }
  .tiles { padding-inline:20px; }
}

/* Unified page hierarchy and detail layout — 2026-11-26 */
.site-bar .detail-bar{position:static;display:block;min-height:0;padding:0;border:0;background:transparent;font:inherit;}
.header-back{flex:none;width:32px;min-height:38px;border-radius:9px;color:#b74725;font-size:27px;line-height:1}.header-back:hover{background:#fff2eb}
.header-sector{max-width:min(36vw,260px);overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:700;color:#38464b;border-left:1px solid #e5e9e9;padding-left:10px}.header-back-wrap+.header-sector{border-left:0;padding-left:0}
.header-inbox.push-right{margin-left:auto}.workspace{padding-top:14px}
.business-overlay-host{position:absolute;inset:0 auto auto 0;width:0;height:0;overflow:visible}.business-overlay-host .workspace{width:0;height:0;padding:0;overflow:visible}.business-overlay-host .workspace>:not(dialog){display:none!important}
.detail-page{--detail-inset:clamp(14px,3vw,28px);background:#f4f6f5;padding:16px 12px 28px;scroll-padding-top:16px}.detail-page .post{width:min(100%,780px);margin:0 auto;padding:24px clamp(18px,4vw,34px) 26px;gap:17px;border:1px solid #e4e8e6;border-radius:17px;box-shadow:0 8px 28px #2639330c;background:#fff}
.post-detail-heading{display:grid;gap:7px}.post-detail-heading .post-type{width:max-content;margin:0;padding:4px 8px;border-radius:999px;background:#fff0e8;color:#b44b2b;font-size:11px;font-weight:700}.detail-page .post-detail-heading h1{margin:0;font-size:clamp(25px,4.2vw,34px);line-height:1.25;letter-spacing:-.035em}
.detail-page .post-author{padding:0 0 14px;border-bottom:1px solid #edf0ee}.detail-page .post-copy{display:grid;gap:10px}.detail-page .post-text{font-size:clamp(15px,2.1vw,18px);line-height:1.8;color:#353d3a}
.post-business-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border-radius:13px;background:#f6f8f7;border:1px solid #e7ece9}.post-business-summary>div{min-width:0;padding:8px 9px;border-radius:9px;background:#fff}.post-business-summary small,.post-business-summary strong{display:block}.post-business-summary small{margin-bottom:4px;color:#87928d;font-size:11px}.post-business-summary strong{overflow:hidden;text-overflow:ellipsis;color:#26332e;font-size:14px;line-height:1.4}
.detail-page .post-detail-actions{margin:0;padding:11px 0 2px;border-top:1px solid #edf0ee}.detail-page .post-detail-actions button{min-height:40px;padding-inline:15px}.detail-page .post-media{width:100%;max-width:none;overflow:hidden;border-radius:13px;background:#f2f4f2}.detail-page .images{grid-template-columns:minmax(0,1fr);gap:8px}.detail-page .images button{display:flex;align-items:center;justify-content:center;width:100%;max-height:min(64dvh,560px);aspect-ratio:auto;overflow:hidden;border-radius:0;background:#f2f4f2}.detail-page .images img{width:auto;max-width:100%;height:auto;max-height:min(64dvh,560px);object-fit:contain;margin:auto}.detail-page .post-media video{width:100%;max-height:min(64dvh,560px);border-radius:0}.detail-page .post-actions{width:100%;max-width:none;padding-top:2px;border-top:1px solid #edf0ee}.detail-page .post-actions .more{margin-left:auto}
.discussion{width:min(100%,780px);margin:12px auto 0;padding:20px clamp(18px,4vw,34px) 24px;border:1px solid #e4e8e6;border-radius:17px;background:#fff;box-shadow:0 8px 28px #26393308}
@media(max-width:620px){.site-bar{gap:8px}.header-sector{max-width:34vw}.detail-page{padding:0;background:#fff}.detail-page .post{width:100%;margin:0;padding:18px 14px 20px;border:0;border-radius:0;box-shadow:none}.post-business-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-page .images button,.detail-page .images img,.detail-page .post-media video{max-height:56dvh}.discussion{width:100%;margin:0;padding:18px 14px 28px;border-width:1px 0 0;border-radius:0;box-shadow:none}}


/* Recruitment publishing, detail and resume application — 2026-11-26 */
.job-publish-structure {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid #e4e0d9;
  border-radius:14px;
  background:#fbfaf8;
}
.job-publish-structure h3 {
  margin:0;
  font-size:15px;
}
.job-publish-structure > label {
  display:grid;
  gap:6px;
}
.job-location-editor {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
  padding:10px;
  border-radius:10px;
  background:#f2f6f5;
}
.job-location-editor span {
  flex:1 1 180px;
  color:#68756f;
  font-size:12px;
  line-height:1.5;
}
.job-location-editor > button:last-child {
  color:#a64b35;
  background:transparent;
  font-size:12px;
}
.job-employer-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid #e7ecea;
  border-radius:13px;
  background:#f8faf9;
}
.job-employer-logo {
  display:grid;
  place-items:center;
  flex:0 0 54px;
  width:54px;
  height:54px;
  overflow:hidden;
  border:1px solid #e0e6e3;
  border-radius:12px;
  background:#fff;
  color:#237da4;
}
.job-employer-logo img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.job-employer-logo b {
  font-size:22px;
}
.job-employer-copy {
  display:grid;
  gap:3px;
  min-width:0;
}
.job-employer-copy small {
  color:#83908b;
  font-size:11px;
}
.job-employer-copy strong {
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:16px;
}
.job-employer-copy em {
  color:#19835d;
  font-size:12px;
  font-style:normal;
}
.job-reminder {
  padding:12px 14px;
  border-left:3px solid #dc8742;
  border-radius:9px;
  background:#fff7ed;
}
.job-reminder strong {
  font-size:13px;
}
.job-reminder p {
  margin:4px 0 0;
  color:#6f6258;
  font-size:13px;
  line-height:1.6;
}
.job-location-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border:1px solid #e3e9e6;
  border-radius:12px;
  background:#f8faf9;
}
.job-location-card > div {
  display:grid;
  gap:3px;
  min-width:0;
}
.job-location-card small {
  color:#84918c;
  font-size:11px;
}
.job-location-card strong {
  font-size:14px;
  line-height:1.45;
}
.job-location-card span {
  color:#2d8565;
  font-size:11px;
}
.job-location-card a {
  flex:none;
  color:#237da4;
  font-size:13px;
  font-weight:700;
}
.job-apply-actions {
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.job-apply-actions button {
  width:100%;
}
.job-apply-dialog {
  width:min(92vw,560px);
  max-height:86dvh;
  padding:0;
  border:0;
  border-radius:16px;
}
.job-apply-dialog::backdrop {
  background:#16231f73;
}
.job-apply-dialog .dialog-body {
  padding:18px;
}
.job-apply-dialog .dialog-heading > div {
  min-width:0;
}
.job-apply-dialog .dialog-heading small {
  color:#85908c;
  font-size:11px;
}
.job-apply-dialog .dialog-heading h2 {
  margin:2px 0 0;
  font-size:19px;
}
.job-apply-company {
  margin:0;
  color:#5c6864;
  font-size:13px;
}
.job-apply-dialog textarea {
  width:100%;
  min-height:170px;
}
@media (max-width:520px) {
  .job-publish-structure { padding:12px; }
  .job-employer-card { margin-inline:0; }
  .job-location-card { align-items:flex-start; }
  .job-apply-dialog {
    width:calc(100vw - 20px);
    max-height:90dvh;
  }
}


/* Verified publishing gate and verification readiness */
.publish-verification-gate {
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
  padding:18px;
  border:1px solid #dce8e5;
  background:linear-gradient(145deg,#fff,#f6faf8);
}
.publish-gate-mark {
  display:grid;
  place-items:center;
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#e8f4ef;
  color:#23795e;
  font-size:21px;
  font-weight:800;
}
.publish-gate-copy { display:grid; gap:10px; min-width:0; }
.publish-gate-copy h2,.verification-readiness h3 { margin:0; }
.publish-gate-copy p { margin:0; color:#68756f; line-height:1.6; }
.publish-gate-status { display:flex; flex-wrap:wrap; gap:7px; }
.publish-gate-status span {
  padding:6px 9px;
  border-radius:999px;
  background:#f2f4f3;
  color:#7a8581;
  font-size:12px;
}
.publish-gate-status span.done {
  background:#e7f5ee;
  color:#23795e;
  font-weight:700;
}
.verification-readiness {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid #e4e9e7;
  border-radius:13px;
  background:#f8faf9;
}
.verification-status-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.verification-status-grid > div {
  display:grid;
  gap:4px;
  padding:11px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e7ecea;
}
.verification-status-grid > div.done {
  border-color:#cde6db;
  background:#f3faf7;
}
.verification-status-grid strong { font-size:13px; }
.verification-status-grid .done strong,
.verification-status-grid > div.done strong { color:#23795e; }
.verification-status-grid small { color:#7c8883; line-height:1.45; }
.phone-bind-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.75fr);
  gap:9px;
  align-items:end;
}
.phone-bind-form label { min-width:0; }
.phone-bind-form .buttons { grid-column:1/-1; margin:0; }
@media (max-width:520px) {
  .publish-verification-gate { padding:14px; gap:10px; }
  .publish-gate-mark { width:40px; height:40px; flex-basis:40px; }
  .verification-status-grid,.phone-bind-form { grid-template-columns:1fr; }
  .phone-bind-form .buttons { grid-column:1; }
}


/* Event safety, giveaway safety and admin roster */
.event-safety-warning,
.giveaway-safety-note,
.giveaway-publish-settings {
  padding:12px 14px;
  border-radius:11px;
  line-height:1.55;
}
.event-safety-warning {
  border:1px solid #f0c68f;
  background:#fff8ec;
}
.event-safety-warning strong { color:#9a5c16; }
.event-safety-warning p,
.giveaway-safety-note p,
.giveaway-publish-settings p { margin:5px 0 0; }
.giveaway-safety-note,
.giveaway-publish-settings {
  border:1px solid #cfe5d9;
  background:#f2faf6;
}
.giveaway-safety-note strong { color:#28765a; }
.admin-event-roster {
  display:grid;
  gap:10px;
}
.admin-event-roster h3 { margin:0; }
.admin-event-roster > .record {
  display:flex;
  justify-content:space-between;
  gap:12px;
}
@media (max-width:520px) {
  .event-safety-warning,
  .giveaway-safety-note,
  .giveaway-publish-settings { padding:11px 12px; }
  .admin-event-roster > .record { display:grid; gap:3px; }
}
