/* BlueSky Parcel claims portal. No outside addresses, no script, one sheet. */

@font-face {
  font-family: "Tight"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tight"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0F172A;
  --sky: #27A4FB;
  --ink: #0B1020;
  --ink-2: #454C5B;
  --ink-3: #667085;
  --line: #E5E9F0;
  --line-2: #D5DBE5;
  --ground: #F5F7FA;
  --card: #FFFFFF;
  --link: #0B5FA5;
  --ok: #0B6B4A;
  --ok-bg: #E8F6F0;
  --wait: #7A4F00;
  --wait-bg: #FFF8E8;
  --wait-line: #F2DDA9;
  --bad: #A4231A;
  --bad-bg: #FDECEA;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.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;
}

/* ---------------------------------------------------------- the top band */

.top { background: var(--navy); color: #FFFFFF; }
.top-in {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-sub { color: #B0BCCD; white-space: nowrap; }

.nav { display: flex; flex-wrap: wrap; gap: 6px; flex-grow: 1; }
.nav-item { color: #D3DBE7; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.nav-item:hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.nav-item.is-on { color: #FFFFFF; background: rgba(255, 255, 255, .14); font-weight: 600; }

.who { display: flex; align-items: center; gap: 10px; }
.who-client { color: #D3DBE7; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px;
}
.avatar:hover { color: var(--navy); }
.top-btn {
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #FFFFFF;
  padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer;
}
.top-btn:hover { background: rgba(255, 255, 255, .1); }

/* -------------------------------------------------------- the view-only band */

.banner { background: var(--wait-bg); border-bottom: 1px solid var(--wait-line); color: var(--wait); }
.banner-in {
  max-width: 1240px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
.banner-text { margin: 0; }
.switcher { display: flex; align-items: center; gap: 8px; }
.switcher-label { font-weight: 600; }

/* ------------------------------------------------------------- page frame */

.main {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.main-auth { max-width: 480px; padding-top: 48px; }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.h1-page { font-size: 26px; }
.h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.lead { margin: 4px 0 0; color: var(--ink-2); }
.text { margin: 0 0 12px; color: var(--ink-2); }
.text:last-child { margin-bottom: 0; }
.after { margin: 16px 0 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-empty { text-align: center; padding: 48px 22px; }
.card-issued { border-color: var(--sky); }
.auth-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ------------------------------------------------------------------ forms */

.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-weight: 600; font-size: 13px; }
.field-hint { color: var(--ink-3); font-size: 13px; margin: 0; }

.input, .select {
  width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 12px; font: inherit; color: var(--ink); background: #FFFFFF;
}
.select { width: auto; min-height: 36px; padding: 6px 10px; }
.input[readonly] { background: var(--ground); color: var(--ink-2); }
.input-code { font-size: 20px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.input-link { margin-top: 4px; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn-main { background: var(--ink); color: #FFFFFF; }
.btn-main:hover { background: var(--navy); color: #FFFFFF; }
.btn-quiet { background: #FFFFFF; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--ground); color: var(--ink); }
.btn-danger { background: #FFFFFF; color: var(--bad); border-color: var(--line-2); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-small { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }

.note { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.note-ok { background: var(--ok-bg); border-color: #BFE5D4; color: var(--ok); }
.note-bad { background: var(--bad-bg); border-color: #F4C7C2; color: var(--bad); }

/* ---------------------------------------------------------- two-step setup */

.steps-plain { margin: 0; padding-left: 20px; color: var(--ink-2); }
.qr-box { display: flex; justify-content: center; }
.qr { width: 196px; height: 196px; border: 1px solid var(--line); border-radius: 10px; }
.key {
  margin: 0; padding: 10px 12px; background: var(--ground); border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace; font-size: 14px; text-align: center;
  overflow-wrap: anywhere;
}
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.code {
  padding: 9px 10px; background: var(--ground); border-radius: 8px; text-align: center;
  font-family: ui-monospace, Consolas, monospace; font-size: 14px;
}

/* ----------------------------------------------------------------- tables */

/* relative: a screen-reader label inside a wide table is positioned absolute,
   and without an anchor here it escapes the scroller and widens the phone page */
.table-wrap { position: relative; overflow-x: auto; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; }
.table thead th {
  text-align: left; color: var(--ink-3); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px;
}
.table tbody th, .table tbody td {
  text-align: left; font-weight: 400; padding: 12px 16px; border-top: 1px solid #EEF1F5;
  vertical-align: middle;
}
.table tbody th { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-wait { background: var(--wait-bg); color: var(--wait); }

/* -------------------------------------------------------------- the steps */

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.step { border-top: 3px solid var(--sky); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.step-name { font-weight: 700; }
.step-text { color: var(--ink-2); font-size: 14px; }

/* ------------------------------------------------------------ your claims */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.tile-warm { background: var(--wait-bg); border-color: var(--wait-line); }
.tile-name { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.tile-warm .tile-name { color: var(--wait); }
.tile-n { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.tile-sub { color: var(--ink-3); font-size: 13px; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; flex-grow: 1; }
.filter {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--ink); font-size: 13px; font-weight: 600; background: #FFFFFF;
}
.filter:hover { background: var(--ground); color: var(--ink); }
.filter.is-on, .filter.is-on:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.search { display: flex; align-items: center; gap: 6px; }
.input-search { width: 230px; min-height: 34px; padding: 5px 10px; font-size: 14px; }

.table-claims { min-width: 860px; }
.claim-link { font-weight: 600; }
.sub { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; white-space: nowrap; }
.table .mono { white-space: nowrap; }
.sub-inline { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.mono { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.next { color: var(--ink-2); }

.where { display: block; font-weight: 600; }
.where-big { font-size: 16px; }
.tone-ok.where { color: var(--ok); }
.tone-bad.where { color: var(--bad); }
.tone-wait.where { color: var(--wait); }
.tone-info.where { color: var(--link); }
.tone-plain.where { color: var(--ink-2); }
.bars { display: flex; gap: 3px; margin-top: 5px; max-width: 120px; }
.bar { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); }
.tone-ok .bar.is-on { background: var(--ok); }
.tone-bad .bar.is-on { background: var(--bad); }
.tone-wait .bar.is-on { background: #C58A12; }
.tone-info .bar.is-on { background: var(--sky); }
.tone-plain .bar.is-on { background: var(--ink-3); }

.chip-plain { background: #EEF1F5; color: var(--ink-2); }

/* -------------------------------------------------------------- new claim */

.wizard { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); }
.wizard-step { font-weight: 600; font-size: 14px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.wizard-step.is-on { color: var(--ink); border-bottom-color: var(--sky); }

.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.area { min-height: 96px; resize: vertical; line-height: 1.4; }
.file { max-width: 100%; font: inherit; font-size: 14px; }
.tick { width: 18px; height: 18px; flex: none; }
.card-head { padding: 18px 22px 8px; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.card-foot-bare { border-top: 0; padding: 0; }
.details { display: flex; flex-direction: column; gap: 20px; }
.lead-gap { margin-bottom: 14px; }
.h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.note-title { margin: 0 0 4px; font-weight: 600; }
.note-list { margin: 0; padding-left: 20px; }
.cols-tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.btn-fit { align-self: flex-start; }

/* no script: a radio button shows the proof panel that belongs to it */
.problem-form { position: relative; }
.pick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice {
  display: flex; flex-direction: column; gap: 1px; padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.choice-name { font-weight: 600; }
.choice-hint { color: var(--ink-3); font-size: 13px; }
.pick:checked + .choice { border-color: var(--sky); background: #E8F4FE; }
.pick:focus-visible + .choice { outline: 2px solid var(--sky); outline-offset: 2px; }
.proofs { margin-top: 10px; }
.proof { display: none; }
#pick-lost:checked ~ .proofs #proof-lost,
#pick-not_received:checked ~ .proofs #proof-not_received,
#pick-damaged:checked ~ .proofs #proof-damaged,
#pick-contents_missing:checked ~ .proofs #proof-contents_missing { display: block; }
.slot { padding: 11px 0; border-top: 1px solid #EEF1F5; }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.tag-need { color: var(--bad); }
.form-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; margin-bottom: 8px; background: var(--ground); border-radius: 10px; }
.confirm { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-weight: 600; }
.sent-list { margin: 8px 0 0; padding-left: 20px; }

/* -------------------------------------------------------------- one claim */

.back { margin: 0; font-weight: 600; font-size: 14px; }
.card-wait { background: var(--wait-bg); border-color: var(--wait-line); }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.track-step { border-top: 4px solid var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 2px; }
.track-step.is-done, .track-step.is-now { border-top-color: var(--sky); }
.track-step.is-later .step-name, .track-step.is-later .step-text { color: var(--ink-3); }

.updates, .docs, .journey, .credits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.update { display: flex; gap: 10px; }
.face {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
}
.face-bsp { background: #E8F4FE; color: var(--link); }
.face-carrier { background: #FFF1D6; color: var(--wait); }
.face-client { background: #EEF1F5; color: var(--ink-2); }
.update-body { min-width: 0; }
.update-head { margin: 0; }
.update-text { margin: 2px 0 0; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.docs a { overflow-wrap: anywhere; }
.journey { gap: 8px; }
.journey-line { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.journey-at { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ phone */

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 100%; }
  .input-search { width: 100%; }
  .journey-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .top-in, .banner-in { padding-left: 16px; padding-right: 16px; }
  .main { padding: 20px 16px 32px; }
  .main-auth { padding-top: 24px; }
  .auth-card { padding: 20px; }
  .brand-sub { display: none; }
  .who { width: 100%; justify-content: space-between; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .field { flex: 0 0 auto; }
  .btn-main { width: 100%; }
}
