/* ==========================================================================
   Localized Voxelization - web workspace
   Visual language from his mockup: deep navy glass, warm gold for actions,
   blue for the current step, thin cool borders. The site header is the site's
   own (master.css) and is never restyled here - everything below is scoped.
   ========================================================================== */

:root {
  --lv-bg: #070c14;
  --lv-bg-2: #0b121d;
  --lv-panel: rgba(17, 26, 39, 0.82);
  --lv-panel-solid: #111a27;
  --lv-panel-2: #162132;
  --lv-line: rgba(160, 190, 230, 0.12);
  --lv-line-2: rgba(160, 190, 230, 0.22);
  --lv-text: #e9eef5;
  --lv-muted: #8d9bb0;
  --lv-faint: #5d6b80;
  --lv-gold: #e8b04a;
  --lv-gold-2: #f3c66d;
  --lv-gold-ink: #1b1305;
  --lv-blue: #2f7df6;
  --lv-green: #3ccf7a;
  --lv-red: #e5484d;
  --lv-radius: 12px;
  --lv-font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lv, .lv * { box-sizing: border-box; }
.lv { font-family: var(--lv-font); color: var(--lv-text); }
.lv a { color: inherit; }
.lv-muted { color: var(--lv-muted); }

/* ---------- buttons ---------- */
.lv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--lv-line-2);
  background: rgba(255, 255, 255, 0.03); color: var(--lv-text); font: 500 14px var(--lv-font);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.lv-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(200, 220, 255, 0.35); }
.lv-btn:active { transform: translateY(1px); }
.lv-btn svg { width: 16px; height: 16px; flex: none; }
.lv-btn--gold { background: var(--lv-gold); border-color: var(--lv-gold); color: var(--lv-gold-ink); font-weight: 600; }
.lv-btn--gold:hover { background: var(--lv-gold-2); border-color: var(--lv-gold-2); }
.lv-btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.lv-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.lv-btn--ghost { border-color: transparent; background: transparent; }
.lv-btn--danger { color: #ffb4b6; border-color: rgba(229, 72, 77, 0.35); }
.lv-btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- forms ---------- */
.lv-field { display: block; margin: 0 0 16px; }
.lv-field > span { display: block; font-size: 13px; color: var(--lv-muted); margin: 0 0 6px; }
.lv-input, .lv-select, .lv-textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--lv-line-2);
  background: rgba(5, 10, 18, 0.6); color: var(--lv-text); font: 400 14px var(--lv-font); outline: none;
}
.lv-textarea { height: 84px; padding: 10px 12px; resize: vertical; }
.lv-input:focus, .lv-select:focus, .lv-textarea:focus { border-color: var(--lv-gold); box-shadow: 0 0 0 3px rgba(232, 176, 74, 0.18); }
.lv-check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 12px; cursor: pointer; }
.lv-check input { width: 16px; height: 16px; accent-color: var(--lv-gold); }
.lv-error { background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.35); color: #ffc9cb; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin: 0 0 16px; }
.lv-note { background: rgba(47, 125, 246, 0.10); border: 1px solid rgba(47, 125, 246, 0.30); color: #cfe0ff; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin: 0 0 16px; }

/* ==========================================================================
   Landing (under the site header)
   ========================================================================== */
.lv-landing {
  position: relative; min-height: calc(100vh - 80px); overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% 45%, rgba(170, 40, 40, 0.20), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(47, 125, 246, 0.10), transparent 60%),
    linear-gradient(180deg, var(--lv-bg-2), var(--lv-bg));
}
/* Full-bleed hero: the heart sits right, the dark left carries the text. */
.lv-landing__bg {
  position: absolute; inset: 0 0 auto 0; height: min(100vh, 900px); z-index: 0;
  background:
    linear-gradient(90deg, var(--lv-bg) 0%, rgba(7, 12, 20, .94) 28%, rgba(7, 12, 20, .62) 42%, rgba(7, 12, 20, 0) 60%),
    linear-gradient(0deg, var(--lv-bg) 0%, rgba(7, 12, 20, 0) 22%),
    url("../images/hero-heart.jpg") 85% 40% / cover no-repeat;
}
.lv-landing__inner {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 96px 32px 72px;
  min-height: min(calc(100vh - 80px), 820px); display: grid; grid-template-columns: minmax(0, 560px); align-items: center;
}
.lv-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--lv-gold); text-transform: uppercase; margin: 0 0 18px; }
.lv-landing h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; font-weight: 600; margin: 0 0 22px; letter-spacing: -0.01em; }
.lv-lede { font-size: 17px; line-height: 1.55; color: #c8d2df; max-width: 520px; margin: 0 0 34px; }
.lv-features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
.lv-features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.lv-feature-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(232, 176, 74, 0.10); border: 1px solid rgba(232, 176, 74, 0.28); color: var(--lv-gold);
}
.lv-feature-icon svg { width: 22px; height: 22px; }
.lv-features strong { display: block; font-size: 15px; font-weight: 600; }
.lv-features span { font-size: 13px; color: var(--lv-muted); }
.lv-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero visual: a lattice drawn live (no stock imagery) */
.lv-hero-art { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; }
.lv-hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lv-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  -webkit-mask-image: radial-gradient(120% 100% at 60% 45%, #000 55%, transparent 85%);
          mask-image: radial-gradient(120% 100% at 60% 45%, #000 55%, transparent 85%);
}
.lv-hero-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 50, 50, .28), transparent 65%); filter: blur(20px); }

