/* =====================================================================
   Newday Growth client portal. Same tokens as newdaygrowth.com:
   framed dark hero (#16100C), cream page, Newsreader headings with the
   orange underline, DM Sans body, tan eyebrows, thin 12% borders.
   ===================================================================== */
:root {
  --orange: #E8622A; --orange-burnt: #C2521C; --orange-2: #E8783F;
  --hero: #16100C; --hero-2: #221811; --cream: #FDFBF6; --cream-2: #F6F1E7; --tan: #DAC5A7; --white: #FFFFFF;
  --ink: #161616; --ink-2: #4B4640; --ink-3: #7A736A; --green: #43724E;
  --line: rgba(22, 22, 22, .12); --line-strong: rgba(22, 22, 22, .22); --line-light: rgba(253, 251, 246, .14);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --radius: 10px; --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -40px rgba(24, 15, 9, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.u { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .055em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.muted { color: var(--ink-3); font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-burnt); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--tan { color: var(--tan); }
.link { color: var(--orange-burnt); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(194, 82, 28, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
code { font: 600 .95em ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- brand mark (same as the site) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 22px/1 var(--serif); letter-spacing: .03em; color: var(--cream); text-decoration: none; }
.brand b { font-weight: 500; }
.brand b::after { content: "."; color: var(--orange); }
.sun { --s: 26px; --bg: var(--hero); position: relative; display: inline-block; width: var(--s); height: calc(var(--s) * .62); overflow: hidden; flex: none; top: -3px; }
.sun__disc { position: absolute; left: 0; right: 0; top: 0; height: var(--s); border-radius: 50%; background: var(--orange); }
.sun__line { position: absolute; left: 0; right: 0; height: calc(var(--s) * .07); background: var(--bg); }
.sun__line:nth-of-type(2) { top: 38%; } .sun__line:nth-of-type(3) { top: 58%; } .sun__line:nth-of-type(4) { top: 76%; } .sun__line:nth-of-type(5) { top: 92%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; border: 1px solid transparent; border-radius: 999px; background: var(--orange); color: var(--white); font: 600 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn:hover { background: var(--orange-burnt); }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 16px; height: 10px; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }
.btn--glass { background: rgba(253, 251, 246, .08); color: var(--cream); border-color: var(--line-light); }
.btn--glass:hover { background: rgba(253, 251, 246, .16); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn--danger { background: #A8321B; }
.btn--danger:hover { background: #8A2814; }
.btn.is-busy { opacity: .75; cursor: progress; }
.btn .ico { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 13px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip svg { width: 15px; height: 15px; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip--danger:hover { border-color: #A8321B; color: #A8321B; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label, .label { font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
.field label i, .label i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.sublabel { display: block; margin-bottom: 5px; font: 500 12px/1.3 var(--sans) !important; color: var(--ink-3) !important; }
.field__hint { font-size: 12.5px; color: var(--ink-3); }
input[type=email], input[type=password], input[type=text], input[type=date], input[type=search], input:not([type]) {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
input[type=date] { padding-right: 10px; min-width: 0; }
input::placeholder { color: #A39C92; }
input:hover { border-color: rgba(22, 22, 22, .38); }
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 98, 42, .16); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--white) inset; -webkit-text-fill-color: var(--ink); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; transition: color .2s, background .2s; }
.pw__toggle:hover { color: var(--ink); background: var(--cream-2); }
.pw__toggle svg { width: 20px; height: 20px; }
.pw__toggle.is-on { color: var(--orange-burnt); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2--tight { gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- alerts ---------- */
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.5; transition: opacity .6s, transform .6s; }
.alert--error { border: 1px solid rgba(168, 50, 27, .35); background: #FFF3EE; color: #7A2412; }
.alert--ok { border: 1px solid rgba(67, 114, 78, .3); background: #F0F6EF; color: #2C4F33; }
.alert.is-fading { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.pwcode { display: inline-block; margin: 2px 2px; padding: 2px 9px; border: 1px dashed rgba(44, 79, 51, .5); border-radius: 6px; background: var(--white); color: var(--ink); cursor: copy; }
.pwcode.is-copied { border-style: solid; border-color: var(--green); }
.pwcode.is-copied::after { content: " ✓ copied"; font: 500 12px var(--sans); color: var(--green); }

/* =====================================================================
   SIGN-IN SCREENS: framed dark panel left, form right
   ===================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100svh; padding: 8px; gap: 8px; }
.auth__art { position: relative; display: flex; flex-direction: column; padding: 30px clamp(28px, 4vw, 64px) clamp(30px, 4vw, 56px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: var(--cream);
  background: linear-gradient(90deg, rgba(14, 10, 7, .9) 0%, rgba(14, 10, 7, .55) 50%, rgba(14, 10, 7, .05) 100%), linear-gradient(0deg, rgba(14, 10, 7, .85) 0%, rgba(14, 10, 7, 0) 50%), url("/images/newday-hero-desktop-v3.webp") 100% 30% / auto 125% no-repeat, var(--hero); }
.auth__art .stack { display: none; }
.auth__top { display: flex; align-items: center; gap: 14px; margin: -8px 0 0 calc(22px - clamp(28px, 4vw, 64px)); }
@media (max-width: 900px) { .auth__top { margin: 0; } }
.auth__tag, .appbar__tag { white-space: nowrap; padding: 5px 11px; border: 1px solid var(--line-light); border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.auth__copy { margin-top: auto; padding-top: 48px; max-width: 560px; }
.auth__title { margin-top: 18px; font: 400 clamp(40px, 4.6vw, 68px)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.auth__lede { margin-top: 18px; max-width: 44ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: rgba(253, 251, 246, .74); }
.stack { position: relative; z-index: 1; margin-top: 36px; display: grid; gap: 10px; max-width: 470px; }
.stack__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--line-light); border-radius: 12px; background: rgba(30, 22, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: rise .8s var(--ease) both; }
.stack__row:nth-child(2) { opacity: .7; margin-left: 18px; animation-delay: .1s; }
.stack__row:nth-child(3) { opacity: .4; margin-left: 36px; animation-delay: .2s; }
.stack__date { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 9px; background: var(--cream); color: var(--ink); font: 500 10.5px/1 var(--sans); letter-spacing: .06em; }
.stack__date b { font: 400 19px/1 var(--serif); letter-spacing: 0; margin-top: 4px; }
.stack__row:first-child .stack__date { background: var(--orange); color: var(--white); }
.stack__txt { display: grid; gap: 3px; min-width: 0; }
.stack__txt b { font: 400 17px/1.2 var(--serif); }
.stack__txt i { font-style: normal; font-size: 13px; color: rgba(253, 251, 246, .6); }
.stack__pdf { padding: 5px 9px; border: 1px solid var(--line-light); border-radius: 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; color: var(--tan); }
.auth__sun { display: none; }
.auth__sun .sun { --s: 420px; --bg: var(--hero); top: 0; filter: saturate(1.05); }
.auth__sun .sun__disc { background: linear-gradient(180deg, #F08046, var(--orange) 45%, #B9481B); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.stack__row:nth-child(2) { animation-name: rise2; } .stack__row:nth-child(3) { animation-name: rise3; }
@keyframes rise2 { from { opacity: 0; transform: translateY(14px); } to { opacity: .7; } }
@keyframes rise3 { from { opacity: 0; transform: translateY(14px); } to { opacity: .4; } }

.auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) clamp(8px, 3vw, 40px) 24px; }
.auth__card { width: min(100%, 420px); animation: rise .6s var(--ease) both; }
.auth__h { margin-top: 14px; font: 400 clamp(34px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; }
.auth__sub { margin: 10px 0 26px; color: var(--ink-2); font-size: 15.5px; }
.auth__card .alert { text-align: center; }
.auth__card .btn--block { margin-top: 4px; min-height: 54px; font-size: 16px; }
.auth__alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); text-align: center; }
.auth__legal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin-top: auto; padding-top: 40px; font-size: 12px; color: var(--ink-3); text-align: center; }
.auth__legal svg { width: 14px; height: 14px; color: var(--green); }
.auth__legal a { color: inherit; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; padding: 6px; gap: 0; }
  .auth__art { padding: 18px 20px 28px; border-radius: 14px; min-height: 0; }
  .auth__copy { margin-top: 0; padding-top: 34px; }
  .auth__title { margin-top: 12px; font-size: clamp(30px, 8.6vw, 44px); }
  .auth__lede { margin-top: 10px; font-size: 14.5px; }
  .stack, .auth__lede { display: none; }
  .auth__art { background-position: 0 0, 0 0, 78% 60%, 0 0; }
  .auth__main { padding: 30px 14px 20px; justify-content: flex-start; }
  .auth__h { font-size: 32px; }
  .auth__sub { margin-bottom: 22px; }
  .auth__legal { padding-top: 30px; }
  .brand { font-size: 20px; }
}

/* =====================================================================
   SIGNED-IN PAGES
   ===================================================================== */
.appbar { position: relative; margin: 8px 8px 0; padding: 0 clamp(18px, 4vw, 56px) clamp(96px, 9vw, 120px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: var(--cream);
  background: radial-gradient(70% 120% at 100% 0%, rgba(232, 98, 42, .24), transparent 60%), var(--hero); }
.appbar::after { content: ""; position: absolute; right: -60px; bottom: -110px; z-index: -1; width: 340px; height: 340px; border-radius: 50%; background: var(--orange); opacity: .1; }
.appbar__row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.appbar__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.appbar__nav a, .appbar__out button { white-space: nowrap; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: rgba(253, 251, 246, .75); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: color .2s, background .2s; }
.appbar__nav a:hover, .appbar__out button:hover { color: var(--cream); background: rgba(253, 251, 246, .08); }
.appbar__nav a[aria-current] { color: var(--cream); background: rgba(253, 251, 246, .1); }
.appbar__out { margin: 0; }
.appbar__out button { border: 1px solid var(--line-light); margin-left: 6px; }
.appbar > * { width: min(100%, 1120px); margin-inline: auto; }
.appbar__hero { padding-top: clamp(36px, 5vw, 60px); }
.appbar__title { max-width: 900px; }
.appbar__hero--sm { padding-top: 40px; }
.appbar__title { margin-top: 14px; font: 400 clamp(32px, 4.2vw, 56px)/1.05 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.appbar__lede { margin-top: 14px; max-width: 60ch; color: rgba(253, 251, 246, .74); font-size: 16px; }
.appbar__hero .btn--glass { margin-top: 22px; }
.back { display: inline-block; font-size: 14px; color: var(--tan); text-decoration: none; }
.back:hover { color: var(--cream); }
.preview-bar { padding: 10px var(--gutter); background: var(--orange); color: var(--white); font-size: 14px; text-align: center; }
.preview-bar a { color: var(--white); font-weight: 600; margin-left: 8px; }

.app { position: relative; z-index: 1; margin-top: calc(-1 * clamp(64px, 7vw, 84px)); padding-bottom: 72px; }
.app--narrow { max-width: 720px; }
.app > .alert { box-shadow: var(--shadow); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 30px; border: 1px solid var(--line-light); border-radius: 12px; overflow: hidden; background: var(--line-light); max-width: 720px; }
.stats div { display: grid; gap: 4px; padding: 14px 18px; background: var(--hero); }
.stats b { font: 400 30px/1 var(--serif); }
.stats span { font-size: 12.5px; color: rgba(253, 251, 246, .62); }

/* latest report: overlaps the dark band like the calendar card on /book-call */
.latest { position: relative; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 40px 80px -48px rgba(24, 15, 9, .6); overflow: hidden; }
.latest::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.latest__badge { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-burnt); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 98, 42, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(232, 98, 42, .06); } }
.latest__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 14px; }
.latest__title { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.latest__period { margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }
.latest__meta { margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.latest__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.lib { margin-top: 48px; }
.app > .lib:first-child, .app > .alert + .lib, .col-main > .lib:first-child { margin-top: 0; }
.lib__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-h { margin-top: 10px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); font: 600 13px/1 var(--sans); color: var(--ink-2); }
.search { position: relative; display: block; width: min(100%, 280px); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input { height: 44px; padding-left: 42px; border-radius: 999px; font-size: 15px; }
.nomatch { padding: 24px; text-align: center; color: var(--ink-3); }

.year + .year { margin-top: 30px; }
.year__h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font: 400 22px/1 var(--serif); }
.year__h span { font: 500 12.5px/1 var(--sans); color: var(--ink-3); }
.reps { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.rep { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; padding: 14px 18px 14px 14px; border-top: 1px solid var(--line); transition: background .2s; }
.rep:first-child { border-top: 0; }
.rep:hover { background: #FFFDF9; }
.rep__main { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.rep__cal { display: grid; place-items: center; align-content: center; flex: none; width: 56px; height: 56px; border-radius: 11px; background: var(--cream-2); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.rep__cal b { font: 400 21px/1 var(--serif); }
.rep__cal i { font-style: normal; font: 500 10.5px/1 var(--sans); letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; }
.rep:hover .rep__cal { background: var(--orange); border-color: var(--orange); color: var(--white); }
.rep:hover .rep__cal i { color: rgba(255, 255, 255, .85); }
.rep__txt { display: grid; gap: 2px; min-width: 0; }
.rep__title { font: 400 19px/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep__period { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.rep__meta { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep__actions { display: flex; align-items: center; gap: 8px; }
.rep__actions form { margin: 0; }
.rep__edit { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 6px; padding: 16px; border-radius: 12px; background: var(--cream-2); }
.rep__edit .field label { font-size: 12px; }
.rep__edit input { height: 42px; font-size: 15px; }

.empty { padding: 56px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; background: rgba(255, 255, 255, .5); }
.empty--sm { padding: 34px 20px; }
.empty__icon .sun { --s: 56px; --bg: var(--cream); top: 0; }
.empty h3 { margin-top: 14px; font: 400 24px/1.2 var(--serif); }
.empty p { margin: 8px auto 0; max-width: 46ch; color: var(--ink-2); font-size: 15px; }

.help { margin-top: 48px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--cream-2); border: 1px solid var(--line); }
.help__h { font: 400 22px/1.2 var(--serif); }
.help p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* panels (admin + account) */
.panel { padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.panel + .panel, .panel + .lib { margin-top: 20px; }
.app > .panel + .lib { margin-top: 44px; }
.panel__h { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.panel > .panel__h { margin-bottom: 16px; }
.panel > .muted { margin: -8px 0 14px; }
.panel--accent { border-top: 3px solid var(--orange); }
.panel--danger .disclose { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kv { display: grid; gap: 10px; margin-bottom: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kv--sm { margin: 18px 0 0; }
.kv--sm div { font-size: 13.5px; }
.kv--sm div:last-child { border: 0; padding-bottom: 0; }

.disclose summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose[open] summary { margin-bottom: 18px; }
.plus { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); flex: none; transition: transform .3s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--white); translate: -50% -50%; }
.plus::after { rotate: 90deg; }
.disclose[open] .plus { transform: rotate(45deg); }
.disclose--danger summary { font-size: 14px; color: #A8321B; font-weight: 500; }
.disclose--danger[open] summary { margin-bottom: 12px; }
.disclose--danger .form { gap: 12px; }

.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--cream); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--orange); background: #FFF6F0; }
.drop.has-file { border-style: solid; border-color: var(--green); background: #F0F6EF; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--orange-burnt); }
.drop__icon svg { width: 22px; height: 22px; }
.drop__txt { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.drop__txt b { color: var(--orange-burnt); }
.drop__hint { font-size: 12.5px; color: var(--ink-3); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

.app--split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.app--split > .alert { grid-column: 1 / -1; margin-bottom: 0; }
.col-main > .lib { margin-top: 44px; }
.col-side .form { gap: 12px; }
.col-side .btn { justify-self: start; }
.col-side input { height: 46px; }

/* client list */
.clients { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow a { display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 20px 14px 16px; text-decoration: none; transition: background .2s; }
.crow a:hover { background: #FFFDF9; }
.crow__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--hero); color: var(--cream); font: 400 21px/1 var(--serif); }
.crow a:hover .crow__av { background: var(--orange); }
.crow__id { display: grid; gap: 2px; min-width: 0; }
.crow__id b { font: 400 19px/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow__id i, .crow__stat i { font-style: normal; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow__stat { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.crow__stat b { font-weight: 600; color: var(--ink); }
.crow__go { color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.crow__go .arrow { width: 16px; height: 10px; display: block; }
.crow a:hover .crow__go { color: var(--orange-burnt); transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 11.5px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: #E9F2E7; color: #2F5A37; }
.pill--wait { background: #FCEBDD; color: #9A4416; }
.pill--off { background: #ECE8E2; color: #6E675E; }
.pill--on-dark { vertical-align: 1px; }

.pfoot { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13px; color: var(--ink-3); }
.pfoot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.pfoot a { color: inherit; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .app--split { grid-template-columns: 1fr; }
  .crow a { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .crow__login { display: none; }
}
@media (max-width: 720px) {
  .appbar { margin: 6px 6px 0; border-radius: 14px; padding-bottom: 92px; }
  .appbar__row { flex-wrap: wrap; gap: 10px; padding: 14px 0; }
  .appbar__tag { display: none; }
  .appbar__nav { width: 100%; margin-left: 0; gap: 2px; }
  .appbar__nav a, .appbar__out button { padding: 7px 10px; font-size: 13.5px; }
  .appbar__out { margin-left: auto; }
  .appbar__out button { margin-left: 0; }
  .appbar__lede { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 26px; }
  .app { margin-top: -64px; padding-bottom: 48px; }
  .latest__actions, .latest__actions .btn { width: 100%; }
  .rep { grid-template-columns: 1fr; padding: 14px; }
  .rep__actions { padding-left: 72px; }
  .rep__title { white-space: normal; }
  .reps--admin .rep__actions { padding-left: 72px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid2--tight { grid-template-columns: 1fr 1fr; }
  .crow a { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .crow__stat, .crow__go { display: none; }
  .form__foot .btn { width: 100%; }
  .search { width: 100%; }
  .help { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* No reports yet: the empty message becomes the white card that overlaps the dark band */
.empty--card { border: 1px solid var(--line); background: var(--white); box-shadow: 0 40px 80px -48px rgba(24, 15, 9, .6); }
.lib__none { padding: 22px 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-3); font-size: 15px; text-align: center; }

/* Sign-in form, compact size (2026-11-10) */
.auth__card { width: min(100%, 360px); }
.auth__card .eyebrow { font-size: 11px; }
.auth__h { margin-top: 10px; font-size: clamp(28px, 2.4vw, 34px); }
.auth__sub { margin: 8px 0 20px; font-size: 14px; }
.auth__card .form { gap: 14px; }
.auth__card .field { gap: 5px; }
.auth__card .field label { font-size: 12.5px; }
.auth__card input[type=email], .auth__card input[type=password], .auth__card input[type=text] { height: 44px; padding: 0 14px; font-size: 15px; }
.auth__card .pw input { padding-right: 46px; }
.auth__card .pw__toggle { width: 34px; height: 34px; }
.auth__card .pw__toggle svg { width: 18px; height: 18px; }
.auth__card .alert { margin-bottom: 14px; padding: 10px 14px; font-size: 13.5px; }
.auth__card .form__row, .auth__card .check { font-size: 13px; }
.auth__card .check input { width: 16px; height: 16px; }
.auth__card .btn--block { min-height: 46px; font-size: 15px; }
.auth__alt { margin-top: 20px; padding-top: 18px; font-size: 13px; }
/* one more step smaller (whole form scaled to 85%) */
.auth__card, .auth__legal { zoom: .85; }
/* centre the form vertically; the security line stays pinned to the bottom */
.auth__card { margin-top: auto; }
@media (max-width: 900px) { .auth__card { margin-top: 0; } }
/* signed-in pages (reports, account, admin) drawn at 90% */
body.is-app { zoom: .9; }

/* =====================================================================
   PHONES: sign-in screens (2026-11-10, modelled on the Newday AI login)
   Full-bleed dark top with centred copy, then a cream sheet with rounded
   top corners sliding up over it. Roomy full-width fields, 16px text so
   iPhone doesn't zoom in when a field is tapped.
   ===================================================================== */
.auth__sheethead, .auth__mfoot { display: none; }
@media (max-width: 900px) {
  .auth { display: block; min-height: 100svh; padding: 0; background: var(--cream); }
  .auth__art { display: block; min-height: 0; padding: 22px 24px 64px; border-radius: 0; text-align: center;
    background: linear-gradient(180deg, rgba(14, 10, 7, .55) 0%, rgba(14, 10, 7, .82) 60%, rgba(14, 10, 7, .92) 100%), url("/images/newday-hero-desktop-v3.webp") 80% 45% / cover no-repeat, var(--hero); }
  .auth__top { justify-content: center; margin: 0; }
  .auth__top .brand { font-size: 21px; }
  .auth__copy { margin: 0 auto; padding-top: 30px; max-width: 340px; }
  .auth__copy .eyebrow { justify-content: center; font-size: 11px; }
  .auth__copy .eyebrow::before { display: none; }
  .auth__title { margin-top: 12px; font-size: clamp(32px, 9vw, 40px); line-height: 1.05; }
  .auth__lede { display: block; margin: 12px auto 0; max-width: 32ch; font-size: 14.5px; line-height: 1.55; color: rgba(253, 251, 246, .72); }

  .auth__main { position: relative; z-index: 1; display: block; margin-top: -30px; padding: 22px 24px 26px; border-radius: 26px 26px 0 0; background: var(--cream); }
  .auth__sheethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .auth__mark .sun { --s: 30px; --bg: var(--cream); top: 2px; }
  .auth__sheetlinks { display: grid; justify-items: end; gap: 4px; font-size: 13px; color: var(--ink-3); text-align: right; }
  .auth__sheetlinks a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

  .auth__card { width: 100%; zoom: 1; margin: 30px 0 0; animation: none; }
  .auth__card > .eyebrow { display: none; }
  .auth__h { margin: 0; font-size: 32px; text-align: center; }
  .auth__sub { margin: 10px 0 26px; font-size: 15px; text-align: center; }
  .auth__card .form { gap: 18px; }
  .auth__card .field { gap: 8px; }
  .auth__card .field label { font-size: 14px; }
  .auth__card input[type=email], .auth__card input[type=password], .auth__card input[type=text] { height: 52px; padding: 0 16px; border-radius: 12px; font-size: 16px; }
  .auth__card .pw input { padding-right: 52px; }
  .auth__card .pw__toggle { width: 40px; height: 40px; }
  .auth__card .alert { padding: 12px 14px; font-size: 14.5px; border-radius: 12px; }
  .auth__card .form__row, .auth__card .check { font-size: 14.5px; }
  .auth__card .check input { width: 18px; height: 18px; }
  .auth__card .btn--block { min-height: 54px; margin-top: 2px; border-radius: 12px; font-size: 16px; }
  .auth__alt { margin-top: 26px; padding-top: 0; border-top: 0; font-size: 14.5px; }

  .auth__mfoot { display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 0; font-size: 13px; color: var(--ink-3); }
  .auth__mfoot span:last-child { display: flex; gap: 18px; }
  .auth__mfoot a { color: inherit; text-decoration: none; }
  .auth__legal { display: none; }
}
@media (max-width: 380px) {
  .auth__art { padding-inline: 18px; }
  .auth__main { padding-inline: 18px; }
}

/* the 90% zoom is for desktop; on phones the signed-in pages stay full size */
/* phones: everything drawn at 80% ("zoomed out"). Text boxes get 20px type so they still
   render at 16px+ after the zoom, otherwise iPhone zooms the page in when a field is tapped. */
@media (max-width: 900px) {
  .auth { zoom: .8; min-height: calc(100svh / .8); }
  .auth input[type=email], .auth input[type=password], .auth input[type=text] { font-size: 20px !important; }
}
@media (max-width: 720px) {
  body.is-app { zoom: .56; }   /* 80% then 30% smaller again (2026-11-10) */
  body.is-app input[type=email], body.is-app input[type=password], body.is-app input[type=text], body.is-app input[type=date], body.is-app input[type=search], body.is-app input:not([type]) { font-size: 29px; }
}
@media (max-width: 900px) {
  .auth__art { padding: 30px 24px 74px; background: linear-gradient(180deg, rgba(14, 10, 7, .7) 0%, rgba(14, 10, 7, .86) 55%, rgba(14, 10, 7, .94) 100%), url("/images/newday-hero-desktop-v3.webp") 80% 45% / cover no-repeat, var(--hero); }
  .auth__copy { padding-top: 38px; }
  .auth__copy .eyebrow { display: none; }
  .auth__title { margin-top: 0; }
  .auth__lede { margin-top: 14px; }
}
@media (max-width: 900px) {
  .auth { display: flex; flex-direction: column; }
  .auth__art { padding-top: 40px; padding-bottom: 92px; }
  .auth__copy { padding-top: 48px; }
  .auth__main { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .auth__card { margin-top: 40px; }
  .auth__mfoot { margin-top: auto; padding-top: 34px; }
}
/* phones: the cream sign-in sheet smaller still (80% x 72% = about 58% overall).
   Text boxes 28px so they still land at 16px+ and iPhone doesn't zoom in on tap. */
@media (max-width: 900px) {
  .auth__main { zoom: .72; }
  .auth input[type=email], .auth input[type=password], .auth input[type=text] { font-size: 28px !important; }
}
@media (max-width: 900px) { .auth__card { margin-top: auto; padding-top: 24px; } }
/* keep ~24px real side margins inside the zoomed sheet (24 / (0.8 x 0.72) = 42) */
@media (max-width: 900px) { .auth__main { padding-left: 42px; padding-right: 42px; } }
/* phones: extra side room around the form itself (~16px real on top of the sheet's 24px) */
@media (max-width: 900px) { .auth__card { padding-left: 28px; padding-right: 28px; } }

/* =====================================================================
   PHONES: header redesign (2026-11-10). Plain dark with a warm corner
   glow, a rounded logo tile, centred two-tone headline. No photo.
   ===================================================================== */
.auth__tile { display: none; }
@media (max-width: 900px) {
  .auth__art { padding: 54px 28px 92px;
    background: radial-gradient(90% 60% at 0% 0%, rgba(232, 98, 42, .42) 0%, rgba(232, 98, 42, .12) 38%, transparent 62%),
                radial-gradient(70% 50% at 100% 100%, rgba(232, 98, 42, .10), transparent 70%), #15110E; }
  .auth__top { display: none; }
  .auth__tile { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto; border-radius: 24px;
    background: linear-gradient(180deg, #221A15, #18120F); border: 1px solid rgba(253, 251, 246, .09);
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(253, 251, 246, .05); }
  .auth__tile .sun { --s: 46px; --bg: #1D1612; top: 3px; }
  .auth__copy { padding-top: 34px; max-width: 360px; }
  .auth__title { font-size: 42px; line-height: 1.04; letter-spacing: -.02em; }
  .auth__title .u { display: block; text-decoration: none; color: #A8998A; }
  .auth__lede { margin-top: 18px; max-width: 30ch; font-size: 15.5px; line-height: 1.6; color: rgba(253, 251, 246, .62); }
}
@media (max-width: 900px) { .auth__card { margin-top: 0; padding-top: 44px; } }
@media (max-width: 900px) { .auth__lede { display: none !important; } .auth__art { padding-bottom: 80px; } }

/* date boxes: never wider than their column (phones draw them with a built-in min width) */
.grid2--tight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
input[type=date] { min-width: 0; max-width: 100%; display: block; }
/* phones at 56%: keep ~16px real side margins (16 / 0.56 = 28) */
@media (max-width: 720px) {
  body.is-app { --gutter: 28px; }
  body.is-app .appbar { margin: 10px 10px 0; padding-left: 28px; padding-right: 28px; }
}
/* phones: Reports / Account sit on the right, next to Sign out, on the logo row */
@media (max-width: 720px) {
  body.is-app .appbar__row { flex-wrap: nowrap; }
  body.is-app .appbar__nav { width: auto; margin-left: auto; justify-content: flex-end; }
  body.is-app .appbar__out { margin-left: 4px; }
}
/* phones: logo row a little lower so it sits centred in the top of the dark band */
@media (max-width: 720px) {
  body.is-app .appbar__row { padding: 24px 0 18px; }
  body.is-app .appbar .brand .sun { top: -1px; }
}
/* phones: bigger NEWDAY logo in the signed-in header */
@media (max-width: 720px) {
  body.is-app .appbar .brand { font-size: 28px; gap: 14px; }
  body.is-app .appbar .brand .sun { --s: 34px; }
}
/* phones: only the cream sign-in sheet one step smaller again (header stays at 80%;
   sheet 80% x 63% = about 50%). Keeps ~24px real side margins and 16px+ text in the boxes. */
@media (max-width: 900px) {
  .auth__main { zoom: .63; padding-left: 48px; padding-right: 48px; }
  .auth input[type=email], .auth input[type=password], .auth input[type=text] { font-size: 32px !important; }
}

/* =====================================================================
   PHONES: sign-in screens, FINAL sizing (2026-11-10).
   No CSS zoom here: iPhone Safari/Chrome scale boxes but not text under
   zoom, which wrecked the proportions on a real phone. Every size below
   is an exact phone pixel. Text boxes stay 16px so iOS never zooms on tap.
   ===================================================================== */
@media (max-width: 900px) {
  .auth, .auth__main, .auth__card, .auth__legal { zoom: 1 !important; }
  .auth { min-height: 100svh; }

  /* dark top */
  .auth__art { padding: 30px 24px 52px; }
  .auth__tile { width: 64px; height: 64px; border-radius: 18px; }
  .auth__tile .sun { --s: 34px; top: 2px; }
  .auth__copy { padding-top: 20px; }
  .auth__title { font-size: 32px; line-height: 1.06; }

  /* cream sheet */
  .auth__main { margin-top: -22px; padding: 18px 24px 20px !important; border-radius: 22px 22px 0 0; }
  .auth__sheethead { align-items: center; }
  .auth__mark .sun { --s: 26px; top: 1px; }
  .auth__sheetlinks { display: block; font-size: 13px; }
  .auth__sheetlinks a { color: var(--ink-3); }

  .auth__card { padding: 26px 0 0 !important; margin: 0 !important; }
  .auth__h { font-size: 26px; line-height: 1.15; }
  .auth__sub { margin: 6px 0 22px; font-size: 14px; line-height: 1.45; }
  .auth__card .form { gap: 14px; }
  .auth__card .field { gap: 6px; }
  .auth__card .field label { font-size: 13px; }
  .auth .auth__card input[type=email], .auth .auth__card input[type=password], .auth .auth__card input[type=text] {
    height: 46px; padding: 0 14px; border-radius: 10px; font-size: 16px !important; }
  .auth__card .pw input { padding-right: 48px; }
  .auth__card .pw__toggle { width: 40px; height: 40px; right: 4px; }
  .auth__card .pw__toggle svg { width: 20px; height: 20px; }
  .auth__card .alert { margin-bottom: 12px; padding: 10px 12px; font-size: 13.5px; border-radius: 10px; }
  .auth__card .form__row { font-size: 13.5px; }
  .auth__card .check { gap: 8px; font-size: 13.5px; }
  .auth__card .check input { width: 18px; height: 18px; }
  .auth__card .btn--block { min-height: 48px; margin-top: 2px; border-radius: 10px; font-size: 15px; }
  .auth__card .btn--block .arrow { width: 14px; height: 9px; }
  .auth__alt { margin-top: 18px; font-size: 13px; }
  .auth__mfoot { padding-top: 24px; font-size: 12px; }
  .auth__mfoot span:last-child { gap: 14px; }
}

/* =====================================================================
   PHONES: cream sign-in sheet matched 1:1 to app.newdaygrowth.com/login
   (measured at 402px wide, 2026-11-10). Exact pixels, no zoom.
   ===================================================================== */
.auth__mforgot { display: none; }
@media (max-width: 900px) {
  .auth__main { margin-top: -26px; padding: 24px 24px 24px !important; border-radius: 26px 26px 0 0; }
  .auth__sheethead { align-items: center; min-height: 20px; }
  .auth__mark .sun { --s: 32px; top: 0; }
  .auth__sheetlinks { font-size: 12.5px; line-height: 18.75px; }
  .auth__sheetlinks a { color: #8E8983; text-underline-offset: 2px; }

  .auth__card { padding: 48px 0 0 !important; }
  .auth__h { margin: 0; font-size: 25px; line-height: 37.5px; letter-spacing: -.5px; }
  .auth__sub { margin: 8px 0 20px; font-size: 13px; line-height: 21px; color: #77736F; }
  .auth__card .alert { margin-bottom: 16px; }
  .auth__card .form { gap: 17px; }
  .auth__card .field { gap: 7px; }
  .auth__card .field label { font-size: 13px; font-weight: 500; line-height: 19.5px; color: #343230; }
  .auth .auth__card input[type=email], .auth .auth__card input[type=password], .auth .auth__card input[type=text] {
    height: 52px; padding: 0 14px; border: 1px solid #DDD8D1; border-radius: 10px; background: transparent; font-size: 16px !important; }
  .auth .auth__card .pw input { padding-right: 48px; }
  .auth__card .pw__toggle { right: 4px; width: 44px; height: 44px; border-radius: 12px; color: #77736F; }
  .auth__card .pw__toggle svg { width: 18px; height: 18px; }
  .auth__card .form__row { display: none; }
  .auth__card .btn--block { min-height: 52px; margin-top: -1px; border-radius: 10px; font-size: 15px; font-weight: 500; }
  .auth__card .btn--block .arrow { display: none; }
  .auth__mforgot { display: block; margin: 25px 0 0; text-align: center; font-size: 13px; line-height: 19.5px; }
  .auth__mforgot a { color: #161616; text-decoration: underline; text-underline-offset: 3px; }
  .auth__alt { display: none; }

  .auth__mfoot { margin-top: auto; padding-top: 34px; font-size: 12px; line-height: 18px; color: #8E8983; }
  .auth__mfoot span:last-child { gap: 22px; }
}

/* phones: cream sign-in sheet at ~70% of the Newday AI sizes (2026-11-10). Exact pixels, no zoom.
   Text typed into the boxes stays 16px: smaller makes iPhone zoom the page on tap. */
@media (max-width: 900px) {
  .auth__main { padding: 18px 30px 18px !important; border-radius: 22px 22px 0 0; }
  .auth__sheethead { min-height: 14px; }
  .auth__mark .sun { --s: 22px; }
  .auth__sheetlinks { font-size: 10.5px; line-height: 14px; }

  .auth__card { padding: 30px 0 0 !important; }
  .auth__h { font-size: 19px; line-height: 26px; letter-spacing: -.3px; }
  .auth__sub { margin: 4px 0 16px; font-size: 11px; line-height: 16px; }
  .auth__card .alert { margin-bottom: 12px; padding: 8px 10px; font-size: 11px; border-radius: 8px; }
  .auth__card .form { gap: 12px; }
  .auth__card .field { gap: 5px; }
  .auth__card .field label { font-size: 11px; line-height: 15px; }
  .auth .auth__card input[type=email], .auth .auth__card input[type=password], .auth .auth__card input[type=text] {
    height: 38px; padding: 0 11px; border-radius: 8px; font-size: 16px !important; }
  .auth .auth__card .pw input { padding-right: 38px; }
  .auth__card .pw__toggle { right: 3px; width: 32px; height: 32px; border-radius: 8px; }
  .auth__card .pw__toggle svg { width: 14px; height: 14px; }
  .auth__card .btn--block { min-height: 38px; margin-top: 0; border-radius: 8px; font-size: 12.5px; }
  .auth__mforgot { margin-top: 16px; font-size: 11px; line-height: 15px; }
  .auth__mforgot a { text-underline-offset: 2px; }
  .auth__mfoot { padding-top: 24px; font-size: 10px; line-height: 14px; }
  .auth__mfoot span:last-child { gap: 16px; }
}

/* phones: cream sign-in sheet one more step smaller (~80% of the previous step) */
@media (max-width: 900px) {
  .auth__main { padding: 16px 36px 16px !important; }
  .auth__mark .sun { --s: 18px; }
  .auth__sheetlinks { font-size: 9.5px; line-height: 12px; }
  .auth__card { padding: 24px 0 0 !important; }
  .auth__h { font-size: 15.5px; line-height: 21px; letter-spacing: -.2px; }
  .auth__sub { margin: 3px 0 13px; font-size: 9.5px; line-height: 13px; }
  .auth__card .alert { margin-bottom: 10px; padding: 7px 9px; font-size: 9.5px; border-radius: 7px; }
  .auth__card .form { gap: 10px; }
  .auth__card .field { gap: 4px; }
  .auth__card .field label { font-size: 9.5px; line-height: 12px; }
  .auth .auth__card input[type=email], .auth .auth__card input[type=password], .auth .auth__card input[type=text] {
    height: 32px; padding: 0 9px; border-radius: 7px; font-size: 16px !important; }
  .auth .auth__card .pw input { padding-right: 32px; }
  .auth__card .pw__toggle { right: 2px; width: 28px; height: 28px; border-radius: 7px; }
  .auth__card .pw__toggle svg { width: 12px; height: 12px; }
  .auth__card .btn--block { min-height: 32px; border-radius: 7px; font-size: 11px; }
  .auth__mforgot { margin-top: 13px; font-size: 9.5px; line-height: 12px; }
  .auth__mfoot { padding-top: 20px; font-size: 9px; line-height: 12px; }
  .auth__mfoot span:last-child { gap: 13px; }
}
/* phones: taller dark top so the cream sheet starts lower and is shorter */
@media (max-width: 900px) {
  .auth__art { padding-top: 64px; padding-bottom: 112px; }
  .auth__copy { padding-top: 26px; }
}

/* =====================================================================
   PHONES: signed-in pages, FINAL sizing (2026-11-10). Same layout as
   before, but exact phone pixels instead of CSS zoom (iPhone scales
   boxes but not text under zoom). Proportions match the phone login.
   ===================================================================== */
@media (max-width: 720px) {
  body.is-app { zoom: 1 !important; --gutter: 16px; }
  body.is-app input[type=email], body.is-app input[type=password], body.is-app input[type=text], body.is-app input[type=search], body.is-app input:not([type]) { height: 36px; padding: 0 10px; border-radius: 8px; font-size: 16px !important; }
  body.is-app input[type=date] { height: 36px; padding: 0 8px; border-radius: 8px; font-size: 16px !important; }
  .preview-bar { padding: 7px 12px; font-size: 10.5px; }

  /* header */
  body.is-app .appbar { margin: 6px 6px 0; padding: 0 16px 52px; border-radius: 12px; }
  body.is-app .appbar::after { width: 200px; height: 200px; right: -50px; bottom: -80px; }
  body.is-app .appbar__row { padding: 14px 0 11px; gap: 8px; }
  body.is-app .appbar .brand { font-size: 17px; gap: 9px; }
  body.is-app .appbar .brand .sun { --s: 21px; top: -1px; }
  body.is-app .appbar__nav { gap: 2px; }
  body.is-app .appbar__nav a, body.is-app .appbar__out button { padding: 5px 8px; font-size: 11px; }
  body.is-app .appbar__out { margin-left: 3px; }
  .appbar__hero, .appbar__hero--sm { padding-top: 20px; }
  .appbar__hero .eyebrow { gap: 7px; font-size: 9px; }
  .appbar__hero .eyebrow::before { width: 12px; }
  .appbar__title { margin-top: 8px; font-size: 20px; line-height: 1.2; }
  .appbar__lede { margin-top: 8px; font-size: 11px; line-height: 1.5; }
  .appbar__hero .btn--glass { margin-top: 12px; }
  .back { font-size: 11px; }
  .stats { margin-top: 14px; border-radius: 9px; }
  .stats div { padding: 8px 10px; gap: 2px; }
  .stats b { font-size: 17px; }
  .stats span { font-size: 9.5px; }

  /* body */
  .app { margin-top: -36px; padding-bottom: 30px; }
  .app > .alert, .alert { margin-bottom: 12px; padding: 9px 11px; font-size: 11px; border-radius: 8px; }
  .btn { min-height: 34px; padding: 8px 16px; gap: 7px; font-size: 12px; }
  .btn .arrow { width: 12px; height: 8px; }
  .btn .ico { width: 13px; height: 13px; }
  .btn--sm { min-height: 30px; padding: 6px 13px; font-size: 11px; }
  .chip { min-height: 24px; padding: 3px 10px; gap: 4px; font-size: 10px; }
  .chip svg { width: 11px; height: 11px; }

  /* latest report */
  .latest { padding: 14px 14px 14px 17px; border-radius: 12px; box-shadow: 0 22px 44px -30px rgba(24, 15, 9, .55); }
  .latest::before { width: 3px; }
  .latest__badge { gap: 6px; font-size: 8.5px; }
  .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(232, 98, 42, .18); }
  .latest__body { margin-top: 8px; gap: 12px; }
  .latest__title { font-size: 17px; }
  .latest__period { margin-top: 3px; font-size: 12px; }
  .latest__meta { font-size: 10px; }
  .latest__actions { width: 100%; display: grid; grid-template-columns: 1fr; gap: 6px; }
  .latest__actions .btn { width: 100%; }

  /* library */
  .lib { margin-top: 26px; }
  .lib__head { margin-bottom: 10px; gap: 10px; }
  .lib .eyebrow, .lib__head .eyebrow { gap: 7px; font-size: 9px; }
  .lib__head .eyebrow::before { width: 12px; }
  .sec-h { margin-top: 5px; gap: 8px; font-size: 18px; }
  .count { height: 18px; min-width: 20px; padding: 0 6px; font-size: 9.5px; }
  .search input { height: 34px; padding-left: 32px; }
  .search svg { left: 11px; width: 14px; height: 14px; }
  .year + .year { margin-top: 16px; }
  .year__h { margin-bottom: 7px; gap: 8px; font-size: 14px; }
  .year__h span { font-size: 9.5px; }
  .reps, .clients { border-radius: 11px; }
  .rep { grid-template-columns: 1fr; gap: 6px; padding: 10px; }
  .rep__main { gap: 10px; }
  .rep__cal { width: 36px; height: 36px; border-radius: 8px; }
  .rep__cal b { font-size: 13px; }
  .rep__cal i { margin-top: 2px; font-size: 7.5px; }
  .rep__title { font-size: 13px; line-height: 1.25; white-space: normal; }
  .rep__period { font-size: 10.5px; }
  .rep__meta { font-size: 9px; }
  .rep__actions, .reps--admin .rep__actions { padding-left: 46px; gap: 6px; }
  .rep__edit { padding: 12px; gap: 10px; }
  .rep__edit .field label { font-size: 10px; }
  .empty, .empty--sm { padding: 26px 16px; border-radius: 11px; }
  .empty__icon .sun { --s: 36px; }
  .empty h3 { margin-top: 10px; font-size: 16px; }
  .empty p { font-size: 11px; }
  .lib__none { padding: 14px; font-size: 11px; border-radius: 11px; }

  .help { margin-top: 24px; padding: 13px 15px; border-radius: 11px; }
  .help__h { font-size: 14px; }
  .help p { margin-top: 4px; font-size: 11px; }
  .pfoot { padding: 14px 0 20px; font-size: 9.5px; }

  /* panels, forms (account + admin) */
  .panel { padding: 14px; border-radius: 11px; }
  .panel + .panel, .panel + .lib { margin-top: 14px; }
  .panel__h { font-size: 15px; }
  .panel > .panel__h { margin-bottom: 10px; }
  .panel > .muted, .muted { font-size: 10.5px; }
  .panel > .muted { margin: -4px 0 10px; }
  .form { gap: 11px; }
  .field { gap: 5px; }
  .field label, .label { font-size: 10.5px; }
  .sublabel { margin-bottom: 4px; font-size: 9.5px !important; }
  .field__hint { font-size: 9.5px; }
  .pw input { padding-right: 36px !important; }
  .pw__toggle { right: 2px; width: 30px; height: 30px; }
  .pw__toggle svg { width: 14px; height: 14px; }
  .check { gap: 7px; font-size: 11px; }
  .check input { width: 15px; height: 15px; }
  .kv { gap: 7px; }
  .kv div { padding-bottom: 7px; font-size: 11px; }
  .kv--sm div { font-size: 10px; }
  .plus { width: 26px; height: 26px; }
  .plus::before, .plus::after { width: 11px; }
  .disclose[open] summary { margin-bottom: 12px; }
  .disclose--danger summary { font-size: 11px; }
  .drop { padding: 16px 12px; gap: 4px; border-radius: 10px; }
  .drop__icon { width: 34px; height: 34px; }
  .drop__icon svg { width: 16px; height: 16px; }
  .drop__txt { font-size: 11.5px; }
  .drop__hint { font-size: 9.5px; }
  .quick { gap: 6px; }
  .grid2, .grid3 { gap: 11px; }
  .grid2--tight { gap: 8px; }
  .app--split { gap: 14px; }
  .col-main > .lib { margin-top: 26px; }
  .col-side input { height: 36px; }

  /* admin client list */
  .crow a { gap: 10px; padding: 10px; }
  .crow__av { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; }
  .crow__id b { font-size: 13px; }
  .crow__id i { font-size: 9.5px; }
  .pill { padding: 4px 7px; gap: 4px; font-size: 8.5px; }
  .pill::before { width: 5px; height: 5px; }
}
@media (max-width: 720px) {
  .panel > .kv:last-child { margin-bottom: 0; }
  .panel > .kv:last-child div:last-child { border-bottom: 0; padding-bottom: 0; }
}
/* phones: smaller typed text in the sign-in boxes. maximum-scale=1 in the viewport tag
   stops iPhone auto-zooming on tap, so these no longer need to be 16px. */
@media (max-width: 900px) {
  .auth .auth__card input[type=email], .auth .auth__card input[type=password], .auth .auth__card input[type=text] { font-size: 12.5px !important; }
}
