/* Night Spring unified publish UI. Scoped to the native X5 post form. */
#postform.yyc-publish-page {
  --yyc-publish-surface: var(--yyc-surface, #fff);
  --yyc-publish-soft: var(--yyc-surface-soft, #f7f8fc);
  --yyc-publish-text: var(--yyc-text, #202436);
  --yyc-publish-muted: var(--yyc-text-muted, #74798b);
  --yyc-publish-border: var(--yyc-border, #e7e9f0);
  --yyc-publish-primary: var(--yyc-primary, #7568e8);
  --yyc-publish-radius: var(--yyc-radius-lg, 16px);
  display: block;
  color: var(--yyc-publish-text);
}

#postform.yyc-publish-page #ct {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0;
  background: transparent;
  border: 0;
}

#postform.yyc-publish-page #ct > .bm,
#postform.yyc-publish-page #editorbox,
#postform.yyc-publish-page #postbox {
  box-sizing: border-box;
  min-width: 0;
}

#postform.yyc-publish-page #ct > .bm {
  overflow: visible;
  padding: 22px;
  background: var(--yyc-publish-surface);
  border: 1px solid var(--yyc-publish-border);
  border-radius: var(--yyc-publish-radius);
  box-shadow: 0 10px 30px rgba(39, 44, 70, .06);
}

#postform.yyc-publish-page #editorbox > .tb,
#postform.yyc-publish-page #ct > .bm > .tb {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -4px 0 18px;
  padding: 4px 0 10px;
  border: 0;
  scrollbar-width: thin;
}

#postform.yyc-publish-page .tb li { flex: 0 0 auto; margin: 0; }
#postform.yyc-publish-page .tb a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 14px;
  color: var(--yyc-publish-muted);
  background: var(--yyc-publish-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
}
#postform.yyc-publish-page .tb .a a {
  color: var(--yyc-publish-primary);
  background: color-mix(in srgb, var(--yyc-publish-primary) 10%, white);
  border-color: color-mix(in srgb, var(--yyc-publish-primary) 24%, white);
}

/* The reward composer is a dedicated entry; do not offer a switch back to the
   ordinary new-thread composer from its post-type tabs. */
#postform.yyc-publish-page:has(input[name="special"][value="3"]) #editorbox > .tb > li:has(> a[onclick*="action=newthread')"]),
#postform.yyc-publish-page:has(input[name="special"][value="3"]) #ct > .bm > .tb > li:has(> a[onclick*="action=newthread')"]) {
  display: none;
}

#postform.yyc-publish-page #postbox { padding: 0; }
#postform.yyc-publish-page #postbox > .pbt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
}
#postform.yyc-publish-page #postbox > .pbt > span:has(#subject) { display: flex; align-items: center; gap: 10px; min-width: 180px; flex: 1 1 420px; }
#postform.yyc-publish-page #postbox > .pbt:has(#subject)::before {
  content: "* 标题";
  flex: 0 0 auto;
  color: #e5484d;
  font-size: 14px;
  font-weight: 600;
}
#postform.yyc-publish-page #postbox > .pbt > #subjectchk { flex: 0 0 auto; }
#postform.yyc-publish-page #subject,
#postform.yyc-publish-page #subjectbox select,
#postform.yyc-publish-page #postbox input.px,
#postform.yyc-publish-page #postbox select,
#postform.yyc-publish-page #postbox textarea.pt {
  box-sizing: border-box;
  min-height: 42px;
  max-width: 100%;
  color: var(--yyc-publish-text);
  background: #fff;
  border: 1px solid var(--yyc-publish-border);
  border-radius: 10px;
  outline: none;
}
#postform.yyc-publish-page #subject { width: 100% !important; padding: 9px 12px; font-size: 16px; }
#postform.yyc-publish-page #subject:focus,
#postform.yyc-publish-page #postbox input.px:focus,
#postform.yyc-publish-page #postbox select:focus,
#postform.yyc-publish-page #postbox textarea.pt:focus {
  border-color: var(--yyc-publish-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yyc-publish-primary) 14%, transparent);
}

#postform.yyc-publish-page .sinf,
#postform.yyc-publish-page #postbox > .exfm,
#postform.yyc-publish-page #postbox > .pbt,
#postform.yyc-publish-page #postbox > .vp-editor,
#postform.yyc-publish-page #seccheck {
  box-sizing: border-box;
  margin: 16px 0;
  padding: 18px;
  background: var(--yyc-publish-soft);
  border: 1px solid var(--yyc-publish-border);
  border-radius: 12px;
}

