/*
 * Yoony public pages in the Grafit look: the marketing site (base_public.html)
 * and the sign in / account pages (account/base.html).
 *
 * Self-contained, no Bootstrap. The tokens follow static/css/yoony.css; light by
 * default, html[data-theme="dark"] switches them. base_public.html sets the
 * attribute before the first paint (profile for signed-in users, otherwise the
 * visitor's choice or the system setting).
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --yp-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --yp-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --yp-bg: #F5F6F8;
  --yp-surface: #FFFFFF;
  --yp-chrome: #F8F9FB;
  --yp-soft: #FAFBFC;
  --yp-grid: #EEF0F3;

  --yp-border: #E2E5EA;
  --yp-border-strong: #D9DDE3;
  --yp-line: #EEF0F3;
  --yp-dashed: #C9CED6;
  --yp-sep: #C9CED6;

  --yp-text: #14171C;
  --yp-text-2: #4A515C;
  --yp-text-3: #2B3038;
  --yp-muted: #646B77;
  --yp-faint: #98A0AB;

  --yp-nav-hover: #EEF0F4;
  --yp-nav-on: #E6E9EF;

  --yp-accent: #2563EB;
  --yp-link: #1F55C8;
  --yp-link-hover: #163F99;
  --yp-ring: rgba(37, 99, 235, .18);

  --yp-btn-bg: #FFFFFF;
  --yp-btn-line: #D9DDE3;
  --yp-btn-hover-bg: #F3F5F8;
  --yp-btn-hover-line: #C9CED6;
  --yp-pri-bg: #14171C;
  --yp-pri-text: #FFFFFF;
  --yp-pri-hover: #2B3038;

  --yp-input-bg: #FFFFFF;
  --yp-input-border: #D9DDE3;
  --yp-menu-bg: #FFFFFF;

  --yp-tile: #14171C;
  --yp-avatar-bg: #E6E9EF;

  --yp-shadow: 0 24px 64px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .04);
  --yp-shadow-sm: 0 12px 32px rgba(16, 24, 40, .12);

  --yp-band-bg: #14171C;
  --yp-band-line: #14171C;

  /* palette: solid (icons), tint + ink (badges, alerts), row (highlighted table rows) */
  --yp-blue: #2563EB;   --yp-blue-tint: #EAF0FE;   --yp-blue-ink: #1D4ED8;   --yp-blue-line: #AFC6F8;
  --yp-teal: #0D9488;   --yp-teal-tint: #E5F6F4;   --yp-teal-ink: #0F766E;   --yp-teal-line: #A4D9D4;
  --yp-red: #DC2626;    --yp-red-tint: #FDEDED;    --yp-red-ink: #B91C1C;    --yp-red-line: #F3B1B1;
  --yp-green: #16A34A;  --yp-green-tint: #E9F7EF;  --yp-green-ink: #15803D;  --yp-green-line: #AADEBE;
  --yp-orange: #EA580C; --yp-orange-tint: #FDF0E6;
  --yp-yellow: #CA8A04; --yp-yellow-tint: #FEF7D6; --yp-yellow-ink: #A16207; --yp-yellow-line: #EED697;
  --yp-purple: #9333EA; --yp-purple-tint: #F4ECFE; --yp-purple-ink: #7E22CE;
  --yp-pink: #DB2777;   --yp-pink-tint: #FCECF3;
  --yp-cyan: #0891B2;
  --yp-row-red: #FEF3F3;
  --yp-row-sel: #EEF3FE;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --yp-bg: #0A0C0F;
  --yp-surface: #0A0C0F;
  --yp-chrome: #0E1014;
  --yp-soft: #0E1014;
  --yp-grid: #13161B;

  --yp-border: #1E2229;
  --yp-border-strong: #2A2F38;
  --yp-line: #161A20;
  --yp-dashed: #2A2F38;
  --yp-sep: #353B46;

  --yp-text: #E6E8EB;
  --yp-text-2: #B6BCC6;
  --yp-text-3: #D5D9E0;
  --yp-muted: #7D8593;
  --yp-faint: #545B67;

  --yp-nav-hover: #151920;
  --yp-nav-on: #1A1F27;

  --yp-accent: #5B9DFF;
  --yp-link: #7DA6FF;
  --yp-link-hover: #A9C4FF;
  --yp-ring: rgba(91, 157, 255, .28);

  --yp-btn-bg: #12161B;
  --yp-btn-line: #2A2F38;
  --yp-btn-hover-bg: #1A1F27;
  --yp-btn-hover-line: #353B46;
  --yp-pri-bg: #E6E8EB;
  --yp-pri-text: #0A0C0F;
  --yp-pri-hover: #FFFFFF;

  --yp-input-bg: #0E1014;
  --yp-input-border: #232830;
  --yp-menu-bg: #12161B;

  --yp-tile: #2A2F38;
  --yp-avatar-bg: #232830;

  --yp-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02);
  --yp-shadow-sm: 0 12px 32px rgba(0, 0, 0, .5);

  --yp-band-bg: #111419;
  --yp-band-line: #1E2229;

  --yp-blue: #7DA6FF;   --yp-blue-tint: rgba(125, 166, 255, .12); --yp-blue-ink: #7DA6FF; --yp-blue-line: rgba(125, 166, 255, .3);
  --yp-teal: #2DD4BF;   --yp-teal-tint: rgba(45, 212, 191, .10);  --yp-teal-ink: #2DD4BF; --yp-teal-line: rgba(45, 212, 191, .3);
  --yp-red: #F87171;    --yp-red-tint: rgba(248, 113, 113, .12);  --yp-red-ink: #F87171;  --yp-red-line: rgba(248, 113, 113, .3);
  --yp-green: #4ADE80;  --yp-green-tint: rgba(74, 222, 128, .10); --yp-green-ink: #4ADE80; --yp-green-line: rgba(74, 222, 128, .3);
  --yp-orange: #FB923C; --yp-orange-tint: rgba(251, 146, 60, .10);
  --yp-yellow: #FACC15; --yp-yellow-tint: rgba(250, 204, 21, .10); --yp-yellow-ink: #FACC15; --yp-yellow-line: rgba(250, 204, 21, .3);
  --yp-purple: #C084FC; --yp-purple-tint: rgba(192, 132, 252, .10); --yp-purple-ink: #C084FC;
  --yp-pink: #F472B6;   --yp-pink-tint: rgba(244, 114, 182, .10);
  --yp-cyan: #22D3EE;
  --yp-row-red: rgba(248, 113, 113, .08);
  --yp-row-sel: rgba(91, 157, 255, .12);
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

