/* =====================================================================
   HypeScent Creators: creator portal (track.html) + team admin (admin.html)
   Same NS tokens, fonts and parts as the site (css/site.css). Layout of the
   money calendar borrowed from the owner's ULTIME profit calendar:
   3 cards on top, month grid with signed amounts (green gain, red loss,
   grey zero), legend, and the month calculation line by line on the side.
   Light only, like hypescent.com.
   ===================================================================== */

:root {
  --hs-pos: var(--ns-success);   /* #1d7a4f */
  --hs-pos-bg: #e4f2ea;
  --hs-neg: var(--ns-error);     /* #b3261e */
  --hs-neg-bg: #fbe9e7;
  --hs-zero-bg: var(--ns-tile);  /* #f4f4f5 */
}

/* ---------- shared bits ---------- */
.hs-portal { min-height: 62vh; }
.hs-btn-ghost { background: #fff; color: var(--ns-primary); }
.hs-btn-ghost:hover { background: var(--ns-bg-lav); border-color: var(--ns-primary); color: var(--ns-primary); }
.ns-drawer .hs-btn-ghost { border-color: var(--ns-primary); }
/* header Log out: text button, an icon button on phones (like the live header icons) */
.hs-logout-head svg { display: none; }
@media (max-width: 599px) {
  .hs-logout-head { width: 44px; min-height: 44px; padding: 0; border-color: transparent; background: none; color: var(--ns-text); }
  .hs-logout-head:hover { background: none; border-color: transparent; color: var(--ns-primary); }
  .hs-logout-head svg { display: block; width: 24px; height: 24px; }
  .hs-logout-head span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.hs-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-pos { color: var(--hs-pos); }
.hs-neg { color: var(--hs-neg); }
.hs-zero { color: var(--ns-muted); }
.hs-spinner { display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; border: 2px solid var(--ns-line); border-top-color: var(--ns-primary); border-radius: 50%; animation: hs-spin .8s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hs-spinner { animation: none; } }
.hs-portal-loading { padding: 96px 0; text-align: center; }
.hs-portal-loading__text { font-family: var(--ns-font-display); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ns-text-2); }
.hs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 2px; border-radius: 4px; background: var(--ns-bg-soft); color: var(--ns-text-2);
  font-family: var(--ns-font-display); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
.hs-chip--ok { background: var(--hs-pos-bg); color: var(--hs-pos); }
.hs-chip--wait { background: var(--ns-bg-lav); color: var(--ns-primary); }
.hs-chip--no { background: var(--hs-neg-bg); color: var(--hs-neg); }
.hs-chip--wrap { display: inline-block; padding: 5px 9px 4px; font-family: var(--ns-font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-transform: none; white-space: normal; }
.hs-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; padding: 12px 16px; border-radius: var(--ns-radius); background: var(--ns-bg-lav); color: var(--ns-text); font-size: 15px; line-height: 1.45; }
.hs-alert svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ns-primary); }
.hs-alert--warn { background: #fff4e5; }
.hs-alert--warn svg { color: #9a5b00; }
.hs-demo-note { max-width: 460px; margin: 22px auto 0; padding: 12px 16px; border: 1.5px dashed #b9bcc7; border-radius: var(--ns-radius); font-size: 14px; color: var(--ns-text-2); text-align: center; }
.hs-demo-note .ns-link-caps { font-size: 13px; }
.hs-demo-pill { display: inline-block; margin-left: 10px; padding: 2px 8px 1px; border: 1.5px dashed currentColor; border-radius: 4px; font-size: 11px; letter-spacing: .12em; color: var(--ns-primary); vertical-align: 1px; }

/* ---------- public demo ("See a demo", track.html#demo): static numbers, never the API ---------- */
.hs-demo-cta { display: grid; gap: 10px; max-width: 460px; margin: 26px auto 0; text-align: center; }
.hs-demo-cta__text { font-size: 15px; line-height: 1.45; color: var(--ns-text-2); }
.hs-demo-cta .ns-btn { border-color: var(--ns-primary); }
.hs-demo-cta__error { justify-content: center; }
/* banner: sticks under the header while you scroll the demo; one row on computers, compact on phones */
.hs-demobar { position: sticky; top: var(--ns-header-h); z-index: 20; background: var(--ns-bg-lav); border-bottom: 1px solid var(--ns-line); }
.hs-demobar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.hs-demobar__text { min-width: 0; font-size: 14.5px; line-height: 1.4; color: var(--ns-text); }
.hs-demobar__tag { display: inline-block; margin-right: 8px; padding: 3px 8px 2px; border-radius: 4px; background: var(--ns-primary); color: #fff;
  font-family: var(--ns-font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; vertical-align: 1px; }
.hs-demobar__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.hs-demobar .ns-btn--sm { min-height: 44px; padding: 8px 18px; font-size: 13px; }
.hs-demobar .hs-btn-ghost { border-color: var(--ns-primary); }
.hs-demobar__exit { gap: .45em; }
/* in the demo, "Exit demo" lives in the banner (the header Log out would repeat it) */
.hs-is-demo .hs-logout-head { display: none !important; }
html.hs-is-demo { scroll-padding-top: calc(var(--ns-header-h) + 84px); }
@media (max-width: 749px) {
  .hs-demobar__inner { gap: 10px; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  .hs-demobar__text { flex: 1; font-size: 12px; line-height: 1.35; }
  .hs-demobar__tag { margin-right: 5px; padding: 2px 6px 1px; font-size: 10px; letter-spacing: .12em; }
  .hs-demobar__actions { gap: 6px; }
  .hs-demobar .ns-btn--sm { min-height: 44px; padding: 6px 12px; font-size: 12.5px; letter-spacing: .08em; }
  .hs-demobar__more { display: none; }
}
@media (max-width: 359.98px) {
  .hs-demobar .ns-btn--sm { padding: 6px 9px; }
}
.hs-co-done__icon.hs-co-demo__icon { background: var(--ns-bg-lav); color: var(--ns-primary); }
.hs-co-demo .ns-btn { margin-top: 4px; }

/* ---------- login ---------- */
.hs-login { padding-bottom: 88px; }
.hs-login__head { margin-bottom: 30px; }
.hs-login__card { display: grid; gap: 18px; max-width: 460px; margin: 0 auto; padding: 28px; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-card); background: #fff; box-shadow: 0 4px 14px rgba(14, 16, 41, .06); }
.hs-id-input { font-family: var(--ns-font-display); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hs-id-input::placeholder { letter-spacing: .1em; }
.hs-login__help { font-size: 14px; line-height: 1.5; color: var(--ns-text-2); text-align: center; overflow-wrap: anywhere; }
.hs-login__alt { margin-top: 20px; font-size: 15px; color: var(--ns-text-2); text-align: center; }
@media (max-width: 749px) {
  .hs-login__head { padding-top: 32px; margin-bottom: 22px; }
  .hs-login__head .ns-pagehead__title { font-size: 36px; }
  .hs-login__card { padding: 20px 16px; }
}

/* ---------- dashboard head ---------- */
.hs-dash-head { padding: 44px 0 20px; }
.hs-dash-head__title { margin-top: 8px; font-family: var(--ns-font-display); font-size: clamp(34px, 4.2vw, 56px); font-weight: 400; letter-spacing: .05em; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.hs-dash-head__title:focus { outline: none; }
.hs-dash-head__sub { margin-top: 10px; font-size: 15px; color: var(--ns-text-2); }
.hs-fresh { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hs-fresh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hs-pos); }
.hs-fresh--stale .hs-fresh__dot { background: #c27a00; }
.hs-dash-sec { padding: 20px 0; }
.hs-dash-sec--kpis { padding-top: 8px; }
.hs-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hs-sec-title { margin-top: 6px; font-family: var(--ns-font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; }
@media (max-width: 749px) {
  .hs-dash-head { padding: 28px 0 14px; }
  .hs-dash-head__title { font-size: min(34px, 9vw); }
  .hs-dash-sec { padding: 14px 0; }
}

/* ---------- 3 cards [DERIVED from live .ns-compare boxes / ULTIME cards] ---------- */
.hs-kpis { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.hs-kpi { container-type: inline-size; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 26px 26px 24px; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-card); background: #fff; }
.hs-kpi__label { font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--ns-text); }
.hs-kpi__label-sub { font-weight: 500; letter-spacing: .08em; color: var(--ns-text-2); }
.hs-kpi__value { font-family: var(--ns-font-display); font-size: clamp(24px, 15cqi, 44px); font-weight: 500; letter-spacing: .01em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ns-text); }
.hs-kpi__note { margin-top: auto; font-size: 14px; line-height: 1.45; color: var(--ns-text-2); }
.hs-kpi--main { background: var(--ns-primary); border-color: var(--ns-primary); color: #fff; }
.hs-kpi--main .hs-kpi__label, .hs-kpi--main .hs-kpi__value { color: #fff; }
.hs-kpi--main .hs-kpi__value { font-size: clamp(38px, 14cqi, 66px); }
.hs-kpi--main :focus-visible { outline-color: #fff; }
.hs-kpi__action { display: grid; gap: 8px; margin-top: 10px; }
.hs-kpi__action .ns-btn { justify-self: start; min-width: 220px; }
.hs-kpi__action p { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.hs-kpi__action strong { color: #fff; }
.hs-kpi__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hs-kpi__bar span { display: block; height: 100%; border-radius: 4px; background: #fff; }
.ns-btn--white[disabled] { opacity: .55; }
@media (max-width: 989px) {
  .hs-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .hs-kpi--main { grid-column: 1 / -1; }
}
@media (max-width: 749px) {
  .hs-kpi { padding: 18px 16px 16px; gap: 6px; }
  .hs-kpi__label { font-size: 11.5px; letter-spacing: .12em; }
  .hs-kpi__value { font-size: clamp(20px, 15cqi, 32px); }
  .hs-kpi--main { padding: 22px 18px 20px; }
  .hs-kpi--main .hs-kpi__value { font-size: clamp(36px, 15cqi, 52px); }
  .hs-kpi__action .ns-btn { justify-self: stretch; min-width: 0; }
  .hs-kpi__note { font-size: 13px; }
}

/* ---------- your code + link [DERIVED from live .ns-promo, lavender card] ---------- */
.hs-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 40px; align-items: center; padding: 30px 32px; border-radius: var(--ns-radius-card); background: var(--ns-bg-lav); }
.hs-code__label { font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hs-code__big { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.hs-code__tag { font-family: var(--ns-font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: .08em; line-height: 1.05; color: var(--ns-primary); overflow-wrap: anywhere; }
.hs-code__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ns-text-2); }
.hs-code__text strong { color: var(--ns-text); }
.hs-copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ns-primary); border-radius: var(--ns-radius); background: #fff; color: var(--ns-primary);
  font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.hs-copy:hover { background: var(--ns-primary); color: #fff; }
.hs-copy svg { width: 16px; height: 16px; flex: none; }
.hs-copy.is-done { background: var(--ns-primary); color: #fff; }
.hs-linkbox { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
/* the URL wraps instead of being clipped: the code at its end is the part that matters */
.hs-linkbox__url { flex: 1; min-width: 0; display: block; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ns-line); border-radius: var(--ns-radius); background: #fff;
  font-size: 15px; line-height: 1.4; color: var(--ns-text); white-space: normal; overflow-wrap: anywhere; }
.hs-linkbox__label { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.hs-code--ask { grid-template-columns: 1fr; }
@media (max-width: 989px) {
  .hs-code { grid-template-columns: 1fr; }
  .hs-linkbox { flex-direction: column; }
  .hs-linkbox .hs-copy { width: 100%; }
}
@media (max-width: 749px) {
  .hs-code { padding: 22px 16px; gap: 18px; }
  .hs-linkbox__url { font-size: 14px; }
}

/* ---------- month nav ---------- */
.hs-monthnav { display: flex; align-items: center; gap: 4px; }
.hs-monthnav__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ns-line); border-radius: 50%; background: #fff; color: var(--ns-text); cursor: pointer; }
.hs-monthnav__btn:hover:not([disabled]) { border-color: var(--ns-primary); color: var(--ns-primary); }
.hs-monthnav__btn[disabled] { opacity: .35; cursor: default; }
.hs-monthnav__btn svg { width: 18px; height: 18px; }
.hs-monthnav__label { min-width: 168px; text-align: center; font-family: var(--ns-font-display); font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 749px) {
  .hs-sec-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .hs-monthnav { justify-content: space-between; }
  .hs-monthnav__label { min-width: 0; font-size: 15px; }
}

/* ---------- the calendar (ULTIME structure, NS colours) ---------- */
.hs-cal-lay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 990px) { .hs-cal-lay { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; } }
.hs-cal-wrap { min-width: 0; }
.hs-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hs-cal__h { padding: 0 0 6px; text-align: center; font-family: var(--ns-font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ns-muted); }
.hs-cal__blank { min-width: 0; }
.hs-cell { container: hs-cell / inline-size; position: relative; min-width: 0; min-height: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px;
  margin: 0; padding: 5px 4px 6px 5px; border: 0; border-radius: 6px; background: var(--hs-zero-bg); color: var(--ns-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs-cell.is-pos { background: var(--hs-pos-bg); }
.hs-cell.is-neg { background: var(--hs-neg-bg); }
.hs-cell.is-off { background: #fff; box-shadow: inset 0 0 0 1px var(--ns-line); cursor: default; }
.hs-cell.is-off .hs-cell__n { color: var(--ns-muted); font-weight: 500; }
button.hs-cell:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 41, .28); }
button.hs-cell:active { opacity: .8; }
.hs-cell.is-sel { box-shadow: inset 0 0 0 2px var(--ns-primary) !important; }
.hs-cell:focus-visible { outline: 3px solid var(--ns-primary); outline-offset: 1px; }
.hs-cell__n { display: block; min-width: 0; font-size: 12px; font-weight: 600; line-height: 18px; }
.hs-cell.is-today .hs-cell__n { display: grid; place-items: center; width: 20px; height: 20px; margin: -1px 0 0 -2px; border-radius: 50%; background: var(--ns-primary); color: #fff; font-size: 11.5px; line-height: 1; }
/* pending (inside the 30 days): small ring in the corner */
.hs-cell.is-pending::after { content: ''; position: absolute; top: 7px; right: 6px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ns-muted); }
/* amount: one size for the whole month, sized by the script for the longest amount, always on one line.
   Narrow tiles (phones): compact "10.95" / "−1.62" (--em2); the colour says gain or loss.
   Wide tiles: full "+$10.95" (--em1). Screen readers get the full amount from the tile's aria-label. */
.hs-cell__amt { display: block; min-width: 0; font-size: var(--p-fs, clamp(8.5px, calc(100cqi / var(--em2, 4)), 13.5px)); white-space: nowrap;
  font-weight: 600; line-height: 1.12; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hs-cell__amt .f { display: var(--p-f, none); }
.hs-cell__amt .k { display: var(--p-k, inline); }
.is-pos .hs-cell__amt { color: var(--hs-pos); }
.is-neg .hs-cell__amt { color: var(--hs-neg); }
.is-zero .hs-cell__amt { color: var(--ns-muted); font-weight: 500; }
.hs-cal { --one-fs: clamp(10px, calc(100cqi / var(--em1, 8)), 16px); }
@container hs-cell (min-width: 52px) { .hs-cal[data-w="52"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 60px) { .hs-cal[data-w="60"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 68px) { .hs-cal[data-w="68"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 76px) { .hs-cal[data-w="76"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 84px) { .hs-cal[data-w="84"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 96px) { .hs-cal[data-w="96"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 112px) { .hs-cal[data-w="112"] .hs-cell__amt { --p-fs: var(--one-fs); --p-f: inline; --p-k: none; } }
@container hs-cell (min-width: 76px) {
  .hs-cell__n { font-size: 13px; line-height: 22px; }
  .hs-cell.is-today .hs-cell__n { width: 24px; height: 24px; font-size: 12.5px; margin: -1px 0 0 -3px; }
}
@media (max-width: 359.98px) {
  .hs-cal { gap: 2px; }
  .hs-cell { padding: 4px 2px 5px 3px; border-radius: 5px; }
  .hs-cell__amt { font-size: var(--p-fs, clamp(7.5px, calc(100cqi / var(--em2, 4)), 13px)); }
  .hs-cell.is-pending::after { right: 4px; }
}
@media (min-width: 990px) {
  .hs-cal { gap: 6px; }
  .hs-cell { min-height: 86px; padding: 8px 10px 10px; border-radius: var(--ns-radius-card); }
  .hs-cell.is-pending::after { top: 10px; right: 10px; }
}
.hs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--ns-text-2); }
.hs-legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hs-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.hs-sw--pos { background: var(--hs-pos-bg); box-shadow: inset 0 0 0 1.5px var(--hs-pos); }
.hs-sw--neg { background: var(--hs-neg-bg); box-shadow: inset 0 0 0 1.5px var(--hs-neg); }
.hs-sw--pending { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ns-muted); }
.hs-sw--today { border-radius: 50%; background: var(--ns-primary); }
.hs-cal-note { margin-top: 8px; font-size: 13px; color: var(--ns-muted); }

/* ---------- month panel: the calculation, line by line ---------- */
.hs-mpanel { padding: 22px 22px 18px; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-card); background: #fff; }
.hs-mpanel__title { font-family: var(--ns-font-display); font-size: 18px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.hs-mpanel__title small { font-family: var(--ns-font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ns-muted); }
.hs-mpanel__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--ns-radius); background: var(--ns-bg-lav); }
.hs-mpanel__total .k { font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hs-mpanel__total .v { font-family: var(--ns-font-display); font-size: 26px; font-weight: 500; color: var(--ns-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-mpanel__split { margin-top: 6px; font-size: 13px; color: var(--ns-text-2); }
.hs-calc { margin-top: 18px; }
.hs-calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ns-line);
  font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hs-calc__head span:last-child { font-family: var(--ns-font-body); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ns-muted); white-space: nowrap; }
.hs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; line-height: 1.4; color: var(--ns-text-2); }
.hs-row .k { min-width: 0; }
.hs-row .k small { display: block; font-size: 12px; color: var(--ns-muted); }
.hs-row .v { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ns-text); font-weight: 500; }
.hs-row--total { margin-top: 2px; border-top: 1px solid var(--ns-line); padding-top: 8px; color: var(--ns-text); font-weight: 600; }
.hs-row--total .v { font-weight: 600; }
.hs-row--you { color: var(--ns-primary); font-weight: 600; }
.hs-row--you .v { color: var(--ns-primary); font-size: 16px; font-weight: 700; }
.hs-floor { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--ns-muted); }
.hs-days { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 4px; font-size: 13px; color: var(--ns-text-2); }
.hs-days > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.hs-dot--pos { background: var(--hs-pos); } .hs-dot--neg { background: var(--hs-neg); } .hs-dot--zero { background: #b9bcc7; }
.hs-bestworst { display: flex; flex-direction: column; margin-top: 6px; }
.hs-bw { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--ns-line); background: none; font: inherit; font-size: 14px; color: var(--ns-text-2); text-align: left; cursor: pointer; }
.hs-bw .k small { display: block; font-size: 12px; color: var(--ns-muted); }
.hs-bw .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-bw:hover .k { color: var(--ns-text); text-decoration: underline; text-underline-offset: 3px; }
.hs-empty { padding: 14px 0 6px; font-size: 15px; line-height: 1.5; color: var(--ns-text-2); }

/* ---------- ads + payouts ---------- */
.hs-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 989px) { .hs-two { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.hs-block .hs-sec-title { margin-bottom: 14px; }
.hs-plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ns-line); }
.hs-plist > li { padding: 14px 0; border-bottom: 1px solid var(--ns-line); }
.hs-li__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hs-li__name { min-width: 0; font-weight: 600; color: var(--ns-text); overflow-wrap: anywhere; }
.hs-li__amt { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-li__meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: var(--ns-text-2); }
.hs-li__meta .hs-num { color: var(--ns-text); }
.hs-li__reason { margin-top: 6px; font-size: 14px; color: var(--ns-text-2); }
.hs-plist-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ns-muted); }

.hs-dash-foot { padding: 24px 0 64px; }
.hs-dash-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: var(--ns-text-2); }

/* ---------- sheets (native <dialog>: focus trap + Esc for free) ---------- */
dialog.hs-sheet { width: min(540px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 820px); padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--ns-text); box-shadow: 0 24px 70px rgba(14, 16, 41, .28); overflow: hidden; }
dialog.hs-sheet[open] { display: flex; flex-direction: column; }
dialog.hs-sheet::backdrop { background: rgba(14, 16, 41, .45); }
html:has(dialog.hs-sheet[open]) { overflow: hidden; }
.hs-sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--ns-line); }
.hs-sheet__title { font-family: var(--ns-font-display); font-size: 17px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.hs-sheet__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ns-text); cursor: pointer; }
.hs-sheet__close:hover { background: var(--ns-tile); }
.hs-sheet__close svg { width: 22px; height: 22px; }
.hs-sheet__body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 26px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (max-width: 749px) {
  dialog.hs-sheet { width: 100%; max-width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .hs-sheet__head { padding-left: 16px; }
  .hs-sheet__body { padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
}
/* day detail */
.hs-day__hero { padding-bottom: 14px; border-bottom: 1px solid var(--ns-line); }
.hs-day__label { font-size: 13px; font-weight: 500; color: var(--ns-text-2); }
.hs-day__big { margin-top: 2px; font-family: var(--ns-font-display); font-size: 36px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-day__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hs-day__sec { margin-top: 18px; }
.hs-day__sec h3 { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ns-line); font-family: var(--ns-font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hs-day__sec h3 span:last-child { font-family: var(--ns-font-body); font-weight: 600; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.hs-day__item { padding: 10px 0; border-bottom: 1px solid var(--ns-line); }
.hs-day__item:last-child { border-bottom: 0; }
.hs-day__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.hs-day__nums div { min-width: 0; }
.hs-day__nums dt { font-size: 12px; color: var(--ns-muted); }
.hs-day__nums dd { margin: 0; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-day__nums .you dd { color: var(--ns-primary); font-weight: 700; }
.hs-day__nums .you dd.hs-neg { color: var(--hs-neg); }
.hs-day__note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ns-muted); }
/* cash-out sheet */
.hs-co { display: grid; gap: 18px; }
.hs-co__amount { font-family: var(--ns-font-display); font-size: 44px; font-weight: 500; line-height: 1; color: var(--ns-primary); font-variant-numeric: tabular-nums; }
.hs-co__lead { margin-top: -12px; font-size: 15px; color: var(--ns-text-2); }
.hs-co__methods .ns-chips { margin-top: 2px; }
.hs-co__methods .ns-chip { min-width: 0; flex: 1; }
.hs-co__small { font-size: 13.5px; line-height: 1.5; color: var(--ns-text-2); text-align: center; }
.hs-co-done { display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
.hs-co-done:focus { outline: none; }
.hs-co-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hs-pos-bg); color: var(--hs-pos); }
.hs-co-done__icon svg { width: 28px; height: 28px; }
.hs-co-done__title { font-family: var(--ns-font-display); font-size: 26px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hs-co-done__text { max-width: 400px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; color: var(--ns-text-2); overflow-wrap: anywhere; }

/* =====================================================================
   Admin (admin.html) — same look, denser
   ===================================================================== */
.hs-admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 36px 0 18px; }
/* admin title sits a little lower so accents never touch the eyebrow */
.hs-admin-bar h1 { margin-top: 10px; font-family: var(--ns-font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; letter-spacing: .05em; line-height: 1.05; text-transform: uppercase; }
.hs-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-admin-actions .hs-btn-ghost { border-color: var(--ns-primary); }
.hs-admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.hs-admin-kpis .hs-kpi { padding: 18px 20px; }
.hs-admin-kpis .hs-kpi__value { font-size: clamp(22px, 13cqi, 34px); }
@media (max-width: 989px) { .hs-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.hs-admin-sec { padding: 22px 0; }
.hs-table-wrap { overflow-x: auto; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-card); }
.hs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hs-table th { padding: 12px 14px; background: var(--ns-tile); text-align: left; font-family: var(--ns-font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ns-text); }
.hs-table td { padding: 12px 14px; border-top: 1px solid var(--ns-line); vertical-align: top; color: var(--ns-text-2); }
.hs-table td.num, .hs-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-table td strong { color: var(--ns-text); }
.hs-table small { display: block; color: var(--ns-muted); font-size: 12.5px; }
.hs-table tr.is-paused td { opacity: .62; }
.hs-table small.hs-warn-small { color: var(--hs-neg); font-weight: 600; }
.hs-mini { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); background: #fff; color: var(--ns-text);
  font-family: var(--ns-font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.hs-mini:hover { border-color: var(--ns-primary); color: var(--ns-primary); }
.hs-mini--primary { background: var(--ns-primary); border-color: var(--ns-primary); color: #fff; }
.hs-mini--primary:hover { background: var(--ns-primary-dark); color: #fff; }
.hs-mini--danger:hover { border-color: var(--ns-error); color: var(--ns-error); }
.hs-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-queue { display: grid; gap: 12px; }
.hs-qcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: start; padding: 18px 20px; border: 1px solid var(--ns-line); border-left: 4px solid var(--ns-primary); border-radius: var(--ns-radius-card); background: #fff; }
.hs-qcard__amt { font-family: var(--ns-font-display); font-size: 28px; font-weight: 500; color: var(--ns-primary); font-variant-numeric: tabular-nums; }
.hs-qcard__meta { margin-top: 4px; font-size: 14px; color: var(--ns-text-2); overflow-wrap: anywhere; }
.hs-qcard__form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hs-qcard__form .ns-input { flex: 1 1 240px; height: 44px; font-size: 15px; }
@media (max-width: 749px) { .hs-qcard { grid-template-columns: 1fr; } }
.hs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .hs-form-grid { grid-template-columns: 1fr; } }
.hs-check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ns-text); cursor: pointer; }
.hs-check-line input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ns-primary); flex: none; }
.hs-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px; border: 1.5px dashed var(--ns-primary); border-radius: var(--ns-radius); background: var(--ns-bg-lav); }
.hs-secret__id { font-family: var(--ns-font-display); font-size: 24px; font-weight: 600; letter-spacing: .1em; color: var(--ns-primary); overflow-wrap: anywhere; }
.hs-mail { width: 100%; min-height: 220px; padding: 12px 14px; border: 1.5px solid var(--ns-line); border-radius: var(--ns-radius); background: var(--ns-tile); font: 400 14px/1.5 var(--ns-font-body); color: var(--ns-text); resize: vertical; }
.hs-warn-line { font-size: 14px; font-weight: 600; color: var(--ns-error); }
.hs-help { font-size: 14px; line-height: 1.55; color: var(--ns-text-2); }
.hs-help code { padding: 1px 6px; border-radius: 4px; background: var(--ns-tile); font-size: 13px; color: var(--ns-text); }
.hs-admin-foot { padding: 30px 0 60px; }
/* phones: the two admin buttons stack and wrap (no horizontal overflow at 360) */
@media (max-width: 749px) {
  .hs-admin-actions { width: 100%; }
  .hs-admin-actions .ns-btn { flex: 1 1 100%; min-width: 0; white-space: normal; text-align: center; }
}
/* phones and tablets: tables become one card per row (label on the left, value on the right) */
@media (max-width: 989px) {
  .hs-mini { min-height: 44px; }
  .hs-table-wrap { overflow: visible; border: 0; }
  .hs-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hs-table--cards, .hs-table--cards tbody { display: block; }
  .hs-table--cards tr { display: block; margin-bottom: 12px; padding: 6px 16px; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-card); background: #fff; }
  .hs-table--cards td { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--ns-line); text-align: right; }
  .hs-table--cards td::before { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
  .hs-table--cards td > * { grid-column: 2; }
  .hs-table--cards td:first-child { border-top: 0; }
  .hs-table--cards td::before { content: attr(data-label); flex: none; font-family: var(--ns-font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ns-text); text-align: left; }
  .hs-table--cards td.hs-td-actions { display: block; text-align: left; }
  .hs-table--cards td.hs-td-actions::before { content: none; }
  .hs-table--cards td small { overflow-wrap: anywhere; }
}
/* admin header: no burger, so the empty left slot and the icon stay on one row on phones */
@media (max-width: 989px) {
  .hs-admin-header > span { grid-column: 1; grid-row: 1; }
  .hs-admin-header .ns-logo { grid-row: 1; }
  .hs-admin-header .ns-icons { grid-row: 1; }
}
@media (max-width: 989px) { .hs-table--cards td > * { justify-self: end; } }

/* =====================================================================
   Admin : Candidatures (21/10)
   ===================================================================== */
.hs-apps-count { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--ns-text-2); }
a.hs-chip { text-decoration: none; }
a.hs-chip:hover { text-decoration: underline; }
.hs-apps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.hs-apps-head .ns-btn { border-color: var(--ns-primary); }
.hs-apps-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-apps-actions .ns-btn[disabled] { opacity: .6; cursor: progress; }
.hs-apps-result { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--ns-radius); background: var(--ns-bg-lav); font-size: 14px; line-height: 1.45; }
.hs-sec-note { max-width: 760px; margin: 10px 0 14px; font-size: 14px; line-height: 1.5; color: var(--ns-text-2); }
#candidatures:focus { outline: none; }
.hs-table a.hs-ext { color: var(--ns-primary); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.hs-table a.hs-ext:hover { text-decoration: underline; }
.hs-table .hs-social-line { display: block; }
.hs-table .hs-kit-line { display: block; font-size: 13.5px; color: var(--ns-text-2); }
.hs-table .hs-kit-line b { font-weight: 600; color: var(--ns-text); }
.hs-mail-cell { display: grid; gap: 6px; justify-items: start; }
.hs-apps-more { display: flex; justify-content: center; margin-top: 14px; }
@media (max-width: 749px) {
  .hs-apps-head .ns-btn { flex: 1 1 100%; min-width: 0; white-space: normal; text-align: center; }
  .hs-apps-actions { flex: 1 1 100%; }
}
@media (max-width: 989px) {
  .hs-mail-cell { justify-items: end; }
  .hs-table--cards td .hs-kit-line, .hs-table--cards td .hs-social-line { text-align: right; }
}
