/*
  Property Shoot Log v119 Offline + Sync Polish
  -----------------------------------------
  Purpose: keep the stable visual design while adding clear online/offline and sync status feedback.

  Organization map:
  1. Base variables / reset
  2. App layout / headers
  3. Log screen: stats, toolbar, cards, grid/list view
  4. Form modal and sticky actions
  5. Reports screen and report table
  6. Settings screen
  7. Bottom navigation
  8. Mobile scroll and responsive fixes
*/

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

/* Shared inline SVG icon system */
svg {
  display: block;
}

.icon-svg,
.btn-icon,
.sync-btn svg,
.search-icon svg,
.clear-search svg,
.close-btn svg,
.empty-icon svg,
.icon-action-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.compact-icon-btn .btn-icon {
  width: 18px;
  height: 18px;
}

.add-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.stats, .report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stats article, .report-summary article {
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.stats span, .report-summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.stats p, .report-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar, .report-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 16px 0 26px;
  align-items: end;
}

.report-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.records {
  display: grid;
  gap: 12px;
}

.text-btn {
  padding: 8px 4px;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.shoot-card, .report-card, .report-paper {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.shoot-card:active {
  transform: scale(0.995);
  background: #fbfbfc;
}




.pill.progress {
  color: #9a5a00;
  background: var(--orange-soft);
}

.pill.done {
  color: #187735;
  background: var(--green-soft);
}

.pill.missing {
  color: #9a5a00;
  background: var(--orange-soft);
}

.empty-state {
  padding: 32px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
}

.empty-icon svg {
  width: 20px;
  height: 20px;
}

.empty-state h3 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}
/* PIN lock screen */
.app.app-locked {
  display: none;
}

.pin-lock-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(0, 122, 255, 0.10), transparent 34%),
    var(--bg);
}

.pin-card {
  width: min(100%, 390px);
  padding: 28px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.pin-card h1 {
  margin: 3px 0 7px;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.pin-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.pin-form {
  display: grid;
  gap: 12px;
}

.pin-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--soft);
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  padding: 0 16px 0 26px;
  outline: none;
}

.pin-form input:focus {
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.pin-error {
  margin: -2px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}


.data-backup-card {
  margin-top: 14px;
}

.backup-actions {
  display: grid;
  gap: 10px;
}

.backup-btn {
  width: 100%;
  min-height: 46px;
}

.security-card {
  margin-top: 14px;
}

.lock-app-btn {
  width: 100%;
}


.report-header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.report-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
}

.report-brand strong {
  color: var(--text);
  font-size: 13px;
}

.report-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.summary-list {
  display: grid;
  gap: 8px;
}

.summary-row:last-child {
  border-bottom: 0;
}

th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef0f2;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav button.active {
  color: white;
  background: var(--blue);
}

