/* scrollbar:start. The Softnamic scrollbar, the same everywhere. Source: packages/brand/scrollbar in the softnamic
   repo; change it there and run sync.py. No track, no arrows, a rounded thumb that grows under the pointer.
   The grey is solid and at least 3:1 on white, on light grey and on Ink, so it can always be seen. Chrome, Edge
   and Safari use the -webkit- rules, and only while scrollbar-width and scrollbar-color are not set: never set those
   except to hide a strip's bar (scrollbar-width: none). */
:root {
  --scroll-thumb: #86868b;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
/* the page's own: Chrome takes it from body when body matches, so both are named */
:root::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 16px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-track {
  margin: 4px; /* clear of the ends, and of round corners */
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-thumb {
  min-height: 56px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--scroll-thumb, #86868b) padding-box;
}
::-webkit-scrollbar-thumb:horizontal {
  min-width: 56px;
  min-height: 0;
}
:root::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 72px;
  border-width: 4px;
}
::-webkit-scrollbar-thumb:is(:hover, :active),
:root::-webkit-scrollbar-thumb:is(:hover, :active),
body::-webkit-scrollbar-thumb:is(:hover, :active) {
  border-width: 2px;
}
@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #86868b transparent;
  }
  :root {
    scrollbar-width: auto;
  }
}
@media (prefers-contrast: more) {
  ::-webkit-scrollbar-thumb {
    border-width: 2px;
  }
}
@media (forced-colors: active) {
  ::-webkit-scrollbar-thumb {
    background-color: CanvasText;
  }
}
/* scrollbar:end */

/* Softnamic Hosting. Tokens and patterns from website-vercel (Morné's Vercel-style Softnamic site):
   monochrome first, colour means something (blue action/info, green done, amber needs a person),
   Geist, mono labels, hairlines and rails, pill buttons. Light and dark follow the system. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-ink: #101010;
  --brand-light: #e4e4e4;
  --brand-green: #92ce31;
  --brand-blue: #3170ce;
  --gradient: linear-gradient(120deg, var(--brand-green) 0%, var(--brand-blue) 100%);
  --bg: #ffffff;
  --bg-2: #fafafa;
  --fg: var(--brand-ink);
  --gray-100: #f2f2f2;
  --gray-200: #ebebeb;
  --gray-300: #e6e6e6;
  --gray-400: #d9d9d9;
  --gray-500: #c7c7c7;
  --gray-600: #a3a3a3;
  --gray-700: #8f8f8f;
  --gray-900: #5c5c5c;
  --line: rgba(16, 16, 16, 0.09);
  --line-strong: rgba(16, 16, 16, 0.16);
  --blue: #2b63b8;
  --blue-bg: rgba(49, 112, 206, 0.09);
  --green: #4f7a12;
  --green-solid: var(--brand-green);
  --green-bg: rgba(146, 206, 49, 0.16);
  --amber: #a35200;
  --amber-bg: rgba(255, 166, 0, 0.14);
  --red: #c9353a;
  --red-bg: rgba(229, 72, 77, 0.1);
  --shadow-card: 0 0 0 1px var(--line), 0 2px 2px rgba(0, 0, 0, 0.04), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --shadow-menu: 0 0 0 1px var(--line), 0 4px 8px -4px rgba(0, 0, 0, 0.06), 0 16px 24px -8px rgba(0, 0, 0, 0.08);
  --accent: var(--brand-blue);
  --accent-ink: #fff;
  --page: 1200px;
  --nav-h: 64px;
  --radius: 6px;
  --radius-lg: 12px;
  --font-sans: 'Geist', system-ui, 'Segoe UI', sans-serif;
  --font-mono:
    'Geist Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Noto Sans Mono',
    monospace;
  --fs-hero: clamp(2.6rem, 7vw, 5.5rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem);
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* ---------- the scale (STYLE.md "Scale"): every size in the hub is one of these ---------- */
  /* space: a 4 px grid, 8 px rhythm. 1 = 4 px ... 16 = 64 px */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  /* the gap between tiles, and the page's side gutter (follows the pane, 16 to 32 px) */
  --gap: var(--sp-4);
  --gutter: clamp(var(--sp-4), 3cqi, var(--sp-8));
  /* type: nine steps. caption (charts, tab bars only), small, secondary, text, row name, tile title, headline, page title, display */
  --fs-xxs: 0.6875rem; /* 11 */
  --fs-xs: 0.75rem; /* 12 */
  --fs-sm: 0.8125rem; /* 13 */
  --fs-md: 0.875rem; /* 14 */
  --fs-lg: 0.9375rem; /* 15 */
  --fs-xl: 1.125rem; /* 18 */
  --fs-2xl: 1.25rem; /* 20 */
  --fs-3xl: clamp(1.25rem, 1.8vw, 1.5rem); /* 20 to 24, the T1 headline */
  --fs-4xl: 2rem; /* 32, numbers that are the point of a screen */
  --lh-tight: 1.2;
  --lh-text: 1.45;
  /* corners: concentric, inner = outer - padding. Multiples of 4, plus 6 for the smallest */
  --r-xs: 6px; /* chips, keys, tiny badges */
  --r-sm: 8px; /* menu items, small buttons inside a tile */
  --r-md: 12px; /* fields, thumbnails */
  --r-lg: 16px; /* rows, cards inside a tile */
  --r-xl: 20px; /* tiles */
  --r-2xl: 24px; /* sheets, dialogs, popovers */
  --r-pill: 999px; /* buttons, segmented controls, search */
  /* controls: one height per role. 44 is the least anything tappable gets on a phone */
  --h-xs: 24px; /* inline chips */
  --h-sm: 32px; /* dense desktop toolbars, icon buttons */
  --h-md: 40px; /* buttons and fields on desktop */
  --h-touch: 44px; /* every target on a phone */
  --h-row: 56px; /* a list row (64 with two lines) */
  --h-bar: 56px; /* the top bar; the phone's tab bar is 56 + the safe area */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: var(--brand-ink);
    --bg-2: #0b0b0b;
    --fg: #ededed;
    --gray-100: #1a1a1a;
    --gray-200: #1f1f1f;
    --gray-300: #292929;
    --gray-400: #2e2e2e;
    --gray-500: #454545;
    --gray-600: #5e5e5e;
    --gray-700: #8f8f8f;
    --gray-900: #a1a1a1;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --blue: #6d9be0;
    --blue-bg: rgba(49, 112, 206, 0.18);
    --green: var(--brand-green);
    --green-bg: rgba(146, 206, 49, 0.14);
    --amber: #ffb224;
    --amber-bg: rgba(255, 178, 36, 0.12);
    --red: #ff6369;
    --red-bg: rgba(229, 72, 77, 0.14);
    --shadow-card: 0 0 0 1px var(--line);
    --shadow-menu: 0 0 0 1px var(--line-strong), 0 16px 32px -8px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: var(--brand-ink);
  --bg-2: #0b0b0b;
  --fg: #ededed;
  --gray-100: #1a1a1a;
  --gray-200: #1f1f1f;
  --gray-300: #292929;
  --gray-400: #2e2e2e;
  --gray-500: #454545;
  --gray-600: #5e5e5e;
  --gray-700: #8f8f8f;
  --gray-900: #a1a1a1;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #6d9be0;
  --blue-bg: rgba(49, 112, 206, 0.18);
  --green: var(--brand-green);
  --green-bg: rgba(146, 206, 49, 0.14);
  --amber: #ffb224;
  --amber-bg: rgba(255, 178, 36, 0.12);
  --red: #ff6369;
  --red-bg: rgba(229, 72, 77, 0.14);
  --shadow-card: 0 0 0 1px var(--line);
  --shadow-menu: 0 0 0 1px var(--line-strong), 0 16px 32px -8px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
}
.mono {
  font-size: 0.92em;
}
::selection {
  background: var(--brand-green);
  color: var(--brand-ink);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-900);
}
.muted {
  color: var(--gray-900);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
  justify-content: center;
}
.ok {
  color: var(--green);
}
.warn {
  color: var(--amber);
}
.err {
  color: var(--red);
}
.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
  margin-right: -0.06em;
}
.break {
  word-break: break-all;
}
.hide-sm {
}
/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}
.btn.lg {
  height: 48px;
  padding: 0 22px;
  font-size: 1rem;
}
.btn.wide {
  width: 100%;
}
/* the primary action is Softnamic blue; on hover it turns green with ink text (brand guide) */
.btn.primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-green);
  color: var(--brand-ink);
}
.app .btn.primary,
.auth .btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.app .btn.primary:hover,
.auth .btn.primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: var(--accent-ink);
}
.btn.secondary {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.btn.secondary:hover {
  background: var(--gray-100);
}
.btn.tertiary {
  background: transparent;
  color: var(--gray-900);
}
.btn.tertiary:hover {
  background: var(--gray-100);
  color: var(--fg);
}
.btn.danger {
  color: var(--red);
}
.btn .arrow {
  transition: transform 0.15s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(2px);
}

/* ---------- test bar ---------- */
.public .nav {
  top: var(--bar);
}

/* ---------- logo ---------- */
/* the lockup ratio is universal (BRAND.md): mark : gap : wordmark = 1 : 0.3 : 3.5 */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
}
.logo-mark,
.logo-word {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.logo-mark {
  --src: url('/brand/logo.svg');
  width: 30px;
  height: 12.4px;
}
.logo-word {
  --src: url('/brand/wordmark.svg');
  width: 105px;
  height: 17.1px;
}
span.product {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

/* ---------- public nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  max-width: calc(var(--page) + 48px);
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 24px);
}
.home {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}
.links {
  display: flex;
  gap: 2px;
}
.links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--gray-900);
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}
.links a:hover,
.links a[aria-current] {
  color: var(--fg);
  background: var(--gray-100);
}
.nav .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav .me {
  gap: 8px;
  padding-left: 4px;
}
.me-chip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}
.menu-btn {
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
/* outside .nav on purpose: the nav's backdrop-filter would make it the containing block and squash the panel */
.menu {
  position: fixed;
  inset: calc(var(--nav-h) + var(--bar, 0px)) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 16px 32px;
  background: var(--bg);
  overflow-y: auto;
}
.menu[hidden] {
  display: none;
}
.menu nav {
  display: flex;
  flex-direction: column;
}
.menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
}
@media (max-width: 899px) {
  .links {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav .actions .btn.primary {
    display: none;
  }
}

/* ---------- page rails and bands ---------- */
.page {
  width: 100%;
  max-width: calc(var(--page) + 2px);
  margin-inline: auto;
}
.rails {
  border-inline: 1px solid var(--line);
}
main.page {
  padding-top: calc(var(--nav-h) + var(--bar, 0px));
}
.band {
  position: relative;
  border-top: 1px solid var(--line);
}
.band.hero {
  border-top: 0;
  overflow: hidden;
  isolation: isolate;
}
.cross {
  position: absolute;
  z-index: 2;
  top: -6px;
  width: 11px;
  height: 11px;
  pointer-events: none;
  background:
    linear-gradient(var(--gray-700), var(--gray-700)) center / 1px 100% no-repeat,
    linear-gradient(var(--gray-700), var(--gray-700)) center / 100% 1px no-repeat;
}
.cross.l {
  left: -6px;
}
.cross.r {
  right: -6px;
}
.band.hero .cross {
  display: none;
}
@media (max-width: 1239px) {
  .rails {
    border-inline: 0;
  }
  .cross {
    display: none;
  }
}
.pad {
  padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
}
.pad.center {
  display: flex;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 56px);
}
.head .label {
  margin-bottom: 18px;
}
.head h2 {
  font-size: var(--fs-h2);
}
.quiet {
  color: var(--gray-700);
}
.aside {
  max-width: 460px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--gray-900);
  display: grid;
  gap: 18px;
  justify-items: start;
}
@media (max-width: 1023px) {
  .head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- hero ---------- */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 50% 100%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 70%),
    radial-gradient(40% 30% at 30% 100%, color-mix(in srgb, var(--brand-green) 12%, transparent), transparent 70%),
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, #000 100%);
  mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, #000 100%);
}
.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-900);
  max-width: 100%;
}
.badge:not(.static):hover {
  color: var(--fg);
  background: var(--gray-100);
}
.hero-title {
  margin-top: 28px;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.055em;
}
.hero-title.sm {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-top: 16px;
}
.hero-title.xs {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-top: 16px;
}
.lead {
  max-width: 600px;
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--gray-900);
}
/* same 18px gap as the toggle under the .aside text on the home page */
.lead + .seg {
  display: flex;
  width: fit-content;
  margin-top: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-search {
  padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 7vw, 88px);
}
.page-hero {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px);
}
.page-hero.tight {
  padding-bottom: 32px;
}
.page-hero .dsearch {
  margin-top: 32px;
}
.cta {
  padding: clamp(64px, 10vw, 128px) clamp(16px, 4vw, 48px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.cta h1,
.cta h2 {
  font-size: var(--fs-h2);
}
@media (max-width: 639px) {
  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- domain search ---------- */
.dsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  max-width: 720px;
}
.dsearch.big {
  padding: 8px 8px 8px 20px;
}
.dsearch-icon {
  color: var(--gray-700);
  flex: none;
}
.dsearch input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  outline: none;
  font-size: 1rem;
  box-shadow: none !important;
  padding: 0 4px !important;
  appearance: none;
  -webkit-appearance: none;
}
.dsearch.big input {
  font-size: 1.125rem;
  height: 44px;
}
.dmsg {
  padding: 14px 16px;
  color: var(--gray-900);
  font-size: 0.9375rem;
}
@media (max-width: 639px) {
  .dsearch .btn {
    padding: 0 14px;
  }
}

/* ---------- plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
}
.plan:last-child {
  border-right: 0;
}
.plan.popular {
  background: var(--bg-2);
}
.plan h3 {
  font-size: 1.375rem;
}
.price {
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 8px;
}
.price small {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-900);
  letter-spacing: 0;
  margin-left: 4px;
}
.ticks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--gray-900);
}
.ticks svg {
  margin-top: 4px;
  color: var(--green);
}
.ticks li.inherit {
  grid-template-columns: 1fr;
  color: var(--fg);
  font-weight: 500;
}
@media (max-width: 899px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* plan carousel (every page but home): cards as wide as the home page's four, fewer plans stretch to fill, more scroll */
.carousel {
  position: relative;
  border-top: 1px solid var(--line);
}
.plans.scroll {
  display: flex;
  border-top: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 4px;
  margin-top: -4px;
}
.plans.scroll::-webkit-scrollbar {
  display: none;
}
.plans.scroll .plan {
  flex: 1 0 25%;
  scroll-snap-align: start;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.plans.scroll .plan:last-child {
  border-right: 0;
}
@media (max-width: 1023px) {
  .plans.scroll .plan {
    flex: 0 0 50%;
  }
}
@media (max-width: 639px) {
  .plans.scroll .plan {
    flex: 0 0 86%;
  }
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-strong);
  background: var(--bg);
  gap: 2px;
}
.seg.wrap {
  flex-wrap: wrap;
  border-radius: 14px;
}
.seg button,
.seg label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.seg button[aria-pressed='true'],
.seg input:checked + span {
  background: var(--fg);
  color: var(--bg);
}
.seg label {
  display: inline-flex;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.save {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}
.seg button[aria-pressed='true'] .save,
.seg input:checked + span .save {
  color: inherit;
  opacity: 0.8;
}

/* ---------- cells ---------- */
.cells {
  display: grid;
  border-top: 1px solid var(--line);
}
.cells.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cell {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 10px;
}
.cells.c3 .cell:nth-child(3n) {
  border-right: 0;
}
.cell h3 {
  font-size: 1.1875rem;
}
.cell .muted {
  font-size: 0.9375rem;
}
.cells + .pad {
  padding-top: 32px;
}
@media (max-width: 899px) {
  .cells.c3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cells .cell:nth-child(n) {
    border-right: 1px solid var(--line);
  }
  .cells .cell:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 559px) {
  .cells.c3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .cells.c3 .cell {
    border-right: 0;
  }
}

/* ---------- product window (portal preview) ---------- */
.window {
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}
.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.chrome .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
}
.org {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8590c;
}
.slash {
  color: var(--gray-500);
}
.strong {
  color: var(--fg);
  font-weight: 500;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 120px 70px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.rows li:last-child {
  border-bottom: 0;
}
.task {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.task b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task small {
  color: var(--gray-900);
}
@media (max-width: 719px) {
  .rows li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rows li > :nth-child(3) {
    display: none;
  }
  .rows li .status {
    grid-column: 1 / -1;
  }
}

/* ---------- status ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
  font-size: 0.875rem;
  white-space: nowrap;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
  flex: none;
}
.status.ok {
  color: var(--fg);
}
.status.ok .dot {
  background: var(--green-solid);
}
.status.info {
  color: var(--blue);
}
.status.info .dot {
  background: var(--blue);
}
.status.warn {
  color: var(--amber);
}
.status.warn .dot {
  background: var(--amber);
}
.status.err {
  color: var(--red);
}
.status.err .dot {
  background: var(--red);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-900);
  white-space: nowrap;
  vertical-align: middle;
}
.tag.ok {
  background: var(--green-bg);
  color: var(--green);
  box-shadow: none;
}
.tag.info {
  background: var(--blue-bg);
  color: var(--blue);
  box-shadow: none;
}
.tag.warn {
  background: var(--amber-bg);
  color: var(--amber);
  box-shadow: none;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gray-900);
}
.compare tbody th {
  font-weight: 500;
  color: var(--gray-900);
}
.compare td svg {
  color: var(--green);
}
.compare tr.group th {
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-700);
  font-weight: 500;
}
.compare {
  min-width: 560px;
}
.table {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--bg);
  overflow: hidden;
}
.table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-900);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr[data-href] {
  cursor: pointer;
}
.table tbody tr[data-href]:hover td {
  background: var(--bg-2);
}
.table .r {
  text-align: right;
}
.table.inv {
  box-shadow: none;
  border-radius: 0;
  margin-top: 24px;
}
.table.inv tfoot td {
  padding: 14px;
  border-top: 1px solid var(--line-strong);
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg-2);
  font-size: 0.9375rem;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  min-width: 0;
}
.field > span:first-child {
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.field small {
  color: var(--gray-900);
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
  transition: box-shadow 0.15s var(--ease);
}
/* our own chevron, inset from the edge like the text (the native arrow hugs the border) */
select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%238f8f8f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
select:not([multiple])::-ms-expand {
  display: none;
}
textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  box-shadow: inset 0 0 0 1px var(--gray-600);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
} /* no highlight when selected (17 Nov 2026) */
input[readonly] {
  background: var(--bg-2);
}
/* sliders, like the coming-soon carousel bars: one brand gradient spans the track, full strength
   up to the thumb and faint (22%) beyond it (--pct is set by site.js) */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 10px 0;
  border-radius: 999px;
  cursor: pointer;
  background:
    linear-gradient(to right, transparent var(--pct, 50%), color-mix(in srgb, var(--bg) 78%, transparent) var(--pct, 50%)), var(--gradient);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 2px var(--brand-blue),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 2px var(--brand-blue),
    0 2px 6px rgba(0, 0, 0, 0.3);
}
input[type='range']::-moz-range-track {
  background: transparent;
}
input[type='range']:focus-visible {
  outline-offset: 6px;
}
input[type='color'] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-top: 8px;
}
.check input {
  margin-top: 5px;
  accent-color: var(--fg);
}
.stack {
  display: grid;
  gap: 16px;
}
.stack.narrow {
  max-width: 420px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.row-in {
  display: flex;
  gap: 8px;
}
.row-in input {
  flex: 1;
}
.inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.grid2,
.grid3 {
  display: grid;
  gap: 16px;
}
.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid3.end {
  align-items: end;
}
@media (max-width: 899px) {
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-v {
    font-size: 1.375rem;
  }
}
.filter {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 16px;
}

/* ---------- notices ---------- */
.notice {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.notice .btn,
.notice form {
  margin-left: 8px;
  vertical-align: middle;
}
.notice.info {
  background: var(--blue-bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent);
}
.notice.ok {
  background: var(--green-bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent);
}
.notice.warn {
  background: var(--amber-bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 35%, transparent);
}
.notice.err {
  background: var(--red-bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent);
}

/* ---------- calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 899px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
}

.steps {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.steps .mono {
  color: var(--gray-700);
  font-size: 0.8125rem;
}
@media (max-width: 899px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 12px 0 8px;
}
.prose h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.prose p,
.prose li {
  color: var(--gray-900);
  margin-bottom: 12px;
}
.prose {
  padding-top: clamp(40px, 6vw, 72px);
}

/* ---------- order ---------- */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.order fieldset {
  border: 0;
  margin: 0 0 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.order legend {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.order legend .mono {
  font-size: 0.8125rem;
  color: var(--gray-700);
  font-weight: 400;
}
.order .label {
  margin-bottom: 10px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice-body {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition:
    box-shadow 0.15s var(--ease),
    background-color 0.15s var(--ease);
  height: 100%;
}
.choice:hover .choice-body {
  background: var(--bg-2);
}
.choice input:checked + .choice-body {
  box-shadow: inset 0 0 0 2px var(--fg);
  background: var(--bg-2);
}
.choice input:focus-visible + .choice-body {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.choice-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.choice-top small {
  color: var(--gray-900);
}
.dbox {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.dbox[hidden] {
  display: none;
}
.order-sum {
  position: sticky;
  top: calc(var(--nav-h) + var(--bar, 0px) + 20px);
  display: grid;
  gap: 14px;
}
.sum-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
}
.sum-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sum-lines li span:last-child {
  font-family: var(--font-mono);
  white-space: nowrap;
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}
.sum-total b {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
@media (max-width: 999px) {
  .order {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-sum {
    position: static;
  }
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(16px, 4vw, 48px) 32px;
  margin-bottom: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.foot-grid > div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.foot-grid a {
  font-size: 0.875rem;
  color: var(--gray-900);
}
.foot-grid a:hover {
  color: var(--fg);
}
.foot-grid .logo {
  margin-bottom: 8px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.theme {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.theme button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-900);
  font-size: 0.75rem;
  cursor: pointer;
}
.theme button[aria-pressed='true'] {
  background: var(--gray-200);
  color: var(--fg);
}
@media (max-width: 799px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
/* ---------- app shell ---------- */
.app {
  background: var(--bg-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.appbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.appbar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 60px;
  padding: 0 clamp(16px, 3vw, 24px);
  max-width: 1280px;
  margin: 0 auto;
  min-width: 0;
}
.appbar .slash {
  font-size: var(--fs-2xl);
  font-weight: 300;
}
.appbar .crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  color: var(--gray-900);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.appbar .crumbs a:hover {
  color: var(--fg);
}
.appbar .crumbs .strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar .actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}
.appbar .who {
  font-size: var(--fs-sm);
  color: var(--gray-900);
}
.app .logo-word {
  display: none;
}
@media (min-width: 640px) {
  .app .logo-word {
    display: block;
  }
}
.brand-chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-right: var(--sp-2);
  flex: none;
}
.brand-chip.lg {
  width: 40px;
  height: var(--h-md);
  border-radius: var(--r-md);
  font-size: var(--fs-xl);
  margin: 0;
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 0 clamp(8px, 2vw, 16px);
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  position: relative;
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-md);
  color: var(--gray-900);
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--fg);
}
.tabs a[aria-current] {
  color: var(--fg);
}
.tabs a[aria-current]::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--fg);
}
.app-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 24px) 64px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.page-head h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.page-head p {
  margin-top: var(--sp-2);
}
.page-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}
.h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin: var(--sp-8) 0 var(--sp-4);
}
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  min-width: 0;
}
.card h3 {
  margin-bottom: var(--sp-4);
}
.card > .notice:last-child {
  margin-bottom: 0;
}
.app-main > .grid2,
.app-main > .grid3 {
  margin-bottom: var(--sp-4);
}
.stat {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}
.stat-v {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.meter {
  display: grid;
  gap: var(--sp-2);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  flex-wrap: wrap;
}
.meter-top span:first-child {
  font-weight: 500;
}
.meter-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--gray-200);
  overflow: hidden;
}
.meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fg);
}
.meter.hot .meter-bar span {
  background: var(--amber);
}
.dl {
  display: grid;
  gap: 0;
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-lg);
}
.dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.dl > div:last-child {
  border-bottom: 0;
}
.dl dt {
  color: var(--gray-900);
}
.dl dt {
  flex: none;
}
.dl dd {
  margin: 0;
  text-align: right;
  overflow-wrap: break-word;
  min-width: 0;
}
.subtabs {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.subtabs a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-md);
  color: var(--gray-900);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg);
}
.subtabs a[aria-current] {
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
}
.subtabs a[aria-current] .muted {
  color: inherit;
  opacity: 0.7;
}
.app-main .table-wrap + .card,
.app-main .empty + .card {
  margin-top: var(--sp-4);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  font-size: var(--fs-lg);
}
.feed li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.feed li:last-child {
  border-bottom: 0;
}
.app-main > .feed {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-1) var(--sp-5);
}
@media (max-width: 599px) {
  .feed li {
    grid-template-columns: 1fr auto;
  }
  .feed li > :first-child {
    grid-column: 1 / -1;
  }
}
.paybar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--fg);
  margin-bottom: var(--sp-4);
}
.paybar b {
  font-size: var(--fs-2xl);
}
.inv-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.inv-head p:last-child {
  margin-top: var(--sp-2);
}
.thread {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.msg {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.msg.staff {
  box-shadow:
    inset 0 0 0 1px var(--blue),
    var(--shadow-card);
}
.msg .label {
  margin-bottom: var(--sp-2);
}
.bp {
  margin-top: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: var(--sp-2);
}
.viewas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--blue-bg);
  font-size: var(--fs-md);
  flex-wrap: wrap;
}
.appfoot {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: 20px clamp(16px, 3vw, 24px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  font-size: var(--fs-sm);
  color: var(--gray-900);
  border-top: 1px solid var(--line);
}
@media (max-width: 639px) {
  .hide-sm {
    display: none !important;
  }
  .app-main {
    padding-top: var(--sp-6);
  }
  .inv-head {
    grid-template-columns: 1fr;
  }
  .appbar .tag {
    display: none;
  }
}

/* ---------- auth ---------- */
.auth {
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 18% 8%, color-mix(in srgb, var(--brand-blue) 28%, transparent), transparent 62%),
    radial-gradient(50% 42% at 86% 92%, color-mix(in srgb, var(--brand-green) 18%, transparent), transparent 60%), var(--bg-2);
}
.auth-main {
  min-height: calc(100vh - 34px);
  display: grid;
  place-content: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-4);
}
.auth-card {
  width: min(400px, calc(100vw - 32px));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-menu);
  padding: var(--sp-8);
  display: grid;
  gap: var(--sp-4);
}
.auth-card h1 {
  font-size: 1.75rem;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 600;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.auth-card .notice {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
/* =====================================================================
   Signed-in readability: sans labels, sentence-case headers, tabular numbers.
   Mono stays for IDs and technical values (usernames, DNS, IPs).
   ===================================================================== */
.num {
  font-variant-numeric: tabular-nums;
}
.app .label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-900);
}
.app .table th {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-900);
  background: transparent;
  padding: 12px 16px;
}
.app .table td {
  padding: 14px 16px;
  font-size: 0.9375rem;
}
.app .table td .mono {
  font-size: 0.8125rem;
}
.app .stat-v {
  font-size: 1.875rem;
  letter-spacing: -0.03em;
}
.app .stat {
  padding: 20px;
}
.app .meter-top {
  font-size: 0.875rem;
}
.app .meter-top b {
  font-weight: 600;
}
.dom {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-900);
  margin-top: 2px;
}
.app .page-head h1 {
  font-size: clamp(1.625rem, 3vw, 2rem);
}
.app .h2 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-head h3 {
  margin: 0;
}
.card-head a {
  font-size: 0.875rem;
  color: var(--gray-900);
}
.card-head a:hover {
  color: var(--fg);
}

/* ---------- reseller shell ---------- */
.reseller .shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: calc(100vh - var(--tb, 0px));
}
.reseller > .viewas {
  flex: none;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  overflow-y: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.side-brand-text {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}
.side-brand-text b {
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-brand-text small {
  color: var(--gray-900);
  font-size: 0.8125rem;
}
.side-nav {
  display: grid;
  gap: 14px;
}
.nav-group {
  display: grid;
  gap: 2px;
}
.nav-label {
  padding: 6px 10px 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-900);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.nav-item:hover {
  background: var(--gray-100);
  color: var(--fg);
}
.nav-item[aria-current] {
  background: var(--gray-200);
  color: var(--fg);
  font-weight: 500;
}
.nav-item[aria-current] .nicon {
  color: var(--brand-blue);
}
.nicon {
  flex: none;
}
.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.nav-count.warn {
  background: var(--amber-bg);
  color: var(--amber);
}
.nav-count.info {
  background: var(--blue-bg);
  color: var(--blue);
}
.side-foot {
  margin-top: auto;
  display: grid;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.side-foot form {
  margin: 0;
}
.shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-900);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.topbar .crumbs a:hover {
  color: var(--fg);
}
.topbar .crumbs .strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .who {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--gray-900);
}
.reseller .app-main {
  max-width: 1240px;
  padding: 28px clamp(16px, 3vw, 32px) 64px;
  margin: 0;
}
.reseller .appfoot {
  max-width: none;
  margin: 0;
  padding-inline: clamp(16px, 3vw, 32px);
}
@media (max-width: 1023px) {
  .reseller .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar {
    display: none;
  }
  .side-brand {
    padding: 0 8px 0 0;
    margin: 0;
    border: 0;
    flex: none;
  }
  .side-brand-text {
    display: none;
  }
  .side-nav {
    display: flex;
    gap: 2px;
  }
  .nav-group {
    display: flex;
    gap: 2px;
  }
  .nav-label,
  .side-foot a {
    display: none;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    flex: none;
  }
  .side-foot {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
  }
  .topbar {
    top: 53px;
  }
}

/* ---------- dashboard ---------- */
.hello h1 {
  letter-spacing: -0.035em;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  overflow: hidden;
}
.kpi.feature {
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-green) 14%, transparent), transparent 60%), var(--bg);
}
.kpi.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient);
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.delta.up {
  color: var(--green);
}
.delta.down {
  color: var(--red);
}
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.dash > .col {
  display: grid;
  gap: 16px;
  min-width: 0;
}
@media (max-width: 1099px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
}
.quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bars {
  margin: 0;
}
.bars-plot {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 14px;
  align-items: end;
  height: 190px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line-strong);
}
.bars-grid {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.bars-ref {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px dashed var(--gray-700);
  z-index: 1;
  pointer-events: none;
}
.bars-ref span {
  position: absolute;
  right: 0;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 0.75rem;
  color: var(--gray-900);
}
.bar-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  outline: none;
  cursor: default;
}
.bar {
  display: block;
  width: min(44px, 70%);
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--brand-blue) 55%, var(--bg));
  transition: background-color 0.15s var(--ease);
}
.bar.now {
  background: var(--brand-blue);
}
.bar-col:hover .bar,
.bar-col:focus-visible .bar {
  background: var(--brand-blue);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px var(--brand-blue);
}
.bars-x {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--gray-900);
  text-align: center;
}
.tip {
  position: fixed;
  z-index: 300;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
  box-shadow: var(--shadow-menu);
}
.hbars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.hb-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.hb-track {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}
.hb-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}
/* progress and meters: one brand gradient spans the track, faint past the value (coming-soon bars) */
.prog,
.app .meter-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(to right, transparent var(--pct, 0%), color-mix(in srgb, var(--bg) 80%, transparent) var(--pct, 0%)), var(--gradient);
}
.app .meter-bar span {
  display: none;
}
.app .meter.hot .meter-bar {
  background: linear-gradient(to right, var(--amber) var(--pct, 0%), var(--gray-200) var(--pct, 0%));
}

.todo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.todo li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.todo li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.todo li:first-child {
  padding-top: 0;
}
.todo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.todo .dot.err {
  background: var(--red);
}
.todo .dot.info {
  background: var(--blue);
}
.todo small {
  display: block;
  color: var(--gray-900);
  font-size: 0.8125rem;
}
.allclear {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--gray-900);
}
.allclear .ok-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-bg);
  color: var(--green);
  flex: none;
}

.checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}
.checklist li.done {
  color: var(--gray-900);
  text-decoration: line-through;
  text-decoration-color: var(--gray-600);
}

.avatar {
  --h: 210;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: hsl(var(--h) 42% 42%);
  letter-spacing: 0.02em;
}
.avatar.lg {
  width: 52px;
  height: 52px;
  font-size: 1.0625rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--gray-900);
}
.pill.ok {
  background: var(--green-bg);
  color: var(--green);
}
.pill.warn {
  background: var(--amber-bg);
  color: var(--amber);
}
.pill.err {
  background: var(--red-bg);
  color: var(--red);
}
.pill.info {
  background: var(--blue-bg);
  color: var(--blue);
}
.mini {
  width: 120px;
}
.mini .meter-bar {
  height: 5px;
  margin-top: 6px;
}

/* toolbar: filters on the left, actions on the right */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.toolbar form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  min-width: 220px;
  margin: 0;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.875rem;
  color: var(--gray-900);
}
.chips a:hover {
  color: var(--fg);
}
.chips a[aria-current] {
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
}
.chips a .n {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

/* dialogs */
dialog.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-menu);
}
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
dialog.modal[open]:not(:modal) {
  position: relative;
  margin: 0 0 24px;
  width: 100%;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}
