@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{font-family:"Google Sans",Roboto,"Noto Sans KR",sans-serif;color-scheme:light;--bg:#f8fafd;--surface:#fff;--surface-2:#f0f4f9;--text:#202124;--muted:#5f6368;--line:#e3e7ed;--primary:#1a73e8;--primary-soft:#e8f0fe;--danger:#d93025;--shadow:0 12px 36px rgba(60,64,67,.12);--radius:22px}
:root[data-theme="dark"]{color-scheme:dark;--bg:#17191c;--surface:#202327;--surface-2:#292e34;--text:#e8eaed;--muted:#aeb4bc;--line:#383e45;--primary:#8ab4f8;--primary-soft:#26384f;--danger:#f28b82;--shadow:0 12px 36px rgba(0,0,0,.3)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:2px}[hidden]{display:none!important}.material-symbols-rounded{font-variation-settings:"FILL" 0,"wght" 450,"GRAD" 0,"opsz" 24}
.app-shell{min-height:100vh}.login-view{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 18px;background:radial-gradient(ellipse at 15% 20%,rgba(138,180,248,.25),transparent 38%),radial-gradient(ellipse at 85% 85%,rgba(183,156,255,.18),transparent 38%),var(--bg)}.login-card{width:min(100%,440px);padding:42px 42px 25px;background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);text-align:center}.brand-mark{width:68px;height:68px;margin:0 auto 18px;display:grid;place-items:center;color:var(--primary);background:var(--primary-soft);border-radius:22px}.brand-mark svg{width:46px;height:46px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);margin:0 0 10px}.login-card h1{font-size:29px;letter-spacing:-.8px;margin:0}.login-subtitle{font-size:14px;color:var(--muted);margin:12px 0 30px}.google-button{height:48px;width:100%;display:flex;align-items:center;justify-content:center;gap:13px;background:#fff;color:#3c4043;border:1px solid #dadce0;border-radius:7px;font-family:Roboto,"Noto Sans KR",sans-serif;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgba(60,64,67,.12);transition:background .15s,box-shadow .15s}.google-button:hover{background:#f8faff;box-shadow:0 2px 5px rgba(60,64,67,.2)}.google-g{font-size:20px;font-weight:700;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%);color:transparent;background-clip:text}.status-message{min-height:22px;color:var(--danger);font-size:12px;line-height:1.5;margin:12px 0 5px}.login-footer{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.login-note{font-size:12px;color:var(--muted);margin:20px 0 0;text-align:center}
.chat-view{height:100dvh;min-height:540px;display:grid;grid-template-columns:310px minmax(0,1fr);padding:12px;gap:12px}.sidebar,.conversation{background:var(--surface);border:1px solid var(--line);border-radius:24px;min-height:0}.sidebar{display:flex;flex-direction:column;overflow:hidden}.sidebar-header{height:76px;padding:0 18px;display:flex;align-items:center;justify-content:space-between}.mini-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;letter-spacing:-.4px}.mini-brand-icon{width:34px;height:34px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:20px;font-weight:700}.sidebar-label{padding:12px 22px 8px;font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.7px}.room-list{padding:0 10px;overflow:auto;flex:1}.room-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:14px;background:transparent;text-align:left;color:var(--text);margin:2px 0}.room-item:hover{background:var(--surface-2)}.room-item.active{background:var(--primary-soft)}.room-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:14px;background:var(--surface-2);color:var(--primary);display:grid;place-items:center;font-weight:700}.room-item.active .room-avatar{background:var(--surface);}.room-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.room-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-copy span{font-size:11px;color:var(--muted)}.no-rooms{padding:20px 14px;color:var(--muted);font-size:12px;line-height:1.6;text-align:center}.sidebar-bottom{border-top:1px solid var(--line);padding:14px}.profile-row{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:var(--surface-2)}.avatar.small{width:34px;height:34px}.profile-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.profile-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation{display:flex;flex-direction:column;overflow:hidden;position:relative}.conversation-header{height:76px;flex:0 0 76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.conversation-heading{min-width:0;flex:1}.conversation-heading h2{font-size:17px;margin:0 0 5px;letter-spacing:-.3px}.conversation-heading p{font-size:11px;color:var(--muted);margin:0}.header-actions{display:flex;gap:4px}.icon-button,.text-icon-button{width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--muted)}.icon-button:hover,.text-icon-button:hover{background:var(--surface-2);color:var(--text)}.icon-button .material-symbols-rounded{font-size:21px}.icon-button.subtle{width:34px;height:34px}.empty-state{margin:auto;text-align:center;padding:30px 20px}.empty-illustration{width:86px;height:86px;border-radius:28px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;margin:0 auto 20px}.empty-illustration span{font-size:42px}.empty-state h3{font-size:18px;margin:0 0 8px}.empty-state p{font-size:12px;color:var(--muted);margin:0}.message-list{flex:1;overflow:auto;padding:24px clamp(18px,5vw,70px) 16px;scroll-behavior:smooth}.message-row{display:flex;gap:12px;margin:0 0 22px;align-items:flex-start}.message-row .avatar{width:34px;height:34px;flex:0 0 34px}.message-body{min-width:0;max-width:100%;flex:1}.message-meta{display:flex;align-items:baseline;gap:9px;margin:1px 0 6px}.message-meta strong{font-size:12px}.message-meta time{font-size:10px;color:var(--muted)}.message-text{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}.composer{margin:12px clamp(14px,4vw,52px) 22px;padding:8px 9px 8px 18px;display:flex;align-items:flex-end;gap:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:24px}.composer textarea{flex:1;resize:none;max-height:150px;min-height:28px;border:0;outline:0;background:transparent;color:var(--text);font-size:13px;line-height:1.6;padding:4px 0}.composer textarea::placeholder{color:var(--muted)}.send-button{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff}.send-button:disabled{opacity:.35;cursor:not-allowed}.mobile-back{display:none}
.app-dialog{width:min(calc(100% - 32px),440px);max-height:min(88vh,720px);padding:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.app-dialog::backdrop{background:rgba(20,25,32,.45);backdrop-filter:blur(3px)}.dialog-close-row{height:48px;display:flex;justify-content:flex-end;padding:6px 8px 0}.dialog-content{padding:4px 30px 30px}.dialog-icon{width:46px;height:46px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;margin-bottom:16px}.dialog-icon span{font-size:25px}.dialog-content h2{font-size:21px;margin:0 0 7px}.dialog-description{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 22px}.field-label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}.text-field{width:100%;height:46px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--text);font-size:13px;margin-bottom:14px}.text-field:focus{border-color:var(--primary)}.primary-button,.danger-button{width:100%;height:44px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-size:13px;font-weight:600;margin-top:5px}.danger-button{background:transparent;color:var(--danger);border:1px solid var(--line);margin-top:24px}.form-error{min-height:18px;color:var(--danger);font-size:11px;margin:0 0 8px;line-height:1.5}.version-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}.version-row strong{color:var(--text)}.member-list-wrap{margin-top:25px;border-top:1px solid var(--line);padding-top:18px}.member-list-wrap h3{font-size:13px;margin:0 0 12px}.member-entry{display:flex;align-items:center;gap:10px;padding:8px 0}.member-entry img{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--surface-2)}.member-entry div{display:flex;flex-direction:column;gap:3px;min-width:0}.member-entry strong{font-size:11px}.member-entry span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#30343a;color:#fff;padding:11px 17px;border-radius:30px;font-size:12px;box-shadow:var(--shadow);transition:.2s;z-index:20;max-width:calc(100% - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.chat-view{display:block;padding:0;height:100dvh;min-height:0}.sidebar,.conversation{position:absolute;inset:0;border:0;border-radius:0}.sidebar{z-index:2}.conversation{z-index:1}.chat-view.mobile-chat-open .sidebar{display:none}.chat-view.mobile-chat-open .conversation{display:flex}.mobile-back{display:grid;margin-right:8px}.conversation-header{padding:0 12px}.message-list{padding:20px 16px 10px}.composer{margin:10px 12px 14px}.login-card{padding:34px 24px 22px}.login-card h1{font-size:26px}}