.grabber {
  width: 42px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d1d5db;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-btn svg {
  width: 22px;
  height: 22px;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 14px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #fbfbfc;
}

textarea {
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-box {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.status-box legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.radio-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding: 11px;
  border-radius: 13px;
  background: #fbfbfc;
}

.radio-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.radio-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.radio-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.delete-btn,
.duplicate-btn {
  width: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-action-btn svg {
  width: 20px;
  height: 20px;
}

.delete-btn {
  color: var(--red);
  background: var(--red-soft);
}

.duplicate-btn {
  color: var(--text);
  background: #f2f4f7;
}

@media (min-width: 820px) {
  .app {
    padding-top: 34px;
  }

  .shoot-list, .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .modal {
    place-items: center;
  }

  .sheet {
    border-radius: 24px;
  }
}

.report-controls {
  grid-template-columns: 1fr;
}

.report-controls .primary-btn {
  width: 100%;
}
.secondary-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.secondary-btn:active {
  transform: translateY(1px);
}


.report-summary strong {
  overflow-wrap: anywhere;
}

.report-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
}

.report-brand {
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 390px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .report-paper {
    padding: 12px;
    border-radius: 18px;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-summary article {
    padding: 13px 12px;
  }

  .report-header h2 {
    font-size: 22px;
  }

  table {
    min-width: 560px;
    font-size: 12px;
  }

  th, td {
    padding: 8px 6px;
  }
}

@media (min-width: 820px) {
  .report-controls {
    grid-template-columns: 1fr auto;
  }

  .report-header {
    flex-direction: row;
  }

  .report-brand {
    text-align: right;
  }
}

.app, .screen, main, .report-paper, .report-card, .table-card, .report-summary, .report-summary article, .report-grid, .report-controls {
  max-width: 100%;
  min-width: 0;
}

#reportsScreen {
  overflow-x: hidden;
  padding-bottom: 120px;
}

.report-paper {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  width: 100%;
  overflow: hidden;
}

.report-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  width: 100%;
  gap: 10px;
}

.report-summary article {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.report-card {
  padding: 14px;
  border-radius: 18px;
  width: 100%;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
  color: var(--muted);
  font-size: 14px;
  align-items: center;
}

.summary-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-row strong {
  color: var(--text);
  flex: 0 0 auto;
  margin-left: 12px;
}

.table-card {
  padding-bottom: 18px;
}

.table-wrap::after {
  content: "Swipe left to see full table";
  display: block;
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 12px;
}

table {
  width: max-content;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  max-width: none;
}

@media (max-width: 520px) {
  .app {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .report-controls {
    grid-template-columns: 1fr;
  }

  .report-paper {
    padding: 12px;
    border-radius: 18px;
  }

  .report-header {
    flex-direction: column;
  }

  .report-brand {
    text-align: left;
  }

  .report-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .report-summary article {
    padding: 12px;
    border-radius: 15px;
  }

  .report-summary strong {
    font-size: 26px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    padding: 13px;
    border-radius: 16px;
  }
}

@media (max-width: 360px) {
  .report-summary {
    grid-template-columns: 1fr;
  }
}

.missing-links-card {
  display: grid;
  gap: 8px;
}

.missing-links-list {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.missing-link-row {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #eef0f2;
  color: var(--muted);
  font-size: 12px;
}

.missing-link-row span {
  overflow-wrap: anywhere;
}

.missing-link-row strong {
  color: #9a5a00;
  font-size: 12px;
  letter-spacing: 0;
}

.mini-note {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mini-note.good {
  color: #187735;
}

/* Removed unused agent summary grid and agent-cols classes */

.agent-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f3;
  color: var(--muted);
  font-size: 14px;
}

.agent-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-row strong {
  flex: 0 0 auto;
  color: var(--text);
}

@media (min-width: 520px) {
  .report-summary-compact {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 520px) {
  /* Removed unused agent summary grid responsive styles */
}

/* Removed unused summary-cols classes */

/* Removed unused summary-tile span and strong styles */

/* Removed unused agent summary grid display styles */

/* Removed unused summary-cols responsive styles */

/* Removed unused summary-tile class */

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f2;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  .summary-grid {
    gap: 0 16px;
  }
}

.summary-line:last-child {
  border-bottom: 1px solid #eef0f2;
}

.summary-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}

.summary-line, .summary-line:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  border-radius: 13px;
  background: #fbfbfc;
  color: var(--muted);
  font-size: 14px;
}

.summary-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.summary-line strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
}

.report-summary-compact {
  grid-template-columns: 1fr !important;
}

@media (min-width: 520px) {
  .report-summary-compact {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 820px) {
  .table-wrap {
    overflow-x: visible;
  }

  table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: auto;
  }

  th, td {
    border-bottom: 1px solid #eef0f2;
  }

  .table-wrap::after {
    display: none;
  }
}

.view-toggle button.active {
  background: var(--blue);
  color: white;
}




@media (max-width: 430px) {
  .section-head {
    align-items: flex-start;
  }

  .section-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

}

.company-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.company-toggle button {
  min-height: 40px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.company-toggle button.active {
  background: var(--blue);
  color: white;
}

.field-disabled {
  opacity: 0.45;
}

.field-disabled input {
  background: #f1f2f4;
  cursor: not-allowed;
}

.actions.new-record {
  grid-template-columns: 1fr;
}

.actions.new-record .primary-btn {
  width: 100%;
}

.actions {
  display: grid;
  grid-template-columns: 56px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  position: absolute;
  bottom: 0;
  z-index: 20;
  margin-left: -16px;
  margin-right: -16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  left: 0;
  right: 0;
  margin: 0;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

.actions .primary-btn {
  min-height: 56px;
  white-space: nowrap;
}

@media (min-width: 820px) {
  .table-card table {
    table-layout: fixed;
  }

  .table-card th:nth-child(1), .table-card td:nth-child(1) {
    width: 9%;
  }

  .table-card th:nth-child(2), .table-card td:nth-child(2) {
    width: 19%;
  }

  .table-card th:nth-child(3), .table-card td:nth-child(3) {
    width: 8%;
  }

  .table-card th:nth-child(4), .table-card td:nth-child(4) {
    width: 13%;
  }

  .table-card th:nth-child(5), .table-card td:nth-child(5) {
    width: 34%;
  }

  .table-card th:nth-child(6), .table-card td:nth-child(6) {
    width: 8%;
  }

  .table-card th:nth-child(7), .table-card td:nth-child(7) {
    width: 9%;
  }
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

@media (max-width: 430px) {
  .section-actions {
    align-items: flex-end;
  }

  .view-toggle button {
    min-width: 72px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
}

.view-toggle button {
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  min-width: 58px;
  display: grid;
  place-items: center;
}

/* Removed legacy CSS-drawn icon classes; app icons now use inline SVG. */

@media (max-width: 430px) {
  .view-toggle button.density-btn {
    min-width: 98px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    gap: 6px;
  }

  .density-icon {
    width: 16px;
    height: 16px;
  }

  .compact-icon {
    background: linear-gradient(currentColor 0 0) 0 3px / 16px 2px no-repeat,
        linear-gradient(currentColor 0 0) 0 8px / 16px 2px no-repeat,
        linear-gradient(currentColor 0 0) 0 13px / 16px 2px no-repeat;
  }
}

.density-icon, .comfortable-icon, .compact-icon {
  display: none !important;
}

@media (max-width: 430px) {
  .view-toggle button.density-btn {
    min-width: 70px;
    min-height: 30px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0 18px;
  padding-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.caption {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.sync-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.connection-status {
  min-width: 66px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--muted);
  background: #f3f4f6;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.connection-status.online {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(52, 199, 89, 0.18);
}

.connection-status.syncing {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(0, 122, 255, 0.16);
}

.connection-status.offline,
.connection-status.issue,
.connection-status.fallback {
  color: #b45309;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.22);
}

.sync-notice {
  margin: -5px 0 10px;
  width: 100%;
  max-width: none;
  padding: 10px 12px;
  border-radius: 16px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sync-notice.hidden {
  display: none;
}

@media (max-width: 390px) {
  .connection-status {
    min-width: auto;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sync-cluster {
    gap: 6px;
  }
}

.sync-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.sync-btn svg {
  width: 20px;
  height: 20px;
}

.sync-btn:disabled {
  opacity: 0.78;
  cursor: default;
}

.sync-btn.is-syncing svg {
  animation: sync-spin 0.8s linear infinite;
}

.sync-btn.sync-ok {
  color: var(--green);
  background: var(--green-soft);
}

@keyframes sync-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 120;
  transform: translate(-50%, 12px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.stats article {
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #eef0f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stats article:last-child {
  border-right: 0;
}

.stats span {
  margin-bottom: 0;
  font-size: 24px;
}

.stats p {
  margin-top: 2px;
}

.primary-btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 15px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  box-shadow: none;
}

.toolbar .primary-btn {
  min-height: 48px;
  border-radius: 17px;
  font-size: 17px;
}


.toolbar select {
  min-height: 48px;
  border-radius: 17px;
  font-size: 15px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.04);
}

.view-toggle button.density-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 64px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  height: 30px;
  font-weight: 750;
}

.shoot-list {
  display: grid;
  gap: 10px;
}

.shoot-card {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.property {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.record-meta-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.record-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status-pill.progress {
  color: #9a5a00;
  background: var(--orange-soft);
}

.status-pill.done {
  color: #187735;
  background: var(--green-soft);
}

.link-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.link-text.needs-attention {
  color: #9a5a00;
}

.link-text.ok {
  color: #187735;
}

.bottom-nav button {
  min-height: 39px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 430px) {
  h1 {
    font-size: 42px;
  }

  .stats span {
    font-size: 22px;
  }

  .stats article {
    padding: 9px 10px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar select {
    width: 100%;
  }

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

  .section-actions {
    align-items: flex-end;
  }
}


/* =========================================================
   List View - Unified Row Style (all devices)
   ---------------------------------------------------------
   One consistent row-style list for mobile, tablet, and desktop.
   This matches the older compact list layout while avoiding the
   previous table-like responsive CSS layers.
   ========================================================= */
.records.list-mode {
  overflow-x: visible;
}

.shoot-list.list-view {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
}

.shoot-list.list-view .shoot-card {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.shoot-list.list-view .shoot-card:last-child {
  border-bottom: 0;
}

.shoot-list.list-view .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}

.shoot-list.list-view .card-top span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.25;
}

.shoot-list.list-view .card-top span:last-child {
  text-align: right;
  white-space: nowrap;
}

.shoot-list.list-view .property {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.shoot-list.list-view .record-meta-line {
  display: none;
}

.shoot-list.list-view .record-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
}

.shoot-list.list-view .list-meta-inline {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.3;
}

.shoot-list.list-view .status-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 760;
}

.shoot-list.list-view .link-text {
  flex: 0 1 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 430px) {
  .shoot-list.list-view {
    border-radius: 22px;
  }

  .shoot-list.list-view .shoot-card {
    padding: 16px 18px;
  }

  .shoot-list.list-view .card-top {
    gap: 12px;
  }

  .shoot-list.list-view .card-top span {
    font-size: 15px;
  }

  .shoot-list.list-view .property {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .shoot-list.list-view .list-meta-inline,
  .shoot-list.list-view .link-text {
    font-size: 14px;
  }
}

.sheet, #shootForm {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sheet::-webkit-scrollbar, #shootForm::-webkit-scrollbar {
  display: none;
}

#shootForm > label, #shootForm > .grid-2, #shootForm > .status-box, #shootForm > .company-toggle {
  margin-left: 0;
  margin-right: 0;
}

input, textarea, select {
  line-height: 1.25;
  background-clip: padding-box;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(0, 122, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.72),
    0 0 0 4px rgba(0, 122, 255, 0.12);
  background: white;
  outline: none;
}

@media (max-width: 520px) {
  .sheet {
    padding-left: 14px;
    padding-right: 14px;
  }

  #shootForm {
    padding-left: 6px;
    padding-right: 6px;
    margin-left: -6px;
    margin-right: -6px;
  }

  .actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.task-box {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.task-box legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border-radius: 13px;
  background: #fbfbfc;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.check-row input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--blue);
}

.task-hint {
  margin: 2px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.check-row.field-disabled {
  opacity: 0.48;
}

.check-row.field-disabled input {
  cursor: not-allowed;
}

select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' stroke='%23111827' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: right 18px center !important;
  background-size: 18px 18px !important;
  background-repeat: no-repeat !important;
  padding-left: 16px;
  background-color: var(--surface);
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' stroke='%23007AFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 18px 18px !important;
  background-position: right 18px center !important;
}

input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.25' y='4.25' width='13.5' height='12.5' rx='2.25' stroke='%23111827' stroke-width='1.8'/%3E%3Cpath d='M6 2.75V5.75M14 2.75V5.75M3.75 8H16.25' stroke='%23111827' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

input[type="time"] {
  min-height: 52px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='7.25' stroke='%23111827' stroke-width='1.8'/%3E%3Cpath d='M10 5.75V10.25L13 12' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

input[type="date"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.25' y='4.25' width='13.5' height='12.5' rx='2.25' stroke='%23007AFF' stroke-width='1.8'/%3E%3Cpath d='M6 2.75V5.75M14 2.75V5.75M3.75 8H16.25' stroke='%23007AFF' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

input[type="time"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='7.25' stroke='%23007AFF' stroke-width='1.8'/%3E%3Cpath d='M10 5.75V10.25L13 12' stroke='%23007AFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator {
  margin-right: 2px;
  padding: 0;
  cursor: pointer;
  opacity: 0 !important;
  width: 46px;
  height: 100%;
  margin: 0;
  color: transparent !important;
  background: transparent !important;
  display: block;
  position: absolute;
  right: 0;
}

input[type="date"]::-webkit-inner-spin-button, input[type="time"]::-webkit-inner-spin-button, input[type="date"]::-webkit-clear-button, input[type="time"]::-webkit-clear-button {
  display: none !important;
  -webkit-appearance: none !important;
}

input[type="date"], input[type="time"] {
  min-height: 52px;
  padding-right: 46px !important;
  background-repeat: no-repeat !important;
  background-size: 18px 18px !important;
  background-position: right 18px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(calc(100% - 44px), 380px);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  max-width: 520px;
}

.settings-stack {
  display: grid;
  gap: 14px;
}

.settings-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.settings-toggle button {
  min-height: 40px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.settings-toggle button.active {
  background: var(--blue);
  color: white;
}

.settings-add-form input {
  min-height: 46px;
}

.settings-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfbfc;
}

.settings-list-row span {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.settings-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 820px) {
  .settings-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .settings-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .bottom-nav {
    width: min(calc(100% - 24px), 520px);
  }

  .bottom-nav button {
    font-size: 13px;
  }

  .settings-add-form {
    grid-template-columns: 1fr;
  }
}

#agentName, #apartmentDetails {
  min-height: 52px;
}

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --blue: #0a84ff;
  --green: #34c759;
  --green-soft: #eaf8ee;
  --orange: #ff9500;
  --orange-soft: #fff4e5;
  --red: #ff3b30;
  --red-soft: #ffeceb;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --blue-soft: #e8f2ff;
  color-scheme: light;
}

.settings-card:first-child {
  grid-column: auto;
}

@media (min-width: 820px) {
  .settings-card:first-child {
    grid-column: auto;
  }
}


.settings-delete-text {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
}

.search-section {
  margin: -10px 0 22px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.search-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  color: var(--muted);
  pointer-events: none;
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.clear-search {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.clear-search svg {
  width: 18px;
  height: 18px;
}

.clear-search:active {
  transform: scale(0.96);
}

@media (min-width: 820px) {
  .search-section {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .search-section {
    margin-top: -6px;
    margin-bottom: 20px;
  }

  .search-box input {
    min-height: 46px;
    border-radius: 15px;
    font-size: 14px;
  }
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

.toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  margin: 14px 0 24px;
  align-items: center;
}

.toolbar .primary-btn, .toolbar select {
  width: 100%;
}

@media (max-width: 430px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.62fr);
    gap: 8px;
  }

  .toolbar .primary-btn, .toolbar select {
    min-height: 46px;
    font-size: 14px;
    border-radius: 15px;
  }

  .toolbar .primary-btn {
    padding-left: 10px;
    padding-right: 10px;
  }

  .toolbar select {
    padding-left: 12px;
    padding-right: 40px;
  }
}

@media (max-width: 340px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}

.secondary-screen .top-bar {
  padding-bottom: 18px;
}

.secondary-screen h1 {
  font-size: clamp(30px, 6vw, 38px);
  letter-spacing: -0.04em;
}

.secondary-screen .caption {
  font-size: 13px;
  color: var(--muted);
}

.settings-add-form button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  width: 100%;
  border: 1px solid rgba(0, 122, 255, 0.18);
  box-shadow: none;
  font-size: 15px;
}

.settings-add-form button:active {
  transform: scale(0.99);
}


.settings-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.settings-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.settings-add-form {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 820px) {
  .settings-stack {
    align-items: start;
  }
}

body:not(.secondary-screen) h1 {
  font-size: clamp(36px, 8vw, 52px);
}

body:not(.secondary-screen) #screenTitle {
  font-size: clamp(36px, 8vw, 52px) !important;
}

.app:has(#reportsScreen:not(.hidden)) > .top-bar, .app:has(#settingsScreen:not(.hidden)) > .top-bar {
  display: none !important;
}

#reportsScreen:not(.hidden) .screen-local-header, #settingsScreen:not(.hidden) .screen-local-header {
  display: block;
  padding: 12px 0 20px;
}

.screen-local-header .caption {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 820px) {
  #reportsScreen:not(.hidden) .screen-local-header, #settingsScreen:not(.hidden) .screen-local-header {
    padding-top: 4px;
  }
}

.screen-local-header {
  display: none;
  padding-bottom: 22px;
}

.top-bar h1 {
  margin-bottom: 0;
}

.top-bar .caption, .screen-local-header .caption {
  margin: 6px 0 0;
  display: none !important;
}

.top-bar, .screen-local-header {
  padding-bottom: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar, html::-webkit-scrollbar, .app::-webkit-scrollbar, .app-content::-webkit-scrollbar, .screen::-webkit-scrollbar, main::-webkit-scrollbar {
  display: none;
}

.table-wrap, .shoot-list.list-view {
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

.table-wrap::-webkit-scrollbar, .shoot-list.list-view::-webkit-scrollbar {
  display: block;
}

#screenTitle, .screen-local-header h1 {
  margin: 0 !important;
}

.app, .app-content, main, #screenViewport, .screen {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

#screenViewport {
  touch-action: pan-y;
}

.table-wrap {
  overflow-x: auto !important;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  display: block;
  max-width: 100%;
  overflow-y: hidden;
  padding-bottom: 10px;
}

.shoot-list.list-view {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
  overflow-x: auto !important;
}

html, body {
  margin: 0;
  background: var(--bg) !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  overscroll-behavior-x: none;
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: auto !important;
}

.app, .app-content, main, #screenViewport, .screen, #logScreen, #reportsScreen, #settingsScreen {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  touch-action: auto !important;
}

html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none !important;
}

.table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.app {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 18px 16px 98px;
  overflow-x: hidden;
  padding-top: 20px;
  padding-bottom: 112px !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 10px;
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(10px);
  overflow: hidden !important;
}

.sheet {
  width: min(100%, 760px);
  max-height: 94vh !important;
  overflow: hidden !important;
  padding: 8px 16px 18px;
  border-radius: 24px 24px 20px 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

#shootForm {
  padding-bottom: 112px;
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-left: 5px;
  padding-right: 5px;
  margin-left: -5px;
  margin-right: -5px;
}

.screen-local-header h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

body.secondary-screen #screenTitle {
  font-size: clamp(36px, 8vw, 52px) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}



/* =========================================================
   v87: Preserve v81 Cards/Grid + Compact List View
   ---------------------------------------------------------
   - Cards/Grid view is locked back to the v81 card styling.
   - List view keeps one continuous row-list style on all devices.
   - List typography is intentionally smaller/compact so the bottom
     meta/status/link line stays on one line where space allows.
   ========================================================= */

/* Restore/protect v81 Cards view so List View cleanup cannot affect it */
.shoot-list:not(.list-view) {
  display: grid !important;
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.shoot-list:not(.list-view) .shoot-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  background: var(--surface) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035) !important;
  text-align: left !important;
}

