/* Freedom Bath Inside Sales Portal. The quote site's look (booking-page/index.html, quote.freedombath.com): a gray header
   band with a dark rule, a light gray page, white boxes with thin rules and small corners, Arial, yellow pill buttons, navy
   for what's picked. One light theme, readable on a laptop or a phone. */
:root {
  --ink: #0F1111;
  --muted: #565959;
  --navy: #0B3A63;
  --blue: #007ECA;      /* logo flag blue */
  --link: #0B5CAD;
  --red: #B12704;
  --green: #0B7A3E;
  --amber: #8A5A00;
  --rule: #D5D9D9;
  --panel: #F0F2F2;     /* header band, notes */
  --headline: #A2A6A6;  /* dark line under the header */
  --page: #F7F7F7;
  --paper: #FFFFFF;
  --tint: #F7F8F8;
  --pick: #EDF3F8;
  --edge: #8D9096;
  --optline: #C4C8C8;
  --track: #D6DBDE;
  --button: #FFD814;
  --button-edge: #FCD200;
  --new-bg: #FCEDEA;
  --ok-bg: #EAF4EC;
  --wait-bg: #FFF8D6;
  --font: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom, 0px); display: flex; flex-direction: column; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--link); }
h1 { font-size: 22px; line-height: 1.3; margin: 4px 0 14px; }
h2 { font-size: 18px; line-height: 1.3; margin: 24px 0 10px; }
h3 { font-size: 17px; line-height: 1.3; margin: 22px 0 6px; }
h4 { font-size: 16px; margin: 16px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

/* header band (as the quote site) */
.top { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--headline); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 8px; min-height: 64px; max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo { height: 36px; width: auto; display: block; }
.spacer { flex: 1; }
nav { display: flex; align-items: center; gap: 2px; }
nav a, nav .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--ink); font-weight: 400; font-size: 15px;
  text-decoration: none; white-space: nowrap; }
nav a:hover, nav .link:hover { background: var(--paper); text-decoration: none; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); outline: none; }
main.wide { max-width: 1040px; }
.foot { background: var(--panel); border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.foot-in { max-width: 1040px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb { display: block; width: 100%; height: 480px; border: 0; }
.locked-lb { max-width: 520px; margin: 24px auto 0; text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--link); font-size: 15px; text-decoration: none; margin: -8px 0 4px; }
.back:hover { text-decoration: underline; }

/* boxes (the quote site's .box) */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.card > h2:first-child, .card-head h2 { margin-top: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin-bottom: 4px; }
.card-head p { margin: 0; }
.stack { display: grid; gap: 14px; }
.hero { padding: 4px 0 16px; }
@media (max-width: 480px) { .card { padding: 16px; } }

/* sign-in */
.signin { max-width: 440px; margin: 16px auto 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 24px 20px; }
.signin .mark { width: 64px; height: 64px; display: block; margin: 0 auto 8px; }
.signin h1, .signin .sub { text-align: center; }
.sub { color: var(--muted); margin: 0 0 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field input { width: 100%; min-height: 50px; border: 1px solid var(--edge); border-radius: 8px; padding: 11px 12px; font-size: 17px; background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, 0.12); }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 58, 99, 0.25); }
.field input.code { letter-spacing: .4em; text-align: center; font-size: 24px; font-variant-numeric: tabular-nums; }
.err { color: var(--red); margin: 0; font-size: 15px; }
.err:empty { display: none; }