.modal-head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.modal-body {
  padding: 16px 24px 24px;
  display: grid;
  gap: 16px;
}
.modal-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-900);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* packages */
.pkg {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pkg.add {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background: transparent;
  border: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--gray-900);
  font: inherit;
}
.pkg.add:hover {
  color: var(--fg);
  background: var(--bg);
}
.pkg.add .plus {
  font-size: 1.75rem;
  line-height: 1;
}

/* detail pages: main column plus a side column of actions */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1099px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }
}
.danger {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent);
}
.danger h3 {
  color: var(--red);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 899px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.days {
  font-size: 0.8125rem;
}

/* settings layout: description left, fields right */
.settings {
  display: grid;
  gap: 0;
}

/* support: activity, notes, tickets */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline .who-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--gray-200);
  color: var(--gray-900);
}
.timeline .who-dot.you {
  background: var(--blue-bg);
  color: var(--blue);
}
.timeline small {
  display: block;
  color: var(--gray-900);
  font-size: 0.8125rem;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.toggle-row:first-child {
  padding-top: 0;
}
.toggle-row b {
  display: block;
  font-weight: 500;
}
.toggle-row small {
  color: var(--gray-900);
  font-size: 0.8125rem;
}
.switch {
  position: relative;
  width: 40px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-400);
  cursor: pointer;
  flex: none;
  padding: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s var(--ease);
}
.switch[aria-checked='true'] {
  background: var(--brand-blue);
}
.switch[aria-checked='true']::after {
  transform: translateX(16px);
}
.log {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--gray-900);
}
.site-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-thumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  background: var(--gradient);
  opacity: 0.85;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
}

.app .table.flat {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.app .table.flat td:first-child,
.app .table.flat th:first-child {
  padding-left: 0;
}
.app .table.flat td:last-child,
.app .table.flat th:last-child {
  padding-right: 0;
}
.card details > summary {
  list-style: none;
}
.card details > summary::-webkit-details-marker {
  display: none;
}
.card details > summary h3::after {
  content: ' +';
  color: var(--gray-700);
  font-weight: 400;
}
.card details[open] > summary h3::after {
  content: ' –';
}
.sub.warn {
  color: var(--amber);
}
.sub.err {
  color: var(--red);
}
.page-actions .status {
  margin-right: 4px;
}
.toolbar > .notice {
  margin: 0;
  flex: 1;
}
.app .choices .choice-body {
  background: var(--bg);
}
.app .choice input:checked + .choice-body {
  box-shadow: inset 0 0 0 2px var(--brand-blue);
}
.kpis .stat .label,
.facts .stat .label {
  margin-bottom: 2px;
}
.app .feed li {
  grid-template-columns: 100px 1fr auto;
}
.switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.app-main > .detail .subtabs {
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bars-ref span {
  right: auto;
  left: 0;
}
.timeline .who-dot.ok {
  background: var(--green-bg);
  color: var(--green);
}
.php-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.php-row .field {
  flex: 1;
}

/* reseller logos sit on a white tile so dark logos read in dark mode too */
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  padding: 3px 8px;
  border-radius: 8px;
  background: #fff;
}
.brand-logo.lg {
  height: 64px;
  max-width: 220px;
  padding: 6px 12px;
}
.brand-logo.side {
  height: 40px;
  max-width: 64px;
  padding: 3px 5px;
}
.side-brand {
  padding: 10px 10px 20px;
}
.side-brand .product {
  margin-left: 10px;
}
.side-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.side-account:hover {
  background: var(--gray-100);
}
.side-account .brand-chip.lg {
  width: 34px;
  height: 34px;
  font-size: 0.9375rem;
  margin: 0;
}
@media (max-width: 1023px) {
  .side-account {
    display: none;
  }
  .side-brand .product {
    display: none;
  }
  .side-brand .logo-word {
    display: none;
  }
}
.shell-main {
  overflow-x: clip;
}
.table.inv {
  min-width: 420px;
}

.plan {
  border-bottom: 1px solid var(--line);
}
.products .product {
  transition: background-color 0.15s var(--ease);
}
.products .product:hover {
  background: var(--bg-2);
}
.products h3 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.products h3 small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-900);
  letter-spacing: 0;
  margin-left: 2px;
}
.products .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}
.kinds {
  margin-bottom: 18px;
}
.kinds button[aria-selected='true'] {
  background: var(--fg);
  color: var(--bg);
}
.js-kinds .kind-group:not(.on) {
  display: none;
}
.kind-group + .kind-group {
  margin-top: 18px;
}
.js-kinds .kind-group + .kind-group {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.products h3 {
  color: var(--fg);
}
.appfoot {
  align-items: center;
}
.appfoot .row {
  gap: 16px;
}
/* =====================================================================
   Viewport layout for the reseller portal (desktop): the page never scrolls.
   Top bar, content and bottom bar fill the height beside the sidebar; each
   page puts its content in a .fill region and the components inside it scroll.
   ===================================================================== */
.fill {
  min-width: 0;
}
.fgrid {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-card > .card-head {
  padding: 16px 20px 0;
  margin-bottom: 8px;
}
.table-card .table {
  box-shadow: none;
  border-radius: 0;
}
.table-card .empty {
  margin: 0 20px 20px;
}
.table-card .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
}
@media (min-width: 1024px) and (min-height: 620px) {
  /* the page is exactly one screen; bars on top (test banner, viewing as) take their room from the shell */
  .app.reseller {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
  .reseller .shell {
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }
  .reseller .side {
    height: auto;
    min-height: 0;
  }
  .reseller .shell-main {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .reseller .topbar {
    position: static;
  }
  .reseller .app-main {
    max-width: none;
    width: 100%;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .reseller .app-main:not(:has(.fill)) {
    overflow: auto;
  }
  .reseller .app-main > .page-head {
    margin-bottom: 16px;
  }
  .reseller .app-main > .notice {
    margin-bottom: 12px;
    flex: none;
  }
  .reseller .app-main > .facts,
  .reseller .app-main > .kpis,
  .reseller .app-main > .toolbar {
    flex: none;
    margin-bottom: 16px;
  }
  .reseller .fill {
    flex: 1;
    min-height: 0;
  }
  .reseller .fill.scroll,
  .reseller .scroll {
    overflow: auto;
    min-height: 0;
  }
  .reseller .pane {
    min-height: 0;
    height: 100%;
  }
  .reseller .fgrid {
    height: 100%;
    min-height: 0;
  }
  .reseller .fgrid > * {
    min-height: 0;
  }
  .reseller .table-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }
  .reseller .table-card > .table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  .reseller .appfoot {
    padding-block: 10px;
  }
  .reseller .detail {
    height: 100%;
    align-items: stretch;
  }
  .reseller .detail > * {
    min-height: 0;
    overflow: auto;
  }
  .reseller .bars {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .reseller .bars-plot {
    flex: 1;
    height: auto;
    min-height: 120px;
  }
  .reseller .card.chart {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .reseller .card.chart > .bars {
    flex: 1;
    min-height: 0;
  }
}
/* dashboard grid: KPIs on top, then two rows of components that each scroll */
.card.pane {
  padding: 18px 20px;
}
.card.pane > .card-head {
  flex: none;
  margin-bottom: 12px;
}
.app-main .subtabs {
  margin-bottom: 16px;
}

/* sign-in: everything centred except the field labels */
.auth-card {
  width: min(440px, calc(100vw - 32px));
  padding: 36px 36px 30px;
  gap: 20px;
}
.auth-brand {
  justify-content: center;
  margin: 0 0 4px;
}
.auth-brand .brand-logo.lg {
  margin: 0 auto;
}
.auth-head {
  text-align: center;
  display: grid;
  gap: 6px;
}
.auth-foot {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-900);
  line-height: 1.7;
  margin: 0;
}
.auth-current {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-900);
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  margin: 0;
}
.auth-card .btn.wide {
  justify-self: stretch;
}
.auth-main > .muted.center {
  text-align: center;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}
.auth-row .check {
  margin: 0;
  font-size: 0.875rem;
  align-items: center;
}
.auth-row .check input {
  margin: 0;
}
.auth-new {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--gray-900);
}
.auth-new .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.auth-foot button.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.todo.links li {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.todo.links li:last-child {
  border-bottom: 0;
}
.todo.links a {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  margin: 0 -6px;
  border-radius: 8px;
}
.todo.links a:hover {
  background: var(--gray-100);
}
.todo .chev {
  color: var(--gray-700);
  font-size: 1.25rem;
  line-height: 1;
}
.meter-top span:first-child {
  white-space: nowrap;
}
.todo b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-account {
  overflow: hidden;
}
.side-account .brand-logo.side {
  flex: none;
  height: 34px;
  width: auto;
  max-width: 64px;
}
.field {
  align-content: start;
}
.todo li > div {
  min-width: 0;
}
.todo li b {
  display: block;
}

/* ---------- control panel (hosting account) ---------- */
.subtabs.scrollx {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
.subtabs.scrollx::-webkit-scrollbar {
  display: none;
}
.subtabs a {
  white-space: nowrap;
}
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel > .notice {
  flex: none;
}
.panel-body {
  min-width: 0;
}
.psec {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.psec > * {
  min-width: 0;
}
.psec.two {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
}
.psec.one {
  grid-template-columns: minmax(0, 1fr);
}
.psec.ov {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.psec.ov > .usage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.psec.ov > .usage > .card {
  padding: 16px 18px;
}
.psec.web {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}
.psec.web > .site-strip {
  grid-column: 1 / -1;
  padding: 14px 18px;
}
.pstack {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.tool {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    background-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.tool:hover {
  background: var(--gray-100);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.tool .nicon {
  flex: none;
  color: var(--brand-blue);
  width: 22px;
  height: 22px;
}
.tool b {
  display: block;
  font-weight: 500;
}
.tool small {
  display: block;
  color: var(--gray-900);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool > span {
  min-width: 0;
}
.acct-head h1 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--gray-900);
  flex: none;
}
.pager button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--fg);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 1099px) {
  .psec.two,
  .psec.ov,
  .psec.web {
    grid-template-columns: minmax(0, 1fr);
  }
  .psec.ov > .usage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) and (min-height: 620px) {
  .reseller .fill > .panel {
    height: 100%;
  }
  .reseller .panel-body {
    flex: 1;
    min-height: 0;
  }
  .reseller .psec {
    height: 100%;
    min-height: 0;
  }
  .reseller .psec.ov {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .reseller .psec.web {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .reseller .psec.two,
  .reseller .psec.one {
    grid-template-rows: minmax(0, 1fr);
  }
  .reseller .pstack,
  .reseller .ov-side,
  .reseller .tools-card {
    overflow: auto;
    min-height: 0;
  }
  .reseller .ov-side {
    display: grid;
    gap: 16px;
    align-content: start;
  }
  .reseller .pstack .table-card {
    height: auto;
  }
  .reseller .pstack .table-card > .table-wrap {
    flex: none;
  }
}
/* key/value rows: a long value moves under its label instead of breaking mid-word */
.dl > div {
  flex-wrap: wrap;
  row-gap: 2px;
}
.dl dd {
  margin-left: auto;
}
.dl dd .mono,
.dl dd.mono {
  white-space: nowrap;
}
.brand-logo.top {
  height: 40px;
  max-width: 170px;
}
.side-brand:has(.brand-logo.top) {
  padding-bottom: 16px;
}
.side-account .avatar {
  width: 34px;
  height: 34px;
}
/* =====================================================================
   Public site visuals: tech logos, marquee, product pictures, reveals
   ===================================================================== */
.tech {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  color: var(--gray-900);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.product:hover .tech {
  background: var(--brand);
}
@keyframes mq {
  to {
    transform: translateX(calc(-50% - 22px));
  }
}

.term,
.inbox {
  border-radius: var(--radius-lg);
  background: #0b0b0c;
  color: #e4e4e4;
  box-shadow:
    var(--shadow-menu),
    0 30px 60px -30px rgba(49, 112, 206, 0.35);
  overflow: hidden;
  font-size: 0.875rem;
}
.inbox {
  background: var(--bg);
  color: var(--fg);
}
.term pre {
  margin: 0;
  padding: 16px 18px 20px;
  font-size: 0.8125rem;
  line-height: 1.8;
  min-height: 190px;
  white-space: pre-wrap;
}
.term pre span {
  display: block;
  opacity: 0;
  animation: tline 0.01s forwards;
}
.term .t1 {
  animation-delay: 0.3s;
}
.term .t2 {
  animation-delay: 1.1s;
  color: #8f8f8f;
}
.term .t3 {
  animation-delay: 2s;
}
.term .t4 {
  animation-delay: 2.9s;
  color: var(--brand-green);
}
.term .t5 {
  animation-delay: 3.3s;
  color: var(--brand-green);
}
.term .t6 {
  animation-delay: 3.9s;
}
@keyframes tline {
  to {
    opacity: 1;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.mail {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  animation: mailin 0.5s var(--ease) forwards;
  animation-delay: calc(0.4s + (3 - var(--i)) * 0.7s);
}
.mail:last-child {
  border-bottom: 0;
}
.mail b {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
}
.mail small {
  color: var(--gray-900);
  font-size: 0.8125rem;
}
@keyframes mailin {
  to {
    opacity: 1;
    transform: none;
  }
}

/* web hosting: a site going live, one step at a time, same rhythm as the inbox */
.launch .url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--fg);
}
.launch .url svg {
  color: var(--green);
}
@keyframes lfill {
  to {
    width: 100%;
  }
}
/* once the steps are done, they make way for the site itself (its own beach colours, same in both themes) */
/* site.js fades the finished site out, then swaps in a fresh copy so every animation starts over */
@keyframes lout {
  to {
    opacity: 0;
  }
}
@keyframes lin {
  to {
    opacity: 1;
    transform: none;
  }
}

.flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
@keyframes flowdot {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}
@media (max-width: 560px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.pay-logos .tech {
  width: 30px;
  height: 20px;
}
.paystack {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--gray-900);
}
.pay-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* sections fade up as they come into view */
.js-reveal .band:not(.hero) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js-reveal .band.in {
  opacity: 1;
  transform: none;
}
.js-reveal .band.in.settled {
  transition: none;
}
.plan {
  transition: transform 0.25s var(--ease);
}
.plan:hover {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .term pre span,
  .mail {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .js-reveal .band {
    opacity: 1 !important;
    transform: none !important;
  }
}
.term pre {
  white-space: normal;
}
.term pre span {
  white-space: pre;
}

/* file manager */
.fm .card-head {
  flex-wrap: wrap;
  gap: 10px;
}
.fm-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  min-width: 0;
}
.fm-path a {
  color: var(--gray-900);
}
.fm-path a:hover {
  color: var(--fg);
}
.fm-path span {
  color: var(--gray-600);
}
.fm-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fm-up {
  cursor: pointer;
}
.fm-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.fm-ico {
  flex: none;
  color: var(--gray-900);
}
.fm-ico.dir {
  color: var(--accent, var(--blue));
}
.fm-acts {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}
.fm td:last-child {
  text-align: right;
}
.fm-msg {
  margin: 0 20px 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--gray-100);
}
.fm-msg.err {
  color: var(--red);
  background: var(--red-bg);
}
.fm-where {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fm .table td {
  padding-top: 6px;
  padding-bottom: 6px;
}
.fm .table .btn.sm {
  height: 28px;
}
.fm.dropping {
  box-shadow: inset 0 0 0 2px var(--accent, var(--blue));
}
.fm-edit {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.fm-edit h3.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
}
.fm-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.fm-editor textarea {
  flex: 1;
  min-height: 320px;
  width: 100%;
  resize: none;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  color: var(--fg);
}
.fm-edit-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
@media (min-width: 1024px) and (min-height: 620px) {
  .reseller .fm-editor textarea {
    min-height: 0;
  }
  .reseller .fm-edit {
    height: 100%;
  }
}

.fm-monaco {
  flex: 1;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.fm-editor .row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fm-status .bad {
  color: var(--red);
}
.fm-status .good {
  color: var(--green);
}
.fm-status .dirty {
  color: var(--amber);
}
@media (min-width: 1024px) and (min-height: 620px) {
  .reseller .fm-monaco {
    min-height: 0;
  }
}

/* ---------- webmail: one screen, Gmail-style, in the site's tokens ---------- */
.webmail {
  height: 100vh;
  overflow: hidden;
  background: var(--bg-2);
}
#wm {
  height: 100vh;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}
.wm-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 1fr;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4) 0 var(--sp-2);
}
.wm-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  color: var(--fg);
}
.wm-brand .brand-logo {
  max-height: 30px;
  max-width: 150px;
  object-fit: contain;
}
.wm-search {
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  padding: 0 var(--sp-2) 0 var(--sp-1);
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.wm-search:focus-within {
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.wm-sic {
  display: grid;
  place-items: center;
  width: 40px;
  color: var(--gray-900);
}
.wm-top .wm-search input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  flex: 1;
  height: var(--h-touch);
  background: none;
  box-shadow: none;
  padding: 0 var(--sp-2);
  font-size: 1rem;
}
.wm-search input::-webkit-search-cancel-button {
  display: none;
}
.wm-acct {
  justify-self: end;
  position: relative;
}
.wm-me {
  border: 0;
  background: none;
  padding: var(--sp-1);
  border-radius: 50%;
  cursor: pointer;
}
.wm-me:hover {
  background: var(--gray-100);
}
.wm-av {
  width: 32px;
  height: var(--h-sm);
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: var(--fs-md);
  color: #fff;
  background: hsl(var(--h, 210) 45% 46%);
}
.wm-pop {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 50;
  width: 300px;
  background: var(--bg);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-menu);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.wm-pop-who {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.wm-pop-who .wm-av {
  width: 40px;
  height: var(--h-md);
  font-size: 1rem;
}
.wm-pop-get {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.wm-pop-get [hidden] {
  display: none;
}
@media (max-width: 760px) {
  .wm-pop-phone {
    display: none !important;
  }
} /* on a phone, just Install */
/* storage is the account menu's footer: full width, under a hairline */
.wm-pop .wm-storage {
  align-items: center;
  margin: 2px calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4));
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  background: var(--gray-100);
}
.wm-pop .wm-storage:hover {
  background: var(--gray-200);
}
.wm-pop .wm-storage > .ic {
  margin-top: 0;
}
.wm-pop-who small {
  display: block;
  color: var(--gray-900);
  font-size: var(--fs-sm);
  word-break: break-all;
}
.wm-theme {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--gray-100);
}
.wm-theme button {
  flex: 1;
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  padding: var(--sp-2);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--gray-900);
  cursor: pointer;
}
.wm-theme button[aria-pressed='true'] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-card);
}
.wm-keys-hint {
  font-size: var(--fs-sm);
  color: var(--gray-900);
}
.wm-out {
  display: flex;
  align-items: center;
  justify-self: stretch;
  height: var(--h-md);
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-md);
}
.wm-out:hover {
  background: var(--gray-100);
}
kbd {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 1px var(--sp-2);
  border-radius: var(--r-xs);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--bg);
}

.wm-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 0;
}
.wm-nav {
  padding: var(--sp-2) var(--sp-3) var(--sp-4) var(--sp-2);
  overflow-y: auto;
}
.wm-compose-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--h-row);
  padding: 0 var(--sp-6) 0 var(--sp-4);
  margin: 2px 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--blue-bg);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.wm-compose-btn:hover {
  box-shadow: var(--shadow-menu);
}
.wm-f {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 34px;
  padding: 0 var(--sp-4) 0 var(--sp-4);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  margin-left: calc(-1 * var(--sp-2));
  color: var(--fg);
  font-size: var(--fs-md);
}
.wm-f:hover {
  background: var(--gray-200);
}
.wm-f.on {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 600;
}
.wm-f.has span {
  font-weight: 600;
}
.wm-f b,
.wm-f small {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.wm-f small {
  font-weight: 400;
  color: var(--gray-900);
}
.wm-f .ic {
  flex: none;
}

.wm-main {
  margin: 0 var(--sp-4) var(--sp-4) 0;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.wm-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0 var(--sp-2) 0 var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.wm-acts {
  display: flex;
  gap: 2px;
}
.wm-pager {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-pager span {
  margin-right: var(--sp-2);
}
.wm-ib {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--gray-900);
  cursor: pointer;
}
.wm-ib:hover:not(:disabled) {
  background: var(--gray-200);
  color: var(--fg);
}
.wm-ib:disabled {
  opacity: 0.35;
  cursor: default;
}
.wm-check {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  cursor: pointer;
}
.wm-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.wm-view {
  overflow-y: auto;
  min-height: 0;
  outline: none;
}
.wm-empty {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: var(--gray-900);
}
.wm-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-md);
  color: var(--gray-900);
  background: var(--gray-100);
}
.wm-banner button {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wm-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px 32px minmax(120px, 200px) minmax(0, 1fr) 24px 76px;
  align-items: center;
  height: var(--h-md);
  padding: 0 var(--sp-3) 0 var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md);
  cursor: pointer;
  background: var(--bg-2);
  color: var(--gray-900);
}
.wm-row.unread {
  background: var(--bg);
  color: var(--fg);
}
.wm-row.unread .wm-from,
.wm-row.unread .wm-subj,
.wm-row.unread .wm-date {
  font-weight: 700;
}
.wm-row:hover {
  box-shadow:
    inset 1px 0 0 var(--line-strong),
    inset -1px 0 0 var(--line-strong),
    0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.wm-row.sel {
  background: var(--blue-bg);
}
.wm-row.cur::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
}
.wm-star {
  display: grid;
  place-items: center;
  width: 32px;
  height: var(--h-sm);
  border: 0;
  background: none;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 50%;
}
.wm-star .ic {
  width: 18px;
  height: 18px;
}
.wm-star:hover {
  color: var(--fg);
}
.wm-star.on {
  color: #e8a700;
}
.wm-star.on .ic path {
  fill: currentColor;
}
.wm-from {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: var(--sp-3);
}
.wm-n {
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-draft {
  color: var(--red);
  font-weight: 500;
}
.wm-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.wm-subj {
  color: var(--fg);
}
.wm-row:not(.unread) .wm-subj {
  color: inherit;
}
.wm-snip {
  color: var(--gray-900);
  font-weight: 400;
}
.wm-chip {
  display: inline-block;
  font-size: var(--fs-xxs);
  padding: 1px var(--sp-2);
  margin-right: var(--sp-2);
  border-radius: var(--r-xs);
  background: var(--gray-200);
  color: var(--gray-900);
  font-weight: 500;
  vertical-align: 1px;
}
.wm-att {
  color: var(--gray-900);
}
.wm-att .ic {
  width: 16px;
  height: 16px;
}
.wm-date {
  text-align: right;
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.wm-hover {
  display: none;
  position: absolute;
  right: 8px;
  top: 2px;
  background: inherit;
  gap: 0;
}
.wm-row:hover .wm-hover {
  display: flex;
}
.wm-row:hover .wm-date {
  visibility: hidden;
}

.wm-thread {
  padding: var(--sp-5) var(--sp-6) var(--sp-8) var(--sp-6);
  max-width: 980px;
}
.wm-thread h1 {
  font-size: var(--fs-3xl);
  font-weight: 400;
  margin: 0 0 var(--sp-4) var(--sp-12);
  line-height: 1.35;
}
.wm-msg {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0;
}
.wm-mh {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: var(--sp-2);
  align-items: start;
  cursor: pointer;
}
.wm-mh .wm-av {
  width: 40px;
  height: var(--h-md);
  font-size: 1rem;
}
.wm-mwho {
  min-width: 0;
  font-size: var(--fs-md);
  line-height: 1.45;
}
.wm-addr {
  color: var(--gray-900);
  font-size: var(--fs-sm);
}
.wm-to,
.wm-sn {
  display: block;
  color: var(--gray-900);
  font-size: var(--fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-msg.open .wm-sn,
.wm-msg:not(.open) .wm-to {
  display: none;
}
.wm-mdate {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--gray-900);
  white-space: nowrap;
}
.wm-mdate .ic {
  width: 15px;
  height: 15px;
}
.wm-mb {
  display: none;
  padding: var(--sp-3) 0 var(--sp-1) var(--sp-12);
}
.wm-msg.open .wm-mb {
  display: block;
}
.wm-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.wm-text a {
  color: var(--blue);
  text-decoration: underline;
}
.wm-quote {
  color: var(--gray-900);
}
.wm-ext {
  font-size: var(--fs-sm);
  color: var(--amber);
  background: var(--amber-bg);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius);
  margin-bottom: var(--sp-2);
}
.wm-atts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.wm-file {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 240px;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.wm-file > .ic {
  color: var(--red);
  flex: none;
}
.wm-file div {
  min-width: 0;
  flex: 1;
}
.wm-file b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-file small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-file > span {
  display: flex;
}
.wm-replyrow {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: var(--sp-5) 0 0 var(--sp-12);
}
.wm-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-4) 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 500;
  cursor: pointer;
}
.wm-btn:hover {
  background: var(--gray-100);
}
.wm-btn .ic {
  width: 18px;
  height: 18px;
}

.wm-dock {
  position: fixed;
  right: 16px;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  pointer-events: none;
}
.wm-compose {
  pointer-events: auto;
  width: 520px;
  height: min(560px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--line);
  overflow: hidden;
}
.wm-compose.min {
  height: var(--h-md);
  width: 300px;
}
.wm-compose.max {
  position: fixed;
  inset: 6vh 8vw;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
}
.wm-compose.drop {
  box-shadow:
    0 0 0 2px var(--blue),
    0 8px 40px rgba(0, 0, 0, 0.28);
}
.wm-ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-md);
  padding: 0 var(--sp-2) 0 var(--sp-4);
  background: var(--gray-100);
  cursor: pointer;
  flex: none;
}
.wm-ch b {
  font-size: var(--fs-md);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-ch span {
  display: flex;
}
.wm-ch .wm-ib {
  width: var(--h-sm);
  height: var(--h-sm);
}
@media (max-width: 760px) {
  .webmail .wm-ch .wm-ib {
    width: var(--h-touch);
    height: var(--h-touch);
  }
}
.wm-ch .ic {
  width: 16px;
  height: 16px;
}
.wm-cbody {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 var(--sp-4);
}
.wm-compose.min .wm-cbody {
  display: none;
}
.wm-cf {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md);
  color: var(--gray-900);
}
.wm-cf[hidden] {
  display: none;
}
.wm-compose .wm-cf input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  flex: 1;
  height: var(--h-md);
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: var(--fs-md);
  color: var(--fg);
}
.wm-cc-btn {
  min-width: var(--h-sm);
  min-height: var(--h-sm);
  padding: 0 var(--sp-2);
  border: 0;
  background: none;
  color: var(--gray-900);
  font: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .wm-cc-btn {
    min-height: var(--h-touch);
  }
}
.wm-cc-btn:hover {
  color: var(--fg);
  text-decoration: underline;
}
.wm-cbody textarea {
  flex: 1;
  min-height: 120px;
  border: 0;
  resize: none;
  padding: var(--sp-3) 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--fg);
  outline: none;
}
.wm-catts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.wm-catts:empty {
  display: none;
}
.wm-catt {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  background: var(--gray-100);
  font-size: var(--fs-sm);
}
.wm-catt b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--blue);
}
.wm-catt small {
  color: var(--gray-900);
  margin-right: auto;
}
.wm-catt .wm-ib {
  width: 26px;
  height: 26px;
}
.wm-catt .ic {
  width: 14px;
  height: 14px;
}
.wm-cfoot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0 var(--sp-4);
  flex: none;
}
.wm-send {
  height: 38px;
  padding: 0 var(--sp-6);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-right: var(--sp-2);
}
.wm-send:hover {
  filter: brightness(1.08);
}
.wm-send:disabled {
  opacity: 0.6;
}
.wm-cstat {
  font-size: var(--fs-xs);
  color: var(--gray-900);
  margin-right: auto;
}

.wm-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  border-radius: var(--r-sm);
  background: #1f1f1f;
  color: #f2f2f2;
  font-size: var(--fs-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.wm-toast[hidden] {
  display: none;
}
.wm-toast button[data-act='undo'] {
  border: 0;
  background: none;
  color: #8ab4f8;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: var(--sp-2);
}
.wm-toast .wm-ib {
  color: #c4c4c4;
}
.wm-toast .wm-ib:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.wm-keys {
  border: 0;
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-6);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-menu);
  width: min(520px, calc(100vw - 32px));
}
.wm-keys::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.wm-keys h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}
.wm-keys dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-md);
}
.wm-keys dd {
  margin: 0;
  color: var(--gray-900);
}

@media (max-width: 900px) {
  .wm-top {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }
  .wm-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-nav {
    position: fixed;
    z-index: 55;
    top: 64px;
    bottom: 0;
    left: 0;
    width: 260px;
    background: var(--bg-2);
    transform: translateX(-100%);
    transition: transform 0.2s var(--ease);
    box-shadow: var(--shadow-menu);
  }
  .wm-nav.open {
    transform: none;
  }
  .wm-main {
    margin: 0 var(--sp-2) var(--sp-2);
  }
  .wm-row {
    grid-template-columns: 32px 28px minmax(0, 1fr) 62px;
    grid-template-rows: auto auto;
    height: auto;
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-1);
    row-gap: 2px;
  }
  .wm-row .wm-check {
    grid-row: 1 / 3;
  }
  .wm-row .wm-star {
    grid-row: 1 / 3;
  }
  .wm-row .wm-line {
    grid-column: 3 / 5;
  }
  .wm-row .wm-att {
    display: none;
  }
  .wm-row .wm-date {
    grid-column: 4;
    grid-row: 1;
  }
  .wm-hover {
    display: none !important;
  }
  .wm-thread {
    padding: var(--sp-4);
  }
  .wm-thread h1 {
    margin-left: 0;
  }
  .wm-mb,
  .wm-replyrow {
    padding-left: 0;
    margin-left: 0;
  }
  .wm-dock {
    right: 0;
    left: 0;
  }
  .wm-compose:not(.min) {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
  }
}
@media (max-width: 560px) {
  .wm-top {
    gap: var(--sp-1);
    padding: 0 var(--sp-2) 0 var(--sp-1);
  }
  .wm-brand .brand-logo {
    max-width: 90px;
  }
  .wm-search {
    height: var(--h-md);
  }
  .wm-pager span {
    display: none;
  }
}

