/* Source Serif 4 — the Warm Glass editorial/AI voice (OFL, see fonts/OFL.txt).
   Text cut < 26px, Display cut >= 26px (Type.swift / tokens.md §4). */

/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */
/* @ds-font-face-dropped: unresolvable src */

/* Warm Glass tokens — web port of app/WillWork/DesignSystem/Tokens.swift,
   itself HTML-verified against build/ui-spec/tokens.md. Light-mode-only by PRD FR-1. */

:root {
  /* — Palette (tokens.md §1) — */
  --ww-ink: #1d1c18;          /* primary text on paper */
  --ww-ink2: #22201b;         /* serif display text AND the ink surface fill */
  --ww-paper: #f4f1ea;        /* the app canvas; text/icon color on ink surfaces */
  --ww-blue: #2f55a4;         /* brand/W mark, spec values, links, active pills */
  --ww-terracotta: #b0402a;   /* attention accent: flags, review states */
  --ww-green: #237b3d;        /* confirmed writes & healthy state */
  --ww-amber: #b07714;        /* attention/pending: BLOCKED, NEEDS REVIEW */
  --ww-violet: #6b4fbb;       /* AI-routine accent only */
  --ww-scanner-dark: #16140f; /* scanner screen background (sole dark screen) */
  --ww-scan-laser: #7fd79a;   /* scan laser + glow */

  /* Ambient orb hues (background decoration, two per screen) */
  --ww-orb-blue: #c7d8f5;
  --ww-orb-peach: #f5cba8;
  --ww-orb-sand: #ead9bc;

  /* — Ink alpha ladder: rgba(34,32,27,α) — */
  --ww-ink-body: rgba(34, 32, 27, 0.65);      /* muted body copy */
  --ww-ink-secondary: rgba(34, 32, 27, 0.5);  /* secondary text (the workhorse) */
  --ww-ink-tertiary: rgba(34, 32, 27, 0.45);  /* tertiary / placeholder / inactive tab */
  --ww-ink-faint: rgba(34, 32, 27, 0.4);      /* inactive icon strokes */
  --ww-ink-handle: rgba(34, 32, 27, 0.2);     /* sheet drag handles */
  --ww-ink-hairline: rgba(34, 32, 27, 0.1);   /* hairline borders */
  --ww-ink-fill-tint: rgba(34, 32, 27, 0.06); /* neutral chip / locked-pill fills */
  --ww-scrim: rgba(29, 28, 24, 0.32);         /* bottom-sheet scrim */

  /* Glass-on-dark (scanner only) */
  --ww-glass-on-dark-fill: rgba(244, 241, 234, 0.14);
  --ww-glass-on-dark-border: rgba(244, 241, 234, 0.22);

  /* — Radii (tokens.md §3) — */
  --ww-r-pill: 999px;  /* pills everywhere */
  --ww-r-hero: 28px;   /* hero cards */
  --ww-r-large: 24px;  /* large cards */
  --ww-r-mid: 22px;    /* stat cards, mid cards, chat-bubble base */
  --ww-r-card: 20px;   /* THE standard card radius */
  --ww-r-inner: 18px;  /* inner cards, image wells, compact library rows */
  --ww-r-banner: 16px; /* small inner cards / status banners */
  --ww-r-tile: 12px;   /* small tiles / thumbnails */
  --ww-r-chip: 6px;    /* small square chips, chat-bubble tight corner */
  --ww-r-tag: 5px;     /* audit tag chips */
  --ww-r-sheet: 32px;  /* bottom-sheet top corners */

  /* — Spacing scale — */
  --ww-s-xxs: 3px;  /* dock icon↔label gap */
  --ww-s-xs: 6px;   /* overline side inset, small chip gaps */
  --ww-s-s: 8px;    /* list-row gap, chip row gap */
  --ww-s-m: 12px;   /* in-card gaps */
  --ww-s-l: 16px;   /* row horizontal padding */
  --ww-s-xl: 20px;  /* hero card padding */
  --ww-s-xxl: 22px; /* rich card padding */
  --ww-gutter: 18px;      /* screen horizontal gutter */
  --ww-dock-bottom: 28px; /* bottom padding under the dock row */

  /* — Shadows (tokens.md §2; warm hue rgba(110,85,45,·)) — */
  --ww-shadow-warm1: 0 6px 16px rgba(110, 85, 45, 0.07);   /* flat hero cards */
  --ww-shadow-warm2: 0 8px 20px rgba(110, 85, 45, 0.1);    /* inner evidence cards */
  --ww-shadow-warm3: 0 10px 26px rgba(110, 85, 45, 0.12);  /* Will chat bubbles */
  --ww-shadow-warm4: 0 12px 30px rgba(110, 85, 45, 0.14);  /* inputs / secondary pills */
  --ww-shadow-warm-hero: 0 14px 38px rgba(110, 85, 45, 0.14); /* hero cards */
  --ww-shadow-warm-dock: 0 10px 28px rgba(110, 85, 45, 0.16); /* the dock */
  --ww-shadow-ink-float: 0 10px 26px rgba(34, 32, 27, 0.38);  /* floating Ask Will button */
  --ww-shadow-ink-button: 0 8px 22px rgba(34, 32, 27, 0.3);   /* primary ink buttons */
  --ww-shadow-ink-bubble: 0 10px 26px rgba(34, 32, 27, 0.25); /* operator chat bubbles */
  --ww-shadow-ink-card: 0 14px 38px rgba(34, 32, 27, 0.32);   /* the Run-mode ink card */

  /* — Type stacks (tokens.md §4) — */
  --ww-font-serif: "Source Serif 4", Georgia, serif;                    /* editorial/AI voice, < 26px */
  --ww-font-serif-display: "Source Serif 4 Display", "Source Serif 4", Georgia, serif; /* >= 26px */
  --ww-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; /* UI chrome — resolves to SF Pro on Apple devices */
  --ww-font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; /* the data voice */
}