/* buttons: the main one is the quote site's yellow pill; the others white pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; padding: 9px 20px; font-weight: 400; font-size: 16px;
  text-decoration: none; cursor: pointer; background: var(--paper); color: var(--ink); border: 1px solid var(--optline); box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5); }
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--button); border-color: var(--button-edge); color: var(--ink); }
.btn.primary:hover { background: #F7CA00; }
.btn:disabled { background: var(--panel); border-color: var(--rule); color: #8D9096; box-shadow: none; cursor: not-allowed; }
.btn.big { display: flex; width: 100%; min-height: 50px; font-size: 17px; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 15px; color: var(--link); cursor: pointer; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.btn:focus-visible, a:focus-visible, .opt:focus-within, .link:focus-visible, .tab:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.alert { padding: 12px 16px; border-radius: 8px; background: var(--wait-bg); color: var(--amber); border: 1px solid #F0DE8C; margin: 12px 0; }
.alert.bad { background: var(--new-bg); color: var(--red); border-color: #E8B4AA; }
.alert.good { background: var(--ok-bg); color: var(--green); border-color: #9ED3B4; }

.progress { height: 10px; background: var(--track); border-radius: 99px; overflow: hidden; margin: 16px 0 6px; }
.progress span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .3s; }

/* Module 1: one box per section, like the quote site's choices */
.sections { list-style: none; padding: 0; margin: 8px 0 14px; }
.sec { margin: 0 0 10px; }
.sec .row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; min-height: 56px; background: var(--paper); border: 1px solid var(--optline); border-radius: 6px; color: inherit; text-decoration: none; }
.sec a.row:hover { background: var(--tint); }
.sec.open .row { border-color: var(--navy); background: var(--pick); }
.sec.locked .row { background: var(--tint); color: #8D9096; border-color: #E3E6E6; }
.num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); color: var(--muted); font-weight: 700; font-size: 14px; }
.sec.open .num { background: var(--navy); border-color: var(--navy); color: #fff; }
.sec.passed .num { background: var(--green); border-color: var(--green); color: #fff; }
.body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.title { font-weight: 700; font-size: 16px; }
.body .sub { font-size: 14px; margin: 0; }

/* chips */
.badge { flex: none; display: inline-flex; align-items: center; font-size: 13px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; margin-right: 4px;
  background: var(--panel); color: var(--muted); border: 1px solid var(--rule); }
.badge.ok { background: var(--ok-bg); color: var(--green); border-color: #9ED3B4; }
.badge.go { background: var(--pick); color: var(--navy); border-color: #B9CDE0; }
.badge.wait { background: var(--wait-bg); color: var(--amber); border-color: #F0DE8C; }
.badge.bad { background: var(--new-bg); color: var(--red); border-color: #E8B4AA; }

/* lessons */
.lesson h1 { margin-bottom: 14px; }
.say { margin: 12px 0 16px; padding: 14px 16px 14px 18px; border-left: 4px solid var(--navy); background: var(--pick); border-radius: 0 8px 8px 0; font-style: italic; }
.note { margin: 12px 0 16px; padding: 14px 16px; border-radius: 8px; background: var(--panel); }
.note.tip { background: var(--ok-bg); }
.note.warn { background: var(--new-bg); }
.tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 8px; color: var(--muted); }
.say .tag { color: var(--navy); }
.note.warn .tag { color: var(--red); }
.note.tip .tag { color: var(--green); }
.qa { border: 1px solid var(--rule); border-radius: 6px; margin: 10px 0; overflow: hidden; }
.qa .q { padding: 10px 14px; background: var(--panel); font-weight: 700; }
.qa .a { padding: 10px 14px; }
.steps li { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; margin: 10px 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
th { background: var(--panel); font-weight: 700; font-size: 13px; color: var(--muted); }

.examples { margin-top: 18px; }
.example { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--rule); }
.example p { margin: 4px 0 0; }
audio { width: 280px; max-width: 100%; }

/* pictures in lessons */
.shot { margin: 14px 0 18px; }
.shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; background: var(--tint); border: 1px solid var(--rule); border-radius: 4px; }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 6px; }
.qa .listen { padding-top: 0; }
.qa .listen .btn { min-height: 36px; font-size: 15px; padding: 6px 14px; }

/* quizzes: the quote site's choices */
.quiz fieldset { border: 0; border-top: 1px solid var(--rule); padding: 18px 0 8px; margin: 0; }
.quiz legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.qn { color: var(--navy); margin-right: 4px; }
.opt { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 13px 14px; border: 1px solid var(--optline); border-radius: 6px; margin: 0 0 8px; cursor: pointer; background: var(--paper); }
.opt:hover { background: var(--tint); }
.opt input { margin-top: 4px; flex: none; accent-color: var(--navy); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--pick); }

.result { text-align: center; }
.result.pass { border-top: 4px solid var(--green); }
.result.fail { border-top: 4px solid var(--amber); }
.result .actions { justify-content: center; }
.score { font-size: 48px; font-weight: 700; margin: 6px 0 0; line-height: 1.1; }
.result.pass .score { color: var(--green); }
.result.fail .score { color: var(--amber); }
.review { padding-left: 22px; }
.review li { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 16px; margin-bottom: 10px; }
.review li.right { border-left: 4px solid var(--green); }
.review li.wrong { border-left: 4px solid var(--red); }
.review .q { font-weight: 700; }
.review .yours { color: var(--red); }
.review .why { color: var(--muted); font-size: 15px; margin: 0; }

/* resources */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.link-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); height: 100%; margin: 0; }
.link-card b { color: var(--ink); }
.link-card:hover { background: var(--tint); }

