:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --border: #e4e5e7;
  --text: #111827;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --blue: #007aff;
  --green: #34c759;
  --green-soft: #eaf8ee;
  --orange: #ff9500;
  --orange-soft: #fff4e5;
  --red: #ff3b30;
  --red-soft: #ffeceb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  background: var(--bg);
}

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

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

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 18px 16px 98px;
}

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

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

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.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;
}

.primary-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-weight: 700;
}

select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
}

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

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

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

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

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

.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 {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  color: var(--text);
  text-align: left;
}

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

.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: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.meta,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.link-row {
  margin-top: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.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 {
  font-size: 34px;
  margin-bottom: 10px;
}

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

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

.hidden {
  display: none !important;
}

.report-paper {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
}

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

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

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

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

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

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

.report-grid {
  display: grid;
  gap: 12px;
}

.report-card {
  padding: 14px;
  border-radius: 18px;
}

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

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

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

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

.summary-row strong {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

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 {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 10;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: min(calc(100% - 32px), 420px);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

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

.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);
}

.sheet {
  width: min(100%, 760px);
  max-height: 94vh;
  overflow: auto;
  padding: 8px 16px 18px;
  border-radius: 24px 24px 20px 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.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);
  font-size: 26px;
  line-height: 1;
}

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;
}

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

.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;
}

.actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 4px;
}

.delete-btn {
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 14px;
  color: var(--red);
  background: var(--red-soft);
  font-weight: 700;
}

@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;
  }
}

@media print {
  body {
    background: white;
  }

  .top-bar,
  .bottom-nav,
  .report-controls,
  .modal,
  #logScreen {
    display: none !important;
  }

  .app {
    width: 100%;
    padding: 0;
  }

  #reportsScreen,
  .report-paper {
    display: block !important;
  }

  .report-paper {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .report-summary,
  .report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 14px 0;
  }

  .report-card,
  .report-summary article {
    break-inside: avoid;
    box-shadow: none;
  }

  table {
    min-width: 0;
    font-size: 10px;
  }

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

  @page {
    margin: 14mm;
    size: A4 portrait;
  }
}


/* v4 mobile report fixes */
.report-controls {
  grid-template-columns: 1fr;
}

.report-controls .primary-btn {
  width: 100%;
}

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

.report-summary article {
  min-width: 0;
}

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

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

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

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 620px;
}

@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;
  }
}


/* v5 hard mobile overflow fix */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

.app {
  overflow-x: hidden;
}

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

.report-paper {
  width: 100%;
  overflow: hidden;
}

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

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

.report-card {
  width: 100%;
  overflow: hidden;
}

.summary-row {
  align-items: center;
}

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

.summary-row strong {
  flex: 0 0 auto;
  margin-left: 12px;
}

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

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

.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;
  max-width: none;
}

.bottom-nav {
  bottom: max(14px, env(safe-area-inset-bottom));
}

@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;
  }
}


/* v6 report updates */
.report-summary-compact {
  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;
}

.agent-summary-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 8px 14px;
  align-items: start;
}

.agent-cols-1 {
  grid-template-columns: 1fr;
}

