/* Lipogram - design system v3.

   Paper24's language, taken further: lavender-to-blue gradient bands, Mulish
   900 upper-case headlines and violet-to-blue gradient pills - with an
   editorial italic serif (Instrument Serif) for the accent words, inline
   line icons (Lucide, templatetags/redline_icons.py) sitting in soft tiles,
   crafted product illustrations instead of stock photos, layered shadows,
   hairline borders and quiet motion.

   Tokens first; then base, layout, components, pages. Every colour is a
   variable and the dark theme is one block. Classes are prefixed rl-. */

:root,
[data-theme="light"] {
  --rl-bg: #ffffff;
  --rl-wash: linear-gradient(115deg, #edf2ff 0%, #e9e8fe 50%, #f1e9fd 100%);
  --rl-surface: #ffffff;
  --rl-surface-2: #f7f7fd;
  --rl-surface-3: #eef0fb;
  --rl-ink: #0b1133;
  --rl-ink-2: #3b4260;
  --rl-ink-3: #8e93ad;
  --rl-muted: #646a88;
  --rl-faint: #6e7493;
  --rl-line: #e7e8f4;
  --rl-line-2: #d6d9ec;
  --rl-violet: #8d69dc;
  --rl-indigo: #5146e5;
  --rl-blue: #2563eb;
  --rl-grad: linear-gradient(95deg, #8d69dc 0%, #6457ec 48%, #2f6bf0 100%);
  --rl-grad-soft: linear-gradient(135deg, rgba(141, 105, 220, 0.13), rgba(47, 107, 240, 0.12));
  --rl-accent: #5146e5;
  --rl-accent-ink: #4136c9;
  --rl-accent-soft: #e8e7ff;
  --rl-accent-wash: #f3f2ff;
  --rl-coral: #f2643f;
  --rl-coral-ink: #b8401f;
  --rl-coral-soft: #fff0ea;
  --rl-amber: #b4690e;
  --rl-amber-ink: #955709;
  --rl-amber-soft: #fff4dc;
  --rl-green: #0d9a52;
  --rl-green-ink: #0b7a41;
  --rl-green-soft: #dff7ea;
  --rl-red: #d53a29;
  --rl-red-ink: #b42d1f;
  --rl-red-soft: #fde6e2;
  --rl-navy: #0b1133;
  --rl-on-navy: #f5f6ff;
  --rl-on-navy-2: #b9bddb;
  --rl-ins: #0a7a3c;
  --rl-ins-bg: #dcf6e7;
  --rl-del: #c02d1b;
  --rl-del-bg: #fde6e2;
  --rl-ring: 0 0 0 3px rgba(100, 87, 236, 0.28);
  --rl-shadow-xs: 0 1px 2px rgba(11, 17, 51, 0.06);
  --rl-shadow-sm: 0 1px 2px rgba(11, 17, 51, 0.04), 0 4px 12px rgba(11, 17, 51, 0.04);
  --rl-shadow: 0 1px 2px rgba(11, 17, 51, 0.04), 0 10px 30px -6px rgba(81, 70, 229, 0.12);
  --rl-shadow-lg: 0 2px 6px rgba(11, 17, 51, 0.05), 0 30px 70px -18px rgba(81, 70, 229, 0.3);
  --rl-r-lg: 22px;
  --rl-r-xl: 30px;
  --rl-serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --rl-sans: "Mulish", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rl-doc: "Source Serif 4", Georgia, "Times New Roman", serif;
  --rl-display: var(--rl-sans);
  color-scheme: light;
}

[data-theme="dark"] {
  --rl-bg: #090b1a;
  --rl-wash: linear-gradient(115deg, #0f1430 0%, #131339 50%, #1a1339 100%);
  --rl-surface: #12152e;
  --rl-surface-2: #181c3a;
  --rl-surface-3: #20254a;
  --rl-ink: #eef0ff;
  --rl-ink-2: #c3c7e3;
  --rl-ink-3: #7c81a6;
  --rl-muted: #969bbf;
  --rl-faint: #8a8fb4;
  --rl-line: #252a50;
  --rl-line-2: #343a66;
  --rl-violet: #ab8cf3;
  --rl-indigo: #8f88ff;
  --rl-blue: #6c9cff;
  --rl-grad: linear-gradient(95deg, #a17ef0 0%, #7468f4 48%, #4581f7 100%);
  --rl-grad-soft: linear-gradient(135deg, rgba(171, 140, 243, 0.18), rgba(108, 156, 255, 0.16));
  --rl-accent: #938cff;
  --rl-accent-ink: #b9b4ff;
  --rl-accent-soft: #272a5e;
  --rl-accent-wash: #1b1e44;
  --rl-coral: #ff8a68;
  --rl-coral-ink: #ffb39d;
  --rl-coral-soft: #3a2121;
  --rl-amber: #f3c062;
  --rl-amber-ink: #f3c062;
  --rl-amber-soft: #352914;
  --rl-green: #54d892;
  --rl-green-ink: #54d892;
  --rl-green-soft: #11301f;
  --rl-red: #ff7e6f;
  --rl-red-ink: #ff7e6f;
  --rl-red-soft: #3a1c1c;
  --rl-navy: #05061a;
  --rl-ins: #73e6a8;
  --rl-ins-bg: #113323;
  --rl-del: #ff9183;
  --rl-del-bg: #3a1c1b;
  --rl-ring: 0 0 0 3px rgba(147, 140, 255, 0.4);
  --rl-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --rl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --rl-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --rl-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 70px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* == Base ========================================================================= */

body.rl-app {
  margin: 0;
  background: var(--rl-bg);
  color: var(--rl-ink);
  font-family: var(--rl-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.rl-app a { color: var(--rl-accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rl-app a:hover { color: var(--rl-indigo); }
.rl-app :focus-visible { outline: none; box-shadow: var(--rl-ring); border-radius: 10px; }
.rl-app h1, .rl-app h2, .rl-app h3, .rl-app h4 { color: var(--rl-ink); font-family: inherit; text-wrap: balance; }
.rl-app p { text-wrap: pretty; }
.rl-app ::selection { background: rgba(100, 87, 236, 0.2); }

/* Icons: inline SVG, sized to the text around them. */
.rl-i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.rl-i--sm { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.rl-i--lg { width: 1.4em; height: 1.4em; }

/* Type. */
.rl-h1 { font-size: clamp(40px, 5.6vw, 74px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
.rl-h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.rl-accent {
  font-family: var(--rl-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  background: var(--rl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.rl-h1 .rl-accent { font-size: 1.12em; line-height: 0.9; }
.rl-h2 .rl-accent { font-size: 1.1em; }
.rl-muted { color: var(--rl-muted); }
.rl-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rl-accent-ink); }
.rl-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--rl-grad); }

/* Layout. */
.rl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.rl-wrap--narrow { max-width: 900px; }
.rl-main { min-height: calc(100vh - 200px); }
.rl-band-wash { background: var(--rl-wash); }
.rl-sec { padding: 104px 0; position: relative; }
.rl-sec-head { text-align: center; max-width: 780px; margin: 0 auto 56px; display: grid; gap: 16px; justify-items: center; }
.rl-sec-head p { margin: 0; color: var(--rl-ink-2); font-size: 18px; max-width: 640px; }
.rl-sec-head--row { text-align: left; justify-items: start; margin: 0 0 32px; max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rl-sec-head--row > div { display: grid; gap: 10px; }

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

.rl-topbar { position: sticky; top: 0; z-index: 1030; transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.rl-topbar.is-over-wash:not(.is-scrolled) { background: transparent; }
.rl-topbar.is-scrolled,
.rl-topbar:not(.is-over-wash) {
  background: color-mix(in srgb, var(--rl-surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: color-mix(in srgb, var(--rl-line) 80%, transparent);
}
.rl-page-wash { background: var(--rl-wash); }
.rl-topbar-inner { max-width: 1320px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; gap: 24px; }
.rl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rl-ink) !important; font-weight: 900; font-size: 23px; letter-spacing: -0.035em; }
.rl-logo { width: 36px; height: 36px; flex: none; }
.rl-nav { display: flex; gap: 4px; }
.rl-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; white-space: nowrap; border-radius: 999px; text-decoration: none; color: var(--rl-ink-2) !important; font-weight: 700; font-size: 15px; transition: color 0.15s, background 0.15s; }
.rl-nav a .rl-i { color: var(--rl-faint); transition: color 0.15s; }
.rl-nav a:hover { color: var(--rl-ink) !important; background: color-mix(in srgb, var(--rl-surface) 60%, transparent); }
.rl-nav a.is-active { color: var(--rl-ink) !important; background: var(--rl-surface); box-shadow: var(--rl-shadow-xs), inset 0 0 0 1px var(--rl-line); }
.rl-nav a.is-active .rl-i, .rl-nav a:hover .rl-i { color: var(--rl-indigo); }
.rl-new-tag { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 6px; background: var(--rl-coral-soft); color: var(--rl-coral-ink); }
.rl-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.rl-themes { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--rl-surface) 70%, transparent); border: 1px solid var(--rl-line); }
.rl-themes input { position: absolute; opacity: 0; pointer-events: none; }
.rl-themes label { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 999px; cursor: pointer; color: var(--rl-muted); transition: background 0.15s, color 0.15s; margin: 0; }
.rl-themes input:checked + label { background: var(--rl-surface); color: var(--rl-indigo); box-shadow: var(--rl-shadow-xs); }
.rl-themes input:focus-visible + label { box-shadow: var(--rl-ring); }
.rl-avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rl-grad); color: #fff; font-weight: 900; font-size: 15px; cursor: pointer; box-shadow: 0 0 0 3px var(--rl-surface), 0 0 0 4px var(--rl-line-2); }
.rl-menu.dropdown-menu { border-radius: 18px; border: 1px solid var(--rl-line); background: var(--rl-surface); box-shadow: var(--rl-shadow-lg); padding: 8px; min-width: 260px; margin-top: 10px !important; }
.rl-menu .dropdown-item { border-radius: 12px; padding: 10px 12px; color: var(--rl-ink); display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.rl-menu .dropdown-item:hover, .rl-menu .dropdown-item:focus { background: var(--rl-accent-wash); color: var(--rl-ink); }
.rl-menu .dropdown-item .rl-i { color: var(--rl-muted); }
.rl-menu-head { padding: 10px 12px 12px; display: grid; font-weight: 800; }
.rl-menu-head span:last-child { color: var(--rl-muted); font-size: 13px; font-weight: 500; }
.rl-menu .dropdown-divider { border-color: var(--rl-line); }
.rl-nav-login { font-weight: 800; color: var(--rl-ink) !important; text-decoration: none; padding: 8px 6px; }

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

.rl-btn { --pad-y: 15px; --pad-x: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, color 0.15s; }
.rl-btn:active { transform: translateY(1px) scale(0.99); }
.rl-btn--primary { background: var(--rl-grad); color: #fff !important; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 26px -10px rgba(81, 70, 229, 0.7); }
.rl-btn--primary:hover { filter: brightness(1.07) saturate(1.08); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 32px -10px rgba(81, 70, 229, 0.8); transform: translateY(-1px); }
.rl-btn--outline { background: linear-gradient(var(--rl-surface), var(--rl-surface)) padding-box, var(--rl-grad) border-box; border: 2px solid transparent; --pad-y: 13px; color: var(--rl-accent-ink) !important; }
.rl-btn--outline:hover { background: linear-gradient(var(--rl-accent-wash), var(--rl-accent-wash)) padding-box, var(--rl-grad) border-box; }
.rl-btn--ghost { background: var(--rl-surface); color: var(--rl-ink) !important; box-shadow: inset 0 0 0 1px var(--rl-line-2), var(--rl-shadow-xs); }
.rl-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--rl-accent), var(--rl-shadow-xs); color: var(--rl-accent-ink) !important; }
.rl-btn--soft { background: var(--rl-accent-soft); color: var(--rl-accent-ink) !important; }
.rl-btn--soft:hover { filter: brightness(0.97); }
.rl-btn--danger { background: var(--rl-red-soft); color: var(--rl-red-ink) !important; }
.rl-btn--white { background: #fff; color: #0b1133 !important; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5); }
.rl-btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; gap: 8px; }
.rl-btn--outline.rl-btn--sm { --pad-y: 8px; }
.rl-btn--lg { --pad-y: 18px; --pad-x: 36px; font-size: 17px; }
.rl-btn--outline.rl-btn--lg { --pad-y: 16px; }
.rl-btn--icon { width: 42px; height: 42px; padding: 0; }
.rl-btn--block { width: 100%; }
.rl-btn[disabled], .rl-btn.is-disabled { opacity: 0.6; pointer-events: none; }
.rl-btn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rl-indigo); display: inline-block; opacity: 0.7; }
.rl-spin { animation: rl-spin 0.9s linear infinite; }
@keyframes rl-spin { to { transform: rotate(360deg); } }

/* == Surfaces ==================================================================== */

.rl-card { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); box-shadow: var(--rl-shadow); padding: 32px; }
.rl-card--tight { padding: 22px; border-radius: 18px; }
.rl-card-title { font-weight: 800; font-size: 18px; margin: 0; letter-spacing: -0.015em; display: flex; align-items: center; gap: 12px; }
.rl-card-sub { color: var(--rl-muted); font-size: 14px; margin: 6px 0 18px; }
.rl-tile { width: 42px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--rl-grad-soft); color: var(--rl-indigo); flex: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rl-indigo) 10%, transparent); }
.rl-tile .rl-i { width: 20px; height: 20px; }
.rl-tile--sm { width: 34px; height: 34px; border-radius: 11px; }
.rl-tile--sm .rl-i { width: 17px; height: 17px; }
.rl-tile--lg { width: 56px; height: 56px; border-radius: 17px; }
.rl-tile--lg .rl-i { width: 26px; height: 26px; }
.rl-tile--solid { background: var(--rl-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(81, 70, 229, 0.7); }
.rl-tile--coral { background: var(--rl-coral-soft); color: var(--rl-coral); }
.rl-tile--green { background: var(--rl-green-soft); color: var(--rl-green); }

.rl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.01em; background: var(--rl-accent-soft); color: var(--rl-accent-ink); white-space: nowrap; line-height: 1.4; }
.rl-badge .rl-i { width: 13px; height: 13px; }
.rl-badge--ai { background: var(--rl-grad-soft); color: var(--rl-accent-ink); }
.rl-badge--gen { background: var(--rl-coral-soft); color: var(--rl-coral-ink); }
.rl-badge--green { background: var(--rl-green-soft); color: var(--rl-green-ink); }
.rl-badge--red { background: var(--rl-red-soft); color: var(--rl-red-ink); }
.rl-badge--amber { background: var(--rl-amber-soft); color: var(--rl-amber-ink); }
.rl-badge--muted { background: var(--rl-surface-3); color: var(--rl-muted); }
.rl-badge--white { background: var(--rl-surface); color: var(--rl-ink-2); box-shadow: var(--rl-shadow-xs); }
/* A finding's "¶ 4" that takes the writer to that paragraph. */
.rl-app a.rl-badge--link { text-decoration: none; color: var(--rl-accent-ink); }
.rl-app a.rl-badge--link.rl-badge--amber { color: var(--rl-amber-ink); }
.rl-app a.rl-badge--link.rl-badge--muted { color: var(--rl-muted); }
.rl-app a.rl-badge--link:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rl-accent) 35%, transparent); }
.rl-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); font-size: 14px; font-weight: 700; color: var(--rl-ink-2); text-decoration: none; }
.rl-pill .rl-i { color: var(--rl-indigo); }
a.rl-pill:hover { border-color: var(--rl-accent); color: var(--rl-accent-ink); }