/* the padding keeps the end of the page above the phone's navigation buttons
   and the content clear of a notch when the browser draws behind them
   (viewport-fit=cover); elsewhere 0 */
body.yp {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  font-family: var(--yp-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--yp-text);
  background: var(--yp-bg);
  -webkit-font-smoothing: antialiased;
}

.yp a {
  color: var(--yp-link);
  text-decoration: none;
}

.yp a:hover {
  color: var(--yp-link-hover);
}

.yp img {
  max-width: 100%;
}

.yp h1,
.yp h2,
.yp h3,
.yp h4 {
  margin: 0;
  font-weight: 600;
  color: var(--yp-text);
}

.yp p {
  margin: 0;
}

.yp hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--yp-border);
}

.yp .ti {
  vertical-align: -0.125em;
}

.yp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.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;
}

.yp-mono {
  font-family: var(--yp-mono);
}

/* honeypot fields (contact form, sign up) stay out of sight */
#id_company,
#div_id_company {
  position: absolute !important;
  left: -9999px !important;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

/* --------------------------------------------------------------- buttons */

.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.yp-btn:focus {
  outline: 0;
}

.yp-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--yp-ring);
}

.yp .yp-btn-dark,
.yp .yp-btn-dark:focus {
  color: var(--yp-pri-text);
  background: var(--yp-pri-bg);
  border-color: var(--yp-pri-bg);
}

.yp .yp-btn-dark:hover {
  color: var(--yp-pri-text);
  background: var(--yp-pri-hover);
  border-color: var(--yp-pri-hover);
}

.yp .yp-btn-line,
.yp .yp-btn-line:focus {
  color: var(--yp-text-3);
  background: var(--yp-btn-bg);
  border-color: var(--yp-btn-line);
}

.yp .yp-btn-line:hover {
  color: var(--yp-text);
  background: var(--yp-btn-hover-bg);
  border-color: var(--yp-btn-hover-line);
}

.yp .yp-btn-ghost {
  color: var(--yp-text-2);
  background: transparent;
}

