/* Septmax Logistics PWA — mobile-first, no build step */
:root {
  --navy: #0b1f3a;
  --navy-2: #13305a;
  --teal: #0e8c8c;
  --teal-d: #0a6f6f;
  --teal-l: #e3f4f4;
  --yellow: #f5b400;
  --yellow-l: #fff5d6;
  --green: #1fa855;
  --green-l: #e5f6ec;
  --red: #d64545;
  --red-l: #fdeaea;
  --amber: #c27c00;
  --amber-l: #fff1d6;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 4px 16px rgba(11, 31, 58, .06);
  --shadow-lg: 0 8px 30px rgba(11, 31, 58, .14);
  --focus: 0 0 0 3px rgba(14, 140, 140, .35);
  --tabbar-h: 64px;
  --appbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-d); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: calc(var(--safe-t) + 8px); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 18px; height: 18px; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(var(--appbar-h) + var(--safe-t));
  padding: var(--safe-t) 12px 0 16px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar__brand { display: flex; align-items: center; height: 100%; border-radius: 8px; }
.appbar__logo { height: 38px; width: auto; }
.appbar__actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--navy); cursor: pointer; text-decoration: none;
}
.icon-btn:active { background: var(--bg); }
.icon-btn--sm { width: 36px; height: 36px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; user-select: none;
  transition: transform .08s ease, background-color .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(14, 140, 140, .3); }
.btn--primary:hover { background: var(--teal-d); }
.btn--secondary { background: var(--teal-l); color: var(--teal-d); }
.btn--ghost { background: transparent; color: var(--teal-d); }
.btn--whatsapp { background: var(--green); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--install {
  min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 999px;
  background: var(--navy); color: #fff;
}
.btn--install .ic { width: 18px; height: 18px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .85; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--teal-d); font-weight: 600; text-decoration: none; font-size: 14px; }
.link--btn { background: none; border: 0; padding: 6px 4px; cursor: pointer; }