.lv-strip { max-width: 1280px; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 2; }
.lv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lv-step-card { background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 18px; }
.lv-step-card b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(47, 125, 246, .18); color: #9cc1ff; font-size: 13px; margin: 0 0 10px; }
.lv-step-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.lv-step-card p { margin: 0; font-size: 13px; color: var(--lv-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .lv-landing__inner { grid-template-columns: 1fr; padding: 260px 20px 40px; min-height: 0; }
  .lv-landing__bg { height: 420px; background:
    linear-gradient(0deg, var(--lv-bg) 0%, rgba(7, 12, 20, 0) 45%),
    url("../images/hero-heart.jpg") 65% 30% / cover no-repeat; }
  .lv-steps { grid-template-columns: 1fr 1fr; }
  .lv-strip { padding: 0 20px 60px; }
}

/* ==========================================================================
   Sign in / sign up
   ========================================================================== */
.lv-auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 48px 20px; background: linear-gradient(180deg, var(--lv-bg-2), var(--lv-bg)); }
.lv-auth { width: 100%; max-width: 420px; background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: 16px; padding: 32px; backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lv-auth h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.lv-auth .lv-sub { margin: 0 0 24px; color: var(--lv-muted); font-size: 14px; }
.lv-tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(5, 10, 18, .55); border: 1px solid var(--lv-line); border-radius: 10px; padding: 4px; margin: 0 0 24px; }
.lv-tabs a { text-align: center; padding: 9px 0; border-radius: 7px; font-size: 14px; color: var(--lv-muted); text-decoration: none; }
.lv-tabs a.is-on { background: var(--lv-panel-2); color: var(--lv-text); box-shadow: inset 0 0 0 1px var(--lv-line-2); }
.lv-auth .lv-btn { width: 100%; }
.lv-auth-foot { margin: 18px 0 0; font-size: 13px; color: var(--lv-muted); text-align: center; }

/* ==========================================================================
   Workspace (under the site header)
   ========================================================================== */
.lv-ws { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 80px); background: linear-gradient(180deg, var(--lv-bg-2), var(--lv-bg)); }
.lv-side { border-right: 1px solid var(--lv-line); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; }
.lv-side a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 8px; color: #c3cddb; text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.lv-side a svg { width: 18px; height: 18px; opacity: .85; }
.lv-side a:hover { background: rgba(255, 255, 255, .04); }
.lv-side a.is-on { background: rgba(232, 176, 74, .10); border-color: rgba(232, 176, 74, .35); color: #fff; }
.lv-side a.is-on svg { color: var(--lv-gold); opacity: 1; }
.lv-side .lv-side-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--lv-line); display: flex; align-items: center; gap: 10px; }
.lv-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lv-blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.lv-side-foot .lv-who { min-width: 0; }
.lv-side-foot .lv-who b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-side-foot .lv-who a { display: inline; height: auto; padding: 0; font-size: 12px; color: var(--lv-muted); border: 0; }