.yp .yp-btn-ghost:hover {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

/* on the dark band, in both themes */
.yp .yp-btn-on-dark {
  color: #14171C;
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.yp .yp-btn-on-dark:hover {
  color: #14171C;
  background: #E6E8EB;
  border-color: #E6E8EB;
}

.yp .yp-btn-ghost-dark {
  color: #E6E8EB;
  background: transparent;
  border-color: #3A404B;
}

.yp .yp-btn-ghost-dark:hover {
  color: #FFFFFF;
  border-color: #6B7280;
}

.yp-btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.yp-btn-block {
  display: flex;
  width: 100%;
}

.yp-btn.disabled,
.yp-btn:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ---------------------------------------------------------------- header */

.yp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yp-surface);
  border-bottom: 1px solid var(--yp-border);
}

.yp-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.yp-logo {
  display: flex;
  align-items: center;
}

.yp-logo img {
  display: block;
  height: 22px;
  width: auto;
}

.yp-logo-dark {
  display: none !important;
}

html[data-theme="dark"] .yp-logo-light {
  display: none !important;
}

html[data-theme="dark"] .yp-logo-dark {
  display: block !important;
}

.yp-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.yp .yp-nav a {
  color: var(--yp-text-2);
  white-space: nowrap;
}

.yp .yp-nav a:hover {
  color: var(--yp-text);
}

.yp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* phones only (see the 720px query): opens the panel with the links and actions */
.yp-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  color: var(--yp-text-2);
  background: transparent;
  border: 1px solid var(--yp-border);
  border-radius: 6px;
  cursor: pointer;
}

.yp-menu-btn:hover {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

.yp-menu-btn:focus {
  outline: 0;
}

.yp-menu-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--yp-ring);
}

/* theme switch: sun and moon in one outline, the current theme pressed */
.yp-theme {
  display: inline-flex;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--yp-border);
  border-radius: 7px;
}

.yp-theme button {
  width: 30px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 15px;
  color: var(--yp-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.yp-theme button:hover {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

.yp-theme button[aria-pressed="true"] {
  color: var(--yp-text);
  background: var(--yp-nav-on);
}

.yp-theme button:focus {
  outline: 0;
}

.yp-theme button:focus-visible {
  box-shadow: 0 0 0 3px var(--yp-ring);
}

/* language menu */
.yp-lang {
  position: relative;
}

.yp-lang > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  font-size: 13.5px;
  color: var(--yp-text-2);
  border-radius: 6px;
  cursor: pointer;
}

.yp-lang > summary::-webkit-details-marker {
  display: none;
}

.yp-lang > summary:hover,
.yp-lang[open] > summary {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

.yp-lang > summary:focus {
  outline: 0;
}

.yp-lang > summary:focus-visible {
  box-shadow: 0 0 0 3px var(--yp-ring);
}

.yp-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  width: 240px;
  max-height: min(420px, 70vh);
  overflow: auto;
  margin: 0;
  padding: 4px;
  background: var(--yp-menu-bg);
  border: 1px solid var(--yp-border-strong);
  border-radius: 8px;
  box-shadow: var(--yp-shadow-sm);
}

.yp-lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  color: var(--yp-text-3);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.yp-lang-menu button:hover {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

.yp-lang-menu button[aria-current="true"] {
  font-weight: 600;
  color: var(--yp-text);
}

.yp-lang-menu .yp-lang-code {
  font-family: var(--yp-mono);
  font-size: 11.5px;
  color: var(--yp-muted);
}

/* ------------------------------------------------------------- sections */

.yp-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--yp-border);
}

.yp-surface {
  background: var(--yp-surface);
}

.yp-grey {
  background: var(--yp-bg);
}

.yp-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--yp-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yp-muted);
}

.yp-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yp-accent);
}

.yp .yp-h2 {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.yp .yp-lead {
  margin: 16px 0 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--yp-text-2);
}

.yp-grid-2,
.yp-grid-3,
.yp-grid-4 {
  display: grid;
  gap: 16px;
}

.yp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yp-card {
  background: var(--yp-surface);
  border: 1px solid var(--yp-border);
  border-radius: 8px;
}

/* icon colours for <i class="ti ..."> */
.yp-c-blue { color: var(--yp-blue); }
.yp-c-teal { color: var(--yp-teal); }
.yp-c-red { color: var(--yp-red); }
.yp-c-green { color: var(--yp-green); }
.yp-c-orange { color: var(--yp-orange); }
.yp-c-yellow { color: var(--yp-yellow); }
.yp-c-purple { color: var(--yp-purple); }
.yp-c-pink { color: var(--yp-pink); }
.yp-c-cyan { color: var(--yp-cyan); }
.yp-c-muted { color: var(--yp-muted); }

/* ------------------------------------------------------------------ hero */

