.track-page {
  --track-ink: #173b55;
  --track-blue: #168fc0;
  --track-blue-deep: #0879a9;
  --track-paper: #f8f7f1;
  --track-card: #fffefa;
  --track-muted: #587081;
  --track-line: #d9e3e4;
  --track-sage: #e7eee5;
  --track-sand: #f3e8d7;
  --track-coral: #bd765d;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--track-ink);
  background:
    radial-gradient(ellipse at 87% 14%, rgba(225, 239, 237, .72), transparent 33rem),
    var(--track-paper);
  font-family: "SOS Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  position: relative;
  isolation: isolate;
  padding: 0 0 34px;
}
.track-page *, .track-page *::before, .track-page *::after { box-sizing: border-box; }
.track-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}
.track-page a { color: inherit; }
.track-page button, .track-page input, .track-page textarea { font: inherit; }
.track-page :focus-visible { outline: 3px solid var(--track-coral); outline-offset: 3px; }
.track-shell { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.track-topbar {
  width: min(1120px, calc(100% - 64px));
  min-height: 94px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(23,59,85,.11);
}
.track-brand img { display: block; width: 192px; height: auto; }
.track-home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid #cad9dc;
  border-radius: 999px;
  background: rgba(255,254,250,.72);
  color: var(--track-ink);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.track-home-link:hover { background: var(--track-card); border-color: #82b9ca; transform: translateY(-1px); }
.track-main { padding: 34px 0 0; }
.track-security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 auto 20px;
  padding: 14px 17px;
  border: 1px solid #e6dfcf;
  border-inline-start: 3px solid var(--track-coral);
  border-radius: 4px 14px 14px 4px;
  background: rgba(255,254,250,.83);
  color: #536c78;
  font-size: 14px;
  line-height: 1.75;
}
.track-security-note svg { flex: 0 0 auto; color: #a76f4c; margin-top: 4px; }
.track-card {
  margin-bottom: 17px;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid #d9e4e3;
  border-radius: 22px;
  background: var(--track-card);
  box-shadow: 0 10px 30px rgba(36,72,83,.055);
  animation: track-in .45s ease both;
}
.track-intro { text-align: center; margin-bottom: 27px; }
.track-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--track-blue-deep);
  background: #e7f4f8;
  border: 1px solid #c8e2e9;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
}
.track-eyebrow-mark { width: 7px; height: 7px; border-radius: 50%; background: #319a82; }
.track-title {
  margin: 13px 0 5px;
  color: #153d59;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.5;
}
.track-subtitle { color: #536d7b; font-size: 15px; line-height: 1.8; max-width: 580px; margin: 0 auto; }
.track-form-group { margin: 23px 0 15px; }
.track-form-group label { display: block; color: #244b62; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.track-input, .track-textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #bdced0;
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--track-ink);
  background: #fff;
  direction: inherit;
  text-align: start;
}
.track-input { text-align: center; font-family: ui-monospace, "Courier New", monospace !important; letter-spacing: .08em; }
.track-input::placeholder, .track-textarea::placeholder { color: #82939a; opacity: 1; }
.track-input:focus-visible, .track-textarea:focus-visible { outline: 3px solid rgba(22,143,192,.28); border-color: var(--track-blue); outline-offset: 1px; }
.track-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  background: var(--track-blue-deep);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.track-button:hover { background: #08678f; transform: translateY(-1px); }
.track-button:disabled { opacity: .7; cursor: wait; transform: none; }
.track-button-wide { width: 100%; }
.track-error {
  padding: 13px 15px;
  margin: 0 0 18px;
  border: 1px solid #e6b7a7;
  border-radius: 12px;
  background: #fff2ec;
  color: #7d382b;
  line-height: 1.7;
}
.track-form-hint { margin: 18px 0 0; text-align: center; color: #66808d; font-size: 14px; line-height: 1.75; }
.track-ref {
  padding: 17px;
  margin-bottom: 17px;
  border: 1px solid #c8e2e9;
  border-radius: 15px;
  background: #eaf5f5;
  text-align: center;
}
.track-ref-label, .track-info-label { display: block; margin-bottom: 5px; color: #557080; font-size: 13px; font-weight: 650; }
.track-ref-value {
  display: block;
  color: #153d59;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.track-status {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  margin-bottom: 17px;
  border: 1px solid #e3d6b4;
  border-radius: 15px;
  background: #f8f2e3;
}
.track-status-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; background: #fffaf0; color: #9a7041; }
.track-status-icon svg { width: 23px; height: 23px; }
.track-status.status-under_investigation { background: #eaf3f5; border-color: #c8dfe4; }
.track-status.status-under_investigation .track-status-icon { background: #f5fbfa; color: #287d91; }
.track-status.status-case_complete { background: #edf3e9; border-color: #cfddc8; }
.track-status.status-case_complete .track-status-icon { background: #f9fcf5; color: #5f805d; }
.track-status.status-not_processed { background: #f1f1eb; border-color: #ddded5; }
.track-status.status-not_processed .track-status-icon { background: #fafaf5; color: #6d7772; }
.track-status-title { margin: 0; color: #365a51; font-size: 16px; line-height: 1.65; }
.track-status-date { display: block; margin-top: 2px; color: #647a7d; font-size: 13px; line-height: 1.6; }
.track-info-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.track-info-item { min-width: 0; padding: 14px 16px; border: 1px solid #e1e8e1; border-radius: 13px; background: #f5f6ee; }
.track-info-value { color: #244b62; font-size: 15px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.track-priority { display: inline-flex; align-items: center; gap: 7px; }
.track-priority-mark { width: 9px; height: 9px; border-radius: 50%; background: #63906e; }
.track-priority-high .track-priority-mark { background: #c98754; }
.track-priority-urgent .track-priority-mark { background: #b96645; }
.track-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e6dfcf;
  border-radius: 13px;
  background: #fbf6eb;
  color: #536c78;
  font-size: 14px;
  line-height: 1.75;
}
.track-notice svg { flex: 0 0 auto; color: #a76f4c; margin-top: 3px; }
.track-section-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; color: #244b62; font-size: 19px; line-height: 1.55; }
.track-section-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #e7f1ed; color: #368174; }
.track-section-icon svg { width: 21px; height: 21px; }
.track-thread { display: flex; flex-direction: column; gap: 13px; }
.track-message { padding: 17px; border: 1px solid #c8dfe4; border-radius: 16px; background: #f1f7f6; }
.track-message-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 9px; }
.track-message-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 11px; color: #286879; background: #e0eff0; font-size: 13px; font-weight: 700; }
.track-message-badge svg { width: 15px; height: 15px; }
.track-message-badge.is-closing { background: #e8efe3; color: #52714e; }
.track-message-date, .track-reporter-date { color: #71848a; font-size: 13px; line-height: 1.6; }
.track-message-body, .track-reporter-body { color: #284b5a; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.track-message-body { margin-bottom: 13px; }
.track-reporter {
  margin: 12px 18px 12px 0;
  padding: 13px 15px;
  border-inline-start: 3px solid #7fac91;
  border-radius: 4px 13px 13px 4px;
  background: #edf3e9;
}
.track-reporter-label { margin-bottom: 5px; color: #52714e; font-size: 13px; font-weight: 700; }
.track-reporter-date { margin-top: 6px; }
.track-reply-toggle, .track-reply-cancel {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #a8c7ca;
  border-radius: 999px;
  background: #fffefa;
  color: #176f81;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.track-reply-toggle:hover, .track-reply-cancel:hover { background: #e8f3f1; }
.track-reply-form { display: none; margin-top: 12px; padding: 15px; border: 1px solid #d5e1df; border-radius: 14px; background: #fffefa; }
.track-reply-form.is-open { display: block; }
.track-reply-form label { display: block; color: #244b62; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.track-textarea { min-height: 112px; resize: vertical; line-height: 1.75; }
.track-reply-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.track-reply-submit { min-height: 44px; padding: 9px 17px; border-radius: 11px; font-size: 14px; }
.track-reply-cancel { border-radius: 11px; color: #536d7b; border-color: #d1dcdb; }
.track-empty { padding: 25px 20px; border: 1px dashed #cddbd7; border-radius: 15px; background: #f7f7ef; text-align: center; color: #536d7b; }
.track-empty-icon { width: 45px; height: 45px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 16px; background: #e7f1ed; color: #368174; }
.track-empty-icon svg { width: 22px; height: 22px; }
.track-empty-title { margin: 0 0 4px; color: #244b62; font-size: 16px; font-weight: 700; }
.track-empty-text { margin: 0; font-size: 14px; line-height: 1.75; }
.track-actions { display: flex; flex-direction: column; align-items: center; gap: 13px; margin: 22px 0 0; }
.track-close-form { width: min(430px, 100%); }
.track-close-button { background: #fffefa; border: 1px solid #bdcfcf; color: #315e69; }
.track-close-button:hover { background: #eef4f0; }
.track-home-bottom { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border-radius: 10px; color: #176f91 !important; text-decoration: underline; text-decoration-color: #a4c5cd; text-underline-offset: 5px; }
.track-home-bottom:hover { background: rgba(219,238,240,.45); }
.track-toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  width: max-content;
  max-width: min(90vw, 480px);
  padding: 13px 19px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 13px;
  background: #173b55;
  color: #fffefa;
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.track-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes track-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .track-shell { width: min(100% - 36px, 520px); }
  .track-topbar { width: calc(100% - 36px); min-height: 78px; }
  .track-brand img { width: 148px; }
  .track-home-link { padding: 8px 12px; font-size: 14px; }
  .track-main { padding-top: 21px; }
  .track-security-note { margin-bottom: 14px; padding: 12px 13px; font-size: 13px; }
  .track-card { border-radius: 18px; margin-bottom: 13px; }
  .track-intro { margin-bottom: 20px; }
  .track-info-row { gap: 9px; }
  .track-info-item { padding: 12px; }
  .track-status { grid-template-columns: 38px 1fr; gap: 11px; padding: 15px; }
  .track-status-icon { width: 38px; height: 38px; border-radius: 13px; }
  .track-status-title { font-size: 15px; }
  .track-message { padding: 14px; }
  .track-reporter { margin-inline-end: 9px; }
  .track-actions { margin-top: 16px; }
}
@media (max-width: 390px) {
  .track-brand img { width: 126px; }
  .track-home-link { gap: 5px; padding-inline: 9px; }
  .track-info-row { grid-template-columns: 1fr; }
  .track-reply-actions { flex-direction: column; }
  .track-reply-actions > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .track-page *, .track-page *::before, .track-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
