/* ==========================================================================
   KW Coastal Bend - Agent Portal
   Mobile-first app shell, responsive to desktop at 900px.
   Design tokens lifted from the Claude Design handoff ("App Shelf").
   ========================================================================== */

:root {
  /* brand - hex first so old browsers get a sane red, oklch below when supported */
  --red:        #c5102a;   /* primary / accent */
  --red-deep:   #9e0b21;   /* header band */
  --red-press:  #7d0819;   /* pressed / hover on solid red */

  --bg:     #f4f4f6;
  --card:   #ffffff;
  --ink:    #1a1918;
  --muted:  #86827d;
  --label:  #9a979f;
  --line:   #e4e4e8;
  --sunk:   #f4f4f6;

  --sh-1: 0 1px 2px rgba(0,0,0,0.07);
  --sh-2: 0 4px 12px rgba(0,0,0,0.13);

  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;

  --wrap: 1200px;
  --gap: 8px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  --tabbar-h: calc(58px + var(--safe-b));
}

@supports (color: oklch(0.5 0.2 27)) {
  :root {
    --red:       oklch(0.52 0.21 27);
    --red-deep:  oklch(0.42 0.17 27);
    --red-press: oklch(0.34 0.15 27);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 6px;
}
.band :focus-visible { outline-color: #fff; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 100;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--sh-2);
}
.skip-link:focus { top: calc(12px + var(--safe-t)); }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ==========================================================================
   Top band
   ========================================================================== */

.band {
  background: var(--red-deep);
  color: #fff;
  padding-top: var(--safe-t);
}

.band-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px calc(20px + var(--safe-r)) 18px calc(20px + var(--safe-l));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: block; line-height: 0; max-width: 62%; }
.logo img { height: 48px; width: auto; object-fit: contain; }
.logo-fallback {
  font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1;
}

