/* ===========================================================================
   Lyralink — design system
   ===========================================================================
   One stylesheet, no build step. Sections:
     01 tokens          06 hero               11 charts
     02 reset           07 cards              12 explore list
     03 type            08 project page       13 profile
     04 controls        09 app shell          14 CTA panel
     05 chrome          10 panels             15 auth, prose, responsive

   Colour tokens were sampled from the reference collage rather than guessed:
   the two blues are #1E5BD6 (primary action) and #2563EB (chart/data accent),
   the dark surfaces are #0B1725, and the page canvas is #F6F8FB.
   =========================================================================== */

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

:root {
  /* Brand */
  --ly-blue:        #1E5BD6;
  --ly-blue-hover:  #1749AE;
  --ly-blue-soft:   #E8F0FE;
  --ly-accent:      #2563EB;
  --ly-accent-2:    #60A5FA;
  --ly-navy:        #0B1725;
  --ly-navy-2:      #0F1F31;
  --ly-navy-line:   rgba(255, 255, 255, .12);

  /* Ink */
  --ly-ink:         #0C1B2A;
  --ly-body:        #46536B;
  --ly-muted:       #7A8699;
  --ly-faint:       #9AA6B8;

  /* Surfaces */
  --ly-page:        #F6F8FB;
  --ly-card:        #FFFFFF;
  --ly-sunken:      #F4F6FA;
  --ly-line:        #E6EAF1;
  --ly-line-soft:   #EFF2F7;

  /* Signal */
  --ly-green:       #12A150;
  --ly-green-soft:  #E4F6EC;
  --ly-amber:       #D97706;
  --ly-amber-soft:  #FDF1E3;
  --ly-red:         #E5484D;
  --ly-red-soft:    #FDECEC;
  --ly-purple:      #6D5AE6;

  /* Type */
  --ly-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ly-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --ly-radius:    12px;
  --ly-radius-sm: 8px;
  --ly-radius-lg: 18px;
  --ly-shadow:    0 1px 2px rgba(12, 27, 42, .05), 0 8px 24px rgba(12, 27, 42, .05);
  --ly-shadow-lg: 0 24px 64px rgba(12, 27, 42, .12);
  --ly-topbar-h:  68px;
  --ly-sidebar-w: 236px;
  --ly-shell:     1180px;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

/* --- 02 reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ly-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ly-body);
  background: var(--ly-page);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ly-blue); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ly-ink); font-weight: 650; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--ly-line); margin: 24px 0; }

:focus-visible {
  outline: 2px solid var(--ly-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.ly-shell { width: 100%; max-width: var(--ly-shell); margin-inline: auto; padding-inline: 24px; }
.ly-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ly-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ly-navy); color: #fff; padding: 10px 16px; border-radius: var(--ly-radius-sm);
}
.ly-skip:focus { top: 12px; }
.ly-icon { flex: none; }
.ly-flip { transform: rotate(180deg); }

/* --- 03 type ------------------------------------------------------------- */

.ly-h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.ly-h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.ly-h3 { font-size: 20px; line-height: 1.25; font-weight: 650; }
.ly-h4 { font-size: 16px; font-weight: 650; color: var(--ly-ink); }
.ly-lede { font-size: 17px; line-height: 1.6; color: var(--ly-body); }
.ly-small { font-size: 13px; }
.ly-muted { color: var(--ly-muted); }
.ly-eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ly-blue);
}
.ly-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ly-section-head p { margin: 6px 0 0; }

/* --- 04 controls --------------------------------------------------------- */

