/* Reuse the App's semantic icon assets and theme colors. / 复用 App 语义图标及主题颜色。 */
.replica-visual { --replica-annotation: #5e3416; --replica-danger: #ef4444; --replica-backdrop: rgb(0 0 0 / 20%); }
:root[data-theme="dark"] .replica-visual { --replica-annotation: #e2b48e; --replica-danger: #f87171; --replica-backdrop: rgb(0 0 0 / 45%); }
.replica-icon.icon-message { --replica-icon: url('/business/icons/message.svg'); }
.replica-icon.icon-archive { --replica-icon: url('/business/icons/tasklist.svg'); }
.replica-icon.icon-date { --replica-icon: url('/business/icons/activity.svg'); }
.replica-icon.icon-user { --replica-icon: url('/business/icons/people.svg'); }
.replica-icon.icon-record { --replica-icon: url('/business/icons/createtask.svg'); }
.replica-icon.icon-edit { --replica-icon: url('/business/icons/editor.svg'); }
.replica-icon.icon-play { --replica-icon: url('/business/icons/play.svg'); }
.replica-icon.icon-pause { --replica-icon: url('/business/icons/suspend.svg'); }
.replica-icon.icon-delete { --replica-icon: url('/business/icons/trash.svg'); }
.replica-icon.icon-refresh { --replica-icon: url('/business/icons/refresh.svg'); }
.replica-square-action { display: grid; place-items: center; width: 6cqw; height: 6cqw; flex-shrink: 0; border: 1px solid var(--replica-border); border-radius: 1cqw; color: var(--replica-muted); background: var(--replica-surface); }
.replica-neutral-badge, .replica-success-badge { display: inline-flex; align-items: center; justify-content: center; gap: .7cqw; width: fit-content; padding: .7cqw 1.1cqw; border: 1px solid var(--replica-border); border-radius: .6cqw; font-size: 1.7cqw; color: var(--replica-muted); white-space: nowrap; }
.replica-success-badge { color: var(--replica-success); background: color-mix(in srgb, var(--replica-success) 8%, var(--replica-surface)); border-color: color-mix(in srgb, var(--replica-success) 18%, var(--replica-surface)); }
.replica-solid-button, .replica-outline-button, .replica-danger-button, .replica-danger-outline, .replica-neutral-button, .replica-disabled-button { display: inline-flex; align-items: center; justify-content: center; gap: .6cqw; padding: 1.1cqw 1.5cqw; border: 1px solid var(--replica-primary); border-radius: .9cqw; color: var(--replica-primary); background: var(--replica-surface); font-size: 1.9cqw; line-height: 1.2; white-space: nowrap; }
.replica-solid-button { background: var(--replica-primary); color: var(--replica-on-primary); }
.replica-danger-button { background: var(--replica-danger); border-color: var(--replica-danger); color: var(--replica-surface); }
.replica-danger-outline { border-color: var(--replica-danger); color: var(--replica-danger); }
.replica-neutral-button, .replica-disabled-button { border-color: var(--replica-border); color: var(--replica-muted); }.replica-disabled-button { opacity: .4; }

/* Work items: familiar cards keep a user/AI conversation timeline. / 工作项：熟悉的卡片保留用户与 AI 对话时间线。 */
.replica-board { position: absolute; inset: 3cqw 4cqw 4cqw; }
.replica-board > .replica-nav { margin-top: 0; height: 7cqw; }
.replica-board-tools { display: flex; align-items: center; gap: 1.5cqw; margin: 4cqw 0; }
.replica-board-tools .replica-file-search { flex: 1; min-width: 0; margin: 0; height: 6cqw; font-size: 2.1cqw; }
.replica-view-selected { color: var(--replica-primary); background: var(--replica-highlight); font-size: 3.5cqw; }
.replica-workitem-grid { position: absolute; top: 21cqw; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5cqw; }
.replica-workitem-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 3cqw; border: 1px solid var(--replica-border); border-radius: 2cqw; background: var(--replica-surface); transform-origin: left center; }
.replica-workitem-focus { z-index: 1; animation: replica-workitem-focus var(--replica-duration) ease-in-out infinite; }
.replica-workitem-neighbor { animation: replica-workitem-dim var(--replica-duration) ease infinite; }
.replica-workitem-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1cqw; margin-bottom: 2cqw; }
.replica-workitem-title > strong { min-width: 0; font-size: 2.6cqw; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replica-workitem-title > span { display: flex; align-items: center; gap: 1.4cqw; padding-top: .5cqw; color: var(--replica-faint); }.replica-workitem-title .replica-icon { width: 2.5cqw; height: 2.5cqw; }
.replica-feed-group + .replica-feed-group { padding-top: 2cqw; margin-top: 2cqw; border-top: 1px dashed var(--replica-border); }
.replica-feed-row { display: flex; gap: 1.4cqw; margin-bottom: 1.8cqw; position: relative; }
.replica-feed-row > i { flex-shrink: 0; position: relative; width: 1cqw; height: 1cqw; margin-top: 1cqw; border-radius: 50%; background: var(--replica-faint); }
.replica-feed-row:first-child > i::after { content: ""; position: absolute; top: 1.6cqw; left: calc(50% - .15cqw); width: .3cqw; height: 5cqw; background: var(--replica-border); }
.replica-feed-row > div { min-width: 0; flex: 1; }.replica-feed-meta { display: flex; align-items: center; gap: 1.6cqw; font-size: 1.85cqw; color: var(--replica-faint); margin-bottom: .5cqw; }.replica-feed-meta b { font-weight: 500; color: var(--replica-muted); }
.replica-feed-row p { margin: 0; color: var(--replica-secondary); font-size: 2cqw; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.replica-feed-ai > i, .replica-feed-ai-static > i { background: var(--replica-primary); }.replica-feed-ai p, .replica-feed-ai-static p { color: var(--replica-annotation); }.replica-feed-row p b { font-weight: 500; color: var(--replica-primary); margin-right: 1.5cqw; }
.replica-feed-user { animation: replica-workitem-user var(--replica-duration) ease infinite; }.replica-feed-ai { animation: replica-workitem-ai var(--replica-duration) ease infinite; }
.replica-workitem-footer { display: flex; align-items: center; gap: 3cqw; margin-top: auto; padding-top: 1cqw; color: var(--replica-faint); font-size: 1.7cqw; }
.replica-workitem-footer > span { display: flex; align-items: center; gap: .8cqw; min-width: 0; }.replica-workitem-footer .replica-icon { width: 1.8cqw; height: 1.8cqw; }

/* Scheduled tasks: open a run record without changing the recurring rule's state. / 定时任务：打开执行记录，保持周期规则自身状态不变。 */
.replica-schedule-home { position: absolute; inset: 3cqw 4cqw; }.replica-schedule-home > .replica-nav { margin-top: 0; height: 7cqw; }
.replica-schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin: 6cqw 0 4cqw; }
.replica-schedule-heading > div { min-width: 0; }.replica-schedule-heading strong { font-size: 3cqw; font-weight: 600; }.replica-schedule-heading small { margin-left: 1.8cqw; color: var(--replica-faint); font-size: 2cqw; }
.replica-schedule-heading p { margin: 1.1cqw 0 0; font-size: 2cqw; line-height: 1.5; color: var(--replica-muted); }.replica-schedule-heading .replica-solid-button { flex-shrink: 0; }
.replica-schedule-table { overflow: hidden; border: 1px solid var(--replica-border); border-radius: 1.8cqw; background: var(--replica-surface); }
.replica-schedule-row { display: grid; grid-template-columns: 27% 12% 16% 14% 31%; align-items: center; min-height: 15.5cqw; padding: 2.5cqw 2.3cqw; border-top: 1px solid var(--replica-border); font-size: 1.9cqw; color: var(--replica-secondary); }
.replica-schedule-head { min-height: 6.5cqw; padding-block: 1.5cqw; background: var(--replica-canvas); border-top: 0; color: var(--replica-muted); font-size: 1.8cqw; }
.replica-schedule-row > div { min-width: 0; }.replica-schedule-row strong { display: block; font-size: 2.2cqw; font-weight: 600; padding-right: 1cqw; }.replica-schedule-row small { display: block; margin-top: 1cqw; font-size: 1.6cqw; color: var(--replica-faint); }.replica-schedule-head > span:last-child { text-align: right; }
.replica-schedule-row > .replica-neutral-badge { font-size: 1.45cqw; padding: .7cqw .8cqw; }
.replica-table-actions { display: flex; gap: 1.2cqw; justify-content: flex-end; }.replica-table-actions > span { position: relative; display: grid; place-items: center; width: 4cqw; height: 4.5cqw; border: 1px solid var(--replica-border); border-radius: .7cqw; }.replica-table-actions .replica-icon { width: 2.1cqw; height: 2.1cqw; }
.replica-history-action { animation: replica-history-highlight var(--replica-duration) ease infinite; }.replica-history-click { position: absolute; inset: -.5cqw; border: .3cqw solid var(--replica-primary); border-radius: 50%; opacity: 0; animation: replica-file-click var(--replica-duration) ease infinite; }
.replica-history-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3; background: var(--replica-backdrop); animation: replica-history-overlay var(--replica-duration) ease infinite; }
.replica-history-dialog { width: 84%; background: var(--replica-surface); border: 1px solid var(--replica-border); border-radius: 1.8cqw; box-shadow: 0 2cqw 7cqw color-mix(in srgb, var(--replica-ink) 15%, transparent); animation: replica-history-dialog var(--replica-duration) ease infinite; }
.replica-dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 3cqw 4cqw; border-bottom: 1px solid var(--replica-border); }.replica-dialog-heading > strong { font-size: 3cqw; font-weight: 600; }.replica-dialog-heading > span { font-size: 3.2cqw; color: var(--replica-faint); }
.replica-history-body { padding: 3cqw; }.replica-history-record { padding: 2.7cqw; border: 1px solid var(--replica-border); border-radius: 1.2cqw; }
.replica-history-record-title { display: flex; align-items: center; gap: 1.5cqw; }.replica-history-record-title > strong { font-size: 2.5cqw; font-weight: 550; flex: 1; min-width: 0; }.replica-history-record-title > span:last-child { color: var(--replica-faint); }
.replica-complete-mark { font-size: 2.5cqw; font-style: normal; color: var(--replica-success); }
.replica-history-details { overflow: hidden; max-height: 34cqw; margin-top: 2cqw; padding-top: 2cqw; border-top: 1px solid var(--replica-border); animation: replica-history-expand var(--replica-duration) ease infinite; }
.replica-history-details > div { display: grid; grid-template-columns: 13cqw 1fr; gap: 2cqw; font-size: 2cqw; line-height: 1.7; margin-bottom: 1.5cqw; }.replica-history-details > div > span { color: var(--replica-faint); }.replica-history-details strong { font-size: inherit; font-weight: 400; color: var(--replica-secondary); }
.replica-history-details > .replica-history-artifact { display: flex; align-items: center; gap: 1.3cqw; margin: 2.5cqw 0 .5cqw; padding: 1.8cqw; border-radius: .8cqw; background: var(--replica-highlight); color: var(--replica-primary); }.replica-history-artifact > span { color: var(--replica-primary) !important; flex: 1; }.replica-history-artifact .replica-icon { width: 2.5cqw; height: 2.5cqw; }.replica-history-artifact b { font-weight: 400; }
.replica-history-older { display: flex; align-items: center; gap: 1.5cqw; margin-top: 2cqw; font-size: 2.1cqw; }.replica-history-older strong { font-weight: 500; }.replica-history-older small { margin-left: auto; color: var(--replica-faint); font-size: 1.8cqw; }.replica-history-older > span { color: var(--replica-faint); }
.replica-history-cursor { animation: replica-history-cursor var(--replica-duration) ease infinite; }

