/* Periwinkle: the light WordSpin AI design.

   Loaded only while Periwinkle is the active site design (see app/site_theme.py),
   after the Classic sheets and the generated color map
   (theme-periwinkle-map.css). Every rule is scoped to
   html[data-theme="periwinkle"], so it outranks the Classic selectors.

   Fonts: Sora (headings, buttons) and Inter (text), the brand's own files.
   Palette: white and #F7F8FE surfaces, ink #1B1F3B, muted #5A5F7A,
   accent #4A55E0 (white text 5.7:1), pastels lavender / sky / mint / rose. */

html[data-theme="periwinkle"] {
  --bg: #ffffff;
  --bg2: #f7f8fe;
  --line: #e5e7f3;
  --tx: #1b1f3b;
  --mut: #5a5f7a;
  --cy: #4a55e0;
  --bl: #4a55e0;
  --mg: #7b5ce6;
  --grad: linear-gradient(100deg, #4a55e0 0%, #7b5ce6 45%, #2f8fdb 100%);
  --solid: #4a55e0;
  --navy: #1b1f3b;
  --navy2: #3a3f63;
  --em: #4a55e0;
  --em2: #3943c4;
  --teal: #4a55e0;
  --blue: #2f8fdb;
  --mint: #edeeff;
  --sky: #e6f3ff;
  --primary: #4a55e0;
  --primary-hover: #3943c4;
  --primary-light: #edeeff;
  --cta: #4a55e0;
  --cta-hover: #3943c4;
  --cta-light: #edeeff;
  --surface: #f7f8fe;
  --card-bg: #ffffff;
  --card-border: #e5e7f3;
  --text: #1b1f3b;
  --text-light: #ffffff;
  --muted: #5a5f7a;
  --input-border: #dcdfee;
  --input-bg: #f7f8fe;
  --shadow: 0 1px 2px rgba(27, 31, 59, .05), 0 8px 24px -16px rgba(27, 31, 59, .18);
  --shadow-lg: 0 30px 60px -30px rgba(27, 31, 59, .3), 0 0 0 1px rgba(27, 31, 59, .04);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Periwinkle extras */
  --pw-accent-soft: #edeeff;
  --pw-p1: #eef0ff; --pw-p2: #e6f3ff; --pw-p3: #e5f7ef; --pw-p4: #fcedf5;
  --pw-m1: #d4d8ff; --pw-m2: #c9e6ff; --pw-m3: #c6eedd; --pw-m4: #f8d2e6;
  --pw-s1: #4a55e0; --pw-s2: #2f8fdb; --pw-s3: #1a8f68; --pw-s4: #c2457f;
  --pw-ok: #1a8f68; --pw-warn: #a36100; --pw-bad: #c8364a;

  background: #ffffff;
  color-scheme: light;
}

/* ── type ─────────────────────────────────────────────────────────── */
html[data-theme="periwinkle"] body,
html[data-theme="periwinkle"] .ch-header,
html[data-theme="periwinkle"] .ch-footer { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--tx); }
html[data-theme="periwinkle"] body { background: #ffffff; font-size: 16px; }
html[data-theme="periwinkle"] h1, html[data-theme="periwinkle"] h2, html[data-theme="periwinkle"] h3,
html[data-theme="periwinkle"] h4, html[data-theme="periwinkle"] h5, html[data-theme="periwinkle"] h6 {
  font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--tx); letter-spacing: -.01em;
}
html[data-theme="periwinkle"] .ch-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="periwinkle"] input, html[data-theme="periwinkle"] select,
html[data-theme="periwinkle"] textarea, html[data-theme="periwinkle"] button { font-family: Inter, system-ui, sans-serif; }
html[data-theme="periwinkle"] a:focus-visible, html[data-theme="periwinkle"] button:focus-visible,
html[data-theme="periwinkle"] summary:focus-visible, html[data-theme="periwinkle"] input:focus-visible { outline: 2px solid #4a55e0; outline-offset: 2px; }
html[data-theme="periwinkle"] ::selection { background: #d4d8ff; color: #1b1f3b; }

/* ── buttons ──────────────────────────────────────────────────────── */
html[data-theme="periwinkle"] .ch-btn {
  font-family: Sora, system-ui, sans-serif; font-weight: 800; border-radius: 14px;
  background: #ffffff; color: var(--tx); border: 1.5px solid var(--line);
  box-shadow: 0 1px 2px rgba(27, 31, 59, .05);
}
html[data-theme="periwinkle"] .ch-btn:hover { border-color: #c9cdf0; color: #4a55e0; }
html[data-theme="periwinkle"] .ch-btn.p,
html[data-theme="periwinkle"] .btn.pri,
html[data-theme="periwinkle"] .btn.primary,
html[data-theme="periwinkle"] .btn-primary {
  background: #4a55e0; color: #ffffff; border: 1.5px solid #4a55e0;
  box-shadow: 0 12px 24px -12px rgba(74, 85, 224, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
  filter: none;
}
html[data-theme="periwinkle"] .ch-btn.p:hover,
html[data-theme="periwinkle"] .btn.pri:hover,
html[data-theme="periwinkle"] .btn.primary:hover,
html[data-theme="periwinkle"] .btn-primary:hover { background: #3943c4; border-color: #3943c4; color: #ffffff; }
html[data-theme="periwinkle"] .btn.ghost { background: #ffffff; border: 1.5px solid var(--line); color: var(--tx); }
html[data-theme="periwinkle"] .btn.ghost:hover { border-color: #c9cdf0; color: #4a55e0; }

/* ── header ───────────────────────────────────────────────────────── */
html[data-theme="periwinkle"] .ch-header { background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
html[data-theme="periwinkle"] .ch-nav a { color: #3a3f63; font-weight: 700; }
html[data-theme="periwinkle"] .ch-nav a:hover, html[data-theme="periwinkle"] .ch-nav a.active { color: #4a55e0; }
html[data-theme="periwinkle"] .ch-nav a.active { box-shadow: 0 2px 0 #4a55e0; }
html[data-theme="periwinkle"] .ch-actions .ch-signin { color: var(--tx); font-weight: 700; }
html[data-theme="periwinkle"] .ch-menu-btn { border-color: var(--line); color: var(--tx); background: #ffffff; }
html[data-theme="periwinkle"] .ch-tagline { color: var(--mut); }
html[data-theme="periwinkle"] .top-search input { background: var(--surface); border-color: var(--line); color: var(--tx); font-family: Inter, system-ui, sans-serif; }
html[data-theme="periwinkle"] .top-search input::placeholder { color: #7d82a0; }
html[data-theme="periwinkle"] .hide-tips { border-color: var(--line); color: var(--tx); background: #ffffff; font-family: Inter, system-ui, sans-serif; font-weight: 700; }
html[data-theme="periwinkle"] .plan-chip { border-color: #c9cdf0; background: var(--pw-accent-soft); color: #4a55e0; }
html[data-theme="periwinkle"] .userpill summary { border-color: var(--line); background: #ffffff; color: var(--tx); }
html[data-theme="periwinkle"] .avatar { background: var(--grad); color: #ffffff; }
html[data-theme="periwinkle"] .user-menu,
html[data-theme="periwinkle"] .sm-search-results { background: #ffffff; border-color: var(--line); box-shadow: var(--shadow-lg); }
html[data-theme="periwinkle"] .user-menu a:hover,
html[data-theme="periwinkle"] .sm-search-results a:hover { background: var(--pw-accent-soft); color: #4a55e0; }

/* ── footer ───────────────────────────────────────────────────────── */
html[data-theme="periwinkle"] .ch-footer { background: var(--surface); border-top: 1px solid var(--line); }
html[data-theme="periwinkle"] .ch-fg h2 { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--tx); letter-spacing: 0; font-size: 14.5px; }
html[data-theme="periwinkle"] .ch-footer li a { color: var(--mut); }
html[data-theme="periwinkle"] body.ch .ch-footer a:hover, html[data-theme="periwinkle"] .ch-footer li a:hover { color: #4a55e0; }
html[data-theme="periwinkle"] .ch-fb { color: var(--mut); border-top-color: var(--line); }

/* ── member shell ─────────────────────────────────────────────────── */
html[data-theme="periwinkle"] body.sm-app { background: var(--surface); }
html[data-theme="periwinkle"] body.sm-app .ch-header { background: rgba(255, 255, 255, .92); }
html[data-theme="periwinkle"] .side { background: #ffffff; border-right: 1px solid var(--line); }
html[data-theme="periwinkle"] .g-label { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: #7d82a0; letter-spacing: .09em; font-size: 11px; }
html[data-theme="periwinkle"] body.ch .side a.nav { color: #3a3f63; font-weight: 700; font-size: 14.5px; border-radius: 12px; }
html[data-theme="periwinkle"] body.ch .side a.nav:hover { background: var(--surface); color: #4a55e0; }
html[data-theme="periwinkle"] body.ch .side a.nav.on { background: var(--pw-accent-soft); color: #4a55e0; box-shadow: inset 3px 0 0 #4a55e0; }
html[data-theme="periwinkle"] .sm-nav-toggle-btn { border-color: var(--line); background: #ffffff; color: var(--tx); font-family: Inter, system-ui, sans-serif; }
html[data-theme="periwinkle"] .greet h1 { font-size: 30px; }

/* cards, tiles, tables */
html[data-theme="periwinkle"] .card,
html[data-theme="periwinkle"] .kpi {
  background: #ffffff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(27, 31, 59, .04), 0 14px 30px -24px rgba(27, 31, 59, .28);
}
html[data-theme="periwinkle"] .kpi-row .kpi:nth-child(4n+1) { background: linear-gradient(160deg, var(--pw-p1), #ffffff 70%); }
html[data-theme="periwinkle"] .kpi-row .kpi:nth-child(4n+2) { background: linear-gradient(160deg, var(--pw-p2), #ffffff 70%); }
html[data-theme="periwinkle"] .kpi-row .kpi:nth-child(4n+3) { background: linear-gradient(160deg, var(--pw-p3), #ffffff 70%); }
html[data-theme="periwinkle"] .kpi-row .kpi:nth-child(4n+4) { background: linear-gradient(160deg, var(--pw-p4), #ffffff 70%); }
html[data-theme="periwinkle"] .kpi.sel { border-color: #b9bff5; box-shadow: 0 0 0 3px var(--pw-accent-soft); }
html[data-theme="periwinkle"] .kpi .num { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--tx); }
html[data-theme="periwinkle"] .delta { color: var(--pw-ok); }
html[data-theme="periwinkle"] .delta.down { color: var(--pw-bad); }
html[data-theme="periwinkle"] .link-more { color: #4a55e0; }
html[data-theme="periwinkle"] .tbl th, html[data-theme="periwinkle"] .tbl td { border-bottom-color: var(--line); }
html[data-theme="periwinkle"] .tbl th { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: #7d82a0; }
html[data-theme="periwinkle"] .tag { border-color: var(--line); color: #3a3f63; background: var(--surface); }

/* charts are server-drawn SVG with dark grid lines and tracks */
html[data-theme="periwinkle"] svg line[stroke="#222842"] { stroke: #e5e7f3; }
html[data-theme="periwinkle"] svg rect[fill="#1a1f33"],
html[data-theme="periwinkle"] svg circle[stroke="#1a1f33"] { fill: #eef0f8; }
html[data-theme="periwinkle"] svg circle[stroke="#1a1f33"] { fill: none; stroke: #eef0f8; }
html[data-theme="periwinkle"] svg text { fill: #5a5f7a; }

/* forms */
html[data-theme="periwinkle"] .form-control,
html[data-theme="periwinkle"] .control input,
html[data-theme="periwinkle"] .control select,
html[data-theme="periwinkle"] select,
html[data-theme="periwinkle"] textarea,
html[data-theme="periwinkle"] input[type="text"],
html[data-theme="periwinkle"] input[type="email"],
html[data-theme="periwinkle"] input[type="password"],
html[data-theme="periwinkle"] input[type="search"],
html[data-theme="periwinkle"] input[type="url"],
html[data-theme="periwinkle"] input[type="number"] {
  background: var(--surface); border: 1.5px solid #dcdfee; color: var(--tx); border-radius: 12px;
}
html[data-theme="periwinkle"] .form-control:focus,
html[data-theme="periwinkle"] select:focus,
html[data-theme="periwinkle"] textarea:focus,
html[data-theme="periwinkle"] input:focus {
  background: #ffffff; border-color: #4a55e0; box-shadow: 0 0 0 4px rgba(74, 85, 224, .14); outline: none;
}
html[data-theme="periwinkle"] ::placeholder { color: #8a8fa8; }
html[data-theme="periwinkle"] input[type="checkbox"], html[data-theme="periwinkle"] input[type="radio"],
html[data-theme="periwinkle"] input[type="range"] { accent-color: #4a55e0; }

/* rich-text editor (Quill) toolbar icons */
html[data-theme="periwinkle"] .ch .ql-snow .ql-stroke { stroke: #3a3f63; }
html[data-theme="periwinkle"] .ch .ql-snow .ql-fill { fill: #3a3f63; }
html[data-theme="periwinkle"] .ql-toolbar.ql-snow, html[data-theme="periwinkle"] .ql-container.ql-snow { border-color: var(--line); }
html[data-theme="periwinkle"] .ql-editor { color: var(--tx); }
html[data-theme="periwinkle"] .ql-editor.ql-blank::before { color: #8a8fa8; }

/* status colors: success is green here, not the Classic cyan */
html[data-theme="periwinkle"] .flash-success { background: #e5f7ef; color: #146c4f; border-color: #a7dfc6; }
html[data-theme="periwinkle"] .flash-info { background: var(--pw-accent-soft); color: #3943c4; border-color: #c9cdf0; }
html[data-theme="periwinkle"] .badge-success,
html[data-theme="periwinkle"] .plagiarism-level.low,
html[data-theme="periwinkle"] .plagiarism-risk-badge.low { color: #146c4f; background: #e5f7ef; }

/* ── marketing pages ──────────────────────────────────────────────── */
html[data-theme="periwinkle"] .mk-bg {
  height: 980px;
  background:
    radial-gradient(42% 50% at 88% 12%, var(--pw-m1), transparent 70%),
    radial-gradient(36% 46% at 62% 70%, var(--pw-m2), transparent 70%),
    radial-gradient(30% 40% at 4% 78%, var(--pw-m4), transparent 70%),
    radial-gradient(30% 36% at 12% 4%, var(--pw-p3), transparent 70%);
}
html[data-theme="periwinkle"] .mk-bg::after {
  background-image: radial-gradient(rgba(27, 31, 59, .11) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
html[data-theme="periwinkle"] .ch-chip {
  background: #ffffff; border: 1px solid var(--line); color: #4a55e0; font-weight: 800;
  box-shadow: 0 6px 18px -12px rgba(27, 31, 59, .4);
}
html[data-theme="periwinkle"] .ch-chip i { background: var(--grad); box-shadow: none; width: 9px; height: 9px; }
html[data-theme="periwinkle"] .hero h1 { font-weight: 800; letter-spacing: -.025em; }
html[data-theme="periwinkle"] .hero-sub,
html[data-theme="periwinkle"] .page-hero p,
html[data-theme="periwinkle"] .cta-band p { color: var(--mut); }

/* hero demo: frosted card on a pastel panel */
html[data-theme="periwinkle"] .hero-art { position: relative; padding: 26px; border-radius: 34px; background: linear-gradient(140deg, var(--pw-p1), var(--pw-p2) 55%, var(--pw-p3)); }
html[data-theme="periwinkle"] .emb { filter: drop-shadow(0 18px 30px rgba(74, 85, 224, .35)); width: 112px; height: 112px; }
html[data-theme="periwinkle"] .demo { background: #ffffff; padding: 0; border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(27, 31, 59, .45), 0 0 0 1px rgba(27, 31, 59, .05); }
html[data-theme="periwinkle"] .demo-in { background: rgba(255, 255, 255, .92); border-radius: 22px; }
html[data-theme="periwinkle"] .pane { background: #ffffff; border: 1px solid var(--line); color: var(--tx); }
html[data-theme="periwinkle"] .pane.out { border-color: #b9bff5; background: linear-gradient(180deg, var(--pw-p1), #ffffff 80%); color: var(--tx); box-shadow: 0 0 0 4px rgba(74, 85, 224, .07); }
html[data-theme="periwinkle"] .pane h2 { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: #7d82a0; }
html[data-theme="periwinkle"] .pane.out h2 { color: #4a55e0; }

/* feature grid: pastel tiles */
html[data-theme="periwinkle"] .bc,
html[data-theme="periwinkle"] .fc {
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 26px;
  background: var(--pw-p1); box-shadow: inset 0 1px 0 #ffffff;
}
html[data-theme="periwinkle"] .bento .bc:nth-child(4n+2) { background: var(--pw-p2); }
html[data-theme="periwinkle"] .bento .bc:nth-child(4n+3) { background: var(--pw-p3); }
html[data-theme="periwinkle"] .bento .bc:nth-child(4n+4) { background: var(--pw-p4); }
html[data-theme="periwinkle"] .fgrid .fc:nth-child(4n+2) { background: var(--pw-p2); }
html[data-theme="periwinkle"] .fgrid .fc:nth-child(4n+3) { background: var(--pw-p3); }
html[data-theme="periwinkle"] .fgrid .fc:nth-child(4n+4) { background: var(--pw-p4); }
html[data-theme="periwinkle"] .bc .kicker { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: #4a55e0; letter-spacing: .08em; }
html[data-theme="periwinkle"] .bc p, html[data-theme="periwinkle"] .fc p { color: #4d5272; }
html[data-theme="periwinkle"] .pills li { background: #ffffff; border: 1px solid rgba(27, 31, 59, .06); color: var(--tx); font-weight: 700; box-shadow: 0 6px 14px -12px rgba(27, 31, 59, .5); }
html[data-theme="periwinkle"] .mono-box { background: #ffffff; border: 1px solid rgba(27, 31, 59, .06); color: #3a3f63; box-shadow: 0 14px 30px -22px rgba(27, 31, 59, .45); }
html[data-theme="periwinkle"] .mono-box .k { color: #c2457f; }
html[data-theme="periwinkle"] .mono-box .s { color: #2f6fb5; }

/* how it works */
html[data-theme="periwinkle"] .step .n {
  background: #ffffff; border: 0; color: #4a55e0; border-radius: 26px;
  font-family: Sora, system-ui, sans-serif; font-weight: 800;
  box-shadow: 0 18px 36px -18px rgba(74, 85, 224, .55), 0 0 0 1px rgba(27, 31, 59, .05);
}
html[data-theme="periwinkle"] .steps .step:nth-child(3n+1) .n { background: linear-gradient(160deg, #ffffff, var(--pw-p1)); }
html[data-theme="periwinkle"] .steps .step:nth-child(3n+2) .n { background: linear-gradient(160deg, #ffffff, var(--pw-p2)); }
html[data-theme="periwinkle"] .steps .step:nth-child(3n+3) .n { background: linear-gradient(160deg, #ffffff, var(--pw-p3)); }

/* social proof, reviews, faq */
html[data-theme="periwinkle"] .quote blockquote, html[data-theme="periwinkle"] .reviews blockquote { color: var(--tx); }
html[data-theme="periwinkle"] .ch-stats div, html[data-theme="periwinkle"] .reviews figure,
html[data-theme="periwinkle"] .faq details { background: #ffffff; border-color: var(--line); box-shadow: 0 14px 30px -26px rgba(27, 31, 59, .4); }
html[data-theme="periwinkle"] .faq summary { font-family: Sora, system-ui, sans-serif; font-weight: 800; }
html[data-theme="periwinkle"] .strip { background: var(--surface); border-color: var(--line); }
html[data-theme="periwinkle"] .strip span { font-family: Sora, system-ui, sans-serif; color: #3a3f63; }

/* cta band */
html[data-theme="periwinkle"] .cta-band {
  border: 1px solid rgba(255, 255, 255, .9);
  background: radial-gradient(60% 90% at 100% 0%, var(--pw-m4), transparent 70%),
              linear-gradient(120deg, var(--pw-m1), var(--pw-m2) 55%, var(--pw-m3));
  box-shadow: 0 40px 80px -50px rgba(74, 85, 224, .55);
}

/* plans */
html[data-theme="periwinkle"] .plan-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(27, 31, 59, .04), 0 24px 50px -34px rgba(27, 31, 59, .4);
}
html[data-theme="periwinkle"] .plan-card.current {
  background: linear-gradient(#ffffff, #ffffff) padding-box, var(--grad) border-box;
  border: 2px solid transparent; box-shadow: 0 30px 60px -32px rgba(74, 85, 224, .6);
}
html[data-theme="periwinkle"] .plan-price { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--tx); }
html[data-theme="periwinkle"] .plan-price small { font-family: Sora, system-ui, sans-serif; font-weight: 700; }
html[data-theme="periwinkle"] .plan-card ul { color: #3a3f63; }
html[data-theme="periwinkle"] .plan-card li::before { content: "✓"; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--pw-accent-soft); color: #4a55e0; font-size: 11px; font-weight: 800; margin-right: 9px; }
html[data-theme="periwinkle"] .badges li { background: #ffffff; border-color: var(--line); color: #3a3f63; font-weight: 700; }
html[data-theme="periwinkle"] .table-scroll { background: #ffffff; border-color: var(--line); }
html[data-theme="periwinkle"] .compare thead th { font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--tx); background: var(--surface); }
html[data-theme="periwinkle"] .compare tbody th { color: var(--tx); background: #ffffff; font-weight: 700; }
html[data-theme="periwinkle"] .compare tbody tr:nth-child(even) th,
html[data-theme="periwinkle"] .compare tbody tr:nth-child(even) td { background: #fafbff; }
html[data-theme="periwinkle"] .compare th, html[data-theme="periwinkle"] .compare td { border-bottom-color: var(--line); }

/* plain pages */
html[data-theme="periwinkle"] .contact-box { background: var(--pw-accent-soft); border-color: #c9cdf0; }
html[data-theme="periwinkle"] .status-page img { filter: drop-shadow(0 18px 30px rgba(74, 85, 224, .35)); }
html[data-theme="periwinkle"] .status-page .code { font-family: Sora, system-ui, sans-serif; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── sign in, register, password pages ───────────────────────────── */
html[data-theme="periwinkle"] body:has(.auth-container) {
  background:
    radial-gradient(50% 60% at 90% 10%, var(--pw-m1), transparent 70%),
    radial-gradient(45% 55% at 5% 90%, var(--pw-m4), transparent 70%),
    linear-gradient(140deg, var(--pw-p1), var(--pw-p2) 55%, var(--pw-p3));
}
html[data-theme="periwinkle"] body:has(.auth-container) .ch-header { background: rgba(255, 255, 255, .7); }
html[data-theme="periwinkle"] body:has(.auth-container) .ch-footer { background: rgba(255, 255, 255, .6); }
html[data-theme="periwinkle"] .auth-container {
  background: #ffffff; border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px;
  box-shadow: 0 40px 80px -44px rgba(27, 31, 59, .5);
}
html[data-theme="periwinkle"] .auth-container:before {
  background-image: url('../brand/periwinkle/mark.svg');
  filter: drop-shadow(0 10px 18px rgba(74, 85, 224, .35));
}
html[data-theme="periwinkle"] .auth-container h1,
html[data-theme="periwinkle"] .auth-container h2 { font-size: 32px; font-weight: 800; }
html[data-theme="periwinkle"] .auth-link a, html[data-theme="periwinkle"] .auth-forgot a { color: #4a55e0; font-weight: 800; }
html[data-theme="periwinkle"] .google-btn { background: #ffffff; border: 1.5px solid var(--line); color: var(--tx); }
html[data-theme="periwinkle"] .oauth-divider span { background: #ffffff; color: var(--mut); }

@media (max-width: 900px) {
  html[data-theme="periwinkle"] .side { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  html[data-theme="periwinkle"] .hero-art { padding: 14px; border-radius: 26px; }
  html[data-theme="periwinkle"] .emb { width: 84px; height: 84px; }
  html[data-theme="periwinkle"] .auth-container { border-radius: 22px; }
}

/* inline text links */
html[data-theme="periwinkle"] body.ch p a,
html[data-theme="periwinkle"] body.ch li a,
html[data-theme="periwinkle"] .legal-page a { color: #4a55e0; }
html[data-theme="periwinkle"] body.ch p a:hover,
html[data-theme="periwinkle"] body.ch li a:hover { color: #3943c4; }
html[data-theme="periwinkle"] .ch-footer li a, html[data-theme="periwinkle"] body.ch .ch-footer li a { color: var(--mut); }
html[data-theme="periwinkle"] body.ch .side a.nav { color: #3a3f63; }

/* fade the hero background out instead of stopping on an edge */
html[data-theme="periwinkle"] .mk-bg {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* Sora at 800 reads cramped at card-title sizes */
html[data-theme="periwinkle"] h3, html[data-theme="periwinkle"] h4,
html[data-theme="periwinkle"] .bc h3, html[data-theme="periwinkle"] .step h3 { letter-spacing: 0; }

/* cookie banner (also used by Splash): the generated map can't tell its text and buttons from accents */
html[data-theme="periwinkle"] .consent p { color: var(--mut); }
html[data-theme="periwinkle"] .consent-btn { background: #4a55e0; border-color: #4a55e0; color: #fff; }
html[data-theme="periwinkle"] .consent-btn:hover { background: #3a44c4; border-color: #3a44c4; }