/* Warm Glass component classes — web port of app/WillWork/DesignSystem/.
   The CSS recipes here are the storyboard originals (tokens.md §2/§5); the
   SwiftUI files quote the same values in their comments. Light mode only. */

/* ============================== Glass tiers ==============================
   Recipe: rgba(255,255,255,fill) + backdrop blur/saturate + 1px white border +
   inset 0 1px 0 white top highlight + optional warm drop shadow. */

.ww-glass-card {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: var(--ww-r-card);
}
.ww-glass-pill {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--ww-r-pill);
}
.ww-glass-hero {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--ww-shadow-warm-hero);
  border-radius: var(--ww-r-hero);
}
.ww-glass-hero-flat {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-radius: var(--ww-r-mid);
}
.ww-glass-bubble {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--ww-shadow-warm3);
  border-radius: var(--ww-r-mid);
}
.ww-glass-input {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--ww-shadow-warm4);
  border-radius: var(--ww-r-pill);
}
.ww-glass-inner {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--ww-r-inner);
}
.ww-glass-utility {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--ww-r-pill);
}
.ww-glass-dock {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--ww-shadow-warm-dock);
  border-radius: var(--ww-r-pill);
}

/* ============================== Canvas ============================== */

.ww-screen {
  position: relative;
  background: var(--ww-paper);
  overflow: hidden;
  font-family: var(--ww-font-sans);
  color: var(--ww-ink);
}
.ww-screen__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ww-screen__content {
  position: relative;
  z-index: 1;
}

/* ============================== Type roles ============================== */

.ww-hero-text {
  font-family: var(--ww-font-serif-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ww-ink2);
}
.ww-screen-title {
  font-family: var(--ww-font-serif-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ww-ink2);
}
.ww-card-title {
  font-family: var(--ww-font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ww-ink2);
}
.ww-spec-value {
  font-family: var(--ww-font-serif-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ww-blue);
}
.ww-will-voice {
  font-family: var(--ww-font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ww-ink2);
}
.ww-timer {
  font-family: var(--ww-font-mono);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ww-ink);
}

/* ============================ Section header ============================ */

.ww-section-header {
  font-family: var(--ww-font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ww-ink-tertiary);
  padding: 16px 6px 8px;
}

/* ============================== Cards ============================== */

.ww-card {
  padding: 13px 16px;
}
.ww-card--hero {
  padding: 20px;
}
.ww-divider {
  height: 1px;
  background: var(--ww-ink-fill-tint);
}

/* ============================== Chips ============================== */