.yp-hero {
  background-color: var(--yp-chrome);
  background-image: linear-gradient(var(--yp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--yp-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--yp-border);
}

.yp-hero-inner {
  padding-top: 80px;
  padding-bottom: 88px;
}

.yp .yp-hero h1 {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.yp .yp-hero-sub {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--yp-text-2);
}

.yp-hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yp .yp-hero-note {
  margin: 20px 0 0;
  font-family: var(--yp-mono);
  font-size: 12px;
  color: var(--yp-muted);
}

/* the app itself in the hero: an illustration, drawn with the app's own look */
.yp-shot {
  margin: 64px 0 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--yp-text-3);
  background: var(--yp-surface);
  border: 1px solid var(--yp-border-strong);
  border-radius: 10px;
  box-shadow: var(--yp-shadow);
}

.yp-shot-top {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: var(--yp-chrome);
  border-bottom: 1px solid var(--yp-border);
}

.yp-shot-app {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--yp-text);
}

.yp-shot-tile {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #FFFFFF;
  background: var(--yp-tile);
  border-radius: 5px;
}

.yp-shot-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yp-text-2);
}

.yp-shot-crumbs .yp-sep {
  color: var(--yp-sep);
}

.yp-shot-crumbs strong {
  font-weight: 500;
  color: var(--yp-text);
}

.yp-shot-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yp-shot-search {
  width: 280px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--yp-faint);
  background: var(--yp-input-bg);
  border: 1px solid var(--yp-input-border);
  border-radius: 5px;
}

.yp-shot-bell {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--yp-text-2);
}

.yp-shot-count {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  color: #FFFFFF;
  background: #DC2626;
  border-radius: 7px;
}

.yp-shot-divider {
  width: 1px;
  height: 18px;
  background: var(--yp-border);
}

.yp-shot-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--yp-text);
}

.yp-shot-avatar {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--yp-text-3);
  background: var(--yp-avatar-bg);
  border-radius: 4px;
}

.yp-shot-body {
  display: flex;
  min-height: 420px;
}

.yp-shot-side {
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  background: var(--yp-chrome);
  border-right: 1px solid var(--yp-border);
}

.yp-shot-menu {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 6px;
}

.yp-shot-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--yp-text-2);
  border-radius: 5px;
}

.yp-shot-item > .ti:first-child {
  font-size: 15px;
}

.yp-shot-item.is-on {
  font-weight: 500;
  color: var(--yp-text);
  background: var(--yp-nav-on);
  box-shadow: inset 2px 0 0 var(--yp-accent);
}

.yp-shot-item .yp-caret {
  margin-left: auto;
  font-size: 12px;
  color: var(--yp-faint);
}

.yp-shot-heading {
  margin: 12px 10px 4px;
  font-family: var(--yp-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yp-faint);
}

.yp-shot-foot {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 12px;
  font-family: var(--yp-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--yp-faint);
  border-top: 1px solid var(--yp-border);
}

.yp-shot-switch {
  margin-left: auto;
  display: flex;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--yp-border);
  border-radius: 6px;
}

.yp-shot-switch span {
  width: 22px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--yp-muted);
  border-radius: 4px;
}

.yp-shot-switch span.is-on {
  color: var(--yp-text);
  background: var(--yp-nav-on);
}

.yp-shot-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.yp-shot-toolbar {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--yp-line);
}

.yp-shot-btn {
  width: 36px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--yp-text-3);
  background: var(--yp-btn-bg);
  border: 1px solid var(--yp-btn-line);
  border-radius: 5px;
}

.yp-shot-child {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid;
  border-radius: 5px;
}

.yp-shot-child.is-red {
  color: var(--yp-red-ink);
  background: var(--yp-red-tint);
  border-color: var(--yp-red-line);
}

.yp-shot-child.is-teal {
  color: var(--yp-teal-ink);
  background: var(--yp-teal-tint);
  border-color: var(--yp-teal-line);
}

.yp-shot-find {
  margin-left: auto;
  width: 210px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12.5px;
  color: var(--yp-faint);
  border: 1px solid var(--yp-input-border);
  border-radius: 5px;
}

.yp-shot-scroll {
  flex: 1 1 auto;
  overflow-x: auto;
}

.yp-shot-table {
  min-width: 680px;
}

.yp-shot-row {
  display: grid;
  grid-template-columns: 96px minmax(180px, 2.2fr) minmax(110px, 1fr) minmax(100px, 1fr) 86px 96px;
  height: 36px;
  align-items: center;
  border-bottom: 1px solid var(--yp-line);
}

