@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');
body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.rl-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-6); }
.rl-grid { display: grid; gap: var(--space-6); padding: var(--space-6); }
.rl-icon { display: inline-block; flex: none; vertical-align: middle; }

/* The brand gradient: cool top-left, open bright center, warm bottom-right. */
.rl-gradient { background: radial-gradient(120% 140% at 100% 100%, var(--gradient-ember) 0%, var(--gradient-peach) 28%, transparent 58%), linear-gradient(115deg, var(--gradient-sky) 0%, var(--gradient-mist) 55%); color: var(--midnight-slate); }
.rl-accent-bar { display: block; width: 72px; height: 4px; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--gradient-sky), var(--electric-cyan) 35%, var(--relay-orange)); margin-bottom: var(--space-4); }

/* Display type: Sora SemiBold in sentence case, tightly tracked. No uppercase, no width axis. */

/* Button */
.rl-btn { font: inherit; font-family: var(--font-sans); font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.rl-btn-md { font-size: 15px; line-height: 20px; padding: var(--space-3) 20px; }
.rl-btn-sm { font-size: 13px; line-height: 16px; padding: var(--space-2) var(--space-3); }
.rl-btn-primary { background: var(--action); color: var(--on-action); }
.rl-btn-primary:hover { background: var(--steel-blue); color: var(--soft-cloud); }
.rl-btn-accent { background: var(--relay-orange); color: var(--on-accent); }
.rl-btn-accent:hover { background: var(--gradient-ember); }
.rl-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--control-border); }
.rl-btn-secondary:hover { background: var(--surface-sunken); }
.rl-btn-ghost { background: transparent; color: var(--ink); }
.rl-btn-ghost:hover { background: var(--neutral-soft); }
.rl-btn:active { transform: translateY(1px); }
.rl-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.rl-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Tag */
.rl-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; padding: 5px 14px; border-radius: var(--radius-full); background: var(--neutral-soft); color: var(--ink); white-space: nowrap; }
.rl-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rl-tag-positive { background: var(--status-positive-soft); color: var(--status-positive); }
.rl-tag-caution { background: var(--status-caution-soft); color: var(--status-caution); }
.rl-tag-critical { background: var(--status-critical-soft); color: var(--status-critical); }
.rl-tag-lime { background: var(--fluorescent-lime); color: var(--on-accent); font-weight: 600; }
.rl-tag-cyan { background: var(--electric-cyan); color: var(--on-accent); font-weight: 600; }
.rl-tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--control-border); }

/* Headline */
.rl-headline { max-width: 720px; }
.rl-eyebrow { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--orange-text); }
.rl-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--relay-orange); flex: none; }
.rl-sechead.is-center .rl-eyebrow { justify-content: center; }
.rl-footer .rl-eyebrow { color: var(--ink-muted); }
.rl-footer .rl-eyebrow::before { display: none; }
.rl-display { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: none; color: inherit; letter-spacing: -0.02em; text-wrap: balance; }
.rl-display-xl { font-size: 64px; line-height: 68px; letter-spacing: -0.035em; }
.rl-display-lg { font-size: 42px; line-height: 50px; letter-spacing: -0.03em; }
.rl-display-md { font-size: 24px; line-height: 32px; letter-spacing: -0.015em; }
.rl-period { color: var(--relay-orange); }
.rl-subhead { margin: var(--space-4) 0 0; font-size: 20px; line-height: 30px; font-weight: 400; max-width: 34em; }

/* Liquid glass */
.rl-glass { position: relative; border-radius: var(--radius-xl); padding: var(--space-6); background: var(--glass-fill); border: 1px solid var(--glass-stroke); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); color: var(--ink); }
.rl-gradient .rl-glass { background: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.85); color: var(--midnight-slate); }
.rl-gradient .rl-eyebrow { color: var(--midnight-slate); }

