#contentEditorPanel{color:inherit;text-align:left;min-width:0;font-family:'Libre Baskerville',Georgia,serif}
#contentEditorPanel .editor-intro{border-bottom:1px solid #a3967a;padding:0 0 14px;margin-bottom:16px}
#contentEditorPanel h4{font-size:22px;margin:0 0 8px;color:#314b3c}
#contentEditorPanel p{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
#contentEditorPanel .editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#contentEditorPanel label{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:12px;font-weight:700;min-width:0}
#contentEditorPanel input,#contentEditorPanel select,#contentEditorPanel textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #a3967a;border-radius:3px;background:#fffdf6;color:#252b24;font:inherit;font-size:13px}
#contentEditorPanel textarea{resize:vertical;line-height:1.5}
#contentEditorPanel input:focus-visible,#contentEditorPanel select:focus-visible,#contentEditorPanel textarea:focus-visible,#contentEditorPanel button:focus-visible{outline:3px solid #8e6c29;outline-offset:2px}
#contentEditorPanel .editor-check{flex-direction:row;align-items:center;gap:10px}
#contentEditorPanel .editor-check input{width:20px;min-height:20px;accent-color:#314b3c}
#contentEditorPanel fieldset{margin:18px 0;padding:14px;border:1px solid #b3a68d;background:rgba(255,253,246,.45);min-width:0}
#contentEditorPanel legend{font-size:13px;font-weight:700;padding:0 7px}
#contentEditorPanel .editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
#contentEditorPanel button{white-space:normal;min-height:44px;font:inherit;font-size:11px;line-height:1.4;cursor:pointer}
#contentEditorPanel button[aria-pressed=true]{background:#314b3c;color:#fffdf6}
#contentEditorPanel .editor-note{color:#655d4c}
#contentEditorPanel .editor-effect{border-left:3px solid #8e6c29;padding:10px 14px;background:#f3ebd9}
#contentEditorPanel [data-editor-status]{font-weight:700;color:#24513b}
#contentEditorPanel [data-editor-status].is-error{color:#9b2424}
#contentEditorPanel [data-world-status]{font-weight:700;color:#24513b}
#contentEditorPanel [data-world-status].is-error{color:#9b2424}
#contentEditorPanel .world-changes{padding:0;list-style:none}
#contentEditorPanel .world-changes li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #b3a68d;padding:8px 0;font-size:12px}
#contentEditorPanel .world-changes span{min-width:0;overflow-wrap:anywhere}
#contentEditorPanel .world-changes button{flex-shrink:0}
#contentEditorPanel fieldset[disabled]{opacity:.65}
#contentEditorPanel .editor-help{border-top:1px solid #b3a68d;margin-top:20px;padding-top:16px}
#contentEditorPanel .editor-base-categories{list-style:none;padding:0;max-height:360px;overflow:auto;overscroll-behavior:contain}
#contentEditorPanel .editor-base-categories li{padding:12px 0;border-bottom:1px solid #b3a68d;font-size:12px}
#contentEditorPanel summary{cursor:pointer;font-size:12px;padding:8px 0}
@media(max-width:600px){#contentEditorPanel .editor-grid{grid-template-columns:1fr}#contentEditorPanel .editor-toolbar>button{flex:1 1 140px}#contentEditorPanel fieldset{padding:10px}#contentEditorPanel input,#contentEditorPanel select,#contentEditorPanel textarea{font-size:16px}.global-profile-tabs{flex-wrap:wrap}}
/* A fixed editor surface prevents re-centering when a consequence grows. */
#contentEditorModal{align-items:flex-start;overflow:hidden}
.content-editor-card{height:calc(var(--pps-viewport-height,100dvh) - 36px);max-height:calc(var(--pps-viewport-height,100dvh) - 36px);overflow:auto;overflow-anchor:none;scrollbar-gutter:stable;overscroll-behavior:contain}
#contentEditorPanel .editor-consequence{border-left:3px solid #a3967a;padding:0 12px 12px;margin:12px 0;background:#fffdf6}
#contentEditorPanel [data-editor-preview]{border:2px solid #314b3c;padding:16px;margin:18px 0;background:#fffdf6}
#contentEditorPanel [data-editor-preview][hidden]{display:none}
#contentEditorPanel .editor-confirm{position:fixed;z-index:300;bottom:16px;left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 40px));box-sizing:border-box;padding:16px;background:#fffdf6;color:#252b24;border:2px solid #314b3c;box-shadow:0 4px 24px #0005}
#contentEditorPanel .editor-confirm button{margin-right:12px}
@media(max-width:600px){.content-editor-card{height:calc(var(--pps-viewport-height,100dvh) - 18px);max-height:calc(var(--pps-viewport-height,100dvh) - 18px)}#contentEditorPanel .editor-consequence{padding:0 8px 8px}}

#contentEditorPanel [data-editor-categories]>summary{min-height:44px;box-sizing:border-box;padding:12px;border:1px solid #a3967a;background:#fffdf6;font-size:14px;font-weight:700}
#contentEditorPanel [data-category-status]{font-weight:700;color:#24513b}
#contentEditorPanel [data-category-status].is-error{color:#9b2424}
@media(hover:none){#contentEditorPanel :is(input,select,textarea){font-size:16px}}

#contentEditorPanel .editor-nav-group{margin:20px 0 24px}#contentEditorPanel .editor-nav-group h5{font:700 12px/1.4 'Libre Baskerville',Georgia,serif;text-transform:uppercase;letter-spacing:.06em;color:#655d4c;margin:0 0 10px}
#contentEditorPanel .editor-nav-grid{display:grid;grid-template-columns:1fr;gap:12px}
#contentEditorPanel .editor-nav-card{--editor-banner:#264653;display:block;width:100%;min-height:52px;padding:14px;background:var(--editor-banner);border:2px solid #171717;color:#fff;text-align:center;box-shadow:3px 3px 0 #171717;font:700 14px/1.5 "Libre Baskerville",Georgia,serif;cursor:pointer}
#contentEditorPanel .editor-nav-item p{margin:8px 0 0;padding:0 6px;font-size:12px;line-height:1.6;color:#655d4c}
#contentEditorPanel .editor-nav-item p span{white-space:nowrap}
#contentEditorPanel [data-editor-kind="collection"]{--editor-banner:#264653}
#contentEditorPanel [data-editor-kind="profiles"]{--editor-banner:#344a83}
#contentEditorPanel [data-editor-kind="events"]{--editor-banner:#8c202b}
#contentEditorPanel [data-editor-kind="artifacts"]{--editor-banner:#654076}
#contentEditorPanel [data-editor-kind="fathers"]{--editor-banner:#745321}
#contentEditorPanel [data-editor-kind="passions"]{--editor-banner:#8c3f2c}
#contentEditorPanel [data-editor-kind="coaches"]{--editor-banner:#2e6043}
#contentEditorPanel [data-editor-kind="owners"]{--editor-banner:#664a3d}
#contentEditorPanel [data-editor-kind="world"]{--editor-banner:#236363}
#contentEditorPanel [data-editor-kind="crests"]{--editor-banner:#703d60}
#contentEditorPanel .editor-nav-card:hover{filter:brightness(1.08)}#contentEditorPanel .editor-nav-card:focus-visible{outline:3px solid #177ac4;outline-offset:4px}
#contentEditorPanel .editor-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 20px;font-size:12px}#contentEditorPanel .editor-breadcrumb button{background:transparent;color:#314b3c;border:1px solid #a3967a;padding:8px 12px}



#contentEditorPanel [data-career-content-status]{font-weight:700;color:#24513b}#contentEditorPanel [data-career-content-status].is-error{color:#9b2424}

#contentEditorPanel .content-collection-row{border-bottom:1px solid #b3a68d;padding:8px 0}#contentEditorPanel .content-collection-row small,#contentEditorPanel .content-import-list small{display:block;font-size:11px;color:#655d4c;margin-top:5px}
#contentEditorPanel .editor-import-preview{border:2px solid #314b3c;background:#f6f2e7;padding:14px;margin:20px 0}#contentEditorPanel .content-import-list{max-height:50vh;overflow:auto;overscroll-behavior:contain}#contentEditorPanel [data-collection-status]{font-weight:700;color:#24513b}#contentEditorPanel [data-collection-status].is-error{color:#9b2424}

/* Father editor: bounded search results and touch targets in the shared workshop. */
.father-club-results{display:grid;gap:6px;max-height:260px;overflow:auto;overscroll-behavior:contain;margin:10px 0 16px}
.father-club-results button{text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.father-selected-clubs p{display:flex;align-items:center;justify-content:space-between;gap:10px}
.father-selected-clubs span{min-width:0;overflow-wrap:anywhere}
.father-selected-clubs button{flex-shrink:0;min-height:44px}

/* Bounded, responsive advertising artwork preview. */
[data-stadium-board-editor] [hidden]{display:none!important}
[data-stadium-board-editor] label{display:grid;gap:6px;margin:12px 0;min-width:0}
[data-stadium-board-editor] input,[data-stadium-board-editor] select{max-width:100%;min-width:0;box-sizing:border-box}
[data-stadium-board-editor] input[type=color]{width:100%;height:42px;padding:3px}
.stadium-board-preview{padding:12px;background:#e0dfd4;border:1px solid #c3beae;margin:16px 0}
.stadium-board-preview canvas{display:block;width:100%;height:auto;aspect-ratio:16/3}
