:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #132f4c;
  background: #f3f6f8;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  --navy: #0b2340;
  --navy-2: #173d61;
  --red: #b4232f;
  --line: #cbd5df;
  --muted: #536779;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f6f8; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button, input, select, textarea { border: 1px solid #aebdca; border-radius: 5px; }
input, select, textarea { width: 100%; min-width: 0; padding: 11px 12px; background: #fff; color: #132f4c; }
textarea { resize: vertical; }
button { min-height: 44px; padding: 10px 16px; background: #fff; color: #132f4c; font-weight: 700; }
button:hover:not(:disabled) { background: #e8eef4; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #25a0a4; outline-offset: 2px; }
.primary { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.primary:hover:not(:disabled) { background: #0d3154; }
a { color: #155a8a; }
h1, h2, p { margin-top: 0; }
h1 { margin: 0; color: #fff; font-size: 30px; line-height: 1.12; }
h2 { margin: 28px 0 13px; color: var(--navy); font-size: 18px; line-height: 1.3; }
label { display: block; margin: 0 0 19px; font-weight: 700; }
label input, label select, label textarea { display: block; margin-top: 7px; font-weight: 400; }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; flex: 0 0 19px; margin: 0; accent-color: var(--navy-2); }
[hidden] { display: none !important; }

.tips-brand { border-bottom: 4px solid #d22a35; background: var(--navy); color: #fff; }
.tips-brand-inner { display: flex; align-items: center; gap: 20px; width: min(100% - 48px, 1020px); margin: 0 auto; padding: 22px 0; }
.tips-brand img { width: 82px; height: 82px; flex: 0 0 82px; object-fit: cover; border: 3px solid rgba(255,255,255,.88); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.tips-brand p { margin: 0 0 3px; color: #dbe5ef; font-size: 15px; font-weight: 700; }
.tips-brand .tips-tagline { margin: 6px 0 0; color: #fff; font-size: 15px; font-weight: 400; }
main { width: min(100% - 48px, 1020px); margin: 0 auto; padding: 18px 0 52px; }
.emergency-banner { margin: 0 0 16px; padding: 12px 18px; border: 1px solid #df7a81; border-radius: 5px; background: #fff8f8; color: #8e1822; text-align: center; }
.emergency-banner strong { font-size: 17px; }
.emergency-banner p { margin: 3px 0 0; font-size: 14px; }
.emergency-banner a { color: inherit; }
#crime-tip-form { padding: 5px 28px 30px; border: 1px solid #d8e0e7; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(18,42,64,.07); }
.tip-step { min-width: 0; margin: 0; padding: 26px 0 8px; border: 0; border-top: 1px solid var(--line); }
.tip-step:first-child { border-top: 0; }
.tip-step legend { padding: 0 18px 0 0; color: var(--navy); font-size: 21px; font-weight: 800; }
.tip-step:disabled { opacity: .62; }
.radio-options { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-bottom: 22px; }
.radio-options label { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 500; }
.field p { margin-bottom: 10px; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.location-grid { grid-template-columns: 2fr 1fr 1fr; }
.incident-grid { grid-template-columns: 1.35fr 1fr 1fr; }
.file-upload { padding: 20px; border: 1px dashed #8fa4b7; border-radius: 5px; background: #f8fafc; text-align: center; }
.file-upload input { padding: 10px; border: 0; background: transparent; }
.error, #tip-submit-status:not(:empty) { padding: 12px; border-left: 3px solid var(--red); background: #fff0f0; color: #80202b; }
.error:empty { display: none; }
.muted { color: var(--muted); font-size: 14px; }
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #d9e1e7; overflow-wrap: anywhere; }
.file-list button { flex-shrink: 0; }
.tip-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#tip-submit { width: 100%; min-height: 52px; margin-top: 8px; font-size: 17px; }
#tip-receipt { padding: 28px; border-top: 4px solid #197b62; background: #fff; box-shadow: 0 10px 28px rgba(18,42,64,.07); }
#tip-reference { overflow-wrap: anywhere; }

.tips-private { background: #fff; }
.tips-private .tips-brand-inner { width: 100%; padding: 14px 20px; }
.tips-private .tips-brand img { width: 48px; height: 48px; flex-basis: 48px; }
.tips-private h1 { font-size: 23px; }
.tips-private main { width: 100%; max-width: none; padding: 18px 20px; }
.tips-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid #d9e1e7; }
.tips-toolbar label { min-width: 180px; margin: 0; }
.tips-toolbar span { margin-left: auto; padding-bottom: 10px; }
.tips-workspace { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.tips-queue, #tip-detail { min-width: 0; }
.tip-list-button { display: block; width: 100%; padding: 14px 12px; border: 0; border-bottom: 1px solid #d9e1e7; border-radius: 0; text-align: left; font-weight: 400; }
.tip-list-button.selected { border-left: 4px solid #196591; background: #e7f1fa; }
.tip-list-button strong, .tip-list-button span { display: block; overflow-wrap: anywhere; }
.tip-list-button small, .tip-notes small { color: var(--muted); }
.tip-status { color: #8d3720; font-size: 13px; text-transform: capitalize; }
.tip-status.status-new { color: #b4232f; font-weight: 800; }
.tip-status.status-assigned { color: #9a5b08; font-weight: 800; }
.tip-status.status-rejected, .tip-status.status-unfounded { color: #7b3540; }
.tip-status.status-founded { color: #176b4d; font-weight: 800; }
.tips-pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.tips-pagination button { width: 44px; padding: 8px; }
#tip-detail h2 { margin-top: 0; }
.tip-information { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.tip-information dt { color: #5a6c7a; font-size: 13px; font-weight: 700; }
.tip-information dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tip-full { grid-column: 1 / -1; }
.tip-assignees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 240px; padding: 12px 0; overflow: auto; }
.tip-assignees label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; }
.tip-notes article { padding: 12px 0; border-bottom: 1px solid #d9e1e7; }
.tip-notes article p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tip-detail-actions { display: flex; align-items: center; gap: 12px; }
.tip-detail-actions p { margin: 0; }
.tip-files a, .tip-files li { overflow-wrap: anywhere; }
.tip-files li { padding: 6px 0; }

@media (max-width: 700px) {
  .tips-brand-inner, main { width: min(100% - 32px, 1020px); }
  .tips-brand-inner { gap: 13px; padding: 17px 0; }
  .tips-brand img { width: 60px; height: 60px; flex-basis: 60px; }
  h1 { font-size: 24px; }
  .tips-brand p, .tips-brand .tips-tagline { font-size: 12px; }
  main, .tips-private main { padding-top: 14px; }
  #crime-tip-form { padding: 4px 17px 24px; }
  .field-grid, .incident-grid, .tip-information, .tip-assignees { grid-template-columns: 1fr; gap: 0; }
  .location-grid { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .location-grid label:first-child { grid-column: 1 / -1; }
  .tips-workspace { grid-template-columns: 1fr; }
  .tips-queue { max-height: 350px; padding-bottom: 16px; overflow: auto; border-bottom: 1px solid #bbc8d2; }
  .tips-toolbar span { margin-left: 0; }
  .radio-options { flex-direction: column; gap: 14px; }
  .tip-detail-actions { flex-direction: column; align-items: start; }
}

@media (max-width: 420px) {
  .tips-brand-inner, main { width: min(100% - 24px, 1020px); }
  .tips-brand img { width: 54px; height: 54px; flex-basis: 54px; }
  h1 { font-size: 21px; }
  .tips-brand p { font-size: 11px; }
  .tips-brand .tips-tagline { display: none; }
  .location-grid { grid-template-columns: 1fr; gap: 0; }
  .location-grid label:first-child { grid-column: auto; }
  .file-list li { align-items: stretch; flex-direction: column; }
  .file-list button { width: 100%; }
}