/* domain search results, GoDaddy-style: one big answer, then the rest streaming in */
.dx {
  display: grid;
  gap: 22px;
  text-align: left;
  margin-top: 18px;
}
.dx-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.dx-hero.available {
  box-shadow:
    0 0 0 1.5px var(--green-solid),
    var(--shadow-card);
}
.dx-hero.taken,
.dx-hero.unknown {
  grid-template-columns: minmax(0, 1fr) auto;
}
.dx-ok {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
}
.dx-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-900);
}
.dx-hero.available .dx-kicker {
  color: var(--green);
}
.dx-name {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.dx-hero.taken .dx-name {
  color: var(--gray-900);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.dx-hero.pending {
  grid-template-columns: auto 1fr;
}
.dx-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--gray-300);
  border-top-color: var(--accent);
  animation: dxspin 0.8s linear infinite;
}
@keyframes dxspin {
  to {
    transform: rotate(360deg);
  }
}
.dx-sec h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dx-list {
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.dx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 12px 6px 18px;
  border-top: 1px solid var(--line);
  animation: dxin 0.25s var(--ease);
}
.dx-row:first-child {
  border-top: 0;
}
.dx-row .btn {
  justify-self: end;
}
.dx-n {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dx-row.taken .dx-n {
  color: var(--gray-900);
}
.dx-p {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dx-sk {
  width: 70px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-200), var(--gray-100), var(--gray-200));
  background-size: 200% 100%;
  animation: dxsk 1.2s linear infinite;
}
@keyframes dxsk {
  to {
    background-position: -200% 0;
  }
}
@keyframes dxin {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.dx-more {
  display: inline-block;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .dx-hero,
  .dx-hero.taken,
  .dx-hero.unknown {
    grid-template-columns: minmax(0, 1fr);
  }
  .dx-ok {
    display: none;
  }
  .dx-hero .btn {
    justify-self: stretch;
  }
  .dx-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dx-row .dx-p {
    grid-row: 2;
  }
  .dx-row .btn {
    grid-row: 1 / 3;
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dx-spin,
  .dx-sk,
  .dx-row {
    animation: none;
  }
}

/* ---------- loading screen (ported from the coming-soon site's Preloader) ----------
   The veil only appears after 0.8 s, so only a slow page shows it. Mark fades in, the
   wordmark pops out beside it, tucks back, the mark fades: a 3.8 s loop. */
.pl {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none; /* the page under it can be used the moment it is there */
  transition:
    opacity 0.6s ease,
    visibility 0s linear 0.6s;
  animation: pl-failsafe 0.6s ease 15s forwards;
}
.pl.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pl-veil {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--bg);
  opacity: 0;
  animation: pl-appear 0.4s ease 0.8s forwards;
}
.pl-logo {
  --loop: 3.8s;
  display: flex;
  align-items: center;
  color: var(--fg);
}
.pl-mark,
.pl-word {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.pl-mark {
  --src: url('/brand/logo.svg');
  position: relative;
  z-index: 1;
  width: 64px;
  height: 26.5px;
  animation: pl-mark var(--loop) infinite;
}
.pl-wrap {
  display: inline-flex;
  overflow: hidden;
  animation: pl-wrap var(--loop) infinite;
}
.pl-word {
  --src: url('/brand/wordmark.svg');
  flex-shrink: 0;
  width: 224px;
  height: 36.5px;
  animation: pl-word var(--loop) infinite;
} /* 64 : 19 : 224 */
@keyframes pl-mark {
  0% {
    opacity: 0;
    transform: scale(0.9);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  16%,
  80% {
    opacity: 1;
    transform: scale(1);
    animation-timing-function: ease-in;
  }
  94%,
  100% {
    opacity: 0;
    transform: scale(0.94);
  }
}
@keyframes pl-wrap {
  0%,
  22% {
    width: 0;
    padding-left: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  40%,
  62% {
    width: 243px;
    padding-left: 19px;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  76%,
  100% {
    width: 0;
    padding-left: 0;
  }
}
@keyframes pl-word {
  0%,
  22% {
    opacity: 0;
    transform: translateX(-45%);
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  40%,
  62% {
    opacity: 1;
    transform: none;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  76%,
  100% {
    opacity: 0;
    transform: translateX(-45%);
  }
}
@keyframes pl-appear {
  to {
    opacity: 1;
  }
}
@keyframes pl-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* the mark starts when the veil does */
body:not(.webmail) > .pl :is(.pl-mark, .pl-wrap, .pl-word) {
  animation-delay: 0.8s;
  animation-fill-mode: backwards;
}
/* the hub plays it once on a full load, quicker and over nothing that waits for it (js/site.js) */
body.webmail > .pl {
  pointer-events: none;
  transition-duration: 0.35s;
  transition-delay: 0s, 0.35s;
}
body.webmail > .pl .pl-veil {
  opacity: 1;
  animation: none;
}
body.webmail > .pl .pl-logo {
  --loop: 1.9s;
}
body.webmail > .pl :is(.pl-mark, .pl-wrap, .pl-word) {
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
@media (prefers-reduced-motion: reduce) {
  body.webmail > .pl {
    display: none;
  }
}
/* a reseller's choice for their client portal: their logo breathing, or a spinner in their colour */
.pl-brand {
  max-width: 180px;
  max-height: 64px;
  object-fit: contain;
  animation: pl-breathe 1.8s ease-in-out infinite;
}
@keyframes pl-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.pl-spin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  animation: pl-turn 0.9s linear infinite;
}
@keyframes pl-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl-mark,
  .pl-wrap,
  .pl-word,
  .pl-brand,
  .pl-spin {
    animation: none !important;
  }
  .pl-wrap {
    width: auto;
    padding-left: 19px;
  }
}

/* the Softnamic build-side band on public pages */
.soft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.soft h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
  max-width: 22ch;
}
.soft p.muted {
  max-width: 60ch;
}
@media (max-width: 760px) {
  .soft {
    grid-template-columns: minmax(0, 1fr);
  }
  .soft .btn {
    justify-self: start;
  }
}

/* ---------- database manager ---------- */
.dbm {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  min-height: 520px;
  position: relative;
}
.dbm-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  min-height: 0;
}
.dbm-db {
  display: grid;
  gap: 2px;
  padding: 0 6px;
}
.dbm-db b {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.dbm-db small {
  font-size: 0.75rem;
  line-height: 1.4;
}
.dbm-side .dbm-find:not([type='checkbox']) {
  height: 32px;
  font-size: 0.8125rem;
}
.dbm-tables {
  display: grid;
  align-content: start;
  gap: 1px;
  overflow-y: auto;
  min-height: 0;
}
.dbm-tables button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--fg);
}
.dbm-tables button:hover {
  background: var(--gray-200);
}
.dbm-tables button.on {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 600;
}
.dbm-tables button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dbm-tables small {
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.dbm-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.dbm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.dbm-crumb {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.dbm-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gray-100);
}
.dbm-tabs button {
  border: 0;
  background: none;
  padding: 5px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--gray-900);
}
.dbm-tabs button[aria-selected='true'] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-card);
  font-weight: 500;
}
.dbm-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dbm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.dbm-where {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
  font-size: 0.75rem;
}
.dbm-where input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  height: 32px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.dbm-count {
  white-space: nowrap;
}
.dbm-pg {
  display: flex;
  gap: 2px;
}
.dbm-out,
.dbm-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.dbm-scroll {
  padding: 16px;
}
.dbm-grid {
  overflow: auto;
}
.dbm-scroll .dbm-grid {
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 8px;
}
.dbm-grid table {
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 100%;
}
.dbm-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  text-align: left;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.dbm-grid th[data-sort] {
  cursor: pointer;
}
.dbm-grid th[data-sort]:hover,
.dbm-grid th.sorted {
  color: var(--blue);
}
.dbm-grid td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  vertical-align: top;
}
.dbm-grid tbody tr:hover td {
  background: var(--gray-100);
}
.dbm-grid td.editing {
  padding: 2px;
  overflow: visible;
}
.dbm-grid td.editing input,
.dbm-grid td.editing textarea {
  width: 100%;
  min-width: 180px;
  height: auto;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: inset 0 0 0 1.5px var(--blue);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}
.dbm-act {
  width: 30px;
  padding: 2px 4px !important;
}
.dbm-x {
  border: 0;
  background: none;
  color: var(--gray-600);
  font-size: 1rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.dbm-x:hover {
  color: var(--red);
  background: var(--red-bg);
}
.dbm-null {
  color: var(--gray-600);
  font-style: italic;
}
.dbm-msg {
  padding: 18px 16px;
  font-size: 0.875rem;
}
.dbm-msg.err {
  color: var(--red);
}
.dbm-msg.ok {
  color: var(--green);
}
.dbm-h {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 4px 0 8px;
}
.dbm-h:not(:first-child) {
  margin-top: 20px;
}
.dbm-pre {
  white-space: pre-wrap;
  font-size: 0.75rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dbm-danger {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.dbm-sql {
  display: grid;
  grid-template-rows: minmax(150px, 38%) auto minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.dbm-ed {
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.dbm-ta {
  width: 100%;
  height: 100%;
  border: 0;
  resize: none;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  outline: none;
}
.dbm-hist {
  width: auto;
  max-width: 280px;
  height: 32px;
  font-size: 0.8125rem;
}
.dbm-stat {
  margin-left: auto;
}
.dbm-export p {
  margin: 8px 0 14px;
  max-width: 60ch;
}
.dbm-flash {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1f1f1f;
  color: #f2f2f2;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.dbm-flash.err {
  background: var(--red);
  color: #fff;
}
.dbm-flash[hidden] {
  display: none;
}
@media (min-width: 1024px) and (min-height: 620px) {
  .reseller .dbm {
    height: 100%;
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .dbm {
    grid-template-columns: minmax(0, 1fr);
  }
  .dbm-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
  }
}
.wp-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wp-consent span {
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
}
.wp-consent small {
  color: var(--gray-900);
  font-size: 0.8125rem;
}
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* reseller forms: segmented toggles keep their own width; choice cards; the domain picker */
.stack > .seg,
.stack > .row {
  justify-self: start;
}
.choices.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .choices.two {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* HTML mail: a white page like every mail client, in a frame that runs no scripts (30-mail.js htmlBody) */
.wm-text-html {
  white-space: normal;
}
.wm-html {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
}
.wm-showimg {
  margin: 0 0 var(--sp-2);
}
/* ---------- webmail v2: reading pane, collapsible nav, big composer, contacts, calendar ---------- */
.wm-top {
  grid-template-columns: auto 196px minmax(0, 720px) 1fr;
}
.wm-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.wm-body {
  transition: grid-template-columns 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wm-apps {
  display: grid;
  gap: 1px;
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.wm-apps a {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 34px;
  padding: 0 var(--sp-4) 0 var(--sp-4);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  margin-left: calc(-1 * var(--sp-2));
  color: var(--fg);
  font-size: var(--fs-md);
}
.wm-apps a:hover {
  background: var(--gray-200);
}
.wm-apps a.on {
  font-weight: 600;
}
.wm-apps a .ic,
.wm-f .ic {
  flex: none;
}
/* collapsed sidebar: icons only */
#wm.nav-mini .wm-body {
  grid-template-columns: 76px minmax(0, 1fr);
}
#wm.nav-mini .wm-nav {
  padding: var(--sp-2) var(--sp-2) var(--sp-4);
  overflow-x: hidden;
}
#wm.nav-mini .wm-nav span:not(.wm-pop *),
#wm.nav-mini .wm-f b,
#wm.nav-mini .wm-f small,
#wm.nav-mini .wm-mini-cal {
  display: none;
}
#wm.nav-mini .wm-compose-btn {
  width: 56px;
  padding: 0;
  justify-content: center;
}
#wm.nav-mini .wm-apps a,
#wm.nav-mini .wm-f {
  margin-left: 0;
  border-radius: var(--r-pill);
  justify-content: center;
  padding: 0;
  width: 56px;
  position: relative;
}
#wm.nav-mini .wm-f.has::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.wm-main {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
}
.wm-main > * {
  flex: 1;
  min-height: 0;
}
.wm-mail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.wm-mail.split {
  grid-template-columns: minmax(340px, 38%) minmax(0, 1fr);
}
.wm-listpane,
.wm-readpane,
.wm-plist,
.wm-calmain {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
}
.wm-listpane[hidden] {
  display: none;
}
.wm-mail.split .wm-listpane {
  border-right: 1px solid var(--line);
}
.wm-read {
  overflow-y: auto;
  min-height: 0;
  outline: none;
}
.wm-noread {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-2);
  color: var(--gray-900);
  text-align: center;
  padding: var(--sp-6);
}
.wm-noread .ic {
  width: 56px;
  height: var(--h-row);
  stroke-width: 1;
  color: var(--gray-500);
}
.wm-noread p {
  font-size: 1rem;
  color: var(--fg);
}
/* two-line rows for the split view */
.wm-list.stacked .wm-row {
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  height: auto;
  align-items: start;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-2);
}
.wm-list.stacked .wm-row .wm-check {
  margin-top: 2px;
}
.wm-two {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.wm-two-top {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
}
.wm-two-top .wm-from {
  flex: 1;
  padding: 0;
}
.wm-two-top .wm-att .ic {
  width: 14px;
  height: 14px;
}
.wm-subj-line,
.wm-two .wm-snip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
}
.wm-list.stacked .wm-star {
  margin-top: calc(-1 * var(--sp-1));
}
.wm-list.stacked .wm-hover {
  top: auto;
  bottom: 4px;
  right: 40px;
}
.wm-row.open {
  background: var(--blue-bg) !important;
  box-shadow: inset 3px 0 0 var(--blue);
}
#wm.compact .wm-row {
  height: var(--h-sm);
}
#wm.compact .wm-list.stacked .wm-row {
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}
#wm.compact .wm-list.stacked .wm-snip {
  display: none;
}
.wm-macts {
  display: inline-flex;
  margin-left: var(--sp-1);
}
.wm-macts .wm-ib {
  width: 30px;
  height: 30px;
}
.wm-macts .ic {
  width: 17px;
  height: 17px;
}
.wm-mail.split .wm-thread {
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
}
.wm-mail.split .wm-thread h1 {
  margin-left: 0;
  font-size: var(--fs-2xl);
}
.wm-mail.split .wm-mb,
.wm-mail.split .wm-replyrow {
  padding-left: var(--sp-12);
}
.wm-replyslot {
  margin: var(--sp-5) 0 0 var(--sp-12);
}
.wm-mail.split .wm-replyslot {
  margin-left: 0;
}
.wm-replyslot .wm-replyrow {
  margin: 0;
}
.wm-mail.split .wm-replyslot .wm-replyrow {
  padding-left: var(--sp-12);
}
.wm-bar-title {
  font-size: var(--fs-xl);
  font-weight: 500;
  margin: 0 var(--sp-2);
}

/* composer: big window (default), docked, minimised, or inline under a conversation */
.wm-dock {
  pointer-events: none;
}
/* an open message window sits above the frame: on a phone it is the whole screen, and the glass top bar
   (z-index 70) would otherwise cover its header with Close */
.wm-dock:has(.wm-compose:not(.min, .inl)) {
  z-index: 75;
}
.wm-compose.big {
  position: fixed;
  z-index: 65;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 64px));
  border-radius: var(--r-lg);
  pointer-events: auto;
}
.wm-compose.dock {
  width: 560px;
  height: min(600px, calc(100vh - 80px));
}
.wm-compose.big.min,
.wm-compose.dock.min {
  position: static;
  transform: none;
  width: 300px;
  height: var(--h-md);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.wm-compose.big::backdrop {
  display: none;
}
.wm-compose.inl {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  min-height: 320px;
  margin: var(--sp-1) 0 var(--sp-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-menu);
  pointer-events: auto;
}
.wm-compose.inl .wm-ch {
  background: none;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.wm-compose.inl textarea {
  min-height: 200px;
}
.wm-cf .wm-fromv {
  color: var(--fg);
  padding: var(--sp-2) 0;
  font-size: var(--fs-md);
}
.wm-cf > span:first-child {
  width: 36px;
  flex: none;
}
.wm-ccb {
  display: flex;
  gap: var(--sp-2);
  margin-left: auto;
}
.wm-chipin {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--h-md);
  padding: var(--sp-1) 0;
  cursor: text;
}
.wm-chips {
  display: contents;
}
.wm-chipin > input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  flex: 1;
  min-width: 140px;
  height: var(--h-sm);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: var(--fs-md);
  color: var(--fg);
}
.wm-addrchip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: var(--h-xs);
  padding: 0 2px 0 var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--gray-200);
  font-size: var(--fs-sm);
  max-width: 260px;
}
.wm-addrchip.bad {
  background: var(--red-bg);
  color: var(--red);
}
.wm-addrchip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--gray-900);
  cursor: pointer;
}
.wm-addrchip button:hover {
  background: var(--gray-400);
}
.wm-addrchip button .ic {
  width: 12px;
  height: 12px;
}
.wm-av.xs {
  width: 20px;
  height: 20px;
  font-size: var(--fs-xxs);
}
.wm-av.sm {
  width: 28px;
  height: 28px;
  font-size: var(--fs-xs);
}
.wm-av.xl {
  width: 88px;
  height: 88px;
  font-size: 2.25rem;
}
.wm-sug {
  position: absolute;
  z-index: 80;
  top: 100%;
  left: 0;
  width: min(380px, 100%);
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.wm-sug button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.wm-sug button.on,
.wm-sug button:hover {
  background: var(--gray-100);
}
.wm-sug span {
  display: grid;
  min-width: 0;
}
.wm-sug b {
  font-size: var(--fs-md);
  font-weight: 500;
}
.wm-sug small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-subjin:not([type='checkbox']) {
  flex: 1;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-size: var(--fs-lg);
  color: var(--fg);
}

/* contacts */
.wm-people {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  min-height: 0;
}
.wm-plist {
  border-right: 1px solid var(--line);
}
.wm-ph {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-900);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
}
.wm-prow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.wm-prow:hover {
  background: var(--gray-100);
}
.wm-prow.on {
  background: var(--blue-bg);
}
.wm-prow .wm-av {
  width: 36px;
  height: 36px;
}
.wm-prow span {
  display: grid;
  min-width: 0;
}
.wm-prow b {
  font-weight: 500;
  font-size: var(--fs-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-prow small {
  color: var(--gray-900);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-pco {
  max-width: 140px;
}
.wm-pcard {
  overflow-y: auto;
  min-height: 0;
}
.wm-pdetail {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}
.wm-pdetail h2 {
  font-size: var(--fs-3xl);
  font-weight: 500;
}
.wm-prow-acts {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--sp-2) 0 var(--sp-2);
}
.wm-prow-acts .wm-send,
.wm-prow-acts .wm-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.wm-pdl {
  display: grid;
  gap: var(--sp-3);
  width: min(460px, 100%);
  text-align: left;
  margin: var(--sp-2) 0 var(--sp-4);
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wm-pdl div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  font-size: var(--fs-md);
}
.wm-pdl dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wm-pdl .ic {
  color: var(--gray-900);
  width: 20px;
  height: 20px;
}
.wm-pform {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  max-width: 520px;
}
.wm-pform h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
}
.wm-pform .wm-prow-acts {
  justify-content: flex-start;
}
.wm-btn.danger {
  color: var(--red);
}

/* calendar */
.wm-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 0;
}
.wm-calmain .wm-bar {
  gap: var(--sp-2);
}
.wm-month {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
.wm-wk {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.wm-wk span {
  padding: var(--sp-2) var(--sp-2);
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-900);
  font-weight: 600;
}
.wm-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-height: 0;
}
.wm-day {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-1) var(--sp-1) var(--sp-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
}
.wm-day:nth-child(7n) {
  border-right: 0;
}
.wm-day:hover {
  background: var(--gray-100);
}
.wm-day.out {
  background: var(--bg-2);
}
.wm-day.out .wm-dn {
  color: var(--gray-600);
}
.wm-dn {
  align-self: center;
  display: grid;
  place-items: center;
  width: 24px;
  height: var(--h-xs);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 500;
  flex: none;
}
.wm-day.today .wm-dn {
  background: var(--accent);
  color: var(--accent-ink);
}
.wm-ev {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--r-xs);
  padding: 2px var(--sp-2);
  font: inherit;
  font-size: var(--fs-xs);
  line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
  background: none;
}
.wm-ev i {
  font-style: normal;
  color: var(--gray-900);
  margin-right: var(--sp-1);
  font-variant-numeric: tabular-nums;
}
.wm-ev::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: var(--sp-1);
  background: var(--evc);
  vertical-align: 1px;
}
.wm-ev.all {
  background: var(--evc);
  color: #fff;
}
.wm-ev.all::before {
  display: none;
}
.wm-ev:hover {
  filter: brightness(1.1);
  background: var(--gray-200);
}
.wm-ev.all:hover {
  background: var(--evc);
}
.blue {
  --evc: #3170ce;
}
.green {
  --evc: #4f8f12;
}
.amber {
  --evc: #c27600;
}
.red {
  --evc: #d1453b;
}
.grey {
  --evc: #6b6b6b;
}
.wm-more {
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-xxs);
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  padding: 0 var(--sp-2);
  cursor: pointer;
}
.wm-agenda {
  border-left: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-3);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: var(--sp-1);
}
.wm-agenda h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  padding: 0 var(--sp-2) var(--sp-2);
}
.wm-ag {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  width: 100%;
  padding: var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.wm-ag:hover {
  background: var(--gray-100);
}
.wm-ag span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.wm-ag b {
  font-size: var(--fs-sm);
  font-weight: 500;
}
.wm-ag small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--evc);
  margin-top: var(--sp-1);
  flex: none;
}
.wm-mini-cal {
  margin-top: var(--sp-4);
  padding: 0 var(--sp-2);
}
.wm-mc {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: var(--fs-xxs);
}
.wm-mc b {
  color: var(--gray-900);
  font-weight: 600;
  padding: 2px 0;
}
.wm-mc a {
  padding: var(--sp-1) 0;
  border-radius: 50%;
  color: var(--fg);
}
.wm-mc a:hover {
  background: var(--gray-200);
}
.wm-mc a.out {
  color: var(--gray-600);
}
.wm-mc a.today {
  background: var(--accent);
  color: var(--accent-ink);
}

