/* FamePadi Community professional polish v4.2: scoped and reversible */
.tc-shell{max-width:1510px!important;grid-template-columns:minmax(200px,248px) minmax(0,760px) minmax(245px,310px)!important;gap:20px!important}
.tc-main,.tc-card{min-width:0}.tc-card{border-radius:18px!important;box-shadow:0 7px 26px rgba(1,5,25,.13)}
.tc-main .tc-card{margin-bottom:17px}.tc-post-body{line-height:1.65!important;overflow-wrap:anywhere}
.tc-main .tc-compose{padding:16px!important}.tc-compose-row{display:flex;align-items:center;gap:12px}
.tc-compose-input{min-width:0!important;flex:1;border-radius:999px!important;padding:14px 18px!important;cursor:text}
.tc-compose-tools{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
.tc-compose-tools>label,.tc-compose-tools>a,.tc-compose-tools>button{border-radius:12px!important}
.tc-main .tc-stories{overflow:hidden}.tc-story-row{scrollbar-width:thin}
.tc-profile-header img{object-fit:cover} .tc-main a:focus-visible,.tc-main button:focus-visible{outline:2px solid #a788ff;outline-offset:3px}
/* actual composer becomes the modal itself, preserving file inputs, CSRF and the original POST */
body.fp42-compose-open{overflow:hidden!important}
.fp42-shade{position:fixed;inset:0;z-index:2147482100;background:rgba(2,5,24,.76);backdrop-filter:blur(5px)}
.tc-compose.fp42-expanded{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:2147482101!important;width:min(610px,calc(100vw - 28px))!important;max-height:calc(100dvh - 36px)!important;overflow-y:auto!important;margin:0!important;padding:22px!important;border:1px solid #5b538a!important;border-radius:22px!important;background:#101b3a!important;box-shadow:0 35px 120px rgba(0,0,0,.55)!important}
.fp42-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #29385d}.fp42-head strong{font-size:19px;color:#fff}.fp42-close{border:0;border-radius:50%;width:34px;height:34px;cursor:pointer;background:#253254;color:#fff;font-size:22px}
.tc-compose.fp42-expanded .tc-compose-input{border-radius:14px!important;min-height:110px!important;text-align:left;padding:20px!important;background:#0b1530!important;white-space:normal!important;font-size:18px!important}
.tc-compose.fp42-expanded.fp-color-active .tc-compose-row{min-height:200px!important;margin:10px 0!important}
.tc-compose.fp42-expanded.fp-color-active .tc-compose-input{background:transparent!important;text-align:center!important;border:0!important;color:white!important}
.fp42-swatches{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0}.fp42-swatch{height:34px;width:34px;border-radius:10px;border:2px solid transparent;cursor:pointer;box-shadow:0 2px 8px #0005}.fp42-swatch[aria-pressed=true]{border:3px solid white;outline:2px solid #8e71ff}.fp42-swatch[data-value='']{background:linear-gradient(135deg,#fff 50%,#172246 50%)}
.tc-compose.fp42-expanded .fp-color-picker select{position:absolute!important;left:-9999px!important}.tc-compose.fp42-expanded .fp-color-picker label{font-weight:600}.tc-compose.fp42-expanded .fp-color-hint{display:none}
@media(max-width:1190px){.tc-shell{grid-template-columns:minmax(190px,230px) minmax(0,1fr)!important}.tc-right{display:none!important}}
@media(max-width:991px){.tc-shell{display:block!important;padding:12px!important}.tc-left{display:none!important}.tc-right{display:none!important}.tc-main{width:100%!important;max-width:760px;margin:0 auto}.tc-card{border-radius:14px!important}}
@media(max-width:600px){.tc-compose.fp42-expanded{padding:15px!important}.tc-compose.fp42-expanded .tc-compose-tools{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.fp42-shade{backdrop-filter:none}}
