/* Shared display controls; the desktop workbench uses the available viewport. */
.log-options { display: flex; align-items: center; gap: 14px; }
.log-toolbar, .log-options { flex-wrap: wrap; row-gap: 6px; }
.checkbox-label { white-space: nowrap; }
.report-card { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.report-toolbar, .report-downloads { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.report-toolbar { border-bottom: 1px solid var(--line); }
.report-toolbar .muted { overflow-wrap: anywhere; }
.report-downloads { justify-content: flex-end; border-top: 1px solid var(--line); }
.report-card pre { flex: 1; }

@media (min-width: 1100px) {
  html { scroll-behavior: auto; }
  body { overflow: hidden; }
  .sidebar { width: 64px; padding: 16px 6px; align-items: center; }
  .brand { margin: 0 0 24px; }
  .brand-mark { width: 36px; height: 38px; font-size: 27px; }
  .brand > span:last-child, .sidebar-caption, .sidebar-bottom, .nav-tag { display: none; }
  .sidebar nav { width: 100%; }
  .nav-item { justify-content: center; padding: 12px 0; gap: 0; font-size: 0; }
  .nav-item > span:first-child { font-size: 20px; width: auto; }
  main { display: flex; flex-direction: column; gap: 10px; height: 100dvh; max-width: none; margin-left: 64px; padding: 12px 16px; }
  .page-header { flex: none; min-height: 38px; margin: 0; }
  .eyebrow, .page-header p { display: none; }
  h1 { font-size: 21px; margin: 0; }
  .header-right { flex-direction: row; gap: 16px; align-items: center; }
  .badge { padding: 5px 10px; }
  .notice { flex: none; margin: 0; padding: 7px 12px; }
  .connection { flex: none; display: flex; align-items: center; gap: 18px; padding: 10px 14px; }
  .connection > .section-heading { padding: 0; border: 0; min-height: 0; }
  .connection .muted, .connection-foot { display: none; }
  .connection-controls { flex: 1; flex-wrap: nowrap; padding: 0; gap: 12px; }
  .connection-controls label { min-width: 60px; }
  .connection-controls .port-field { flex: 2.2; flex-basis: auto; }
  .connection-controls .connect-button { flex: 0 0 115px; min-width: 115px; }
  .port-field > span { height: 30px; margin-top: 4px; padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .workspace { flex: 1; min-height: 0; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 10px; margin: 0; align-items: stretch; }
  .controls-column { min-height: 0; gap: 10px; overflow: auto; }
  .controls-column > .card { flex: none; }
  .section-heading { padding: 9px 12px; min-height: 36px; }
  h2 { font-size: 13px; }
  .section-heading > div { gap: 8px; }
  .panel-body { padding: 10px 12px; }
  select, input[type=date] { height: 30px; padding: 4px 7px; margin-top: 4px; }
  .field-grid { gap: 8px 10px; margin-top: 9px; }
  .field-help { margin: 6px 0; font-size: 10px; line-height: 1.6; }
  #command-help { min-height: 32px; }
  .button { min-height: 30px; padding: 6px 12px; }
  .file-picker { display: grid; grid-template-columns: 28px minmax(0,1fr); grid-template-rows: 17px 15px; column-gap: 10px; padding: 8px 10px; text-align: left; }
  .upload-icon { grid-row: 1 / 3; margin: 0; width: 28px; height: 28px; font-size: 22px; }
  .file-picker strong { justify-self: start; }
  .file-picker > span:last-of-type { margin: 0; }
  .progress-label { margin-top: 10px; }
  progress { margin-top: 6px; }
  .button-row { margin-top: 10px; }
  .terminal-card { min-height: 0; }
  .log-toolbar { flex: none; padding: 7px 12px; }
  .log-view { flex: 1 1 0; height: auto; min-height: 0; max-height: none; overscroll-behavior: contain; }
  .empty-state { min-height: 0; padding: 16px; }
  .empty-symbol { margin-bottom: 12px; width: 44px; height: 44px; font-size: 24px; }
  .empty-state p { margin: 8px 0 12px; }
  .log-row { padding: 4px 12px; line-height: 1.5; }
  .terminal-status { flex: none; padding: 6px 12px; }
  .send-panel { flex: none; padding: 10px 12px; }
  .send-heading { margin-bottom: 6px; }
  .send-panel textarea { height: 54px; min-height: 40px; max-height: 100px; resize: none; padding: 6px 8px; }
  .send-footer { margin-top: 6px; }
  .send-footer .button { min-height: 28px; padding: 5px 12px; }
  .report-card { min-height: 0; }
  .report-card .section-heading { flex: none; flex-wrap: nowrap; }
  .report-toolbar, .report-downloads { flex: none; padding: 8px 12px; }
  .report-card pre { min-height: 0; max-height: none; padding: 12px; overscroll-behavior: contain; }
  footer { flex: none; padding: 0 2px; line-height: 14px; }
  .toast { left: calc(50% + 32px); }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .workspace { grid-template-columns: 264px minmax(0, 1fr) 264px; }
  .connection { gap: 12px; }
  .connection-controls { gap: 8px; }
  .connection .step { display: none; }
  .connection-controls .port-field { flex: 1.8; }
}
@media (max-width: 1099px) {
  .workspace .report-card { grid-column: 1 / -1; }
  .report-card pre { min-height: 100px; }
  .log-options { gap: 8px; }
}
