/* community1: warm, light, trimmed. Scoped under cm-* so it cannot disturb other screens. 44px+ touch targets. */
.cm-tabs{margin-top:6px}
.cm-tabs b{margin-left:6px;font-size:12px;background:#efe8d8;color:#6b5a3e;border-radius:999px;padding:1px 8px}
.cm-tabs a.is-current b{background:#ffffff33;color:#fff8ec}
.cm-block{margin:26px 0}.cm-block h2,.cm-recipe h2{font-size:22px;margin:0 0 12px}
.cm-empty{padding:22px 18px;border:1px dashed #d6cfbf;border-radius:16px;background:#fffdf7;color:#6a6f62;text-align:center;margin:12px 0}
.cm-foot{margin-top:28px}
.cm-card{background:#fffdf7;border:1px solid #e6dfcf;border-radius:16px;padding:16px 18px;margin:16px 0;box-shadow:0 2px 10px #5b3a2310}
.cm-card h2{font-size:20px;margin:0 0 6px}
.cm-inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.cm-inline input,.cm-inline select{flex:1 1 160px;min-height:44px}
.cm-inline button,.cm-actions button,.cm-cta button,.cm-follow,.cm-btn{min-height:44px;border-radius:12px}
.cm-btn{display:inline-flex;align-items:center;padding:0 18px;text-decoration:none;font-weight:600;border:1px solid #d6cfbf;background:#fffdf7}
.cm-btn.primary{background:#2f5641;color:#fff8ec;border-color:#2f5641}
.cm-check{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-weight:500}
.cm-link{background:none;border:0;padding:6px 4px;min-height:36px;color:#8b5737;text-decoration:underline;font-size:13px}
.cm-avatar{flex:none;width:40px;height:40px;border-radius:50%;background:#e8efe2;color:#2f5641;font-weight:700;display:grid;place-items:center;border:1px solid #cfdac6;font-size:16px}
.cm-name{font-weight:700;text-decoration:none;color:#2b4a39}.cm-name:hover{text-decoration:underline}
/* posts */
.cm-post{background:#fffdf7;border:1px solid #e6dfcf;border-radius:18px;padding:14px 16px;margin:12px 0;box-shadow:0 2px 10px #5b3a2308}
.cm-post header{display:flex;gap:12px;align-items:center}.cm-post header>div{min-width:0;font-size:14px}
.cm-post.is-waiting{background:#fbf6ea;border-style:dashed}
.cm-photo-img{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:14px;margin:12px 0 4px;background:#efe8d8}
.cm-text{margin:10px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}
.cm-badge{display:inline-block;background:#f6e5c9;color:#7a4a25;border-radius:999px;padding:0 9px;font-size:12px;font-weight:700}
.cm-stars{color:#c9893f;letter-spacing:1px}
.cm-waiting{display:inline-block;margin:8px 0 2px;padding:4px 12px;border-radius:999px;background:#f6e5c9;color:#7a4a25;font-size:13px;font-weight:600}
.cm-reacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cm-react{min-height:40px;border-radius:999px;padding:6px 14px;font-size:14px;background:#fffdf7;border:1px solid #d9d2c1;color:#3d5444}
.cm-react.on{background:#2f5641;border-color:#2f5641;color:#fff8ec}.cm-react b{font-weight:700}
.cm-menu{text-align:right;min-height:8px}
.cm-recipe-row{margin-top:10px}.cm-recipe-row .hcard{max-width:220px}
/* recipe section */
.cm-recipe{margin:30px 0;padding-top:18px;border-top:1px solid #e6dfcf}
.cm-rate-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.cm-rate-pick button,.cm-starpick button{border:0;background:none;padding:0 4px;min-width:40px;min-height:44px;font-size:26px;color:#c9893f}
.cm-cta{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.cm-cta button{flex:1 1 140px}
.cm-compose{background:#fbf8f0;border:1px solid #e6dfcf;border-radius:16px;padding:14px;margin:12px 0;display:grid;gap:10px}
.cm-compose-title{font-family:Georgia,serif;font-size:19px;margin:0}
.cm-compose textarea{width:100%;min-height:90px}
.cm-compose-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cm-compose p{margin:0}
.cm-chip{border-radius:999px;min-height:44px;padding:8px 16px}.cm-chip.on{background:#f6e5c9;border-color:#d9a76f;color:#7a4a25;font-weight:700}
.cm-photo{display:grid;gap:8px;cursor:pointer}.cm-photo input{position:absolute;opacity:0;width:1px;height:1px}
.cm-photo-btn{display:flex;align-items:center;justify-content:center;min-height:56px;border:1.5px dashed #b9a98a;border-radius:14px;background:#fffdf7;color:#6b5a3e;font-weight:600}
.cm-photo-preview{width:100%;max-height:260px;object-fit:cover;border-radius:12px}
.cm-pick{display:grid;gap:4px;margin:8px 0}
/* profile / groups / challenge */
.cm-profile{background:#fffdf7;border:1px solid #e6dfcf;border-radius:20px;padding:18px;margin:12px 0}
.cm-profile-top{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.cm-profile .cm-avatar{width:64px;height:64px;font-size:26px}
.cm-pname{font-size:28px!important;margin:0!important;letter-spacing:-.5px!important}.cm-profile-top>div{flex:1 1 160px}
.cm-bio{margin:12px 0 4px}.cm-edit{margin:10px 0}.cm-edit summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#8b5737;font-weight:600}
.cm-edit form{display:grid;gap:10px}
.cm-follow{padding:0 20px;background:#2f5641;color:#fff8ec;border-color:#2f5641;font-weight:600}.cm-follow.on{background:#fffdf7;color:#2f5641}
.cm-cooks{display:grid;gap:10px}.cm-cook{display:flex;align-items:center;gap:12px;background:#fffdf7;border:1px solid #e6dfcf;border-radius:16px;padding:10px 12px}.cm-cook>div{flex:1;min-width:0}
.cm-scroller{display:flex;gap:12px;overflow-x:auto}
.cm-challenge-card{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:linear-gradient(135deg,#f6e5c9,#fbf3df);border:1px solid #e3cfa5;border-radius:20px;padding:18px 20px;margin:16px 0}
.cm-challenge-card h2{margin:4px 0;font-size:24px}.cm-challenge-card p{margin:4px 0}
.cm-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.cm-gallery .cm-post{margin:0}.cm-gallery .cm-photo-img{height:170px}
.cm-past{padding-left:18px}.cm-past li{padding:4px 0;margin:0}
.cm-groups,.cm-grouprecipes{display:grid;gap:10px;margin:12px 0}
.cm-group-card{display:flex;flex-direction:column;gap:2px;text-align:left;text-decoration:none;background:#fffdf7;border:1px solid #e6dfcf;border-radius:16px;padding:14px 16px;min-height:62px;color:inherit;width:100%}
.cm-invite{background:#fbf8f0;border:1px dashed #b9a98a;border-radius:16px;padding:14px 16px;margin:14px 0}
.cm-signin{text-align:center;padding:24px 14px;background:#fffdf7;border:1px solid #e6dfcf;border-radius:18px}
.cm-rules li{margin-bottom:10px}
/* sheet */
.cm-sheet{border:0;border-radius:22px 22px 0 0;padding:0;width:100%;max-width:560px;margin:auto auto 0;max-height:88dvh;background:#fffdf7;color:#293d30;box-shadow:0 -12px 40px #00000040}
.cm-sheet::backdrop{background:#142a2380}
.cm-sheet-body{padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px))}.cm-sheet h2{margin-top:0}
.cm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.cm-actions button{flex:1 1 130px}
.cm-sheet textarea{width:100%}
@media(min-width:701px){.cm-sheet{margin:auto;border-radius:22px}.cm-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* admin queue */
.cm-queue{display:grid;gap:14px;margin-top:16px}
.cm-mod{background:#fffdf7;border:1px solid #e6dfcf;border-radius:18px;padding:14px 16px}
.cm-mod header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap;font-size:14px}
.cm-pill{border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700;white-space:nowrap}.cm-pill.ok{background:#e1ecd9;color:#2f5641}.cm-pill.no{background:#f2dcd6;color:#8a3324}.cm-pill.wait{background:#f6e5c9;color:#7a4a25}
.cm-hold{margin:8px 0;padding:8px 12px;background:#fbe9d2;border-left:4px solid #c9893f;border-radius:8px;font-size:13px;color:#6b4220}
.cm-mod-photo{max-height:260px}
.cm-mod-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.cm-mod-actions button{flex:1 1 110px;min-height:44px}
.cm-log{margin:8px 0 0;padding-left:16px}.cm-log li{padding:2px 0;margin:0;font-size:12px}
@media(max-width:700px){.cm-challenge-card{flex-direction:column;align-items:flex-start}.cm-challenge-card .cm-btn,.cm-challenge-card button{width:100%;justify-content:center}}
/* the app's global header{} rule would otherwise spread these headers apart */
.cm-post header{justify-content:flex-start;margin-bottom:0;text-align:left}
.cm-mod header{margin-bottom:0}
