:root{
  --bg:#f4f6f8;
  --surface:#ffffff;
  --surface-soft:#f8fafb;
  --text:#17202a;
  --muted:#66717d;
  --line:#dce2e7;
  --dark:#17202a;
  --accent:#254f77;
  --accent-soft:#eaf1f7;
  --good:#256545;
  --good-bg:#eaf6ef;
  --warn:#8a5a0a;
  --warn-bg:#fff4da;
  --danger:#8b3131;
  --danger-bg:#fbecec;
  --resolved:#52606d;
  --resolved-bg:#eef1f3;
  --radius:12px;
  --shadow:0 10px 30px rgba(18,33,50,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
button:disabled{opacity:.62;cursor:not-allowed;transform:none!important}
.shell{width:min(1180px,calc(100% - 40px));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.header-inner{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
}

.brand-mark{
  width:38px;
  height:34px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:var(--dark);
  color:#fff;
  font-weight:800;
  font-size:12px;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-copy strong{font-size:15px;letter-spacing:.01em}
.brand-copy small{font-size:11px;color:var(--muted);margin-top:3px}

.nav{
  display:flex;
  align-items:center;
  gap:19px;
  font-size:13px;
}

.nav>a:not(.button){color:#4c5863}
.nav>a:hover{color:var(--text)}

.button{
  border:0;
  border-radius:8px;
  padding:10px 15px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:.18s ease;
}

.button:hover{transform:translateY(-1px)}
.button-dark{background:var(--dark);color:#fff}
.button-primary{background:var(--accent);color:#fff}
.button-light{background:#edf1f4;color:var(--text)}
.header-button{display:inline-flex;align-items:center;justify-content:center}
.compact-button{margin-top:11px;padding:8px 12px}

.account-link{
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800;
  color:var(--text)!important;
}

.intro{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:42px 0 36px;
}

.intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.55fr);
  gap:54px;
  align-items:end;
}

.eyebrow{
  margin:0 0 7px;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:11px;
  font-weight:800;
  color:var(--accent);
}

h1,h2,h3,p{margin-top:0}

h1{
  margin-bottom:13px;
  max-width:760px;
  font-size:clamp(31px,4vw,46px);
  line-height:1.08;
  letter-spacing:-.035em;
}

.intro-copy{
  max-width:735px;
  margin-bottom:0;
  color:var(--muted);
  font-size:15px;
}

.access-summary{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-soft);
  padding:17px;
}

.access-summary strong{font-size:15px;margin-top:4px}
.access-summary small{color:var(--muted);font-size:12px;margin-top:3px}

.access-state{
  display:inline-flex;
  border-radius:999px;
  padding:5px 8px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:#edf1f4;
  color:#5d6974;
}

.access-state.active{
  background:var(--good-bg);
  color:var(--good);
}

.access-state.pending{
  background:var(--warn-bg);
  color:var(--warn);
}

.search-section{padding:32px 0}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:16px;
}

.section-heading.compact{align-items:center}

.section-heading h2{
  font-size:23px;
  margin-bottom:0;
  letter-spacing:-.02em;
}

.section-heading>p,
.section-heading .muted{
  max-width:500px;
  margin-bottom:0;
  color:var(--muted);
  font-size:12px;
}

.search-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.search-form input{
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  padding:8px 10px;
  color:var(--text);
}

.search-form input::placeholder{color:#8c97a1}

.filter-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0 20px;
}

.filter{
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--muted);
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.filter.active{
  background:var(--accent-soft);
  border-color:#c7d8e8;
  color:var(--accent);
}

.search-message{
  font-size:13px;
  color:var(--muted);
  min-height:20px;
  margin-bottom:8px;
}

.sample-notice{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:12px;
  font-size:12px;
  color:var(--muted);
}

.sample-notice strong{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:10px;
}

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

.record{
  display:grid;
  grid-template-columns:minmax(220px,1.15fr) minmax(150px,.7fr) minmax(130px,.55fr) auto;
  gap:18px;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px 16px;
}

.record:hover{
  border-color:#c7d0d8;
  box-shadow:0 7px 20px rgba(18,33,50,.05);
}

.sample-records .record:hover{
  box-shadow:none;
}

.record-main{min-width:0}

.record-type{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
  margin-bottom:3px;
  font-weight:800;
}

.record-identifier{
  overflow-wrap:anywhere;
}

.record-meta,
.record-date{
  font-size:13px;
  color:var(--muted);
}

.record-meta strong{
  display:block;
  color:var(--text);
  font-size:13px;
  margin-bottom:2px;
}

.record-status-column{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}

.status{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:800;
}

.status.verified{background:var(--good-bg);color:var(--good)}
.status.review{background:var(--warn-bg);color:var(--warn)}
.status.reported{background:var(--danger-bg);color:var(--danger)}
.status.disputed,.status.resolved{background:var(--resolved-bg);color:var(--resolved)}

.demo-label{
  font-size:10px;
  font-weight:800;
  color:#7c8791;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.record-action{
  border:0;
  background:transparent;
  color:var(--accent);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
  padding:6px;
}

.preview-actions{
  display:flex;
  gap:9px;
  margin-top:16px;
}

.content-section{
  padding:32px 0;
  border-top:1px solid var(--line);
}

.access-section{
  background:var(--surface);
}

.access-options{
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.access-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px 150px;
  gap:20px;
  align-items:center;
  padding:16px;
  border-bottom:1px solid var(--line);
}

.access-row:last-child{border-bottom:0}

.access-row>div:first-child{
  display:flex;
  flex-direction:column;
}

.access-row>div:first-child strong{
  font-size:14px;
}

.access-row>div:first-child span{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.price{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.price strong{font-size:16px}

.price span{
  color:var(--muted);
  font-size:11px;
}

.access-row-action{
  display:flex;
  justify-content:flex-end;
}

.brief-section{
  background:#f8fafb;
}

.brief-line{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.brief-line h2{
  margin-bottom:0;
  font-size:18px;
  line-height:1.35;
}

.brief-line>p{
  color:var(--muted);
  font-size:13px;
  margin-bottom:0;
}

.site-footer{
  background:#111820;
  color:#dce2e7;
  padding:22px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  font-size:12px;
}

.footer-inner>div:first-child{
  display:flex;
  gap:12px;
  align-items:center;
}

.footer-inner span{color:#8e9aa6}
.footer-links{display:flex;gap:20px;color:#aeb8c2}

dialog{
  width:min(680px,calc(100% - 28px));
  border:0;
  padding:0;
  border-radius:14px;
  box-shadow:0 30px 100px rgba(0,0,0,.28);
}

#recordDialog{
  width:min(780px,calc(100% - 28px));
}

dialog::backdrop{
  background:rgba(11,17,23,.62);
}

.dialog-card{
  padding:22px;
  background:var(--surface);
}

.dialog-header{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.dialog-header h2{
  font-size:24px;
  margin-bottom:0;
  overflow-wrap:anywhere;
}

.icon-button{
  width:34px;
  height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.form-grid label{
  display:grid;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:#46515c;
}

.form-grid .full{grid-column:1/-1}

.form-grid input,
.form-grid select,
.form-grid textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 11px;
  outline:none;
  background:#fff;
  color:var(--text);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus{
  border-color:#7999b7;
  box-shadow:0 0 0 3px #edf4fa;
}

.check{
  grid-template-columns:auto 1fr!important;
  align-items:start;
  font-weight:500!important;
}

.check input{
  width:auto;
  margin-top:3px;
}

.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:18px;
}

.form-message{
  min-height:20px;
  margin-top:12px;
  font-size:13px;
}

.form-message.error{color:var(--danger)}
.form-message.success{color:var(--good)}

.record-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
}

.record-summary>div{
  padding:12px;
  background:var(--surface-soft);
  border-right:1px solid var(--line);
}

.record-summary>div:last-child{border-right:0}

.summary-label{
  display:block;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:3px;
}

.record-summary strong{font-size:13px}

.record-notice{
  font-size:12px;
  color:var(--muted);
  background:#f6f8fa;
  border-left:3px solid #9aabb9;
  padding:10px 12px;
  margin-bottom:14px;
}

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

.incident{
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px;
}

.incident-heading{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:start;
}

.incident-heading>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.incident-heading strong{font-size:14px}

.incident-heading span:not(.status){
  font-size:12px;
  color:var(--muted);
}

.incident p{
  font-size:13px;
  color:#46515c;
  margin:11px 0 0;
  white-space:pre-wrap;
}

.empty-state{
  border:1px dashed #c9d2da;
  border-radius:10px;
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
  background:rgba(255,255,255,.5);
}

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

@media (max-width:960px){
  .nav{gap:11px}
  .nav>a:not(.button):not(.account-link){display:none}
  .intro-grid{grid-template-columns:1fr;gap:24px}
}

@media (max-width:860px){
  .record{grid-template-columns:1fr auto}
  .record-meta,.record-date{grid-column:1/2}
  .record-status-column{
    grid-column:2/3;
    grid-row:1/4;
    flex-direction:column;
    align-items:flex-end;
  }

  .access-row{
    grid-template-columns:1fr 130px auto;
  }

  .brief-line{
    grid-template-columns:1fr;
    gap:12px;
  }

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

  .record-summary>div:nth-child(2){
    border-right:0;
  }

  .record-summary>div:nth-child(-n+2){
    border-bottom:1px solid var(--line);
  }
}

@media (max-width:620px){
  .shell{
    width:min(100% - 24px,1180px);
  }

  .header-inner{min-height:62px}
  .nav{gap:7px}
  .account-link{display:none}

  .header-button{
    padding:8px 10px;
    font-size:11px;
  }

  .intro{
    padding:30px 0 27px;
  }

  h1{font-size:32px}

  .section-heading{display:block}
  .section-heading>p{margin-top:8px}

  .search-form{grid-template-columns:1fr}
  .search-form .button{width:100%}

  .record{
    grid-template-columns:1fr;
    padding:14px;
  }

  .record-status-column,
  .record-meta,
  .record-date{
    grid-column:1;
    grid-row:auto;
  }

  .record-status-column{
    align-items:flex-start;
  }

  .record-action{padding-left:0}

  .preview-actions{
    flex-direction:column;
  }

  .preview-actions .button{
    text-align:center;
  }

  .access-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .access-row-action{
    justify-content:flex-start;
  }

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

  .footer-inner{
    align-items:flex-start;
    flex-direction:column;
  }

  .footer-links{flex-wrap:wrap}

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

  .record-summary>div{
    border-right:0!important;
    border-bottom:1px solid var(--line);
  }

  .record-summary>div:last-child{
    border-bottom:0;
  }
}
