/* Katzentreffen: Freundschaftsbuch. Additive Styles – no changes to other modules. */
#cats [hidden],.cat-room-showcase[hidden],.cat-overlay[hidden],.cat-editor [hidden]{display:none!important}
.cat-kicker{display:inline-flex;font-size:.76rem;font-weight:800;letter-spacing:.095em;color:#a95b47;text-transform:uppercase}
.cat-status{margin:12px 0;min-height:1.3em;color:#346651;font-weight:700}
.cat-status.bad{color:#ae3434}
.cat-book-toolbar{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px;margin-bottom:24px;background:linear-gradient(120deg,#fff8ed,#fff1e8)}
.cat-book-toolbar h2{font-size:clamp(1.4rem,2.4vw,2rem);margin:8px 0}.cat-book-toolbar h2 span{font-size:.8rem;border-radius:99px;background:#ffdecd;color:#904a2d;padding:6px 11px;vertical-align:middle;white-space:nowrap}
.cat-book-toolbar p{margin:0;max-width:56ch;line-height:1.55}.cat-book-toolbar>.btn{flex-shrink:0}
.cat-list{display:grid;gap:18px}.cat-profile-card{display:flex;align-items:center;gap:23px;padding:19px;overflow:hidden;background:linear-gradient(140deg,#fffdf9,#fff1e6)}
.cat-thumb{width:170px;aspect-ratio:1;flex-shrink:0;display:grid;place-items:center;overflow:hidden;border-radius:22px;background:linear-gradient(120deg,#ffe5ca,#f5d3dc);box-shadow:inset 0 0 0 1px rgba(112,64,42,.09)}
.cat-thumb img{width:100%;height:100%;object-fit:cover;display:block}.cat-thumb span{font-size:4rem}
.cat-profile-content{flex:1;min-width:0}.cat-profile-content h3{font-size:1.7rem;color:#58362d;margin:6px 0}.cat-story-snippet{white-space:pre-line;line-height:1.6;max-height:7.4em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.cat-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.cat-action-link{border:none;background:none;text-decoration:underline;text-underline-offset:3px;cursor:pointer;color:#834e39;font:inherit;font-weight:750;padding:9px 6px}.cat-action-link.danger{color:#ae3838}
.cat-empty{text-align:center;padding:45px 20px}.cat-empty-icon{font-size:3rem}.cat-empty h3{font-size:1.45rem;margin:8px auto}.cat-empty .btn{margin-top:12px}
.cat-editor{padding:clamp(16px,3vw,30px);max-width:1000px;margin:0 auto}.cat-editor-header,.cat-showcase-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cat-editor-header h2{font-size:clamp(1.4rem,3vw,2rem);margin:8px 0}.cat-editor-header p{margin:0 0 10px;color:#6b554b}
.cat-photo-panel{display:flex;align-items:center;gap:20px;margin:26px 0;padding:19px;background:#fff6e9;border:1px dashed #d6a78e;border-radius:20px}.cat-photo-preview{width:160px;min-height:160px;flex:0 0 160px;background:#ffe6d6;border-radius:20px;overflow:hidden;display:grid;place-items:center}.cat-photo-preview img{width:100%;height:160px;object-fit:cover}.cat-no-photo{text-align:center;padding:15px;color:#815a49}
.cat-photo-controls{max-width:58ch}.cat-photo-controls p{font-size:.82rem;color:#735d52;line-height:1.5;margin:9px 0}.cat-photo-pick{display:inline-flex!important;align-items:center;cursor:pointer}.cat-photo-pick input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.cat-stepbar{display:flex;gap:7px;flex-wrap:wrap;margin:25px 0 16px}.cat-step{border:1px solid #e6cab8;background:#fffaf3;color:#705045;font:inherit;font-size:.84rem;font-weight:800;border-radius:99px;padding:9px 13px;cursor:pointer}.cat-step.active{background:#964c37;color:#fff;border-color:#964c37}
.cat-form-fields{background:#fffdfa;padding:21px;border-radius:19px;border:1px solid #eedbc9}.cat-form-fields h3{font-size:clamp(1.5rem,3vw,1.9rem);margin:8px 0 0}.cat-step-subtitle{margin:4px 0 22px;color:#826457}
.cat-field{padding:17px 0;border-bottom:1px solid #f1e5d9}.cat-field:last-child{border-bottom:0}.cat-field-label{font-size:1.02rem;display:block;font-weight:800;color:#50372f;margin-bottom:9px}.cat-field-hint{font-size:.83rem;color:#79645c;margin:0 0 9px}
.cat-chips{display:flex;flex-wrap:wrap;gap:9px}.cat-chip{border-radius:99px;border:1px solid #e6cab7;background:#fff8f0;color:#5d453c;font:inherit;line-height:1.25;padding:9px 13px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.cat-chip:hover{transform:translateY(-1px);border-color:#b97a5c}.cat-chip.is-active{background:#e8f4d9;color:#2d6141;border-color:#71ae76;box-shadow:inset 0 0 0 1px #71ae76}
.cat-input{font:inherit;display:block;box-sizing:border-box;max-width:100%;width:min(100%,540px);padding:12px 15px;background:#fff;border-radius:12px;border:1px solid #d9bba9;color:#3e302c}.cat-input:focus,.cat-chip:focus-visible,.cat-step:focus-visible,.cat-action-link:focus-visible{outline:3px solid #df9d6d;outline-offset:2px}.cat-textarea{width:100%;min-height:90px;resize:vertical}
.cat-step-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 24px}.cat-step-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.cat-publish-row{border-radius:17px;background:#f8f1e4;padding:16px 19px}.cat-publish-row label{display:flex;gap:10px;align-items:center;font-size:1.02rem;cursor:pointer}.cat-publish-row input{width:21px;height:21px;accent-color:#9a6245}.cat-publish-row small{display:block;margin:9px 0 0 31px;color:#725d52;line-height:1.55}
.cat-editor-actions{display:flex;gap:10px;justify-content:flex-end;margin:17px 0;flex-wrap:wrap}.cat-preview-box{margin-top:22px;padding:18px;border-radius:17px;background:#f0f7e7;border:1px solid #d1e8bc}.cat-preview-box h3{margin-top:0}
.cat-room-showcase{margin:20px 0 28px;padding:20px;background:linear-gradient(135deg,#fff8f0,#f8f0e9)}.cat-showcase-head{align-items:center;margin-bottom:16px}.cat-showcase-head h2{font-size:1.75rem;margin:6px 0}.cat-showcase-head p{color:#705648;margin:0}.cat-room-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:17px}.cat-room-card{border-radius:17px;overflow:hidden;background:#fff;border:1px solid #f0dbce;display:flex;flex-direction:column}.cat-room-card .cat-thumb{width:100%;height:200px;flex-basis:auto;aspect-ratio:auto;border-radius:0}.cat-room-card .cat-thumb span{font-size:4rem}.cat-room-info{padding:15px 17px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1}.cat-room-info h3{font-size:1.38rem;margin:0}.cat-room-owner{font-size:.82rem;color:#815b49}.cat-room-excerpt{white-space:pre-line;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;margin:0}.cat-room-info .cat-action-link{margin-top:auto}
.cat-overlay{position:fixed;inset:0;z-index:10000;background:rgba(37,24,22,.72);display:flex;justify-content:center;align-items:center;padding:18px;overflow:auto}.cat-dialog{position:relative;overflow-y:auto;max-height:min(88vh,900px);width:min(100%,660px);padding:24px;border-radius:22px;background:#fffaf4;color:#4a382e;box-shadow:0 22px 65px rgba(32,20,13,.3)}.cat-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.cat-dialog>.cat-thumb{width:min(100%,380px);margin:12px auto;aspect-ratio:1.2;flex-basis:auto}.cat-dialog h2{text-align:center;font-size:2rem;margin:8px 0}.cat-dialog-owner{text-align:center;color:#8a6a55}.cat-full-story{white-space:pre-line;line-height:1.74;font-size:1rem;overflow-wrap:anywhere}.cat-dialog .btn{margin-top:15px}
.cat-room-error{color:#ab3d3d}.cat-room-showcase .room-load-more{margin-top:14px}
@media(max-width:710px){.cat-book-toolbar,.cat-profile-card,.cat-photo-panel{flex-direction:column;align-items:stretch}.cat-book-toolbar>.btn{align-self:flex-start}.cat-profile-card .cat-thumb{width:100%;height:230px;aspect-ratio:auto}.cat-photo-preview{width:100%;max-height:280px;flex-basis:auto}.cat-photo-preview img{height:240px}.cat-editor-header{flex-wrap:wrap}.cat-editor-actions>.btn{flex:1;min-width:155px}.cat-showcase-head{align-items:flex-start;flex-wrap:wrap}.cat-step-footer{align-items:flex-start}.cat-dialog{padding:15px}.cat-room-card .cat-thumb{height:170px}}
@media(prefers-reduced-motion:reduce){.cat-chip{transition:none}.cat-chip:hover{transform:none}}

/* Photo upload and save status remains visible next to the actual Save control. */
.cat-editor-status{margin:12px 0 22px;padding:14px 17px;border:1px solid #acc6a9;border-radius:13px;background:#f1f9ee;line-height:1.55;overflow-wrap:anywhere;scroll-margin-top:130px}
.cat-editor-status.bad{border-color:#df9f92;background:#fff2ed;color:#8d2727}
.cat-editor-actions [disabled]{cursor:wait;opacity:.6}