/* dialogs: event, settings */
.wm-dlg {
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-menu);
  width: min(560px, calc(100vw - 32px));
}
.wm-dlg::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.wm-evform,
.wm-setform {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
.wm-evform header,
.wm-setform header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.wm-setform h2 {
  font-size: var(--fs-xl);
}
.wm-evtitle:not([type='checkbox']) {
  font-size: var(--fs-3xl);
  height: 46px;
  box-shadow: inset 0 -1px 0 var(--line-strong);
  border-radius: 0;
  background: none;
  padding: 0 2px;
}
.wm-evrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.wm-evrow > .ic {
  color: var(--gray-900);
  flex: none;
}
.wm-evrow > input:not([type='checkbox']):not([type='radio']),
.wm-evrow textarea {
  flex: 1;
  width: auto;
}
.wm-evrow input[type='date'],
.wm-evrow input[type='time'] {
  flex: none !important;
  width: auto !important;
}
.wm-evrow .wm-chipin {
  min-height: var(--h-md);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.wm-times {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  color: var(--gray-900);
}
.wm-times[hidden] {
  display: none;
}
.wm-allday {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
}
.wm-inv {
  margin-left: auto;
}
.wm-sw {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--evc);
  cursor: pointer;
}
.wm-sw input {
  position: absolute;
  opacity: 0;
}
.wm-sw:has(input:checked) {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--evc);
}
.wm-evform footer,
.wm-setform footer {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
  padding-top: var(--sp-2);
}
.wm-evform footer .wm-cstat {
  margin-right: auto;
  color: var(--red);
  font-size: var(--fs-sm);
}
.wm-setform fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-2);
}
.wm-setform legend {
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}
.wm-opt {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.wm-opt:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  background: var(--blue-bg);
}
.wm-opt span {
  display: grid;
}
.wm-opt b {
  font-size: var(--fs-md);
  font-weight: 500;
}
.wm-opt small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-opt input {
  margin-top: var(--sp-1);
  accent-color: var(--blue);
}
@media (max-width: 1099px) {
  .wm-cal {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-agenda {
    display: none;
  }
  .wm-people {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-people .wm-pcard:empty,
  .wm-people .wm-pcard:has(.wm-noread) {
    display: none;
  }
}
@media (max-width: 900px) {
  .wm-top {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }
  .wm-compose.big {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  #wm.nav-mini .wm-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wm-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  white-space: nowrap;
}
.wm-send .ic {
  width: 18px;
  height: 18px;
}
/* ---------- imeli: Softnamic's mail and workspace brand ---------- */
.imeli-mark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  color: var(--fg);
}
.imeli-word {
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  line-height: 1;
}
.imeli-by {
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.02em;
  color: var(--gray-900);
  text-transform: lowercase;
}
.webmail.imeli .wm-brand {
  gap: var(--sp-4);
}
.auth.imeli .auth-brand {
  justify-content: center;
}
.auth.imeli .imeli-word {
  font-size: 2.25rem;
}
.imeli-auth {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
}
.auth.imeli .imeli-mark {
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

/* compose: the one solid action on the page */
.wm-compose-btn {
  background: var(--accent);
  color: var(--accent-ink);
  height: 54px;
  padding: 0 var(--sp-6) 0 var(--sp-5);
  border-radius: var(--r-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    filter 0.15s;
}
.wm-compose-btn:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 10px 22px -6px color-mix(in srgb, var(--accent) 80%, transparent);
  filter: brightness(1.06);
}
.wm-compose-btn:active {
  transform: translateY(1px);
}
.wm-compose-btn .ic {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
#wm.nav-mini .wm-compose-btn {
  width: 56px;
  height: var(--h-row);
  border-radius: var(--r-lg);
  padding: 0;
}

/* inbox tabs (Primary / Updates / Promotions) */
.wm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
}
.wm-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 52px;
  padding: 0 var(--sp-4);
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
}
.wm-tabs button:hover {
  background: var(--gray-100);
}
.wm-tabs button[aria-selected='true'] {
  color: var(--blue);
}
.wm-tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  background: var(--blue);
}
.wm-tabs b {
  font-size: var(--fs-xxs);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.wm-list.stacked + .wm-tabs,
.wm-mail.split .wm-tabs span {
  font-size: var(--fs-sm);
}
.wm-mail.split .wm-tabs button {
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
}
.wm-mail.split .wm-tabs .ic {
  width: 18px;
  height: 18px;
}

/* labels */
.purple {
  --evc: #8a5cd6;
}
.teal {
  --evc: #1f9e96;
}
.wm-labels {
  margin-top: var(--sp-4);
}
.wm-lhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-1) var(--sp-1) var(--sp-4);
  font-size: var(--fs-md);
  font-weight: 600;
}
.wm-lhead .wm-ib {
  width: var(--h-sm);
  height: var(--h-sm);
}
.wm-lhead .ic {
  width: 18px;
  height: 18px;
}
.wm-ldot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: var(--r-xs);
  background: var(--evc);
  display: inline-block;
}
.wm-lf {
  position: relative;
}
.wm-lf .wm-ledit {
  display: none;
  width: 26px;
  height: 26px;
  margin-left: auto;
}
.wm-lf .wm-ledit .ic {
  width: 14px;
  height: 14px;
}
.wm-lf:hover .wm-ledit {
  display: inline-grid;
}
.wm-lf:hover b {
  display: none;
}
#wm.nav-mini .wm-lhead span,
#wm.nav-mini .wm-lhead {
  justify-content: center;
  padding: 0;
}
#wm.nav-mini .wm-lhead span {
  display: none;
}
#wm.nav-mini .wm-lf .wm-ledit {
  display: none !important;
}
.wm-lchip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xxs);
  font-weight: 600;
  padding: 1px var(--sp-2);
  margin-right: var(--sp-2);
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--evc) 22%, transparent);
  color: color-mix(in srgb, var(--evc) 80%, var(--fg));
  vertical-align: 1px;
  white-space: nowrap;
}
.wm-thread h1 .wm-lchip {
  font-size: var(--fs-xs);
  padding: 2px var(--sp-1) 2px var(--sp-2);
  vertical-align: 3px;
}
.wm-lchip button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
/* Remove label: a hit area past its 16 px edge */
.wm-lchip button::before {
  content: '';
  position: absolute;
  inset: calc(var(--sp-1) * -1);
}
@media (max-width: 760px) {
  .wm-lchip button::before {
    inset: -14px -10px;
  }
}
/* in the list the chips sit in a flex line with its own gap */
.wm-row .wm-line .wm-lchip {
  margin-right: 0;
}
.wm-lchip button .ic {
  width: 11px;
  height: 11px;
}
.wm-lchip button:hover {
  background: color-mix(in srgb, var(--evc) 30%, transparent);
}
.wm-labelhead {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.wm-labelhead b {
  font-size: 1rem;
  font-weight: 600;
}
.wm-labelhead .wm-btn {
  margin-left: auto;
  height: var(--h-sm);
  font-size: var(--fs-sm);
}
.wm-labelhead .wm-btn .ic {
  width: 15px;
  height: 15px;
}
.wm-lpick {
  position: fixed;
  z-index: 90;
  width: 268px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  display: grid;
  gap: var(--sp-2);
}
.wm-lp-h {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-900);
  padding: 2px var(--sp-1);
}
.wm-lp-q:not([type='checkbox']) {
  height: var(--h-sm);
  font-size: var(--fs-md);
}
.wm-lp-list {
  display: grid;
  max-height: 220px;
  overflow: auto;
}
.wm-lp-list label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-xs);
  font-size: var(--fs-md);
  cursor: pointer;
}
.wm-lp-list label:hover {
  background: var(--gray-100);
}
.wm-lp-list label[hidden] {
  display: none;
}
.wm-lp-list input {
  accent-color: var(--blue);
}
.wm-lp-new {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.wm-lp-new .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.wm-lp-tabs {
  display: flex;
  gap: var(--sp-1);
}
.wm-lp-tabs button {
  flex: 1;
  height: var(--h-sm);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
  color: var(--fg);
}
.wm-lp-tabs button:hover {
  background: var(--gray-200);
}
/* imeli loading screen: the gradient dot drops onto the i, "meli" slides out and tucks back (same 3.8 s loop) */
.pl-imark {
  position: relative;
  display: inline-block;
  animation: pl-mark var(--loop) infinite;
}
.pl-imark i {
  position: absolute;
  left: 50%;
  top: -0.08em;
  width: 0.3em;
  height: 0.3em;
  margin-left: -0.15em;
  border-radius: 50%;
  background: var(--gradient);
  animation: pl-dot var(--loop) infinite;
}
.pl-iword {
  flex-shrink: 0;
  animation: pl-word var(--loop) infinite;
}
@keyframes pl-dot {
  0% {
    transform: translateY(-60%);
    opacity: 0;
  }
  14% {
    transform: translateY(8%);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  20%,
  80% {
    transform: none;
    opacity: 1;
  }
  94%,
  100% {
    opacity: 0;
  }
}
@keyframes pl-iwrap {
  0%,
  22% {
    width: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  40%,
  62% {
    width: 2.75em;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  76%,
  100% {
    width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pl-imark,
  .pl-imark i,
  .pl-iword {
    animation: none !important;
  }
}
.pl-imark {
  letter-spacing: 0;
  margin-right: -0.045em;
}
.pl-imark i {
  left: calc(50% + 0.01em);
}
/* a reseller's logo beside imeli: "provided by" */
.webmail.imeli .wm-top {
  grid-template-columns: auto minmax(196px, auto) minmax(0, 720px) 1fr;
}
/* imeli v2: the Softnamic wave (one flat colour, never the gradient) + the wordmark set like Softnamic's */
.imeli-mark {
  align-items: center;
  gap: var(--sp-2);
}
.imeli-word {
  font-weight: 600;
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
  line-height: 1;
}
.auth.imeli .imeli-word {
  font-size: var(--fs-4xl);
}
.pl-imeli2 .pl-wrap {
  animation-name: pl-iwrap;
  font-size: 46px;
}
.pl-imeli2 .pl-iword {
  padding-left: 0.32em;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
  animation: pl-word var(--loop) infinite;
}

/* ---------- Softmail / Softcloud: the Soft- family, set like the Softnamic wordmark ---------- */
.imeli-word {
  font-weight: 400;
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
}
.imeli-word b,
.pl-iword b {
  font-weight: 700;
}
.auth.imeli .imeli-word {
  font-size: var(--fs-4xl);
}
.pl-imeli2 .pl-iword {
  font-weight: 400;
}
@keyframes pl-iwrap {
  0%,
  22% {
    width: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  40%,
  62% {
    width: 4.7em;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  76%,
  100% {
    width: 0;
  }
}

/* app rail: Mail, Calendar, Contacts, Cloud, Google style */
.webmail.imeli .wm-top {
  grid-template-columns: auto 232px minmax(0, 720px) 1fr;
}
.wm-body {
  grid-template-columns: 76px 244px minmax(0, 1fr);
}
.wm-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
  width: 64px;
  padding: var(--sp-1) 0;
  color: var(--gray-900);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.wm-rpill {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: var(--h-sm);
  border-radius: var(--r-pill);
  transition: background 0.15s;
}
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a:hover .wm-rpill {
  background: var(--gray-200);
}
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a.on {
  color: var(--fg);
  font-weight: 600;
}
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a.on .wm-rpill {
  background: var(--blue-bg);
  color: var(--blue);
}
.wm-rail .ic {
  width: 22px;
  height: 22px;
}
.wm-rbadge {
  position: absolute;
  top: -4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: var(--fs-xxs);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.wm-rbadge[hidden] {
  display: none;
}
#wm.nav-mini .wm-body {
  grid-template-columns: 76px 0 minmax(0, 1fr);
}
.wm-nav {
  padding: var(--sp-2) var(--sp-4) var(--sp-4) var(--sp-2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wm-nav > .wm-folders,
.wm-nav > .wm-labels,
.wm-nav > .wm-ctx {
  flex: none;
}
.wm-ctx[hidden],
.wm-folders[hidden],
.wm-labels[hidden] {
  display: none;
}
.wm-ctx .wm-f small {
  margin-left: auto;
  color: var(--gray-900);
  font-size: var(--fs-xs);
}

/* compose (or Create): the page's one solid action, sized like Gmail's */
.wm-compose-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--h-row);
  min-width: 148px;
  padding: 0 var(--sp-6) 0 var(--sp-4);
  margin: var(--sp-1) 0 var(--sp-4) var(--sp-1);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transition:
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease),
    filter 0.2s;
}
.wm-compose-btn:hover {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 10px 24px -6px color-mix(in srgb, var(--accent) 75%, transparent);
  transform: translateY(-1px);
  filter: none;
}
.wm-compose-btn:active {
  transform: none;
}
.wm-cbi {
  display: grid;
  place-items: center;
}
.wm-cbi .ic {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* storage, pinned to the bottom of the sidebar */
.wm-storage {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2) var(--sp-1) var(--sp-4);
  color: var(--gray-900);
  font-size: var(--fs-xs);
}
.wm-storage > .ic {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.wm-storage > span {
  display: grid;
  gap: var(--sp-2);
  flex: 1;
}
.wm-store-bar {
  display: block;
  height: 4px;
  border-radius: var(--r-xs);
  background: var(--gray-300);
  overflow: hidden;
}
.wm-store-bar > span {
  display: block;
  height: 100%;
  border-radius: var(--r-xs);
  background: var(--gradient);
}

/* search suggestions */
.wm-search {
  position: relative;
}
.wm-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 95;
  max-height: 70vh;
  overflow: auto;
  padding: var(--sp-2);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.wm-search:has(.wm-suggest:not([hidden])) {
  border-radius: var(--r-2xl) var(--r-2xl) var(--r-2xl) var(--r-2xl);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.wm-suggest p {
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
  font-size: var(--fs-xxs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-900);
}
.wm-suggest button {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--fg);
  cursor: pointer;
}
.wm-suggest button:hover,
.wm-suggest button.on {
  background: var(--gray-100);
}
.wm-suggest button > .ic {
  width: 18px;
  height: 18px;
  color: var(--gray-900);
  flex: none;
}
.wm-suggest .wm-sg-app {
  width: 18px;
  height: 18px;
  border-radius: var(--r-xs);
  flex: none;
}
.wm-suggest p:first-child {
  padding-top: var(--sp-1);
}
.tm-msg.tm-hit {
  background: var(--blue-bg);
  border-radius: var(--r-sm);
  transition: background 0.6s;
}
.wm-suggest button span {
  display: grid;
  min-width: 0;
}
.wm-suggest b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-suggest small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Softcloud */
.wm-cloud {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 0;
}
.wm-cloud.drop {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: var(--blue-bg);
}
.wm-crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xl);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.wm-crumbs a {
  color: var(--gray-900);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
}
.wm-crumbs a:hover {
  background: var(--gray-100);
  color: var(--fg);
}
.wm-crumbs b {
  font-weight: 500;
  padding: var(--sp-1) var(--sp-2);
}
.wm-crumbs .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
  color: var(--gray-600);
}
.wm-up {
  cursor: pointer;
}
.wm-cbody2 {
  overflow-y: auto;
  min-height: 0;
  padding: var(--sp-1) var(--sp-4) var(--sp-6);
}
.wm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-3);
}
.wm-tiles.folders {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.wm-tile {
  position: relative;
  display: grid;
  grid-template-rows: 130px auto;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: box-shadow 0.15s;
}
.wm-tile:hover,
.wm-tile:focus-visible {
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 4px 14px -6px rgba(0, 0, 0, 0.4);
}
.wm-tile.dir {
  grid-template-rows: auto;
}
.wm-tile.dir .wm-thumb {
  display: none;
}
.wm-thumb {
  display: grid;
  place-items: center;
  background: var(--gray-100);
  color: var(--gray-700);
  overflow: hidden;
}
.wm-thumb .ic {
  width: 44px;
  height: var(--h-touch);
  stroke-width: 1.2;
}
.wm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wm-tname {
  display: grid;
  gap: 2px;
  padding: var(--sp-2) var(--sp-10) var(--sp-2) var(--sp-4);
  min-width: 0;
}
.wm-tname span {
  font-size: var(--fs-md);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-tname small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-tile.dir .wm-tname {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: var(--sp-2);
  padding-left: var(--sp-4);
}
.wm-tile.dir .wm-tname::before {
  content: '';
  grid-row: 1 / 3;
  align-self: center;
  width: 22px;
  height: 18px;
  border-radius: var(--r-xs) var(--r-xs) var(--r-xs) var(--r-xs);
  background: color-mix(in srgb, var(--blue) 70%, transparent);
  -webkit-mask: linear-gradient(#000 0 0);
}
.wm-tmenu {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: var(--h-sm);
  height: var(--h-sm);
  opacity: 0;
}
.wm-tile:hover .wm-tmenu,
.wm-crow:hover .wm-tmenu,
.wm-tmenu:focus {
  opacity: 1;
}
.wm-tmenu .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.wm-crows {
  display: grid;
}
.wm-crow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 110px 110px 36px;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--h-touch);
  padding: 0 var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md);
  cursor: pointer;
}
.wm-crow:hover {
  background: var(--gray-100);
}
.wm-crow.head {
  cursor: default;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-900);
  min-height: 36px;
}
.wm-crow.head:hover {
  background: none;
}
.wm-crow > .ic {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--gray-900);
}
.wm-cn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-crow .wm-tmenu {
  position: static;
}
.wm-menu-pop {
  width: 210px;
  padding: var(--sp-2);
}
.wm-menu-pop button,
.wm-menu-pop a,
.wm-menu-pop label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.wm-menu-pop button:hover,
.wm-menu-pop a:hover,
.wm-menu-pop label:hover {
  background: var(--gray-100);
}
.wm-menu-pop .ic {
  width: 17px;
  height: 17px;
  color: var(--gray-900);
}
.wm-menu-pop .danger {
  color: var(--red);
}
.wm-menu-pop .danger .ic {
  color: var(--red);
}
.wm-dlg.wide {
  width: min(1100px, calc(100vw - 32px));
  height: min(820px, calc(100vh - 32px));
}
.wm-prev {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}
.wm-prev header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.wm-prev header > span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.wm-prev header b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-prev header .wm-btn {
  height: var(--h-sm);
}
.wm-prev-body {
  display: grid;
  place-items: center;
  min-height: 0;
  background: var(--bg-2);
  overflow: auto;
}
.wm-prev-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.wm-prev-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.wm-prev-body pre {
  align-self: start;
  justify-self: stretch;
  margin: 0;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  white-space: pre-wrap;
}
@media (max-width: 900px) {
  .wm-body {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a {
    width: 56px;
  }
  .wm-rpill {
    width: 48px;
  }
  .webmail.imeli .wm-top {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }
  .wm-crow {
    grid-template-columns: 28px minmax(0, 1fr) 36px;
  }
  .wm-crow > span:nth-child(3),
  .wm-crow > span:nth-child(4) {
    display: none;
  }
}
@keyframes pl-iwrap {
  0%,
  22% {
    width: 0;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  40%,
  62% {
    width: 5.2em;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  76%,
  100% {
    width: 0;
  }
}
/* Hostnamic in the public nav and on sign-in */
.nav .imeli-mark {
  gap: var(--sp-2);
}
.nav .imeli-word {
  font-size: var(--fs-xl);
}
.auth .auth-brand .imeli-mark {
  gap: var(--sp-2);
}
/* product app icons beside the -namic wordmarks */
.pm-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
}
.nav .pm-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
}
.auth.imeli .pm-icon,
.auth .auth-brand .pm-icon {
  width: 44px;
  height: var(--h-touch);
  border-radius: var(--r-md);
}
/* the app rail sits on the right, like Google's side panel */
.wm-body {
  grid-template-columns: 244px minmax(0, 1fr) 76px;
}
.wm-rail {
  order: 3;
  padding: var(--sp-2) 0 var(--sp-2) 0;
}
.wm-nav {
  order: 1;
}
.wm-main {
  order: 2;
  margin: 0 var(--sp-1) var(--sp-4) 0;
}
/* collapsed, the folder panel is display:none, so it gives up its column instead of keeping a 0px one */
#wm.nav-mini .wm-body {
  grid-template-columns: 76px minmax(0, 1fr) 76px;
}
#wm.nav-mini .wm-main {
  margin-left: 0;
}
/* the menu toggle folds the left panel down to its icons: compose, folders, app lists and the account avatar */
#wm.nav-mini .wm-nav {
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-2) var(--sp-4);
  overflow-x: hidden;
}
#wm.nav-mini .wm-nav .wm-me {
  width: auto;
  padding: var(--sp-1);
}
#wm.nav-mini .wm-me-n,
#wm.nav-mini .wm-labels,
#wm.nav-mini .wm-ctxh {
  display: none;
}
#wm.nav-mini .wm-ctx .wm-f,
#wm.nav-mini .wm-folders .wm-f {
  justify-content: center;
  margin-left: 0;
  padding: 0;
  width: 52px;
}
#wm.nav-mini .wm-nav span.wm-cbi:not(.x),
#wm.nav-mini .wm-nav .wm-me span.wm-av:not(.x) {
  display: grid;
  place-items: center;
}
#wm.nav-mini .wm-ctx p,
#wm.nav-mini .wm-ctx .wm-ib,
#wm.nav-mini .wm-ctx h2,
#wm.nav-mini .wm-ctx h3 {
  display: none;
}
/* computers: the menu toggle lives at the top of the left panel, so the header starts with the logo, lined up with the panel */
.wm-navtoggle {
  display: none;
}
@media (min-width: 901px) {
  .wm-top > [data-act='menu'] {
    display: none;
  }
  /* the icon axis of the left panel, from the window's edge: panel padding + row padding + half an icon (38) */
  .webmail {
    --nav-axis: calc(var(--sp-2) + var(--sp-5) + var(--icon-md) / 2);
  }
  .webmail.imeli .wm-top {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, 720px) minmax(max-content, 1fr);
    padding-left: calc(var(--nav-axis) - 15px);
  } /* search in the middle, never over the app's name */ /* the logo never moves: its icon sits centred over the folded panel */
  .wm-navtoggle {
    display: grid;
    flex: none;
    align-self: flex-start;
    margin: auto 0 var(--sp-1) var(--sp-2);
    color: var(--gray-900);
  }
  .wm-navtoggle:hover {
    color: var(--fg);
  }
  /* the fold-away arrow, a touch heavier so it matches the burger */
  #wm:not(.nav-mini) .wm-navtoggle .ic {
    stroke-width: 2.1;
  }
  /* One icon axis, open or folded: every icon in the panel is centred 38px in, the middle of the folded
     76px column (--nav-axis: 8 panel padding + 20 row padding + 10, half the icon). The panel keeps the same padding and every row keeps its height
     in both states, rows stretch with the column so their pills shrink with it, and folding only hides words.
     Nothing is re-centred, so nothing hops sideways or up and down while the column animates. */
  #wm .wm-nav,
  #wm.nav-mini .wm-nav {
    display: flex;
    align-items: stretch;
    padding: var(--sp-2) var(--sp-2) var(--sp-4);
    overflow-x: hidden;
  }
  #wm.nav-mini .wm-nav {
    scrollbar-width: none;
  }
  #wm .wm-nav :is(.wm-folders, .wm-labels, .wm-ctx),
  #wm.nav-mini .wm-nav :is(.wm-folders, .wm-ctx) {
    width: auto;
  }
  /* rows: a 20px icon slot starting 20px in (centre 30px), then the words */
  #wm .wm-nav :is(.wm-f, .wm-apps a),
  #wm.nav-mini .wm-nav :is(.wm-f, .wm-apps a),
  #wm.nav-mini .wm-nav :is(.wm-ctx, .wm-folders) .wm-f {
    width: auto;
    margin: 0 0 1px;
    padding: 0 var(--sp-3) 0 var(--sp-5);
    gap: var(--sp-2);
    justify-content: flex-start;
    border-radius: var(--r-pill);
    white-space: nowrap;
    overflow: hidden;
  }
  #wm .wm-nav .wm-f > svg.ic:first-child {
    flex: none;
    width: 18px;
    height: 18px;
    margin-inline: 1px;
  }
  #wm .wm-nav .wm-f > img:first-child {
    flex: none;
    width: 20px;
    height: 20px;
  }
  #wm .wm-nav .wm-f > .wm-ldot {
    flex: none;
    margin-inline: var(--sp-1);
  }
  #wm .wm-nav .wm-f > .tm-avw:first-child {
    flex: none;
    margin-inline: -1px;
  }
  #wm.nav-mini .wm-nav .wm-f > .tm-avw {
    display: block;
  }
  #wm.nav-mini .wm-nav .tm-avw .wm-av {
    display: grid;
  } /* grid like when open, so the initial stays centred */
  /* the rail apps' own row icons (Plan, Stats, Shop, Websites), each centred in the same 20px slot */
  #wm .wm-nav .wm-f > :is(.pn-dot, .pn-plus, .sh2-ni, .st-mark, .sd-dot):first-child {
    flex: none;
    display: grid;
    place-items: center;
  }
  #wm .wm-nav .wm-f > .pn-dot:first-child {
    margin-inline: var(--sp-1);
  }
  #wm .wm-nav .wm-f > .st-mark:first-child {
    margin-inline: -2px;
  }
  #wm .wm-nav .wm-f > .sd-dot:first-child {
    margin-inline: var(--sp-2);
  }
  #wm.nav-mini .wm-nav .wm-f.has::after {
    top: var(--sp-1);
    right: auto;
    left: calc(var(--sp-5) + var(--icon-md) - var(--sp-1));
  } /* unread dot on the icon's shoulder */
  /* compose: same 40px height both ways, icon on the axis, the pill narrows with the column */
  #wm .wm-nav .wm-compose-btn,
  #wm.nav-mini .wm-nav .wm-compose-btn {
    align-self: stretch;
    width: auto;
    height: var(--h-md);
    min-width: 0;
    margin: 2px 0 var(--sp-4);
    padding: 0 var(--sp-4) 0 var(--sp-5);
    gap: var(--sp-2);
    justify-content: flex-start;
    border-radius: var(--r-pill);
    white-space: nowrap;
    overflow: hidden;
  }
  #wm .wm-nav .wm-cbi,
  #wm.nav-mini .wm-nav span.wm-cbi:not(.x) {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--icon-md);
    height: var(--icon-md);
  }
  #wm .wm-nav .wm-cbt {
    flex: 1;
    text-align: center;
    margin-right: calc(var(--icon-md) + var(--sp-2));
  } /* centred on the whole button */
  /* section heads ("Labels", "Channels"): kept at full height when folded, and their + stays on the axis */
  #wm .wm-nav .wm-lhead,
  #wm.nav-mini .wm-nav .wm-lhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--nav-axis) - var(--sp-2) - var(--h-sm) / 2) 0 var(--sp-5);
    white-space: nowrap;
    overflow: hidden;
  }
  #wm .wm-nav .wm-lhead > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  } /* gives way, so the + rides the panel's right edge */
  #wm .wm-nav .wm-lhead .wm-ib,
  #wm.nav-mini .wm-nav .wm-lhead .wm-ib {
    display: grid;
    flex: none;
    width: var(--h-sm);
    margin: 0;
  }
  #wm.nav-mini .wm-nav .wm-lhead {
    padding-left: 0;
  } /* the word is hidden; 20 + 32 + 14 would not fit the 60px column */
  #wm.nav-mini .wm-nav .wm-labels:not([hidden]) {
    display: block;
  }
  /* bottom: the toggle and the account, both on the axis, same size both ways */
  #wm .wm-navtoggle,
  #wm.nav-mini .wm-navtoggle {
    align-self: flex-start;
    width: var(--h-sm);
    height: var(--h-sm);
    margin: auto 0 var(--sp-1) calc(var(--nav-axis) - var(--sp-2) - var(--h-sm) / 2);
  }
  #wm .wm-nav .wm-acct,
  #wm.nav-mini .wm-nav .wm-acct {
    align-self: stretch;
    margin: 0;
  }
  #wm .wm-nav .wm-me,
  #wm.nav-mini .wm-nav .wm-me {
    width: 100%;
    height: var(--h-row);
    padding: var(--sp-2) calc(var(--nav-axis) - var(--sp-2) - var(--h-md) / 2);
    gap: var(--sp-3);
    overflow: hidden;
    white-space: nowrap;
  }
  /* folding hides the words in place (no display:none, so no row comes or goes); opening fades them back once there is room */
  #wm
    .wm-nav
    :is(.wm-f > span:not(:first-child), .wm-f b, .wm-f small, .wm-cbt, .wm-me-n, .wm-lhead > span, .wm-ctxh, .tm-org, .wm-ctx > p) {
    transition:
      opacity 0.16s ease-out 0.12s,
      visibility 0s linear 0.12s;
  }
  #wm.nav-mini .wm-nav :is(.wm-f > span:not(:first-child), .wm-f b, .wm-f small, .wm-cbt, .wm-me-n, .wm-lhead > span) {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.1s,
      visibility 0s linear 0.1s;
  }
  #wm.nav-mini .wm-nav .wm-me-n {
    display: grid;
  }
  #wm .wm-nav :is(.wm-ctxh, .tm-org) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  } /* one line, so folding never changes their height */
  #wm.nav-mini .wm-nav :is(.wm-ctxh, .tm-org) {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.1s,
      visibility 0s linear 0.1s;
  }
  #wm.nav-mini .wm-nav .wm-f .wm-ledit {
    display: none !important;
  }
  #wm.nav-mini .wm-nav .wm-mini-cal {
    display: none;
  }
  /* webmail.js still adds these around the fold; the rules above already do the fading */
  #wm.nav-closing
    .wm-nav
    :is(.wm-f > span:not(:first-child), .wm-f b, .wm-f small, .wm-cbt, .wm-me-n, .wm-lhead > span, .wm-ctxh, .tm-org, .wm-mini-cal) {
    opacity: 0;
    transition: opacity 0.1s;
  } /* words only: a row's first span is its icon */
}
@keyframes wm-words-in {
  from {
    opacity: 0;
  }
}
/* phones and tablets: the drawer uses the same 20px icon slot as the computer panel, so every row's icon
   (folders, label dots, DM avatars, the rail apps' own marks) shares one line */
@media (max-width: 900px) {
  .webmail .wm-nav .wm-f > svg.ic:first-child {
    flex: none;
    width: 18px;
    height: 18px;
    margin-inline: 1px;
  }
  .webmail .wm-nav .wm-f > img:first-child {
    flex: none;
    width: 20px;
    height: 20px;
  }
  .webmail .wm-nav .wm-f > .wm-ldot {
    flex: none;
    margin-inline: var(--sp-1);
  }
  .webmail .wm-nav .wm-f > .tm-avw:first-child {
    flex: none;
    margin-inline: -1px;
  }
  .webmail .wm-nav .wm-f > :is(.pn-dot, .pn-plus, .sh2-ni, .st-mark, .sd-dot):first-child {
    flex: none;
    display: grid;
    place-items: center;
  }
  .webmail .wm-nav .wm-f > .pn-dot:first-child {
    margin-inline: var(--sp-1);
  }
  .webmail .wm-nav .wm-f > .st-mark:first-child {
    margin-inline: -2px;
  }
  .webmail .wm-nav .wm-f > .sd-dot:first-child {
    margin-inline: var(--sp-2);
  }
  .webmail .wm-nav .wm-compose-btn {
    justify-content: flex-start;
    padding: 0 var(--sp-5) 0 var(--sp-3);
  } /* its icon on the same line */
  .webmail .wm-nav .wm-cbi {
    flex: none;
    display: grid;
    place-items: center;
  }
  .webmail .wm-nav .wm-cbt {
    flex: 1;
    text-align: center;
    margin-right: var(--sp-5);
  } /* label still centred on the button */
}
@media (max-width: 900px) {
  .wm-body,
  #wm.nav-mini .wm-body {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .wm-main {
    margin: 0 var(--sp-1) var(--sp-2) var(--sp-2);
  }
}
/* on computers the rail runs the full height of the window, header included: it leaves the grid and the page makes room for it */
@media (min-width: 761px) {
  #wm {
    --rail-w: 76px;
    padding-right: var(--rail-w);
  }
  .wm-rail {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--rail-w);
    padding: var(--sp-4) 0 var(--sp-2);
    background: var(--bg-2);
  }
  .wm-body {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  #wm.nav-mini .wm-body {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  #wm {
    --rail-w: 64px;
  }
  .wm-body,
  #wm.nav-mini .wm-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* the rail uses plain line icons, no product colour */
/* Hub sits in the sidebar on desktop; phones reach it from the header launcher instead */
@media (min-width: 761px) {
  .wm-right > [data-act='apps'] {
    display: none;
  }
}
@media (max-width: 760px) {
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a[data-app='hub'] {
    display: none;
  }
}
.wm-rdiv {
  width: 32px;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--gray-600);
  flex: none;
}
/* the apps scroll when there are more than fit; the edit button (and the account, when it is here) stay pinned below */
.wm-rapps {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0 var(--sp-2);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.wm-rapps::-webkit-scrollbar {
  display: none;
}
/* Chat above and Hub below never scroll away; Hub sits right under the last app */
.wm-rpin,
.wm-rhub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  flex: none;
}
.wm-rapps:empty {
  display: none;
}
@media (max-width: 760px) {
  .wm-rapps,
  .wm-rpin,
  .wm-rhub {
    display: contents;
  }
}
/* account sits at the very bottom of the rail; its menu opens to the left, upwards */
.wm-rail .wm-acct {
  margin: auto 0 var(--sp-4);
  padding-top: var(--sp-2);
  justify-self: auto;
}
.wm-rail .wm-me .wm-av {
  width: var(--h-md);
  height: var(--h-md);
  font-size: 1rem;
}
.wm-me-n {
  display: none;
}
/* in the folder panel: avatar plus name and address, a full-width row above storage */
.wm-nav .wm-acct {
  margin-top: auto;
  justify-self: auto;
}
.wm-nav .wm-acct + .wm-storage {
  margin-top: 0;
}
.wm-nav .wm-me {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-md);
  text-align: left;
  color: var(--fg);
  font: inherit;
}
.wm-nav .wm-me:hover {
  background: var(--gray-200);
}
.wm-nav .wm-me .wm-av {
  width: var(--h-md);
  height: var(--h-md);
  font-size: 1rem;
}
.wm-nav .wm-me-n {
  display: grid;
  min-width: 0;
}
.wm-nav .wm-me-n b {
  font-size: var(--fs-md);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-nav .wm-me-n small {
  color: var(--gray-900);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-rail .wm-pop {
  right: calc(100% + 8px);
  left: auto;
  top: auto;
  bottom: 0;
}
/* edit mode (Account > Edit sidebar): only now can apps be moved, added or removed */
.wm-rail.editing a[data-pos] {
  cursor: grab;
  animation: wm-jiggle 0.26s ease-in-out infinite alternate;
  transform-origin: 50% 40%;
}
/* iPhone-style: every icon jiggles slightly out of step with its neighbours */
.wm-rail.editing a[data-pos]:nth-child(2n) {
  animation-duration: 0.3s;
  animation-delay: -0.12s;
}
.wm-rail.editing a[data-pos]:nth-child(3n) {
  animation-duration: 0.28s;
  animation-delay: -0.07s;
  animation-direction: alternate-reverse;
}
.wm-rail.editing a.placeholder,
.wm-rail.editing a.gone {
  animation: none;
}
@keyframes wm-jiggle {
  from {
    transform: rotate(-2deg) translateY(0.5px);
  }
  to {
    transform: rotate(2deg) translateY(-0.5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wm-rail.editing a[data-pos] {
    animation: none;
  }
}
/* Chat and Hub are pinned, so in edit mode they grey out */
.wm-rail.editing :is(a[data-app='chat'], a[data-app='hub']) {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}
.wm-rail.editing :is(a[data-app='chat'], a[data-app='hub']) .wm-rpill {
  background: none;
}
body.rail-edit .ap-all a,
body.rail-edit .wm-ctx a {
  cursor: grab;
}
@keyframes wm-fade-in {
  from {
    opacity: 0;
  }
}
/* the pencil at the bottom of the rail starts edit mode; while editing it is a check mark that ends it */
.wm-redit {
  display: grid;
  place-items: center;
  width: 40px;
  height: var(--h-md);
  margin: auto 0 var(--sp-2);
  flex: none;
  border: 1.5px solid var(--gray-600);
  border-radius: 50%;
  background: none;
  color: var(--gray-900);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.wm-redit:hover {
  background: var(--gray-200);
  color: var(--fg);
}
.wm-redit .ic {
  width: var(--icon-md);
  height: var(--icon-md);
}
.wm-rail.editing .wm-redit {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.wm-rail.editing .wm-redit .ic {
  stroke-width: 2.4;
}
.wm-rail .wm-redit ~ .wm-acct {
  margin-top: 0;
}
@media (max-width: 760px) {
  .wm-rail:not(.editing) .wm-redit {
    display: none;
  }
  .wm-redit {
    margin: 0 var(--sp-1);
  }
}
/* edit mode: a blue pill behind the sidebar */
.wm-rail.editing::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8px 6px;
  border-radius: var(--r-pill);
  background: var(--blue-bg);
  pointer-events: none;
  animation: wm-fade-in 0.2s var(--ease);
}
/* dragging: a ghost follows the cursor, shrinking from the card into the sidebar icon; a dim copy marks where it will land */
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a.placeholder {
  opacity: 0.3;
}
:is(.wm-rapps, .wm-rpin, .wm-rhub) > a.gone {
  display: none;
}
body.rail-edit [data-rail],
.wm-rail.editing a[data-pos] {
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}
body.rail-dragging,
body.rail-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.rail-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  color: var(--fg);
  transition:
    width 0.28s var(--ease),
    height 0.28s var(--ease),
    border-radius 0.28s var(--ease),
    transform 0.28s var(--ease),
    opacity 0.2s;
}
.rail-ghost.follow {
  transition:
    width 0.28s var(--ease),
    height 0.28s var(--ease),
    border-radius 0.28s var(--ease),
    opacity 0.2s;
}
.rail-ghost.morph {
  border-radius: var(--r-pill);
}
.rg-card {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition:
    transform 0.28s var(--ease),
    opacity 0.18s;
}
.rg-card > * {
  width: 100%;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}
.rail-ghost.morph .rg-card {
  opacity: 0;
  transform: scale(var(--s, 0.3));
}
.rg-pill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s 0.08s;
}
.rail-ghost.morph .rg-pill,
.rail-ghost:not(:has(.rg-card)) .rg-pill {
  opacity: 1;
}
.rg-pill .ic {
  width: 22px;
  height: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .rail-ghost,
  .rg-card,
  .rg-pill {
    transition: none;
  }
}
body.rail-dragging .wm-rail {
  outline: 1px dashed var(--line);
  outline-offset: -4px;
  border-radius: var(--r-lg);
}
/* dragging a sidebar app over the page: the page says it will remove it */
.rail-rm-hint {
  position: fixed;
  z-index: 150;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: var(--r-lg);
  outline: 2px dashed var(--red, #e5484d);
  outline-offset: -6px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  animation: wm-fade-in 0.15s var(--ease);
}
.rail-rm-hint span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  font-size: 1rem;
  font-weight: 600;
}
.rail-rm-hint .ic {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--red, #e5484d);
}
/* phones: no dividers, and the bottom bar keeps Chat plus the first five apps */
@media (max-width: 760px) {
  .wm-rdiv {
    display: none;
  }
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a[data-pos]:nth-of-type(n + 6) {
    display: none;
  }
}
.wm-nav {
  padding-left: var(--sp-4);
}
.wm-nav .wm-f,
.wm-nav .wm-apps a {
  margin-left: calc(var(--sp-4) * -1);
  padding-left: var(--sp-6);
}
.wm-lhead {
  padding-left: var(--sp-3);
}
.wm-storage {
  padding-left: var(--sp-3);
}
/* compose: a Softnamic primary button, not a Gmail tile. Pill, brand blue, the gradient as a ring on hover */
.wm-compose-btn {
  align-self: stretch;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--h-touch);
  min-width: 0;
  margin: var(--sp-2) var(--sp-1) var(--sp-4) 0;
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  position: relative;
  isolation: isolate;
  transition:
    filter 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.wm-compose-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.wm-compose-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
}
.wm-compose-btn:hover {
  box-shadow: none;
  transform: none;
  filter: brightness(1.08);
}
.wm-compose-btn:hover::before,
.wm-compose-btn:focus-visible::before {
  opacity: 1;
}
.wm-compose-btn:active {
  transform: scale(0.98);
}
.wm-cbi .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
#wm.nav-mini .wm-compose-btn {
  width: 44px;
  height: var(--h-touch);
  padding: 0;
  border-radius: var(--r-pill);
}

/* tab mode: no rail; the apps you open sit as tabs between the brand and the search box */
.wm-apptabs {
  display: none;
}
@media (min-width: 901px) {
  body.tab-mode .wm-rail {
    display: none;
  }
  body.tab-mode #wm {
    padding-right: 0;
  }
  body.tab-mode .x2-top > h1 {
    display: none;
  }
  body.tab-mode .x2-top {
    flex-wrap: nowrap;
  }
  .wm-tabrow {
    display: flex;
    flex: none;
    align-items: center;
    min-height: var(--h-bar);
    padding: 0 var(--sp-3) 0 var(--sp-4);
    border-bottom: 1px solid var(--line);
  }
  .wm-main > .wm-tabrow ~ * {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.tab-mode .wm-body {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  body.tab-mode #wm.nav-mini .wm-body {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  body.tab-mode .wm-main {
    margin-right: var(--sp-4);
  }
  body.tab-mode .wm-apptabs {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: calc(var(--sp-2) * -1);
  }
  body.tab-mode .wm-apptabs::-webkit-scrollbar {
    display: none;
  }
  .wm-atab {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    flex: 0 0 auto;
    max-width: 180px;
    height: var(--h-sm);
    padding: 0 var(--sp-1) 0 var(--sp-3);
    border-radius: var(--r-sm);
    color: var(--gray-900);
    font-size: var(--fs-sm);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
  }
  .wm-atab:hover {
    background: var(--gray-100);
    color: var(--fg);
  }
  .wm-atab.on {
    background: var(--bg);
    color: var(--fg);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.18),
      inset 0 0 0 1px var(--gray-200);
  }
  .wm-atab.drag {
    opacity: 0.6;
    cursor: grabbing;
  }
  body.tab-mode .wm-apptabs {
    touch-action: pan-x;
  }
  .wm-atab > .ic,
  .wm-atab > img {
    width: var(--icon-sm);
    height: var(--icon-sm);
    flex: none;
    border-radius: var(--r-xs);
  }
  .wm-atab > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wm-atabx {
    display: grid;
    place-items: center;
    width: var(--h-xs);
    height: var(--h-xs);
    flex: none;
    border: 0;
    border-radius: var(--r-xs);
    background: none;
    color: inherit;
    cursor: pointer;
    opacity: 0;
  }
  .wm-atab:hover .wm-atabx,
  .wm-atab.on .wm-atabx {
    opacity: 0.7;
  }
  .wm-atabx:hover {
    opacity: 1;
    background: var(--gray-200);
  }
  .wm-atabx .ic {
    width: var(--icon-sm);
    height: var(--icon-sm);
  }
  .wm-atabnew {
    display: grid;
    place-items: center;
    width: var(--h-sm);
    height: var(--h-sm);
    flex: none;
    border-radius: var(--r-sm);
    color: var(--gray-900);
  }
  .wm-atabnew:hover {
    background: var(--gray-100);
    color: var(--fg);
  }
  .wm-atabnew .ic {
    width: var(--icon-sm);
    height: var(--icon-sm);
  }
}

/* Ask: the pill top right and Smartnamic's side panel */
.wm-right {
  gap: var(--sp-2);
}
.wm-ask {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-4) 0 var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.wm-ask:hover,
.wm-ask[aria-expanded='true'] {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
.wm-ask .ic {
  width: 18px;
  height: 18px;
}
.wm-askp {
  position: fixed;
  --ask-w: clamp(380px, 30vw, 620px);
  z-index: 96;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: min(var(--ask-w), calc(100vw - 16px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
body.glass .wm-askp {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.3);
}
.wm-askp[hidden] {
  display: none;
}
.wm-askp > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.wm-askp-pick {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 0;
  max-width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.wm-askp-pick span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-askp-pick .ic {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.7;
}
.wm-askp-pick:hover,
.wm-askp-pick[aria-expanded='true'] {
  background: var(--gray-100);
}
.wm-askp {
  position: fixed;
}
.wm-askp-menu {
  position: absolute;
  z-index: 3;
  top: 52px;
  left: 10px;
  right: 10px;
  max-height: min(70vh, 520px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}
.wm-askp-menu input {
  margin: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--bg-2, transparent);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
}
.wm-askp-menu-list {
  overflow: auto;
  padding: 0 var(--sp-2) var(--sp-2);
}
.wm-askp-menu-list p {
  margin: var(--sp-2) var(--sp-2) var(--sp-1);
  font-size: var(--fs-xxs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-900);
}
.wm-askp-mi {
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
}
.wm-askp-mi:hover,
.wm-askp-mi.on {
  background: var(--gray-100);
}
.wm-askp-mi > button:first-child,
.wm-askp-mi.new {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
}
.wm-askp-mi.new {
  width: 100%;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.wm-askp-mi.new .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.wm-askp-mi span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-askp-del {
  display: grid;
  place-items: center;
  width: var(--h-sm);
  height: var(--h-sm);
  margin-right: var(--sp-1);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--gray-900);
  cursor: pointer;
  opacity: 0;
}
.wm-askp-mi:hover .wm-askp-del {
  opacity: 1;
}
.wm-askp-del:hover {
  background: var(--gray-200);
  color: var(--red, #e5484d);
}
.wm-askp-del .ic {
  width: 15px;
  height: 15px;
}
.wm-askp > header b {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  font-weight: 500;
}
.wm-askp > header b span {
  font-weight: 700;
  margin-left: calc(var(--sp-2) * -1);
}
.wm-askp > header .ic {
  width: 18px;
  height: 18px;
}
.wm-askp-acts {
  display: flex;
  gap: 2px;
}
.wm-askp-list {
  overflow: auto;
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.wm-askp-m {
  max-width: 92%;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wm-askp-m.user {
  align-self: flex-end;
  background: var(--brand-blue, var(--blue));
  color: #fff;
  border-bottom-right-radius: var(--r-xs);
  white-space: pre-wrap;
}
.wm-askp-m.assistant {
  align-self: flex-start;
  background: var(--gray-100);
  border-bottom-left-radius: var(--r-xs);
}
.wm-askp-m.err {
  color: var(--red, #e5484d);
}
.wm-askp-m p {
  margin: 0 0 var(--sp-2);
}
.wm-askp-m p:last-child {
  margin: 0;
}
.wm-askp-m ul,
.wm-askp-m ol {
  margin: var(--sp-1) 0;
  padding-left: var(--sp-4);
}
.wm-askp-hi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: auto;
}
.wm-askp-hi p {
  margin: 0 0 var(--sp-1);
  color: var(--gray-900);
  font-size: var(--fs-md);
}
.wm-askp-chip {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
}
.wm-askp-chip:hover {
  background: var(--gray-100);
}
.wm-askp-chip.next {
  align-self: flex-start;
}
.wm-askp-off {
  color: var(--gray-900);
  font-size: var(--fs-md);
}
.wm-askp-in {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  border-top: 1px solid var(--line);
}
.wm-askp-in textarea {
  flex: 1;
  resize: none;
  min-height: var(--h-md);
  max-height: 160px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--bg-2, transparent);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
}
.wm-askp-in .wm-send {
  height: var(--h-md);
  min-width: 40px;
  padding: 0 var(--sp-3);
}
@media (min-width: 1100px) {
  body.ask-open #wm {
    padding-right: calc(clamp(380px, 30vw, 620px) + 16px);
  }
  body.ask-open .wm-rail {
    display: none;
  }
}
@media (max-width: 900px) {
  .wm-ask {
    display: none;
  }
  .wm-askp {
    top: 8px;
  }
}
.wm-askp-refs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) 0;
}
.wm-askp-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 100%;
  padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--gray-100);
  font-size: var(--fs-sm);
}
.wm-askp-ref b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-askp-ref .ic {
  width: 14px;
  height: 14px;
  flex: none;
}
.wm-askp-ref button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: inherit;
  cursor: pointer;
}
.wm-askp-at {
  margin: 0 var(--sp-3);
  max-height: 260px;
  overflow: auto;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  border: 1px solid var(--gray-200);
}
.wm-askp-at[hidden] {
  display: none;
}
.wm-askp-at p {
  margin: var(--sp-2) var(--sp-2);
  color: var(--gray-900);
  font-size: var(--fs-sm);
}
.wm-askp-at button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wm-askp-at button.on,
.wm-askp-at button:hover {
  background: var(--gray-100);
}
.wm-askp-at button .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
  flex: none;
}
.wm-askp-at button span {
  display: grid;
  min-width: 0;
}
.wm-askp-at button b {
  font-weight: 500;
  font-size: var(--fs-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-askp-at button small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-askp-m.user {
  white-space: pre-wrap;
}
.wm-ask[hidden] {
  display: none;
}
/* the apps, as a grid at the top of the empty search bar (the launcher button is gone) */
.wm-sg-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 2px;
  padding: 2px var(--sp-1) var(--sp-2);
}
.wm-suggest .wm-sg-apps button {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-1) var(--sp-2);
  border-radius: var(--r-md);
  text-align: center;
}
.wm-suggest .wm-sg-apps .wm-sg-app {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
}
.wm-suggest .wm-sg-apps span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* the right-click menu */
.wm-cmenu {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  max-width: 320px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-menu);
}
.wm-cmenu[hidden] {
  display: none;
}
.wm-cmenu button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
}
.wm-cmenu button:hover,
.wm-cmenu button:focus-visible {
  background: var(--gray-100);
  outline: none;
}
.wm-cmenu button.danger {
  color: var(--red, #e5484d);
}
.wm-cmenu button .ic,
.wm-cmenu button i {
  width: 16px;
  height: 16px;
  flex: none;
}
.wm-cmenu button span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-cmenu kbd {
  font:
    11px ui-monospace,
    monospace;
  color: var(--gray-900);
}
.wm-cmenu hr {
  margin: var(--sp-1) var(--sp-2);
  border: 0;
  border-top: 1px solid var(--line);
}
.wm-keys h3 {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-900);
}

