﻿.for314-room-entry-widget{display:flex;justify-content:center;flex:0 0 auto;padding:12px 8px;box-sizing:border-box;width:100%}
#for314RoomEntryWidget{
 --entry-face:#223246;
 --entry-ink:#f6f9ff;
 --entry-edge:#8ba3c0;
}
body.local-light #for314RoomEntryWidget{
 --entry-face:#f5f9ff;
 --entry-ink:#183f65;
 --entry-edge:#79a8d9;
}
#chatlog #for314RoomEntryWidget .for314-room-entry-create{
 appearance:none;box-sizing:border-box;display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:7px;
 width:116px;max-width:100%;min-height:116px;padding:8px;
 border:1px solid var(--entry-edge);border-radius:6px;
 background:var(--entry-face)!important;color:var(--entry-ink)!important;
 -webkit-text-fill-color:var(--entry-ink)!important;text-shadow:none!important;
 font:600 14px/1.3 system-ui,-apple-system,sans-serif;text-align:center;
 cursor:pointer;white-space:normal;overflow-wrap:anywhere;
}
#for314RoomEntryWidget .for314-room-entry-create::before{
 content:"";display:block;flex:0 0 auto;width:32px;height:32px;
 background-color:var(--entry-ink);
 -webkit-mask:url("./room-entry-door.svg") center/contain no-repeat;
 mask:url("./room-entry-door.svg") center/contain no-repeat;
}
.for314-room-entry-create:focus-visible{outline:3px solid #2684ff;outline-offset:3px}
html[data-for314-theme="classic"] #for314RoomEntryWidget,
body.classic-theme #for314RoomEntryWidget{--entry-face:#222;--entry-ink:#fff;--entry-edge:#aaa}
html[data-for314-theme="classic"] #chatlog #for314RoomEntryWidget button.for314-room-entry-create,
body.classic-theme #chatlog #for314RoomEntryWidget button.for314-room-entry-create{border-radius:0}
@media(max-width:260px),(max-height:360px){
 .for314-room-entry-widget{padding:4px}
 #chatlog #for314RoomEntryWidget .for314-room-entry-create{width:80px;min-height:80px;padding:4px;gap:3px;font-size:12px}
 #for314RoomEntryWidget .for314-room-entry-create::before{width:22px;height:22px}
}

/* Keep the entry before restored history in the scrollable conversation. */
#chatlog > .for314-room-entry-widget{position:static;order:-1;align-self:center}

#for314RoomEntryWidget .for314-room-entry-register::before{
 -webkit-mask-image:url("./room-entry-account.svg");
 mask-image:url("./room-entry-account.svg");
}
