/* Review uses the same canvas as Control Centres. Scoped to screen content;
   shared navigation, scoring rules and printed reports retain their contracts. */
@media screen {
  html:has(#screenLogs:not(.hidden)) #tapContent .main {
    width: 100%; max-width: none !important;
    padding: 32px 30px 40px; box-sizing: border-box;
  }
  #app #screenLogs {
    width: 100%; max-width: none; min-width: 0; margin-inline: 0;
  }
  #app #screenLogs .screen-title-row { margin: 0 0 24px; }
  #app #screenLogs .screen-title {
    font-size: clamp(26px, 2.4vw, 34px); font-weight: 700;
    line-height: 1.15; letter-spacing: -.035em; color: #191919;
  }
  #app #screenLogs .ops-tabs {
    width: auto; margin: 0 0 18px; justify-content: flex-start; gap: 8px;
  }
  #app #screenLogs .ops-tab {
    flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 10px 18px;
    border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: none;
  }
  #app #screenLogs .tt-logs-view-row {
    width: 100%; max-width: none; margin: 0 0 24px; padding: 0;
    gap: 4px; border: 0; border-bottom: 1px solid #d8dde5;
    border-radius: 0; background: transparent; box-shadow: none;
  }
  #app #screenLogs .tt-home-view-pill {
    flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 12px 20px;
    border: 0; border-bottom: 3px solid transparent; border-radius: 0;
    background: transparent; color: #536278; box-shadow: none;
    font-size: 15px; font-weight: 700; line-height: 1.35;
  }
  #app #screenLogs .tt-home-view-pill.is-active {
    color: #203d87; border-bottom-color: #203d87;
  }
  #app #screenLogs :is(.logs-view-panel, .logs-hero, .logs-block, .week-report) {
    min-width: 0; max-width: none; box-sizing: border-box;
  }
  #app #screenLogs :is(.logs-hero, .logs-block, .logs-driver-card) {
    padding: 24px; border-radius: 20px; box-shadow: none;
  }
  #app #screenLogs :is(.logs-hero-title, .logs-block-title, .tt-action-section-title, .logs-driver-title) {
    font-size: 18px; font-weight: 700; line-height: 1.3; color: #191919;
  }
  #app #screenLogs :is(.logs-hero-sub, .logs-block-sub, .tt-action-section-sub,
    .logs-score-summary-sub, .logs-driver-sub, .logs-score-note) {
    font-size: 14px; font-weight: 500; line-height: 1.5; color: #536278;
  }
  #app #screenLogs .logs-driver-metric {
    font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em;
  }
  #app #screenLogs .logs-driver-weight { font-size: 13px; font-weight: 600; }
  #app #screenLogs .logs-score-summary-card { box-shadow: none; }
  #app #screenLogs .logs-score-grid { gap: 16px; align-items: start; }
  #app #screenLogs :is(.btn-primary, .btn-secondary, .btn-ghost, .btn-export) {
    min-height: 44px; height: auto; padding: 10px 16px;
    border-radius: 12px !important; font: inherit; font-size: 15px;
    font-weight: 700; line-height: 1.35; white-space: normal; box-shadow: none;
  }
  #app #screenLogs .logs-select {
    min-height: 48px; border-radius: 12px; font-size: 16px; font-weight: 500;
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  #app #screenLogs .review-score-help { margin-top: 8px; }
  #app #screenLogs :is(.review-score-help summary, .review-text-action) {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 6px 0; border: 0; border-radius: 4px; background: transparent;
    color: #203d87; font: inherit; font-size: 14px; font-weight: 600;
    line-height: 1.4; text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; box-sizing: border-box;
  }
  #app #screenLogs .review-score-help summary::marker { content: ''; }
  #app #screenLogs .review-score-help summary::-webkit-details-marker { display: none; }
  #app #screenLogs .review-score-help[open] summary { margin-bottom: 4px; }
  #app #screenLogs .review-score-help .logs-score-note { margin-top: 0; }
  #app #screenLogs :is(button, summary, input, select, textarea):focus-visible {
    outline: 2px solid #203d87; outline-offset: 3px;
  }
  @media (max-width: 1000px) {
    html:has(#screenLogs:not(.hidden)) #tapContent .main {
      padding: 24px 24px calc(112px + env(safe-area-inset-bottom, 0px));
    }
  }
  @media (max-width: 600px) {
    html:has(#screenLogs:not(.hidden)) #tapContent .main {
      padding: 24px 16px calc(112px + env(safe-area-inset-bottom, 0px));
    }
    #app #screenLogs :is(.logs-hero, .logs-block, .logs-driver-card) { padding: 16px; }
    #app #screenLogs .tt-home-view-pill { flex: 1 1 0; padding-inline: 8px; }
    #app #screenLogs .ops-tab { flex: 1 1 0; padding-inline: 10px; }
    #app #screenLogs .logs-driver-metric { font-size: 16px; }
  }
}
