log-center/web/src/index.css
zyc 625e53dc44
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m16s
feat(project-mgmt): 项目管理 + 失败原因追踪 + 前端展示
- 新增 Project 模型(repo_url, local_path, name, description)
- 项目 CRUD API(GET/PUT /api/v1/projects)
- 日志上报自动 upsert Project 记录
- ErrorLog 增加 failure_reason 字段
- update_task_status / create_repair_report 写入失败原因
- Repair Agent 优先从 API 获取项目配置,回退 .env
- 新增 Web 端「项目管理」页面(表格 + 行内编辑)
- BugList/BugDetail/RepairList 展示失败原因
- 更新接入指南文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 11:18:27 +08:00

1530 lines
26 KiB
CSS

/* ============================================
Log Center - Modern Minimalist Design System
============================================ */
:root {
--bg-primary: #09090b;
--bg-secondary: #0f0f11;
--bg-card: #18181b;
--bg-surface: #1f1f23;
--bg-hover: #27272a;
--accent: #3b82f6;
--accent-hover: #2563eb;
--accent-muted: rgba(59, 130, 246, 0.12);
--indigo: #6366f1;
--text-primary: #fafafa;
--text-secondary: #a1a1aa;
--text-tertiary: #71717a;
--success: #22c55e;
--success-muted: rgba(34, 197, 94, 0.12);
--warning: #f59e0b;
--warning-muted: rgba(245, 158, 11, 0.12);
--error: #ef4444;
--error-muted: rgba(239, 68, 68, 0.12);
--border: #27272a;
--border-subtle: #1f1f23;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.5;
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
color: var(--accent-hover);
}
/* ============ Layout ============ */
.app {
display: flex;
min-height: 100vh;
}
/* ============ Sidebar ============ */
.sidebar {
width: 240px;
background: var(--bg-secondary);
border-right: 1px solid var(--border);
padding: 20px 12px;
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.logo {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 32px;
padding: 0 12px;
display: flex;
align-items: center;
gap: 10px;
letter-spacing: -0.01em;
}
.logo-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: var(--accent);
border-radius: var(--radius-sm);
color: white;
flex-shrink: 0;
}
.nav-menu {
list-style: none;
display: flex;
flex-direction: column;
gap: 2px;
}
.nav-item {
margin: 0;
}
.nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: var(--radius-md);
color: var(--text-secondary);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: all 0.15s ease;
}
.nav-link:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-link.active {
background: var(--accent-muted);
color: var(--accent);
}
.nav-link svg {
width: 16px;
height: 16px;
flex-shrink: 0;
opacity: 0.7;
}
.nav-link.active svg,
.nav-link:hover svg {
opacity: 1;
}
/* ============ Main Content ============ */
.main-content {
flex: 1;
padding: 32px;
overflow-y: auto;
min-width: 0;
}
.page-header {
margin-bottom: 28px;
}
.page-title {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.02em;
margin-bottom: 4px;
}
.page-subtitle {
color: var(--text-tertiary);
font-size: 13px;
}
/* ============ Stats Cards ============ */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 28px;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
transition: border-color 0.15s ease;
}
.stat-card:hover {
border-color: #3f3f46;
}
.stat-label {
font-size: 12px;
color: var(--text-tertiary);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 8px;
}
.stat-value {
font-size: 28px;
font-weight: 700;
letter-spacing: -0.02em;
}
.stat-value.accent { color: var(--accent); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.error { color: var(--error); }
.stat-icon {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--radius-md);
margin-bottom: 12px;
}
.stat-icon.accent { background: var(--accent-muted); color: var(--accent); }
.stat-icon.success { background: var(--success-muted); color: var(--success); }
.stat-icon.warning { background: var(--warning-muted); color: var(--warning); }
.stat-icon.error { background: var(--error-muted); color: var(--error); }
/* ============ Table ============ */
.table-container {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
}
.table-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.table-title {
font-size: 14px;
font-weight: 600;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 10px 20px;
text-align: left;
font-size: 13px;
}
th {
background: var(--bg-surface);
color: var(--text-tertiary);
font-weight: 500;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
tr {
border-bottom: 1px solid var(--border-subtle);
transition: background 0.1s ease;
}
tbody tr:last-child {
border-bottom: none;
}
tbody tr:hover {
background: var(--bg-hover);
}
td a {
color: var(--accent);
font-weight: 500;
}
td a:hover {
text-decoration: underline;
}
.cell-mono {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 12px;
color: var(--text-secondary);
}
.cell-secondary {
color: var(--text-secondary);
font-size: 13px;
}
.cell-error {
color: var(--error);
font-weight: 500;
}
/* ============ Status Badge ============ */
.status-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
}
.status-NEW {
background: var(--accent-muted);
color: var(--accent);
}
.status-PENDING_FIX {
background: var(--warning-muted);
color: var(--warning);
}
.status-FIXING {
background: rgba(99, 102, 241, 0.12);
color: var(--indigo);
}
.status-FIXED {
background: var(--success-muted);
color: var(--success);
}
.status-VERIFIED {
background: rgba(34, 197, 94, 0.18);
color: var(--success);
}
.status-DEPLOYED {
background: rgba(34, 197, 94, 0.25);
color: #16a34a;
}
.status-FIX_FAILED {
background: var(--error-muted);
color: var(--error);
}
.status-CANNOT_REPRODUCE {
background: rgba(113, 113, 122, 0.15);
color: var(--text-tertiary);
}
.status-VERIFYING {
background: rgba(99, 102, 241, 0.12);
color: var(--indigo);
}
/* ============ Source Badges ============ */
.source-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 500;
}
.source-runtime {
background: var(--bg-surface);
color: var(--text-secondary);
}
.source-cicd {
background: rgba(59, 130, 246, 0.12);
color: #60a5fa;
}
.source-deployment {
background: rgba(244, 114, 182, 0.12);
color: #f472b6;
}
.source-tabs {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 8px;
padding: 4px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
overflow-x: auto;
}
/* ============ Filters: Project Tabs ============ */
.project-tabs {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 12px;
padding: 4px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
overflow-x: auto;
}
.project-tab {
background: none;
border: none;
padding: 6px 14px;
color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
border-radius: var(--radius-sm);
white-space: nowrap;
transition: all 0.15s ease;
}
.project-tab:hover {
color: var(--text-primary);
background: var(--bg-hover);
}
.project-tab.active {
background: var(--text-primary);
color: var(--bg-primary);
font-weight: 600;
}
/* ============ Filters: Status Tabs ============ */
.status-tabs {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 16px;
overflow-x: auto;
padding-bottom: 2px;
}
.status-tab {
background: none;
border: 1px solid var(--border);
padding: 5px 12px;
color: var(--text-tertiary);
font-size: 11px;
font-weight: 500;
cursor: pointer;
border-radius: 999px;
white-space: nowrap;
transition: all 0.15s ease;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.status-tab:hover {
border-color: #3f3f46;
color: var(--text-secondary);
}
.status-tab.active {
border-color: var(--accent);
background: var(--accent-muted);
color: var(--accent);
}
.status-tab.active.status-color-NEW {
border-color: var(--accent);
background: var(--accent-muted);
color: var(--accent);
}
.status-tab.active.status-color-FIXED,
.status-tab.active.status-color-VERIFIED,
.status-tab.active.status-color-DEPLOYED {
border-color: var(--success);
background: var(--success-muted);
color: var(--success);
}
.status-tab.active.status-color-PENDING_FIX {
border-color: var(--warning);
background: var(--warning-muted);
color: var(--warning);
}
.status-tab.active.status-color-FIX_FAILED {
border-color: var(--error);
background: var(--error-muted);
color: var(--error);
}
.status-tab.active.status-color-FIXING,
.status-tab.active.status-color-VERIFYING {
border-color: var(--indigo);
background: rgba(99, 102, 241, 0.12);
color: var(--indigo);
}
.status-tab.active.status-color-CANNOT_REPRODUCE {
border-color: var(--text-tertiary);
background: rgba(113, 113, 122, 0.12);
color: var(--text-tertiary);
}
/* ============ Project Link in Table ============ */
.project-link {
background: none;
border: none;
color: var(--text-primary);
font-size: inherit;
font-family: inherit;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
transition: all 0.15s ease;
}
.project-link:hover {
background: var(--accent-muted);
color: var(--accent);
}
/* ============ Filter Select ============ */
.filters {
display: flex;
gap: 12px;
margin-bottom: 16px;
}
.filter-select {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 8px 12px;
color: var(--text-primary);
font-size: 13px;
cursor: pointer;
transition: border-color 0.15s ease;
}
.filter-select:focus {
outline: none;
border-color: var(--accent);
}
/* ============ Empty State ============ */
.empty-state {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 200px;
color: var(--text-tertiary);
font-size: 13px;
gap: 4px;
}
/* ============ Detail Page ============ */
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-secondary);
text-decoration: none;
margin-bottom: 20px;
font-size: 13px;
font-weight: 500;
transition: color 0.15s ease;
}
.back-link:hover {
color: var(--text-primary);
}
.detail-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 16px;
}
.detail-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
gap: 16px;
}
.detail-title {
font-size: 16px;
font-weight: 600;
letter-spacing: -0.01em;
line-height: 1.4;
}
.detail-meta {
display: flex;
gap: 16px;
color: var(--text-tertiary);
font-size: 13px;
margin-top: 6px;
}
.detail-meta span {
display: flex;
align-items: center;
gap: 4px;
}
.detail-section {
margin-bottom: 20px;
}
.detail-section:last-child {
margin-bottom: 0;
}
.detail-section-title {
font-size: 12px;
font-weight: 600;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 8px;
}
.detail-section-value {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 13px;
color: var(--text-secondary);
}
/* ============ Code Block / Stack Trace ============ */
.code-block {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 12px;
line-height: 1.6;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
}
.code-block.error {
color: var(--error);
}
.code-block.accent {
color: var(--accent);
}
.code-block.neutral {
color: var(--text-secondary);
}
/* Keep backward compat */
.stack-trace {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 12px;
line-height: 1.6;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
color: var(--text-secondary);
}
/* ============ Metadata Table ============ */
.meta-table {
width: 100%;
}
.meta-table td {
padding: 8px 0;
font-size: 13px;
border-bottom: 1px solid var(--border-subtle);
}
.meta-table tr:last-child td {
border-bottom: none;
}
.meta-label {
color: var(--text-tertiary);
font-weight: 500;
width: 140px;
}
/* ============ Buttons ============ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
border: none;
line-height: 1;
}
.btn-primary {
background: var(--accent);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg-surface);
border: 1px solid var(--border);
color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-hover);
border-color: #3f3f46;
}
.btn-secondary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-danger {
background: var(--error-muted);
color: var(--error);
}
.btn-danger:hover {
background: rgba(239, 68, 68, 0.2);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border: none;
}
.btn-ghost:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.btn-link {
background: none;
border: none;
color: var(--accent);
font-size: 13px;
font-weight: 500;
cursor: pointer;
padding: 0;
}
.btn-link:hover {
text-decoration: underline;
}
/* ============ Edit Input ============ */
.edit-input {
width: 100%;
padding: 6px 10px;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 13px;
outline: none;
transition: border-color 0.15s ease;
}
.edit-input:focus {
border-color: var(--accent);
}
/* ============ Trigger Repair Button ============ */
.trigger-repair-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: var(--accent);
color: white;
border: none;
border-radius: var(--radius-md);
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
}
.trigger-repair-btn:hover:not(:disabled) {
background: var(--accent-hover);
}
.trigger-repair-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.trigger-repair-btn.loading {
pointer-events: none;
}
/* ============ Info Row ============ */
.info-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
font-size: 13px;
border-bottom: 1px solid var(--border-subtle);
}
.info-row:last-child {
border-bottom: none;
}
.info-row > span:first-child {
color: var(--text-tertiary);
font-weight: 500;
min-width: 100px;
}
/* ============ Breadcrumb ============ */
.breadcrumb {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--text-tertiary);
margin-bottom: 12px;
}
.breadcrumb a {
color: var(--text-secondary);
}
.breadcrumb a:hover {
color: var(--text-primary);
}
.breadcrumb-separator {
color: var(--text-tertiary);
}
/* ============ Title Row ============ */
.title-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.title-row h1 {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.02em;
}
/* ============ Pagination ============ */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
padding: 16px 20px;
}
.pagination button {
background: var(--bg-surface);
border: 1px solid var(--border);
color: var(--text-primary);
padding: 6px 14px;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.15s ease;
}
.pagination button:hover:not(:disabled) {
background: var(--bg-hover);
border-color: #3f3f46;
}
.pagination button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.pagination-info {
color: var(--text-tertiary);
font-size: 13px;
padding: 0 8px;
}
/* ============ Loading ============ */
.loading {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
color: var(--text-tertiary);
font-size: 13px;
}
.spinner {
width: 32px;
height: 32px;
border: 2px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ============ Test Result Badge ============ */
.test-pass {
color: var(--success);
font-weight: 600;
font-size: 12px;
}
.test-fail {
color: var(--error);
font-weight: 600;
font-size: 12px;
}
/* ============ Card (generic for RepairDetail etc.) ============ */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 16px;
}
.card h2 {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
/* ============ Actions Bar ============ */
.actions-bar {
display: flex;
align-items: center;
gap: 8px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
/* ============ Mobile Header ============ */
.mobile-header {
display: none;
}
.sidebar-close-btn {
display: none;
}
.sidebar-top {
display: contents;
}
.sidebar-overlay {
display: none;
}
/* ============ Mobile Card List (replaces table on small screens) ============ */
.mobile-card-list {
display: none;
}
/* ============================================================
Responsive: Tablet (max-width: 1024px)
============================================================ */
@media (max-width: 1024px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.main-content {
padding: 24px;
}
.table-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.title-row {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
}
/* ============================================================
Responsive: Mobile (max-width: 768px)
============================================================ */
@media (max-width: 768px) {
/* --- Layout --- */
.app {
flex-direction: column;
}
/* --- Mobile Header (top bar) --- */
.mobile-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
}
.mobile-menu-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border: none;
background: var(--bg-hover);
border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer;
transition: background 0.15s ease;
}
.mobile-menu-btn:active {
background: var(--bg-surface);
}
.mobile-logo {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.mobile-logo .logo-icon {
width: 24px;
height: 24px;
}
/* --- Sidebar (slide-in drawer) --- */
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 280px;
z-index: 200;
transform: translateX(-100%);
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
padding-top: 16px;
}
.sidebar.sidebar-open {
transform: translateX(0);
}
.sidebar-top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 12px;
margin-bottom: 8px;
}
.sidebar-top .logo {
margin-bottom: 0;
}
.sidebar-close-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
background: var(--bg-hover);
border-radius: var(--radius-md);
color: var(--text-secondary);
cursor: pointer;
}
.sidebar-close-btn:active {
background: var(--bg-surface);
}
.sidebar-overlay {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 150;
backdrop-filter: blur(2px);
}
.nav-link {
padding: 12px 16px;
font-size: 14px;
}
.nav-menu {
gap: 4px;
}
/* --- Main Content --- */
.main-content {
padding: 20px 16px;
min-height: calc(100vh - 61px);
}
/* --- Page Header --- */
.page-header {
margin-bottom: 20px;
}
.page-title {
font-size: 18px;
}
/* --- Stats Grid --- */
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-bottom: 20px;
}
.stat-card {
padding: 16px;
}
.stat-value {
font-size: 24px;
}
.stat-icon {
width: 32px;
height: 32px;
margin-bottom: 8px;
}
/* --- Filters --- */
.project-tabs {
gap: 2px;
padding: 3px;
-ms-overflow-style: none;
scrollbar-width: none;
}
.project-tabs::-webkit-scrollbar {
display: none;
}
.project-tab {
padding: 6px 12px;
font-size: 12px;
}
.status-tabs {
gap: 4px;
-ms-overflow-style: none;
scrollbar-width: none;
}
.status-tabs::-webkit-scrollbar {
display: none;
}
.status-tab {
padding: 4px 10px;
font-size: 10px;
}
.filters {
margin-bottom: 12px;
}
.filter-select {
width: 100%;
font-size: 14px;
padding: 10px 12px;
}
/* --- Table: horizontal scroll --- */
.table-container {
border-radius: var(--radius-md);
}
table {
min-width: 600px;
}
.table-compact table {
min-width: 0;
}
th, td {
padding: 10px 12px;
font-size: 12px;
}
th {
font-size: 10px;
}
/* --- Mobile Card List (replaces table) --- */
.mobile-card-list {
display: flex;
flex-direction: column;
}
.mobile-card-item {
padding: 14px 16px;
border-bottom: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
gap: 8px;
}
.mobile-card-item:last-child {
border-bottom: none;
}
.mobile-card-top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.mobile-card-id {
color: var(--accent);
font-weight: 600;
font-size: 13px;
}
.mobile-card-error {
color: var(--error);
font-weight: 500;
font-size: 13px;
line-height: 1.4;
}
.mobile-card-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 12px;
color: var(--text-tertiary);
}
.mobile-card-meta span {
display: flex;
align-items: center;
gap: 4px;
}
.mobile-card-file {
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 11px;
color: var(--text-secondary);
word-break: break-all;
}
/* Hide desktop table, show mobile cards */
.table-desktop {
display: none;
}
.mobile-card-list {
display: flex;
}
/* --- Detail Page --- */
.detail-card {
padding: 16px;
border-radius: var(--radius-md);
}
.detail-header {
flex-direction: column;
gap: 12px;
}
.detail-title {
font-size: 14px;
}
.detail-meta {
flex-wrap: wrap;
gap: 8px 16px;
font-size: 12px;
}
.code-block,
.stack-trace {
padding: 12px;
font-size: 11px;
border-radius: var(--radius-sm);
}
.meta-label {
width: 100px;
}
.meta-table td {
font-size: 12px;
}
/* --- Card --- */
.card {
padding: 16px;
border-radius: var(--radius-md);
}
.card h2 {
font-size: 13px;
margin-bottom: 12px;
}
/* --- Info Row --- */
.info-row {
font-size: 12px;
flex-wrap: wrap;
}
.info-row > span:first-child {
min-width: 80px;
font-size: 12px;
}
/* --- Actions Bar --- */
.actions-bar {
flex-wrap: wrap;
gap: 10px;
}
.trigger-repair-btn {
width: 100%;
justify-content: center;
padding: 12px 20px;
}
/* --- Pagination --- */
.pagination {
padding: 12px 16px;
gap: 6px;
}
.pagination button {
padding: 8px 12px;
font-size: 12px;
}
.pagination-info {
font-size: 12px;
}
/* --- Title Row --- */
.title-row {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.title-row h1 {
font-size: 18px;
}
/* --- Back Link --- */
.back-link {
margin-bottom: 16px;
}
/* --- Breadcrumb --- */
.breadcrumb {
flex-wrap: wrap;
font-size: 12px;
}
/* --- Table Header --- */
.table-header {
padding: 12px 16px;
}
}
/* ============================================================
Responsive: Small Mobile (max-width: 480px)
============================================================ */
@media (max-width: 480px) {
.main-content {
padding: 16px 12px;
}
.stats-grid {
grid-template-columns: 1fr;
gap: 10px;
}
.stat-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
}
.stat-icon {
margin-bottom: 0;
flex-shrink: 0;
}
.stat-label {
margin-bottom: 2px;
}
.stat-value {
font-size: 22px;
}
.page-title {
font-size: 16px;
}
.mobile-card-item {
padding: 12px;
}
.detail-title {
font-size: 13px;
}
.detail-meta {
font-size: 11px;
}
.code-block,
.stack-trace {
font-size: 10px;
padding: 10px;
}
.empty-state {
height: 160px;
font-size: 12px;
}
}
/* ============ Safe area for notch devices ============ */
@supports (padding: env(safe-area-inset-bottom)) {
.mobile-header {
padding-top: calc(12px + env(safe-area-inset-top));
}
.main-content {
padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
}