/* Browser: plugin and workspace show the same connection. / 浏览器：插件与工作空间同步展示连接。 */
.replica-browser-home { position: absolute; inset: 6cqw 45cqw 5cqw 4cqw; }
.replica-browser-home .replica-workspace-title > strong { font-size: 3.4cqw; }.replica-browser-home .replica-nav { gap: 2.5cqw; font-size: 1.85cqw; margin-top: 3cqw; }.replica-browser-home .replica-nav .replica-icon { width: 2.1cqw; height: 2.1cqw; }
.replica-browser-heading { display: flex; align-items: center; gap: 1.5cqw; margin-top: 4cqw; font-size: 2.5cqw; }.replica-browser-heading strong { font-weight: 600; }.replica-browser-heading small { color: var(--replica-faint); font-size: 1.9cqw; }
.replica-browser-description { margin: 1.5cqw 0 0 !important; color: var(--replica-muted) !important; font-size: 2cqw !important; line-height: 1.7 !important; }
.replica-browser-instance { position: relative; margin-top: 4cqw; }.replica-browser-instance > strong { font-size: 3.2cqw; font-weight: 600; }
.replica-browser-status { height: 5cqw; position: relative; margin-top: 2cqw; }.replica-browser-status > span { position: absolute; top: 0; left: 0; }.replica-browser-pending { opacity: 0; animation: replica-browser-pending var(--replica-duration) ease infinite; }.replica-browser-connected { animation: replica-browser-connected var(--replica-duration) ease infinite; }.replica-browser-connected > i, .replica-plugin-connected > i { width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--replica-success); }
.replica-browser-owner { display: flex; align-items: center; gap: 1cqw; margin-top: 1cqw; color: var(--replica-faint); font-size: 1.8cqw; }.replica-browser-owner .replica-icon { width: 2cqw; height: 2cqw; }.replica-browser-id { margin-top: 1cqw; color: var(--replica-faint); font-size: 1.8cqw; }
.replica-browser-actions { display: flex; align-items: center; gap: 1.5cqw; margin-top: 4cqw; animation: replica-browser-actions var(--replica-duration) ease infinite; }.replica-browser-actions .replica-outline-button { font-size: 1.7cqw; padding: 1.2cqw; }.replica-browser-actions .replica-outline-button .replica-icon { width: 2cqw; height: 2cqw; }
.replica-reference-action { position: relative; display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; flex-shrink: 0; border: 1px solid var(--replica-border); border-radius: .9cqw; background: var(--replica-surface); color: var(--replica-muted); animation: replica-reference-highlight var(--replica-duration) ease infinite; }.replica-reference-action .replica-icon { width: 2.4cqw; height: 2.4cqw; }.replica-reference-action::after { content: "+"; position: absolute; right: .2cqw; top: -.2cqw; font-size: 2cqw; color: var(--replica-primary); }
.replica-reference-click { position: absolute; inset: -.4cqw; border: .25cqw solid var(--replica-primary); border-radius: 50%; opacity: 0; animation: replica-reference-click var(--replica-duration) ease infinite; }
.replica-reference-tooltip { width: fit-content; padding: 1cqw 1.8cqw; margin-top: 1.4cqw; border: 1px solid var(--replica-border); border-radius: .8cqw; background: var(--replica-surface); color: var(--replica-muted); font-size: 1.8cqw; animation: replica-reference-tooltip var(--replica-duration) ease infinite; }
.replica-browser-plugin { position: absolute; top: 0; bottom: 0; right: 0; width: 43cqw; padding: 5cqw 2.6cqw; border-left: 1px solid var(--replica-border); background: var(--replica-input); box-shadow: -1cqw 0 2cqw color-mix(in srgb, var(--replica-ink) 5%, transparent); }
.replica-plugin-card { position: relative; border: 1px solid var(--replica-border); border-radius: 1.5cqw; padding: 2.2cqw; margin-bottom: 2.5cqw; background: var(--replica-surface); box-shadow: 0 .4cqw 1cqw color-mix(in srgb, var(--replica-ink) 4%, transparent); }
.replica-plugin-current, .replica-plugin-live { display: flex; align-items: center; gap: 1.4cqw; min-height: 11cqw; }.replica-plugin-card strong { font-size: 2.15cqw; font-weight: 600; }.replica-plugin-current > div:nth-child(2), .replica-plugin-live > div { flex: 1; min-width: 0; }.replica-plugin-card small { display: block; margin-top: .6cqw; color: var(--replica-muted); font-size: 1.6cqw; }.replica-plugin-led { width: 2cqw; height: 2cqw; border: 1px solid var(--replica-border); border-radius: 50%; flex-shrink: 0; }.replica-plugin-current > .replica-plugin-led { background: var(--replica-success); animation: replica-plugin-led var(--replica-duration) ease infinite; }
.replica-plugin-status { position: relative; height: 2.5cqw; margin-top: .6cqw; font-size: 1.65cqw; color: var(--replica-muted); }.replica-plugin-status > span { position: absolute; inset: 0; }
.replica-plugin-before { opacity: 0; animation: replica-plugin-before var(--replica-duration) ease infinite; }.replica-plugin-after { animation: replica-plugin-after var(--replica-duration) ease infinite; }
.replica-plugin-button-slot { width: 8.3cqw; height: 5cqw; position: relative; flex-shrink: 0; }.replica-plugin-button-slot > span { position: absolute; inset: 0; font-size: 1.7cqw; padding-inline: .6cqw; }.replica-plugin-live > .replica-solid-button { padding: 1.5cqw 1.4cqw; font-size: 1.7cqw; }
.replica-plugin-id { min-height: 11cqw; }.replica-plugin-id > small { margin-top: 0; font-size: 1.7cqw; }.replica-plugin-id > div { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-top: 1cqw; }.replica-plugin-id strong { color: var(--replica-primary); font-family: ui-monospace, monospace; font-size: 2.8cqw; font-weight: 500; }.replica-plugin-id .replica-neutral-button { font-size: 1.6cqw; }
.replica-plugin-cloud { min-height: 12cqw; }.replica-plugin-cloud > strong { font-size: 2.15cqw; }.replica-plugin-cloud > div { position: relative; margin-top: 2cqw; min-height: 3cqw; font-size: 1.6cqw; color: var(--replica-muted); }.replica-plugin-cloud .replica-plugin-before, .replica-plugin-cloud .replica-plugin-after { position: absolute; right: 0; top: 0; max-width: 55%; }.replica-plugin-connected { display: flex; align-items: center; gap: .7cqw; color: var(--replica-success); }
.replica-plugin-disconnect { display: grid; place-items: center; height: 7cqw; border: 1px solid var(--replica-border); border-radius: 1.5cqw; background: var(--replica-surface); font-size: 2.1cqw; font-weight: 550; }
.replica-browser-cursor { animation: replica-browser-cursor var(--replica-duration) ease infinite; }

