@charset "UTF-8";
:root {
 color-scheme: light; font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
 color: var(--ink); background: #edf5ff; line-height: 1.6;
 --ink: #182e49; --muted: #4b6280; --accent: #245ea3; --line: #d5e4f5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem max(5vw, 1rem); background: #dcecff; color: var(--ink); border-bottom: 1px solid var(--line); }
.top a { color: inherit; text-decoration: none; }
.brand { font-weight: 800; letter-spacing: .04em; font-size: 1.1rem; }
.admin-link { font-size: .875rem; padding: .35rem .6rem; }
.top a:hover { text-decoration: underline; }
main { max-width: 70rem; margin: 0 auto; padding: clamp(1rem, 4vw, 3.25rem) 1rem; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; }
h3 { overflow-wrap: anywhere; }
p, #connection { color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 26px #1b42710e; padding: clamp(1rem, 3vw, 1.65rem); }
.entry { max-width: 35rem; margin: clamp(1rem, 6vw, 5rem) auto 0; display: grid; gap: 1rem; }
.entry form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, textarea { width: 100%; min-width: 0; background: #f7fbff; color: var(--ink); border: 1px solid #a6bedb; border-radius: .55rem; padding: .65rem .75rem; font: inherit; }
button, .button { padding: .55rem .85rem; min-height: 44px; border: 1px solid transparent; border-radius: .55rem; background: var(--accent); color: white; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.9); }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: #f2f7fe; border-color: var(--line); color: var(--accent); }
.danger { color: #9a3027; }
:focus-visible { outline: 3px solid #3579c5; outline-offset: 3px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .9rem; margin-bottom: 1rem; }
.section-head button { flex-shrink: 0; }
#identity { overflow-wrap: anywhere; }
.participant-label { display: inline-flex; align-items: baseline; gap: .35em; min-width: 0; }
.participant-label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.participant-icon { flex: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.create { display: flex; align-items: end; gap: .75rem; }
.create label { flex: 1; }
.status { color: #8d301f; overflow-wrap: anywhere; }
.status:not(:empty) { margin: .75rem 0; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 22rem),1fr)); gap: .9rem; margin-top: 1rem; }
.room { display: grid; align-content: start; gap: .7rem; }
.room-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
dialog { width: min(calc(100% - 2rem), 32rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); }
dialog::backdrop { background: #182e498c; }
.dialog-content { display: grid; gap: .6rem; }
.dialog-content p { overflow-wrap: anywhere; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .4fr); gap: 1rem; align-items: start; }
.chat-panel { display: flex; flex-direction: column; min-height: min(74dvh, 50rem); }
.chat-head { border-bottom: 1px solid var(--line); padding-bottom: .65rem; margin: 0; }
#messages { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; height: clamp(16rem, 51dvh, 35rem); padding: .8rem .2rem; overflow: auto; }
.message { max-width: 88%; padding: .5rem .75rem; border-radius: .7rem; background: #eff5fc; }
.message.mine { align-self: flex-end; background: #dcecff; }
.message-heading { color: var(--muted); font-size: .8rem; display: flex; gap: .45rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.message-body { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
#composer { display: flex; align-items: center; gap: .3rem; }
.send-button { display: grid; place-items: center; flex: 0 0 44px; padding: 0; background: transparent; border-radius: 50%; color: white; }
.send-button > span { display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); border-radius: 50%; }
.send-button > span::after { content: ""; width: 15px; height: 15px; background: currentColor; clip-path: polygon(7% 12%, 98% 50%, 7% 88%, 23% 55%, 63% 50%, 23% 45%); }
textarea { resize: vertical; max-height: 10rem; }
.voice-panel { display: grid; gap: .6rem; }
.voice-note { font-size: .85rem; }
ul { margin: 0; padding-left: 1.25rem; overflow-wrap: anywhere; }
ul:empty { display: none; }
.visually-hidden { width: 1px; height: 1px; padding: 0; overflow: hidden; position: absolute; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .chat-layout { grid-template-columns: 1fr; } .chat-panel { min-height: 0; } }