.lv-main { padding: 30px 36px 60px; min-width: 0; }
.lv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 0 26px; }
.lv-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.lv-head p { margin: 0; color: var(--lv-muted); font-size: 14px; }

.lv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 34px; }
.lv-stat { background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.lv-stat svg { width: 30px; height: 30px; color: var(--lv-gold); flex: none; }
.lv-stat b { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.lv-stat span { font-size: 13px; color: var(--lv-muted); }

.lv-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; }
.lv-section-head h2 { margin: 0; font-size: 19px; font-weight: 600; }

.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lv-card { position: relative; background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: var(--lv-radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.lv-card:hover { border-color: rgba(232, 176, 74, .45); transform: translateY(-2px); }
.lv-thumb { display: block; aspect-ratio: 16 / 10; background: #0d1520 center / cover no-repeat; position: relative; }
.lv-thumb--empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(200, 50, 50, .30), transparent 60%), linear-gradient(160deg, #1a2433, #0b111b); }
.lv-thumb--empty svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .28); }
.lv-card-body { padding: 12px 14px 14px; display: flex; justify-content: space-between; gap: 8px; }
.lv-card-body b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-card-body span { font-size: 12px; color: var(--lv-muted); }
.lv-card-menu { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: var(--lv-muted); cursor: pointer; display: grid; place-items: center; }
.lv-card-menu:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lv-card-actions { position: absolute; right: 10px; bottom: 50px; z-index: 5; min-width: 170px; background: var(--lv-panel-solid); border: 1px solid var(--lv-line-2); border-radius: 10px; padding: 6px; display: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.lv-card-actions.is-open { display: block; }
.lv-card-actions a, .lv-card-actions button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; color: var(--lv-text); font: 400 13px var(--lv-font); text-decoration: none; border-radius: 6px; cursor: pointer; text-align: left; }
.lv-card-actions a:hover, .lv-card-actions button:hover { background: rgba(255, 255, 255, .06); }
.lv-card-actions .is-danger { color: #ffb4b6; }
.lv-new-card { display: grid; place-items: center; min-height: 100%; aspect-ratio: auto; border: 1px dashed var(--lv-line-2); border-radius: var(--lv-radius); color: var(--lv-muted); text-decoration: none; font-size: 14px; padding: 30px; background: rgba(255, 255, 255, .015); cursor: pointer; }
.lv-new-card:hover { border-color: var(--lv-gold); color: #fff; }
.lv-new-card svg { width: 30px; height: 30px; margin: 0 auto 8px; display: block; color: var(--lv-gold); }
.lv-empty { padding: 40px; text-align: center; color: var(--lv-muted); border: 1px dashed var(--lv-line-2); border-radius: var(--lv-radius); }

.lv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lv-table th { text-align: left; font-weight: 500; color: var(--lv-muted); padding: 10px 12px; border-bottom: 1px solid var(--lv-line); }
.lv-table td { padding: 12px; border-bottom: 1px solid var(--lv-line); vertical-align: middle; }
.lv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; background: rgba(255, 255, 255, .06); color: #cdd6e2; }
.lv-pill--on { background: rgba(60, 207, 122, .14); color: #9ff0c0; }
.lv-pill--off { background: rgba(229, 72, 77, .14); color: #ffb4b6; }
.lv-pill--blue { background: rgba(47, 125, 246, .18); color: #a9c8ff; }

@media (max-width: 1000px) {
  .lv-ws { grid-template-columns: 1fr; }
  .lv-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--lv-line); padding: 10px; }
  .lv-side .lv-side-foot { display: none; }
  .lv-stats { grid-template-columns: 1fr 1fr; }
  .lv-main { padding: 22px 18px 50px; }
}

/* ==========================================================================
   Modal (share, rename, new)
   ========================================================================== */
.lv-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(2, 5, 10, .66); backdrop-filter: blur(4px); padding: 20px; }
.lv-modal.is-open { display: grid; }
.lv-dialog { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; background: var(--lv-panel-solid); border: 1px solid var(--lv-line-2); border-radius: 16px; padding: 24px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.lv-dialog--wide { max-width: 720px; }
.lv-dialog-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; }
.lv-dialog-head h2 { margin: 0; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.lv-dialog-head h2 svg { width: 20px; height: 20px; }
.lv-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--lv-muted); cursor: pointer; font-size: 20px; line-height: 1; }
.lv-x:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.lv-dialog .lv-sub { margin: 0 0 20px; color: var(--lv-muted); font-size: 13px; }
.lv-dialog h3 { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: #dbe3ee; }
.lv-radio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--lv-line); border-radius: 10px; margin: 0 0 8px; cursor: pointer; font-size: 14px; }
.lv-radio input { accent-color: var(--lv-gold); width: 16px; height: 16px; }
.lv-radio small { color: var(--lv-muted); font-size: 12px; margin-left: auto; }
.lv-radio:has(input:checked) { border-color: var(--lv-gold); background: rgba(232, 176, 74, .07); }
.lv-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin: 22px 0 0; }
.lv-linkbox { display: flex; gap: 8px; align-items: center; border: 1px solid var(--lv-line-2); border-radius: 8px; padding: 6px 6px 6px 12px; background: rgba(5, 10, 18, .6); font-size: 13px; }
.lv-linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--lv-text); font: 400 13px var(--lv-font); outline: none; }

