@media (max-width: 760px) {
  body {
    background: #f5f3f1;
    color: #211f1e;
  }

  .workspace {
    padding: 14px 10px calc(82px + env(safe-area-inset-bottom));
  }

  .topbar h1 {
    font-size: 22px;
  }

  .focus-card h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  .metric-grid strong,
  .warranty-metric strong {
    font-size: 22px;
  }

  .drawer-head {
    padding: 16px 56px 14px 14px;
  }

  .drawer-head h2 {
    margin-top: 3px;
    font-size: 19px;
    line-height: 1.25;
  }

  .drawer-head p {
    font-size: 12px;
    line-height: 1.45;
  }

  .close {
    top: 11px;
    right: 10px;
    width: 44px !important;
    height: 44px !important;
    font-size: 22px;
  }

  .action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 10px;
  }

  .action-row button {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 7px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.15;
  }

  .action-row .delete-danger {
    grid-column: 1 / -1;
  }

  .drawer-section {
    margin: 9px;
    padding: 15px 14px;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgb(32 21 18 / 4%);
  }

  .drawer-section h3 {
    margin-bottom: 13px;
    font-size: 17px;
    line-height: 1.3;
  }

  .detail-grid,
  .edit-row {
    gap: 11px;
  }

  .detail-grid label,
  .edit-row label,
  .form-grid label {
    font-size: 11px;
    line-height: 1.35;
  }

  .detail-grid strong {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

  .edit-row select,
  .form-grid input,
  .form-grid select {
    height: 46px;
    margin-top: 6px;
    padding: 0 12px;
    font-size: 16px !important;
  }

  .section-title {
    align-items: center;
  }

  .research-actions button,
  .timeline-actions button,
  .copy-research,
  .research-request,
  .feedback-request {
    min-height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }

  .research-card > p,
  .research-summary,
  .research-risk,
  .research-empty {
    font-size: 13px !important;
    line-height: 1.7;
  }

  .timeline {
    gap: 14px;
  }

  .timeline article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 2px 0 5px;
  }

  .mail-dot {
    width: 30px;
    height: 30px;
  }

  .mail-meta b {
    font-size: 12px;
  }

  .mail-meta time {
    font-size: 10px;
  }

  .timeline h4 {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .timeline p {
    font-size: 13px;
    line-height: 1.6;
  }

  .timeline article > div:last-child::after {
    min-height: 32px;
    padding-top: 8px;
    font-size: 11px;
  }

  .drawer-section textarea {
    min-height: 112px;
    padding: 12px;
    font-size: 16px !important;
    line-height: 1.55;
  }

  .sidebar {
    height: calc(68px + env(safe-area-inset-bottom));
  }

  .sidebar nav button,
  .sidebar nav button:not(.nav-active) {
    flex-basis: 72px;
    height: 56px;
    font-size: 10px;
  }

  .sidebar nav button > span {
    font-size: 18px;
  }

  .tabs button,
  .top-actions button,
  .table-tools button {
    min-height: 44px;
    font-size: 12px;
  }

  .table-wrap th,
  .table-wrap td {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

@media (max-width: 380px) {
  .workspace {
    padding-left: 7px;
    padding-right: 7px;
  }

  .drawer-section {
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .action-row button {
    font-size: 11px;
  }
}