/* Stat tile */
.rl-stat { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) 20px; box-shadow: var(--shadow-sm); min-width: 240px; }
.rl-stat-label { margin: 0 0 var(--space-1); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.rl-stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.rl-stat-value { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600; color: var(--ink); }
.rl-stat-delta { margin: var(--space-1) 0 0; font-size: 12px; line-height: 16px; font-weight: 600; }
.rl-stat-delta.is-up { color: var(--status-positive); }
.rl-stat-delta.is-down { color: var(--status-critical); }
.rl-stat-caption { font-weight: 500; color: var(--ink-muted); }
.rl-spark path { stroke: var(--cyan-text); }
.rl-spark circle { fill: var(--electric-cyan); stroke: var(--surface-raised); stroke-width: 2; }

/* Feature card */
.rl-feature { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.rl-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink); margin-bottom: var(--space-4); }
.rl-feature-title { margin: 0 0 var(--space-2); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.rl-feature-body { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Plan card */
.rl-plan { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.rl-plan.is-featured { background: var(--midnight-slate); color: var(--soft-cloud); border-color: var(--steel-blue); box-shadow: var(--shadow-md); }
.rl-plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.rl-plan-name { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 600; text-transform: none; letter-spacing: -0.01em; }
.rl-plan-price { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; }
.rl-plan-price.is-long { font-size: 22px; line-height: 28px; }
.rl-plan-period { font-size: 14px; font-weight: 500; opacity: .8; }
.rl-plan-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.rl-plan.is-featured .rl-plan-desc { color: #C9D4DE; }
.rl-plan-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.rl-plan-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.rl-plan-list .rl-icon { margin-top: 2px; color: var(--cyan-text); }
.rl-plan.is-featured .rl-plan-list .rl-icon { color: var(--electric-cyan); }
.rl-plan-cta { margin-top: auto; justify-content: center; }
.rl-plan .rl-plan-cta { margin-top: var(--space-4); }

/* Logo */
.rl-logo { display: block; flex: none; color: var(--ink); }
.rl-logo-primary { color: var(--midnight-slate); }
.rl-logo-white { color: #FFFFFF; }

/* ===== Website library ===== */
.rl-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.rl-section { padding: var(--space-16) 0; }
:where(.rl-nav, .rl-footer, .rl-hero, .rl-cta, .rl-card, .rl-modal, .rl-field, .rl-check, .rl-acc, .rl-steps, .rl-table-wrap, .rl-alert, .rl-quote, .rl-tabs) { box-sizing: border-box; }
:where(.rl-nav, .rl-footer, .rl-hero, .rl-cta, .rl-card, .rl-modal, .rl-field, .rl-acc, .rl-steps, .rl-table-wrap, .rl-alert, .rl-quote, .rl-tabs) *, :where(.rl-nav, .rl-footer, .rl-hero, .rl-cta, .rl-card, .rl-modal, .rl-field, .rl-acc, .rl-steps, .rl-table-wrap, .rl-alert, .rl-quote, .rl-tabs) *::before { box-sizing: border-box; }
:where(.rl-iconbtn, .rl-tab, .rl-acc-h button, .rl-nav-toggle, .rl-switch, .rl-alert-x, .rl-link, .rl-nav-link, .rl-footer a, .rl-crumbs a, .rl-card-hit, .rl-input, .rl-check-box):focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* IconButton */
.rl-iconbtn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; padding: 0; transition: background-color .15s ease; }
.rl-iconbtn.rl-btn-secondary { border-color: var(--control-border); }
.rl-iconbtn-md { width: 44px; height: 44px; }
.rl-iconbtn-sm { width: 32px; height: 32px; border-radius: var(--radius-sm); }

/* TextLink */
.rl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link); text-decoration: none; border-radius: 4px; }
.rl-link .rl-icon { transition: transform .2s ease; }
.rl-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl-link:hover .rl-icon, .rl-card.is-link:hover .rl-link .rl-icon { transform: translateX(3px); }

/* NavBar */
.rl-nav { background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); position: relative; z-index: 20; }
.rl-nav.is-sticky { position: sticky; top: 0; }
.rl-nav-inner { max-width: var(--container-max); margin: 0 auto; height: var(--nav-height); padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--space-8); }
.rl-nav-brand { display: inline-flex; border-radius: 4px; }
.rl-nav-links { display: flex; align-items: center; gap: var(--space-1); flex: 1; }
.rl-nav-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.rl-nav-link:hover { background: var(--neutral-soft); }
.rl-nav-link.is-active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--relay-orange); border-radius: 0; }
.rl-nav-actions { display: flex; gap: var(--space-2); align-items: center; }
.rl-nav-actions-mobile, .rl-nav-toggle { display: none; }
.rl-nav-toggle { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .rl-nav-actions { display: none; }
  .rl-nav-toggle { display: inline-flex; }
  .rl-nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: var(--space-4) var(--gutter) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .rl-nav-links.is-open { display: flex; }
  .rl-nav-link { padding: var(--space-3); font-size: 17px; }
  .rl-nav-actions-mobile { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
  .rl-nav-actions-mobile .rl-btn { justify-content: center; }
}
/* compact: the mobile layout at any width (narrow containers, previews) */
  .rl-nav.is-compact .rl-nav-actions { display: none; }
  .rl-nav.is-compact .rl-nav-toggle { display: inline-flex; }
  .rl-nav.is-compact .rl-nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: var(--space-4) var(--gutter) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .rl-nav.is-compact .rl-nav-links.is-open { display: flex; }
  .rl-nav.is-compact .rl-nav-link { padding: var(--space-3); font-size: 17px; }
  .rl-nav.is-compact .rl-nav-actions-mobile { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
  .rl-nav.is-compact .rl-nav-actions-mobile .rl-btn { justify-content: center; }



/* Footer (always dark-scoped) */
.rl-footer { background: var(--surface-raised); color: var(--ink); padding: var(--space-16) 0 var(--space-8); }
.rl-footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.6fr repeat(var(--rl-cols, 3), minmax(0, 1fr)); gap: var(--space-8); }
.rl-footer-tagline { margin: var(--space-4) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 30ch; }
.rl-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rl-footer-col a { font-size: 14px; line-height: 20px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.rl-footer-col a:hover { color: var(--electric-cyan); }
.rl-footer-base { max-width: var(--container-max); margin: var(--space-12) auto 0; padding: var(--space-6) var(--gutter) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 720px) { .rl-footer-inner { grid-template-columns: 1fr 1fr; } .rl-footer-brand { grid-column: 1 / -1; } }

/* Breadcrumbs */
.rl-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.rl-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
.rl-crumbs a { color: var(--ink-muted); text-decoration: none; border-radius: 4px; }
.rl-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rl-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Tabs */
.rl-tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--neutral-soft); flex-wrap: wrap; }
.rl-tab { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-full); padding: var(--space-2) 18px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.rl-tab:hover { color: var(--ink); }
.rl-tab.is-active { background: var(--surface-raised); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.rl-tabpanel { padding-top: var(--space-6); border-radius: var(--radius-sm); }
.rl-tabpanel:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Hero (always light-scoped: the gradient is a light ground) */
.rl-hero { color: var(--ink); padding: calc(var(--space-16) * 1.5) 0; overflow: hidden; }
.rl-hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: var(--space-12); align-items: center; }
.rl-hero.has-aside .rl-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.rl-hero .rl-headline { max-width: 680px; }
.rl-hero .rl-eyebrow { color: var(--ink); }
.rl-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.rl-hero-note { margin: var(--space-4) 0 0; font-size: 13px; line-height: 18px; color: var(--ink); opacity: .8; }
@media (max-width: 860px) { .rl-hero.has-aside .rl-hero-inner { grid-template-columns: 1fr; } .rl-hero .rl-display-xl { font-size: 40px; line-height: 44px; } }

