/* The dashboards' look, shared by the client dashboard and the console (loaded last, after brand.css):
   cream page, white rounded cards, the green accent, serif greetings and figures, and the list's
   progress as a dark green band. Layout and wording stay in app.css and the templates. */
body{background:var(--bg)}

/* Top bar: the business (or Second Call) beside tabs with a green underline */
.bar{background:rgba(255,255,255,.94);border-bottom-color:var(--line)}
.mark b{font:600 1.0625rem/1 var(--sans);letter-spacing:-.01em}
.mark span{color:var(--muted)}
.nav a{color:var(--ink-2);font-size:.875rem}
.nav a:hover,.nav a[aria-current="page"]{color:var(--brand-green-dark)}
.nav a[aria-current="page"]{font-weight:600}
.nav a[aria-current="page"]::after{height:2px;border-radius:2px;background:var(--brand-green)}
.nav .n{padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:var(--brand-green-dark);font-size:.6875rem;font-weight:600}
.nav .n.due{background:var(--amber-soft);color:var(--amber-ink)}

/* Page heading: the greeting in the display serif */
.page{padding-top:36px}
.head{margin-bottom:28px}
.head h1{font:400 clamp(2.25rem,4vw,3.25rem)/1.04 var(--serif,var(--display));letter-spacing:-.015em;color:var(--ink)}
.head-sub{color:var(--ink-2)}

