/* MYSOMIS Public Service Guide v1.2.11 — static/offline, no third-party requests. */
.mys-guide{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(19px,env(safe-area-inset-bottom));z-index:75;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;color:#173348}
.mys-guide *{box-sizing:border-box}
.mys-guide button,.mys-guide input{font:inherit}
.mys-guide button:focus-visible,.mys-guide input:focus-visible,.mys-guide a:focus-visible{outline:3px solid #bf9745;outline-offset:3px}
.mys-guide-launch{background:#0d685b;color:#fff;border:2px solid #fff;border-radius:999px;display:flex;gap:10px;align-items:center;padding:12px 17px;box-shadow:0 9px 25px rgba(6,40,54,.27);cursor:pointer;font-weight:800;min-height:49px}
.mys-guide-launch:hover{background:#0b564c}
.mys-guide-launch svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mys-guide-panel{position:absolute;right:0;bottom:64px;width:min(390px,calc(100vw - 28px));height:min(620px,calc(100dvh - 110px));min-height:350px;display:flex;flex-direction:column;background:#fff;border:1px solid #bcd1d6;border-radius:18px;box-shadow:0 15px 65px rgba(7,30,47,.3);overflow:hidden}
.mys-guide-panel[hidden]{display:none}
.mys-guide-header{background:#0d2d43;color:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:15px 16px 13px}
.mys-guide-title{font-weight:850;font-size:1.03rem;line-height:1.25}.mys-guide-subtitle{color:#cae0e7;font-size:.72rem;margin-top:3px;line-height:1.4}
.mys-guide-close{border:1px solid #6a8292;background:transparent;color:#fff;border-radius:8px;width:35px;height:35px;cursor:pointer;flex:none;font-size:22px;line-height:1}
.mys-guide-log{padding:15px 14px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;flex:1;overscroll-behavior:contain;background:#fff}
.mys-guide-msg{align-self:flex-start;max-width:95%;background:#eef5f5;border:1px solid #d5e6e6;border-radius:14px 14px 14px 4px;padding:11px 12px;font-size:.87rem;line-height:1.58;overflow-wrap:anywhere;white-space:pre-wrap}
.mys-guide-msg--user{align-self:flex-end;background:#0e6b5e;color:#fff;border-color:#0e6b5e;border-radius:14px 14px 4px 14px}
.mys-guide-msg-title{font-size:.7rem;font-weight:850;letter-spacing:.01em;opacity:.8;display:block;margin-bottom:3px}
.mys-guide-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.mys-guide-link{display:inline-block;border:1px solid #9abeb5;background:#fff;color:#086052;text-decoration:none;padding:6px 9px;border-radius:8px;font-size:.78rem;font-weight:800;line-height:1.35}
.mys-guide-link:hover{text-decoration:underline}
.mys-guide-prompts{display:flex;gap:7px;padding:10px 12px 4px;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
.mys-guide-chip{border:1px solid #b9d4cf;background:#f6fbf9;color:#0d6658;border-radius:99px;padding:7px 11px;white-space:nowrap;font-size:.73rem;cursor:pointer;flex-shrink:0}
.mys-guide-chip:hover{background:#e3f4ee}
.mys-guide-form{display:flex;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid #d9e5e8}
.mys-guide-question{flex:1;min-width:0;padding:10px 11px;border:1px solid #b5cbd3;border-radius:9px;font-size:.86rem;color:#173348;background:#fff}
.mys-guide-send{border:0;background:#0d7563;color:#fff;border-radius:9px;padding:10px 12px;font-weight:800;cursor:pointer;flex-shrink:0;font-size:.83rem}
.mys-guide-send:hover{background:#0d5e50}
.mys-guide-notice{font-size:.68rem;color:#597083;padding:0 13px 12px;line-height:1.45;margin:0}
@media(max-width:540px){.mys-guide{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.mys-guide-panel{height:min(610px,calc(100dvh - 104px));min-height:280px;bottom:61px;width:calc(100vw - 24px)}.mys-guide-launch{padding:11px 14px}.mys-guide-msg{max-width:97%}}
@media(prefers-reduced-motion:reduce){.mys-guide *{scroll-behavior:auto}}

/* Phase 2: optional online AI verification controls. */
.mys-guide-ai-status{padding:7px 13px;font-size:.72rem;color:#315d69;background:#e9f3f2;border-bottom:1px solid #d9e7e6;font-weight:750}
.mys-guide-verify{padding:5px 12px;background:#f8fbfb;border-bottom:1px solid #d9e7e6;min-height:62px}
.mys-guide-verify[hidden]{display:none}
.mys-guide-send:disabled{opacity:.55;cursor:wait}

/* v1.2.1: Reading-first conversation layout, with a collapsible verification widget. */
.mys-guide-panel{width:min(460px,calc(100vw - 26px));height:min(740px,calc(100dvh - 96px));min-height:0}
.mys-guide-header{align-items:center}
.mys-guide-header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.mys-guide-expand{background:transparent;color:#fff;border:1px solid #6a8292;border-radius:8px;width:35px;height:35px;cursor:pointer;font-size:22px;line-height:1}
.mys-guide-expand:hover,.mys-guide-close:hover{background:rgba(255,255,255,.14)}
.mys-guide-log{position:relative;flex:1 1 0;min-height:110px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:12px 13px 19px;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.mys-guide-msg{max-width:min(96%,580px);font-size:.9rem;line-height:1.6}
.mys-guide-msg--user{max-width:88%}
.mys-guide-verify{flex:0 0 auto;max-height:min(300px,33dvh);overflow-y:auto;min-height:0;padding:7px 12px}
.mys-guide-verify[hidden]{display:none!important}
.mys-guide-prompts{padding:7px 12px 5px}
.mys-guide-form{flex-shrink:0;padding:8px 12px}
.mys-guide-advisory{flex:0 0 auto;border-top:1px solid #e4eaed;background:#f7fafb;color:#506a7b}
.mys-guide-advisory-summary{cursor:pointer;font-size:.72rem;font-weight:750;padding:8px 13px;line-height:1.35}
.mys-guide-advisory .mys-guide-notice{margin:0;padding:3px 13px 11px;font-size:.72rem}
.mys-guide-panel--expanded{width:min(820px,calc(100vw - 28px));height:calc(100dvh - 36px);max-height:960px;bottom:0}
@media(max-width:540px){
  .mys-guide-panel{width:calc(100vw - 24px);height:calc(100dvh - 96px);min-height:0;bottom:61px}
  .mys-guide-panel--expanded{position:fixed;right:12px;left:12px;top:max(8px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:auto;max-height:none;border-radius:15px}
  .mys-guide-msg{max-width:96%}
  .mys-guide-header{padding:11px 12px}
  .mys-guide-ai-status{padding:6px 11px}
  .mys-guide-log{padding:11px 11px 16px}
}
@media(max-height:480px){.mys-guide-panel:not(.mys-guide-panel--expanded){min-height:0;height:calc(100dvh - 76px);bottom:55px}.mys-guide-header{padding:7px 12px}.mys-guide-log{min-height:56px}}

.mys-guide-privacy-line{flex:0 0 auto;font-size:.68rem;line-height:1.3;margin:0;padding:3px 13px 5px;color:#617685;background:#fff}

/* v1.2.11: readable, accessible source links for precise public references. */
.mys-guide-sources{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;border-top:1px solid #c5dcd8;margin-top:11px;padding-top:8px;white-space:normal}
.mys-guide-source-label{width:100%;font-size:.72rem;line-height:1.35;color:#465f6d;font-weight:800}
.mys-guide-source-link{display:inline-block;max-width:100%;font-size:.71rem;line-height:1.3;color:#075d54;font-weight:700;background:#fff;border:1px solid #a3c7c0;padding:5px 7px;border-radius:7px;text-decoration:underline;overflow-wrap:anywhere}
.mys-guide-source-link:hover{background:#e2f1ed}
.mys-guide-msg{white-space:pre-wrap}
@media(max-width:540px){.mys-guide-sources{gap:5px}.mys-guide-source-link{font-size:.68rem}}
