/* 统一看板及资料维护；继承海天品牌、双语字体和现有控制样式。 */
.v4-dashboard { display: grid; gap: 20px; }
.v4-dashboard .panel + .panel, .v4-two-panels .panel + .panel { margin-top: 0; }
.v4-stamp { color: var(--text-secondary); font-size: .82rem; }
.v4-metrics { gap: 16px; align-items: stretch; }
.v4-metric { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; min-height: 202px; transition: border-color .15s, box-shadow .15s; }
.v4-metric:hover { border-color: #9ab9e2; box-shadow: 0 8px 24px rgb(9 66 143 / 10%); }
.v4-metric-title { color: var(--text-secondary); min-height: 2.8em; font-size: .88rem; font-weight: 600; }
.v4-metric strong { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 7px 0 10px; }
.v4-metric small { color: var(--text-secondary); font-size: .76rem; line-height: 1.55; }
.v4-metric-link { color: var(--brand); font-size: .82rem; padding-top: 14px; margin-top: auto; }
.v4-section { padding: 24px; }
.v4-section h3 { margin: 0 0 14px; font-size: 1rem; }
.v4-section > .muted { font-size: .85rem; }
.v4-quick-actions { gap: 10px; flex-wrap: wrap; }
.v4-two-panels { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; align-items: start; }
.v4-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.v4-section-head h3 { margin: 0; }
.v4-queues { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.v4-queues button { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfd; color: var(--text-secondary); font-size: .84rem; }
.v4-queues button:hover { background: var(--brand-soft); border-color: #b6cbe6; }
.v4-queues button > span:first-child { grid-column: span 2; min-height: 2.7em; }
.v4-queues strong { color: var(--text-primary); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.v4-task-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding: 16px 0; }
.v4-task-row:last-child { padding-bottom: 0; }
.v4-task-row h3 { font-size: .9rem; margin: 5px 0; }
.v4-task-row p { font-size: .8rem; margin: 0; color: var(--text-secondary); }
.v4-task-row .buttons { flex-wrap: wrap; justify-content: flex-end; }
.v4-recent { display: grid; gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.v4-recent:last-child { border-bottom: 0; }
.v4-recent small { color: var(--text-secondary); }
.v4-empty { padding: 25px 12px; box-shadow: none; }
.v4-search { display: grid; grid-template-columns: minmax(0,1fr) 260px auto; gap: 12px; padding: 16px; margin-bottom: 20px; }
.v4-table { width: 100%; border-collapse: collapse; min-width: 760px; text-align: left; }
.v4-table th { color: var(--text-secondary); background: #f7f9fc; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.v4-table td, .v4-table th { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.v4-table td { font-size: .86rem; }
.v4-table small { display: block; max-width: 300px; margin-top: 5px; color: var(--text-secondary); line-height: 1.5; }
.v4-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 20px; color: var(--text-secondary); font-size: .84rem; }
.v4-tabs { display: flex; overflow-x: auto; gap: 4px; padding: 12px 16px 0; border-bottom: 1px solid var(--border); }
.v4-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 15px; white-space: nowrap; color: var(--text-secondary); font-size: .88rem; }
.v4-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.v4-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; margin-bottom: 24px; }
.v4-info { display: grid; gap: 8px; align-content: start; }
.v4-info small { color: var(--text-secondary); font-size: .85rem; }
.v4-info strong { font-size: .95rem; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.v4-notice { padding: 16px 18px; margin: 0 0 18px; border: 1px solid #d4e2f2; border-radius: 10px; background: #f5f9ff; color: #385375; font-size: .86rem; line-height: 1.65; }
.v4-notice p { margin: 6px 0 0; }
.v4-notice.warning { border-color: #ead5a8; background: #fffbf0; color: var(--warning); }
.v4-version { padding: 20px 0; border-bottom: 1px solid var(--border); }
.v4-version h3 { margin: 8px 0; font-size: 1rem; }
.v4-version p { font-size: .88rem; overflow-wrap: anywhere; }
.v4-prewrap { white-space: pre-wrap; }
.v4-history, .v4-compare { padding: 14px 0; font-size: .86rem; }
.v4-history summary, .v4-compare summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.v4-compare > div { background: #f7f9fb; border-radius: 8px; padding: 16px; margin-top: 12px; }
.v4-compare small { color: var(--text-secondary); }
.v4-modal { width: min(850px,95vw); max-height: 94vh; overflow-y: auto; padding: 28px; }
.v4-modal header { margin-bottom: 20px; }
.v4-modal .form-grid { gap: 16px; }
.v4-modal label { align-content: start; }
.v4-modal input[type="date"] { min-width: 0; }
.v4-checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.6; }
.v4-checkbox input[type="checkbox"], .v4-refresh-row input { width: 18px; min-height: 18px; height: 18px; padding: 0; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--brand); }
.v4-refresh-row { display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--border); padding: 16px 0; }
.v4-refresh-row span { display: grid; gap: 6px; }
.v4-refresh-row small { font-weight: 400; }
.v4-import-counts { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.v4-import-counts span { color: var(--text-secondary); display: grid; gap: 5px; }
.v4-import-counts strong { color: var(--text-primary); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.v4-commit { display: grid; gap: 16px; padding-top: 20px; font-size: .9rem; }
.v4-commit .button { justify-self: start; }
.v4-wallboard { grid-template-columns: 1fr; }
.v4-wallboard .sidebar { display: none; }
.v4-wallboard .workspace { max-width: 2000px; }
.v4-wallboard .v4-metric { min-height: 235px; }
.v4-wallboard .v4-metric strong { font-size: 3.5rem; }
.v4-wallboard .v4-metric-title { font-size: 1.1rem; }
.v4-wallboard .v4-task-row h3 { font-size: 1.15rem; }
.v4-wallboard .v4-quick-actions { display: none; }
@media (min-width:1600px) { .workspace:has(.v4-dashboard) { max-width: 1800px; } }
@media (max-width:1200px) { .v4-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .v4-queues { grid-template-columns:repeat(3,minmax(0,1fr)); } .v4-two-panels { grid-template-columns:1fr; } }
@media (max-width:720px) { .v4-section { padding:18px; } .v4-metrics { grid-template-columns:1fr; } .v4-metric { min-height:180px; } .v4-queues { grid-template-columns:repeat(2,minmax(0,1fr)); } .v4-search,.v4-info-grid { grid-template-columns:1fr; } .v4-modal { padding:20px; } .v4-task-row { align-items:flex-start; flex-direction:column; } .v4-task-row .buttons { justify-content:flex-start; } .v4-pagination { align-items:flex-start; } }
@media (min-width:721px) and (max-width:1050px) {
  .shell { grid-template-columns:160px minmax(0,1fr); }
  .sidebar { align-items:stretch; }
  .sidebar .brand { width:auto; }
  .sidebar .nav button { width:100%; font-size:13px; padding:10px; min-height:42px; }
  .sidebar .nav button::before { display:none; }
}
@media (max-width:720px) {
  .sidebar { justify-content:flex-start; padding:6px 8px; }
  .sidebar .nav { justify-content:flex-start; gap:4px; width:100%; overflow-x:auto; scrollbar-width:none; }
  .sidebar .nav button { flex:0 0 auto; width:auto; min-width:76px; height:46px; padding:8px 10px; font-size:12px; white-space:nowrap; }
  .sidebar .nav button::before { display:none; }
}
