/* Studio 2026-09-15: scoped to preserve every original console page. */
body.medigeo-studio{--sans:'Noto Sans KR','Malgun Gothic',system-ui,sans-serif;--mono:var(--sans);font-family:var(--sans)}
body.medigeo-studio :is(button,input,select,textarea){font-family:var(--sans)}
body.medigeo-studio #mhApp{color:#17263d;font-family:var(--sans);font-size:15px;line-height:1.65}
body.medigeo-studio #mhApp :is(h1,h2,h3,p,span,b,small){font-family:var(--sans);text-shadow:none}
body.medigeo-studio .mh-main{display:block!important;min-width:0}
body.medigeo-studio .mh-layout{display:block!important}
body.medigeo-studio .mh-workspace{display:block!important;grid-template-columns:1fr!important}
body.medigeo-studio #mhView{min-width:0;width:100%}
body.medigeo-studio #mhChat{display:none}
body.medigeo-studio.ms-chat-open #mhChat{display:flex!important;flex-direction:column!important;position:fixed!important;inset:22px 24px 58px auto!important;width:min(790px,calc(100vw - 48px))!important;max-height:none!important;height:auto!important;z-index:100002!important;border:1px solid #637996!important;border-radius:24px!important;box-shadow:0 32px 120px #0008;background:#f6f8fc;overflow:hidden;margin:0!important}
body.medigeo-studio.ms-chat-open #mhMessages{flex:1;min-height:100px;max-height:none!important;overflow:auto;padding:24px}
#msChatBackdrop{display:none}body.ms-chat-open #msChatBackdrop{display:block;position:fixed;inset:0;border:0;background:#07142473;backdrop-filter:blur(5px);z-index:100001}
body.medigeo-studio #mhChatHead{padding:20px;background:#101d32;color:white;flex-shrink:0;align-items:center;gap:14px}
body.medigeo-studio #mhChatHead h2{font-size:21px;color:#fff;line-height:1.3;margin:0 0 5px}
body.medigeo-studio #mhChatHead p{color:#b8c9e1;line-height:1.65;font-size:12px;max-width:510px;white-space:normal}
body.medigeo-studio .mh-chat-more{color:#e2eafa;background:#273750;border:1px solid #4a5d78;padding:9px;white-space:nowrap}
body.medigeo-studio #mhChatContext{font-size:13px;padding:12px 20px;background:#e7edf7;color:#334866;flex-wrap:wrap}
body.medigeo-studio .mh-bubble{font-size:15px;line-height:1.85;padding:18px 20px;overflow-wrap:anywhere}
body.medigeo-studio .mh-compose{padding:14px 20px;background:#fff;flex-shrink:0}
body.medigeo-studio #mhInput{font-size:16px;min-height:78px;max-height:150px;line-height:1.65}
body.medigeo-studio .mh-plan-stage{font-size:14px;line-height:1.65;grid-template-columns:28px 100px 1fr;padding:12px 0;gap:10px}
body.medigeo-studio :is(.mh-plan-tag,.mh-badge,.mh-plan-note,.mc-typing){font-size:13px;line-height:1.65}
body.medigeo-studio #mcTyping:not(:empty){background:#e8f4ff;border-left:4px solid #3c89d7;padding:14px 20px;color:#174b77;font-size:15px;font-weight:700}
#msEz{position:fixed;bottom:60px;right:25px;z-index:100000;display:flex;align-items:center;gap:12px;border:1px solid #e8c86c;border-radius:18px;background:linear-gradient(120deg,#122438,#29365b);color:#fff;box-shadow:0 12px 30px #0a1e4060;padding:12px 18px;cursor:pointer;text-align:left;font-size:15px}
#msEz small{display:block;font-size:11px;color:#efcf82}#msEz b{font-size:22px;color:#f2d48d}
body.ms-chat-open #msEz{visibility:hidden}.ms-close{margin-left:auto!important;background:#ffffff12;border:1px solid #ffffff40;border-radius:10px;min-width:38px;height:38px;color:inherit;font-size:26px;cursor:pointer}
.ms-btn,.ms-card-actions button,.ms-card-actions a{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #bdcde0;border-radius:10px;background:#fff;color:#1f4468;font-size:13px;font-weight:700;padding:10px 14px;cursor:pointer;text-decoration:none;line-height:1.5}
.ms-btn:hover,.ms-card-actions button:hover,.ms-card-actions a:hover{background:#e7f5ff;border-color:#5daac9}
#msCommandBar{border-radius:24px;padding:28px;margin:16px 0 24px;background:radial-gradient(ellipse at top right,#195a7155,transparent 70%),linear-gradient(110deg,#0e1e33,#162743);color:#fff;box-shadow:0 20px 50px #16243e14;overflow:hidden}
#msCommandBar>div>small{font-size:11px;letter-spacing:2px;color:#81dce5}#msCommandBar h2{font-size:27px;color:#fff;margin:6px 0 20px;font-weight:800}
#msCommandBar nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}#msCommandBar nav button{border:1px solid #577187;border-radius:30px;background:#ffffff08;color:#daedff;padding:9px 18px;font-weight:600;cursor:pointer}
.ms-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ms-counts>div{display:flex;align-items:center;gap:18px;padding:15px 20px;background:#ffffff08;border:1px solid #ffffff16;border-radius:14px}.ms-counts strong{font-size:36px;line-height:1.1;color:#fff}.ms-counts span{font-size:13px;color:#c8d8e7}.ms-counts .ms-count-1{background:#0b8b901c;border-color:#52dbe0}.ms-count-1 strong{color:#6ef0db}
.ms-current{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:22px}.ms-current span{font-size:12px;color:#75e8d2}.ms-current b{display:block;font-size:17px;margin:5px 0;color:white}.ms-current small{color:#b7c4d7}.ms-idle{margin-top:20px;color:#b7c9dc;font-size:14px}
.ms-stage-track{display:flex;overflow:auto;gap:10px;margin-top:20px;padding-bottom:8px}.ms-stage-track>div{min-width:155px;flex:1;background:#ffffff08;border:1px solid #ffffff20;padding:16px;border-radius:12px}.ms-stage-track :is(strong,span,small){display:block}.ms-stage-track strong{font-size:14px;color:#fff}.ms-stage-track span{font-size:12px;color:#b7c9dc;margin:7px 0}.ms-stage-track small{font-size:11px;color:#aab5ca}.ms-stage-track i{float:right;font-style:normal;color:#96a9c4}.ms-stage-track .done{border-color:#46b9a477}.ms-stage-track .done i{color:#64e1c1}.ms-stage-track .running{border-color:#57e8e4;background:#08d9da12;box-shadow:inset 0 0 20px #08d9da0c}.ms-stage-track .running i{color:#57e8e4;animation:msPulse 1.8s ease-in-out infinite}
.ms-directory{margin:0 24px 28px;padding:26px;border:1px solid #dce5f1;border-radius:22px;background:#f5f8fd}.ms-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.ms-section-head small{font-size:10px;letter-spacing:1.7px;color:#54708e}.ms-section-head h2{font-size:24px;margin:5px 0;color:#182d47}.ms-section-head p{font-size:13px;color:#5c7086;margin:0}
.ms-departments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ms-departments article{background:#fff;border:1px solid #dce5f1;border-top:3px solid var(--ms-team);border-radius:15px;padding:17px;box-shadow:0 8px 20px #14243c05}.ms-dept-name{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#101f33;color:var(--ms-team);border:1px solid var(--ms-team);border-radius:9px;width:100%;padding:13px 12px;text-align:left;cursor:pointer;box-shadow:0 0 16px color-mix(in srgb,var(--ms-team) 14%,transparent)}.ms-dept-name span{font-size:15px;font-weight:800}.ms-dept-name small{font-size:10px;color:#c7d6e7;white-space:nowrap}.ms-departments article>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.ms-name{display:flex;align-items:center;gap:7px;border:1px solid #e1e8f2;border-radius:10px;background:#f7faff;padding:6px 9px;cursor:pointer;text-align:left;color:#27374c;font-size:12px;font-weight:700}.ms-name small{display:block;font-size:9px;color:#617a97}.ms-name:hover{background:#e7f5fc;border-color:#66a9c9}
body.medigeo-studio .lv-office{border-radius:24px;border:1px solid #cdd9ea;box-shadow:0 20px 60px #14254012;overflow:hidden}body.medigeo-studio .lv-office-head{background:#0b192b;color:#a2b5cb;padding:20px 24px}body.medigeo-studio .km-header-logo{background:#fff;border-radius:4px;padding:6px 10px}body.medigeo-studio .km-command{padding:34px!important;background:linear-gradient(115deg,#edf3fa,#fff 70%)!important}body.medigeo-studio .km-command-copy h2{color:#192e49!important;line-height:1.35;font-size:32px!important}body.medigeo-studio .km-command-side{color:#60738b!important}body.medigeo-studio .lv-teams{padding:12px 24px;gap:8px}body.medigeo-studio .lv-staff-dock{padding:16px 24px;gap:13px;overflow:auto}body.medigeo-studio .lv-staff-dock button{min-width:124px!important;padding:14px 10px!important}body.medigeo-studio .lv-staff-dock span{font-size:13px!important;line-height:1.5}body.medigeo-studio .lv-staff-dock small{font-size:11px!important;margin:8px 0 3px}body.medigeo-studio .lv-staff-dock em{font-size:10px!important}
body.medigeo-studio .lv-stage{height:1900px!important;min-height:1500px!important;border-top:1px solid #aac0d5}body.medigeo-studio .lv-scene-title{top:35px!important;left:35px!important;max-width:75%}body.medigeo-studio .lv-scene-title b{font-size:30px!important;line-height:1.35}body.medigeo-studio .lv-scene-title small{font-size:10px!important;letter-spacing:1px!important}body.medigeo-studio .lv-legend{font-size:12px!important;background:#101e31e8!important;color:#d0e0f1!important;padding:14px;border-radius:10px;max-width:380px;line-height:1.7}body.medigeo-studio .lv-taskline{font-size:16px!important;padding:20px!important;background:#0e253a!important;color:#b8f9ed!important}body.medigeo-studio .kp-team-summary{border-radius:14px;margin:16px 24px;padding:22px}body.medigeo-studio .kp-team-summary h3{font-size:24px}body.medigeo-studio .kp-metrics b{font-size:30px}body.medigeo-studio .kp-metrics small{font-size:12px;line-height:1.5}
body.medigeo-studio :is(.mp-stages,.mp-route,.mp-flow){font-size:14px;line-height:1.8}body.medigeo-studio .mp-stages span{padding:14px!important;font-size:14px!important}body.medigeo-studio .mp-stages b{display:block}body.medigeo-studio .mp-stages .running{background:#dbf7f4;border:2px solid #25a899}.ms-review{background:#f0f5fb;border:1px solid #ccd9e8;border-radius:14px;padding:22px;margin:0 0 24px}.ms-review>small{font-size:11px;color:#54718e}.ms-review p{font-size:13px;color:#576b81}.ms-review :is(input:not([type=checkbox]),textarea,select){width:100%;box-sizing:border-box;background:white!important;color:#1c3048!important;border:1px solid #bdccdd!important;padding:11px!important;font-size:14px!important;border-radius:7px}.ms-review label{display:block;margin:12px 0;font-size:13px}.ms-review label input[type=checkbox]{width:auto!important}.ms-check{display:flex!important;align-items:flex-start;gap:10px;line-height:1.7}.ms-check input{width:17px;height:17px;flex-shrink:0;margin-top:5px}
#msHub{box-sizing:border-box;width:min(1200px,calc(100vw - 32px));max-width:none;max-height:92vh;border:1px solid #637894;border-radius:24px;padding:0;background:#f5f8fc;color:#20344e;font-family:var(--sans);box-shadow:0 32px 130px #06192a55}#msHub::backdrop{background:#09192b88;backdrop-filter:blur(5px)}#msHub>header{padding:26px 30px;background:linear-gradient(115deg,#0c1b2e,#1b3950);color:#fff;display:flex;gap:20px;align-items:center}#msHub header small{letter-spacing:2px;font-size:10px;color:#7ee2e0}#msHub header h2{font-size:25px;margin:7px 0;color:#fff}.ms-hub-tabs{display:flex;gap:8px;padding:16px 30px;border-bottom:1px solid #dbe4ef;background:#fff;position:sticky;top:0;z-index:1;flex-wrap:wrap}.ms-hub-tabs button{border:1px solid #d5dfed;background:#f8faff;color:#465d77;border-radius:30px;padding:10px 18px;font-weight:700;cursor:pointer}.ms-hub-tabs button.on{background:#153959;color:#fff;border-color:#153959}#msHubBody{padding:26px 30px;font-size:14px;line-height:1.85}#msHub h3{font-size:18px;line-height:1.5;margin:10px 0}.ms-notice{padding:16px 20px;background:#e5eef8;border-left:4px solid #4c7faf;color:#345774;border-radius:8px;margin-bottom:24px;font-size:13px}.ms-managers{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.ms-managers button{display:flex;gap:15px;text-align:left;align-items:center;padding:20px;background:#fff;border:1px solid #d4e0ed;border-radius:16px;cursor:pointer}.ms-managers :is(b,strong,small){display:block}.ms-managers b{font-size:16px}.ms-managers strong{font-size:12px;color:#387b85;margin:3px 0}.ms-managers small{font-size:11px;color:#6f7f91}.ms-managers em{margin-left:auto;white-space:nowrap;font-style:normal;font-size:11px;color:#456a9c}.ms-channel-grid,.ms-hospital-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ms-channel-grid article,.ms-hospital-grid article,.ms-source-list article,.ms-note{background:#fff;border:1px solid #d9e3ed;border-radius:16px;padding:20px;min-width:0}.ms-channel-platform{color:#45667f;font-size:12px;display:flex;justify-content:space-between}.ms-channel-platform span{color:#a56927}.ms-channel-grid p{margin:8px 0;font-size:13px}.ms-channel-grid small{display:block;font-size:11px;color:#967242}.ms-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.ms-card-actions :is(a,button){font-size:11px;padding:8px 10px}.ms-last-note{padding-top:12px;border-top:1px solid #e5eaf3;color:#536b82;white-space:pre-wrap;overflow-wrap:anywhere}.ms-footnote{font-size:12px;color:#6b7d8f;margin-top:24px}.ms-search-label{display:block;font-weight:700;color:#34516c}.ms-search-label input{box-sizing:border-box;width:100%;margin:8px 0 15px;border:1px solid #baccdf;border-radius:12px;padding:14px;font-size:15px}.ms-hospital-grid small{font-size:10px;color:#778da4}.ms-hospital-grid details{font-size:12px;margin-top:12px}.ms-hospital-grid summary{cursor:pointer;color:#5f7a96}.ms-hospital-grid pre,.ms-source-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 var(--sans);padding:14px;background:#f3f6fa;color:#425c76;max-height:280px;overflow:auto}.ms-form{display:grid;gap:15px;max-width:800px;margin:0 0 25px}.ms-form label{display:block;font-size:13px;color:#405770}.ms-form :is(input:not([type=checkbox]),textarea,select){box-sizing:border-box;display:block;width:100%;margin-top:5px;padding:12px;border:1px solid #c3d2e3;border-radius:10px;background:#fff;color:#233f5b;font-size:14px}.ms-form .ms-btn{background:#163c5b;color:#fff;justify-self:start}.ms-source-list{display:grid;gap:14px}.ms-source-list small{display:block;font-size:11px;color:#789}.ms-source-list p{overflow-wrap:anywhere}.ms-note{margin-top:12px}.ms-note p{white-space:pre-wrap}.ms-guide-hero{padding:30px;background:radial-gradient(at 95% 90%,#085d74,#0d1f35 70%);color:#fff;border:1px solid #23b5b4;border-radius:20px}.ms-guide-hero h2{font-size:30px;line-height:1.45;color:#fff;margin:12px 0}.ms-guide-hero small{font-size:10px;color:#6ceee6;letter-spacing:2px}.ms-guide-hero p{color:#b6cfde;font-size:13px}.ms-guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.ms-guide-steps article{display:flex;gap:16px;background:white;border:1px solid #dce5ef;padding:20px;border-radius:14px}.ms-guide-steps strong{font-size:25px;color:#2e8fa1}.ms-guide-steps p{font-size:13px;color:#5c7288}.ms-guide ol{padding-left:24px}.ms-guide li{margin:14px 0}.ms-guide a{color:#116c91}.ms-guide>small{color:#789;font-size:11px}
@keyframes msPulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.ms-stage-track .running i{animation:none}}
@media(max-width:1050px){.ms-departments{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-channel-grid,.ms-hospital-grid,.ms-guide-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-counts>div{padding:12px;gap:10px}.ms-counts span{font-size:11px}.ms-counts strong{font-size:30px}.ms-managers{grid-template-columns:1fr}.ms-counts{gap:8px}body.medigeo-studio .km-command-side{display:none}}
@media(max-width:650px){body.medigeo-studio.ms-chat-open #mhChat{inset:0!important;width:100vw!important;border-radius:0!important}body.medigeo-studio #mhChatHead{padding:12px}body.medigeo-studio #mhChatHead h2{font-size:18px}body.medigeo-studio #mhMessages{padding:12px!important}body.medigeo-studio #mhChatHead p{max-width:230px}body.medigeo-studio .mh-chat-more{display:none}body.medigeo-studio .mh-compose{padding:10px}.ms-counts{grid-template-columns:1fr 1fr}.ms-counts strong{font-size:28px}#msCommandBar{padding:20px}#msCommandBar h2{font-size:22px}.ms-current{display:block}.ms-current button{margin-top:10px}.ms-directory{margin:12px;padding:16px}.ms-section-head{display:block}.ms-section-head button{margin-top:14px}.ms-departments{grid-template-columns:1fr}.ms-channel-grid,.ms-hospital-grid,.ms-guide-steps{grid-template-columns:1fr}#msHub>header,#msHubBody{padding:20px}#msHub header h2{font-size:20px}.ms-hub-tabs{padding:12px;gap:6px}.ms-hub-tabs button{padding:8px 12px;font-size:12px}.ms-guide-hero{padding:20px}.ms-guide-hero h2{font-size:23px}.ms-managers button{padding:14px;gap:10px}.ms-managers em{display:none}body.medigeo-studio .lv-stage{height:1200px!important;min-height:1200px!important;overflow:auto}body.medigeo-studio #lvCanvas{min-width:1050px!important;height:1200px!important}body.medigeo-studio .lv-scene-title b{font-size:24px!important}body.medigeo-studio .lv-office-head small{display:none}#msEz{right:12px;bottom:64px;padding:10px 13px}body.medigeo-studio .km-command{padding:20px!important}body.medigeo-studio .km-command-copy h2{font-size:24px!important}}

/* Readable chat actions and message timestamps. */
#mhChat .mh-plan-actions .mh-btn,
#mhChat .mh-btn[data-result],
#mhApp .mh-jobactions .mh-btn[data-result] {
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5;
  min-height: 44px;
  padding: 10px 16px;
  white-space: normal;
}
#mhChat .mc-time {
  font-size: 14px !important;
  line-height: 1.6;
  color: #58657a;
  margin-top: 8px;
}

/* Clear hierarchy for chat plans and employee responsibilities. */
#mhChat .mh-bubble { color: #344256; font-size: 14px; line-height: 1.85; }
#mhChat .mh-message-label { color: #59677a; font-size: 13px; margin-bottom: 8px; }
#mhChat .mh-message-label b { color: #153b69; font-size: 15px; font-weight: 800; }
#mhChat .mh-plan { border: 1px solid #c9d6e6; border-top: 4px solid #254c7d; background: #fff; padding: 18px; }
#mhChat .mh-plan-tag { display: inline-block; color: #7c4706; background: #fff0cf; border: 1px solid #f1d39a; border-radius: 7px; padding: 6px 10px; font-size: 13px; font-weight: 800; letter-spacing: 0; }
#mhChat .mh-plan h3 { color: #182e4d; font-size: 16px; font-weight: 800; line-height: 1.7; margin: 14px 0 10px; }
#mhChat .mh-plan-note { color: #59677a; font-size: 13px; line-height: 1.7; }
#mhChat .mh-plan-stage { padding: 13px 10px; gap: 10px; border-bottom: 1px solid #e2e8f0; align-items: center; }
#mhChat .mh-plan-stage i { background: #e5edf8; color: #254c7d; font-weight: 800; min-width: 26px; height: 26px; }
#mhChat .mh-plan-stage b { color: #18528b; font-size: 14px; font-weight: 800; }
#mhChat .mh-plan-stage span { color: #344256; font-size: 14px; line-height: 1.65; }
#mhChat .mh-stage-review { background: #f6f2fc; border-left: 3px solid #8860b8; }
#mhChat .mh-stage-review b, #mhChat .mh-stage-review span { color: #62428a; }
#mhChat .mh-stage-final { background: #edf8f2; border-left: 3px solid #36996b; }
#mhChat .mh-stage-final b, #mhChat .mh-stage-final span { color: #216445; }
#mhChat .mh-stage-summary { background: #eaf2fc; border-left: 3px solid #357bc3; }
#mhChat .mh-stage-summary b, #mhChat .mh-stage-summary span { color: #1e5189; font-weight: 800; }
#mhChat .mh-message-system .mh-bubble { color: #734b16; background: #fff7e7; border-color: #ebd6ad; }
#mhChat .mh-message-user .mh-bubble { color: #493c15; }
@media(max-width:650px) { #mhChat .mh-plan { padding: 12px; } #mhChat .mh-plan-stage { padding: 11px 7px; gap: 7px; } }
#mhChat .mh-plan-tag[data-state="running"] { background: #eaf2fc; color: #1e5189; border-color: #b9d2ec; }
#mhChat .mh-plan-tag[data-state="ready"], #mhChat .mh-plan-tag[data-state="complete"] { background: #edf8f2; color: #216445; border-color: #b7dcc9; }
#mhChat .mh-plan-tag[data-state="failed"], #mhChat .mh-plan-tag[data-state="interrupted"], #mhChat .mh-plan-tag[data-state="needs_api"] { background: #fff0ed; color: #9b362b; border-color: #ebc1b9; }

/* Stable employee identities across conversations, plans, results and directory. */
[data-staff="ezeg"], [data-person="ezeg"] { --staff-color:#2563eb; --staff-bg:#eff6ff; }
[data-staff="chloe"], [data-person="chloe"] { --staff-color:#15803d; --staff-bg:#effaf2; }
[data-staff="ryan"], [data-person="ryan"] { --staff-color:#7e22ce; --staff-bg:#faf3ff; }
[data-staff="victor"], [data-person="victor"] { --staff-color:#c2410c; --staff-bg:#fff2e9; }
[data-staff="grace"], [data-person="grace"] { --staff-color:#be185d; --staff-bg:#fff0f6; }
[data-staff="tara"], [data-person="tara"] { --staff-color:#0e7490; --staff-bg:#edfaff; }
[data-staff="sean"], [data-person="sean"] { --staff-color:#b45309; --staff-bg:#fff8e5; }
[data-staff="con"], [data-person="con"] { --staff-color:#0f766e; --staff-bg:#eafaf5; }
[data-staff="aeo"], [data-person="aeo"] { --staff-color:#4338ca; --staff-bg:#f0efff; }
[data-staff="seo"], [data-person="seo"] { --staff-color:#475569; --staff-bg:#f0f3f7; }
[data-staff="jay"], [data-person="jay"] { --staff-color:#a16207; --staff-bg:#fdf8dc; }
[data-staff="mia"], [data-person="mia"] { --staff-color:#a21caf; --staff-bg:#fff0ff; }
[data-staff="ethan"], [data-person="ethan"] { --staff-color:#0369a1; --staff-bg:#eaf5ff; }
[data-staff="owen"], [data-person="owen"] { --staff-color:#9f1239; --staff-bg:#fff0f0; }
[data-staff="lucas"], [data-person="lucas"] { --staff-color:#4d7c0f; --staff-bg:#f3fae8; }
[data-staff="sophia"], [data-person="sophia"] { --staff-color:#854d0e; --staff-bg:#faf1e6; }
#mhChat .mh-plan-stage[data-staff] { background: var(--staff-bg,#f8fafc); border-left: 4px solid var(--staff-color,#64748b); border-bottom: 0; border-radius: 9px; margin: 7px 0; padding: 14px 12px; gap: 12px; }
#mhChat .mh-plan-stage[data-staff] b { color: var(--staff-color,#334155); font-size: 15px; font-weight: 800; background: white; border-radius: 6px; padding: 5px 8px; white-space: nowrap; }
#mhChat .mh-plan-stage[data-staff] span { color: #364152; font-size: 15px; line-height: 1.6; font-weight: 500; }
#mhChat .mh-plan-stage[data-staff] i { background: white; color: var(--staff-color,#334155); border: 1px solid var(--staff-color,#64748b); }
#mhChat .mh-message[data-staff]:not([data-staff=""]) > .mh-message-label b { color: var(--staff-color,#334155); background: var(--staff-bg,#f1f5f9); border-left: 4px solid var(--staff-color,#64748b); padding: 5px 10px; border-radius: 6px; display: inline-block; font-size: 15px; }
#mhChat .mh-message-assistant[data-staff] > .mh-bubble { background: var(--staff-bg,#f8fafc); border-color: #dce3eb; border-left: 4px solid var(--staff-color,#64748b); color: #303b48; }
#mhChatHead[data-staff] h2 { display: inline-block; background: var(--staff-bg,#fff); color: var(--staff-color,#1e40af)!important; padding: 5px 10px; border-radius: 7px; font-size: 21px; }
#mhChatContext { padding: 16px 20px!important; background: #fffaf0!important; border-top: 1px solid #ecd8b5; border-bottom: 2px solid #dbc394; gap: 14px; align-items: center; flex-wrap: wrap; }
#mhChatContext .mh-hospital { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; flex: 1; }
#mhChatContext .mh-hospital small { color: #80602c; font-size: 12px; font-weight: 700; }
#mhChatContext .mh-hospital b { color: #573e1c!important; font-size: 19px!important; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
#mhChatContext [data-last-question] { font-size: 13px!important; color: #674c21; background: #fff; border-color: #d3bd95; padding: 9px 12px; }
#mhChat .mh-request-card { margin: 16px 0; padding: 16px 18px; background: #fff7e3; border: 1px solid #e8d397; border-left: 5px solid #c58c18; border-radius: 10px; }
#mhChat .mh-request-label { display: block; color: #8a5a10; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
#mhChat .mh-request-card h3 { color: #403321; font-size: 16px; line-height: 1.8; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
#mhChat .mh-message-user > .mh-message-label b { color: #885c13; background: #fff4d7; border-left: 4px solid #c58c18; padding: 5px 10px; border-radius: 6px; }
#mhChat .mh-message-user > .mh-bubble { background: #fff4d7; border: 1px solid #dfc582; border-left: 5px solid #c58c18; color: #403321; font-size: 16px; line-height: 1.85; padding: 18px 20px; }
#mhChat .mh-plan-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #dce3e9; gap: 12px; flex-wrap: wrap; }
#mhChat .mh-plan-actions .mh-btn[data-run] { background: #166534!important; color: #fff!important; border: 2px solid #166534; font-size: 17px!important; min-height: 50px; flex: 2 1 220px; box-shadow: 0 3px 7px #16653424; }
#mhChat .mh-plan-actions .mh-btn[data-revise] { background: #fff!important; color: #674910!important; border: 2px solid #bf9142; font-size: 16px!important; min-height: 50px; flex: 1 1 130px; }
#mhChat .mh-plan-actions .mh-btn[data-run]:hover:not(:disabled) { background: #14532d!important; }
#mhChat .mh-plan-actions .mh-btn[data-revise]:hover { background: #fff7e3!important; }
#mhChat .mh-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
#mhChat .mh-plan-actions .mh-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
#mpDialog .mp-stages [data-staff] { background: var(--staff-bg,#f8fafc); color: var(--staff-color,#334155); border-left: 4px solid var(--staff-color,#64748b); font-size: 14px; font-weight: 700; }
#mpDialog .mp-document[data-staff] h3 { color: var(--staff-color,#334155); border-left: 4px solid var(--staff-color,#64748b); padding-left: 10px; }
#mhApp .mh-person[data-person] h3, #mhApp .ms-name[data-person] span, #mhApp .lv-staff-dock [data-person] > span { color: var(--staff-color,#334155)!important; font-weight: 800; }
#mhApp .mh-person[data-person], #mhApp .ms-name[data-person], #mhApp .lv-staff-dock [data-person] { border-bottom: 3px solid var(--staff-color,#64748b); }
@media(max-width:650px) { #mhChatContext { padding: 12px!important; } #mhChatContext .mh-hospital b { font-size: 17px!important; } #mhChat .mh-plan-stage[data-staff] { flex-wrap: wrap; } #mhChat .mh-plan-stage[data-staff] span { flex: 1 1 160px; } #mhChat .mh-request-card { padding: 13px; } }

/* Keep employee switching available on every screen size. */
body.medigeo-studio #mhChatHead .mh-chat-more{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;font-size:14px;font-weight:800;flex-shrink:0;cursor:pointer}
@media(max-width:650px){body.medigeo-studio #mhChatHead{flex-wrap:wrap}body.medigeo-studio #mhChatHead .mh-chat-more{margin-left:auto}}

/* Sender identity travels with each message; selector stays on this browser. */
body.medigeo-studio #mhChatContext{flex-wrap:wrap;gap:12px}
.mh-author-control{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#475569}.mh-author-control select{font-family:inherit;font-weight:700;font-size:15px;color:#164e63;background:#fff;border:1px solid #94a3b8;border-radius:8px;padding:9px;min-height:42px}
#mhApp .mh-message-user[data-author="eunhye"] .mh-bubble{background:#ecfeff!important;border:1px solid #67e8f9!important;border-left:5px solid #0e7490!important;color:#164e63!important}
#mhApp .mh-message-user[data-author="eunhye"] .mh-message-label b{background:#cffafe!important;color:#155e75!important;border-left:4px solid #0e7490!important}

/* Office slogan sits below the studio; the original logo remains its sign. */
body.medigeo-studio .lv-office-head .km-office-motto{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
body.medigeo-studio .lv-office-head .km-office-motto small{font:700 11px system-ui;letter-spacing:1.4px;color:#d6bf8e}
body.medigeo-studio .lv-office-head .km-office-motto strong{font-size:23px;line-height:1.45;color:#fff8e9;letter-spacing:-.5px;word-break:keep-all}
body.medigeo-studio .lv-office-head .km-office-motto span{font-size:10px;letter-spacing:1px;color:#a7c1ce}
@media(max-width:650px){body.medigeo-studio .lv-office-head{flex-wrap:wrap;gap:18px}body.medigeo-studio .lv-office-head .km-office-motto strong{font-size:19px}}

/* Keep the heading outside the pannable studio drawing. */
body.medigeo-studio .lv-viewport{position:absolute;inset:160px 0 0;overflow:hidden}body.medigeo-studio .lv-viewport #lvCanvas{position:absolute;inset:0;width:100%;height:100%!important;display:block}body.medigeo-studio .lv-scene-title{max-width:calc(100% - 160px);pointer-events:none}body.medigeo-studio .lv-scene-title b{margin:12px 0 8px!important}body.medigeo-studio .lv-scene-title b br{display:none}@media(max-width:650px){body.medigeo-studio .lv-viewport{top:210px;overflow:auto}body.medigeo-studio .lv-scene-title{left:20px!important;max-width:calc(100% - 40px);top:55px!important}body.medigeo-studio .lv-scene-title b{font-size:22px!important}}

[data-staff="narin"],[data-person="narin"]{--staff-color:#b91c1c;--staff-bg:#fff1f2}
[data-staff="dodam"],[data-person="dodam"]{--staff-color:#075985;--staff-bg:#e0f2fe}
[data-staff="serin"],[data-person="serin"]{--staff-color:#6b21a8;--staff-bg:#f3e8ff}
.cl-entry{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 24px;padding:20px;border:1px solid #cbd5e1;background:#fff;border-radius:14px;color:#334155}.cl-entry span{flex:1;font-size:14px}.cl-plan{margin:12px 0;padding:15px;border-radius:10px;background:#f0f9ff;border:1px solid #bae6fd;font-size:14px;line-height:1.7}.cl-plan p{margin:6px 0}#clDialog{margin:auto;inset:0;width:min(1020px,94vw);max-height:90vh;padding:0;border:0;border-radius:20px;color:#25344d;box-shadow:0 24px 80px #0f172a55}#clDialog::backdrop{background:#0f172a99}#clDialog header{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:26px 30px;background:#11243a;color:white}#clDialog h2{font-size:25px;margin:8px 0}#clDialog header p{margin:0;color:#d8e6f5}#clDialog button{padding:11px 16px;border:1px solid #b6c7da;border-radius:9px;background:white;color:#243d5b;font-weight:700;cursor:pointer;font-size:14px}#clDialog button:disabled{opacity:.6;cursor:wait}#clDialog .cl-body{padding:26px 30px}#clDialog .cl-team{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}#clDialog .cl-team article{background:var(--cl-bg);border-top:4px solid var(--cl-color);border-radius:12px;padding:18px}#clDialog .cl-team h3{color:var(--cl-color);margin:0 0 8px}#clDialog p{line-height:1.75;font-size:14px}#clDialog .cl-notice{padding:16px;background:#f1f5f9;border-radius:10px}#clDialog details{padding:16px;border:1px solid #dbe4ee;border-radius:10px}#clDialog summary{cursor:pointer;font-weight:700}#clDialog form{margin:24px 0;padding:22px;background:#f8fafc;border:1px solid #dbe4ee;border-radius:12px}#clDialog .cl-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#clDialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700;margin:12px 0}#clDialog input,#clDialog select,#clDialog textarea{font:inherit;font-weight:400;width:100%;box-sizing:border-box;border:1px solid #bac9da;padding:11px;border-radius:8px;background:white;color:#24344a}#clDialog textarea{min-height:100px;resize:vertical;line-height:1.7}#clDialog button[type=submit]{background:#1d4ed8;color:white}#clDialog .cl-records article{padding:18px 0;border-bottom:1px solid #dce4ee}#clDialog .cl-records small{display:block;color:#64748b;margin-top:7px}#clStatus{color:#9f1239}#clDialog a{color:#1d4ed8;overflow-wrap:anywhere}@media(max-width:650px){#clDialog .cl-team,#clDialog .cl-grid{grid-template-columns:1fr}#clDialog header,#clDialog .cl-body{padding:20px}}
/* Spacious work chat: readable controls and status without crowding the conversation. */
body.medigeo-studio.ms-chat-open #mhChat{inset:12px 16px 12px auto!important;width:min(1180px,calc(100vw - 32px))!important;border-radius:20px!important;box-sizing:border-box}
body.medigeo-studio.ms-chat-open #mhMessages{min-height:80px;padding:22px 28px!important;overscroll-behavior:contain}
body.medigeo-studio #mhChatHead{padding:14px 22px}
body.medigeo-studio #mhChatContext{padding:12px 22px!important}
body.medigeo-studio #mcToolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 16px;background:#fff;border-bottom:1px solid #d4deeb;flex-shrink:0}
body.medigeo-studio #mcToolbar button{font-size:16px!important;font-weight:700;color:#354d6b;min-height:44px;padding:10px 14px;border-radius:8px;line-height:1.4;flex:1 1 auto}
body.medigeo-studio #mcToolbar button:hover{background:#eaf1fa;color:#174c82}
body.medigeo-studio #mcSearchBox input{font-size:16px;padding:10px 12px}
body.medigeo-studio #mhComposeStatus:not(:empty){font-size:14px!important;line-height:1.65;color:#365776;background:#eef5fb;border-radius:8px;padding:8px 12px;margin-bottom:8px}
body.medigeo-studio #mcTyping:not(:empty){font-size:16px!important;line-height:1.6;padding:10px 22px;flex-shrink:0}
body.medigeo-studio .mh-compose{padding:10px 22px 12px}
body.medigeo-studio #mhInput{min-height:64px;max-height:110px;font-size:17px;line-height:1.65}
body.medigeo-studio #mhChat .mc-compose-tools button{font-size:14px;padding:7px 10px;min-height:34px}
body.medigeo-studio #mhChat .mc-compose-tools span,body.medigeo-studio #mhChat .mh-compose-bottom span,body.medigeo-studio #mhChat .mh-chat-note,body.medigeo-studio #mhChat .mc-file-info{font-size:12px!important;line-height:1.5;color:#62748b}
body.medigeo-studio #mhChat .mp-route{padding:16px 18px;background:#f0f5fc;border:1px solid #cbd9eb;border-radius:12px;line-height:1.85}
body.medigeo-studio #mhChat .mp-route>b{display:block;font-size:17px!important;color:#284867;margin-bottom:8px}
body.medigeo-studio #mhChat .mp-route>span{display:block;font-size:16px!important;color:#42566e;line-height:1.85;overflow-wrap:anywhere}
body.medigeo-studio #mhChat .mp-route>small{display:block;font-size:14px!important;color:#906325;margin:10px 0;line-height:1.6}
body.medigeo-studio #mhChat .mp-route>button{font-size:15px!important;min-height:44px;padding:10px 14px;font-weight:700;color:#25517e;background:white}
@media(max-width:650px){body.medigeo-studio.ms-chat-open #mhChat{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important}body.medigeo-studio #mhChatHead{padding:10px 12px}body.medigeo-studio #mhChatContext{padding:8px 12px!important;gap:8px}body.medigeo-studio #mcToolbar{flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:2px}body.medigeo-studio #mcToolbar button{flex:0 0 auto;font-size:15px!important;padding:8px 10px}body.medigeo-studio .mh-compose{padding:8px 12px}body.medigeo-studio #mhInput{min-height:54px;max-height:90px}body.medigeo-studio.ms-chat-open #mhMessages{padding:14px!important;min-height:60px}body.medigeo-studio #mhChat .mc-compose-tools span{display:none}}
@media(max-height:720px){body.medigeo-studio #mhChatHead{padding-top:8px;padding-bottom:8px}body.medigeo-studio #mhChatContext{padding-top:8px!important;padding-bottom:8px!important}body.medigeo-studio #mhInput{min-height:48px;max-height:80px}body.medigeo-studio .mh-compose{padding-top:6px;padding-bottom:6px}}
