/* Report form theme — ports the IDEAL Slider design language.
   Dark aurora chrome on the page; clean white form card on top with clinical-blue accents. */

:root {
  /* Form internals — clinical blue on white card */
  --bg-light: #E8F0FA;
  --surface: #FFFFFF;
  --surface-2: #E5EDF7;
  --text: #0F172A;
  --text-muted: #4D6485;
  --text-faint: #8DA3C2;
  --border: #D4E1F0;
  --border-strong: #B7CCE3;
  --border-blue: #BFD9F4;

  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #DBEAFE;
  --accent-softer: #EFF6FF;

  --red: #DC2626;
  --green: #059669;
  --bronze: #b87253;

  --shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);

  --r-card: 12px;
  --r-input: 8px;
  --r-chip: 6px;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cinzel', serif;

  /* Dark chrome — topbar / body bg */
  --dark-bg-0: #0d1c1f;
  --dark-bg-1: #142528;
  --dark-text: #efe9dd;
  --dark-muted: #9a9285;
  --gold: #c8a96a;
  --gold-bright: #d4b888;
  --line-warm: rgba(200, 169, 106, 0.12);
  --line-warm-strong: rgba(200, 169, 106, 0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--dark-bg-0);
  color: var(--dark-text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Aurora ---------- */
.aurora { position: fixed; inset: -10%; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.aurora .b1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle at center, #2E5960 0%, transparent 70%);
  top: -180px; left: -160px; opacity: 0.45;
  animation: drift1 28s ease-in-out infinite;
}
.aurora .b2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, #c8a96a 0%, transparent 70%);
  top: 30%; right: -160px; opacity: 0.20;
  animation: drift2 34s ease-in-out infinite;
}
.aurora .b3 {
  width: 580px; height: 580px;
  background: radial-gradient(circle at center, #b87253 0%, transparent 70%);
  bottom: -200px; left: 30%; opacity: 0.18;
  animation: drift3 40s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px,40px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-50px) scale(1.12); } }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 28px;
  background: rgba(13, 28, 31, 0.55);
  border-bottom: 1px solid var(--line-warm);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: inherit;
}
.brand-prefix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-right: 12px;
  border-right: 1px solid var(--line-warm-strong);
  text-shadow: 0 0 24px rgba(200, 169, 106, 0.25);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.10em;
  color: var(--dark-text);
}
.brand-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 3px 9px;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  background: rgba(29, 52, 56, 0.55);
}
a.brand:hover .brand-text,
a.brand:hover .brand-prefix { color: var(--gold-bright); }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 52, 56, 0.5);
  border: 1px solid var(--line-warm);
  color: var(--dark-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}
.topbar .back-link:hover {
  background: rgba(29, 52, 56, 0.8);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line-warm));
  color: var(--gold);
}
.topbar .back-link svg { width: 14px; height: 14px; stroke-width: 2; }

/* ---------- Main ---------- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  position: relative;
  z-index: 1;
}

/* Page head — sits above the white form card */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-warm);
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dark-text);
  text-shadow: 0 0 28px rgba(200, 169, 106, 0.18);
}

/* ---------- Form card ---------- */
.spec-form {
  background: var(--surface);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-card);
  padding: 28px 32px 24px;
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.55),
    0 6px 14px -8px rgba(0, 0, 0, 0.35);
  position: relative;
  color: var(--text);
}

/* Section divider — clinical blue, quiet, tracked uppercase */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-blue);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.section-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Field grid — responsive auto-fit */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}
.field-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field.full { grid-column: 1 / -1; }
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.field-label u { text-decoration-color: var(--accent); }
.field-label .field-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 11px;
}
.req-mark {
  color: var(--red);
  margin-left: 4px;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--surface);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%234D6485' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Input with trailing unit */
.input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-suffix input { padding-right: 78px; }
.input-suffix .suffix {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-faint);
  pointer-events: none;
}

/* ---------- Radios — clean pill cards ---------- */
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.12s ease;
}
.radio:hover { border-color: var(--border-blue); background: var(--accent-softer); }
.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
}
.radio input[type="radio"]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0% 45%, transparent 50%);
}
.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---------- Checkboxes ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.12s ease;
}
.check:hover { border-color: var(--border-blue); background: var(--accent-softer); }
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  margin: 0;
}
.check input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-softer);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---------- Replacement-panel toggle ---------- */
.toggle-section {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(184, 114, 83, 0.08);
  border: 1px solid rgba(184, 114, 83, 0.35);
  border-radius: var(--r-input);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
}
.toggle-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.toggle input[type="checkbox"]:checked + .toggle-box {
  background: var(--bronze);
  border-color: var(--bronze);
}
.toggle input[type="checkbox"]:checked + .toggle-box::after {
  content: '';
  position: absolute;
  top: 2px; left: 6px;
  width: 5px; height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.toggle-label { flex: 1; }
.toggle-sub {
  margin-top: 6px;
  margin-left: 32px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.hidden { display: none; }

/* Replacement section uses bronze accent on its section-head */
#replacementBlock .section-head { border-bottom-color: rgba(184, 114, 83, 0.45); }
#replacementBlock .section-head h2 { color: var(--bronze); }

/* ---------- File drop ---------- */
.file-drop {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-input);
  padding: 22px;
  text-align: center;
  background: var(--accent-softer);
  transition: all 0.12s ease;
  cursor: pointer;
  position: relative;
}
.file-drop:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop .drop-icon { color: var(--accent); margin-bottom: 8px; }
.file-drop .drop-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.file-drop .drop-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.file-drop .drop-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.file-list {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
}
.file-list .file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.file-list .file:last-child { border-bottom: none; }
.file-list .file .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-list .file .size { color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ---------- Action bar ---------- */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-blue);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-input);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled, .btn[disabled] {
  background: var(--border-strong);
  border-color: var(--border-strong);
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--r-input);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-blue); }

