:root{
  --purple:#5a00c8;
  --purple-2:#7b2cff;
  --border:#c9a8ff;
  --text:#1a1a1a;
  --muted:#6b6b6b;
  --bg:#ffffff;
  --green:#1ec45a;
  --green-2:#12a94a;
  --card:#ffffff;
  --line:#ece6ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:var(--bg);
  color:var(--text);
}

.wrap{
  width:min(980px, 92vw);
  margin:0 auto;
  padding:48px 0 64px;
}

.hero{
  text-align:center;
  margin-top:24px;
}
.hero h1{
  margin:0;
  font-size:44px;
  line-height:1.05;
  letter-spacing:.2px;
  color:var(--purple);
  font-weight:800;
}
.hero p{
  margin:14px 0 0;
  color:#111;
  font-size:14px;
}

.tabs{
  margin-top:34px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  color:#000;
}
.tab{
  font-size:13px;
  border:0;
  background:transparent;
  padding:6px 4px;
  cursor:pointer;
}
.tab.active{font-weight:700}
.tab:disabled{opacity:.45; cursor:not-allowed}
.tab-sep{opacity:.35}

.tracker{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 170px;
  gap:18px;
  align-items:start;
}

.textarea-frame{
  border:2px solid var(--purple-2);
  border-radius:2px;
  overflow:hidden;
  background:#fff;
}

.textarea-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(123,44,255,.25);
  min-height:42px;
}
.ln{
  color:var(--purple-2);
  font-weight:700;
  font-size:13px;
  width:32px;
}
.singleline{
  flex:1;
  border:0;
  outline:0;
  font-size:13px;
}
.icon-btn{
  border:0;
  background:transparent;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  opacity:.6;
}
.icon-btn:hover{opacity:1}

textarea#numbers{
  width:100%;
  min-height:190px;
  border:0;
  outline:0;
  resize:vertical;
  padding:14px 12px 0;
  font-size:13px;
  line-height:1.5;
}

.textarea-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px;
  border-top:1px solid rgba(123,44,255,.15);
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#f3edff;
  border:1px solid #e0d2ff;
  color:#2a1355;
  padding:5px 8px;
  border-radius:4px;
  font-size:11px;
}
.chip button{
  border:0;
  background:transparent;
  cursor:pointer;
  opacity:.6;
}
.chip button:hover{opacity:1}

.footer-actions{display:flex; gap:8px}
.mini-btn{
  width:30px; height:26px;
  border:1px solid #e6e1ff;
  background:#fff;
  cursor:pointer;
  border-radius:3px;
}
.mini-btn:hover{border-color:#cbbaff}

.tracker-right{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.btn-track{
  width:100%;
  border:0;
  background:var(--green);
  color:#000;
  font-weight:700;
  padding:12px 14px;
  border-radius:2px;
  cursor:pointer;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}
.btn-track:hover{background:var(--green-2)}
.btn-track:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.btn-light{
  width:100%;
  border:1px solid #e6e6e6;
  background:#fff;
  padding:10px 12px;
  border-radius:2px;
  text-align:left;
  display:flex;
  gap:10px;
  align-items:center;
}
.btn-ic{font-size:16px}
.btn-txt{font-size:12px; line-height:1.1}
.btn-txt small{opacity:.5}

.hintbar{
  margin-top:18px;
  border:1px solid #f0eaff;
  background:#fff;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#4b2a86;
}
.hint-close{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  opacity:.65;
}
.hint-close:hover{opacity:1}

.results{
  margin-top:14px;
  display:grid;
  gap:14px;
}

.card{
  border:1px solid #eee;
  border-radius:8px;
  background:var(--card);
  padding:16px 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.status{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}
.status-badge{
  width:28px; height:28px;
  border-radius:6px;
  background:#e9ffe9;
  border:1px solid #c9f5c9;
  display:grid; place-items:center;
  font-weight:900;
}
.status h3{
  margin:0;
  font-size:16px;
}
.meta{
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}

.route{
  color:#111;
  font-size:13px;
  text-align:right;
  min-width:220px;
}
.route .muted{color:var(--muted)}

.timeline{
  margin-top:14px;
  border-left:2px solid var(--line);
  padding-left:14px;
  display:grid;
  gap:12px;
}
.event{
  position:relative;
  padding-left:6px;
}
.event:before{
  content:"";
  position:absolute;
  left:-18px;
  top:4px;
  width:10px; height:10px;
  border-radius:50%;
  background:var(--purple-2);
}
.event .title{
  font-size:13px;
  font-weight:700;
}
.event .sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.err{
  border:1px solid #ffd5d5;
  background:#fff5f5;
  color:#7a1414;
  padding:12px 12px;
  border-radius:8px;
  font-size:13px;
}

@media (max-width:720px){
  .tracker{grid-template-columns:1fr}
  .tracker-right{flex-direction:row}
  .btn-light{display:none}
  .hero h1{font-size:36px}
}