.ly-btn {
  --btn-bg: transparent; --btn-fg: var(--ly-ink); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s;
}
.ly-btn:active { transform: translateY(1px); }
.ly-btn--primary { --btn-bg: var(--ly-blue); --btn-fg: #fff; --btn-line: var(--ly-blue); }
.ly-btn--primary:hover { --btn-bg: var(--ly-blue-hover); --btn-line: var(--ly-blue-hover); }
.ly-btn--dark { --btn-bg: var(--ly-navy); --btn-fg: #fff; --btn-line: var(--ly-navy); }
.ly-btn--dark:hover { --btn-bg: #16283c; --btn-line: #16283c; }
.ly-btn--ghost { --btn-bg: #fff; --btn-line: var(--ly-line); --btn-fg: var(--ly-blue); }
.ly-btn--ghost:hover { --btn-line: #C9D6EC; --btn-bg: var(--ly-blue-soft); }
.ly-btn--quiet { --btn-bg: var(--ly-sunken); --btn-fg: var(--ly-ink); }
.ly-btn--quiet:hover { --btn-bg: #E9EDF4; }
.ly-btn--light { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-line: var(--ly-navy-line); }
.ly-btn--light:hover { --btn-bg: rgba(255,255,255,.16); }
.ly-btn--link { --btn-fg: var(--ly-blue); padding: 11px 6px; }
.ly-btn--link:hover { --btn-fg: var(--ly-blue-hover); }
.ly-btn--sm { padding: 8px 14px; font-size: 13px; }
.ly-btn--lg { padding: 14px 24px; font-size: 15px; }
.ly-btn--block { width: 100%; }
.ly-btn--cta { --btn-bg: var(--ly-blue); --btn-fg: #fff; --btn-line: var(--ly-blue); box-shadow: 0 10px 24px rgba(30, 91, 214, .28); }
.ly-btn--cta:hover { --btn-bg: var(--ly-blue-hover); --btn-line: var(--ly-blue-hover); }

.ly-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  background: var(--ly-sunken); color: var(--ly-body);
  border: 1px solid var(--ly-line);
  vertical-align: middle;
}
.ly-badge--soft { background: #fff; color: var(--ly-blue); border-color: #D8E4F8; }
.ly-badge--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: var(--ly-navy-line); }
.ly-badge--good { background: var(--ly-green-soft); color: #0B7A3D; border-color: #C6EBD6; }
.ly-badge--warn { background: var(--ly-amber-soft); color: #9A5A08; border-color: #F3DCBD; }
.ly-badge--bad  { background: var(--ly-red-soft); color: #B3252A; border-color: #F6D2D3; }

.ly-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ly-status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ly-status--live  { color: var(--ly-green); }
.ly-status--warn  { color: var(--ly-amber); }
.ly-status--bad   { color: var(--ly-red); }
.ly-status--muted { color: var(--ly-muted); }

.ly-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ly-blue-soft); color: var(--ly-blue); vertical-align: middle;
}

.ly-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 650;
}
.ly-delta::before { content: "▲"; font-size: 9px; }
.ly-delta--down { color: var(--ly-red); }
.ly-delta--down::before { content: "▼"; }
.ly-delta--up { color: var(--ly-green); }
.ly-delta__label { color: var(--ly-muted); font-weight: 500; }

.ly-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--tile-bg); color: var(--tile-fg);
}
.ly-tile--sm { width: 34px; height: 34px; border-radius: 10px; }
.ly-tile--xs { width: 26px; height: 26px; border-radius: 8px; }
.ly-tile--lg { width: 56px; height: 56px; border-radius: 16px; }

.ly-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ly-tag {
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 550;
  background: var(--ly-sunken); color: var(--ly-body); border: 1px solid var(--ly-line);
}
.ly-tag--more { color: var(--ly-muted); }

.ly-checks { display: grid; gap: 10px; }
.ly-checks__item { display: flex; gap: 10px; align-items: flex-start; color: var(--ly-body); }
.ly-checks__item svg { color: var(--ly-green); margin-top: 3px; }

.ly-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ly-ink); }
.ly-rating__stars { display: inline-flex; gap: 1px; }
.ly-star { color: #D8DEE8; display: inline-flex; }
.ly-star--on { color: #F5A524; }
.ly-rating__count { color: var(--ly-muted); font-weight: 500; font-size: 12.5px; }

/* --- 05 chrome ----------------------------------------------------------- */

.ly-topbar {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--ly-line);
}
.ly-topbar__inner { display: flex; align-items: center; gap: 22px; height: var(--ly-topbar-h); }
.ly-logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.ly-logo__word {
  font-size: 19px; font-weight: 700; letter-spacing: -.025em; color: var(--ly-ink);
}
.ly-logo--inverse .ly-logo__word { color: #fff; }

.ly-nav { display: flex; align-items: center; gap: 4px; }
.ly-nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--ly-body); font-size: 14px; font-weight: 550;
}
.ly-nav__link:hover { background: var(--ly-sunken); color: var(--ly-ink); }
.ly-nav__link.is-active { color: var(--ly-blue); }
.ly-nav__link--button { background: none; border: 0; cursor: pointer; }

.ly-menu { position: relative; }
.ly-menu__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  width: 320px; padding: 8px;
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius);
  box-shadow: var(--ly-shadow-lg);
}
.ly-menu__panel[hidden] { display: none; }
.ly-menu__item { display: flex; gap: 12px; padding: 10px; border-radius: 9px; align-items: flex-start; }
.ly-menu__item:hover { background: var(--ly-sunken); }
.ly-menu__ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px; background: var(--ly-blue-soft); color: var(--ly-blue);
}
.ly-menu__item strong { display: block; font-size: 13.5px; color: var(--ly-ink); }
.ly-menu__item em { display: block; font-style: normal; font-size: 12.5px; color: var(--ly-muted); }

.ly-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--ly-sunken); border: 1px solid var(--ly-line);
  border-radius: 999px; padding: 0 14px; height: 40px; color: var(--ly-muted);
  transition: border-color .15s, background-color .15s;
}
.ly-search:focus-within { background: #fff; border-color: #BFD0EE; }
.ly-search input {
  border: 0; background: none; outline: none; width: 100%;
  font-size: 13.5px; color: var(--ly-ink);
}
.ly-search input::placeholder { color: var(--ly-faint); }
.ly-search--bar { flex: 1; max-width: 460px; margin-inline: auto; }

.ly-topbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ly-userchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ly-ink);
  padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--ly-line);
}
.ly-userchip--plain { border-color: transparent; }
.ly-userchip:hover { background: var(--ly-sunken); }
.ly-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--ly-blue-soft); color: var(--ly-blue); font-weight: 700;
}
.ly-avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.ly-avatar--lg { width: 96px; height: 96px; font-size: 30px; }
.ly-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ly-burger {
  display: none; background: none; border: 0; padding: 8px; border-radius: 8px;
  color: var(--ly-ink); cursor: pointer;
}
.ly-mobile-nav { display: grid; gap: 2px; padding: 10px 24px 18px; border-top: 1px solid var(--ly-line); }
/* A class selector beats the [hidden] attribute, so without this line the
   collapsed menu renders in full at every width. */
.ly-mobile-nav[hidden] { display: none; }
.ly-mobile-nav a { padding: 10px 4px; font-weight: 600; color: var(--ly-ink); }

