.air-mode,
.air-mode__grid,
.air-mode__create-form,
.air-current-card,
.air-current-summary { min-width: 0; }

.air-mode { width: 100%; }
.air-mode[hidden] { display: none; }
.air-mode__grid { display: grid; gap: var(--v3-shell-gap); align-items: start; }
.air-mode__header { align-items: flex-start; }
.air-mode__header h2 { overflow-wrap: normal; word-break: normal; }

.air-recent-card {
  background: linear-gradient(180deg, var(--v3-theme-gradient-recent-start), var(--v3-theme-gradient-recent-end)), var(--v3-color-surface);
}

.air-recent-card--collapsed .air-recent-card__header { margin-bottom: var(--v3-space-2); }
.air-recent-card--collapsed .air-recent-card__header svg { transform: rotate(-90deg); }
.air-recent-actions { display: inline-flex; flex-shrink: 0; align-items: center; gap: var(--v3-space-2); }
.air-recent-body,
.air-record-list { display: grid; gap: var(--v3-space-2); }
.air-records-scroller { max-height: 21rem; overflow-y: auto; padding-right: 2px; scrollbar-gutter: stable; }
.air-create-shell { display: grid; gap: var(--v3-space-2); margin-bottom: var(--v3-space-2); }
.air-mode__create-toggle { width: 100%; justify-content: center; }
.air-create-panel { display: grid; gap: var(--v3-space-3); padding: var(--v3-space-3); border: 1px solid var(--v3-theme-border-alpha-muted); border-radius: var(--v3-radius-control); background: var(--v3-theme-shared-surface-soft); }
.air-create-panel[hidden] { display: none; }

.air-recent-summary-slot:not([hidden]) { margin-bottom: clamp(0.42rem, 0.95vw, 0.62rem); }
.air-record-row__retention { color: var(--v3-theme-status-info-text); }

.air-current-summary { display: grid; gap: var(--v3-space-3); margin-bottom: var(--v3-space-3); }
.air-current-summary__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--v3-space-2); }
.air-current-summary__grid span { min-width: 0; padding: 0.58rem 0.62rem; border: 1px solid var(--v3-theme-border-alpha-muted); border-radius: var(--v3-radius-control); background: var(--v3-theme-shared-surface-soft); color: var(--v3-color-muted); font-size: 0.82rem; font-weight: 780; }
.air-current-summary__grid strong { display: block; margin-bottom: 0.12rem; color: var(--v3-color-text-strong); font-size: 0.72rem; text-transform: uppercase; }

