/* Upsense SME portal 2.5.1 — design system, dashboard, consultation and admin.
   Display type: The Daily Midtones (supplied). Body: Inter (SIL OFL 1.1).
   Emoji render with the visitor's system colour-emoji font. */

@font-face { font-family: "Upsense Display"; src: url("fonts/TheDailyMidtones-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Upsense Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Upsense Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Upsense Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Upsense Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
.upsense-app {
  --u-display: "Upsense Display", "Upsense Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --u-text: "Upsense Inter", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --u-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;

  --u-ink: #16181d;
  --u-ink-2: #2a2d35;
  --u-muted: #5b6270;
  --u-faint: #858b97;
  --u-line: rgba(22, 24, 29, 0.08);
  --u-line-2: rgba(22, 24, 29, 0.14);
  --u-canvas-a: #dde5f4;
  --u-canvas-b: #eceff4;
  --u-canvas-c: #eef2e2;
  --u-surface: rgba(255, 255, 255, 0.62);
  --u-surface-2: rgba(255, 255, 255, 0.82);
  --u-soft: rgba(22, 24, 29, 0.05);
  --u-soft-2: rgba(22, 24, 29, 0.08);

  /* Brand colours: set in Settings → Upsense (printed as --up-* on :root). */
  --u-blue: var(--up-primary, #2457f5);
  --u-on-blue: var(--up-on-primary, #fff);
  --u-teal: var(--up-secondary, #35768c);
  --u-on-teal: var(--up-on-secondary, #fff);
  --u-yellow: var(--up-highlight, #f2e14c);
  --u-on-yellow: var(--up-on-highlight, #16181d);
  --u-dark: var(--up-dark, #1b1d22);
  --u-on-dark: var(--up-on-dark, #fff);
  --u-chat: var(--up-chat, #13296b);
  --u-on-chat: var(--up-on-chat, #fff);
  --u-ink-tile: var(--u-dark);
  --u-yellow-soft: #f7eeb0;
  --u-green: #1f6b45;
  --u-green-soft: #dcefe2;
  --u-red: #b42332;
  --u-red-soft: #fbe6e8;
  --u-blue-soft: #dfe7ff;

  --u-s1: 4px; --u-s2: 8px; --u-s3: 12px; --u-s4: 16px; --u-s5: 20px; --u-s6: 24px; --u-s7: 32px; --u-s8: 40px; --u-s9: 56px;
  --u-gap: 16px;
  --u-pad: 24px;
  --u-r-card: 30px;
  --u-r-tile: 22px;
  --u-r-field: 16px;
  --u-hit: 44px;

  --u-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -24px rgba(35, 48, 90, 0.22);
  --u-shadow-tile: 0 14px 28px -18px rgba(22, 24, 29, 0.35);
  --u-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --u-ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  font-family: var(--u-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--u-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.upsense-app *, .upsense-app *::before, .upsense-app *::after { box-sizing: border-box; }
.upsense-app :where(h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset) { margin: 0; padding: 0; }
.upsense-app :where(ol, ul) { list-style: none; }
.upsense-app :where(a) { color: inherit; }
.upsense-app :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.upsense-app :where(img, svg) { max-width: 100%; }
.upsense-app [hidden] { display: none !important; }
.upsense-app :focus-visible { outline: 3px solid var(--u-blue); outline-offset: 2px; }
.upsense-app [tabindex="-1"]:focus { outline: none; }
/* Theme-proof headings: WordPress themes often style h1–h4 directly. */
.upsense-app h1, .upsense-app h2, .upsense-app h3, .upsense-app h4 { margin: 0; padding: 0; font-family: var(--u-text); font-style: normal; letter-spacing: normal; text-transform: none; line-height: 1.3; color: inherit; }
.upsense-app button, .upsense-app a { text-transform: none; letter-spacing: normal; }

/* ------------------------------------------------------------------ page */
html.ups-lock, html.ups-lock body { overflow: hidden !important; }
body.upsense-page { margin: 0; min-height: 100dvh; background-color: #eceff4;
  background:
    radial-gradient(60% 50% at 0% 0%, #d6e0f6 0%, transparent 70%),
    radial-gradient(55% 60% at 100% 100%, #e7eed7 0%, transparent 70%),
    linear-gradient(135deg, #dfe6f4 0%, #eceef3 50%, #eef1e6 100%);
  background-attachment: scroll;
}
.ups-loading { display: grid; place-items: center; min-height: 60dvh; color: #5b6270; font: 500 16px/1.4 "Upsense Inter", ui-sans-serif, system-ui, sans-serif; }

/* ------------------------------------------------------------------ type */
.upsense-app .ups-display { font-family: var(--u-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; color: var(--u-ink); text-wrap: balance; }
.upsense-app h1.ups-display { font-size: clamp(34px, 3.4vw, 46px); }
.upsense-app h2.ups-display { font-size: clamp(28px, 2.6vw, 34px); }
.ups-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--u-muted); margin-bottom: var(--u-s2); }
.ups-lead { font-size: 17px; color: var(--u-muted); max-width: 60ch; }
.ups-muted { color: var(--u-muted); }
.ups-small { font-size: 14px; }
.ups-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.upsense-app .ups-section-title { display: flex; align-items: center; gap: var(--u-s3); margin: var(--u-s7) 0 var(--u-s4); font-family: var(--u-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.ups-bullets { display: grid; gap: var(--u-s2); padding-left: 1.2em !important; list-style: disc !important; color: var(--u-ink-2); }
.ups-quote { margin-top: var(--u-s3) !important; padding: var(--u-s3) var(--u-s4); border-radius: 14px; background: var(--u-soft); color: var(--u-ink-2); font-size: 15px; }

/* ------------------------------------------------------------------ emoji */
.ups-emo {
  display: inline-grid; place-items: center; flex: none;
  font-family: var(--u-emoji); font-style: normal; font-weight: 400; line-height: 1; letter-spacing: 0;
  border-radius: 999px; user-select: none;
}
.ups-emo--xs { font-size: 15px; width: 20px; height: 20px; border-radius: 6px; }
.ups-emo--sm { width: 40px; height: 40px; font-size: 20px; }
.ups-emo--md { width: 52px; height: 52px; font-size: 26px; }
.ups-emo--lg { width: 64px; height: 64px; font-size: 32px; border-radius: 20px; }
.ups-emo--xl { width: 84px; height: 84px; font-size: 44px; border-radius: 26px; }
.ups-emo--hero { width: 128px; height: 128px; font-size: 64px; }
.ups-emo--soft { background: var(--u-surface-2); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-emo--glass { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.ups-emo--halo { background: radial-gradient(circle at 30% 25%, #fff 0%, #eef2fb 60%, #e2e8f6 100%); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55), var(--u-shadow-tile); }
.ups-glyph { display: inline-grid; place-items: center; flex: none; line-height: 0; }
/* Line icons: 24px grid, drawn in currentColor so they follow every surface colour. */
.upsense-app .ups-icon { display: block; width: 1.125em; height: 1.125em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.upsense-app .ups-icon circle { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ controls */
.ups-btn {
  --b-bg: var(--u-soft-2); --b-fg: var(--u-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--u-s3);
  min-height: var(--u-hit); padding: 0 var(--u-s5); border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 160ms var(--u-ease), background-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.ups-btn:active:not(:disabled) { transform: scale(0.97); }
.ups-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ups-btn--primary { --b-bg: var(--u-dark); --b-fg: var(--u-on-dark); box-shadow: var(--u-shadow-tile); }
.ups-btn--ghost { --b-bg: var(--u-surface-2); box-shadow: inset 0 0 0 1px var(--u-line-2); }
.ups-btn--light { --b-bg: #fff; --b-fg: var(--u-ink); }
.ups-btn--danger { --b-bg: var(--u-red); --b-fg: #fff; }
.ups-btn--text { --b-bg: transparent; --b-fg: var(--u-ink); padding: 0 var(--u-s3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--u-line-2); }
.ups-btn--sm { font-size: 14px; padding: 0 var(--u-s4); }
.ups-btn--wide { width: 100%; }
.ups-btn:has(.ups-btn__tail) { padding-right: 6px; }
.ups-btn__tail {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; margin-left: var(--u-s1);
  background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 34%, transparent); line-height: 0;
  transition: transform 300ms var(--u-ease), background-color 260ms ease, box-shadow 260ms ease;
}
.ups-btn__tail .ups-icon { width: 18px; height: 18px; }
.ups-circle .ups-icon { width: 18px; height: 18px; }
.ups-circle--sm .ups-icon { width: 16px; height: 16px; }
.ups-send .ups-icon { width: 20px; height: 20px; stroke-width: 2.3; }
.ups-btn--ghost .ups-btn__tail, .ups-btn--light .ups-btn__tail { box-shadow: inset 0 0 0 1.5px var(--u-line-2); }
@media (hover: hover) and (pointer: fine) {
  .ups-btn--primary:hover:not(:disabled) { --b-bg: color-mix(in srgb, var(--u-dark) 86%, #fff); }
  .ups-btn--ghost:hover:not(:disabled), .ups-btn--light:hover:not(:disabled) { --b-bg: #fff; box-shadow: inset 0 0 0 1px var(--u-line-2), var(--u-shadow-tile); }
  .ups-btn:hover .ups-btn__tail { transform: translateX(3px); background: color-mix(in srgb, currentColor 14%, transparent); }
  .ups-btn--text:hover { text-decoration-color: currentColor; }
}

.ups-circle {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--u-hit); height: var(--u-hit); padding: 0; border: 0; border-radius: 999px;
  background: var(--u-surface-2); color: var(--u-ink); font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--u-line);
  transition: transform 160ms var(--u-ease), background-color 200ms ease, box-shadow 200ms ease;
}
.ups-circle:active { transform: scale(0.94); }
.ups-circle--soft { background: var(--u-soft-2); box-shadow: none; }
.ups-circle--line { background: transparent; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-muted); }
@media (hover: hover) and (pointer: fine) { .ups-circle--line:hover { color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2), 0 10px 22px -18px rgba(22, 24, 29, 0.6); } }
.ups-circle--glass { background: rgba(255, 255, 255, 0.18); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.ups-circle--sm .ups-glyph { font-size: 14px; }
.ups-emoji-btn { font-family: var(--u-emoji); font-size: 20px; }
.ups-circle.is-busy { color: transparent; }
.ups-circle.is-busy::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid var(--u-line-2); border-top-color: var(--u-ink); animation: ups-spin 800ms linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .ups-circle:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--u-line-2), var(--u-shadow-tile); }
  .ups-circle--glass:hover { background: rgba(255, 255, 255, 0.32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
}

/* Tooltips for icon-only controls (labels are also in aria-label). */
.upsense-app [data-tip] { position: relative; }
.upsense-app [data-tip]::before {
  content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 30;
  width: max-content; max-width: 240px; padding: 7px 11px; border-radius: 10px;
  background: var(--u-dark); color: var(--u-on-dark); font: 500 13px/1.35 var(--u-text); text-align: left; white-space: normal;
  transform: translate(-50%, 0); pointer-events: none;
}
.upsense-app [data-tip]:is(:hover, :focus-visible)::before { display: block; animation: ups-tip 180ms var(--u-ease) 300ms both; }
@keyframes ups-tip { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@media (hover: none) { .upsense-app [data-tip]:not(.ups-help)::before { display: none; } }
.ups-help {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; border-radius: 999px; vertical-align: 1px;
  background: var(--u-soft-2); color: var(--u-muted); font: 700 12px/1 var(--u-text); cursor: help;
}
.ups-help::after { content: ""; position: absolute; inset: -11px; }
.ups-help:focus-visible::before, .ups-help:hover::before { animation-delay: 0ms !important; }

.ups-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px; border-radius: 999px;
  background: var(--u-soft-2); color: var(--u-ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; vertical-align: middle;
}
.ups-pill--yellow, .ups-pill--progress { background: var(--u-yellow); color: var(--u-on-yellow); }
.ups-pill--blue { background: var(--u-blue); color: var(--u-on-blue); }
.ups-pill--green, .ups-pill--done { background: var(--u-green-soft); color: var(--u-green); }
.ups-pill--grey, .ups-pill--todo { background: var(--u-soft-2); color: var(--u-ink-2); }

.ups-chips { display: flex; flex-wrap: wrap; gap: var(--u-s2); }
.ups-chip {
  display: inline-flex; align-items: center; gap: var(--u-s2); min-height: var(--u-hit); padding: 0 var(--u-s4) 0 var(--u-s3);
  border: 0; border-radius: 999px; background: var(--u-surface-2); color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2);
  font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: transform 160ms var(--u-ease), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.ups-chip > span[aria-hidden] { font-family: var(--u-emoji); font-size: 20px; line-height: 1; }
.ups-chip:active:not(:disabled) { transform: scale(0.97); }
.ups-chip[aria-pressed="true"], .ups-chip.is-picked { background: var(--u-dark); color: var(--u-on-dark); box-shadow: none; }
.ups-chip:disabled:not(.is-picked) { opacity: 0.5; }
@media (hover: hover) and (pointer: fine) { .ups-chip:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1px var(--u-ink); } }

.ups-spinner { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0.8; animation: ups-spin 800ms linear infinite; }
@keyframes ups-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ fields */
.ups-stack { display: grid; gap: var(--u-s4); }
.ups-field { display: grid; gap: var(--u-s2); align-content: start; min-width: 0; }
.ups-field > label { font-size: 14px; font-weight: 600; color: var(--u-ink); }
.ups-hint { margin-top: -4px; font-size: 13px; color: var(--u-muted); }
.upsense-app :where(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search], input[type=number], input[type=password], input:not([type]), select, textarea) {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; border: 0; border-radius: var(--u-r-field);
  background: rgba(255, 255, 255, 0.9); color: var(--u-ink); font-size: 16px; line-height: 1.4;
  box-shadow: inset 0 0 0 1px var(--u-line-2); transition: box-shadow 160ms ease, background-color 160ms ease;
  appearance: none; -webkit-appearance: none;
}
.upsense-app select { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--u-muted) 50%), linear-gradient(135deg, var(--u-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.upsense-app textarea { min-height: 96px; resize: vertical; }
.upsense-app :where(input, select, textarea):focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--u-blue), 0 0 0 4px rgba(36, 87, 245, 0.12); }
.upsense-app :where(input, select, textarea):user-invalid { box-shadow: inset 0 0 0 2px var(--u-red); }
.upsense-app ::placeholder { color: var(--u-faint); opacity: 1; }
.ups-check { display: flex; align-items: flex-start; gap: var(--u-s3); font-size: 15px; color: var(--u-ink-2); }
.ups-check input, .ups-option input, .ups-segment__opt input { accent-color: var(--u-dark); }
.ups-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.ups-check a, .ups-composer__note a { color: var(--u-ink); text-underline-offset: 3px; }
.ups-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-gap); }
.ups-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--u-gap); }
.ups-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-s3); }
.ups-actions--tight { gap: var(--u-s2); }

.ups-segment { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--u-soft); width: fit-content; max-width: 100%; }
.ups-segment__opt { position: relative; }
.ups-segment__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ups-segment__opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--u-s4); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--u-muted); transition: background-color 200ms ease, color 200ms ease; }
.ups-segment__opt input:checked + span { background: var(--u-dark); color: var(--u-on-dark); box-shadow: var(--u-shadow-tile); }
.ups-segment__opt input:focus-visible + span { outline: 3px solid var(--u-blue); outline-offset: 2px; }

.ups-disclosure > summary {
  display: flex; align-items: center; gap: var(--u-s2); min-height: var(--u-hit); cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--u-ink);
}
.ups-disclosure > summary::-webkit-details-marker { display: none; }
.ups-disclosure > summary::after { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 999px; background: var(--u-soft-2); font-weight: 600; transition: transform 200ms var(--u-ease); }
.ups-disclosure[open] > summary::after { transform: rotate(45deg); }
.ups-disclosure[open] > :not(summary) { margin-top: var(--u-s3); }

.ups-banner { display: flex; align-items: center; gap: var(--u-s3); min-height: 56px; padding: var(--u-s2) var(--u-s3) var(--u-s2) var(--u-s2); border-radius: 20px; font-size: 15px; font-weight: 500; margin-bottom: var(--u-gap); }
.ups-banner > span:not(.ups-emo):not(.ups-spinner) { flex: 1; }
.ups-banner .ups-spinner { margin: 0 11px; }
.ups-banner--ok { background: var(--u-green-soft); color: var(--u-green); }
.ups-banner--error { background: var(--u-red-soft); color: var(--u-red); }
.ups-banner--work { background: var(--u-surface-2); box-shadow: inset 0 0 0 1px var(--u-line); color: var(--u-ink); }
.ups-banner .ups-emo--sm { background: rgba(255, 255, 255, 0.7); }
.ups-jobs:empty, [data-notice]:empty { display: none; }
.ups-note-line { display: flex; align-items: flex-start; gap: var(--u-s2); padding: var(--u-s3) var(--u-s4); border-radius: 16px; background: var(--u-soft); color: var(--u-ink-2); font-size: 14px; }

/* ------------------------------------------------------------------ surfaces */
.ups-card {
  position: relative; display: flex; flex-direction: column; gap: var(--u-s4); min-width: 0;
  padding: var(--u-pad); border-radius: var(--u-r-card);
  background: var(--u-surface); box-shadow: var(--u-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.ups-card + .ups-card { margin-top: var(--u-gap); }
.ups-card__head { display: flex; align-items: center; gap: var(--u-s3); min-height: var(--u-hit); }
.ups-card__title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.ups-card__tools { display: flex; gap: var(--u-s2); margin-left: auto; }
.ups-card--ink { background: var(--u-dark); color: var(--u-on-dark); box-shadow: var(--u-shadow-tile); }
.ups-card--blue { background: var(--u-blue); color: var(--u-on-blue); box-shadow: var(--u-shadow-tile); }
.ups-card--teal { background: var(--u-teal); color: var(--u-on-teal); box-shadow: var(--u-shadow-tile); }
.ups-card--yellow { background: var(--u-yellow); color: var(--u-on-yellow); box-shadow: var(--u-shadow-tile); }
.ups-card--ink .ups-eyebrow, .ups-card--blue .ups-eyebrow, .ups-card--teal .ups-eyebrow { color: inherit; }
.ups-card--notice { background: var(--u-surface-2); }
.ups-card--danger { background: rgba(255, 255, 255, 0.5); }
.ups-card--danger summary { color: var(--u-red); }

.ups-tile {
  position: relative; display: flex; flex-direction: column; gap: var(--u-s3); min-width: 0; min-height: 188px;
  padding: 18px; border-radius: var(--u-r-tile); background: #fff; color: var(--u-ink);
  box-shadow: inset 0 0 0 1px var(--u-line);
  animation: ups-rise 520ms var(--u-ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.ups-tile--blue { background: var(--u-blue); color: var(--u-on-blue); box-shadow: var(--u-shadow-tile); }
.ups-tile--teal { background: var(--u-teal); color: var(--u-on-teal); box-shadow: var(--u-shadow-tile); }
.ups-tile--ink { background: var(--u-dark); color: var(--u-on-dark); box-shadow: var(--u-shadow-tile); }
.ups-tile--yellow { background: var(--u-yellow); color: var(--u-on-yellow); box-shadow: var(--u-shadow-tile); }
.ups-tile--light { background: rgba(255, 255, 255, 0.78); }
.ups-tile__top { display: flex; align-items: center; justify-content: space-between; gap: var(--u-s2); min-height: var(--u-hit); }
.ups-tile__label { font-size: 13px; font-weight: 500; }
.ups-tile--light .ups-tile__label { color: var(--u-muted); opacity: 1; }
.ups-tile__title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ups-tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--u-s3); margin-top: auto; }
.ups-tile__big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.ups-tile__hint { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ups-tile--light .ups-circle--line, .ups-tile--yellow .ups-circle--line { box-shadow: inset 0 0 0 1px var(--u-line-2); }
.ups-tile--yellow .ups-emo--glass { background: rgba(255, 255, 255, 0.45); }
.ups-tile--light .ups-emo--glass { background: var(--u-soft); box-shadow: none; }
@keyframes ups-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ app shell */
.ups-shell { max-width: 1480px; margin: 0 auto; padding: var(--u-s6) var(--u-s7) var(--u-s9) calc(var(--u-s7) + 88px); }
.ups-skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--u-dark); color: var(--u-on-dark); font-weight: 600; text-decoration: none; }
.ups-skip:focus { top: 16px; }
.ups-content { display: block; min-width: 0; outline: none; }
/* One vertical rhythm for every stacked block on a page: 16px between blocks, 32px under the page title. */
.ups-content > * + * { margin-top: var(--u-gap); }
.ups-content > .ups-head { margin-bottom: calc(var(--u-s7) - var(--u-gap)); }
.ups-content > .ups-head + * { margin-top: var(--u-gap); }
.ups-admin > .ups-banner { margin-bottom: var(--u-gap); }
.ups-top { display: flex; align-items: center; gap: var(--u-s5); min-height: 64px; margin-bottom: var(--u-s7); }
.ups-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--u-hit); color: var(--u-ink); text-decoration: none; flex: none; }
.ups-brand__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--u-dark); color: var(--u-on-dark); font: 700 18px/1 var(--u-text); }
.ups-brand__word { font-family: var(--u-display); font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.ups-brand__mark .ups-icon { width: 20px; height: 20px; stroke-width: 2.4; }
.upsense-app .ups-brand__logo { display: block; width: auto; height: 38px; max-width: 180px; object-fit: contain; object-position: left center; }
.ups-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); overflow-x: auto; scrollbar-width: none; }
.ups-tabs::-webkit-scrollbar { display: none; }
.ups-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--u-s4); border-radius: 999px; color: var(--u-ink-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.ups-tabs a[aria-current="page"] { background: var(--u-dark); color: var(--u-on-dark); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .ups-tabs a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.85); } }
.ups-top__tools { display: flex; align-items: center; gap: var(--u-s2); flex: none; }
.ups-avatar { display: inline-grid; place-items: center; width: var(--u-hit); height: var(--u-hit); border-radius: 999px; background: linear-gradient(135deg, #f2e14c, #f7c86b); color: var(--u-ink); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); }
.ups-top [data-tip]::before { bottom: auto; top: calc(100% + 10px); left: auto; right: 0; transform: none; }

.ups-rail {
  position: fixed; left: var(--u-s6); top: 50%; z-index: 20; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--u-s2); padding: 10px;
  border-radius: 999px; background: var(--u-dark); box-shadow: 0 24px 48px -20px rgba(22, 24, 29, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ups-rail .ups-circle { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (hover: hover) and (pointer: fine) { .ups-rail .ups-circle:hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transform: scale(1.06); } }
.ups-rail__rule { width: 20px; height: 1px; margin: 4px 0; background: rgba(255, 255, 255, 0.14); }
.ups-rail [data-tip]::before { left: calc(100% + 14px); top: 50%; bottom: auto; transform: translate(0, -50%); }


.ups-mobile-nav { display: none; }

/* ------------------------------------------------------------------ page head */
.ups-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-s5) var(--u-s6); margin-bottom: var(--u-s7); }
.ups-head__back { align-self: flex-start; margin-top: 2px; }
.ups-head__text { flex: 1 1 320px; min-width: 0; }
.ups-head__sub { margin-top: var(--u-s3) !important; color: var(--u-muted); font-size: 16px; max-width: 58ch; }
.ups-stats { display: flex; flex-wrap: wrap; gap: var(--u-s3) var(--u-s6); }
.ups-stat { display: flex; align-items: center; gap: var(--u-s3); min-width: 0; }
.ups-stat__value { display: flex; align-items: center; gap: var(--u-s2); }
.ups-stat__value strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ups-stat__label { font-size: 13px; color: var(--u-muted); }
.ups-head__actions { display: flex; gap: var(--u-s2); }

/* ------------------------------------------------------------------ home bento */
.ups-bento { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: var(--u-gap); align-items: start; }
.ups-bento__main, .ups-bento__side { display: grid; gap: var(--u-gap); min-width: 0; }
.ups-bento__main > .ups-card + .ups-card, .ups-bento__side > .ups-card + .ups-card { margin-top: 0; }
.ups-bento__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-gap); }
.ups-bento__pair > :only-child { grid-column: 1 / -1; }
.ups-bento__pair .ups-card + .ups-card { margin-top: 0; }
.ups-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.ups-profile { align-items: center; text-align: center; padding-top: var(--u-s7); background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.72)); }
.ups-profile__tools { position: absolute; top: var(--u-s4); right: var(--u-s4); }
.upsense-app .ups-profile__name { margin-top: var(--u-s3); font-family: var(--u-display); font-weight: 400; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.ups-profile__meta { color: var(--u-muted); font-size: 14px; margin-top: -8px !important; }
.ups-profile__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--u-s2); margin-top: var(--u-s2); }

.ups-facts { display: grid; }
.ups-fact { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--u-s3); padding: var(--u-s3) 0; border-top: 1px solid var(--u-line); }
.ups-fact:first-child { border-top: 0; padding-top: 0; }
.ups-fact__label { font-size: 12.5px; color: var(--u-muted); }
.ups-fact__value { margin: 2px 0 0 !important; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ups-fact .ups-muted { font-weight: 400; }

.ups-list { display: grid; gap: var(--u-s2); }
.ups-list__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s3); padding: 10px 10px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-list__item strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ups-list__item :not(.ups-btn) > span:not(.ups-emo):not(.ups-pill):not(.ups-glyph) { display: block; margin-top: 2px; font-size: 13.5px; color: var(--u-muted); line-height: 1.4; }
/* Buttons inside list rows keep their own tail and glyph layout. */
.ups-list__item .ups-btn .ups-btn__tail { display: inline-grid; margin-top: 0; font-size: inherit; color: inherit; line-height: 0; }
.ups-list__meta { display: grid; justify-items: end; gap: 4px; }
.ups-list__meta small { color: var(--u-muted); font-size: 12.5px; }
.ups-list--rows .ups-list__item { padding: 12px 12px 12px 12px; }

.ups-funnel { display: grid; justify-items: center; gap: 10px; }
.ups-funnel li { width: var(--w, 100%); }
.ups-funnel a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s3); min-height: 64px; padding: 10px 16px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--u-line); text-decoration: none; transition: transform 200ms var(--u-ease), background-color 200ms ease; }
.ups-funnel li:first-child a { background: var(--u-blue-soft); }
.ups-funnel small { display: block; font-size: 12.5px; color: var(--u-muted); }
.ups-funnel strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ups-funnel .ups-emo--sm { background: #fff; }
.ups-funnel .ups-glyph { color: var(--u-muted); }
@media (hover: hover) and (pointer: fine) { .ups-funnel a:hover { background: #fff; transform: translateY(-1px); } }

.ups-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s5); }
.ups-summary p:not(.ups-eyebrow) { margin-top: var(--u-s2) !important; line-height: 1.6; max-width: 70ch; }
.ups-summary .ups-actions { justify-content: flex-end; }
.ups-summary .ups-btn--ghost { --b-bg: rgba(255, 255, 255, 0.1); --b-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.ups-summary__meters { display: grid; gap: var(--u-s3); min-width: 240px; }

/* ------------------------------------------------------------------ meters */
.ups-meter { display: grid; gap: var(--u-s2); }
.ups-meter__label { display: flex; align-items: center; justify-content: space-between; gap: var(--u-s3); font-size: 13.5px; color: var(--u-muted); }
.ups-meter__label strong { color: var(--u-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.ups-meter__track { height: 8px; border-radius: 999px; background: var(--u-soft-2); overflow: hidden; }
.ups-meter__track span { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--u-dark); transform-origin: left; animation: ups-grow 700ms var(--u-ease) both; }
.ups-meter--light .ups-meter__label, .ups-meter--light .ups-meter__label strong { color: inherit; }
.ups-meter--light .ups-meter__track { background: rgba(255, 255, 255, 0.24); }
.ups-meter--light .ups-meter__track span { background: #fff; }
.ups-meter--light .ups-help { background: rgba(255, 255, 255, 0.2); color: inherit; }
@keyframes ups-grow { from { transform: scaleX(0); } }
.ups-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.ups-dots span { height: 8px; border-radius: 999px; background: var(--u-soft-2); transition: background-color 300ms ease; }
.ups-dots span.on { background: var(--u-dark); }
.ups-dots span.now { background: var(--u-yellow); }
.ups-dots--lg span { height: 10px; }

/* ------------------------------------------------------------------ findings */
.ups-prio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-gap); }
.ups-prio { animation: ups-rise 520ms var(--u-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.ups-prio .ups-card + .ups-card { margin: 0; }
.upsense-app .ups-prio__title { font-family: var(--u-display); font-weight: 400; font-size: 27px; line-height: 1.08; text-wrap: balance; }

.ups-prio__box { display: grid; gap: var(--u-s3); margin-top: auto; padding: var(--u-s4); border-radius: 18px; background: rgba(10, 12, 20, 0.16); font-size: 14.5px; }
.ups-card--ink .ups-prio__box { background: rgba(255, 255, 255, 0.08); }
.ups-prio__box strong { display: block; margin-bottom: 2px; font-size: 12.5px; letter-spacing: 0.02em; }
.ups-prio .ups-btn { align-self: flex-start; }
.ups-prio-grid .ups-card + .ups-card, .ups-grid-2 .ups-card + .ups-card, .ups-grid-auto .ups-card + .ups-card, .ups-task-grid .ups-task + .ups-task { margin-top: 0; }
.ups-tool h3, .ups-tool__name { font-size: 17px; font-weight: 600; }
.ups-tool p { color: var(--u-muted); font-size: 15px; flex: 1; }
.ups-tool .ups-btn { align-self: flex-start; }
.ups-tool, .ups-finding, .ups-assess, .ups-task { animation: ups-rise 520ms var(--u-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ups-finding__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--u-s3); }
.ups-finding__head h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ups-finding p { color: var(--u-ink-2); font-size: 15px; }
.ups-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s5); margin-top: var(--u-gap); }
.ups-cta p { margin-top: 4px !important; }

/* ------------------------------------------------------------------ action plan */
.ups-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-gap); align-items: start; }
.ups-task { display: grid; gap: var(--u-s4); padding: var(--u-pad); border-radius: var(--u-r-card); background: var(--u-surface); box-shadow: var(--u-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.ups-task--progress { background: linear-gradient(180deg, #fbf5c6 0%, rgba(255, 255, 255, 0.8) 70%); }
.ups-task--done { background: linear-gradient(180deg, #e3f2e7 0%, rgba(255, 255, 255, 0.75) 70%); }
.ups-task__top { display: flex; align-items: center; gap: var(--u-s3); }
.ups-task__top .ups-small { margin-left: auto; }
.ups-task__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.ups-task__text { color: var(--u-ink-2); font-size: 15px; }
.ups-task .ups-disclosure { padding-top: var(--u-s2); border-top: 1px solid var(--u-line); }

/* ------------------------------------------------------------------ forms pages */
.ups-form-grid { display: grid; gap: var(--u-gap); }
.ups-form-grid > .ups-card + .ups-card { margin-top: 0; }
.ups-sticky-actions { position: sticky; bottom: var(--u-s4); z-index: 5; display: flex; flex-wrap: wrap; gap: var(--u-s3); width: fit-content; max-width: 100%; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 16px 40px -20px rgba(22, 24, 29, 0.45), inset 0 0 0 1px var(--u-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.ups-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--u-gap); align-items: start; }
.ups-split .ups-card + .ups-card { margin-top: 0; }
.ups-enquiry .ups-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ups-steps ol { display: grid; gap: var(--u-s4); }
.ups-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--u-s3); align-items: start; }
.ups-steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); font-weight: 600; }
.ups-steps li:first-child .ups-steps__n { background: var(--u-yellow); color: var(--u-on-yellow); box-shadow: none; }
.ups-steps strong { display: block; font-size: 15px; }
.ups-steps small { display: block; color: rgba(255, 255, 255, 0.78); font-size: 13.5px; overflow-wrap: anywhere; }
.ups-steps__foot { margin-top: auto !important; }

/* ------------------------------------------------------------------ assessments */
.ups-assess { gap: var(--u-s4); }
.ups-assess__head { display: flex; align-items: center; gap: var(--u-s3); }
.ups-assess__head > div { flex: 1; min-width: 0; }
.ups-assess__head .ups-eyebrow { margin-bottom: 2px; }
.ups-assess__head h3 { font-size: 17px; font-weight: 600; }
.ups-assess .ups-btn { align-self: flex-start; }
.ups-answers { display: grid; gap: var(--u-s3); }
.ups-answers li { display: grid; gap: 2px; padding: var(--u-s3) var(--u-s4); border-radius: 16px; background: var(--u-soft); font-size: 14.5px; }
.ups-answers em { color: var(--u-muted); }
.ups-wizard { max-width: 840px; margin: 0 auto; }
.ups-wizard__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--u-s3); margin-bottom: var(--u-s4); }
.ups-question { gap: var(--u-s6); padding: var(--u-s7); }
.ups-question__head { display: flex; align-items: flex-start; gap: var(--u-s5); }
.upsense-app .ups-question__title { font-size: clamp(28px, 3vw, 38px) !important; margin-bottom: var(--u-s2) !important; }
.ups-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-s3); border: 0; min-width: 0; }
.ups-option { position: relative; display: flex; align-items: center; gap: var(--u-s3); min-height: 64px; padding: 10px 16px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 1px var(--u-line-2); cursor: pointer; transition: box-shadow 180ms ease, background-color 180ms ease, transform 160ms var(--u-ease); }
.ups-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ups-option__emo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--u-soft); font-family: var(--u-emoji); font-size: 22px; }
.ups-option__text { flex: 1; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.ups-option__tick { width: 24px; height: 24px; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--u-line-2); transition: box-shadow 180ms ease, background-color 180ms ease; }
.ups-option:has(input[type=checkbox]) .ups-option__tick { border-radius: 8px; }
.ups-option:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--u-dark), var(--u-shadow-tile); }
.ups-option:has(input:checked) .ups-option__tick { background: var(--u-dark); box-shadow: inset 0 0 0 5px var(--u-dark), inset 0 0 0 12px #fff; }
.ups-option:has(input[type=checkbox]:checked) .ups-option__tick { box-shadow: none; background: var(--u-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ups-option:has(input:focus-visible) { outline: 3px solid var(--u-blue); outline-offset: 2px; }
.ups-option:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .ups-option:hover { background: #fff; } }
.ups-wizard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-s3); padding-top: var(--u-s4); border-top: 1px solid var(--u-line); }
.ups-wizard__actions .ups-btn--primary { margin-left: auto; }
.ups-review { display: grid; gap: var(--u-s2); }
.ups-review li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--u-s3); align-items: center; padding: var(--u-s3); border-radius: 18px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-review__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--u-dark); color: var(--u-on-dark); font-size: 14px; font-weight: 600; }
.ups-review strong { font-size: 15px; }
.ups-review p { color: var(--u-muted); font-size: 14px; }
.ups-skeleton { gap: var(--u-s3); }
.ups-skeleton span { display: block; height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--u-soft-2), rgba(255, 255, 255, 0.9), var(--u-soft-2)); background-size: 200% 100%; animation: ups-shimmer 1.4s linear infinite; }
.ups-skeleton span:nth-child(1) { width: 70%; height: 32px; }
.ups-skeleton span:nth-child(3) { width: 45%; }
@keyframes ups-shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ empty, menu */
.ups-empty { align-items: center; text-align: center; padding: var(--u-s9) var(--u-s6); }
.upsense-app .ups-empty__title { font-family: var(--u-display); font-weight: 400; font-size: 30px; line-height: 1.08; }
.ups-empty p { color: var(--u-muted); max-width: 46ch; }
.ups-empty .ups-actions { justify-content: center; }
.ups-menu { display: grid; }
.ups-menu a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s3); min-height: 68px; padding: var(--u-s2) var(--u-s2); border-top: 1px solid var(--u-line); color: var(--u-ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.ups-menu a:first-child { border-top: 0; }
.ups-menu .ups-glyph { color: var(--u-muted); }

/* ------------------------------------------------------------------ conversation */
.ups-thread { display: grid; gap: var(--u-s3); }
.ups-msg { display: flex; align-items: flex-end; gap: var(--u-s3); max-width: min(720px, 100%); animation: ups-rise 360ms var(--u-ease) both; }
.ups-msg--me { margin-left: auto; justify-content: flex-end; }
.ups-msg__face { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--u-dark); overflow: hidden; font-family: var(--u-emoji); font-size: 20px; box-shadow: var(--u-shadow-tile); }
.ups-msg__bubble { padding: 14px 18px; border-radius: 24px 24px 24px 8px; background: #fff; color: var(--u-ink); font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1px var(--u-line), 0 10px 24px -20px rgba(22, 24, 29, 0.4); }
.ups-msg--me .ups-msg__bubble { border-radius: 24px 24px 8px 24px; background: var(--u-dark); color: var(--u-on-dark); box-shadow: none; }
.ups-msg__lead { display: block; margin-bottom: 4px; font-size: 17px; }
.ups-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.ups-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-faint); animation: ups-bounce 1.2s var(--u-ease-io) infinite; }
.ups-typing i:nth-child(2) { animation-delay: 150ms; }
.ups-typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes ups-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ------------------------------------------------------------------ consultation dialog */
.upsense-app.ups-launch { display: inline-block; }
.ups-launch__btn { font-size: 16px; min-height: 52px; padding-left: var(--u-s6); }
.ups-launch__btn .ups-btn__tail { width: 40px; height: 40px; }
.ups-launch__btn .ups-launch__emo { font-family: var(--u-emoji); font-size: 20px; }