.yp-shot-row > span {
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yp-shot-row .is-num {
  font-family: var(--yp-mono);
  font-size: 12.5px;
  text-align: right;
}

.yp-shot-row .is-code {
  font-family: var(--yp-mono);
  font-size: 12.5px;
  color: var(--yp-text-2);
}

.yp-shot-row.is-head {
  height: 32px;
  font-family: var(--yp-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--yp-muted);
  border-bottom-color: var(--yp-border-strong);
}

.yp-shot-row.is-low {
  background: var(--yp-row-red);
  box-shadow: inset 2px 0 0 var(--yp-red);
}

.yp-shot-row.is-low .is-stock {
  font-weight: 500;
  color: var(--yp-red-ink);
}

.yp-shot-row.is-sel {
  background: var(--yp-row-sel);
  box-shadow: inset 2px 0 0 var(--yp-accent);
}

.yp-badge {
  display: inline-block;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 4px;
}

.yp-badge-blue { color: var(--yp-blue-ink); background: var(--yp-blue-tint); }
.yp-badge-teal { color: var(--yp-teal-ink); background: var(--yp-teal-tint); }
.yp-badge-purple { color: var(--yp-purple-ink); background: var(--yp-purple-tint); }
.yp-badge-green { color: var(--yp-green-ink); background: var(--yp-green-tint); }

.yp-shot-status {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  overflow: hidden;
  font-family: var(--yp-mono);
  font-size: 11px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--yp-muted);
  background: var(--yp-chrome);
  border-top: 1px solid var(--yp-line);
}

.yp-shot-status b {
  font-weight: 500;
  color: var(--yp-text-2);
}

.yp-shot-status b.is-accent {
  color: var(--yp-accent);
}

.yp-shot-keys {
  margin-left: auto;
}

/* ---------------------------------------------------------- use cases */

.yp .yp-case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--yp-text);
  transition: border-color .15s ease;
}

.yp .yp-case:hover {
  color: var(--yp-text);
  border-color: var(--yp-btn-hover-line);
}

.yp-case-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--yp-chrome);
  border-bottom: 1px solid var(--yp-border);
}

.yp-case-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.yp-case-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}

.yp-case-label {
  font-family: var(--yp-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yp-muted);
}

.yp-case-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.yp-case-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--yp-text-2);
}

.yp-more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--yp-accent);
}

.yp-callout {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 22px 24px;
  background: var(--yp-soft);
  border: 1px dashed var(--yp-dashed);
  border-radius: 8px;
}

.yp-callout-text {
  flex: 1 1 360px;
  min-width: 0;
}

.yp .yp-callout-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.yp .yp-callout-text p {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--yp-text-2);
}

.yp-icon-tile {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--yp-text-3);
  background: var(--yp-nav-on);
  border-radius: 8px;
}

/* ----------------------------------------------------- steps, features */

.yp-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.yp-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
}

.yp-step-n {
  font-family: var(--yp-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--yp-muted);
}

.yp .yp-step h3,
.yp .yp-feature h3 {
  font-size: 16.5px;
  line-height: 1.3;
}

.yp .yp-step p,
.yp .yp-feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--yp-text-2);
}

.yp-features {
  gap: 32px 24px;
}

.yp-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--yp-border);
}

.yp-feature > .ti {
  font-size: 20px;
}

/* --------------------------------------------------------------- pricing */

.yp-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.yp-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--yp-nav-hover);
  border: 1px solid var(--yp-border-strong);
  border-radius: 8px;
}

.yp-toggle button {
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--yp-text-2);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.yp-toggle button[aria-pressed="true"] {
  color: var(--yp-text);
  background: var(--yp-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

html[data-theme="dark"] .yp-toggle button[aria-pressed="true"] {
  background: var(--yp-nav-on);
}

.yp-toggle button:focus {
  outline: 0;
}

.yp-toggle button:focus-visible {
  box-shadow: 0 0 0 3px var(--yp-ring);
}

.yp-save {
  margin-left: 4px;
  font-family: var(--yp-mono);
  font-size: 11.5px;
  color: var(--yp-green-ink);
}

.yp-plans {
  margin-top: 40px;
}

.yp-plans[hidden] {
  display: none;
}

.yp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--yp-surface);
  border: 1px solid var(--yp-border);
  border-radius: 10px;
}

.yp-plan.is-popular {
  border: 1.5px solid var(--yp-text);
  box-shadow: var(--yp-shadow-sm);
}

.yp-popular {
  position: absolute;
  top: -11px;
  left: 28px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--yp-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yp-pri-text);
  background: var(--yp-pri-bg);
  border-radius: 4px;
}

