/* Seoul Glow interpreter chat — matches the site's "Blush Editorial" palette. All selectors are scoped under .sgc */
.sgc{
  --sgc-ink:#241B1A; --sgc-soft:#5A4A47; --sgc-mute:#96817D;
  --sgc-accent:#E8432E; --sgc-accent-deep:#C22F1C;
  --sgc-blush:#F7D8D4; --sgc-blush2:#FBE7E4; --sgc-line:#F0B7AE; --sgc-card:#fff;
  --sgc-mine:#241B1A; --sgc-mine-ink:#fff; --sgc-mine-sub:#E9D6D2;
  --sgc-other:#FBE7E4; --sgc-online:#5E8A72;
  font-family:"Instrument Sans",system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic","Hiragino Sans","Noto Sans JP","PingFang SC",sans-serif;
  color:var(--sgc-ink); font-size:15px; line-height:1.5; box-sizing:border-box;
}
.sgc *,.sgc *::before,.sgc *::after{box-sizing:border-box}
.sgc button,.sgc input,.sgc select,.sgc textarea{font:inherit;color:inherit}
.sgc button{cursor:pointer}
.sgc :focus-visible{outline:2px solid var(--sgc-accent);outline-offset:2px}

.sgc-page{max-width:760px;margin:24px auto;padding:0 16px}
.sgc-shell{display:flex;flex-direction:column;background:var(--sgc-card);border:1px solid var(--sgc-line);border-radius:18px;overflow:hidden;height:min(78vh,760px);min-height:460px}