@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; row-gap: 0; padding-top: 8px; min-height: 0; }
  nav { width: 100%; margin: 0 0 4px -10px; overflow-x: auto; }
  body { font-size: 16px; }
  h1 { font-size: 20px; }
  .logo { height: 30px; }
  nav a, nav .link { padding: 0 8px; font-size: 14px; }
  .sec .row { gap: 10px; padding: 12px; }
  .badge { font-size: 12px; padding: 2px 8px; }
  .actions .btn { width: 100%; }
}

/* Performance: goals */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.tab { border: 1px solid var(--optline); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 15px; cursor: pointer; }
.tab:hover { background: var(--tint); }
.tab.on { border-color: var(--navy); background: var(--pick); color: var(--navy); font-weight: 700; }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
@media (max-width: 760px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gauge { text-align: center; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 8px 12px; background: var(--paper); }
.gauge svg { display: block; width: 100%; max-width: 180px; margin: 4px auto 0; }
.gauge path { fill: none; stroke-width: 14; }
.z-red { stroke: #E05252; } .z-yellow { stroke: #F2C94C; } .z-green { stroke: #34A464; }
.needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .hub { fill: var(--ink); }
.g-label { font-weight: 700; font-size: 15px; }
.g-num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.gauge.red .g-num { color: var(--red); } .gauge.yellow .g-num { color: var(--amber); } .gauge.green .g-num { color: var(--green); }
.g-goal { font-size: 13px; color: var(--muted); }

/* Performance: pay (Overview, Hourly, Commission) */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.weeknav .wk { font-weight: 700; font-size: 16px; text-align: center; flex: 1; min-width: 200px; }
.pay-part { padding: 14px 0 4px; border-bottom: 1px solid var(--rule); }
.pay-part:last-child { border-bottom: 0; }
.pay-part h3 { margin: 0 0 8px; }
.ov-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-total .big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.paybar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; background: var(--track); }
.paybar .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; min-width: 2px; }
.paybar .seg.none { flex: 1; background: var(--track); }
.seg.hourly, .sw.hourly { background: var(--navy); }
.seg.commission, .sw.commission { background: var(--blue); }
.seg.other, .sw.other { background: #6B7A85; }
.legend { list-style: none; padding: 0; margin: 10px 0 8px; display: grid; gap: 6px; max-width: 420px; font-size: 15px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto 52px; gap: 10px; align-items: center; margin: 0; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.lg-val { font-variant-numeric: tabular-nums; text-align: right; } .lg-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 6px 0 4px; }
.pay-line .big { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-line .x { font-size: 20px; color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: 15px; }
table.sales td, table.sales th { white-space: nowrap; }
table.sales td:first-child { white-space: normal; min-width: 140px; }
.amt { text-align: right; font-variant-numeric: tabular-nums; }

/* Team performance */
.team-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pick { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.pick select { font-size: 15px; font-weight: 400; border: 1px solid var(--optline); border-radius: 4px; padding: 7px 10px; background: var(--paper); min-height: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; background: var(--paper); display: grid; gap: 2px; align-content: start; }
.s-label { font-size: 14px; color: var(--muted); font-weight: 700; }
.s-num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.trend { font-size: 13px; font-weight: 700; } .trend.up { color: var(--green); } .trend.down { color: var(--red); }
.rank-table td, .rank-table th { white-space: nowrap; } .rank-table td:nth-child(2) { white-space: normal; min-width: 180px; }
.src { border: 1px solid var(--rule); border-radius: 4px; margin: 10px 0; background: var(--paper); }
.src > summary { cursor: pointer; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.src[open] > summary { border-bottom: 1px solid var(--rule); }
.src-name { font-weight: 700; } .src-nums { color: var(--muted); font-size: 14px; }
.src > .stats, .src > .camps { margin: 12px 14px; }
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.camp { border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; }
table.mini { font-size: 13px; margin-top: 6px; } table.mini th, table.mini td { padding: 4px 6px; } table.mini th { background: transparent; }

@media (max-width: 560px) {
  .pay-line .big { font-size: 19px; }
  .weeknav .wk { order: -1; flex-basis: 100%; }
  /* the sales as stacked rows on a phone */
  table.sales thead { display: none; }
  table.sales, table.sales tbody, table.sales tr, table.sales td { display: block; width: 100%; }
  table.sales tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.sales td, table.sales td.amt { border: 0; padding: 2px 0; white-space: normal; text-align: left; }
  table.sales td:first-child { font-weight: 700; }
  table.sales td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
}