/* Footer */
.ly-footer { background: var(--ly-navy); color: rgba(255,255,255,.7); margin-top: 72px; }
.ly-footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
  padding-block: 56px 40px;
}
.ly-footer__brand .ly-logo { margin-bottom: 14px; }
.ly-footer__tagline { color: #fff; font-weight: 600; margin-bottom: 4px; }
.ly-footer__note { font-size: 13.5px; margin: 0; }
.ly-footer__col h3 {
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 14px; font-weight: 650;
}
.ly-footer__col li { margin-bottom: 9px; }
.ly-footer__col a { color: rgba(255,255,255,.78); font-size: 14px; }
.ly-footer__col a:hover { color: #fff; }
.ly-footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--ly-navy-line); font-size: 13px;
}
.ly-footer__base p { margin: 0; }
.ly-footer__legal { display: flex; gap: 10px; }
.ly-footer__legal a { color: rgba(255,255,255,.7); }

/* Demo-data disclosure */
.ly-demo {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; margin-bottom: 20px;
  background: #FFF8EC; border: 1px solid #F3E2C2; border-radius: var(--ly-radius);
  color: #7A5310; font-size: 13px;
}
.ly-demo svg { margin-top: 2px; color: var(--ly-amber); }

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

.ly-hero { position: relative; overflow: hidden; background: #fff; padding-block: 64px 76px; }
.ly-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 380px at 82% 26%, rgba(37, 99, 235, .12), transparent 62%),
    radial-gradient(620px 320px at 100% 8%, rgba(109, 90, 230, .10), transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #F5F8FD 100%);
  pointer-events: none;
}
.ly-hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px; align-items: center;
}
.ly-hero__title { font-size: clamp(40px, 5.4vw, 63px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.ly-hero__lede { margin-top: 18px; max-width: 34em; font-size: 17px; color: var(--ly-body); }
.ly-hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; max-width: 660px; }

.ly-startcard {
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius-lg);
  padding: 26px 24px 24px; box-shadow: var(--ly-shadow);
  display: flex; flex-direction: column;
}
.ly-startcard__icon { color: var(--ly-ink); margin-bottom: 18px; height: 32px; }
.ly-startcard__icon--blue { color: var(--ly-accent); }
.ly-startcard h3 { font-size: 19px; margin-bottom: 8px; }
.ly-startcard p { font-size: 13.5px; color: var(--ly-muted); margin-bottom: 22px; flex: 1; }

.ly-hero__points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px;
  margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--ly-line);
}
.ly-hero__point { display: flex; gap: 12px; align-items: flex-start; }
.ly-hero__point svg { color: var(--ly-accent); margin-top: 3px; }
.ly-hero__point strong { display: block; font-size: 14px; color: var(--ly-ink); }
.ly-hero__point span span { display: block; font-size: 12.5px; color: var(--ly-muted); }