#postform.yyc-publish-page .sinf { float: none !important; width: auto !important; }
#postform.yyc-publish-page .sinf dl { display: grid; width: 100%; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 10px 16px; }
#postform.yyc-publish-page .sinf dt,
#postform.yyc-publish-page .sinf dd { float: none !important; box-sizing: border-box; min-width: 0; width: auto !important; margin: 0 !important; }
#postform.yyc-publish-page #postbox > table.tfm { width: 100%; table-layout: fixed; }
#postform.yyc-publish-page #postbox > table.tfm th { width: 128px; box-sizing: border-box; padding-right: 14px; white-space: normal; word-break: keep-all; }
#postform.yyc-publish-page #postbox > table.tfm td { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; }
#postform.yyc-publish-page #postbox > table.tfm td:last-child { width: 120px; }
#postform.yyc-publish-page #postbox > table.tfm input.px,
#postform.yyc-publish-page #postbox > table.tfm textarea.pt { width: 100% !important; }

#postform.yyc-publish-page #e_body {
  overflow: hidden;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(42, 48, 78, .06);
}
#postform.yyc-publish-page #e_controls,
#postform.yyc-publish-page #e_button {
  box-sizing: border-box;
  max-width: 100%;
  background: linear-gradient(180deg, #fbfbfe 0%, #f2f4f9 100%);
  border-bottom: 1px solid var(--yyc-publish-border);
}
#postform.yyc-publish-page #e_button { padding: 7px 10px; }
#postform.yyc-publish-page #e_controls { padding: 0; }
#postform.yyc-publish-page #e_textarea {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-height: 430px;
  padding: 18px !important;
  color: var(--yyc-publish-text);
  background: #fff;
  border: 0 !important;
  line-height: 1.8;
}
#postform.yyc-publish-page #e_bbar {
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--yyc-publish-muted);
  background: var(--yyc-publish-soft);
  border-top: 1px solid var(--yyc-publish-border);
}
#postform.yyc-publish-page #e_body:focus-within {
  border-color: color-mix(in srgb, var(--yyc-publish-primary) 55%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yyc-publish-primary) 12%, transparent), 0 10px 28px rgba(42, 48, 78, .08);
}

#postform.yyc-publish-page .vp-editor h3 { margin: 0 0 6px; font-size: 17px; }
#postform.yyc-publish-page .vp-editor h3::after {
  content: " · 支持粘贴多条链接，系统自动识别";
  color: var(--yyc-publish-muted);
  font-size: 13px;
  font-weight: 400;
}
#postform.yyc-publish-page .vp-editor p { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 12px 0; }
#postform.yyc-publish-page .vp-editor label { color: var(--yyc-publish-muted); }
#postform.yyc-publish-page .vp-editor #vp-paste { display: block; width: 100%; min-height: 132px; padding: 12px; resize: vertical; line-height: 1.65; }
#postform.yyc-publish-page .vp-editor #vp-preview { display: grid; gap: 8px; margin-top: 10px; }
#postform.yyc-publish-page .vp-editor input[readonly] { color: var(--yyc-publish-muted); background: #eef0f5; cursor: not-allowed; }

#postform.yyc-publish-page #seccheck:empty { display: none; }
#postform.yyc-publish-page .pnpost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--yyc-publish-border);
}
#postform.yyc-publish-page .pnpost .pn,
#postform.yyc-publish-page #postsubmit,
#postform.yyc-publish-page #postsave {
  box-sizing: border-box;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
}
#postform.yyc-publish-page #postsubmit { background: var(--yyc-publish-primary); border-color: var(--yyc-publish-primary); box-shadow: 0 7px 18px color-mix(in srgb, var(--yyc-publish-primary) 24%, transparent); }

#postform.yyc-publish-page #attachlist,
#postform.yyc-publish-page #imgattachlist,
#postform.yyc-publish-page .upfl { box-sizing: border-box; max-width: 100%; }