/* Mini file badges (DOCX, PDF...). */
.rl-files { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rl-file { --c: #2f6bf0; position: relative; width: 34px; height: 42px; border-radius: 5px 11px 5px 5px; background: var(--rl-surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, var(--rl-line)); display: grid; align-items: end; justify-items: center; padding-bottom: 6px; flex: none; }
.rl-file::before { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 0 11px 0 4px; background: color-mix(in srgb, var(--c) 22%, var(--rl-surface)); }
.rl-file span { font-size: 8.5px; font-weight: 900; letter-spacing: 0.04em; color: #fff; background: var(--c); border-radius: 3px; padding: 1px 3px; line-height: 1.3; }
.rl-file--pdf { --c: #e2483d; }
.rl-file--odt { --c: #1d9bd7; }
.rl-file--rtf { --c: #7c5ce0; }
.rl-file--txt { --c: #6c7290; }
.rl-file--md { --c: #0b1133; }
[data-theme="dark"] .rl-file--md { --c: #5f6694; }

/* Category colours: one hue per kind of change, shared by badges and marks. */
.rl-cat { --cat: var(--rl-indigo); --cat-soft: var(--rl-accent-soft); }
.rl-cat--spelling { --cat: #d53a29; --cat-soft: #fde6e2; }
.rl-cat--grammar { --cat: #c2410c; --cat-soft: #ffedd5; }
.rl-cat--punctuation { --cat: #a16207; --cat-soft: #fef3c7; }
.rl-cat--clarity { --cat: #2563eb; --cat-soft: #e3edff; }
.rl-cat--concision { --cat: #0d8a7f; --cat-soft: #d2f7f1; }
.rl-cat--word_choice { --cat: #7c3aed; --cat-soft: #ede9fe; }
.rl-cat--flow { --cat: #0369a1; --cat-soft: #e0f2fe; }
.rl-cat--tone { --cat: #be185d; --cat-soft: #fce7f3; }
.rl-cat--structure { --cat: #5146e5; --cat-soft: #e8e7ff; }
.rl-cat--consistency { --cat: #4d7c0f; --cat-soft: #ecfccb; }
.rl-cat--style { --cat: #6b7280; --cat-soft: #eef0f4; }
[data-theme="dark"] .rl-cat { --cat-soft: color-mix(in srgb, var(--cat) 24%, #12152e); --cat: color-mix(in srgb, var(--cat) 55%, #ffffff); }
.rl-cat-badge { background: var(--cat-soft); color: var(--cat); }
.rl-cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); display: inline-block; flex: none; }

/* == Hero ======================================================================== */

.rl-hero { background: var(--rl-wash); position: relative; overflow: hidden; isolation: isolate; }
.rl-hero::before, .rl-pagehead::before, .rl-rhead::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--rl-indigo) 15%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 58%); -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 58%); z-index: -1; }
.rl-hero-inner { padding: 64px 0 0; position: relative; }
.rl-hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 64px; align-items: center; }
.rl-hero-copy { display: grid; gap: 26px; justify-items: start; }
.rl-hero-sub { font-size: 20px; color: var(--rl-ink-2); margin: 0; max-width: 540px; line-height: 1.55; }
.rl-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.rl-hero-note { margin: 0; color: var(--rl-muted); font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rl-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.rl-proof-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: color-mix(in srgb, var(--rl-surface) 70%, transparent); border: 1px solid var(--rl-line); font-size: 14px; font-weight: 600; color: var(--rl-ink-2); }
.rl-proof-chip b { color: var(--rl-ink); font-weight: 800; }
.rl-hero-foot { border-top: 1px solid var(--rl-line-2); margin-top: 64px; padding: 26px 0 128px; display: grid; gap: 14px; }
.rl-hero-foot-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rl-muted); }

/* The product illustration: a document with its changes, floating cards. */
.rl-art { position: relative; min-height: 470px; }
.rl-art-glow { position: absolute; inset: 8% 4% 4% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(141, 105, 220, 0.35), transparent 70%); filter: blur(10px); }
.rl-art-sheet { position: absolute; border-radius: 22px; background: var(--rl-surface); border: 1px solid var(--rl-line); box-shadow: var(--rl-shadow-lg); }
.rl-art-sheet--back { inset: 30px 0 46px 74px; transform: rotate(4deg); opacity: 0.75; }
.rl-art-sheet--main { inset: 0 50px 70px 10px; padding: 24px 28px; display: grid; align-content: start; gap: 14px; overflow: hidden; }
.rl-art-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rl-line); font-size: 13px; color: var(--rl-muted); font-weight: 700; }
.rl-art-bar > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.rl-art-dots { display: inline-flex; gap: 6px; }
.rl-art-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rl-line-2); }
.rl-art-text { font-family: var(--rl-doc); font-size: 16.5px; line-height: 1.85; color: var(--rl-ink); margin: 0; }
.rl-art-lines { display: grid; gap: 9px; }
.rl-art-lines i { height: 7px; border-radius: 4px; background: var(--rl-surface-3); }
.rl-float { position: absolute; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: 16px; box-shadow: var(--rl-shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; animation: rl-float 6s ease-in-out infinite; z-index: 2; }
.rl-float b { display: block; font-size: 14px; font-weight: 800; color: var(--rl-ink); }
.rl-float small { color: var(--rl-muted); font-size: 12.5px; }
.rl-float--a { left: -26px; bottom: 112px; animation-delay: -2s; }
.rl-float--b { right: 0; bottom: 28px; }
.rl-float--c { right: 22px; top: -18px; animation-delay: -4s; padding: 10px 12px; }
@keyframes rl-float { 50% { transform: translateY(-6px); } }
.rl-ring { --v: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; background: conic-gradient(#6457ec calc(var(--v) * 1%), var(--rl-surface-3) 0); display: grid; place-items: center; }
.rl-ring::before { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--rl-surface); grid-area: 1 / 1; }
.rl-ring span { grid-area: 1 / 1; font-weight: 900; font-size: 14px; position: relative; font-variant-numeric: tabular-nums; }

/* Kinds of writing: Paper24's chip row, with icons. */
.rl-kinds { display: flex; flex-wrap: wrap; gap: 12px; }
.rl-kind { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 14px; background: var(--rl-surface); color: var(--rl-ink) !important; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: var(--rl-shadow-xs), inset 0 0 0 1px var(--rl-line); transition: transform 0.15s, box-shadow 0.2s, color 0.15s; }
.rl-kind .rl-tile { width: 30px; height: 30px; border-radius: 9px; }
.rl-kind .rl-tile .rl-i { width: 16px; height: 16px; }
.rl-kind:hover { transform: translateY(-2px); box-shadow: var(--rl-shadow), inset 0 0 0 1px var(--rl-accent-soft); color: var(--rl-accent-ink) !important; }

/* Stats card overlapping the hero's lower edge. */
.rl-statcard { position: relative; z-index: 3; margin: -88px auto 0; max-width: 1120px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 0; box-shadow: var(--rl-shadow-lg); }
.rl-statcard > div { padding: 0 34px; display: grid; gap: 10px; align-content: start; }
.rl-statcard > div + div { border-left: 1px solid var(--rl-line); }
.rl-stat-num { font-size: clamp(38px, 4vw, 54px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.rl-stat-num .rl-i { width: 28px; height: 28px; color: var(--rl-indigo); }
.rl-stat-label { color: var(--rl-ink-2); font-size: 15.5px; line-height: 1.5; max-width: 290px; margin: 0; }

/* Feature tabs. */
.rl-ftabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rl-line-2); margin: 0 0 64px; }
.rl-ftabs button { background: none; border: 0; padding: 0 0 18px; font: inherit; font-size: 17px; font-weight: 700; color: var(--rl-muted); cursor: pointer; position: relative; display: inline-flex; gap: 10px; align-items: center; justify-content: center; transition: color 0.15s; }
.rl-ftabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--rl-grad); transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rl-ftabs button[aria-selected="true"] { color: var(--rl-ink); }
.rl-ftabs button[aria-selected="true"]::after { transform: scaleX(1); }
.rl-fpanel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.rl-fpanel[hidden] { display: none; }
.rl-fpanel-copy { display: grid; gap: 22px; justify-items: start; }
.rl-fpanel-copy h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.rl-fpanel-copy p { font-size: 18px; color: var(--rl-ink-2); margin: 0; max-width: 520px; }
.rl-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--rl-ink-2); }
.rl-ticks .rl-i { color: var(--rl-green); margin-top: 3px; }

/* Snippet card: a few lines with their changes. */
.rl-snippet { background: var(--rl-surface); border-radius: var(--rl-r-lg); border: 1px solid var(--rl-line); padding: 24px 28px; box-shadow: var(--rl-shadow-lg); font-family: var(--rl-doc); font-size: 17px; line-height: 1.85; position: relative; }
.rl-snippet-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rl-line); font-family: var(--rl-sans); font-size: 13px; color: var(--rl-muted); font-weight: 700; gap: 12px; }
.rl-snippet-head > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.rl-snippet-note { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--rl-surface-2); font-family: var(--rl-sans); font-size: 14px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; color: var(--rl-ink-2); }
.rl-snippet-note b { display: block; color: var(--rl-ink); }

/* The statement band on deep navy. */
.rl-navy { background: var(--rl-navy); color: var(--rl-on-navy); position: relative; overflow: hidden; isolation: isolate; }
.rl-navy::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(141, 105, 220, 0.5), transparent); z-index: -1; }
.rl-navy::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 107, 240, 0.35), transparent); z-index: -1; }
.rl-navy h2, .rl-navy h3 { color: var(--rl-on-navy); }
.rl-navy .rl-eyebrow, .rl-cta-band .rl-eyebrow { color: #c8bbff; }
.rl-statement { font-size: clamp(28px, 3.6vw, 46px); font-weight: 900; text-transform: uppercase; line-height: 1.32; letter-spacing: -0.015em; margin: 0; }
.rl-statement mark { background: rgba(255, 255, 255, 0.1); color: #fff; padding: 0 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rl-statement .rl-accent { background: linear-gradient(95deg, #c7b2ff, #8fb2ff); -webkit-background-clip: text; background-clip: text; }
.rl-statement-note { color: var(--rl-on-navy-2); font-size: 18px; margin: 24px 0 36px; max-width: 620px; }
.rl-statement-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: center; }
.rl-orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 340px; margin-left: auto; }
.rl-orbit-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, #a17ef0, #6457ec, #2f6bf0, #0fb2a2, #a17ef0); mask: radial-gradient(circle, transparent 60%, #000 61%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); }
.rl-orbit-core { position: absolute; inset: 16%; border-radius: 50%; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); display: grid; place-items: center; text-align: center; padding: 18px; }
.rl-orbit-core b { display: block; font-size: clamp(40px, 5vw, 62px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.rl-orbit-core span { font-size: 14px; color: var(--rl-on-navy-2); font-weight: 700; }

/* == Lists of work ============================================================= */

.rl-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.rl-doc { position: relative; display: flex; flex-direction: column; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); text-decoration: none; color: var(--rl-ink) !important; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s; }
.rl-doc:hover { transform: translateY(-3px); box-shadow: var(--rl-shadow-lg); border-color: var(--rl-line-2); }
.rl-doc-art { height: 118px; position: relative; overflow: hidden; padding: 16px 18px; }
.rl-doc-art--0 { background: linear-gradient(125deg, #efe9fb, #e1ebff); }
.rl-doc-art--1 { background: linear-gradient(125deg, #fde8df, #fff4e0); }
.rl-doc-art--2 { background: linear-gradient(125deg, #fbe5f4, #efeafb); }
.rl-doc-art--3 { background: linear-gradient(125deg, #e1f6ee, #e3f1fb); }
.rl-doc-art--4 { background: linear-gradient(125deg, #fff0ec, #f6e8ff); }
[data-theme="dark"] .rl-doc-art--0 { background: linear-gradient(125deg, #29224f, #19284f); }
[data-theme="dark"] .rl-doc-art--1 { background: linear-gradient(125deg, #3a2430, #33291e); }
[data-theme="dark"] .rl-doc-art--2 { background: linear-gradient(125deg, #3a2244, #29244a); }
[data-theme="dark"] .rl-doc-art--3 { background: linear-gradient(125deg, #163a33, #173048); }
[data-theme="dark"] .rl-doc-art--4 { background: linear-gradient(125deg, #3a2329, #33234a); }
.rl-doc-sheet { position: absolute; left: 18px; right: 46px; bottom: -8px; background: var(--rl-surface); border-radius: 12px 12px 0 0; padding: 14px 16px 18px; box-shadow: 0 -6px 20px -10px rgba(11, 17, 51, 0.25); display: grid; gap: 7px; }
.rl-doc-sheet i { height: 6px; border-radius: 3px; background: var(--rl-surface-3); display: block; }
.rl-doc-sheet .del { background: var(--rl-del-bg); }
.rl-doc-sheet .ins { background: var(--rl-ins-bg); }
.rl-doc-sheet .gen { background: var(--rl-coral-soft); }
.rl-doc-kind { position: absolute; top: 14px; left: 18px; z-index: 1; }
.rl-doc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rl-doc-title { font-weight: 800; font-size: 17.5px; line-height: 1.35; letter-spacing: -0.015em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rl-doc-meta { color: var(--rl-muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.rl-doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rl-doc-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.rl-doc-new { border: 1.5px dashed var(--rl-line-2); background: var(--rl-surface-2); align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 12px; min-height: 260px; }
.rl-doc-new:hover { border-color: var(--rl-accent); background: var(--rl-accent-wash); box-shadow: none; }
.rl-doc-new b { font-size: 18px; font-weight: 800; }
.rl-doc-new > span:not(.rl-tile) { color: var(--rl-muted); font-size: 14.5px; max-width: 240px; }

.rl-empty { text-align: center; padding: 64px 24px; border-radius: var(--rl-r-xl); background: var(--rl-surface-2); border: 1px solid var(--rl-line); display: grid; justify-items: center; gap: 14px; }
.rl-empty h3 { font-size: 22px; font-weight: 900; margin: 6px 0 0; letter-spacing: -0.02em; }
.rl-empty p { color: var(--rl-muted); margin: 0 0 8px; max-width: 480px; }

.rl-search { position: relative; display: flex; }
.rl-search input { min-width: 290px; padding: 12px 18px 12px 44px !important; border-radius: 999px !important; }
.rl-search .rl-i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--rl-muted); }
.rl-pager { display: flex; justify-content: center; gap: 10px; margin-top: 36px; align-items: center; color: var(--rl-muted); font-weight: 700; }

/* Voice cards. */
.rl-pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.rl-pcard { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--rl-shadow-sm); transition: box-shadow 0.25s, transform 0.2s; }
.rl-pcard:hover { box-shadow: var(--rl-shadow-lg); transform: translateY(-2px); }
.rl-pcard > *:not(.rl-pcard-art) { margin-left: 8px; margin-right: 8px; }
.rl-pcard-art { height: 128px; border-radius: 14px; display: flex; align-items: flex-end; padding: 14px; position: relative; overflow: hidden; }
.rl-pcard-art::after { content: attr(data-initial); position: absolute; right: 18px; top: -4px; font-family: var(--rl-serif); font-style: italic; font-size: 120px; line-height: 1; color: var(--rl-ink); opacity: 0.1; }
.rl-pcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rl-pcard-head b { font-weight: 800; font-size: 18px; letter-spacing: -0.015em; }
.rl-pcard-head span { color: var(--rl-muted); font-size: 14px; }
.rl-pcard-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-pcard-traits .rl-pill { font-size: 12.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 11px; display: block; }
.rl-pcard .rl-btn { margin-top: auto; }
.rl-pcard--cta { justify-content: center; align-items: center; text-align: center; padding: 36px 30px; background: var(--rl-wash); }
.rl-pcard--cta h3 { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
.rl-strength { display: flex; gap: 4px; }
.rl-strength i { flex: 1; height: 5px; border-radius: 3px; background: var(--rl-surface-3); }
.rl-strength[data-level="thin"] i:nth-child(-n+1),
.rl-strength[data-level="good"] i:nth-child(-n+2),
.rl-strength[data-level="strong"] i { background: var(--rl-grad); }

/* == Forms ======================================================================= */

.rl-form label, .rl-label { display: block; font-weight: 800; font-size: 14px; margin: 0 0 8px; color: var(--rl-ink); letter-spacing: -0.005em; }
.rl-opt { color: var(--rl-muted); font-weight: 600; }
.rl-help { font-size: 13px; color: var(--rl-muted); margin: 8px 0 0; font-weight: 500; }
.rl-input, .rl-form input[type="text"], .rl-form input[type="search"], .rl-form input[type="number"], .rl-form select, .rl-form textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); color: var(--rl-ink); font: inherit; font-size: 15px; font-weight: 500; box-shadow: var(--rl-shadow-xs); transition: border-color 0.15s, box-shadow 0.15s; }
.rl-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c7290' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.rl-form textarea { line-height: 1.65; resize: vertical; }
.rl-input:focus, .rl-form input:focus, .rl-form select:focus, .rl-form textarea:focus { outline: none; border-color: var(--rl-accent); box-shadow: var(--rl-ring); }
.rl-form ::placeholder { color: var(--rl-faint); }
.rl-field { margin-bottom: 22px; }
.rl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rl-errors { background: var(--rl-red-soft); color: var(--rl-red); padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 14px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.rl-errors ul { margin: 0; padding-left: 18px; }
.rl-field-error { color: var(--rl-red); font-size: 13px; margin-top: 8px; font-weight: 600; }

.rl-step-head { display: flex; gap: 16px; align-items: center; margin: 0 0 24px; }
.rl-step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rl-grad); color: #fff; font-weight: 900; flex: none; box-shadow: 0 10px 20px -10px rgba(81, 70, 229, 0.8); font-variant-numeric: tabular-nums; }
.rl-step-head h2 { font-size: 21px; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.rl-step-head p { margin: 2px 0 0; color: var(--rl-muted); font-size: 14px; }

.rl-segment { display: inline-flex; padding: 4px; background: var(--rl-surface-2); border-radius: 999px; border: 1px solid var(--rl-line); gap: 2px; }
.rl-segment button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; color: var(--rl-muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: color 0.15s, background 0.15s; }
.rl-segment button[aria-selected="true"] { background: var(--rl-surface); color: var(--rl-ink); box-shadow: var(--rl-shadow-xs), 0 0 0 1px var(--rl-line); }
.rl-segment button[aria-selected="true"] .rl-i { color: var(--rl-indigo); }
@media (max-width: 720px) {
  .rl-toolbar .rl-segment { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rl-toolbar .rl-segment button { flex: 1 0 auto; padding: 8px 10px; font-size: 13px; gap: 5px; justify-content: center; }
}

.rl-drop { border: 1.5px dashed var(--rl-line-2); border-radius: 18px; padding: 38px 24px; text-align: center; background: var(--rl-surface-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative; display: grid !important; justify-items: center; gap: 6px; font-weight: 500 !important; margin: 0 !important; }
.rl-drop:hover, .rl-drop.is-over { border-color: var(--rl-accent); background: var(--rl-accent-wash); }
.rl-drop strong { display: block; margin-top: 10px; font-size: 17px; font-weight: 800; color: var(--rl-ink); }
.rl-drop > span:not(.rl-tile) { color: var(--rl-muted); font-size: 14px; }
.rl-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rl-drop .rl-files { justify-content: center; margin-top: 12px; }
.rl-drop--sm { padding: 22px 18px; }
.rl-drop--sm strong { margin-top: 4px; font-size: 15.5px; }
.rl-picked { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.rl-picked:empty { display: none; }
.rl-picked li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--rl-surface); border: 1px solid var(--rl-line); font-size: 14px; font-weight: 600; }
.rl-picked li .rl-i { color: var(--rl-indigo); }
.rl-picked li small { margin-left: auto; color: var(--rl-muted); font-weight: 500; }

.rl-polish { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rl-polish label { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 15px 14px; border-radius: 14px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); cursor: pointer; font-weight: 600; position: relative; transition: border-color 0.15s, background 0.15s; }
.rl-polish label:hover { border-color: var(--rl-accent); }
.rl-polish input { position: absolute; opacity: 0; pointer-events: none; }
.rl-polish-bars { display: flex; gap: 3px; }
.rl-polish-bars i { width: 100%; height: 5px; border-radius: 3px; background: var(--rl-surface-3); }
.rl-polish-bars i.is-on { background: var(--rl-grad); }
.rl-polish-name { font-weight: 800; font-size: 14px; }
.rl-polish label:has(input:checked) { border: 2px solid transparent; padding: 14px 13px; background: linear-gradient(var(--rl-accent-wash), var(--rl-accent-wash)) padding-box, var(--rl-grad) border-box; }
.rl-polish label:has(input:focus-visible) { box-shadow: var(--rl-ring); }
.rl-hint { margin: 14px 0 0; padding: 13px 16px; border-radius: 12px; background: var(--rl-surface-2); font-size: 14px; color: var(--rl-ink-2); display: flex; gap: 10px; align-items: flex-start; }
.rl-hint .rl-i { color: var(--rl-indigo); margin-top: 2px; }

.rl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rl-choices--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1101px) { .rl-choices--3 .rl-choice { flex-direction: column; gap: 10px; padding: 16px; } }
@media (max-width: 1100px) { .rl-choices--3 { grid-template-columns: 1fr; } }
.rl-choice { position: relative; display: flex !important; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); cursor: pointer; margin: 0 !important; transition: border-color 0.15s, background 0.15s; }
.rl-choice:hover { border-color: var(--rl-accent); }
.rl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rl-choice--off { opacity: 0.6; cursor: not-allowed; }
.rl-choice--off:hover { border-color: var(--rl-line-2); }
.rl-off { display: block; margin-top: 4px; color: var(--rl-amber-ink); font-weight: 700; }
.rl-choice b { display: block; font-weight: 800; font-size: 15.5px; }
.rl-choice small { display: block; color: var(--rl-muted); font-weight: 500; font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
.rl-choice:has(input:checked) { border: 2px solid transparent; padding: 17px; background: linear-gradient(var(--rl-accent-wash), var(--rl-accent-wash)) padding-box, var(--rl-grad) border-box; }
.rl-choice:has(input:focus-visible) { box-shadow: var(--rl-ring); }

.rl-kindpick { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-kindpick label { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); font-weight: 700 !important; font-size: 14px !important; cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s; }
.rl-kindpick label:hover { border-color: var(--rl-accent); }
.rl-kindpick input { position: absolute; opacity: 0; pointer-events: none; }
.rl-kindpick .rl-i { color: var(--rl-indigo); }
.rl-kindpick label:has(input:checked) { border-color: transparent; background: linear-gradient(var(--rl-accent-wash), var(--rl-accent-wash)) padding-box, var(--rl-grad) border-box; border: 1px solid transparent; box-shadow: inset 0 0 0 1px var(--rl-indigo); color: var(--rl-accent-ink); }
.rl-kindpick label:has(input:focus-visible) { box-shadow: var(--rl-ring); }
.rl-sticky .rl-hint { margin-top: 18px; }
.rl-range { display: grid; gap: 12px; }
.rl-range-top { display: flex; justify-content: space-between; align-items: baseline; }
.rl-range-top label { margin: 0; }
.rl-range-top output { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rl-range-top output small { font-size: 13px; color: var(--rl-muted); font-weight: 700; }
.rl-range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #8d69dc, #2f6bf0) 0 / var(--fill, 20%) 100% no-repeat, var(--rl-surface-3); outline: none; margin: 6px 0; }
.rl-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #6457ec; box-shadow: var(--rl-shadow-sm); cursor: pointer; }
.rl-range input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #6457ec; cursor: pointer; }
.rl-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--rl-faint); font-weight: 700; }
/* Humanize's and Paraphrase's sliders (_levels.html, levels.js): meaning and
   grammar, five stops each, the stop's name beside the label and what may
   change under the track. */
.rl-sliders { display: grid; gap: 6px; margin-bottom: 22px; }
.rl-slider { gap: 8px; margin-bottom: 14px; }
.rl-slider .rl-range-top { gap: 12px; align-items: center; }
.rl-slider .rl-range-top label { display: inline-flex; align-items: center; gap: 8px; }
.rl-slider .rl-range-top label .rl-i { color: var(--rl-indigo); }
.rl-slider .rl-range-top output { font-size: 15px; font-weight: 900; color: var(--rl-accent-ink); background: var(--rl-accent-wash); border: 1px solid var(--rl-accent-soft); padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.rl-slider input[type="range"]:focus-visible { box-shadow: var(--rl-ring); }
.rl-slider-scale { gap: 4px; }
.rl-slider-scale span { flex: 1 1 0; min-width: 0; text-align: center; cursor: pointer; overflow-wrap: anywhere; transition: color 0.15s; }
.rl-slider-scale span:first-child { text-align: left; }
.rl-slider-scale span:last-child { text-align: right; }
.rl-slider-scale span.is-on { color: var(--rl-accent-ink); }
.rl-slider-says { margin: 2px 0 0; min-height: 2.8em; color: var(--rl-ink-2); font-size: 14px; font-weight: 600; }
.rl-slider-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; }
.rl-slider-note .rl-i { margin-top: 2px; color: var(--rl-green-ink); }
.rl-slider-all { border: 1px solid var(--rl-line); border-radius: 14px; background: var(--rl-surface); padding: 10px 14px; }
.rl-sliders .rl-slider-all > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 800; color: var(--rl-accent-ink); }
.rl-sliders .rl-slider-all > summary::-webkit-details-marker { display: none; }
.rl-slider-chev { transition: transform 0.2s; }
.rl-sliders .rl-slider-all[open] > summary .rl-slider-chev { transform: rotate(180deg); }
.rl-slider-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.rl-slider-lists h3 { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rl-muted); margin: 0 0 8px; }
.rl-slider-lists dl { margin: 0; display: grid; gap: 6px; }
.rl-slider-lists dt { font-size: 13px; font-weight: 800; color: var(--rl-ink); }
.rl-slider-lists dd { margin: 0 0 6px; font-size: 13px; color: var(--rl-muted); }
@media (max-width: 720px) {
  .rl-slider-lists { grid-template-columns: 1fr; }
  .rl-slider-scale { font-size: 11px; }
  .rl-slider .rl-range-top { flex-wrap: wrap; }
}
.rl-pill--levels { font-weight: 700; }
.rl-eyebrow--quiet { margin-left: 10px; color: var(--rl-muted); letter-spacing: 0.08em; }
.rl-eyebrow--quiet::before { display: none; }

.rl-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.15s; }
.rl-checks input { position: absolute; opacity: 0; pointer-events: none; }
.rl-checks label::before { content: "+"; font-weight: 900; color: var(--rl-faint); width: 10px; }
.rl-checks label:has(input:checked) { border-color: var(--rl-accent); background: var(--rl-accent-wash); color: var(--rl-accent-ink); }
.rl-checks label:has(input:checked)::before { content: "\2713"; color: var(--rl-accent); }
.rl-checks label:has(input:focus-visible) { box-shadow: var(--rl-ring); }
.rl-switch { display: flex !important; align-items: flex-start; gap: 14px; cursor: pointer; font-weight: 700 !important; }
.rl-switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--rl-line-2); position: relative; flex: none; cursor: pointer; transition: background 0.2s; margin: 0; }
.rl-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.rl-switch input:checked { background: var(--rl-grad); }
.rl-switch input:checked::after { transform: translateX(18px); }
.rl-switch small { display: block; font-weight: 500; color: var(--rl-muted); font-size: 13px; margin-top: 2px; }
.rl-switch.is-off { opacity: 0.55; }
.rl-switch.is-off input { cursor: default; }
.rl-agree { display: flex !important; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--rl-coral-soft); color: var(--rl-ink-2); font-weight: 600 !important; font-size: 14px !important; cursor: pointer; line-height: 1.5; }
.rl-agree input { width: 18px; height: 18px; accent-color: var(--rl-coral); margin-top: 2px; flex: none; }

.rl-new-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rl-sticky { position: sticky; top: 96px; }
.rl-wordcount { font-size: 13px; color: var(--rl-muted); text-align: right; margin-top: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-wordcount.is-over { color: var(--rl-red); }
.rl-summary-list { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 12px; font-size: 14.5px; }
.rl-summary-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--rl-ink-2); }
.rl-summary-list li[hidden] { display: none; }
.rl-summary-list .rl-i { color: var(--rl-green); margin-top: 2px; }

/* Disclosures. */
.rl-disclosure { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border-radius: 14px; background: var(--rl-grad-soft); color: var(--rl-ink-2); font-size: 14px; line-height: 1.55; position: relative; overflow: hidden; }
.rl-disclosure::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rl-grad); }
.rl-disclosure .rl-i { color: var(--rl-indigo); margin-top: 2px; }
.rl-disclosure strong { color: var(--rl-ink); font-weight: 800; }
.rl-navy .rl-disclosure { background: rgba(255, 255, 255, 0.06); color: var(--rl-on-navy-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.rl-navy .rl-disclosure strong { color: #fff; }
.rl-navy .rl-disclosure .rl-i { color: #c8bbff; }
.rl-genbar { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: linear-gradient(95deg, #fff1ea, #ffe9e1); border: 1px solid #ffd2c2; color: #6b2a17; position: relative; overflow: hidden; font-family: var(--rl-sans); line-height: 1.5; }
[data-theme="dark"] .rl-genbar { background: linear-gradient(95deg, #3a2120, #331d27); border-color: #5a2f2a; color: #ffd8cb; }
.rl-genbar .rl-tile { background: #fff; color: var(--rl-coral); box-shadow: 0 6px 14px -8px rgba(242, 100, 63, 0.6); }
[data-theme="dark"] .rl-genbar .rl-tile { background: #4b2724; }
.rl-genbar b { display: block; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px; color: var(--rl-coral-ink); }
.rl-genbar span { font-size: 14px; }

/* == Page heads ==================================================================== */

.rl-pagehead { background: var(--rl-wash); padding: 44px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.rl-pagehead-inner { display: grid; gap: 14px; justify-items: start; }
.rl-pagehead h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
.rl-pagehead h1 .rl-accent { font-size: 1.1em; }
.rl-pagehead p { margin: 0; color: var(--rl-ink-2); font-size: 18px; max-width: 700px; }
.rl-pagehead + .rl-body { margin-top: -36px; }
.rl-body { position: relative; padding-bottom: 104px; }
.rl-back { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; text-decoration: none; font-size: 14px; color: var(--rl-accent-ink) !important; }
.rl-back .rl-i { transition: transform 0.15s; }
.rl-back:hover .rl-i { transform: translateX(-2px); }

/* == Review & generated documents ===================================================== */

.rl-rhead { background: var(--rl-wash); padding: 32px 0 84px; position: relative; overflow: hidden; isolation: isolate; }
.rl-rhead-top { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.rl-rhead-top > .flex-grow-1 { flex-basis: 0; }
.rl-rhead h1 { margin: 12px 0 14px; font-size: clamp(26px, 3.3vw, 42px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.12; }
.rl-title-edit { display: inline-block; border: 1px dashed transparent; padding: 2px 8px; margin-left: -9px; border-radius: 12px; cursor: text; max-width: 100%; overflow-wrap: anywhere; }
.rl-title-edit:hover { border-color: var(--rl-line-2); }
.rl-title-edit:focus { outline: none; border: 1px solid var(--rl-accent); background: var(--rl-surface); box-shadow: var(--rl-ring); }
.rl-rmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rl-rmeta .rl-pill { background: color-mix(in srgb, var(--rl-surface) 75%, transparent); }
.rl-ractions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rl-scorebar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); margin-top: -56px; position: relative; z-index: 2; box-shadow: var(--rl-shadow-lg); }
.rl-scorebar > div { padding: 20px 24px; display: flex; gap: 16px; align-items: center; }
.rl-scorebar > div + div { border-left: 1px solid var(--rl-line); }
.rl-scorebar b { font-size: 27px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.rl-scorebar b .rl-i { width: 18px; height: 18px; color: var(--rl-faint); }
.rl-scorebar small { display: block; color: var(--rl-muted); font-size: 13px; font-weight: 600; margin-top: 5px; line-height: 1.3; }

.rl-review-body { padding: 36px 0 104px; }
.rl-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.rl-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.rl-legend { display: flex; gap: 14px; font-size: 13px; color: var(--rl-muted); flex-wrap: wrap; align-items: center; font-weight: 600; }
.rl-legend .del { color: var(--rl-del); background: var(--rl-del-bg); text-decoration: line-through; padding: 1px 6px; border-radius: 4px; }
.rl-legend .ins { color: var(--rl-ins); background: var(--rl-ins-bg); padding: 1px 6px; border-radius: 4px; }
@media (hover: none) { .rl-legend-keys { display: none; } }
.rl-kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); box-shadow: 0 1px 0 var(--rl-line-2); }

.rl-paper { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); box-shadow: var(--rl-shadow); padding: 60px 68px; font-size: 18px; line-height: 1.9; font-family: var(--rl-doc); color: var(--rl-ink); position: relative; }
.rl-paper .rl-disclosure, .rl-paper .rl-genbar { font-family: var(--rl-sans); margin-bottom: 40px; }
.rl-paper-title { font-family: var(--rl-sans); font-size: 30px; font-weight: 900; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 26px; }
.rl-para { margin: 0 0 1.15em; white-space: pre-wrap; word-wrap: break-word; }
.rl-rows .rl-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
.rl-col--draft { display: none; }
.rl-paper[data-mode="compare"] { padding: 48px 44px; }
.rl-paper[data-mode="compare"] .rl-row { grid-template-columns: 1fr 1fr; }
/* The writer's own structure: headings, lists, quotations, table cells. */
.rl-row--title .rl-para, .rl-row--h1 .rl-para { font-family: var(--rl-display); font-size: 1.6em; font-weight: 800; line-height: 1.25; margin-top: 0.4em; }
.rl-row--subtitle .rl-para { font-size: 1.2em; font-style: italic; color: var(--rl-ink-2); }
.rl-row--h2 .rl-para { font-size: 1.32em; font-weight: 800; line-height: 1.3; margin-top: 0.6em; }
.rl-row--h3 .rl-para { font-size: 1.14em; font-weight: 800; margin-top: 0.4em; }
.rl-row--h4 .rl-para, .rl-row--h5 .rl-para, .rl-row--h6 .rl-para { font-weight: 800; font-style: italic; }
.rl-row--quote .rl-para { border-left: 3px solid var(--rl-line-2); padding-left: 1em; font-style: italic; color: var(--rl-ink-2); }
.rl-row--list .rl-para { position: relative; padding-left: calc(1.6em + var(--level, 0) * 1.4em); margin-bottom: 0.45em; }
.rl-bullet { position: absolute; left: calc(var(--level, 0) * 1.4em); color: var(--rl-ink-2); user-select: none; }
.rl-row--cell .rl-para { border: 1px solid var(--rl-line); border-radius: 6px; padding: 0.35em 0.7em; margin-bottom: 0.3em; font-size: 0.95em; }
.rl-align--center .rl-para { text-align: center; }
.rl-align--right .rl-para { text-align: right; }
.rl-align--justify .rl-para { text-align: justify; }
.rl-md { color: var(--rl-ink-3); font-weight: 400; font-size: 0.85em; }
.rl-paper[data-mode="compare"] .rl-col--draft { display: block; color: var(--rl-ink-2); }
.rl-compare-heads { display: none; }
.rl-paper[data-mode="compare"] .rl-compare-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-family: var(--rl-sans); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rl-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rl-line); }

/* Rendered generated text. */
.rl-prose { font-family: var(--rl-doc); font-size: 18px; line-height: 1.85; color: var(--rl-ink); }
.rl-prose h3 { font-family: var(--rl-sans); font-size: 23px; font-weight: 900; letter-spacing: -0.02em; margin: 1.6em 0 0.6em; line-height: 1.25; }
.rl-prose h3:first-child { margin-top: 0; }
.rl-prose h4 { font-family: var(--rl-sans); font-size: 18px; font-weight: 800; margin: 1.4em 0 0.4em; }
.rl-prose p { margin: 0 0 1.1em; }
.rl-prose ul, .rl-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.rl-prose li { margin-bottom: 0.4em; }
.rl-prose li::marker { color: var(--rl-indigo); }
.rl-prose blockquote { margin: 0 0 1.2em; padding: 6px 0 6px 20px; border-left: 3px solid var(--rl-accent-soft); color: var(--rl-ink-2); font-style: italic; }
.rl-prose strong { font-weight: 700; }
.rl-prose .rl-verify { background: var(--rl-amber-soft); color: var(--rl-amber-ink); border-radius: 4px; padding: 0 5px; font-family: var(--rl-sans); font-size: 0.82em; font-weight: 800; }
.rl-prose .rl-cite { font-family: var(--rl-sans); font-size: 0.74em; font-weight: 800; color: var(--rl-accent-ink); background: var(--rl-accent-wash); border-radius: 6px; padding: 1px 7px; white-space: nowrap; vertical-align: 0.1em; }
.rl-prose--guide p > strong:first-child { font-family: var(--rl-sans); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rl-accent-ink); }

.rl-ch { cursor: pointer; border-radius: 4px; transition: box-shadow 0.15s, background 0.15s, opacity 0.2s; scroll-margin: 160px; }
.rl-ch del { color: var(--rl-del); background: var(--rl-del-bg); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 3px; padding: 0 2px; }
.rl-ch ins { color: var(--rl-ins); background: var(--rl-ins-bg); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--rl-ins) 50%, transparent); border-radius: 3px 3px 0 0; padding: 0 2px; }
.rl-ch del + ins { margin-left: 2px; }
.rl-ch:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rl-accent) 35%, transparent); }
.rl-ch.is-current { box-shadow: 0 0 0 2px var(--rl-accent); background: var(--rl-accent-wash); }
.rl-ch.is-dim { opacity: 0.3; }
.rl-ch[data-status="accepted"] ins { background: transparent; border-bottom-color: var(--rl-green); }
.rl-ch[data-status="accepted"] del { display: none; }
.rl-ch[data-status="rejected"] ins { display: none; }
.rl-ch[data-status="rejected"] del { color: inherit; background: transparent; text-decoration: none; border-bottom: 2px dotted var(--rl-line-2); }
.rl-ch--whole { display: block; }
.rl-ch--whole del, .rl-ch--whole ins { display: block; padding: 8px 12px; margin: 0 0 8px; border-radius: 12px; }
.rl-ch--whole del + ins { margin-left: 0; }
.rl-ch--whole[data-status="rejected"] del, .rl-ch--whole[data-status="accepted"] ins { padding: 0; }
.rl-paper[data-mode="clean"] .rl-ch del { display: none; }
.rl-paper[data-mode="clean"] .rl-ch ins { color: inherit; background: transparent; border-bottom: 0; padding: 0; margin: 0; }
.rl-paper[data-mode="clean"] .rl-ch[data-status="rejected"] del { display: inline; border: 0; }
.rl-paper[data-mode="clean"] .rl-ch--whole[data-status="rejected"] del { display: block; }
.rl-paper[data-mode="compare"] .rl-col--edit .rl-ch del { display: none; }
.rl-paper[data-mode="compare"] .rl-col--edit .rl-ch[data-status="rejected"] del { display: inline; background: transparent; color: inherit; text-decoration: none; border: 0; }
.rl-paper[data-mode="compare"] .rl-ch del + ins { margin-left: 0; }
.rl-col--draft mark { background: var(--rl-del-bg); color: var(--rl-del); border-radius: 3px; padding: 0 2px; }
/* Writing on the page. */
.rl-paper[data-mode="write"] .rl-col--edit { border-radius: 10px; padding: 4px 8px; margin-left: -8px; margin-right: -8px; transition: background 0.15s, box-shadow 0.15s; cursor: text; }
.rl-paper[data-mode="write"] .rl-col--edit:hover { background: color-mix(in srgb, var(--rl-accent-soft) 45%, transparent); }
.rl-paper[data-mode="write"] .rl-col--edit:focus { outline: none; background: var(--rl-surface); box-shadow: 0 0 0 2px var(--rl-accent); }
.rl-paper[data-mode="write"] .rl-bullet { left: calc(8px + var(--level, 0) * 1.4em); }
.rl-col--edit.is-mine .rl-mine { box-shadow: inset 2px 0 0 var(--rl-accent); padding-left: 8px; display: inline-block; }
.rl-writebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--rl-accent-soft); color: var(--rl-ink); font-size: 14px; }
.rl-save-state { margin-left: auto; font-weight: 800; color: var(--rl-ink-2); }
.rl-change.is-superseded { opacity: 0.6; }
.rl-change.is-superseded .rl-change-acts { display: none; }
/* The page's own navigation: sections, and the next change to review. */
.rl-subnav { position: sticky; top: 72px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 8px 10px 8px 14px; border: 1px solid var(--rl-line); border-radius: 16px; background: color-mix(in srgb, var(--rl-surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--rl-shadow, 0 6px 20px rgba(20, 20, 60, 0.06)); }
.rl-subnav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.rl-subnav-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--rl-ink-2) !important; text-decoration: none; }
.rl-subnav-links a:hover { background: var(--rl-accent-soft); color: var(--rl-ink) !important; }
.rl-subnav-review { display: flex; align-items: center; gap: 8px; }
.rl-subnav-left { font-size: 14px; color: var(--rl-ink-2); margin-right: 4px; white-space: nowrap; }
[id="rl-paper"], [id="rl-changes-title"], [id="rl-quality"], [id="rl-dl-title"], [id="rl-versions-title"] { scroll-margin-top: 150px; }
/* The paragraph a finding's "¶ N" leads to: room under the bars, and a
   short wash so the eye finds it. */
.rl-rows .rl-row { scroll-margin-top: 150px; }
.rl-rows .rl-row:target { border-radius: 10px; animation: rl-para-found 2.6s ease-out; }
@keyframes rl-para-found {
  0%, 45% { background: var(--rl-amber-soft); box-shadow: 0 0 0 10px var(--rl-amber-soft); }
  100% { background: transparent; box-shadow: 0 0 0 10px transparent; }
}
@media (max-width: 720px) {
  .rl-subnav { top: 60px; padding: 6px; }
  .rl-subnav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; scroll-snap-type: x proximity; padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .rl-subnav-links::-webkit-scrollbar { display: none; }
  .rl-subnav-links a { padding: 6px 9px; font-size: 13px; white-space: nowrap; scroll-snap-align: start; }
  .rl-subnav-review { display: none; }
}
.rl-col--draft .rl-ch--whole mark { display: block; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--rl-del-bg) 60%, transparent); color: inherit; }

.rl-side { display: grid; gap: 18px; align-content: start; }
/* The review page's summary and changes stay beside the draft as it scrolls
   (a change picked in the draft scrolls its card into view in here); the
   cards that follow a review sit in the row below, in the page's own flow. */
.rl-side--follow { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow: auto; padding: 2px 4px 8px 2px; scrollbar-width: thin; scrollbar-color: var(--rl-line-2) transparent; }
.rl-stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.rl-meter { height: 8px; border-radius: 999px; background: var(--rl-surface-3); overflow: hidden; display: flex; }
.rl-meter span { display: block; height: 100%; transition: width 0.3s ease; }
.rl-meter .is-accepted { background: var(--rl-green); }
.rl-meter .is-rejected { background: var(--rl-red); }
.rl-meter .is-pending { background: transparent; }
.rl-counts { display: flex; justify-content: space-between; font-size: 13px; color: var(--rl-muted); margin-top: 10px; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.rl-counts b { color: var(--rl-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
.rl-bulk { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 18px; }
.rl-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-filter { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rl-line); background: var(--rl-surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--rl-ink-2); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.rl-filter b { color: var(--rl-muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-filter:hover { border-color: var(--rl-line-2); }
.rl-filter[aria-pressed="true"] { border-color: var(--cat, var(--rl-accent)); background: var(--cat-soft, var(--rl-accent-soft)); color: var(--cat, var(--rl-accent-ink)); }
.rl-changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rl-change { border: 1px solid var(--rl-line); border-radius: 16px; padding: 14px 16px 14px 18px; background: var(--rl-surface); cursor: pointer; transition: border-color 0.15s, box-shadow 0.2s; position: relative; overflow: hidden; }
.rl-change::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cat); opacity: 0.9; }
.rl-change:hover { border-color: var(--rl-line-2); box-shadow: var(--rl-shadow-sm); }
.rl-change.is-current { border-color: var(--rl-accent); box-shadow: var(--rl-ring); }
.rl-change[hidden] { display: none; }
.rl-change-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.rl-change-n { font-size: 12px; color: var(--rl-muted); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.rl-change-state { display: none; }
.rl-change[data-status="accepted"] .rl-change-state--accepted, .rl-change[data-status="rejected"] .rl-change-state--rejected { display: inline-flex; }
.rl-change-diff { font-size: 15px; line-height: 1.55; margin: 0 0 8px; word-break: break-word; font-family: var(--rl-doc); }
.rl-change-diff del { color: var(--rl-del); background: var(--rl-del-bg); border-radius: 3px; padding: 0 3px; }
.rl-change-diff ins { color: var(--rl-ins); background: var(--rl-ins-bg); text-decoration: none; border-radius: 3px; padding: 0 3px; }
.rl-change-diff del + ins { margin-left: 2px; }
.rl-change-diff .rl-arrow { color: var(--rl-muted); margin: 0 6px; font-family: var(--rl-sans); }
.rl-ctx { color: var(--rl-muted); }
.rl-change-why { font-size: 14px; color: var(--rl-ink-2); margin: 0 0 12px; line-height: 1.5; }
.rl-change-acts { display: flex; gap: 8px; }
.rl-act { flex: 1; border: 1px solid var(--rl-line-2); background: var(--rl-surface); border-radius: 999px; padding: 7px 10px; font: inherit; font-size: 13px; font-weight: 800; color: var(--rl-ink-2); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 6px; transition: all 0.15s; }
.rl-act:hover { border-color: var(--rl-accent); color: var(--rl-accent-ink); }
.rl-act--accept[aria-pressed="true"] { background: var(--rl-green-soft); color: var(--rl-green); border-color: var(--rl-green); }
.rl-act--reject[aria-pressed="true"] { background: var(--rl-red-soft); color: var(--rl-red); border-color: var(--rl-red); }
.rl-change[data-status="rejected"] .rl-change-diff { opacity: 0.55; }

/* Claims to check, beside a generated piece. */
.rl-claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rl-claim { --c: var(--rl-amber); --ci: var(--rl-amber-ink); --cs: var(--rl-amber-soft); border: 1px solid var(--rl-line); border-radius: 14px; padding: 13px 14px 13px 17px; position: relative; overflow: hidden; background: var(--rl-surface); }
.rl-claim::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.rl-claim--supported { --c: var(--rl-green); --ci: var(--rl-green-ink); --cs: var(--rl-green-soft); }
.rl-claim--opinion { --c: var(--rl-muted); --ci: var(--rl-muted); --cs: var(--rl-surface-3); }
.rl-claim-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.rl-claim-status { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--ci, var(--c)); background: var(--cs); padding: 3px 9px; border-radius: 999px; }
.rl-claim-status .rl-i { width: 13px; height: 13px; }
.rl-claim q { display: block; font-family: var(--rl-doc); font-size: 15px; line-height: 1.5; color: var(--rl-ink); }
.rl-claim p { margin: 6px 0 0; font-size: 13.5px; color: var(--rl-muted); }
.rl-claim p b { color: var(--rl-ink-2); }
.rl-tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.rl-tally div { padding: 10px 6px; border-radius: 12px; background: var(--rl-surface-2); text-align: center; }
.rl-tally b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rl-tally span { font-size: 12px; font-weight: 700; color: var(--rl-muted); }
.rl-refs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rl-refs li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rl-line); font-size: 14px; }
.rl-refs li div { min-width: 0; }
.rl-refs li b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-refs li small { color: var(--rl-muted); }
.rl-outline { list-style: none; padding: 0; margin: 0; counter-reset: o; display: grid; gap: 2px; }
.rl-outline li { counter-increment: o; display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--rl-ink-2); }
.rl-outline li::before { content: counter(o, decimal-leading-zero); font-weight: 900; color: var(--rl-faint); font-variant-numeric: tabular-nums; }
.rl-outline li small { margin-left: auto; color: var(--rl-faint); font-weight: 700; white-space: nowrap; }

.rl-measures { width: 100%; border-collapse: collapse; font-size: 14px; }
.rl-measures th { text-align: left; font-weight: 600; color: var(--rl-muted); padding: 9px 0; }
.rl-measures td { text-align: right; padding: 9px 0 9px 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
.rl-measures thead td { font-weight: 900; color: var(--rl-ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.rl-measures tr + tr { border-top: 1px solid var(--rl-line); }
.rl-coach { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-coach li { padding: 16px; border-radius: 14px; background: var(--rl-surface-2); display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.rl-coach-n { width: 30px; height: 30px; border-radius: 10px; background: var(--rl-grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.rl-coach b { display: block; margin-bottom: 4px; font-weight: 800; }
.rl-coach p { margin: 0; font-size: 14px; color: var(--rl-ink-2); }
.rl-coach small { display: inline-block; margin-top: 8px; color: var(--rl-ink-2); font-size: 13px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: 8px; padding: 4px 8px; font-family: var(--rl-doc); }

/* Working: a skeleton page being written, and the steps beside it. */
.rl-working { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.rl-working .rl-paper { min-height: 520px; }
.rl-skel { display: grid; gap: 14px; margin-top: 12px; }
.rl-skel i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--rl-surface-3) 0%, var(--rl-surface-2) 40%, var(--rl-surface-3) 80%); background-size: 200% 100%; animation: rl-shimmer 1.6s linear infinite; }
.rl-skel i.h { height: 22px; width: 55%; margin: 18px 0 6px; }
@keyframes rl-shimmer { to { background-position: -200% 0; } }
.rl-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rl-stages li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--rl-faint); }
.rl-stages li .rl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--rl-line-2); flex: none; }
.rl-stages li.is-done { color: var(--rl-ink-2); }
.rl-stages li.is-done .rl-dot { background: var(--rl-green); border-color: var(--rl-green); color: #fff; }
.rl-stages li.is-on { color: var(--rl-ink); background: var(--rl-accent-wash); }
.rl-stages li.is-on .rl-dot { border-color: var(--rl-indigo); border-top-color: transparent; animation: rl-spin 0.9s linear infinite; }
.rl-stages .rl-dot .rl-i { width: 12px; height: 12px; }
.rl-stages li:not(.is-done) .rl-dot .rl-i { display: none; }
.rl-bar { height: 8px; border-radius: 999px; background: var(--rl-surface-3); overflow: hidden; margin: 18px 0 10px; }
.rl-bar span { display: block; height: 100%; background: var(--rl-grad); border-radius: inherit; transition: width 0.6s ease; position: relative; overflow: hidden; }
.rl-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); animation: rl-shine 1.4s linear infinite; }
@keyframes rl-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.rl-failed { text-align: center; padding: 64px 28px; max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 12px; }
.rl-failed h2 { font-size: 26px; font-weight: 900; margin: 8px 0 0; text-transform: uppercase; letter-spacing: -0.01em; }
.rl-failed p { color: var(--rl-muted); margin: 0 0 12px; }

.rl-versions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rl-versions a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--rl-ink) !important; font-size: 14px; font-weight: 700; }
.rl-versions a:hover { background: var(--rl-accent-wash); }
.rl-versions a.is-current { background: var(--rl-accent-soft); color: var(--rl-accent-ink) !important; }
.rl-versions a.is-current .rl-muted, .rl-versions a.is-current .rl-version-kind { color: var(--rl-ink-2); }
.rl-export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-export { display: flex; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--rl-line); text-decoration: none; color: var(--rl-ink) !important; font-size: 14px; font-weight: 800; background: var(--rl-surface); transition: all 0.15s; }
.rl-export:hover { border-color: var(--rl-accent); background: var(--rl-accent-wash); transform: translateY(-1px); }
.rl-export .rl-file { width: 28px; height: 34px; padding-bottom: 4px; }
.rl-export .rl-file span { font-size: 7px; }
.rl-export small { display: block; color: var(--rl-muted); font-size: 12px; font-weight: 600; }
.rl-again summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rl-again summary::-webkit-details-marker { display: none; }
.rl-again summary .rl-chev { transition: transform 0.2s; color: var(--rl-muted); }
.rl-again[open] summary .rl-chev { transform: rotate(180deg); }
.rl-again-body { padding-top: 26px; margin-top: 22px; border-top: 1px solid var(--rl-line); }

/* == The AI check and Verify ========================================================= */

.rl-verdict { scroll-margin-top: 96px; --c: var(--rl-muted); --cs: var(--rl-surface-2); display: flex; gap: 20px; align-items: flex-start; padding: 26px 28px; border-radius: var(--rl-r-lg); background: var(--rl-surface); border: 1px solid var(--rl-line); box-shadow: var(--rl-shadow); position: relative; overflow: hidden; }
.rl-verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.rl-verdict .rl-tile { background: var(--cs); color: var(--c); }
.rl-verdict h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 2px 0 6px; }
.rl-verdict p { margin: 0; color: var(--rl-ink-2); }
.rl-verdict--generated, .rl-verdict--partial { --c: var(--rl-coral); --cs: var(--rl-coral-soft); }
.rl-verdict--labelled { --c: var(--rl-indigo); --cs: var(--rl-accent-soft); }
.rl-verdict--many { --c: var(--rl-amber); --cs: var(--rl-amber-soft); }
.rl-verdict--few { --c: var(--rl-green); --cs: var(--rl-green-soft); }
.rl-evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.rl-evidence > div { padding: 14px 16px; border-radius: 14px; background: var(--rl-surface-2); }
.rl-evidence b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rl-evidence span { font-size: 13px; color: var(--rl-muted); font-weight: 600; }
.rl-evidence small { display: block; font-size: 12px; color: var(--rl-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.rl-signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rl-signals li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rl-line); }
.rl-signals li:last-child { border-bottom: 0; }
.rl-signals b { font-weight: 800; }
.rl-signals p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--rl-muted); }
.rl-signals .rl-sig-value { font-size: 13px; color: var(--rl-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-gauge { display: inline-flex; gap: 3px; align-items: center; }
.rl-gauge i { width: 18px; height: 6px; border-radius: 3px; background: var(--rl-surface-3); }
.rl-gauge[data-level="mid"] i:nth-child(-n+2), .rl-gauge[data-level="low"] i:first-child { background: var(--rl-muted); }
.rl-gauge[data-level="high"] i { background: var(--rl-amber); }
.rl-gauge-text { font-size: 12px; font-weight: 800; color: var(--rl-muted); margin-left: 8px; }
.rl-pmap { display: grid; gap: 10px; }
.rl-pmap p { margin: 0; padding: 12px 16px 12px 18px; border-radius: 12px; background: var(--rl-surface); border: 1px solid var(--rl-line); font-family: var(--rl-doc); font-size: 15.5px; line-height: 1.7; position: relative; }
.rl-pmap p::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--rl-line-2); }
.rl-pmap p[data-band="many"] { background: color-mix(in srgb, var(--rl-amber-soft) 60%, var(--rl-surface)); }
.rl-pmap p[data-band="many"]::before { background: var(--rl-amber); }
.rl-pmap p[data-band="few"]::before { background: var(--rl-green); }
.rl-pmap p[data-band="some"]::before { background: var(--rl-faint); }
.rl-pmap .rl-badge { font-family: var(--rl-sans); float: right; margin: 0 0 6px 10px; }
.rl-caveats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; color: var(--rl-ink-2); }
.rl-caveats li { display: flex; gap: 12px; align-items: flex-start; }
.rl-caveats .rl-i { color: var(--rl-indigo); margin-top: 2px; }
.rl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 8px; background: var(--rl-surface-2); border: 1px solid var(--rl-line); }
@media (max-width: 760px) { .rl-evidence { grid-template-columns: 1fr; } .rl-verdict { padding: 20px; flex-direction: column; } }

