:root {
  --stp-orange: #f97316;
  --stp-navy:   #0f172a;
  --stp-text:   #1e293b;
  --stp-text2:  #475569;
  --stp-text3:  #94a3b8;
  --stp-border: #e2e8f0;
  --stp-bg:     #f8fafc;
  --stp-sh-md:  0 4px 24px rgba(15,23,42,.08);
}

/* ── Wrapper & Hero ───────────────────────────────────────────── */
#stp-public-wrap { font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Nunito', sans-serif; color: var(--stp-text); }

.stp-pub-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding: 72px 24px 80px; text-align: center; }
.stp-pub-hero-inner { max-width: 640px; margin: 0 auto; }
.stp-pub-hero h1 { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.stp-pub-hero h1 em { font-style: normal; color: var(--stp-orange); }
.stp-pub-hero p { color: #94a3b8; font-size: 15px; margin-bottom: 28px; }

.stp-pub-search-box { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; gap: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.25); margin-bottom: 20px; }
.stp-pub-sb-ic { color: var(--stp-text3); font-size: 20px; flex-shrink: 0; }
.stp-pub-search-box input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit; color: var(--stp-text); background: transparent; }
.stp-pub-search-btn { background: var(--stp-orange); color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; transition: background .15s; }
.stp-pub-search-btn:hover { background: #ea6c0a; }

.stp-pub-hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.stp-pub-hero-tag { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 5px 12px; font-size: 12px; color: #cbd5e1; }

/* ── Track result wrap ────────────────────────────────────────── */
.stp-pub-track-wrap { max-width: 680px; margin: -28px auto 48px; padding: 0 16px; }

/* ── Result card ──────────────────────────────────────────────── */
.stp-pub-rc { background: #fff; border-radius: 16px; box-shadow: var(--stp-sh-md); border: 1px solid var(--stp-border); overflow: hidden; }

.stp-pub-rc-head { padding: 20px 24px; border-bottom: 1px solid var(--stp-border); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stp-pub-rc-name { font-size: 20px; font-weight: 800; color: var(--stp-text); margin-bottom: 4px; }
.stp-pub-rc-tid  { font-size: 12px; color: var(--stp-text3); margin-bottom: 3px; }
.stp-pub-rc-tid strong { font-family: 'Courier New', monospace; color: var(--stp-navy); font-size: 13px; font-weight: 700; }
.stp-pub-rc-prod { font-size: 13px; color: var(--stp-text2); margin-top: 3px; }

/* Badges */
.stp-pub-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.stp-pub-b-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.stp-pub-b-del  { background: #dcfce7; color: #15803d; }
.stp-pub-b-tr   { background: #dbeafe; color: #1d4ed8; }
.stp-pub-b-proc { background: #fef3c7; color: #b45309; }
.stp-pub-b-cr   { background: #f1f5f9; color: #475569; }

/* Meta grid */
.stp-pub-rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--stp-border); }
.stp-pub-rc-meta-item { padding: 14px 24px; }
.stp-pub-rc-meta-item:first-child { border-right: 1px solid var(--stp-border); }
.stp-pub-rc-meta-item label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--stp-text3); margin-bottom: 4px; }
.stp-pub-rc-meta-item span { font-size: 13px; color: var(--stp-text); font-weight: 600; }

/* Progress bar */
.stp-pub-rc-prog { padding: 16px 24px; border-bottom: 1px solid var(--stp-border); }
.stp-pub-prog-hdr { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--stp-text2); margin-bottom: 8px; }
.stp-pub-prog-track { background: #f1f5f9; border-radius: 99px; height: 8px; }
.stp-pub-prog-fill  { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f97316, #fb923c); transition: width .6s ease; }

/* Timeline */
.stp-pub-tl { padding: 20px 24px; display: flex; flex-direction: column; gap: 0; }
.stp-pub-tl-row { display: flex; gap: 14px; }
.stp-pub-tl-l   { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.stp-pub-dot    { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.stp-pub-dot-done { background: #dcfce7; color: #15803d; }
.stp-pub-dot-cur  { background: #fff7ed; color: var(--stp-orange); box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.stp-pub-dot-pend { background: #f8fafc; color: #cbd5e1; border: 2px solid #e2e8f0; }
.stp-pub-tl-line  { width: 2px; flex: 1; min-height: 16px; background: #e2e8f0; margin: 4px 0; }
.stp-pub-tl-line-done { background: #86efac; }
.stp-pub-tl-r    { padding-bottom: 20px; flex: 1; }
.stp-pub-tl-title { font-size: 14px; font-weight: 700; color: var(--stp-text); line-height: 32px; }
.stp-pub-tl-title-pend { color: var(--stp-text3); font-weight: 500; }
.stp-pub-tl-date  { font-size: 11px; color: var(--stp-text3); display: flex; align-items: center; gap: 4px; margin-top: -4px; margin-bottom: 4px; }
.stp-pub-tl-note  { font-size: 12px; color: var(--stp-text2); background: var(--stp-bg); border-radius: 6px; padding: 6px 10px; display: inline-block; }
.stp-pub-tl-note-cur { background: #fff7ed; color: #c2410c; }

/* Not found */
.stp-pub-nf { text-align: center; padding: 60px 24px; background: #fff; border-radius: 16px; box-shadow: var(--stp-sh-md); border: 1px solid var(--stp-border); }
.stp-pub-nf-icon { width: 72px; height: 72px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.stp-pub-nf-icon i { font-size: 32px; color: var(--stp-text3); }
.stp-pub-nf h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.stp-pub-nf p  { font-size: 14px; color: var(--stp-text2); margin: 0; }

@media (max-width: 640px) {
  .stp-pub-hero h1 { font-size: 24px; }
  .stp-pub-rc-meta { grid-template-columns: 1fr 1fr; }
}

/* ── PDF Download FAB ─────────────────────────────────────────── */
.stp-pdf-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--stp-orange);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 13px 22px 13px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249,115,22,.45);
  transition: transform .15s, box-shadow .15s, background .15s;
  z-index: 9999;
}
.stp-pdf-fab i { font-size: 18px; line-height: 1; }
.stp-pdf-fab:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249,115,22,.55);
}
.stp-pdf-fab:active { transform: translateY(0); }
@media (max-width: 600px) {
  .stp-pdf-fab { bottom: 16px; right: 16px; padding: 11px 16px 11px 14px; font-size: 13px; }
}
