/*
  Simpply landing page CSS. The system, cards, layout and motion come from /assets (the kit, never
  edited); this file holds only what the references call page CSS: the client's mark, the recipes'
  own rules (app-frame, tabs-tour), heights per section, and the inside of the drawn Simpply screens.
*/

/* ---------------------------------------------------------------- the client's mark */
.nav__logo .brand-mark { width: 22px; height: 22px; flex: none; }
.footer .nav__logo .brand-mark { width: 0.86em; height: 0.86em; }

/* ---------------------------------------------------------------- hero (collage) */
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* the window runs out through the frame's foot and right edge: its wrapper ends on the frame's foot and
   crops the drawn window, which keeps its own height (a bleed, as the collage hero draws it) */
.hero__art > .ly-piece--main {
  bottom: 0; overflow: hidden; border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45);
}
.hero__art > .ly-piece--main > .d-win { border-radius: 0; box-shadow: none; }

/* Simpply's stock list, drawn at the app's own sizes */
.d-win {
  background: #fff; color: #1a1a1a; border-radius: 12px; overflow: hidden; text-align: left;
  font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45);
}
.d-win__bar { display: flex; flex: none; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d5a55; }
.d-win__dots { display: flex; gap: 6px; }
.d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dedad2; }
.d-win__crumb { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.d-win__crumb em { font-style: normal; color: #9a968e; }
.d-win__crumb b { font-weight: 500; color: #1a1a1a; }
.d-win__mark { width: 14px; height: 14px; color: #1a1a1a; }
.d-win__body { display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.d-side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #55524c; }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; white-space: nowrap; }
.d-side > span.is-on { background: rgb(0 0 0 / .05); color: #1a1a1a; font-weight: 500; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .28; flex: none; }
.d-side > .d-side__label { height: 26px; margin-top: 8px; color: #8d8981; }
.d-main { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px 18px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { margin: 0; font: 500 16px/1.2 var(--font-text); letter-spacing: -0.01em; color: inherit; }
.d-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #1a1a1a; color: #f6f1e7; font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; white-space: nowrap; }
.d-tabs span { padding: 4px 10px; border-radius: 99px; color: #6b6760; }
.d-tabs span.is-on { background: rgb(0 0 0 / .06); color: #1a1a1a; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(0 0 0 / .07); }
.d-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; }
.d-thumb { width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .09); }
.d-row b { display: block; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { display: block; font-size: 13px; color: #75716a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; background: #e6f2ea; color: #1d6a43; font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--low { background: #fbefd9; color: #85520a; }
.d-chip--out { background: #f9e4e0; color: #a1301f; }
/* below 1280 the frame is narrower: the window drops its side bar so no column is cut */
@media (max-width: 1279px) {
  .d-win__body { grid-template-columns: minmax(0, 1fr); }
  .d-side { display: none; }
}

/* the bill posted, the one card over the window */
.d-card {
  background: #fff; color: #1a1a1a; border-radius: 12px; padding: 14px 16px; text-align: left;
  font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45);
}
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.d-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgb(0 0 0 / .06); font-size: 13px; color: #45423d; }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e6f2ea; color: #1d6a43; font-style: normal; font-size: 13px; font-weight: 500; }
.d-note__line i.warn { background: #fbefd9; color: #85520a; }
.d-note__line b { font-weight: 500; color: #1a1a1a; }

/* ---------------------------------------------------------------- entries (app-frame) */
.entries__intro { display: grid; gap: var(--s-4); align-content: start; }
.entries__intro p { margin: 0; font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; color: var(--ink); }

/* the app-frame recipe (sections-library.md), whole */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open invoice: the page with the note beside it; its lines as the entry screen shows them
   (weight under the quantity, the rate per kg under the rate) */
.app__pane--open > .invoice { width: 100%; padding: 24px 220px 0 24px; }
.app__pane--open > .invoice .ui-doc__page { border-radius: 10px 10px 0 0; }
.app__pane--open > .invoice .ui-doc__note { right: 16px; width: 188px; }
.invoice__terms { color: var(--u-muted); }
.invoice__table { margin: 14px 0 12px; font-size: 13px; line-height: 18px; }
.invoice__row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 92px 68px; gap: 0 12px; padding: 8px 0; border-top: 1px solid var(--u-line); }
.invoice__row > span { min-width: 0; }
.invoice__row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice__row > span:nth-child(n + 2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice__row small { display: block; margin-top: 2px; font-size: 12px; color: var(--u-muted); }
.invoice__row--head { padding-top: 0; border-top: 0; color: var(--u-muted); }
.invoice__row--total { font-weight: 500; }
/* narrower panes: the page takes the width and the note floats over its right side */
@media (max-width: 1279px) {
  .app__pane--open > .invoice { padding-right: 24px; }
  .app__pane--open > .invoice .ui-doc__note { right: 40px; }
}
@media (max-width: 639px) {
  .app__pane--open > .invoice { padding: 16px 16px 0; }
  .app__pane--open > .invoice .ui-doc__note { right: 24px; }
  .invoice__row { grid-template-columns: minmax(0, 1fr) 96px; }
  .invoice__row > span:nth-child(2), .invoice__row > span:nth-child(4) { display: none; }
}

/* ---------------------------------------------------------------- corrections (statement) */
.statement__head { max-width: none; margin-bottom: var(--s-7); }
.statement__head > .mo-lt__type { max-width: none; font-size: clamp(52px, min(7vw, 13svh), 120px); }
.statement__text { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
@media (max-width: 1023px) { .statement__grid { row-gap: var(--s-6); } }
@media (max-width: 639px) {
  .statement__head { margin-bottom: var(--s-6); }
  .statement__head > .mo-lt__type { font-size: clamp(40px, 12vw, 64px); }
}

/* the account ledger with the void as its own row */
.ledger { padding: 16px 20px 4px; font-size: 13px; line-height: 18px; }
.ledger__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ledger__top b { font-size: 15px; font-weight: 500; color: var(--u-ink); }
.ledger__top span { color: var(--u-muted); white-space: nowrap; }
.ledger__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 60px 60px 104px; gap: 0 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--u-line); }
.ledger__row > span { min-width: 0; }
.ledger__row > span:nth-child(n + 3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger__row small { display: block; margin-top: 2px; font-size: 12px; color: var(--u-muted); }
.ledger__row--head { padding-top: 0; border-top: 0; color: var(--u-muted); }
.ledger__row.is-void { position: relative; }
.ledger__row.is-void::before { content: ""; position: absolute; left: -20px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--u-accent); }
.ledger__row.is-void small { color: var(--u-ink); }
/* a narrower frame: the date goes, and the receipt row that only sets the scene */
@media (max-width: 1279px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr) 60px 60px 104px; }
  .ledger__row > span:first-child { display: none; }
  .ledger__row.is-context { display: none; }
}
@media (max-width: 639px) {
  .ledger { padding-inline: 16px; }
  .ledger__top { flex-direction: column; gap: 2px; }
  .ledger__row { grid-template-columns: minmax(0, 1fr) 100px; }
  .ledger__row > span:first-child, .ledger__row > span:nth-child(3), .ledger__row > span:nth-child(4) { display: none; }
  .ledger__row.is-void::before { left: -16px; }
}

/* ---------------------------------------------------------------- godowns (features-2x2) */
/* the first screen holds the heading and two cards: the panels take what the screen leaves */
#godowns .panel { --p-h: clamp(240px, calc(100svh - 500px), 336px); }
/* 768 and 820: the kit keeps the cards two-up, so the four fit one screen with lower panels */
@media (min-width: 640px) and (max-width: 1023px) {
  #godowns { --h: 1; }
  #godowns > .wrap { display: flex; flex-direction: column; row-gap: var(--s-6); }
  #godowns .panel { --p-h: clamp(140px, calc(69svh - 556px), 260px); }
}
@media (max-width: 639px) {
  #godowns .panel { --p-h: 156px; }
  /* the phone's first screen holds the heading, the diagram and the search card */
  #godowns .group .card:nth-child(2) .panel { --p-h: 124px; }
}
/* the files status is a quiet line in the panel, not a pill that reads as a button */
#godowns .ui-files__status { height: 24px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

/* ---------------------------------------------------------------- analytics (tabs-tour) */
.tour__text { display: grid; gap: var(--s-6); align-content: start; }
.tour__text > .section-head { margin-bottom: 0; }
.tour__panel p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.tour__slot[hidden] { display: none; }
/* the iris moment's inset: wide enough on a tablet that its panel never sits flush on the section's edge */
#analytics.mo-io { --mo-gap: clamp(24px, 1.8vw, 28px); }
/* the frame runs down to the section's foot on a desktop; stacked, it takes what the screen leaves */
@media (min-width: 1024px) { .tour > .frame--fill, #roles .grid > .frame--fill { height: auto; align-self: stretch; } }

/* receivables by age: the aging view, drawn with the fragments' own tokens */
.aging { width: 480px; padding: 18px 20px 8px; font-size: 13px; line-height: 18px; }
.aging__top { display: flex; justify-content: space-between; gap: 12px; color: var(--u-muted); }
.aging__label { font-weight: 500; color: var(--u-ink); }
.aging__line { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.aging__num { font: 500 28px/1.1 var(--font-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.aging__sub { color: var(--u-muted); }
.aging__bar { display: flex; gap: 3px; height: 10px; margin: 16px 0 10px; }
.aging__bar > i { width: var(--w); border-radius: 3px; }
.aging [data-b="0"] { --b: color-mix(in oklab, var(--u-ink) 14%, var(--u-bg)); }
.aging [data-b="1"] { --b: color-mix(in oklab, var(--u-ink) 30%, var(--u-bg)); }
.aging [data-b="2"] { --b: color-mix(in oklab, var(--u-ink) 48%, var(--u-bg)); }
.aging [data-b="3"] { --b: color-mix(in oklab, var(--u-ink) 68%, var(--u-bg)); }
.aging [data-b="4"] { --b: var(--u-ink); }
.aging__bar > i { background: var(--b); }
.aging__legend { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px 8px; margin: 0 0 12px; }
.aging__legend dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--u-muted); white-space: nowrap; }
.aging__legend dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--b); flex: none; }
.aging__legend dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.aging__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--u-line); }
.aging__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 108px; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid var(--u-line); }
.aging__rows b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aging__chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-muted); font-weight: 500; white-space: nowrap; }
.aging__chip.is-late { color: var(--u-ink); background: var(--u-fill); }
.aging__amt { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .aging { width: auto; }
  .aging__legend { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: auto 1fr; }
  .aging__rows li { grid-template-columns: minmax(0, 1fr) 96px; }
  .aging__chip { display: none; }
}

/* ---------------------------------------------------------------- roles (split-text-left) */
.roles__lead { margin: 0; font-size: var(--t-lead); line-height: 1.5; }
.roles__facts { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.roles__facts li { padding-top: var(--s-2); border-top: 1px solid var(--line); }
/* the panel runs out through the frame's right edge, so the invite dialog sits inside it */
.roles__panel { width: calc(100% - var(--ax, 56px) + 28px); }
.roles__panel > .ui { width: 100%; }
@media (max-width: 639px) { .roles__panel { width: auto; } .roles__invite { display: none; } }

/* "What each role can do", from the team page */
.roles-panel { padding: 20px 22px; font-size: 13px; line-height: 18px; }
.roles-panel__top { margin-bottom: 16px; font-size: 15px; font-weight: 500; color: var(--u-ink); }
.roles-panel__list { display: grid; gap: 16px; margin: 0; }
.roles-panel__list dt { margin: 0; }
.roles-panel__list dd { margin: 6px 0 0; max-width: 40ch; color: var(--u-muted); }
.roles-panel__badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--u-line-2); font-weight: 500; color: var(--u-ink); }
.roles-panel__badge.is-owner { background: var(--u-ink); color: var(--u-bg); box-shadow: none; }

/* the "Invite someone" dialog over the panel's lower right */
.invite { display: grid; gap: 6px; width: 300px; padding: 18px; font-size: 13px; line-height: 18px; }
.invite__title { margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--u-ink); }
.invite__label { margin-top: 6px; font-weight: 500; color: var(--u-muted); }
.invite__field { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-ink); }
.invite__field--select { box-shadow: inset 0 0 0 1.5px var(--u-ink); }
.invite__field--select::after { content: ""; width: 7px; height: 7px; margin: -4px 2px 0 auto; border-right: 1.5px solid var(--u-muted); border-bottom: 1.5px solid var(--u-muted); transform: rotate(45deg); }
.invite__hint { font-size: 12px; line-height: 17px; color: var(--u-muted); }
.invite__foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.invite__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--u-ink); color: var(--u-bg); font-weight: 500; white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .roles__invite { display: none; } }