/* SectionHeader */
.rl-sechead { max-width: 720px; }
.rl-sechead.is-center { margin: 0 auto; text-align: center; }
.rl-sechead.is-center .rl-accent-bar { margin-left: auto; margin-right: auto; }
.rl-sechead-intro { margin: var(--space-4) 0 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.rl-sechead-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.rl-sechead.is-center .rl-sechead-actions { justify-content: center; }

/* CtaBand */
.rl-cta { border-radius: var(--radius-xl); padding: var(--space-12); display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; color: var(--ink); }
.rl-cta.is-midnight { background: var(--midnight-slate); }
.rl-cta-copy { max-width: 620px; }
.rl-cta-body { margin: var(--space-4) 0 0; font-size: 18px; line-height: 28px; }
.rl-cta.is-midnight .rl-cta-body { color: var(--ink-muted); }
.rl-cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Card */
.rl-card { position: relative; display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.rl-card.is-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rl-card-media, .rl-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rl-card-media { display: grid; place-items: center; color: var(--midnight-slate); }
.rl-card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: 20px var(--space-6) var(--space-6); flex: 1; }
.rl-card-tag { margin-bottom: var(--space-1); }
.rl-card-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.rl-card-hit { color: inherit; text-decoration: none; border-radius: 4px; }
.rl-card-hit::after { content: ''; position: absolute; inset: 0; }
.rl-card-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.rl-card-foot { margin-top: auto; padding-top: var(--space-3); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 14px; }
.rl-card-meta { font-size: 12px; font-weight: 500; color: var(--ink-muted); }

/* Avatar */
.rl-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; font-weight: 700; color: var(--on-accent); letter-spacing: .02em; }
.rl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rl-avatar-cyan { background: var(--electric-cyan); }
.rl-avatar-orange { background: var(--relay-orange); }
.rl-avatar-lime { background: var(--fluorescent-lime); }
.rl-avatar-neutral { background: var(--neutral-soft); color: var(--ink); }