/* The consultation uses the chat colour (dark blue by default) for every dark surface. */
dialog.ups-dialog {
  --u-dark: var(--u-chat); --u-on-dark: var(--u-on-chat);
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  display: none; flex-direction: column; overflow: hidden; color: var(--u-ink);
  background: #f6f7fb; isolation: isolate;
}
dialog.ups-dialog[open] { display: flex; animation: ups-dialog-in 360ms var(--u-ease) both; }
dialog.ups-dialog::backdrop { background: rgba(22, 24, 29, 0.35); }
@keyframes ups-dialog-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.ups-dialog__head { display: flex; align-items: center; gap: var(--u-s4); padding: calc(var(--u-s4) + env(safe-area-inset-top, 0px)) max(var(--u-s6), env(safe-area-inset-right)) var(--u-s4) max(var(--u-s6), env(safe-area-inset-left)); }
.ups-dialog__title { flex: 1; min-width: 0; text-align: center; }
.ups-dialog__title h2 { display: inline-flex; align-items: center; gap: var(--u-s2); font-size: 17px; font-weight: 600; }
.ups-dialog__title p { color: var(--u-muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ups-dialog__head .ups-brand { width: 160px; }
.ups-dialog__head .ups-circle { margin-left: auto; }
.ups-dialog__head .ups-circle[data-tip]::before { bottom: auto; top: calc(100% + 10px); left: auto; right: 0; transform: none; }

.ups-dialog__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ups-dialog__loading { display: flex; flex: 1; align-items: center; justify-content: center; gap: var(--u-s3); color: var(--u-muted); font-weight: 500; }
.ups-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--u-s4); padding: var(--u-s4) max(var(--u-s6), calc((100% - 760px) / 2)) var(--u-s6); scroll-padding-bottom: var(--u-s6); }
.ups-messages > .ups-card { margin: 0; }
.ups-stepper { display: flex; gap: var(--u-s2); margin: 0 auto var(--u-s2) !important; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8); max-width: 100%; }
.ups-stepper li { display: inline-flex; align-items: center; gap: var(--u-s2); min-height: 36px; padding: 0 var(--u-s4) 0 5px; border-radius: 999px; color: var(--u-muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ups-stepper li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--u-soft-2); font-size: 12.5px; font-weight: 700; color: var(--u-ink-2); }
.ups-stepper li.now { background: var(--u-dark); color: var(--u-on-dark); }
.ups-stepper li.now span { background: var(--u-yellow); color: var(--u-on-yellow); }
.ups-stepper li.done span { background: var(--u-green-soft); color: var(--u-green); }
.ups-chips--answers { padding-left: 52px; }