/* ---------------------------------------------------------------- questions */
.faq__head { display: flex; flex-direction: column; gap: var(--s-4); min-height: 0; }
.faq__head > p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.faq__frame { flex: 1 1 auto; min-height: 280px; margin-top: var(--s-4); }

/* "Add an account" from Master */
.account-form { display: grid; gap: 12px; padding: 18px 20px; font-size: 13px; line-height: 18px; }
.account-form__title { font-size: 15px; font-weight: 500; color: var(--u-ink); }
.account-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.account-form__field { display: grid; gap: 4px; min-width: 0; }
.account-form__field--wide { grid-column: 1 / -1; }
.account-form__field small { font-size: 12px; font-weight: 500; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-form__input { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-ink); font-variant-numeric: tabular-nums; }
.account-form__field.is-on .account-form__input { box-shadow: inset 0 0 0 1.5px var(--u-accent); }
.account-form__hint { font-size: 12px; line-height: 17px; color: var(--u-muted); }
.account-form__foot { display: flex; justify-content: flex-end; gap: 8px; }
.account-form__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--u-ink); color: var(--u-bg); font-weight: 500; white-space: nowrap; }
.account-form__btn--plain { background: none; color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2); }

/* ---------------------------------------------------------------- the close at 320 */
@media (max-width: 359px) { .closing__cta .btn--xl { font-size: 16px; padding-inline: var(--s-4); } }