/* ==========================================================================
   App shell: authoring + review (full window, own top bar, no logo)
   ========================================================================== */
html.lv-app-html, html.lv-app-html body { margin: 0; height: 100%; background: var(--lv-bg); overflow: hidden; }
.lv-app { display: grid; grid-template-rows: 56px minmax(0, 1fr); height: 100vh; }
.lv-top { display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--lv-line); background: rgba(9, 14, 22, .96); }
.lv-top-title { font-size: 15px; font-weight: 600; white-space: nowrap; }
.lv-top-sep { width: 1px; height: 22px; background: var(--lv-line-2); }
.lv-top-mode { font-size: 14px; color: var(--lv-muted); white-space: nowrap; }
.lv-top-name { font-size: 14px; color: #dbe3ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.lv-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lv-top-actions .lv-btn { height: 34px; padding: 0 12px; font-size: 13px; border-color: transparent; background: transparent; }
.lv-top-actions .lv-btn:hover { background: rgba(255, 255, 255, .06); }
.lv-badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 500; border: 1px solid var(--lv-line-2); color: #cfd8e4; }
.lv-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lv-green); }
.lv-badge--review { background: var(--lv-blue); border-color: var(--lv-blue); color: #fff; }
.lv-badge--review i { background: #fff; }
.lv-badge--warn i { background: var(--lv-gold); }

.lv-stage { position: relative; min-height: 0; background: #05080d; }
.lv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05080d; }
.lv-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px;
  background: radial-gradient(900px 600px at 50% 55%, rgba(170, 40, 40, .18), transparent 60%), #06090f; }
.lv-placeholder canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.lv-placeholder-card { position: relative; max-width: 460px; background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: 14px; padding: 26px; backdrop-filter: blur(10px); }
.lv-placeholder-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.lv-placeholder-card p { margin: 0 0 6px; color: var(--lv-muted); font-size: 14px; line-height: 1.55; }

/* review: the scenario card floating on the right, as in the mockup */
.lv-info { position: absolute; top: 18px; right: 18px; width: 290px; z-index: 5; background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: 14px; padding: 16px; backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.lv-info.is-hidden { display: none; }
.lv-info-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.lv-info-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--lv-line); border-radius: 10px; margin: 0 0 14px; }
.lv-info-item .lv-thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.lv-info-item b { display: block; font-size: 13px; }
.lv-info-item span { font-size: 12px; color: var(--lv-muted); }
.lv-info dl { margin: 0; font-size: 13px; }
.lv-info dt { color: var(--lv-muted); font-size: 12px; margin: 10px 0 3px; }
.lv-info dd { margin: 0; color: #dfe6ef; line-height: 1.5; white-space: pre-line; }
.lv-info-toggle { position: absolute; top: 18px; right: 18px; z-index: 4; }

/* gate (password / sign-in for a share link) */
.lv-gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 600px at 50% 55%, rgba(170, 40, 40, .16), transparent 60%), #06090f; }

@media (max-width: 760px) {
  .lv-top-actions .lv-btn span { display: none; }
  .lv-top-name, .lv-top-sep { display: none; }
  .lv-info { width: auto; left: 12px; right: 12px; top: auto; bottom: 12px; }
}