/* == Natural writing: the quality dashboard and edited changes =================== */

.rl-quality { display: grid; gap: 24px; }
.rl-quality-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.rl-quality-head > div:first-child { max-width: 620px; }
.rl-quality-overall { display: flex; align-items: center; gap: 14px; color: var(--rl-faint); }
.rl-ring--lg { width: 72px; height: 72px; }
.rl-ring--lg::before { width: 56px; height: 56px; }
.rl-ring--lg span { font-size: 20px; color: var(--rl-ink); }
.rl-quality-overall-label { font-weight: 900; color: var(--rl-ink); display: grid; }
.rl-quality-overall-label small { font-weight: 600; color: var(--rl-muted); font-size: 12.5px; }
.rl-reads-ai { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--rl-accent-wash); border: 1px solid var(--rl-accent-soft); color: var(--rl-muted); font-size: 13.5px; line-height: 1.5; }
.rl-reads-ai b { color: var(--rl-ink); }
.rl-reads-ai svg { flex: none; margin-top: 3px; color: var(--rl-violet, #6d5dfc); }
.rl-reads-slips { display: block; margin-top: 4px; }
.rl-quality-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.rl-quality-grid--one { grid-template-columns: minmax(0, 1fr); }
.rl-quality-lists--one { grid-template-columns: minmax(0, 1fr); }
.rl-outcome { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 8px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; background: var(--rl-accent-soft, rgba(37, 99, 235, 0.1)); color: var(--rl-ink); }
.rl-outcome--revised, .rl-outcome--unchanged { background: rgba(22, 163, 74, 0.12); }
.rl-outcome--partial, .rl-outcome--fallback_original, .rl-outcome--unsupported_language { background: rgba(217, 119, 6, 0.14); }
.rl-rule { font-size: 11px; letter-spacing: 0.02em; padding: 1px 6px; border-radius: 6px; background: var(--rl-line, rgba(0, 0, 0, 0.06)); color: var(--rl-ink-2, inherit); margin-right: 4px; white-space: nowrap; }
.rl-qbars { display: grid; gap: 14px; align-content: start; }
.rl-qbar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 76px; gap: 14px; align-items: center; font-size: 14px; }
.rl-qbar-label { font-weight: 700; }
.rl-qbar-track { position: relative; height: 10px; border-radius: 999px; background: var(--rl-surface-3); overflow: hidden; }
.rl-qbar-before, .rl-qbar-after { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.rl-qbar-before { background: color-mix(in srgb, var(--rl-muted) 35%, transparent); }
.rl-qbar-after { background: var(--rl-grad); height: 6px; top: 2px; }
.rl-qbar-val { text-align: right; color: var(--rl-muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.rl-qbar-val b { color: var(--rl-ink); }
.rl-qchecks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.rl-qchecks > div { padding: 14px 16px; border-radius: 14px; background: var(--rl-surface-2); display: grid; gap: 2px; }
.rl-qchecks small { font-size: 11.5px; color: var(--rl-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.rl-qchecks b { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rl-qchecks b span { font-size: 14px; color: var(--rl-muted); font-weight: 700; }
.rl-qchecks > div > span { font-size: 12.5px; color: var(--rl-muted); line-height: 1.4; }
.rl-quality-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; border-top: 1px solid var(--rl-line); padding-top: 20px; }
.rl-qhead { font-size: 15px; font-weight: 900; display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.rl-qhead .rl-i { color: var(--rl-indigo); }
.rl-qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--rl-ink-2); }
.rl-qlist li { display: flex; gap: 10px; align-items: flex-start; }
.rl-qlist .rl-badge { flex: none; margin-top: 1px; }
.rl-qmore { margin-top: 10px; }
.rl-qmore > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--rl-accent-ink); padding: 4px 0; }
.rl-qmore > summary::-webkit-details-marker { display: none; }
.rl-qmore > summary .rl-chev { transition: transform 0.2s; }
.rl-qmore[open] > summary .rl-chev { transform: rotate(180deg); }
.rl-qmore[open] > summary { margin-bottom: 10px; }
.rl-qmore-open, .rl-qmore[open] .rl-qmore-closed { display: none; }
.rl-qmore[open] .rl-qmore-open { display: inline; }
.rl-teach { border: 1px solid var(--rl-line); border-radius: 16px; background: var(--rl-surface-2); margin-bottom: 22px; }
.rl-teach summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.rl-teach summary::-webkit-details-marker { display: none; }
.rl-teach summary b { display: block; font-weight: 800; }
.rl-teach summary small { display: block; color: var(--rl-muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.rl-teach summary .rl-chev { margin-left: auto; color: var(--rl-muted); transition: transform 0.2s; flex: none; }
.rl-teach[open] summary .rl-chev { transform: rotate(180deg); }
.rl-teach-body { padding: 0 18px 18px; }
.rl-diagnostics { margin: 0; font-size: 13px; color: var(--rl-muted); line-height: 1.6; }
.rl-diagnostics b { color: var(--rl-ink-2); }
.rl-version-kind { display: block; font-size: 11.5px; font-weight: 600; color: var(--rl-muted); }
.rl-act--edit[aria-pressed="true"] { background: var(--rl-accent-soft); color: var(--rl-accent-ink); border-color: var(--rl-accent); }
.rl-change[data-status="edited"] .rl-change-state--edited { display: inline-flex; }
.rl-change-edit { margin-top: 12px; }
.rl-change-edit textarea { font-family: var(--rl-doc); font-size: 15px; }
.rl-ch[data-status="edited"] ins { background: var(--rl-accent-wash); color: var(--rl-accent-ink); border-bottom: 2px dashed var(--rl-accent); }
.rl-ch[data-status="edited"] del { display: none; }
/* The human-likeness bar (humanlike.py, _humanlike.html): the AI check
   as a must, the three style limits, pass and fail by data-state. */
.rl-human--inset { margin: 18px 0 22px; padding: 18px; border-radius: 18px; background: var(--rl-surface-2); border: 1px solid var(--rl-line); }
.rl-human-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.rl-human-head > div:first-child { max-width: 620px; flex: 1 1 320px; }
.rl-human-verdict { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: var(--rl-surface-3); color: var(--rl-muted); line-height: 1.25; }
.rl-human-verdict b { display: block; font-size: 17px; font-weight: 900; color: inherit; }
.rl-human-verdict small { display: block; font-size: 12.5px; font-weight: 600; color: var(--rl-muted); }
.rl-human-verdict[data-state="pass"] { background: var(--rl-green-soft); color: var(--rl-green-ink); }
.rl-human-verdict[data-state="fail"] { background: var(--rl-red-soft); color: var(--rl-red-ink); }
.rl-human-mark { display: none; }
.rl-human-verdict[data-state="pass"] .rl-human-mark--pass,
.rl-human-verdict[data-state="fail"] .rl-human-mark--fail,
.rl-human-verdict[data-state="none"] .rl-human-mark--none { display: inline-flex; }
.rl-human-why { margin: 14px 0 12px; font-size: 14.5px; font-weight: 700; color: var(--rl-ink-2); }
.rl-human-list, .rl-human-also { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rl-hm { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name val badge" "said said said"; gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-left: 4px solid var(--rl-line-2); }
.rl-card.rl-human .rl-hm { background: var(--rl-surface-2); }
.rl-hm[data-state="pass"] { border-left-color: var(--rl-green); }
.rl-hm[data-state="fail"] { border-left-color: var(--rl-red); }
.rl-hm-name { grid-area: name; display: grid; gap: 1px; min-width: 0; }
.rl-hm-name b { font-size: 14.5px; font-weight: 800; }
.rl-hm-name small { font-size: 12px; color: var(--rl-muted); line-height: 1.4; }
.rl-hm-val { grid-area: val; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; text-align: right; }
.rl-hm-val b { font-weight: 900; }
.rl-hm-val small { font-size: 11.5px; color: var(--rl-muted); margin-left: 3px; }
.rl-hm-was { color: var(--rl-muted); font-size: 13px; margin-right: 2px; }
.rl-hm-badge { grid-area: badge; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--rl-surface-3); color: var(--rl-muted); }
.rl-hm[data-state="pass"] .rl-hm-badge { background: var(--rl-green-soft); color: var(--rl-green-ink); }
.rl-hm[data-state="fail"] .rl-hm-badge { background: var(--rl-red-soft); color: var(--rl-red-ink); }
.rl-hm-said { grid-area: said; font-size: 12.5px; color: var(--rl-muted); line-height: 1.45; }
.rl-human-also li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(96px, auto); grid-template-areas: "name val ref"; gap: 4px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--rl-surface); border: 1px solid var(--rl-line); }
.rl-card.rl-human .rl-human-also li { background: var(--rl-surface-2); }
.rl-hm-ref { grid-area: ref; font-size: 12px; color: var(--rl-muted); text-align: right; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rl-human-more { margin-top: 14px; }
.rl-human-reading, .rl-human-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; color: var(--rl-muted); line-height: 1.5; }
.rl-human-reading b { color: var(--rl-ink-2); }
.rl-human-reading .rl-i, .rl-human-note .rl-i { margin-top: 3px; color: var(--rl-indigo); }
/* "Sounds like you" (voice.py, _sounds.html): the voice match before and
   after, and what moved toward the writer or away. */
.rl-sounds--inset { margin: 18px 0 22px; padding: 18px; border-radius: 18px; background: var(--rl-surface-2); border: 1px solid var(--rl-line); }
.rl-sounds-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.rl-sounds-head > div:first-child { max-width: 620px; flex: 1 1 320px; }
.rl-sounds-score { display: inline-flex; align-items: center; gap: 12px; color: var(--rl-muted); }
.rl-sounds-label { display: grid; font-weight: 800; color: var(--rl-ink); line-height: 1.25; }
.rl-sounds-label small { font-size: 12.5px; font-weight: 600; color: var(--rl-muted); }
.rl-sounds-sub { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rl-muted); margin: 18px 0 10px; }
.rl-sounds-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rl-sounds-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "name val you badge"; gap: 4px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-left: 4px solid var(--rl-line-2); }
.rl-card.rl-sounds .rl-sounds-list li { background: var(--rl-surface-2); }
.rl-sounds-list li[data-toward="yes"] { border-left-color: var(--rl-violet); }
.rl-sounds-you { grid-area: you; font-size: 12.5px; color: var(--rl-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-sounds-badge { grid-area: badge; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--rl-surface-3); color: var(--rl-muted); }
.rl-sounds-list li[data-toward="yes"] .rl-sounds-badge { background: var(--rl-accent-wash); color: var(--rl-accent-ink); }
/* Within one of the writer's ceilings (fewer long words than they use): neither closer nor further. */
.rl-sounds-list li[data-toward="within"] { border-left-color: var(--rl-line); }
.rl-sounds-list li[data-toward="within"] .rl-sounds-badge { background: var(--rl-surface-3); color: var(--rl-ink-2); }
/* The sentences read as the writer's own slips, for them to confirm (voice.page). */
.rl-slip-examples { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.rl-slip-examples li { padding: 8px 12px; border-radius: 10px; background: var(--rl-surface-2); border: 1px solid var(--rl-line); font-size: 14px; color: var(--rl-ink-2); overflow-wrap: anywhere; }
.rl-slip-examples li small { display: block; font-size: 12px; font-weight: 800; color: var(--rl-muted); margin-bottom: 2px; }
/* The voice page's measured habits (voice.page). */
.rl-habits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }
.rl-habits div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rl-line); font-size: 14px; }
.rl-habits dt { font-weight: 600; color: var(--rl-ink-2); }
.rl-habits dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.rl-favs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.rl-favs li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--rl-accent-wash); color: var(--rl-accent-ink); font-weight: 800; font-size: 14px; }
.rl-favs li small { font-weight: 600; opacity: 0.8; }
.rl-favs li[data-stance="yes"] { background: var(--rl-surface-3); color: var(--rl-ink-2); }
.rl-habit-h { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rl-muted); margin: 22px 0 6px; }
@media (max-width: 760px) {
  .rl-human--inset { padding: 14px; margin: 14px -4px 18px; }
  .rl-human-verdict { width: 100%; }
  .rl-hm { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "val badge" "said said"; }
  .rl-hm-val { text-align: left; }
  .rl-human-also li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "val" "ref"; }
  .rl-hm-ref { text-align: left; }
  .rl-sounds--inset { padding: 14px; margin: 14px -4px 18px; }
  .rl-sounds-list li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "val you" "badge badge"; }
  .rl-sounds-badge { justify-self: start; }
  .rl-habits { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .rl-quality-grid, .rl-quality-lists { grid-template-columns: 1fr; }
  .rl-qbar { grid-template-columns: 1fr 72px; }
  .rl-qbar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) { .rl-qchecks { grid-template-columns: 1fr; } }