.agent-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.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) {
  .agent-summary-grid {
    grid-auto-flow: row;
    grid-template-rows: none;
  }

  .agent-cols-1,
  .agent-cols-2,
  .agent-cols-3,
  .agent-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media print {
  .report-summary-compact {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .agent-summary-grid {
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
  }

  .agent-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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


/* v7 summary grid + PDF missing link refinement */
.summary-grid {
  display: grid;
  gap: 10px;
}

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

.summary-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.summary-tile {
  min-width: 0;
  padding: 12px;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #fbfbfc;
}

.summary-tile span {
  display: block;
  min-width: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.summary-tile strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

/* Override previous v6 agent column behavior */
.agent-summary-grid,
.agent-cols-1,
.agent-cols-2,
.agent-cols-3,
.agent-cols-4 {
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: none;
}

@media (max-width: 520px) {
  .summary-cols-3,
  .summary-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  .summary-cols-2,
  .summary-cols-3,
  .summary-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media print {
  .dashboard-missing-property {
    display: none !important;
  }

  .missing-link-row {
    display: block;
    padding: 4px 0;
    border-top: 0;
  }

  .missing-link-row strong {
    display: block;
    color: #111827;
    font-size: 10px;
    font-weight: 600;
  }

  .summary-grid {
    gap: 6px;
  }

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

  .summary-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .summary-tile {
    padding: 8px;
    border-radius: 8px;
    background: white;
  }

  .summary-tile span {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .summary-tile strong {
    font-size: 16px;
  }
}


/* v8 compact summary rows */
.summary-tile {
  display: none;
}

.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;
}

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

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

.summary-line strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

/* Keep the multi-column behavior, but remove the heavy card look */
.summary-grid {
  gap: 0 22px;
  align-items: start;
}

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

@media print {
  .summary-line {
    padding: 4px 0;
    font-size: 10px;
  }

  .summary-line strong {
    font-size: 10px;
  }
}


/* v9 PDF: Missing Links card should show count only */
@media print {
  .missing-links-list {
    display: none !important;
  }

  .missing-links-card {
    align-content: start;
  }
}


/* v10 summary underline consistency fix */
.summary-line:last-child {
  border-bottom: 1px solid #eef0f2;
}

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


/* v11 cleaner summary layout: no underlines, compact chips */
.summary-grid {
  gap: 10px;
}

.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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

@media print {
  .summary-grid {
    gap: 6px;
  }

  .summary-line,
  .summary-line:last-child {
    padding: 6px 8px;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    background: white;
    font-size: 10px;
  }

  .summary-line strong {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 9px;
    background: #f3f4f6;
    color: #111827;
  }
}


/* v12 keep top summary cards vertical on desktop too */
.report-summary-compact {
  grid-template-columns: 1fr !important;
}

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

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


/* v13 desktop table width fix */
@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;
  }
}

@media print {
  table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}


/* v14 Log screen: sync button + grid/list toggle */
.sync-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

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

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

.view-toggle button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.shoot-list.list-view {
  gap: 7px;
}

.shoot-list.list-view .shoot-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 11px 12px;
  border-radius: 14px;
}

.shoot-list.list-view .card-top {
  display: contents;
}

.shoot-list.list-view .card-top span:first-child {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
}

.shoot-list.list-view .card-top span:last-child {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.shoot-list.list-view .property {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shoot-list.list-view .meta {
  grid-column: 1;
  gap: 5px;
}

.shoot-list.list-view .link-row {
  grid-column: 2;
  margin-top: 0;
  justify-content: end;
  gap: 5px;
}

.shoot-list.list-view .pill {
  padding: 3px 7px;
  font-size: 11px;
}

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

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

  .shoot-list.list-view .shoot-card {
    grid-template-columns: 1fr;
  }

  .shoot-list.list-view .card-top span:last-child,
  .shoot-list.list-view .link-row {
    grid-column: 1;
    text-align: left;
    justify-content: start;
  }
}


/* v15 form updates: company toggle, time picker, sticky actions */
.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;
}

.sheet {
  padding-bottom: 0;
}

#shootForm {
  padding-bottom: 92px;
}

.actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  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.92);
  backdrop-filter: blur(18px);
}

input[type="time"] {
  min-height: 52px;
}

@media print {
  .company-toggle {
    display: none;
  }
}


/* v16: full-width Save button when adding a new shoot */
.actions.new-record {
  grid-template-columns: 1fr;
}

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


/* v17: truly fixed bottom actions inside Log/Edit sheet */
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  overflow: hidden;
  padding-bottom: 0;
}

#shootForm {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 112px;
  -webkit-overflow-scrolling: touch;
}

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


/* v18 Monthly Records table alignment fix */
@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%;
  }
}


/* v19 larger Grid/List toggle + remove Clear button layout gap */
.section-actions {
  gap: 0;
}

.view-toggle {
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
}

.view-toggle button {
  min-height: 42px;
  min-width: 82px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

@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;
  }
}


/* v20 icon-only Grid/List toggle */
.view-toggle button {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 42px;
  padding: 0;
}

.view-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 5px;
}

.grid-icon::before,
.grid-icon::after {
  content: "";
}

.grid-icon,
.grid-icon::before,
.grid-icon::after {
  color: currentColor;
}

