html[data-design-kit="liquora-portal"] {
  --fv-canvas:#f7f8fc;
  --fv-surface:#fff;
  --fv-ink:#17233f;
  --fv-muted:#65708a;
  --fv-accent:#635bff;
  --fv-accent-blue:#278be8;
  --fv-soft:#eef1ff;
  --fv-border:#e1e5f0;
  --fv-font:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  --fv-display:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  --fv-kit-marker:liquora-portal-1-0-0;
  background:var(--fv-canvas);
  color:var(--fv-ink);
  font-family:var(--fv-font)
}
html[data-design-kit="liquora-portal"] body {
  margin:0;
  background:var(--fv-canvas);
  color:var(--fv-ink);
  font-family:var(--fv-font);
  --background:230 33% 98%;
  --foreground:226 45% 17%;
  --primary:242 100% 68%;
  --primary-foreground:0 0% 100%;
  --border:230 24% 90%;
  --radius:0.875rem;
  --lq-chat-primary:#635bff;
  --lq-chat-primary-hover:#5148e8;
  --lq-chat-primary-soft:#efefff;
  --lq-chat-brand-gradient:linear-gradient(120deg,#278be8,#635bff 55%,#9559ed);
  --lq-chat-user-bubble:#eef1ff;
  --lq-chat-user-bubble-text:#17233f;
  --font-ui:var(--fv-font);
  --font-display:var(--fv-display)
}
html[data-design-kit="liquora-portal"] :focus-visible {
  outline:2px solid var(--fv-accent);
  outline-offset:3px
}
.fv-surface {
  min-height:100vh;
  background:var(--fv-canvas);
  color:var(--fv-ink);
  font-family:var(--fv-font);
  line-height:1.6
}
.fv-portal-home { position:relative; isolation:isolate; background:linear-gradient(180deg,#f8faff 0%,#f6f4fb 100%) }
.liquora-ambient-flow { position:absolute; inset:0; z-index:0; display:block; width:100%; height:100%; pointer-events:none; opacity:.9 }
.fv-surface * { box-sizing:border-box }
.fv-surface button,.fv-surface input,.fv-surface textarea,.fv-surface select { font:inherit }
.fv-container { position:relative; z-index:1; max-width:1240px; margin:auto; padding:32px 40px }
.fv-topbar {
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:82px;
  padding:14px 40px;
  border-bottom:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(22px)
}
.fv-brand { display:flex; align-items:center; gap:20px; min-width:0 }
.fv-logo { width:142px; height:auto; object-fit:contain }
.fv-brand-fallback { display:none; font-size:20px; letter-spacing:-.02em }
.fv-logo[hidden] + .fv-brand-fallback { display:block }
.fv-hero:has(.fv-hero-photo[hidden]) { grid-template-columns:1fr }
.fv-brand span { padding-left:20px; border-left:1px solid var(--fv-border); color:var(--fv-muted); font-size:14px; white-space:nowrap }
.fv-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap }
.fv-between { justify-content:space-between }
.fv-muted { color:var(--fv-muted); font-size:14px }
.fv-heading {
  margin:0 0 14px;
  background:linear-gradient(100deg,#171b47 12%,#293fb2 56%,#5826cb 92%);
  background-clip:text;
  color:transparent;
  font-family:var(--fv-display);
  font-size:clamp(30px,3.2vw,44px);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.14
}
.fv-hero-kicker { display:block; margin-bottom:12px; color:#6370c9; font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase }
.fv-hero {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  min-height:340px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.74);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.54),rgba(255,255,255,.16) 45%,rgba(255,255,255,.3));
  box-shadow:0 26px 80px rgba(57,69,135,.14);
  backdrop-filter:blur(12px) saturate(165%)
}
.fv-hero-copy { z-index:1; display:flex; flex-direction:column; justify-content:center; padding:40px 42px }
.fv-hero-copy p { margin:8px 0; color:var(--fv-muted) }
.fv-hero-copy > p:first-child { margin:0 0 16px; color:#59657f }
.fv-hero-copy > p:last-child { max-width:420px; font-size:15px; line-height:1.8 }
.fv-hero-photo { width:100%; height:100%; min-height:340px; object-fit:cover; object-position:center; opacity:.94 }
.fv-grid { display:flex; flex-direction:column; gap:16px; margin:24px 0 0 }
.fv-entry-row { display:grid; grid-template-columns:repeat(var(--fv-row-count),minmax(0,1fr)); gap:16px }
.fv-grid[aria-busy="true"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.fv-card {
  min-width:0;
  padding:22px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.54),rgba(255,255,255,.16) 45%,rgba(255,255,255,.3));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 2px rgba(88,79,143,.09),0 12px 32px rgba(57,69,135,.08);
  backdrop-filter:blur(12px) saturate(165%)
}
.fv-entry {
  position:relative;
  display:flex;
  min-height:210px;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
  overflow:hidden;
  padding:24px 20px;
  color:var(--fv-ink);
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 2px rgba(88,79,143,.09),0 12px 32px rgba(57,69,135,.08);
  transition:transform 360ms cubic-bezier(.22,1,.36,1),border-color 220ms,box-shadow 220ms,background 220ms
}
.fv-entry::after {
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(ellipse at 0 0,rgba(255,255,255,.8),transparent 48%),radial-gradient(ellipse at 100% 100%,rgba(255,255,255,.58),transparent 45%);
  opacity:.65;
  content:"";
  pointer-events:none
}
.fv-entry::before {
  position:absolute;
  inset:1px;
  z-index:1;
  border:1px solid rgba(255,255,255,.3);
  border-radius:inherit;
  box-shadow:inset 1px 0 1px rgba(255,255,255,.5),inset -1px 0 1px rgba(89,66,166,.04);
  content:"";
  pointer-events:none
}
.fv-entry > * { position:relative; z-index:2 }
.fv-entry:active:not(:disabled) { transform:translateY(-1px) scale(.985) }
.fv-entry:hover:not(:disabled) {
  transform:translateY(-4px) scale(1.01);
  border-color:rgba(255,255,255,.96);
  background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(255,255,255,.22) 45%,rgba(255,255,255,.4));
  box-shadow:inset 0 1px 2px #fff,inset 0 -2px 3px rgba(104,91,166,.1),0 20px 44px rgba(48,36,124,.13)
}
.fv-entry:disabled { cursor:not-allowed; opacity:.55 }
.fv-entry strong { margin-top:2px; color:#24204e; font-family:var(--fv-display); font-size:clamp(17px,1.5vw,20px); font-weight:650; letter-spacing:-.035em; line-height:1.4; text-wrap:balance }
.fv-entry .fv-muted { display:block; color:#555a7b; font-size:13px; font-weight:400; line-height:1.75; letter-spacing:.005em }
.fv-entry-icon {
  display:grid;
  width:46px;
  height:46px;
  place-items:center;
  border:1px solid rgba(100,79,194,.24);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(210,239,255,.78),rgba(181,176,248,.34) 52%,rgba(224,204,255,.6));
  color:#40249f;
  backdrop-filter:blur(5px) saturate(175%);
  box-shadow:inset 0 2px 3px rgba(255,255,255,.95),inset 0 -2px 4px rgba(89,66,166,.13),0 4px 10px rgba(48,36,124,.08)
}
.fv-entry .fv-action {
  display:flex;
  align-items:center;
  gap:5px;
  align-self:flex-end;
  margin-top:auto;
  color:var(--fv-muted);
  font-size:13px;
  transition:color 180ms
}
.fv-entry:hover .fv-action { color:var(--fv-accent) }
.fv-button {
  min-height:42px;
  padding:9px 18px;
  border:1px solid var(--fv-border);
  border-radius:10px;
  background:var(--fv-surface);
  color:var(--fv-ink);
  cursor:pointer
}
.fv-button[data-primary=true] { border-color:var(--fv-accent); background:var(--fv-accent); color:#fff }
.fv-button:disabled { cursor:not-allowed; opacity:.5 }
.fv-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; background:var(--fv-soft); color:var(--fv-muted); font-size:12px }
.fv-badge[data-tone=error] { background:#fff0f3; color:#b4234d }
.fv-notice { margin:18px 0; padding:16px 18px; border:1px solid #eadffa; border-radius:14px; background:#faf7ff }
.fv-empty { padding:44px 20px; color:var(--fv-muted); text-align:center }
.fv-empty svg { color:var(--fv-accent) }
.fv-field { display:flex; flex-direction:column; gap:8px; font-size:14px }
.fv-field input,.fv-field textarea,.fv-field select { min-width:0; padding:12px; border:1px solid var(--fv-border); border-radius:10px; background:#fff; color:var(--fv-ink) }
.fv-list { display:flex; flex-direction:column }
.fv-list-row { padding:16px 0; border-bottom:1px solid var(--fv-border) }
.fv-cover { display:grid; height:132px; place-items:center; border-radius:12px; background:var(--fv-soft); font-size:24px }
.fv-split { display:grid; grid-template-columns:240px 1fr; gap:24px }
.fv-chat { display:grid; grid-template-columns:220px 1fr; min-height:560px }
.fv-chat aside { padding:24px; background:var(--fv-soft) }
.fv-chat main { display:flex; flex-direction:column; gap:24px; padding:32px }
.fv-message { max-width:85%; padding:18px 22px; border-radius:14px; white-space:pre-wrap }
.fv-message[data-role=user] { align-self:flex-end; background:var(--fv-soft) }
.fv-compose { margin-top:auto; padding:18px; border:1px solid var(--fv-border); border-radius:14px; background:#fff }
.fv-compose textarea { width:100%; min-height:64px; border:0; background:transparent; resize:vertical }
.fv-table-scroll { overflow:auto }
.fv-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left }
.fv-table th,.fv-table td { padding:12px; border-bottom:1px solid var(--fv-border); white-space:nowrap }
.fv-steps { display:flex; gap:16px; flex-wrap:wrap }
.fv-step { display:flex; align-items:center; gap:8px }
.fv-section { margin:24px 0 }
.fv-gallery-label { color:var(--fv-muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase }
.fv-metric { font-size:36px; font-weight:650 }
.fv-source { color:var(--fv-muted); font-size:12px }
.fv-progress { height:6px; overflow:hidden; border-radius:99px; background:var(--fv-soft) }
.fv-progress span { display:block; height:100%; background:linear-gradient(90deg,var(--fv-accent-blue),var(--fv-accent)) }
.fv-skeleton { height:18px; margin:12px 0; border-radius:8px; background:linear-gradient(90deg,#eef0f7,#f8f8fc,#eef0f7); background-size:200% 100%; animation:fv-skeleton 1.4s infinite }
.fv-header-actions { display:flex; align-items:center; gap:16px }
.fv-language-switch { display:flex; gap:4px }
.fv-language-switch button,.fv-account-trigger { min-height:40px; border:0; border-radius:10px; background:transparent; color:var(--fv-muted); cursor:pointer }
.fv-language-switch button { position:relative; width:42px; font-size:14px }
.fv-language-switch button[aria-pressed=true] { color:var(--fv-accent); font-weight:600 }
.fv-language-switch button[aria-pressed=true]::after { position:absolute; right:11px; bottom:3px; left:11px; height:2px; border-radius:2px; background:var(--fv-accent); content:"" }
.fv-account-trigger { display:flex; align-items:center; gap:8px; padding:0 10px; color:var(--fv-ink) }
.fv-account-trigger span { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.fv-language-switch button:hover,.fv-account-trigger:hover { background:var(--fv-soft) }
html[data-design-kit="liquora-portal"] .fv-account-menu { min-width:180px; border-color:var(--fv-border); background:#fff; color:var(--fv-ink); font-family:var(--fv-font) }
html[data-design-kit="liquora-portal"] .fv-account-menu [role=menuitem] { min-height:40px; cursor:pointer }
html[data-design-kit="liquora-portal"] .fv-account-menu [role=menuitem]:focus { background:var(--fv-soft); color:var(--fv-ink) }
.fv-home-guide-area { position:relative }
.fv-home-guide-link { display:inline-flex; align-items:center; gap:8px; color:var(--fv-muted); font-size:13px; text-decoration:none }
.fv-home-guide-link:hover { color:var(--fv-accent) }
.fv-home-guide-hint { position:absolute; bottom:36px; left:0; z-index:5; display:flex; width:280px; align-items:center; gap:8px; padding:12px; border:1px solid var(--fv-border); border-radius:12px; background:#fff; box-shadow:0 12px 30px rgba(45,55,110,.12); font-size:13px }
.fv-home-guide-hint-link { flex:1; color:var(--fv-ink); text-decoration:none }
.fv-home-guide-hint button { border:0; background:transparent; color:var(--fv-muted); cursor:pointer }
.fv-footer { margin-top:26px; padding:18px 0 8px; border-top:1px solid var(--fv-border); color:var(--fv-muted); font-size:12px }
@keyframes fv-skeleton { to { background-position:-200% 0 } }
@media(min-width:1000px) {
  .fv-portal-home .fv-hero-copy { padding-right:28px }
  .fv-portal-home .fv-hero-photo {
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M12 0C-3 18 19 28 8 48C-4 67 12 79 0 100H100V0Z'/%3E%3C/svg%3E");
    mask-size:100% 100%;
    mask-repeat:no-repeat
  }
}
@media(max-width:899px) {
  .fv-entry-row { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .fv-grid[aria-busy="true"] { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:799px) {
  .fv-container { padding:24px }
  .fv-topbar { padding:14px 24px }
  .fv-hero { grid-template-columns:1fr }
  .fv-hero-copy { padding:32px }
  .fv-hero-photo { min-height:220px; height:220px }
  .fv-split { grid-template-columns:1fr }
}
@media(max-width:599px) {
  .fv-container { padding:16px }
  .fv-topbar { flex-wrap:wrap; gap:8px; padding:10px 16px }
  .fv-brand { gap:12px }
  .fv-brand span { padding-left:12px }
  .fv-logo { width:118px }
  .fv-header-actions { gap:6px }
  .fv-account-trigger span { max-width:76px }
  .fv-hero { border-radius:18px }
  .fv-hero-copy { padding:26px 24px }
  .fv-heading { font-size:30px }
  .fv-entry-row,.fv-grid[aria-busy="true"] { grid-template-columns:1fr }
  .fv-entry { min-height:168px }
  .fv-chat { grid-template-columns:1fr }
  .fv-chat aside { display:none }
  .fv-footer { align-items:flex-start }
}
@media(prefers-reduced-motion:reduce) {
  .fv-surface * { scroll-behavior:auto!important; transition:none!important; animation:none!important }
}

/* The complete application card is the navigation target. */
html[data-design-kit="liquora-portal"] .fv-entry .fv-action { display:none }

.fv-entry-icon svg { width:27px; height:27px; stroke-width:2; stroke:var(--fv-icon-stroke); filter:drop-shadow(0 1px 0 rgba(255,255,255,.9)) }
@media(prefers-reduced-motion:reduce) {
  .fv-entry,.fv-entry-icon { transition:none }
  .fv-entry:hover:not(:disabled),.fv-entry:active:not(:disabled),.fv-entry:hover:not(:disabled) .fv-entry-icon { transform:none }
}

/* Liquora's feature carousel shares the existing glass hero and wave mask. */
.lq-hero-carousel { display:block }
.lq-hero-slide { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); height:390px; animation:lq-hero-reveal 500ms ease-out }
.lq-hero-slide[hidden] { display:none }
.lq-hero-carousel .fv-hero-copy { padding:32px 34px 76px; min-width:0 }
.lq-hero-carousel .fv-hero-kicker { margin-bottom:16px; font-size:11px; letter-spacing:.12em }
.lq-hero-carousel .fv-heading { font-size:clamp(28px,2.8vw,40px); line-height:1.22; white-space:pre-line; text-wrap:balance }
.lq-hero-carousel .lq-hero-greeting { margin:0 0 12px; font-size:14px }
.lq-hero-carousel .lq-hero-description { margin:8px 0 0; max-width:360px; font-size:14px; line-height:1.8 }
.lq-hero-carousel .fv-hero-photo { height:390px; min-height:0 }
.lq-hero-controls { position:absolute; z-index:3; bottom:18px; left:34px; right:22px; display:flex; align-items:center; justify-content:space-between; gap:12px; pointer-events:none }
.lq-hero-controls button { cursor:pointer; touch-action:manipulation }
.lq-hero-pagination,.lq-hero-arrows { display:flex; align-items:center; gap:10px; pointer-events:auto }
.lq-hero-dots { display:flex; align-items:center; gap:0 }
.lq-hero-dots button { display:grid; width:24px; height:36px; place-items:center; padding:0; border:0; background:transparent }
.lq-hero-dots button > span { display:block; width:5px; height:5px; border-radius:99px; background:#afb2cf; transition:width 220ms,background 220ms }
.lq-hero-dots button[aria-current=true] > span { width:19px; background:linear-gradient(100deg,#2189db,#7952db) }
.lq-hero-play,.lq-hero-arrows button { display:grid; width:36px; height:36px; place-items:center; padding:0; border:1px solid rgba(255,255,255,.8); border-radius:50%; background:rgba(255,255,255,.65); color:#42416a; backdrop-filter:blur(12px) }
.lq-hero-arrows { gap:8px }
.lq-hero-arrows button:hover,.lq-hero-play:hover { background:rgba(255,255,255,.95) }
.lq-hero-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
@keyframes lq-hero-reveal { from { opacity:.45 } to { opacity:1 } }
@media(max-width:799px) {
  .lq-hero-slide { display:flex; flex-direction:column; height:auto }
  .lq-hero-carousel .fv-hero-copy { min-height:320px; padding:30px 30px 68px }
  .lq-hero-carousel .fv-heading { font-size:30px }
  .lq-hero-carousel .fv-hero-photo { height:240px; width:100%; object-fit:cover }
  .lq-hero-carousel .lq-hero-pagination { position:absolute; left:0; bottom:254px }
  .lq-hero-controls { left:30px; right:18px; bottom:16px }
  .lq-hero-arrows { margin-left:auto }
}
@media(max-width:399px) {
  .lq-hero-carousel .fv-hero-copy { padding-inline:24px }
  .lq-hero-controls { left:24px }
  .lq-hero-pagination { gap:6px }
  .lq-hero-dots button { width:22px }
}
@media(prefers-reduced-motion:reduce) { .lq-hero-slide { animation:none } }

.lq-hero-link { position:absolute; inset:0; z-index:2; border-radius:inherit; cursor:pointer; touch-action:manipulation }
html[data-design-kit="liquora-portal"] .lq-hero-link:focus-visible { outline-offset:-5px }

/* Optical surfaces share the background simulation; content remains above light. */
.lq-water-photo { position:relative; overflow:hidden }
.lq-water-photo > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center }
.lq-photo-refraction { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; visibility:hidden }
.lq-photo-refraction[data-water-status="ready"] { visibility:visible }
.lq-topbar-water { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; border-radius:inherit }
.fv-topbar > :not(.lq-topbar-water) { position:relative; z-index:1 }
