.owner-content-editor{--oc-line:var(--line,#dcd7e9);--oc-accent:var(--accent,#7053bf);min-width:0;overflow-wrap:anywhere}
.owner-content-editor .oc-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}
.owner-content-editor .oc-form{display:grid;gap:18px;margin-top:20px;min-width:0;padding:24px}
.owner-content-editor label{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:600}
.owner-content-editor input,.owner-content-editor select,.owner-content-editor button{font:inherit;min-height:44px;max-width:100%;box-sizing:border-box}
.owner-content-editor input,.owner-content-editor select{width:100%;font-size:16px;border:1px solid var(--oc-line);border-radius:8px;padding:10px;background:var(--card-strong,#fff);color:var(--text,#171923)}
.owner-content-editor input[type=checkbox]{width:24px;min-height:24px}
.owner-content-editor .oc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.owner-content-editor .oc-rich{min-height:190px;border:1px solid var(--oc-line);border-radius:8px;padding:16px;line-height:1.7;overflow-wrap:anywhere;background:var(--card-strong,#fff);color:var(--text,#171923)}
.owner-content-editor .oc-rich img{max-width:100%;height:auto}
.owner-content-editor .oc-rich-field{min-width:0}.owner-content-editor .oc-rich table{max-width:100%;border-collapse:collapse}.owner-content-editor .oc-rich td,.owner-content-editor .oc-rich th{border:1px solid var(--oc-line);padding:6px}
.owner-content-editor :is(input,select,button,[contenteditable]):focus-visible{outline:3px solid var(--oc-accent);outline-offset:3px}
.owner-content-editor .oc-preview{width:100%;height:420px;box-sizing:border-box;border:1px solid var(--oc-line);border-radius:8px;background:#fff;margin:12px 0}
.owner-content-editor .oc-diff dt{font-weight:700;margin-top:18px}.owner-content-editor .oc-diff dd{margin:8px 0 20px;padding:14px;border-left:3px solid var(--oc-accent)}
.owner-content-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:260px;overflow:auto}
.owner-content-editor .oc-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid var(--oc-line)}
.owner-content-editor .oc-row>div{min-width:0}.owner-content-editor .oc-row p{margin:6px 0}.owner-content-editor .oc-row button{flex-shrink:0}
.owner-content-editor .oc-search{display:grid;grid-template-columns:minmax(18rem,48rem) auto;align-items:end;gap:12px;margin:20px 0;justify-content:start}.owner-content-editor .oc-search label{min-width:0}.owner-content-editor .oc-search button{min-width:7rem}
.owner-content-editor .oc-status{min-height:24px}.owner-content-editor .oc-import-row{padding:16px;margin-top:14px}.owner-content-editor summary{cursor:pointer;min-height:36px;font-weight:600}
.owner-content-editor .oc-kes-reference{border:1px solid var(--oc-line);border-radius:10px;background:var(--card-strong,#fff);padding:0 16px 14px}
.owner-content-editor .oc-kes-reference summary{display:flex;align-items:center;padding:14px 0;list-style:none}.owner-content-editor .oc-kes-reference summary::-webkit-details-marker{display:none}.owner-content-editor .oc-kes-reference summary:before{content:'›';margin-right:9px;color:var(--oc-accent);font-size:20px;line-height:1;transition:transform .16s ease}.owner-content-editor .oc-kes-reference[open] summary:before{transform:rotate(90deg)}
.owner-content-editor .oc-kes-reference>label{margin:2px 0 12px;max-width:34rem}
.owner-content-editor .oc-kes-reference-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;max-height:21rem;overflow:auto;border:1px solid var(--oc-line);border-radius:8px;background:var(--oc-line)}
.owner-content-editor .oc-kes-reference-item{display:grid;grid-template-columns:minmax(5.5rem,.34fr) minmax(0,.66fr);gap:12px;align-items:start;padding:10px 12px;background:var(--card-solid,#fff)}
.owner-content-editor .oc-kes-reference-item strong{color:var(--oc-accent);overflow-wrap:anywhere}.owner-content-editor .oc-kes-reference-item span{min-width:0;color:var(--muted);overflow-wrap:anywhere}
.owner-content-editor .oc-history{line-height:1.8;padding-left:24px}.owner-content-editor [aria-busy=true]{opacity:.75}
@media(max-width:650px){.owner-content-editor .oc-fields{grid-template-columns:1fr}.owner-content-editor .oc-form{padding:16px}.owner-content-editor .oc-toolbar>*{flex:1 1 140px}.owner-content-editor .oc-search{grid-template-columns:1fr}.owner-content-editor .oc-search button{width:100%}.owner-content-editor .oc-row{align-items:start}.owner-content-editor .oc-kes-reference-list{grid-template-columns:1fr}.owner-content-editor .oc-kes-reference-item{grid-template-columns:minmax(5.5rem,.4fr) minmax(0,.6fr)}.owner-content-editor .oc-preview{height:360px}}
@media(prefers-reduced-motion:reduce){.owner-content-editor .oc-kes-reference summary:before{transition:none}}

.owner-content-editor .oc-table-scroll{overflow-x:auto;border:1px solid var(--oc-line);border-radius:12px;margin-top:16px}
.owner-content-editor .oc-catalog{width:100%;border-collapse:collapse;min-width:850px;font-size:14px}
.owner-content-editor .oc-catalog th{background:var(--card-strong);text-align:left;font-weight:700;white-space:nowrap}
.owner-content-editor .oc-catalog :is(th,td){padding:14px 12px;border-bottom:1px solid var(--oc-line);vertical-align:top}
.owner-content-editor .oc-catalog td:first-child{min-width:150px;font-weight:700}.owner-content-editor .oc-catalog td:nth-child(3){min-width:190px}.owner-content-editor .oc-catalog td:last-child{min-width:160px}.owner-content-editor .oc-catalog td:last-child button{margin:0 6px 6px 0}.owner-content-editor .oc-catalog tbody tr:hover{background:var(--card-strong)}
/* Spreadsheet workspace: existing colours, two readable text columns, one row editor. */
.owner-content-editor .oc-sheet-filters{grid-template-columns:minmax(16rem,2fr) auto minmax(7rem,.6fr) minmax(8rem,.8fr) minmax(10rem,1fr) auto auto;justify-content:stretch;gap:10px}
.owner-content-editor .oc-table-scroll{max-height:72vh;overflow:auto;scrollbar-gutter:stable}
.owner-content-editor .oc-sheet{table-layout:fixed;min-width:1420px}
.owner-content-editor .oc-sheet caption{text-align:left;padding:12px;font-weight:700;background:var(--card-strong)}
.owner-content-editor .oc-sheet th{position:sticky;top:0;z-index:2;background:var(--card-solid,var(--card-strong));white-space:normal}
.owner-content-editor .oc-sheet th:nth-child(1){width:160px}.owner-content-editor .oc-sheet th:nth-child(2){width:90px}.owner-content-editor .oc-sheet th:nth-child(3),.owner-content-editor .oc-sheet th:nth-child(4){width:330px}.owner-content-editor .oc-sheet th:nth-child(5){width:75px}.owner-content-editor .oc-sheet th:nth-child(6){width:95px}.owner-content-editor .oc-sheet th:nth-child(7){width:180px}
.owner-content-editor .oc-sheet :is(td,th){padding:10px;overflow-wrap:anywhere}
.owner-content-editor .oc-sheet td{font-size:14px;line-height:1.55}.owner-content-editor .oc-sheet th{font-size:12px}
.owner-content-editor .oc-sheet td:first-child,.owner-content-editor .oc-sheet td:nth-child(3),.owner-content-editor .oc-sheet td:last-child{min-width:0}
.owner-content-editor .oc-sheet td>p{margin:0 0 9px}.owner-content-editor .oc-sheet td>button{font-size:13px;margin-top:8px}
.owner-content-editor .oc-cell-content{max-height:260px;overflow:auto;line-height:1.55;white-space:normal;overscroll-behavior:contain}
.owner-content-editor .oc-cell-content p:first-child{margin-top:0}.owner-content-editor .oc-cell-content img{max-width:100%;height:auto}.owner-content-editor .oc-cell-content table{max-width:100%;table-layout:auto}.owner-content-editor .oc-cell-content:focus-visible{outline:3px solid var(--oc-accent);outline-offset:-3px}
.owner-content-editor .oc-inline-editor>td{padding:14px;background:var(--card-strong);border:2px solid var(--oc-accent)}
.owner-content-editor .oc-inline-editor .oc-form{margin:0;box-shadow:none}.owner-content-editor .oc-inline-editor .oc-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.owner-content-editor .oc-editor-texts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.owner-content-editor .oc-editor-texts .oc-rich{max-height:420px;overflow:auto}
@media(max-width:1150px){.owner-content-editor .oc-sheet-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.owner-content-editor .oc-sheet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-content-editor .oc-sheet-filters>label:first-child{grid-column:1/-1}.owner-content-editor .oc-editor-texts{grid-template-columns:1fr}.owner-content-editor .oc-inline-editor .oc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-content-editor .oc-inline-editor .oc-form{max-width:calc(100vw - 90px)}.owner-content-editor .oc-table-scroll{max-height:70vh}}
.owner-content-editor .oc-sheet-filters{grid-template-columns:minmax(16rem,2fr) auto minmax(10rem,1fr) auto auto}
.owner-content-editor .oc-sheet th>button{display:block;min-height:32px;margin-top:6px;font-size:12px;padding:4px 8px;max-width:100%}
.owner-content-editor .oc-filter-active{border:1px solid var(--oc-accent);color:var(--oc-accent)}
.owner-content-editor .oc-filter-backdrop{position:fixed;inset:0;z-index:49;background:transparent}
.owner-content-editor .oc-filter-popup{position:fixed;z-index:50;left:20px;top:100px;width:330px;max-width:calc(100vw - 24px);max-height:min(520px,calc(100vh - 24px));overflow:auto;box-sizing:border-box;background:var(--card-solid,var(--card-strong,#fff));border:1px solid var(--oc-line);border-radius:12px;padding:16px;box-shadow:0 12px 38px #0005}
.owner-content-editor .oc-filter-popup>strong{display:block;margin-bottom:12px}.owner-content-editor .oc-filter-popup .oc-toolbar{gap:8px;margin:10px 0}.owner-content-editor .oc-filter-popup button{font-size:14px}
.owner-content-editor .oc-filter-choices{max-height:210px;overflow:auto;border-top:1px solid var(--oc-line);border-bottom:1px solid var(--oc-line);padding:6px 0}
.owner-content-editor .oc-filter-choices label{display:flex;align-items:center;gap:10px;min-height:40px;padding:3px 6px;font-weight:400}.owner-content-editor .oc-filter-choices input{flex:none}
.owner-content-editor .oc-active-filters:empty{display:none}.owner-content-editor .oc-active-filters button{max-width:420px;white-space:normal;overflow-wrap:anywhere;text-align:left;border-color:var(--oc-accent)}
@media(max-width:850px){.owner-content-editor .oc-sheet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-content-editor .oc-sheet-filters>label:first-child{grid-column:1/-1}}