.air-photos,
.air-photo-gate,
.air-evidence-section,
.air-upload-form { display: grid; min-width: 0; gap: var(--v3-space-3); }
.air-photos { border-top: 1px solid var(--v3-theme-border-alpha-muted); padding-top: var(--v3-space-3); }
.air-photos__header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: var(--v3-space-3); }
.air-photos__header h3,
.air-photo-gate h3,
.air-evidence-section h4 { margin: 0; color: var(--v3-theme-text-strong); line-height: 1.15; }
.air-photo-gate { padding: var(--v3-space-3); border: 1px solid var(--v3-theme-border-alpha-muted); border-radius: var(--v3-radius-control); background: var(--v3-theme-shared-surface-soft); }
.air-photo-gate p { margin: 0; color: var(--v3-color-muted); font-size: 0.9rem; font-weight: 760; line-height: 1.35; }
.air-photo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--v3-space-2); min-width: 0; }
.air-file-control { position: relative; display: grid; width: 100%; min-width: 0; color: var(--v3-theme-text-strong); font-size: 0.86rem; font-weight: 900; }
.air-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.air-file-button { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--v3-theme-control-border); border-radius: var(--v3-radius-control); padding: 0 var(--v3-space-3); background: var(--v3-theme-control-bg); color: var(--v3-theme-text-strong); box-shadow: var(--v3-shadow-control); font: inherit; font-weight: 900; text-align: center; cursor: pointer; }
.air-file-control:focus-within .air-file-button,
.air-file-control:hover .air-file-button { border-color: var(--v3-color-ace-blue); color: var(--v3-color-ace-blue); }
.air-file-button:disabled { color: var(--v3-color-muted); cursor: wait; opacity: 0.72; }
.air-file-control--primary .air-file-button { border-color: var(--v3-theme-action-button-shadow); background: var(--v3-theme-action-button-record-bg); color: var(--v3-theme-action-button-record-text); box-shadow: 0 8px 18px var(--v3-theme-shadow-active-accent); }
.air-file-control--primary:focus-within .air-file-button,
.air-file-control--primary:hover .air-file-button { border-color: color-mix(in srgb, var(--v3-theme-action-button-record-bg) 72%, var(--v3-theme-border-alpha-strong)); color: var(--v3-theme-action-button-record-text); box-shadow: 0 0 0 3px var(--v3-theme-focus-active-shadow), 0 8px 18px var(--v3-theme-shadow-active-accent); }
.air-upload-category select,
.air-mode__field textarea { width: 100%; min-width: 0; border: 1px solid var(--v3-theme-control-border); border-radius: var(--v3-radius-control); background: var(--v3-theme-control-bg); color: var(--v3-theme-text-strong); font: inherit; font-weight: 750; }
.air-upload-category select { min-height: 42px; padding: 0 var(--v3-space-3); }
.air-mode__field textarea { resize: vertical; padding: 0.65rem var(--v3-space-3); }
.air-upload-selected { margin: 0; color: var(--v3-theme-status-info-text); font-size: 0.86rem; font-weight: 850; overflow-wrap: anywhere; }
.air-upload-receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.42rem var(--v3-space-3); padding: 0.58rem 0.68rem; border: 1px solid var(--v3-theme-status-ok-border); border-radius: var(--v3-radius-control); background: var(--v3-theme-status-ok-bg); color: var(--v3-theme-status-ok-text); font-size: 0.86rem; font-weight: 850; }
.air-upload-receipt strong { color: inherit; }
.air-evidence-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: var(--v3-space-3); padding: 0.58rem; border: 1px solid var(--v3-theme-border-alpha-muted); border-radius: var(--v3-radius-control); background: var(--v3-theme-shared-surface-soft); }
.air-evidence-row--pinned { border-color: var(--v3-theme-status-info-border); }
.air-evidence-thumb { width: 58px; height: 58px; border-radius: var(--v3-radius-control); object-fit: cover; background: var(--v3-theme-control-bg); }
.air-evidence-main { display: grid; min-width: 0; gap: 0.16rem; }
.air-evidence-main strong { color: var(--v3-theme-text-strong); font-size: 0.92rem; line-height: 1.2; }
.air-evidence-main small,
.air-evidence-note { color: var(--v3-color-muted); font-size: 0.78rem; font-weight: 760; line-height: 1.25; overflow-wrap: anywhere; }
.air-evidence-action { justify-self: end; color: var(--v3-color-ace-blue); font-size: 0.82rem; font-weight: 900; text-decoration: none; }
.air-evidence-action:hover { text-decoration: underline; }

.air-mode__create-form { display: grid; gap: var(--v3-space-3); }
.air-mode__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--v3-space-3); }
.air-mode__field { display: grid; min-width: 0; gap: 0.4rem; color: var(--v3-theme-text-strong); font-size: 0.78rem; font-weight: 900; }
.air-mode__field input,
.air-mode__create { min-height: 42px; border: 1px solid var(--v3-theme-control-border); border-radius: var(--v3-radius-control); padding: 0 var(--v3-space-3); background: var(--v3-theme-control-bg); color: var(--v3-theme-text-strong); font: inherit; font-weight: 750; }
.air-mode__field input { width: 100%; min-width: 0; }
.air-mode__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v3-space-3); }
.air-mode__create { background: var(--v3-color-ace-blue); color: var(--v3-theme-control-bg); font-size: 0.86rem; font-weight: 900; cursor: pointer; }
.air-mode__create:disabled { background: var(--v3-theme-control-bg); color: var(--v3-color-muted); cursor: not-allowed; }
.air-mode__feedback { min-height: 1.35em; margin: 0; color: var(--v3-color-muted); font-size: 0.88rem; font-weight: 800; line-height: 1.35; }
.air-mode__feedback[data-tone="ok"] { color: var(--v3-theme-status-ok-text); }
.air-mode__feedback[data-tone="error"] { color: var(--v3-theme-status-danger-text); }
.air-mode__feedback[data-tone="loading"] { color: var(--v3-theme-status-info-text); }
.air-mode-switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v3-workspace-grid--air { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .air-mode__actions,
  .air-mode__create { width: 100%; }
  .air-photos__header { display: grid; }
  .air-evidence-row { grid-template-columns: 52px minmax(0, 1fr); }
  .air-evidence-thumb { width: 52px; height: 52px; }
  .air-evidence-action { grid-column: 2; justify-self: start; }
  .air-record-row { min-height: 68px; padding: 0.54rem; }
  .air-record-row__meta-line { grid-template-columns: minmax(0, 1fr) auto; }
  .air-record-row__open { display: none; }
}

@media (min-width: 881px) {
  .air-mode__grid { grid-template-columns: var(--v3-left-column) minmax(0, 1fr); }
  .air-recent-card { position: sticky; top: var(--v3-shell-content-offset); }
}
