:root {
  --ink: #232333; --muted: #858493; --line: #e9e8ef; --paper: #fff;
  --canvas: #f6f5f8; --violet: #6e61e8; --violet-dark: #574acb; --soft: #f0edff;
  --green: #32b878; --danger: #df5b68; --shadow: 0 16px 45px rgba(37, 32, 70, .12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app { display: grid; grid-template-columns: 278px minmax(0, 1fr); height: 100vh; overflow: hidden; }
.sidebar { background: #fbfafc; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.brand strong { display: block; font-size: 20px; letter-spacing: .12em; }
.brand span { color: var(--muted); font-size: 11px; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: white; font-size: 25px; font-weight: 700; background: linear-gradient(145deg, #8a7df4, #5a4dd4); box-shadow: 0 9px 25px rgba(95, 79, 220, .25); }
.brand-mark.small { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.side-actions { padding: 18px 15px 10px; }
.primary, .secondary, .ai-button, .save-message { border: 0; border-radius: 9px; padding: 10px 15px; font-weight: 600; }
.primary, .save-message { color: #fff; background: var(--violet); }
.primary:hover, .save-message:hover { background: var(--violet-dark); }
.wide { width: 100%; }
.search { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 11px; background: #f0eff3; border-radius: 8px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; }
.contact-list { padding: 3px 9px; flex: 1; overflow: auto; }
.contact-row { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border-radius: 10px; text-align: left; margin-bottom: 2px; }
.contact-row:hover { background: #f2f0f8; }.contact-row.active { background: var(--soft); }
.avatar { width: 43px; height: 43px; border-radius: 50%; color: white; display: grid; place-items: center; font-weight: 650; font-size: 16px; }
.contact-copy { min-width: 0; }.contact-copy strong, .contact-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact-copy span { color: var(--muted); font-size: 12px; margin-top: 4px; }.contact-time { color: #aaa8b3; font-size: 10px; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 10px 13px; display: flex; flex-direction: column; }
.ghost { border: 0; background: transparent; color: #686675; padding: 9px; text-align: left; }.ghost:hover { color: var(--violet); }
.workspace { min-width: 0; height: 100vh; }.contact-view { height: 100%; display: flex; flex-direction: column; }
.empty-state { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); }.empty-state h2 { color: var(--ink); margin: 18px 0 5px; font-size: 25px; }.empty-orbit { margin: auto; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--violet); font-size: 30px; box-shadow: inset 0 0 0 15px #f7f5ff; }
.topbar { height: 78px; flex: none; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 25px; }
.top-person { display: flex; gap: 12px; align-items: center; }.top-person h2 { margin: 0; font-size: 17px; }.top-person p { color: var(--muted); margin: 4px 0 0; font-size: 11px; }.top-profile-status { color: var(--violet); }.online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.top-actions { display: flex; gap: 10px; align-items: center; }.model-picker { border: 1px solid var(--line); background: #faf9fb; border-radius: 9px; display: flex; align-items: center; padding: 5px 8px; }.model-picker-label { color: var(--muted); font-size: 10px; margin-right: 5px; white-space: nowrap; }.model-picker select, .model-picker input { border: 0; outline: 0; background: transparent; }.model-picker select { width: 90px; }.model-picker input { width: 145px; border-left: 1px solid var(--line); padding-left: 9px; }.provider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 4px; }.provider-dot.off { background: #c3c1cb; }
.icon-button { border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 9px; background: #fff; font-size: 18px; }
.main-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 1fr) 390px; }
.conversation-column { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #f8f7fa; }.message-list { flex: 1; min-height: 0; overflow: auto; padding: 24px 6%; scroll-behavior: smooth; }
.day-separator { text-align: center; color: #aaa8b3; font-size: 11px; margin: 5px 0 20px; }.message { display: flex; gap: 9px; align-items: flex-end; margin: 11px 0; }.message.me { flex-direction: row-reverse; }.message-body { max-width: min(70%, 590px); }.message-bubble { position: relative; padding: 10px 13px; background: white; border: 1px solid #eeedf1; border-radius: 6px 15px 15px 15px; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 3px 12px rgba(30,26,55,.035); }.message.me .message-bubble { color: white; background: var(--violet); border-color: var(--violet); border-radius: 15px 6px 15px 15px; }.message-meta { color: #aaa8b3; font-size: 10px; margin: 4px 3px 0; }.message.me .message-meta { text-align: right; }.message-edit { opacity: 0; border: 0; background: transparent; color: #aaa8b3; transition: opacity .15s; }.message:hover .message-edit { opacity: 1; }.message-images { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 4px; margin-bottom: 5px; }.message-images img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 10px; display: block; cursor: zoom-in; }
.composer { flex: none; background: white; border-top: 1px solid var(--line); margin: 0 18px 17px; border: 1px solid #dedce7; border-radius: 13px; box-shadow: 0 10px 32px rgba(35,30,70,.07); overflow: hidden; }.composer:focus-within { border-color: #aaa1ec; }.composer-head, .composer-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; }.composer-head { border-bottom: 1px solid #f0eff3; }.speaker-toggle { background: #f1f0f5; border-radius: 7px; padding: 2px; }.speaker-toggle button { border: 0; border-radius: 6px; padding: 6px 13px; background: transparent; color: var(--muted); font-size: 12px; }.speaker-toggle button.active { background: white; color: var(--violet); box-shadow: 0 2px 8px rgba(30,25,60,.1); font-weight: 600; }.time-field { font-size: 11px; color: var(--muted); }.time-field input { border: 0; margin-left: 5px; font-size: 11px; }.composer textarea { resize: none; width: 100%; border: 0; outline: 0; padding: 13px 15px 5px; min-height: 62px; }.composer-foot { padding-top: 5px; }.attach-button { color: var(--violet); cursor: pointer; font-size: 12px; margin-right: 11px; }.input-hint { color: #aaa8b3; font-size: 10px; }.save-message { padding: 8px 14px; font-size: 12px; }.image-preview { padding: 0 14px; display: flex; gap: 7px; }.image-preview div { position: relative; }.image-preview img { width: 55px; height: 55px; border-radius: 7px; object-fit: cover; }.image-preview button { position: absolute; right: -5px; top: -5px; border: 0; width: 18px; height: 18px; border-radius: 50%; background: #333; color: white; font-size: 10px; }
.coach-column { background: white; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }.coach-tabs { display: flex; height: 48px; border-bottom: 1px solid var(--line); padding: 0 10px; }.coach-tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 11px; position: relative; padding: 0 4px; }.coach-tabs button.active { color: var(--violet); font-weight: 650; }.coach-tabs button.active::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--violet); }.coach-panel { padding: 19px; overflow: auto; flex: 1; }.objective-label { font-size: 12px; font-weight: 650; }.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }.chips button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: 11px; color: #716f7c; }.chips button.active { color: var(--violet); border-color: #c8c1f5; background: var(--soft); }.coach-panel textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 9px; outline: none; }.ai-button { width: 100%; margin: 12px 0 16px; background: linear-gradient(100deg, #6e61e8, #8877e9); color: white; box-shadow: 0 7px 19px rgba(100,84,215,.2); }.ai-button:disabled { opacity: .6; cursor: wait; }.selection-button { margin-top: 2px; }.selection-result { border: 1px solid #d9d3ff; background: #f7f5ff; border-radius: 10px; padding: 12px; line-height: 1.6; }.selection-result h4 { margin: 0 0 5px; color: var(--violet); }.selection-result p { margin: 4px 0; }.selection-result .model-note { color: var(--muted); font-size: 10px; }.coach-answer { white-space: pre-wrap; line-height: 1.7; padding: 13px; background: #faf9fc; border: 1px solid var(--line); border-radius: 10px; }.coach-answer:empty { display: none; }.result-placeholder { text-align: center; padding: 38px 10px; color: #aaa8b3; line-height: 1.7; }.result-placeholder span { display: block; font-size: 23px; color: #bbb5e9; }.reply-card { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }.reply-card.recommended { border-color: var(--violet); box-shadow: 0 0 0 1px #d9d3ff; }.reply-card-head { background: #faf9fc; padding: 8px 11px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.reply-card pre { margin: 0; padding: 12px; white-space: pre-wrap; font-family: inherit; line-height: 1.55; }.copy-button { border: 0; background: transparent; color: var(--violet); }.review-intro h3 { margin: 0 0 5px; }.review-intro p { color: var(--muted); line-height: 1.6; margin-top: 0; }.check-row { display: flex; gap: 7px; align-items: center; color: #6d6b77; font-size: 12px; }.review-card { background: #faf9fc; border: 1px solid var(--line); border-radius: 10px; padding: 13px; margin-bottom: 10px; }.review-card h4 { margin: 0 0 8px; }.review-card p, .review-card li { line-height: 1.55; }.review-card ul { margin: 0; padding-left: 19px; }.suggested-strategy { display: flex; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.5; }.suggested-strategy span { flex: 1; }.suggested-strategy button { flex: none; }.signal { padding: 7px 9px; border-left: 3px solid #aaa; background: white; margin-top: 6px; }.signal.positive { border-color: var(--green); }.signal.warning { border-color: #e39d45; }.run-item { border-bottom: 1px solid var(--line); padding: 12px 2px; }.run-item strong { font-size: 12px; }.run-item p { margin: 5px 0; color: var(--muted); font-size: 11px; }.run-item pre { max-height: 130px; overflow: hidden; white-space: pre-wrap; font-family: inherit; font-size: 12px; }
dialog { padding: 0; border: 0; border-radius: 15px; width: min(620px, 92vw); box-shadow: var(--shadow); }.wide-dialog { width: min(1000px, 94vw); }dialog::backdrop { background: rgba(25,23,39,.42); backdrop-filter: blur(2px); }.dialog-form { padding: 22px; }.dialog-form header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 19px; }.dialog-form h2 { margin: 0; font-size: 19px; }.dialog-form header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.dialog-close { border: 0; background: transparent; font-size: 24px; color: var(--muted); line-height: 1; }.dialog-form label { display: block; font-size: 12px; color: #656371; margin-bottom: 13px; }.dialog-form input, .dialog-form textarea, .dialog-form select { display: block; width: 100%; border: 1px solid #dfdde6; border-radius: 8px; padding: 9px 10px; margin-top: 6px; outline: none; }.dialog-form input:focus, .dialog-form textarea:focus { border-color: #a69cef; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.dialog-actions { display: flex; gap: 8px; align-items: center; }.dialog-actions span { flex: 1; }.secondary { background: #f0eef6; color: #5f5c6b; }.danger { border: 0; background: #fff0f2; color: var(--danger); padding: 9px 12px; border-radius: 8px; }.profile-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }.section-title h3 { margin: 0; }.profile-sync-status { background: #f7f5ff; border: 1px solid #e2ddff; border-radius: 9px; padding: 10px; margin-bottom: 9px; color: #656275; }.profile-sync-status strong { font-size: 12px; }.profile-sync-status p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }.profile-sync-status .review-warning { color: var(--danger); }.profile-save-actions { display: flex; justify-content: flex-end; gap: 8px; }.profile-layout textarea { margin-bottom: 9px; }.inline-form { display: flex; gap: 7px; }.inline-form input { margin: 0; }.strategy-list { margin-top: 12px; max-height: 440px; overflow: auto; }.strategy-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 7px; }.strategy-item.inactive { opacity: .5; }.strategy-item p { margin: 0 0 8px; line-height: 1.5; }.strategy-actions { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.strategy-actions button { border: 0; background: transparent; color: var(--violet); font-size: 11px; }.count-badge { background: var(--soft); color: var(--violet); padding: 3px 7px; border-radius: 10px; font-size: 10px; }.provider-status { margin: -9px 0 10px; font-size: 10px; }.provider-status.ok { color: var(--green); }.provider-status.off { color: var(--danger); }.settings-note { padding: 10px; border-radius: 8px; background: #f7f6fa; color: var(--muted); font-size: 11px; line-height: 1.6; }.compact { max-width: 100%; }.login-view { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 20%, #eeeaff 0, transparent 35%), var(--canvas); }.login-card { width: min(380px, 90vw); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }.login-card .brand-mark { margin: auto; }.login-card h1 { margin-bottom: 5px; }.login-card p { color: var(--muted); }.login-card label { display: block; text-align: left; margin: 25px 0 15px; color: var(--muted); font-size: 12px; }.login-card input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }.toast { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translate(-50%, -20px); padding: 10px 18px; border-radius: 9px; color: white; background: #2f2d38; opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--shadow); }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: var(--danger); }
@media (max-width: 980px) { .app { grid-template-columns: 220px minmax(0,1fr); }.main-columns { grid-template-columns: 1fr 330px; }.model-picker input { width: 110px; } }
@media (max-width: 760px) { .app { grid-template-columns: 74px minmax(0,1fr); }.brand { padding: 0 16px; }.brand > div:last-child, .side-actions .search, .contact-copy, .contact-time, .sidebar-footer { display:none; }.side-actions { padding: 14px 9px; }.side-actions .primary { font-size: 0; height: 42px; }.side-actions .primary::after { content:'＋'; font-size: 20px; }.contact-row { display: flex; padding: 7px; }.main-columns { display: block; }.coach-column { position: fixed; right: 0; top: 78px; bottom: 0; width: min(390px, calc(100vw - 74px)); z-index: 5; box-shadow: var(--shadow); }.profile-layout { grid-template-columns: 1fr; }.top-actions .model-picker { display: none; } }
.coach-column { min-height: 0; overflow: hidden; }
.coach-tabs { flex: none; }
.coach-panel { min-height: 0; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; }
