/* Readable console typography. Keep native font rendering and browser zoom. */
:root {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
}

.workspace { line-height: 1.65; }
.workspace .muted { color: #52627b; }
.workspace h3 { font-size: 17px; }
.page-heading h1 { font-size: 30px; }
.page-heading p { font-size: 15px; }
.topbar, .user-actions > span { font-size: 14px; color: #43536c; }
.workspace label, dialog label { font-size: 15px; color: #41516b; }
.scope-bar label { font-size: 15px; }
.scope-bar p { color: #52627b; font-size: 14px; }
.scope-bar select { font-size: 15px; max-width: 400px; }
.notice { font-size: 14px; color: #3d5c89; line-height: 1.8; }
.workspace table { font-size: 15px; }
.workspace th {
  font-size: 14px;
  color: #495b75;
  font-weight: 600;
  padding: 15px 18px;
}
.workspace td { color: #34465f; padding: 18px; line-height: 1.75; }
.workspace td strong { color: #20344f; font-weight: 600; }
.workspace td small { font-size: 13px; color: #586b85; line-height: 1.65; }
.workspace .mono, dialog .mono {
  font-family: Consolas, "Cascadia Mono", "Microsoft YaHei UI", monospace;
  font-size: 14px;
}
.workspace .card-link { color: #204571; font-size: 14px; font-weight: 600; }
.pill, .badge { font-size: 13px; font-weight: 500; }
.pill.gray { color: #526079; background: #edf0f5; }
.pill.green { color: #116c52; }
.pill.amber { color: #80580c; }
.pill.red { color: #ae3347; }
.workspace .text-button, .row-actions .text-button { font-size: 14px; color: #365c8e; }
.workspace .text-button.danger { color: #aa3045; }
.workspace .primary, .workspace .secondary { font-size: 15px; }
.toolbar input, .toolbar select { font-size: 15px; padding: 10px 12px; }
.pagination { font-size: 14px; color: #52627b; gap: 12px; flex-wrap: wrap; }
.pagination > div { flex-wrap: wrap; }
.empty { font-size: 15px; color: #586b85; line-height: 1.8; }
.stat-top { font-size: 15px; color: #52627b; }
.stat small { font-size: 13px; color: #586b85; }
.panel-heading p, .quick-card p, .integration-card p { font-size: 15px; color: #52627b; }
.error, .toast { font-size: 15px; }
.workspace footer { font-size: 12px; color: #62718a; }

dialog {
  width: min(760px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px;
  font-size: 16px;
  line-height: 1.7;
  color: #233650;
}
dialog::backdrop { background: #13223b80; backdrop-filter: none; }
.modal-heading { margin-bottom: 22px; }
.modal-heading h2 { font-size: 22px; font-weight: 650; }
dialog .muted { color: #52627b; font-size: 15px; }
dialog input, dialog select, dialog textarea { font-size: 16px; line-height: 1.6; }
dialog .text-button { font-size: 15px; color: #365c8e; }
dialog .primary, dialog .secondary { font-size: 16px; min-height: 44px; }
dialog .field small { font-size: 14px; color: #586b85; }
dialog .check-list { max-height: 220px; }
dialog .check-list label { font-size: 15px; line-height: 1.7; }
.detail-grid { gap: 22px 30px; margin: 24px 0; }
.detail-grid dt { font-size: 14px; font-weight: 600; color: #52627b; margin-bottom: 7px; }
.detail-grid dd { font-size: 16px; color: #233650; line-height: 1.8; }
dialog .detail-key { font-size: 18px; padding: 16px; }
.generated-cards { font-size: 16px; line-height: 2; }
dialog table { font-size: 15px; }
dialog th { font-size: 14px; color: #495b75; }
dialog td { color: #34465f; line-height: 1.75; }
.modal-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid #e6ebf3; }

/* Login uses the same readable text and native-size form controls. */
.login-form-wrap > p, .login-intro p { font-size: 15px; }
.login-form-wrap label { font-size: 15px; }
.login-form-wrap input { font-size: 16px; }
.login-note { font-size: 13px; color: #586b85; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 25px 0 16px; }
.section-heading h2 { margin: 0 0 7px; font-size: 21px; }
.section-heading p { margin: 0; font-size: 14px; line-height: 1.8; }
.card-stats { grid-template-columns: repeat(5, minmax(0,1fr)); }
.refresh-note { margin-left: auto; font-size: 13px; color: #52627b; }
.monitor-warning { color: #8a5a09; }
.toolbar > label { margin: 0; }
.toolbar > label input[type=date] { display: block; margin-top: 5px; min-width: 0; }
.monitor-files { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 26px; }
.monitor-files > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #f5f8fd; padding: 16px; border-radius: 8px; min-width: 0; }
.monitor-files small { overflow-wrap: anywhere; color: #52627b; font-size: 14px; }
.viewer-chart { background: #f5f8fd; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.viewer-chart p { margin: 0 0 8px; color: #52627b; font-size: 14px; }
.viewer-chart svg { display: block; width: 100%; height: 150px; }
.workspace .monitor-user-table td, .workspace .monitor-user-table th { padding: 16px 12px; }
.monitor-user-table .monitor-product { max-width: 150px; white-space: normal; min-width: 95px; }

@media (max-width: 1050px) {
  .workspace td, .workspace th { padding-left: 15px; padding-right: 15px; }
  .card-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .page-heading h1 { font-size: 26px; }
  .page-heading { flex-wrap: wrap; }
  .scope-bar select { max-width: none; }
  .scope-bar p { display: none; }
  .page-heading .primary { font-size: 15px; }
  .toolbar input, .toolbar select { font-size: 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 22px 20px; }
  .modal-heading h2 { font-size: 21px; }
  .detail-grid dd { font-size: 16px; }
  .workspace td, .workspace th { padding-left: 14px; padding-right: 14px; }
  .card-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .monitor-files { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .refresh-note { margin-left: 0; }
}
