.content-factory-page .content{max-width:none}
.cf-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.cf-back{display:none;color:var(--accent-strong);font-size:12px;text-decoration:none}
.cf-head h1{margin:0;font-size:27px;line-height:1.2;letter-spacing:-.025em}
.cf-head p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.cf-head .cf-quiet{padding:7px 10px;border:1px solid #cfe0de;border-radius:6px;background:#f2f9f7;color:#27776e;font-size:11px;white-space:nowrap}
.cf-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:16px;padding:15px 17px}
.cf-toolbar label{display:grid;gap:5px;min-width:158px;color:#58686e;font-size:11px;font-weight:600}
.cf-toolbar input,.cf-toolbar select,.cf-editor input,.cf-editor textarea,.cf-chat textarea,.cf-pin input{width:100%;min-height:36px;padding:8px 10px;border:1px solid #cfd9db;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.cf-toolbar input:focus-visible,.cf-toolbar select:focus-visible,.cf-editor input:focus-visible,.cf-editor textarea:focus-visible,.cf-chat textarea:focus-visible,.cf-pin input:focus-visible{outline:3px solid rgba(11,143,129,.22);border-color:var(--accent)}
.cf-toolbar .cf-count{margin-left:auto;align-self:center;color:var(--muted);font-size:12px}
.cf-layout{display:grid;grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:16px;align-items:start}
.cf-list{min-width:0;overflow:hidden}
.cf-list-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--line)}
.cf-list-head strong{font-size:13px}.cf-list-head span{color:var(--muted);font-size:11px}
.cf-items{max-height:calc(100vh - 252px);min-height:320px;overflow:auto;padding:6px}
.cf-item{display:block;width:100%;padding:12px;text-align:left;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);cursor:pointer}
.cf-item:hover{background:#f5f8f8}.cf-item.is-active{border-color:#b5d9d3;background:#eef8f5}
.cf-item-top{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}
.cf-item strong{display:block;margin:6px 0 5px;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.cf-item small{color:var(--muted);font-size:11px}.cf-item .cf-dot{color:var(--accent);font-size:11px}
.cf-detail{min-width:0;padding:20px 22px 24px}
.cf-detail-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--line)}
.cf-detail-head h2{margin:5px 0 0;font-size:21px;line-height:1.3;letter-spacing:-.018em;overflow-wrap:anywhere}
.cf-detail-head .cf-status{display:inline-flex;align-items:center;max-width:240px;padding:6px 9px;border:1px solid #d4e2e0;border-radius:6px;background:#f5faf9;color:#3b746e;font-size:11px;white-space:normal}
.cf-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0}
.cf-meta div{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft)}
.cf-meta dt{margin:0 0 5px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.cf-meta dd{margin:0;font-size:12px;overflow-wrap:anywhere}
.cf-brief{margin:0 0 20px;padding:12px 14px;border-left:3px solid #acd7d1;background:#f5faf9;color:#42545a;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.cf-section{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.cf-section:first-of-type{margin-top:0;padding-top:0;border-top:0}
.cf-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.cf-section-title h3{margin:0;font-size:16px}.cf-section-title small{color:var(--muted);font-size:11px}
.cf-editor{display:grid;gap:11px}
.cf-editor label{display:grid;gap:6px;color:#4b5c62;font-size:11px;font-weight:600}
.cf-editor textarea{min-height:195px;resize:vertical;font-size:13px;line-height:1.55}
.cf-editor textarea.cf-notes{min-height:86px}
.cf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.cf-actions .cf-revision{color:var(--muted);font-size:11px}
.cf-history{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.cf-history li{display:flex;gap:8px;align-items:baseline;color:var(--muted);font-size:11px}
.cf-history strong{color:#46615f;font-weight:600}
.cf-chat-log{max-height:320px;min-height:80px;overflow:auto;display:grid;gap:10px;margin-bottom:12px}
.cf-turn{padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:#f8fafa}
.cf-turn .cf-question{margin:0 0 7px;color:#3b5558;font-size:12px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.cf-turn .cf-answer{margin:0;color:var(--ink);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.cf-chat{display:grid;gap:9px}.cf-chat textarea{min-height:75px;resize:vertical;font-size:12px;line-height:1.5}
.cf-chat button:disabled{opacity:.48;cursor:not-allowed}
.cf-chat[data-dirty="true"] [data-chat-hint]{color:#8b4d49;font-weight:600}
.cf-message{margin:0 0 14px;padding:11px 13px;border:1px solid #d7e3e1;border-radius:7px;background:#f4f9f8;color:#4d6465;font-size:12px;line-height:1.45}
.cf-message.is-error{border-color:#ebc6c5;background:#fff7f6;color:#8b4d49}
.cf-empty{padding:28px;color:var(--muted);font-size:13px;text-align:center}
.cf-pin{max-width:520px;margin:60px auto;padding:30px}
.cf-pin h1{margin:0 0 8px;font-size:23px}.cf-pin p{margin:0 0 18px;color:var(--muted);font-size:13px;line-height:1.5}
.cf-pin form{display:grid;gap:10px}.cf-pin label{display:grid;gap:5px;color:#526166;font-size:12px;font-weight:600}
.cf-pin .button{justify-self:start}
.cf-disabled-note{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.cf-error{max-width:600px;margin:45px auto;padding:28px}.cf-error h1{margin:0 0 8px;font-size:21px}.cf-error p{color:var(--muted);font-size:13px;line-height:1.5}
@media(max-width:1120px){.cf-layout{grid-template-columns:minmax(240px,290px) minmax(0,1fr)}.cf-detail{padding:18px}.cf-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.cf-layout{display:block}.cf-list{margin-bottom:14px}.cf-items{max-height:280px;min-height:0}.cf-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.cf-head{align-items:flex-start}}
@media(max-width:620px){.content-factory-page .app-shell{display:block}.content-factory-page .sidebar{position:static;width:auto;height:auto;min-height:0;padding:10px 14px}.content-factory-page .sidebar .nav,.content-factory-page .sidebar-foot,.content-factory-page .topbar{display:none}.content-factory-page .workspace{display:block}.content-factory-page .content{padding:18px 14px 30px}.cf-back{display:inline-block;margin:0 0 14px}.cf-head{display:block}.cf-head .cf-quiet{display:inline-block;margin-top:12px}.cf-toolbar{gap:10px}.cf-toolbar label{flex:1 1 140px}.cf-toolbar .cf-count{margin-left:0}.cf-detail{padding:16px}.cf-detail-head{display:block}.cf-detail-head .cf-status{margin-top:12px}.cf-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
