/* Release UX: focused tools and uncluttered sharing; no forced advertising inside rooms */
:root{--mallow-radius:18px}
.legacy-room-timer,.pdf-quick-access,#room-extend-btn,.timer-card svg,.sharefit-inline,.turbo-tips,.prep-inroom-controls .pdf-library-link[aria-label*="PDF tools"]{display:none!important}
.timer-card{min-width:104px!important;padding:10px 12px!important}.timer-card strong{font-size:13px!important}.timer-card small{font-size:11px!important}
.remember-label{display:flex;align-items:center;gap:10px;padding:10px 3px;font-size:12px;line-height:1.4}.remember-label input{accent-color:#6c49d5;width:18px;height:18px;flex:0 0 auto}
.file-retention-note{font-size:12px!important;color:var(--muted,#566782);line-height:1.5;margin:10px 0}
.simple-tool-hubs{padding:clamp(18px,4vw,44px);margin:20px auto;max-width:1140px;background:linear-gradient(130deg,#fbfbff,#f0f9ff);border:1px solid #d8e8fc;border-radius:24px}
.simple-tool-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.simple-tool-links a{border:1px solid #d4dceb;border-radius:20px;padding:24px;text-decoration:none;color:#21334c;background:white;display:grid;gap:7px;box-shadow:0 6px 20px #1830470a}.simple-tool-links a:hover{border-color:#7e76ec;box-shadow:0 15px 30px #4838b321}.simple-tool-links span{font-size:30px;color:#7453df}.simple-tool-links b{font-size:19px}.simple-tool-links small{font-size:13px;line-height:1.5}
.expired-share-panel{border:1px solid #e3a3ad;background:#fff5f7;border-radius:18px;padding:16px;margin:12px 0}.expired-share-panel p{font-size:13px}.expired-share-panel button{margin:5px;padding:9px 13px;border:1px solid #d97085;border-radius:12px;color:#91253f;background:white;font-weight:700}
/* The soft keyboard must not cause a nested composer/modal focus trap. */
#chat-panel{min-height:0;overflow:hidden;display:flex;flex-direction:column;max-height:min(78dvh,730px)}
#chat-messages{flex:1 1 auto;min-height:70px;overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden}
#chat-form{flex:0 0 auto;min-width:0;position:relative}#chat-input{min-height:44px;font-size:16px;line-height:1.45;touch-action:manipulation;outline-offset:1px}
body.mallow-chat-typing #chat-panel{scroll-margin-bottom:env(safe-area-inset-bottom)}
/* Video editor: player cannot overlap trim controls on mobile or desktop. */
#prep-video, #prep-video *{box-sizing:border-box;min-width:0}#prep-video video,#prep-video canvas,.video-tool video,.video-tool canvas{max-width:100%!important;width:100%;height:auto!important;object-fit:contain;display:block;border-radius:12px}
#prep-video{max-width:100%;overflow-x:hidden}#prep-video input,#prep-video select{max-width:100%}
@media(max-width:800px){.simple-tool-links{grid-template-columns:1fr}.simple-tool-links a{padding:17px}.room-head,.head-actions,.room-head .room-meta{max-width:100%;flex-wrap:wrap!important}.head-actions>*{min-width:0}.room-page{width:100%;max-width:100%;overflow-x:clip}.chat-panel,#chat-panel{width:100%;max-width:100%;height:auto;max-height:70dvh}.chat-compose{display:flex;align-items:stretch}.chat-compose textarea{flex:1;min-width:0;resize:none}.room-mobile-upload{max-width:100%}.file-buttons{flex-wrap:wrap;gap:5px}.file-item{min-width:0;max-width:100%}}
body.dark .simple-tool-hubs{background:#142132;border-color:#38516b}body.dark .simple-tool-links a{background:#22334b;color:#f2f7ff;border-color:#3e5269}body.dark .expired-share-panel{background:#3a2730;color:white}

/* Visual polish & controls: compact mobile nav, ad placements outside active forms */
@media(max-width:600px){body{max-width:100%;overflow-x:clip}#chat-input{font-size:16px!important}#chat-panel{min-width:0!important;width:100%!important} .focus-workspace,.mw-tool-box,#prep-overlay{max-width:100vw} .simple-tool-hubs{margin:12px 8px;padding:16px}}
#chat-input:focus{outline:2px solid #7566ef;outline-offset:2px}
.room-mobile-upload .dropzone,#dropzone{min-height:112px}

.free-share-notice{padding:11px 14px;margin:12px 0;border:1px solid rgba(113,86,238,.24);border-radius:12px;background:var(--panel,#f8f6ff);font-size:.875rem;line-height:1.55;color:var(--text,#25304a)}
