/* Minimal, modern UI styling */
:root{
  --bg1:#0f172a; --bg2:#1e293b; --pri:#22d3ee; --sec:#a78bfa; --text:#e2e8f0; --muted:#94a3b8; --danger:#ef4444; --ok:#10b981;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #0b1022, var(--bg1)) fixed,
              radial-gradient(800px 800px at 90% 30%, #0b2733, var(--bg2)) fixed;
}
.wrap{min-height:100%; display:flex; align-items:center; justify-content:center; padding:32px}
.card{
  width: 100%; max-width: 980px; padding: 32px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:12px; margin-bottom:14px}
.brand .logo{width:36px;height:36px;border-radius:10px; background:linear-gradient(135deg,var(--pri),var(--sec)); box-shadow:0 4px 12px rgba(34,211,238,.35)}
.brand h1{font-size:20px; margin:0; letter-spacing:.3px}
.muted{color:var(--muted); font-size:13px; margin: 4px 0 18px}
.panel-nav{display:flex; justify-content:flex-end; margin-bottom:10px}
.panel-nav .btn-sm{display:inline-flex; align-items:center}
label{display:block; font-size:13px; color:#cbd5e1; margin:12px 0 6px}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.65); color: var(--text); outline:none; transition:.2s border-color, .2s box-shadow;
  -webkit-appearance:none; appearance:none; background-clip:padding-box; font: inherit;
  display:block;
}
input:focus, textarea:focus{border-color: var(--pri); box-shadow:0 0 0 3px rgba(34,211,238,.15)}
textarea{min-height:120px; resize: vertical; line-height:1.4}
input::placeholder, textarea::placeholder{ color: var(--muted); opacity:.95 }
/* Remove spinners for number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{ -webkit-appearance: none; margin:0 }
input[type=number]{ -moz-appearance:textfield }
.row{display:flex; gap:12px}
.row.code-row input:first-child{flex:1}
.row.code-row input:last-child{width:140px}
.btn{
  width:100%; margin-top:14px; padding:12px 14px; border-radius:14px;
  border:none; font-weight:700; cursor:pointer; letter-spacing:.3px;
  background:#1f2937; color:#e2e8f0;
  transition:transform .15s ease, box-shadow .2s ease;
}
.btn:active{transform: translateY(1px)}
.hero-btn{
  width:100%; margin-top:16px; padding:18px 20px;
  border-radius:20px; border:none;
  background:linear-gradient(120deg,#22d3ee,#a855f7);
  color:#0b1022; font-weight:800; letter-spacing:.4px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  box-shadow:0 22px 40px rgba(34,211,238,.35);
  transition:transform .15s ease, box-shadow .2s ease;
}
.hero-btn:hover{box-shadow:0 26px 46px rgba(34,211,238,.45); transform:translateY(-2px)}
.hero-btn svg{width:24px; height:24px; fill:#0b1022}
.hero-btn span{font-size:16px}
.btn-outline{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 20px; border-radius:12px;
  background:transparent; border:1px solid rgba(34,211,238,.4);
  color:#e2e8f0; font-weight:700; letter-spacing:.3px;
  cursor:pointer; transition:all .2s ease;
  box-shadow:0 8px 18px rgba(34,211,238,.15);
}
.label-flex{display:flex; justify-content:space-between; align-items:center}
.code-hint{font-size:12px; color:#94a3b8}
.btn-outline:hover{border-color:#22d3ee; color:#22d3ee; background:rgba(34,211,238,.08)}
.pickup-shell{display:flex; flex-direction:column; gap:20px; margin-top:6px}
.pickup-header{
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  gap:18px; text-align:center;
  padding:18px 20px; border-radius:16px;
  background:linear-gradient(120deg, rgba(34,211,238,.15), rgba(167,139,250,.12));
  border:1px solid rgba(255,255,255,.1);
}
.pickup-header h2{margin:0; font-size:20px}
.pickup-header p{margin:4px 0 0; color:#cbd5e1; font-size:13px; max-width:560px}
.pickup-quick{display:flex; gap:12px; flex-wrap:wrap}
.pickup-hint{color:#a5b4fc; font-size:13px; margin-top:8px; width:100%}
.pickup-quick-card{
  padding:12px 16px; border-radius:14px;
  background:rgba(15,23,42,.6); border:1px solid rgba(255,255,255,.08);
  min-width:140px; display:flex; flex-direction:column; gap:6px;
  align-items:center; text-align:center;
}
.pickup-quick-card span:first-child{font-size:12px; color:#94a3b8; text-transform:uppercase; letter-spacing:.08em}
.pickup-quick-card strong{font-size:18px}
.pickup-quick-card .inline-btn{
  margin-top:8px;
  width:100%;
  min-height:auto;
  height:auto;
  padding:10px 14px;
  border-radius:12px;
  justify-content:center;
}
.pickup-shell{display:flex; flex-direction:column; gap:20px; margin-top:6px}
.pickup-layout{
  margin-top:10px;
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:flex-start;
}
.pickup-layout-single{grid-template-columns:1fr}
.pickup-form{position:relative}
.pickup-form form{margin:0; position:relative}
.pickup-form textarea{min-height:180px; margin-top:5px}
.pickup-form .row{flex-wrap:wrap}
.pickup-form .row>div:last-child{min-width:150px}
.pickup-input-cluster{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px}
.field-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.field-meta label{margin:0; font-weight:700}
.field-actions{display:flex; gap:10px}
.field-actions .btn-sm{white-space:nowrap}
.upload-btn{
  padding:10px 16px;
  border-radius:12px;
  border:1px dashed rgba(34,211,238,.6);
  background:rgba(34,211,238,.08);
  color:#e0f2fe;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:all .2s ease;
}
.upload-btn svg{width:18px; height:18px; fill:#22d3ee}
.upload-btn:hover{border-color:#22d3ee; color:#22d3ee; background:rgba(34,211,238,.15)}
.pickup-status .row{flex-wrap:wrap; gap:14px}
.pickup-fail-wrap{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.pickup-duration-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:30px;
  background:rgba(94,234,212,.08);
  border:1px solid rgba(45,212,191,.4);
  color:#a5f3fc;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}
.pickup-duration-pill svg{flex:0 0 auto; color:#67e8f9}
.pickup-duration-pill .pickup-duration-label{opacity:.85; letter-spacing:.08em; text-transform:uppercase}
.pickup-duration-pill strong{font-size:13px; color:#f8fafc}
.soft-outline-btn{
  border:1px dashed rgba(255,255,255,.35);
  background:rgba(15,23,42,.55);
  color:#e0f2fe;
  font-weight:700;
  border-radius:16px;
  box-shadow:0 12px 22px rgba(2,6,23,.55);
  transition:all .2s ease;
}
.soft-outline-btn{
  border:1px dashed rgba(255,255,255,.35);
  background:rgba(15,23,42,.55);
  color:#e0f2fe;
  font-weight:700;
  border-radius:16px;
  box-shadow:0 12px 22px rgba(2,6,23,.55);
  transition:all .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
}
.soft-outline-btn svg{width:18px; height:18px; fill:#22d3ee; transition:fill .2s ease}
.soft-outline-btn:hover{border-color:#22d3ee; color:#22d3ee; background:rgba(34,211,238,.12)}
.soft-outline-btn:hover svg{fill:#22d3ee}
.pickup-settings-btn,
.pickup-query-btn{
  height:100%;
  min-height:84px;
  display:flex; align-items:center; justify-content:center;
  padding:0 18px;
}
.pickup-overlay{
  position:fixed; inset:0; background:rgba(2,6,23,.82);
  display:none;
  z-index:110; backdrop-filter:blur(4px);
}
.pickup-overlay.show{display:block}
.pickup-overlay-inner{
  position:fixed;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(420px, 92vw);
  max-height:90vh;
  overflow-y:auto;
  background:#0f172a; border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 20px 60px rgba(0,0,0,.65);
  padding:20px 22px;
}
.pickup-overlay-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.pickup-overlay-head h3{margin:0; font-size:18px}
.pickup-overlay-close{
  border:none; background:none; color:#e2e8f0;
  font-size:26px; cursor:pointer; line-height:1;
}
.pickup-overlay-body{display:flex; flex-direction:column; gap:8px}
.overlay-input{display:flex; gap:10px; align-items:center}
.overlay-input input{flex:1}
.overlay-hint{display:block; margin-top:-4px}
.link{color:var(--pri); text-decoration:none}
.error{margin-top:10px; color:#fecaca; background:#7f1d1d; border:1px solid #ef444466; padding:10px 12px; border-radius:10px; font-size:13px}
.ok{margin-top:10px; color:#d1fae5; background:#064e3b; border:1px solid #10b98166; padding:10px 12px; border-radius:10px; font-size:13px}
.profile-overlay{
  position:fixed; inset:0;
  background:rgba(2,6,23,.85);
  display:none;
  z-index:140;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.profile-overlay.show{display:flex}
.profile-panel{
  width:min(560px, 92vw);
  max-height:90vh;
  overflow-y:auto;
  background:#0f172a;
  border:1px solid rgba(148,163,184,.25);
  border-radius:18px;
  padding:20px 22px;
  box-shadow:0 16px 45px rgba(2,6,23,.6);
}
.profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}
.profile-close{
  border:none;
  background:rgba(248,250,252,.08);
  color:#f8fafc;
  width:34px;
  height:34px;
  border-radius:999px;
  font-size:20px;
  cursor:pointer;
  transition:background .2s ease;
}
.profile-close:hover{background:rgba(248,250,252,.18)}
.profile-section{
  margin-top:18px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(94,234,212,.25);
  background:rgba(15,118,110,.12);
}
.profile-section h4{margin:0 0 8px; font-size:15px}
.profile-form label{display:block; font-weight:600; margin:10px 0 4px}
.profile-form input{width:100%}
.slider-overlay{
  position:absolute;
  inset:0;
  display:none;
  background:rgba(2,6,23,.86);
  z-index:5;
  align-items:center;
  justify-content:center;
  border-radius:18px;
}
.slider-overlay.show{display:flex}
.slider-panel{
  width:min(420px, 100%);
  border-radius:18px;
  background:#0f172a;
  border:1px solid rgba(148,163,184,.3);
  padding:20px 22px;
  box-shadow:0 12px 32px rgba(0,0,0,.55);
}
.slider-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.slider-head h3{margin:0}
.slider-close{
  border:none;
  background:rgba(248,250,252,.08);
  width:32px; height:32px;
  border-radius:50%;
  color:#f8fafc;
  font-size:20px;
  cursor:pointer;
}
.slider-track{
  position:relative;
  margin-top:18px;
  background:rgba(15,118,110,.25);
  border:1px dashed rgba(94,234,212,.45);
  border-radius:999px;
  padding:8px 12px;
  min-height:44px;
  overflow:hidden;
  user-select:none;
  touch-action:none;
}
.slider-track.success{background:rgba(34,197,94,.25); border-color:rgba(34,197,94,.6);}
.slider-hint{
  text-align:center;
  color:#a5f3fc;
  font-size:14px;
  font-weight:600;
  pointer-events:none;
  transition:opacity .15s ease;
}
.slider-knob{
  position:absolute;
  top:8px;
  left:12px;
  width:26px;
  height:26px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,#34d399,#22d3ee);
  color:#0b1022;
  font-weight:700;
  font-size:11px;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,118,110,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease;
  touch-action:none;
}
.slider-cancel{
  margin-top:16px;
  width:100%;
  text-align:center;
}
.full-width-btn{width:100%; display:block; text-align:center}
.remember-wrap{display:flex; gap:16px; align-items:center; margin:8px 0 14px}
.remember-wrap label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#cbd5e1;
  cursor:pointer;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.6);
  border:1px solid rgba(148,163,184,.25);
  transition:all .2s ease;
}
.remember-wrap input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#34d399;
}
.remember-wrap label:hover{border-color:rgba(94,234,212,.5); color:#e2e8f0}
.batch-workorder-modal{max-width:720px}
.batch-fill{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
  margin:12px 0;
}
.batch-fill>div{flex:1; min-width:180px; display:flex; flex-direction:column; gap:6px}
.batch-fill input{width:100%}
.batch-list{display:flex; flex-direction:column; gap:12px; max-height:360px; overflow:auto; margin:12px 0; padding-right:6px}
.batch-row{
  border:1px solid rgba(148,163,184,.3);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(15,23,42,.7);
}
.batch-row-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; font-weight:700; color:#f8fafc}
.batch-status{font-size:12px; color:#a5f3fc}
.batch-status.ok{color:#bbf7d0}
.batch-status.error{color:#fecaca}
.batch-status.running{color:#fde68a}
.batch-info{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; font-size:12px; color:#cbd5e1; margin-bottom:8px}
.batch-inputs{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px}
.batch-inputs input{width:100%}
.batch-log{border:1px dashed rgba(148,163,184,.3); border-radius:12px; padding:10px; min-height:60px; font-size:12px; color:#cbd5e1; background:rgba(15,23,42,.4)}
.batch-log-entry{margin:0; line-height:1.5}
.batch-log-entry.error{color:#fecaca}
.batch-log-entry.ok{color:#bbf7d0}
.phrase-toolbar{margin-top:8px; margin-bottom:12px}
.phrase-form{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:12px;
  padding:12px;
  border-radius:14px;
  background:rgba(15,23,42,.65);
  border:1px solid rgba(94,234,212,.25);
}
.phrase-form input,
.phrase-form textarea{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.6);
  color:#e2e8f0;
  padding:8px 10px;
}
.phrase-form textarea{min-height:80px; resize:vertical}
.phrase-form-actions{display:flex; gap:10px; margin-top:4px}
.phrase-list{display:flex; flex-direction:column; gap:10px}
.phrase-flash{margin-bottom:8px; padding:8px 12px; border-radius:10px; font-size:13px}
.phrase-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(15,23,42,.7);
  border:1px solid rgba(148,163,184,.3);
}
.phrase-text{flex:1; color:#e2e8f0; font-weight:600; word-break:break-word; padding-right:12px}
.phrase-text strong{font-size:14px; color:#f8fafc}
.phrase-actions{display:flex; gap:6px; margin-left:12px}
.phrase-actions button{
  border:none;
  background:rgba(148,163,184,.2);
  color:#e2e8f0;
  border-radius:8px;
  padding:4px 8px;
  font-size:12px;
  cursor:pointer;
}
.phrase-actions button:hover{background:rgba(94,234,212,.3); color:#0b1022}
.flash{will-change: opacity, transform; transition: opacity .4s ease, transform .4s ease}
.flash.hide{opacity:0; transform: translateY(-6px)}
.topbar{display:flex; justify-content:space-between; align-items:center; padding:14px 18px; background:rgba(255,255,255,.04); border-bottom:1px solid rgba(255,255,255,.08)}
.topbar .title{display:flex; align-items:center; gap:10px}
.container{max-width:1000px; margin:24px auto; padding:0 16px}
.grid{display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:16px}
.tile{padding:18px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); width:100%; word-break:break-word; overflow-wrap:anywhere}
.tile h3{margin:0 0 8px; font-size:14px; color:#cbd5e1}
.tile .num{font-size:28px; font-weight:800}
.actions{display:flex; gap:10px; align-items:center}
.logout{color:#fca5a5; text-decoration:none; font-size:14px}

/* Modal */
.backdrop{position:fixed; inset:0; background:rgba(2,6,23,.7); backdrop-filter: blur(4px); display:none; align-items:center; justify-content:center; z-index:50}
.backdrop.show{display:flex}
.modal{width:100%; max-width:520px}
.modal .card{max-width:520px}

/* Site buttons */
.site-list{display:flex; gap:10px; flex-wrap:wrap}
.site-btn{display:inline-block; padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:var(--text); text-decoration:none; font-weight:600;}
.site-btn:hover{border-color:var(--pri); box-shadow:0 0 0 3px rgba(34,211,238,.08) inset}

/* Enhanced site cards */
.site-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:16px}
.site-card{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; border-radius:16px; background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10); box-shadow:0 6px 20px rgba(0,0,0,.25);
  position:relative; overflow:hidden;
}
.site-card:before{content:""; position:absolute; inset:auto -20% 0 -20%; height:4px; background:linear-gradient(90deg,var(--pri),var(--sec)); opacity:.6; filter:blur(6px)}
.site-card:hover{border-color:rgba(255,255,255,.2); transform:translateY(-2px); transition:transform .15s ease, border-color .2s}
.site-info{display:flex; align-items:center; gap:12px; min-width:0}
.site-avatar{width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,var(--pri),var(--sec)); display:flex; align-items:center; justify-content:center; color:#0b1022; font-weight:900; box-shadow:0 8px 18px rgba(167,139,250,.25)}
.site-title{font-size:16px; font-weight:800; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.site-sub{font-size:12px; color:var(--muted); margin:2px 0 0}
.site-actions{display:flex; gap:8px; flex-shrink:0}

/* Small buttons */
.btn-sm{display:inline-block; padding:6px 10px; border-radius:10px; font-size:12px; font-weight:700; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:var(--text); text-decoration:none; cursor:pointer}
.btn-sm:hover{border-color:var(--pri)}
.btn-danger{border-color:#ef4444aa; color:#fecaca; background:#7f1d1d}
.btn-danger:hover{box-shadow:0 0 0 3px #ef444422 inset}

/* Field-aligned button */
.btn-field{display:inline-flex; align-items:center; justify-content:center; padding:12px 14px; border-radius:12px; font-size:14px; font-weight:700; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:var(--text); cursor:pointer; height:44px; text-decoration:none}
.btn-field:hover{border-color:var(--pri)}

/* Tabs */
.tabs{display:flex; gap:8px; border-bottom:1px solid rgba(255,255,255,.08); margin:10px 0 16px}
.tab{padding:10px 14px; border-radius:12px 12px 0 0; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-bottom:none; color:var(--text); text-decoration:none; font-weight:700}
.tab.active{background:linear-gradient(135deg,rgba(34,211,238,.15),rgba(167,139,250,.15)); border-color:rgba(255,255,255,.14)}
.tab:hover{border-color:var(--pri)}

/* Badges */
.badge{display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:800; line-height:1.6; vertical-align:middle}
.badge-danger{background:#7f1d1d; color:#fecaca; border:1px solid #ef444466}
.badge-info{background:rgba(34,211,238,.18); color:var(--text); border:1px solid rgba(34,211,238,.35)}

/* Simple table */
.table-scroll{width:100%; overflow-x:auto; overflow-y:hidden}
.table{width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid rgba(255,255,255,.08); border-radius:12px}
.table thead th{background:rgba(255,255,255,.06); color:#cbd5e1; font-weight:700; font-size:13px; text-align:left; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.08); word-break:break-word}
.table tbody td{padding:10px 12px; font-size:13px; border-bottom:1px solid rgba(255,255,255,.06); vertical-align:top; word-break:break-word}
.table tbody tr:last-child td{border-bottom:none}
.table.vas-table{
  border-color:rgba(59,130,246,.35);
  table-layout:auto;
  min-width:1100px;
}
.table.vas-table thead th{
  background:rgba(59,130,246,.15);
  border-bottom:1px solid rgba(59,130,246,.35);
  white-space:nowrap;
  font-size:12px;
}
.table.vas-table tbody td{
  background:rgba(59,130,246,.05);
  white-space:normal;
  word-break:break-word;
  font-size:12px;
  line-height:1.4;
}

/* Timeline */
.timeline{list-style:none; margin:0; padding:0}
.timeline li{display:flex; gap:12px; padding:12px 14px; border:1px solid rgba(255,255,255,.08); border-radius:12px; margin-bottom:10px; background:rgba(255,255,255,.03); word-break:break-word; overflow-wrap:anywhere}
.timeline .time{color:#cbd5e1; font-size:12px; width:160px; flex-shrink:0}
.timeline-body{flex:1; display:flex; flex-direction:column; gap:6px}
.chip-row{display:flex; flex-wrap:wrap; gap:6px}
.chip{display:inline-flex; align-items:center; justify-content:center; padding:2px 8px; border-radius:999px; background:rgba(148,163,184,.2); color:#e2e8f0; font-size:12px}
.log-labels{display:flex; flex-wrap:wrap; gap:6px; align-self:flex-start}
.log-label{
  padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600;
  background:rgba(59,130,246,.15); border:1px solid rgba(59,130,246,.3); color:#cfe1ff;
}
.log-text{font-size:13px; color:#e2e8f0; line-height:1.5}
.log-label-primary{background:rgba(59,130,246,.25); border-color:rgba(59,130,246,.5); color:#dbeafe}
.log-label-secondary{background:rgba(236,72,153,.15); border-color:rgba(236,72,153,.35); color:#fbcfe8}
.log-label-code{background:rgba(34,197,94,.18); border-color:rgba(34,197,94,.35); color:#bbf7d0}
.log-label-tag{background:rgba(14,165,233,.18); border-color:rgba(14,165,233,.35); color:#bae6fd}

/* Track cards */
.track-cards{display:flex; flex-direction:column; gap:12px}
.track-card{padding:14px; border-radius:14px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); display:flex; flex-direction:column; gap:10px}
.track-card.revoked{border-color:#facc15; background:rgba(251,191,36,.08)}
.track-card-header{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px}
.track-time{font-weight:700; color:#f8fafc; font-size:14px}
.track-type{padding:4px 10px; border-radius:999px; background:rgba(59,130,246,.2); color:#bfdbfe; font-size:12px; font-weight:700}
.track-meta{display:flex; flex-wrap:wrap; gap:14px; font-size:12px; color:#cbd5e1}
.track-meta span{display:flex; flex-direction:column; min-width:120px; gap:2px}
.track-meta label{font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:#94a3b8}
.track-record{font-size:13px; line-height:1.5; color:#e2e8f0; word-break:break-word}
.track-card.revoked .track-record{color:#fde68a}
.pickup-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.pickup-close{
  border:none;
  background:rgba(248,113,113,.15);
  color:#fecaca;
  border-radius:999px;
  padding:4px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.pickup-close:hover{background:rgba(248,113,113,.28); color:#fee2e2}
.trace-divider{
  margin:30px 0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(59,130,246,.8), rgba(34,211,238,.5), rgba(59,130,246,.8));
  box-shadow:0 0 18px rgba(59,130,246,.4);
}

/* Progress Bar */
.progress{height:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:999px; overflow:hidden}
.progress .bar{height:100%; background:linear-gradient(90deg,var(--pri),var(--sec)); width:0%}

/* Tracking record highlight */
.site-tag{color:#db2777; font-weight:700; white-space:nowrap}
.scan-user{color:#ef4444; font-weight:800; white-space:nowrap}
.no-break{white-space:nowrap}
.table tr.trace-revoked{background:#111827}
.table tr.trace-revoked td{color:#fde68a}

/* Problem info panels */
.problem-panels{display:flex; flex-direction:column; gap:14px}
.problem-panel{
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(15,23,42,.45);
  box-shadow:0 20px 35px rgba(2,6,23,.45);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.problem-panel-head{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.problem-pill{padding:4px 12px; border-radius:999px; background:rgba(34,211,238,.18); color:#e0f2fe; font-size:12px; font-weight:700}
.problem-status{padding:4px 12px; border-radius:999px; background:rgba(148,163,184,.2); color:#e2e8f0; font-size:12px; font-weight:700}
.problem-status.status-resolved{background:rgba(16,185,129,.15); color:#bbf7d0}
.problem-status.status-pending{background:rgba(234,179,8,.2); color:#fcd34d}
.problem-status.status-alert{background:rgba(239,68,68,.25); color:#fecaca}
.problem-time{font-size:12px; color:#cbd5e1; font-weight:600}
.problem-table{display:flex; flex-direction:column; gap:8px}
.problem-row{display:flex; gap:12px; align-items:flex-start}
.problem-label{color:#94a3b8; font-weight:600; flex:0 0 32%; max-width:220px; letter-spacing:.02em}
.problem-value{flex:1; color:#e2e8f0; line-height:1.6; white-space:pre-wrap; word-break:break-word; display:flex; flex-direction:column; gap:6px}
.problem-img-btn{
  border:1px solid rgba(94,234,212,.4);
  background:rgba(16,185,129,.15);
  color:#bbf7d0;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  padding:4px 12px;
  cursor:pointer;
  transition:all .2s ease;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.problem-img-btn:hover{border-color:#5eead4; color:#5eead4}
.problem-note{margin-top:4px; padding:10px 12px; border-radius:12px; background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.3); color:#dbeafe; font-size:13px; line-height:1.55; display:flex; flex-direction:column; gap:8px}
.problem-note-actions{display:flex; flex-wrap:wrap; gap:8px}
.vas-list{display:flex; flex-direction:column; gap:8px}
.vas-item{padding:10px 12px; border-radius:10px; border:1px solid rgba(59,130,246,.3); background:rgba(59,130,246,.08); color:#e0f2fe; font-size:13px}
.action-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px}
.action-btn{
  display:flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:12px;
  background:rgba(34,211,238,.12); border:1px solid rgba(34,211,238,.35);
  color:#e0f2fe; text-decoration:none; font-weight:700; font-size:13px;
  box-shadow:0 8px 18px rgba(34,211,238,.1); transition:all .2s ease;
}
.action-btn:hover{border-color:#22d3ee; background:rgba(34,211,238,.22); color:#22d3ee}
.workorder-overlay{position:fixed; inset:0; background:rgba(5,10,25,.7); backdrop-filter:blur(4px); display:none; align-items:center; justify-content:center; z-index:100}
.workorder-overlay.show{display:flex}
.workorder-modal{
  width:100%; max-width:540px; background:#111c33; border:1px solid rgba(255,255,255,.1);
  border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.6); padding:20px 24px;
  max-height:90vh; overflow-y:auto;
}
.workorder-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:12px}
.workorder-header h3{margin:0; font-size:16px; color:#fff}
.workorder-close{background:none; border:none; color:#fff; font-size:24px; cursor:pointer; line-height:1}
.workorder-form label{margin-top:12px}
.workorder-radios{display:flex; gap:16px; flex-wrap:wrap; font-size:13px}
.workorder-radios input{margin-right:4px}
.address-section input{margin-top:6px}
.workorder-receiver{margin-top:12px; padding:10px 12px; border-radius:10px; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.35); color:#dcfce7; font-size:13px}
.workorder-receiver strong{display:block; margin-bottom:6px; color:#bbf7d0}
.receiver-line{line-height:1.4; word-break:break-word}
.d11-tags{margin-top:6px}
.d11-tag{
  display:inline-flex; min-width:60px; min-height:24px;
  border:1px dashed rgba(34,211,238,.4);
  border-radius:12px;
  background:rgba(34,211,238,.05);
  color:#e0f2fe;
  align-items:center;
  justify-content:center;
  font-weight:600;
}
.image-preview{
  position:fixed; inset:0; background:rgba(2,6,23,.82);
  display:none; align-items:center; justify-content:center;
  z-index:120; backdrop-filter:blur(4px);
}
.image-preview.show{display:flex}
.image-preview-inner{
  width:100%; max-width:900px; max-height:90vh;
  background:#0f172a; border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  padding:20px 24px; box-shadow:0 20px 60px rgba(0,0,0,.65);
  overflow:auto; position:relative;
}
.image-preview-close{
  position:absolute; right:16px; top:12px;
  background:none; border:none; color:#e2e8f0;
  font-size:26px; cursor:pointer; line-height:1;
}
.image-preview-body{margin-top:20px; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px}
.image-preview-item{display:flex; flex-direction:column; gap:8px}
.image-preview-item img{
  width:100%; border-radius:12px; background:#020617;
  object-fit:cover; max-height:260px;
}
.image-preview-item a{color:#38bdf8; font-size:12px; text-decoration:none}
.image-preview-item a:hover{text-decoration:underline}
body.modal-open{overflow:hidden}

/* Responsive tweaks */
@media (max-width: 900px){
  .wrap{padding:16px}
  .card{padding:18px}
  .table{min-width:480px}
  .pickup-layout{grid-template-columns:1fr}
  .pickup-header{flex-direction:column; align-items:center; text-align:center}
  .pickup-quick{width:100%; gap:10px; justify-content:center}
  .pickup-quick-card{flex:1}
  .pickup-settings-btn,
  .pickup-query-btn{flex:1; height:72px}
}
@media (max-width: 720px){
  .wrap{padding:12px}
  .row{flex-direction:column}
  .row.code-row input:last-child{width:100%}
  .tabs{flex-wrap:wrap; gap:6px}
  .tab{flex:1 1 30%; text-align:center; font-size:13px; padding:8px 10px}
  .panel-nav{justify-content:flex-start}
  .field-meta{flex-direction:column; align-items:flex-start}
  .field-actions{width:100%; justify-content:flex-start}
  .pickup-header h2{font-size:18px}
  .pickup-quick{flex-direction:column; align-items:center}
  .pickup-quick-card,
  .pickup-settings-btn,
  .pickup-query-btn{width:100%; height:64px}
  .pickup-overlay-inner{
    width:min(360px, 92vw);
  }
  .table-scroll{overflow-x:visible}
  .table{border:none; border-radius:0}
  .table thead{display:none}
  .table tbody{display:flex; flex-direction:column; gap:12px}
  .table tbody tr{display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:8px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px 12px}
  .table tbody td{display:block; padding:0; border:none; word-break:break-word}
  .table tbody td::before{content:attr(data-label); display:block; color:#94a3b8; font-size:12px; font-weight:700; margin-bottom:2px}
  .timeline li{flex-direction:column; gap:6px}
  .timeline .time{font-weight:700; width:auto}
  .chip-row{justify-content:flex-start}
  .timeline .chip{margin:0}
  .problem-panel-head{flex-direction:column; align-items:flex-start; gap:6px}
  .problem-row{flex-direction:column; gap:4px}
  .problem-label{flex:none; max-width:100%}
  .problem-value{text-align:left}
  .track-card{padding:12px}
  .track-meta span{min-width:120px}
}
.pickup-settings-btn{height:40px; padding:0 18px}
.pickup-query-btn{display:flex; align-items:center; justify-content:center}
.phrase-flash.hide{opacity:0; transform:translateY(-4px); transition:all .3s ease}