/* Sections are cards */
.sec,.sec.strong{padding:22px 22px 24px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.sec-head{margin-bottom:16px}
.sec-head h2{font:600 1.0625rem/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.row{gap:18px;margin-top:18px}
.row.tight{margin-top:18px}
.stack{gap:18px}
.mt-xl{margin-top:18px}

/* Figures: tiles */
.figs{gap:12px;margin-left:0;margin-top:18px;clip-path:none}
.figs::before{display:none}
.fig{padding:16px 18px 18px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:none}
.fig dd,.fig .fig-value{font:600 2rem/1 var(--sans);letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.figs.compact .fig dd,.figs.compact .fig-value{font-size:1.625rem}

/* A row of figures as one dark green band (the console's top line; the client's list, ui.band) */
.figs.band{gap:0;margin-top:0;border-radius:22px;background:var(--brand-green-dark);overflow:hidden}
.figs.band .fig{border:0;border-radius:0;background:transparent;box-shadow:none}
.figs.band .fig+.fig{border-left:1px solid rgba(255,255,255,.12)}
.figs.band .fig dt,.figs.band .fig .fig-foot{color:var(--on-night-2)}
.figs.band .fig dd{color:#fff}
.figs.band .fig .fig-foot .up{color:var(--mint)}
.figs.band .fig .fig-foot .down{color:#F3C6A5}
.band-steps{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));margin:0 0 18px;padding:0;list-style:none;border-radius:22px;background:var(--brand-green-dark);color:#fff;overflow:hidden}
.band-steps li{position:relative;padding:20px 22px 28px}
.band-steps li+li{border-left:1px solid rgba(255,255,255,.12)}
.band-steps li+li::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;margin-top:-6px;border-top:1px solid rgba(255,255,255,.25);border-right:1px solid rgba(255,255,255,.25);background:var(--brand-green-dark);transform:rotate(45deg)}
.band-steps b{display:block;font:600 2.25rem/1 var(--sans);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.band-steps span{display:block;margin-top:8px;color:var(--on-night-2);font-size:.8125rem;line-height:1.35}
.band-steps i{position:absolute;left:22px;right:22px;bottom:14px;height:3px;border-radius:3px;background:rgba(255,255,255,.12)}
.band-steps i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w,0);border-radius:3px;background:var(--mint)}
.band-steps li:last-child{background:#0F2C20}
.band-steps li:last-child b{color:var(--mint)}

/* Guarantee and progress bars in green */
.target-fig .serif{font-size:3.25rem}
.track{height:10px;border-radius:10px;background:var(--line-3)}
.track i{border-radius:10px;background:linear-gradient(90deg,#3E7960,var(--brand-green-dark))}
.rates .bar i{background:var(--brand-green)}

/* Lists: people and appointments */
.items li{border-color:var(--line-3)}
.when{display:grid;place-items:center;min-width:52px;padding:8px 6px;border-radius:14px;background:var(--accent-soft);color:var(--brand-green-dark);line-height:1}
.when span{font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.when b{font:400 1.75rem/1 var(--serif,var(--display))}

/* Recent: a timeline */
.log{position:relative}
.log li{position:relative;padding-left:26px}
.log li::before{content:"";position:absolute;left:5px;top:.55em;width:9px;height:9px;border-radius:50%;background:var(--paper);border:2px solid var(--brand-green)}
.log li::after{content:"";position:absolute;left:9px;top:calc(.55em + 13px);bottom:-.4em;width:1px;background:var(--line)}
.log li:last-child::after{display:none}

/* Tables and buttons */
.tbl th{color:var(--muted);font-weight:600}
.btn{border-radius:999px}
.st.ok,.st.green{background:var(--accent-soft);color:var(--brand-green-dark)}

@media (max-width:900px){
  .band-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .band-steps li:nth-child(3){border-left:0}
  .band-steps li:nth-child(n+3){border-top:1px solid rgba(255,255,255,.12)}
  .band-steps li:nth-child(3)::before{display:none}
  .figs.band .fig+.fig{border-left:0;border-top:1px solid rgba(255,255,255,.12)}
}
@media (max-width:640px){
  .sec,.sec.strong{padding:18px 16px 20px;border-radius:18px}
  .band-steps b{font-size:1.875rem}
}

/* Client overview: Alex's skills down the side, Ask Alex and the headline tiles on top */
.ov{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.ov-main{min-width:0}
.ov-rail{position:sticky;top:calc(var(--bar,60px) + 16px);padding:18px 14px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.ov-rail-h{display:flex;align-items:center;gap:9px;margin:0 6px 8px;font-weight:600;color:var(--ink)}
.ov-rail-h small{margin-left:auto;color:var(--brand-green);font-size:.75rem;font-weight:500}
.ov-rail-h.sub{margin-top:20px;color:var(--muted);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase}
.ov-orb{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#3E7960,#173D2D 70%);color:#fff;font-size:.6875rem;font-weight:600}
.ov-orb.lg{width:46px;height:46px;font-size:1.0625rem;box-shadow:0 10px 24px -10px rgba(23,61,45,.55)}
.ov-skills{list-style:none;margin:0 0 0 17px;padding:0 0 0 12px;border-left:1px solid var(--line)}
.ov-skills li{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:10px;color:var(--ink-2);font-size:.875rem}
.ov-skills i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c)}
.ov-skills.plain{margin-left:0;padding-left:0;border-left:0}
.ov-skills.plain li{padding:0}
.ov-skills.plain a{display:block;width:100%;padding:7px 8px;border-radius:10px;color:var(--ink-2);text-decoration:none}
.ov-skills.plain a:hover{background:var(--accent-soft);color:var(--brand-green-dark)}
.ov-ask-head{display:flex;align-items:center;gap:14px}
.ov-ask-head h2{margin:0;font:600 1.25rem/1.25 var(--sans);letter-spacing:-.015em;color:var(--ink)}
.ov-ask-head p{margin:2px 0 0;color:var(--muted);font-size:.875rem}
.ov-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.ov-chips button{min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink-2);font:500 .875rem var(--sans);cursor:pointer}
.ov-chips button:hover,.ov-chips button[aria-pressed="true"]{border-color:var(--accent-line);background:var(--accent-soft);color:var(--brand-green-dark)}
.ov-chips button:focus-visible{outline:2px solid var(--brand-green);outline-offset:2px}
.ov-answer{margin:14px 0 0;padding:12px 14px;border-left:3px solid var(--brand-green);border-radius:0 12px 12px 0;background:var(--tint);color:var(--ink);font-size:.9375rem;line-height:1.5}
.ov-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.ov-tiles div{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.ov-tiles dd{margin:0;order:-1;font:600 2.25rem/1 var(--sans);letter-spacing:-.035em;color:var(--ink);font-variant-numeric:tabular-nums}
.ov-tiles dt{margin-top:8px;color:var(--muted);font-size:.8125rem}
.ov-tiles div{display:flex;flex-direction:column}
.ov-tiles div:first-child{background:var(--brand-green-dark);border-color:var(--brand-green-dark)}
.ov-tiles div:first-child dd{color:#fff}.ov-tiles div:first-child dt{color:var(--on-night-2)}
@media (max-width:1100px){
  .ov{grid-template-columns:1fr}
  .ov-rail{position:static;display:none}
}
@media (max-width:640px){.ov-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ov-askform{display:flex;align-items:center;gap:8px;margin-top:16px;padding:6px 6px 6px 18px;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.ov-askform:focus-within{border-color:var(--brand-green);box-shadow:0 0 0 3px var(--accent-soft)}
.ov-askform input{flex:1;min-width:0;border:0;background:transparent;font:400 .9375rem var(--sans);color:var(--ink);outline:none}
.ov-askform button{display:grid;place-items:center;flex:none;width:38px;height:38px;border:0;border-radius:50%;background:var(--brand-green-dark);color:#fff;cursor:pointer}
.ov-askform button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.ov-askform button:disabled{opacity:.5;cursor:default}
.ov-askform .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Avoid input zoom and tiny action targets on phones and iPads. */
.ov-answer{overflow-wrap:anywhere}
@media (pointer:coarse),(max-width:640px){
  .ov-askform input{font-size:16px;min-height:44px}
  .ov-askform button{width:44px;height:44px}
  .ov-chips button{min-height:44px}
}