@media (max-width: 720px) {
  #postform.yyc-publish-page #ct { width: 100%; margin-bottom: 20px; padding: 0 10px; }
  #postform.yyc-publish-page #ct > .bm { padding: 14px; border-radius: 12px; }
  #postform.yyc-publish-page #postbox > .pbt { display: flex; align-items: stretch; }
  #postform.yyc-publish-page #postbox > .pbt > .ftid { flex: 0 0 100%; }
  #postform.yyc-publish-page #postbox > .pbt > span:has(#subject) { flex-basis: 100%; min-width: 0; }
  #postform.yyc-publish-page #postbox > .pbt > span:has(#subject) { align-items: flex-start; flex-direction: column; gap: 6px; }
  #postform.yyc-publish-page #postbox > .pbt:has(#subject)::before { flex-basis: 100%; }
  #postform.yyc-publish-page #e_textarea { min-height: 360px; padding: 14px !important; }
  #postform.yyc-publish-page #postbox > table.tfm,
  #postform.yyc-publish-page #postbox > table.tfm tbody,
  #postform.yyc-publish-page #postbox > table.tfm tr,
  #postform.yyc-publish-page #postbox > table.tfm th,
  #postform.yyc-publish-page #postbox > table.tfm td { display: block; width: 100% !important; box-sizing: border-box; }
  #postform.yyc-publish-page #postbox > table.tfm tr { padding: 12px 0; border-bottom: 1px dashed var(--yyc-publish-border); }
  #postform.yyc-publish-page #postbox > table.tfm th,
  #postform.yyc-publish-page #postbox > table.tfm td { padding: 3px 0; text-align: left; }
  #postform.yyc-publish-page #postbox > table.tfm td:last-child:empty { display: none; }
  #postform.yyc-publish-page .sinf,
  #postform.yyc-publish-page #postbox > .exfm,
  #postform.yyc-publish-page #postbox > .pbt,
  #postform.yyc-publish-page #postbox > .vp-editor,
  #postform.yyc-publish-page #seccheck { padding: 14px; }
  #postform.yyc-publish-page .sinf dl { display: block !important; }
  #postform.yyc-publish-page .sinf dt,
  #postform.yyc-publish-page .sinf dd { display: block; width: 100% !important; margin: 0 0 8px !important; white-space: normal; word-break: normal; }
  #postform.yyc-publish-page .vp-editor h3::after { display: block; margin-top: 4px; }
  #postform.yyc-publish-page .vp-editor p,
  #postform.yyc-publish-page .vp-editor label { display: block; width: 100%; }
  #postform.yyc-publish-page .vp-editor input,
  #postform.yyc-publish-page .vp-editor select { width: 100%; margin-top: 6px; }
  #postform.yyc-publish-page .pnpost { align-items: stretch; }
  #postform.yyc-publish-page .pnpost .pn,
  #postform.yyc-publish-page #postsubmit,
  #postform.yyc-publish-page #postsave { flex: 1 1 auto; }
}