/* Browser/device mock */
.ly-mock { position: relative; }
.ly-mock__badge {
  position: absolute; right: 4px; top: -10px; z-index: 4;
  background: var(--ly-navy); color: #fff; border-radius: 12px; padding: 14px 18px;
  font-size: 14px; font-weight: 650; line-height: 1.3; box-shadow: var(--ly-shadow-lg);
}
.ly-mock__stack { position: relative; padding: 40px 0 0 40px; }
.ly-mock__sheet {
  position: absolute; left: 0; top: 0; width: 62%; height: 78%; border-radius: 16px;
  background: linear-gradient(150deg, #C9D9FB, #9EB8F5 55%, #7FA3F2);
  transform: rotate(-8deg); box-shadow: var(--ly-shadow-lg);
}
.ly-mock__sheet--b {
  left: auto; right: 0; top: auto; bottom: 0; width: 52%; height: 46%;
  background: linear-gradient(150deg, #DCE6FB, #A9C1F7); transform: rotate(6deg); opacity: .9;
}
.ly-mock__window {
  position: relative; z-index: 3; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ly-line); box-shadow: var(--ly-shadow-lg);
}
.ly-mock__bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-bottom: 1px solid var(--ly-line-soft); background: #FCFDFE;
}
.ly-mock__dots { display: flex; gap: 4px; }
.ly-mock__dots i { width: 7px; height: 7px; border-radius: 50%; background: #E1E7F0; display: block; }
.ly-mock__addr {
  font-size: 10px; color: var(--ly-muted); background: var(--ly-sunken);
  padding: 2px 10px; border-radius: 999px;
}
.ly-mock__body { display: grid; grid-template-columns: 86px 1fr; min-height: 224px; }
.ly-mock__side { border-right: 1px solid var(--ly-line-soft); padding: 12px 9px; display: grid; gap: 9px; align-content: start; }
.ly-mock__side span { display: block; height: 7px; border-radius: 4px; background: #EDF1F7; }
.ly-mock__side span:nth-child(2) { width: 78%; }
.ly-mock__side span:nth-child(4) { width: 62%; }
.ly-mock__side span.is-on { background: #C7D9F7; }
.ly-mock__pane { padding: 14px 16px; display: grid; gap: 14px; }
.ly-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ly-mock__kpi { background: var(--ly-sunken); border-radius: 9px; padding: 9px 11px; }
.ly-mock__kpi b { display: block; font-size: 15px; color: var(--ly-ink); }
.ly-mock__kpi i { display: block; height: 6px; border-radius: 3px; background: #E4E9F1; margin-top: 6px; }
.ly-mock__chart { background: var(--ly-sunken); border-radius: 10px; padding: 10px; }
.ly-mock__rows { display: grid; gap: 8px; }
.ly-mock__row { display: flex; align-items: center; gap: 9px; }
.ly-mock__row i { width: 20px; height: 20px; border-radius: 6px; background: #DCE6F8; display: block; flex: none; }
.ly-mock__row span { height: 6px; border-radius: 3px; background: #EDF1F7; flex: 1; }

/* --- 07 cards ------------------------------------------------------------ */

.ly-card {
  background: var(--ly-card); border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius-lg); box-shadow: var(--ly-shadow);
}

/* --- 08 project page ----------------------------------------------------- */

.ly-phero { background: var(--ly-navy); color: #fff; padding-block: 22px 34px; }
.ly-phero__back {
  display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72);
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.ly-phero__back:hover { color: #fff; }
.ly-phero__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ly-phero__id { display: flex; gap: 20px; }
.ly-phero__mark {
  width: 74px; height: 74px; border-radius: 18px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(96,165,250,.4);
  color: #fff;
}
.ly-phero__title { display: flex; align-items: center; gap: 10px; font-size: 27px; color: #fff; font-weight: 700; }
.ly-phero__tag { color: rgba(255,255,255,.72); margin: 4px 0 14px; }
.ly-phero__metrics { display: flex; gap: 26px; align-items: flex-start; }
.ly-phero__metric { text-align: left; min-width: 78px; }
.ly-phero__metric b { display: block; font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.ly-phero__metric span { font-size: 12.5px; color: rgba(255,255,255,.62); }
.ly-phero__stars { display: flex; gap: 2px; margin-top: 2px; }
.ly-phero__stars .ly-star { color: rgba(255,255,255,.28); }
.ly-phero__stars .ly-star--on { color: #F5A524; }
.ly-phero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ly-phero .ly-tag { background: rgba(255,255,255,.08); border-color: var(--ly-navy-line); color: rgba(255,255,255,.86); }

.ly-tabs {
  display: flex; gap: 26px; border-bottom: 1px solid var(--ly-line);
  background: #fff; padding-inline: 24px; overflow-x: auto;
}
.ly-tabs--on-dark { background: var(--ly-navy); border-bottom-color: var(--ly-navy-line); padding-inline: 0; position: absolute; }
.ly-tabs__item {
  padding: 15px 0; font-size: 14px; font-weight: 600; color: var(--ly-body);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.ly-tabs__item:hover { color: var(--ly-ink); }
.ly-tabs__item.is-active { color: var(--ly-ink); border-bottom-color: var(--ly-blue); }

.ly-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 26px; align-items: start; }
.ly-sidecard { background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius-lg); padding: 20px; }
.ly-sidecard + .ly-sidecard { margin-top: 20px; }
.ly-sidecard h3 { font-size: 15px; margin-bottom: 14px; }
.ly-devhead { display: flex; gap: 12px; align-items: center; }
.ly-devhead strong { display: block; color: var(--ly-ink); font-size: 15px; }
.ly-devhead span { font-size: 13px; color: var(--ly-muted); }
.ly-linklist { display: grid; gap: 4px; margin-top: 4px; }
.ly-linklist a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: var(--ly-body); font-size: 14px; font-weight: 550;
}
.ly-linklist a:hover { background: var(--ly-sunken); color: var(--ly-ink); }
.ly-shot {
  border: 1px solid var(--ly-line); border-radius: var(--ly-radius); overflow: hidden;
  background: var(--ly-navy); box-shadow: var(--ly-shadow);
}
.ly-shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.ly-shots span {
  height: 52px; border-radius: 9px; border: 1px solid var(--ly-line); background: #fff;
  display: grid; place-items: center; color: var(--ly-faint);
}
.ly-shots span:first-child { border-color: var(--ly-blue); box-shadow: 0 0 0 1px var(--ly-blue); }

/* --- 09 app shell -------------------------------------------------------- */

.ly-body--app { background: var(--ly-page); }
.ly-app { min-height: 100vh; display: flex; flex-direction: column; }
.ly-appbar {
  display: flex; align-items: center; gap: 26px;
  height: 64px; padding-inline: 20px; background: var(--ly-page);
  border-bottom: 1px solid var(--ly-line-soft);
}
.ly-appbar__brand { width: calc(var(--ly-sidebar-w) - 20px); flex: none; }
.ly-search--app { max-width: 420px; margin: 0; background: #fff; }
.ly-appbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ly-iconbtn {
  position: relative; background: none; border: 0; color: var(--ly-body);
  padding: 8px; border-radius: 9px; cursor: pointer;
}
.ly-iconbtn:hover { background: #fff; color: var(--ly-ink); }
.ly-iconbtn__dot {
  position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ly-blue); border: 2px solid var(--ly-page);
}

.ly-app__body { display: flex; flex: 1; align-items: stretch; }
.ly-sidebar {
  width: var(--ly-sidebar-w); flex: none; background: var(--ly-page);
  display: flex; flex-direction: column; padding: 8px 12px 24px;
}
.ly-sidebar__nav { flex: 1; }
.ly-sidebar__link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 2px;
  color: var(--ly-body); font-size: 14px; font-weight: 550;
}
.ly-sidebar__link:hover { background: #fff; color: var(--ly-ink); }
.ly-sidebar__link.is-active { background: var(--ly-blue-soft); color: var(--ly-blue); font-weight: 600; }
.ly-sidebar__project {
  border-top: 1px solid var(--ly-line); padding-top: 16px; display: grid; gap: 12px;
}
.ly-sidebar__label { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ly-muted); }
.ly-sidebar__current {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--ly-line);
}
.ly-sidebar__current:hover { border-color: #C9D6EC; }
.ly-sidebar__name { font-size: 13.5px; font-weight: 650; color: var(--ly-ink); }
.ly-app__main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--ly-line); border-right: 0;
  border-bottom: 0; border-radius: 18px 0 0 0; padding: 26px 28px 60px; }
.ly-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ly-page-head h1 { font-size: 26px; letter-spacing: -.025em; }
.ly-page-head p { margin: 6px 0 0; color: var(--ly-muted); }
.ly-page-head__actions { display: flex; gap: 10px; align-items: center; }

/* --- 10 panels ----------------------------------------------------------- */

.ly-panel {
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius-lg);
  padding: 20px;
}
.ly-panel--flat { box-shadow: none; }
.ly-panel--dark { background: var(--ly-navy); border-color: var(--ly-navy); color: #fff; }
.ly-panel--dark .ly-panel__title { color: #fff; }
.ly-panel__head {
  display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px;
}
.ly-panel__title { font-size: 15.5px; }
.ly-panel__action { font-size: 13px; }
.ly-panel__tools { margin-left: auto; }

.ly-grid { display: grid; gap: 18px; }
.ly-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ly-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ly-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ly-stat {
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius);
  padding: 15px 17px; display: grid; gap: 4px;
}
.ly-stat__label { font-size: 13px; color: var(--ly-muted); font-weight: 550; }
.ly-stat__value { font-size: 25px; font-weight: 700; color: var(--ly-ink); letter-spacing: -.03em; line-height: 1.15; }
.ly-stat__foot { display: flex; align-items: center; gap: 8px; }
.ly-stat__spark { margin-top: 4px; }

.ly-spark { width: 100%; max-width: 130px; height: 34px; display: block; }

.ly-project-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ly-project-head__meta { display: flex; align-items: center; gap: 12px; }
.ly-project-head h1 { font-size: 25px; letter-spacing: -.025em; display: flex; align-items: center; gap: 9px; }
.ly-project-head p { margin: 3px 0 0; color: var(--ly-muted); font-size: 14px; }
.ly-project-head__actions { margin-left: auto; display: flex; gap: 10px; }

.ly-urlrow { display: flex; align-items: center; gap: 10px; }
.ly-url {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ly-blue);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ly-kv { display: grid; gap: 10px; }
.ly-kv__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ly-kv__k { font-size: 13.5px; color: var(--ly-body); font-family: var(--ly-mono); font-size: 12.5px; }
.ly-kv__v { font-size: 13.5px; font-weight: 600; color: var(--ly-ink); }
.ly-kv__v--secret { letter-spacing: .16em; color: var(--ly-muted); }

.ly-deploys { display: grid; gap: 14px; }
.ly-deploy { display: flex; align-items: center; gap: 12px; }
.ly-deploy__icon {
  width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ly-blue-soft); color: var(--ly-blue);
}
.ly-deploy__ver { font-size: 13.5px; font-weight: 650; color: var(--ly-ink); min-width: 62px; }
.ly-deploy__ago { font-size: 13px; color: var(--ly-muted); flex: 1; }
.ly-deploy__note { font-size: 12.5px; color: var(--ly-muted); }
.ly-deploy.is-archived .ly-deploy__icon { background: var(--ly-sunken); color: var(--ly-muted); }

.ly-logs {
  background: #0A1622; border-radius: var(--ly-radius); padding: 16px 18px;
  font-family: var(--ly-mono); font-size: 12.5px; line-height: 1.85; overflow-x: auto;
}
.ly-logs__row { display: flex; gap: 14px; white-space: pre; }
.ly-logs__time { color: rgba(255,255,255,.38); }
.ly-logs__msg { color: rgba(255,255,255,.82); }
.ly-logs__msg--ok { color: #4ADE80; }
.ly-logs__msg--dim { color: rgba(255,255,255,.45); }

.ly-activity { display: grid; gap: 16px; }
.ly-activity__item { display: flex; gap: 12px; align-items: flex-start; }
.ly-activity__ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--ly-sunken); color: var(--ly-body);
}
.ly-activity__ico--accent { background: var(--ly-blue-soft); color: var(--ly-blue); }
.ly-activity__ico--green { background: var(--ly-green-soft); color: var(--ly-green); }
.ly-activity__ico--amber { background: var(--ly-amber-soft); color: var(--ly-amber); }
.ly-activity__title { font-size: 13.5px; font-weight: 650; color: var(--ly-ink); }
.ly-activity__ago { font-size: 12.5px; color: var(--ly-muted); }

/* --- 11 charts ----------------------------------------------------------- */

.ly-chart { width: 100%; height: auto; display: block; }
.ly-chart--area { height: 250px; }
.ly-chart__grid { stroke: #EEF1F6; stroke-width: 1; }
.ly-chart__ylab, .ly-chart__xlab { font-size: 11px; fill: var(--ly-faint); font-family: var(--ly-font); }
.ly-chart__line { stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.ly-chart__dot { fill: #fff; stroke: var(--ly-accent); stroke-width: 2; opacity: 0; transition: opacity .12s; }
.ly-chart__hit { fill: transparent; }
.ly-chart__hit:hover ~ .ly-chart__dot, .ly-chart.is-hovering .ly-chart__dot { opacity: 1; }

.ly-chartwrap { position: relative; }
.ly-charttip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ly-navy); color: #fff; border-radius: 8px; padding: 6px 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -130%);
  box-shadow: var(--ly-shadow);
}
.ly-charttip[hidden] { display: none; }

.ly-ring { width: 150px; height: 150px; }
.ly-ring__track { stroke: #EDF1F6; }
.ly-ring__value { stroke: var(--ly-green); stroke-linecap: round; }
.ly-ring__num { font-size: 30px; font-weight: 700; fill: var(--ly-ink); font-family: var(--ly-font); }
.ly-ring__den { font-size: 12px; fill: var(--ly-muted); font-family: var(--ly-font); }
.ly-ring__caption { text-align: center; font-size: 13px; color: var(--ly-muted); margin: 6px 0 0; }

.ly-donut { width: 150px; height: 150px; }

.ly-bars { display: grid; gap: 13px; }
.ly-bars__row { display: grid; grid-template-columns: 9px minmax(64px, 92px) 1fr auto; align-items: center; gap: 10px; }
.ly-bars__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.ly-bars__label { font-size: 13.5px; color: var(--ly-body); }
.ly-bars__track { height: 6px; border-radius: 3px; background: var(--ly-sunken); overflow: hidden; }
.ly-bars__fill { display: block; height: 100%; border-radius: 3px; background: var(--fill); }
.ly-bars__value { font-size: 13px; font-weight: 650; color: var(--ly-ink); min-width: 38px; text-align: right; }

.ly-funnel { display: grid; gap: 12px; }
.ly-funnel__row { display: flex; align-items: center; gap: 12px; }
.ly-funnel__bar {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px;
  background: var(--ly-blue-soft); color: #1749AE; font-size: 12.5px; font-weight: 650;
  min-width: 76px;
}
.ly-funnel__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ly-funnel__pct { font-weight: 650; color: var(--ly-ink); min-width: 46px; }
.ly-funnel__label { color: var(--ly-muted); }

.ly-health { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.ly-rec { display: grid; gap: 18px; }
.ly-rec__item { display: flex; gap: 12px; align-items: flex-start; }
.ly-rec__ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--ly-sunken); color: var(--ly-body);
}
.ly-rec__ico--high { background: var(--ly-red-soft); color: var(--ly-red); }
.ly-rec__ico--medium { background: var(--ly-amber-soft); color: var(--ly-amber); }
.ly-rec__ico--low { background: var(--ly-blue-soft); color: var(--ly-blue); }
.ly-rec__title { font-size: 14px; font-weight: 650; color: var(--ly-ink); }
.ly-rec__body { font-size: 13px; color: var(--ly-body); margin: 3px 0 5px; }
.ly-rec__basis { font-size: 12px; color: var(--ly-muted); }
.ly-rec__basis b { color: var(--ly-body); font-weight: 600; }

.ly-seg { display: inline-flex; gap: 4px; background: var(--ly-sunken); padding: 3px; border-radius: 9px; }
.ly-seg__item { padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--ly-body); }
.ly-seg__item.is-active { background: #fff; color: var(--ly-ink); box-shadow: 0 1px 2px rgba(12,27,42,.08); }

/* --- 12 explore ---------------------------------------------------------- */

.ly-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.ly-chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--ly-line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ly-body);
}
.ly-chip:hover { border-color: #C9D6EC; color: var(--ly-ink); }
.ly-chip.is-active { background: var(--ly-navy); border-color: var(--ly-navy); color: #fff; }
.ly-chiprow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }

.ly-list { display: grid; gap: 12px; }
.ly-prow {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius);
  padding: 16px 18px; transition: box-shadow .15s, border-color .15s;
}
.ly-prow:hover { border-color: #D5E0F1; box-shadow: var(--ly-shadow); }
.ly-prow__main { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 0; }
.ly-prow__text { display: grid; gap: 3px; min-width: 0; }
.ly-prow__title { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 650; color: var(--ly-ink); }
.ly-prow__meta { font-size: 12.5px; color: var(--ly-accent); font-weight: 550; }
.ly-prow__desc { font-size: 13.5px; color: var(--ly-body); }
.ly-prow__stats { display: flex; gap: 14px; margin-top: 5px; }
.ly-prow__stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ly-muted); font-weight: 600; }
.ly-prow__side { flex: none; }

.ly-empty {
  text-align: center; padding: 54px 24px; background: #fff;
  border: 1px dashed var(--ly-line); border-radius: var(--ly-radius-lg);
}

/* --- 13 profile ---------------------------------------------------------- */

.ly-profile { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 26px; align-items: start; }
.ly-profile__head { display: flex; gap: 20px; align-items: flex-start; }
.ly-profile__name { display: flex; align-items: center; gap: 9px; font-size: 25px; letter-spacing: -.025em; }
.ly-profile__handle { font-size: 13.5px; color: var(--ly-blue); font-weight: 600; }
.ly-profile__bio { margin: 9px 0 0; color: var(--ly-body); }
.ly-profile__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px;
  border: 1px solid var(--ly-line); border-radius: var(--ly-radius); overflow: hidden;
}
.ly-profile__stat { padding: 15px 12px; text-align: center; border-right: 1px solid var(--ly-line); }
.ly-profile__stat:last-child { border-right: 0; }
.ly-profile__stat b { display: block; font-size: 20px; color: var(--ly-ink); font-weight: 700; letter-spacing: -.02em; }
.ly-profile__stat span { font-size: 12.5px; color: var(--ly-muted); }
.ly-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ly-pcard { background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); padding: 16px; }
.ly-pcard:hover { border-color: #D5E0F1; }
.ly-pcard__head { display: flex; gap: 11px; align-items: center; }
.ly-pcard__id { display: grid; }
.ly-pcard__id a { font-size: 14.5px; font-weight: 650; color: var(--ly-ink); }
.ly-pcard__cat { font-size: 12px; color: var(--ly-muted); }
.ly-pcard__installs { font-size: 12.5px; color: var(--ly-muted); margin: 12px 0 8px; }
.ly-pcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--ly-ink);
}
.ly-pcard__foot--muted { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--ly-line-soft); color: var(--ly-muted); }
.ly-pcard__stat { display: inline-flex; align-items: center; gap: 4px; }
.ly-contrib { display: grid; gap: 14px; }
.ly-contrib__item { display: flex; align-items: center; gap: 10px; }
.ly-contrib__item b { display: block; font-size: 13.5px; color: var(--ly-ink); }
.ly-contrib__item span { font-size: 12.5px; color: var(--ly-muted); }
.ly-social { display: flex; gap: 8px; }
.ly-social a {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ly-ink); color: #fff;
}
.ly-meta { display: grid; grid-template-columns: auto; gap: 2px; margin: 0; }
.ly-meta dt { font-size: 12px; color: var(--ly-muted); margin-top: 10px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ly-meta dd { margin: 0; font-size: 13.5px; color: var(--ly-ink); font-weight: 550; }

/* --- 14 CTA panel -------------------------------------------------------- */

.ly-cta {
  position: relative; overflow: hidden; border-radius: var(--ly-radius-lg);
  background: var(--ly-navy); color: #fff; margin-block: 56px;
}
.ly-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(37,99,235,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M0 300 90 150l60 70 70-120 60 90 70-60 50 170z' fill='%23ffffff' opacity='.04'/%3E%3C/svg%3E") right bottom / cover no-repeat;
}
.ly-cta__inner { position: relative; padding: 48px 46px 52px; max-width: 720px; }
.ly-cta__brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 26px; }
.ly-cta__title { font-size: clamp(28px, 3.4vw, 40px); color: #fff; letter-spacing: -.03em; }
.ly-cta__lede { margin-top: 12px; color: rgba(255,255,255,.76); font-size: 16px; max-width: 30em; }
.ly-cta__points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 34px; margin: 32px 0 34px; }
.ly-cta__points li { display: flex; gap: 13px; align-items: flex-start; }
.ly-cta__pt-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(37, 99, 235, .28); color: #BFD3FB;
}
.ly-cta__points strong { display: block; color: #fff; font-size: 14.5px; }
.ly-cta__pt-body { display: block; font-size: 13px; color: rgba(255,255,255,.66); }
.ly-cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ly-cta .ly-btn--link { --btn-fg: #fff; font-weight: 650; }
.ly-cta .ly-btn--link:hover { --btn-fg: #BFD3FB; }

/* --- 15 auth, prose, misc ------------------------------------------------ */

.ly-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.ly-auth__aside {
  background: var(--ly-navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.ly-auth__aside h2 { color: #fff; font-size: 30px; letter-spacing: -.03em; margin-bottom: 12px; }
.ly-auth__aside p { color: rgba(255,255,255,.72); }
.ly-auth__main { display: grid; place-items: center; padding: 48px 24px; }
.ly-auth__form { width: 100%; max-width: 396px; }
.ly-auth__form h1 { font-size: 27px; letter-spacing: -.025em; margin-bottom: 6px; }
.ly-auth__switch { margin-top: 22px; font-size: 14px; }

.ly-field { display: grid; gap: 6px; margin-bottom: 16px; }
.ly-field label { font-size: 13px; font-weight: 600; color: var(--ly-ink); }
.ly-field input, .ly-field select, .ly-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--ly-line); background: #fff; font-size: 14px; color: var(--ly-ink);
}
.ly-field input:focus, .ly-field select:focus, .ly-field textarea:focus {
  outline: none; border-color: var(--ly-blue); box-shadow: 0 0 0 3px rgba(30, 91, 214, .12);
}
.ly-field__hint { font-size: 12.5px; color: var(--ly-muted); }
.ly-field--error input { border-color: var(--ly-red); }

.ly-alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.ly-alert--good { background: var(--ly-green-soft); color: #0B7A3D; border: 1px solid #C6EBD6; }
.ly-alert--bad { background: var(--ly-red-soft); color: #B3252A; border: 1px solid #F6D2D3; }
.ly-alert--info { background: var(--ly-blue-soft); color: #1749AE; border: 1px solid #D3E1F8; }

.ly-prose { max-width: 760px; }
.ly-prose h2 { font-size: 22px; margin: 34px 0 10px; }
.ly-prose h3 { font-size: 17px; margin: 24px 0 8px; }
.ly-prose p, .ly-prose li { color: var(--ly-body); }
.ly-prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.ly-prose li { margin-bottom: 7px; }
.ly-prose code {
  font-family: var(--ly-mono); font-size: 12.5px; background: var(--ly-sunken);
  padding: 2px 6px; border-radius: 6px; color: var(--ly-ink);
}
.ly-prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.ly-prose th, .ly-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ly-line); }

.ly-section { padding-block: 64px; }
.ly-section--tight { padding-block: 44px; }
.ly-section--alt { background: #fff; }
.ly-faq { display: grid; gap: 12px; max-width: 820px; }
.ly-faq details {
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); padding: 4px 18px;
}
.ly-faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: var(--ly-ink); list-style: none; }
.ly-faq summary::-webkit-details-marker { display: none; }
.ly-faq summary::after { content: "+"; float: right; color: var(--ly-muted); font-weight: 500; }
.ly-faq details[open] summary::after { content: "–"; }
.ly-faq p { margin: 0 0 16px; font-size: 14px; }

.ly-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ly-price {
  background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.ly-price--featured { border-color: var(--ly-blue); box-shadow: 0 16px 44px rgba(30, 91, 214, .14); }
.ly-price h3 { font-size: 17px; }
.ly-price__amount { font-size: 36px; font-weight: 700; color: var(--ly-ink); letter-spacing: -.03em; margin: 10px 0 2px; }
.ly-price__amount small { font-size: 14px; font-weight: 500; color: var(--ly-muted); }
.ly-price ul { margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }

.ly-steps { display: grid; gap: 14px; counter-reset: ly-step; }
.ly-step { display: flex; gap: 16px; align-items: flex-start; }
.ly-step__num {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ly-blue-soft); color: var(--ly-blue); font-weight: 700; font-size: 13px;
}
.ly-step h3 { font-size: 15.5px; margin-bottom: 3px; }

.ly-errors { text-align: center; padding: 96px 24px; }
.ly-errors__code { font-size: 68px; font-weight: 700; color: var(--ly-ink); letter-spacing: -.04em; }

.ly-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ly-navy); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--ly-shadow-lg); z-index: 80;
}
.ly-toast[hidden] { display: none; }


/* --- create-project flow ------------------------------------------------- */

.ly-create-page { background: #fff; }
.ly-create-list { display: grid; gap: 14px; margin-top: 30px; }
.ly-create {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 22px; background: #fff;
  border: 1px solid var(--ly-line); border-radius: var(--ly-radius-lg);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ly-create:hover { border-color: #C9D6EC; box-shadow: var(--ly-shadow); transform: translateY(-1px); }
.ly-create.is-selected { border-color: var(--ly-blue); box-shadow: 0 0 0 3px rgba(30,91,214,.1); }
.ly-create > svg { color: var(--ly-body); margin-left: auto; }
.ly-create__ico {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--ly-ink); color: #fff;
}
.ly-create__ico--blue { background: var(--ly-blue-soft); color: var(--ly-accent); }
.ly-create__text { display: grid; gap: 3px; }
.ly-create__text strong { font-size: 16px; color: var(--ly-ink); }
.ly-create__text span { font-size: 13.5px; color: var(--ly-muted); }

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

@media (max-width: 1080px) {
  .ly-hero__inner { grid-template-columns: 1fr; }
  .ly-mock { max-width: 560px; }
  .ly-two-col, .ly-profile { grid-template-columns: minmax(0, 1fr); }
  .ly-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-footer__grid { grid-template-columns: 1fr 1fr; }
  .ly-pricing { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ly-nav, .ly-search--bar { display: none; }
  .ly-burger { display: inline-flex; }
  .ly-mobile-nav { display: grid; }
  .ly-mobile-nav[hidden] { display: none; }
  .ly-hero__points { grid-template-columns: 1fr 1fr; }
  .ly-cta__points { grid-template-columns: 1fr; }
  .ly-auth { grid-template-columns: 1fr; }
  .ly-auth__aside { display: none; }

  /* App shell collapses to a single column with a scrollable nav row. */
  .ly-appbar__brand { width: auto; }
  .ly-search--app { display: none; }
  .ly-app__body { display: block; }
  .ly-sidebar {
    width: auto; flex-direction: row; align-items: center; gap: 10px;
    overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--ly-line);
    background: var(--ly-page);
  }
  .ly-sidebar__nav ul { display: flex; gap: 6px; }
  .ly-sidebar__link { white-space: nowrap; }
  .ly-sidebar__link span { display: inline; }
  .ly-sidebar__project { border-top: 0; padding-top: 0; display: flex; align-items: center; gap: 10px; }
  .ly-sidebar__label, .ly-sidebar__name { display: none; }
  .ly-sidebar__project .ly-btn span { display: none; }
  .ly-app__main { border-radius: 0; border: 0; padding: 20px 16px 60px; }
  .ly-tabs { padding-inline: 16px; }
}

/* Nothing inside the app column may set the column's width. Without a floor of
   zero on the grid children, a long unbroken string (a URL, a log line, an
   environment variable value) makes the whole page scroll sideways on a phone. */
.ly-app__main, .ly-app__body, .ly-panel, .ly-two-col, .ly-grid { min-width: 0; }
.ly-two-col > * { min-width: 0; }
.ly-logs { max-width: 100%; }
.ly-url, .ly-kv__k, .ly-kv__v { overflow-wrap: anywhere; }
.ly-prose pre { max-width: 100%; }

@media (max-width: 720px) {
  .ly-shell { padding-inline: 18px; }
  .ly-hero { padding-block: 40px 50px; }
  .ly-hero__cards { grid-template-columns: 1fr; }
  .ly-hero__points { grid-template-columns: 1fr; gap: 14px; }
  .ly-grid--4, .ly-grid--3, .ly-grid--2, .ly-cards, .ly-profile__stats { grid-template-columns: minmax(0, 1fr); }
  /* Collapse any inline two-column layout that was set on the element itself.
     Several pages set grid-template-columns inline for the dashboard's
     1.7fr/1fr split, which a stylesheet rule cannot beat by specificity alone. */
  .ly-two-col[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .ly-profile[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .ly-logs { font-size: 11px; padding: 12px 12px; }
  .ly-chart--area { height: 190px; }
  .ly-funnel__row { flex-wrap: wrap; }
  .ly-profile__stat { border-right: 0; border-bottom: 1px solid var(--ly-line); }
  .ly-phero__metrics { flex-wrap: wrap; gap: 18px; }
  .ly-health { grid-template-columns: minmax(0, 1fr); }
  .ly-prow { flex-direction: column; align-items: stretch; }
  .ly-prow__side .ly-btn { width: 100%; }
  .ly-prow__stats { flex-wrap: wrap; row-gap: 6px; }
  .ly-cta__inner { padding: 34px 24px 38px; }
  .ly-cta__actions { gap: 14px; }
  .ly-shots { grid-template-columns: repeat(3, 1fr); }
  .ly-chart--area { height: 200px; }
  .ly-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
}