.yp .yp-plan h3 {
  font-size: 18px;
}

.yp .yp-plan-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--yp-text-2);
}

.yp-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.yp-currency {
  font-size: 18px;
  font-weight: 500;
  color: var(--yp-text-2);
}

.yp-amount {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.yp-period {
  font-size: 14px;
  color: var(--yp-muted);
}

.yp-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--yp-text-3);
}

.yp-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yp-checks .ti {
  font-size: 16px;
  color: var(--yp-green);
}

.yp-plan .yp-btn {
  margin-top: auto;
  width: 100%;
  height: 42px;
  font-size: 14.5px;
}

/* ------------------------------------------------------------- dark band */

.yp-band {
  background: var(--yp-band-bg);
  border-top: 1px solid var(--yp-band-line);
  border-bottom: 1px solid var(--yp-band-line);
}

.yp-band-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.yp .yp-band h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: #FFFFFF;
}

.yp .yp-band p {
  margin-top: 12px;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: #B7BDC6;
}

/* --------------------------------------------------------------- contact */

.yp-split {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.yp-split > :first-child {
  flex: 1 1 380px;
  min-width: 0;
}

.yp-split > :last-child {
  flex: 1 1 520px;
  min-width: 0;
}

.yp-socials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yp-panel {
  padding: 28px;
  background: var(--yp-chrome);
  border: 1px solid var(--yp-border);
  border-radius: 10px;
}

.yp-fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.yp-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yp-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yp .yp-fine {
  max-width: 340px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--yp-muted);
}

/* states toggled by php-email-form/validate.js */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
}

.php-email-form .loading {
  color: var(--yp-text-2);
  background: var(--yp-nav-hover);
}

.php-email-form .error-message {
  color: var(--yp-red-ink);
  background: var(--yp-red-tint);
}

.php-email-form .sent-message {
  color: var(--yp-green-ink);
  background: var(--yp-green-tint);
}

.php-email-form .d-block {
  display: block;
}

/* ----------------------------------------------------------------- forms */

.yp .form-control,
.yp .yp-form input[type="text"],
.yp .yp-form input[type="email"],
.yp .yp-form input[type="password"],
.yp .yp-form input[type="number"],
.yp .yp-form input[type="url"],
.yp .yp-form input[type="tel"],
.yp .yp-form select,
.yp .yp-form textarea {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--yp-text);
  background: var(--yp-input-bg);
  border: 1px solid var(--yp-input-border);
  border-radius: 6px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.yp textarea.form-control,
.yp .yp-form textarea {
  height: auto;
  min-height: 128px;
  padding: 10px 12px;
  resize: vertical;
}

.yp .form-control::placeholder {
  color: var(--yp-faint);
}

.yp .form-control:focus,
.yp .yp-form input:focus,
.yp .yp-form select:focus,
.yp .yp-form textarea:focus {
  outline: 0;
  border-color: var(--yp-accent);
  box-shadow: 0 0 0 3px var(--yp-ring);
}

.yp-form .form-group {
  margin: 0 0 16px;
}

.yp-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--yp-text-3);
}

.yp-form .asteriskField {
  margin-left: 2px;
  color: var(--yp-red);
}

.yp-form .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.yp-form .form-check-input,
.yp-form input[type="checkbox"],
.yp-form input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--yp-accent);
}

.yp-form .form-check-label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--yp-text-2);
}

.yp-form .form-check-inline {
  display: inline-flex;
  margin-right: 20px;
}

/* crispy's bootstrap4 checkboxes (custom-control) */
.yp-form .custom-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.yp-form .custom-control-input {
  position: static;
  z-index: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  opacity: 1;
  accent-color: var(--yp-accent);
}

.yp-form .custom-control-label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--yp-text-2);
}

.yp .is-invalid {
  border-color: var(--yp-red) !important;
}

.yp .invalid-feedback,
.yp .errorlist {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--yp-red-ink);
}

.yp .form-text,
.yp .help-block,
.yp .yp-form small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--yp-muted);
}

.yp .form-text ul,
.yp .help-block ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.yp .alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--yp-text-2);
  background: var(--yp-nav-hover);
  border: 1px solid var(--yp-border);
  border-radius: 6px;
}

.yp .alert ul {
  margin: 0;
  padding-left: 18px;
}

.yp .alert-danger,
.yp .alert-error {
  color: var(--yp-red-ink);
  background: var(--yp-red-tint);
  border-color: var(--yp-red-line);
}

