/* Create-room dialog: scoped so the rest of the dashboard stays compact. */
#createDialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:28px;border:1px solid #e5e7eb;border-radius:22px;color:#191d20;background:#fff;box-shadow:0 24px 80px #11182730}
.create-room-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
#createDialog .pill{font-size:10px;letter-spacing:.7px;font-weight:700;padding:6px 10px}
#createDialog .close{float:none;display:grid;place-items:center;flex:none;width:32px;height:32px;font-size:22px;line-height:1;color:#667085}
#createRoomTitle{font-size:28px;line-height:1.2;letter-spacing:-.9px;margin:18px 0 8px}
#createRoomIntro{font-size:13px;line-height:1.7;margin:0 0 24px;color:#7a818d;max-width:390px}
#createForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 16px}
.create-room-wide{grid-column:1/-1}
.create-room-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.create-room-field label{display:flex;align-items:center;gap:8px;color:#344054;font-size:12px;font-weight:700;line-height:1.5}
.create-room-required,.create-room-optional{margin-left:auto;font-size:10px;font-weight:500;color:#89919c}
#createForm input,#createForm select,#createForm textarea{box-sizing:border-box;display:block;width:100%;min-width:0;margin:0;border:1px solid #dde1e7;border-radius:10px;background:#fbfcfd;color:#191d20;font:400 13px/1.5 'Plus Jakarta Sans',Arial,sans-serif;padding:12px 13px;transition:border-color .15s,box-shadow .15s}
#createForm input,#createForm select{height:46px}
#createForm select{cursor:pointer;padding-right:30px}
#createForm textarea{resize:vertical;min-height:100px;max-height:240px}
#createForm input::placeholder,#createForm textarea::placeholder{color:#98a0ab}
#createForm input:focus,#createForm select:focus,#createForm textarea:focus{outline:none;border-color:#d5a900;box-shadow:0 0 0 3px #facc1526;background:#fff}
#createDialog .create-room-help{font-size:11px;line-height:1.5;font-weight:400;color:#89919c;margin:0}
#createForm>p.create-room-help{margin-top:-9px}
.create-room-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid #eef0f3;padding-top:20px;margin-top:2px}
#createDialog .create-room-actions button{border-radius:10px;padding:12px 18px;min-height:44px;font-size:12px;font-weight:700}
.create-room-cancel{border:1px solid #e4e7ec;background:#fff;color:#667085}
#createDialog .create-room-actions .yellow{background:#facc15;color:#29220b}
#createDialog .create-room-actions button:hover{filter:brightness(.97)}
#createMessage{font-size:12px;line-height:1.6;margin:0;color:#806009;overflow-wrap:anywhere}
#createMessage:empty{display:none}
@media(max-width:480px){#createDialog{padding:22px;border-radius:18px}#createRoomTitle{font-size:25px}#createForm{grid-template-columns:minmax(0,1fr);gap:16px}.create-room-actions{margin-top:0}.create-room-actions .yellow{flex:1}}

#directoryMessage{font-size:12px;color:#806009;margin:0 0 18px}#directoryMessage:empty{display:none}
#deleteRoomDialog{max-height:calc(100dvh - 32px);overflow-y:auto;color:#191d20}
#deleteRoomTitle{font-size:24px;letter-spacing:-.6px;margin-top:0}
#deleteRoomName{font-weight:700;color:#344054;overflow-wrap:anywhere}
#deleteRoomDialog p{font-size:12px;line-height:1.8}
#deleteRoomDialog .create-room-actions button{min-height:42px;padding:10px 16px;border-radius:9px;font-size:12px;font-weight:700}
.room-danger{background:#b42318;color:#fff;border:1px solid #b42318}
#createDialog button:disabled,#deleteRoomDialog button:disabled{opacity:.6;cursor:wait}
.card{position:relative}
.room-card-actions{position:absolute;top:8px;right:8px;z-index:3;margin:0;padding:0}
.room-options>summary{display:grid;place-items:center;flex:none;width:32px;min-width:32px;height:30px;margin:0;padding:0;border:1px solid #e5e7eb;border-radius:7px;background:#fff;color:#697386;cursor:pointer;list-style:none}
.room-options>summary::-webkit-details-marker{display:none}
.room-card-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.room-options{position:relative;flex:none}
.room-options[open]>summary{background:#fff5cd;border-color:#e8d897;color:#8d6a00}
.room-options-panel{position:absolute;top:calc(100% + 7px);right:0;z-index:20;min-width:140px;padding:5px;border:1px solid #e6e8ed;border-radius:10px;background:#fff;box-shadow:0 8px 24px #17202b20}
.room-options-panel button,.card.room .room-options-panel button{display:block;width:100%;min-height:36px;margin:0;padding:10px 12px;text-align:left;white-space:nowrap;border:0;border-radius:6px;background:#fff;color:#475467;font:600 11px 'Plus Jakarta Sans',Arial,sans-serif}
.room-options-panel button:hover{background:#f5f6f8}.room-options-panel button.room-delete{color:#b42318}
.card:has(.room-options[open]){overflow:visible;position:relative;z-index:6}
.room-options>summary:focus-visible{outline:3px solid #c59a00;outline-offset:3px}
#shareRoomLink{display:block;width:100%;margin:12px 0;padding:12px;border:1px solid #dfe3e9;border-radius:9px;background:#f9fafb;color:#344054;font-size:12px}
#shareRoomDialog h2{font-size:24px;letter-spacing:-.6px;margin-top:0}
#shareRoomDialog p,#shareRoomDialog label{font-size:12px;overflow-wrap:anywhere}
#shareRoomDialog .create-room-actions button{min-height:42px;border-radius:9px;padding:10px 16px;font-size:12px;font-weight:700}

.contests .ribbon{max-width:calc(100% - 40px)}
.card.room .room-top{padding-right:40px}
.card:has(.room-options[open]) .art{border-radius:15px 15px 0 0;overflow:hidden}

/* Native radio choices, presented as a centered tab switch. */
#createDialog .room-type-switch{display:flex;align-items:center;gap:4px;width:min(100%,320px);min-width:0;margin:20px auto 22px;padding:5px;border:1px solid #e7e9ee;border-radius:13px;background:#f3f4f6}
.room-type-switch legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.room-type-switch label{position:relative;flex:1;min-width:0;cursor:pointer}
.room-type-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.room-type-switch span{display:block;padding:11px 8px;border-radius:9px;text-align:center;font-size:12px;line-height:1.4;font-weight:700;color:#697386;transition:background .15s,color .15s,box-shadow .15s}
.room-type-switch input:checked+span{background:#facc15;color:#342b0b;box-shadow:0 2px 5px #83600018}
.room-type-switch input:focus-visible+span{outline:3px solid #b58c00;outline-offset:2px}
.room-type-switch:disabled label{cursor:default}
.room-type-switch:disabled span{opacity:.65}
#createDialog .room-type-switch[hidden],#createForm #competitionCashPrize[hidden],#createForm #competitionPrizeHelp[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.room-type-switch span{transition:none}}
.cover-current{position:relative;height:130px;overflow:hidden;border-radius:12px;background:#233448}
.cover-current img{display:block;width:100%;height:100%;object-fit:cover}
.cover-current span{position:absolute;left:10px;bottom:10px;padding:5px 9px;border-radius:7px;background:#111a2bbd;color:#fff;font-size:11px;font-weight:700}
.cover-templates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
#createForm .cover-templates button{min-width:0;padding:4px;border:2px solid transparent;border-radius:9px;background:#f4f5f7;color:#344054;font-size:10px;font-weight:700;cursor:pointer}
.cover-templates img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:5px;margin-bottom:5px}
#createForm .cover-templates button[aria-pressed=true]{border-color:#d5a900;background:#fff9df}
#createForm #coverFile{height:auto;padding:10px;cursor:pointer}
.contests .art.has-cover{background:#233448!important}
.contests .art.has-cover:after{display:none}
.contests .art .room-cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.contests .art.has-cover .ribbon{position:relative;z-index:1;background:#fff4cfe6;color:#473908}
.card.room .saved-room-cover{display:block;width:100%;height:80px;object-fit:cover;border-radius:10px;margin-bottom:12px}
@media(max-width:480px){.cover-templates{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme=dark] #createForm .cover-templates button{background:var(--night-raised);color:var(--night-text)}
html[data-theme=dark] #createForm .cover-templates button[aria-pressed=true]{border-color:var(--night-gold);background:#423718}