/* ---------------------------------------------------------------- phones and tablets */
/* a phone shows the stock window whole: two rows under its heading, nothing cut by the frame */
@media (max-width: 639px) {
  .hero__art > .ly-piece--main { bottom: auto; border-radius: 12px; }
  .hero-win .d-tabs { display: none; }
  .hero-win .d-row:nth-child(n + 3) { display: none; }
  .hero-win .d-row:last-child, .hero-win .d-row:nth-child(2) { border-bottom: 0; }
}
/* 640 to 1023: the questions keep the desktop's two columns, so the form never sits on the answers */
@media (min-width: 640px) and (max-width: 1023px) {
  #questions .grid.fill { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-6); align-items: stretch; }
  #questions .grid.fill > .faq__head, #questions .grid.fill > .faq { grid-column: auto; }
  #questions .account-form__grid { grid-template-columns: minmax(0, 1fr); }
  #questions .account-form__field--wide { grid-column: auto; }
}

/* ---------------------------------------------------------------- signed in or out
   The layout's head script marks <html data-auth="in"> from the stored session before the first paint,
   so a signed-in visitor sees Dashboard and their profile, never Sign in or Create company account. */
html:not([data-auth="in"]) .auth-in,
html[data-auth="in"] .auth-out { display: none !important; }