.grid-icon span {
  display: none;
}

.grid-icon {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 13px 0 / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 0 13px / 8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 13px 13px / 8px 8px no-repeat;
  border-radius: 3px;
}

.list-icon {
  background:
    linear-gradient(currentColor 0 0) 0 2px / 21px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 9px / 21px 3px no-repeat,
    linear-gradient(currentColor 0 0) 0 16px / 21px 3px no-repeat;
  border-radius: 2px;
}

@media (max-width: 430px) {
  .view-toggle button {
    min-width: 54px;
    min-height: 40px;
  }
}


/* v21 zoom-style view toggle icons */
.grid-icon,
.list-icon {
  background: none !important;
}

.zoom-in-icon,
.zoom-out-icon {
  width: 22px;
  height: 22px;
}

.zoom-in-icon::before,
.zoom-out-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 2.4px solid currentColor;
  border-radius: 999px;
}

.zoom-in-icon::after,
.zoom-out-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 9px;
  height: 2.4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.zoom-in-icon span,
.zoom-out-icon span {
  display: none;
}

.zoom-in-icon {
  background:
    linear-gradient(currentColor 0 0) 7px 7px / 6px 2px no-repeat,
    linear-gradient(currentColor 0 0) 9px 5px / 2px 6px no-repeat;
}

.zoom-out-icon {
  background:
    linear-gradient(currentColor 0 0) 7px 7px / 6px 2px no-repeat;
}


/* v22: clearer density toggle - Comfy / Compact */
.view-toggle {
  gap: 5px;
  padding: 5px;
}

.view-toggle button.density-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 116px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 1;
}

.density-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* override old icon drawings */
.view-icon,
.zoom-in-icon,
.zoom-out-icon,
.grid-icon,
.list-icon {
  display: none !important;
}

.comfortable-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.comfortable-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
  opacity: 0.85;
}

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

@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;
  }
}


/* v23: simple low-height text-only density toggle */
.view-toggle {
  gap: 3px;
  padding: 3px;
}

.view-toggle button.density-btn {
  min-width: 76px;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  gap: 0;
  font-size: 12px;
  font-weight: 750;
}

.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;
  }
}


/* v24 visual polish test - calmer, more native-feeling UI */
:root {
  --blue: #0a84ff;
  --blue-soft: #e8f2ff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.app {
  padding-top: 20px;
}

.top-bar {
  padding-bottom: 16px;
}

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

.caption {
  font-size: 13px;
}

/* Sync is secondary, not a primary CTA */
.sync-btn {
  width: 44px;
  height: 44px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: none;
  font-size: 22px;
}

/* Stats become a compact strip */
.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;
}

/* Calmer action row */
.toolbar {
  grid-template-columns: 1fr auto;
  margin: 14px 0 24px;
}

.primary-btn {
  min-height: 46px;
  border-radius: 15px;
  box-shadow: none;
}

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

.toolbar .primary-btn::before {
  content: "+ ";
  font-weight: 800;
}

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

/* Recent header and density toggle */
.section-head {
  margin-bottom: 8px;
}

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

.view-toggle {
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.04);
}

.view-toggle button.density-btn {
  min-width: 64px;
  min-height: 30px;
  height: 30px;
  font-size: 12px;
}

/* Cleaner record cards: less badge noise */
.shoot-list {
  gap: 10px;
}

.shoot-card {
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
}

.card-top {
  margin-bottom: 10px;
  font-size: 13px;
}

.property {
  margin-bottom: 6px;
  font-size: 18px;
  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;
}

/* Compact/List mode stays clean */
.shoot-list.list-view .shoot-card {
  padding: 11px 12px;
  border-radius: 14px;
}

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

.shoot-list.list-view .record-meta-line {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shoot-list.list-view .record-footer {
  grid-column: 1 / -1;
  gap: 7px;
}

.shoot-list.list-view .status-pill {
  padding: 3px 7px;
  font-size: 11px;
}

.shoot-list.list-view .link-text {
  font-size: 11px;
}

/* Bottom nav polish */
.bottom-nav {
  width: min(calc(100% - 44px), 380px);
  padding: 5px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.bottom-nav button {
  min-height: 39px;
  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;
  }
}


/* v25: proper compact list view instead of card zoom-out */
.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);
}

