/* law685 Cron UX v1.1 */
.lcx-hidden{display:none!important}

/* 排程時間選單 */
.lcx-pick{display:flex;flex-direction:column;gap:6px}
.lcx-pick-row{display:flex;flex-wrap:wrap;gap:8px}
.lcx-sel,.lcx-time{height:38px;padding:0 10px;border:1px solid var(--border-default,#e4e4e7);border-radius:8px;background:#fff;font:inherit;font-size:14px;color:var(--text-primary,#18181b);min-width:0}
.lcx-sel:focus,.lcx-time:focus{outline:2px solid var(--accent-border,rgba(91,91,214,.45));outline-offset:1px}
.lcx-pick-note{margin:0;font-size:12.5px;color:var(--text-muted,#71717a)}
.lcx-advbtn{align-self:flex-start;border:0;background:none;padding:2px 0;font:inherit;font-size:13px;font-weight:500;color:var(--accent,#5b5bd6);cursor:pointer}
.lcx-advbtn:hover{text-decoration:underline}

/* 用聊天建立：按鈕 */
.lcx-chatbtn{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;margin-right:8px;border:1px solid var(--accent-border,rgba(91,91,214,.35));border-radius:8px;background:var(--accent-tint,#f1f1fd);color:var(--accent,#5b5bd6);font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.lcx-chatbtn:hover{background:#e7e7fb}
.lcx-emptyhint{margin:10px 0 0}
.lcx-link{border:0;background:none;padding:0;font:inherit;font-size:13.5px;color:var(--accent,#5b5bd6);cursor:pointer;text-decoration:underline}

/* 用聊天建立：面板 */
.lcx-panel{position:fixed;top:16px;right:16px;bottom:16px;z-index:2040;width:min(520px,calc(100vw - 32px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--border-default,#e4e4e7);border-radius:16px;box-shadow:0 20px 60px rgba(15,15,20,.22);font-family:inherit;color:var(--text-primary,#18181b);overflow:hidden}
.lcx-panel[hidden]{display:none}
.lcx-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--border-default,#ececf0)}
.lcx-head h3{margin:0;font-size:16px}
.lcx-head p{margin:3px 0 0;font-size:12.5px;color:var(--text-muted,#71717a)}
.lcx-x{border:0;background:none;font-size:24px;line-height:1;width:32px;height:32px;border-radius:8px;color:var(--text-muted,#71717a);cursor:pointer}
.lcx-x:hover{background:var(--surface-subtle,#f4f4f5)}
.lcx-body{flex:1;min-height:0;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.lcx-msg{max-width:88%;padding:9px 13px;border-radius:12px;font-size:14px;line-height:1.65;white-space:normal;word-break:break-word}
.lcx-bot{align-self:flex-start;background:var(--surface-subtle,#f4f4f6)}
.lcx-user{align-self:flex-end;background:var(--accent,#5b5bd6);color:#fff}
.lcx-err{background:#fdecec;color:#b42318}
.lcx-typing{display:flex;align-items:center;gap:4px;color:var(--text-muted,#71717a)}
.lcx-typing span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4;animation:lcx-blink 1.2s infinite}
.lcx-typing span:nth-child(2){animation-delay:.2s}.lcx-typing span:nth-child(3){animation-delay:.4s;margin-right:4px}
@keyframes lcx-blink{0%,80%,100%{opacity:.25}40%{opacity:.9}}
.lcx-ex{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.lcx-chip{border:1px solid var(--accent-border,rgba(91,91,214,.3));background:#fff;color:var(--accent,#5b5bd6);border-radius:10px;padding:6px 11px;font:inherit;font-size:13px;text-align:left;cursor:pointer;line-height:1.5}
.lcx-chip:hover{background:var(--accent-tint,#f1f1fd)}
.lcx-card{border:1px solid var(--accent-border,rgba(91,91,214,.35));background:var(--accent-tint,#f7f7fe);border-radius:12px;padding:12px 14px}
.lcx-card-h{font-weight:600;font-size:14px;color:var(--accent,#5b5bd6);margin-bottom:8px}
.lcx-card dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:13.5px;line-height:1.6}
.lcx-card dt{color:var(--text-muted,#71717a);white-space:nowrap}
.lcx-card dd{margin:0;min-width:0}
.lcx-raw{margin-left:8px;font-size:11.5px;color:var(--text-muted,#a1a1aa);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.lcx-prompt{white-space:pre-wrap;max-height:180px;overflow:auto}
.lcx-card-btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.lcx-card-note{margin:8px 0 0;font-size:12px;color:var(--text-muted,#71717a)}
.lcx-foot{border-top:1px solid var(--border-default,#ececf0);padding:12px 18px 14px;display:flex;flex-direction:column;gap:8px}
.lcx-input{width:100%;box-sizing:border-box;resize:none;border:1px solid var(--border-default,#e4e4e7);border-radius:10px;padding:9px 12px;font:inherit;font-size:14px;line-height:1.6;min-height:72px}
.lcx-input:focus{outline:2px solid var(--accent-border,rgba(91,91,214,.45));outline-offset:0;border-color:transparent}
.lcx-foot-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lcx-foot-row>span:last-child{display:flex;gap:8px}
.lcx-tip{font-size:12px;color:var(--text-muted,#a1a1aa)}
.lcx-btn{height:34px;padding:0 14px;border:1px solid var(--border-default,#e4e4e7);border-radius:8px;background:#fff;font:inherit;font-size:13.5px;font-weight:500;color:var(--text-primary,#18181b);cursor:pointer;white-space:nowrap}
.lcx-btn:hover:not(:disabled){background:var(--surface-subtle,#f4f4f5)}
.lcx-primary{background:var(--accent,#5b5bd6);border-color:var(--accent,#5b5bd6);color:#fff}
.lcx-primary:hover:not(:disabled){background:#4f4fc4}
.lcx-btn:disabled{opacity:.5;cursor:default}
@media (max-width:640px){.lcx-panel{top:8px;right:8px;bottom:8px;width:calc(100vw - 16px)}.lcx-tip{display:none}.lcx-chatbtn{padding:0 9px}}
.lcx-human{margin-top:2px;font-size:12px;color:var(--accent,#5b5bd6);white-space:nowrap}
.lcx-folded{opacity:.65;font-style:italic}
