558 lines
12 KiB
CSS
558 lines
12 KiB
CSS
.ops-chat-frame {
|
|
position: relative;
|
|
min-height: 0;
|
|
height: 100%;
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ops-chat-frame.is-disabled .ops-chat-scroll,
|
|
.ops-chat-frame.is-disabled .ops-composer {
|
|
filter: grayscale(0.2) opacity(0.75);
|
|
}
|
|
|
|
.ops-chat-disabled-mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 12px;
|
|
background: color-mix(in oklab, var(--panel) 60%, transparent);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 3;
|
|
}
|
|
|
|
.ops-chat-disabled-card {
|
|
border: 1px solid color-mix(in oklab, var(--line) 78%, var(--brand) 22%);
|
|
border-radius: 10px;
|
|
background: color-mix(in oklab, var(--panel-soft) 82%, var(--panel) 18%);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.ops-composer {
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--panel-soft);
|
|
padding: 10px;
|
|
display: block;
|
|
}
|
|
|
|
.ops-composer-shell {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: minmax(96px, auto) auto;
|
|
gap: 0;
|
|
min-height: 108px;
|
|
overflow: hidden;
|
|
border: 1px solid color-mix(in oklab, var(--line) 70%, var(--text) 8%);
|
|
border-radius: 10px;
|
|
background: var(--panel);
|
|
}
|
|
|
|
.ops-chat-top-context {
|
|
width: 100%;
|
|
min-width: 0;
|
|
margin: 0;
|
|
max-height: 120px;
|
|
overflow: auto;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: var(--panel-soft);
|
|
}
|
|
|
|
.ops-chat-dock {
|
|
display: grid;
|
|
gap: 8px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ops-composer-float-controls {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 15px;
|
|
z-index: 4;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ops-control-command-drawer {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
max-width: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
transform: translateX(10px);
|
|
transition: max-width 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ops-control-command-drawer.is-open {
|
|
max-width: 332px;
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
overflow: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ops-control-command-chip {
|
|
height: 24px;
|
|
padding: 0 8px;
|
|
border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
|
|
border-radius: 999px;
|
|
background: color-mix(in oklab, var(--panel) 94%, transparent);
|
|
color: var(--text);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
|
|
box-shadow: 0 4px 10px rgba(9, 15, 28, 0.08);
|
|
}
|
|
|
|
.ops-control-command-chip .mono {
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
color: var(--brand);
|
|
}
|
|
|
|
.ops-control-command-chip:hover:not(:disabled) {
|
|
border-color: color-mix(in oklab, var(--brand) 56%, var(--line) 44%);
|
|
background: color-mix(in oklab, var(--brand-soft) 28%, var(--panel) 72%);
|
|
}
|
|
|
|
.ops-control-command-chip:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ops-control-date-panel {
|
|
position: fixed;
|
|
width: 220px;
|
|
border: 1px solid color-mix(in oklab, var(--line) 74%, transparent);
|
|
border-radius: 12px;
|
|
background: var(--panel);
|
|
box-shadow: 0 14px 28px rgba(9, 16, 31, 0.2);
|
|
padding: 10px;
|
|
display: grid;
|
|
gap: 10px;
|
|
z-index: 140;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ops-control-date-label {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--subtitle);
|
|
}
|
|
|
|
.ops-control-date-input {
|
|
min-height: 34px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.ops-control-date-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ops-control-command-toggle {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 1px solid color-mix(in oklab, var(--brand) 50%, var(--line) 50%);
|
|
border-radius: 999px;
|
|
background: color-mix(in oklab, var(--panel) 95%, var(--brand-soft) 5%);
|
|
color: var(--brand);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
|
|
box-shadow: 0 4px 10px rgba(9, 15, 28, 0.08);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ops-control-command-toggle:hover {
|
|
transform: translateX(-1px);
|
|
background: color-mix(in oklab, var(--brand-soft) 26%, var(--panel) 74%);
|
|
}
|
|
|
|
.ops-control-command-toggle.is-open {
|
|
background: color-mix(in oklab, var(--brand-soft) 34%, var(--panel) 66%);
|
|
}
|
|
|
|
.ops-composer-quote {
|
|
grid-column: 1 / -1;
|
|
border: 1px solid color-mix(in oklab, var(--brand) 42%, var(--line) 58%);
|
|
border-radius: 10px;
|
|
padding: 8px 10px;
|
|
background: color-mix(in oklab, var(--brand-soft) 34%, var(--panel) 66%);
|
|
min-width: 0;
|
|
}
|
|
|
|
.ops-composer-quote-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--title);
|
|
}
|
|
|
|
.ops-composer-quote-text {
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ops-composer-shell .ops-composer-input,
|
|
.ops-composer-shell .ops-composer-input.input {
|
|
min-height: 96px;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
resize: none;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
padding: 14px 42px 10px 14px;
|
|
border: 0 !important;
|
|
border-bottom: 0 !important;
|
|
border-radius: 10px 10px 0 0;
|
|
background: var(--panel) !important;
|
|
box-shadow: none;
|
|
outline: none;
|
|
}
|
|
|
|
.ops-composer-shell.is-command-open .ops-composer-input,
|
|
.ops-composer-shell.is-command-open .ops-composer-input.input {
|
|
padding-right: 230px;
|
|
}
|
|
|
|
.ops-composer-shell:focus-within {
|
|
border-color: var(--brand);
|
|
}
|
|
|
|
.ops-composer-shell .ops-composer-input.input:focus,
|
|
.ops-composer-shell .ops-composer-input:focus {
|
|
border: 0 !important;
|
|
border-bottom: 0 !important;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ops-voice-wave {
|
|
height: 28px;
|
|
border-radius: 999px;
|
|
border: 1px solid color-mix(in oklab, var(--line) 76%, transparent);
|
|
background: color-mix(in oklab, var(--panel-soft) 78%, var(--panel) 22%);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 6px;
|
|
overflow: hidden;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ops-voice-wave-segment {
|
|
height: 100%;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 2px;
|
|
padding: 0 6px;
|
|
border-radius: 999px;
|
|
background: color-mix(in oklab, var(--panel) 60%, rgba(255, 255, 255, 0.18) 40%);
|
|
}
|
|
|
|
.ops-voice-wave.is-mobile .ops-voice-wave-segment {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.ops-voice-wave.is-desktop .ops-voice-wave-segment {
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.ops-voice-wave-segment i {
|
|
display: inline-block;
|
|
width: 3px;
|
|
min-width: 3px;
|
|
height: 10px;
|
|
border-radius: 999px;
|
|
background: color-mix(in oklab, var(--line) 72%, var(--text) 28%);
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.ops-voice-wave-segment i:nth-child(3n) {
|
|
height: 14px;
|
|
}
|
|
|
|
.ops-voice-wave-segment i:nth-child(4n) {
|
|
height: 18px;
|
|
}
|
|
|
|
.ops-voice-wave-segment i:nth-child(5n) {
|
|
height: 12px;
|
|
}
|
|
|
|
.ops-voice-wave.is-live .ops-voice-wave-segment i {
|
|
background: color-mix(in oklab, var(--brand) 60%, #8ec3ff 40%);
|
|
animation: ops-voice-wave 1.05s ease-in-out infinite;
|
|
}
|
|
|
|
.ops-voice-countdown {
|
|
flex: 0 0 auto;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--title);
|
|
min-width: 44px;
|
|
text-align: right;
|
|
}
|
|
|
|
.ops-composer-tools-right {
|
|
position: static;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
min-height: 44px;
|
|
padding: 4px 10px 6px 10px;
|
|
background: var(--panel);
|
|
border-radius: 0 0 10px 10px;
|
|
width: auto;
|
|
}
|
|
|
|
.ops-voice-inline {
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.ops-composer-inline-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--icon-muted);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ops-composer-inline-btn:hover:not(:disabled) {
|
|
background: color-mix(in oklab, var(--panel) 66%, var(--brand-soft) 34%);
|
|
color: var(--icon);
|
|
}
|
|
|
|
.ops-composer-inline-btn.is-active {
|
|
background: color-mix(in oklab, var(--brand-soft) 42%, var(--panel) 58%);
|
|
color: var(--brand);
|
|
}
|
|
|
|
.ops-composer-submit-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: var(--text);
|
|
color: var(--panel);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 8px 18px rgba(9, 15, 28, 0.22);
|
|
}
|
|
|
|
.ops-composer-submit-btn.is-interrupt {
|
|
width: 34px;
|
|
min-width: 34px;
|
|
padding: 0;
|
|
background: #0b1220;
|
|
color: #fff;
|
|
border: 1px solid color-mix(in oklab, #0b1220 72%, var(--line) 28%);
|
|
box-shadow: 0 8px 18px rgba(9, 15, 28, 0.22);
|
|
}
|
|
|
|
.ops-composer-submit-btn:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.ops-composer-submit-btn:disabled,
|
|
.ops-composer-inline-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ops-pending-files {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ops-user-quoted-reply {
|
|
margin-bottom: 8px;
|
|
border-left: 3px solid color-mix(in oklab, var(--brand) 55%, var(--line) 45%);
|
|
border-radius: 8px;
|
|
background: color-mix(in oklab, var(--panel) 84%, var(--brand-soft) 16%);
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.ops-user-quoted-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--subtitle);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.ops-user-quoted-text {
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: var(--text-soft);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ops-upload-progress {
|
|
margin-top: 8px;
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ops-upload-progress-track {
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
border: 1px solid color-mix(in oklab, var(--line) 72%, transparent);
|
|
background: color-mix(in oklab, var(--panel) 78%, var(--panel-soft) 22%);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ops-upload-progress-fill {
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
width: 0;
|
|
background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 75%, #7fb8ff 25%), color-mix(in oklab, var(--brand) 55%, #b6ddff 45%));
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
.ops-upload-progress-track.is-indeterminate .ops-upload-progress-fill {
|
|
width: 28%;
|
|
animation: ops-upload-indeterminate 1s linear infinite;
|
|
}
|
|
|
|
.ops-upload-progress-text {
|
|
font-size: 11px;
|
|
color: var(--subtitle);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@keyframes ops-upload-indeterminate {
|
|
0% { transform: translateX(-110%); }
|
|
100% { transform: translateX(430%); }
|
|
}
|
|
|
|
@keyframes ops-voice-wave {
|
|
0%, 100% {
|
|
transform: scaleY(0.55);
|
|
opacity: 0.35;
|
|
}
|
|
50% {
|
|
transform: scaleY(1.95);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.ops-pending-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
max-width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
background: color-mix(in oklab, var(--panel-soft) 78%, transparent);
|
|
}
|
|
|
|
.ops-pending-open {
|
|
max-width: 300px;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.ops-control-command-drawer.is-open {
|
|
max-width: 288px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ops-control-date-panel {
|
|
right: -2px;
|
|
width: min(220px, calc(100vw - 44px));
|
|
}
|
|
|
|
.ops-voice-wave {
|
|
gap: 4px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.ops-voice-wave-segment {
|
|
padding: 0 4px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1160px) {
|
|
.ops-chat-scroll {
|
|
min-height: 320px;
|
|
max-height: 55vh;
|
|
}
|
|
|
|
.ops-chat-bubble {
|
|
max-width: 96%;
|
|
}
|
|
|
|
.ops-composer {
|
|
padding: 8px;
|
|
}
|
|
}
|
|
|
|
.app-shell[data-theme='light'] .ops-chat-scroll,
|
|
.app-shell[data-theme='light'] .ops-chat-head,
|
|
.app-shell[data-theme='light'] .ops-composer,
|
|
.app-shell[data-theme='light'] .ops-bot-card {
|
|
background: #f7fbff;
|
|
}
|