/* ---------- Layout ---------- */
.screens {
  max-width: 640px; margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);
  min-height: 70vh;
}
.screen { animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.screen__head { padding: 6px 2px 14px; }
.screen__title { font-size: 28px; font-weight: 800; color: var(--navy); }
.screen__sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 24px 2px 12px; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card__title { font-size: 16px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(14, 140, 140, .55) 0%, rgba(14, 140, 140, 0) 55%), var(--navy);
  color: #fff; border-radius: 24px; padding: 22px 18px 18px; box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; left: 18px; top: 0; width: 56px; height: 5px;
  background: var(--yellow); border-radius: 0 0 6px 6px;
}
.hero__eyebrow { margin: 0 0 6px; color: var(--yellow); font-weight: 600; font-size: 14px; }
.hero__title { font-size: 26px; font-weight: 800; }
.hero__sub { margin: 8px 0 16px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.hero__track {
  display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 4px 4px 4px 14px;
}
.hero__track input {
  flex: 1; min-width: 0; border: 0; background: transparent; height: 46px; font-size: 16px;
  color: var(--text); text-transform: uppercase; letter-spacing: .02em;
}
.hero__track input::placeholder { text-transform: none; color: #8a97a8; letter-spacing: 0; }
.hero__track input:focus { outline: none; }
.hero__track:focus-within { box-shadow: 0 0 0 3px rgba(245, 180, 0, .6); }
.hero__go {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; border: 0;
  background: var(--yellow); color: var(--navy); cursor: pointer;
}

/* ---------- Quick actions ---------- */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action {
  display: flex; flex-direction: column; gap: 2px; min-height: 128px; padding: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: transform .08s ease;
}
.action:active { transform: scale(.97); }
.action__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: auto;
}
.action__label { font-weight: 700; font-size: 16px; margin-top: 12px; }
.action__hint { color: var(--muted); font-size: 13px; }
.action--teal .action__icon { background: var(--teal-l); color: var(--teal-d); }
.action--yellow .action__icon { background: var(--yellow-l); color: #9a6f00; }
.action--green .action__icon { background: var(--green-l); color: var(--green); }
.action--navy .action__icon { background: #e6ebf3; color: var(--navy); }

.chips-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.svc-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; scroll-snap-align: start;
  padding: 10px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none;
}
.svc-pill .ic { color: var(--teal); }

.install-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.install-card__icon img { border-radius: 12px; }
.install-card__text { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.install-card__text strong { color: var(--text); font-size: 15px; }
.recent-card { margin-top: 18px; }

/* ---------- Forms ---------- */
.form { display: block; }
.fieldset { border: 0; margin: 0 0 14px; min-width: 0; }
.fieldset__legend {
  float: left; width: 100%; padding: 0; margin-bottom: 12px;
  font-weight: 700; font-size: 16px; color: var(--navy);
}
.fieldset__legend + * { clear: both; }
.field { margin-bottom: 14px; }
.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #24344b; }
.req { color: var(--red); }
.field__help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 13px; color: var(--red); font-weight: 500; }
.input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { resize: vertical; min-height: 110px; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235b6b80' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.input:focus { border-color: var(--teal); background: #fff; box-shadow: var(--focus); outline: none; }
.input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.input::placeholder { color: #98a4b3; }
.input-wrap { position: relative; }
.input-wrap__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 46px; }
.input--code { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.input--code::placeholder { letter-spacing: .06em; font-weight: 500; }
.grid-2, .grid-3 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 360px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.form__note { color: var(--muted); font-size: 13px; margin: 0 2px 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 14px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; min-height: 42px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--muted); transition: background-color .15s, color .15s;
}
.segmented input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11, 31, 58, .12); }
.segmented input:focus-visible + span { box-shadow: var(--focus); }

/* Recent chips */
.recent { margin-top: 16px; }
.recent__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.recent__title { font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--navy);
}
.chip:hover { border-color: var(--teal); }
.chip .ic { color: var(--teal); width: 16px; height: 16px; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  margin-bottom: 14px; font-size: 15px; animation: fadeUp .2s ease both;
}
.alert .ic { margin-top: 1px; }
.alert__body { flex: 1; }
.alert__title { display: block; font-weight: 700; margin-bottom: 2px; }
.alert p { margin: 0; }
.alert__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alert--error { background: var(--red-l); color: #7d1f1f; }
.alert--error > .ic { color: var(--red); }
.alert--offline { background: var(--amber-l); color: #6b4500; }
.alert--offline > .ic { color: var(--amber); }
.alert--success { background: var(--green-l); color: #0f5c2e; }
.alert--success > .ic { color: var(--green); }

/* ---------- Track result ---------- */
.track-result:empty { display: none; }
.result { padding: 0; overflow: hidden; }
.result__top { padding: 18px; background: linear-gradient(180deg, #f7fafc, #fff); border-bottom: 1px solid var(--line); }
.result__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result__code { font-weight: 800; letter-spacing: .05em; color: var(--navy); font-size: 18px; }
.result__meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--teal-l); color: var(--teal-d);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--delivered { background: var(--green-l); color: #13803f; }
.badge--hold { background: var(--amber-l); color: var(--amber); }
.badge--exception { background: var(--red-l); color: var(--red); }
.badge--booked { background: #e6ebf3; color: var(--navy-2); }
.badge--customs { background: var(--yellow-l); color: #8a6400; }

.route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; margin-top: 16px; }
.route__end { min-width: 0; }
.route__end--to { text-align: right; }
.route__label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.route__place { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.route__line { align-self: center; display: flex; align-items: center; gap: 4px; color: var(--teal); }
.route__line::before, .route__line::after { content: ""; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 4px, transparent 4px 7px); }

.progress { display: flex; gap: 4px; margin-top: 16px; }
.progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress span.on { background: var(--teal); }
.progress--delivered span.on { background: var(--green); }
.progress--exception span.on { background: var(--red); }
.progress--hold span.on { background: var(--amber); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fact__label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.fact__value { font-weight: 600; font-size: 14px; }

.timeline { list-style: none; margin: 0; padding: 16px 18px 6px; }
.timeline__title { font-weight: 700; padding: 16px 18px 0; margin: 0; font-size: 16px; }
.tl { position: relative; padding: 0 0 18px 30px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl__dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #c6d0dc; }
.tl--current .tl__dot { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 5px rgba(14, 140, 140, .15); }
.tl__status { font-weight: 700; font-size: 15px; }
.tl--current .tl__status { color: var(--teal-d); }
.tl__meta { font-size: 13px; color: var(--muted); }
.tl__note { margin: 4px 0 0; font-size: 14px; color: #33445b; }
.result__actions { display: flex; gap: 8px; padding: 6px 18px 18px; flex-wrap: wrap; }
.result__actions .btn { flex: 1; min-width: 140px; }

.skeleton { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 18px; }
.sk { height: 14px; border-radius: 8px; margin-bottom: 12px;
  background: linear-gradient(90deg, #edf1f5 25%, #f6f8fa 50%, #edf1f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk--lg { height: 22px; width: 55%; }
.sk--md { width: 80%; }
.sk--sm { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.contact-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 92px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); transition: transform .08s;
}
.contact-btn:active { transform: scale(.97); }
.contact-btn .ic { width: 28px; height: 28px; }
.contact-btn--green { background: var(--green); }
.contact-btn--navy { background: var(--navy); }
.contact-btn--teal { background: var(--teal); }

.list-card { padding: 4px 0; }
.list-row {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px;
  text-decoration: none; color: var(--text);
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); flex: none; }
.list-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row__label { font-size: 13px; color: var(--muted); }
.list-row__value { font-weight: 600; font-size: 15px; }
.list-row__chev { color: #a5b0be; }

/* ---------- More ---------- */
.about-card p { margin: 0 0 10px; color: #33445b; }
.about-card p:last-child { margin: 0; }
.services { list-style: none; padding: 6px 0; margin: 0 0 14px; }
.services li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-weight: 600; font-size: 15px; }
.services li + li { border-top: 1px solid var(--line); }
.services__num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--navy); color: var(--yellow); font-size: 13px; font-weight: 800;
}
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.social {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 600;
}
.social svg { width: 24px; height: 24px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin: 24px 0 0; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #7b8798; text-decoration: none; font-size: 11.5px; font-weight: 600; min-height: 48px;
}
.tab .ic { transition: transform .15s; }
.tab[aria-current="page"] { color: var(--teal-d); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow);
}
.tab[aria-current="page"] .ic { transform: translateY(-1px); }
.tab:focus-visible { box-shadow: inset var(--focus); border-radius: 12px; }

/* ---------- Banners / toast ---------- */
.netbar {
  position: sticky; top: calc(var(--appbar-h) + var(--safe-t)); z-index: 19;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; background: var(--amber-l); color: #6b4500; font-size: 13px; font-weight: 600;
}
.ios-hint {
  position: fixed; left: 12px; right: 12px; z-index: 40;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease both;
  max-width: 560px; margin: 0 auto;
}
.ios-hint__icon { border-radius: 11px; }
.ios-hint__body { flex: 1; font-size: 14px; }
.ios-hint__body p { margin: 2px 0 0; color: var(--muted); }
.ios-share { display: inline-flex; vertical-align: -3px; color: #0a84ff; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px);
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; animation: fadeUp .2s ease both;
}
.toast__action { background: none; border: 0; color: var(--yellow); font-weight: 700; cursor: pointer; padding: 6px; }

.noscript { padding: 20px; text-align: center; }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .screens { padding-top: 24px; }
  .actions { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 32px 28px 26px; }
  .hero__title { font-size: 32px; }
  .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 12px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); height: var(--tabbar-h); padding-bottom: 0; }
}

/* Standalone tweaks */
@media (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; }
  input, textarea, .result, .about-card { user-select: text; -webkit-user-select: text; }
}

/* ---------- Blog ---------- */
.blog-strip { margin-top: 6px; }
.blog-strip__head { margin: 24px 2px 12px; }
.blog-strip__head .section-title { margin: 0; }
.blog-strip__list { display: grid; gap: 10px; }
.post-list { display: grid; gap: 14px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.post-card:active { transform: scale(.99); }
.post-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--teal-l); }
.post-card__img--ph { display: grid; place-items: center; color: var(--teal); }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.post-card__date { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; }
.post-card__title { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.post-card__excerpt { font-size: 14px; color: #3c4b60; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--compact { flex-direction: row; align-items: stretch; }
.post-card--compact .post-card__img { width: 104px; aspect-ratio: auto; min-height: 84px; flex: none; }
.post-card--compact .post-card__body { padding: 10px 14px; justify-content: center; gap: 4px; }
.post-card--compact .post-card__title { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--sk .sk { margin: 0; }
.post-card--sk .post-card__body .sk { height: 14px; border-radius: 6px; }
.blog-more { margin-top: 16px; }
.blog-note { background: var(--amber-l); color: #6b4500; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }
.empty { text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty p { margin: 0 0 10px; }
.post-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px -4px; }
.post-head { padding: 0 2px 12px; }
.post-title { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.25; margin: 6px 0 0; }
.post-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--teal-l); }
.post-body { font-size: 16px; line-height: 1.65; color: #1d2b3f; overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--navy); line-height: 1.3; margin: 1.4em 0 .5em; }
.post-body h2 { font-size: 20px; } .post-body h3 { font-size: 18px; } .post-body h4 { font-size: 16px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .35em; }
.post-body a { color: var(--teal-d); font-weight: 600; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 1em auto; }
.post-body figure { margin: 1em 0; }
.post-body figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.post-body blockquote { margin: 1em 0; padding: 4px 0 4px 14px; border-left: 4px solid var(--teal); color: #3c4b60; }
.post-body pre { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 10px; font-size: 14px; }
.post-table { overflow-x: auto; margin: 1em 0; }
.post-body table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg); }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.post-card--sk .sk.post-card__img, .skeleton .sk.post-hero { height: auto; margin: 0 0 12px; }

/* push opt-in card */
.push-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 12px 0; border-radius: 14px; background: var(--teal-l); color: var(--teal-d); }
.push-card[hidden] { display: none; }
.push-card__ic { font-size: 20px; line-height: 1; }
.push-card__text { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; }
.push-card .btn { flex-shrink: 0; }
.push-card__x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; opacity: .7; }