/* Smartnamic working in the apps: the steps it took, and changes waiting for "Do it" */
.wm-asksteps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-2);
}
.wm-asksteps span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xxs);
  color: var(--muted);
  background: var(--fill, rgba(127, 127, 127, 0.12));
}
.wm-asksteps svg {
  width: 11px;
  height: 11px;
}
.wm-askcard {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 2px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line, rgba(127, 127, 127, 0.25));
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent, #3170ce) 7%, transparent);
}
.wm-askcard p {
  margin: 0;
  font-weight: 500;
}
.wm-askcard-b {
  display: flex;
  gap: var(--sp-2);
}
.wm-askcard small {
  color: var(--muted);
}
.wm-askcard.done {
  border-color: color-mix(in srgb, var(--green, #2f9e44) 45%, transparent);
}
.wm-askcard.failed {
  border-color: color-mix(in srgb, var(--red, #e03131) 45%, transparent);
}
/* ---------- Chatnamic ---------- */
.tm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}
.tm:has(.tm-side:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 36%);
}
.tm-main,
.tm-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  min-width: 0;
}
.tm-side {
  border-left: 1px solid var(--line);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.tm-side[hidden] {
  display: none;
}
.tm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--h-row);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.tm-head > div:first-child {
  display: grid;
  min-width: 0;
}
.tm-head b {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1rem;
}
.tm-head b .ic {
  width: 18px;
  height: 18px;
  color: var(--gray-900);
}
.tm-head small {
  color: var(--gray-900);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-dmhead {
  display: flex !important;
  align-items: center;
  gap: var(--sp-2);
}
.tm-dmhead > div {
  display: grid;
}
.tm-hacts {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.tm-faces {
  display: flex;
}
.tm-faces .tm-avw {
  margin-left: calc(-1 * var(--sp-2));
}
.tm-faces .tm-avw:first-child {
  margin-left: 0;
}
.tm-faces .wm-av {
  box-shadow: 0 0 0 2px var(--bg);
}
.tm-faces.lg {
  gap: var(--sp-2);
}
.tm-faces.lg .tm-avw {
  margin: 0;
}
.tm-list {
  overflow-y: auto;
  min-height: 0;
  padding: var(--sp-2) 0 var(--sp-3);
  outline: none;
}
.tm-start {
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  display: grid;
  gap: var(--sp-1);
}
.tm-start h2 {
  font-size: var(--fs-3xl);
  font-weight: 600;
}
.tm-start p {
  color: var(--gray-900);
  font-size: var(--fs-md);
}
.tm-day {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-5) var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-900);
}
.tm-day::before,
.tm-day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.tm-msg {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5) var(--sp-1);
}
.tm-msg:hover {
  background: var(--gray-100);
}
.tm-msg.grouped {
  padding-top: 1px;
}
.tm-msg .wm-av {
  width: 36px;
  height: 36px;
}
.tm-time {
  font-size: var(--fs-xxs);
  color: var(--gray-600);
  text-align: right;
  padding-top: var(--sp-1);
  visibility: hidden;
}
.tm-msg:hover .tm-time {
  visibility: visible;
}
.tm-meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.tm-meta b {
  font-size: var(--fs-md);
}
.tm-meta small {
  font-size: var(--fs-xxs);
  color: var(--gray-900);
}
.tm-text {
  font-size: var(--fs-lg);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tm-text code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: 1px var(--sp-1);
  border-radius: var(--r-xs);
  background: var(--gray-200);
}
.tm-text a {
  color: var(--blue);
  text-decoration: underline;
}
.tm-mention {
  padding: 0 var(--sp-1);
  border-radius: var(--r-xs);
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 500;
}
.tm-mention.me {
  background: color-mix(in srgb, var(--amber) 22%, transparent);
  color: var(--amber);
}
.tm-ed {
  color: var(--gray-600);
  font-size: var(--fs-xxs);
}
.tm-del {
  color: var(--gray-600);
  font-style: italic;
  font-size: var(--fs-md);
}
.tm-avw {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.tm-on {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 0 2px var(--bg);
}
.tm-tools {
  position: absolute;
  right: 16px;
  top: -14px;
  display: none;
  gap: 2px;
  padding: var(--sp-1);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
  z-index: 2;
}
.tm-msg:hover .tm-tools,
.tm-tools:focus-within {
  display: flex;
}
.tm-tools button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gray-900);
}
.tm-tools button:hover {
  background: var(--gray-100);
  color: var(--fg);
}
.tm-tools .ic {
  width: 16px;
  height: 16px;
}
.tm-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}
/* a small chip with a hit area that reaches past its edge, 44 px tall on a phone (STYLE S4) */
.tm-react::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--sp-1)) -2px;
}
@media (max-width: 760px) {
  .tm-react::before {
    inset: -10px -2px;
  }
}
.tm-react {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: var(--h-xs);
  padding: 0 var(--sp-2);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gray-200);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--fg);
}
.tm-react b {
  font-size: var(--fs-xs);
  font-weight: 600;
}
.tm-react.mine {
  background: var(--blue-bg);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.tm-replies {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}
.tm-replies:hover {
  background: var(--blue-bg);
}
.tm-replies small {
  color: var(--gray-900);
  font-weight: 400;
}
.tm-replies .ic {
  width: 15px;
  height: 15px;
}
.tm-files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.tm-img img {
  max-width: 280px;
  max-height: 200px;
  border-radius: var(--r-md);
  display: block;
}
.tm-files .wm-file {
  width: 260px;
  color: var(--fg);
}
.tm-editf {
  display: grid;
  gap: var(--sp-2);
}
.tm-editf textarea {
  width: 100%;
  min-height: 60px;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1.5px var(--blue);
  background: var(--bg);
  font: inherit;
  color: var(--fg);
}
.tm-editf > div {
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}
.tm-typing {
  min-height: 20px;
  padding: 0 var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--gray-900);
  font-style: italic;
}
.tm-compose {
  margin: 0 var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--bg);
}
.tm-compose:focus-within {
  box-shadow: none;
}
.tm-in {
  position: relative;
}
.tm-in textarea {
  display: block;
  width: 100%;
  min-height: var(--h-touch);
  max-height: 200px;
  padding: var(--sp-3) var(--sp-4) var(--sp-1);
  border: 0;
  background: none;
  resize: none;
  font: inherit;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--fg);
  outline: none;
}
.tm-cbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2) var(--sp-2);
}
.tm-cbar .muted {
  flex: 1;
  font-size: var(--fs-xxs);
}
.tm-cbar .wm-send {
  height: var(--h-sm);
  padding: 0 var(--sp-4);
}
.tm-atts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) 0;
}
.tm-atts[hidden] {
  display: none;
}
.tm-ment {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 6px);
  z-index: 20;
  width: 280px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.tm-ment[hidden] {
  display: none;
}
.tm-ment button,
.tm-pick button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
}
.tm-ment button.on,
.tm-ment button:hover,
.tm-pick button:hover {
  background: var(--gray-100);
}
.tm-ment span,
.tm-pick span {
  display: grid;
}
.tm-ment small,
.tm-pick small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.tm-ment b,
.tm-pick b {
  font-weight: 500;
  font-size: var(--fs-md);
}
.tm-pick {
  display: grid;
  gap: 2px;
  max-height: 60vh;
  overflow: auto;
}
.tm-org {
  padding: var(--sp-1) var(--sp-3) var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-lg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-c .ic {
  width: 17px;
  height: 17px;
}
.tm-dmrow .wm-av.xs {
  width: 22px;
  height: 22px;
}
.tm-dmrow .tm-on {
  width: 8px;
  height: 8px;
}
.wm-f b.tm-at {
  background: var(--red);
  color: #fff;
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xxs);
}
.tm-emojis {
  display: flex;
  gap: 2px;
  width: auto;
  padding: var(--sp-2);
}
.tm-emojis button {
  width: 32px;
  height: var(--h-sm);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: var(--fs-xl);
  cursor: pointer;
}
.tm-emojis button:hover {
  background: var(--gray-100);
}
.tm-room {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--sp-4);
  height: 100%;
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.tm-room img {
  border-radius: var(--r-xl);
}
.tm-room h1 {
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .tm:has(.tm-side:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tm:has(.tm-side:not([hidden])) .tm-main {
    display: none;
  }
  .tm-side {
    border-left: 0;
  }
  .tm-tools {
    right: 8px;
  }
  .tm-faces {
    display: none;
  }
  .tm-cbar .muted {
    display: none;
  }
}
/* get the app: header button, QR dialog, first-run welcome */
.wm-getapp-dlg header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-2) var(--sp-5);
}
.wm-getapp-dlg header span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 1.0625rem;
}
.wm-getapp-dlg header img {
  border-radius: var(--r-sm);
}
.wm-ga-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-1) var(--sp-5) var(--sp-6);
  align-items: start;
}
.wm-getapp-dlg.welcome .wm-ga-body {
  grid-template-columns: minmax(0, 1.4fr) 200px minmax(0, 1fr);
}
.wm-qr {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  padding: var(--sp-2);
  border-radius: var(--r-lg);
  background: #fff;
}
.wm-qr svg {
  width: 100%;
  height: 100%;
}
.wm-ga-qr {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  text-align: center;
}
.wm-ga-how {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.wm-ga-how h3 {
  font-size: 1rem;
  font-weight: 600;
}
.wm-steps {
  margin: 0;
  padding-left: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.wm-tour {
  display: grid;
  gap: var(--sp-2);
}
.wm-tour video {
  width: 100%;
  border-radius: var(--r-md);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.wm-tour p {
  font-size: var(--fs-md);
  color: var(--gray-900);
}
@media (max-width: 900px) {
  .wm-ga-body,
  .wm-getapp-dlg.welcome .wm-ga-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}
.wm-dlg.wide:has(.wm-getapp-dlg) {
  height: auto;
}
.wm-phoneqr {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  text-align: center;
}
/* ---------- phones: apps as a bottom tab bar, search as the header, a floating action button ---------- */
.wm-fab {
  display: none;
}
.wm-pop-set {
  justify-self: stretch;
  justify-content: flex-start;
  width: 100%;
  height: var(--h-md);
}
@media (max-width: 760px) {
  #wm {
    grid-template-rows: var(--h-bar) minmax(0, 1fr);
  }
  .webmail.imeli .wm-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3) var(--sp-2);
  }
  .wm-top > [data-act='menu'] {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 14px;
    width: var(--h-touch);
    height: var(--h-touch);
  }
  .wm-brand,
  .wm-right > [data-act='theme-toggle'],
  .wm-right > [data-act='settings'] {
    display: none !important;
  }
  .wm-search {
    height: var(--h-md);
    padding-left: var(--sp-10);
    border-radius: var(--r-pill);
  }
  .wm-search .wm-sic {
    display: none;
  }
  .wm-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .wm-main {
    margin: 0 0 var(--h-bar) !important;
    border-radius: 0;
    box-shadow: none;
  }
  .wm-rail {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--h-bar) + env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: var(--sp-1) var(--sp-1) calc(var(--sp-1) + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a {
    width: auto;
    flex: 1;
    gap: 2px;
    font-size: var(--fs-xxs);
  }
  .wm-rpill {
    width: var(--sp-12);
    height: var(--h-sm);
  }
  .wm-fab {
    display: inline-flex;
    position: fixed;
    z-index: 61;
    right: var(--sp-4);
    bottom: calc(var(--h-bar) + var(--sp-4) + env(safe-area-inset-bottom));
    align-items: center;
    gap: var(--sp-3);
    height: var(--h-row);
    padding: 0 var(--sp-5) 0 var(--sp-4);
    border: 0;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 600;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  .wm-fab .ic {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
  }
  .wm-nav {
    top: var(--h-bar) !important;
    bottom: var(--h-bar) !important;
  }
  /* lists and toolbars that fit a phone */
  .wm-bar {
    gap: 2px;
    padding: 0 var(--sp-2);
  }
  .wm-bar-title {
    font-size: 1rem;
    margin: 0 var(--sp-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wm-calmain .wm-bar .wm-pager,
  .wm-cloud .wm-bar .wm-pager > .wm-btn,
  .wm-cloud .wm-bar .wm-pager > label {
    display: none;
  }
  .wm-calmain .wm-bar > .wm-btn {
    height: var(--h-sm);
    padding: 0 var(--sp-3);
  }
  .wm-wk span {
    padding: var(--sp-2) 2px;
    text-align: center;
    font-size: var(--fs-xxs);
  }
  .wm-day {
    padding: 2px 1px var(--sp-1);
  }
  .wm-dn {
    width: 22px;
    height: 22px;
    font-size: var(--fs-xxs);
  }
  .wm-ev {
    font-size: var(--fs-xxs);
    padding: 1px var(--sp-1);
  }
  .wm-ev i {
    display: none;
  }
  .wm-ev::before {
    display: none;
  }
  .wm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }
  .wm-tiles.folders {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-cbody2 {
    padding: var(--sp-1) var(--sp-3) 90px;
  }
  .wm-tabs button {
    justify-content: center;
    padding: 0 var(--sp-2);
  }
  .wm-tabs button span {
    display: none;
  }
  .wm-tabs button[aria-selected='true'] span {
    display: inline;
  }
  .wm-list .wm-row {
    padding-right: var(--sp-2);
  }
  .tm-head {
    min-height: var(--h-row);
    padding: var(--sp-2) var(--sp-3);
  }
  .tm-compose {
    margin: 0 var(--sp-2) var(--sp-2);
  }
  .tm-msg {
    padding: var(--sp-2) var(--sp-3) var(--sp-1);
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .tm-msg .wm-av {
    width: 32px;
    height: 32px;
  }
  .tm-list {
    padding-bottom: var(--sp-1);
  }
  .wm-people {
    grid-template-columns: minmax(0, 1fr);
  }
  .wm-dlg {
    width: calc(100vw - var(--sp-4));
    max-height: calc(100vh - var(--sp-4));
    overflow: auto;
  }
  .wm-toast {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: calc(var(--h-bar) + var(--sp-3) + env(safe-area-inset-bottom));
  }
}
/* the FAB stays out of the way while writing */
@media (max-width: 760px) {
  #wm:has(.wm-compose:not(.min)) .wm-fab,
  #wm:has(.tm) .wm-fab {
    display: none;
  }
}

/* ---------- Docnamic / Sheetnamic ---------- */
.of-home {
  overflow-y: auto;
  min-height: 0;
  height: 100%;
}
.of-start {
  padding: var(--sp-6) var(--sp-8) var(--sp-6);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.of-start h2,
.of-recent h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}
.of-tpls {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.of-tpl {
  display: grid;
  gap: var(--sp-2);
  justify-items: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.of-tpl > span {
  width: 150px;
  height: 190px;
  border-radius: var(--r-xs);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  transition: box-shadow 0.15s;
}
.of-tpl:hover > span {
  box-shadow: 0 0 0 2px var(--blue);
}
.of-blank .ic {
  width: 52px;
  height: 52px;
  color: var(--blue);
  stroke-width: 1.4;
}
.of-prev {
  align-content: start;
  justify-items: start;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5);
}
.of-prev i {
  display: block;
  height: 7px;
  width: 100%;
  border-radius: var(--r-xs);
  background: #d9d9d9;
}
.of-prev i:first-child {
  width: 55%;
  height: 10px;
  background: #b4b4b4;
}
.of-prev i:nth-child(3) {
  width: 80%;
}
.of-prev.grid {
  background:
    #fff linear-gradient(#d9d9d9 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, #d9d9d9 1px, transparent 1px) 0 0 / 37px 100%;
  background-blend-mode: normal;
}
.of-recent {
  padding: var(--sp-6) var(--sp-8) var(--sp-10);
}
.of-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.of-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}
.of-item:hover {
  background: var(--gray-100);
}
.of-item > .ic {
  width: 24px;
  height: 24px;
  color: var(--blue);
  flex: none;
}
.of-item span {
  display: grid;
  min-width: 0;
}
.of-item b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.of-item small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}

.dc,
.sh {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}
.dc-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.dc-top img {
  border-radius: var(--r-sm);
  flex: none;
}
.dc-top .dc-title:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  min-width: 120px;
  max-width: 420px;
  height: var(--h-sm);
  font-size: var(--fs-lg);
  padding: 0 var(--sp-3);
}
.dc-title:hover,
.dc-title:focus {
  box-shadow: inset 0 0 0 1px var(--line-strong) !important;
}
.dc-stat {
  white-space: nowrap;
}
.dc-stat.err {
  color: var(--red);
}
.dc-sp {
  flex: 1;
}
.dc-top .wm-btn {
  height: var(--h-sm);
}
.dc-tools,
.sh-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.dc-fmt {
  width: auto !important;
  height: var(--h-sm) !important;
  font-size: var(--fs-sm) !important;
  margin-right: var(--sp-1);
}
.dc-b {
  display: grid;
  place-items: center;
  width: var(--h-sm);
  height: var(--h-sm);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--gray-900);
  cursor: pointer;
}
.dc-b:hover {
  background: var(--gray-200);
  color: var(--fg);
}
.dc-b.on {
  background: var(--blue-bg);
  color: var(--blue);
}
.dc-b .ic {
  width: 16px;
  height: 16px;
}
.dc-sep {
  width: 1px;
  height: 20px;
  margin: 0 var(--sp-2);
  background: var(--line-strong);
}
.dc-scroll {
  overflow: auto;
  min-height: 0;
  background: var(--bg-2);
  padding: var(--sp-8) var(--sp-4) var(--sp-16);
}
.dc-page {
  max-width: 816px;
  min-height: 1056px;
  margin: 0 auto;
  padding: 72px 84px;
  background: #fff;
  color: #1b1b1b;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: var(--font-sans);
  font-size: 11.5pt;
  line-height: 1.6;
  outline: none;
  color-scheme: light;
}
.dc-page img {
  max-width: 100%;
  height: auto;
}
/* the page is always white, so a fixed grey (an Opennamic picture carries its credit line here) */
.dc-page figcaption {
  color: #5f6368;
  font-size: 0.8125rem;
}
.dc-page h1 {
  font-size: 26pt;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.dc-page h2 {
  font-size: 16pt;
  font-weight: 600;
  margin: 18px 0 8px;
}
.dc-page h3 {
  font-size: 13pt;
  font-weight: 600;
  margin: 14px 0 6px;
}
.dc-page p {
  margin: 0 0 10px;
}
.dc-page ul,
.dc-page ol {
  margin: 0 0 10px;
  padding-left: 26px;
}
.dc-page a {
  color: #2b63b8;
  text-decoration: underline;
}
.dc-page blockquote {
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 3px solid #c7c7c7;
  color: #555;
}
.dc-foot {
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid var(--line);
}
@media print {
  body.webmail * {
    visibility: hidden !important;
  }
  .dc-page,
  .dc-page * {
    visibility: visible !important;
  }
  .dc-page {
    position: absolute;
    inset: 0;
    margin: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
    min-height: 0;
  }
}

.sh-ref {
  min-width: 72px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--gray-900);
}
.sh-fx {
  padding: 0 var(--sp-2);
  font-style: italic;
  color: var(--gray-600);
  font-family: Georgia, serif;
}
.sh-bar .sh-fin:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  flex: 1;
  height: var(--h-sm);
  font-size: var(--fs-md);
}
.sh-grid {
  position: relative;
  overflow: auto;
  min-height: 0;
  outline: none;
  background: var(--bg);
}
.sh-grid table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: var(--fs-sm);
}
.sh-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 26px;
  background: var(--gray-100);
  color: var(--gray-900);
  font-weight: 500;
  font-size: var(--fs-xs);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
}
.sh-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 46px;
  min-width: 46px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.sh-grid .sh-corner {
  left: 0;
  z-index: 3;
  width: 46px;
}
.sh-grid td {
  height: 26px;
  padding: 0 var(--sp-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: cell;
}
.sh-grid td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sh-grid td.b {
  font-weight: 700;
}
.sh-grid td.err {
  color: var(--red);
}
.sh-grid td.sel {
  background: var(--blue-bg);
}
.sh-grid td.cur {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: var(--bg);
}
.sh-edit:not([type='checkbox']) {
  position: absolute;
  z-index: 5;
  padding: 0 var(--sp-2);
  border-radius: 0;
  font-size: var(--fs-sm);
  box-shadow:
    inset 0 0 0 2px var(--blue),
    0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--bg);
}
.sh-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--h-sm);
  padding-top: 0;
  padding-bottom: 0;
}
.sh-foot [data-sh-sum] {
  margin-left: auto;
  white-space: nowrap;
}
.sh-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  min-width: 0;
}
.sh-tab {
  padding: var(--sp-1) var(--sp-3);
  border: 0;
  border-top: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--gray-900);
  cursor: pointer;
  white-space: nowrap;
}
.sh-tab.on {
  color: var(--fg);
  border-top-color: var(--blue);
  background: var(--bg);
}
.sh-tab-add {
  padding: var(--sp-1) var(--sp-2);
  display: inline-flex;
  align-items: center;
}
.sh-grid tr.sh-pad th,
.sh-grid tr.sh-pad td {
  height: auto;
  padding: 0;
  border: 0;
}
.wm-dropzone {
  position: fixed;
  inset: var(--sp-3);
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-2);
  border: 2px dashed var(--blue);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg) 88%, var(--blue));
  color: var(--fg);
  pointer-events: none;
  text-align: center;
}
.wm-dropzone svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
}
.wm-dropzone b {
  font-size: var(--fs-xl);
}
.wm-dropzone span {
  color: var(--gray-900);
  font-size: var(--fs-md);
  max-width: 420px;
}
.dc-auto {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
  cursor: pointer;
}
.dc-auto input {
  margin: 0;
}
.of-device .of-item {
  position: relative;
  padding-right: var(--sp-10);
}
.of-device .of-item .wm-ib {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 760px) {
  .dc-page {
    padding: var(--sp-8) var(--sp-6);
    min-height: 0;
  }
  .dc-scroll {
    padding: var(--sp-3) var(--sp-2) 90px;
  }
  .dc-top .wm-btn {
    display: none;
  }
  /* 16 px so iOS does not zoom, and a thumb-sized field */
  .dc-top .dc-title:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
    height: var(--h-touch);
    font-size: 1rem;
  }
  .dc-b {
    width: var(--h-touch);
    height: var(--h-touch);
  }
  .dc-fmt {
    height: var(--h-touch) !important;
  }
  .sh-bar .sh-fin:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
    height: var(--h-touch);
    font-size: 1rem;
  }
  .of-start,
  .of-recent {
    padding: var(--sp-4);
  }
  .of-tpl > span {
    width: 110px;
    height: 140px;
  }
}
.sh-grid table {
  width: max-content;
}
/* security settings: password, 2-step verification */
.wm-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wm-sec > div {
  display: grid;
  gap: 2px;
}
.wm-sec b {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: 500;
}
.wm-sec small {
  font-size: var(--fs-xs);
  color: var(--gray-900);
}
.wm-sec .wm-btn {
  flex: none;
  height: var(--h-sm);
}
.wm-chip.on {
  background: var(--green-bg);
  color: var(--green);
}
.wm-2fa {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}
.wm-2fa .wm-qr {
  width: 170px;
  height: 170px;
  flex: none;
}
.wm-key {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  word-break: break-all;
}
.wm-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
.wm-codes code {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--gray-100);
  text-align: center;
  font-size: var(--fs-lg);
  letter-spacing: 0.05em;
}
@media (max-width: 560px) {
  .wm-2fa {
    flex-direction: column;
    align-items: flex-start;
  }
}
.wm-qrnote {
  color: var(--amber);
}
/* Install: appears when the browser can install the app, opens its prompt */
@media (max-width: 760px) {
  .webmail.imeli .wm-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .wm-right {
    gap: 2px;
  }
}
/* -namic names in running text and headings: prefix regular, "namic" bold, whatever the parent weight */
.wmk {
  font-weight: 400;
}
.wmk b {
  font-weight: 700;
}
/* Softnamic app launcher */
.wm-apps {
  padding: var(--sp-2);
  border-radius: var(--r-2xl);
}
.wm-apps-head {
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
  font-size: var(--fs-xl);
}
.wm-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-1);
}
.wm-apps-grid a {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-1) var(--sp-3);
  border-radius: var(--r-lg);
  color: var(--fg);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.wm-apps-grid a:hover {
  background: var(--gray-100);
}
.wm-apps-grid img {
  border-radius: var(--r-md);
}
.wm-apps .wm-apps-grid a {
  height: auto;
  min-height: 0;
  margin: 0;
  flex-direction: column;
  text-align: center;
  white-space: nowrap;
}
.wm-apps {
  width: 320px;
  max-height: calc(100dvh - var(--h-bar) - var(--sp-16));
  overflow-y: auto;
}
.wm-apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wm-apps-sub {
  margin: var(--sp-3) var(--sp-2) var(--sp-1);
}
.wm-apps .wm-apps-grid button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-1) var(--sp-3);
  border: 0;
  border-radius: var(--r-lg);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
  height: auto;
  white-space: nowrap;
}
.wm-apps .wm-apps-grid button:hover {
  background: var(--gray-100);
}
.wm-apps .soon img {
  opacity: 0.55;
}
.wm-apps .soon i {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--gray-200, #333);
  color: var(--gray-900);
  font-style: normal;
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* ---------- Chatnamic call screen ---------- */
.kc {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #0b0b0c;
  color: #ededed;
  overflow: hidden;
}
.kc-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}
.kc-top div {
  display: grid;
  line-height: 1.25;
}
.kc-top small {
  color: #a1a1a1;
  font-variant-numeric: tabular-nums;
}
.kc-tag {
  margin-left: auto;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgba(146, 206, 49, 0.1);
  border: 1px solid rgba(146, 206, 49, 0.3);
  color: #c6e79a;
  font-size: var(--fs-xs);
}
.kc-stage {
  min-height: 0;
  display: flex;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
.kc-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: 1fr;
  align-content: stretch;
}
.kc-grid.strip {
  flex: 0 0 220px;
  grid-template-columns: 1fr;
  grid-auto-rows: 132px;
  overflow-y: auto;
  align-content: start;
}
.kc-tile {
  position: relative;
  min-height: 0;
  border-radius: var(--r-xl);
  background: #18181b;
  display: grid;
  place-items: center;
  overflow: hidden;
  outline: 3px solid transparent;
  outline-offset: -3px;
  transition: outline-color 0.15s;
}
.kc-tile.talk {
  outline-color: #92ce31;
}
.kc-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0;
}
.kc-tile.cam video {
  opacity: 1;
}
.kc-tile.cam .kc-av {
  opacity: 0;
}
.kc-av .wm-av {
  width: 88px;
  height: 88px;
  font-size: var(--fs-4xl);
  box-shadow: 0 0 0 0 rgba(146, 206, 49, 0.4);
}
.kc-tile.talk .kc-av .wm-av {
  animation: kc-pulse 1.2s ease-out infinite;
}
@keyframes kc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(146, 206, 49, 0.45);
  }
  100% {
    box-shadow: 0 0 0 22px rgba(146, 206, 49, 0);
  }
}
.kc-name {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.55);
  font-size: var(--fs-sm);
}
.kc-name .ic {
  width: 15px;
  height: 15px;
  color: #ff6b6b;
}
.kc-hand {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: var(--fs-3xl);
  font-style: normal;
  animation: kc-wave 1s ease-in-out infinite alternate;
}
@keyframes kc-wave {
  to {
    transform: rotate(14deg);
  }
}
.kc-screen {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--r-xl);
  background: #000;
  overflow: hidden;
}
.kc-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kc-side {
  flex: 0 0 300px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--r-xl);
  background: #18181b;
  overflow: hidden;
}
.kc-side header {
  display: grid;
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid #27272a;
}
.kc-people {
  overflow-y: auto;
  padding: var(--sp-2);
}
.kc-people div {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2);
}
.kc-people span {
  flex: 1;
}
.kc-people .ic {
  width: 16px;
  height: 16px;
  color: #ff6b6b;
}
.kc-chat {
  overflow-y: auto;
  padding: var(--sp-3) var(--sp-4);
  display: grid;
  align-content: start;
  gap: var(--sp-3);
}
.kc-chat p {
  margin: 0;
  display: grid;
  font-size: var(--fs-md);
}
.kc-send {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-top: 1px solid #27272a;
}
.kc-send input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--sp-3);
  height: var(--h-md);
  border-radius: var(--r-pill);
  border: 1px solid #333;
  background: #0b0b0c;
  color: inherit;
  font: inherit;
}
.kc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  flex-wrap: wrap;
}
.kc-bar button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--r-pill);
  background: #27272a;
  color: #ededed;
  font-size: var(--fs-2xl);
  cursor: pointer;
}
.kc-bar button:hover {
  background: #333338;
}
.kc-bar button.lit {
  background: #3170ce;
}
.kc-bar [data-kc='mic']:not(.on),
.kc-bar [data-kc='cam']:not(.on) {
  background: #3a1d1d;
  color: #ff8a8a;
}
.kc-bar .ic {
  width: 22px;
  height: 22px;
}
.kc-emo {
  display: inline-flex;
  gap: 2px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  background: #18181b;
}
.kc-emo button {
  width: 40px;
  height: var(--h-md);
  background: none;
  font-size: var(--fs-2xl);
}
.kc-emo button:hover {
  background: #27272a;
  transform: scale(1.15);
}
.kc-bar .leave {
  width: auto;
  padding: 0 var(--sp-5);
  display: inline-flex;
  gap: var(--sp-2);
  background: #d93a3a;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.kc-bar .leave:hover {
  background: #e54848;
}
.kc-fly {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.kc-r {
  position: absolute;
  bottom: 90px;
  display: grid;
  justify-items: center;
  font-size: var(--fs-4xl);
  animation: kc-up 2.6s ease-out forwards;
}
.kc-r small {
  font-size: var(--fs-xxs);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
@keyframes kc-up {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  12% {
    transform: translateY(-30px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(-58vh) scale(1);
    opacity: 0;
  }
}
.tm-roomacts {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 760px) {
  .kc-tag {
    display: none;
  }
  .kc-stage {
    padding: 0 var(--sp-2);
    flex-direction: column;
  }
  .kc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kc-grid.strip {
    flex: 0 0 110px;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    grid-template-columns: none;
    grid-auto-rows: 100%;
    overflow-x: auto;
  }
  .kc-side {
    position: absolute;
    inset: 60px var(--sp-2) 86px;
    z-index: 2;
  }
  .kc-av .wm-av {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
  .kc-bar {
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-2) calc(var(--sp-3) + env(safe-area-inset-bottom));
  }
  .kc-bar button {
    width: 44px;
    height: var(--h-touch);
  }
  .kc-emo {
    display: none;
  }
  .kc-bar .leave span {
    display: none;
  }
  .kc-bar .leave {
    padding: 0 var(--sp-4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kc-r,
  .kc-hand,
  .kc-tile.talk .kc-av .wm-av {
    animation: none;
  }
}
/* ---------- Chatnamic GIFs ---------- */
.tm-gifbtn {
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--gray-400, #555);
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.tm-gifbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tm-gifs {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--sp-2);
  height: min(460px, calc(100dvh - 120px));
  padding: var(--sp-3);
}
.tm-gifhead {
  display: grid;
  gap: var(--sp-2);
}
.tm-giftabs {
  display: flex;
  gap: var(--sp-1);
}
.tm-giftabs button {
  flex: 1;
  height: var(--h-sm);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.tm-giftabs button.on {
  background: var(--accent);
  color: var(--accent-ink, #fff);
}
.tm-gifhead input {
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border, #333);
  background: var(--bg-2, transparent);
  color: var(--fg);
  font: inherit;
}
.tm-gifpicks {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.tm-gifpicks::-webkit-scrollbar {
  display: none;
}
.tm-gifpicks button {
  flex: none;
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border: 1px solid var(--border, #333);
  border-radius: var(--r-pill);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
}
.tm-gifpicks button:hover {
  border-color: var(--accent);
}
.tm-gifgrid {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  gap: var(--sp-2);
  align-items: start;
}
.tm-gifcol {
  flex: 1;
  min-width: 0;
}
.tm-gifgrid button {
  display: block;
  width: 100%;
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
  break-inside: avoid;
}
.tm-gifgrid button:hover {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tm-gifgrid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tm-gifmsg {
  flex: 1;
  padding: var(--sp-6) var(--sp-2);
  text-align: center;
}
.tm-gifby {
  margin: 0;
  text-align: right;
  font-size: var(--fs-xxs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700, #888);
}
.tm-gif {
  position: relative;
  display: inline-block;
  margin-top: var(--sp-1);
  max-width: min(320px, 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
}
.tm-gif img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  width: auto;
}
.tm-gif span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px var(--sp-2);
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: var(--fs-xxs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.auth-brand .auth-apps {
  display: flex;
  flex-direction: row;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-3);
}
.auth-brand .auth-apps img {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
}
/* the demo sign-in's loading button */
.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  opacity: 1;
  cursor: progress;
}
.auth-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-spin {
    animation-duration: 2s;
  }
}
/* All apps */
.wm-ctxh {
  margin: var(--sp-4) var(--sp-3) var(--sp-1);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700, #888);
}
.wm-ctx img {
  border-radius: var(--r-xs);
  flex: none;
}
.wm-ctx img.soon {
  opacity: 0.55;
}
.ap-all {
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-8) var(--gutter) var(--sp-10);
}
.ap-all header {
  margin-bottom: var(--sp-2);
}
.ap-all h1 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.ap-all h1 b {
  font-weight: 700;
}
.ap-all h2 {
  margin: var(--sp-8) 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700, #888);
}
.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}
/* tiles in a row are one height: copy wraps to at most three lines at 280 px */
@media (min-width: 761px) {
  .ap-grid {
    grid-auto-rows: minmax(7.5rem, auto);
  }
}
.ap-tile {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--sp-4);
  row-gap: var(--sp-1);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--border, #2a2a2a);
  background: var(--bg-2, transparent);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.ap-tile:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ap-tile img {
  grid-row: span 2;
  border-radius: var(--r-lg);
}
.ap-tile b {
  font-weight: 400;
  font-size: var(--fs-lg);
}
.ap-tile b b {
  font-weight: 700;
}
.ap-tile small {
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--gray-800, #999);
}
.ap-tile.soon img {
  opacity: 0.6;
}
.ap-tile i {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--gray-100);
  color: var(--gray-800, #999);
  font-style: normal;
  font-size: var(--fs-xxs);
  font-weight: 600;
}
/* the edit page: Hub's cards, as buttons, plus a search bar */
.ap-search {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 520px;
  height: var(--h-touch);
  margin: var(--sp-5) 0 var(--sp-2);
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--gray-100);
  color: var(--gray-900);
}
.ap-search:focus-within {
  box-shadow: none;
}
.ap-search .ic {
  width: 20px;
  height: 20px;
  flex: none;
}
.ap-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-lg);
  outline: none;
}
.ap-edit .ap-tile {
  font: inherit;
  text-align: left;
  cursor: grab;
}
.ap-edit .ap-tile.in {
  cursor: default;
  opacity: 0.55;
}
.ap-edit .ap-tile.in:hover {
  border-color: var(--border, #2a2a2a);
  transform: none;
}
.ap-edit .ap-tile i {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.ap-edit .ap-tile i .ic {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}
.ap-glyph {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--gray-100);
  color: var(--fg);
}
.ap-glyph .ic {
  width: 28px;
  height: 28px;
}
.ap-none {
  margin-top: var(--sp-6);
}
.ap-page {
  height: 100%;
  overflow-y: auto;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.ap-page h1 {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-4xl);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.ap-page h1 b {
  font-weight: 700;
}
.ap-soon {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: rgba(146, 206, 49, 0.12);
  color: #92ce31;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.ap-lead {
  max-width: 46ch;
  margin: 0;
  color: var(--gray-800, #aaa);
  font-size: var(--fs-xl);
  line-height: 1.5;
}
.ap-list {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 var(--sp-2);
  padding: 0;
  list-style: none;
  text-align: left;
}
.ap-list li {
  display: flex;
  gap: var(--sp-3);
}
.ap-list li::before {
  content: '✓';
  color: #92ce31;
  font-weight: 700;
}
@media (max-width: 760px) {
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a[data-app='docs'],
  :is(.wm-rapps, .wm-rpin, .wm-rhub) > a[data-app='sheets'] {
    display: none;
  }
}
/* The page kit of SN.fluid, prefix fl-: headline, tiles, rows, fields, amounts, details, empty and waiting states.
   It comes before the apps' own css, so an app can adjust a piece. The rules are STYLE.md; the moving parts (press
   button, pointer, segmented control, sheet) are apps2/60-fluid.css. */
/* --fl-pad is a tile's padding and --fl-row-x a row's: a row sits 4 px inside its tile, so its corner is the
   tile's less 4 (STYLE.md S3), and its words line up with the tile's title */
.fl-page,
.fl-sheet {
  --fl-pad: var(--sp-5);
  --fl-row-x: var(--sp-4);
}
.fl-page {
  height: 100%;
  overflow-y: auto;
  padding: var(--sp-8) var(--gutter) var(--sp-12);
  container-type: inline-size;
  letter-spacing: -0.006em;
}
.fl-sheet {
  --fl-tile: color-mix(in srgb, var(--fg) 5%, transparent);
}
.fl-page > * {
  max-width: 1240px;
  margin-inline: auto;
}
.webmail :is(.fl-page, .fl-sheet) :is(a, button, label, [tabindex]):focus-visible:not(.fl-press, .fl-hit, h1, h2) {
  box-shadow: none;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.webmail .fl-page h1:focus {
  outline: 0;
  box-shadow: none;
}

.fl-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.webmail .fl-top h1 {
  margin: 0;
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.fl-top h1 span {
  display: block;
  color: var(--fl-mute);
}
.fl-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.fl-navc {
  margin-left: auto;
  color: var(--gray-900);
  font-size: var(--fs-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.fl-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.fl-col {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}
.fl-tile {
  min-width: 0;
  margin: 0;
  padding: var(--fl-pad);
  border: 0;
  border-radius: var(--r-xl);
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
}
.fl-tile.flush {
  padding: calc(var(--fl-pad) - var(--fl-row-x));
}
/* tiles one under the other are --gap apart; in a grid the grid's gap does it, so no margin there */
.fl-tile + .fl-tile {
  margin-top: var(--gap);
}
:is(.fl-col, .fl-two, .fl-kpis) > .fl-tile + .fl-tile {
  margin-top: 0;
}
.fl-tile > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--h-md);
  margin-bottom: var(--sp-2);
}
.fl-tile h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.fl-tile:not(.flush) > .fl-list,
.fl-tile:has(> header) > [data-region] .fl-list {
  margin-inline: calc(-1 * var(--fl-row-x));
}
.fl-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: var(--h-sm);
  padding: 0 var(--sp-1) 0 var(--sp-2);
  margin-right: calc(-1 * var(--sp-2));
  border-radius: var(--r-sm);
  color: var(--blue);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.fl-more .ic {
  width: var(--icon-sm);
  height: var(--icon-sm);
  transition: translate 240ms var(--ease);
}
.fl-more:hover .ic {
  translate: 2px 0;
}
.fl-foot {
  margin: var(--sp-2) 0 calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2));
}
.fl-hint {
  margin: 0;
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  line-height: var(--lh-text);
}
.fl-link {
  min-height: var(--h-sm);
  padding: 0 var(--sp-2);
  margin-left: calc(-1 * var(--sp-2));
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.fl-empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
  padding: var(--sp-10) var(--sp-5);
  text-align: center;
}
.fl-empty > .ic {
  width: var(--icon-lg);
  height: var(--icon-lg);
  margin-bottom: var(--sp-2);
  color: var(--fl-mute);
}
.fl-empty b {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.fl-empty p {
  margin: 0;
  max-width: 34ch;
  color: var(--fl-mute);
  font-size: var(--fs-md);
  text-wrap: balance;
}
.fl-empty .fl-press {
  margin-top: var(--sp-4);
}
.fl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* a row is 56 tall, 64 when its name has a line under it */
.fl-row {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--sp-1) var(--sp-4);
  min-height: var(--h-row);
  padding: var(--sp-2) var(--fl-row-x);
  border-radius: var(--r-lg);
  font-size: var(--fs-md);
  transition: background 160ms var(--ease);
}
.fl-row:has(.fl-main > :nth-child(2)) {
  min-height: calc(var(--h-row) + var(--sp-2));
}
.fl-row + .fl-row::before {
  content: '';
  position: absolute;
  inset: 0 var(--fl-row-x) auto;
  height: 1px;
  background: var(--fl-hair);
}
.fl-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.fl-main > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fl-row small,
.fl-line small {
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.fl-hit {
  justify-self: start;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.012em;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.fl-hit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
}
.webmail .fl-hit:focus-visible {
  outline: 0;
  box-shadow: none;
}
.fl-hit:focus-visible::after {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
@media (hover: hover) {
  .fl-row:has(.fl-hit:hover) {
    background: color-mix(in srgb, var(--fg) 5%, transparent);
  }
  .fl-row:hover::before,
  .fl-row:hover + .fl-row::before {
    opacity: 0;
  }
}
.fl-row:has(.fl-hit:active) {
  background: color-mix(in srgb, var(--fg) 9%, transparent);
}
.fl-row :is(.fl-press, .fl-step) {
  z-index: 1;
}
.fl-no,
.fl-amt {
  font-variant-numeric: tabular-nums;
}
.fl-amt {
  display: grid;
  justify-items: end;
  font-weight: 600;
  white-space: nowrap;
}
.fl-amt s {
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  font-weight: 400;
}
.fl-tag {
  justify-self: start;
  font-size: var(--fs-sm);
  color: var(--fl-mute);
  white-space: nowrap;
}
.fl-page .lo,
.fl-sheet .lo {
  color: var(--amber);
  font-weight: 600;
}
.fl-page .out,
.fl-sheet .out {
  color: var(--red);
  font-weight: 600;
}
.fl-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.fl-step button {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--h-sm);
  height: var(--h-sm);
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--fg);
  cursor: pointer;
  touch-action: manipulation;
  transition: scale 120ms var(--ease);
}
.fl-step button::after {
  content: '';
  position: absolute;
  inset: calc((var(--h-sm) - var(--h-touch)) / 2) 0;
}
.fl-step button:active:not(:disabled) {
  scale: 0.88;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}
.fl-step button:disabled {
  opacity: 0.35;
  cursor: default;
}
.fl-step svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.webmail .fl-step .fl-qty:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  width: 3.4em;
  height: var(--h-xs);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .webmail .fl-step .fl-qty:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):hover {
    background: color-mix(in srgb, var(--fg) 8%, transparent);
  }
}
.webmail .fl-step .fl-qty:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):focus {
  outline: 0;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.fl-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--gap);
}
.fl-tools > [data-region] {
  min-width: 0;
}
.fl-search {
  position: relative;
  flex: 0 1 280px;
  display: block;
}
.fl-search .ic {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  width: var(--icon-sm);
  height: var(--icon-sm);
  translate: 0 -50%;
  color: var(--fl-mute);
  pointer-events: none;
}
.webmail .fl-search input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  width: 100%;
  height: var(--h-md);
  padding: 0 var(--sp-4) 0 var(--sp-10);
  border: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
}
.fl-page input::placeholder {
  color: var(--fl-mute);
  opacity: 1;
}
.fl-facts {
  display: flex;
  gap: var(--sp-8);
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--fl-hair);
}
.fl-facts dt {
  color: var(--fl-mute);
  font-size: var(--fs-sm);
}
.fl-facts dd {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fl-f {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
}
.fl-f > span:first-child,
.fl-emo label {
  color: var(--fl-mute);
  font-weight: 500;
}
.webmail
  :is(.fl-f, .fl-emo)
  :is(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']), select, textarea) {
  width: 100%;
  min-width: 0;
  height: var(--h-md);
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-lg);
}
.fl-f > .fl-seg {
  justify-self: start;
}
.fl-f textarea {
  min-height: 112px;
  padding-block: var(--sp-2) !important;
  line-height: var(--lh-text);
  resize: vertical;
}
.webmail .fl-f select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
}
.fl-f:has(select) {
  position: relative;
}
.fl-f:has(select)::after {
  content: '';
  position: absolute;
  right: var(--sp-4);
  bottom: calc(var(--h-md) / 2 - var(--sp-1));
  width: 7px;
  height: 7px;
  border: solid var(--fl-mute);
  border-width: 0 1.6px 1.6px 0;
  rotate: 45deg;
  pointer-events: none;
}
.fl-2 + .fl-hint {
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-4);
}
.fl-f select option {
  background: var(--pane, var(--bg));
}
.webmail
  :is(.fl-f, .fl-emo, .fl-search)
  :is(
    input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']),
    select,
    textarea
  ):focus {
  outline: 0;
  box-shadow:
    inset 0 0 0 1.5px var(--blue),
    0 0 0 3px color-mix(in srgb, var(--blue) 26%, transparent);
}
.webmail
  .fl-f
  input[aria-invalid='true']:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']) {
  box-shadow: inset 0 0 0 1.5px var(--red);
}
.fl-r {
  position: relative;
  display: block;
}
.fl-r i {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  translate: 0 -50%;
  color: var(--fl-mute);
  font-style: normal;
  font-size: var(--fs-lg);
  pointer-events: none;
}
.webmail .fl-f .fl-r input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']) {
  padding-left: var(--sp-8);
}
.fl-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.fl-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--fs-md);
}
.fl-line > div:not(.fl-seg) {
  flex: 1;
  min-width: 0;
  display: grid;
}
.fl-line b {
  font-weight: 600;
}
.fl-line + .fl-line {
  border-top: 1px solid var(--fl-hair);
}
.fl-tile > .fl-line:first-child {
  padding-top: 0;
}
.fl-tile > .fl-line:last-child {
  padding-bottom: 0;
}
.webmail .fl-switch {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 52px;
  height: var(--h-sm);
  margin: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 44%, var(--bg));
  cursor: pointer;
  transition: background 220ms var(--ease);
}
.fl-switch::after {
  content: '';
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 28px;
  border-radius: var(--r-pill);
  background: #fff; /* style-ok: a switch's knob is white in both themes */
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.25);
  transition:
    translate 320ms cubic-bezier(0.32, 0.72, 0, 1),
    width 200ms var(--ease);
}
.webmail .fl-switch:checked {
  background: #4f7a12; /* style-ok: the light theme's green in both, white on it is readable */
}
.fl-switch:checked::after {
  translate: 20px 0;
}
.fl-switch:active::after {
  width: 33px;
}
.fl-switch:checked:active::after {
  translate: 15px 0;
}
.webmail .fl-switch:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
/* 56 tall around a 40 button */
.fl-save {
  position: sticky;
  bottom: calc(-1 * var(--sp-8));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-6);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--pane, var(--bg)) 95%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px var(--mat-line, var(--line-strong)),
    0 14px 34px -14px rgb(0 0 0 / 0.45);
  font-size: var(--fs-md);
  font-weight: 500;
  animation: sl-in 360ms cubic-bezier(0.32, 0.72, 0, 1);
}
.fl-err {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--red-bg);
  color: var(--red);
  font-size: var(--fs-md);
  font-weight: 500;
}
.fl-end {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.fl-emo {
  display: flex;
  gap: var(--sp-4);
}
.fl-emo label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
}
.webmail
  .fl-emo
  input[name='emoji']:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']) {
  width: 52px;
  height: var(--h-md);
  padding: 0;
  text-align: center;
  font-size: var(--fs-xl);
}
.fl-group {
  margin: var(--sp-5) 0;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-radius: var(--r-xl);
  background: var(--fl-tile);
}
.fl-group .fl-list {
  margin-inline: calc(-1 * var(--sp-3));
}
.fl-group .fl-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-inline: var(--sp-3);
}
.fl-group .fl-line + .fl-acts {
  margin: var(--sp-1) 0;
}
/* a state in a word with a dot beside it: fl-st, plus on (green), wait (amber) or bad (red) */
.fl-st {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.fl-st > i {
  flex: none;
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: 50%;
  background: var(--fl-mute);
}
.fl-st.on > i {
  background: var(--green);
}
.fl-st.wait > i {
  background: var(--amber);
}
.fl-st.bad > i {
  background: var(--red);
}
/* words that stand beside what is typed: an @domain, a prefix */
.fl-affix {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.fl-affix i {
  flex: none;
  color: var(--fl-mute);
  font-style: normal;
}
.fl-f > small.fl-hint {
  margin-top: var(--sp-1);
}
.fl-check {
  margin-bottom: var(--sp-3);
}
/* numbers at the top of a page: one size, --fs-2xl; the one number a screen is about may be --fs-4xl */
.fl-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--gap);
  margin: 0;
}
.fl-kpis dt {
  color: var(--fl-mute);
  font-size: var(--fs-sm);
}
.fl-kpis dd {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fl-kpis small {
  color: var(--fl-mute);
  font-size: var(--fs-sm);
}
/* a dense list for people who work in it all day: it scrolls in its own box, never the page */
.fl-scroll {
  margin-inline: calc(-1 * var(--sp-2));
  padding-inline: var(--sp-2);
  overflow-x: auto;
}
.fl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}
.fl-table th {
  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.fl-table td {
  height: var(--sp-12);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
  border-top: 1px solid var(--fl-hair);
  vertical-align: middle;
}
.fl-table tr:first-child > td {
  border-top: 0;
}
.fl-table tr:has(th) + tr > td {
  border-top: 1px solid var(--fl-hair);
}
.fl-table :is(th, td):last-child {
  padding-right: 0;
}
.fl-table :is(.num, th.num) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fl-table b {
  font-weight: 600;
}
.fl-table a:not(.fl-press) {
  color: var(--fg);
  font-weight: 500;
}
.fl-table td:last-child > .fl-acts {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
@media (hover: hover) {
  .fl-table a:not(.fl-press):hover {
    color: var(--blue);
  }
}
/* what a chart says at the pointer or the arrow keys: values lead, names follow */
.fl-read {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--fs-xs);
  white-space: nowrap;
  translate: -50% 0;
  pointer-events: none;
}
.fl-read b {
  font-size: var(--fs-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* a share of a whole: --v from 0 to 1 */
.fl-meter {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(var(--fl-mark), var(--fl-mark)) 0 / calc(var(--v) * 100%) 100% no-repeat var(--fl-tile);
}
.fl-det {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-md);
}
.fl-det > div {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--fl-hair);
}
.fl-det dt {
  flex: none;
  width: 52px;
  color: var(--fl-mute);
}
.fl-det dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.fl-sum {
  margin: var(--sp-1) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--fl-hair);
  font-size: var(--fs-md);
}
.fl-sum > div {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-1) 0;
}
.fl-sum dt {
  color: var(--fl-mute);
}
.fl-sum dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.fl-sum .total,
.fl-sum .total dt {
  color: var(--fg);
  font-size: var(--fs-xl);
  font-weight: 600;
}
.fl-note {
  display: grid;
  gap: 2px;
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--amber-bg);
  font-size: var(--fs-lg);
}
.fl-note b {
  color: var(--amber);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.fl-sk {
  min-height: 320px;
  border-radius: var(--r-xl);
  background: var(--fl-tile);
  animation: fl-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes fl-breathe {
  to {
    opacity: 0.45;
  }
}
.fl-reach {
  display: none;
}
/* on a phone the headline has the width and its button goes under it */
@container (max-width: 480px) {
  .fl-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fl-top {
    flex-wrap: wrap;
  }
  .fl-top > :first-child {
    flex: 1 1 100%;
  }
}
@container (max-width: 860px) {
  .fl-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .fl-tools {
    flex-wrap: wrap;
  }
  .fl-tools .fl-search {
    flex: 1 1 200px;
  }
}
@media (max-width: 760px) {
  .fl-page,
  .fl-sheet {
    --fl-pad: var(--sp-4);
    --fl-row-x: var(--sp-3);
  }
  /* the bottom clears the tab bar and the New button (the hub's phone layer sets the exact room) */
  .fl-page {
    padding: var(--sp-4) var(--sp-4) calc(var(--h-bar) + var(--sp-16) + var(--sp-4));
  }
  .fl-top {
    margin-bottom: var(--sp-5);
  }
  .webmail .fl-top h1 {
    font-size: var(--fs-3xl);
  }
  /* the views are a segmented control under the nav bar (iOS's scope bar), part of the bar's material once the
     page scrolls under it; the bottom keeps only the tab bar and the New button, so no two bars stack there */
  .fl-reach {
    position: fixed;
    z-index: 71;
    top: calc(var(--mob-safe-t, 0px) + var(--mob-nav-h, var(--h-touch)));
    left: var(--sp-4);
    right: var(--sp-4);
    display: flex;
    gap: 0;
    height: var(--h-touch);
    padding: var(--sp-1);
    border-radius: var(--r-md);
    background: var(--fill-2);
  }
  .fl-reach a {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    min-width: 0;
    border-radius: var(--r-sm); /* the track's 12 less its 4 of padding */
    color: var(--fg);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color 160ms var(--ease);
  }
  .fl-reach a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: var(--h-touch);
    translate: 0 -50%;
  }
  .fl-reach a:active {
    opacity: 0.6;
  }
  .fl-reach a[aria-current] {
    background: var(--pane);
    font-weight: 600;
    box-shadow:
      0 1px 3px rgb(0 0 0 / 0.12),
      inset 0 0 0 1px var(--mat-line);
  }
  .fl-reach .ic {
    display: none;
  }
  .fl-reach b {
    min-width: var(--sp-4);
    padding: 0 var(--sp-1);
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: var(--fs-xxs);
    font-weight: 600;
    line-height: var(--sp-4);
    text-align: center;
  }
  .fl-row {
    gap: var(--sp-2) var(--sp-3);
    padding-block: var(--sp-3);
  }
  /* the row is the name's hit area; the name's own box also gets a finger's height without moving a line */
  .fl-hit {
    padding-block: var(--sp-3);
    margin-block: calc(-1 * var(--sp-3));
  }
  .fl-more,
  .fl-link {
    min-height: var(--h-touch);
  }
  .fl-step button {
    width: var(--h-touch);
    height: var(--h-touch);
  }
  .webmail .fl-step .fl-qty:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
    height: var(--h-md);
    font-size: 1rem; /* under 16px iOS zooms the page */
  }
  .webmail .fl-search input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
    height: var(--h-touch);
    font-size: 1rem;
  }
  .webmail
    :is(.fl-f, .fl-emo)
    :is(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']), select) {
    height: var(--h-touch);
  }
  .webmail
    :is(.fl-f, .fl-emo)
    :is(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='hidden']), select, textarea) {
    font-size: 1rem; /* under 16px iOS zooms the page */
  }
  .fl-f:has(select)::after {
    bottom: calc(var(--h-touch) / 2 - var(--sp-1));
  }
  .fl-save {
    bottom: calc(-1 * (var(--h-bar) - var(--sp-1)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-page *,
  .fl-page *::before,
  .fl-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .fl-save,
  .fl-reach {
    background: var(--pane, var(--bg));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .fl-page,
  .fl-sheet {
    --fl-mute: var(--fg);
    --fl-hair: color-mix(in srgb, var(--fg) 40%, transparent);
  }
}
/* The shell's own apps on the page kit (site/78-fluid-page.css). Rules: STYLE.md. */

/* a menu's danger item is red words, not a red box */
.webmail .wm-menu-pop .danger {
  border: 0;
  background: none;
  box-shadow: none;
}
.webmail .wm-menu-pop :is(button, a):is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  outline: 0;
  box-shadow: none;
}

/* ---------- Cloud ---------- (prefix cld-) */
.cld-head {
  min-width: 0;
}
.cld-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0 0 var(--sp-1) calc(var(--sp-2) * -1);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.cld-crumbs a {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  color: var(--blue);
}
.cld-crumbs .ic {
  width: 12px;
  height: 12px;
  color: var(--fl-mute);
}
.fl-top h1 {
  overflow-wrap: anywhere;
}
.cld-h {
  margin: var(--sp-5) 0 var(--sp-2);
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.cld-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cld-tiles.folders {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.cld-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-xl);
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
  transition: background 160ms var(--ease);
}
.cld-tile.dir {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.cld-tile .fl-hit::after {
  border-radius: var(--r-xl);
}
.cld-pic {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: var(--fl-mute);
}
.cld-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cld-pic .ic {
  width: 34px;
  height: 34px;
}
.cld-ic {
  display: grid;
  place-items: center;
  width: var(--h-md);
  height: var(--h-md);
  border-radius: var(--r-md);
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fl-mute);
}
.cld-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cld-ic .ic {
  width: 19px;
  height: 19px;
}
.dir > .cld-ic {
  color: var(--blue);
}
.cld-name {
  display: grid;
  min-width: 0;
  padding-left: 2px;
}
.cld-name .fl-hit {
  width: 100%;
  font-size: var(--fs-md);
}
.cld-name small,
.cld-size,
.cld-at {
  overflow: hidden;
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cld-more {
  z-index: 1;
}
.cld-more .ic {
  stroke-width: 2.8;
}
.cld-row {
  grid-template-columns: auto minmax(0, 1fr) 110px 92px auto;
}
.cld-row .cld-sub {
  display: none;
}
@media (hover: hover) {
  .cld-tile:has(.fl-hit:hover) {
    background: color-mix(in srgb, var(--fg) 7%, transparent);
  }
}
.cld-tile:has(.fl-hit:active) {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}
/* how full the Cloud is, beside the headline */
.cld-use {
  flex: 0 0 220px;
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.cld-use p {
  margin: 0;
  color: var(--fl-mute);
}
.cld-use b {
  color: var(--fg);
  font-weight: 600;
}
.cld-use-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 34px;
  color: var(--fl-mute);
}
.cld-use-f .fl-press {
  margin-left: auto;
}
.cld-use.wide {
  margin-bottom: var(--sp-4);
}
/* moving by dragging onto a folder or a crumb */
.cld-dragging {
  opacity: 0.45;
}
.cld-over {
  background: color-mix(in srgb, var(--blue) 14%, transparent) !important;
  box-shadow: inset 0 0 0 2px var(--blue);
}
.cld-crumbs a.cld-over {
  color: var(--fg);
}
/* uploads: one panel, a bar a file */
.cld-up {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  max-height: min(50dvh, 420px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  background: var(--fl-sheet-bg, color-mix(in srgb, var(--pane, #fff) 94%, transparent));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  color: var(--fg);
  box-shadow:
    0 0 0 1px var(--mat-line, var(--line-strong)),
    0 20px 60px -20px rgb(0 0 0 / 0.45);
  animation: cld-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cld-up.out {
  opacity: 0;
  transform: translateY(12px);
}
@keyframes cld-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.cld-up header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
}
.cld-up ul {
  margin: 0;
  padding: 0 var(--sp-2) var(--sp-2);
  overflow-y: auto;
  list-style: none;
}
.cld-up li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
}
.cld-up li .cld-ic {
  width: 32px;
  height: var(--h-sm);
  border-radius: var(--r-sm);
}
.cld-up li.done .cld-ic {
  color: var(--green);
}
.cld-up li.bad .cld-ic,
.cld-up li.bad small {
  color: var(--red);
}
.cld-up li div {
  display: grid;
  gap: var(--sp-1);
  min-width: 0;
}
.cld-up li b {
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cld-up li small {
  color: var(--fl-mute);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.cld-up .fl-meter {
  height: 4px;
}
/* the viewer: a large sheet, the file in the middle, actions under it */
.fl-sheet.mid.cld-prev {
  width: min(1180px, calc(100vw - 48px));
  height: calc(100dvh - 48px);
}
.cld-prev .fl-sh h2 {
  overflow: hidden;
  font-size: var(--fs-xl);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cld-prev .fl-sh > div {
  min-width: 0;
}
.cld-prev .fl-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow: hidden;
}
.cld-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
}
.cld-stage.pic {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.cld-stage.pic > :is(img, video) {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cld-stage.pic > video {
  width: 100%;
  height: 100%;
}
.cld-stage.pdf iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff; /* style-ok: the page of a PDF is paper */
}
.cld-stage.pages,
.cld-stage.text {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
}
.cld-stage.pages {
  padding: var(--sp-3);
  text-align: center;
}
.cld-stage.pages canvas {
  display: block;
  margin: 0 auto var(--sp-3);
  border-radius: var(--r-xs);
  background: #fff; /* style-ok: the page of a PDF is paper */
  box-shadow: 0 0 0 1px var(--fl-hair);
}
.cld-wait {
  margin: var(--sp-4) var(--sp-5);
  color: var(--fl-mute);
  font-size: var(--fs-sm);
}
.cld-code {
  margin: 0;
  padding: var(--sp-4) var(--sp-5);
  background: none;
  font: 0.8125rem/1.55 'Geist Mono', ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.cld-md {
  max-width: 72ch;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.cld-csv {
  width: 100%;
  font-size: var(--fs-sm);
  text-align: left;
}
.cld-stage .fl-scroll {
  max-height: none;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
}
.cld-audio {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
}
.cld-audio .ic {
  width: 40px;
  height: var(--h-md);
  color: var(--fl-mute);
}
.cld-audio audio {
  width: min(420px, 80vw);
}
.cld-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.cld-bar .fl-acts {
  margin-left: auto;
}
.cld-step {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--fl-mute);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.cld-step span {
  margin-left: var(--sp-2);
}
/* Cloud Plus */
.cld-offer h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-xl);
  font-weight: 600;
}
.cld-offer p {
  margin: 0 0 var(--sp-4);
  color: var(--fl-mute);
  font-size: var(--fs-md);
}
.cld-offer .cld-wait {
  margin: 0;
}
.cld-mv .fl-list {
  max-height: 44dvh;
  overflow-y: auto;
}
.cld-mv .fl-row {
  grid-template-columns: auto minmax(0, 1fr);
}
.cld-mv .cld-crumbs {
  margin: 0 0 var(--sp-2) calc(var(--sp-2) * -1);
}
.fl-sheet.mid.cld-ask {
  width: min(420px, calc(100vw - 24px));
}
@media (max-width: 760px) {
  .fl-sheet.mid.cld-prev {
    width: 100%;
    height: calc(100dvh - 28px);
  }
  .cld-prev .fl-body {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .cld-bar .fl-acts {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
  .cld-up {
    right: 16px;
    bottom: calc(var(--mob-tab-h, 64px) + 16px + var(--mob-safe-b, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cld-up {
    animation: none;
    transition: opacity 200ms linear;
  }
  .cld-up.out {
    transform: none;
  }
}
@container (max-width: 480px) {
  .cld-use {
    flex: 1 1 100%;
  }
}
@container (max-width: 640px) {
  .cld-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .cld-row > :is(.cld-size, .cld-at) {
    display: none;
  }
  .cld-row .cld-sub {
    display: block;
  }
}
@container (max-width: 420px) {
  .cld-tiles:not(.folders) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
  }
  .cld-tile:not(.dir) {
    gap: var(--sp-2) var(--sp-1);
  }
}

/* ---------- Mail ---------- (prefix ml-) the list and the reading pane keep their layout; the mail itself selects */
.ml-tabs {
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
}
.ml-tabs .fl-seg {
  display: flex;
}
.ml-tabs .fl-seg button {
  flex: 1;
}
.webmail .wm-banner.ml-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  text-align: left;
}
.webmail .ml-banner > span:first-child {
  flex: 1 1 160px;
}
.webmail .wm-banner.ml-banner .fl-press {
  padding: 0;
  color: var(--fg);
}
.webmail .wm-banner.ml-banner .fl-press.danger {
  color: var(--red);
}
.webmail .ml-banner > .fl-press .fl-b,
.webmail .ml-banner .fl-acts .fl-b {
  min-height: var(--h);
}
/* phones: the notification offer is one slim line, not a block that pushes the mail down */
@media (max-width: 760px) {
  .webmail .wm-banner.ml-banner {
    flex-wrap: nowrap;
    gap: var(--sp-1);
    padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-4);
    font-size: var(--fs-sm);
    line-height: 1.35;
  }
  .webmail .ml-banner > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }
  .webmail .ml-banner .fl-acts {
    flex: none;
    flex-wrap: nowrap;
    gap: 0;
  }
}
.ml-empty p {
  font-size: var(--fs-lg);
}
.ml-none {
  display: grid;
  place-content: center;
  height: 100%;
  padding: var(--sp-6);
}
.webmail .ml-none h1 {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
}
.ml-none h1 span {
  display: block;
  color: var(--fl-mute);
}
/* the name is the row's button, the row is its hit area, and what else is in the row sits above it */
.webmail .ml-hit {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.ml-hit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.webmail .ml-hit:focus-visible {
  outline: 0;
  box-shadow: none;
}
.webmail .ml-hit:focus-visible::after {
  border-radius: var(--r-md);
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.webmail .wm-row > :is(.wm-check, .wm-star, .wm-hover) {
  z-index: 1;
}
.webmail .wm-row:has(.ml-hit:focus-visible) .wm-hover,
.webmail .wm-row .wm-hover:focus-within {
  display: inline-flex;
}
.webmail .wm-replyrow.fl-acts {
  gap: var(--sp-2);
}
.webmail .wm-thread h1 {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
}
/* the message window */
.webmail .wm-compose:not(.inl) {
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.webmail .wm-compose.inl {
  border-radius: var(--r-xl);
}
.webmail .wm-compose :is(.wm-chipin input, .wm-subjin):not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
.webmail .wm-compose :is(.wm-chipin input, .wm-subjin, textarea):focus {
  border: 0 !important; /* the shell's fields draw their ring with every state's own rule; here the line under the row does */
  outline: 0 !important;
  box-shadow: none !important;
}
.webmail .wm-compose .wm-cf:focus-within {
  box-shadow: inset 0 -2px 0 var(--blue);
}
.webmail .wm-compose .wm-cstat.bad {
  color: var(--red);
  font-weight: 500;
}
@media (max-width: 760px) {
  /* a long date does not squeeze the sender: it goes under, across the row */
  .webmail .wm-mh {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .webmail .wm-msg.open .wm-mdate {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }
  .webmail .wm-mwho .wm-addr {
    overflow-wrap: anywhere;
  }
  .webmail .wm-compose:not(.inl) {
    border-radius: 0;
  }
}

/* ---------- Chat ---------- (prefix tm-) messages select, what is around them does not */
.webmail .tm-msg > .tm-avw {
  align-self: start;
}
.webmail .tm-mrow {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.webmail .tm-compose {
  border-radius: var(--r-xl);
  overflow: visible;
}
.webmail .tm-compose:focus-within {
  box-shadow:
    inset 0 0 0 1.5px var(--blue),
    0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
/* one box, not a box in a box */
.webmail .tm-compose .tm-in textarea,
.webmail .tm-compose .tm-in textarea:focus {
  border: 0 !important;
  background: none;
  outline: 0 !important;
  box-shadow: none !important;
}
.webmail .tm-cbar .tm-send {
  margin-left: auto;
}
.webmail .tm-cbar .tm-send .ic {
  display: none;
}
.tm-pickrow {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.webmail .tm-editf textarea {
  border-radius: var(--r-md);
}
.webmail .tm-hacts {
  gap: var(--sp-2);
}
@media (max-width: 760px) {
  .webmail .tm-cbar .tm-send {
    --px: 0px;
  }
  .webmail .tm-cbar .tm-send .fl-b {
    width: 40px;
  }
  .webmail .tm-cbar .tm-send .ic {
    display: block;
  }
  .webmail .tm-cbar .tm-send .fl-l > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- Docs and Sheets ---------- (prefix of-) the home page; the editors keep the whole pane */
.of-new {
  display: flex;
  gap: var(--sp-4);
  margin: calc(var(--sp-1) * -1) calc(var(--sp-1) * -1) var(--sp-6);
  padding: var(--sp-1);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.webmail .of-card {
  display: grid;
  gap: var(--sp-2);
  width: 132px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
}
.of-card b {
  font-weight: 600;
}
.of-paper {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  height: 164px;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--r-lg);
  background: white;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
  transition: scale 200ms var(--ease);
}
.of-paper.blank {
  place-content: center;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent);
  color: var(--blue);
}
.of-paper .ic {
  width: 34px;
  height: 34px;
}
.of-paper i {
  height: 5px;
  border-radius: var(--r-xs);
  background: rgb(0 0 0 / 0.13);
}
.of-paper i:first-child {
  width: 62%;
  height: 9px;
  background: rgb(0 0 0 / 0.3);
}
.of-paper i:last-child {
  width: 74%;
}
.of-paper.sheet:not(.blank) {
  padding: 0;
  background:
    linear-gradient(rgb(49 112 206 / 0.14) 0 22px, transparent 22px),
    repeating-linear-gradient(transparent 0 21px, rgb(0 0 0 / 0.12) 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgb(0 0 0 / 0.12) 43px 44px), white;
}
@media (hover: hover) and (pointer: fine) {
  .of-card:hover .of-paper {
    scale: 1.03;
  }
}
.of-card:active .of-paper {
  scale: 0.97;
}
.webmail .of-card:focus-visible {
  box-shadow: none;
  outline: 0;
}
.of-card:focus-visible .of-paper {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.of-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.of-row .fl-hit {
  text-decoration: none;
}
/* the page and the grid are the whole surface: their own caret or cell shows where you are */
.webmail :is(.dc-page, .sh-grid):is(:focus, :focus-visible) {
  outline: 0;
  box-shadow: none;
}
.webmail .dc-top {
  gap: var(--sp-2);
}
.webmail .dc-title:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font-weight: 600;
}
.webmail .dc-title:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):hover {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
.webmail .dc-title:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):focus {
  outline: 0;
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.webmail .dc-b {
  border-radius: var(--r-sm);
  transition:
    background-color 160ms var(--ease),
    scale 120ms var(--ease);
}
.webmail .dc-b:active {
  scale: 0.9;
}
@media (max-width: 760px) {
  .webmail .dc-top .fl-press:not(.round) .fl-l > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .webmail .dc-top .fl-press:not(.round) {
    --px: 9px;
  }
}

/* ---------- the first-run welcome and "get the app" (markup in webmail/80-install-security-settings.js) ---------- */
/* as tall as what is in it: a top-layer dialog with height:auto stretches to the window */
.wm-dlg.wide:has(.wm-getapp-dlg) {
  height: fit-content;
}
.wm-getapp-dlg header {
  padding: var(--sp-3) var(--sp-3) var(--sp-2) var(--sp-5);
}
.wm-getapp-dlg header span {
  font-size: var(--fs-xl);
}
/* the header's spans are flex rows with a gap; the title inside them is one line of words */
.wm-getapp-dlg header b span {
  display: inline;
}
.wm-getapp-dlg header img {
  border-radius: var(--r-sm);
}
.wm-ga-body {
  padding: 0 var(--sp-5) var(--sp-5);
}
/* the two ways out share one size and one bottom edge with the tour beside them */
.wm-getapp-dlg .wm-ga-how {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: var(--sp-3);
}
.wm-getapp-dlg .wm-ga-how > :is(.wm-send, .wm-btn) {
  justify-content: center;
  width: 100%;
  height: var(--h-md);
}
.wm-getapp-dlg .wm-ga-how > .wm-send {
  margin-top: auto;
}
/* ---------- Plannamic ---------- */
.pn {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}
.pn-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px 12px;
}
.pn-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.pn-title h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  outline: none;
  border-radius: 6px;
  padding: 0 4px;
}
.pn-title h1:focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.pn-title small {
  color: var(--gray-700, #888);
}
.pn-dot {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pn-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pn-filters input,
.pn-filters select {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
}
.pn-filters input {
  width: 180px;
}
.pn-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.pn-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink, #fff);
}
.pn-chip b {
  margin-left: 4px;
  font-weight: 700;
}
.pn-faces {
  display: flex;
}
.pn-faces .wm-av {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  margin-left: -6px;
  box-shadow: 0 0 0 2px var(--bg);
}
.pn-board {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 20px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}
.pn-col {
  flex: 0 0 290px;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 16px;
  background: var(--gray-100, rgba(255, 255, 255, 0.04));
  scroll-snap-align: start;
  transition: box-shadow 0.15s;
}
.pn-col.over {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.pn-col > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 8px 14px;
}
.pn-col h3 {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  border-radius: 5px;
  padding: 1px 4px;
}
.pn-col h3:focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.pn-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--gray-700, #888);
  font-size: 0.75rem;
  text-align: center;
}
.pn-ib {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--gray-700, #888);
  font: inherit;
  cursor: pointer;
}
.pn-ib:hover {
  background: var(--bg);
  color: var(--fg);
}
.pn-list {
  min-height: 12px;
  overflow-y: auto;
  padding: 2px 8px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.pn-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
.pn-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.pn-card:focus-visible {
  outline: 2px solid var(--accent);
}
.pn-card.dragging {
  opacity: 0.4;
  transform: rotate(2deg);
}
.pn-card.drop-before {
  box-shadow: 0 -3px 0 var(--accent);
}
.pn-card.done h4 {
  color: var(--gray-700, #888);
  text-decoration: line-through;
}
.pn-card h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.pn-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pn-labels i {
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
}
.pn-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
}
.pn-sp {
  flex: 1;
}
.pn-prio {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.6875rem;
  background: var(--gray-100);
}
.pn-prio.p-urgent {
  background: #e5484d;
  color: #fff;
}
.pn-prio.p-high {
  color: #ff7a1f;
}
.pn-prio.p-medium {
  color: #f5a524;
}
.pn-prio.p-low {
  color: #7c8a96;
}
.pn-due.soon {
  color: #f5a524;
  font-weight: 600;
}
.pn-due.late {
  color: #e5484d;
  font-weight: 600;
}
.pn-av {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.6875rem !important;
}
.pn-noone {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--line);
  font-size: 0.6875rem;
}
.pn-add {
  padding: 6px 8px 10px;
}
.pn-add input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px dashed transparent;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
}
.pn-add input:hover {
  background: var(--bg);
}
.pn-add input:focus {
  border-color: var(--accent);
  background: var(--bg);
  outline: none;
}
.pn-newcol {
  flex: 0 0 200px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  background: none;
  color: var(--gray-700, #888);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.pn-newcol:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.pn-navc {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
}
.pn-plus {
  width: 20px;
  text-align: center;
  font-size: 1.125rem;
}
/* card panel */
.pn-dlg {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.pn-dlg::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.pn-panel {
  display: grid;
  gap: 10px;
  padding: 18px 22px 20px;
}
.pn-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pn-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--gray-700, #888);
}
.pn-crumb select {
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
}
.pn-ttl {
  width: 100%;
  resize: none;
  overflow: hidden;
  border: 0;
  background: none;
  color: var(--fg);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  outline: none;
  padding: 2px 0;
}
.pn-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pn-props label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
}
.pn-props select,
.pn-props input {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
}
.pn-lbls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pn-lbl {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: none;
  color: var(--c);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.55;
}
.pn-lbl.on {
  background: color-mix(in srgb, var(--c) 20%, transparent);
  opacity: 1;
}
.pn-panel h5 {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700, #888);
}
.pn-panel h5 small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 6px;
}
.pn-desc {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
}
.pn-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
}
.pn-bar i {
  display: block;
  height: 100%;
  background: #92ce31;
  border-radius: inherit;
  transition: width 0.3s;
}
.pn-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.pn-check li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
}
.pn-check li:hover {
  background: var(--gray-100);
}
.pn-check label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
}
.pn-check input {
  width: 16px;
  height: 16px;
  accent-color: #92ce31;
}
.pn-check li.done span {
  color: var(--gray-700, #888);
  text-decoration: line-through;
}
.pn-panel form input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
}
.pn-cform {
  display: flex;
  gap: 8px;
}
.pn-cform button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pn-comments {
  display: grid;
  gap: 10px;
}
.pn-cm {
  display: flex;
  gap: 10px;
}
.pn-cm p {
  margin: 2px 0 0;
  font-size: 0.875rem;
}
.pn-cm small,
.pn-none {
  color: var(--gray-700, #888);
  font-size: 0.75rem;
}
.pn-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--gray-700, #888);
}
.pn-del {
  border: 0;
  background: none;
  color: #e5484d;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.pn-del:hover {
  text-decoration: underline;
}
.pn-ask {
  width: min(380px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--fg);
}
.pn-ask::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.pn-ask h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.pn-ask input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.pn-ask footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.pn-ask button {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.pn-ask button[value='ok'] {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-weight: 600;
}
.pn-ask button.danger {
  background: #e5484d;
  color: #fff;
}
@media (max-width: 760px) {
  .pn-top {
    padding: 12px 14px 8px;
  }
  .pn-filters input {
    width: 130px;
  }
  .pn-faces {
    display: none;
  }
  .pn-board {
    padding: 4px 14px 14px;
  }
  .pn-col {
    flex-basis: 84vw;
  }
  .pn-props {
    grid-template-columns: 1fr 1fr;
  }
}
.pn .pn-filters > * {
  flex: none;
  width: auto;
  margin: 0;
}
.pn .pn-filters input[type='search'] {
  width: 190px;
}
.pn .pn-filters select {
  padding-right: 30px;
}

.pn-dlg .pn-crumb select {
  width: auto;
}
/* ---------- Statnamic ---------- (prefix st-; the rest is the page kit, site/78-fluid-page.css) */
.st-title {
  min-width: 0;
}
.st-at {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.st-at a {
  overflow-wrap: anywhere;
}
.st-at a {
  color: var(--blue);
}
.webmail .fl-page .st-first {
  max-width: 480px;
  margin-inline: 0;
}
.st-first .fl-hint {
  margin-top: 14px;
}
.st-all {
  display: grid;
  gap: 14px;
  transition: opacity 200ms var(--ease);
}
.st-all[aria-busy] {
  opacity: 0.5;
}
.st-d {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--fl-mute);
  font-size: 0.8125rem;
  font-weight: 500;
}
.st-d .ic {
  width: 14px;
  height: 14px;
}
.st-d.up {
  color: var(--green);
}
.st-d.down {
  color: var(--red);
}
.st-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fl-mute);
  font-size: 0.8125rem;
}
.st-legend i {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--fl-mark);
}
.st-legend i.l2 {
  margin-left: 9px;
  background: color-mix(in srgb, var(--fl-mute) 80%, transparent);
}
.st-chart,
.st-hours {
  position: relative;
  border-radius: 12px;
}
.st-chart svg {
  display: block;
  max-width: 100%;
}
.st-chart > [data-plot] {
  height: 240px;
}
.st-chart > .fl-read {
  top: -6px;
}
.st-grid {
  stroke: var(--fl-hair);
}
.st-ax {
  fill: var(--fl-mute);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.st-area {
  fill: color-mix(in srgb, var(--fl-mark) 14%, transparent);
}
.st-l1,
.st-l2 {
  fill: none;
  stroke: var(--fl-mark);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.st-l2 {
  stroke: color-mix(in srgb, var(--fl-mute) 80%, transparent);
  stroke-width: 1.5;
}
.st-hair {
  stroke: color-mix(in srgb, var(--fg) 30%, transparent);
}
.st-p1,
.st-p2 {
  fill: var(--fl-mark);
  stroke: var(--pane, var(--bg));
  stroke-width: 2;
}
.st-p2 {
  fill: var(--fl-mute);
}
.st-table {
  margin-top: 10px;
  font-size: 0.8125rem;
}
.st-table summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}
.st-table table {
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.st-table :is(th, td) {
  padding: 6px 0;
  border-bottom: 1px solid var(--fl-hair);
  text-align: right;
}
.st-table :is(th, td):first-child {
  text-align: left;
}
.st-table th {
  color: var(--fl-mute);
  font-weight: 500;
}
.st-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.st-rows {
  display: grid;
  gap: 11px;
  margin: 4px 0 0;
  font-size: 0.875rem;
}
.st-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px 40px;
  align-items: center;
  gap: 12px;
}
.st-rows dt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-rows dd {
  margin: 0;
}
.st-rows b {
  font-weight: 600;
  text-align: right;
}
.st-rows small {
  color: var(--fl-mute);
  font-size: 0.8125rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.st-hbars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  height: 130px;
}
.st-hbars > span {
  display: flex;
  align-items: flex-end;
  padding: 0 1px;
}
.st-hbars i {
  width: 100%;
  height: calc(var(--v) * 100%);
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--fl-mark) 55%, transparent);
}
.st-hbars .peak i,
.st-hbars .on i {
  background: var(--fl-mark);
}
.st-hours > .fl-read {
  bottom: calc(100% - 24px);
}
.st-hax {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--fl-mute);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.st-said {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.5;
}
.st-said b {
  font-weight: 600;
}
.st-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: var(--fl-tile);
}
.st-code pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.st-add {
  margin-top: 22px;
  padding-top: 14px;
}
@container (max-width: 760px) {
  .st-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 480px) {
  .st-rows > div {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) 52px 38px;
  }
}
.st-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: hsl(var(--h, 210) 45% 46%);
  color: #fff; /* style-ok: on the site's own colour */
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.st-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-mark:has(img) {
  background: var(--gray-100);
}
/* collapsed: the site's highlight is a ring round its mark, not the row's pill */
#wm.nav-mini .wm-f.st-nsite,
#wm.nav-mini .wm-f.st-nsite:hover {
  background: none;
}
#wm.nav-mini .wm-f.st-nsite .st-mark {
  transition: box-shadow 0.15s;
}
#wm.nav-mini .wm-f.st-nsite:hover .st-mark {
  box-shadow: 0 0 0 5px var(--gray-200);
}
#wm.nav-mini .wm-f.st-nsite.on .st-mark {
  box-shadow: 0 0 0 5px var(--blue-bg);
}
/* ---------- Sellnamic ----------
   The Apple-native direction of shop.softnamic.co.za: two-tone headlines, quiet tiles on an ink tint, hairlines,
   blue for the one action. Colours come from the shell's tokens, so light, dark, wallpaper and a user's own accent
   all hold. Prefix sl- (sf- for the storefront preview). Buttons, pointer, sheets: apps2/60-fluid.css. */