.yp .alert-info {
  color: var(--yp-blue-ink);
  background: var(--yp-blue-tint);
  border-color: var(--yp-blue-line);
}

.yp .alert-success {
  color: var(--yp-green-ink);
  background: var(--yp-green-tint);
  border-color: var(--yp-green-line);
}

.yp .alert-warning {
  color: var(--yp-yellow-ink);
  background: var(--yp-yellow-tint);
  border-color: var(--yp-yellow-line);
}

/* progress bar (celery_progress on the install progress page) */
.yp .progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--yp-line);
  border-radius: 4px;
}

.yp .progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .3s ease;
}

/* ------------------------------------------------------- inner pages */

.yp-page-head {
  background: var(--yp-chrome);
  border-bottom: 1px solid var(--yp-border);
}

.yp-page-head .yp-wrap {
  padding-top: 40px;
  padding-bottom: 36px;
}

.yp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--yp-muted);
}

.yp-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--yp-sep);
}

.yp .yp-crumbs a {
  color: var(--yp-text-2);
}

.yp .yp-crumbs a:hover {
  color: var(--yp-text);
}

.yp .yp-page-head h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.yp .yp-page-head .yp-lead {
  margin-top: 10px;
}

.yp-page-body {
  padding-top: 48px;
  padding-bottom: 88px;
}

/* long text: privacy policy, terms, product descriptions */
.yp-prose {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--yp-text-3);
}

.yp .yp-prose h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.yp .yp-prose h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.yp .yp-prose p,
.yp .yp-prose ul,
.yp .yp-prose ol {
  margin: 0 0 14px;
}

.yp .yp-prose ul,
.yp .yp-prose ol {
  padding-left: 22px;
}

.yp .yp-prose li {
  margin-bottom: 6px;
}

.yp-prose img {
  height: auto;
  border-radius: 8px;
}

.yp-prose table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 14px;
}

.yp-prose th,
.yp-prose td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--yp-border);
}

/* app gallery */
.yp-app {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yp-app-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--yp-chrome);
  border-bottom: 1px solid var(--yp-border);
}

.yp-app-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.yp-app-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.yp-app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yp .yp-app-title a {
  font-size: 17px;
  font-weight: 600;
  color: var(--yp-text);
}

.yp .yp-app-title a:hover {
  color: var(--yp-link);
}

.yp .yp-app-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--yp-text-2);
}

.yp-app-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* product page */
.yp-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.yp-media-main {
  overflow: hidden;
  background: var(--yp-chrome);
  border: 1px solid var(--yp-border);
  border-radius: 10px;
}

.yp-media-main img {
  display: block;
  width: 100%;
  height: auto;
}

.yp-thumbs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yp-thumbs button {
  width: 96px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  background: var(--yp-chrome);
  border: 1px solid var(--yp-border);
  border-radius: 6px;
  cursor: pointer;
}

.yp-thumbs button[aria-pressed="true"] {
  border-color: var(--yp-accent);
  box-shadow: 0 0 0 2px var(--yp-ring);
}

.yp-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.yp .yp-prose .yp-product-summary {
  margin: 32px 0 16px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--yp-text);
}

.yp-side-box {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.yp-maker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yp-maker-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--yp-surface);
  border: 1px solid var(--yp-border);
  border-radius: 8px;
}

.yp-maker-logo img {
  max-width: 100%;
  max-height: 100%;
}

.yp .yp-maker small {
  display: block;
  font-size: 12px;
  color: var(--yp-muted);
}

.yp .yp-maker strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: var(--yp-text);
}

/* narrow form pages (install) */
.yp-narrow {
  max-width: 640px;
}

/* ------------------------------------------------------- sign in pages */

.yp-auth-main {
  display: flex;
  justify-content: center;
  padding: 56px 20px 72px;
  min-height: calc(100vh - 64px - 73px);
  background-color: var(--yp-chrome);
  background-image: linear-gradient(var(--yp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--yp-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.yp-auth-card {
  width: 100%;
  max-width: 440px;
  align-self: flex-start;
  padding: 36px;
  background: var(--yp-surface);
  border: 1px solid var(--yp-border-strong);
  border-radius: 12px;
  box-shadow: var(--yp-shadow-sm);
}

.yp .yp-auth-title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
}

.yp .yp-auth-text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--yp-text-2);
}

.yp-auth-body {
  margin-top: 28px;
}

.yp-auth-body > form + form {
  margin-top: 8px;
}

.yp .yp-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-family: var(--yp-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yp-muted);
}