.shoot-list.list-view .shoot-card {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(120px, 1.2fr) minmax(160px, 2.2fr) minmax(220px, 3fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.shoot-list.list-view .card-top {
  display: contents;
}

.shoot-list.list-view .card-top span:first-child {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.shoot-list.list-view .card-top span:last-child {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-align: left;
}

.shoot-list.list-view .property {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.shoot-list.list-view .record-footer {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.shoot-list.list-view .record-footer::before {
  content: attr(data-meta);
}

.shoot-list.list-view .status-pill {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.shoot-list.list-view .link-text {
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile list: one-line meta/status/link under compact title row */
@media (max-width: 700px) {
  .shoot-list.list-view {
    border-radius: 16px;
  }

  .shoot-list.list-view .shoot-card {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    padding: 11px 12px;
  }

  .shoot-list.list-view .card-top span:first-child {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
  }

  .shoot-list.list-view .card-top span:last-child {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    text-align: right;
  }

  .shoot-list.list-view .property {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px;
  }

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

  .shoot-list.list-view .record-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
  }

  .shoot-list.list-view .record-footer::before {
    content: "";
    display: none;
  }

  .shoot-list.list-view .status-pill {
    padding: 3px 7px;
    font-size: 11px;
  }

  .shoot-list.list-view .link-text {
    font-size: 11px;
  }
}


.list-meta-inline {
  display: none;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shoot-list.list-view .list-meta-inline {
  display: inline-block;
}

@media (max-width: 700px) {
  .shoot-list.list-view .list-meta-inline {
    display: inline-block;
    max-width: 42%;
    font-size: 11px;
  }
}

@media (min-width: 701px) {
  .shoot-list.list-view .record-footer {
    justify-content: flex-start;
  }

  .shoot-list.list-view .list-meta-inline {
    flex: 1 1 auto;
    max-width: 48%;
  }
}


/* v26: fix desktop list view properly */
@media (min-width: 701px) {
  .shoot-list.list-view {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100%;
    overflow: hidden;
  }

  .shoot-list.list-view .shoot-card {
    display: grid !important;
    grid-template-columns:
      minmax(74px, 0.7fr)
      minmax(165px, 1.2fr)
      minmax(260px, 2.2fr)
      minmax(210px, 1.7fr)
      minmax(110px, 0.9fr)
      minmax(170px, 1.2fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .shoot-list.list-view .card-top {
    display: contents !important;
  }

  .shoot-list.list-view .card-top span:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .shoot-list.list-view .card-top span:last-child {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .shoot-list.list-view .property {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-meta-line {
    display: block !important;
    grid-column: 4;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-footer {
    display: contents !important;
  }

  .shoot-list.list-view .record-footer::before {
    display: none !important;
    content: none !important;
  }

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

  .shoot-list.list-view .status-pill {
    grid-column: 5;
    grid-row: 1;
    justify-self: start;
    white-space: nowrap;
    padding: 4px 9px;
    font-size: 11px;
  }

  .shoot-list.list-view .link-text {
    grid-column: 6;
    grid-row: 1;
    min-width: 0;
    justify-self: start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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

@media (min-width: 701px) and (max-width: 1050px) {
  .shoot-list.list-view {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shoot-list.list-view .shoot-card {
    min-width: 980px;
  }
}


/* v27: cleaner desktop list, no cropped right side */
@media (min-width: 701px) {
  .shoot-list.list-view {
    overflow: hidden !important;
  }

  .shoot-list.list-view .shoot-card {
    grid-template-columns:
      minmax(74px, 0.65fr)
      minmax(160px, 1fr)
      minmax(260px, 2.2fr)
      minmax(210px, 1.5fr)
      minmax(210px, 1.35fr) !important;
    gap: 16px !important;
    min-width: 0 !important;
  }

  .shoot-list.list-view .property {
    grid-column: 3 !important;
  }

  .shoot-list.list-view .record-meta-line {
    grid-column: 4 !important;
  }

  .shoot-list.list-view .record-footer {
    display: flex !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
    align-items: center;
    justify-content: flex-end !important;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  .shoot-list.list-view .status-pill {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    flex: 0 0 auto;
  }

  .shoot-list.list-view .link-text {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    min-width: 0;
    max-width: 120px;
    flex: 1 1 auto;
    text-align: right;
  }
}

/* On medium desktop/tablet, keep the list readable without clipping */
@media (min-width: 701px) and (max-width: 1100px) {
  .shoot-list.list-view {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .shoot-list.list-view .shoot-card {
    min-width: 980px !important;
  }
}


/* v28: make desktop list scrollable instead of cropped */
@media (min-width: 701px) {
  .shoot-list.list-view {
    display: block !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .shoot-list.list-view .shoot-card {
    display: grid !important;
    grid-template-columns: 90px 190px 360px 260px 240px !important;
    gap: 18px !important;
    align-items: center;
    width: 1140px !important;
    min-width: 1140px !important;
    max-width: none !important;
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .shoot-list.list-view .card-top {
    display: contents !important;
  }

  .shoot-list.list-view .card-top span:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    white-space: nowrap;
  }

  .shoot-list.list-view .card-top span:last-child {
    grid-column: 2 !important;
    grid-row: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .shoot-list.list-view .property {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-meta-line {
    display: block !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-footer {
    display: flex !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
    min-width: 0;
    justify-content: flex-start !important;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  .shoot-list.list-view .record-footer::before,
  .shoot-list.list-view .list-meta-inline {
    display: none !important;
    content: none !important;
  }

  .shoot-list.list-view .status-pill {
    flex: 0 0 auto;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .shoot-list.list-view .link-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    grid-column: auto !important;
    grid-row: auto !important;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view::-webkit-scrollbar {
    height: 8px;
  }

  .shoot-list.list-view::-webkit-scrollbar-track {
    background: #f1f2f4;
    border-radius: 999px;
  }

  .shoot-list.list-view::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 999px;
  }
}


/* v29: desktop list header titles */
.desktop-list-header {
  display: none;
}

@media (min-width: 701px) {
  .desktop-list-header {
    display: none;
  }

  .shoot-list.list-view + .desktop-list-header {
    display: none;
  }

  .records:has(.shoot-list.list-view) .desktop-list-header {
    display: grid;
    grid-template-columns: 90px 190px 360px 260px 240px;
    gap: 18px;
    width: 1140px;
    min-width: 1140px;
    max-width: none;
    padding: 12px 18px 10px;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fbfbfc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .records:has(.shoot-list.list-view) .shoot-list.list-view {
    border-radius: 0 0 18px 18px;
    border-top: 0;
  }
}

/* Fallback for browsers without :has(): JS adds .list-mode to .records */
@media (min-width: 701px) {
  .records.list-mode .desktop-list-header {
    display: grid;
    grid-template-columns: 90px 190px 360px 260px 240px;
    gap: 18px;
    width: 1140px;
    min-width: 1140px;
    max-width: none;
    padding: 12px 18px 10px;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fbfbfc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .records.list-mode .shoot-list.list-view {
    border-radius: 0 0 18px 18px;
    border-top: 0;
  }
}

@media (min-width: 701px) {
  .records.list-mode {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .records.list-mode .shoot-list.list-view {
    overflow-x: visible !important;
    padding-bottom: 0;
  }
}


/* v30: List header + rows scroll together, with link status visible */
.list-scroll-wrap {
  width: 100%;
}

@media (min-width: 701px) {
  .records.list-mode {
    overflow-x: visible !important;
    padding-bottom: 0;
  }

  .records.list-mode .list-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .records.list-mode .desktop-list-header {
    display: grid !important;
    grid-template-columns: 90px 190px 360px 260px 110px 170px !important;
    gap: 18px !important;
    width: 1290px !important;
    min-width: 1290px !important;
    max-width: none !important;
    padding: 12px 18px 10px !important;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fbfbfc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .records.list-mode .shoot-list.list-view {
    display: block !important;
    width: 1290px !important;
    min-width: 1290px !important;
    max-width: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    border-radius: 0 0 18px 18px !important;
    border-top: 0 !important;
  }

  .records.list-mode .shoot-list.list-view .shoot-card {
    display: grid !important;
    grid-template-columns: 90px 190px 360px 260px 110px 170px !important;
    gap: 18px !important;
    width: 1290px !important;
    min-width: 1290px !important;
    max-width: none !important;
  }

  .shoot-list.list-view .card-top {
    display: contents !important;
  }

  .shoot-list.list-view .card-top span:first-child {
    grid-column: 1 !important;
  }

  .shoot-list.list-view .card-top span:last-child {
    grid-column: 2 !important;
  }

  .shoot-list.list-view .property {
    grid-column: 3 !important;
  }

  .shoot-list.list-view .record-meta-line {
    grid-column: 4 !important;
  }

  .shoot-list.list-view .record-footer {
    display: contents !important;
  }

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

  .shoot-list.list-view .record-footer::before {
    display: none !important;
    content: none !important;
  }

  .shoot-list.list-view .status-pill {
    grid-column: 5 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    width: max-content;
  }

  .shoot-list.list-view .link-text {
    grid-column: 6 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    max-width: 160px;
    text-align: left;
  }

  .records.list-mode .list-scroll-wrap::-webkit-scrollbar {
    height: 8px;
  }

  .records.list-mode .list-scroll-wrap::-webkit-scrollbar-track {
    background: #f1f2f4;
    border-radius: 999px;
  }

  .records.list-mode .list-scroll-wrap::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 999px;
  }
}

@media (max-width: 700px) {
  .desktop-list-header {
    display: none !important;
  }
}


/* v31: remove desktop list header and restore clean list/cards behavior */
.desktop-list-header,
.list-scroll-wrap {
  display: contents;
}

/* Make sure Cards/Grid view is not affected by list table styles */
.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;
}

.shoot-list:not(.list-view) .card-top {
  display: flex !important;
}

.shoot-list:not(.list-view) .property,
.shoot-list:not(.list-view) .record-meta-line,
.shoot-list:not(.list-view) .record-footer {
  display: revert !important;
}

/* List view: no header, but keep all information visible */
@media (min-width: 701px) {
  .records.list-mode {
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .records.list-mode .shoot-list.list-view {
    display: block !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035) !important;
    -webkit-overflow-scrolling: touch;
  }

  .records.list-mode .shoot-list.list-view .shoot-card {
    display: grid !important;
    grid-template-columns: 90px 190px 360px 260px 110px 170px !important;
    gap: 18px !important;
    align-items: center;
    width: 1290px !important;
    min-width: 1290px !important;
    max-width: none !important;
    padding: 13px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef0f2 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

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

  .shoot-list.list-view .card-top {
    display: contents !important;
  }

  .shoot-list.list-view .card-top span:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .shoot-list.list-view .card-top span:last-child {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .shoot-list.list-view .property {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-meta-line {
    display: block !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-footer {
    display: contents !important;
  }

  .shoot-list.list-view .record-footer::before,
  .shoot-list.list-view .list-meta-inline {
    display: none !important;
    content: none !important;
  }

  .shoot-list.list-view .status-pill {
    grid-column: 5 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    width: max-content;
    white-space: nowrap;
  }

  .shoot-list.list-view .link-text {
    grid-column: 6 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    max-width: 160px;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view::-webkit-scrollbar {
    height: 8px;
  }

  .shoot-list.list-view::-webkit-scrollbar-track {
    background: #f1f2f4;
    border-radius: 999px;
  }

  .shoot-list.list-view::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 999px;
  }
}

/* Mobile list remains compact and without desktop header */
@media (max-width: 700px) {
  .desktop-list-header {
    display: none !important;
  }
}


/* v32: show Link Status in desktop list view */
@media (min-width: 701px) {
  .records.list-mode .shoot-list.list-view .shoot-card {
    grid-template-columns:
      minmax(320px, 2.1fr)
      minmax(260px, 1.4fr)
      minmax(130px, 0.7fr)
      minmax(190px, 1fr) !important;
    width: 100% !important;
    min-width: 980px !important;
    max-width: none !important;
    gap: 18px !important;
  }

  .shoot-list.list-view .card-top {
    display: none !important;
  }

  .shoot-list.list-view .property {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .shoot-list.list-view .record-meta-line {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .shoot-list.list-view .record-footer {
    display: flex !important;
    grid-column: 3 / 5 !important;
    grid-row: 1 !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 14px;
    min-width: 0;
    overflow: visible;
  }

  .shoot-list.list-view .status-pill {
    flex: 0 0 auto;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .shoot-list.list-view .link-text {
    display: inline-block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    grid-column: auto !important;
    grid-row: auto !important;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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


/* v33: desktop list view shows all 6 columns:
   Date | Time | Property | Details | Status | Link Status */
@media (min-width: 701px) {
  .records.list-mode .shoot-list.list-view {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .records.list-mode .shoot-list.list-view .shoot-card {
    display: grid !important;
    grid-template-columns:
      90px
      190px
      minmax(300px, 1.7fr)
      minmax(240px, 1.2fr)
      120px
      180px !important;
    gap: 18px !important;
    align-items: center;
    width: 1180px !important;
    min-width: 1180px !important;
    max-width: none !important;
    padding: 13px 18px !important;
  }

  .shoot-list.list-view .card-top {
    display: contents !important;
  }

  .shoot-list.list-view .card-top span:first-child {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .shoot-list.list-view .card-top span:last-child {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .shoot-list.list-view .property {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-meta-line {
    display: block !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shoot-list.list-view .record-footer {
    display: contents !important;
  }

  .shoot-list.list-view .record-footer::before,
  .shoot-list.list-view .list-meta-inline {
    display: none !important;
    content: none !important;
  }

  .shoot-list.list-view .status-pill {
    display: inline-flex !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    width: max-content;
    white-space: nowrap;
  }

  .shoot-list.list-view .link-text {
    display: block !important;
    grid-column: 6 !important;
    grid-row: 1 !important;
    justify-self: start;
    align-self: center;
    min-width: 0;
    max-width: 170px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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


/* v34: form scrollbar, focus crop, and native icon alignment fixes */

/* Hide the visible scrollbar in the Log/Edit form while keeping scrolling usable */
.sheet,
#shootForm {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* Give focus rings room so they are not clipped by the scroll container */
#shootForm {
  padding-left: 5px;
  padding-right: 5px;
  margin-left: -5px;
  margin-right: -5px;
}

/* Keep fields visually aligned after adding focus-ring safety padding */
#shootForm > label,
#shootForm > .grid-2,
#shootForm > .status-box,
#shootForm > .company-toggle {
  margin-left: 0;
  margin-right: 0;
}

/* Use an inside + subtle outside focus treatment so blue highlight is never cropped */
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);
}

/* Better native calendar/time icon spacing */
input[type="date"],
input[type="time"] {
  min-height: 52px;
  padding-right: 44px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  margin-right: 2px;
  padding: 6px;
  cursor: pointer;
  opacity: 0.9;
}

/* On smaller screens, prevent focus rings from touching the sheet edge */
@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;
  }
}


/* v36 task checklist replaces manual status selection */
.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;
}

@media print {
  .task-box {
    display: none;
  }
}


/* v37: better dropdown arrow spacing */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 25px) 50%,
    calc(100% - 18px) 50%;
  background-size:
    7px 7px,
    7px 7px;
  background-repeat: no-repeat;
}

select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
}


/* v38: restore native dropdown arrow, only add safe text padding */
select {
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: auto;
  background-image: none !important;
  background-position: initial !important;
  background-size: initial !important;
  background-repeat: initial !important;
  padding-left: 16px;
  padding-right: 34px;
}

select:focus {
  background-image: none !important;
}


/* v39: clean custom dropdown chevron, replacing native edge-aligned arrow */
select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-left: 16px;
  padding-right: 46px;
  background-color: var(--surface);
  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-repeat: no-repeat !important;
  background-size: 18px 18px !important;
  background-position: right 18px center !important;
}

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;
}


/* v40: clean date/time picker icons inside Log/Edit form */
input[type="date"],
input[type="time"] {
  padding-right: 46px;
  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"] {
  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;
}

/* Keep the native picker clickable, but visually replace its icon */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 42px;
  height: 100%;
  margin: 0;
  padding: 0;
}