.ww-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: var(--ww-r-pill);
  font-family: var(--ww-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.2;
}
.ww-status-chip--large {
  padding: 5px 10px;
  font-size: 10.5px;
}
.ww-status-chip--mono {
  font-family: var(--ww-font-mono);
  font-weight: 600;
}
.ww-status-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ww-status-chip--green { color: var(--ww-green); background: rgba(35, 123, 61, 0.12); }
.ww-status-chip--amber { color: var(--ww-amber); background: rgba(176, 119, 20, 0.14); }
.ww-status-chip--blue { color: var(--ww-blue); background: rgba(47, 85, 164, 0.1); }
.ww-status-chip--terracotta { color: var(--ww-terracotta); background: rgba(176, 64, 42, 0.1); }
.ww-status-chip--violet { color: var(--ww-violet); background: rgba(107, 79, 187, 0.12); }
.ww-status-chip--neutral { color: var(--ww-ink-secondary); background: var(--ww-ink-fill-tint); }

.ww-data-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--ww-r-chip);
  background: var(--ww-ink-fill-tint);
  color: rgba(34, 32, 27, 0.55);
  font-family: var(--ww-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.ww-data-chip--mono {
  font-family: var(--ww-font-mono);
  font-size: 10px;
}

.ww-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: var(--ww-r-pill);
  background: var(--ww-terracotta);
  color: var(--ww-paper);
  font-family: var(--ww-font-sans);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
}

/* ============================== Buttons ============================== */

.ww-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: var(--ww-r-pill);
  font-family: var(--ww-font-sans);
  font-weight: 650;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.ww-btn--primary {
  height: 52px;
  background: var(--ww-ink2);
  color: var(--ww-paper);
  font-size: 15px;
  box-shadow: var(--ww-shadow-ink-button);
}
.ww-btn--primary:disabled {
  background: rgba(34, 32, 27, 0.06);
  color: rgba(34, 32, 27, 0.45);
  box-shadow: none;
  cursor: default;
}
.ww-btn--primary.ww-btn--small {
  font-size: 13.5px;
  box-shadow: none;
}
.ww-btn--secondary {
  height: 56px;
  color: var(--ww-ink);
  font-size: 15px;
}
.ww-btn--sheet {
  height: 52px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ww-ink-hairline);
  color: var(--ww-ink);
  font-size: 14.5px;
}
.ww-btn--outline {
  height: 42px;
  background: transparent;
  border: 1.5px solid var(--ww-ink2);
  color: var(--ww-ink2);
  font-size: 13.5px;
}
.ww-text-link {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--ww-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ww-blue);
  cursor: pointer;
}

/* ============================== List rows ============================== */