/* ---------- Status / messages ---------- */
.status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r-input);
  font-size: 13px;
  display: none;
}
.status.show { display: block; }
.status.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.30);
  color: var(--red);
}
.status.success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.30);
  color: var(--green);
}

/* ---------- Success screen ---------- */
.success-screen {
  background: var(--surface);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-card);
  padding: 48px 28px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55), 0 6px 14px -8px rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.success-screen .check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-screen .check svg { width: 30px; height: 30px; stroke-width: 2.5; }
.success-screen h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.success-screen p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 440px;
}
.success-screen .action-bar { justify-content: center; max-width: 420px; margin: 0 auto; border-top: none; padding-top: 0; }

@media (max-width: 720px) {
  main { padding: 24px 14px 50px; }
  .topbar { padding: 0 16px; height: 54px; }
  .brand-prefix { font-size: 16px; padding-right: 10px; }
  .brand-text { font-size: 15px; }
  .brand-tag { display: none; }
  .spec-form { padding: 22px 18px 18px; }
  .page-head h1 { font-size: 21px; }
  .field-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .action-bar { flex-direction: column-reverse; align-items: stretch; }
  .action-bar .btn, .action-bar .btn-ghost { width: 100%; }
  .tickets-table { font-size: 12px; }
  .tickets-table thead th,
  .tickets-table tbody td { padding: 10px 12px; }
  .tickets-table .reported { display: none; }
}

/* ============================================================
   Adjustment Ticket Dashboard styles
   ============================================================ */

.loading {
  text-align: center;
  color: var(--dark-muted);
  padding: 64px 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-error {
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.40);
  border-radius: var(--r-input);
  color: #fca5a5;
  font-size: 13px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-head .crumb {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--dark-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-warm);
  background: rgba(29, 52, 56, 0.5);
  transition: all 0.18s ease;
}
.page-head .crumb:hover {
  color: var(--gold);
  border-color: var(--line-warm-strong);
}
.page-head .spacer { flex: 0 0 auto; width: 1px; }
.page-head .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-bg-0);
  box-shadow: 0 0 24px -8px rgba(200, 169, 106, 0.55);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
}
.page-head .btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  filter: brightness(1.04);
}

.page-head .me-indicator {
  color: rgba(220, 230, 240, 0.65);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.page-head .me-indicator .me-signed {
  color: rgba(220, 230, 240, 0.85);
}
.page-head .me-indicator .me-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.page-head .me-indicator .me-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-warm);
}
.badge-open {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}
.badge-done {
  color: var(--dark-muted);
  border-color: var(--line-warm-strong);
  background: rgba(29, 52, 56, 0.55);
}

.ticket-section {
  margin-bottom: 28px;
}
.section-bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 2px 6px;
  border-bottom: 1px solid var(--line-warm);
}
.section-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.section-count {
  font-size: 11px;
  color: var(--dark-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tickets-wrap { margin: 0; }

.tickets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, rgba(29, 52, 56, 0.78) 0%, rgba(13, 28, 31, 0.55) 100%);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  color: var(--dark-text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tickets-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding: 14px 16px;
  background: rgba(13, 28, 31, 0.45);
  border-bottom: 1px solid var(--line-warm-strong);
}
.tickets-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-warm);
  vertical-align: middle;
  color: var(--dark-text);
}
.tickets-table tbody td.muted { color: var(--dark-muted); }
.tickets-table tbody td.strong { color: var(--dark-text); font-weight: 700; }
.tickets-table tbody td.nowrap { white-space: nowrap; }
.tickets-table tbody td.reported {
  color: var(--dark-muted);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tickets-table tbody tr:last-child td { border-bottom: none; }
.tickets-table tbody tr.row-link { cursor: pointer; transition: background 0.18s; }
.tickets-table tbody tr.row-link:hover {
  background: rgba(200, 169, 106, 0.08);
}
.tickets-table tbody tr.row-link:hover td.muted { color: var(--dark-text); }

.empty-state {
  background: linear-gradient(180deg, rgba(29, 52, 56, 0.55) 0%, rgba(13, 28, 31, 0.40) 100%);
  border: 1px dashed var(--line-warm-strong);
  border-radius: var(--r-card);
  padding: 32px 24px;
  text-align: center;
  color: var(--dark-muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.empty-state p { margin: 0 0 14px; }
.empty-state .btn-ghost {
  background: rgba(29, 52, 56, 0.5);
  color: var(--dark-muted);
  border-color: var(--line-warm-strong);
}
.empty-state .btn-ghost:hover {
  background: rgba(29, 52, 56, 0.8);
  color: var(--gold);
  border-color: var(--gold);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}
.pag-info {
  flex: 1;
  font-size: 12px;
  color: var(--dark-muted);
  letter-spacing: 0.06em;
}
.btn-sm {
  font-size: 12px;
  padding: 7px 12px;
}
.pagination .btn-ghost {
  background: rgba(29, 52, 56, 0.5);
  color: var(--dark-muted);
  border-color: var(--line-warm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pagination .btn-ghost:hover:not(:disabled) {
  background: rgba(29, 52, 56, 0.8);
  color: var(--gold);
  border-color: var(--gold);
}
.pagination .btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field-hint {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.4;
}

.audit-line {
  margin: 18px 0 6px;
  padding: 10px 14px;
  background: var(--accent-softer);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-input);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Photo gallery inside the edit form */
.photos-wrap { display: flex; flex-direction: column; gap: 14px; }
.photos-existing-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.photos-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
}
.photo-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .no-url {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px;
  text-align: center;
}