/* desktop nav - hidden on phones */
.topnav { display: none; align-items: center; gap: 8px; }
.topnav a {
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.82);
  padding: 9px 13px; border-radius: var(--r-sm);
  white-space: nowrap;
}
.topnav a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.topnav a[aria-current="page"] { background: rgba(255,255,255,0.16); color: #fff; }
.topnav a.hotline { background: var(--red); color: #fff; }
.topnav a.hotline:hover { background: var(--red-press); color: #fff; }

/* home: big search affordance */
.band-search {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: rgba(255,255,255,0.16);
  border-radius: var(--r-md);
  padding: 13px 15px;
  color: rgba(255,255,255,0.88);
  font-size: 15px; font-weight: 500;
}
.band-search:hover { background: rgba(255,255,255,0.24); }

/* inner page: back + title */
.band-title { display: flex; flex-direction: column; gap: 2px; }
.band-back {
  align-self: flex-start;
  color: rgba(255,255,255,0.74);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.band-back:hover { color: #fff; }
.band-title h1 {
  margin: 0;
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15;
}
.band-title p { margin: 0; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.74); }

/* ==========================================================================
   Body wrap
   ========================================================================== */

.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px calc(20px + var(--safe-r)) calc(24px + var(--tabbar-h)) calc(20px + var(--safe-l));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wrap:focus { outline: none; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.narrow { max-width: 720px; }
.narrower { max-width: 640px; }
.mid { max-width: 840px; }

/* ==========================================================================
   Cards - shared
   ========================================================================== */

.card {
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}
.tapcard {
  display: block; width: 100%; text-align: left; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tapcard:hover { box-shadow: var(--sh-2); color: inherit; }
.tapcard:active { transform: scale(0.985); }

/* ==========================================================================
   Home - quick actions
   ========================================================================== */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.quick > * {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 13px 6px;
  text-align: center;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.quick > *:hover { box-shadow: var(--sh-2); color: var(--ink); }
.quick > *:active { transform: scale(0.97); }
.quick svg { color: var(--red); }
.quick .accent { background: var(--red); color: #fff; }
.quick .accent:hover { background: var(--red-deep); color: #fff; }
.quick .accent svg { color: #fff; }

/* ==========================================================================
   Home - wifi + help banners
   ========================================================================== */

.banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.banner {
  border-radius: var(--r-xl);
  padding: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left;
}
.banner .txt { min-width: 0; }
.banner .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.banner .ttl { font-size: 17px; font-weight: 700; padding-top: 3px; }
.banner .sub { font-size: 13px; padding-top: 1px; overflow-wrap: anywhere; }
.banner .act {
  flex: none; font-size: 13px; font-weight: 700;
  padding: 10px 14px; border-radius: var(--r-sm);
  white-space: nowrap;
}

.banner-dark { background: var(--ink); }
.banner-dark .eyebrow { color: #8d8a86; }
.banner-dark .ttl { color: #fff; }
.banner-dark .sub { color: #b5b1ac; }
.banner-dark .act { background: var(--red); color: #fff; }
.banner-dark .act:hover { background: var(--red-deep); }
.banner-dark .pw { letter-spacing: 0.04em; }

.banner-light { background: var(--card); box-shadow: var(--sh-1); }
.banner-light .eyebrow { color: var(--label); }
.banner-light .ttl { color: var(--ink); }
.banner-light .sub { color: var(--muted); }
.banner-light .act { background: var(--sunk); color: var(--ink); }
.banner-light:hover { box-shadow: var(--sh-2); }

/* add-to-home-screen banner + its dismiss control */
.banner-install { position: relative; padding-right: 44px; }
.banner-x {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
}
.banner-x:hover { background: var(--sunk); color: var(--ink); }

/* iOS "how to install" card - no install API exists there, so we explain */
.install-help { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ih-row { display: flex; gap: 12px; align-items: flex-start; }
.ih-row svg { flex: none; color: var(--red); margin-top: 2px; }
.ih-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.ih-s { font-size: 13px; color: var(--muted); padding-top: 3px; line-height: 1.45; }

/* ==========================================================================
   Home - section tiles
   ========================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
}
.tile {
  border-radius: var(--r-xl);
  padding: 14px;
  min-height: 84px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.tile .badge {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.tile .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.tile .m { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Rows - links, docs, results
   ========================================================================== */

.row {
  border-radius: var(--r-lg);
  padding: 14px 15px;
  display: flex; align-items: center; gap: 12px;
}
/* headshot on a person row (ALC) - same treatment as the staff/agent
   avatars, sized down so the row keeps its compact height */
.row .thumb {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(45deg,#ece9e9,#ece9e9 4px,#f6f3f3 4px,#f6f3f3 8px);
  border: 1px solid #e8e4e4;
  object-fit: cover;
  object-position: 50% 18%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #b3aeae;
}
/* date block on a calendar event row - same tinted tile as a doc's file icon */
.row .when {
  width: 42px; height: 44px; flex: none;
  border-radius: 9px;
  background: #f6f1f0; border: 1px solid #e6dedd;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.row .when .mon { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; color: var(--red); }
.row .when .day { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 3px; }
/* an event with a description: the row opens to show it. The directions /
   join button sits over the row, just left of the chevron, like .row-map */
.ev { position: relative; overflow: hidden; }
.ev-head { width: 100%; text-align: left; }
.ev.has-go .ev-head .txt { margin-right: 44px; }
.ev-go {
  position: absolute; top: 36px; right: 44px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--red);
}
.ev-go:hover { background: #f6f1f0; color: var(--red); }
.ev-body { padding: 0 15px 15px 69px; display: flex; flex-direction: column; gap: 12px; }
.ev-details {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink);
  white-space: pre-line; overflow-wrap: anywhere;
}
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; padding: 10px 16px; font-size: 14px; color: #fff; }
.ev-btn:hover { color: #fff; }
@media (max-width: 380px) { .ev-body { padding-left: 15px; } }
.cal-more { width: 100%; margin-top: 4px; }
.empty.cal-empty { padding: 4px 4px 8px; }
.row .txt { flex: 1; min-width: 0; }
.row .t { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.row .m { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.row .chev { flex: none; color: #c4c1c6; display: grid; place-items: center; }
/* rows that dial or compose get the accent, so the icon reads as an action */
.row .chev-action { color: var(--red); }
/* map button laid over the right side of a row, just left of its call icon */
.row-wrap { position: relative; }
.row-wrap.has-map .row .txt { margin-right: 44px; }
.row-map {
  position: absolute; top: 50%; right: 44px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--red);
}
.row-map:hover { background: #f6f1f0; color: var(--red); }

.doc { border-radius: var(--r-lg); padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.doc .file {
  width: 34px; height: 42px; flex: none;
  border-radius: 5px;
  background: #f6f1f0; border: 1px solid #e6dedd;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
}
.doc .file-img {
  width: 76px; padding: 6px;
  align-items: center;
  background: #fff; border-color: var(--line);
}
.doc .file-img.file-dark { background: var(--ink); border-color: var(--ink); }
.doc .file-img img { display: block; width: 100%; height: auto; }
.doc .file span { font-size: 8px; font-weight: 800; letter-spacing: 0.04em; color: var(--red); }
.doc .txt { flex: 1; min-width: 0; }
.doc .t { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.doc .m { font-size: 12px; color: var(--muted); }
.doc .open {
  flex: none;
  font-size: 13px; font-weight: 700; color: var(--red);
  border: 1px solid #eadedd; border-radius: 8px;
  padding: 9px 13px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.doc .open:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* group label */
.glabel {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--label);
  padding: 10px 2px 2px;
  text-transform: uppercase;
}

/* field grid (broker info, office info) */
.fields {
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 12px;
}
.field { min-width: 0; }
.field .ft { display: block; min-width: 0; }
.field .k {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--label);
}
/* pre-line so a value can force its own break - see the brokerage name,
   which reads better split after "Williams" than wrapped anywhere */
.field .v { display: block; font-size: 14px; font-weight: 600; color: var(--ink);
  padding-top: 3px; overflow-wrap: anywhere; white-space: pre-line; }

/* a copyable field is a button - the whole thing copies just its own value.
   The ring is drawn with box-shadow so the highlight reaches into the grid
   gap without the field taking up any more room than a plain one. */
button.field {
  appearance: none; -webkit-appearance: none;
  font: inherit; text-align: left; color: inherit;
  background: none; border: 0; margin: 0; padding: 0;
  width: 100%; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}
button.field .fc { flex: none; color: var(--label); opacity: .5; display: grid; place-items: center; }
button.field:hover, button.field:focus-visible {
  background: var(--sunk); box-shadow: 0 0 0 6px var(--sunk);
}
button.field:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
button.field:hover .fc, button.field:focus-visible .fc { opacity: 1; color: var(--red); }
button.field:active { opacity: .7; }

/* plain reference list - form checklists, rules, requirements */
.checklist { padding: 14px 16px; }
.cl-head {
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--label);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.cl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cl-items li {
  font-size: 14px; color: var(--ink); line-height: 1.45;
  padding-left: 22px; position: relative; overflow-wrap: anywhere;
}
/* Open squares, so a list of requirements reads like something you work
   through. Purely visual - these are reference lists, nothing to tick off,
   so there is no input and no hit target here. */
.cl-items li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 11px; height: 11px; border-radius: 2px;
  border: 1.5px solid var(--red); background: none;
}
.cl-warn { font-size: 13px; font-weight: 700; color: var(--red); padding: 2px 4px 0; }
.agent-count { font-size: 12px; color: var(--muted); padding: 2px 4px; }

/* vendors - tappable category accordion */
.vcat { overflow: hidden; }
.vcat-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 15px; text-align: left;
}
.vcat-t { flex: 1; font-size: 15px; font-weight: 700; color: var(--ink); }
.vcat-n {
  flex: none; font-size: 12px; font-weight: 800; color: var(--muted);
  background: var(--sunk); border-radius: 999px; padding: 3px 9px;
}
.vcat-chev { flex: none; color: #c4c1c6; display: grid; place-items: center; transition: transform .15s ease; }
.vcat-chev.open { transform: rotate(90deg); color: var(--red); }
.vcat-body { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.vcat-body .person { box-shadow: none; background: var(--sunk); }
.vcat-body .doc { box-shadow: none; background: var(--sunk); }

.copy-all {
  background: var(--sunk); border-radius: 10px;
  padding: 11px; width: 100%;
  text-align: center; font-size: 13px; font-weight: 700; color: var(--ink);
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.copy-all:hover { background: #e9e9ee; }

/* ==========================================================================
   Search
   ========================================================================== */

.searchbox { position: relative; }
.searchbox svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--label); pointer-events: none;
}
.searchbox input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 15px 14px 42px;
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  color: var(--ink);
  outline: none;
}
.searchbox input:focus { border-color: var(--red); }

.empty { padding: 22px 4px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Staff
   ========================================================================== */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.person { padding: 14px; display: flex; align-items: center; gap: 14px; }
.person .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(45deg,#ece9e9,#ece9e9 4px,#f6f3f3 4px,#f6f3f3 8px);
  border: 1px solid #e8e4e4;
  object-fit: cover;
  /* headshots are portrait - bias the crop upward so faces stay in frame */
  object-position: 50% 18%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #b3aeae;
}
/* vendor company logo in place of initials - logos are all shapes, so a
   white rounded tile with the whole logo fitted inside, never cropped */
.person .avatar.vlogo {
  width: 64px; border-radius: 12px;
  background: #fff; border-color: var(--line);
  padding: 5px;
}
.person .avatar.vlogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.person .txt { flex: 1; min-width: 0; }
.person .n { font-size: 16px; font-weight: 700; color: var(--ink); }
.person .r { font-size: 13px; color: var(--muted); }
.person .e {
  font-size: 13px; font-weight: 600; display: block; padding-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.person .actions { display: flex; gap: 8px; flex: none; }
.person .actions a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--red);
}
.person .actions a:hover { background: var(--red); color: #fff; border-color: var(--red); }

.note { font-size: 12px; color: #a9a5a5; padding: 6px 4px; grid-column: 1 / -1; }

/* ==========================================================================
   Help form
   ========================================================================== */

.form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.flabel { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--label); }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  background: #fff;
}
.form textarea { resize: vertical; line-height: 1.5; min-height: 120px; }
.form input:focus, .form textarea:focus { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--ink);
}
.chip:hover { border-color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }

.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: #fff;
  border-radius: 10px; padding: 13px 20px;
  font-size: 15px; font-weight: 700;
}
.btn-primary:hover { background: var(--red-deep); }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn-quiet {
  background: var(--sunk); border-radius: 10px;
  padding: 11px 15px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.btn-quiet:hover { background: #e9e9ee; }
.link-quiet { font-size: 14px; font-weight: 700; color: #6f6b6b; }
.link-quiet:hover { color: var(--red); }

.sent { padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sent h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.sent p { margin: 0; font-size: 14px; color: #6f6b6b; line-height: 1.5; }

.err { font-size: 13px; font-weight: 700; color: var(--red); }

/* ==========================================================================
   Mobile tab bar
   ========================================================================== */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px var(--safe-r) calc(7px + var(--safe-b)) var(--safe-l);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--label);
  font-size: 10px; font-weight: 700;
  padding: 2px 0;
  min-height: 44px;
  justify-content: center;
}
.tabbar a[aria-current="page"] { color: var(--red); }
.tabbar a:active { opacity: .6; }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: calc(var(--tabbar-h) + 14px);
  z-index: 40;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 900px) {
  :root { --tabbar-h: 0px; }

  .topnav { display: flex; }
  .tabbar { display: none; }

  .wrap { padding-bottom: 60px; gap: 16px; }
  .band-inner { padding-top: 20px; padding-bottom: 22px; }
  .band-search { max-width: 520px; }
  .band-title h1 { font-size: 34px; }

  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; }
  .quick > * { padding: 16px 10px; font-size: 14px; }

  .toast { bottom: 24px; }
}

@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* very small phones */
@media (max-width: 359px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .band-title h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* print - agents do print the broker info page */
@media print {
  .band, .tabbar, .toast, .skip-link, .quick, .banners { display: none !important; }
  .wrap { padding: 0; }
  .card, .fields { box-shadow: none; border: 1px solid #ddd; }
}