.shoot-list:not(.list-view) .card-top {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

.shoot-list:not(.list-view) .property {
  display: block !important;
  margin: 0 0 6px !important;
  color: var(--text) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

.shoot-list:not(.list-view) .shoot-card.has-record-links .property {
  max-width: calc(100% - 58px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shoot-list:not(.list-view) .record-meta-line {
  display: block !important;
  margin: 0 0 12px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.shoot-list:not(.list-view) .record-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Compact continuous list view: same layout on mobile/tablet/desktop */
.records.list-mode {
  overflow-x: visible !important;
}

.shoot-list.list-view {
  display: block !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035) !important;
}

.shoot-list.list-view .shoot-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.shoot-list.list-view .shoot-card:last-child {
  border-bottom: 0 !important;
}

.shoot-list.list-view .card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 8px !important;
}

.shoot-list.list-view .card-top span {
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.shoot-list.list-view .card-top span:last-child {
  flex: 0 0 auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.shoot-list.list-view .property {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.shoot-list.list-view .record-meta-line {
  display: none !important;
}

.shoot-list.list-view .record-footer {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.shoot-list.list-view .list-meta-inline {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shoot-list.list-view .status-pill {
  flex: 0 0 auto !important;
  padding: 4px 9px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.shoot-list.list-view .link-text {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.shoot-list.list-view .link-text.needs-attention {
  color: #9a5a00 !important;
}

.shoot-list.list-view .link-text.ok {
  color: #187735 !important;
}

@media (max-width: 430px) {
  .shoot-list.list-view {
    border-radius: 22px !important;
  }

  .shoot-list.list-view .shoot-card {
    padding: 13px 16px !important;
  }

  .shoot-list.list-view .card-top span,
  .shoot-list.list-view .list-meta-inline,
  .shoot-list.list-view .link-text {
    font-size: 12px !important;
  }

  .shoot-list.list-view .property {
    font-size: 14px !important;
  }

  .shoot-list.list-view .status-pill {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

/* =========================================================
   v88 Grid/List correction
   ---------------------------------------------------------
   - Grid/Cards view must show company-agent-apartment only once.
   - .list-meta-inline is only for compact List View.
   - Cards view follows the v81 structure:
     date/time, property, company-agent-apartment, status/link.
   ========================================================= */
.list-meta-inline {
  display: none !important;
}

.shoot-list:not(.list-view) .list-meta-inline {
  display: none !important;
}

.shoot-list:not(.list-view) .record-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

.shoot-list.list-view .list-meta-inline {
  display: inline-flex !important;
}

/* =========================================================
   Grid card quick link buttons
   ---------------------------------------------------------
   - Cards/Grid view shows external photo/video buttons only when links exist.
   - Icon column is anchored to the card body/footer area, not the time row.
   - One available link stays bottom-right.
   - Two available links stack in the lower-right: photo above, video below.
   - List View stays compact and does not show these buttons.
   ========================================================= */
.shoot-list:not(.list-view) .shoot-card {
  position: relative !important;
  cursor: pointer !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.record-link-actions {
  display: none;
}

.shoot-list:not(.list-view) .record-link-actions {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 2;
}

.record-link-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: #e8f3ff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(24, 134, 255, 0.04);
  transition: transform 0.15s ease, background 0.15s ease;
}

.record-link-btn:active {
  transform: scale(0.96);
  background: #dceeff;
}

.record-link-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shoot-list.list-view .record-link-actions {
  display: none !important;
}

@media (max-width: 430px) {
  .shoot-list:not(.list-view) .record-link-actions {
    right: 18px;
    bottom: 20px;
    gap: 8px;
  }

  .record-link-btn {
    width: 32px;
    height: 32px;
  }

  .record-link-btn svg {
    width: 17px;
    height: 17px;
  }
}
