.ggsc{position:fixed;right:22px;bottom:22px;z-index:99990;font-family:inherit;color:#172b46}
.ggsc__launcher{display:flex;align-items:center;gap:10px;border:0;border-radius:999px;padding:13px 19px;background:#0e2f56;color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.2;box-shadow:0 8px 28px #081a2e35;cursor:pointer}
.ggsc__launcher:hover{background:#174777}
.ggsc__launcher-icon{font-size:19px;color:#83c5ff}
.ggsc__panel{position:absolute;right:0;bottom:0;width:min(390px,calc(100vw - 28px));height:min(630px,calc(100dvh - 36px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6e0eb;border-radius:18px;background:#fff;box-shadow:0 18px 60px #071c3540}
.ggsc__panel[hidden],.ggsc__launcher[hidden]{display:none}
.ggsc__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#0e2f56;color:#fff}
.ggsc__header strong,.ggsc__header small{display:block}
.ggsc__header strong{font-size:15px}
.ggsc__header small{margin-top:4px;color:#c7d8eb;font-size:11px}
.ggsc__close{width:34px;height:34px;border:0;border-radius:50%;background:#ffffff20;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.ggsc__messages{flex:1;overflow:auto;padding:16px 14px 8px;background:#f6f8fb}
.ggsc__message{width:fit-content;max-width:92%;margin:0 0 10px;padding:10px 12px;border-radius:13px;font-size:13px;line-height:1.5}
.ggsc__message--coach{background:#fff;border:1px solid #e1e8f0}
.ggsc__message--user{margin-left:auto;background:#e4f1ff;color:#113c69}
.ggsc__message--note{max-width:100%;background:#fff8e8;color:#725b22;font-size:11px}
.ggsc__choices{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;background:#fff;border-top:1px solid #e8edf3;max-height:42%;overflow:auto}
.ggsc__choice,.ggsc__restart{border:1px solid #c9d8e8;border-radius:999px;padding:9px 12px;background:#fff;color:#174777;font:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer}
.ggsc__choice:hover,.ggsc__restart:hover{border-color:#3989ca;background:#f2f8ff}
.ggsc__shortcuts{display:flex;flex-wrap:wrap;gap:7px;flex:1 1 100%}
.ggsc__dimension-form{display:grid;grid-template-columns:1fr 16px 1fr;gap:8px;align-items:end;flex:1 1 100%;padding:12px;border:1px solid #e1e8f0;border-radius:12px;background:#f8fafc}
.ggsc__dimension-form label,.ggsc__preference-form>label:not(.ggsc__budget-label){display:flex;flex-direction:column;gap:5px;color:#344b64;font-size:12px;font-weight:650}
.ggsc__dimension-form label span,.ggsc__preference-form label span{color:#75869a;font-size:11px;font-weight:400}
.ggsc__dimension-form input,.ggsc__dimension-form select,.ggsc__preference-form select,.ggsc__budget-control input[type=number]{min-width:0;width:100%;box-sizing:border-box;border:1px solid #cbd8e6;border-radius:8px;padding:9px;background:#fff;color:#173451;font:inherit}
.ggsc__dimension-form>b{align-self:center;text-align:center;color:#8091a4}
.ggsc__dimension-form button,.ggsc__preference-form>button{grid-column:1/-1;border:0;border-radius:8px;padding:11px 14px;background:#0e2f56;color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ggsc__preference-form{display:grid;gap:12px;flex:1 1 100%;padding:14px;border:1px solid #e1e8f0;border-radius:12px;background:#f8fafc}
.ggsc__budget-label{color:#344b64;font-size:12px;font-weight:700}
.ggsc__budget-control{display:grid;grid-template-columns:minmax(0,1fr) 82px 12px;gap:8px;align-items:center}
.ggsc__budget-control input[type=range]{width:100%;accent-color:#174777}
.ggsc__budget-control span{color:#53677c;font-size:13px}
.ggsc__preference-form>button{grid-column:auto}
.ggsc__message--thinking{display:flex;align-items:center;gap:10px;color:#53677c}
.ggsc__message--thinking:before{content:'';width:14px;height:14px;border:2px solid #c8d7e6;border-top-color:#174777;border-radius:50%;animation:ggsc-spin .75s linear infinite}
@keyframes ggsc-spin{to{transform:rotate(360deg)}}
.ggsc__result{display:flex;flex:1 1 100%;flex-direction:column;gap:5px;padding:11px 12px;border:1px solid #dce5ef;border-radius:12px;background:#fff;font-size:12px}
.ggsc__result strong{font-size:13px;color:#142c48}
.ggsc__result span,.ggsc__result small{color:#53677c}
.ggsc__result a{align-self:flex-start;margin-top:3px;color:#1265a5;font-weight:700;text-decoration:underline}
.ggsc__restart{margin:3px auto}
.ggsc__footer{padding:9px 14px;color:#68798b;background:#fff;font-size:10px;line-height:1.4}
@media(max-width:600px){.ggsc{right:12px;bottom:12px}.ggsc__launcher{padding:12px 15px}.ggsc__panel{right:-2px;bottom:-2px;height:min(700px,calc(100dvh - 20px));border-radius:16px}}
@media(prefers-reduced-motion:reduce){.ggsc__message--thinking:before{animation:none}}

/* Readable controls and reliable mobile keyboard handling. */
.ggsc__header strong{font-size:17px}
.ggsc__header small{font-size:13px}
.ggsc__message{font-size:15px}
.ggsc__message--note{font-size:13px}
.ggsc__choice,.ggsc__restart{font-size:14px}
.ggsc__dimension-form label,.ggsc__preference-form>label:not(.ggsc__budget-label),.ggsc__budget-label{font-size:14px}
.ggsc__dimension-form input,.ggsc__dimension-form select,.ggsc__preference-form select,.ggsc__budget-control input[type=number]{font-size:16px;min-height:46px}
.ggsc__dimension-form{grid-template-columns:minmax(0,1fr);gap:10px}
.ggsc__dimension-form button,.ggsc__preference-form>button{font-size:15px;min-height:48px}
.ggsc__form-error{min-height:0;color:#a52828;font-size:13px;line-height:1.4}
.ggsc__form-error:empty{display:none}
.ggsc__dimension-form input[aria-invalid=true]{border-color:#b42318;box-shadow:0 0 0 2px #b4231820}
.ggsc__result{font-size:14px}
.ggsc__result strong{font-size:15px}
.ggsc__footer{font-size:12px}
@media(max-width:600px){
  .ggsc{inset: auto 12px 12px auto}
  .ggsc--open{inset:0;z-index:100000}
  .ggsc--open .ggsc__panel{position:fixed;inset:8px;box-sizing:border-box;width:auto;height:auto;max-height:calc(100dvh - 16px);border-radius:16px}
  .ggsc__panel{max-height:calc(100dvh - 24px)}
  .ggsc__messages{min-height:90px;padding:14px 12px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .ggsc__choices{max-height:52%;padding:12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .ggsc__dimension-form{padding:12px}
  .ggsc__dimension-form input{font-size:16px}
}