/* Testimonial */
.rl-quote { margin: 0; position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-8); }
.rl-quote-mark { display: block; font-family: var(--font-display); font-size: 72px; line-height: 48px; height: 40px; color: var(--relay-orange); }
.rl-quote blockquote { margin: var(--space-2) 0 var(--space-6); font-size: 20px; line-height: 30px; font-weight: 500; color: var(--ink); }
.rl-quote figcaption { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.rl-quote figcaption > span { display: grid; }
.rl-quote figcaption strong { color: var(--ink); }
.rl-quote figcaption span span { color: var(--ink-muted); }

/* Steps */
.rl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--rl-steps, 3), minmax(0, 1fr)); gap: var(--space-8); counter-reset: none; }
.rl-step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--line); }
.rl-step::before { content: ''; position: absolute; top: -2px; left: 0; width: 72px; height: 2px; background: linear-gradient(90deg, var(--electric-cyan), var(--relay-orange)); }
.rl-step-num { display: block; font-family: var(--font-display); letter-spacing: -0.02em; font-size: 32px; line-height: 36px; font-weight: 600; color: var(--ink); margin-bottom: var(--space-4); }
.rl-step-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink); margin-bottom: var(--space-3); }
.rl-step-title { margin: 0 0 var(--space-2); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.rl-step-body { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 720px) { .rl-steps { grid-template-columns: 1fr; } }

/* Accordion */
.rl-acc { border-top: 1px solid var(--line); }
.rl-acc-item { border-bottom: 1px solid var(--line); }
.rl-acc-h { margin: 0; }
.rl-acc-h button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 20px var(--space-1); font: inherit; font-size: 18px; line-height: 26px; font-weight: 600; text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.rl-acc-h button:hover { color: var(--cyan-text); }
.rl-acc-h .rl-icon { color: var(--ink-muted); }
.rl-acc-item.is-open .rl-acc-h .rl-icon { color: var(--orange-text); }
.rl-acc-panel { padding: 0 var(--space-1) var(--space-6); font-size: 16px; line-height: 24px; color: var(--ink-muted); max-width: 68ch; }
.rl-acc-panel p { margin: 0; }

/* Table */
.rl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.rl-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; color: var(--ink); }
.rl-table caption { caption-side: top; text-align: left; padding: var(--space-4) 20px 0; font-weight: 600; }
.rl-table th, .rl-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rl-table thead th { background: var(--surface-sunken); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.rl-table tbody tr:last-child > * { border-bottom: 0; }
.rl-table tbody th { font-weight: 600; }
.rl-table .is-center { text-align: center; }
.rl-table .is-right { text-align: right; }
.rl-table .is-hl { background: var(--status-positive-soft); }
.rl-table thead .is-hl { background: var(--midnight-slate); color: var(--soft-cloud); }
.rl-table .rl-icon { color: var(--status-positive); }
.rl-table-no { color: var(--ink-muted); }

/* Forms */
.rl-field { display: grid; gap: 6px; align-content: start; }
.rl-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); padding: 0; }
.rl-req { color: var(--status-critical); }
.rl-input { width: 100%; font: inherit; font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: 10px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.rl-input::placeholder { color: var(--ink-muted); opacity: 1; }
.rl-input:hover { border-color: var(--ink-muted); }
.rl-input:disabled { background: var(--surface-sunken); opacity: .7; cursor: not-allowed; }
.rl-input.is-multi { resize: vertical; min-height: 104px; }
.rl-field.has-error .rl-input { border-color: var(--status-critical); }
.rl-input-wrap { position: relative; }
.rl-input.has-icon { padding-left: 42px; }
.rl-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.rl-help { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.rl-help.is-error { color: var(--status-critical); font-weight: 500; }
.rl-select { position: relative; }
.rl-select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.rl-select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.rl-check { display: inline-flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: 15px; line-height: 22px; color: var(--ink); }
.rl-check-box { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--control-border); border-radius: 5px; background: var(--surface-raised); display: grid; place-content: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.rl-check-box::before { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--on-action); border-bottom: 2px solid var(--on-action); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.rl-check-box:checked { background: var(--action); border-color: var(--action); }
.rl-check-box:checked::before { opacity: 1; }
.rl-check-box.is-radio { border-radius: 50%; }
.rl-check-box.is-radio::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--on-action); transform: none; }
.rl-check-box:disabled { opacity: .45; cursor: not-allowed; }
.rl-check-text { display: grid; }
.rl-check-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.rl-radios { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-3); min-width: 0; }
.rl-radios > legend { margin-bottom: var(--space-2); }
.rl-radios.is-inline { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.rl-switch-row { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: 15px; line-height: 22px; color: var(--ink); }
.rl-switch { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border-radius: var(--radius-full); border: 1.5px solid var(--control-border); background: var(--surface-sunken); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.rl-switch-thumb { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink-muted); transition: transform .2s ease, background-color .2s ease; }
.rl-switch.is-on { background: var(--action); border-color: var(--action); }
.rl-switch.is-on .rl-switch-thumb { transform: translateX(18px); background: var(--on-action); }
.rl-switch:disabled { opacity: .45; cursor: not-allowed; }

/* Alert */
.rl-alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 18px; border-radius: var(--radius-md); background: var(--neutral-soft); color: var(--ink); font-size: 14px; line-height: 20px; }
.rl-alert-icon { margin-top: 0; color: var(--cyan-text); }
.rl-alert-body { flex: 1; display: grid; gap: 2px; }
.rl-alert-title { margin: 0; font-weight: 700; }
.rl-alert-text p { margin: 0; }
.rl-alert-action { margin-top: var(--space-2); }
.rl-alert-positive { background: var(--status-positive-soft); }
.rl-alert-positive .rl-alert-icon, .rl-alert-positive .rl-alert-title { color: var(--status-positive); }
.rl-alert-caution { background: var(--status-caution-soft); }
.rl-alert-caution .rl-alert-icon, .rl-alert-caution .rl-alert-title { color: var(--status-caution); }
.rl-alert-critical { background: var(--status-critical-soft); }
.rl-alert-critical .rl-alert-icon, .rl-alert-critical .rl-alert-title { color: var(--status-critical); }
.rl-alert-x { flex: none; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; margin: -4px -6px 0 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); cursor: pointer; }
.rl-alert-x:hover { color: var(--ink); }

