@font-face{font-family:Instrument;src:url('/instrument.woff2') format('woff2');font-weight:400 700;font-display:swap}
*{box-sizing:border-box}[hidden]{display:none!important}:root{font:16px Instrument,Segoe UI,sans-serif;color:#f4eae0;background:#161210;color-scheme:dark}
body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 75% 0,#302016,#161210 64%)}header{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #3d2d23;padding:14px max(18px,calc((100vw - 850px)/2))}.brand{display:flex;gap:10px;align-items:center}.brand img{width:39px;height:39px}.brand strong,.brand small{display:block}.brand small{color:#bfaa99;font-size:12px}main{width:min(850px,100%);margin:auto;padding:24px 18px 10px}#login{margin:12vh auto 0;max-width:510px;background:#251c17;border:1px solid #4c3527;border-radius:17px;padding:22px}h1{font-size:clamp(29px,6vw,52px);letter-spacing:-.045em;line-height:1.05;margin:8px 0 12px}p{color:#cdb7a8;line-height:1.5}form,label{display:block}input,textarea,button{font:inherit}textarea,input:not([type=checkbox]){display:block;width:100%;background:#211914;border:1px solid #5b4131;border-radius:10px;padding:10px;color:#f7eee6}button{border:1px solid #634532;background:#34261d;color:#f2d0bb;border-radius:9px;padding:7px 11px;cursor:pointer}button:hover{filter:brightness(1.2)}button:disabled{opacity:.55;cursor:wait}.primary{background:#f6a36b;color:#321707;border-color:#ffbc93;font-weight:700}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #f6a36b;outline-offset:2px}#join div{display:flex;gap:8px;margin-top:6px}#timeline{height:max(270px,calc(100dvh - 245px));overflow:auto;padding:0 3px 12px;scrollbar-color:#55392b transparent}.intro{background:linear-gradient(125deg,#3d271c,#211713);border:1px solid #65432c;border-radius:17px;padding:24px;margin-bottom:18px}.intro .tag{font-size:12px;color:#ffc49f;margin:0}.msg{padding:12px 14px;background:#271e18;border:1px solid #493528;border-radius:12px;margin:0 0 11px;max-width:92%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.msg strong{display:block;color:#f3b892;font-size:12px;margin-bottom:4px}.msg.user{margin-left:auto;background:#38271e}.msg ul{margin:8px 0 0;padding-left:19px;white-space:normal;font-size:13px}a{color:#ffd3ae}#compose{border-radius:14px;background:#271e18;border:1px solid #503829;padding:9px}#draft{min-height:53px;resize:vertical;border:0;background:none}.bar{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:6px}.bar label{margin-right:auto;color:#e6c6b4;font-size:13px}.bar input{vertical-align:middle;accent-color:#f6a36b}#status{margin:8px 0;font-size:13px;color:#f4b893;min-height:19px}dialog{border:1px solid #65432c;border-radius:12px;background:#281d16;color:#f4eae0;width:min(390px,calc(100vw - 24px))}dialog::backdrop{background:#0a0807bf}dialog h2{margin:1px 0 12px}dialog input{margin:6px 0 10px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:root{--paper:#f7ede4;--muted:#b5a295;--accent:#ffad78;--border:#463226;font-size:15px}
body{background:radial-gradient(ellipse at 80% -20%,#392217,#171311 60%);color:var(--paper)}
header{height:69px;padding-inline:max(22px,calc((100vw - 910px)/2));background:#1c1613d9;gap:15px}
.brand strong{font-size:17px;letter-spacing:-.02em}
.header-side{display:flex;align-items:center;gap:10px}.local-pill{font-size:12px;color:#d8c2b3;border:1px solid #513b2e;border-radius:25px;padding:6px 9px;white-space:nowrap}
.local-pill:before{content:'';display:inline-block;margin-right:6px;width:6px;height:6px;background:#8ab18e;border-radius:50%;vertical-align:2px}
main{width:min(910px,100%);padding:21px 20px 9px}
.intro,#login{position:relative;isolation:isolate;overflow:hidden;border:1px solid #67442f;border-radius:17px;background:#332116 url('/hero.webp') 62% center/cover no-repeat;box-shadow:0 14px 43px #0004}
.intro:before,#login:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#201411 1%,#201411ef 31%,#20141162 70%,#4b2a1855)}
.intro{padding:27px 29px;min-height:176px;margin-bottom:19px}
.intro p{margin:7px 0 0;max-width:340px}
.intro .tag{display:inline-block;margin:0;background:#3e2a21c7;border:1px solid #9b694c72;border-radius:20px;padding:4px 7px;font-weight:650}
#login{max-width:610px;padding:26px}
#join{max-width:440px}
#timeline{height:max(280px,calc(100dvh - 224px));padding:0 8px 15px 2px}
.msg{width:fit-content;max-width:min(670px,96%);min-width:125px;background:#231b17;padding:11px 13px;border-radius:12px}
.msg.user{background:#35251e}
.msg strong{letter-spacing:.025em}
.msg-content{white-space:pre-wrap}
.msg.working{min-width:205px;background:#291f19;border-color:#6c4530}
.work-line{display:flex;align-items:center;gap:9px;color:#ffd0b0;font-size:13px}
.work-dots{display:inline-flex;gap:4px;align-items:center}
.work-dots i{display:inline-block;width:5px;height:5px;background:#f5a570;border-radius:50%;animation:breathe 1.05s ease-in-out infinite}
.work-dots i:nth-child(2){animation-delay:.15s}.work-dots i:nth-child(3){animation-delay:.3s}
@keyframes breathe{50%{opacity:.36;transform:translateY(-3px)}}
.work-time{margin-left:auto;color:#c2987c;font-size:11px;white-space:nowrap}
#compose{border-radius:14px;padding:9px 10px 8px;box-shadow:0 10px 32px #0005}
#compose:focus-within{border-color:#936041}
#draft{padding:8px 7px;font-size:15px;min-height:45px;max-height:140px}
#status{min-height:17px}
.bar .primary{padding:8px 15px}
@media(max-width:540px){header{height:61px;padding-inline:12px}.brand img{width:34px;height:34px}.header-side{gap:5px}.local-pill{display:none}main{padding:12px 10px 8px}.intro{padding:19px 17px;min-height:142px}.intro:before{background:linear-gradient(90deg,#201411 0%,#201411ef 38%,#2014116b 100%)}#timeline{height:max(235px,calc(100dvh - 198px));padding-right:4px}#login{padding:19px}#join div{flex-wrap:wrap}#join button{margin-left:auto}.msg{max-width:97%}}
@media(prefers-reduced-motion:reduce){.work-dots i{animation:none}}

.bar{flex-wrap:wrap;justify-content:flex-start}.bar select{max-width:100%;font:inherit;font-size:13px;color:#eed6c5;background:#30231b;border:1px solid #5d4233;border-radius:8px;padding:7px 6px}.bar select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.bar .primary{margin-left:auto}

#join>label{margin-top:10px}
#join>input{margin-top:4px}
#join>div{justify-content:flex-start;margin-top:13px;flex-wrap:wrap}
#chatList{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 2px 10px}
#chatList>div{display:flex;align-items:center;gap:8px;margin-right:auto}
#chatList>div strong{max-width:160px;overflow:hidden;text-overflow:ellipsis}
#chatList>label{color:var(--muted);font-size:13px}
#savedChats{min-width:120px;max-width:min(255px,100%);font:inherit;font-size:13px;color:#eed6c5;background:#30231b;border:1px solid #5d4233;border-radius:8px;padding:7px}
#savedChats:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#timeline{height:max(250px,calc(100dvh - 278px))}
@media(max-width:540px){#timeline{height:max(205px,calc(100dvh - 254px))}}

.chat-image{display:block;max-width:100%;max-height:540px;object-fit:contain;border-radius:12px;margin-top:12px}
.attachments{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
#makeImage[aria-pressed=true]{background:#704629;color:#fff1e5}
@media(max-width:540px){#chatList>div{flex-wrap:wrap}#compose .bar{gap:6px}}

html[data-font=small]{font-size:13px}html[data-font=large]{font-size:18px}
#settingsForm{display:grid;gap:10px}#settingsForm select{width:100%;font:inherit;padding:10px;border:1px solid #684b38;border-radius:9px;background:#241b17;color:inherit}
#settingsForm label{font-size:14px;color:var(--muted)}.check-setting{display:flex;align-items:center;gap:8px}.check-setting input{width:auto}
#chatSearch{max-width:180px;padding:8px}#renameChat,#deleteChat{font-size:12px;padding:7px 10px}
.message-actions{display:flex;gap:8px;margin-top:14px}.message-actions button{font-size:11px;padding:4px 8px;background:transparent;color:var(--muted);border-color:transparent}
.header-side{flex-wrap:wrap}dialog{max-height:88dvh;overflow:auto}
html[data-theme=light]{color-scheme:light;--paper:#30251f;--muted:#705c4d;--border:#d8c7b8}
html[data-theme=light] body{background:#f3ece5;color:#30251f}
html[data-theme=light] header{background:#fcf8f3e8;border-color:#dfcfc0}
html[data-theme=light] #compose,html[data-theme=light] .msg.assistant,html[data-theme=light] #login,html[data-theme=light] dialog{background:#fffaf5;color:#30251f;border-color:#d9c6b4}
html[data-theme=light] .msg.user{background:#f3d7bf;color:#30251f;border-color:#dfbea3}
html[data-theme=light] .intro{background:linear-gradient(120deg,#f5dfc9,#fff9f2);border-color:#dfbea3}
html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] #settingsForm select{background:#fffaf5;color:#30251f;border-color:#cdb59f}
html[data-theme=light] button{color:#473329;background:#efdfd0;border-color:#cfb89f}
html[data-theme=light] button.primary{background:#f6a36b;color:#2a160c}
html[data-theme=light] .bar label,html[data-theme=light] .brand small,html[data-theme=light] .local-pill{color:#705c4d}
html[data-theme=light] #draft{color:#30251f}html[data-theme=light] a{color:#8c421b}
@media(max-width:650px){header{height:auto;min-height:68px;padding:12px 16px;align-items:flex-start}.header-side{justify-content:flex-end;gap:5px}.header-side button{font-size:11px;padding:6px}.local-pill{display:none}#chatList{gap:6px}#chatSearch{max-width:140px}#timeline{height:max(220px,calc(100dvh - 390px))}.bar{flex-wrap:wrap}#compose{position:sticky;bottom:0}}

html[data-theme=light] .msg>strong{color:#854820}html[data-font=large] .msg{font-size:18px}html[data-font=small] .msg{font-size:13px}