/* Multiple choice in chat: tick cards and one send button. */
.ups-picks { margin-left: 52px; padding: var(--u-s4); border-radius: var(--u-r-tile); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 10px 24px -20px rgba(22, 24, 29, 0.4); animation: ups-rise 420ms var(--u-ease) both; }
.ups-picks fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ups-picks__legend { display: inline-flex; align-items: center; gap: var(--u-s2); margin-bottom: var(--u-s3); padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--u-yellow); color: var(--u-on-yellow); font-size: 13px; font-weight: 600; }
.ups-picks__legend .ups-icon { width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: var(--u-dark); color: var(--u-on-dark); stroke-width: 2.6; }
.ups-picks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--u-s2); }
.ups-pick { position: relative; display: flex; align-items: center; gap: var(--u-s3); min-height: 56px; padding: 6px 12px 6px 6px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--u-line-2); color: var(--u-ink); font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: box-shadow 180ms ease, background-color 180ms ease, transform 160ms var(--u-ease); animation: ups-rise 420ms var(--u-ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.ups-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ups-pick__emo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--u-soft); font-family: var(--u-emoji); font-size: 22px; }
.ups-pick__text { flex: 1; min-width: 0; }
.ups-pick__box { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--u-line-2); color: transparent; transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease; }
.ups-pick__box .ups-icon { width: 16px; height: 16px; stroke-width: 2.8; }
.ups-pick:has(input:checked) { box-shadow: inset 0 0 0 2px var(--u-dark), var(--u-shadow-tile); }
.ups-pick:has(input:checked) .ups-pick__emo { background: var(--u-yellow-soft); }
.ups-pick:has(input:checked) .ups-pick__box { background: var(--u-dark); box-shadow: none; color: var(--u-on-dark); }
.ups-pick:has(input:focus-visible) { outline: 3px solid var(--u-blue); outline-offset: 2px; }
.ups-pick:has(input:disabled) { cursor: default; opacity: 0.7; }
.ups-pick:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .ups-pick:hover:not(:has(input:disabled)) { box-shadow: inset 0 0 0 1px var(--u-dark); } .ups-pick:hover:has(input:checked) { box-shadow: inset 0 0 0 2px var(--u-dark), var(--u-shadow-tile); } }
.ups-picks__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--u-s3); margin-top: var(--u-s3); }
.ups-picks__count { color: var(--u-muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ups-chat-save { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--u-s5); }
.ups-chat-save p { margin-top: 4px !important; }
.ups-composer { padding: var(--u-s3) max(var(--u-s6), calc((100% - 760px) / 2)) calc(var(--u-s4) + env(safe-area-inset-bottom, 0px)); }
.ups-composer__box { display: flex; align-items: flex-end; gap: var(--u-s2); padding: 8px 8px 8px 20px; border-radius: 28px; background: #fff; box-shadow: 0 18px 40px -22px rgba(22, 24, 29, 0.4), inset 0 0 0 1px var(--u-line); transition: box-shadow 200ms ease; }
.ups-composer__box:focus-within { box-shadow: 0 18px 40px -22px rgba(22, 24, 29, 0.4), inset 0 0 0 2px var(--u-dark); }
.upsense-app .ups-composer__box textarea { min-height: 44px; max-height: 160px; padding: 11px 0; border-radius: 0; background: transparent; box-shadow: none !important; resize: none; line-height: 1.4; overflow-y: hidden; scrollbar-width: thin; }
.upsense-app .ups-composer__box textarea.is-scroll { overflow-y: auto; }
.ups-send { display: grid; place-items: center; width: var(--u-hit); height: var(--u-hit); flex: none; border: 0; border-radius: 999px; background: var(--u-dark); color: var(--u-on-dark); font-size: 18px; cursor: pointer; transition: transform 160ms var(--u-ease), opacity 200ms ease; }
.ups-send:active:not(:disabled) { transform: scale(0.92); }
.ups-send:disabled { opacity: 0.35; cursor: not-allowed; }
.ups-composer__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--u-s2); margin-top: var(--u-s3); }
.ups-chip--file { position: relative; font-size: 14px; }
.ups-chip--file .ups-muted { font-weight: 400; }
.ups-chip--file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ups-chip--file:focus-within { outline: 3px solid var(--u-blue); outline-offset: 2px; }
.ups-composer__note { margin-top: var(--u-s3) !important; color: var(--u-muted); font-size: 12.5px; text-align: center; }
.ups-panel, .ups-auth-card { display: grid; gap: var(--u-s4); width: min(520px, 100%); margin: var(--u-s4) auto; padding: var(--u-s7); border-radius: var(--u-r-card); background: rgba(255, 255, 255, 0.78); box-shadow: var(--u-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.8); outline: none; }
.ups-panel > .ups-btn--text { justify-self: center; }

