Files
X-Financial/web/src/assets/styles/components/personal-workbench.css

1010 lines
24 KiB
CSS
Raw Normal View History

.workbench {
--hero-padding-top: 26px;
--hero-padding-bottom: 26px;
--hero-title-size: 30px;
--hero-copy-gap: 6px;
--hero-title-bottom-gap: 18px;
--composer-min-height: 122px;
--composer-textarea-height: 54px;
--composer-padding-block: 12px;
--quick-prompts-gap-top: 10px;
--capability-row-height: 104px;
--workbench-ink: var(--ink, #1e293b);
--workbench-text: var(--text, #334155);
--workbench-muted: var(--muted, #64748b);
--workbench-line: var(--line, #e2e8f0);
--workbench-line-strong: var(--line-strong, #cbd5e1);
--workbench-line-soft: color-mix(in srgb, var(--line, #e2e8f0) 58%, #fff);
--workbench-surface: var(--surface, #fff);
--workbench-surface-soft: var(--surface-soft, #f9fbff);
--workbench-primary: var(--theme-primary, #3a7ca5);
--workbench-primary-active: var(--theme-primary-active, #255b7d);
--workbench-primary-soft: var(--theme-primary-soft, #eaf4fa);
--workbench-secondary: var(--theme-secondary, #4f6f9f);
--workbench-chart-blue: var(--chart-blue, #4f6f9f);
--workbench-chart-purple: var(--chart-purple, #6e7fa6);
--workbench-chart-amber: var(--chart-amber, #b58b4c);
width: 100%;
height: 100%;
min-width: 0;
display: grid;
grid-template-rows: auto var(--capability-row-height) minmax(0, 1fr);
gap: 10px;
overflow: visible;
color: var(--workbench-ink);
/* 恢复极简纯净的页面底层 */
background: transparent;
background-color: var(--workbench-surface-soft);
}
.workbench :where(button, textarea) {
font: inherit;
}
.workbench,
.workbench * {
box-sizing: border-box;
}
.workbench :where(button) {
border: 0;
background: transparent;
cursor: pointer;
}
.workbench :where(button:disabled) { cursor: not-allowed; opacity: 0.7; }
.assistant-hero {
--assistant-bg-position: right center;
--assistant-decor-width: clamp(860px, 62vw, 1180px);
--assistant-decor-opacity: 0.92;
--assistant-readability-mask:
linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0) 100%);
--assistant-theme-tint:
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.11), rgba(var(--theme-primary-rgb, 58, 124, 165), 0.025) 54%, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.075));
position: relative;
z-index: 2;
min-height: 0;
display: flex;
flex-direction: column;
justify-content: center;
overflow: visible;
padding: var(--hero-padding-top) 20px var(--hero-padding-bottom) 52px;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.18);
border-radius: 4px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.54)),
var(--assistant-theme-tint);
background-color: rgba(247, 252, 255, 0.72);
backdrop-filter: blur(14px) saturate(1.18);
-webkit-backdrop-filter: blur(14px) saturate(1.18);
box-shadow:
0 12px 28px rgba(15, 23, 42, 0.045),
inset 0 1px 0 rgba(255, 255, 255, 0.86),
inset 0 -1px 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.07);
isolation: isolate;
animation: workbenchItemIn 560ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
animation-delay: 0ms;
}
.assistant-hero::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 82%;
min-width: 760px;
background: url("../../images/workbench-hero-right-bg.png") var(--assistant-bg-position) / var(--assistant-decor-width) auto no-repeat;
opacity: var(--assistant-decor-opacity);
pointer-events: none;
z-index: 0;
}
.assistant-hero::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background:
var(--assistant-readability-mask),
linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 22%, transparent 72%, rgba(255, 255, 255, 0.18)),
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.05), transparent 58%);
pointer-events: none;
z-index: 1;
}
.assistant-copy {
position: relative;
z-index: 3;
width: min(980px, 94%);
display: grid;
gap: var(--hero-copy-gap);
}
.assistant-copy h1 {
margin: 0 0 var(--hero-title-bottom-gap);
color: var(--workbench-ink);
font-size: var(--hero-title-size);
line-height: 1.18;
font-weight: 850;
}
.assistant-copy h1 span:not(.typing-cursor) {
color: var(--workbench-primary-active);
display: inline-block;
animation: workbenchItemIn 400ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}
.typing-cursor {
display: inline-block;
color: var(--workbench-primary-active);
font-weight: 400;
margin-left: 2px;
animation: cursorBlink 0.9s step-end infinite;
}
@keyframes cursorBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.assistant-copy p {
max-width: 680px;
margin: 0 0 2px;
color: var(--workbench-muted);
font-size: 15px;
line-height: 1.6;
font-weight: 600;
}
.assistant-copy > * {
animation: workbenchItemIn 480ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}
.assistant-copy > h1 { animation-delay: 80ms; }
.assistant-copy > p { animation-delay: 160ms; }
.assistant-copy > .assistant-composer { animation-delay: 240ms; }
.assistant-copy > .assistant-file-strip { animation-delay: 320ms; }
.assistant-copy > .quick-prompts { animation-delay: 320ms; }
.assistant-file-input { display: none; }
.assistant-composer {
position: relative;
z-index: 20;
display: grid;
gap: 6px;
max-width: 920px;
min-height: var(--composer-min-height);
padding: var(--composer-padding-block) 18px 10px;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
border-radius: 4px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.045), rgba(255, 255, 255, 0.18));
box-shadow:
0 10px 24px rgba(15, 23, 42, 0.045),
inset 0 1px 0 rgba(255, 255, 255, 0.9),
inset 0 -1px 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.06);
backdrop-filter: blur(10px) saturate(1.14);
-webkit-backdrop-filter: blur(10px) saturate(1.14);
transition:
border-color 180ms var(--ease),
background 180ms var(--ease),
box-shadow 180ms var(--ease);
}
.assistant-composer::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
border-radius: inherit;
background:
linear-gradient(110deg, rgba(255, 255, 255, 0.32), transparent 32%),
linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
pointer-events: none;
}
.assistant-composer > * {
position: relative;
z-index: 1;
}
.assistant-composer:focus-within {
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.58);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.06), rgba(255, 255, 255, 0.22));
box-shadow:
0 0 0 3px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.11),
0 14px 30px rgba(15, 23, 42, 0.055),
inset 0 1px 0 rgba(255, 255, 255, 0.94),
inset 0 -1px 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08);
}
.assistant-composer textarea {
width: 100%;
min-width: 0;
height: var(--composer-textarea-height);
min-height: var(--composer-textarea-height);
max-height: var(--composer-textarea-height);
resize: none;
border: 0;
padding: 0;
background: transparent;
color: var(--workbench-ink);
font-size: 16px;
line-height: 1.55;
overflow: hidden;
}
.assistant-composer textarea::placeholder {
color: color-mix(in srgb, var(--workbench-muted) 70%, #ffffff);
}
.assistant-composer textarea:focus { outline: none; }
.assistant-composer textarea[readonly] {
color: color-mix(in srgb, var(--workbench-ink) 72%, #ffffff);
cursor: progress;
}
.assistant-intent-status {
display: inline-flex;
align-items: center;
width: fit-content;
max-width: 100%;
min-height: 28px;
gap: 8px;
padding: 0 10px;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.22);
border-radius: 4px;
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08);
color: var(--workbench-primary-active);
font-size: 12px;
font-weight: 750;
line-height: 1.35;
}
.assistant-intent-status i {
font-size: 15px;
}
.composer-toolbar {
display: flex;
align-items: center;
gap: 12px;
}
.composer-icon-button,
.composer-send-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 36px;
border-radius: 4px;
white-space: nowrap;
}
.composer-icon-button {
width: 36px;
border: 1px solid var(--workbench-line);
background: var(--workbench-surface);
color: var(--workbench-text);
font-size: 19px;
}
.composer-count {
margin-left: auto;
color: color-mix(in srgb, var(--workbench-muted) 75%, #ffffff);
font-size: 13px;
font-weight: 650;
}
.composer-send-button {
width: 56px;
background: var(--workbench-primary-active);
color: #fff;
font-size: 18px;
box-shadow: 0 6px 14px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.16);
}
.assistant-file-strip {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.assistant-file-note,
.assistant-file-chip {
display: inline-flex;
align-items: center;
max-width: 220px;
min-height: 28px;
padding: 0 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 750;
}
.assistant-file-note {
background: var(--workbench-primary-soft);
color: var(--workbench-primary-active);
}
.assistant-file-chip {
overflow: hidden;
border: 1px solid var(--workbench-line);
background: var(--workbench-surface);
color: var(--workbench-text);
text-overflow: ellipsis;
white-space: nowrap;
}
.assistant-file-clear {
color: var(--workbench-muted);
font-size: 12px;
font-weight: 750;
}
.quick-prompts {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: var(--quick-prompts-gap-top);
margin-bottom: 0;
color: var(--workbench-text);
font-size: 14px;
font-weight: 700;
}
.quick-prompts button {
min-height: 28px;
padding: 0 14px;
border: 1px solid var(--workbench-line);
border-radius: 4px;
background: rgba(255, 255, 255, 0.86);
color: var(--workbench-text);
font-size: 13px;
font-weight: 650;
}
.quick-prompts .quick-more {
display: inline-flex;
align-items: center;
gap: 4px;
border-color: transparent;
background: transparent;
color: var(--workbench-primary-active);
font-weight: 800;
}
.capability-grid {
position: relative;
z-index: 1;
display: grid;
gap: 16px;
min-height: 0;
}
.capability-grid--privileged {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.capability-grid--standard {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.capability-card {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: 40px minmax(0, 1fr) 18px;
align-items: center;
gap: 14px;
min-height: 0;
padding: 16px 18px 16px 22px;
overflow: visible;
text-align: left;
border: 1px solid rgba(255, 255, 255, 0.9);
border-left: 3px solid color-mix(in srgb, var(--capability-color) 80%, rgba(255, 255, 255, 0.9));
min-width: 0;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.15);
border-radius: 4px;
box-shadow:
0 8px 24px rgba(15, 23, 42, 0.03),
inset 0 1px 0 rgba(255, 255, 255, 1);
color: var(--workbench-ink);
text-decoration: none;
animation: workbenchItemIn 560ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
animation-delay: var(--delay, 100ms);
transition:
border-color 180ms var(--ease),
box-shadow 180ms var(--ease),
color 180ms var(--ease),
transform 180ms var(--ease);
}
.capability-card:hover {
transform: translateY(-2px);
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.4);
box-shadow:
0 16px 32px rgba(15, 23, 42, 0.06),
inset 0 1px 0 rgba(255, 255, 255, 1);
}
.capability-card > * {
position: relative;
z-index: 1;
}
.capability-icon {
--workbench-list-icon-size: 40px;
--workbench-list-icon-art-size: 24px;
width: 40px;
height: 40px;
color: var(--capability-color);
}
.capability-copy {
min-width: 0;
display: grid;
justify-items: start;
gap: 4px;
text-align: left;
}
.capability-copy strong {
color: var(--workbench-ink);
font-size: 14px;
font-weight: 850;
line-height: 1.25;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.capability-copy small {
overflow: hidden;
color: var(--workbench-muted);
font-size: 12px;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.capability-arrow {
justify-self: end;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
min-width: 18px;
color: color-mix(in srgb, var(--workbench-muted) 68%, #ffffff);
font-size: 18px;
line-height: 1;
}
.capability-card--green {
--capability-color: var(--workbench-primary);
--capability-soft: var(--workbench-primary-soft);
}
.capability-card--blue {
--capability-color: var(--workbench-primary);
--capability-soft: var(--workbench-primary-soft);
}
.capability-card--emerald {
--capability-color: var(--workbench-primary);
--capability-soft: var(--workbench-primary-soft);
}
.capability-card--violet {
--capability-color: var(--workbench-primary);
--capability-soft: var(--workbench-primary-soft);
}
.capability-card--cyan {
--capability-color: var(--workbench-primary);
--capability-soft: var(--workbench-primary-soft);
}
.capability-card--amber {
--capability-color: var(--workbench-chart-amber);
--capability-soft: color-mix(in srgb, var(--workbench-chart-amber) 12%, #ffffff);
}
.workbench-content-grid {
display: grid;
grid-template-columns: minmax(640px, 1.8fr) minmax(260px, 0.55fr);
gap: 14px;
align-items: stretch;
min-height: 0;
overflow: hidden;
}
.workbench-card {
position: relative;
isolation: isolate;
min-height: 0;
height: 100%;
padding: 12px 14px;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.15);
border-radius: 4px;
box-shadow:
0 12px 28px rgba(15, 23, 42, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 1);
animation: workbenchItemIn 560ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
animation-delay: var(--delay, 200ms);
}
.workbench-card > * {
position: relative;
z-index: 2;
}
.progress-panel,
.side-panel {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 24px;
margin-bottom: 5px;
}
.section-head h2 {
margin: 0;
color: var(--workbench-ink);
font-size: 16px;
line-height: 1.25;
font-weight: 850;
}
.title-with-badge {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.soft-badge {
min-width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 7px;
border-radius: 4px;
background: var(--workbench-primary-soft);
color: var(--workbench-primary-active);
font-size: 13px;
font-weight: 850;
}
.insight-metric-row {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 14px;
border-radius: 4px;
background: color-mix(in srgb, var(--insight-color) 4%, transparent);
transition: transform 180ms var(--ease), background-color 180ms var(--ease);
animation: workbenchItemIn 480ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
animation-delay: calc(400ms + var(--item-index, 0) * 80ms);
}
.link-action {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--workbench-muted);
font-size: 13px;
font-weight: 800;
white-space: nowrap;
}
.muted-link {
color: var(--workbench-muted);
}
.progress-list {
display: grid;
min-height: 0;
height: 100%;
grid-auto-rows: minmax(0, 1fr);
}
.progress-row:first-child {
padding-top: 2px;
border-top: 0;
}
.progress-row {
animation: workbenchItemIn 480ms var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
animation-delay: calc(300ms + var(--item-index, 0) * 80ms);
}
.progress-identity,
.progress-result {
gap: 12px;
}
.progress-identity strong,
.progress-result strong {
margin-bottom: 2px;
overflow: hidden;
color: var(--workbench-ink);
font-size: 13px;
font-weight: bold;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.progress-identity small {
overflow: hidden;
color: var(--workbench-muted);
font-size: 11.5px;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.progress-type {
min-width: 0;
display: grid;
justify-self: stretch;
justify-items: center;
gap: 3px;
text-align: center;
}
.progress-type small {
color: var(--workbench-muted);
font-size: 10px;
font-weight: 750;
line-height: 1.2;
}
.progress-type strong {
max-width: 100%;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 22px;
padding: 0 8px;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.18);
border-radius: 4px;
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08);
color: var(--workbench-primary-active);
font-size: 11.5px;
font-weight: 850;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.progress-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 20px;
padding: 0 7px;
border-radius: 4px;
font-size: 11.5px;
font-weight: 850;
white-space: nowrap;
}
.progress-status--warning {
background: var(--warning-soft, #fff7ed);
color: var(--warning, #ea580c);
}
.progress-status--success {
background: var(--workbench-primary-soft, #eaf4fa);
color: var(--workbench-primary-active, #255b7d);
}
.progress-status--muted {
background: var(--info-soft, #f1f5f9);
color: var(--workbench-muted, #64748b);
}
.progress-status--danger {
background: var(--danger-soft, #fef2f2);
color: var(--danger, #dc2626);
}
.progress-row {
position: relative;
display: grid;
grid-template-columns: minmax(118px, 0.58fr) minmax(132px, 0.74fr) minmax(84px, 0.42fr) minmax(260px, 1.28fr) minmax(92px, auto);
align-items: center;
gap: 12px;
width: 100%;
padding: 1px 0;
border-top: 1px solid var(--workbench-line-soft);
text-align: left;
}
.progress-row.has-long-duration-divider {
margin-top: 13px;
padding-top: 13px;
border-top: 0;
}
.progress-row.has-long-duration-divider::before {
content: "10日以上";
position: absolute;
top: -9px;
left: 50%;
z-index: 1;
display: inline-flex;
align-items: center;
height: 18px;
padding: 0 10px;
transform: translateX(-50%);
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.28);
border-radius: 4px;
background: color-mix(in srgb, var(--theme-primary) 11%, #ffffff);
box-shadow: 0 4px 10px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.12);
color: var(--theme-primary-active);
font-size: 11px;
font-weight: 850;
line-height: 1;
white-space: nowrap;
}
.progress-row.has-long-duration-divider::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.26);
pointer-events: none;
}
.progress-time-wrapper {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}
.expense-type-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 12px;
font-size: 22px;
flex-shrink: 0;
position: relative;
box-shadow:
0 4px 10px rgba(0, 0, 0, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.9),
inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}
.expense-type-icon::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
border-radius: inherit;
z-index: 0;
}
.expense-type-icon i {
position: relative;
z-index: 1;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}
.expense-type-icon--blue {
background: linear-gradient(135deg, color-mix(in srgb, var(--workbench-primary, #3a7ca5) 12%, #ffffff) 0%, color-mix(in srgb, var(--workbench-primary, #3a7ca5) 3%, #ffffff) 100%);
border: 1px solid color-mix(in srgb, var(--workbench-primary, #3a7ca5) 20%, #ffffff);
color: var(--workbench-primary, #3a7ca5);
}
.expense-type-icon--amber {
background: linear-gradient(135deg, color-mix(in srgb, var(--workbench-chart-amber, #b58b4c) 12%, #ffffff) 0%, color-mix(in srgb, var(--workbench-chart-amber, #b58b4c) 3%, #ffffff) 100%);
border: 1px solid color-mix(in srgb, var(--workbench-chart-amber, #b58b4c) 20%, #ffffff);
color: var(--workbench-chart-amber, #b58b4c);
}
.expense-type-icon--emerald {
background: linear-gradient(135deg, color-mix(in srgb, #0f8f68 12%, #ffffff) 0%, color-mix(in srgb, #0f8f68 3%, #ffffff) 100%);
border: 1px solid color-mix(in srgb, #0f8f68 20%, #ffffff);
color: #0f8f68;
}
.expense-type-icon--violet {
background: linear-gradient(135deg, color-mix(in srgb, #6d5bd0 12%, #ffffff) 0%, color-mix(in srgb, #6d5bd0 3%, #ffffff) 100%);
border: 1px solid color-mix(in srgb, #6d5bd0 20%, #ffffff);
color: #6d5bd0;
}
.expense-type-icon--cyan {
background: linear-gradient(135deg, color-mix(in srgb, #0788a2 12%, #ffffff) 0%, color-mix(in srgb, #0788a2 3%, #ffffff) 100%);
border: 1px solid color-mix(in srgb, #0788a2 20%, #ffffff);
color: #0788a2;
}
.expense-type-icon--muted {
background: linear-gradient(135deg, var(--info-soft, #f1f5f9) 0%, #ffffff 100%);
border: 1px solid var(--workbench-line);
color: var(--workbench-muted, #64748b);
}
.progress-time,
.progress-identity,
.progress-type,
.progress-result {
min-width: 0;
display: grid;
gap: 2px;
}
.progress-time {
color: var(--workbench-muted);
justify-items: center;
}
.progress-time time {
min-width: 0;
overflow: hidden;
color: var(--workbench-ink);
font-size: 12px;
font-weight: 850;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.progress-time small {
color: var(--workbench-muted);
font-size: 10px;
font-weight: 750;
line-height: 1.2;
}
.progress-time .time-capsule {
margin-top: 4px;
padding: 2px 6px;
border-radius: 999px;
background: var(--danger-soft, #fef2f2);
color: var(--danger, #dc2626);
font-weight: 850;
line-height: 1.2;
}
.progress-result {
justify-items: end;
}
.progress-steps {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
align-items: start;
}
.progress-step {
position: relative;
display: grid;
justify-items: center;
gap: 1px;
color: color-mix(in srgb, var(--workbench-muted) 64%, #ffffff);
}
.progress-step::before {
content: "";
position: absolute;
top: 8px;
left: calc(-50% + 12px);
right: calc(50% + 12px);
height: 2px;
background: var(--workbench-line);
}
.progress-step:first-child::before { display: none; }
.progress-step.is-done::before,
.progress-step.is-current::before {
background: var(--workbench-primary);
}
.progress-step i {
position: relative;
z-index: 1;
width: 16px;
height: 16px;
display: grid;
place-items: center;
border: 2px solid var(--workbench-line);
border-radius: 999px;
background: var(--workbench-surface);
color: var(--workbench-line-strong, #cbd5e1);
font-size: 12px;
line-height: 1;
}
.progress-step.is-done i {
border-color: var(--workbench-primary);
background: var(--workbench-primary-soft);
color: var(--workbench-primary-active);
}
.progress-step.is-current i {
border-color: var(--workbench-primary-active);
background: var(--theme-primary-light-9);
color: var(--workbench-primary-active);
}
.progress-step small {
color: currentColor;
font-size: 10px;
font-weight: 750;
line-height: 1.2;
white-space: nowrap;
}
.progress-step.is-done,
.progress-step.is-current {
color: var(--workbench-ink);
}
.capability-card:hover,
.progress-row:hover,
.quick-prompts button:hover,
.composer-icon-button:hover {
border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.24);
color: var(--workbench-primary-active);
}
@keyframes workbenchItemIn {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.assistant-hero,
.capability-card,
.workbench-card {
animation: none !important;
}
}