.nav__avatar { position: relative; flex: none; }
.nav__avatar-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; overflow: hidden;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--bg);
  font: 500 14px/1 var(--font-text); letter-spacing: 0.02em; cursor: pointer;
  transition: box-shadow var(--dur) var(--ease);
}
.nav__avatar-btn:hover, .nav__avatar-btn[aria-expanded="true"] { box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 12%, transparent); }
.nav__avatar-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nav__avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.nav__avatar-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 264px; padding: 6px;
  display: grid; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .35);
}
.nav__avatar-who { display: grid; gap: 2px; min-width: 0; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav__avatar-who strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__avatar-who span { font-size: var(--t-small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__avatar-menu a, .nav__avatar-menu button {
  display: flex; align-items: center; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: 400 15px/1 var(--font-text); text-align: left; cursor: pointer;
}
.nav__avatar-menu a:hover, .nav__avatar-menu button:hover,
.nav__avatar-menu a:focus-visible, .nav__avatar-menu button:focus-visible { background: color-mix(in oklab, var(--ink) 7%, var(--bg)); outline: none; }
.nav__avatar-menu button:disabled { color: var(--muted); cursor: progress; }
@media (max-width: 1023px) {
  /* phones and tablets keep the profile in the bar beside the Dashboard button */
  .nav:not(.is-open) .nav__actions > .nav__avatar { display: block; }
  .nav.is-open .nav__actions > .nav__avatar { display: none; }
}
/* signed in, the bar keeps Dashboard and the profile on a phone too (the kit sends a page's main button to
   the foot bar there); the foot bar would only repeat Dashboard, so it stays away */
html[data-auth="in"] body > nav.actionbar { display: none; }
@media (max-width: 1023px) {
  html[data-auth="in"]:has(> body > nav.actionbar) .nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  html[data-auth="in"]:has(> body > nav.actionbar) .nav:not(.is-open) .nav__toggle { margin-left: 0; }
}
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions { gap: var(--s-2); }
  .nav__avatar-btn { width: 36px; height: 36px; font-size: 13px; }
}