/* ------------------------------------------------------------------ interactions (from the interaction lab) */
/* Magnetic hover: the control leans towards the pointer and springs back. */
.upsense-app [data-magnetic] { transition: transform 520ms var(--u-ease), background-color 220ms ease, box-shadow 240ms ease, color 220ms ease; }
.upsense-app [data-magnetic].is-pulling { transition: transform 110ms linear; }
/* Tilt: cards pick up a little depth under the pointer. */
.upsense-app [data-tilt] { transform-style: preserve-3d; transition: transform 520ms var(--u-ease), box-shadow 300ms ease; }
.upsense-app [data-tilt].is-tilting { transition: transform 90ms linear; }
.ups-tile[data-tilt] > *, .ups-starter[data-tilt] > * { transform: translateZ(18px); }
/* Dock magnification on the quick-action rail. */
.ups-rail .ups-circle { transition: transform 320ms var(--u-ease), background-color 220ms ease, box-shadow 240ms ease; }
/* Pull down to refresh (touch, phones). */
.ups-pull { position: relative; z-index: 1; display: grid; place-items: center; height: 0; margin-top: calc(var(--u-gap) * -1); overflow: hidden; color: var(--u-muted); font-size: 13.5px; font-weight: 600; transition: height 320ms var(--u-ease); }
.ups-pull.is-dragging { transition: none; }
.ups-pull > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1px var(--u-line), 0 10px 22px -18px rgba(22, 24, 29, 0.5); }
.ups-pull .ups-ai { --ai: 26px; }
/* Slide to confirm, for the one action that cannot be undone. */
.ups-slide { position: relative; display: flex; align-items: center; width: min(420px, 100%); height: 64px; padding: 5px; border-radius: 999px; background: var(--u-red-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-red) 22%, transparent); touch-action: none; }
.ups-slide__label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 40px; color: var(--u-red); font-size: 14.5px; font-weight: 600; pointer-events: none; transition: opacity 240ms ease; }
.ups-slide__handle { position: relative; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; flex: none; border: 0; border-radius: 50%; background: var(--u-red); color: #fff; cursor: grab; touch-action: none; transition: transform 520ms var(--u-ease); }
.ups-slide__handle .ups-icon { width: 18px; height: 18px; stroke-width: 2.4; }
.ups-slide__handle.is-dragging { transition: none; cursor: grabbing; }
.ups-slide.is-done { background: var(--u-green-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-green) 26%, transparent); }
.ups-slide.is-done .ups-slide__label { color: var(--u-green); }
.ups-slide.is-done .ups-slide__handle { background: var(--u-green); }
.ups-sr-btn { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ups-sr-btn:focus { position: static; width: auto; height: auto; margin: 0; clip-path: none; }
.ups-slide:has(.ups-slide__handle:focus-visible) { outline: 3px solid var(--u-blue); outline-offset: 3px; }
/* Segmented control: the dark pill slides between options. */
.ups-segment { position: relative; }
.ups-segment__opt input:checked + span { box-shadow: var(--u-shadow-tile); }
.ups-segment__opt span { transition: color 220ms ease, background-color 320ms var(--u-ease); }

/* ------------------------------------------------------------------ infographics */
/* One idea per picture. Shape + words carry meaning; colour only supports it. */
.ups-ig { display: grid; gap: var(--u-s4); margin: 0; }
.ups-card__head + .ups-ig { margin-top: var(--u-s1); }
.ups-ig + .ups-facts { margin-top: var(--u-s4); padding-top: var(--u-s2); border-top: 1px solid var(--u-line); }
.ups-tiles + .ups-ig { margin-top: var(--u-s5); padding-top: var(--u-s5); border-top: 1px solid var(--u-line); }
.ups-ig__row { display: flex; align-items: center; gap: var(--u-s5); min-width: 0; }
.ups-ig__say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 12px 16px; border-radius: 16px; background: var(--u-soft); color: var(--u-ink-2); font-size: 15px; line-height: 1.45; }
.ups-ig__say strong { color: var(--u-ink); font-weight: 700; }
.ups-ig__tag { display: inline-block; margin-bottom: 2px; color: var(--u-blue); font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ups-ig__big { display: grid; justify-items: start; flex: none; line-height: 1; }
.ups-ig__big strong { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ups-ig__big span { margin-top: 2px; color: var(--u-muted); font-size: 14px; font-weight: 600; }

/* Nodes: done = filled with a tick, started = half filled, not yet = empty ring */
.ups-ig__node { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--u-line-2); color: var(--u-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ups-ig__node--done { background: var(--u-green); box-shadow: none; color: #fff; }
.ups-ig__node--done .ups-icon { width: 16px; height: 16px; stroke-width: 3; }
.ups-ig__node--doing { box-shadow: inset 0 0 0 2px var(--u-dark); }
.ups-ig__node--doing i { position: absolute; inset: 5px; border-radius: 50%; background: linear-gradient(90deg, var(--u-dark) 50%, transparent 50%); }
.ups-ig__key { display: flex; flex-wrap: wrap; gap: var(--u-s2) var(--u-s4); margin: 0; padding: 0; list-style: none; color: var(--u-muted); font-size: 13px; }
.ups-ig__key li { display: inline-flex; align-items: center; gap: 6px; }
.ups-ig__key .ups-ig__node { width: 18px; height: 18px; font-size: 0; }
.ups-ig__key .ups-ig__node .ups-icon { width: 11px; height: 11px; }
.ups-ig__key .ups-ig__node--doing i { inset: 3px; }

/* 1. Journey rail (vertical) */
.ups-path { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ups-path__stop { position: relative; }
.ups-path__stop:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: -6px; width: 2px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--u-line-2) 0 5px, transparent 5px 10px); }
.ups-path__stop.is-done:not(:last-child)::after { background: var(--u-green); }
.ups-path a { display: flex; align-items: center; gap: var(--u-s3); min-height: 60px; padding: 8px 10px 8px 6px; border-radius: 18px; color: var(--u-ink); text-decoration: none; transition: background-color 200ms ease; }
.ups-path .ups-ig__node { width: 32px; height: 32px; }
.ups-path__text { display: grid; min-width: 0; }
.ups-path__text strong { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ups-path__text small { color: var(--u-muted); font-size: 13px; }
.ups-path__stop.is-todo:not(.is-here) strong { color: var(--u-muted); font-weight: 500; }
.ups-path__stop.is-here a { background: color-mix(in srgb, var(--u-blue) 8%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--u-blue) 40%, transparent); }
.ups-path__stop.is-here .ups-ig__node { box-shadow: inset 0 0 0 2px var(--u-blue), 0 0 0 5px color-mix(in srgb, var(--u-blue) 16%, transparent); color: var(--u-blue); animation: ups-here 2.4s var(--u-ease-io) infinite; }
.ups-path__stop.is-here .ups-ig__node--doing i { background: linear-gradient(90deg, var(--u-blue) 50%, transparent 50%); }
@keyframes ups-here { 50% { box-shadow: inset 0 0 0 2px var(--u-blue), 0 0 0 9px color-mix(in srgb, var(--u-blue) 6%, transparent); } }
@media (hover: hover) and (pointer: fine) { .ups-path a:hover { background: rgba(255, 255, 255, 0.9); } }

/* 2 & 5. Stones in a row */
.ups-stones { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ups-stones li { position: relative; display: flex; align-items: center; }
.ups-stones li + li::before { content: ""; width: 14px; height: 2px; margin-right: 8px; border-radius: 2px; background: var(--u-line-2); }
.ups-stones li.is-done + li::before { background: var(--u-green); }
.ups-stones .ups-ig__node { width: 36px; height: 36px; font-size: 13px; }
.ups-stones li.is-here .ups-ig__node { box-shadow: inset 0 0 0 2px var(--u-blue), 0 0 0 5px color-mix(in srgb, var(--u-blue) 16%, transparent); color: var(--u-blue); }
.ups-stones li.is-here .ups-ig__node--doing i { background: linear-gradient(90deg, var(--u-blue) 50%, transparent 50%); }
.ups-stones--ten .ups-ig__node { width: 30px; height: 30px; font-size: 12px; }
.ups-stones--ten li + li::before { width: 8px; margin-right: 6px; }

/* 3. Five-piece circle */
.ups-donut { position: relative; flex: none; width: 116px; height: 116px; }
.ups-donut svg { width: 100%; height: 100%; }
.ups-donut circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ups-donut circle.on { stroke: var(--u-green); }
.ups-donut circle.off { stroke: var(--u-soft-2); }
.ups-donut p { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; line-height: 1; }
.ups-donut strong { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }
.ups-donut span { color: var(--u-muted); font-size: 12.5px; font-weight: 600; }
.ups-known { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ups-known li { display: flex; align-items: center; gap: var(--u-s2); font-size: 15px; font-weight: 500; }
.ups-known .ups-ig__node { width: 22px; height: 22px; }
.ups-known .ups-ig__node .ups-icon { width: 12px; height: 12px; }
.ups-known li.is-todo { color: var(--u-muted); }
.ups-known li.is-todo .ups-ig__node { box-shadow: inset 0 0 0 2px var(--u-line-2); background: repeating-linear-gradient(135deg, transparent 0 3px, var(--u-soft-2) 3px 5px); }

/* 4. How sure: unit rows */
.ups-sure { display: grid; gap: var(--u-s2); margin: 0; padding: 0; list-style: none; }
.ups-sure li { display: grid; grid-template-columns: auto minmax(180px, 280px) minmax(0, 1fr) auto; align-items: center; gap: var(--u-s3); padding: 8px 14px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-sure__label { display: grid; min-width: 0; }
.ups-sure__label strong { font-size: 15.5px; }
.ups-sure__label small { color: var(--u-muted); font-size: 13px; }
.ups-sure__units { display: flex; flex-wrap: wrap; gap: 5px; }
.ups-sure__units i { width: 18px; height: 18px; border-radius: 6px; background: var(--u-green); animation: ups-pop 420ms var(--u-ease) both; }
.ups-sure__units i:nth-child(2) { animation-delay: 60ms; } .ups-sure__units i:nth-child(3) { animation-delay: 120ms; } .ups-sure__units i:nth-child(n+4) { animation-delay: 180ms; }
.ups-sure--yellow .ups-sure__units i { background: var(--u-yellow); box-shadow: inset 0 0 0 1.5px rgba(22, 24, 29, 0.25); }
.ups-sure--grey .ups-sure__units i { background: repeating-linear-gradient(135deg, var(--u-faint) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1.5px var(--u-faint); }
.ups-sure__units em { color: var(--u-faint); font-size: 13px; font-style: normal; }
.ups-sure__n { min-width: 2ch; font-size: 28px; font-weight: 700; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes ups-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* 6. Order */
.ups-order { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-s3); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ups-order li { position: relative; display: grid; align-content: start; gap: var(--u-s2); padding: var(--u-s4); border-radius: var(--u-r-tile); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-order li + li::before { content: ""; position: absolute; left: -14px; top: 38px; width: 16px; height: 16px; border-top: 2px solid var(--u-line-2); border-right: 2px solid var(--u-line-2); transform: rotate(45deg); }
.ups-order li.is-here { box-shadow: inset 0 0 0 2px var(--u-blue); }
.ups-order .ups-ig__tag { position: absolute; top: -9px; left: 14px; padding: 2px 8px; border-radius: 999px; background: var(--u-blue); color: var(--u-on-blue); }
.ups-order__n { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--u-ink); }
.ups-order li:not(.is-here) .ups-order__n { color: var(--u-faint); }
.ups-order__t { font-size: 15.5px; font-weight: 600; line-height: 1.3; }

@media (max-width: 760px) {
  .ups-ig__row { flex-wrap: wrap; gap: var(--u-s4); }
  .ups-ig__big strong { font-size: 44px; }
  .ups-sure li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ups-sure__units { grid-column: 2 / 3; }
  .ups-sure__n { grid-row: 1 / 3; grid-column: 3; }
  .ups-order { grid-template-columns: minmax(0, 1fr); gap: var(--u-s4); }
  .ups-order li { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .ups-order li + li::before { left: 34px; top: -14px; transform: rotate(135deg); }
  .ups-order .ups-ig__tag { left: 14px; }
}
@media (forced-colors: active) { .ups-ig__node, .ups-sure__units i, .ups-donut circle.on { forced-color-adjust: none; } }

/* ------------------------------------------------------------------ chat 2.4: aurora, orb, focus view */
/* Soft moving light behind the chat, drawn from the brand colours. */
.ups-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fbfbfe 0%, #f3f5fa 100%); }
.ups-aurora i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; animation: ups-drift 26s var(--u-ease-io) infinite alternate; }
.ups-aurora i:nth-child(1) { left: -22vmax; top: -26vmax; background: radial-gradient(circle, color-mix(in srgb, var(--u-blue) 34%, transparent), transparent 68%); }
.ups-aurora i:nth-child(2) { right: -24vmax; top: 12vh; background: radial-gradient(circle, rgba(244, 170, 200, 0.55), transparent 66%); animation-duration: 32s; animation-delay: -8s; }
.ups-aurora i:nth-child(3) { left: 18vw; bottom: -34vmax; background: radial-gradient(circle, color-mix(in srgb, var(--u-yellow) 55%, transparent), transparent 66%); animation-duration: 38s; animation-delay: -14s; }
@keyframes ups-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* Frosted round buttons (header) */
.ups-circle--frost { background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 8px 20px -14px rgba(22, 24, 29, 0.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (hover: hover) and (pointer: fine) { .ups-circle--frost:hover { background: #fff; } }
.ups-dialog__head { position: relative; z-index: 2; }
.ups-dialog__title h2 { font-size: 18px; letter-spacing: -0.01em; }

/* The AI mark: the same white emoji tile the rest of the app uses. While the assistant
   works, a thin arc in the brand colour sweeps around it and a short word says why. */
.ups-ai { --ai: 52px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--ai); height: var(--ai); border-radius: 30%; background: #fff; box-shadow: inset 0 0 0 1px var(--u-line), 0 10px 22px -18px rgba(22, 24, 29, 0.45); }
.ups-ai--sm { --ai: 38px; border-radius: 32%; } .ups-ai--md { --ai: 52px; } .ups-ai--lg { --ai: 72px; }
.ups-ai__face { display: grid; place-items: center; font-family: var(--u-emoji); font-size: calc(var(--ai) * 0.46); line-height: 1; }
.ups-ai__ring, .ups-ai__water, .ups-ai__say { display: none; }
.ups-ai.is-live { background: #fff; }
/* The sweep: one arc, drawn with a conic gradient and masked to a 2px ring. */
.ups-ai.is-live::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 220deg, color-mix(in srgb, var(--u-blue) 35%, transparent) 300deg, var(--u-blue) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ups-ai-sweep 1.4s linear infinite; }
.ups-ai.is-live .ups-ai__face { animation: ups-ai-pulse 1.6s var(--u-ease-io) infinite alternate; }
@keyframes ups-ai-sweep { to { transform: rotate(360deg); } }
@keyframes ups-ai-pulse { from { transform: scale(0.94); opacity: 0.75; } to { transform: scale(1.06); opacity: 1; } }
.ups-msg .ups-ai { align-self: flex-end; }
/* "Thinking" line under the mark, in the app's own type. */
.ups-working { display: grid; justify-items: center; gap: var(--u-s3); }
.ups-working__word { display: flex; align-items: center; gap: 8px; color: var(--u-ink); font-size: 17px; font-weight: 600; }
.ups-working__word em { font-style: normal; color: var(--u-muted); font-weight: 500; }
.ups-working__sub { color: var(--u-muted); font-size: 14px; }
.ups-working__dots { display: inline-flex; gap: 4px; }
.ups-working__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--u-blue); animation: ups-bounce 1.2s ease-in-out infinite; }
.ups-working__dots i:nth-child(2) { animation-delay: 150ms; }
.ups-working__dots i:nth-child(3) { animation-delay: 300ms; }

/* Views share one centred column */
.ups-messages.ups-view--hello, .ups-messages.ups-view--focus { padding-left: max(var(--u-s6), calc((100% - 640px) / 2)); padding-right: max(var(--u-s6), calc((100% - 640px) / 2)); }
.ups-composer { position: relative; z-index: 1; padding-left: max(var(--u-s6), calc((100% - 640px) / 2)); padding-right: max(var(--u-s6), calc((100% - 640px) / 2)); }
.ups-stepper { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 8px 20px -16px rgba(22, 24, 29, 0.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ups-stepper em { font-style: normal; }

/* Hello */
.ups-hello { display: flex; align-items: center; gap: var(--u-s5); margin-top: var(--u-s4); animation: ups-rise 520ms var(--u-ease) both; }
.ups-hello__hi { color: var(--u-muted); font-size: 20px; line-height: 1.2; }
.upsense-app .ups-hello__ask { margin-top: 2px; font-size: clamp(30px, 4.2vw, 40px); line-height: 1.02; color: var(--u-ink); }
.ups-hello__lead { margin-top: var(--u-s2) !important; max-width: 46ch; color: var(--u-muted); font-size: 15px; line-height: 1.5; }

/* Starting points: frosted tiles with big emoji art and a label chip */
.ups-starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-s3); margin-top: var(--u-s2); }
.ups-starter { --tint: var(--u-blue); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--u-s3); min-height: 168px; padding: 10px; border: 0; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.52); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 18px 34px -26px rgba(22, 24, 29, 0.45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--u-ink); text-align: left; cursor: pointer; animation: ups-rise 520ms var(--u-ease) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform 180ms var(--u-ease), box-shadow 220ms ease, background-color 220ms ease; }
.ups-starter:nth-child(6n+2) { --tint: #e889b5; }
.ups-starter:nth-child(6n+3) { --tint: var(--u-yellow); }
.ups-starter:nth-child(6n+4) { --tint: var(--u-teal); }
.ups-starter:nth-child(6n+5) { --tint: #9b7bf0; }
.ups-starter:nth-child(6n+6) { --tint: #f0a45b; }
.ups-starter::before { content: ""; position: absolute; left: 50%; top: 42%; width: 150px; height: 150px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--tint) 45%, transparent), transparent 68%); z-index: -1; transition: transform 400ms var(--u-ease); }
.ups-starter__art { display: grid; place-items: center; flex: 1; min-height: 88px; font-family: var(--u-emoji); font-size: 56px; line-height: 1; filter: drop-shadow(0 10px 12px rgba(22, 24, 29, 0.16)); transition: transform 400ms var(--u-ease); }
.ups-starter__chip { display: flex; align-items: center; gap: var(--u-s2); min-height: 48px; padding: 6px 6px 6px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.05); }
.ups-starter__label { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.ups-starter__go { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: var(--u-muted); box-shadow: inset 0 0 0 1.5px var(--u-line-2); transition: transform 300ms var(--u-ease), color 240ms ease, box-shadow 240ms ease, opacity 240ms ease; }
.ups-starter__go .ups-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.ups-starter:active:not(:disabled) { transform: scale(0.97); }
.ups-starter:disabled:not(.is-picked) { opacity: 0.45; }
.ups-starter.is-picked { box-shadow: inset 0 0 0 2px var(--u-dark), 0 18px 34px -24px rgba(22, 24, 29, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .ups-starter:hover:not(:disabled) { transform: translateY(-3px); background: rgba(255, 255, 255, 0.72); }
  .ups-starter:hover:not(:disabled) .ups-starter__art { transform: scale(1.08) rotate(-4deg); }
  .ups-starter:hover:not(:disabled)::before { transform: translate(-50%, -50%) scale(1.2); }
  .ups-starter:hover:not(:disabled) .ups-starter__go { transform: translateX(3px); color: var(--u-ink); box-shadow: inset 0 0 0 1.5px var(--u-ink); }
}
@media (min-width: 900px) { .ups-view--hello .ups-starters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ups-view--hello .ups-starters:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Focus view: one question at a time */
.ups-focus-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--u-s3); }
.ups-chip--quiet { min-height: 44px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); flex: none; }
.ups-chip--sm { font-size: 13.5px; padding: 0 14px; }
.ups-trail { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ups-trail li { --pad: calc((2 - var(--d)) * 22px); position: relative; min-width: 0; padding-left: max(0px, var(--pad)); opacity: calc(1 - var(--d) * 0.28); animation: ups-rise 420ms var(--u-ease) both; }
.ups-trail li + li::before { content: ""; position: absolute; left: calc(var(--pad) - 14px); top: -8px; width: 10px; height: 24px; border-left: 1.5px solid var(--u-line-2); border-bottom: 1.5px solid var(--u-line-2); border-bottom-left-radius: 8px; }
.ups-trail span { display: inline-block; max-width: min(340px, 100%); padding: 6px 12px; border-radius: 999px; background: rgba(22, 24, 29, 0.06); color: var(--u-ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.ups-trail li:last-child span { background: var(--u-dark); color: var(--u-on-dark); }
.ups-focus { position: relative; display: grid; justify-items: center; gap: var(--u-s3); margin: auto 0; padding: var(--u-s5) 0 var(--u-s4); text-align: center; animation: ups-rise 560ms var(--u-ease) both; }
.ups-focus::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(520px, 110%); aspect-ratio: 1.3; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 170, 200, 0.42), color-mix(in srgb, var(--u-blue) 12%, transparent) 60%, transparent); filter: blur(24px); z-index: -1; pointer-events: none; }
.ups-focus__lead { max-width: 52ch; color: var(--u-muted); font-size: 16px; line-height: 1.55; }
.ups-focus__ask { max-width: 22ch; color: var(--u-ink); font-size: clamp(24px, 3.4vw, 32px); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; white-space: pre-wrap; }
.ups-focus--long .ups-focus__ask { max-width: 60ch; font-size: 17px; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-align: left; }
.ups-focus__think { color: var(--u-muted); font-size: 17px; font-weight: 500; }
.ups-view--focus .ups-thinking .ups-focus__think { animation: ups-fade 1.4s ease-in-out infinite alternate; }
@keyframes ups-fade { from { opacity: 0.45; } to { opacity: 1; } }

/* Answers: large stacked buttons */
.ups-answers { display: grid; gap: var(--u-s2); }
.ups-answer { display: flex; align-items: center; gap: var(--u-s3); width: 100%; min-height: 56px; padding: 6px 18px 6px 6px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.08), 0 10px 24px -22px rgba(22, 24, 29, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--u-ink); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; animation: ups-rise 420ms var(--u-ease) both; animation-delay: calc(80ms + var(--i, 0) * 40ms); transition: transform 160ms var(--u-ease), background-color 200ms ease, box-shadow 200ms ease; }
.ups-answer__emo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(22, 24, 29, 0.05); font-family: var(--u-emoji); font-size: 22px; }
.ups-answer__text { flex: 1; min-width: 0; }
.ups-answer:active:not(:disabled) { transform: scale(0.985); }
.ups-answer:disabled:not(.is-picked) { opacity: 0.45; }
.ups-answer.is-picked { background: var(--u-dark); color: var(--u-on-dark); }
@media (hover: hover) and (pointer: fine) { .ups-answer:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1px var(--u-dark), 0 12px 26px -20px rgba(22, 24, 29, 0.5); } }
.ups-answers--inline { padding-left: 48px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ups-view--focus .ups-picks, .ups-view--focus .ups-answers { margin-left: 0; }
.ups-view--focus .ups-picks__grid { grid-template-columns: minmax(0, 1fr); }
.ups-picks { background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ups-thread-bar { display: flex; justify-content: center; }

/* Thread view bubbles */
.ups-msg__bubble { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 12px 28px -22px rgba(22, 24, 29, 0.45); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ups-msg--me .ups-msg__bubble { background: var(--u-dark); }

/* Composer: frosted card, like a message waiting to be sent */
.ups-composer__box { border-radius: 24px; padding: 10px 10px 10px 20px; background: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), 0 20px 40px -26px rgba(22, 24, 29, 0.45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

@media (max-width: 760px) {
  .ups-messages.ups-view--hello, .ups-messages.ups-view--focus, .ups-composer { padding-left: var(--u-s4); padding-right: var(--u-s4); }
  .ups-hello { flex-direction: column; align-items: flex-start; gap: var(--u-s3); margin-top: 0; }
  .ups-hello .ups-ai--lg { --ai: 64px; }
  .upsense-app .ups-hello__ask { font-size: 30px; }
  .ups-starters { gap: var(--u-s2); }
  .ups-starter { min-height: 150px; border-radius: 22px; padding: 8px; }
  .ups-starter__art { font-size: 46px; min-height: 72px; }
  .ups-starter__chip { padding: 6px 6px 6px 10px; border-radius: 15px; }
  .ups-starter__label { font-size: 14px; }
  .ups-starter__go { display: none; }
  .ups-focus { padding-top: var(--u-s5); }
  .ups-focus-top { flex-direction: column-reverse; align-items: stretch; }
  .ups-focus-top .ups-chip--quiet { align-self: flex-end; }
  .ups-trail span { max-width: 100%; }
  .ups-answers--inline { padding-left: 0; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .ups-starters { grid-template-columns: minmax(0, 1fr); } .ups-starter { min-height: 0; flex-direction: row; align-items: center; } .ups-starter__art { flex: none; min-height: 56px; width: 56px; font-size: 34px; } .ups-starter__chip { flex: 1; } }

/* ------------------------------------------------------------------ sign-in */
.ups-auth { min-height: 100dvh; display: grid; place-items: center; padding: var(--u-s6); }
.ups-auth__wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 440px); gap: var(--u-gap); align-items: stretch; width: min(960px, 100%); }
.ups-auth-card { margin: 0; width: 100%; align-content: start; }
.ups-auth-card .ups-brand { margin-bottom: var(--u-s4); }
.ups-auth-card > .ups-btn--text { justify-self: start; padding-left: 0; }
.ups-auth__preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-radius: var(--u-r-card); background: rgba(255, 255, 255, 0.38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.ups-auth__preview .ups-tile { min-height: 0; }
.ups-auth__preview .ups-tile strong { font-size: 17px; line-height: 1.25; }
.ups-auth__preview .ups-emo { margin-top: auto; }

/* ------------------------------------------------------------------ admin (inside wp-admin) */
.ups-admin { margin: 20px 20px 0 0; padding: var(--u-s7); border-radius: var(--u-r-card); background: linear-gradient(135deg, #dfe6f4 0%, #eceef3 50%, #eef1e6 100%); }
.ups-admin .ups-head { margin-bottom: var(--u-s6); }
.ups-admin .upsense-app h1.ups-display { font-size: 42px; padding: 0; }
.ups-admin .ups-tabs { margin: 0 0 var(--u-s6); width: fit-content; max-width: 100%; }
.ups-admin .ups-tabs a { gap: var(--u-s2); }
.ups-admin .ups-tabs a .ups-emo--xs { font-size: 15px; }
.ups-admin .ups-tabs a:focus { box-shadow: none; }
.ups-admin a:focus { box-shadow: none; }
.ups-admin p { font-size: 15px; }
.ups-admin h2, .ups-admin h3 { color: var(--u-ink); }
.ups-admin .ups-card { margin-bottom: 0; }
.ups-admin-grid { display: grid; gap: var(--u-gap); }
.ups-admin .ups-card .ups-grid-2 + .ups-grid-2 { margin-top: var(--u-gap); }
/* Settings: logo and colours */
.ups-brand-set { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-s6); }
.ups-brand-set__logo, .ups-brand-set__colors { display: grid; gap: var(--u-s3); align-content: start; }
.ups-brand-set__label { margin: 0; font-size: 14px; font-weight: 600; }
.ups-admin .ups-brand-set__label { font-size: 14px; }
.ups-logo-preview { display: flex; align-items: center; min-height: 96px; padding: var(--u-s5); border-radius: var(--u-r-tile); background: #fff; box-shadow: inset 0 0 0 1px var(--u-line); }
.upsense-app .ups-logo-preview img { display: block; max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ups-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--u-s3); }
.ups-swatch { position: relative; display: grid; gap: var(--u-s2); align-content: start; }
.ups-swatch input[type=color] { position: absolute; inset: 0 0 auto 0; width: 100%; height: 84px; opacity: 0; cursor: pointer; }
.ups-swatch label { display: flex; flex-direction: column; justify-content: space-between; min-height: 84px; padding: 12px 14px; border-radius: 18px; background: var(--sw); color: var(--sw-on); box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.1), var(--u-shadow-tile); cursor: pointer; pointer-events: none; }
.ups-swatch label strong { font-size: 15px; }
.ups-swatch label code { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(10, 12, 20, 0.16); color: inherit; font: 600 12.5px/1.5 var(--u-text); font-variant-numeric: tabular-nums; }
.ups-swatch small { color: var(--u-muted); font-size: 12.5px; line-height: 1.4; }
.upsense-app .ups-swatch .ups-swatch__warn { color: var(--u-red); font-weight: 600; }
.ups-swatch:has(input:focus-visible) label { outline: 3px solid var(--u-blue); outline-offset: 2px; }
@media (max-width: 960px) { .ups-brand-set { grid-template-columns: minmax(0, 1fr); } }
.ups-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ups-metric { min-height: 164px; }
.ups-metric .ups-tile__big { font-size: 40px; }
.ups-admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--u-s3); }
.ups-admin-row h3 { font-size: 17px; font-weight: 600; margin: 0; }
.ups-admin-meta { color: var(--u-muted); font-size: 13.5px; }
.ups-admin-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: var(--u-s3) 0 0; font-size: 14px; }
.ups-admin-facts dt { color: var(--u-muted); }
.ups-admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.ups-facts--wide .ups-fact__value { display: block; -webkit-line-clamp: none; overflow: visible; font-size: 15px; }
.ups-facts--wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--u-s3); }
.ups-table-wrap { overflow-x: auto; border-radius: 20px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--u-line); }
.ups-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ups-table th { padding: 14px 16px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--u-muted); border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.ups-table td { padding: 14px 16px; border-bottom: 1px solid var(--u-line); vertical-align: top; }
.ups-table tr:last-child td { border-bottom: 0; }
.ups-table .ups-person { display: flex; align-items: center; gap: var(--u-s3); font-weight: 600; }
.ups-admin .ups-avatar { width: 36px; height: 36px; font-size: 12.5px; box-shadow: none; }
.ups-search { display: flex; flex-wrap: wrap; gap: var(--u-s2); align-items: center; }
.ups-search input[type=search] { max-width: 360px; }
.ups-pager { display: flex; gap: var(--u-s2); justify-content: flex-end; }
.ups-admin-msg { display: grid; gap: 4px; max-width: 78%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--u-line); font-size: 14.5px; }
.ups-admin-msg--me { margin-left: auto; border-radius: 20px 20px 6px 20px; background: var(--u-dark); color: var(--u-on-dark); }
.ups-admin-msg strong { font-size: 12.5px; opacity: 0.8; }
.ups-admin-msg p { margin: 0; }
.ups-admin-thread { display: grid; gap: var(--u-s2); }
.ups-json { max-height: 320px; overflow: auto; padding: var(--u-s4); border-radius: 16px; background: var(--u-dark); color: #e6e8ee; font-size: 12.5px; }
.ups-admin-form { display: grid; gap: var(--u-s4); }
.ups-admin .ups-actions .ups-btn { text-decoration: none; }
.ups-admin .ups-btn--primary, .ups-admin .ups-btn--primary:hover, .ups-admin .ups-btn--primary:focus { color: #fff; }
.ups-admin input[type=color] { min-height: 48px; padding: 6px; }
.ups-admin .ups-check input[type=checkbox] { margin: 1px 0 0; }
.ups-admin .ups-card--danger summary { color: var(--u-red); }
.ups-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--u-s3); }
.ups-inline-form .ups-field { flex: 1 1 220px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .ups-bento { grid-template-columns: minmax(0, 1fr) 320px; }
  .ups-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ups-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ups-shell { padding-left: var(--u-s6); padding-right: var(--u-s6); }
  .ups-rail { display: none; }
  .ups-top { flex-wrap: wrap; }
  .ups-tabs { order: 3; width: 100%; margin: 0; }
  .ups-top__tools { margin-left: auto; }
  .ups-bento { grid-template-columns: minmax(0, 1fr); }
  .ups-bento__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ups-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ups-prio-grid { grid-template-columns: minmax(0, 1fr); }
  .ups-summary { grid-template-columns: auto minmax(0, 1fr); }
  .ups-summary > .ups-actions, .ups-summary__meters { grid-column: 1 / -1; justify-content: flex-start; }
  .ups-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .upsense-app { --u-pad: 20px; --u-r-card: 26px; --u-gap: 12px; }
  .ups-shell { padding: var(--u-s3) var(--u-s4) calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ups-top { min-height: 56px; margin-bottom: var(--u-s5); }
  .ups-tabs { display: none; }
  .ups-brand__word { font-size: 26px; }
  .ups-brand__mark { width: 34px; height: 34px; font-size: 16px; }
  .ups-head { gap: var(--u-s4); margin-bottom: var(--u-s5); }
  .ups-head__back { display: none; }
  .ups-head__text { flex-basis: 100%; }
  .ups-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u-s3); width: 100%; padding: var(--u-s3) var(--u-s4); border-radius: 22px; background: rgba(255, 255, 255, 0.55); }
  .ups-head__actions, .ups-head__actions .ups-btn { width: 100%; }
  .ups-bento__side, .ups-bento__pair, .ups-grid-2, .ups-task-grid, .ups-options { grid-template-columns: minmax(0, 1fr); }
  .ups-tiles { grid-template-columns: minmax(0, 1fr); }
  .ups-tile { min-height: 0; }
  .ups-tile__foot { margin-top: var(--u-s2); }
  .ups-summary, .ups-cta, .ups-chat-save { grid-template-columns: minmax(0, 1fr); gap: var(--u-s4); }
  .ups-summary > .ups-actions, .ups-summary__meters { grid-column: auto; }
  .ups-summary .ups-actions .ups-btn, .ups-cta > .ups-btn, .ups-chat-save > .ups-btn { width: 100%; }
  .ups-funnel li { width: 100%; }
  .ups-list__item:has(> .ups-actions), .ups-list__item:has(> .ups-list__meta) { grid-template-columns: auto minmax(0, 1fr); }
  .ups-list__item > .ups-actions, .ups-list__item > .ups-list__meta { grid-column: 1 / -1; }
  .ups-list--rows .ups-list__item > .ups-actions .ups-btn { flex: 1; }
  .ups-list__meta { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .ups-question { padding: var(--u-s5); gap: var(--u-s5); }
  .ups-question__head { flex-direction: column; gap: var(--u-s3); }
  .ups-question__head .ups-emo--xl { width: 64px; height: 64px; font-size: 34px; border-radius: 20px; }
  .ups-wizard__actions .ups-btn--primary { width: 100%; order: -1; margin-left: 0; }
  .ups-wizard__actions .ups-btn--ghost { flex: 1; }
  .ups-review li { grid-template-columns: 36px minmax(0, 1fr); }
  .ups-review li > .ups-btn { grid-column: 2; justify-self: start; padding-left: 0; }
  .ups-sticky-actions { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 100%; border-radius: 28px; }
  .ups-sticky-actions .ups-btn { flex: 1; }
  .ups-mobile-nav {
    position: fixed; left: var(--u-s3); right: var(--u-s3); bottom: calc(var(--u-s3) + env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 28px;
    background: var(--u-dark); background: color-mix(in srgb, var(--u-dark) 94%, transparent); box-shadow: 0 20px 40px -18px rgba(22, 24, 29, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .ups-mobile-nav a, .ups-mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; padding: 4px 2px; border: 0; border-radius: 22px; background: transparent; color: rgba(255, 255, 255, 0.72); font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .ups-mobile-nav__emo { font-family: var(--u-emoji); font-size: 22px; line-height: 1.1; }
  .ups-mobile-nav [aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .ups-mobile-nav button { background: var(--u-yellow); color: var(--u-on-yellow); }
  .ups-dialog__head { padding-left: max(var(--u-s4), env(safe-area-inset-left)); padding-right: max(var(--u-s4), env(safe-area-inset-right)); gap: var(--u-s3); }
  .ups-dialog__head .ups-brand { width: auto; }
  .ups-dialog__head .ups-brand__word { display: none; }
  .upsense-app .ups-dialog__head .ups-brand__logo { height: 32px; max-width: 96px; }
  .ups-dialog__title { text-align: left; }
  .ups-messages { padding: var(--u-s2) var(--u-s4) var(--u-s5); gap: var(--u-s3); }
  .ups-composer { padding: var(--u-s2) var(--u-s4) calc(var(--u-s3) + env(safe-area-inset-bottom, 0px)); }
  .ups-stepper { width: 100%; justify-content: space-between; }
  .ups-stepper li { padding: 0 6px; font-size: 0; gap: 0; flex: 1; justify-content: center; }
  .ups-stepper li.now { font-size: 12.5px; gap: 6px; flex: 3; padding-right: 10px; }
  .ups-picks { margin-left: 0; padding: var(--u-s3); }
  .ups-picks__grid { grid-template-columns: minmax(0, 1fr); }
  .ups-picks__foot .ups-btn { flex: 1 1 auto; }
  .ups-msg__face { width: 34px; height: 34px; font-size: 17px; }
  .ups-msg__bubble { padding: 12px 15px; font-size: 15.5px; }
  .ups-panel, .ups-auth-card { padding: var(--u-s6) var(--u-s5); }
  .ups-auth { padding: var(--u-s4); place-items: start center; }
  .ups-auth__wrap { grid-template-columns: minmax(0, 1fr); }
  .ups-auth__preview { display: none; }
  .ups-admin { margin-right: 10px; padding: var(--u-s5) var(--u-s4); }
  .ups-metrics { grid-template-columns: minmax(0, 1fr); }
  .ups-admin-msg { max-width: 100%; }
  .ups-admin .upsense-app h1.ups-display { font-size: 34px; }
}
@media (max-width: 380px) {
  .ups-top { gap: var(--u-s3); }
  .ups-top__tools a.ups-circle { display: none; }
}

/* ------------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  .upsense-app *, .upsense-app *::before, .upsense-app *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .ups-spinner, .ups-circle.is-busy::after { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  .ups-typing i, .ups-working__dots i { animation: none !important; opacity: 0.8; }
  .ups-ai.is-live::before { animation: none !important; }
  .upsense-app [data-magnetic], .upsense-app [data-tilt] { transform: none !important; }
}
@media (forced-colors: active) {
  .ups-card, .ups-tile, .ups-btn, .ups-circle, .ups-chip, .ups-option, .ups-starter, .ups-msg__bubble, .ups-pill, .ups-composer__box { border: 1px solid CanvasText; }
  .ups-tabs a[aria-current="page"], .ups-mobile-nav [aria-current="page"] { outline: 2px solid Highlight; }
  .ups-meter__track span, .ups-dots span.on { background: Highlight; }
}
@media print {
  .ups-top, .ups-rail, .ups-mobile-nav, .ups-actions, .ups-sticky-actions, .ups-head__actions, .ups-circle { display: none !important; }
  .ups-shell { padding: 0; }
  .ups-card, .ups-tile { box-shadow: none; border: 1px solid #ccc; }
}
