/* ProWin screens. Every size, colour and spacing here is read from sir's design
   file (BLAB ProWin.dc.html). Where the design sets a value inline, it is set
   here as a rule — the numbers are the design's, not rounded or re-judged. */

/* ---------- app frame: headers scroll, nav does not ---------- */

/* The design is a phone (428x908). On a tablet or a desktop the app keeps that
   layout and centres it, rather than stretching a two-column grid across 1440px —
   the spec asks for "professional on a tablet or desktop browser, but mobile is
   the priority", and a stretched phone layout is neither. */
.app {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--blab-white);
  max-width: 560px; margin-inline: auto; width: 100%;
}
body { background: var(--blab-bg); }
@media (min-width: 600px) {
  .app { border-inline: 1px solid var(--blab-border); }
}
.scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--blab-white);
}
main { display: block; }

/* ---------- update strip ---------- */

.updatebar {
  flex: none; background: var(--blab-navy); color: var(--blab-white);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  padding-top: calc(14px + env(safe-area-inset-top));
}
.updatebar p { margin: 0; }
.updatebar .u-main { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.updatebar .u-sub { margin-top: 2px; font-size: 0.75rem; line-height: 1.4; color: rgba(255,255,255,.72); }
.updatebar button {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff;
  font: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
}

/* ---------- home header ---------- */

.home-head {
  position: sticky; top: 0; z-index: 5;
  background: var(--blab-white); border-bottom: 1px solid var(--blab-border);
  padding: 14px 20px 12px; display: flex; gap: 12px; align-items: flex-start;
  padding-top: calc(14px + env(safe-area-inset-top));
}
.home-head .brand { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.home-head .logo { display: block; width: 128px; height: auto; }
.home-head .kicker {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blab-navy);
}
.home-head .motto { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--blab-text-muted); }
.home-head .who { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.home-head .who .name { margin: 0; font-size: 0.875rem; font-weight: 600; text-align: right; }
.home-head .who .role { margin: 0; font-size: 0.6875rem; line-height: 1.4; color: var(--blab-text-muted); text-align: right; }

/* ---------- tool header ---------- */

.tool-head {
  position: sticky; top: 0; z-index: 5;
  background: var(--blab-white); border-bottom: 1px solid var(--blab-border);
  min-height: 56px; flex: none; display: flex; align-items: center; gap: 4px;
  padding: 0 12px 0 4px; padding-top: env(safe-area-inset-top);
}
.tool-head .back {
  flex: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: var(--blab-navy);
}
.tool-head h1 {
  flex: 1; min-width: 0; margin: 0;
  font-family: var(--blab-font-editorial); font-weight: 500;
  font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.005em; color: var(--blab-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- connectivity pill ---------- */

.pill {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border-radius: 8px; border: none;
  cursor: pointer; font: inherit;
  background: var(--blab-success-surface); color: var(--blab-success);
}
.pill[data-online="true"] { background: var(--blab-bg); color: var(--blab-navy); }
.pill .stack2 { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.pill .lbl { font-size: 0.8125rem; font-weight: 600; }
.pill .sub { font-size: 0.625rem; }
.tool-head .pill .lbl { font-size: 0.75rem; }

/* ---------- bottom nav ---------- */

.navbar {
  flex: none; height: 56px; border-top: 1px solid var(--blab-border);
  background: var(--blab-white); display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border: none; background: transparent; cursor: pointer;
  min-height: 44px; font: inherit; color: var(--blab-text-muted);
}
.navbar button span { font-size: 0.6875rem; font-weight: 400; }
.navbar button[aria-current="page"] { color: var(--blab-navy); }
.navbar button[aria-current="page"] span { font-weight: 600; }

/* ---------- screen padding ---------- */

.pad { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.pad-t { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.pad-s { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 22px; }

/* ---------- home ---------- */

.hero {
  display: flex; border-radius: 16px; overflow: hidden;
  background: var(--blab-navy); min-height: 150px;
}
.hero .words {
  flex: 1 1 55%; padding: 20px 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.hero .quote {
  margin: 0; font-family: var(--blab-font-editorial); font-style: italic;
  font-size: 1.3125rem; line-height: 1.3; color: #fff;
}
.hero .rule { width: 36px; height: 1px; background: rgba(255,255,255,.4); margin-bottom: 10px; }
.hero .tag {
  margin: 0; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero .shot { flex: 1 1 45%; position: relative; min-width: 120px; }
.hero .shot img, .strip .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.salonbar {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--blab-bg); border: none; border-radius: 16px;
  padding: 14px 16px; cursor: pointer; min-height: 72px; font: inherit;
  color: var(--blab-text-primary);
}
.salonbar .badge-ico {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  background: var(--blab-white); display: grid; place-items: center; color: var(--blab-navy);
}
.salonbar .txt { flex: 1; min-width: 0; }
.salonbar .txt .k { display: block; font-size: 0.75rem; letter-spacing: 0.01em; color: var(--blab-text-muted); }
.salonbar .txt .v { display: block; font-size: 1rem; font-weight: 600; }
.salonbar .txt .c { display: block; font-size: 0.8125rem; color: var(--blab-text-muted); }
.salonbar .edit {
  flex: none; display: flex; align-items: center; gap: 4px;
  color: var(--blab-accent); font-size: 0.875rem; font-weight: 500;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tile {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 132px; padding: 14px; border-radius: 16px;
  text-align: left; cursor: pointer; font: inherit;
  border: 1px solid var(--blab-border); background: var(--blab-white); color: var(--blab-text-primary);
}
.tile[data-primary="true"] { border: none; background: var(--blab-navy); color: #fff; }
.tile .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tile .t { display: block; margin-top: auto; }
.tile .t b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.tile .t span { display: block; margin-top: 4px; font-size: 0.75rem; line-height: 1.35; color: var(--blab-text-muted); }
.tile[data-primary="true"] .t span { color: rgba(255,255,255,.72); }
.tile[aria-disabled="true"] { opacity: .55; }

.badge {
  display: inline-block; padding: 3px 7px; border-radius: 4px;
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.1em;
  background: var(--blab-bg); color: var(--blab-accent);
}
.tile[data-primary="true"] .badge { background: rgba(255,255,255,.16); color: #fff; }

.strip {
  display: flex; border-radius: 16px; overflow: hidden;
  background: var(--blab-bg); min-height: 116px;
}
.strip .words {
  flex: 1 1 58%; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.strip .quote {
  margin: 0; font-family: var(--blab-font-editorial); font-style: italic;
  font-size: 1.0625rem; line-height: 1.35; color: var(--blab-accent);
}
.strip .tag {
  margin: 0; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blab-text-muted);
}
.strip .shot { flex: 1 1 42%; position: relative; min-width: 110px; }

/* ---------- buttons ---------- */

.btn {
  font: inherit; font-size: 1rem; font-weight: 600;
  min-height: 56px; border: none; border-radius: 8px;
  background: var(--blab-navy); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; padding: 0 18px;
}
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--blab-navy); border: 1px solid var(--blab-navy); }
.btn-quiet {
  background: transparent; color: var(--blab-accent); border: none;
  min-height: 44px; font-size: 0.9375rem; font-weight: 500;
}
.btn-sm { min-height: 44px; font-size: 0.875rem; font-weight: 500; padding: 0 16px; }
.btn:disabled { background: var(--blab-disabled-surface); color: var(--blab-disabled-text); cursor: default; }
.icon-btn {
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--blab-border);
  border-radius: 8px; background: var(--blab-white); cursor: pointer;
  display: grid; place-items: center; color: var(--blab-navy);
}

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.75rem; color: var(--blab-text-muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--blab-border); border-radius: 8px;
  font-size: 1rem; font-family: var(--blab-font-body);
  color: var(--blab-text-primary); background: var(--blab-white);
}
.field textarea { padding: 12px 16px; line-height: 1.5; resize: vertical; min-height: 0; }
.field input:focus, .field textarea:focus { border-color: var(--blab-accent); outline: none; }
.fields { display: flex; flex-direction: column; gap: 18px; }
.fields-tight { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- sticky action bar ---------- */

.actionbar {
  position: sticky; bottom: 0; z-index: 4;
  background: var(--blab-white); border-top: 1px solid var(--blab-border);
  padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 8px;
}
.actionbar.row { flex-direction: row; gap: 8px; }
.actionbar.row .btn { flex: 1; }

/* ---------- cards and notes ---------- */

.card { border: 1px solid var(--blab-border); border-radius: 16px; padding: 16px; }
.note-card {
  background: var(--blab-bg); border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.note-card p { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--blab-text-muted); }
.note-card .ico { flex: none; color: var(--blab-navy); }

.eyebrow-accent {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blab-accent);
}

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 20px; right: 20px; bottom: 80px; z-index: 40;
  background: var(--blab-navy); border-radius: 8px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  max-width: 600px; margin: 0 auto;
}
.toast p { margin: 0; flex: 1; font-size: 0.8125rem; line-height: 1.4; color: #fff; }
.toast .ico { color: #fff; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise .18s ease-out; }
  @keyframes rise { from { transform: translateY(8px); opacity: 0; } }
}

/* ---------- share sheet ---------- */

.sheet-wrap {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sheet-scrim { position: absolute; inset: 0; border: none; background: var(--blab-scrim); cursor: pointer; }
.sheet {
  position: relative; background: var(--blab-white);
  border-radius: 24px 24px 0 0; padding: 20px 20px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
  max-width: 600px; width: 100%; margin: 0 auto;
}
.sheet .head { display: flex; align-items: flex-start; gap: 12px; }
.sheet .head .grow { flex: 1; min-width: 0; }
.sheet .title {
  margin: 0; font-family: var(--blab-font-editorial);
  font-size: 1.125rem; font-weight: 500; color: var(--blab-navy);
}
.sheet .file { margin: 4px 0 0; font-size: 0.8125rem; color: var(--blab-text-muted); word-break: break-all; }
.sheet .close {
  flex: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: var(--blab-navy);
}
.sheet .saved {
  display: flex; align-items: center; gap: 10px;
  background: var(--blab-success-surface); border-radius: 8px; padding: 12px 14px;
}
.sheet .saved p { margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--blab-success); }
.sheet .saved .ico { color: var(--blab-success); flex: none; }
.sheet .targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet .targets button {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-height: 96px; padding: 16px 8px; border: 1px solid var(--blab-border);
  border-radius: 16px; background: var(--blab-white); cursor: pointer;
  font: inherit; color: var(--blab-navy);
}
.sheet .targets button span {
  font-size: 0.8125rem; font-weight: 500; color: var(--blab-text-primary);
  text-align: center; line-height: 1.3;
}
.sheet .foot { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--blab-text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-up .2s ease-out; }
  @keyframes sheet-up { from { transform: translateY(16px); } }
}

/* ---------- splash ---------- */

.splash {
  min-height: 100dvh; background: var(--blab-navy);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 28px 36px;
}
.splash .mid { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.splash .mid img { display: block; width: 176px; height: auto; }
.splash .kicker {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
}
.splash .line {
  margin: 12px 0 0; font-family: var(--blab-font-editorial); font-style: italic;
  font-size: 1.375rem; line-height: 1.35; color: #fff;
}
.splash .bot { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.splash .track { width: 100%; height: 2px; background: rgba(255,255,255,.24); border-radius: 2px; overflow: hidden; }
.splash .track i { display: block; height: 100%; background: #fff; width: 72%; }
.splash .status { margin: 0; font-size: 0.75rem; color: rgba(255,255,255,.72); }
.splash button {
  margin-top: 6px; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}

/* ---------- misc ---------- */

.stack { display: flex; flex-direction: column; gap: 18px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--blab-text-muted); }
.list-plain { list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Screens not yet rebuilt to the design file — order, products, catalogs,
   My Files. Stages E and F replace these wholesale. Kept on-brand and usable
   in the meantime so the app never looks broken between stages.
   ========================================================================== */

.eyebrow {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blab-text-muted);
}
.muted { color: var(--blab-text-muted); }
.small { font-size: 0.875rem; }
.caption { font-size: 0.75rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.hint { font-size: 0.75rem; color: var(--blab-text-muted); }
.note {
  background: var(--blab-bg); border-radius: 16px; padding: 14px 16px;
  font-size: 0.8125rem; line-height: 1.5; color: var(--blab-text-muted);
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn, .actions button { flex: 1 1 auto; min-height: 44px; font-size: 0.875rem; }

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--blab-border); background: var(--blab-white);
  color: var(--blab-text-primary); font: inherit; font-size: 0.875rem; font-weight: 400;
  white-space: nowrap; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--blab-navy); color: #fff; border-color: var(--blab-navy); font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--blab-border); }
.list a, .list .item {
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
  color: var(--blab-text-primary); text-decoration: none; min-height: 44px;
}
.list .grow b { display: block; font-weight: 600; }

.orow { display: flex; align-items: center; gap: 12px; padding: 14px 0; min-height: 56px; }
.orow + .orow { border-top: 1px solid var(--blab-border); }
.orow .grow b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.orow .grow span { display: block; }

.stepper { display: flex; align-items: center; flex: none; }
.stepper button {
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--blab-border);
  background: var(--blab-white); color: var(--blab-navy);
  font: inherit; font-size: 1.25rem; cursor: pointer;
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper output {
  min-width: 44px; height: 44px; line-height: 44px; text-align: center; font-weight: 600;
  border-top: 1px solid var(--blab-border); border-bottom: 1px solid var(--blab-border);
  background: var(--blab-white);
}

.bar {
  position: sticky; bottom: 0; z-index: 4;
  background: var(--blab-white); border-top: 1px solid var(--blab-border);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.bar-in button { min-height: 56px; border: none; border-radius: 8px; background: var(--blab-navy); color: #fff; font: inherit; font-weight: 600; padding: 0 18px; cursor: pointer; }
.bar-in button:disabled { background: var(--blab-disabled-surface); color: var(--blab-disabled-text); }
.bar-note { padding: 0 20px 12px; font-size: 0.75rem; color: var(--blab-text-muted); }
.bar-note.ok { color: var(--blab-success); font-weight: 600; display: flex; align-items: center; gap: 6px; }

.doc { padding: 14px 0; }
.doc + .doc { border-top: 1px solid var(--blab-border); }
.doc-head { display: flex; align-items: flex-start; gap: 14px; }
.doc-head .grow b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.doc-head .grow span { display: block; }
.doc-ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 8px; background: var(--blab-bg); color: var(--blab-navy);
}
.offline-tag { color: var(--blab-success); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.doc-actions { margin-top: 12px; }

/* Narrow phones: the design's frame is 428px wide. Below ~420px the brand kicker
   would wrap mid-phrase, so it steps down one notch instead. */
@media (max-width: 419px) {
  .home-head .kicker { font-size: 0.625rem; letter-spacing: 0.1em; }
  .home-head .who .role { font-size: 0.625rem; }
}

/* Legacy screens sit directly inside <main>; the rebuilt ones bring their own
   padding wrapper. Give the old ones the same gutter, and drop their in-body
   <h1> — the tool header now carries the screen title, so it read twice. */
main > .stack { padding: 16px 20px 24px; }
main > .stack > .bar { margin: 0 -20px -24px; }
main h1 { display: none; }
main > .stack > div > .eyebrow:first-child { margin-bottom: 4px; }

/* ---------- pricing, tags and related links (Naveen, 16 Sep) ---------- */

.banner {
  display: flex; align-items: center; gap: 10px;
  border-radius: 8px; padding: 12px 14px;
  background: var(--blab-bg); color: var(--blab-navy);
  font-size: 0.8125rem; font-weight: 500;
}
.banner.ok { background: var(--blab-success-surface); color: var(--blab-success); font-weight: 600; }
.banner .ico { flex: none; }

.sumline {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--blab-border);
}
.sumline .q { flex: none; min-width: 28px; font-size: 0.875rem; font-weight: 600; }
.sumline .grow { flex: 1; min-width: 0; }
.sumline .n { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.35; }
.sumline .caption { display: block; margin-top: 2px; }
.sumline .t { flex: none; font-size: 0.9375rem; font-weight: 600; }

.totals {
  background: var(--blab-bg); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.totals .rule { height: 1px; background: var(--blab-border); }

.pcard {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--blab-border); border-radius: 16px; padding: 14px;
  background: var(--blab-white); cursor: pointer; font: inherit;
  color: var(--blab-text-primary); margin-bottom: 10px; min-height: 76px;
}
.pcard .grow { flex: 1; min-width: 0; }
.pcard .n { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.pcard .caption { display: block; margin-top: 3px; }
.pcard .prices { flex: none; text-align: right; display: flex; flex-direction: column; }
.pcard .prices .p1 { font-size: 0.9375rem; font-weight: 600; }

/* Product use-tags. Named utag, not tag: the hero and the bottom strip already
   use .tag for their eyebrow line, and a bare .tag here painted a pale box behind
   white text on navy — the eyebrow disappeared. */
.utags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.utag {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600;
  background: var(--blab-bg); color: var(--blab-navy);
}
.utag-professional { background: var(--blab-chronolift); }
.utag-retail { background: var(--blab-nutrilayer); }
.utag-both { background: var(--blab-agebiome); }
.utag-pending { background: var(--blab-error-surface); color: var(--blab-error); }

.linkrow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--blab-border); border-radius: 8px; padding: 12px 14px;
  background: var(--blab-white); cursor: pointer; font: inherit;
  color: var(--blab-text-primary); min-height: 56px; font-size: 0.875rem; font-weight: 500;
}
.linkrow .grow { flex: 1; min-width: 0; }
.linkrow[data-empty="true"] { color: var(--blab-text-muted); }

/* ---------- salon photos ---------- */

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos:empty { display: none; }
.photo { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--blab-bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-x {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 6px; background: rgba(22,35,76,.72); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}

/* ---------- select, matching the inputs ---------- */

.field select {
  width: 100%; min-height: 48px; padding: 0 40px 0 16px;
  border: 1px solid var(--blab-border); border-radius: 8px;
  font-size: 1rem; font-family: var(--blab-font-body);
  color: var(--blab-text-primary); background: var(--blab-white);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316234C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { border-color: var(--blab-accent); outline: none; }

/* ---------- Build Order / Build A Quote rows (design file, order builder) ---------- */

.orow2 { padding: 14px 0; border-bottom: 1px solid var(--blab-border); display: flex; flex-direction: column; gap: 10px; }
.orow2:last-child { border-bottom: none; }
.orow2 .top { display: flex; align-items: flex-start; gap: 12px; }
.orow2 .grow { flex: 1; min-width: 0; }
.orow2 .nm { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.orow2 .sub { margin: 3px 0 0; font-size: 0.75rem; color: var(--blab-text-muted); }
.orow2 .rate { margin: 0; flex: none; font-size: 0.875rem; color: var(--blab-text-muted); }
.orow2 .qty { display: flex; align-items: center; gap: 8px; }
.orow2 .qty .spacer { flex: 1; }
.orow2 .n { width: 44px; text-align: center; font-size: 1rem; font-weight: 600; }
.orow2 .line { min-width: 72px; text-align: right; font-size: 0.9375rem; font-weight: 600; }
.orow2 [data-zero="true"] { color: var(--blab-text-muted); }
/* an add-on card: one serum, a stepper per pack */
.orow2 .pk { display: flex; flex-direction: column; min-width: 84px; line-height: 1.3; }
.orow2 .pk b { font-size: 0.8125rem; font-weight: 600; }
.orow2 .pk .num { font-size: 0.75rem; color: var(--blab-text-muted); }

/* ---------- the document, on screen ---------- */

.docwrap { background: var(--blab-bg); padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.doccard {
  background: var(--blab-white); border: 1px solid var(--blab-border); border-radius: 8px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 12px;
}
.doccard p { margin: 0; }
.dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dh img { display: block; width: 88px; height: auto; }
.dh .right { text-align: right; }
.dh .kind {
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blab-accent);
}
.dh .no { margin-top: 3px; font-size: 0.625rem; color: var(--blab-text-muted); }
.doccard .hr { height: 1px; background: var(--blab-border); }

.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.parties .lbl {
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blab-text-muted);
}
.parties .v { margin-top: 3px; font-size: 0.8125rem; font-weight: 600; }
.parties .s { margin-top: 1px; font-size: 0.6875rem; color: var(--blab-text-muted); line-height: 1.4; }

.dtable { display: flex; flex-direction: column; }
.dtable .th, .dtable .td { display: flex; gap: 8px; align-items: baseline; }
.dtable .th {
  padding: 0 0 4px; border-bottom: 1px solid var(--blab-navy);
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blab-text-muted);
}
.dtable .td { padding: 6px 0; border-bottom: 1px solid var(--blab-border); font-size: 0.6875rem; }
.dtable .i { flex: 1; min-width: 0; line-height: 1.3; }
.dtable .q { width: 26px; text-align: right; }
.dtable .r { width: 56px; text-align: right; }
.dtable .t { width: 62px; text-align: right; font-weight: 600; }

.dtotals { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dr { display: flex; gap: 16px; align-items: baseline; }
.dr span:first-child { font-size: 0.625rem; color: var(--blab-text-muted); }
.dr span:last-child { min-width: 62px; text-align: right; font-size: 0.6875rem; }
.dr.ok span { color: var(--blab-success); }
.dr.grand {
  margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--blab-navy);
}
.dr.grand span:first-child { font-size: 0.6875rem; font-weight: 600; color: var(--blab-text-primary); }
.dr.grand span:last-child { font-size: 0.9375rem; font-weight: 600; }

.dnote { font-size: 0.625rem; color: var(--blab-text-primary); }
.dfine { font-size: 0.5625rem; line-height: 1.5; color: var(--blab-text-muted); }
.dcap { margin: 0; font-size: 0.75rem; color: var(--blab-text-muted); text-align: center; word-break: break-all; }

/* ---------- Products (design file: product library and detail) ---------- */

.ptop { padding: 14px 20px 10px; display: flex; flex-direction: column; gap: 10px; }
.plist { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pgroup { margin: 4px 0 -2px; }

.pslot {
  flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 8px; position: relative;
}
.pslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot .ini {
  font-family: var(--blab-font-body); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 1.0625rem; color: var(--blab-navy); opacity: .5; letter-spacing: .04em;
}

.pcard {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  border: 1px solid var(--blab-border); border-radius: 16px; padding: 12px;
  background: var(--blab-white); cursor: pointer; font: inherit; color: var(--blab-text-primary);
}
.pcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pcard .nm { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.pcard .ben { font-size: 0.75rem; line-height: 1.4; color: var(--blab-text-muted); }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.pcard .price { font-size: 0.9375rem; font-weight: 600; }
.pcard .price .ex { font-size: 0.6875rem; font-weight: 400; color: var(--blab-text-muted); }
/* a pack price carries a longer label; let it drop to its own line whole, never mid-phrase */
.pcard .price .ex.pk { display: block; white-space: nowrap; margin-top: 1px; }
.pcard .price.awaited { font-size: 0.8125rem; font-weight: 500; color: var(--blab-error); }
.pcard .view { font-size: 0.8125rem; font-weight: 500; color: var(--blab-accent); flex: none; }

.phero { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--blab-bg); }
.phero .pslot { width: 100%; height: 100%; border-radius: 0; }
.phero .pslot .ini { font-size: 4rem; }
/* A square hero is right for photography. Until it exists, a full-height tinted
   square would push the name and price off the first screen, so the placeholder
   band is short — the 1:1 crop returns the moment an image is supplied. */
.phero-empty { aspect-ratio: auto; height: 168px; }
.phero-empty .pslot .ini { font-size: 2.25rem; }
.backlink { padding: 0; min-height: 32px; gap: 2px; }
.pname { font-size: 1.25rem; margin-top: 4px; }
.pmeta { margin-top: 6px; }
.pbig { margin: 10px 0 0; font-size: 1.5rem; font-weight: 600; }
.pbig .ex { font-size: 0.8125rem; font-weight: 400; color: var(--blab-text-muted); }
.pbig.awaited { font-size: 1rem; color: var(--blab-error); }
.pprices { display: flex; flex-direction: column; gap: 8px; }
.dr2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dr2 span:first-child { font-size: 0.875rem; color: var(--blab-text-muted); }
.dr2 span:last-child { font-size: 0.9375rem; font-weight: 600; }
.sbody { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.6; }

/* ---------- Catalogs (design file: document library) ---------- */

.drow {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--blab-border); border-radius: 16px;
  padding: 14px; min-height: 76px;
}
.drow .ico-sq {
  flex: none; width: 44px; height: 44px; border-radius: 8px;
  background: var(--blab-bg); display: grid; place-items: center; color: var(--blab-navy);
}
.drow .body { flex: 1; min-width: 0; }
.drow .nm { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.drow .sub { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--blab-text-muted); line-height: 1.4; }
/* The design draws two icon buttons, so keeping a brochure offline is carried by
   the state line itself — which already reads as an instruction. */
.drow .state {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  margin-top: 5px; padding: 0; border: 0; background: none; font: inherit;
  font-size: 0.75rem; color: var(--blab-text-muted); text-align: left; cursor: pointer;
}
.drow .state .flag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--blab-accent); }
.drow .state[data-saved="true"] .flag { color: var(--blab-success); }
.drow .state:disabled { cursor: default; opacity: .6; }
.drow .acts { flex: none; display: flex; gap: 8px; }

/* ---------- My Files (design file: local documents) ---------- */

.filespad { gap: 22px; }
.fgroup { display: flex; flex-direction: column; gap: 10px; }
.fcard {
  border: 1px solid var(--blab-border); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.fcard p { margin: 0; }
.fcard .salon { font-size: 0.875rem; font-weight: 600; line-height: 1.35; word-break: break-word; }
.fcard .when { margin-top: 3px; font-size: 0.75rem; color: var(--blab-text-muted); }
.fcard .fname { margin-top: 3px; font-size: 0.6875rem; color: var(--blab-text-muted); word-break: break-all; }
.fcard .facts { display: flex; gap: 6px; }
.fcard .facts .btn { flex: 1; }
.icon-btn.danger { color: var(--blab-error); }
