/* Friends Portal: single real-data page, no nested preview iframe or modal shell. */
body.ns-friends-open{overflow:hidden}
.ns-friends-page{position:fixed;inset:0;z-index:2500;background:#faf7f2;color:#40362d;overflow:auto;overscroll-behavior:contain;font:400 15px/1.65 'Sarabun',system-ui,sans-serif}
.ns-friends-page *{box-sizing:border-box}
.ns-friends-shell{max-width:1110px;margin:0 auto;padding:clamp(16px,4vw,48px)}
.ns-friends-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 30px;border-radius:22px;background:#ebe1d0;border:1px solid #d8c6ae}
.ns-friends-header small{font-size:11px;font-weight:700;letter-spacing:.13em;color:#8a765f}
.ns-friends-header h1{margin:8px 0;font-size:clamp(27px,4.5vw,48px);font-weight:550;line-height:1.2;font-family:'Noto Serif Thai',serif;color:#493b32}
.ns-friends-header p{margin:0;font-size:14px;color:#685a4c}
.ns-friends-header button{cursor:pointer;border:1px solid #c6ad90;border-radius:12px;background:#fffaf3;color:#483c30;padding:10px 16px;font:inherit;white-space:nowrap}
.ns-friends-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin:24px 0 50px;align-items:start}
.ns-friends-card{background:#fffdfa;border:1px solid #e5d9c8;border-radius:20px;padding:clamp(18px,3vw,30px);box-shadow:0 12px 36px rgba(70,54,39,.045)}
.ns-friends-card h2{font-family:'Noto Serif Thai',serif;font-weight:600;font-size:21px;line-height:1.4;margin:0 0 10px;color:#46392e}
.ns-friends-card h3{font-size:16px;margin:26px 0 8px;color:#493d33}
.ns-friends-card p{margin:7px 0 16px;color:#746657}
.ns-friends-summary{background:#f3ede3;border-radius:12px;padding:13px 16px;color:#524536!important}
.ns-friends-card label{display:block;font-weight:550;margin:14px 0 7px;color:#51463a}
.ns-friends-card input:not([type=checkbox]),.ns-friends-card textarea{display:block;width:100%;background:#fff;border:1px solid #d9c6b0;border-radius:12px;padding:12px 13px;font:inherit;color:#42382d;outline-offset:3px}
.ns-friends-card textarea{resize:vertical;min-height:88px}
.ns-friends-card button{cursor:pointer;font:inherit;max-width:100%}
.ns-friends-card button:disabled{opacity:.58;cursor:wait}
.ns-friends-primary{display:block;margin:18px 0;background:#534332;color:white;border:0;border-radius:12px;padding:11px 17px;font-weight:600!important}
.ns-friends-secondary{background:#f5eee5;border:1px solid #d9c6b0;color:#544637;padding:9px 13px;border-radius:10px;margin:15px 0 4px}
.ns-friends-card [role=status]{font-size:13px;color:#63503c;white-space:normal;overflow-wrap:anywhere}
.ns-friends-card article{overflow-wrap:anywhere}
.ns-friends-card article [data-tree-quote]{margin:7px 7px 0 0;border:1px solid #aa9071;border-radius:8px;background:#f3ede3;padding:7px 11px}
.ns-friends-card article label{font-weight:400}
@media(max-width:700px){.ns-friends-shell{padding:12px}.ns-friends-header{display:block;padding:20px;border-radius:15px}.ns-friends-header button{margin-top:15px}.ns-friends-content{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}.ns-friends-card{border-radius:15px}}