.ww-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  text-align: left;
}
.ww-list-row--compact {
  padding: 11px 15px;
  border-radius: var(--ww-r-inner);
}
.ww-list-row--dimmed {
  opacity: 0.55;
}
.ww-list-row--review-ring {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(176, 119, 20, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ww-list-row__body {
  flex: 1;
  min-width: 0;
}
.ww-list-row__title {
  font-family: var(--ww-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ww-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-list-row--compact .ww-list-row__title { font-size: 13px; }
.ww-list-row__subtitle {
  font-family: var(--ww-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ww-ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.ww-list-row--compact .ww-list-row__subtitle { font-size: 10.5px; margin-top: 1px; }
.ww-list-row__trailing {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* ======================= Settings / toggle rows ======================= */

.ww-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
}
.ww-settings-row__label {
  font-family: var(--ww-font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ww-ink);
}
.ww-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  border: none;
  border-radius: var(--ww-r-pill);
  background: var(--ww-ink-handle);
  cursor: pointer;
  transition: background 0.2s ease;
  flex: none;
  padding: 0;
}
.ww-toggle--on {
  background: var(--ww-green);
}
.ww-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.ww-toggle--on .ww-toggle__knob {
  transform: translateX(18px);
}

/* ============================ Gate banners ============================ */

.ww-gate-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-radius: var(--ww-r-mid);
}
.ww-gate-banner--compact {
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--ww-r-banner);
}
.ww-gate-banner--success {
  background: rgba(35, 123, 61, 0.1);
  border: 1px solid rgba(35, 123, 61, 0.2);
  color: var(--ww-green);
}
.ww-gate-banner--attention {
  background: rgba(176, 119, 20, 0.14);
  border: 1px solid rgba(176, 119, 20, 0.25);
  color: var(--ww-amber);
}
.ww-gate-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ww-gate-banner--compact .ww-gate-banner__icon {
  width: 26px;
  height: 26px;
}
.ww-gate-banner__bang {
  color: var(--ww-paper);
  font-family: var(--ww-font-sans);
  font-size: 15px;
  font-weight: 700;
}
.ww-gate-banner__title {
  font-family: var(--ww-font-sans);
  font-size: 15px;
  font-weight: 650;
}
.ww-gate-banner--compact .ww-gate-banner__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.ww-gate-banner__detail {
  font-family: var(--ww-font-sans);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 1px;
}

/* ============================ Step header ============================ */

.ww-step-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ww-step-header__doc {
  font-family: var(--ww-font-sans);
  font-size: 13px;
  font-weight: 650;
  color: var(--ww-ink);
}
.ww-step-header__job {
  font-family: var(--ww-font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ww-ink-secondary);
  margin-top: 1px;
}
.ww-step-header__position {
  padding: 6px 11px;
  border-radius: var(--ww-r-pill);
  background: rgba(47, 85, 164, 0.1);
  color: var(--ww-blue);
  font-family: var(--ww-font-sans);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ww-step-header__flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: none;
  border-radius: var(--ww-r-pill);
  background: rgba(176, 64, 42, 0.09);
  color: var(--ww-terracotta);
  font-family: var(--ww-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.ww-step-header__bar {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.ww-step-header__segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ww-ink-hairline);
}
.ww-step-header__segment--filled { background: var(--ww-blue); }
.ww-step-header__segment--done { background: rgba(47, 85, 164, 0.28); }
.ww-step-header__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
}
.ww-step-header__par {
  font-family: var(--ww-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ww-ink-secondary);
  margin-left: 8px;
}

/* ========================== Exception cards ========================== */

.ww-exception-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 16px;
}
.ww-exception-card__title {
  font-family: var(--ww-font-sans);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ww-ink);
  line-height: 1.35;
}
.ww-exception-card__detail {
  font-family: var(--ww-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(34, 32, 27, 0.6);
  line-height: 1.35;
}

/* ============================ Audit rows ============================ */

.ww-audit-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 17px;
}
.ww-audit-row__time {
  width: 52px;
  flex: none;
  font-family: var(--ww-font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ww-ink-secondary);
}
.ww-audit-row__tag {
  padding: 2px 6px;
  border-radius: var(--ww-r-tag);
  font-family: var(--ww-font-sans);
  font-size: 8.5px;
  font-weight: 700;
  flex: none;
}
.ww-audit-row__text {
  flex: 1;
  min-width: 0;
  font-family: var(--ww-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ww-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-audit-row__divider {
  height: 1px;
  background: rgba(34, 32, 27, 0.05);
  margin: 0 17px;
}

/* ============================ Stat tiles ============================ */

.ww-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ww-stat-tile--card {
  padding: 15px;
}
.ww-stat-tile__value {
  font-family: var(--ww-font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ww-ink);
  line-height: 1.1;
}
.ww-stat-tile--bare .ww-stat-tile__value { font-size: 23px; }
.ww-stat-tile__caption {
  font-family: var(--ww-font-sans);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ww-ink-secondary);
  line-height: 1.4;
}
.ww-stat-tile__delta {
  font-family: var(--ww-font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--ww-green);
}

/* ============================== Top bar ============================== */

.ww-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ww-top-bar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-top-bar__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ww-blue);
  color: #fff;
  font-family: var(--ww-font-sans);
  font-size: 14px;
  font-weight: 700;
}
.ww-top-bar__wordmark {
  font-family: var(--ww-font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ww-ink2);
}
.ww-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 13px 0 6px;
  cursor: pointer;
  font-family: var(--ww-font-sans);
}
.ww-profile-chip__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.ww-profile-chip__name {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ww-ink);
  line-height: 1.25;
}
.ww-profile-chip__role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 1.25;
}

/* ============================== The dock ============================== */

.ww-dock {
  display: flex;
  align-items: stretch;
  height: 64px;
  padding: 0 12px;
  flex: 1;
}
.ww-dock__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ww-ink-tertiary);
  font-family: var(--ww-font-sans);
  font-size: 9px;
  font-weight: 600;
  padding: 0;
}
.ww-dock__item--active {
  color: var(--ww-ink);
  font-weight: 700;
}
.ww-dock__icon {
  position: relative;
}
.ww-dock__badge {
  position: absolute;
  top: -6px;
  right: -8px;
}

/* ============================ Chat button ============================ */

.ww-chat-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--ww-ink2);
  box-shadow: var(--ww-shadow-ink-float);
  cursor: pointer;
  flex: none;
}
.ww-chat-button::after {
  content: "";
  position: absolute;
  inset: 0.75px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 25%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.ww-chat-button:active {
  transform: scale(0.93);
}

/* ============================== Icons ============================== */

.ww-icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