/* == Voice pages ===================================================================== */

.rl-traits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-traits li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 600; }
.rl-traits .rl-tile { width: 24px; height: 24px; border-radius: 8px; margin-top: 1px; }
.rl-traits .rl-tile .rl-i { width: 13px; height: 13px; }
.rl-quote { font-family: var(--rl-serif); font-style: italic; font-size: 26px; line-height: 1.35; margin: 0 0 24px; color: var(--rl-ink); }
.rl-samples { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-sample { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--rl-line); border-radius: 14px; background: var(--rl-surface); }
.rl-sample p { margin: 4px 0 0; color: var(--rl-muted); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rl-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rl-numbers div { background: var(--rl-surface-2); border-radius: 14px; padding: 16px; }
.rl-numbers b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rl-numbers span { font-size: 13px; color: var(--rl-muted); font-weight: 600; }

/* == About ======================================================================== */

.rl-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rl-level { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: 18px; padding: 22px; box-shadow: var(--rl-shadow-sm); }
.rl-level h3 { font-size: 17px; font-weight: 900; margin: 14px 0 8px; }
.rl-level p { font-size: 14px; color: var(--rl-ink-2); margin: 0; }
.rl-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rl-use { background: var(--rl-surface); border-radius: var(--rl-r-lg); padding: 30px; border: 1px solid var(--rl-line); box-shadow: var(--rl-shadow-sm); display: grid; gap: 12px; align-content: start; }
.rl-use h3 { font-size: 20px; font-weight: 900; margin: 8px 0 0; letter-spacing: -0.02em; }
.rl-use p { margin: 0; color: var(--rl-ink-2); font-size: 15.5px; }
.rl-faq { max-width: 860px; margin: 0 auto; }
.rl-faq details { border-bottom: 1px solid var(--rl-line-2); padding: 22px 0; }
.rl-faq summary { cursor: pointer; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; letter-spacing: -0.01em; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-surface); box-shadow: inset 0 0 0 1px var(--rl-line-2); color: var(--rl-accent-ink); font-size: 20px; font-weight: 600; transition: transform 0.25s; }
.rl-faq details[open] summary::after { transform: rotate(45deg); background: var(--rl-accent-soft); }
.rl-faq details p { color: var(--rl-ink-2); margin: 14px 0 0; font-size: 16.5px; max-width: 760px; }
.rl-cta-band { background: var(--rl-navy); color: var(--rl-on-navy); border-radius: var(--rl-r-xl); padding: 72px 48px; text-align: center; position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 18px; }
.rl-cta-band::before { content: ""; position: absolute; inset: -40% 30% auto -10%; height: 140%; background: radial-gradient(closest-side, rgba(141, 105, 220, 0.55), transparent); z-index: -1; }
.rl-cta-band::after { content: ""; position: absolute; inset: auto -10% -60% 50%; height: 140%; background: radial-gradient(closest-side, rgba(47, 107, 240, 0.45), transparent); z-index: -1; }
.rl-cta-band h2 { color: #fff; }
.rl-cta-band p { color: var(--rl-on-navy-2); font-size: 18px; margin: 0 0 12px; max-width: 560px; }

/* == Footer, toasts, drawer ========================================================== */

.rl-footer { background: var(--rl-navy); color: var(--rl-on-navy-2); padding: 64px 0 36px; font-size: 14.5px; }
.rl-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.rl-footer .rl-brand { color: #fff !important; }
.rl-footer h4 { color: #fff; font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; }
.rl-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.rl-footer a { color: var(--rl-on-navy-2) !important; text-decoration: none; }
.rl-footer a:hover { color: #fff !important; }
.rl-footer-base { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.rl-footer-ai { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #dfe2f7; }

.rl-toasts { z-index: 1090; }
.rl-toast.toast { border-radius: 16px; border: 1px solid var(--rl-line); background: var(--rl-surface); color: var(--rl-ink); box-shadow: var(--rl-shadow-lg); padding: 14px 16px; font-weight: 600; }
.rl-toast-icon { margin-top: 2px; }
.rl-toast--success .rl-toast-icon { color: var(--rl-green); }
.rl-toast--error .rl-toast-icon, .rl-toast--danger .rl-toast-icon { color: var(--rl-red); }
.rl-toast--info .rl-toast-icon, .rl-toast--warning .rl-toast-icon { color: var(--rl-indigo); }
.rl-toast-close { background: none; border: 0; color: var(--rl-muted); cursor: pointer; padding: 0; }
.rl-live-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--rl-navy); color: var(--rl-on-navy); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: opacity 0.2s, transform 0.2s; z-index: 1100; pointer-events: none; box-shadow: var(--rl-shadow-lg); }
.rl-live-toast.is-on { opacity: 1; transform: translateX(-50%); }

.rl-btn.rl-menu-toggle { display: none; }
.rl-app .mobile-nav-overlay { position: fixed; inset: 0; background: rgba(11, 17, 51, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.2s; z-index: 1040; }
.rl-app .mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.rl-app .mobile-nav-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 86vw); background: var(--rl-surface); transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); z-index: 1050; padding: 20px; overflow: auto; box-shadow: var(--rl-shadow-lg); }
.rl-app .mobile-nav-drawer.active { transform: none; }
.rl-app .mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rl-app .mobile-nav-close { background: none; border: 0; color: var(--rl-ink); padding: 6px; }
.rl-app .mobile-nav-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.rl-app .mobile-nav-link { display: flex; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px; color: var(--rl-ink) !important; text-decoration: none; font-weight: 700; }
.rl-app .mobile-nav-link.is-active, .rl-app .mobile-nav-link:hover { background: var(--rl-accent-wash); color: var(--rl-accent-ink) !important; }
.rl-app .mobile-nav-link .rl-i { color: var(--rl-indigo); }
.rl-app .mobile-nav-section-title { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rl-muted); padding: 16px 14px 8px; }
.rl-app .mobile-nav-subsection { padding: 0 14px; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: var(--rl-surface); padding: 8px 12px; border-radius: 8px; }

.rl-js .rl-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rl-js .rl-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rl-js .rl-reveal { opacity: 1; transform: none; transition: none; }
  .rl-float, .rl-skel i, .rl-bar span::after, .rl-stages li.is-on .rl-dot, .rl-spin { animation: none; }
}

