/* Compact community surfaces: shared purple accent, neutral fields. */
.memory-panel{--memory-accent:#7441ca;--memory-ink:#2d213f;--memory-muted:#82798d;padding-bottom:16px!important}
.memory-panel .panel-head{padding-bottom:12px;border-bottom:1px solid #eeeaf3}
.memory-intro{display:flex;align-items:center;gap:15px;padding:24px 24px 18px}
.memory-mark{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:16px;background:#7441ca;color:#fff;font-size:26px;font-weight:600;box-shadow:0 5px 12px #7441ca15}
.memory-kicker{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#7441ca}
.memory-intro h3{margin:4px 0 6px;color:#2d213f;font-size:23px;font-weight:800;letter-spacing:-.7px;line-height:1.3}
.memory-intro p{margin:0;color:#82798d;font-size:13px;line-height:1.6}
.memory-search{display:grid;grid-template-columns:auto minmax(220px,440px);align-items:center;gap:8px 20px;padding:16px 18px;margin:0 24px 16px;border:1px solid #e9e3f1;border-radius:16px;background:#fff}
.memory-search>label{font-size:13px;font-weight:700;color:#40334f}
.memory-search>div{display:flex;gap:7px;min-width:0}.memory-search>small{grid-column:1/-1;font-size:11px;color:#908799;line-height:1.5}
.memory-search input,.memory-fields input{width:100%;min-width:0;box-sizing:border-box;height:44px;padding:10px 12px;border:1px solid #e9e3ef!important;border-radius:11px!important;background:#faf9fc!important;color:#30243f!important;box-shadow:none!important;font:inherit;font-size:13px}
.memory-search input{flex:1}.memory-search input::placeholder,.memory-fields input::placeholder{color:#a099ab;font-weight:400}
.memory-panel .button.primary{background:#7441ca!important;color:#fff!important;border-color:#7441ca!important;box-shadow:none!important}
.memory-search .button{height:44px;padding:0 15px;border-radius:11px;font-size:12px;white-space:nowrap}
.memory-search [data-friend-reset]{background:#fff;color:#756a83;border:1px solid #e9e3ef}
.memory-composer#post-form{position:static!important;inset:auto!important;transform:none!important;width:auto!important;margin:0 24px 18px;padding:0!important;border:1px solid #e9e3f1!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;z-index:auto!important}
.memory-composer .composer-dock-head{padding:15px 18px!important;margin:0!important;gap:12px;border:0!important}
.memory-composer .composer-dock-head b{font-size:13px;color:#6f637e;font-weight:600}
.memory-composer .dock-toggle{padding:9px 13px;border:0;border-radius:10px;color:#7441ca!important;background:#f1eafc;font-size:12px;font-weight:700}
.memory-composer #composer-fields{padding:0 18px 16px}.memory-composer #composer-fields[hidden]{display:none!important}
.memory-fields{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:10px 14px;padding:0;margin:0 0 16px;border:0;border-radius:0;background:transparent;color:#443251}
.memory-fields>b{display:none}.memory-fields label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#5e516e}.memory-fields label:only-of-type{grid-column:1/-1}.memory-fields small{grid-column:1/-1;font-size:11px;font-weight:400;color:#918899;line-height:1.6}
.memory-composer .composer-input-wrap{margin-top:0}.memory-composer textarea{box-sizing:border-box;width:100%;min-height:132px;max-height:280px;padding:15px 16px!important;border:1px solid #e9e3ef!important;border-radius:12px!important;background:#faf9fc!important;color:#30243f;font-size:13px;line-height:1.8}
.memory-composer footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0!important;margin:0!important}.memory-composer footer small{font-size:11px;color:#908799}.memory-composer footer .primary{margin-left:auto;padding:11px 18px;border-radius:11px;font-size:13px}.memory-composer .photo-label[hidden]{display:none!important}
.memory-panel #feed>.empty{padding:38px 18px!important;margin:0!important}.memory-panel #feed>.empty b{font-size:15px;color:#685b78}.memory-panel #feed>.empty p{font-size:12px;color:#a298ac;line-height:1.7}
.memory-post-title{font-size:17px;color:#53338b;margin:12px 0 6px;overflow-wrap:anywhere;letter-spacing:-.2px}
.memory-fields input:focus,.memory-search input:focus,.memory-composer textarea:focus{outline:2px solid #bca1e1!important;outline-offset:2px;border-color:transparent!important}
.memory-panel .edit-form{padding:16px;border:1px solid #e9e3ef;border-radius:14px;background:#fff}
@media(min-width:1100px){.memory-search>div{justify-self:stretch}.memory-search{grid-template-columns:1fr minmax(260px,440px)}}
@media(max-width:600px){.memory-intro{padding:20px 16px 16px;gap:12px}.memory-mark{width:42px;height:42px;border-radius:14px}.memory-intro h3{font-size:21px}.memory-intro p{font-size:12px}.memory-search{grid-template-columns:1fr;gap:9px;margin:0 16px 14px;padding:13px}.memory-search>small{grid-column:auto}.memory-composer#post-form{margin:0 16px 14px}.memory-composer .composer-dock-head{padding:13px!important}.memory-composer #composer-fields{padding:0 13px 13px}.memory-fields{grid-template-columns:100px minmax(0,1fr);gap:9px}.memory-composer .composer-dock-head b{font-size:12px}}

/* Isolate the stacked composer from legacy compact/mobile form rules. */
#post-form.memory-composer{display:block!important;flex-direction:column!important;grid-template-columns:none!important;min-width:0!important;max-width:calc(100% - 48px)!important;height:auto!important;overflow:visible!important}
#post-form.memory-composer>.composer-dock-head{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;position:static!important}
#post-form.memory-composer>.composer-dock-head b{flex:1;min-width:0;white-space:normal}
#post-form.memory-composer>.composer-dock-head .dock-toggle{flex:none!important}
#post-form.memory-composer #composer-fields:not([hidden]){display:block!important;position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;float:none!important;flex:none!important}
#post-form.memory-composer #composer-fields[hidden]{display:none!important}
#post-form.memory-composer .memory-fields{display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;flex:none!important;float:none!important}
#post-form.memory-composer .memory-fields label{width:100%!important;min-width:0!important;max-width:100%!important;display:grid!important;float:none!important}
#post-form.memory-composer .memory-fields input{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
#post-form.memory-composer .memory-fields small{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere;font-size:11px!important}
#post-form.memory-composer .composer-input-wrap{display:block!important;position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;clear:both!important}
#post-form.memory-composer textarea{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:144px!important;min-height:132px!important;padding-right:48px!important;resize:vertical!important;white-space:pre-wrap!important}
#post-form.memory-composer footer{width:100%!important;min-width:0!important;position:static!important;float:none!important;flex-wrap:wrap!important;clear:both!important}
#post-form.memory-composer footer .primary{flex:none!important}
#channels>.community-channel-divider{width:calc(100% - 24px);height:1px;border:0;background:rgba(116,65,202,.16);margin:12px 12px 9px;flex:none}
@media(max-width:760px){#post-form.memory-composer{margin-left:16px!important;margin-right:16px!important;max-width:calc(100% - 32px)!important}#post-form.memory-composer .memory-fields{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}#post-form.memory-composer .memory-fields label,#post-form.memory-composer .memory-fields small{grid-column:1/-1!important}.memory-search{grid-template-columns:minmax(0,1fr)!important;min-width:0}.memory-search>div{min-width:0;flex-wrap:wrap}.memory-search input{flex:1 1 130px}.memory-intro>div{min-width:0}.memory-intro h3{overflow-wrap:anywhere}}