/* Native X5 forum selector, themed by Night Spring. */
.yyc-publish-select-page{padding:28px 16px 42px}.yyc-publish-select{box-sizing:border-box;width:860px;max-width:calc(100vw - 36px);overflow:hidden;border:1px solid #e2e6ef;border-radius:16px;background:#fff;color:#202842;box-shadow:0 24px 70px rgba(27,36,65,.2)}.yyc-publish-select__head{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 26px 20px;background:linear-gradient(135deg,#f7f8ff,#eef5ff);border-bottom:1px solid #e1e7f1}.yyc-publish-select__head small{color:#7469df;font-size:11px;font-weight:800;letter-spacing:.14em}.yyc-publish-select__head h2{margin:5px 0 4px;font-size:25px}.yyc-publish-select__head p{margin:0;color:#707a91}.yyc-publish-select__close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.8);color:#65708a;font-size:25px;cursor:pointer}.yyc-publish-select__path{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 24px;border-bottom:1px solid #e8ebf2;background:#fbfcfe}.yyc-publish-select__path span{color:#8a92a6;font-size:12px}.yyc-publish-select__path strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yyc-publish-select__path strong em{font-style:normal;color:#766be3}.yyc-publish-select__path a{color:#356fcb}.yyc-publish-select__path a.is-disabled{color:#a5abba;pointer-events:none}.yyc-publish-select__columns{display:grid;grid-template-columns:1fr 1fr 1fr;height:330px;padding:0!important;margin:0!important;border:0!important}.yyc-publish-select__columns>section{min-width:0;overflow:auto;border-right:1px solid #e7eaf1;background:#fff}.yyc-publish-select__columns>section:last-child{border-right:0}.yyc-publish-select__columns h3{position:sticky;top:0;z-index:1;margin:0;padding:12px 16px;background:#f7f9fc;border-bottom:1px solid #e7eaf1;color:#69748c;font-size:12px}.yyc-publish-select__columns p{margin:0!important;padding:0!important}.yyc-publish-select__columns p a{position:relative;display:block;padding:11px 30px 11px 16px;border-bottom:1px solid #f0f2f6;color:#303951;line-height:1.35}.yyc-publish-select__columns p a:hover{background:#f5f7ff;color:#6558dc}.yyc-publish-select__columns p.is-active>a{background:#edeaff;color:#5d50d2;font-weight:700}.yyc-publish-select__columns a.has-children:after{content:'›';position:absolute;right:14px;color:#929aab;font-size:18px}.yyc-publish-select__empty{padding:24px 16px!important;color:#a0a7b7!important;text-align:center}.yyc-publish-select__actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-top:1px solid #e3e7ef;background:#fafbfe}.yyc-publish-select__actions p{margin:0}.yyc-publish-select__actions b,.yyc-publish-select__actions span{display:block}.yyc-publish-select__actions span{margin-top:3px;color:#8991a4;font-size:12px}.yyc-publish-select__actions button{min-width:170px;height:42px;border:0;border-radius:9px;background:#6f62e5;color:#fff;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(111,98,229,.22)}.yyc-publish-select__actions button:disabled{background:#dce0e8;color:#9299a8;box-shadow:none;cursor:not-allowed}
@media(max-width:720px){.yyc-publish-select{width:100%;max-width:none;border-radius:0}.yyc-publish-select__head{padding:18px}.yyc-publish-select__head h2{font-size:22px}.yyc-publish-select__columns{grid-template-columns:1fr;height:auto;max-height:58vh;overflow:auto}.yyc-publish-select__columns>section{min-height:100px;overflow:visible;border-right:0;border-bottom:1px solid #e7eaf1}.yyc-publish-select__actions{align-items:stretch;flex-direction:column;padding:14px 18px}.yyc-publish-select__actions button{width:100%}}

/* Forum selector spacing overrides native .pbl rules. */
.yyc-publish-select .yyc-publish-select__columns{display:grid!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;height:390px!important;padding:0!important;margin:0!important;border:0!important}.yyc-publish-select .yyc-publish-select__columns>section{box-sizing:border-box;min-width:0;overflow:auto;padding:0 10px 14px;border-right:1px solid #e7eaf1;background:#fff}.yyc-publish-select .yyc-publish-select__columns>section:last-child{border-right:0}.yyc-publish-select .yyc-publish-select__columns h3{position:sticky;top:0;z-index:2;margin:0 -10px 10px!important;padding:14px 18px!important;background:#f7f9fc;border-bottom:1px solid #e7eaf1;color:#69748c;font-size:13px;line-height:1.4}.yyc-publish-select .yyc-publish-select__columns p{box-sizing:border-box!important;width:100%!important;margin:5px 0!important;padding:0!important;border:0!important}.yyc-publish-select .yyc-publish-select__columns p a{position:relative;display:flex!important;box-sizing:border-box!important;align-items:center;width:100%!important;min-height:46px;padding:10px 34px 10px 14px!important;border:1px solid transparent!important;border-radius:9px;color:#303951;line-height:1.55!important;white-space:normal;word-break:break-word}.yyc-publish-select .yyc-publish-select__columns p a:hover{border-color:#dedafc!important;background:#f5f3ff;color:#6558dc}.yyc-publish-select .yyc-publish-select__columns p.is-active>a{border-color:#d8d2ff!important;background:#edeaff;color:#5d50d2;font-weight:700;box-shadow:0 4px 12px rgba(93,80,210,.08)}.yyc-publish-select .yyc-publish-select__columns a.has-children:after{content:'›';position:absolute;right:14px;color:#929aab;font-size:20px}.yyc-publish-select .yyc-publish-select__empty{display:flex;align-items:center;justify-content:center;min-height:90px!important;margin:8px 0!important;padding:20px 16px!important;border:1px dashed #e1e5ed!important;border-radius:9px!important;color:#a0a7b7!important;text-align:center}
@media(max-width:720px){.yyc-publish-select .yyc-publish-select__columns{grid-template-columns:1fr!important;height:auto!important;max-height:58vh!important;overflow:auto!important}.yyc-publish-select .yyc-publish-select__columns>section{min-height:110px;overflow:visible;border-right:0;border-bottom:1px solid #e7eaf1}}
#fwin_nav{top:clamp(12px,calc((100vh - 664px)/2),120px)!important}.yyc-publish-select{display:flex;max-height:calc(100vh - 24px);flex-direction:column}.yyc-publish-select .yyc-publish-select__columns{min-height:180px;flex:1 1 390px}
@media(max-width:720px){#fwin_nav{left:10px!important;right:10px!important;width:auto!important;top:10px!important}#fwin_nav>.fwin,#fwin_content_nav{width:100%!important;box-sizing:border-box}.yyc-publish-select{width:100%;max-width:none;max-height:calc(100vh - 20px);border-radius:12px}.yyc-publish-select .yyc-publish-select__columns{min-height:0;flex:1 1 auto}}
.mp-acq-choice input[type="radio"]{width:1px!important;height:1px!important;min-width:0!important;margin:0!important}