.rl-mbar { display: none; }

/* == Small screens ===================================================================== */

@media (max-width: 1380px) {
  .rl-nav a .rl-i { display: none; }
  .rl-nav a { padding: 9px 11px; }
}
@media (max-width: 1180px) {
  .rl-topbar-cta { display: none !important; }
}
@media (max-width: 1060px) {
  .rl-nav { display: none !important; }
  .rl-btn.rl-menu-toggle { display: inline-flex; }
}
@media (max-width: 1180px) {
  .rl-review-grid, .rl-working { grid-template-columns: 1fr; }
  .rl-side { position: static; max-height: none; overflow: visible; }
  .rl-new-grid { grid-template-columns: 1fr; }
  .rl-sticky { position: static; }
  .rl-levels { grid-template-columns: repeat(2, 1fr); }
  .rl-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1035; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: var(--rl-navy); color: var(--rl-on-navy); box-shadow: var(--rl-shadow-lg); }
  .rl-mbar-info { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.25; padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rl-mbar-info small { display: block; font-weight: 600; color: var(--rl-on-navy-2); }
  .rl-mbar button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
  .rl-mbar button.is-accept { background: #0d9a52; }
  .rl-mbar button.is-reject { background: #d53a29; }
  .rl-has-mbar .rl-footer { padding-bottom: 104px; }
}
@media (max-width: 980px) {
  .rl-wrap, .rl-topbar-inner { padding-left: 24px; padding-right: 24px; }
  .rl-nav a .rl-i { display: none; }
  .rl-hero-grid, .rl-fpanel, .rl-statement-grid { grid-template-columns: 1fr; gap: 48px; }
  .rl-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .rl-statcard { grid-template-columns: 1fr; padding: 6px 0; margin-top: -64px; }
  .rl-statcard > div { padding: 22px 26px; }
  .rl-statcard > div + div { border-left: 0; border-top: 1px solid var(--rl-line); }
  .rl-scorebar { grid-template-columns: repeat(2, 1fr); }
  .rl-scorebar > div:nth-child(3) { border-left: 0; }
  .rl-scorebar > div:nth-child(n+3) { border-top: 1px solid var(--rl-line); }
  .rl-polish { grid-template-columns: repeat(3, 1fr); }
  .rl-paper[data-mode="compare"] .rl-row, .rl-paper[data-mode="compare"] .rl-compare-heads { grid-template-columns: 1fr; gap: 6px; }
  .rl-paper[data-mode="compare"] .rl-compare-heads span:first-child { display: none; }
  .rl-paper[data-mode="compare"] .rl-col--draft { border-left: 3px solid var(--rl-del-bg); padding-left: 12px; font-size: 15px; }
  .rl-uses { grid-template-columns: 1fr; }
  .rl-footer-grid { grid-template-columns: 1fr 1fr; }
  .rl-orbit { margin: 0 auto; max-width: 280px; }
  .rl-sec { padding: 80px 0; }
}
@media (max-width: 760px) {
  .rl-nav, .rl-topbar-end .rl-themes, .rl-topbar-cta { display: none !important; }
  .rl-btn.rl-menu-toggle { display: inline-flex; }
  .rl-wrap, .rl-topbar-inner { padding-left: 16px; padding-right: 16px; }
  .rl-topbar-inner { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .rl-hero-inner { padding-top: 32px; }
  .rl-hero-sub { font-size: 18px; }
  .rl-hero-ctas .rl-btn { flex: 1 1 100%; }
  .rl-btn-dot { display: none; }
  .rl-hero-foot { padding-bottom: 96px; margin-top: 44px; }
  .rl-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 10px; }
  .rl-kinds::-webkit-scrollbar { display: none; }
  .rl-kind { flex: none; }
  .rl-art { min-height: 440px; }
  .rl-art-sheet--main { right: 12px; left: 0; padding: 20px; }
  .rl-art-sheet--back { left: 36px; right: -4px; }
  .rl-float--a { left: -4px; bottom: 120px; }
  .rl-float--c { right: 0; }
  .rl-ftabs { margin-bottom: 36px; }
  .rl-ftabs button { font-size: 15px; gap: 6px; }
  .rl-ftabs button .rl-i { display: none; }
  .rl-paper { padding: 28px 20px; font-size: 17px; border-radius: 18px; }
  .rl-paper[data-mode="compare"] { padding: 28px 20px; }
  .rl-card { padding: 22px; }
  .rl-field-row, .rl-choices, .rl-choices--3 { grid-template-columns: 1fr; }
  .rl-export-grid { grid-template-columns: 1fr; }
  .rl-search, .rl-search input { width: 100%; min-width: 0; }
  .rl-polish { grid-template-columns: repeat(2, 1fr); }
  .rl-levels { grid-template-columns: 1fr; }
  .rl-numbers { grid-template-columns: 1fr 1fr; }
  .rl-cta-band { padding: 48px 22px; border-radius: 22px; }
  .rl-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .rl-scorebar > div { padding: 16px; gap: 12px; }
  .rl-scorebar b { font-size: 21px; }
  .rl-docs, .rl-pcards { grid-template-columns: 1fr; }
  .rl-bulk { grid-template-columns: 1fr 1fr; }
  .rl-bulk .rl-btn:last-child { grid-column: 1 / -1; }
  .rl-genbar { align-items: flex-start; }
}
@media print {
  .rl-topbar, .rl-side, .rl-stack, .rl-toolbar, .rl-footer, .rl-ractions, .rl-scorebar, .rl-again, .rl-mbar, .rl-subnav { display: none !important; }
  .rl-review-grid, .rl-working { display: block; }
  .rl-paper { border: 0; box-shadow: none; padding: 0; }
  .rl-rhead { background: none; padding: 0; }
}

/* == Writings ============================================================ */
.rl-whead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rl-whead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-wlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.rl-wfolders { position: sticky; top: 92px; display: grid; gap: 10px; }
.rl-wfolder-list { display: grid; gap: 2px; }
.rl-wfolder-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--rl-ink-2) !important; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.rl-wfolder-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-wfolder-list a b { font-size: 12px; color: var(--rl-muted); font-weight: 800; }
.rl-wfolder-list a:hover { background: var(--rl-accent-soft); color: var(--rl-ink) !important; }
.rl-wfolder-list a.is-on { background: var(--rl-surface); color: var(--rl-ink) !important; box-shadow: var(--rl-shadow-xs, 0 1px 2px rgba(0,0,0,.06)), 0 0 0 1px var(--rl-line); }
.rl-wfolder-list a.is-on .rl-i { color: var(--rl-indigo); }
.rl-wnew summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--rl-accent); }
.rl-wnew summary::-webkit-details-marker { display: none; }
.rl-wnew form { display: grid; gap: 8px; padding: 4px 4px 0; }
.rl-wtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.rl-wtools .rl-search { margin-left: auto; }
.rl-segment-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--rl-muted) !important; text-decoration: none; }
.rl-segment-link[aria-current="true"] { background: var(--rl-surface); color: var(--rl-ink) !important; box-shadow: var(--rl-shadow-xs, 0 1px 2px rgba(0,0,0,.06)), 0 0 0 1px var(--rl-line); }
.rl-segment-link[aria-current="true"] .rl-i { color: var(--rl-indigo); }
.rl-wfolder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; position: relative; }
.rl-wfolder-head .rl-card-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.rl-wfolder-edit summary, .rl-wmenu summary { list-style: none; }
.rl-wfolder-edit summary::-webkit-details-marker, .rl-wmenu summary::-webkit-details-marker { display: none; }
.rl-wsection + .rl-wsection { margin-top: 34px; }
.rl-wsection-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.rl-wempty { padding: 18px; border: 1px dashed var(--rl-line-2); border-radius: 16px; color: var(--rl-muted); }
.rl-wcard { position: relative; }
.rl-wcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.rl-wcard-link:focus-visible { outline: 3px solid var(--rl-accent); outline-offset: 2px; }
.rl-wmenu { position: absolute; top: 10px; right: 10px; z-index: 3; }
.rl-wmenu summary { background: var(--rl-surface); box-shadow: var(--rl-shadow-xs, 0 1px 2px rgba(0,0,0,.08)); }
.rl-wmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; max-height: 300px; overflow: auto; display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: var(--rl-surface); border: 1px solid var(--rl-line); box-shadow: var(--rl-shadow-lg, 0 18px 40px rgba(20,20,60,.16)); z-index: 5; }
.rl-wmenu-pop--wide { min-width: 300px; }
.rl-wfolder-edit { position: relative; }
.rl-wmenu-head { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--rl-muted); padding: 4px 8px; }
.rl-wmenu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; color: var(--rl-ink); cursor: pointer; }
.rl-wmenu-pop button:hover { background: var(--rl-accent-soft); }
.rl-wmenu-pop button[aria-current="true"] { color: var(--rl-indigo); }
.rl-danger { color: #c2410c !important; }
@media (max-width: 900px) {
  .rl-wlayout { grid-template-columns: minmax(0, 1fr); }
  .rl-wfolders { position: static; }
  .rl-wfolder-list { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .rl-wfolder-list a { flex: 0 0 auto; border: 1px solid var(--rl-line); }
  .rl-wfolders .rl-label { display: none; }
  .rl-wtools .rl-search { margin-left: 0; width: 100%; }
  /* Folders and "New folder" are one row of chips that scrolls sideways. */
  .rl-wfolders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .rl-wfolder-list { flex: 1 1 0; min-width: 0; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .rl-wfolder-list::-webkit-scrollbar { display: none; }
  .rl-wnew summary { border: 1px solid var(--rl-line); white-space: nowrap; }
  .rl-wnew[open] { flex: 1 0 100%; }
}
.rl-wcard { overflow: visible; }
.rl-wcard .rl-doc-art { border-radius: var(--rl-r-lg) var(--rl-r-lg) 0 0; overflow: hidden; }
.rl-wcard:has(.rl-wmenu[open]) { z-index: 10; transform: none; }

/* == The AI check ======================================================== */
.rl-dresult { display: grid; gap: 18px; margin-bottom: 26px; scroll-margin-top: 90px; }
.rl-dsummary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.rl-ddonut { --ai-c: #e2553a; --mixed-c: #e7a43a; --human-c: #2f9e6b; width: 184px; height: 184px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ai-c) 0 calc(var(--ai) * 1%), var(--mixed-c) 0 calc((var(--ai) + var(--mixed)) * 1%), var(--human-c) 0 100%); }
.rl-ddonut > div { width: 132px; height: 132px; border-radius: 50%; background: var(--rl-surface); display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px var(--rl-line); }
.rl-ddonut b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.rl-ddonut small { color: var(--rl-muted); font-weight: 700; margin-top: 4px; }
.rl-dverdict h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; margin: 6px 0 8px; }
.rl-dverdict p { color: var(--rl-ink-2); }
.rl-dsplit { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--rl-line); margin: 14px 0 10px; }
.rl-dsplit .is-ai, .rl-dkey .is-ai { background: #e2553a; }
.rl-dsplit .is-mixed, .rl-dkey .is-mixed { background: #e7a43a; }
.rl-dsplit .is-human, .rl-dkey .is-human { background: #2f9e6b; }
.rl-dkey { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--rl-ink-2); }
.rl-dkey li { display: inline-flex; align-items: center; gap: 7px; }
.rl-dkey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rl-dconf { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--rl-surface-2, var(--rl-line)); font-weight: 700; }
.rl-dconf--high { background: color-mix(in srgb, #e2553a 14%, transparent); }
.rl-devidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rl-devidence > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--rl-line); background: var(--rl-surface); }
.rl-devidence > div.is-hit { border-color: #e2553a; background: color-mix(in srgb, #e2553a 7%, var(--rl-surface)); }
.rl-devidence small { display: block; font-size: 12px; font-weight: 800; color: var(--rl-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rl-devidence b { display: block; font-size: 17px; margin: 2px 0; }
.rl-devidence span:not(.rl-tile) { font-size: 13.5px; color: var(--rl-ink-2); }
.rl-dbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.rl-dside { position: sticky; top: 92px; }
.rl-dmap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rl-dfilters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.rl-dswatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; background: var(--band); margin-right: 6px; vertical-align: -1px; }
.rl-dband--match { --band: #b4232a; --band-bg: color-mix(in srgb, #b4232a 13%, transparent); }
.rl-dband--strong { --band: #e2553a; --band-bg: color-mix(in srgb, #e2553a 13%, transparent); }
.rl-dband--likely { --band: #f08a4b; --band-bg: color-mix(in srgb, #f08a4b 13%, transparent); }
.rl-dband--mixed { --band: #e7a43a; --band-bg: color-mix(in srgb, #e7a43a 12%, transparent); }
.rl-dband--human { --band: #2f9e6b; --band-bg: color-mix(in srgb, #2f9e6b 9%, transparent); }
.rl-dband--short { --band: var(--rl-line-2); --band-bg: transparent; }
.rl-dtext { display: grid; gap: 10px; font-family: var(--rl-doc); font-size: 16.5px; line-height: 1.7; }
.rl-dsec { position: relative; padding: 12px 16px 12px 18px; border-radius: 12px; background: var(--band-bg); box-shadow: inset 4px 0 0 var(--band); }
.rl-dsec p { margin: 0; }
.rl-dsec-tag { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--rl-sans, inherit); font-size: 12px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rl-ink-2); margin-bottom: 4px; }
.rl-dsec-score { font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 999px; background: var(--rl-surface); box-shadow: 0 0 0 1px var(--rl-line); text-transform: none; }
.rl-dsec-why { font-family: var(--rl-sans, inherit); font-size: 13px; color: var(--rl-muted); margin-top: 6px !important; line-height: 1.45; }
.rl-dband--short .rl-dsec-tag { display: none; }
.rl-dtext.is-plain .rl-dsec { background: transparent; box-shadow: none; padding: 0; }
.rl-dtext.is-plain .rl-dsec-tag, .rl-dtext.is-plain .rl-dsec-why { display: none; }
.rl-dlegend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.rl-dlegend li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--rl-ink-2); }
.rl-dlegend li .rl-dswatch { margin-top: 4px; flex: none; }
.rl-dlegend b { display: block; color: var(--rl-ink); }
.rl-dsignals summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.rl-dsignals summary::-webkit-details-marker { display: none; }
.rl-dform-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.rl-switch--sm span { font-size: 14px; }
@media (max-width: 1000px) {
  .rl-dbody { grid-template-columns: 1fr; }
  .rl-dside { position: static; }
  .rl-devidence { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rl-dsummary { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .rl-dkey { justify-content: center; }
  .rl-dconf { margin-left: 0; }
  .rl-dform-grid { grid-template-columns: 1fr; }
  .rl-dtext { font-size: 15.5px; }
}

/* == Saved AI checks (checks.py) ========================================= */
.rl-csaved { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; margin-bottom: 18px; border-radius: 18px; background: var(--rl-surface); border: 1px solid var(--rl-line); box-shadow: var(--rl-shadow-sm); scroll-margin-top: 90px; }
.rl-csaved p { margin: 0; flex: 1; min-width: 0; color: var(--rl-ink-2); font-size: 15px; overflow-wrap: anywhere; }
.rl-csaved b { color: var(--rl-ink); }
.rl-csave { margin: 0; }
.rl-csave small { font-size: 12.5px; }
.rl-crecent { margin-top: 28px; }
.rl-crecent-head, .rl-chistory-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rl-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-crow-link { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: var(--rl-surface); border: 1px solid var(--rl-line); color: var(--rl-ink) !important; text-decoration: none; transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s; }
.rl-crow-link:hover { border-color: var(--rl-line-2); box-shadow: var(--rl-shadow); transform: translateY(-1px); }
.rl-crow-link:focus-visible { outline: 3px solid var(--rl-accent); outline-offset: 2px; }
.rl-cscore { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--band-bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--band) 60%, transparent); color: var(--rl-ink); font-weight: 900; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rl-cscore.is-long { font-size: 14.5px; letter-spacing: -0.04em; }
.rl-cscore.rl-dband--short { background: var(--rl-surface-2); color: var(--rl-muted); }
.rl-crow-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rl-crow-title { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-crow-excerpt { color: var(--rl-muted); font-family: var(--rl-doc); font-size: 14.5px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rl-crow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 5px; color: var(--rl-muted); font-size: 13px; }
.rl-crow-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rl-crow-go { flex: none; color: var(--rl-faint); }
.rl-crow-link:hover .rl-crow-go { color: var(--rl-indigo); }
.rl-bchip { display: inline-flex; align-items: center; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--band-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band) 40%, transparent); color: var(--rl-ink) !important; font-size: 12px; font-weight: 800; white-space: nowrap; }
.rl-bchip .rl-dswatch { margin-right: 6px; }
.rl-bchip b { margin-left: 8px; padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--band) 40%, transparent); font-variant-numeric: tabular-nums; }
.rl-bchip--lg { font-size: 14px; padding: 7px 14px 7px 12px; }
.rl-bchip.rl-dband--short { background: var(--rl-surface-3); }
.rl-chead { padding-bottom: 72px; }
.rl-chead-main { min-width: min(280px, 100%); }
.rl-cmodel { margin: 18px 0 0; display: flex; gap: 10px; align-items: flex-start; max-width: 780px; font-size: 14px; color: var(--rl-ink-2); }
.rl-cmodel .rl-i { margin-top: 3px; color: var(--rl-indigo); }
.rl-cmodel.is-changed { padding: 12px 16px; border-radius: 14px; background: var(--rl-amber-soft); color: var(--rl-ink); }
.rl-cmodel.is-changed .rl-i { color: var(--rl-amber); }
.rl-cbody { margin-top: -44px; }
.rl-chistory { padding: 24px; }
.rl-empty--flat { background: transparent; border: 0; padding: 40px 12px 28px; }
.rl-doc-art--check { background: linear-gradient(125deg, #e6f4ee, #ece8fd); }
[data-theme="dark"] .rl-doc-art--check { background: linear-gradient(125deg, #15322b, #221f4a); }
.rl-doc-sheet .rl-csplit { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rl-surface-3); margin-bottom: 3px; }
.rl-csplit span { display: block; height: 100%; }
.rl-csplit .is-ai { background: #e2553a; }
.rl-csplit .is-mixed { background: #e7a43a; }
.rl-csplit .is-human { background: #2f9e6b; }
.rl-doc-sheet .rl-cline { width: 90%; }
.rl-doc-sheet .rl-cline + .rl-cline { width: 74%; }
.rl-wnote { margin: -6px 0 16px; color: var(--rl-muted); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.rl-wnote .rl-i { margin-top: 4px; }
@media (max-width: 720px) {
  .rl-crow-link { gap: 12px; padding: 12px; align-items: flex-start; }
  .rl-cscore { width: 46px; height: 46px; border-radius: 14px; font-size: 15.5px; }
  .rl-cscore.is-long { font-size: 12.5px; }
  /* Writings' kinds share the row on a phone: All, Edited, Generated, AI checks. */
  .rl-wtools > .rl-segment:first-child { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .rl-wtools .rl-segment-link { flex: 1 0 auto; justify-content: center; padding: 8px 10px; gap: 5px; font-size: 13px; white-space: nowrap; }
  .rl-wtools .rl-segment-link .rl-badge { padding: 1px 6px; }
  /* On a phone the first screen shows writing: one way in from the head
     (Generate is in the menu), and Together/Separate as icons by the search. */
  .rl-whead-actions .rl-btn--outline { display: none; }
  .rl-wtools { gap: 10px; }
  .rl-wtools .rl-search { order: 2; flex: 1 1 0; width: auto; min-width: 0; }
  .rl-wtools > .rl-segment:not(:first-child) { order: 3; flex: none; }
  .rl-wtools > .rl-segment:not(:first-child) .rl-segment-word { display: none; }
  .rl-crow-go { display: none; }
  .rl-crow-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rl-chistory { padding: 14px; }
  .rl-chistory-tools .rl-search { width: 100%; }
  .rl-csaved { flex-wrap: wrap; }
  .rl-chead .rl-ractions { width: 100%; }
  .rl-chead .rl-ractions .rl-btn--primary { flex: 1 1 auto; white-space: normal; }
}
@media (max-width: 420px) {
  .rl-wtools > .rl-segment:first-child .rl-segment-link .rl-i { display: none; }
}

/* The AI checks tab has no folders: its list takes the whole width. */
.rl-wlayout--solo { grid-template-columns: minmax(0, 1fr); }

/* == Text shape (textshape.py, _text_shape.html) =====================================
   Sentence rhythm, word predictability by sentence, paragraph lengths and
   gauges against people's writing: inline SVG whose x is a percentage of
   the width and y pixels of a fixed height, so it fills a phone or a
   desktop without stretching; labels are HTML beside it. */

:root,
[data-theme="light"] {
  --rl-chart-bar: #6457ec;
  --rl-chart-bar-hover: #4136c9;
  --rl-chart-bar-over: #b3abf6;
  --rl-chart-para: #8d69dc;
  --rl-chart-dot: #2563eb;
  --rl-chart-band: rgba(13, 154, 82, 0.13);
  --rl-chart-band-blue: rgba(37, 99, 235, 0.11);
  /* A band's edge: 3:1 against the card, so its range reads (WCAG 1.4.11). */
  --rl-chart-band-edge: #0b8a49;
  --rl-chart-band-blue-edge: #2563eb;
  --rl-chart-grid: #e7e8f4;
  --rl-chart-mean: #767b96;
  --rl-chart-rail: #d6d9ec;
  --rl-chart-now: #5146e5;
  --rl-chart-before: #646a88;
  --rl-chart-limit: #d53a29;
  --rl-chart-ring: #ffffff;
}
[data-theme="dark"] {
  --rl-chart-bar: #8f88ff;
  --rl-chart-bar-hover: #b9b4ff;
  --rl-chart-bar-over: #4c478f;
  --rl-chart-para: #ab8cf3;
  --rl-chart-dot: #6c9cff;
  --rl-chart-band: rgba(84, 216, 146, 0.12);
  --rl-chart-band-blue: rgba(108, 156, 255, 0.16);
  --rl-chart-band-edge: #54d892;
  --rl-chart-band-blue-edge: #6c9cff;
  --rl-chart-grid: #252a50;
  --rl-chart-mean: #969bbf;
  --rl-chart-rail: #343a66;
  --rl-chart-now: #938cff;
  --rl-chart-before: #c3c7e3;
  --rl-chart-limit: #ff7e6f;
  --rl-chart-ring: #12152e;
}

.rl-shape--inset { margin: 18px 0 22px; padding: 18px; border-radius: 18px; background: var(--rl-surface-2); border: 1px solid var(--rl-line); }
.rl-shape--inset { --rl-chart-ring: var(--rl-surface-2); }
.rl-shape-head { max-width: 760px; }
.rl-shape-charts { display: grid; gap: 18px; margin-top: 16px; }
.rl-shape-fig { margin: 0; min-width: 0; }
.rl-shape-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; margin-bottom: 8px; }
.rl-shape-name { display: grid; gap: 0; min-width: 0; }
.rl-shape-name b { font-size: 14.5px; font-weight: 800; color: var(--rl-ink); }
.rl-shape-name small { font-size: 12px; color: var(--rl-muted); line-height: 1.4; }
.rl-shape-stats { font-size: 13px; color: var(--rl-ink-2); font-variant-numeric: tabular-nums; }
.rl-shape-stats b { font-weight: 900; color: var(--rl-ink); }
.rl-shape-plot { position: relative; padding-left: 34px; margin-bottom: 4px; }
.rl-shape-tick { position: absolute; left: 0; width: 28px; text-align: right; transform: translateY(-50%); font-size: 11px; line-height: 1; color: var(--rl-muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.rl-shape-svg { display: block; overflow: visible; }
.rl-shape-grid { stroke: var(--rl-chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.rl-shape-band { fill: var(--rl-chart-band); stroke: var(--rl-chart-band-edge); stroke-width: 1; shape-rendering: crispEdges; }
.rl-shape-band--blue { fill: var(--rl-chart-band-blue); stroke: var(--rl-chart-band-blue-edge); }
.rl-shape-bar { fill: var(--rl-chart-bar); transition: fill 0.15s; }
.rl-shape-bar.is-over { fill: var(--rl-chart-bar-over); }
.rl-shape-bar--para { fill: var(--rl-chart-para); }
.rl-shape-bar:hover { fill: var(--rl-chart-bar-hover); }
.rl-shape-mean { stroke: var(--rl-chart-mean); stroke-width: 1.5; }
.rl-shape-line { stroke: var(--rl-chart-dot); stroke-width: 1.5; stroke-opacity: 0.55; stroke-linecap: round; }
.rl-shape-dot { fill: var(--rl-chart-dot); stroke: var(--rl-chart-ring); stroke-width: 1.5; }
.rl-shape-dot:hover { r: 5.5; }
.rl-shape-axis { padding-left: 34px; font-size: 11.5px; color: var(--rl-muted); font-variant-numeric: tabular-nums; }
.rl-shape-axis > div { position: relative; height: 16px; }
.rl-shape-axis span { position: absolute; top: 0; transform: translateX(-50%); line-height: 16px; white-space: nowrap; }
.rl-shape-key, .rl-shape-legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--rl-muted); line-height: 1.4; }
.rl-shape-key li, .rl-shape-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rl-shape-swatch { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.rl-shape-swatch--bar { background: var(--rl-chart-bar); }
.rl-shape-swatch--band { background: var(--rl-chart-band); box-shadow: inset 0 0 0 1px var(--rl-chart-band-edge); }
.rl-shape-swatch--band-blue { background: var(--rl-chart-band-blue); box-shadow: inset 0 0 0 1px var(--rl-chart-band-blue-edge); }
.rl-shape-swatch--mean { height: 2px; border-radius: 1px; background: var(--rl-chart-mean); }
.rl-shape-swatch--dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rl-chart-dot); }
.rl-shape-capped { margin: 6px 0 0; font-size: 12px; color: var(--rl-muted); }
.rl-shape-noparas b { color: var(--rl-ink-2); }
.rl-shape-numbers { font-size: 12.5px; }
.rl-shape-numbers > summary { cursor: pointer; width: fit-content; font-weight: 800; color: var(--rl-indigo); }
.rl-shape-table { max-height: 320px; overflow: auto; margin-top: 8px; border: 1px solid var(--rl-line); border-radius: 12px; background: var(--rl-surface); }
.rl-shape-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rl-shape-table table + table { border-top: 1px solid var(--rl-line); }
.rl-shape-table caption { caption-side: top; padding: 8px 10px 4px; font-weight: 800; color: var(--rl-ink-2); text-align: left; }
.rl-shape-table th, .rl-shape-table td { padding: 4px 10px; border-top: 1px solid var(--rl-line); text-align: left; vertical-align: top; color: var(--rl-ink-2); }
.rl-shape-table thead th { color: var(--rl-muted); font-weight: 700; }
.rl-shape-table td:last-child { color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-shape-short { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--rl-ink-2); }
.rl-shape-short .rl-i { margin-top: 4px; color: var(--rl-amber); }
.rl-shape-compare { margin-top: 22px; }
.rl-shape-sub { font-size: 15px; font-weight: 800; margin: 0; }
.rl-shape-legend { margin: 6px 0 12px; }
.rl-shape-legend svg { display: block; overflow: visible; }
.rl-gauges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rl-gauge-row { padding: 10px 12px 8px; border-radius: 14px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-left: 4px solid var(--rl-line-2); min-width: 0; }
.rl-card.rl-shape .rl-gauge-row { background: var(--rl-surface-2); }
.rl-card.rl-shape { --rl-chart-ring: var(--rl-surface); }
.rl-gauge-row[data-state="pass"] { border-left-color: var(--rl-green); }
.rl-gauge-row[data-state="fail"] { border-left-color: var(--rl-red); }
.rl-gauge-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "name badge"; gap: 2px 10px; align-items: start; }
.rl-gauge-name { grid-area: name; display: grid; min-width: 0; }
.rl-gauge-name b { font-size: 13.5px; font-weight: 800; }
.rl-gauge-name small { font-size: 11.5px; color: var(--rl-muted); line-height: 1.35; }
.rl-gauge-val { grid-area: val; text-align: right; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rl-gauge-val b { font-weight: 900; }
.rl-gauge-val small { display: block; font-size: 11px; color: var(--rl-muted); }
.rl-gauge-head .rl-hm-badge { grid-area: badge; justify-self: end; font-size: 11px; padding: 2px 8px; }
.rl-gauge-row[data-state="pass"] .rl-hm-badge { background: var(--rl-green-soft); color: var(--rl-green-ink); }
.rl-gauge-row[data-state="fail"] .rl-hm-badge { background: var(--rl-red-soft); color: var(--rl-red-ink); }
.rl-gauge-track { display: block; overflow: visible; margin: 6px 0 2px; }
.rl-gauge-rail { stroke: var(--rl-chart-rail); stroke-width: 2; stroke-linecap: round; }
.rl-gauge-band { fill: var(--rl-chart-band); stroke: var(--rl-chart-band-edge); stroke-width: 1; }
.rl-gauge-mid { stroke: var(--rl-green-ink); stroke-width: 2; stroke-linecap: round; }
.rl-gauge-limit { stroke: var(--rl-chart-limit); stroke-width: 2; stroke-linecap: round; }
/* The draft's marker is a ring drawn over this text's dot, wider than it. */
.rl-gauge-before { fill: none; stroke: var(--rl-chart-before); stroke-width: 2; }
.rl-gauge-now { fill: var(--rl-chart-now); stroke: var(--rl-chart-ring); stroke-width: 2; }
.rl-gauge-people { margin: 0; font-size: 11.5px; color: var(--rl-muted); line-height: 1.4; font-variant-numeric: tabular-nums; }
.rl-shape-more { margin-top: 18px; }
.rl-shape-more .rl-shape-charts { margin-top: 4px; }
.rl-shape-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 12.5px; color: var(--rl-muted); line-height: 1.5; }
.rl-shape-note b { color: var(--rl-ink-2); }
.rl-shape-note .rl-i { margin-top: 3px; color: var(--rl-indigo); }
@media (max-width: 900px) { .rl-gauges { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .rl-shape--inset { padding: 14px; margin: 14px -4px 18px; }
  .rl-shape-plot, .rl-shape-axis { padding-left: 30px; }
  .rl-shape-tick { width: 25px; }
}
@media print { .rl-shape-bar, .rl-shape-dot { transition: none; } }

/* The training pool (pool.py): "Help improve Lipogram" and each sample's place in it. */
.rl-pool-stats { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--rl-ink-2); }
.rl-pool-stats li { display: flex; align-items: center; gap: 10px; }
.rl-pool-stats .rl-badge { min-width: 46px; justify-content: center; }
.rl-pool-chip { margin-top: 8px; }
.rl-pool-chip .rl-i { width: 13px; height: 13px; }
.rl-pool-note { display: block; margin-top: 4px; }

/* Use My Writing Patterns (patterns.py): the toggle under "Keep my voice",
   its outcome on the review page, and the built-in voices. */
.rl-patterns { margin-left: 58px; }
.rl-patterns[hidden] { display: none; }
.rl-patterns-how { margin: 6px 0 4px; font-size: 14px; color: var(--rl-ink-2); }
.rl-patterns-how summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--rl-accent-ink, var(--rl-ink-2)); }
.rl-patterns-how summary .rl-i { width: 14px; height: 14px; }
.rl-patterns-how p { margin: 8px 0 0; }
.rl-patterns [data-patterns-note]:empty { display: none; }
.rl-pill--warn { background: var(--rl-amber-soft); color: var(--rl-amber-ink); border-color: transparent; }
.rl-section-h { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.rl-sources { margin-top: 14px; }
.rl-sources summary { cursor: pointer; font-weight: 700; }
.rl-source-list { margin: 12px 0 0; padding-left: 22px; font-size: 13.5px; color: var(--rl-ink-2); display: grid; gap: 6px; overflow-wrap: anywhere; }
@media (max-width: 575px) { .rl-patterns { margin-left: 0; } }
.rl-pcards--voices { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rl-pcard-desc { font-size: 14px; }

/* Make it yours (yours.py): the questions about a draft, each with its answer box. */
.rl-yours-questions { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.rl-yours-questions li { display: grid; gap: 4px; }
.rl-yours-questions label { font-weight: 700; font-size: 14px; }
.rl-yours-questions small { font-size: 12px; }
.rl-yours-questions textarea { min-height: 54px; }

/* Rough draft (rough.py): the flags in the text and their list. */
.rl-prose .rl-flag { border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--rl-amber-soft); color: var(--rl-ink); box-shadow: inset 0 -2px 0 var(--rl-amber); cursor: help; }
.rl-prose .rl-flag--confirmed { background: var(--rl-green-soft); box-shadow: inset 0 -2px 0 var(--rl-green); }
.rl-prose .rl-flag--replaced { background: var(--rl-accent-soft); box-shadow: inset 0 -2px 0 var(--rl-indigo); }
.rl-prose .rl-flag.is-lit { outline: 2px solid var(--rl-indigo); outline-offset: 2px; }
.rl-flag-row { --c: var(--rl-amber); --ci: var(--rl-amber-ink); --cs: var(--rl-amber-soft); }
.rl-flag-row--confirmed { --c: var(--rl-green); --ci: var(--rl-green-ink); --cs: var(--rl-green-soft); }
.rl-flag-row--replaced { --c: var(--rl-indigo); --ci: var(--rl-indigo); --cs: var(--rl-accent-soft); }
.rl-flag-row--cut, .rl-flag-row--gone { --c: var(--rl-muted); --ci: var(--rl-muted); --cs: var(--rl-surface-3); }
.rl-flag-row--cut q, .rl-flag-row--gone q { text-decoration: line-through; color: var(--rl-muted); }
.rl-flag-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rl-flag-bulk { display: grid; gap: 8px; margin-top: 12px; }
.rl-notices { border-top: 1px solid var(--rl-line-2); padding-top: 12px; }
.rl-switch--sm { font-size: 0.92rem; }
.rl-switch--sm input { width: 38px; height: 22px; }
.rl-switch--sm input::after { width: 16px; height: 16px; }
.rl-switch--sm input:checked::after { transform: translateX(16px); }
.rl-switch--sm small { display: block; font-weight: 400; color: var(--rl-muted); margin-top: 2px; }
.rl-flag-actions .rl-btn { padding: 5px 10px; font-size: 12.5px; }
.rl-flag-replace { margin-top: 8px; display: grid; gap: 6px; }
.rl-flag-replace textarea { width: 100%; min-height: 64px; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rl-line); border-radius: 10px; background: var(--rl-surface); color: var(--rl-ink); }
.rl-readings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 4px; }
.rl-readings div { background: var(--rl-surface-2); border-radius: 12px; padding: 10px 12px; }
.rl-readings b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.rl-readings span { font-size: 12.5px; color: var(--rl-muted); }
.rl-readings .is-good b { color: var(--rl-green-ink); }
.rl-readings .is-bad b { color: var(--rl-amber-ink); }
.rl-choices--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .rl-choices--4 { grid-template-columns: 1fr; } }
.rl-choice.is-off { opacity: 0.55; }
.rl-flag-actions[hidden], .rl-flag-replace[hidden], #rl-rough form[hidden] { display: none; }
.rl-flag-row.is-busy { opacity: 0.6; }
.rl-flag-row.is-lit { box-shadow: 0 0 0 2px var(--rl-indigo); }

/* == Credits (credits.html, 2026-10-22) ===================================== */
.rl-credits-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: -40px; position: relative; z-index: 2; }
.rl-balance-num { font-size: clamp(40px, 5vw, 60px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; margin: 14px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.rl-balance-num small { font-size: 16px; font-weight: 700; color: var(--rl-muted); letter-spacing: 0; }
.rl-copy { display: flex; gap: 10px; align-items: center; }
.rl-copy .rl-input { flex: 1; min-width: 0; font-size: 14px; }
.rl-sec-plain { margin: 40px 0; }
.rl-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.rl-pack { position: relative; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); padding: 24px 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--rl-shadow-xs); }
.rl-pack h3 { font-size: 18px; font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.rl-pack--best { border-color: var(--rl-indigo); box-shadow: 0 0 0 1px var(--rl-indigo), var(--rl-shadow-xs); }
.rl-pack-tag { position: absolute; top: -12px; left: 20px; }
.rl-pack-credits { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.rl-pack-credits small, .rl-pack-price small { font-size: 13px; font-weight: 600; color: var(--rl-muted); letter-spacing: 0; }
.rl-pack-price { font-size: 22px; font-weight: 800; margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rl-pack form { margin-top: auto; }
.rl-credits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rl-ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rl-ledger th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rl-muted); padding: 8px 8px; border-bottom: 1px solid var(--rl-line); }
.rl-ledger td { padding: 9px 8px; border-bottom: 1px solid var(--rl-line); vertical-align: top; }
.rl-ledger tr:last-child td { border-bottom: 0; }
.rl-plus { color: var(--rl-green-ink, #15803d); font-weight: 700; }
.rl-minus { color: var(--rl-ink-2); }
.rl-topbar-credits { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rl-line); background: var(--rl-surface); color: var(--rl-ink) !important; text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; }
.rl-topbar-credits .rl-i { color: var(--rl-indigo); }
.rl-topbar-credits.is-low { border-color: var(--rl-coral-ink); color: var(--rl-coral-ink) !important; }
@media (max-width: 1100px) { .rl-packs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .rl-credits-top, .rl-credits-grid { grid-template-columns: 1fr; } .rl-credits-top { margin-top: -24px; } .rl-topbar-credits span { display: none; } }
@media (max-width: 560px) { .rl-packs { grid-template-columns: 1fr; } .rl-copy { flex-direction: column; align-items: stretch; } }

/* The AI check with provenance hidden (evidence.py): one evidence box. */
.rl-devidence--style { grid-template-columns: 1fr; }

/* == The landing page's samples (landing.html, 2026-10-22) ================= */
.rl-try { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.rl-try-card { display: grid; gap: 12px; align-content: start; }
.rl-sample-form label { font-weight: 800; font-size: 14px; }
.rl-sample-form textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); color: var(--rl-ink); font: inherit; font-size: 15px; resize: vertical; }
.rl-sample-form textarea:focus { outline: none; border-color: var(--rl-accent); box-shadow: var(--rl-ring); }
.rl-sample-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; }
.rl-sample-result { border: 1px solid var(--rl-line); border-radius: 16px; padding: 18px; background: var(--rl-surface-2); display: grid; gap: 10px; }
.rl-sample-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rl-sample-head h3 { margin: 0; font-size: 20px; font-weight: 900; flex-basis: 100%; }
.rl-sample-brief { font-size: 13.5px; margin: 0; }
.rl-sample-text p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; }
.rl-sample-wait { display: flex; align-items: center; gap: 10px; color: var(--rl-muted); }
.rl-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rl-line-2); border-top-color: var(--rl-indigo); animation: rl-spin 0.9s linear infinite; display: inline-block; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-sample-sections { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.rl-sample-sections li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--rl-surface); border: 1px solid var(--rl-line); }
.rl-sample-excerpt { color: var(--rl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .rl-try { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rl-sample-sections li { grid-template-columns: auto auto; } .rl-sample-excerpt { grid-column: 1 / -1; } }
.rl-nav a.rl-nav-quiet { color: var(--rl-muted) !important; font-weight: 600; }
.rl-hero-ctas .rl-btn--ghost { color: var(--rl-ink-2) !important; }
.rl-credits-top > *, .rl-credits-grid > * { min-width: 0; }
.rl-ledger-wrap { overflow-x: auto; }
.rl-ledger td:first-child { font-weight: 700; }

/* == Memberships, the funnel and the landing's features (2026-10-22) ======= */
.rl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.rl-feature { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); padding: 26px 24px; display: grid; gap: 12px; align-content: start; box-shadow: var(--rl-shadow-xs); }
.rl-feature h3 { font-size: 19px; font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.rl-feature p { margin: 0; color: var(--rl-ink-2); font-size: 15px; line-height: 1.6; }
.rl-feature--lead { grid-column: span 3; grid-template-columns: auto 1fr; column-gap: 22px; background: var(--rl-wash); border-color: color-mix(in srgb, var(--rl-accent) 30%, var(--rl-line)); }
.rl-feature--lead .rl-tile { grid-row: span 3; }
.rl-feature--lead p { font-size: 16px; }
.rl-feature-points, .rl-plan-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rl-feature-points li, .rl-plan-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--rl-ink-2); }
.rl-feature-points .rl-i, .rl-plan-points .rl-i { color: var(--rl-indigo); flex: none; margin-top: 3px; }
.rl-keep-going { border: 1px solid color-mix(in srgb, var(--rl-accent) 35%, var(--rl-line)); background: var(--rl-wash); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; }
.rl-keep-going b { display: block; margin-bottom: 4px; }
.rl-keep-going-ctas { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.rl-plans .rl-pack { gap: 10px; }
.rl-plan-points { margin: 4px 0 8px; }
.rl-plan--current { border-color: var(--rl-indigo); }
.rl-btn.is-static { pointer-events: none; opacity: 0.7; }
.rl-topup-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--rl-ink-2); font-size: 15px; }
.rl-topup-line .rl-i { color: var(--rl-indigo); flex: none; margin-top: 3px; }
.rl-balance-split { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--rl-ink-2); }
.rl-balance-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rl-balance-actions form { margin: 0; }
.rl-link-btn { background: none; border: 0; padding: 0; color: var(--rl-accent-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rl-topups { grid-template-columns: repeat(5, 1fr); }
.rl-start-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: -40px; position: relative; z-index: 2; }
.rl-start-points { margin: 12px 0 18px; gap: 10px; }
.rl-start-points li { font-size: 15.5px; }
.rl-start-kept { margin-bottom: 18px; }
.rl-start-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.rl-start-plans { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.rl-start-plans li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 8px 0; border-bottom: 1px solid var(--rl-line); }
.rl-start-plans li:last-child { border-bottom: 0; }
@media (max-width: 1100px) { .rl-topups { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .rl-features { grid-template-columns: 1fr 1fr; } .rl-feature--lead { grid-column: span 2; } .rl-start-grid { grid-template-columns: 1fr; margin-top: -24px; } }
@media (max-width: 600px) { .rl-features { grid-template-columns: 1fr; } .rl-feature--lead { grid-column: span 1; grid-template-columns: 1fr; } .rl-feature--lead .rl-tile { grid-row: auto; } .rl-keep-going { grid-template-columns: 1fr; } .rl-keep-going-ctas { grid-column: 1; } .rl-topups { grid-template-columns: 1fr 1fr; } }
.rl-packs > .rl-pack { min-width: 0; }
.rl-pack-credits { flex-wrap: wrap; }
@media (max-width: 600px) {
  .rl-plans { grid-template-columns: 1fr; }
  .rl-topups { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rl-topups .rl-pack { padding: 18px 14px; }
  .rl-topups .rl-pack h3 { font-size: 16px; }
  .rl-pack-credits { font-size: 26px; }
  .rl-topups .rl-btn--block { font-size: 14px; padding-left: 8px; padding-right: 8px; }
}

/* == The sign-in pages on lipogram.ai (account/*.html in redline/auth_shell.html) */
.rl-auth .form-layout { max-width: 1080px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rl-auth .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rl-accent-ink); margin: 0 0 14px; }
.rl-auth .eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--rl-grad); }
.rl-auth h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 14px; }
.rl-auth .lead { font-size: 17px; color: var(--rl-muted); margin: 0; line-height: 1.6; }
.rl-auth .aside-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rl-line); color: var(--rl-muted); font-size: 15px; }
.rl-auth .aside-note a, .rl-auth .panel-foot a { color: var(--rl-accent-ink); font-weight: 700; }
.rl-auth .form-panel { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-lg); padding: 32px; box-shadow: var(--rl-shadow); }
.rl-auth .form-panel h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 6px; }
.rl-auth .panel-intro { color: var(--rl-muted); font-size: 15px; margin: 0 0 22px; }
.rl-auth .form-label { font-weight: 800; font-size: 14px; color: var(--rl-ink); margin-bottom: 8px; }
.rl-auth .form-control { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--rl-line-2); background: var(--rl-surface); color: var(--rl-ink); font: inherit; font-size: 15px; font-weight: 500; box-shadow: var(--rl-shadow-xs); }
.rl-auth .form-control:focus { outline: none; border-color: var(--rl-accent); box-shadow: var(--rl-ring); background: var(--rl-surface); color: var(--rl-ink); }
.rl-auth .form-check-input { width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--rl-line-2); }
.rl-auth .form-check-input:checked { background-color: var(--rl-accent); border-color: var(--rl-accent); }
.rl-auth .form-check-label { color: var(--rl-ink-2); font-size: 14.5px; }
.rl-auth .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--rl-grad); border: 0; color: #fff; font-weight: 800; border-radius: 999px; padding: 13px 22px; box-shadow: var(--rl-shadow-sm); }
.rl-auth .btn-primary:hover { filter: brightness(1.06); color: #fff; }
.rl-auth .btn svg { width: 18px; height: 18px; }
.rl-auth .btn-outline-secondary { border-radius: 999px; font-weight: 700; }
.rl-auth .alert { border-radius: 12px; font-size: 14.5px; }
.rl-auth .alert-danger { background: color-mix(in srgb, var(--rl-red) 10%, var(--rl-surface)); border-color: color-mix(in srgb, var(--rl-red) 40%, var(--rl-line)); color: var(--rl-ink); }
.rl-auth .alert ul { margin: 6px 0 0; padding-left: 18px; }
.rl-auth .invalid-feedback { color: var(--rl-red); font-weight: 600; font-size: 13px; }
.rl-auth .panel-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rl-line); font-size: 14px; }
.rl-auth .panel-foot p { margin: 0 0 6px; }
.rl-auth .demo-credentials { margin-top: 20px; font-size: 13px; color: var(--rl-muted); }
.rl-auth .text-danger { color: var(--rl-red) !important; }
@media (max-width: 860px) { .rl-auth .form-layout { grid-template-columns: 1fr; gap: 28px; padding: 36px 16px 56px; } .rl-auth .form-panel { padding: 24px 20px; } }
