:root{color-scheme:light;--bg:#f6f8fb;--surface:#fff;--ink:#14283b;--muted:#637487;--line:#e7ecf2;--soft:#eef4f6;--accent:#117d70;--accent-hover:#0c6c61;--accent-soft:#e5f5f0;--shadow:0 18px 60px rgba(17,35,51,.055);font-family:Pretendard,"Apple SD Gothic Neo","Malgun Gothic",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{font-size:15px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--accent)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.muted{color:var(--muted)}.subtle{font-size:12px;color:var(--muted)}.eyebrow{letter-spacing:.04em;color:var(--accent);font-size:11px;font-weight:800;text-transform:uppercase}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:850}.brand small{display:block;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:.02em}.brand-icon{display:block;flex:none;width:44px;height:44px;object-fit:contain}.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;border-radius:12px;border:1px solid transparent;font-weight:720;transition:background .18s ease,transform .18s ease;white-space:nowrap}.btn:active{transform:scale(.985)}.btn-primary{color:#fff;background:var(--accent)}.btn-primary:hover{background:var(--accent-hover)}.btn-outline{color:var(--ink);background:white;border-color:#d4dde6}.btn-outline:hover{background:var(--soft)}.btn-text{color:var(--muted);background:transparent}.btn-text:hover{background:var(--soft)}.btn-large{width:100%;min-height:52px}.text-action{background:none;border:0;padding:8px 2px;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.field{display:flex;flex-direction:column;gap:8px;margin:20px 0}.field>span{font-weight:700;font-size:13px}.field input{width:100%;padding:14px;border:1px solid #d7e0e8;border-radius:12px;background:white;outline:none}.field input:focus,.composer textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(17,125,112,.09)}.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);background:#18394b;color:#fff;border-radius:14px;padding:12px 18px;box-shadow:0 10px 40px rgba(0,0,0,.16);z-index:10000;max-width:min(90vw,600px);font-size:13px}
.loading-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.loading-screen h1{margin:4px 0 0;font-size:26px;letter-spacing:-.05em}.loading-screen p{color:var(--muted);font-size:13px}.spinner{height:21px;width:21px;margin-top:18px;border:2px solid #d5e3e3;border-top-color:var(--accent);border-radius:50%;animation:spin .65s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.auth-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);gap:60px;align-items:center;max-width:1140px;margin:0 auto;padding:40px}.auth-card{padding:28px}.auth-eyebrow{margin-top:75px;color:var(--accent);font-size:13px;font-weight:750}.auth-card h1{font-size:clamp(36px,4.8vw,62px);line-height:1.19;letter-spacing:-.07em;margin:18px 0 20px}.auth-card h1 span{color:var(--accent)}.auth-card>p{max-width:365px;color:var(--muted);line-height:1.9;margin:0 0 36px}.auth-card .btn{max-width:340px}.auth-footnote{margin-top:16px;color:#83919d;font-size:12px}.invite-note{margin-top:18px;padding:12px;border-radius:12px;background:var(--accent-soft);color:#266b61;max-width:340px;font-size:13px}.auth-art{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(140deg,#d7e9e8,#eef5f2);min-height:485px;padding:55px 35px;border-radius:28px}.sample-label{color:#446f69;font-size:12px;letter-spacing:.14em;font-weight:700;margin-bottom:35px}.mock-msg{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #d6e7e4;border-radius:20px;padding:20px;box-shadow:0 12px 35px rgba(27,92,84,.08);max-width:335px}.mock-msg strong{font-size:14px}.mock-msg p{margin:7px 0 0;color:#526b6b;line-height:1.9;font-size:13px}.mock-icon{display:grid;place-items:center;background:#e5f5f0;color:var(--accent);border-radius:12px;width:40px;height:40px;font-weight:750}.mock-line{width:1px;height:40px;background:#7aa7a0;margin:0 0 0 38px}.mock-delivered{border-radius:13px;background:#1f8a7b;color:white;padding:13px 17px;max-width:max-content;font-size:12px;font-weight:750;margin-left:15px}.onboard-screen{display:grid;place-items:center;min-height:100dvh;padding:20px}.onboard-card{width:min(500px,100%);padding:32px;border-radius:25px;background:white;box-shadow:var(--shadow)}.onboard-card h1{font-size:28px;letter-spacing:-.045em;margin:7px 0 8px}.onboard-card .eyebrow{margin:35px 0 0}.onboard-card>button{margin-top:18px}.onboard-card .subtle{margin-top:16px}
.app-shell{width:100%;min-height:100dvh;display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1600px;margin:auto}.sidebar{background:white;border-right:1px solid var(--line);padding:27px 17px;display:flex;flex-direction:column;min-height:100dvh}.sidebar-brand{display:flex;align-items:center;gap:10px;margin:0 9px 46px}.sidebar-brand .brand-icon{width:37px;height:37px}.sidebar-brand strong{display:block;font-size:18px;letter-spacing:-.045em}.sidebar-brand small{display:block;font-size:11px;color:var(--muted);margin-top:-3px}.workspace-label{margin:0 11px 7px;color:#8291a0;font-size:11px;font-weight:750}.workspace-select{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 9px;background:#fafbfd;outline:none;color:var(--ink);font-weight:750}.role-desc{font-size:11px;color:#83919d;padding:8px 10px 28px}.navigation{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;text-align:left;width:100%;background:transparent;border:0;padding:12px 14px;border-radius:12px;font-weight:650;color:#607386}.nav-item .nav-symbol{width:20px;text-align:center;font-size:17px}.nav-item.active{color:var(--accent);background:var(--accent-soft)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:16px 5px 5px}.account-name{font-size:13px;font-weight:650;padding:8px 10px;word-break:break-all}.sidebar-bottom .btn{min-height:35px}.main-panel{display:flex;flex-direction:column;min-width:0;height:100dvh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:26px 35px 20px;background:white;border-bottom:1px solid var(--line);flex-shrink:0}.topbar h1{font-size:24px;letter-spacing:-.055em;margin:2px 0 0}.topbar-actions{display:flex;align-items:center;gap:6px}.topbar-actions .install-action{padding:6px;font-size:12px}.workspace-pill{display:inline-block;border:1px solid var(--line);background:#f8fafc;border-radius:999px;padding:7px 12px;color:#667a8d;font-size:12px;font-weight:600}.workspace-content{flex:1;display:flex;min-height:0;min-width:0}.chat-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:#f8fafc}.shop-selector-wrap{display:flex;align-items:center;gap:10px;padding:13px 35px 0;font-size:12px;color:var(--muted)}.shop-selector-wrap select{flex:1;max-width:350px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:white;color:var(--ink)}.notice{display:flex;align-items:flex-start;gap:9px;padding:12px 16px;margin:16px 35px 0;font-size:12px;border-radius:12px;line-height:1.65}.notice strong{font-weight:800}.shared-notice{color:#29665d;background:#e9f7f2}.private-notice{color:#56687d;background:#edf2f8}.notice>span:first-child{font-weight:900;font-size:16px;margin-top:-1px}.chat-list{flex:1;overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:14px;padding:24px 35px 28px}.empty-state{margin:auto;color:#8a9baa;text-align:center;font-size:13px;max-width:300px;line-height:1.9;padding:30px}.message{max-width:min(650px,90%);align-self:flex-start;display:flex;flex-direction:column;gap:6px}.message.own{align-self:flex-end;align-items:flex-end}.message-heading{font-size:11px;color:#8694a2;display:flex;align-items:center;gap:8px}.message-heading strong{color:#54707a;font-weight:750}.message-body{background:white;border:1px solid #e4ebee;border-radius:15px 15px 15px 5px;box-shadow:0 4px 12px rgba(19,50,66,.025);padding:14px 17px;max-width:100%;min-width:150px;overflow-x:auto}.message.own .message-body{background:#e1f4ec;border-color:#d3ece2;border-radius:15px 15px 5px 15px}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px;margin:0;font-family:inherit}.message-table{border-collapse:collapse;background:transparent;font-size:13px;max-width:100%;white-space:pre}.message-table td{padding:7px 9px 7px 0;border-bottom:1px solid #e5ecee;white-space:pre}.message-table tr:first-child td{font-weight:750;color:#465967}.message-time{color:#93a1ae;font-size:10px}.composer{background:white;border-top:1px solid var(--line);padding:15px 35px 22px;flex-shrink:0}.composer textarea{width:100%;min-height:68px;max-height:185px;resize:vertical;border:1px solid #e0e8ee;background:#fcfdfe;padding:14px 16px;border-radius:14px;outline:none;line-height:1.65;overflow-wrap:anywhere}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.composer-bottom span:first-child{color:#a0adb8;font-size:11px}.composer-bottom .btn{min-width:125px}.connect-panel{width:100%;overflow-y:auto;padding:30px 35px 70px}.connect-header h2{font-size:22px;letter-spacing:-.04em;margin:0}.connect-header p{color:var(--muted);font-size:13px;margin:7px 0 24px}.invite-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:900px}.invite-card{background:#fff;border:1px solid var(--line);padding:24px;border-radius:18px;display:flex;flex-direction:column;align-items:start;gap:8px}.invite-symbol{height:42px;width:42px;display:grid;place-items:center;background:var(--accent-soft);border-radius:13px;color:var(--accent);font-size:21px}.invite-card h3{font-size:17px;margin:5px 0 0}.invite-card p{color:var(--muted);font-size:12px;line-height:1.7;margin:0 0 10px;min-height:38px}.invite-card .btn{width:100%}.connection-list-head{display:flex;justify-content:space-between;align-items:center;margin:30px 0 10px}.connection-list-head h3{font-size:15px;margin:0}.members-list{display:flex;flex-direction:column;gap:8px;max-width:900px}.member-row{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);padding:12px 15px;border-radius:12px}.member-avatar{height:36px;width:36px;display:grid;place-items:center;background:#eef4f6;color:#4e7983;border-radius:11px;font-weight:800}.member-info{display:flex;flex:1;min-width:0;flex-direction:column}.member-info strong{font-size:13px;overflow:hidden;text-overflow:ellipsis}.member-info small{font-size:11px;color:#8b99a4}.member-row button{border:0;background:transparent;color:#bd5864;font-size:12px}.mobile-nav{display:none}
@media(max-width:760px){.auth-screen{grid-template-columns:1fr;padding:16px}.auth-card{padding:26px 14px}.auth-eyebrow{margin-top:90px}.auth-art{display:none}.auth-card h1{font-size:43px}.app-shell{display:block}.sidebar{display:none}.main-panel{height:100dvh}.topbar{padding:15px 18px 13px}.topbar h1{font-size:21px}.workspace-pill{font-size:10px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-list{padding:16px 14px 22px;gap:13px}.notice{margin:11px 14px 0;padding:10px 12px;font-size:11px}.message{max-width:92%}.composer{padding:11px 12px max(14px,env(safe-area-inset-bottom))}.composer textarea{min-height:67px}.composer-bottom span:first-child{font-size:10px}.composer-bottom .btn{min-width:105px}.shop-selector-wrap{padding:10px 14px 0}.mobile-nav{display:flex;justify-content:space-around;align-items:center;background:white;border-top:1px solid var(--line);padding:6px 8px max(7px,env(safe-area-inset-bottom));flex-shrink:0}.mobile-nav .nav-item{display:flex;width:auto;flex:1;flex-direction:column;gap:0;align-items:center;justify-content:center;font-size:10px;padding:5px;border-radius:9px}.mobile-nav .nav-symbol{font-size:19px}.connect-panel{padding:19px 14px 80px}.invite-grid{grid-template-columns:1fr}.invite-card{padding:17px}.invite-card p{min-height:auto}.onboard-card{padding:25px}.onboard-card h1{font-size:25px}}
@media(min-width:761px) and (max-width:960px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.topbar{padding-left:24px}.chat-list,.composer{padding-left:24px;padding-right:24px}.notice{margin-left:24px;margin-right:24px}}

/* Kakao is the sole login method. Official-style yellow button, high-contrast label. */
.btn-kakao{background:#FEE500!important;color:#191919!important;border:1px solid #FEE500!important;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700}
.btn-kakao:hover:not(:disabled){background:#F6DB00!important;border-color:#F6DB00!important}
.btn-kakao svg{flex:0 0 auto}

/* Production subscription surface: a single card, never mixed into order chat. */
#screen-billing .onboard-card { max-width: 490px; }
#billing-form { display: grid; gap: 14px; margin-top: 20px; }
#billing-form[hidden], #billing-checkout[hidden] { display: none !important; }
#billing-checkout { display: flex; align-items: center; justify-content: center; margin: 18px 0 12px; text-align: center; text-decoration: none; }
#billing-refresh { width: 100%; margin: 12px 0; }
.subscription-summary { margin-top: 24px; padding: 14px 2px; display: flex; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line, #e6e9ef); flex-wrap: wrap; font-size: 13px; color: var(--muted, #626a75); }
.subscription-summary[hidden] { display: none !important; }
