:root { font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #0f141a; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f2f3f3; }
.brand { display: block; font-size: 18px; padding: 0 8px 16px; white-space: nowrap; }
.page-tools { display: flex; align-items: center; gap: 8px; flex: none; padding: 8px 24px 0; }
.page-tools button { display: flex; align-items: center; justify-content: center; border: 0; color: inherit; background: transparent; cursor: pointer; padding: 8px; min-height: 36px; min-width: 36px; }
.page-tools button:focus-visible { outline: 2px solid #006ce0; }
.server-name { white-space: nowrap; }
#auth { display: flex; flex-direction: column; gap: 8px; margin: 16px 8px 0; }
#auth input { width: 100%; min-width: 0; }
#health { font-size: 12px; max-width: 180px; }
#health:empty { display: none; }
#observation { font-size: 12px; color: #656871; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shell { display: grid; grid-template-columns: 192px minmax(0,1fr); height: 100dvh; min-height: 0; }
#sidebar { overflow: auto; min-width: 0; background: white; border-right: 1px solid #c6c6cd; padding: 16px 12px; }
.shell.sidebar-collapsed { grid-template-columns: 0 minmax(0,1fr); }
.shell.sidebar-collapsed #sidebar { visibility: hidden; padding: 0; }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#notice { flex: none; padding: 12px 24px; background: #e9f2ff; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }
#notice.bad { background: #fff3f1; color: #a02c00; }
#server-inventory { flex: 1; min-height: 140px; overflow: auto; padding: 24px; }
#inventory-state:empty, #read-state:empty { display: none; }
#observed-issues { margin-bottom: 16px; }
#dashboard-health { margin-bottom: 16px; }
.console-form-row label input { display: block; width: 100%; font: inherit; padding: 6px; }
.metric-plot { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 4px; font-size: 12px; }
.metric-chart { width: 100%; height: 140px; display: block; overflow: visible; }
.metric-scale { display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.metric-times { display: flex; justify-content: space-between; gap: 8px; }
.notification-event { overflow-wrap: anywhere; white-space: normal; }
#notifications-control table { table-layout: fixed; width: 100%; }
#server-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; background: #fff; animation: server-open 240ms ease-out; }
@keyframes server-open { from { transform: translateY(100%); } to { transform: translateY(0); } }
.detail-heading { padding: 4px 24px 16px; flex: none; }
#navigation { padding: 0 24px; flex: none; min-width: 0; }
.detail-scroll { overflow: auto; min-height: 0; padding: 24px; }
.header-uptime { display: flex; gap: 4px; flex-direction: column; text-align: right; font-size: 12px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
#global-page { flex: 1; min-width: 0; overflow: auto; padding: 24px; }
#global-title { margin-bottom: 24px; }
#recovery-page { max-width: 1440px; }
#qa-copy-control { margin-top: 24px; }
.sync-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.sync-columns > * { min-width: 0; }
.sync-controls { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #dedee3; padding-top: 12px; }
.console-form-row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.console-form-row > * { flex: 1; min-width: 140px; }
.console-form-row > button { flex: none; min-width: 0; }
.console-log { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f7f8; border: 1px solid #dedee3; border-radius: 8px; padding: 16px; max-height: 400px; overflow: auto; font-size: 12px; margin: 0; }
.git-changed-files { max-height: 320px; overflow: auto; min-width: 0; }
.git-changed-files:focus-visible { outline: 2px solid #006ce0; outline-offset: 2px; }
.error { color: #a02c00; }
.dim { color: #656871; }
#file-storage { max-width: 1100px; }
#file-storage .panel { background: white; padding: 24px; border: 1px solid #c6c6cd; border-radius: 12px; margin-bottom: 24px; }
#file-storage .fields { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 12px; }
#file-storage dd { margin: 0; overflow-wrap: anywhere; }
#file-storage button { padding: 8px 16px; background: white; border: 1px solid #656871; border-radius: 20px; font: inherit; }
@media (max-width: 1100px) { .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .sync-columns { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .page-tools { padding: 8px 12px 0; }
  .brand { font-size: 16px; }
  #auth { gap: 4px; }
  #auth input { max-width: 100px; }
  #health { max-width: 80px; }
  #observation { display: none; }
  .shell { display: block; }
  #sidebar { display: none; position: fixed; z-index: 500; top: 48px; left: 0; bottom: 0; width: 220px; }
  #sidebar.open { display: block; }
  .main { height: 100%; }
  #server-inventory, #global-page, .detail-scroll { padding: 16px 12px; }
  .detail-heading { padding: 4px 12px 12px; }
  #navigation { padding: 0 12px; }
  .overview-metrics { gap: 12px; }
  .sync-columns { gap: 16px; }
  #global-title { margin-bottom: 16px; }
  #qa-copy-control { margin-top: 16px; }
  .console-form-row { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .spinning, #server-detail { animation: none; } }

/* Keep operational controls compact while retaining the Cloudscape components. */
#global-page { padding: 16px 24px; }
#global-title { font-size: 24px; margin-bottom: 12px; }
.sync-columns { gap: 12px; }
#qa-copy-control { margin-top: 12px; }
@media (max-width: 700px) { #global-page { padding: 12px; } }

.sync-transfers { max-height: 320px; overflow: auto; }
.sync-transfer-file { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-transfer-file a { display: inline; }

.jsonl-scope { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.jsonl-filters { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.jsonl-columns { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 16px; align-items: start; }
.jsonl-columns > *, .jsonl-scope > *, .jsonl-filters > * { min-width: 0; }
.jsonl-results, .jsonl-detail { max-height: 65vh; overflow: auto; }
.jsonl-results table { min-width: 980px; }
.jsonl-results tr:has([data-log-selected="true"]) { background: #f1f7ff; }
.jsonl-detail { overflow-wrap: anywhere; }
.jsonl-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.console-form-row > .jsonl-errors { display: flex; align-items: center; flex: none; gap: 6px; min-width: 0; padding-bottom: 4px; }
@media(max-width:1100px) { .jsonl-columns { grid-template-columns: 1fr; } .jsonl-filters { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .jsonl-scope,.jsonl-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .jsonl-columns { gap: 12px; } }

.report-month { box-sizing: border-box; width: 100%; min-height: 32px; padding: 4px 8px; font: inherit; color: #16191f; background: white; border: 1px solid #7d8998; border-radius: 4px; }

.log-date-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; grid-column: span 2; min-width: 0; }
.log-date-range > * { min-width: 0; }

.page-report-scope { grid-template-columns: repeat(5,minmax(0,1fr)); }
@media(max-width:700px) { .page-report-scope { grid-template-columns: repeat(2,minmax(0,1fr)); } }