/* Connectors: authorization returns before the connected controls appear. / 连接器：授权返回后再展示已连接操作。 */
.replica-connectors-home { position: absolute; inset: 4cqw; }.replica-connectors-title { display: block; font-size: 3.1cqw; font-weight: 600; }.replica-connectors-description { margin: 1.5cqw 0 0 !important; color: var(--replica-muted) !important; font-size: 2cqw !important; line-height: 1.6 !important; }
.replica-connector-grid { position: absolute; left: 0; right: 0; top: 13cqw; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 3cqw; }
.replica-connector-card { position: relative; min-width: 0; padding: 2cqw; border: 1px solid var(--replica-border); border-radius: 1.8cqw; background: var(--replica-surface); }
.replica-connector-header { display: flex; align-items: center; gap: 1.3cqw; }.replica-connector-logo { display: grid; place-items: center; width: 4.8cqw; height: 4.8cqw; flex-shrink: 0; border: 1px solid var(--replica-border); border-radius: 1cqw; background: var(--replica-canvas); color: var(--replica-muted); font-size: 2.5cqw; font-weight: 550; }.replica-connector-header > strong { min-width: 0; font-size: 2.15cqw; font-weight: 600; white-space: nowrap; }
.replica-connector-header > .replica-neutral-badge, .replica-connector-header > .replica-success-badge { position: absolute; top: 7.8cqw; right: 2cqw; font-size: 1.35cqw; padding: .4cqw .7cqw; border: 0; background: var(--replica-canvas); }.replica-connector-header > .replica-success-badge { background: color-mix(in srgb, var(--replica-success) 9%, var(--replica-surface)); }
.replica-connector-account { position: absolute; top: 8cqw; left: 2cqw; max-width: 11cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.3cqw; color: var(--replica-faint); }
.replica-connector-card > p { position: absolute; left: 2cqw; right: 2cqw; top: 12cqw; margin: 0; font-size: 2cqw; color: var(--replica-muted); line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.replica-connector-actions { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; display: flex; justify-content: flex-end; align-items: center; gap: 2cqw; height: 5cqw; }.replica-connector-actions > span { font-size: 1.8cqw; padding: 1.2cqw 1.7cqw; }
.replica-connector-before { opacity: 0; animation: replica-connector-before var(--replica-duration) ease infinite; }.replica-connector-during { opacity: 0; animation: replica-connector-during var(--replica-duration) ease infinite; }.replica-connector-after { animation: replica-connector-after var(--replica-duration) ease infinite; }
.replica-connector-focus .replica-connector-actions > .replica-connector-before, .replica-connector-focus .replica-connector-actions > .replica-connector-during { position: absolute; right: 0; top: 0; }.replica-connector-focus { animation: replica-connector-focus var(--replica-duration) ease infinite; }
.replica-authorization-notice { position: absolute; z-index: 4; left: 21%; right: 21%; top: 35%; display: flex; align-items: center; gap: 2cqw; padding: 3cqw; background: var(--replica-surface); border: 1px solid var(--replica-border); border-radius: 1.5cqw; box-shadow: 0 2cqw 8cqw var(--replica-backdrop); opacity: 0; animation: replica-authorization-return var(--replica-duration) ease infinite; }.replica-authorization-notice > i { display: grid; place-items: center; width: 5cqw; height: 5cqw; flex-shrink: 0; border-radius: 50%; color: var(--replica-success); background: color-mix(in srgb, var(--replica-success) 9%, var(--replica-surface)); font-size: 3cqw; font-style: normal; }.replica-authorization-notice strong { font-size: 2.6cqw; font-weight: 550; }.replica-authorization-notice span { display: block; margin-top: .7cqw; color: var(--replica-muted); font-size: 2cqw; }
.replica-connector-cursor { animation: replica-connector-cursor var(--replica-duration) ease infinite; }

@keyframes replica-workitem-focus { 0%, 10%, 100% { transform: none; box-shadow: none; } 25%, 90% { transform: scale(1.045); box-shadow: 0 1cqw 3cqw color-mix(in srgb, var(--replica-ink) 6%, transparent); } }
@keyframes replica-workitem-dim { 0%, 10%, 100% { opacity: 1; } 25%, 90% { opacity: .55; } }
@keyframes replica-workitem-user { 0%, 2%, 100% { opacity: 0; transform: translateY(1cqw); } 6%, 92% { opacity: 1; transform: none; } }
@keyframes replica-workitem-ai { 0%, 8%, 100% { opacity: 0; transform: translateY(1.5cqw); } 13%, 92% { opacity: 1; transform: none; } }
@keyframes replica-history-highlight { 0%, 10%, 100% { color: var(--replica-secondary); background: transparent; } 18%, 30% { color: var(--replica-primary); background: var(--replica-highlight); } }
@keyframes replica-history-overlay { 0%, 24%, 100% { opacity: 0; visibility: hidden; } 34%, 91% { opacity: 1; visibility: visible; } }
@keyframes replica-history-dialog { 0%, 24%, 100% { transform: translateY(3cqw) scale(.97); } 34%, 91% { transform: none; } }
@keyframes replica-history-expand { 0%, 38%, 100% { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; border-top-color: transparent; } 52%, 93% { max-height: 34cqw; opacity: 1; margin-top: 2cqw; padding-top: 2cqw; border-top-color: var(--replica-border); } }
@keyframes replica-history-cursor { 0% { left: 89%; top: 82%; opacity: 0; } 6% { left: 89%; top: 82%; opacity: 1; } 18%, 23% { left: 71%; top: 54%; opacity: 1; } 30%, 100% { left: 71%; top: 54%; opacity: 0; } }
@keyframes replica-plugin-before { 0%, 26%, 100% { opacity: 1; } 35%, 96% { opacity: 0; } }
@keyframes replica-plugin-after { 0%, 26%, 100% { opacity: 0; } 35%, 96% { opacity: 1; } }
@keyframes replica-plugin-led { 0%, 26%, 100% { background: transparent; border-color: var(--replica-border); box-shadow: none; } 35%, 96% { background: var(--replica-success); border-color: var(--replica-success); box-shadow: 0 0 0 1cqw color-mix(in srgb, var(--replica-success) 8%, transparent); } }
@keyframes replica-browser-pending { 0%, 36%, 100% { opacity: 1; } 44%, 96% { opacity: 0; } }
@keyframes replica-browser-connected { 0%, 36%, 100% { opacity: 0; } 44%, 96% { opacity: 1; } }
@keyframes replica-browser-actions { 0%, 36%, 100% { opacity: .3; } 44%, 96% { opacity: 1; } }
@keyframes replica-reference-highlight { 0%, 54%, 100% { border-color: var(--replica-border); color: var(--replica-muted); } 65%, 90% { border-color: var(--replica-primary); color: var(--replica-primary); } }
@keyframes replica-reference-tooltip { 0%, 54%, 100% { opacity: 0; transform: translateY(-1cqw); } 65%, 90% { opacity: 1; transform: none; } }
@keyframes replica-reference-click { 0%, 68%, 80%, 100% { opacity: 0; transform: scale(.65); } 70% { opacity: .6; transform: scale(.65); } 79% { opacity: 0; transform: scale(1.45); } }
@keyframes replica-browser-cursor { 0% { left: 82%; top: 27%; opacity: 0; } 7% { left: 82%; top: 27%; opacity: 1; } 16%, 24% { left: 91%; top: 13%; opacity: 1; } 36%, 42% { left: 91%; top: 13%; opacity: 0; } 50% { left: 34%; top: 83%; opacity: 1; } 65%, 73% { left: 49%; top: 81%; opacity: 1; } 82%, 100% { left: 49%; top: 81%; opacity: 0; } }
@keyframes replica-connector-before { 0%, 20%, 100% { opacity: 1; } 26%, 96% { opacity: 0; } }
@keyframes replica-connector-during { 0%, 21%, 57%, 100% { opacity: 0; } 27%, 49% { opacity: 1; } }
@keyframes replica-connector-after { 0%, 51%, 100% { opacity: 0; } 59%, 96% { opacity: 1; } }
@keyframes replica-connector-focus { 0%, 9%, 100% { border-color: var(--replica-border); box-shadow: none; } 20%, 91% { border-color: color-mix(in srgb, var(--replica-primary) 45%, var(--replica-border)); box-shadow: 0 0 0 .3cqw var(--replica-highlight); } }
@keyframes replica-authorization-return { 0%, 30%, 61%, 100% { opacity: 0; transform: translateY(2cqw); } 37%, 51% { opacity: 1; transform: none; } }
@keyframes replica-connector-cursor { 0% { left: 70%; top: 64%; opacity: 0; } 7% { left: 70%; top: 64%; opacity: 1; } 18%, 23% { left: 90%; top: 50%; opacity: 1; } 30%, 100% { left: 90%; top: 50%; opacity: 0; } }



/* Older context stays compact, like the product card summary. / 历史上下文沿用产品卡片的紧凑摘要。 */
.replica-feed-group + .replica-feed-group p { -webkit-line-clamp: 1; }
.replica-feed-meta { white-space: nowrap; overflow: hidden; }

/* A continuous detail canvas pans from overview to the AI panel. / 连续详情画布从概要平移到 AI 对话面板。 */
.replica-workitems .replica-board { animation: replica-board-exit var(--replica-duration) ease infinite; }
.replica-workitem-detail { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--replica-canvas); animation: replica-detail-enter var(--replica-duration) ease infinite; }
.replica-detail-canvas { display: flex; width: 148cqw; height: 100%; transform: translateX(-48cqw); animation: replica-detail-pan var(--replica-duration) cubic-bezier(.4, 0, .2, 1) infinite; }
.replica-detail-main { width: 92cqw; flex-shrink: 0; padding: 3cqw 4cqw; }
.replica-detail-breadcrumb { display: flex; gap: 1.4cqw; font-size: 1.7cqw; color: var(--replica-faint); white-space: nowrap; }
.replica-detail-title { display: flex; align-items: center; gap: 2cqw; margin-top: 3cqw; }.replica-detail-title strong { font-size: 3.7cqw; font-weight: 500; }.replica-detail-title small { font-size: 1.6cqw; color: var(--replica-faint); }.replica-detail-title .replica-icon { margin-left: auto; color: var(--replica-faint); }
.replica-detail-main .replica-nav { margin-top: 2cqw; height: 7cqw; }
.replica-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 24cqw; gap: 3cqw; margin-top: 3cqw; }
.replica-summary-note { color: var(--replica-faint); font-size: 1.7cqw; margin-bottom: 2cqw; }
.replica-detail-summary section + section { border-top: 1px dashed var(--replica-border); margin-top: 2cqw; padding-top: 2cqw; }
.replica-detail-summary header { display: flex; justify-content: space-between; color: var(--replica-faint); font-size: 1.9cqw; margin-bottom: 1.5cqw; }
.replica-summary-row { display: flex; align-items: flex-start; gap: 1.3cqw; }.replica-summary-row > div { flex: 1; min-width: 0; }.replica-summary-row strong { display: block; font-size: 2.2cqw; font-weight: 500; }.replica-summary-row small { display: block; color: var(--replica-muted); font-size: 1.8cqw; line-height: 1.6; margin-top: .8cqw; }.replica-summary-row > .replica-icon, .replica-summary-row > span { color: var(--replica-primary); }
.replica-detail-conversations { border-left: 1px solid var(--replica-border); padding-left: 2cqw; font-size: 1.9cqw; }.replica-detail-conversations header { color: var(--replica-faint); margin-bottom: 2cqw; }.replica-detail-conversations > div { display: flex; align-items: center; gap: 1cqw; padding: 1.8cqw 1cqw; margin-bottom: 1cqw; border-radius: .8cqw; }.replica-detail-conversation-active { background: var(--replica-highlight); color: var(--replica-primary); }
.replica-detail-chat { position: relative; width: 56cqw; flex-shrink: 0; background: var(--replica-surface); border-left: 1px solid var(--replica-border); }.replica-detail-chat .replica-chat-header { padding-inline: 3cqw; font-size: 2.4cqw; }
.replica-detail-messages { padding: 14cqw 3cqw 0; font-size: 2cqw; line-height: 1.65; }
.replica-detail-user { margin-left: 5cqw; padding: 2cqw; background: var(--replica-input); border: 1px solid var(--replica-border); border-radius: 1.6cqw; }
.replica-detail-ai { display: flex; gap: 1.6cqw; margin-top: 3cqw; }.replica-detail-ai > b { color: var(--replica-primary); font-size: 1.9cqw; font-weight: 550; }.replica-detail-ai > div { min-width: 0; }.replica-detail-ai p { margin: 0 0 1.7cqw; font-size: 2cqw; line-height: 1.65; color: var(--replica-secondary); }
.replica-detail-chat-artifact { display: flex; align-items: center; gap: 1cqw; padding: 1.5cqw; border: 1px solid var(--replica-border); border-radius: 1cqw; font-size: 1.8cqw; color: var(--replica-primary); }.replica-detail-chat-artifact > span:last-child { margin-left: auto; }
.replica-detail-composer { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; height: 13cqw; padding: 2cqw; border-radius: 1.8cqw; background: var(--replica-input); color: var(--replica-faint); font-size: 1.9cqw; }.replica-detail-composer > div { display: flex; align-items: center; gap: 2cqw; margin-top: 2cqw; }.replica-detail-composer b { font-size: 3cqw; font-weight: 400; }.replica-detail-composer small { margin-left: auto; }.replica-detail-composer div > span { background: var(--replica-primary); color: var(--replica-on-primary); border-radius: .8cqw; padding: .2cqw 1cqw; }
.replica-workitem-cursor { animation: replica-workitem-cursor var(--replica-duration) ease infinite; }
@keyframes replica-board-exit { 0%, 23%, 100% { opacity: 1; transform: none; } 29%, 96% { opacity: 0; transform: scale(.98); } }
@keyframes replica-detail-enter { 0%, 23%, 100% { opacity: 0; visibility: hidden; } 30%, 95% { opacity: 1; visibility: visible; } }
@keyframes replica-detail-pan { 0%, 51%, 100% { transform: none; } 67%, 96% { transform: translateX(-48cqw); } }
@keyframes replica-workitem-cursor { 0%, 13% { opacity: 0; left: 60%; top: 75%; } 16% { opacity: 1; left: 60%; top: 75%; } 21%, 24% { opacity: 1; left: 26%; top: 42%; transform: scale(1); } 25% { opacity: 1; left: 26%; top: 42%; transform: scale(.8); } 29%, 100% { opacity: 0; left: 26%; top: 42%; transform: scale(1); } }