.sgc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--sgc-line);flex-wrap:wrap}
.sgc-title{font-weight:700;letter-spacing:.02em}
.sgc-title small{display:block;font-weight:500;font-size:12px;color:var(--sgc-mute);letter-spacing:0}
.sgc-members{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.sgc-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;border:1px solid var(--sgc-line);border-radius:999px;padding:1px 9px;background:var(--sgc-blush2);color:var(--sgc-soft)}
.sgc-chip i{width:7px;height:7px;border-radius:50%;background:#cdbab6}
.sgc-chip.on i{background:var(--sgc-online)}
.sgc-chip b{font-weight:600;font-size:10px;letter-spacing:.06em}
.sgc-mylang{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--sgc-mute)}
.sgc-mylang select{border:1px solid var(--sgc-line);border-radius:8px;padding:4px 8px;background:#fff;font-size:13px}

.sgc-log{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(#fff,#fff8f6)}
.sgc-empty{margin:auto;text-align:center;color:var(--sgc-mute);font-size:14px;max-width:36ch}
.sgc-msg{max-width:84%;display:flex;flex-direction:column;gap:3px;align-self:flex-start;align-items:flex-start}
.sgc-msg.mine{align-self:flex-end;align-items:flex-end}
.sgc-name{font-size:12px;color:var(--sgc-mute)}
.sgc-name .staff{color:var(--sgc-accent);font-weight:600}
.sgc-bub{padding:9px 13px;border-radius:16px;border-bottom-left-radius:4px;background:var(--sgc-other);overflow-wrap:anywhere;display:flex;flex-direction:column;gap:6px}
.sgc-msg.mine .sgc-bub{background:var(--sgc-mine);color:var(--sgc-mine-ink);border-bottom-left-radius:16px;border-bottom-right-radius:4px}
.sgc-main{white-space:pre-wrap}
.sgc-sub{white-space:pre-wrap;font-size:13px;color:var(--sgc-soft);border-top:1px dashed var(--sgc-line);padding-top:6px}
.sgc-msg.mine .sgc-sub{color:var(--sgc-mine-sub);border-top-color:rgba(255,255,255,.3)}
.sgc-sub b{font-size:10px;font-weight:600;letter-spacing:.06em;margin-right:6px}
.sgc-pending{font-style:italic;opacity:.75}
.sgc-time{font-size:11px;color:var(--sgc-mute);font-variant-numeric:tabular-nums}
.sgc-fail{font-size:12px;color:var(--sgc-accent-deep)}

.sgc-compose{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid var(--sgc-line);background:#fff}
.sgc-compose textarea{flex:1;min-width:0;resize:none;border:1px solid var(--sgc-line);border-radius:12px;padding:9px 12px;height:44px;max-height:140px;background:#fff;font-size:16px}
.sgc-send,.sgc-primary{border:0;background:var(--sgc-accent);color:#fff;border-radius:12px;font-weight:600}
.sgc-send{height:44px;padding:0 16px;flex:none}
.sgc-send:disabled,.sgc-primary:disabled{opacity:.5;cursor:default}
.sgc-send:hover:not(:disabled),.sgc-primary:hover:not(:disabled){background:var(--sgc-accent-deep)}
.sgc-banner{padding:8px 14px;font-size:13px;background:#FFF1DB;color:#6b4a00;border-bottom:1px solid #f3dfb5}

.sgc-join{padding:22px;display:flex;flex-direction:column;gap:14px;overflow-y:auto}
.sgc-join h2{margin:0;font-size:22px;line-height:1.25}
.sgc-join p{margin:0;color:var(--sgc-soft);font-size:14px}
.sgc-field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--sgc-soft)}
.sgc-field input,.sgc-field select{border:1px solid var(--sgc-line);border-radius:10px;padding:10px 12px;font-size:16px;font-weight:400;color:var(--sgc-ink);background:#fff}
.sgc-consent{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:var(--sgc-soft);line-height:1.45}
.sgc-consent input{margin-top:3px;width:17px;height:17px;flex:none;accent-color:var(--sgc-accent)}
.sgc-consent a{text-decoration:underline}
.sgc-primary{padding:13px 16px;font-size:16px}
.sgc-error{color:var(--sgc-accent-deep);font-size:13px;min-height:1em}

/* floating launcher */
.sgc-launch{position:fixed;left:18px;bottom:18px;z-index:2147482000;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 18px 12px 14px;background:var(--sgc-accent);color:#fff;font-weight:700;font-size:14px;box-shadow:0 8px 24px rgba(36,27,26,.25)}
.sgc-launch svg{width:22px;height:22px}
.sgc-launch .dot{min-width:20px;height:20px;border-radius:10px;background:#fff;color:var(--sgc-accent);font-size:12px;display:grid;place-items:center;padding:0 5px}
.sgc-panel{position:fixed;left:18px;bottom:84px;z-index:2147483000;width:min(400px,calc(100vw - 36px));height:min(620px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--sgc-line);border-radius:18px;box-shadow:0 18px 48px rgba(36,27,26,.28);overflow:hidden}
.sgc-panel .sgc-shell{height:100%;min-height:0;border:0;border-radius:0}
.sgc-x{border:0;background:none;font-size:22px;line-height:1;padding:2px 6px;color:var(--sgc-mute)}
@media (max-width:560px){
  .sgc-panel{inset:0;width:auto;height:auto;border-radius:0;border:0}
  .sgc-launch{left:12px;bottom:12px}
  .sgc-page{margin:12px auto;padding:0 12px}
  .sgc-shell{height:calc(100svh - 120px)}
  .sgc-msg{max-width:92%}
}
.sgchat-inline-btn{display:inline-block;background:#E8432E;color:#fff !important;border-radius:999px;padding:12px 22px;font-weight:700;text-decoration:none}

/* wp-admin console */
.sgc-admin{display:grid;grid-template-columns:320px 1fr;gap:16px;margin-top:12px;height:calc(100vh - 150px);min-height:520px}
.sgc-side{display:flex;flex-direction:column;background:#fff;border:1px solid var(--sgc-line);border-radius:14px;overflow:hidden;min-height:0}
.sgc-side-head{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--sgc-line);flex-wrap:wrap}
.sgc-tab{border:1px solid var(--sgc-line);background:#fff;border-radius:8px;padding:5px 10px;font-size:13px}
.sgc-tab.on{background:var(--sgc-ink);color:#fff;border-color:var(--sgc-ink)}
.sgc-new{margin-left:auto;border:0;background:var(--sgc-accent);color:#fff;border-radius:8px;padding:5px 10px;font-size:13px;font-weight:600}
.sgc-rooms{flex:1;overflow-y:auto;margin:0;padding:0;list-style:none}
.sgc-room{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #f6e3df;background:#fff;padding:10px 12px}
.sgc-room:hover{background:var(--sgc-blush2)}
.sgc-room.on{background:var(--sgc-blush)}
.sgc-room-top{display:flex;align-items:center;gap:6px}
.sgc-room-top strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgc-room-top .badge{background:var(--sgc-accent);color:#fff;border-radius:10px;font-size:11px;padding:0 7px;font-weight:700}
.sgc-room-top .on{width:8px;height:8px;border-radius:50%;background:var(--sgc-online)}
.sgc-room p{margin:2px 0 0;font-size:12px;color:var(--sgc-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgc-room .meta{font-size:11px;color:var(--sgc-mute)}
.sgc-main-pane{min-height:0;display:flex;flex-direction:column}
.sgc-main-pane .sgc-shell{height:100%;min-height:0}
.sgc-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.sgc-tools button{border:1px solid var(--sgc-line);background:#fff;border-radius:8px;padding:4px 9px;font-size:12px}
.sgc-source{padding:6px 16px;font-size:12px;color:var(--sgc-mute);border-bottom:1px solid var(--sgc-line);background:#fffaf9}
.sgc-invite{padding:10px 16px;border-bottom:1px solid var(--sgc-line);background:#fffaf9;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px}
.sgc-invite input{flex:1;min-width:200px;border:1px solid var(--sgc-line);border-radius:8px;padding:5px 8px;font-size:12px}
.sgc-placeholder{margin:auto;color:var(--sgc-mute);text-align:center}
@media (max-width:900px){.sgc-admin{grid-template-columns:1fr;height:auto}.sgc-side{max-height:300px}.sgc-main-pane{height:70vh}}
/* While the chat is open, hide the site theme's floating button rail (Instagram / WhatsApp / Free consultation) so it can't cover the send button */
body.sgchat-active aside.rail{display:none !important}