/* Modal */
.rl-modal-scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-6); background: var(--scrim); animation: rl-fade .2s ease; }
.rl-modal-scrim.is-contained { position: absolute; }
.rl-modal { width: 100%; max-height: calc(100vh - 48px); overflow: auto; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); animation: rl-rise .25s ease; }
.rl-modal-sm { max-width: 400px; } .rl-modal-md { max-width: 520px; } .rl-modal-lg { max-width: 720px; }
.rl-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.rl-modal-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.rl-modal-body { padding: var(--space-3) var(--space-6) 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.rl-modal-body p { margin: 0 0 var(--space-3); }
.rl-modal-actions { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-6); }
@keyframes rl-fade { from { opacity: 0; } }
@keyframes rl-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .rl-modal, .rl-modal-scrim, .rl-card, .rl-link .rl-icon { animation: none; transition: none; } }

/* Tooltip */
.rl-tip { position: relative; display: inline-flex; }
.rl-tip-bubble { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 240px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--midnight-slate); color: var(--soft-cloud); font-size: 13px; line-height: 18px; font-weight: 500; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; }
[data-theme="dark"] .rl-tip-bubble { background: var(--soft-cloud); color: var(--midnight-slate); }
.rl-tip-bottom .rl-tip-bubble { bottom: auto; top: calc(100% + 8px); }
.rl-tip:hover .rl-tip-bubble, .rl-tip:focus-within .rl-tip-bubble, .rl-tip.is-open .rl-tip-bubble { opacity: 1; visibility: visible; }