/* Connected tabs appear only after the extension connection is ready. / 插件连接完成后才显示对应标签组和标签页。 */
.replica-browser-heading { margin-top: 2.5cqw; }
.replica-browser-instance { margin-top: 2.5cqw; }
.replica-browser-actions { margin-top: 2cqw; }
.replica-browser-tab-group { position: absolute; top: 49cqw; left: 0; right: 0; padding: 2cqw; border: 1px solid var(--replica-border); border-radius: 1.2cqw; background: var(--replica-surface); animation: replica-browser-tabs var(--replica-duration) ease infinite; }
.replica-browser-tab-group header { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-bottom: 1.5cqw; font-size: 1.8cqw; }.replica-browser-tab-group header strong { font-weight: 500; }.replica-browser-tab-group header > span { color: var(--replica-faint); font-size: 1.5cqw; white-space: nowrap; }
.replica-browser-tab { display: flex; align-items: flex-start; gap: 1.2cqw; padding: 1.5cqw; border: 1px solid var(--replica-border); border-radius: 1cqw; background: var(--replica-canvas); animation: replica-browser-tab var(--replica-duration) ease infinite; }.replica-browser-tab > i { width: .9cqw; height: .9cqw; border-radius: 50%; margin-top: 1cqw; flex-shrink: 0; background: var(--replica-success); }.replica-browser-tab > div { min-width: 0; flex: 1; }.replica-browser-tab strong { display: block; font-size: 1.9cqw; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.replica-browser-tab small { display: block; font-size: 1.5cqw; color: var(--replica-faint); margin-top: .5cqw; }.replica-browser-tab div > span { display: inline-block; color: var(--replica-success); font-size: 1.4cqw; margin-top: .6cqw; }.replica-browser-tab .replica-reference-action { width: 3.6cqw; height: 3.6cqw; }
@keyframes replica-browser-tabs { 0%, 39%, 100% { opacity: 0; transform: translateY(1.5cqw); } 49%, 95% { opacity: 1; transform: none; } }
@keyframes replica-browser-tab { 0%, 46%, 100% { opacity: 0; transform: translateY(1cqw); } 56%, 95% { opacity: 1; transform: none; } }
.replica-browser-actions { position: absolute; top: 6cqw; right: 0; margin-top: 0; gap: 1cqw; }
.replica-browser-actions .replica-outline-button { font-size: 1.5cqw; padding: .9cqw; }
