/*
 * Carnet Studio 5.2 Luxe
 * High-end visual layer. Loaded after the functional styles.
 * Scoped to Carnet Studio so Twenty Twenty-Five remains untouched.
 */
:root {
  --cvi-luxe-font: var(--wp--preset--font-family--manrope, Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --cvi-luxe-serif: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
  --cvi-luxe-ink: #081b22;
  --cvi-luxe-ink-soft: #15313a;
  --cvi-luxe-cream: #f5f0e7;
  --cvi-luxe-paper: #fbf8f2;
  --cvi-luxe-mint: #79d8ca;
  --cvi-luxe-teal: #0e796f;
  --cvi-luxe-gold: #e7b56e;
  --cvi-luxe-coral: #e9826f;
  --cvi-luxe-line: rgba(8, 27, 34, .11);
  --cvi-luxe-shadow: 0 30px 90px rgba(8, 27, 34, .13);
  --cvi-luxe-shadow-soft: 0 18px 55px rgba(8, 27, 34, .085);
}

.cvi-studio-landing,
.cvi-portal,
.cf-trip {
  font-family: var(--cvi-luxe-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ---------- Shared finish ---------- */
.cvi-studio-landing *,
.cvi-portal *,
.cf-trip * { box-sizing: border-box; }

.cvi-studio-landing button,
.cvi-studio-landing a,
.cvi-portal button,
.cvi-portal a,
.cf-trip button,
.cf-trip a { transition-timing-function: cubic-bezier(.2,.75,.2,1); }

.cvi-studio-landing ::selection,
.cvi-portal ::selection,
.cf-trip ::selection { background: rgba(121,216,202,.34); }

/* ---------- Landing: cinematic luxury ---------- */
.cvi-studio-landing {
  color: var(--cvi-luxe-ink);
  background: var(--cvi-luxe-paper);
  isolation: isolate;
}
.cvi-studio-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.cvi-landing-wrap { width: min(1320px, calc(100% - 64px)); }
.cvi-landing-hero {
  min-height: 100svh;
  padding: 18px 0 116px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 22%, rgba(121,216,202,.22), transparent 29%),
    radial-gradient(circle at 10% 88%, rgba(231,181,110,.19), transparent 24%),
    linear-gradient(132deg, #06161c 0%, #0a2831 46%, #123e43 100%);
  overflow: hidden;
}
.cvi-landing-hero::before {
  content: "";
  position: absolute;
  width: min(760px, 60vw);
  aspect-ratio: 1;
  right: -13vw;
  top: 8vh;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(255,255,255,.023), 0 0 0 156px rgba(255,255,255,.014);
}
.cvi-landing-hero::after {
  content: "JOURNAL  /  VOYAGE  /  SOUVENIRS";
  position: absolute;
  right: -150px;
  bottom: 255px;
  color: rgba(255,255,255,.055);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .52em;
  transform: rotate(-90deg);
}
.cvi-landing-nav {
  position: sticky;
  top: 16px;
  z-index: 80;
  min-height: 72px;
  margin: 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #fff;
  background: rgba(5,25,31,.54);
  box-shadow: 0 24px 70px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(25px) saturate(130%);
}
.admin-bar .cvi-landing-nav { top: 48px; }
.cvi-landing-brand { color: #fff; gap: 12px; }
.cvi-landing-brand i {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #0a252d;
  background: linear-gradient(145deg, #f6d69f, #d99f55);
  box-shadow: 0 13px 30px rgba(231,181,110,.24), inset 0 1px rgba(255,255,255,.55);
}
.cvi-landing-brand strong { letter-spacing: -.035em; }
.cvi-landing-link { color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .01em; }
.cvi-landing-link:hover { color: #fff; }
.cvi-landing-link::after { background: var(--cvi-luxe-mint); }
.cvi-landing-button,
.cvi-primary-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #071a20;
  background: linear-gradient(135deg, #a4e5da 0%, #70cdbf 52%, #e5c188 145%);
  box-shadow: 0 16px 42px rgba(69,180,166,.25), inset 0 1px rgba(255,255,255,.7);
  font-weight: 850;
}
.cvi-landing-button::before,
.cvi-primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.48) 48%, transparent 78%);
  transform: translateX(-130%);
  transition: transform .72s cubic-bezier(.2,.7,.2,1);
}
.cvi-landing-button:hover::before,
.cvi-primary-button:hover::before { transform: translateX(130%); }
.cvi-landing-button:hover,
.cvi-primary-button:hover {
  color: #06171d;
  background: linear-gradient(135deg, #b8eee5, #78d7c8 55%, #ebca95 145%);
  box-shadow: 0 22px 54px rgba(69,180,166,.32);
  transform: translateY(-2px);
}
.cvi-landing-button--ghost,
.cvi-secondary-button {
  color: inherit;
  border: 1px solid rgba(8,27,34,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 30px rgba(8,27,34,.055);
  backdrop-filter: blur(16px);
}
.cvi-landing-hero .cvi-landing-button--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.cvi-landing-hero .cvi-landing-button--ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.cvi-landing-hero-grid {
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
  padding-top: clamp(90px, 13vh, 150px);
}
.cvi-landing-copy { position: relative; z-index: 4; }
.cvi-landing-eyebrow {
  padding: 10px 15px;
  color: #cceee8;
  border: 1px solid rgba(121,216,202,.22);
  border-radius: 999px;
  background: rgba(121,216,202,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  letter-spacing: .18em;
}
.cvi-landing-eyebrow::before { background: var(--cvi-luxe-gold); box-shadow: 0 0 0 5px rgba(231,181,110,.12); }
.cvi-landing-copy h1 {
  max-width: 760px;
  margin: 28px 0 28px;
  color: #f9f5ee;
  font-size: clamp(60px, 7.1vw, 112px);
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.cvi-landing-copy h1 em {
  display: inline-block;
  color: var(--cvi-luxe-gold);
  background: none;
  font-family: var(--cvi-luxe-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.055em;
}
.cvi-landing-copy > p {
  max-width: 650px;
  color: rgba(239,246,245,.70);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}
.cvi-landing-hero-actions { gap: 12px; margin-top: 38px; }
.cvi-landing-trust { margin-top: 34px; gap: 24px; color: rgba(255,255,255,.64); }
.cvi-landing-trust span::before { background: #9be2d7; color: #0a252d; }

.cvi-landing-demo { min-height: 670px; perspective: 1600px; }
.cvi-landing-demo::before {
  inset: 0 -8% -7% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,216,202,.23), transparent 63%);
  filter: blur(32px);
}
.cvi-demo-window {
  inset: 26px 0 auto;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 34px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 55px 130px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(28px) saturate(125%);
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(1deg);
}
.cvi-demo-browser { color: #102d34; border-radius: 23px 23px 10px 10px; background: rgba(255,255,255,.91); }
.cvi-demo-cover {
  height: 370px;
  border-radius: 16px 16px 25px 25px;
  background:
    linear-gradient(0deg, rgba(4,23,29,.76), rgba(4,23,29,.04) 72%),
    url('../media/mediterranean-luxe.svg') center 46%/cover;
}
.cvi-demo-cover::after { background: linear-gradient(115deg, transparent 24%, rgba(255,255,255,.16) 47%, transparent 67%); }
.cvi-demo-cover > div { max-width: 500px; }
.cvi-demo-cover small { color: #a9e5db; letter-spacing: .18em; }
.cvi-demo-cover strong {
  max-width: 450px;
  font-family: var(--cvi-luxe-serif);
  font-size: clamp(38px, 4.4vw, 63px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
}
.cvi-demo-timeline { gap: 10px; }
.cvi-demo-card {
  min-height: 142px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 30px rgba(8,27,34,.08);
}
.cvi-demo-card:first-child { background: linear-gradient(145deg, #0a3741, #0d6e69); }
.cvi-demo-card i { background: linear-gradient(90deg, rgba(121,216,202,.8), rgba(231,181,110,.55)); }
.cvi-demo-float {
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #082129;
  background: rgba(255,255,255,.91);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.cvi-demo-float--one { right: -30px; top: 5px; }
.cvi-demo-float--two { left: -34px; bottom: 50px; }

.cvi-landing-strip { position: relative; z-index: 5; margin-top: -58px; }
.cvi-landing-strip-inner {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 35px 100px rgba(8,27,34,.15);
}
.cvi-landing-strip-inner div { position: relative; padding: 31px 24px; }
.cvi-landing-strip-inner div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cvi-luxe-mint), var(--cvi-luxe-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.cvi-landing-strip-inner div:hover::before { transform: scaleX(1); }
.cvi-landing-strip strong { color: var(--cvi-luxe-ink); font-size: 17px; }
.cvi-landing-strip span { color: #748187; }

.cvi-landing-section { position: relative; padding: 145px 0; background: var(--cvi-luxe-paper); }
.cvi-landing-section:nth-of-type(odd) { background: #fff; }
.cvi-landing-section--paper {
  color: #fff;
  background:
    radial-gradient(circle at 82% 5%, rgba(121,216,202,.16), transparent 25%),
    linear-gradient(135deg, #07191f, #0d3239 70%, #144f4c);
}
.cvi-landing-section-heading { margin-bottom: 72px; }
.cvi-landing-section-heading > span,
.cvi-landing-split-copy > span { color: var(--cvi-luxe-teal); letter-spacing: .18em; }
.cvi-landing-section--paper .cvi-landing-section-heading > span { color: #92ded2; }
.cvi-landing-section-heading h2,
.cvi-landing-split-copy h2,
.cvi-landing-final-card h2 {
  font-size: clamp(44px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
.cvi-landing-section--paper .cvi-landing-section-heading h2 { color: #fbf7f0; }
.cvi-landing-section-heading p { color: #6f7c80; font-size: 18px; }
.cvi-landing-features { grid-template-columns: repeat(12, 1fr); gap: 18px; }
.cvi-feature-card {
  grid-column: span 4;
  min-height: 285px;
  padding: 33px;
  overflow: hidden;
  border: 1px solid rgba(8,27,34,.08);
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 52px rgba(8,27,34,.055);
  backdrop-filter: blur(16px);
}
.cvi-feature-card:nth-child(1),
.cvi-feature-card:nth-child(5) { grid-column: span 5; }
.cvi-feature-card:nth-child(2),
.cvi-feature-card:nth-child(4) { grid-column: span 3; }
.cvi-feature-card:nth-child(3),
.cvi-feature-card:nth-child(6) { grid-column: span 4; }
.cvi-feature-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,216,202,.18), transparent 70%);
}
.cvi-feature-card:hover {
  border-color: rgba(14,121,111,.24);
  box-shadow: 0 30px 76px rgba(8,27,34,.11);
  transform: translateY(-8px);
}
.cvi-feature-card__icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(8,27,34,.07);
  border-radius: 19px;
  color: var(--cvi-luxe-ink);
  background: linear-gradient(145deg, #d9f4ef, #f5dfbb);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.cvi-feature-card h3 { margin-top: 34px; font-size: 22px; letter-spacing: -.035em; }
.cvi-feature-card p { color: #69787e; line-height: 1.7; }

.cvi-landing-process { counter-reset: cvi-step; gap: 18px; }
.cvi-process-card {
  counter-increment: cvi-step;
  min-height: 280px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  color: #fff;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.cvi-process-card::before {
  content: "0" counter(cvi-step);
  display: block;
  margin-bottom: 48px;
  color: var(--cvi-luxe-gold);
  font-family: var(--cvi-luxe-serif);
  font-size: 46px;
  font-style: italic;
}
.cvi-process-card::after { height: 1px; background: linear-gradient(90deg, var(--cvi-luxe-mint), transparent); }
.cvi-process-card h3 { color: #fff; font-size: 25px; }
.cvi-process-card p { color: rgba(255,255,255,.63); line-height: 1.72; }
.cvi-process-card:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); }

.cvi-landing-split { gap: clamp(50px, 8vw, 120px); }
.cvi-landing-checks > div { padding: 20px 0; border-bottom: 1px solid rgba(8,27,34,.09); }
.cvi-landing-checks i { color: #092029; background: linear-gradient(145deg, #9ce3d7, #f0ca8c); }
.cvi-security-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 80% 10%, rgba(121,216,202,.28), transparent 28%),
    linear-gradient(145deg, #07191f, #103d43);
  box-shadow: 0 45px 110px rgba(8,27,34,.22);
  transform: rotate(1.5deg);
}
.cvi-security-card::before {
  content: "ÉDITION PRIVÉE";
  position: absolute;
  right: -25px;
  top: 65px;
  color: rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .36em;
  transform: rotate(90deg);
}
.cvi-security-lock {
  min-height: 480px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 31px;
  color: #fff;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(17px);
}
.cvi-security-lock > i { color: #09232a; background: linear-gradient(145deg, #9ce3d7, #f1cb8d); }
.cvi-security-lock p { color: rgba(255,255,255,.62); }
.cvi-security-user { margin-top: auto; border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.065); }

.cvi-landing-final { padding: 20px 0 45px; background: var(--cvi-luxe-paper); }
.cvi-landing-final-card {
  position: relative;
  min-height: 420px;
  padding: clamp(52px, 7vw, 94px);
  overflow: hidden;
  border-radius: 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,17,22,.96), rgba(3,17,22,.5)),
    url('../media/mediterranean-luxe.svg') center 58%/cover;
  box-shadow: 0 45px 120px rgba(8,27,34,.22);
}
.cvi-landing-final-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 32px;
  pointer-events: none;
}
.cvi-landing-final-card > * { position: relative; z-index: 2; }
.cvi-landing-final-card h2 { max-width: 820px; color: #fff; }
.cvi-landing-final-card p { color: rgba(255,255,255,.67); }
.cvi-landing-footer { padding: 35px 4px 0; color: #65757a; }
.cvi-landing-footer .cvi-landing-brand { color: var(--cvi-luxe-ink); }

/* ---------- Authentication: editorial split ---------- */
body.cvi-studio-standalone {
  background:
    radial-gradient(circle at 8% 5%, rgba(121,216,202,.16), transparent 26%),
    radial-gradient(circle at 96% 94%, rgba(231,181,110,.16), transparent 25%),
    #e9eee9;
}
body.cvi-studio-login-page .cvi-studio-page-shell,
body.cvi-studio-portal-page .cvi-studio-page-shell { padding: 14px; }
.cvi-auth-page {
  min-height: calc(100svh - 28px);
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, .84fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 45px 120px rgba(8,27,34,.20);
}
.cvi-auth-art {
  min-height: calc(100svh - 28px);
  padding: 50px clamp(38px, 5vw, 86px);
  background:
    linear-gradient(115deg, rgba(3,20,25,.82), rgba(3,20,25,.15)),
    url('../media/mediterranean-luxe.svg') center/cover;
}
.cvi-auth-art::before {
  width: 700px;
  height: 700px;
  right: -220px;
  top: -180px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.015);
}
.cvi-auth-brand__mark { color: #09242b; background: linear-gradient(145deg, #f4d298, #dba05a); }
.cvi-auth-art__copy { margin-top: clamp(100px, 14vh, 175px); }
.cvi-auth-eyebrow { color: #9be2d7; }
.cvi-auth-art__copy h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(54px, 6vw, 92px);
  line-height: .9;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.cvi-auth-art__copy h1 em {
  color: var(--cvi-luxe-gold);
  font-family: var(--cvi-luxe-serif);
  font-weight: 400;
  font-style: italic;
}
.cvi-auth-art__copy p { max-width: 610px; color: rgba(255,255,255,.69); font-size: 18px; }
.cvi-auth-features span { border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.07); }
.cvi-auth-preview {
  right: -55px;
  bottom: -80px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 35px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(20px);
  transform: rotate(-3deg);
}
.cvi-auth-preview__hero { background: linear-gradient(0deg, rgba(4,23,29,.74), rgba(4,23,29,.05)), url('../media/mediterranean-luxe.svg') center/cover; }
.cvi-auth-panel { padding: 58px clamp(32px, 5vw, 86px); background: #fbf9f4; }
.cvi-auth-panel::before {
  content: "SOUVENIRS / MIS EN SCÈNE";
  position: absolute;
  right: 32px;
  top: 24px;
  color: rgba(8,27,34,.22);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .25em;
}
.cvi-auth-panel__inner { width: min(100%, 470px); }
.cvi-auth-home-link { color: #708086; }
.cvi-auth-tabs {
  padding: 5px;
  border: 1px solid rgba(8,27,34,.07);
  border-radius: 999px;
  background: #ebece7;
}
.cvi-auth-tabs button { border-radius: 999px; }
.cvi-auth-tabs button.is-active { color: #fff; background: #0a2a32; box-shadow: 0 10px 24px rgba(8,27,34,.16); }
.cvi-auth-heading h2 { font-size: 39px; letter-spacing: -.05em; }
.cvi-auth-heading p { color: #748087; line-height: 1.65; }
.cvi-auth-form label > span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #53666d; }
.cvi-auth-form input,
.cvi-field input,
.cvi-field textarea,
.cvi-field select {
  border: 1px solid rgba(8,27,34,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 1px rgba(255,255,255,.9);
}
.cvi-auth-form input:focus,
.cvi-field input:focus,
.cvi-field textarea:focus,
.cvi-field select:focus { border-color: rgba(14,121,111,.55); box-shadow: 0 0 0 4px rgba(121,216,202,.17); }
.cvi-auth-submit { min-height: 55px; border-radius: 999px; }

/* ---------- Portal shell ---------- */
.cvi-app-shell {
  min-height: calc(100svh - 28px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 38px;
  background: #f5f1e9;
  box-shadow: 0 45px 120px rgba(8,27,34,.17);
}
.cvi-app-sidebar {
  width: 286px;
  padding: 28px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0, rgba(121,216,202,.20), transparent 27%),
    linear-gradient(180deg, #061a21 0%, #0a3038 70%, #0e4344 100%);
}
.cvi-app-logo { margin: 3px 7px 36px; color: #fff; }
.cvi-app-logo span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #09232a;
  background: linear-gradient(145deg, #f6d69e, #dca15b);
  box-shadow: 0 14px 30px rgba(231,181,110,.22);
}
.cvi-app-sidebar nav { display: grid; gap: 7px; }
.cvi-app-sidebar nav button {
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255,255,255,.62);
  background: transparent;
  font-weight: 750;
}
.cvi-app-sidebar nav button:hover { color: #fff; background: rgba(255,255,255,.065); }
.cvi-app-sidebar nav button.is-active {
  color: #071a20;
  border-color: rgba(255,255,255,.25);
  background: linear-gradient(135deg, #a3e4d9, #eccb94);
  box-shadow: 0 16px 36px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.65);
}
.cvi-app-sidebar nav button span { color: currentColor; }
.cvi-app-sidebar__tip {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 23px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.cvi-app-sidebar__tip span { font-size: 22px; }
.cvi-app-sidebar__tip p { color: rgba(255,255,255,.55); }
.cvi-app-logout { color: rgba(255,255,255,.55); }
.cvi-app-main { min-width: 0; background: #f7f4ee; }
.cvi-app-topbar {
  min-height: 92px;
  padding: 0 clamp(28px, 4vw, 56px);
  border-bottom: 1px solid rgba(8,27,34,.075);
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(24px);
}
.cvi-app-topbar > div:first-of-type span { color: #6f7e83; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cvi-app-topbar > div:first-of-type strong { font-size: 18px; letter-spacing: -.025em; }
.cvi-user-chip > span { background: linear-gradient(145deg, #0e796f, #64cbbd); box-shadow: 0 12px 28px rgba(14,121,111,.2); }

.cvi-dashboard-view,
.cvi-editor-view { padding: clamp(32px, 4vw, 64px); }
.cvi-dashboard-heading { align-items: end; margin-bottom: 36px; }
.cvi-section-kicker { color: var(--cvi-luxe-teal); font-size: 11px; letter-spacing: .18em; }
.cvi-dashboard-heading h1 {
  margin: 9px 0 9px;
  color: var(--cvi-luxe-ink);
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
}
.cvi-dashboard-heading p { color: #728086; font-size: 17px; }
.cvi-dashboard-heading .cvi-primary-button { min-height: 52px; padding-inline: 24px; }
.cvi-dashboard-stats {
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.cvi-dashboard-stat {
  min-height: 138px;
  padding: 25px 27px;
  overflow: hidden;
  border: 1px solid rgba(8,27,34,.075);
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 40px rgba(8,27,34,.055);
}
.cvi-dashboard-stat:first-child {
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(121,216,202,.25), transparent 32%),
    linear-gradient(135deg, #071b22, #0c4245);
}
.cvi-dashboard-stat:first-child span { color: rgba(255,255,255,.6); }
.cvi-dashboard-stat::after { width: 125px; height: 125px; right: -38px; bottom: -48px; background: radial-gradient(circle, rgba(121,216,202,.17), transparent 68%); }
.cvi-dashboard-stat strong { font-family: var(--cvi-luxe-serif); font-size: 47px; font-weight: 500; }
.cvi-dashboard-stat span { color: #718087; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.cvi-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cvi-album-card {
  overflow: hidden;
  border: 1px solid rgba(8,27,34,.075);
  border-radius: 31px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8,27,34,.075);
  transform: translateZ(0);
}
.cvi-album-card:hover {
  border-color: rgba(14,121,111,.21);
  box-shadow: 0 36px 85px rgba(8,27,34,.14);
  transform: translateY(-9px);
}
.cvi-album-cover { min-height: 285px; }
.cvi-album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,22,27,.03) 35%, rgba(5,22,27,.72));
  pointer-events: none;
}
.cvi-album-cover img { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.cvi-album-card:hover .cvi-album-cover img { transform: scale(1.055); filter: saturate(1.06); }
.cvi-album-cover__empty { color: #e8c180; background: linear-gradient(145deg, #0b323a, #17645f); }
.cvi-status-pill,
.cvi-role-pill {
  z-index: 2;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}
.cvi-album-card__body { padding: 24px 24px 22px; }
.cvi-album-card__body h3 { font-size: 23px; letter-spacing: -.045em; }
.cvi-album-meta { margin-top: 11px; color: #627278; }
.cvi-album-meta span { padding: 7px 10px; border-radius: 999px; background: #f0f3ef; }
.cvi-album-updated { margin-top: 18px; color: #899397; }
.cvi-album-actions { margin-top: 20px; }
.cvi-album-actions > .cvi-primary-button { min-height: 48px; }
.cvi-card-menu > button { width: 48px; height: 48px; border-radius: 50%; }
.cvi-card-menu__dropdown { border-radius: 17px; box-shadow: 0 22px 60px rgba(8,27,34,.18); }

/* ---------- Editor ---------- */
.cvi-editor-view { position: relative; }
.cvi-editor-topline {
  position: sticky;
  top: 14px;
  z-index: 55;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  color: #fff;
  background: rgba(7,29,35,.91);
  box-shadow: 0 24px 65px rgba(8,27,34,.20), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
}
.cvi-editor-topline .cvi-back-button,
.cvi-editor-topline .cvi-secondary-button,
.cvi-editor-topline .cvi-icon-button {
  color: #fff;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.075);
}
.cvi-editor-topline .cvi-primary-button { color: #071a20; }
.cvi-editor-status { color: rgba(255,255,255,.72); }
.cvi-editor-status i { box-shadow: 0 0 0 5px rgba(121,216,202,.12); }
.cvi-editor-heading { margin-top: 44px; margin-bottom: 25px; }
.cvi-editor-heading input {
  max-width: 900px;
  padding: 0;
  border: 0;
  color: var(--cvi-luxe-ink);
  background: transparent;
  font-size: clamp(39px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -.06em;
}
.cvi-editor-progress i { background: rgba(8,27,34,.08); }
.cvi-editor-progress b { background: linear-gradient(90deg, var(--cvi-luxe-teal), var(--cvi-luxe-gold)); }
.cvi-editor-tabs {
  position: sticky;
  top: 100px;
  z-index: 45;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 30px;
  padding: 5px;
  border: 1px solid rgba(8,27,34,.075);
  border-radius: 999px;
  background: rgba(255,255,255,.83);
  box-shadow: 0 14px 40px rgba(8,27,34,.075);
  backdrop-filter: blur(18px);
}
.cvi-editor-tabs button { min-height: 43px; padding: 0 18px; border-radius: 999px; }
.cvi-editor-tabs button.is-active { color: #fff; background: #0a2a32; box-shadow: 0 9px 24px rgba(8,27,34,.18); }
.cvi-editor-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(8,27,34,.075);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 54px rgba(8,27,34,.06);
  backdrop-filter: blur(16px);
}
.cvi-editor-card:hover { border-color: rgba(14,121,111,.17); box-shadow: 0 27px 65px rgba(8,27,34,.09); }
.cvi-card-title > span {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: #082129;
  background: linear-gradient(145deg, #b3e9df, #f0d19f);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.cvi-card-title h2 { font-size: 22px; letter-spacing: -.035em; }
.cvi-card-title p { color: #7b878c; }
.cvi-cover-picker { min-height: 380px; overflow: hidden; border-radius: 24px; background: #e8ede8; }
.cvi-cover-picker::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; pointer-events: none; }
.cvi-cover-actions { background: linear-gradient(transparent, rgba(5,22,27,.78)); }
.cvi-theme-grid { gap: 12px; }
.cvi-theme-card { border-radius: 20px; }
.cvi-theme-card.is-active { box-shadow: 0 0 0 3px rgba(121,216,202,.22), 0 18px 42px rgba(8,27,34,.12); }
.cvi-design-preview {
  min-height: 440px;
  border-radius: 26px;
  background:
    linear-gradient(0deg, rgba(5,22,27,.78), rgba(5,22,27,.02) 70%),
    url('../media/mediterranean-luxe.svg') center/cover;
  box-shadow: 0 28px 75px rgba(8,27,34,.16);
}
.cvi-design-preview strong { font-family: var(--cvi-luxe-serif); font-weight: 500; }
.cvi-days-toolbar { padding: 28px 30px; border: 1px solid rgba(8,27,34,.075); border-radius: 28px; background: #fff; box-shadow: 0 16px 44px rgba(8,27,34,.06); }
.cvi-day-editor { border-radius: 30px; box-shadow: 0 18px 52px rgba(8,27,34,.065); }
.cvi-day-editor__head { background: linear-gradient(90deg, rgba(121,216,202,.11), rgba(231,181,110,.08)); }
.cvi-memory-card { border-radius: 20px; }
.cvi-memory-card:hover { box-shadow: 0 20px 46px rgba(8,27,34,.13); transform: translateY(-4px); }
.cvi-publish-box {
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(121,216,202,.22), transparent 30%),
    linear-gradient(135deg, #071b22, #0d4849);
  box-shadow: 0 32px 80px rgba(8,27,34,.17);
}
.cvi-publish-box h2 { color: #fff; }
.cvi-publish-box p { color: rgba(255,255,255,.62); }
.cvi-publish-box .cvi-secondary-button { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.07); }
.cvi-live-preview-panel { border-radius: 30px; box-shadow: 0 35px 100px rgba(8,27,34,.24); }
.cvi-live-preview-panel header { background: #092830; }
.cvi-live-preview-device { background: #e9e5dc; }

.cvi-modal__backdrop { background: rgba(2,15,19,.72); backdrop-filter: blur(12px); }
.cvi-onboarding,
.cvi-account-modal {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 34px;
  background: #fbf9f4;
  box-shadow: 0 45px 125px rgba(0,0,0,.28);
}
.cvi-onboarding header,
.cvi-account-modal header { color: #fff; background: linear-gradient(135deg, #071b22, #0e4647); }

/* ---------- Public album: magazine meets cinema ---------- */
body.cvi-album-canvas { background: #f3eee5 !important; }
.cf-trip {
  --cf-radius: 34px;
  color: var(--cf-ink);
  background:
    radial-gradient(circle at 8% 32%, color-mix(in srgb, var(--cf-aqua) 10%, transparent), transparent 24%),
    radial-gradient(circle at 93% 72%, color-mix(in srgb, var(--cf-sun) 13%, transparent), transparent 25%),
    var(--cf-paper);
}
.cf-trip::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.cf-trip .cf-shell { width: min(1280px, calc(100% - 64px)); }
.cf-trip .cf-hero {
  min-height: 100svh;
  overflow: hidden;
  background-position: center;
  background-attachment: fixed;
}
.cf-trip .cf-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 30px;
  pointer-events: none;
}
.cf-trip .cf-hero::after {
  background:
    linear-gradient(90deg, rgba(3,17,22,.9) 0%, rgba(3,17,22,.52) 48%, rgba(3,17,22,.12) 78%),
    linear-gradient(0deg, rgba(3,17,22,.62), transparent 48%);
}
.cf-trip .cf-hero__veil { background: radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--cf-aqua) 30%, transparent), transparent 27%); }
.cf-trip .cf-hero__inner {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(160px, 20vh, 250px) 0 clamp(105px, 13vh, 155px);
}
.cf-trip .cf-kicker {
  width: max-content;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.77);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(13px);
}
.cf-trip .cf-kicker span { background: var(--cf-sun); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cf-sun) 14%, transparent); }
.cf-trip .cf-hero h1 {
  max-width: 1040px;
  margin: 24px 0 22px;
  font-family: var(--cvi-luxe-serif);
  font-size: clamp(5rem, 10.3vw, 10.7rem);
  font-weight: 500;
  line-height: .78;
  letter-spacing: -.067em;
}
.cf-trip .cf-hero h1 em { color: var(--cf-sun); font-weight: 400; font-style: italic; }
.cf-trip .cf-hero__lead { max-width: 680px; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.7; }
.cf-trip .cf-hero__actions { gap: 10px; }
.cf-trip .cf-btn {
  min-height: 55px;
  padding-inline: 23px;
  border-radius: 999px;
}
.cf-trip .cf-btn--primary { color: #071b22; background: linear-gradient(135deg, var(--cf-sun), color-mix(in srgb, var(--cf-sun) 72%, white)); box-shadow: 0 18px 45px color-mix(in srgb, var(--cf-sun) 28%, transparent); }
.cf-trip .cf-btn--glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.17); }
.cf-trip .cf-hero__meta {
  max-width: 880px;
  margin-top: 64px;
  border-top-color: rgba(255,255,255,.15);
}
.cf-trip .cf-hero__meta > div { padding-top: 25px; }
.cf-trip .cf-hero__meta strong { font-family: var(--cvi-luxe-serif); font-size: clamp(2.1rem, 3vw, 3.1rem); font-weight: 500; }
.cf-trip .cf-scroll-cue { bottom: 35px; border-color: rgba(255,255,255,.32); }

.cf-trip .cf-controls-wrap { margin-top: -56px; }
.cf-trip .cf-controls {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 31px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 28px 80px rgba(8,27,34,.15);
  backdrop-filter: blur(25px) saturate(120%);
}
.cf-trip .cf-progress-track { height: 5px; }
.cf-trip .cf-progress-track span { background: linear-gradient(90deg, var(--cf-blue), var(--cf-aqua), var(--cf-sun)); }
.cf-trip .cf-day-nav button { min-height: 43px; border-radius: 999px; }
.cf-trip .cf-day-nav button:hover,
.cf-trip .cf-day-nav button.is-active { border-color: var(--cf-ink); background: var(--cf-ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--cf-ink) 20%, transparent); }
.cf-trip .cf-filter { min-height: 39px; }
.cf-trip .cf-search { border-radius: 999px; background: rgba(255,255,255,.9); }

.cf-trip .cf-intro-grid { padding-top: 145px; }
.cf-trip .cf-section-heading h2,
.cf-trip .cf-finale h2 {
  font-family: var(--cvi-luxe-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.cf-trip .cf-section-heading p { max-width: 700px; color: color-mix(in srgb, var(--cf-ink) 62%, transparent); line-height: 1.7; }
.cf-trip .cf-map-card { border-radius: 34px; box-shadow: 0 35px 90px rgba(8,27,34,.13); }
.cf-trip .cf-map { height: 530px; }

.cf-trip .cf-timeline-shell { padding: 150px 0 110px; }
.cf-trip .cf-timeline { gap: 120px; }
.cf-trip .cf-timeline__line { left: 69px; width: 2px; background: color-mix(in srgb, var(--cf-blue) 16%, transparent); }
.cf-trip .cf-day { grid-template-columns: 140px minmax(0, 1fr); }
.cf-trip .cf-day__pin {
  width: 82px;
  height: 82px;
  margin-left: 29px;
  border: 9px solid var(--cf-paper);
  color: var(--cf-ink);
  background: linear-gradient(145deg, var(--cf-aqua), var(--cf-sun));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--cf-blue) 20%, transparent);
}
.cf-trip .cf-day.is-current .cf-day__pin { color: #fff; background: var(--cf-coral); }
.cf-trip .cf-day__card {
  padding: clamp(30px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(8,27,34,.075);
  border-radius: 38px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 34px 90px rgba(8,27,34,.095);
  backdrop-filter: blur(17px);
}
.cf-trip .cf-day__card::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -110px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cf-aqua) 14%, transparent), transparent 68%);
  pointer-events: none;
}
.cf-trip .cf-day__header { position: relative; z-index: 2; margin-bottom: 30px; }
.cf-trip .cf-day__date { color: var(--cf-blue); letter-spacing: .13em; }
.cf-trip .cf-day__header h3 {
  margin-top: 10px;
  font-family: var(--cvi-luxe-serif);
  font-size: clamp(3.3rem, 6vw, 6rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
}
.cf-trip .cf-day__weather {
  min-width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8,27,34,.08);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--cf-sun) 18%, white));
  box-shadow: 0 14px 35px rgba(8,27,34,.08);
}
.cf-trip .cf-day__story > p { max-width: 820px; color: color-mix(in srgb, var(--cf-ink) 72%, transparent); font-size: 1.07rem; line-height: 1.83; }
.cf-trip .cf-day__story blockquote {
  position: relative;
  margin: 34px 0;
  padding: 7px 0 7px 28px;
  border-left: 2px solid var(--cf-sun);
  color: var(--cf-ink);
  font-family: var(--cvi-luxe-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
}
.cf-trip .cf-tags span { border-radius: 999px; background: color-mix(in srgb, var(--cf-aqua) 13%, white); }
.cf-trip .cf-highlight-grid { gap: 11px; }
.cf-trip .cf-highlight-grid > div { border-radius: 20px; background: color-mix(in srgb, var(--cf-paper) 75%, white); }
.cf-trip .cf-feature {
  min-height: 580px;
  margin: 42px 0 18px;
  border-radius: 30px;
  box-shadow: 0 28px 75px rgba(8,27,34,.18);
}
.cf-trip .cf-feature::after { background: linear-gradient(0deg, rgba(3,17,22,.74), rgba(3,17,22,.03) 65%); }
.cf-trip .cf-feature__content { padding: 38px; }
.cf-trip .cf-feature__content strong { max-width: 720px; font-family: var(--cvi-luxe-serif); font-size: clamp(2.4rem, 5vw, 5.2rem); font-weight: 500; line-height: .92; }
.cf-trip .cf-gallery { margin-top: 18px; column-gap: 18px; }
.cf-trip .cf-memory {
  margin-bottom: 18px;
  border-radius: 25px;
  box-shadow: 0 16px 45px rgba(8,27,34,.10);
}
.cf-trip .cf-memory img { min-height: 275px; }
.cf-trip .cf-memory::after { background: linear-gradient(transparent 38%, rgba(3,17,22,.86)); }
.cf-trip .cf-memory figcaption { inset: auto 22px 20px; }
.cf-trip .cf-memory figcaption strong { font-size: 1.08rem; }

.cf-trip .cf-finale { padding-bottom: 145px; }
.cf-trip .cf-finale__content {
  min-height: 520px;
  padding: clamp(48px, 7vw, 92px);
  overflow: hidden;
  border-radius: 44px;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--cf-aqua) 28%, transparent), transparent 26%),
    linear-gradient(135deg, #061a21, color-mix(in srgb, var(--cf-blue-deep) 82%, #061a21));
  box-shadow: 0 45px 120px rgba(8,27,34,.21);
}
.cf-trip .cf-finale__content::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 31px;
  pointer-events: none;
}
.cf-trip .cf-finale__content::after { width: 540px; height: 540px; }
.cf-trip .cf-finale__stats { gap: 10px; }
.cf-trip .cf-finale__stats div { border-radius: 23px; background: rgba(255,255,255,.065); backdrop-filter: blur(10px); }
.cf-trip .cf-finale__stats strong { font-family: var(--cvi-luxe-serif); font-weight: 500; }
.cf-trip .cf-guestbook__comments article,
.cf-trip .cf-guestbook__form { border-radius: 25px; box-shadow: 0 20px 55px rgba(8,27,34,.08); }
.cf-trip .cf-lightbox__dialog { border-radius: 30px; }
.cf-trip .cf-share-modal__dialog { border-radius: 31px; }
.cf-trip .cf-presentation__content h2 { font-family: var(--cvi-luxe-serif); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cvi-landing-hero-grid { grid-template-columns: 1fr; padding-top: 90px; }
  .cvi-landing-copy { max-width: 850px; }
  .cvi-landing-demo { width: min(820px, 100%); margin-inline: auto; }
  .cvi-feature-card,
  .cvi-feature-card:nth-child(n) { grid-column: span 6; }
  .cvi-album-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cvi-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .cvi-app-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .cvi-app-main { width: 100%; min-width: 0; }
  .cvi-landing-wrap { width: min(100% - 36px, 1320px); }
  .cvi-landing-nav { border-radius: 22px; }
  .cvi-landing-links .cvi-landing-link { display: none; }
  .cvi-auth-page { grid-template-columns: 1fr; }
  .cvi-auth-art { min-height: 520px; }
  .cvi-auth-art__copy { margin-top: 70px; }
  .cvi-auth-preview { display: none; }
  .cvi-app-sidebar { width: 250px; }
  .cvi-dashboard-view,
  .cvi-editor-view { padding: 34px 26px; }
  .cvi-editor-topline { top: 10px; }
  .cvi-editor-tabs { top: 94px; max-width: 100%; overflow-x: auto; }
  .cf-trip .cf-hero { background-attachment: scroll; }
  .cf-trip .cf-shell { width: min(100% - 36px, 1280px); }
  .cf-trip .cf-timeline__line { left: 37px; }
  .cf-trip .cf-day { grid-template-columns: 78px minmax(0,1fr); }
  .cf-trip .cf-day__pin { width: 68px; height: 68px; margin-left: 3px; }
}

@media (max-width: 760px) {
  .cvi-portal { width: 100% !important; max-width: none !important; }
  .cvi-app-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .cvi-app-main, .cvi-dashboard-view, .cvi-editor-view { width: 100%; min-width: 0; }
  body.cvi-studio-login-page .cvi-studio-page-shell,
  body.cvi-studio-portal-page .cvi-studio-page-shell { padding: 0; }
  .cvi-landing-hero { padding-top: 10px; }
  .cvi-landing-hero::after { display: none; }
  .cvi-landing-nav { top: 8px; min-height: 62px; padding: 7px 8px 7px 11px; }
  .admin-bar .cvi-landing-nav { top: 52px; }
  .cvi-landing-brand i { width: 38px; height: 38px; }
  .cvi-landing-links .cvi-landing-button { min-height: 43px; padding-inline: 16px; font-size: 12px; }
  .cvi-landing-hero-grid { padding-top: 75px; gap: 45px; }
  .cvi-landing-copy h1 { font-size: clamp(53px, 16vw, 75px); }
  .cvi-landing-copy > p { font-size: 16px; }
  .cvi-landing-hero-actions { display: grid; }
  .cvi-landing-hero-actions .cvi-landing-button { width: 100%; }
  .cvi-landing-trust { display: grid; gap: 11px; }
  .cvi-landing-demo { min-height: 430px; }
  .cvi-demo-window { inset: 5px 0 auto; transform: none; border-radius: 24px; }
  .cvi-demo-cover { height: 235px; }
  .cvi-demo-cover strong { font-size: 36px; }
  .cvi-demo-timeline { grid-template-columns: 1.15fr 1fr; }
  .cvi-demo-card:nth-child(3) { display: none; }
  .cvi-demo-card { min-height: 105px; }
  .cvi-demo-float { font-size: 11px; }
  .cvi-demo-float--one { right: -5px; top: -13px; }
  .cvi-demo-float--two { left: -5px; bottom: 15px; }
  .cvi-landing-strip-inner { grid-template-columns: 1fr 1fr; border-radius: 23px; }
  .cvi-landing-strip-inner div { padding: 24px 18px; }
  .cvi-landing-section { padding: 90px 0; }
  .cvi-landing-section-heading { margin-bottom: 42px; }
  .cvi-feature-card,
  .cvi-feature-card:nth-child(n) { grid-column: 1 / -1; min-height: 230px; }
  .cvi-landing-process { grid-template-columns: 1fr; }
  .cvi-security-card { transform: none; }
  .cvi-security-lock { min-height: 380px; padding: 28px; }
  .cvi-landing-final-card { min-height: 500px; border-radius: 30px; }
  .cvi-landing-footer { align-items: flex-start; gap: 18px; }

  .cvi-auth-page { min-height: 100svh; border-radius: 0; }
  .cvi-auth-art { min-height: 330px; padding: 25px 23px; }
  .cvi-auth-art__copy { margin-top: 55px; }
  .cvi-auth-art__copy h1 { font-size: 48px; }
  .cvi-auth-art__copy p,
  .cvi-auth-features { display: none; }
  .cvi-auth-panel { padding: 34px 22px 45px; }
  .cvi-auth-panel::before { display: none; }

  .cvi-app-shell { min-height: 100svh; border-radius: 0; }
  .cvi-app-main { width: 100%; }
  .cvi-app-topbar { min-height: 76px; padding: 0 18px; }
  .cvi-user-chip small { display: none; }
  .cvi-dashboard-view,
  .cvi-editor-view { padding: 27px 18px 50px; }
  .cvi-dashboard-heading { align-items: start; gap: 23px; }
  .cvi-dashboard-heading h1 { font-size: 49px; }
  .cvi-dashboard-heading .cvi-primary-button { width: 100%; }
  .cvi-dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cvi-dashboard-stat { min-height: 115px; padding: 20px; border-radius: 22px; }
  .cvi-dashboard-stat strong { font-size: 38px; }
  .cvi-album-grid { grid-template-columns: 1fr; }
  .cvi-album-cover { min-height: 250px; }
  .cvi-editor-topline { top: 7px; border-radius: 18px; }
  .cvi-editor-status { display: none; }
  .cvi-editor-actions .cvi-secondary-button { display: none; }
  .cvi-editor-heading { margin-top: 30px; }
  .cvi-editor-heading input { font-size: 42px; }
  .cvi-editor-tabs { top: 88px; width: 100%; border-radius: 18px; }
  .cvi-editor-tabs button { flex: 0 0 auto; }
  .cvi-editor-card { padding: 22px; border-radius: 24px; }
  .cvi-cover-picker { min-height: 275px; }
  .cvi-days-toolbar { padding: 22px; border-radius: 23px; }

  .cf-trip .cf-shell { width: min(100% - 24px, 1280px); }
  .cf-trip .cf-hero::before { inset: 8px; border-radius: 22px; }
  .cf-trip .cf-hero__inner { padding: 135px 0 100px; }
  .cf-trip .cf-hero h1 { font-size: clamp(4.6rem, 22vw, 7rem); line-height: .79; }
  .cf-trip .cf-hero__actions { display: grid; width: 100%; }
  .cf-trip .cf-hero__actions .cf-btn { width: 100%; }
  .cf-trip .cf-hero__meta { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
  .cf-trip .cf-controls-wrap { margin-top: -30px; }
  .cf-trip .cf-controls { padding: 17px; border-radius: 24px; }
  .cf-trip .cf-filter-row { grid-template-columns: 1fr; }
  .cf-trip .cf-intro-grid { padding-top: 100px; }
  .cf-trip .cf-map { height: 390px; }
  .cf-trip .cf-timeline-shell { padding: 100px 0 75px; }
  .cf-trip .cf-timeline { gap: 78px; }
  .cf-trip .cf-timeline__line { left: 25px; }
  .cf-trip .cf-day { grid-template-columns: 50px minmax(0, 1fr); }
  .cf-trip .cf-day__pin { top: 125px; width: 50px; height: 50px; margin-left: 0; border-width: 6px; }
  .cf-trip .cf-day__pin span { font-size: .73rem; }
  .cf-trip .cf-day__card { padding: 24px 18px; border-radius: 28px; }
  .cf-trip .cf-day__header { align-items: start; }
  .cf-trip .cf-day__header h3 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .cf-trip .cf-day__weather { min-width: 46px; min-height: 46px; }
  .cf-trip .cf-feature { min-height: 390px; border-radius: 23px; }
  .cf-trip .cf-feature__content { padding: 23px; }
  .cf-trip .cf-gallery { columns: 1; }
  .cf-trip .cf-memory { border-radius: 21px; }
  .cf-trip .cf-finale__content { min-height: 580px; padding: 38px 22px; border-radius: 30px; }
  .cf-trip .cf-finale__content::before { inset: 10px; border-radius: 23px; }
}

@media (max-width: 430px) {
  .cvi-landing-wrap { width: calc(100% - 24px); }
  .cvi-landing-brand strong { font-size: 14px; }
  .cvi-landing-links .cvi-landing-button { padding-inline: 13px; }
  .cvi-landing-copy h1 { font-size: 50px; }
  .cvi-landing-strip-inner { grid-template-columns: 1fr; }
  .cvi-dashboard-stats { grid-template-columns: 1fr; }
  .cvi-editor-topline .cvi-back-button { padding-inline: 11px; font-size: 0; }
  .cvi-editor-topline .cvi-back-button::before { content: "←"; font-size: 18px; }
  .cvi-editor-actions .cvi-icon-button { display: none; }
  .cf-trip .cf-hero h1 { font-size: 4.25rem; }
  .cf-trip .cf-hero__meta { grid-template-columns: 1fr 1fr; }
  .cf-trip .cf-day { grid-template-columns: 1fr; }
  .cf-trip .cf-timeline__line,
  .cf-trip .cf-day__pin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cvi-demo-cover::after,
  .cvi-landing-button::before,
  .cvi-primary-button::before { animation: none !important; transition: none !important; }
  .cf-trip .cf-hero { background-attachment: scroll; }
}

/* ---------- 5.2.1 Contrast & readability audit ----------
 * Keeps the Luxe direction while enforcing readable text on light/dark surfaces.
 */
:root {
  --cvi-luxe-muted: #53676f;
  --cvi-luxe-muted-strong: #435b64;
  --cvi-luxe-on-dark: rgba(255,255,255,.84);
  --cvi-luxe-on-dark-soft: rgba(255,255,255,.76);
  --cvi-luxe-focus: #1f9e91;
}

/* The dark process section previously lost its background because nth-of-type
 * had greater specificity. Keep the intended cinematic surface in every theme. */
.cvi-studio-landing .cvi-landing-section.cvi-landing-section--paper,
.cvi-studio-landing .cvi-landing-section:nth-of-type(odd).cvi-landing-section--paper,
.cvi-studio-landing .cvi-landing-section:nth-of-type(even).cvi-landing-section--paper {
  color: #fff;
  background:
    radial-gradient(circle at 82% 5%, rgba(121,216,202,.20), transparent 25%),
    linear-gradient(135deg, #07191f 0%, #0d3239 68%, #144f4c 100%);
}
.cvi-studio-landing .cvi-landing-section--paper .cvi-landing-section-heading > span { color: #a8ebe1; }
.cvi-studio-landing .cvi-landing-section--paper .cvi-landing-section-heading h2 { color: #fffaf2; text-shadow: 0 2px 24px rgba(0,0,0,.18); }
.cvi-studio-landing .cvi-process-card { border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.085); }
.cvi-studio-landing .cvi-process-card::before { color: #f2c47e; }
.cvi-studio-landing .cvi-process-card h3 { color: #fff; }
.cvi-studio-landing .cvi-process-card p { color: var(--cvi-luxe-on-dark); }
.cvi-studio-landing .cvi-process-card::after { background: linear-gradient(90deg, #8fe3d6, rgba(143,227,214,.08)); }

/* Light surfaces */
.cvi-studio-landing .cvi-landing-strip span,
.cvi-studio-landing .cvi-landing-section-heading p,
.cvi-studio-landing .cvi-feature-card p,
.cvi-studio-landing .cvi-landing-footer,
.cvi-studio-landing .cvi-landing-split-copy > p,
.cvi-studio-landing .cvi-landing-checks span,
.cvi-studio-landing .cvi-security-user small { color: var(--cvi-luxe-muted); }
.cvi-studio-landing .cvi-landing-section-heading > span,
.cvi-studio-landing .cvi-landing-split-copy > span { color: #0b7168; font-weight: 850; }
.cvi-studio-landing .cvi-feature-card h3,
.cvi-studio-landing .cvi-landing-split-copy h2 { color: var(--cvi-luxe-ink); }
.cvi-studio-landing .cvi-feature-card { background: rgba(255,255,255,.94); }
.cvi-studio-landing .cvi-security-lock p { color: var(--cvi-luxe-on-dark); }
.cvi-studio-landing .cvi-landing-final-card p { color: var(--cvi-luxe-on-dark); }
.cvi-studio-landing .cvi-landing-trust { color: rgba(255,255,255,.82); }
.cvi-studio-landing .cvi-landing-copy > p { color: rgba(247,251,250,.82); }
.cvi-studio-landing .cvi-landing-link { color: rgba(255,255,255,.86); }
.cvi-studio-landing .cvi-demo-float { color: #082129; }

/* Authentication */
.cvi-auth-art__copy p { color: var(--cvi-luxe-on-dark); }
.cvi-auth-features span { color: rgba(255,255,255,.90); }
.cvi-auth-home-link,
.cvi-auth-heading p,
.cvi-auth-form small,
.cvi-check,
.cvi-forgot { color: var(--cvi-luxe-muted); }
.cvi-auth-form label > span,
.cvi-field > span { color: var(--cvi-luxe-muted-strong); }
.cvi-auth-tabs button:not(.is-active) { color: #415860; }
.cvi-auth-form input,
.cvi-field input,
.cvi-field textarea,
.cvi-field select { color: #102d35; background: rgba(255,255,255,.96); }
.cvi-auth-form input::placeholder,
.cvi-field input::placeholder,
.cvi-field textarea::placeholder { color: #6a7a80; opacity: 1; }
.cvi-auth-panel::before { color: rgba(8,27,34,.48); }

/* Portal and dashboard */
.cvi-app-sidebar nav button { color: rgba(255,255,255,.78); }
.cvi-app-sidebar__tip p,
.cvi-app-logout { color: rgba(255,255,255,.75); }
.cvi-app-topbar > div:first-of-type span,
.cvi-dashboard-heading p,
.cvi-dashboard-stat span,
.cvi-album-updated,
.cvi-card-title p,
.cvi-editor-status,
.cvi-editor-progress span { color: var(--cvi-luxe-muted); }
.cvi-dashboard-stat:first-child span { color: rgba(255,255,255,.82); }
.cvi-album-meta { color: #4f646c; }
.cvi-album-updated { font-size: 12px; }
.cvi-status-pill,
.cvi-role-pill { font-size: 11px; }
.cvi-card-menu__dropdown button,
.cvi-card-menu__dropdown a { color: #2f4852; }
.cvi-empty-dashboard p,
.cvi-empty-days p { color: var(--cvi-luxe-muted); }

/* Editor */
.cvi-editor-topline .cvi-back-button,
.cvi-editor-topline .cvi-secondary-button,
.cvi-editor-topline .cvi-icon-button { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }
.cvi-editor-topline .cvi-back-button:hover,
.cvi-editor-topline .cvi-secondary-button:hover,
.cvi-editor-topline .cvi-icon-button:hover { background: rgba(255,255,255,.20); }
.cvi-editor-status { color: rgba(255,255,255,.86); }
.cvi-editor-tabs button:not(.is-active) { color: #405760; }
.cvi-editor-card { background: rgba(255,255,255,.94); }
.cvi-card-title p { color: #5d7077; }
.cvi-publish-box p { color: var(--cvi-luxe-on-dark); }
.cvi-publish-box .cvi-secondary-button { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.12); }
.cvi-publish-box .cvi-secondary-button:hover { background: rgba(255,255,255,.20); }
.cvi-design-preview small,
.cvi-design-preview span { color: rgba(255,255,255,.90); }

/* Public album */
.cf-trip .cf-kicker { color: rgba(255,255,255,.92); }
.cf-trip .cf-hero__lead { color: rgba(255,255,255,.84); }
.cf-trip .cf-btn--glass { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.cf-trip .cf-btn--glass:hover { background: rgba(255,255,255,.21); }
.cf-trip .cf-section-heading p,
.cf-trip .cf-day__story > p { color: color-mix(in srgb, var(--cf-ink) 82%, transparent); }
.cf-trip .cf-day__date { color: color-mix(in srgb, var(--cf-blue) 82%, #071b22); font-weight: 850; }
.cf-trip .cf-tags span,
.cf-trip .cf-highlight-grid span,
.cf-trip .cf-highlight-grid small { color: color-mix(in srgb, var(--cf-ink) 84%, transparent); }
.cf-trip .cf-memory figcaption,
.cf-trip .cf-feature__content { color: #fff; }
.cf-trip .cf-memory figcaption small,
.cf-trip .cf-feature__content small { color: rgba(255,255,255,.84); }
.cf-trip .cf-finale__content p,
.cf-trip .cf-finale__stats span { color: rgba(255,255,255,.82); }
.cf-trip .cf-controls,
.cf-trip .cf-day__card { background: rgba(255,255,255,.93); }

/* Notices, dialogs and feedback */
.cvi-auth-notice,
.cvi-toast,
.cvi-modal,
.cvi-onboarding,
.cvi-account-modal { color: #18343d; }
.cvi-auth-notice.is-success { color: #155f45; }
.cvi-auth-notice.is-error,
.cvi-auth-error,
.cvi-link-danger { color: #a62f25; }

/* Keyboard and touch visibility */
.cvi-studio-landing :where(a,button,input,textarea,select):focus-visible,
.cvi-portal :where(a,button,input,textarea,select):focus-visible,
.cf-trip :where(a,button,input,textarea,select):focus-visible {
  outline: 3px solid var(--cvi-luxe-focus);
  outline-offset: 3px;
}
.cvi-landing-hero :where(a,button):focus-visible,
.cvi-auth-art :where(a,button):focus-visible,
.cvi-app-sidebar :where(a,button):focus-visible,
.cvi-editor-topline :where(a,button):focus-visible,
.cf-trip .cf-hero :where(a,button):focus-visible,
.cf-trip .cf-finale :where(a,button):focus-visible {
  outline-color: #f4ca87;
}
.cvi-studio-landing :where(button,a),
.cvi-portal :where(button,a),
.cf-trip :where(button,a) { -webkit-tap-highlight-color: rgba(31,158,145,.18); }

@media (prefers-contrast: more) {
  .cvi-studio-landing,
  .cvi-portal,
  .cf-trip { --cvi-luxe-line: rgba(8,27,34,.24); }
  .cvi-feature-card,
  .cvi-editor-card,
  .cvi-album-card,
  .cf-trip .cf-day__card,
  .cf-trip .cf-controls { border-color: rgba(8,27,34,.24); }
  .cvi-process-card,
  .cvi-security-lock,
  .cvi-publish-box .cvi-secondary-button,
  .cf-trip .cf-btn--glass { border-color: rgba(255,255,255,.42); }
}
.cvi-studio-landing .cvi-landing-footer > a:not(.cvi-landing-brand) {
  color: #0a6b80;
  font-weight: 850;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}
.cvi-studio-landing .cvi-landing-footer > a:not(.cvi-landing-brand):hover {
  color: #074e5e;
  text-decoration: underline;
}