/* a ring you can see on every ground: the shell's halo is too faint on a tile */

/* ---------- tiles ---------- */
.sl-hide {
  margin-top: 16px;
}

/* ---------- rows: the name is the button and its hit area is the whole row ---------- */
.sl-meta,
.sl-pay,
.sl-last {
  display: grid;
  min-width: 0;
  white-space: nowrap;
}
.sl-pay span,
.sl-city {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-go {
  display: flex;
  justify-content: flex-end;
}
.sl-order {
  grid-template-columns: minmax(0, 1.6fr) 108px minmax(0, 0.8fr) 104px 104px 136px;
}
.sl-order.compact {
  grid-template-columns: minmax(0, 1fr) auto 136px;
}
.sl-order.compact :is(.sl-meta, .sl-pay) {
  display: none;
}
.sl-order.compact .sl-st {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  font-size: 0.8125rem;
}
.sl-order.compact .fl-amt {
  grid-row: 1;
  grid-column: 2;
}
.sl-order.compact .fl-main {
  grid-row: 1 / 3;
}
.sl-order.compact .sl-go {
  grid-row: 1 / 3;
  grid-column: 3;
}
.sl-low {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}
.sl-prod {
  grid-template-columns: 48px minmax(0, 1fr) 84px 110px auto;
}
.sl-cust {
  grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 0.8fr) 110px 120px;
}
.sl-cust .sl-last {
  justify-items: start;
}

