/* v0.76.0: 자비스's phone-sized window over the page (public/jarvis-dock.js), bottom right above the floating 자비스. On a
   phone (the workroom) it takes the whole screen. */
.jarvis-dock{position:fixed;right:24px;bottom:140px;z-index:70;display:flex;flex-direction:column;width:390px;max-width:calc(100vw - 32px);height:min(690px,calc(100dvh - 170px));box-sizing:border-box;overflow:hidden;border-radius:26px;background:#fff;border:1px solid rgba(30,50,80,.12);box-shadow:0 10px 20px rgba(20,40,60,.12),0 30px 70px rgba(20,40,60,.24);color:#203c32;font-family:inherit}
.jarvis-dock[hidden]{display:none}
.jd-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:linear-gradient(150deg,#2c5446 0%,#18342a 60%,#10241d 100%);color:#eaf5ee}
.jd-face{flex:none;display:grid;place-items:center;width:40px;height:42px;overflow:hidden}
.jd-face svg{width:34px;height:37px}.jd-face .agent-friend{transform:scale(.62);margin:-12px}
.jd-title{flex:1;min-width:0;display:flex;flex-direction:column}
.jd-title strong{font-size:16px}
.jd-status{font-size:12px;color:#bfd8c9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jarvis-dock.warn .jd-status{color:#ffe2a6;font-weight:700}
.jd-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#eaf5ee;cursor:pointer}
.jd-icon svg{width:16px;height:16px}
.jd-notices{display:flex;flex-direction:column;gap:6px;padding:10px 12px 0;max-height:34%;overflow:auto}
.jd-notices[hidden]{display:none}
.jd-thread{flex:1;min-height:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fff 0%,#f6f8fb 100%)}
.jd-msg{max-width:88%;padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.6;box-sizing:border-box}
.jd-msg p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.jd-msg.user{align-self:flex-end;border-radius:16px 16px 5px 16px;background:linear-gradient(180deg,#4a86f7 0%,#1f57da 100%);color:#fff}
.jd-msg.assistant{align-self:flex-start;border-radius:16px 16px 16px 5px;background:#fff;border:1px solid rgba(30,50,80,.1);box-shadow:0 6px 14px rgba(20,40,60,.08)}
.jd-msg.thinking p{color:#556a5d}
.jd-note{display:block;margin-top:4px;font-size:11.5px;color:#6a7a86}
.jd-empty{margin:auto 0;text-align:center;color:#6a7a86;font-size:13.5px}
.jd-quick{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px 0;background:#f6f8fb}
.jd-quick[hidden]{display:none}
.jd-chip{min-height:32px;padding:0 12px;border-radius:999px;border:1px solid rgba(31,87,218,.25);background:#eef3ff;color:#1f4fc0;font:inherit;font-size:12.5px;cursor:pointer}
.jd-form{padding:10px 12px 12px;border-top:1px solid rgba(30,50,80,.08);background:#fff}
.jd-box{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 14px;border-radius:999px;background:#f3f6fa;border:1px solid rgba(30,50,80,.1)}
body .jd-input{flex:1;min-width:0;width:auto;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font:inherit;font-size:14.5px;color:#203c32;min-height:38px}body .jd-input:focus{outline:none}
.jd-box .jd-icon{border:1px solid rgba(30,50,80,.12);background:#fff;color:#203c32;border-radius:50%;width:38px;height:38px}
.jd-box .jd-mic.recording{background:#fde8e8;border-color:#e86a6a;color:#a12a2a}
.jd-send{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #1b4fcc;background:linear-gradient(180deg,#4a86f7 0%,#1f57da 100%);color:#fff;cursor:pointer}
.jd-send svg{width:16px;height:16px}.jd-send:disabled{opacity:.55}
.jd-hint{margin:6px 4px 0;font-size:12px;color:#6a7a86}.jd-hint:empty{display:none}
/* v0.76.3: what the AI chat's box takes: ＋ (사진·카메라·파일·내 라이브러리), the files picked above the box, a file dropped
   anywhere on the window, and the files a message carried under its text. */
.jd-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.jd-form{position:relative}
.jd-box .jd-plus{width:34px;height:34px;margin-left:-8px}
.jd-menu{position:absolute;left:12px;right:12px;bottom:calc(100% - 4px);z-index:2;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:16px;background:#fff;border:1px solid rgba(30,50,80,.12);box-shadow:0 12px 30px rgba(20,40,60,.2)}
.jd-menu[hidden]{display:none}
.jd-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:11px;background:transparent;color:#203c32;font:inherit;text-align:left;cursor:pointer}
.jd-menu-item:hover,.jd-menu-item:focus-visible{background:#eef3ff;outline:none}
.jd-menu-icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef3ff;color:#1f4fc0}
.jd-menu-icon svg{width:18px;height:18px}
.jd-menu-text{display:flex;flex-direction:column;min-width:0}.jd-menu-text strong{font-size:14px}.jd-menu-text small{font-size:11.5px;color:#6a7a86}
.jd-files{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.jd-files[hidden]{display:none}
.jd-file{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 4px 4px 10px;border-radius:12px;background:#f3f6fa;border:1px solid rgba(30,50,80,.12);font-size:12.5px}
.jd-file.image{padding-left:4px}
.jd-file-thumb{flex:none;width:32px;height:32px;border-radius:8px;object-fit:cover}
.jd-file-name{min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jd-file-x{flex:none;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#e3e9f1;color:#203c32;font-size:15px;line-height:1;cursor:pointer}
.jd-file-note{align-self:center;font-size:12px;color:#1f4fc0}
.jd-atts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-top:6px}
.jd-att-thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;background:#fff}
.jd-att-file{display:inline-block;max-width:100%;padding:3px 9px;border-radius:9px;background:rgba(255,255,255,.22);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jd-msg.assistant .jd-att-file{background:#f3f6fa}
.jarvis-dock.dragging::after{content:'여기에 놓으면 자비스에게 붙입니다';position:absolute;inset:8px;z-index:3;display:grid;place-items:center;border:2px dashed #1f57da;border-radius:20px;background:rgba(238,243,255,.92);color:#1f4fc0;font-size:15px;font-weight:700;pointer-events:none}
.jd-library{width:min(420px,calc(100vw - 32px));max-height:min(560px,calc(100dvh - 48px));padding:0;border:0;border-radius:20px;box-shadow:0 20px 60px rgba(20,40,60,.3);color:#203c32}
.jd-library::backdrop{background:rgba(15,30,40,.35)}
.jd-library-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(30,50,80,.08)}
.jd-library-close,.jd-library-add{min-height:34px;padding:0 12px;border-radius:10px;border:1px solid rgba(30,50,80,.14);background:#fff;color:#203c32;font:inherit;font-size:13px;cursor:pointer}
.jd-library-add{border-color:#1b4fcc;background:#1f57da;color:#fff}
.jd-library-list{display:flex;flex-direction:column;gap:4px;padding:8px 12px 14px;overflow:auto;max-height:calc(min(560px,100dvh - 48px) - 64px)}
.jd-library-item{display:flex;align-items:center;gap:10px;padding:6px 4px}
.jd-library-item .jd-file-thumb{width:40px;height:40px}
.jd-library-name{flex:1;min-width:0;display:flex;flex-direction:column}.jd-library-name strong{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jd-library-name small{font-size:11.5px;color:#6a7a86}
.jd-library-note{margin:12px 4px;color:#6a7a86;font-size:13px}
@media(max-width:700px){.jarvis-dock{inset:0;right:0;bottom:0;width:100%;max-width:none;height:100dvh;border-radius:0;border:0}}
