.app-page {
  --green: #16a36a; --amber: #e79a1b;
  --f-panel: rgba(255,255,255,.04); --f-line: var(--line); --f-bg: rgba(255,255,255,.04);
  --f-ink: #fff; --f-label: #8fa0b8; --f-muted: var(--muted);
}
.app-page .lt-light {
  --f-panel: #fff; --f-line: var(--light-line); --f-bg: #fbfdff;
  --f-ink: var(--light-ink); --f-label: #5d6b7d; --f-muted: var(--light-muted);
}
.app-page [hidden], .app-page .hidden { display: none !important; }
.app-page .small { font-size: 13px; color: var(--f-muted); margin: 0; }
.app-note { margin-top: 14px !important; }

.app-hero { min-height: 0; padding-top: 72px; padding-bottom: 56px; }
.app-hero h1 { max-width: 20ch; }
.app-hero > form { margin-top: 26px; max-width: 980px; }
.app-hero .form-card { background: rgba(10,15,24,.88); backdrop-filter: blur(12px); }

.app-form-band { padding-top: 48px; }

.form-card {
  background: var(--f-panel); border: 1px solid var(--f-line); border-radius: 0; padding: 24px;
}
.lt-light .form-card { box-shadow: 0 10px 30px rgba(11,21,36,.05); }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.form-grid h3 {
  margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--f-line);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9db6ff;
}
.lt-light .form-grid h3 { color: #2a5fe0; }
.form-grid > .span-12:first-child h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--f-label); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border-radius: 0; border: 1px solid var(--f-line);
  background: var(--f-bg); color: var(--f-ink); padding: 0 12px; outline: none;
}
.field textarea { min-height: 120px; padding: 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f7f96; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(47,107,255,.7); box-shadow: 0 0 0 3px rgba(47,107,255,.18);
}
.field input[type="file"] { padding: 8px; min-height: 46px; color: var(--f-muted); font-size: 13px; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 12px; border-radius: 0; cursor: pointer; font-weight: 700;
  border: 1px solid rgba(47,107,255,.5); background: rgba(47,107,255,.12); color: #9db6ff;
}
.lt-light .field input[type="file"]::file-selector-button { color: #2a5fe0; background: #eef3ff; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--f-ink); cursor: pointer; }
.check span { color: var(--f-muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.check-grid .check { border: 1px solid var(--f-line); border-radius: 0; padding: 11px 13px; background: var(--f-bg); }
.check-grid .check:has(input:checked) { border-color: rgba(47,107,255,.7); background: rgba(47,107,255,.12); }
.check-grid .check:has(input:checked) span { color: var(--f-ink); }
.app-submit { display: flex; align-items: end; align-self: end; }
.app-submit .btn { width: 100%; }
.app-radios { display: grid; gap: 8px; align-self: center; }
.form-card .btn[disabled] { opacity: .6; cursor: progress; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#lead-result .notice, #tracking-search-msg .notice { margin-bottom: 16px; }

.app-page h2#ship-id { margin-bottom: 6px; }
#ship-mode-route { font-size: 17px; }
.shipment-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.fact-card { background: #fff; border: 1px solid var(--light-line); border-radius: 0; padding: 16px 18px; }
.fact-card .label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.fact-card strong { font-size: 19px; line-height: 1.25; color: var(--light-ink); }
.tracking-warning {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 0;
  background: #fff4df; border: 1px solid #f1ce84; color: #825100;
}
.tracking-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 32px; }
.tracking-shell h2 { font-size: clamp(24px, 2.6vw, 32px); }
.timeline { position: relative; margin-top: 8px; }
.timeline-item {
  position: relative; display: grid; grid-template-columns: 230px 1fr; gap: 20px;
  margin-left: 12px; padding: 18px 0 18px 32px; border-left: 2px solid var(--light-line);
}
.timeline-dot {
  position: absolute; left: -9px; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px #e7f6ef;
}
.timeline-item:first-child .timeline-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
.timeline-item.warn .timeline-dot { background: var(--amber); box-shadow: 0 0 0 4px #fff3dc; }
.timeline-item small { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.timeline-item > div:first-of-type small { white-space: nowrap; }
.timeline-item strong { display: block; margin-top: 2px; color: var(--light-ink); }
.timeline-item p { margin: 2px 0 0; font-size: 14px; }
.tracking-side { display: grid; gap: 12px; align-content: start; }
.tracking-side .card { background: #fff; border: 1px solid var(--light-line); border-radius: 0; padding: 18px; }
.tracking-side .card h3 { margin: 0 0 8px; font-size: 18px; }
.tracking-side .card p { margin: 0 0 8px; }
.tracking-side .btn { min-height: 42px; margin-top: 6px; }
.app-page .lt-band a.btn { color: #fff; text-decoration: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 16px; }
.tab-btn {
  cursor: pointer; padding: 9px 14px; border-radius: 0; font-weight: 800; font-size: 14px;
  border: 1px solid var(--light-line); background: #fff; color: var(--light-ink);
}
.tab-btn.active { background: var(--light-ink); border-color: var(--light-ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.app-page .table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0; overflow: hidden; }
.app-page .table th, .app-page .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--light-line); font-size: 14px; }
.app-page .table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.photo-grid a { display: block; overflow: hidden; border-radius: 0; border: 1px solid var(--light-line); background: #fff; }
.photo-grid img { width: 100%; height: 140px; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.doc-list { display: grid; gap: 8px; margin-top: 12px; }
.doc-list a {
  display: block; padding: 12px 14px; border-radius: 0; font-weight: 700; text-decoration: none !important;
  border: 1px solid var(--light-line); background: #fff; color: var(--light-ink) !important;
}
.doc-list a::before { content: "↓ "; color: var(--blue); }
.track-subscribe { margin-top: 28px; }
.track-subscribe h3 { margin: 0 0 6px; }
.track-subscribe .small { margin-bottom: 16px; }
.track-subscribe .form-grid { align-items: end; }

@media (max-width: 1050px) {
  .tracking-shell { grid-template-columns: 1fr; }
  .shipment-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .app-hero { padding-top: 48px; padding-bottom: 40px; }
  .form-card { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-12, .span-8, .span-6, .span-4, .span-3 { grid-column: span 1; }
  .shipment-head { grid-template-columns: 1fr 1fr; }
  .fact-card strong { font-size: 16px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .app-page #eta-tab { overflow-x: auto; }
}
