.cp-shell { --font-display:var(--font-editorial,'Fraunces',Georgia,serif); --cp-paper:#fffaf0; --cp-cream:#f2e7d1; --cp-ink:#352c25; --cp-orange:#b94716; --cp-line:#d6c7ae; color:var(--cp-ink); max-width:1120px; margin:32px auto 72px; }
.cp-shell *, .cu-picker * { box-sizing:border-box; }
.cp-shell button,.cu-picker button,.cu-choose { min-height:44px; font:inherit; cursor:pointer; }
.cp-shell button,.cu-picker button { border:1px solid var(--cp-line,#d6c7ae); border-radius:8px; background:var(--cp-paper,#fffaf0); color:var(--cp-ink,#352c25); padding:10px 16px; }
.cp-shell button:disabled,.cu-picker button:disabled { cursor:default; opacity:.5; }
.cp-shell :focus-visible,.cu-picker :focus-visible { outline:3px solid #9c3c13; outline-offset:3px; }
.cp-header { background:var(--cp-paper); border:1px solid var(--cp-line); border-radius:16px 16px 0 0; overflow:hidden; }
.cp-cover { height:330px; background:var(--cp-cream); position:relative; }
.cp-cover-img { width:100%; height:100%; object-fit:cover; object-position:center; }
.cp-cover-paper { height:100%; display:flex; align-items:center; justify-content:center; background:repeating-linear-gradient(0deg,transparent,transparent 30px,#d6c7ae66 31px),linear-gradient(120deg,#eee0bc,#faf0dc 55%,#e4d0aa); }
.cp-cover-paper span { font-family:var(--font-display,'Lora',Georgia,serif); font-size:clamp(22px,3vw,36px); color:#705a38; transform:rotate(-2deg); max-width:65%; text-align:center; }
.cp-identity { display:flex; align-items:center; gap:24px; padding:0 36px 24px; position:relative; min-height:146px; }
.cp-avatar { flex:0 0 154px; height:154px; margin-top:-48px; background:#eed5ab; border:7px solid var(--cp-paper); border-radius:50%; display:grid; place-items:center; overflow:hidden; font-family:var(--font-display,'Lora',Georgia,serif); font-size:62px; color:#7b4d26; }
.cp-avatar-img { width:100%; height:100%; object-fit:cover; }
.cp-name { min-width:0; flex:1; padding-top:16px; }
.cp-name h1 { font-family:var(--font-display,'Lora',Georgia,serif); font-size:clamp(28px,3vw,40px); line-height:1.15; margin:0 0 8px; overflow-wrap:anywhere; }
.cp-name p { margin:0; color:#73614d; }
.cp-edit-btn { margin-top:20px; flex-shrink:0; }
.cp-body { display:grid; grid-template-columns:300px minmax(0,1fr); gap:28px; align-items:start; padding-top:28px; }
.cp-intro { padding:26px; border:1px solid var(--cp-line); border-radius:5px; background:var(--cp-paper); box-shadow:3px 4px 0 #ddc9a633; }
.cp-intro h2 { font-family:var(--font-display,'Lora',Georgia,serif); margin:0 0 14px; font-size:22px; }
.cp-intro p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; margin:0 0 18px; }
.cp-new-post,.cp-read { color:var(--cp-orange); display:inline-flex; align-items:center; min-height:44px; font-weight:600; text-underline-offset:4px; }
.cp-tabs { display:flex; gap:8px; border-bottom:1px solid var(--cp-line); margin-bottom:20px; padding-bottom:10px; }
.cp-tabs button { border:none; background:transparent; padding:10px 22px; font-weight:600; }
.cp-tabs button[aria-selected=true] { background:#f4d9b7; color:#843109; box-shadow:inset 0 -3px #b94716; }
.cp-post { background:var(--cp-paper); border:1px solid var(--cp-line); border-radius:10px; padding:24px; margin-bottom:22px; }
.cp-post-meta { display:flex; justify-content:space-between; gap:12px; font-size:14px; color:#765e41; overflow-wrap:anywhere; }
.cp-status { background:#eee4ce; padding:2px 8px; border-radius:4px; }
.cp-post h3 { font-family:var(--font-display,'Lora',Georgia,serif); font-size:25px; margin:12px 0; }
.cp-post h3 a { color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.cp-post-body { white-space:pre-wrap; line-height:1.65; overflow-wrap:anywhere; }
.cp-post-image { width:100%; max-height:430px; object-fit:cover; border-radius:5px; display:block; background:#eee4ce; }
.cp-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cp-photo { padding:6px!important; border-radius:3px!important; box-shadow:2px 3px 0 #ddc9a644; }
.cp-photo img { aspect-ratio:1; width:100%; display:block; object-fit:cover; background:#eadbbf; }
.cp-empty,.cp-state { line-height:1.7; color:#6f5b46; }
.cp-more { display:block; margin:18px auto; }
.cp-shell [hidden] { display:none!important; }
.cp-editor { max-width:680px; width:calc(100% - 28px); max-height:calc(100dvh - 40px); border:1px solid #c6b190; border-radius:14px; padding:26px; background:#fffaf0; color:#352c25; }
.cp-editor::backdrop,.cp-lightbox::backdrop { background:#302419bb; }
.cp-editor header,.cp-editor footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cp-editor h2 { font-family:var(--font-display,'Lora',Georgia,serif); font-size:26px; margin:0 0 12px; }
.cp-editor label { display:block; margin:16px 0; font-weight:600; }
.cp-editor input:not([type=file]),.cp-editor textarea { display:block; width:100%; padding:12px; margin-top:8px; background:#fffdf8; color:#352c25; border:1px solid #b9a58b; border-radius:6px; font:inherit; }
.cp-editor fieldset { border:1px solid #d6c7ae; border-radius:8px; margin:20px 0; padding:14px; min-width:0; }
.cp-editor legend { font-weight:600; padding:0 6px; }
.cp-editor [data-save] { background:#b94716; color:white; border-color:#b94716; }
.cp-lightbox { max-width:94vw; max-height:94dvh; background:#fffaf0; border:0; border-radius:10px; padding:12px; }
.cp-lightbox button { display:block; margin:0 0 10px auto; }
.cp-lightbox img { display:block; max-width:85vw; max-height:76dvh; object-fit:contain; }
.cu-picker { color:#352c25; }
.cu-picker-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.cu-picker-heading input { max-width:100%; font:inherit; min-height:44px; }
.cu-choose { display:none!important; }
.cu-help { font-size:14px; line-height:1.5; color:#715e49; font-weight:400; }
.cu-list { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; padding:0; margin:12px 0; }
.cu-item { min-width:0; border:1px solid #d6c7ae; background:#fffdf8; border-radius:6px; padding:10px; }
.cu-preview { height:140px; background:#eee3cd; border-radius:3px; overflow:hidden; }
.cu-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.cp-cover-picker .cu-preview { height:140px; aspect-ratio:1120/330; }
.cp-cover-picker .cu-preview img { object-fit:cover; }
.cu-filename,.cu-upload-state { overflow-wrap:anywhere; margin:8px 0; font-size:14px; }
.cu-upload-state[role=alert] { color:#8f2319; }
.cu-item-actions { display:flex; flex-wrap:wrap; gap:6px; }
.cu-item-actions button { padding:8px 10px; }
@media(max-width:720px) { .cp-shell { margin:16px 12px 48px; } .cp-cover { height:200px; } .cp-cover-paper span { max-width:85%; } .cp-identity { padding:0 18px 20px; gap:14px; flex-wrap:wrap; } .cp-avatar { flex-basis:112px; height:112px; margin-top:-30px; border-width:5px; font-size:44px; } .cp-name { padding-top:16px; flex-basis:calc(100% - 126px); } .cp-edit-btn { margin:0; width:100%; } .cp-body { grid-template-columns:minmax(0,1fr); gap:18px; padding-top:18px; } .cp-intro { padding:20px; } .cp-post { padding:18px; } .cp-post h3 { font-size:23px; } .cp-photo-grid { gap:8px; } .cp-editor { padding:18px; } .cp-editor header { align-items:start; } .cp-editor h2 { font-size:23px; } .cu-list { grid-template-columns:minmax(0,1fr); } }
