1200 lines
46 KiB
CSS
Executable File
1200 lines
46 KiB
CSS
Executable File
/* Shared with the native workstation: quiet surfaces and one blue accent. */
|
|
:root {
|
|
--accent: #4267b2;
|
|
--accent-hover: #355995;
|
|
--accent-soft: #eaf0fb;
|
|
--surface: #fff;
|
|
--surface-soft: #f5f7fa;
|
|
--border: #e6eaf0;
|
|
--text: #344258;
|
|
--muted: #647287;
|
|
--heading: #223047;
|
|
--surface-alt: #f7f9fc;
|
|
--border-strong: #d4dce8;
|
|
--success: #287b65;
|
|
--success-soft: #edf7f2;
|
|
--danger: #b54a59;
|
|
--danger-soft: #fcf0f2;
|
|
--radius-small: 6px;
|
|
--radius-panel: 16px;
|
|
--radius-control: 10px;
|
|
--motion-ease: cubic-bezier(.2, .7, .2, 1);
|
|
font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
|
|
color: var(--text);
|
|
background: var(--surface-soft);
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button,
|
|
textarea,
|
|
input { font: inherit; }
|
|
|
|
button {
|
|
cursor: pointer;
|
|
transition: background-color 140ms var(--motion-ease), border-color 140ms var(--motion-ease),
|
|
color 140ms var(--motion-ease), transform 120ms var(--motion-ease);
|
|
}
|
|
button:enabled:active { transform: translateY(1px); }
|
|
button:focus-visible,
|
|
a:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 3px;
|
|
}
|
|
button:disabled { cursor: not-allowed; opacity: .55; }
|
|
|
|
.consultation-shell {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
background: var(--surface-soft);
|
|
}
|
|
.consultation-shell--video-only { min-height: 0; }
|
|
.consultation-shell--with-ai { display: grid; grid-template-columns: minmax(0, 1fr) var(--im-ai-panel-width, 330px); column-gap: 8px; }
|
|
.im-ai-resizer { position: absolute; z-index: 1; top: 0; bottom: 0; left: -8px; width: 8px; min-height: 0; cursor: col-resize; touch-action: none; background: var(--surface-soft); outline: none; }
|
|
.im-ai-resizer::before { position: absolute; inset: 0 3px; border-radius: 2px; background: var(--border); content: ""; }
|
|
.im-ai-resizer > span { position: absolute; top: calc(50% - 20px); left: 2px; width: 4px; height: 40px; border-radius: 3px; background: var(--border-strong); }
|
|
.im-ai-resizer:hover::before,
|
|
.im-ai-resizer:focus-visible::before,
|
|
.consultation-shell--resizing .im-ai-resizer::before { background: var(--accent); }
|
|
.im-ai-resizer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
.consultation-shell--resizing,
|
|
.consultation-shell--resizing * { cursor: col-resize !important; user-select: none !important; }
|
|
|
|
.chat-panel {
|
|
display: grid;
|
|
grid-template-rows: minmax(74px, auto) minmax(0, 1fr) auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
background: var(--surface-soft);
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.patient-avatar {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: var(--radius-control);
|
|
color: #fff;
|
|
background: var(--accent);
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-heading { min-width: 0; flex: 1; }
|
|
.chat-heading h1 { margin: 0; color: var(--heading); font-size: 18px; line-height: 1.4; }
|
|
.chat-heading p {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
margin: 3px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.connection-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: #a3adbd;
|
|
}
|
|
.connection-dot--online { background: var(--success); }
|
|
|
|
.primary-action,
|
|
.send-button,
|
|
.capture-button {
|
|
border: 1px solid var(--accent);
|
|
border-radius: var(--radius-control);
|
|
color: #fff;
|
|
background: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
.secondary-action {
|
|
padding: 9px 13px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-control);
|
|
color: var(--text);
|
|
background: #fff;
|
|
font-weight: 600;
|
|
}
|
|
.secondary-action:enabled:hover { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }
|
|
.primary-action { display: flex; gap: 8px; align-items: center; padding: 10px 16px; }
|
|
.primary-action:enabled:hover,
|
|
.send-button:enabled:hover,
|
|
.capture-button:enabled:hover { background: var(--accent-hover); }
|
|
|
|
.message-list {
|
|
overflow-y: auto;
|
|
padding: 18px max(24px, calc((100% - 920px) / 2));
|
|
background: var(--surface-soft);
|
|
}
|
|
|
|
.load-more {
|
|
display: block;
|
|
margin: 0 auto 18px;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
color: var(--muted);
|
|
background: #fff;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.empty-chat {
|
|
display: grid;
|
|
justify-items: center;
|
|
margin-top: min(16vh, 110px);
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
.empty-chat__icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 62px;
|
|
height: 62px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-panel);
|
|
color: var(--accent);
|
|
background: #fff;
|
|
font-weight: 800;
|
|
}
|
|
.empty-chat h2 { margin: 0; color: var(--heading); font-size: 17px; }
|
|
.empty-chat p { margin: 7px 0; font-size: 13px; }
|
|
|
|
.message-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
margin: 12px 0;
|
|
}
|
|
.message-row--mine { align-items: flex-end; }
|
|
.message-row--call-status {
|
|
align-items: center;
|
|
margin: 16px 0;
|
|
}
|
|
.call-status-event {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
color: var(--muted);
|
|
background: var(--surface);
|
|
font-size: 12px;
|
|
}
|
|
.call-status-event__icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 10px;
|
|
color: var(--accent);
|
|
background: var(--accent-soft);
|
|
font-size: 11px;
|
|
}
|
|
.call-status-event strong {
|
|
color: var(--heading);
|
|
font-weight: 700;
|
|
}
|
|
.call-status-event time {
|
|
color: var(--muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.call-status-event--connected {
|
|
border-color: #bdebdc;
|
|
background: var(--success-soft);
|
|
}
|
|
.call-status-event--connected .call-status-event__icon {
|
|
color: var(--success);
|
|
background: #dff7ee;
|
|
}
|
|
.call-status-event--failed {
|
|
border-color: #f3c8cf;
|
|
background: var(--danger-soft);
|
|
}
|
|
.call-status-event--failed .call-status-event__icon {
|
|
color: var(--danger);
|
|
background: #ffe6e9;
|
|
}
|
|
.message-meta { margin: 0 8px 5px; color: var(--muted); font-size: 11px; }
|
|
.message-bubble {
|
|
max-width: min(72%, 620px);
|
|
padding: 10px 13px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px var(--radius-panel) var(--radius-panel) var(--radius-panel);
|
|
background: #fff;
|
|
line-height: 1.6;
|
|
word-break: break-word;
|
|
}
|
|
.message-row--mine .message-bubble {
|
|
border-color: var(--accent);
|
|
border-radius: var(--radius-panel) 10px var(--radius-panel) var(--radius-panel);
|
|
color: #fff;
|
|
background: var(--accent);
|
|
}
|
|
.message-bubble p { margin: 0; white-space: pre-wrap; }
|
|
.message-image,
|
|
.message-video { display: block; max-width: min(360px, 100%); max-height: 280px; border-radius: var(--radius-control); }
|
|
.message-file { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
|
|
.message-bubble audio { max-width: min(320px, 100%); }
|
|
|
|
.composer {
|
|
padding: 10px 18px 14px;
|
|
border-top: 1px solid var(--border);
|
|
background: #fff;
|
|
}
|
|
.composer-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 30px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
.composer-toolbar button {
|
|
padding: 5px 9px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
color: var(--accent);
|
|
background: var(--accent-soft);
|
|
font-size: 12px;
|
|
}
|
|
.composer-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
.composer-toolbar .im-ai-toggle { display: none; }
|
|
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 12px; }
|
|
.composer textarea {
|
|
width: 100%;
|
|
min-height: 68px;
|
|
max-height: 150px;
|
|
padding: 10px 12px;
|
|
resize: vertical;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-control);
|
|
outline: none;
|
|
transition: border-color 140ms var(--motion-ease), background-color 140ms var(--motion-ease);
|
|
color: var(--text);
|
|
background: var(--surface-alt);
|
|
line-height: 1.5;
|
|
}
|
|
.composer textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 1px; background: var(--surface); }
|
|
.send-button { align-self: end; height: 40px; }
|
|
|
|
.inline-notice {
|
|
margin-bottom: 7px;
|
|
color: var(--success);
|
|
font-size: 12px;
|
|
}
|
|
.inline-notice--error { color: var(--danger); }
|
|
|
|
.im-ai-panel {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
height: 100%;
|
|
overflow: visible;
|
|
border-left: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
}
|
|
.im-ai-header { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 14px 18px; }
|
|
.im-ai-mark {
|
|
display: grid; place-items: center; flex-shrink: 0;
|
|
width: 32px; height: 32px; border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-control); color: var(--accent); background: var(--surface-alt);
|
|
font-size: 12px; font-weight: 700; letter-spacing: .02em;
|
|
}
|
|
.im-ai-header > div { flex: 1; min-width: 0; }
|
|
.im-ai-header h2 { margin: 0; color: var(--heading); font-size: 15px; line-height: 1.5; font-weight: 600; }
|
|
.im-ai-header p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
|
|
.im-ai-header .im-ai-edit-diagnosis { flex-shrink: 0; min-height: 32px; padding: 6px 10px; white-space: nowrap; }
|
|
.im-ai-close { display: none; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: var(--radius-small); background: var(--surface-soft); color: var(--muted); font-size: 23px; line-height: 1; }
|
|
.im-ai-close:hover { background: var(--accent-soft); color: var(--accent); }
|
|
.im-ai-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 0 14px 14px; border-bottom: 1px solid var(--border); }
|
|
.im-ai-tools button { min-height: 36px; padding: 7px 4px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; }
|
|
.im-ai-model { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
|
|
.im-ai-model select { flex: 1; min-height: 30px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); color: var(--heading); font-size: 12px; }
|
|
.im-ai-model select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
.im-ai-tools button:enabled:hover,
|
|
.im-ai-tools .im-ai-tool--selected { border-color: var(--border-strong); background: var(--accent-soft); color: var(--accent-hover); }
|
|
.im-ai-tools .im-ai-tool--selected { font-weight: 600; }
|
|
.im-ai-tool__saved { margin-left: 3px; color: var(--success); font-weight: 700; }
|
|
.im-ai-body { min-height: 0; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
|
|
.im-ai-body:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
|
|
.im-ai-empty { padding: 16px 0; }
|
|
.im-ai-empty__line { display: block; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--border-strong); }
|
|
.im-ai-empty strong { color: var(--heading); font-size: 14px; font-weight: 600; line-height: 1.6; }
|
|
.im-ai-empty p { margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
|
|
.im-ai-empty .im-ai-source { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11px; }
|
|
.im-ai-result-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
|
|
.im-ai-result-heading h3 { margin: 0; color: var(--heading); font-size: 14px; font-weight: 600; }
|
|
.im-ai-result-heading span { max-width: 100%; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
|
|
.im-ai-status { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
|
|
.im-ai-status--error { padding: 10px 12px; border-radius: var(--radius-small); color: var(--danger); background: var(--danger-soft); }
|
|
.im-ai-text { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.85; }
|
|
.im-ai-text :is(h1, h2, h3, h4, h5, h6) {
|
|
margin: 20px 0 10px;
|
|
padding-left: 9px;
|
|
border-left: 3px solid var(--accent);
|
|
color: var(--heading);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
line-height: 1.65;
|
|
}
|
|
.im-ai-text > :first-child { margin-top: 0; }
|
|
.im-ai-text > :last-child { margin-bottom: 0; }
|
|
.im-ai-text p { margin: 0 0 12px; }
|
|
.im-ai-text strong {
|
|
padding: 1px 2px;
|
|
border-radius: 3px;
|
|
background: var(--accent-soft);
|
|
color: var(--heading);
|
|
font-weight: 700;
|
|
-webkit-box-decoration-break: clone;
|
|
box-decoration-break: clone;
|
|
}
|
|
.im-ai-text .im-ai-metric-label { color: var(--accent-hover); font-weight: 600; }
|
|
.im-ai-text .im-ai-metric-value {
|
|
padding: 1px 4px;
|
|
border-radius: 4px;
|
|
background: #e8effb;
|
|
color: #234c93;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-box-decoration-break: clone;
|
|
box-decoration-break: clone;
|
|
}
|
|
.im-ai-text :is(ul, ol) { margin: 10px 0 16px; padding-left: 22px; }
|
|
.im-ai-text li { padding-left: 2px; margin: 7px 0; }
|
|
.im-ai-text li::marker { color: var(--accent); font-weight: 600; }
|
|
.im-ai-text li > p { margin-bottom: 6px; }
|
|
.im-ai-text li :is(ul, ol) { margin-block: 5px; }
|
|
.im-ai-text blockquote { margin: 14px 0; padding: 9px 12px; border-left: 3px solid var(--border-strong); background: var(--surface-soft); color: var(--muted); }
|
|
.im-ai-text blockquote > :last-child { margin-bottom: 0; }
|
|
.im-ai-text code { padding: 2px 4px; border-radius: 4px; background: var(--surface-soft); color: var(--text); font-size: 12px; }
|
|
.im-ai-text pre { margin: 14px 0; padding: 10px; border-radius: var(--radius-small); background: var(--surface-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.im-ai-text pre code { padding: 0; background: none; }
|
|
.im-ai-text hr { margin: 18px 0; border: 0; border-top: 1px solid var(--border); }
|
|
.im-ai-text table { width: 100%; margin: 14px 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
|
|
.im-ai-text :is(th, td) { padding: 7px; border: 1px solid var(--border); vertical-align: top; text-align: left; }
|
|
.im-ai-text th { background: var(--surface-soft); color: var(--heading); font-weight: 600; }
|
|
.im-ai-loading { display: grid; gap: 12px; margin: 24px 0; }
|
|
.im-ai-loading span { height: 8px; border-radius: 4px; background: var(--surface-soft); }
|
|
.im-ai-loading span:nth-child(2) { width: 86%; }
|
|
.im-ai-loading span:nth-child(3) { width: 62%; }
|
|
.im-ai-warnings { margin: 18px 0 0; padding: 12px 12px 12px 26px; border-radius: var(--radius-small); background: var(--surface-soft); color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
|
|
.im-ai-warnings li + li { margin-top: 6px; }
|
|
.im-ai-footer { border-top: 1px solid var(--border); padding: 12px 16px; background: var(--surface-alt); }
|
|
.im-ai-footer p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
|
|
.im-ai-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
.im-ai-result-actions:empty { display: none; }
|
|
.im-ai-result-actions button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font-size: 12px; }
|
|
.im-ai-result-actions button:enabled:hover { border-color: var(--accent); color: var(--accent-hover); }
|
|
.im-ai-result-actions .im-ai-apply { margin-left: auto; border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
|
|
.im-ai-result-actions .im-ai-apply:enabled:hover { background: var(--accent-hover); color: #fff; }
|
|
|
|
.video-layer {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 420px;
|
|
overflow: hidden;
|
|
color: #f7f8fa;
|
|
background: #101720;
|
|
}
|
|
.video-layer--with-rail {
|
|
grid-template-columns: minmax(0, 1fr) clamp(330px, 31vw, 380px);
|
|
}
|
|
.video-layer--overlay { position: fixed; z-index: 1000; inset: 0; }
|
|
|
|
.video-stage {
|
|
position: relative;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: #101720;
|
|
}
|
|
|
|
.call-kit,
|
|
.video-layer :is(.TUICallKit-desktop, .TUICallKit-mobile, #tuicallkit-id) {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
max-width: none !important;
|
|
max-height: none !important;
|
|
}
|
|
|
|
.status-card {
|
|
position: absolute;
|
|
inset: 50% auto auto 50%;
|
|
display: grid;
|
|
grid-template-columns: 12px minmax(0, 1fr);
|
|
gap: 18px;
|
|
width: min(520px, calc(100% - 48px));
|
|
padding: 30px 32px;
|
|
transform: translate(-50%, -50%);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-panel);
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
}
|
|
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
|
|
.status-card h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.25; }
|
|
.status-hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-top: 5px;
|
|
border-radius: 50%;
|
|
background: #77818c;
|
|
}
|
|
.status-dot--starting,
|
|
.status-dot--live { background: var(--success); }
|
|
.status-dot--error { background: var(--danger); }
|
|
.live-status {
|
|
position: absolute;
|
|
z-index: 20;
|
|
top: 18px;
|
|
left: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 14px;
|
|
transform: translateX(-50%);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
font-size: 13px;
|
|
}
|
|
.live-status .status-dot { width: 7px; height: 7px; margin: 0; box-shadow: none; }
|
|
|
|
.consultation-rail {
|
|
position: relative;
|
|
z-index: 55;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1.08fr) minmax(0, .92fr);
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
border-left: 1px solid var(--border);
|
|
color: var(--text);
|
|
background: var(--surface-soft);
|
|
}
|
|
.consultation-rail__header {
|
|
display: grid;
|
|
grid-template-columns: 42px minmax(0, 1fr) auto;
|
|
gap: 11px;
|
|
align-items: center;
|
|
min-height: 74px;
|
|
padding: 13px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: #fff;
|
|
}
|
|
.consultation-rail__avatar {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: var(--radius-control);
|
|
color: #fff;
|
|
background: var(--accent);
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
}
|
|
.consultation-rail__identity {
|
|
display: grid;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
}
|
|
.consultation-rail__identity strong {
|
|
overflow: hidden;
|
|
color: var(--text);
|
|
font-size: 16px;
|
|
line-height: 1.3;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.consultation-rail__identity span {
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.diagnosis-chip {
|
|
padding: 5px 7px;
|
|
border-radius: var(--radius-small);
|
|
color: var(--accent);
|
|
background: var(--accent-soft);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
.consultation-rail__actions {
|
|
display: grid;
|
|
flex: 0 0 auto;
|
|
justify-items: end;
|
|
gap: 5px;
|
|
}
|
|
.open-diagnosis-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-height: 28px;
|
|
padding: 5px 8px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 10px;
|
|
color: var(--accent);
|
|
background: #fff;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
.open-diagnosis-button:enabled:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
}
|
|
.case-panel,
|
|
.transcript-panel {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
.case-panel { border-bottom: 1px solid var(--border); }
|
|
.rail-section-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 48px;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
.rail-section-heading > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.rail-section-heading h2 {
|
|
margin: 0;
|
|
color: var(--heading);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: -.01em;
|
|
}
|
|
.rail-section-heading > span {
|
|
overflow: hidden;
|
|
max-width: 154px;
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.rail-section-heading__index {
|
|
color: var(--accent);
|
|
font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
}
|
|
.case-panel__content,
|
|
.live-captions {
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-color: #b9c3d5 transparent;
|
|
scrollbar-width: thin;
|
|
}
|
|
.case-panel__content { padding: 5px 16px 14px; }
|
|
.case-field-list { display: grid; }
|
|
.case-field {
|
|
display: grid;
|
|
grid-template-columns: 72px minmax(0, 1fr);
|
|
gap: 10px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.case-field:last-child { border-bottom: 0; }
|
|
.case-field > span {
|
|
padding-top: 2px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
.case-field p {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
overflow-wrap: anywhere;
|
|
white-space: pre-wrap;
|
|
}
|
|
.case-field--risk > span { color: var(--danger); }
|
|
.case-field--risk p {
|
|
color: var(--danger);
|
|
font-weight: 600;
|
|
}
|
|
.live-captions {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 9px;
|
|
padding: 12px 14px 18px;
|
|
background: var(--surface-soft);
|
|
}
|
|
.caption-entry {
|
|
padding: 10px 11px;
|
|
border-left: 2px solid var(--accent);
|
|
border-radius: var(--radius-control);
|
|
background: #fff;
|
|
}
|
|
.caption-entry--partial { border-left-color: #9ca6b7; opacity: .78; }
|
|
.caption-entry header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 5px;
|
|
}
|
|
.caption-entry strong {
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
}
|
|
.caption-entry time {
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.caption-entry p {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
line-height: 1.58;
|
|
overflow-wrap: anywhere;
|
|
white-space: pre-wrap;
|
|
}
|
|
.transcript-state {
|
|
position: relative;
|
|
padding-left: 12px;
|
|
}
|
|
.transcript-state::before {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
width: 6px;
|
|
height: 6px;
|
|
transform: translateY(-50%);
|
|
border-radius: 50%;
|
|
background: #a5adbb;
|
|
content: "";
|
|
}
|
|
.transcript-state--active { color: var(--success) !important; }
|
|
.transcript-state--active::before {
|
|
background: var(--success);
|
|
}
|
|
.rail-empty {
|
|
display: grid;
|
|
gap: 5px;
|
|
align-content: center;
|
|
min-height: 112px;
|
|
padding: 18px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
.rail-empty strong { color: var(--text); font-size: 12px; }
|
|
.rail-empty span { font-size: 11px; line-height: 1.55; }
|
|
.rail-empty--case { min-height: 100%; }
|
|
|
|
.video-actions {
|
|
position: absolute;
|
|
z-index: 40;
|
|
right: 22px;
|
|
bottom: 24px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
.video-actions button { padding: 10px 15px; border-radius: var(--radius-control); font-weight: 600; }
|
|
.recording-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 15px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
color: var(--muted);
|
|
background: var(--surface);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
.recording-status--active { border-color: #edccd3; color: var(--danger); background: var(--danger-soft); }
|
|
.recording-status--error { border-color: #edccd3; color: var(--danger); background: var(--danger-soft); }
|
|
.recording-indicator {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--danger);
|
|
}
|
|
.hangup-button { border: 1px solid var(--danger); color: #fff; background: var(--danger); }
|
|
.hangup-button:enabled:hover { border-color: #a64454; background: #a64454; }
|
|
.video-notice {
|
|
position: absolute;
|
|
z-index: 40;
|
|
left: 22px;
|
|
bottom: 26px;
|
|
max-width: calc(100% - 420px);
|
|
padding: 9px 12px;
|
|
border: 1px solid #cae5dc;
|
|
border-radius: var(--radius-control);
|
|
color: var(--success);
|
|
background: var(--success-soft);
|
|
font-size: 13px;
|
|
}
|
|
.video-notice--error { border-color: #edccd3; color: var(--danger); background: var(--danger-soft); }
|
|
|
|
.screenshot-dialog-backdrop {
|
|
position: absolute;
|
|
z-index: 120;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background: rgba(16, 23, 32, .64);
|
|
}
|
|
.screenshot-dialog {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
gap: 14px;
|
|
width: min(1120px, 100%);
|
|
height: min(840px, calc(100vh - 48px));
|
|
max-height: calc(100vh - 48px);
|
|
padding: 20px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-panel);
|
|
color: var(--text);
|
|
background: #fff;
|
|
/* CSS entrance only: mount/unmount and native restore notifications stay immediate. */
|
|
animation: screenshot-enter 160ms var(--motion-ease);
|
|
}
|
|
.screenshot-dialog > header,
|
|
.screenshot-dialog > footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
.screenshot-dialog h2 { margin: 2px 0 0; color: var(--heading); font-size: 20px; line-height: 1.35; }
|
|
.screenshot-dialog .eyebrow { margin: 0; color: var(--accent); }
|
|
.screenshot-dialog > header > button {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: 0;
|
|
border-radius: var(--radius-control);
|
|
color: var(--muted);
|
|
background: var(--surface-alt);
|
|
font-size: 24px;
|
|
}
|
|
.screenshot-dialog__content {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
|
|
gap: 16px;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
.screenshot-preview-frame {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
border-radius: 12px;
|
|
background: #0b0f16;
|
|
}
|
|
.screenshot-preview-frame img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 0;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
.tongue-analysis {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface-soft);
|
|
overflow-wrap: anywhere;
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
}
|
|
.tongue-analysis > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
|
|
.tongue-analysis h3 { margin: 0; font-size: 16px; color: var(--heading); }
|
|
.tongue-analysis__model { color: var(--muted); font-size: 11px; }
|
|
.tongue-analysis__intro { margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
|
|
.tongue-analysis__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
|
|
.tongue-analysis__tabs button { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--muted); background: var(--surface); cursor: pointer; }
|
|
.tongue-analysis__tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
|
|
.tongue-analysis__tabs span { font-size: 11px; }
|
|
.tongue-analysis__tabs [data-phase="error"] span { color: var(--danger); }
|
|
.tongue-analysis :is(button, a, [role="tabpanel"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.tongue-diagnosis { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); }
|
|
.tongue-diagnosis__label { margin: 2px 0 10px; color: var(--accent); font-size: 12px; }
|
|
.tongue-diagnosis h4 { margin: 0 0 4px; color: var(--heading); font-size: 13px; }
|
|
.tongue-diagnosis ul { margin: 0; padding-left: 18px; }
|
|
.tongue-diagnosis__candidate { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
|
|
.tongue-diagnosis__subheading { margin: 8px 0 2px; font-weight: 600; }
|
|
.tongue-diagnosis__candidate a { color: var(--accent); text-underline-offset: 3px; }
|
|
.tongue-diagnosis__missing { margin-top: 14px; color: var(--muted); }
|
|
.tongue-analysis__status { display: grid; justify-items: start; gap: 8px; margin-top: 22px; }
|
|
.tongue-analysis__status p, .tongue-analysis__quality p { margin: 0; }
|
|
.tongue-analysis__status--error strong { color: var(--danger); }
|
|
.tongue-analysis__spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: tongue-analysis-spin 900ms linear infinite; }
|
|
.tongue-analysis__quality { margin: 16px 0; color: var(--accent); }
|
|
.tongue-analysis__quality--limited { color: var(--text); }
|
|
.tongue-analysis__quality p, .tongue-analysis__empty { color: var(--muted); }
|
|
.tongue-analysis__features { margin: 0; }
|
|
.tongue-analysis__features > div { padding: 10px 0; border-top: 1px solid var(--border); }
|
|
.tongue-analysis__features dt { font-weight: 700; color: var(--heading); }
|
|
.tongue-analysis__features dd { margin: 2px 0 0; }
|
|
.tongue-analysis__limitations { margin: 16px 0; color: var(--muted); }
|
|
.tongue-analysis__limitations h4 { margin: 0 0 4px; font-size: 12px; }
|
|
.tongue-analysis__limitations ul { margin: 0; padding-left: 18px; }
|
|
.tongue-analysis__retry { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: #fff; color: var(--accent); font-weight: 600; }
|
|
.tongue-analysis__retry:enabled:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
.tongue-analysis__note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
|
|
@keyframes tongue-analysis-spin { to { transform: rotate(360deg); } }
|
|
@media (max-width: 760px) {
|
|
.screenshot-dialog__content { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
|
|
.screenshot-preview-frame { flex: 0 0 auto; height: clamp(160px, 32vh, 300px); }
|
|
.tongue-analysis { flex: 0 0 auto; overflow: visible; padding: 12px; }
|
|
}
|
|
.screenshot-dialog__hint { margin: 0; color: var(--muted); font-size: 13px; }
|
|
.screenshot-dialog > footer { justify-content: flex-end; }
|
|
.screenshot-dialog > footer button {
|
|
min-width: 112px;
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-control);
|
|
font-weight: 700;
|
|
}
|
|
.screenshot-cancel { border: 1px solid var(--border); color: var(--text); background: #fff; }
|
|
.screenshot-confirm { border: 1px solid var(--accent); color: #fff; background: var(--accent); }
|
|
.screenshot-confirm:enabled:hover { background: var(--accent-hover); }
|
|
|
|
@media (max-width: 980px) {
|
|
.consultation-shell--with-ai { grid-template-columns: minmax(0, 1fr); }
|
|
.composer-toolbar .im-ai-toggle { display: inline-flex; align-items: center; gap: 3px; }
|
|
.im-ai-backdrop { position: fixed; z-index: 800; inset: 0; background: rgb(34 48 71 / 20%); }
|
|
.im-ai-panel { display: none; position: fixed; z-index: 801; inset: 0 0 0 auto; width: var(--im-ai-panel-width, min(360px, 100%)); }
|
|
.im-ai-resizer--drawer { left: -4px; background: transparent; }
|
|
.im-ai-panel--open { display: grid; }
|
|
.im-ai-close { display: block; }
|
|
.video-layer--with-rail { grid-template-columns: minmax(0, 1fr) 310px; }
|
|
.video-actions {
|
|
right: 12px;
|
|
bottom: 14px;
|
|
left: 12px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
.recording-status {
|
|
flex-basis: 100%;
|
|
width: fit-content;
|
|
margin-left: auto;
|
|
font-size: 11px;
|
|
}
|
|
.consultation-rail__header { padding-inline: 12px; }
|
|
.diagnosis-chip { display: none; }
|
|
.case-panel__content { padding-inline: 12px; }
|
|
.rail-section-heading { padding-inline: 12px; }
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.chat-header { gap: 10px; padding: 10px 14px; }
|
|
.chat-heading h1 { font-size: 16px; }
|
|
.chat-heading p { font-size: 11px; }
|
|
.primary-action { padding: 9px 12px; font-size: 12px; }
|
|
.secondary-action { padding: 9px 10px; font-size: 12px; }
|
|
.message-list { padding: 14px; }
|
|
.message-bubble { max-width: 88%; }
|
|
.composer { padding: 8px 14px 12px; }
|
|
.composer-row { grid-template-columns: minmax(0, 1fr) 68px; gap: 10px; }
|
|
.video-layer,
|
|
.video-stage { min-height: 280px; }
|
|
.video-layer--with-rail { grid-template-columns: minmax(0, 1fr); }
|
|
.consultation-rail { display: none; }
|
|
.video-actions {
|
|
right: 10px;
|
|
bottom: 10px;
|
|
left: auto;
|
|
gap: 6px;
|
|
}
|
|
.recording-status { display: none; }
|
|
.video-actions button {
|
|
padding: 8px 11px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
}
|
|
.live-status {
|
|
top: 10px;
|
|
padding: 7px 10px;
|
|
font-size: 11px;
|
|
}
|
|
.video-notice {
|
|
left: 10px;
|
|
bottom: 52px;
|
|
max-width: calc(100% - 20px);
|
|
}
|
|
.screenshot-dialog-backdrop { padding: 12px; }
|
|
.screenshot-dialog {
|
|
height: calc(100vh - 24px);
|
|
max-height: calc(100vh - 24px);
|
|
padding: 12px;
|
|
gap: 10px;
|
|
}
|
|
.screenshot-dialog h2 { font-size: 16px; }
|
|
.screenshot-dialog > header > button { flex-shrink: 0; }
|
|
}
|
|
|
|
.load-more:enabled:hover,
|
|
.screenshot-cancel:enabled:hover { border-color: var(--border-strong); background: var(--surface-soft); }
|
|
.composer-toolbar button:enabled:hover { background: var(--accent-soft); }
|
|
.screenshot-dialog > header > button:enabled:hover { color: var(--text); background: var(--border); }
|
|
.message-file:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
|
|
@keyframes screenshot-enter {
|
|
from { opacity: .8; transform: translateY(4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.patient-avatar { width: 38px; height: 38px; flex-shrink: 0; }
|
|
.composer-toolbar > span { display: none; }
|
|
.screenshot-dialog__hint { font-size: 11px; }
|
|
}
|
|
|
|
@media (max-height: 480px) {
|
|
.im-ai-header { min-height: 54px; padding: 8px 14px; }
|
|
.im-ai-header p { display: none; }
|
|
.im-ai-tools { padding-bottom: 8px; }
|
|
.im-ai-body { padding: 12px 14px; }
|
|
.im-ai-empty { padding: 0; }
|
|
.im-ai-empty__line { display: none; }
|
|
.im-ai-footer { padding: 8px 14px; }
|
|
.im-ai-footer p { margin-top: 5px; font-size: 10px; }
|
|
.chat-panel { grid-template-rows: minmax(64px, auto) minmax(0, 1fr) auto; }
|
|
.composer textarea { min-height: 56px; height: 56px; max-height: 84px; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
button,
|
|
.composer textarea { transition: none; }
|
|
button:enabled:active { transform: none; }
|
|
.screenshot-dialog { animation: none; }
|
|
.tongue-analysis__spinner { animation: none; }
|
|
}
|
|
|
|
/* Video-only auxiliary rail. IM layout, capture preview and call controls retain their own styles. */
|
|
.video-layer--with-rail {
|
|
grid-template-columns: minmax(0, 1fr) var(--video-rail-width, 380px);
|
|
column-gap: 8px;
|
|
}
|
|
.consultation-rail--ai {
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
overflow: visible;
|
|
background: var(--surface);
|
|
}
|
|
.consultation-rail--ai .consultation-rail__header { grid-row: 1; }
|
|
.video-rail-tabs {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 4px;
|
|
padding: 0 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
.video-rail-tabs button {
|
|
min-height: 47px;
|
|
padding: 10px 4px;
|
|
border: 0;
|
|
border-bottom: 2px solid transparent;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
.video-rail-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent-hover); }
|
|
.video-rail-tabs button:hover { color: var(--accent-hover); background: var(--surface-alt); }
|
|
.video-rail-tabs button:focus-visible { outline-offset: -4px; }
|
|
.video-rail-tabpanel { min-width: 0; min-height: 0; overflow: hidden; }
|
|
.video-rail-tabpanel:focus-visible,
|
|
.video-ai-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
|
|
.consultation-rail--ai .case-panel { border-bottom: 0; }
|
|
.consultation-rail--ai .case-field { grid-template-columns: 64px minmax(0, 1fr); padding-block: 13px; }
|
|
.consultation-rail--ai .case-field p { font-size: 13px; line-height: 1.75; }
|
|
.video-rail-resizer {
|
|
position: absolute;
|
|
z-index: 1;
|
|
inset: 0 auto 0 -8px;
|
|
width: 8px;
|
|
cursor: col-resize;
|
|
touch-action: none;
|
|
background: var(--surface-soft);
|
|
}
|
|
.video-rail-resizer::before { position: absolute; inset: 0 3px; background: var(--border); content: ""; }
|
|
.video-rail-resizer > span { position: absolute; top: calc(50% - 20px); left: 2px; width: 4px; height: 40px; border-radius: 3px; background: var(--border-strong); }
|
|
.video-rail-resizer:hover::before,
|
|
.video-rail-resizer:focus-visible::before,
|
|
.video-layer--resizing .video-rail-resizer::before { background: var(--accent); }
|
|
.video-rail-resizer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
.video-layer--resizing,
|
|
.video-layer--resizing * { cursor: col-resize !important; user-select: none !important; }
|
|
.video-ai-toggle { display: none; }
|
|
.video-ai-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; width: 100%; height: 100%; min-height: 0; background: var(--surface); }
|
|
.video-ai-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; border-bottom: 1px solid var(--border); }
|
|
.video-ai-heading h2 { margin: 0; color: var(--heading); font-size: 15px; font-weight: 600; line-height: 1.6; }
|
|
.video-ai-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
|
|
.video-ai-scope { margin: 0 0 12px; padding: 9px 11px; border-radius: 8px; color: var(--muted); background: var(--surface-soft, #f4f6fa); font-size: 12px; line-height: 1.7; }
|
|
.video-ai-mode { flex-shrink: 0; padding: 4px 7px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 600; }
|
|
.video-ai-mode--active { background: var(--accent-soft); color: var(--accent-hover); }
|
|
.video-ai-body { min-height: 0; padding: 14px 18px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b9c3d5 transparent; scrollbar-width: thin; }
|
|
.video-ai-status { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
|
.video-ai-status__line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; }
|
|
.video-ai-status__line > p { margin: 0; }
|
|
.video-ai-status--busy .video-ai-status__line { color: var(--accent-hover); }
|
|
.video-ai-status--error { padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); }
|
|
.video-ai-status--error .video-ai-status__line { color: var(--heading); }
|
|
.video-ai-elapsed { flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: 11px; }
|
|
.video-ai-message,
|
|
.video-ai-error { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
|
|
.video-ai-empty { display: grid; gap: 9px; margin: 17px 0 22px; padding: 18px 0; }
|
|
.video-ai-empty > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-small); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
|
|
.video-ai-empty > strong { color: var(--heading); font-size: 14px; line-height: 1.6; }
|
|
.video-ai-empty p { margin: 0; max-width: 36em; color: var(--muted); font-size: 13px; line-height: 1.8; }
|
|
.video-ai-skeleton { display: grid; gap: 9px; margin-top: 9px; }
|
|
.video-ai-skeleton span { height: 10px; border-radius: 5px; background: var(--surface-soft); }
|
|
.video-ai-skeleton span:nth-child(2) { width: 88%; }
|
|
.video-ai-skeleton span:nth-child(3) { width: 60%; }
|
|
.video-ai-section + .video-ai-section { margin-top: 24px; }
|
|
.video-ai-section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 9px; border-bottom: 1px solid var(--border); }
|
|
.video-ai-section h3 { margin: 0; color: var(--heading); font-size: 14px; font-weight: 700; }
|
|
.video-ai-section > header > span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
.video-ai-section__empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
|
|
.video-ai-items { margin: 0; padding: 0; list-style: none; }
|
|
.video-ai-items > li { padding: 13px 0; border-bottom: 1px solid var(--border); }
|
|
.video-ai-items > li:last-child { padding-bottom: 0; border-bottom: 0; }
|
|
.video-ai-items > .video-ai-item--next,
|
|
.video-ai-items > .video-ai-item--next:last-child { margin-top: 12px; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--accent-soft); }
|
|
.video-ai-priority { margin: 0 0 6px; color: var(--accent-hover); font-size: 11px; font-weight: 600; }
|
|
.video-ai-item--next .video-ai-item-text { color: var(--heading); font-weight: 500; }
|
|
.video-ai-item--next .video-ai-citations button { background: var(--surface); }
|
|
.video-ai-item-text { font-size: 14px; line-height: 1.85; }
|
|
.video-ai-item-text > :last-child { margin-bottom: 0; }
|
|
.video-ai-reason { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; margin-top: 8px; color: var(--muted); }
|
|
.video-ai-reason > span { padding-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.8; }
|
|
.video-ai-reason .im-ai-text { color: var(--muted); font-size: 12px; line-height: 1.8; }
|
|
.video-ai-citations { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
|
|
.video-ai-citations button { max-width: 100%; min-height: 28px; padding: 5px 7px; border: 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent-hover); font-size: 11px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
|
.video-ai-citations button:hover,
|
|
.video-ai-citations button[aria-expanded="true"] { background: #dce6f8; color: var(--heading); }
|
|
.video-ai-unverified { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
|
|
.video-ai-source { min-height: 0; max-height: 27vh; padding: 12px 18px; overflow-y: auto; overscroll-behavior: contain; border-top: 2px solid var(--accent); background: var(--accent-soft); }
|
|
.video-ai-source header { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; color: var(--accent-hover); font-size: 12px; }
|
|
.video-ai-source time { font-variant-numeric: tabular-nums; }
|
|
.video-ai-source button { flex-shrink: 0; width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 4px; background: transparent; color: var(--accent-hover); font-size: 20px; }
|
|
.video-ai-source button:hover { background: var(--surface); }
|
|
.video-ai-source p { margin: 0; color: var(--heading); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.video-ai-footer { padding: 12px 18px 14px; border-top: 1px solid var(--border); background: var(--surface-alt); }
|
|
.video-ai-through { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; color: var(--text); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
|
|
.video-ai-source-status { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
|
|
.video-ai-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
|
|
.video-ai-actions button,
|
|
.video-transcript-notice button { min-height: 32px; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: var(--radius-small); background: var(--surface); color: var(--accent-hover); font-size: 12px; line-height: 1.6; }
|
|
.video-ai-actions button:enabled:hover,
|
|
.video-transcript-notice button:enabled:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
.video-ai-boundary { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
|
|
.video-transcript-notice { padding: 12px; border-left: 2px solid var(--border-strong); background: var(--surface); color: var(--muted); }
|
|
.video-transcript-notice strong { font-size: 13px; }
|
|
.video-transcript-notice p { margin: 7px 0; font-size: 12px; line-height: 1.75; }
|
|
.video-transcript-notice--error { border-left-color: var(--danger); color: var(--danger); }
|
|
.transcript-state--error { color: var(--danger) !important; }
|
|
.transcript-state--error::before { background: var(--danger); }
|
|
|
|
@media (max-width: 700px) {
|
|
.video-layer--with-rail { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
|
|
.video-ai-toggle { position: absolute; z-index: 40; top: 10px; right: 10px; display: inline-flex; gap: 4px; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-small); background: var(--surface); color: var(--accent-hover); font-size: 12px; font-weight: 600; }
|
|
.video-ai-toggle:hover { background: var(--accent-soft); }
|
|
.video-layer--with-rail .live-status { left: 10px; max-width: calc(100% - 155px); transform: none; }
|
|
.video-rail-backdrop { position: absolute; z-index: 60; inset: 0; background: rgb(16 23 32 / 48%); }
|
|
.consultation-rail--ai { display: none; position: absolute; z-index: 70; inset: 0 0 0 auto; grid-template-rows: auto auto auto minmax(0, 1fr); width: var(--video-rail-width, calc(100% - 24px)); max-width: calc(100% - 24px); }
|
|
.consultation-rail--open { display: grid; }
|
|
.consultation-rail--ai .consultation-rail__header { grid-row: 2; }
|
|
.video-rail-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); color: var(--heading); font-size: 13px; }
|
|
.video-rail-drawer-heading button { width: 32px; height: 32px; border: 0; border-radius: var(--radius-small); background: transparent; color: var(--muted); font-size: 24px; }
|
|
.video-rail-drawer-heading button:hover { background: var(--accent-soft); color: var(--accent-hover); }
|
|
.video-ai-heading { padding: 12px 14px; }
|
|
.video-ai-body { padding-inline: 14px; }
|
|
.video-ai-footer,
|
|
.video-ai-source { padding-inline: 14px; }
|
|
}
|
|
|
|
@media (max-height: 520px) {
|
|
.consultation-rail--ai .consultation-rail__header { min-height: 58px; padding-block: 8px; }
|
|
.video-rail-tabs button { min-height: 38px; padding-block: 7px; }
|
|
.video-ai-heading { padding-block: 8px; }
|
|
.video-ai-heading p { display: none; }
|
|
.video-ai-footer { padding-block: 8px; }
|
|
.video-ai-boundary { margin-top: 5px; }
|
|
.video-ai-source { max-height: 23vh; }
|
|
}
|
|
/* The post-call review uses the browser's modal focus and Escape handling. */
|
|
.video-review-dialog {
|
|
width: min(48rem, calc(100vw - 2rem));
|
|
height: min(52rem, calc(100dvh - 2rem));
|
|
padding: 0;
|
|
border: 1px solid var(--border, #dfe5ef);
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
color: inherit;
|
|
overflow: hidden;
|
|
}
|
|
.video-review-dialog[open] { display: flex; flex-direction: column; }
|
|
.video-review-dialog::backdrop { background: rgb(18 35 59 / 36%); }
|
|
.video-review-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 22px; border-bottom: 1px solid #e5eaf2; }
|
|
.video-review-dialog h2 { margin: 0; font-size: 18px; }
|
|
.video-review-dialog header p { margin: 5px 0 0; color: #6b7a92; font-size: 13px; }
|
|
.video-review-dialog > header button { border: 0; border-radius: 10px; background: #f0f4fa; width: 36px; height: 36px; font-size: 24px; color: #536984; }
|
|
.video-review-dialog > .video-ai-panel { flex: 1; min-height: 0; }
|