/* status: a ring that fills as the order moves, its name beside it */
.sl-st {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg);
  font-size: 0.875rem;
  white-space: nowrap;
}
.sl-ring {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 34%, transparent);
  stroke-width: 2.4;
  stroke-linecap: butt;
}
.sl-ring .p {
  stroke: var(--fl-mark, var(--accent));
  stroke-width: 2.6;
}
.sl-ring path {
  stroke: var(--fl-mute);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-ring.done circle {
  stroke: none;
  fill: var(--green);
}
.sl-ring.done path {
  stroke: var(--bg);
}
.sl-st.cancelled {
  color: var(--fl-mute);
}
.sl-img {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  object-fit: cover;
  background: color-mix(in srgb, var(--c, #57534e) 26%, var(--bg));
}

/* ---------- the tool row: segments and search ---------- */

/* ---------- sales ---------- */
.sl-big {
  margin: var(--sp-1) 0 2px;
  font-size: var(--fs-4xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.sl-delta {
  margin: 0;
  color: var(--fl-mute);
  font-size: 0.8125rem;
}
.sl-delta b {
  color: var(--green);
  font-weight: 600;
}
.sl-delta b.down {
  color: var(--amber);
}
.sl-delta .ic {
  display: inline;
  margin-right: 2px;
  vertical-align: -2px;
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}
.sl-chart {
  --plot: 132px;
  position: relative;
  margin: 34px 0 0;
  border-radius: 12px;
}
.sl-tick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(24px + var(--plot) * var(--y));
  height: 1px;
  background: linear-gradient(var(--fl-hair), var(--fl-hair)) 0 0 / calc(100% - 52px) 1px no-repeat;
  color: var(--fl-mute);
  font-size: 0.6875rem;
  line-height: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.sl-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  height: var(--plot);
  margin-right: 52px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}
.sl-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1px;
}
.sl-bar i {
  width: min(22px, 100%);
  height: calc(var(--v) * 100%);
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--fl-mark) 74%, var(--pane, var(--bg)));
  transition:
    background 160ms var(--ease),
    opacity 160ms var(--ease);
}
.sl-bar.now i,
.sl-bar.on i {
  background: var(--fl-mark);
}
.sl-chart.reading .sl-bar:not(.on) i {
  opacity: 0.45;
}
.sl-axis {
  display: flex;
  justify-content: space-between;
  height: 24px;
  margin-right: 52px;
  padding-top: 6px;
  color: var(--fl-mute);
  font-size: 0.6875rem;
}
.sl-axis:has(> :nth-child(7)) > span {
  flex: 1;
  text-align: center;
}
.sl-tip {
  position: absolute;
  bottom: calc(100% - 20px);
  z-index: 3;
  display: grid;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  white-space: nowrap;
  translate: -50% 0;
  pointer-events: none;
}
.sl-tip b {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- the shop front, as on the site: an awning in the shop's colour ---------- */
.sl-front {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.sl-awning {
  display: flex;
  height: 44px;
  filter: drop-shadow(0 5px 5px rgb(0 0 0 / 0.16));
}
.sl-awning i {
  flex: 1;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(rgb(255 255 255 / 0.16), transparent 55%, rgb(0 0 0 / 0.1) 70%, transparent 82%), var(--sc);
}
.sl-awning i:nth-child(even) {
  background: linear-gradient(transparent 50%, rgb(0 0 0 / 0.07) 72%, transparent 88%), #fff; /* style-ok: the awning's white stripe */
}
.sl-front-in {
  display: grid;
  gap: 4px;
  padding: 18px 20px 20px;
}
.sl-front-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sl-front-in p {
  margin: 0 0 12px;
  color: var(--fl-mute);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.sl-sign {
  flex: none;
  padding: 4px 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.sl-sign.on {
  background: var(--green-bg);
  color: var(--fg);
}
.sl-demo .sl-front-in p {
  margin: 0;
}
.sl-due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 16px 14px 20px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: var(--blue-bg);
  font-size: 0.9375rem;
}
.sl-due > div:first-child {
  flex: 1 1 320px;
}

/* ---------- a new shop ---------- */
.sl-prog {
  gap: 16px;
}
.sl-prog h2 {
  font-size: 1.375rem;
}
.sl-prog p {
  margin: 2px 0 0;
}
.sl-meter {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  overflow: hidden;
}
.sl-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fl-mark);
  width: calc(var(--v) * 100%);
}
.fl-page > .sl-front + .fl-tile,
.fl-page > .fl-tile + .sl-inc {
  margin-top: 14px;
}
.sl-steps .fl-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}
.sl-steps .fl-main > small {
  white-space: normal;
}
.sl-steps b {
  font-size: 0.9375rem;
  font-weight: 600;
}
.sl-steps .done b {
  color: var(--fl-mute);
  font-weight: 500;
}
.sl-tick2 {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 28%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
}
.sl-steps .done .sl-tick2 {
  background: var(--green-bg);
  box-shadow: none;
  color: var(--green);
}
.sl-tick2 .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* ---------- forms ---------- */
.sl-set {
  display: grid;
  gap: 14px;
}
.webmail .fl-page .sl-set {
  max-width: 680px;
  margin-inline: 0;
}
.sl-set legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sl-set legend + * {
  clear: both;
}
.sl-set fieldset > :last-child {
  margin-bottom: 0;
}
.sl-sw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sl-sw label {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.sl-sw input[type='radio'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sl-sw i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 24%, transparent);
  transition: scale 200ms var(--ease);
}
.sl-sw input:active + i {
  scale: 0.9;
}
.sl-sw input:checked + i {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.sl-sw input:focus-visible + i {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--blue) 28%, transparent);
}
.sl-sw .sl-own {
  display: inline-flex;
  width: auto;
  gap: 8px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  font-size: 0.8125rem;
}
.webmail :is(.sl-own, .fl-emo) input[type='color'] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
:is(.sl-own, .fl-emo) input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}
:is(.sl-own, .fl-emo) input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}
@keyframes sl-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
.sl-photo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.sl-photo .sl-img {
  border-radius: 20px;
}
.sl-photo > div:last-child {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.sl-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: var(--fill-2, var(--gray-200));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.sl-file:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.sl-file .ic {
  width: 17px;
  height: 17px;
}

/* ---------- inside a sheet ---------- */
.sl-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  text-align: center;
  color: var(--fl-mute);
}
.sl-flow li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
}
.sl-flow li + li::before {
  content: '';
  position: absolute;
  top: 12px;
  right: calc(50% + 15px);
  left: calc(-50% + 15px);
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--fg) 16%, transparent);
}
.sl-flow li:is(.past, .at)::before {
  background: var(--accent);
}
.sl-flow i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fg) 20%, transparent);
}
.sl-flow :is(.past, .at) i {
  background: var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}
