.app:has(#v3-v32-editor.active.editor04) {
  --edit04-cream:#faf6ef; --edit04-paper:#fffdfa; --edit04-line:#e7d7ca;
  --edit04-ink:#493532; --edit04-muted:#796358; --edit04-wine:#873a4c;
  --edit04-serif:"Songti SC","Noto Serif CJK SC",STSong,SimSun,serif;
  min-height:100dvh; background:var(--edit04-cream);
}
#v3-v32-editor.editor04 { max-width:640px; padding:23px 0 24px; color:var(--edit04-ink); }
.editor04 .editor04-head { display:flex; align-items:center; gap:10px; margin-bottom:17px; }
.editor04 .editor04-head h1 { margin:0; font-size:1.42rem; line-height:1.3; }
.editor04 .editor04-head small { color:var(--edit04-muted); font-size:.69rem; }
.editor04 .editor04-head > :is(button,span) {
  display:grid; place-items:center; width:44px; height:44px; flex:none;
  border:1px solid var(--edit04-line); border-radius:13px; background:#fff9f3; color:var(--edit04-wine);
}
.editor04 .editor04-head > span { margin-inline-start:auto; border-color:transparent; background:#f4e1dd; }
.editor04 .editor04-hero { padding:15px 16px; border:1px solid #ebd3cc; border-radius:18px; background:#f7e7e2; }
.editor04 .editor04-kicker { margin:0; color:#865741; font-size:.69rem; font-weight:800; letter-spacing:.09em; }
.editor04 .editor04-hero h2 { margin:6px 0; font:900 clamp(25px,7vw,34px)/1.37 var(--edit04-serif); }
.editor04 .editor04-hero em { color:var(--edit04-wine); font-style:normal; }
.editor04 .editor04-hero > p:not(.editor04-kicker) { margin:0; color:var(--edit04-muted); font-size:.82rem; }
.editor04 .editor04-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:11px; }
.editor04 .editor04-meta > :is(span,p) {
  display:inline-block; margin:0; padding:4px 8px; max-width:100%; overflow-wrap:anywhere;
  border-radius:16px; background:#fff9f3; color:var(--edit04-wine); font-size:.74rem;
}
.editor04 .editor04-meta [data-ui03-status="success"] { color:#365641; background:#edf5ee; }
.editor04 .editor04-meta [data-ui03-status="error"] { color:#7f3749; background:#fbe9eb; }
.editor04 .v32-editor-tabs {
  display:grid; margin:14px 0 17px; padding:4px; gap:5px;
  border:1px solid var(--edit04-line); border-radius:13px; background:#fff9f3;
}
.editor04 .v32-editor-tabs button { min-height:44px; border:0; border-radius:9px; color:var(--edit04-wine); font-weight:750; }
.editor04 .v32-editor-tabs button.active { background:var(--edit04-wine); color:white; }
.editor04 .v32-editor-layout { display:block; }
.editor04 .v32-editor-preview.v32-hidden { display:none!important; }
.editor04 .v32-editor-panel { padding:0; border:0; background:transparent; }
.editor04 .v32-editor-panel:not(.v32-hidden) { display:grid; gap:9px; }
.editor04 .v32-editor-panel > .editor04-kicker:not(:first-child) { margin-top:8px; }
.editor04 .v32-editor-panel :is(.editor04-card,.editor04-fold) {
  display:block; min-width:0; margin:0; padding:12px 13px;
  border:1px solid var(--edit04-line); border-radius:15px; background:var(--edit04-paper);
}
.editor04 .editor04-label { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px; margin:0 0 8px; }
.editor04 .editor04-label strong { font:780 .93rem/1.4 var(--sans); }
.editor04 .editor04-label small { color:var(--edit04-muted); font:italic .64rem Georgia,serif; letter-spacing:.04em; }
#v3-v32-editor.editor04 :is(.v3-input,.v3-textarea) {
  width:100%; min-width:0; min-height:44px; padding:9px 10px; border:1px solid var(--edit04-line); border-radius:10px;
  background:#fcf7f1; color:var(--edit04-ink); font:400 1rem/1.55 var(--sans); scroll-margin-block:14px 72px;
}
#v3-v32-editor.editor04 .v3-textarea { display:block; min-height:78px; max-height:18rem; field-sizing:content; overflow-y:auto; }
#v3-v32-editor.editor04 [data-final="reasoning"] { min-height:112px; }
.editor04 input[type="checkbox"] { accent-color:var(--edit04-wine); }
.editor04 .v32-editor-panel .editor04-toggle {
  display:flex; align-items:center; gap:8px; min-height:36px; margin:0; color:var(--edit04-ink); font-weight:750;
}
.editor04 .editor04-toggle input { flex:none; }
.editor04 .v32-editor-panel .editor04-defense { display:block; margin:10px 0 0; padding-top:10px; border-top:1px dashed var(--edit04-line); }
.editor04 .v32-rule-options { min-width:0; }
.editor04 .v32-editor-panel .v32-rule-card {
  display:flex; margin:0 0 5px; padding:8px; border:1px solid var(--edit04-line); border-radius:10px; background:#fcf7f1; overflow-wrap:anywhere;
}
.editor04 .v32-rule-card input { flex:none; }
.editor04 .v32-judgment-item {
  display:grid; grid-template-columns:minmax(0,1fr); gap:6px; margin-bottom:8px;
  padding:8px; border:1px solid var(--edit04-line); border-radius:11px; background:#fbf4ee;
}
.editor04 .v32-editor-panel .v32-judgment-item > label { margin:0; color:var(--edit04-muted); font-size:.76rem; }
.editor04 .v32-judgment-tools { justify-content:flex-end; gap:5px; }
.editor04 .v32-judgment-tools button {
  width:44px; height:44px; border:1px solid var(--edit04-line); border-radius:9px; background:#fff9f3; color:var(--edit04-wine);
}
.editor04 .v32-judgment-tools button:disabled { opacity:.43; }
.editor04 .editor04-add { min-height:44px; color:var(--edit04-wine); }
.editor04 .v32-editor-panel .editor04-fold { padding:0 13px; }
.editor04 .editor04-fold summary { cursor:pointer; padding:9px 0; color:var(--edit04-wine); font-weight:750; }
.editor04 .editor04-fold[open] { padding-bottom:9px; }
.editor04 .editor04-fold .v32-grid.two { gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.editor04 .editor04-fold [readonly] { background:#f4efe9; color:var(--edit04-muted); }
.editor04 .editor04-restore { background:#fff3ed; }
.editor04 .v32-lock-note { margin:0; padding:8px 10px; border:1px dashed var(--edit04-line); border-radius:10px; background:#fff9f3; color:var(--edit04-muted); }
.editor04 .editor04-paper { min-width:0; padding:10px 0; border-radius:12px; background:#eee3d7; }
.editor04 .editor04-paper > p { display:flex; justify-content:space-between; gap:4px; margin:0 0 8px; padding:0 9px; color:#785c4a; font:italic .72rem/1.5 Georgia,serif; }
.editor04 .v32-editor-actions { display:grid; gap:8px; margin-top:14px; }
.editor04 .v32-editor-actions .v32-edit-primary {
  min-height:49px; border:1px solid var(--edit04-wine); border-radius:13px; background:var(--edit04-wine); color:white;
  font-weight:800; box-shadow:0 4px 0 #6f2b3b;
}
.editor04 :is(button,input,textarea,summary):focus-visible { outline:2px solid #ad6573; outline-offset:2px; }
@media(max-width:767px) {
  .app:has(#v3-v32-editor.active.editor04) > .topbar { display:none; }
  .app:has(#v3-v32-editor.active.editor04) .bottom-nav { background:#fffaf5; }
  .app:has(#v3-v32-editor.active.editor04) .bottom-nav button {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:44px;
  }
  .app:has(#v3-v32-editor.active.editor04) .bottom-nav .v5-nav-icon { display:block; width:21px; height:21px; stroke-width:1.7; }
  .app:has(#v3-v32-editor.active.editor04) .bottom-nav .v5-nav-caption { display:block; font-size:.73rem; }
  .app:has(#v3-v32-editor.active.editor04) .bottom-nav .v5-nav-original { display:none; }
  .app:has(#v3-v32-editor.active.editor04 :is(input,textarea):focus) > .bottom-nav { position:static; }
}
