2026-04-28 20:19:17 +08:00
|
|
|
/* Scan terminal shell, topbar, upgrade announcement, and shared action buttons.
|
|
|
|
|
Extracted from ScanTerminal.module.css to keep terminal layout CSS maintainable. */
|
|
|
|
|
|
2026-05-10 14:21:10 +08:00
|
|
|
/* ── Button Hierarchy ──
|
|
|
|
|
Primary: .scan-primary-button — filled gradient, main CTA
|
|
|
|
|
Secondary: .scan-ai-button — tinted background, alternative action
|
|
|
|
|
Ghost: .scan-theme-button — no border/background, icon-only
|
|
|
|
|
Chrome: .scan-account-button — bordered icon, navigation
|
|
|
|
|
Chrome: .scan-locale-switch — segmented control
|
|
|
|
|
Chrome: .scan-ghost-button — bordered + bg, utility action
|
|
|
|
|
────────────────────────────────────────────── */
|
|
|
|
|
|
2026-04-28 20:19:17 +08:00
|
|
|
.root :global(.scan-topbar) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 6px 0 18px;
|
2026-05-24 23:07:37 +08:00
|
|
|
border-bottom: 1px solid var(--color-border-default);
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-topbar-title) {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-topbar-title strong) {
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
line-height: 1.08;
|
2026-05-24 23:07:37 +08:00
|
|
|
letter-spacing: 0;
|
|
|
|
|
color: var(--color-text-primary);
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-topbar-title span) {
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-secondary);
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-topbar-actions) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
gap: 12px;
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-secondary);
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-locale-switch) {
|
|
|
|
|
height: 36px;
|
|
|
|
|
padding: 3px;
|
2026-05-24 23:07:37 +08:00
|
|
|
border-radius: 10px;
|
|
|
|
|
border: 1px solid var(--color-border-default);
|
|
|
|
|
background: #e2e8f0;
|
|
|
|
|
color: var(--color-text-secondary);
|
2026-04-28 20:19:17 +08:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-locale-switch span) {
|
|
|
|
|
min-width: 34px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
padding: 0 8px;
|
2026-05-24 23:07:37 +08:00
|
|
|
border-radius: 7px;
|
2026-04-28 20:19:17 +08:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-locale-switch span.active) {
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-primary);
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-topbar-time) {
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-secondary);
|
2026-04-28 20:19:17 +08:00
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement) {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin: -4px 0 6px;
|
2026-05-24 23:07:37 +08:00
|
|
|
border: 1px solid #bfdbfe;
|
|
|
|
|
border-radius: 12px;
|
2026-04-28 20:19:17 +08:00
|
|
|
background:
|
2026-05-24 23:07:37 +08:00
|
|
|
linear-gradient(90deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
|
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
2026-04-28 20:19:17 +08:00
|
|
|
padding: 16px 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement-copy) {
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement-copy span) {
|
2026-05-24 23:07:37 +08:00
|
|
|
color: #047857;
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
letter-spacing: 0.04em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement-copy strong) {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-top: 5px;
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-primary);
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 18px;
|
|
|
|
|
line-height: 1.25;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement-copy p) {
|
|
|
|
|
margin: 6px 0 0;
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-secondary);
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 1.55;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement ul) {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement li) {
|
2026-05-24 23:07:37 +08:00
|
|
|
border: 1px solid #bfdbfe;
|
2026-04-28 20:19:17 +08:00
|
|
|
border-radius: 999px;
|
2026-05-24 23:07:37 +08:00
|
|
|
background: #eff6ff;
|
|
|
|
|
color: #1d4ed8;
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 12px;
|
2026-05-10 14:21:10 +08:00
|
|
|
font-weight: 800;
|
2026-04-28 20:19:17 +08:00
|
|
|
padding: 7px 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-10 16:13:34 +08:00
|
|
|
.root :global(.scan-announcement-dismiss) {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
right: 12px;
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 8px;
|
2026-05-24 23:07:37 +08:00
|
|
|
background: #f1f5f9;
|
|
|
|
|
color: #64748b;
|
2026-05-10 16:13:34 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.15s, color 0.15s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-announcement-dismiss:hover) {
|
2026-05-24 23:07:37 +08:00
|
|
|
background: #e2e8f0;
|
|
|
|
|
color: #0f172a;
|
2026-05-10 16:13:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-upgrade-announcement) {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 20:19:17 +08:00
|
|
|
.root :global(.scan-ghost-button),
|
|
|
|
|
.root :global(.scan-cta-ghost),
|
|
|
|
|
.root :global(.scan-detail-action-button),
|
|
|
|
|
.root :global(.scan-detail-icon-button),
|
|
|
|
|
.root :global(.scan-view-all-button) {
|
2026-05-24 23:07:37 +08:00
|
|
|
border: 1px solid var(--color-border-default);
|
|
|
|
|
background: var(--color-bg-raised);
|
|
|
|
|
color: var(--color-text-primary);
|
|
|
|
|
border-radius: 10px;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-ghost-button),
|
|
|
|
|
.root :global(.scan-cta-ghost) {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 11px 14px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-primary-button) {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
min-height: 42px;
|
|
|
|
|
padding: 11px 16px;
|
|
|
|
|
border: 1px solid rgba(77, 163, 255, 0.42);
|
2026-05-24 23:07:37 +08:00
|
|
|
border-radius: 10px;
|
2026-05-10 14:21:10 +08:00
|
|
|
background: linear-gradient(180deg, var(--color-accent-primary), #3B82F6);
|
2026-04-28 20:19:17 +08:00
|
|
|
color: #FFFFFF;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
text-decoration: none;
|
2026-05-24 23:07:37 +08:00
|
|
|
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
|
2026-04-28 20:19:17 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-primary-button:hover:not(:disabled)) {
|
|
|
|
|
filter: brightness(1.06);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-primary-button:disabled) {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.68;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-ai-button) {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
min-height: 42px;
|
|
|
|
|
padding: 11px 14px;
|
2026-05-24 23:07:37 +08:00
|
|
|
border: 1px solid #bfdbfe;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
background: #eff6ff;
|
|
|
|
|
color: #1d4ed8;
|
2026-04-28 20:19:17 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-ai-button:hover:not(:disabled)) {
|
2026-05-24 23:07:37 +08:00
|
|
|
border-color: #93c5fd;
|
|
|
|
|
background: #dbeafe;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-ai-button:disabled) {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.55;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-cta-ghost) {
|
2026-05-24 23:07:37 +08:00
|
|
|
color: #047857;
|
|
|
|
|
border-color: #a7f3d0;
|
|
|
|
|
background: #ecfdf5;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-account-button) {
|
|
|
|
|
width: 42px;
|
|
|
|
|
height: 42px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2026-05-24 23:07:37 +08:00
|
|
|
color: var(--color-text-primary);
|
2026-04-28 20:19:17 +08:00
|
|
|
text-decoration: none;
|
2026-05-24 23:07:37 +08:00
|
|
|
border: 1px solid var(--color-border-default);
|
|
|
|
|
background: var(--color-bg-raised);
|
|
|
|
|
border-radius: 10px;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.root :global(.scan-account-button:hover) {
|
2026-05-24 23:07:37 +08:00
|
|
|
border-color: #94a3b8;
|
|
|
|
|
background: #f8fafc;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
2026-05-24 23:07:37 +08:00
|
|
|
|
2026-04-28 20:19:17 +08:00
|
|
|
|
|
|
|
|
.root :global(.scan-ghost-button .spin) {
|
2026-05-14 18:06:53 +08:00
|
|
|
animation: spin 1s linear infinite;
|
2026-04-28 20:19:17 +08:00
|
|
|
}
|
2026-05-14 18:06:53 +08:00
|
|
|
|
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|