:root{font:15px/1.6 -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif;color:#263348;background:#f3f5f8;--navy:#3e4c64}*{box-sizing:border-box}body{margin:0}header{background:linear-gradient(110deg,#3c495e,#4b5a78);color:#fff;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:0 0 26px 26px}header a{color:white}h1{margin:0;font-size:26px}h2{font-size:24px}h3{margin-top:0}small{letter-spacing:2px;opacity:.75}main{max-width:1200px;margin:auto;padding:24px}nav{display:flex;flex-wrap:wrap;gap:8px}button,input,textarea,select{font:inherit}button{border:1px solid #d1d8e2;background:#fff;color:var(--navy);padding:10px 16px;border-radius:13px;cursor:pointer;min-height:44px;margin:4px 4px 4px 0}button:hover{background:#edf1f7}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--navy);color:white;border:0;border-radius:24px}.primary:hover{background:#526582}.columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}article{background:white;border:1px solid #e5e9ef;border-radius:22px;padding:24px;margin:16px 0;overflow-wrap:anywhere}label{display:block;margin:16px 0 8px;font-weight:600}input,textarea,select{width:100%;padding:12px;border:1px solid #d4dbe6;border-radius:12px;background:#fafbfd;margin-top:6px}input[type=checkbox]{width:auto}p{white-space:pre-wrap}.muted{color:#6b7687;font-size:13px}#status{background:#e6ecf5;border-radius:12px;padding:12px 16px;min-height:48px}a{color:#335c96}pre{white-space:pre-wrap;word-break:break-word;font:inherit}.list-item{display:block;width:100%;text-align:left}dialog{width:min(460px,calc(100vw - 24px));border:0;border-radius:26px;padding:24px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#18253c88}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}.hint,.fallback{font-size:13px;color:#647085}#report-open{color:white;border-color:#b5bfce;background:#ffffff30}#chat{max-width:760px}.notice{font-size:13px;padding:14px 18px;background:#e9eef6;border-radius:16px}.bubble{padding:14px 18px;border-radius:20px;background:white;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:#e2eaf6;margin-left:32px}.composer{position:sticky;bottom:0;background:#f3f5f8;padding:10px 0}.row{display:flex;gap:8px}.row textarea{flex:1}.row button{align-self:center}.badge{color:#8c472d;font-size:13px}:focus-visible{outline:3px solid #7e9dd0;outline-offset:2px}@media(max-width:680px){.columns{grid-template-columns:1fr}main{padding:16px}header{padding:18px}h1{font-size:21px}article{padding:18px}}
.row textarea{min-width:0;width:0}.row button{flex-shrink:0}header h1{min-width:0}header button{flex-shrink:0}@media(max-width:480px){header{padding:16px}header h1{font-size:18px}#report-open{padding:8px 12px;font-size:13px}main{padding:14px}.row button{font-size:13px;padding:10px 12px}}

#popup-open{font-size:13px;float:right}#chat .notice{clear:both}@media(max-width:600px){#popup-open{display:none}}
.guest{background:#eef1f4;color:#17232c}.guest #chat{width:min(100%,430px);height:min(820px,100dvh);margin:auto;padding:0;background:#fdfdfc;display:flex;flex-direction:column;box-shadow:0 8px 40px #192a3914}.guest header{padding:12px 18px;background:white;color:inherit;border-radius:0;border-bottom:1px solid #e3e7ea}.guest h1{font-size:17px}.guest button{margin:0}.guest header button,.guest #report-open{border:0;background:none;color:#56646f;font-size:13px}.guest #messages{flex:1;overflow:auto;padding:16px;min-height:0}.guest .bubble{background:none;padding:8px 0;margin:0 0 18px}.guest .bubble.user{width:fit-content;max-width:88%;margin-left:auto;background:#e2f2fc;border-radius:18px;padding:10px 15px}.guest footer{padding:8px 14px max(4px,env(safe-area-inset-bottom));background:white;border-top:1px solid #e5ebef}.guest #chat-form,.guest #ending{padding:12px;border:1px solid #cad4da;border-radius:19px}.guest #message{border:none;background:white;resize:none;padding:3px;margin:0;font-size:16px}.guest #chat-status{font-size:13px;color:#4c606e}.guest [hidden]{display:none!important}.guest #report-open{min-height:32px}.guest #choices,.guest #email-form button{margin-top:8px}@media(min-width:500px) and (min-height:860px){.guest #chat{margin:20px auto;border-radius:22px;overflow:hidden}}
.portal main{max-width:800px;padding:20px}.portal header{border-radius:16px;padding:18px 22px}.portal nav{margin:18px 0}.portal nav a{background:white;border:1px solid #d5dee6;border-radius:20px;padding:6px 12px;text-decoration:none}.portal article{padding:18px;margin:12px 0}.portal article p{margin:7px 0}.portal pre,.portal summary{overflow-wrap:anywhere}.portal details{margin:10px 0}.portal summary{cursor:pointer}.portal small{letter-spacing:0}.portal label{max-width:420px}.portal a{overflow-wrap:anywhere}

.guest #chat {width:min(100%,420px);height:min(680px,100dvh)}
.guest header {gap:4px;padding:6px 10px 6px 16px}
.guest header h1 {margin-right:auto}
.guest header button {padding:4px 8px}
.guest-menu {position:relative}
.guest-menu summary {cursor:pointer;list-style:none;width:44px;line-height:44px;text-align:center;font-size:22px}
.guest-menu summary::-webkit-details-marker {display:none}
.guest-menu #report-open {position:absolute;z-index:2;right:0;top:100%;width:96px;background:white;border:1px solid #d4dbe6;box-shadow:0 4px 12px #18253c18}
.guest #chat-form {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;padding:3px;border-radius:24px}
.guest #chat-form button {border:0;padding:0}
.guest #attach,.guest #chat-send {font-size:22px;border-radius:50%}
.guest #chat-send {background:#0078ab;color:white}
.guest #message {line-height:24px;field-sizing:content;max-height:96px}
.guest #remove {grid-column:1/-1;justify-self:start;max-width:100%;min-height:32px;padding:0 12px;background:#edf4f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.guest #chat {width:100%;height:100dvh}}