.sl-flow .ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.sl-flow :is(.past, .at) {
  color: var(--fg);
}
.sl-flow .at {
  font-weight: 600;
}
.sl-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}
.sl-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  background: var(--fl-tile);
}
.sl-plan.pop {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.sl-plan h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.sl-plan em {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.sl-price {
  margin: 0;
  color: var(--fl-mute);
}
.sl-price b {
  color: var(--fg);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.sl-plan ul {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 6px 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.sl-plan li {
  display: flex;
  gap: 8px;
}
.sl-plan li .ic {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
}
/* what the plan includes: the line-up's apps, each one tap from here */
.sl-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 2px 10px;
  margin: 0 -8px 6px;
  padding: 0;
  list-style: none;
}
.sl-apps :is(a, .sl-app) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.sl-apps a:hover {
  background: var(--fl-tile);
}
.sl-apps a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.sl-apps img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.sl-apps span {
  display: grid;
  min-width: 0;
}
.sl-apps b {
  font-size: 0.875rem;
  font-weight: 600;
}
.sl-apps small {
  overflow: hidden;
  color: var(--fl-mute);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sl-inc .fl-line > .ic {
  flex: none;
}

/* ---------- storefront preview: the customer's paper, light whatever the app's theme ---------- */
/* style-ok begin: the shop's own page, not the app; the device frame changes size when you pick a device */
.sl-devbar .fl-hint {
  max-width: 44ch;
  text-align: right;
  text-wrap: balance;
}
.sf-win {
  overflow: hidden;
  border-radius: 22px;
  background: #fafaf9;
  color: #141414;
  color-scheme: light;
  container-type: inline-size;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent),
    0 30px 60px -36px rgb(0 0 0 / 0.5);
  transition: max-width 460ms cubic-bezier(0.32, 0.72, 0, 1);
}
.webmail .fl-page .sf-win.phone {
  max-width: 390px;
}
.sf-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #ececef;
}
.sf-chrome i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c9c9ce;
}
.sf-chrome span {
  flex: 1;
  margin: 0 40px 0 8px;
  padding: 3px 12px;
  border-radius: 8px;
  background: #fff;
  color: #55555b;
  font-size: 0.75rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4cqi, 36px);
  background: color-mix(in srgb, var(--sc) 14%, #fafaf9);
}
.sf-head h2 {
  margin: 0;
  font-size: clamp(1.375rem, 4cqi, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sf-head p {
  margin: 6px 0 0;
  color: #4b4b50;
  font-size: 0.9375rem;
}
.sf-win button {
  font: inherit;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.webmail .sf-win button:focus-visible:not(.fl-press) {
  outline-color: #2b63b8;
}
.sf-cartbtn {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  background: #141414;
  color: #fff;
  font-weight: 600 !important;
}
.sf-cartbtn b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sc);
  color: var(--si);
  font-size: 0.75rem;
}
.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr));
  gap: 24px 16px;
  padding: 24px clamp(16px, 4cqi, 36px);
}
.sf-p {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sf-p img,
.sf-ph {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
}
.sf-ph {
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  background: color-mix(in srgb, var(--c) 18%, #fff);
}
.sf-p h3 {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.sf-p p {
  flex: 1;
  margin: 0;
  color: #55555b;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.sf-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.sf-price s {
  color: #66666c;
  font-size: 0.8125rem;
}
.sf-p button {
  min-height: 44px;
  margin-top: 4px;
  background: var(--sc);
  color: var(--si);
  font-size: 0.875rem;
  font-weight: 600;
  transition: scale 160ms var(--ease);
}
.sf-p button:active:not(:disabled) {
  scale: 0.97;
}
.sf-p button:disabled {
  background: #e7e5e4;
  color: #6b6763;
  cursor: default;
}
.sf-none,
.sf-foot {
  margin: 0;
  padding: 18px clamp(18px, 4cqi, 36px);
  color: #55555b;
  font-size: 0.8125rem;
}
.sf-foot {
  border-top: 1px solid #e7e5e4;
}

/* style-ok end */
/* ---------- waiting ---------- */
.fl-sk.h {
  min-height: 76px;
  width: min(420px, 80%);
  margin: 0 0 26px;
}

/* the thumb-zone switcher is for phones; a computer has the sidebar */

/* ---------- narrower panes, then phones ---------- */
@container (max-width: 1020px) {
  .sl-order:not(.compact) {
    grid-template-columns: minmax(0, 1fr) 92px 104px 104px 136px;
  }
  .sl-order:not(.compact) .sl-pay {
    display: none;
  }
}
@container (max-width: 860px) {
  .sl-devbar .fl-hint {
    text-align: left;
  }
}
@container (max-width: 720px) {
  .sl-prod {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .sl-prod .fl-tag {
    display: none;
  }
  .sl-prod .sl-img,
  .sl-prod .fl-main {
    grid-row: 1;
  }
  .sl-prod .fl-amt {
    grid-row: 1;
    grid-column: 3;
  }
  .sl-prod .fl-step {
    grid-row: 2;
    grid-column: 2 / 4;
    justify-self: end;
  }
  .sl-order:not(.compact) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sl-order:not(.compact) .sl-meta {
    display: none;
  }
  .sl-order:not(.compact) .fl-amt {
    grid-row: 1;
    grid-column: 2;
  }
  .sl-order:not(.compact) .sl-st {
    grid-row: 2;
    grid-column: 1;
  }
  .sl-order:not(.compact) .sl-go {
    grid-row: 2;
    grid-column: 2;
  }
  .sl-cust {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .sl-cust :is(.sl-city, .sl-last) {
    display: none;
  }
}
@container (max-width: 480px) {
  .sl-order.compact {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sl-order.compact .fl-main {
    grid-row: 1;
  }
  .sl-order.compact .sl-st {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }
  .sl-order.compact .sl-go {
    grid-row: 2;
    grid-column: 2;
  }
  .sl-steps .fl-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .sl-steps .fl-row .fl-press {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
}
@media (max-width: 760px) {
  .fl-page .sl-view {
    display: none;
  }
  .fl-tile:not(.sl-front, .flush) {
    padding: 16px;
  }
  #wm.kb .fl-reach {
    display: none;
  }
  .sl-devbar {
    display: grid;
  }
  .sl-devbar .fl-seg {
    display: none;
  }
}
@media (prefers-contrast: more) {
  .fl-tile,
  .fl-group,
  .sl-plan {
    box-shadow: inset 0 0 0 1px var(--fg);
  }
}
@media (forced-colors: active) {
  .sl-bar i,
  .sl-meter i {
    forced-color-adjust: none;
    background: Highlight;
  }
  .sl-sw i,
  .sl-awning {
    forced-color-adjust: none;
  }
}

/* ---------- borrowed by Socialnamic (its composer and campaign dialogs); Sellnamic itself no longer uses these ---------- */
/* style-ok begin: goes with Socialnamic's overhaul */
.sh2-link {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
}
.sh2-link.danger {
  color: #e5484d;
}
.sh2-dlg {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.sh2-dlg::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.sh2-link {
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.sh2-dlg > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}
.sh2-dlg > header h3 {
  margin: 0;
  font-size: 1.25rem;
}
.sh2-dlg > p {
  padding: 0 22px;
}
.sh2-panel {
  display: grid;
  gap: 12px;
  padding: 18px 22px 20px;
}
.sh2-panel > header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sh2-panel > header h3 {
  margin: 0;
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
}
.sh2-panel label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
}
.sh2-panel input:not([type='color']):not([type='checkbox']),
.sh2-panel select,
.sh2-panel textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
}
.sh2-panel textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.sh2-panel input[type='color'] {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  vertical-align: middle;
}
.sh2-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sh2-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sh2-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.sh2-panel footer select {
  width: auto !important;
}
.sh2-panel h5 {
  margin: 4px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700, #888);
}
.sh2-panel p {
  margin: 0;
  font-size: 0.875rem;
}
@media (max-width: 760px) {
  .sh2-3 {
    grid-template-columns: 1fr 1fr;
  }
}
/* style-ok end */
/* ---------- Webnamic ---------- (prefix wn- for the app, sw- is the website itself, rendered by server.mjs) */

/* home: the websites as rows, or the designs to start from */
.wn-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.wn-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fl-mute);
}
.wn-ic .ic {
  width: 18px;
  height: 18px;
}
.wn-designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wn-design {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 10px 10px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    scale 160ms var(--ease);
}
.wn-design:active {
  scale: 0.985;
}
@media (hover: hover) and (pointer: fine) {
  .wn-design:hover {
    background: color-mix(in srgb, var(--fg) 7%, transparent);
  }
}
.webmail .wn-design:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.wn-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--fl-hair);
  pointer-events: none;
}
.wn-scale {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1200px;
  transform: scale(var(--k, 0.25));
  transform-origin: 0 0;
}
.wn-scale .sw {
  display: block;
}
.wn-dn {
  display: grid;
  gap: 2px;
  padding: 0 6px;
}
.wn-dn b {
  font-size: 0.9375rem;
  font-weight: 600;
}
.wn-dn small,
.wn-foot {
  color: var(--fl-mute);
  font-size: 0.8125rem;
}
.wn-foot {
  margin: 18px 4px 0;
}

/* the editor: the page fills the pane, everything else floats on it */
.wn {
  position: relative;
  height: 100%;
  container-type: inline-size;
}
.wn-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--well, var(--bg-2));
}
.wn-canvas {
  margin: 68px auto 112px;
  overflow: clip;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--fl-hair);
}
.wn-canvas.desktop {
  max-width: min(1240px, calc(100% - 32px));
}
.wn-canvas.phone {
  max-width: 390px;
  border-radius: 36px;
  box-shadow:
    inset 0 0 0 1px var(--fl-hair),
    0 0 0 8px color-mix(in srgb, var(--fg) 10%, transparent);
}
.wn-canvas .fl-sk {
  margin: 18px;
}
.wn-bar {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pane) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px var(--mat-line, var(--line-strong)),
    0 12px 30px -14px rgb(0 0 0 / 0.5);
}
.wn-left {
  top: 12px;
  left: 12px;
  max-width: calc(50% - 20px);
}
.wn-right {
  top: 12px;
  right: 12px;
  padding-left: 14px;
}
.wn-right .fl-st {
  margin-right: 6px;
}
.webmail .wn-name:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']) {
  field-sizing: content;
  min-width: 60px;
  max-width: 260px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
}
.webmail .wn-name:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):focus {
  outline: 0;
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.wn-saved {
  padding-right: 10px;
  color: var(--fl-mute);
  font-size: 0.75rem;
  white-space: nowrap;
}
.wn-saved:empty {
  display: none;
}
.wn-dock {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 3;
  display: grid;
  justify-items: center;
  pointer-events: none;
}
.wn-dock > * {
  pointer-events: auto;
}
.wn-dock .wn-bar {
  position: static;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.wn-tools .fl-seg {
  flex: none;
  margin-right: 4px;
}

/* the website in the editor: every word can be clicked, every section has its own small bar */
.wn .sw [data-sec] {
  position: relative;
}
.wn .sw [data-k] {
  border-radius: 6px;
  outline: 0;
  cursor: text;
  transition: box-shadow 140ms var(--ease);
}
.wn .sw [data-k]:empty::before {
  content: attr(data-ph);
  opacity: 0.45;
  pointer-events: none;
}
.wn .sw [data-k]:empty {
  display: block;
  min-height: 1.4em;
}
@media (hover: hover) and (pointer: fine) {
  .wn .sw [data-k]:hover {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--blue) 45%, transparent);
  }
}
.wn .sw [data-k]:focus {
  box-shadow: 0 0 0 2px var(--blue);
}
.wn-sec {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pane) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px var(--mat-line, var(--line-strong)),
    0 10px 26px -14px rgb(0 0 0 / 0.5);
  color: var(--fg);
  font: 0.8125rem/1.2 Geist, system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 160ms var(--ease),
    transform 220ms var(--ease);
}
.wn-tn {
  padding: 0 8px 0 10px;
  color: var(--fl-mute);
  white-space: nowrap;
}
.wn .sw [data-sec]:hover > .wn-sec,
.wn .sw [data-sec]:focus-within > .wn-sec {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .wn .sw [data-sec] > .wn-sec {
    opacity: 1;
    transform: none;
  }
}
.wn .sw .sw-top {
  top: -68px; /* style-ok: the page's own bar sticks under the editor's bars, not over them */
}
/* empty places for photos, added cards, the remove cross */
.wn .sw .sw-addpic {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  margin: 0;
  border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  opacity: 0.8;
  cursor: pointer;
}
.wn .sw .sw-heropic.sw-addpic {
  margin-top: 40px;
}
.wn .sw .sw-l-split .sw-heropic.sw-addpic,
.wn .sw .sw-tile {
  margin: 0;
  aspect-ratio: 1;
  min-height: 0;
}
.wn .sw .sw-l-split .sw-heropic.sw-addpic {
  aspect-ratio: 4 / 3;
}
.wn .sw .sw-l-cover .sw-inline {
  position: static;
  width: auto;
  min-height: 0;
  margin: 24px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
}
.wn .sw .sw-pictools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
.wn .sw .sw-l-cover .sw-pictools {
  z-index: 2;
  top: 64px;
  bottom: auto;
}
.wn .sw .sw-pic:hover > .sw-pictools,
.wn .sw .sw-pic:focus-within > .sw-pictools {
  opacity: 1;
}
@media (hover: none) {
  .wn .sw .sw-pictools {
    opacity: 1;
  }
}
.wn .sw .sw-pictools button,
.wn .sw .sw-more {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pane) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--mat-line, var(--line-strong));
  color: var(--fg);
  font: 500 0.8125rem Geist, system-ui, sans-serif;
  cursor: pointer;
}
.wn .sw .sw-more {
  display: block;
  margin: 18px auto 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent);
  box-shadow: none;
  color: inherit;
}
.wn .sw .sw-itemx {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  font: 1.1rem/1 system-ui;
  opacity: 0;
  cursor: pointer;
  transition: opacity 160ms var(--ease);
}
.wn .sw :is(.sw-card, figure):hover > .sw-itemx,
.wn .sw :is(.sw-card, figure):focus-within > .sw-itemx {
  opacity: 1;
}
@media (hover: none) {
  .wn .sw .sw-itemx {
    opacity: 0.8;
  }
}
.wn .sw .sw-note {
  margin-top: 8px;
  padding: 18px;
  border: 1.5px dashed color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 16px;
}
.webmail .wn .sw :is(.sw-addpic, .sw-more, .sw-itemx, .sw-pictools button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Smartnamic beside the words you are on */
.wn-ai {
  top: 0;
  left: 0;
  z-index: 4;
}
.wn-ai[hidden] {
  display: none;
}

/* sheets */
.wn-slist .fl-row,
.wn-srow {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.wn-trow {
  grid-template-columns: minmax(0, 1fr);
}
.wn-sws {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 14px;
}
.wn-sw {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent);
  cursor: pointer;
  transition: scale 120ms var(--ease);
}
.wn-sw:active {
  scale: 0.9;
}
.wn-sw[aria-pressed='true'] {
  box-shadow:
    0 0 0 2px var(--pane, var(--bg)),
    0 0 0 4px var(--fg);
}
.wn-pick {
  overflow: hidden;
  background: conic-gradient(from 90deg, var(--red), var(--amber), var(--green), var(--blue), var(--red));
}
.wn-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.webmail .wn-sw:focus-visible,
.webmail .wn-pick:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.wn-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.wn-quick .fl-tag {
  border: 0;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.wn-set .fl-tile {
  display: grid;
  gap: 14px;
}
.wn-ok {
  margin: 0;
  color: var(--fl-mute);
  font-size: 0.8125rem;
}
.wn-ok:empty {
  display: none;
}
.wn-danger {
  margin-top: 18px;
}

/* narrow panes: the bars keep their icons, the words stay for a screen reader (STYLE B11) */
@container (max-width: 900px) {
  .wn-saved {
    display: none;
  }
}
@container (max-width: 640px) {
  .wn-tools .fl-press:not(.round) .fl-l > span,
  .wn-sec .fl-press:not(.round) .fl-l > span,
  .wn-right .fl-st {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .wn-tools .fl-press:not(.round) {
    --px: 9px;
  }
  .wn-tools .fl-seg {
    display: none;
  }
  .wn-left {
    max-width: calc(100% - 190px);
  }
  .wn-right {
    padding-left: 5px;
  }
  .wn-canvas.desktop,
  .wn-canvas.phone {
    max-width: calc(100% - 16px);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--fl-hair);
  }
  .wn-sec .wn-tn {
    display: none;
  }
  .wn-sec {
    max-width: calc(100% - 20px);
  }
}
/* the page is the surface: no New website button over it */
@media (max-width: 760px) {
  #wm:has(.wn-stage) .wm-fab {
    display: none;
  }
  .wn-dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-transparency: reduce) {
  .wn-bar,
  .wn-sec {
    background: var(--pane, var(--bg));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wn-sec,
  .wn-design,
  .wn .sw [data-k] {
    transition: none;
  }
}
.wn-scale .sw .sw-top {
  position: static;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* ---------- Socialnamic ---------- */
.so {
  height: 100%;
  overflow-y: auto;
  padding: 16px 20px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.so-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.so-top h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.so-top > div {
  display: flex;
  gap: 8px;
}
.so-btn {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.so-ghost {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.so-ghost:hover {
  border-color: var(--accent);
}
.so-muted {
  color: var(--gray-700, #888);
  font-size: 0.875rem;
  margin: 0;
}
.so-note {
  margin-top: 4px;
}
.so-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.so-kpis > div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.so-kpis small,
.so-kpis span {
  color: var(--gray-700, #888);
  font-size: 0.75rem;
}
.so-kpis b {
  font-size: 1.5rem;
  font-weight: 600;
}
.so-kpis b.sm {
  font-size: 1rem;
}
.so-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.so-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
}
.so-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 2px 8px;
}
.so-card h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.so-card header a {
  color: var(--accent);
  font-size: 0.8125rem;
  text-decoration: none;
}
.so-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.so-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.so-post:hover {
  background: var(--gray-100);
  border-radius: 10px;
}
.so-pt {
  flex: 1;
  min-width: 0;
}
.so-pt p {
  margin: 0;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.so-pt small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-700, #888);
  font-size: 0.75rem;
  margin-top: 2px;
}
.so-ps {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
  white-space: nowrap;
}
.so-sched {
  font-size: 1.125rem;
}
.so-media {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  object-fit: cover;
  background: color-mix(in srgb, var(--c, #3170ce) 30%, var(--bg));
}
.so-net {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--c);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  font-style: normal;
}
.so-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
}
.so-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #92ce31, #3170ce);
}
.so-camp-b p {
  margin: 8px 0;
  font-size: 0.8125rem;
  color: var(--gray-700, #888);
}
.so-res {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--gray-700, #888);
}
.so-res b {
  color: var(--fg);
  font-size: 1rem;
}
.so-res.big {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-100);
}
.so-camps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.so-st {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.so-calbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.so-calbar button {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.so-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.so-day {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.so-day.today {
  border-color: var(--accent);
}
.so-day header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.so-day header small {
  color: var(--gray-700, #888);
}
.so-day header b {
  font-size: 1.125rem;
}
.so-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: left;
}
.so-chip.posted {
  opacity: 0.7;
}
.so-chip span {
  flex: 1;
}
.so-addday {
  margin-top: auto;
  height: 28px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: none;
  color: var(--gray-700, #888);
  cursor: pointer;
}
.so-addday:hover {
  border-color: var(--accent);
  color: var(--fg);
}
.so-accs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.so-acc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.so-acc > div {
  flex: 1;
  display: grid;
}
.so-acc small {
  color: var(--gray-700, #888);
  font-size: 0.75rem;
}
.so-big {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c);
  color: #fff;
  font-weight: 800;
}
.so-dlg {
  width: min(900px, calc(100vw - 24px));
}
.so-comp {
  display: grid;
  grid-template-columns: 1fr 280px;
}
.so-comp form {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  align-content: start;
}
.so-comp header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.so-comp header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.so-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.so-tog {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.so-tog.on {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
}
.so-tog:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.so-comp textarea,
.so-comp input:not([type='color']):not([type='checkbox']) {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
}
.so-comp textarea {
  resize: vertical;
}
.so-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
  margin-top: -6px;
}
.so-count .over {
  color: #e5484d;
  font-weight: 600;
}
.so-ideas {
  display: flex;
  gap: 8px;
}
.so-ideas input {
  flex: 1;
  height: 36px;
}
.so-idlist {
  display: grid;
  gap: 6px;
}
.so-idea {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}
.so-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.so-row > label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gray-700, #888);
}
.so-picrow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.so-comp .so-emo {
  width: 52px !important;
  text-align: center;
}
.so-comp input[type='color'] {
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
}
.so-up {
  height: 36px;
}
.so-comp footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.so-comp footer > span {
  display: flex;
  gap: 8px;
}
.so-prev {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--gray-100);
  display: grid;
  gap: 8px;
  align-content: start;
}
.so-prev small {
  color: var(--gray-700, #888);
}
.so-phone {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-size: 0.8125rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.so-ph-top {
  display: grid;
  padding: 10px 12px;
}
.so-ph-top span {
  color: #888;
  font-size: 0.6875rem;
}
.so-ph-media img,
.so-ph-media span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  font-size: 4rem;
  background: color-mix(in srgb, var(--c) 35%, #fff);
}
.so-ph-text {
  margin: 0;
  padding: 10px 12px 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow: hidden;
}
.so-ph-acts {
  padding: 6px 12px 12px;
}
@media (max-width: 900px) {
  .so-two {
    grid-template-columns: 1fr;
  }
  .so-cal {
    grid-template-columns: 1fr;
  }
  .so-day {
    min-height: 0;
  }
  .so-comp {
    grid-template-columns: 1fr;
  }
  .so-prev {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .so {
    padding: 12px 14px 90px;
  }
}
/* ---------- Chatnamic (preview) ---------- */
.cn {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.cn-thread {
  overflow-y: auto;
  padding: var(--sp-6) max(var(--sp-5), calc(50% - 380px));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cn-hello {
  margin: auto;
  max-width: 520px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
}
.cn-hello h2 {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cn-hello h2 b {
  font-weight: 700;
}
.cn-hello p {
  margin: 0;
  color: var(--gray-700, #888);
  line-height: 1.6;
}
.cn-me {
  align-self: flex-end;
  max-width: 75%;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xs) var(--r-xl);
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: var(--fs-lg);
}
.cn-ai {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  max-width: 92%;
}
.cn-ai > img {
  flex: none;
  margin-top: 2px;
}
.cn-txt {
  font-size: var(--fs-lg);
  line-height: 1.65;
}
.cn-txt b {
  font-weight: 600;
}
.cn-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: currentColor;
  animation: cn-blink 0.8s steps(2) infinite;
}
@keyframes cn-blink {
  50% {
    opacity: 0;
  }
}
.cn-think {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-1);
}
.cn-think i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-700, #888);
  animation: cn-bounce 1s infinite;
}
.cn-think i:nth-child(2) {
  animation-delay: 0.15s;
}
.cn-think i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cn-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
.cn-card {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--gray-100);
  display: grid;
  gap: var(--sp-2);
}
.cn-card header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cn-card header img {
  border-radius: var(--r-xs);
}
.cn-card p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.55;
}
.cn-card > small {
  color: var(--gray-700, #888);
  font-size: var(--fs-xs);
}
.cn-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.cn-acts button {
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  opacity: 0.75;
  cursor: not-allowed;
}
.cn-acts button:first-child {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  border-color: var(--accent);
}
.cn-dock {
  padding: var(--sp-2) max(var(--sp-5), calc(50% - 380px)) var(--sp-4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--sp-2);
}
.cn-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--gray-100);
}
.cn-input textarea,
.cn-input textarea:hover,
.cn-input textarea:focus {
  flex: 1;
  height: auto;
  padding: var(--sp-2) 0;
  resize: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-lg);
  outline: none;
}
.cn-input textarea:disabled {
  cursor: not-allowed;
}
.cn-input button {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-size: var(--fs-xl);
  opacity: 0.4;
  cursor: not-allowed;
  transition: opacity 0.15s;
}
.cn-input .cn-clip {
  background: none;
  color: var(--gray-700, #888);
  font-size: 0;
  display: grid;
  place-items: center;
}
.cn-input .cn-clip:not(:disabled):hover {
  background: var(--line);
  color: var(--fg);
}
.cn-clipw {
  position: relative;
  flex: none;
}
.cn-menu {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 0;
  z-index: 5;
  min-width: 160px;
  padding: var(--sp-2);
  display: grid;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.cn-menu[hidden] {
  display: none;
}
.cn-input .cn-menu button {
  width: auto;
  height: auto;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
}
.cn-input .cn-menu button:hover {
  background: var(--gray-100);
}
.cn-menu .ic {
  width: 18px;
  height: 18px;
}
.cn-usew {
  position: relative;
  flex: none;
}
.cn-input {
  transition: border-radius 0.18s var(--ease, ease);
}
.cn-input.multi {
  border-radius: var(--r-2xl);
  align-items: flex-end;
}
.cn-input.multi textarea {
  padding: var(--sp-2) 0;
}
.cn-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}
.cn-field textarea {
  position: relative;
  z-index: 1;
  width: 100%;
}
.cn-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  color: transparent;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.cn-ghost em {
  font-style: normal;
  color: var(--gray-600, #6b6b6b);
}
.cn-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cn-row .cn-input {
  flex: 1;
  min-width: 0;
}
@media (min-width: 1100px) {
  .cn-row {
    position: relative;
    display: block;
  }
  .cn-row .cn-usew {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
  }
}
.cn-use {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cn-use:hover {
  background: var(--gray-100);
}
.cn-input .cn-mic {
  background: none;
  color: var(--gray-700, #888);
  display: grid;
  place-items: center;
}
.cn-input .cn-mic:hover {
  background: var(--line);
  color: var(--fg);
}
.cn-input .cn-mic.on {
  color: #fff;
  background: #e5484d;
  animation: cn-rec 1.4s ease-in-out infinite;
}
@keyframes cn-rec {
  50% {
    box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.25);
  }
}
.cn-ring-bg {
  stroke: var(--line);
}
.cn-ring {
  stroke: #92ce31;
  transition: stroke-dasharray 0.4s var(--ease, ease);
}
.cn-ring.warn,
.cn-bar i.warn {
  stroke: #f5a524;
  background: #f5a524;
}
.cn-ring.bad,
.cn-bar i.bad {
  stroke: #e5484d;
  background: #e5484d;
}
.cn-pop {
  position: absolute;
  bottom: calc(100% + 18px);
  right: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 32px));
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  display: grid;
  gap: var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.cn-pop[hidden] {
  display: none;
}
.cn-pop h4 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
}
.cn-meter {
  display: grid;
  gap: var(--sp-2);
}
.cn-meter > div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.cn-meter b {
  font-weight: 500;
}
.cn-meter > div span {
  color: var(--gray-700, #888);
}
.cn-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--gray-100);
  overflow: hidden;
}
.cn-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #92ce31;
  transition: width 0.4s var(--ease, ease);
}
.cn-meter small {
  color: var(--gray-700, #888);
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.cn-attached {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.cn-attached[hidden] {
  display: none;
}
.cn-files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.cn-files:last-child {
  margin-bottom: 0;
}
.cn-file {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 260px;
  height: 30px;
  padding: 0 var(--sp-2) 0 var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--gray-100);
  color: var(--fg);
  font-size: var(--fs-sm);
}
.cn-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cn-file .ic {
  flex: none;
  width: 15px;
  height: 15px;
}
.cn-file button {
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--gray-700, #888);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.cn-file button:hover {
  background: var(--line);
  color: var(--fg);
}
.cn-me .cn-file {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: inherit;
  padding-right: var(--sp-2);
}
.cn-chat {
  position: relative;
}
.cn-chat > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.cn-del {
  flex: none;
  display: none;
  width: 26px;
  height: 26px;
  margin-right: calc(-1 * var(--sp-2));
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  color: var(--gray-700, #888);
  place-items: center;
  cursor: pointer;
}
.cn-del .ic {
  width: 16px;
  height: 16px;
}
.cn-del:hover {
  background: var(--line);
  color: #e5484d;
}
.cn-chat:hover .cn-del,
.cn-chat:focus-within .cn-del {
  display: grid;
}
@media (hover: none) {
  .cn-del {
    display: grid;
  }
}
#wm.nav-mini .cn-del {
  display: none !important;
}
.cn-cm {
  position: fixed;
  z-index: 50;
  min-width: 170px;
  padding: var(--sp-2);
  display: grid;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.cn-cm button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
}
.cn-cm button:hover,
.cn-cm button:focus-visible {
  background: var(--gray-100);
  outline: none;
}
.cn-cm .ic {
  width: 18px;
  height: 18px;
}
.cn-cm {
  max-height: min(420px, calc(100vh - 16px));
  overflow-y: auto;
}
.cn-cm button.bad {
  color: #e5484d;
}
.cn-cm hr {
  margin: var(--sp-1) var(--sp-2);
  border: 0;
  border-top: 1px solid var(--line);
}
.cn-cm button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cn-cmh {
  margin: 2px var(--sp-2) var(--sp-2);
  color: var(--gray-700, #888);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cn-navh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  border-radius: var(--r-sm);
}
.cn-navh .wm-ctxh {
  flex: 1;
}
.cn-addg {
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: var(--sp-1);
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  color: var(--gray-700, #888);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cn-addg:hover {
  background: var(--gray-100);
  color: var(--fg);
}
#wm .wm-nav .cn-tree .wm-f {
  padding-left: calc(var(--sp-4) + var(--lvl, 0) * var(--sp-4));
}
.cn-g {
  cursor: pointer;
  user-select: none;
}
.cn-g > span:not(.cn-chev) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cn-chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 14px;
  margin-right: calc(-1 * var(--sp-1));
  color: var(--gray-700, #888);
  transition: transform 0.15s var(--ease, ease);
}
.cn-chev .ic {
  width: 14px;
  height: 14px;
}
.cn-grp.open > .cn-g .cn-chev {
  transform: rotate(90deg);
}
.cn-ren {
  flex: 1;
  min-width: 0;
  height: 28px !important;
  padding: 0 var(--sp-2) !important;
  border-radius: var(--r-xs) !important;
  font-size: var(--fs-md) !important;
}
.cn-over {
  background: var(--blue-bg, rgba(49, 112, 206, 0.18)) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
[data-drag][draggable='true'] {
  -webkit-user-drag: element;
}
#wm.nav-mini .cn-addg,
#wm.nav-mini .cn-chev {
  display: none;
}
#wm.nav-mini .wm-nav .cn-tree .wm-f {
  padding-left: 0;
}
.cn-none {
  margin: 0;
  padding: var(--sp-1) var(--sp-3);
  color: var(--gray-700, #888);
  font-size: var(--fs-sm);
}
.cn-input button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}
.cn-input button.stop {
  font-size: var(--fs-xs);
}
.cn-input textarea {
  box-sizing: border-box;
  overflow-y: hidden;
  line-height: 1.5;
}
.cn-txt ul {
  margin: var(--sp-1) 0;
  padding-left: var(--sp-5);
}
.cn-txt li + li {
  margin-top: 2px;
}
.cn-txt code {
  padding: 1px var(--sp-1);
  border-radius: var(--r-xs);
  background: var(--gray-100);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.cn-txt.cn-err {
  color: #e5484d;
}
.cn-txt .cn-think {
  display: inline-flex;
}
.cn-fine {
  margin: 0;
  text-align: center;
  color: var(--gray-700, #888);
  font-size: var(--fs-xxs);
}
@media (max-width: 760px) {
  .cn-dock {
    padding-bottom: 82px;
  }
  .cn-ai {
    max-width: 100%;
  }
}

/* Softnamic logo at sign-in, now that the hosting site carries the Softnamic brand */
.logo.lg {
  gap: 13px;
}
.logo.lg .logo-mark {
  width: 44px;
  height: 18.2px;
}
.logo.lg .logo-word {
  width: 154px;
  height: 25.1px;
}
/* the Softnamic apps band on the hosting pages: app marketing is Apple-native on every Softnamic
   site, so this band is set like an app store (rows with a status pill, hairlines, a shelf of
   icons) inside the Vercel-style page */
.sn-store {
  padding: 0 clamp(16px, 4vw, 48px) clamp(36px, 5vw, 56px);
}
.sn-rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.sn-rows li {
  border-bottom: 1px solid var(--line);
}
.sn-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 6px 12px 0;
  border-radius: 12px;
  color: inherit;
  transition: background 0.15s var(--ease);
}
.sn-row:hover {
  background: var(--gray-100);
}
.sn-row img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s var(--ease);
}
.sn-row:hover img {
  transform: scale(1.04);
}
.sn-row > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.sn-row b {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-row b b {
  font-weight: 700;
}
.sn-row small {
  font-size: 0.75rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.sn-pill.live {
  background: var(--brand-blue);
  color: #fff;
}
.sn-pill.soon,
.sn-pill.coming {
  background: var(--gray-200);
  color: var(--fg);
}
.sn-pill.planned,
.sn-pill.later {
  background: var(--gray-100);
  color: var(--gray-700);
}
.sn-apps-more {
  margin-top: 18px;
}
.sn-apps-more .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 1023px) {
  .sn-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .sn-rows {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---------- the help centre (help.softnamic.co.za): Vercel docs, in the Softnamic palette ---------- */
.hhero {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 760px;
  padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 64px);
}
.hsearch {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  height: 52px;
  margin-top: 8px;
  padding: 0 6px 0 16px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.hsearch:focus-within {
  box-shadow: 0 0 0 1px var(--line-strong);
}
/* the bar is the only box: the input draws nothing of its own (no generic hover/focus ring, no native search field) */
.hsearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  outline: none;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.hsearch input::-webkit-search-decoration,
.hsearch input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.hsearch input::placeholder {
  color: var(--gray-700);
}
.hresults {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}
.hresults li a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
}
.hresults li a:hover {
  background: var(--gray-100);
}
.hresults b {
  font-weight: 500;
}
.hresults small {
  color: var(--gray-900);
}
.hresults .none {
  padding: 10px 12px;
  color: var(--gray-900);
  font-size: 0.875rem;
}
.htopic {
  color: inherit;
  transition: background 0.15s var(--ease);
}
.htopic:hover {
  background: var(--bg-2);
}
.hlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding-top: 0;
  list-style: none;
}
.hlist li {
  border-bottom: 1px solid var(--line);
}
.hlist a {
  display: grid;
  gap: 2px;
  padding: 14px 4px;
}
.hlist a:hover b {
  color: var(--blue);
}
.hlist b {
  font-weight: 500;
}
.help-doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.help-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 2px;
  align-content: start;
  align-self: start;
  font-size: 0.875rem;
}
.help-side .label {
  margin: 14px 0 6px;
}
.help-side .label:first-child {
  margin-top: 0;
}
.help-side a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--gray-900);
}
.help-side a:hover {
  color: var(--fg);
  background: var(--gray-100);
}
.help-side a[aria-current] {
  color: var(--fg);
  font-weight: 500;
}
.help-sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.help-sub a {
  font-size: 0.8125rem;
}
.help-sub a[aria-current='page'] {
  background: var(--gray-100);
}
.help-body {
  max-width: 720px;
  display: grid;
  gap: 16px;
}
.help-body .crumbs {
  display: flex;
  gap: 8px;
}
.help-body h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.help-body .lead {
  font-size: 1.0625rem;
  color: var(--gray-900);
}
.prose {
  display: grid;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.65;
}
.prose h2 {
  margin-top: 10px;
  font-size: 1.25rem;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose b {
  font-weight: 600;
}
.help-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.help-next a {
  display: grid;
  gap: 2px;
  font-weight: 500;
}
.help-next a.right {
  text-align: right;
  margin-left: auto;
}
.help-next a:hover {
  color: var(--blue);
}
@media (max-width: 899px) {
  .help-doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .help-side {
    position: static;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .help-side .label {
    grid-column: 1 / -1;
  }
  .help-sub {
    grid-column: 1 / -1;
    grid-template-columns: inherit;
    margin-left: 0;
    padding-left: 0;
    border: 0;
  }
  .hlist {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Smartnamic: the chat page (cn-) and the cards and starters it shows in the Ask panel (wm-ask…). It loads after the
   shell's chat and Ask css (last in site.order.json) and moves them to STYLE.md: the page kit's headline, quiet
   tiles instead of blue bubbles (blue is the send button), cards that say what they will do and where they stand. */

/* ---------- an empty chat: the headline and a few first messages sit just above the box, in thumb reach ---------- */
.cn-thread.empty {
  justify-content: flex-end;
}
.cn.off .cn-thread.empty {
  justify-content: center;
}
.cn-hello {
  margin: 0;
  max-width: none;
  display: block;
  text-align: left;
}
.cn-hello .fl-top {
  margin-bottom: 16px;
}
.cn-hello h1 {
  color: var(--fg);
}
.cn-hello {
  width: 100%;
  min-width: 0;
}
.cn-starts {
  width: 100%;
  gap: 8px;
}
/* a long first message wraps inside its button instead of running off a phone */
.cn-starts .fl-press {
  flex: 0 1 auto;
  max-width: 100%;
}
.cn-starts .fl-b {
  padding-block: 8px;
  line-height: 1.3;
  white-space: normal;
}
.cn-starts .fl-l {
  text-align: left;
}

/* ---------- the conversation ---------- */
.cn-me {
  padding: 10px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
  color: var(--fg);
  line-height: 1.55;
  white-space: pre-wrap;
}
.cn-me .cn-file {
  background: var(--fl-tile);
  border-color: var(--fl-hair);
  color: inherit;
}
.cn-ai > img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
}
.cn-txt {
  min-width: 0;
  line-height: 1.6;
}
.cn-txt.cn-err {
  color: var(--red);
}
.cn-send .ic {
  width: 18px;
  height: 18px;
}
.cn-stopi {
  display: block;
  width: 11px;
  height: 11px;
  margin: auto;
  border-radius: 3px;
  background: currentColor;
}
.cn-fine {
  font-size: 0.75rem;
  color: var(--fl-mute);
}

/* ---------- usage, in its sheet: each line has its words, its number and a meter under the words ---------- */
.cn-use-l > div {
  gap: 2px;
}
.cn-use-l small {
  color: var(--fl-mute);
  font-size: 0.8125rem;
}
.cn-use-l .fl-meter {
  margin-top: 8px;
}
.cn-use-n {
  align-self: flex-start;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- what Smartnamic did and proposes (drawn by 85-ask.js, here and in the Ask panel) ---------- */
.wm-asksteps {
  gap: 6px;
  margin: 0 0 8px;
}
.wm-asksteps span {
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--fl-mute);
  background: var(--fl-tile);
}
.wm-askcard {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
}
.wm-askcard.done,
.wm-askcard.failed {
  border: 0;
}
.wm-askcard > img,
.wm-askcard-i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.wm-askcard-i {
  display: grid;
  place-items: center;
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
  color: var(--fl-mute);
}
.wm-askcard-i .ic {
  width: 16px;
  height: 16px;
}
.wm-askcard > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.wm-askcard p {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.wm-askcard .fl-st {
  color: var(--fl-mute);
  white-space: normal;
}
.wm-askcard-b {
  grid-column: 2;
  gap: 8px;
}

/* ---------- the Ask panel: starters and the suggested next message are buttons of the page kit ---------- */
.wm-askp-hi > p {
  color: var(--fl-mute);
}
.wm-askp-go.next {
  align-self: flex-start;
  margin-top: 4px;
}
.wm-askp-off b {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.wm-askp-off p {
  margin: 0;
  color: var(--fl-mute);
}
/* the panel's conversation reads like the page: what they wrote in a quiet tile, the answer on the ground */
.wm-askp-m.user {
  background: var(--fl-tile);
  box-shadow: inset 0 0 0 1px var(--fl-hair);
  color: var(--fg);
  border-radius: 16px 16px 6px 16px;
}
.wm-askp-m.assistant {
  max-width: 100%;
  padding-inline: 2px;
  background: none;
}