.yp-or::before,
.yp-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--yp-border);
}

.yp-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yp-providers form {
  margin: 0;
}

.yp-auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-align: center;
  color: var(--yp-text-2);
  border-top: 1px solid var(--yp-border);
}

.yp .yp-auth-foot a {
  font-weight: 500;
}

.yp-spinner {
  display: flex;
  justify-content: center;
  padding: 120px 0;
  font-size: 28px;
  color: var(--yp-muted);
}

/* ------------------------------------------------------------- messages */

.yp-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.yp-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--yp-text-3);
  background: var(--yp-menu-bg);
  border: 1px solid var(--yp-border-strong);
  border-radius: 8px;
  box-shadow: var(--yp-shadow-sm);
}

.yp-toast > .ti {
  margin-top: 2px;
  font-size: 16px;
}

.yp-toast.is-success > .ti { color: var(--yp-green); }
.yp-toast.is-error > .ti,
.yp-toast.is-danger > .ti { color: var(--yp-red); }
.yp-toast.is-warning > .ti { color: var(--yp-yellow); }
.yp-toast.is-info > .ti { color: var(--yp-blue); }

.yp-toast button {
  margin-left: auto;
  padding: 0 2px;
  font-size: 16px;
  color: var(--yp-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* ---------------------------------------------------------------- footer */

.yp-footer {
  background: var(--yp-chrome);
  border-top: 1px solid var(--yp-border);
}

.yp-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.yp-footer-row .yp-logo img {
  height: 20px;
}

.yp .yp-copy {
  font-family: var(--yp-mono);
  font-size: 12px;
  color: var(--yp-muted);
}

.yp-footer-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13.5px;
}

.yp .yp-footer-links a {
  color: var(--yp-text-2);
}

.yp .yp-footer-links a:hover {
  color: var(--yp-text);
}

.yp-social {
  display: flex;
  gap: 4px;
}

.yp .yp-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--yp-text-2);
  border-radius: 6px;
}

.yp .yp-social a:hover {
  color: var(--yp-text);
  background: var(--yp-nav-hover);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .yp-grid-3,
  .yp-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yp-split {
    flex-direction: column;
    gap: 32px;
  }

  /* stacked, a flex-basis would become a minimum height */
  .yp-split > :first-child,
  .yp-split > :last-child {
    flex: 0 0 auto;
    width: 100%;
  }

  .yp-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-side-box {
    position: static;
  }
}

@media (max-width: 720px) {
  /* sides only: several elements are both .yp-wrap and padded top and bottom */
  .yp-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* the header is the logo and the menu button; the button opens a panel
     with the links, the language, the theme and the account buttons */
  .yp-header-row {
    min-height: 58px;
    gap: 0 12px;
  }

  .yp-header.has-menu .yp-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .yp-header.has-menu .yp-nav,
  .yp-header.has-menu .yp-actions {
    display: none;
  }

  .yp-header.has-menu.is-open .yp-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid var(--yp-border);
  }

  .yp .yp-header.has-menu.is-open .yp-nav a {
    padding: 12px 2px;
    font-size: 15px;
    color: var(--yp-text);
    border-bottom: 1px solid var(--yp-line);
  }

  .yp-header.has-menu.is-open .yp-actions {
    order: 4;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 0 16px;
  }

  .yp-header.has-menu.is-open .yp-actions .yp-btn {
    flex: 1 1 140px;
    height: 42px;
  }

  .yp-header.is-open .yp-lang-label {
    display: inline;
  }

  .yp-header.is-open .yp-lang-menu {
    left: 0;
    right: auto;
  }

  .yp-section {
    padding: 64px 0;
  }

  .yp .yp-h2 {
    font-size: 28px;
  }

  .yp-hero-inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .yp-shot-side,
  .yp-shot-right,
  .yp-shot-crumbs,
  .yp-shot-keys,
  .yp-shot-find {
    display: none;
  }

  /* the app illustration keeps the columns that fit a phone (SKU, product,
     category, stock) instead of scrolling sideways */
  .yp-shot-table {
    min-width: 0;
  }

  .yp-shot-row {
    grid-template-columns: 68px minmax(0, 1fr) 88px 66px;
  }

  .yp-shot-row > :nth-child(4),
  .yp-shot-row > :nth-child(6) {
    display: none;
  }

  .yp-grid-4,
  .yp-fields-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .yp-auth-card {
    padding: 28px 22px;
  }

  .yp-lang-label {
    display: none;
  }

  .yp-footer-links {
    margin-left: 0;
  }
}
