/* ============================================================================
   PHOTLIN — Editorial Landing & 1:1 Pixel-Faithful App Showcases
   Outer editorial page: warm ivory paper (#F6F5F1), deep ink (#141413), calm
   flora margins and sparse koi.
   Inside every showcase: EXACT PHOTLIN StudioChrome UI matching the real
   Desktop & Android apps widget-for-widget.
   ========================================================================== */

:root {
  --paper: #F6F5F1;
  --paper-2: #EFECE5;
  --bg: #F6F5F1;
  --surface: #EFECE5;
  --ink: #141413;
  --ink-2: #5F5E5A;
  --ink-soft: #5F5E5A;
  --ink-3: #8A8882;
  --dim: #7C7A74;
  --line: rgba(20, 20, 19, 0.12);
  --line-soft: rgba(20, 20, 19, 0.07);
  --shadow-sm: 0 10px 28px rgba(20, 20, 19, 0.06);
  --shadow-lg: 0 26px 64px rgba(20, 20, 19, 0.14);

  /* REAL PHOTLIN DESKTOP StudioChrome (Ui.kt) */
  --app-shell: #111215;
  --app-canvas: #060708;
  --app-card: #16171B;
  --app-card-2: #1B1D22;
  --app-hair: rgba(255, 255, 255, 0.085);
  --app-hair-strong: rgba(255, 255, 255, 0.16);
  --app-pill: rgba(255, 255, 255, 0.10);
  --app-hover: rgba(255, 255, 255, 0.055);
  --app-text: #F1F5F9;
  --app-muted: rgba(241, 245, 249, 0.58);
  --app-faint: rgba(241, 245, 249, 0.36);

  --ph-blue: #1890FF;
  --ph-blue-hi: #0A84FF;
  --ph-cyan: #00C0E8;
  --ph-green: #34C759;
  --ph-red: #FF383C;
  --ph-yellow: #FFCC00;
  --ph-purple: #AF52DE;

  /* REAL PHOTLIN ANDROID DARK MODE */
  --and-bg: #070C10;
  --and-inv: #151A20;
  --and-fg: #F1F9FF;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- Ambient flora layer ---------- */
.flora-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.52;
}
.flora-layer .flora { position: absolute; }
.flora-layer .flora.l { left: -12px; }
.flora-layer .flora.r { right: -12px; }
.flora-layer .f-1 { top: 8vh; }
.flora-layer .f-2 { top: 44vh; transform: scaleX(-1); }
.flora-layer .f-3 { top: 76vh; }
.flora-layer .f-4 { top: 22vh; transform: scaleX(-1); }
.flora svg { display: block; overflow: visible; }
.flora .bob { transform-origin: 50% 90%; animation: flora-bob 7.5s ease-in-out infinite; }
.flora .sway { animation: flora-sway 4.4s ease-in-out infinite; }
@keyframes flora-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.2deg); } }
@keyframes flora-sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav-in {
  max-width: 1320px;
  margin: 0 auto;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark svg { width: 30px; height: 19px; display: block; }
.brand-word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.release-pill {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-size: 13.5px; font-weight: 600;
}
.nav-cta:hover { opacity: 0.88; }

/* ---------- Page container ---------- */
main, footer { position: relative; z-index: 2; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 42px; text-align: center; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 6.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--ink-2);
  max-width: 500px;
  margin: 0 auto 26px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
  margin-bottom: 30px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--ink);
  font-size: 14px; font-weight: 500; border: 1px solid var(--line); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.device-bar {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); margin-bottom: 20px;
}
.device-btn {
  border: 0; background: transparent; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.device-btn.active { background: var(--ink); color: #fff; }

/* ---------- Section headers ---------- */
.studio-sec { padding: 78px 0; border-top: 1px solid var(--line-soft); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px;
}
.sec-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.06; letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
}
.sec-desc { max-width: 400px; font-size: 14px; color: var(--ink-2); margin: 0; }
.stage-shell { width: 100%; }

/* ============================================================================
   SHARED WINDOWS DESKTOP WINDOW CHROME (Matches every screenshot)
   ========================================================================== */
.hero-stage { margin: 0 auto; text-align: left; transition: max-width .25s ease; }
.hero-stage[data-device="desktop"] { max-width: 1260px; }
.hero-stage[data-device="android"] { max-width: 404px; }

.win-window {
  background: var(--app-shell);
  color: var(--app-text);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 34px 90px rgba(10, 12, 16, 0.34), 0 8px 24px rgba(10, 12, 16, 0.18);
  font-size: 12.5px;
  line-height: 1.35;
}
.win-titlebar {
  height: 30px;
  background: #060708;
  border-bottom: 1px solid var(--app-hair);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.win-title-left { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--app-muted); }
.win-title-left svg { width: 16px; height: 10px; color: var(--ph-blue); }
.win-title-btns { display: flex; align-items: center; gap: 18px; color: var(--app-muted); font-size: 11px; }

/* Shared small icon button & blue primary pill */
.desk-ico-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent;
  color: var(--app-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.desk-ico-btn:hover { background: var(--app-hover); color: #fff; }
.desk-ico-btn.is-white { background: #fff; color: #0b0d10; }
.desk-ico-btn.is-blue { background: var(--ph-blue); color: #fff; }
.desk-blue-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 13px; border-radius: 8px; border: 0;
  background: var(--ph-blue); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.desk-blue-btn:hover { filter: brightness(1.08); }
.desk-pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  background: var(--app-card-2); border: 1px solid var(--app-hair);
  color: var(--app-text); font-size: 11.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.desk-pill-btn:hover { border-color: var(--app-hair-strong); }
.desk-pill-btn.active { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; font-weight: 600; }
.desk-pill-btn.white { background: #fff; border-color: #fff; color: #0b0d10; font-weight: 600; }

/* ============================================================================
   1:1 DESKTOP HOME SCREEN (HomeScreen.kt)
   ========================================================================== */
.desk-shell {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 292px;
  min-height: 600px;
  background: var(--app-shell);
}
.desk-side {
  display: flex; flex-direction: column; background: var(--app-shell);
  border-right: 1px solid var(--app-hair); padding-bottom: 8px; user-select: none;
}
.desk-side-head { height: 48px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 9px; }
.desk-side-head svg.ph-logo { width: 24px; height: 15px; flex: none; }
.desk-side-head .ph-name { font-size: 14px; font-weight: 600; color: var(--app-text); flex: 1; }
.desk-new-folder {
  margin: 0 10px 6px; padding: 8px 11px; border-radius: 9px;
  background: var(--app-card); border: 1px solid var(--app-hair);
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--app-text); cursor: pointer;
}
.desk-nav-list { display: flex; flex-direction: column; padding: 2px 6px; gap: 1px; }
.desk-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 12.5px; color: rgba(241, 245, 249, 0.82); cursor: pointer;
}
.desk-nav-item:hover { background: var(--app-hover); color: #fff; }
.desk-nav-item svg { width: 15px; height: 15px; color: var(--app-muted); flex: none; }
.desk-folders-hd {
  margin: 10px 14px 6px; padding-top: 10px; border-top: 1px solid var(--app-hair);
  display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--app-faint);
}
.desk-folders { flex: 1; padding: 0 6px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.desk-folder-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px;
  border: 0; background: transparent; text-align: left; cursor: pointer; width: 100%;
}
.desk-folder-row:hover { background: var(--app-hover); }
.desk-folder-row.active { background: var(--app-pill); }
.desk-folder-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
.desk-folder-meta { min-width: 0; flex: 1; }
.desk-folder-name { font-size: 12.5px; font-weight: 500; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-folder-sub { font-size: 11px; color: var(--app-muted); }
.desk-profile {
  margin: 8px 10px 0; padding: 8px 8px 2px; border-top: 1px solid var(--app-hair);
  display: flex; align-items: center; gap: 9px;
}
.desk-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #1C1E23;
  border: 1px solid rgba(255, 204, 0, 0.45); color: var(--ph-yellow);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.desk-profile-meta { flex: 1; min-width: 0; }
.desk-profile-name { font-size: 12px; font-weight: 600; color: var(--app-text); }
.desk-profile-cr { font-size: 11px; color: var(--app-muted); }

.desk-center { display: flex; flex-direction: column; min-width: 0; background: var(--app-shell); }
.desk-toolbar { height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.desk-tb-title { font-size: 13.5px; font-weight: 600; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; margin-right: 4px; }
.desk-dd {
  height: 29px; padding: 0 9px; border-radius: 8px; background: var(--app-card); border: 1px solid var(--app-hair);
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--app-text); white-space: nowrap;
}
.desk-dd span.muted { color: var(--app-muted); }
.desk-seg {
  height: 29px; padding: 2px; border-radius: 8px; background: var(--app-canvas); border: 1px solid var(--app-hair);
  display: inline-flex; gap: 2px;
}
.desk-seg button {
  min-width: 24px; height: 23px; padding: 0 6px; border: 0; border-radius: 6px;
  background: transparent; color: var(--app-muted); font-size: 11px; font-weight: 600; cursor: pointer;
}
.desk-seg button.active { background: var(--app-pill); color: #fff; }
.desk-tb-spacer { flex: 1; }
.desk-bell {
  height: 29px; padding: 0 9px; border-radius: 8px; background: var(--app-card); border: 1px solid var(--app-hair);
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--app-text);
}
.desk-canvas-wrap {
  flex: 1; margin: 0 8px 10px 8px; background: var(--app-canvas); border: 1px solid var(--app-hair);
  border-radius: 12px; padding: 10px 10px 10px 22px; position: relative; overflow: hidden;
}
.desk-dot-rail {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.desk-dot-rail i { display: block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.desk-dot-rail i.on { width: 5px; height: 5px; background: #fff; }
.desk-grid { display: grid; gap: 10px; }
.desk-grid[data-density="S"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-grid[data-density="M"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desk-grid[data-density="L"] { grid-template-columns: 1fr; }
.desk-tile { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.desk-tile-imgbox {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(52, 199, 89, 0.34); background: #0e1014; aspect-ratio: 3 / 4;
}
.desk-tile.selected .desk-tile-imgbox { border-color: var(--ph-blue); box-shadow: 0 0 0 1px var(--ph-blue); }
.desk-tile-imgbox img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.desk-lock-pill {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(12,13,16,0.68); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px);
}
.desk-lock-pill.unlocked { background: rgba(52, 199, 89, 0.88); border-color: rgba(52,199,89,0.9); color: #06130a; }
.desk-tile-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--app-muted); padding: 0 2px; }

.desk-inspector { background: var(--app-shell); border-left: 1px solid var(--app-hair); display: flex; flex-direction: column; }
.desk-insp-head { height: 48px; padding: 0 12px 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--app-hair); }
.desk-insp-title { font-size: 13px; font-weight: 600; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-insp-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.desk-insp-card { background: var(--app-card); border: 1px solid var(--app-hair); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.desk-insp-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-faint); }
.desk-insp-note { font-size: 11px; color: var(--app-muted); line-height: 1.45; margin: 0; }
.desk-link-box { background: var(--app-canvas); border: 1px solid var(--app-hair); border-radius: 7px; padding: 7px 9px; font-family: var(--mono); font-size: 10.5px; color: var(--app-muted); display: flex; justify-content: space-between; gap: 8px; }
.desk-link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-exif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.desk-exif-cell { background: var(--app-canvas); border: 1px solid var(--app-hair); border-radius: 7px; padding: 6px 8px; }
.desk-exif-cell b { display: block; font-size: 11.5px; color: var(--app-text); }
.desk-exif-cell small { font-size: 10px; color: var(--app-faint); }

.qr-card-mini { background: #FAF7F0; color: #181715; border-radius: 9px; padding: 10px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.qr-card-frame { border: 1px solid rgba(155,89,102,0.45); padding: 10px 10px 9px; border-radius: 4px; position: relative; }
.qr-card-frame::after { content: ""; position: absolute; inset: 3px; border: 0.5px solid rgba(155,89,102,0.25); pointer-events: none; }
.qr-card-title { font-family: var(--serif); font-size: 12px; font-weight: 700; color: #1A1918; margin-bottom: 2px; }
.qr-card-sub { font-size: 8.5px; color: #6B665E; margin-bottom: 8px; }
.qr-card-svg { width: 126px; height: 126px; margin: 0 auto 8px; background: #fff; padding: 4px; border-radius: 4px; border: 1px solid rgba(20,20,19,0.08); }
.qr-card-studio { font-family: var(--serif); font-size: 10px; font-weight: 600; color: #1A1918; }
.qr-card-phone { font-size: 8.5px; color: #7C776E; }

/* ============================================================================
   1:1 AUTHENTIC ANDROID SCREENS (Direct Kotlin Compose translation!)
   - HomeTopBar.kt: 56dp height, 38x26 photlin logo, 6dp green dotted CreditMeter
   - OrgBar.kt: 20dp corner, outline dotted border, 52dp avatar, 36dp chevron, 5 stats w/ dotted vertical dividers
   - CommonFolder.kt: 1.22 aspect ratio, exact Bezier FolderBackShape, tilted cards (+8deg / -4deg),
     59% bottom frosted glass pocket blurring the SAME cards + rgba(0,136,255,0.38) wash, wifi green icon
   - FolderSheetPhase.kt: 92px tall cover, dotted vertical/horizontal dividers, 56px 3-button action row
   ========================================================================== */
.ph-ic { display: inline-block; vertical-align: middle; flex: none; }

.and-phone {
  width: 100%;
  max-width: 396px;
  margin: 0 auto;
  background: #000000;
  color: #F5F5F5;
  border-radius: 34px;
  border: 7px solid #1C1E24;
  overflow: hidden;
  box-shadow: 0 32px 84px rgba(10, 12, 16, 0.38);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.35;
}
.and-topbar {
  height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.and-topbar .ph-ic.brand { width: 36px; height: 24px; color: #fff; }
.and-credits-pill {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1.2px dotted #34C759;
  color: #F5F5F5;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.and-top-ico {
  width: 34px; height: 34px;
  color: #F5F5F5;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.and-top-ico .red-dot {
  position: absolute; top: 5px; right: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: #FF383C; border: 1.5px solid #000;
}

/* OrgBar.kt exact translation */
.and-org-card {
  margin: 4px 14px 16px;
  border-radius: 18px;
  border: 1.1px dotted #737372;
  background: #000000;
}
.and-org-top {
  padding: 14px 15px 13px;
  display: flex; align-items: center; gap: 12px;
}
.and-org-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: #141414;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #F5C542; flex: none;
}
.and-org-meta { flex: 1; min-width: 0; }
.and-org-meta b { display: block; font-size: 14.5px; font-weight: 500; color: #fff; }
.and-org-meta span { font-size: 11px; color: #737372; font-weight: 300; }
.and-org-chev {
  width: 34px; height: 34px; border-radius: 10px;
  background: #141414; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.and-dotted-h {
  margin: 0 15px;
  border-top: 1px dotted rgba(115, 115, 114, 0.55);
}
.and-stats-5 {
  display: flex;
  align-items: stretch;
  padding: 0 6px;
}
.and-stat {
  flex: 1;
  min-width: 0;
  padding: 14px 3px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.and-stat-top {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; font-size: 12.5px; font-weight: 500;
}
.and-stat-lbl {
  font-size: 9px; color: #737372; line-height: 1.25; font-weight: 300;
}
.and-vdiv {
  width: 0;
  border-left: 1px dotted rgba(115, 115, 114, 0.45);
  margin: 14px 0;
}

/* CommonFolder.kt exact translation (FolderAspectRatio = 1.22) */
.and-fgrid {
  padding: 0 14px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 11px;
}
.and-fitem {
  border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
  transition: transform .14s ease;
}
.and-fitem:active { transform: scale(0.95); }
.and-fbox {
  position: relative;
  width: 100%;
  aspect-ratio: 1.22 / 1;
}
.and-fback-svg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: block;
}
.and-fbox.has-img .and-fback-svg {
  top: 18%;
  height: 82%;
}
.and-fcreate-plus {
  position: absolute; inset: 10% 0 0 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.and-fcreate-ring {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
/* Exact CardSpecs: idx 1 (back left: x=8% y=8% w=58% rot=-4deg), idx 0 (hero right: x=22% y=0% w=78% rot=+8deg) */
.and-cards-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.and-card-1, .and-card-0 {
  position: absolute;
  aspect-ratio: 0.95 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.and-card-1 { left: 8%; top: 8%; width: 58%; transform: rotate(-4deg); }
.and-card-0 { left: 22%; top: 0%; width: 78%; transform: rotate(8deg); }

/* Frosted front panel: height = 72% * (1 - 0.18) = 59.04%, blurs the EXACT SAME cards + 0.38 primary tint */
.and-ffront {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 59%;
  border-radius: 10px;
  overflow: hidden;
  background: #0088FF;
}
.and-ffront-blur {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 169.5%;
  filter: blur(11px);
  transform: scale(1.06);
}
.and-ffront-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 136, 255, 0.38);
}
.and-ffront-ui {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  padding: 6px 7px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.and-fwifi { color: #34C759; height: 13px; display: flex; align-items: center; }
.and-fstats {
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-size: 10px; font-weight: 500;
}
.and-fstats span { display: inline-flex; align-items: center; gap: 3px; }
.and-fname {
  font-size: 10.5px; color: #F5F5F5; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* FolderSheetPhase.kt exact translation */
.and-sheet {
  margin-top: auto;
  background: #000000;
  border-top: 1.1px dotted rgba(115, 115, 114, 0.72);
  border-radius: 22px 22px 0 0;
  padding-top: 9px;
}
.and-sheet-handle { width: 34px; height: 3.5px; border-radius: 99px; background: rgba(255,255,255,0.28); margin: 0 auto 4px; }
.and-sheet-body {
  height: 134px;
  padding: 12px 14px;
  display: flex;
  align-items: stretch;
}
.and-sheet-cover {
  width: 84px; height: 100%;
  border-radius: 14px; object-fit: cover; object-position: center 20%; flex: none;
}
.and-sheet-vdiv {
  width: 0; border-left: 1px dotted rgba(115, 115, 114, 0.55); margin: 0 11px;
}
.and-sheet-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.and-sheet-row {
  flex: 1; display: flex; align-items: center;
}
.and-sheet-hdiv { border-top: 1px dotted rgba(115, 115, 114, 0.5); }
.and-sheet-title { font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-sheet-stat {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11.5px; color: #fff; font-weight: 500;
}
.and-sheet-stat.dim { color: #737372; }
.and-sheet-cell {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 10px; color: #F5F5F5; white-space: nowrap;
}
.and-sheet-actions {
  height: 50px;
  border-top: 1px dotted rgba(115, 115, 114, 0.55);
  display: flex; align-items: stretch;
}
.and-sheet-act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10.5px; color: #fff; font-weight: 400;
}

/* Android Editor / Light Studio / Video Lab sub-elements */
.and-ed-bar {
  padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 5px;
}
.and-ed-bar .ed-file-meta { min-width: 0; flex: 1; overflow: hidden; }
.and-ed-bar .ed-file-meta b, .and-ed-bar .ed-file-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-ed-pill {
  height: 28px; padding: 0 8px; border-radius: 8px;
  background: #14161A; border: 1px solid rgba(255,255,255,0.16);
  color: #fff; font-size: 10px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; flex: none;
}
.and-ed-pill.blue { background: var(--ph-blue); border-color: var(--ph-blue); font-weight: 600; }
.and-ed-pill.white { background: #fff; border-color: #fff; color: #0b0d10; font-weight: 700; }
.and-canvas-tall { position: relative; aspect-ratio: 3 / 4; background: #07080A; overflow: hidden; }
.and-canvas-tall img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.and-side-drawer {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(16, 18, 22, 0.88); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 5px; display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(8px);
}
.and-side-drawer button {
  width: 54px; padding: 6px 2px; border-radius: 8px; border: 0; background: transparent;
  color: rgba(255,255,255,0.88); font-size: 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
}
.and-side-drawer button.active { background: var(--ph-blue); color: #fff; font-weight: 600; }
.and-bottom-strip {
  padding: 10px 10px 12px; background: #000; display: flex; flex-direction: column; gap: 9px;
}
.and-sub-tools { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.5); padding: 0 4px; overflow-x: auto; gap: 10px; }
.and-sub-tools span.on { color: #fff; font-weight: 700; }
.and-tool-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; text-align: center; }
.and-tool-ico {
  padding: 6px 2px; border-radius: 8px; font-size: 8.5px; color: rgba(255,255,255,0.75);
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border: 0; background: transparent;
}
.and-tool-ico.active { background: var(--ph-blue); color: #fff; font-weight: 600; }
.and-ls-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.and-ls-card {
  padding: 11px 6px; border-radius: 12px; background: #0E1014; border: 1.5px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10px; color: #fff; cursor: pointer;
}
.and-ls-card.active { border-color: var(--ph-blue); background: rgba(24, 144, 255, 0.16); }

/* Android Video Lab timeline */
.and-vl-pillbar {
  display: flex; justify-content: space-between; padding: 8px 10px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); background: #0B0D10;
  font-size: 9px; color: rgba(255,255,255,0.85); gap: 4px; overflow-x: auto;
}
.and-vl-pillbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; white-space: nowrap; }
.and-vl-tl { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.and-vl-track { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: center; }
.and-vl-tnum {
  height: 36px; border-radius: 8px; background: #121418; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ph-blue); font-weight: 700;
}
.and-vl-audio-bar {
  height: 36px; border-radius: 8px;
  background: linear-gradient(90deg, #1E6B5C, #247A68);
  border: 1px solid rgba(110, 231, 183, 0.35);
  padding: 4px 8px; font-size: 9.5px; color: #E6FFF5;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.and-vl-audio-wave { height: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 2px, transparent 2px 4px); opacity: 0.7; }
.and-vl-filmstrip {
  height: 44px; border-radius: 9px; border: 2px solid #fff;
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: #111;
}
.and-vl-filmstrip img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.and-vl-playline {
  position: absolute; top: 0; bottom: 0; left: 26%; width: 2px; background: #fff; pointer-events: none; transition: left .25s linear;
}
.and-vl-addtrack {
  width: 100%; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.14);
  background: #0F1115; color: #fff; font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================================================================
   1:1 PHOTO EDITOR TOP BAR (SHARED BY FACE LAB, LIGHTING STUDIO, ADJUST MASK)
   Matches screenshots 2, 3, 4 verbatim!
   ========================================================================== */
.ed-topbar {
  height: 48px;
  padding: 0 12px;
  background: var(--app-shell);
  border-bottom: 1px solid var(--app-hair);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-file-meta { display: flex; flex-direction: column; min-width: 115px; }
.ed-file-meta b { font-size: 12px; font-weight: 600; color: var(--app-text); }
.ed-file-meta span { font-size: 10px; color: var(--app-faint); font-family: var(--mono); }
.ed-mode-seg {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--app-canvas);
  border: 1px solid var(--app-hair);
}
.ed-mode-tab {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.ed-mode-tab.active { background: var(--ph-blue); color: #fff; font-weight: 600; }
.ed-mode-tab.soft-active { background: var(--app-pill); color: #fff; font-weight: 600; }
.ed-top-right { display: flex; align-items: center; gap: 5px; }

/* Shared recessed canvas + right card */
.ed-split {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(380px, 0.92fr);
  min-height: 560px;
  background: var(--app-shell);
}
.ed-canvas-box {
  margin: 8px 6px 10px 10px;
  background: var(--app-canvas);
  border: 1px solid var(--app-hair);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 530px;
}
.ed-right-card {
  margin: 8px 10px 10px 4px;
  background: var(--app-card);
  border: 1px solid var(--app-hair);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ed-card-head {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--app-hair);
}
.ed-card-head-center { flex: 1; display: flex; justify-content: center; }
.ed-info-strip {
  margin: 8px 10px 0;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(6, 7, 8, 0.55);
  border: 1px solid var(--app-hair);
  font-size: 11px;
  color: var(--app-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Floating pills inside Editor canvas */
.ed-zoom-pill {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6;
  height: 28px; padding: 0 10px; border-radius: 8px;
  background: rgba(14, 15, 19, 0.85); border: 1px solid var(--app-hair-strong);
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--app-text); font-family: var(--mono);
}
.ed-zoom-pill.bottom-left { top: auto; bottom: 12px; left: 12px; transform: none; }
.ed-float-tr {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  padding: 6px 10px; border-radius: 9px; background: rgba(14, 15, 19, 0.86);
  border: 1px solid var(--app-hair-strong); display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: var(--app-text); cursor: pointer;
}
.ed-float-bl { position: absolute; bottom: 12px; left: 12px; z-index: 6; display: flex; gap: 6px; }
.ed-float-br { position: absolute; bottom: 12px; right: 12px; z-index: 6; display: flex; gap: 6px; }
.ed-float-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--app-hair-strong);
  background: rgba(14, 15, 19, 0.86); color: var(--app-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ed-float-btn.white { background: #fff; border-color: #fff; color: #0a0b0e; }
.ed-float-btn.blue { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; }

/* ============================================================================
   1:1 FACE LAB (Matches Screenshot 3 — Face Mesh + 3-Col Inspector)
   ========================================================================== */
.fl-cols {
  flex: 1;
  display: grid;
  grid-template-columns: 62px 58px minmax(0, 1fr);
  margin-top: 8px;
}
.fl-rail {
  border-right: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 4px 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.fl-rail-item {
  width: 48px; padding: 6px 2px; border-radius: 9px; border: 0; background: transparent;
  color: var(--app-muted); display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9.5px; cursor: pointer; position: relative;
}
.fl-rail-item:hover { background: var(--app-hover); color: #fff; }
.fl-rail-item.active { background: var(--ph-blue); color: #fff; font-weight: 600; }
.fl-rail-item .dot { position: absolute; top: 4px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--ph-blue); }
.fl-rail-item.active .dot { background: #fff; }
.fl-beta { font-size: 8px; padding: 1px 4px; border-radius: 99px; background: rgba(24, 144, 255, 0.25); color: #69C0FF; }

.fl-controls { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 11px; }
.fl-gender-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.fl-gchip {
  height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--app-hair);
  background: var(--app-canvas); color: var(--app-muted); font-size: 11px; font-weight: 500; cursor: pointer;
}
.fl-gchip.active { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; font-weight: 600; }
.fl-on-pill {
  margin-left: auto; height: 26px; padding: 0 9px; border-radius: 999px; border: 0;
  background: var(--ph-blue); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer;
}
.fl-on-pill.off { background: var(--app-canvas); border: 1px solid var(--app-hair); color: var(--app-muted); }

.fl-slider-line { display: flex; align-items: center; gap: 8px; }
.fl-slider-val {
  min-width: 34px; height: 24px; border-radius: 6px; background: var(--app-canvas); border: 1px solid var(--app-hair);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--app-text);
}
.ed-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,0.18); outline: none;
}
.ed-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--app-shell); box-shadow: 0 0 0 1px rgba(255,255,255,0.7); cursor: pointer;
}

.fl-group-lbl { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-faint); margin-bottom: 5px; }
.fl-swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-swatch-card {
  min-width: 60px; flex: 1 1 58px; max-width: 78px; padding: 7px 5px; border-radius: 9px;
  background: var(--app-canvas); border: 1.5px solid var(--app-hair);
  display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
}
.fl-swatch-card.active { border-color: var(--ph-blue); background: rgba(24, 144, 255, 0.14); }
.fl-swatch-card span { font-size: 10px; color: var(--app-text); text-align: center; }
.fl-swatch-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.45); }

/* Face mesh canvas + split compare */
.fl-canvas-inner { position: relative; width: 100%; height: 100%; min-height: 530px; overflow: hidden; user-select: none; }
.fl-canvas-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.fl-mesh-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .25s ease; }
.fl-ba-after { clip-path: inset(0 0 0 50%); }
.fl-ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: rgba(255,255,255,0.9); pointer-events: none; }

/* ============================================================================
   1:1 LIGHTING STUDIO (Matches Screenshot 4 — 1..12 Clock + 11 Gel Grid)
   ========================================================================== */
.ls-cols { flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); margin-top: 8px; }
.ls-props { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.ls-head-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ls-kelvin-track {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, #FF9940 0%, #FFE6C7 45%, #FFFFFF 55%, #7CC4FF 100%);
  outline: none;
}
.ls-kelvin-track::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6); cursor: pointer;
}
.ls-gel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ls-gel-card {
  padding: 9px 4px 7px; border-radius: 9px; background: var(--app-canvas); border: 1.5px solid var(--app-hair);
  display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
}
.ls-gel-card.active { border-color: var(--ph-blue); background: rgba(24, 144, 255, 0.14); }
.ls-gel-card span { font-size: 9.5px; color: var(--app-text); }
.ls-gel-dot { width: 17px; height: 17px; border-radius: 50%; }

.ls-stage { position: relative; width: 100%; height: 100%; min-height: 530px; overflow: hidden; user-select: none; }
.ls-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ls-relight { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; }
.ls-clock-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.ls-clock-svg:active { cursor: grabbing; }
.ls-est-note {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: rgba(255,255,255,0.68); pointer-events: none; white-space: nowrap;
}

/* ============================================================================
   1:1 ADJUST MASK (Matches Screenshot 2 — Ruby Skin + Tone Curve + 2 Rails)
   ========================================================================== */
.am-cols { flex: 1; display: grid; grid-template-columns: 62px minmax(0, 1fr) 68px; }
.am-center { padding: 10px 14px; display: flex; flex-direction: column; gap: 11px; }
.am-curve-box {
  background: #101216; border: 1px solid var(--app-hair); border-radius: 8px;
  aspect-ratio: 1.45 / 1; position: relative; overflow: hidden;
}
.am-channels { display: flex; justify-content: center; gap: 10px; }
.am-ch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.am-ch.rgb { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.am-ch.r { border-color: #FF4D4F; background: transparent; }
.am-ch.g { border-color: #34C759; background: transparent; }
.am-ch.b { border-color: #1890FF; background: transparent; }
.am-mask-subbar {
  padding: 9px 14px; border-top: 1px solid var(--app-hair); background: var(--app-shell);
  display: flex; align-items: center; justify-content: space-between;
}
.am-ruby { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s ease; mix-blend-mode: multiply; }
.am-ruby-screen { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s ease; }

/* ============================================================================
   1:1 PRESENTATION SITE BUILDER (Matches Screenshot 5 — Layers + WYSIWYG + Hero Inspector)
   ========================================================================== */
.sb-topbar {
  height: 48px; padding: 0 12px; background: var(--app-shell); border-bottom: 1px solid var(--app-hair);
  display: flex; align-items: center; gap: 10px;
}
.sb-body { display: grid; grid-template-columns: 224px minmax(0, 1fr) 256px; min-height: 550px; background: var(--app-shell); }
.sb-left { border-right: 1px solid var(--app-hair); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sb-tabs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--app-canvas); padding: 3px; border-radius: 8px; border: 1px solid var(--app-hair); }
.sb-tabs-2 button { height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--app-muted); font-size: 11px; font-weight: 500; cursor: pointer; }
.sb-tabs-2 button.active { background: var(--app-card-2); color: #fff; font-weight: 600; }
.sb-sec-row {
  display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border-radius: 8px;
  background: var(--app-card); border: 1px solid var(--app-hair); font-size: 11.5px; color: var(--app-text); cursor: pointer;
}
.sb-sec-row.active { border-color: var(--ph-blue); background: rgba(24, 144, 255, 0.14); }
.sb-preset-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  background: var(--app-card); border: 1px solid var(--app-hair); font-size: 11px; cursor: pointer;
}
.sb-preset-row:hover { border-color: var(--app-hair-strong); }
.sb-preset-row .apply { margin-left: auto; color: var(--app-muted); font-size: 10.5px; }
.sb-dot-pair { display: inline-flex; gap: 3px; }
.sb-dot-pair i { width: 9px; height: 9px; border-radius: 50%; display: block; border: 1px solid rgba(255,255,255,0.2); }

.sb-center { background: var(--app-canvas); padding: 14px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.sb-browser {
  width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--app-hair-strong);
  transition: max-width .22s ease;
}
.sb-browser[data-vp="desktop"] { max-width: 100%; }
.sb-browser[data-vp="tablet"]  { max-width: 520px; }
.sb-browser[data-vp="mobile"]  { max-width: 310px; }
.sb-browser-bar {
  height: 30px; background: #14161A; border-bottom: 1px solid var(--app-hair);
  padding: 0 10px; display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--app-muted);
}
.sb-mac-dots { display: flex; gap: 5px; }
.sb-mac-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.sb-site-canvas { padding: 16px; transition: background .2s ease, color .2s ease; }
.sb-site-canvas[data-theme="ivory"] { background: #FAF9F6; color: #141413; }
.sb-site-canvas[data-theme="noir"]  { background: #0F0F10; color: #F5F2EB; }
.sb-site-canvas[data-theme="stone"] { background: #F0EDE6; color: #1E1915; }
.sb-site-canvas[data-theme="forest"] { background: #10201A; color: #F4F1EA; }
.sb-hero-select-box {
  border: 2px solid var(--ph-blue); border-radius: 10px; padding: 16px; position: relative;
}
.sb-hero-badge {
  position: absolute; top: 10px; left: 10px; background: var(--ph-blue); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 5px;
}
.sb-hero-content { padding-top: 22px; text-align: center; }
.sb-hero-content[data-align="left"] { text-align: left; }
.sb-hero-kicker { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.sb-hero-h { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 6px; }
.sb-hero-p { font-size: 12px; opacity: 0.72; margin: 0 0 14px; }
.sb-hero-ctas { display: inline-flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sb-cta-dark { padding: 7px 14px; border-radius: 7px; background: currentColor; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; }
.sb-cta-dark span { color: #FAF9F6; }
.sb-site-canvas[data-theme="noir"] .sb-cta-dark span,
.sb-site-canvas[data-theme="forest"] .sb-cta-dark span { color: #111; }
.sb-cta-out { padding: 7px 14px; border-radius: 7px; border: 1px solid rgba(128,128,128,0.35); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; }
.sb-cover-wrap { border-radius: 10px; overflow: hidden; background: rgba(128,128,128,0.12); height: 220px; }
.sb-cover-wrap img { width: 100%; height: 100%; }
.sb-cover-wrap[data-fit="cover"] img { object-fit: cover; }
.sb-cover-wrap[data-fit="contain"] img { object-fit: contain; }
.sb-cover-wrap[data-fit="natural"] { height: auto; max-height: 260px; }
.sb-cover-wrap[data-fit="natural"] img { height: auto; max-height: 260px; object-fit: cover; }

.sb-right { border-left: 1px solid var(--app-hair); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.sb-btn-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sb-btn-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sb-opt-btn {
  padding: 7px 6px; border-radius: 7px; background: var(--app-card); border: 1px solid var(--app-hair);
  color: var(--app-text); font-size: 10.5px; font-weight: 500; cursor: pointer; text-align: center;
}
.sb-opt-btn.active { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; font-weight: 600; }
.sb-toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--app-text); }
.sb-switch {
  width: 34px; height: 18px; border-radius: 99px; background: rgba(255,255,255,0.16); position: relative; cursor: pointer; border: 0;
}
.sb-switch.on { background: var(--ph-blue); }
.sb-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s ease;
}
.sb-switch.on::after { left: 18px; }
.sb-input {
  width: 100%; padding: 6px 8px; border-radius: 7px; background: var(--app-canvas); border: 1px solid var(--app-hair);
  color: var(--app-text); font-size: 11px; font-family: inherit;
}

/* ============================================================================
   1:1 VIDEO LAB (Matches Screenshot 1 — Library + Program + Sound/Captions + Full Timeline)
   ========================================================================== */
.vl-upper { display: grid; grid-template-columns: 204px minmax(0, 1fr) 280px; min-height: 365px; background: var(--app-shell); }
.vl-lib { border-right: 1px solid var(--app-hair); padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.vl-lib-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--app-canvas); padding: 3px; border-radius: 8px; border: 1px solid var(--app-hair); }
.vl-lib-tabs span { text-align: center; padding: 4px; font-size: 10.5px; color: var(--app-muted); border-radius: 5px; }
.vl-lib-tabs span.on { background: var(--app-card-2); color: #fff; font-weight: 600; }
.vl-tree-row { padding: 5px 8px; border-radius: 6px; font-size: 11px; color: var(--app-muted); display: flex; justify-content: space-between; }
.vl-tree-row.selected { background: rgba(255,255,255,0.75); color: #0c0d10; font-weight: 600; }
.vl-thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vl-thumb-card { position: relative; border-radius: 6px; overflow: hidden; background: var(--app-canvas); border: 1px solid var(--app-hair); }
.vl-thumb-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.vl-thumb-dur { position: absolute; bottom: 18px; right: 4px; background: rgba(0,0,0,0.75); color: #fff; font-family: var(--mono); font-size: 8.5px; padding: 1px 4px; border-radius: 3px; }
.vl-thumb-name { font-size: 9.5px; color: var(--app-muted); padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vl-prog-col { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.vl-prog-box {
  flex: 1; background: var(--app-canvas); border: 1px solid var(--app-hair); border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
}
.vl-prog-head { padding: 7px 10px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--app-muted); }
.vl-orig-pill { background: #fff; color: #0a0b0e; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.vl-prog-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px; position: relative; min-height: 230px; }
.vl-frame { position: relative; overflow: hidden; border-radius: 5px; background: #000; border: 1px solid rgba(255,255,255,0.12); transition: width .2s ease; }
.vl-frame[data-aspect="9:16"] { width: 132px; aspect-ratio: 9 / 16; }
.vl-frame[data-aspect="16:9"] { width: 340px; max-width: 100%; aspect-ratio: 16 / 9; }
.vl-frame[data-aspect="1:1"]  { width: 200px; aspect-ratio: 1 / 1; }
.vl-frame[data-aspect="4:5"]  { width: 175px; aspect-ratio: 4 / 5; }
.vl-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.vl-cap-ov { position: absolute; left: 6%; right: 6%; bottom: 10%; text-align: center; pointer-events: none; }
.vl-cap-ov span { display: inline-block; margin: 0 2px; font-size: 12.5px; }
.vl-cap-ov[data-style="editorial"] {
  font-family: var(--serif); color: rgba(255,255,255,0.84);
  background: rgba(6, 7, 8, 0.58); padding: 4px 8px; border-radius: 7px; backdrop-filter: blur(4px);
}
.vl-cap-ov[data-style="editorial"] span.hl { color: #fff; font-weight: 700; }
.vl-cap-ov[data-style="kinetic"] { font-weight: 800; text-transform: uppercase; color: #fff; text-shadow: 0 2px 6px #000; }
.vl-cap-ov[data-style="kinetic"] span.hl { background: var(--ph-yellow); color: #111; padding: 1px 5px; border-radius: 4px; text-shadow: none; }
.vl-cap-ov[data-style="lower"] { background: rgba(6,7,8,0.8); padding: 4px 8px; border-radius: 5px; color: #fff; }
.vl-cap-ov[data-style="lower"] span.hl { color: var(--ph-cyan); font-weight: 700; }

.vl-transport { padding: 6px 10px; border-top: 1px solid var(--app-hair); display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--app-muted); }
.vl-play-circ { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0a0b0e; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; }

.vl-insp { border-left: 1px solid var(--app-hair); padding: 9px 11px; display: flex; flex-direction: column; gap: 9px; }
.vl-insp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--app-hair); padding-bottom: 6px; overflow-x: auto; }
.vl-insp-tabs button { border: 0; background: transparent; color: var(--app-muted); font-size: 10px; padding: 4px 5.5px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.vl-insp-tabs button.active { background: var(--app-card-2); color: #fff; font-weight: 600; }
.vl-stem-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.vl-stem-pills button { padding: 5px 4px; border-radius: 6px; border: 1px solid var(--app-hair); background: var(--app-canvas); color: var(--app-muted); font-size: 10px; cursor: pointer; }
.vl-stem-pills button.active { background: #fff; border-color: #fff; color: #0a0b0e; font-weight: 700; }
.vl-stem-row { display: flex; flex-direction: column; gap: 5px; }
.vl-stem-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.vl-ms { display: inline-flex; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--app-muted); }
.vl-ms i { font-style: normal; padding: 1px 5px; border-radius: 4px; background: var(--app-canvas); border: 1px solid var(--app-hair); }

.vl-tl-bar {
  padding: 6px 10px; border-top: 1px solid var(--app-hair); border-bottom: 1px solid var(--app-hair);
  background: var(--app-shell); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 10.5px;
}
.vl-tl-btn {
  padding: 4px 8px; border-radius: 6px; background: var(--app-card); border: 1px solid var(--app-hair);
  color: var(--app-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px;
}
.vl-tl-btn:hover { color: #fff; border-color: var(--app-hair-strong); }
.vl-tl-btn.white { background: #fff; border-color: #fff; color: #0b0d10; font-weight: 700; }
.vl-tl-btn.blue { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; font-weight: 600; }

.vl-tl-body { background: var(--app-canvas); padding: 6px 10px 10px; position: relative; }
.vl-ruler { display: grid; grid-template-columns: 122px 1fr; margin-bottom: 5px; }
.vl-ruler-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--app-faint); padding: 0 4px; border-bottom: 1px solid var(--app-hair); padding-bottom: 4px; }
.vl-track { display: grid; grid-template-columns: 122px 1fr; gap: 8px; align-items: center; margin-bottom: 5px; }
.vl-track-head { background: var(--app-shell); border: 1px solid var(--app-hair); border-radius: 6px; padding: 5px 7px; font-size: 10px; color: var(--app-text); }
.vl-track-head small { display: block; color: var(--app-faint); font-size: 9px; margin-top: 2px; }
.vl-lane { height: 34px; border-radius: 6px; background: rgba(255,255,255,0.025); border: 1px solid var(--app-hair); display: flex; gap: 3px; padding: 2px; position: relative; overflow: hidden; }
.vl-clip {
  height: 100%; border-radius: 5px; background: #262A32; border: 1px solid rgba(255,255,255,0.18);
  padding: 2px 6px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.vl-clip-top { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #fff; white-space: nowrap; }
.vl-uncomp { font-size: 7.5px; padding: 1px 4px; border-radius: 3px; background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.2); }
.vl-wave { height: 8px; background: repeating-linear-gradient(90deg, #69C0FF 0 2px, transparent 2px 4px); opacity: 0.72; border-radius: 2px; }
.vl-clip.audio { background: rgba(26, 62, 52, 0.55); border-color: rgba(52, 199, 89, 0.35); }
.vl-playhead { position: absolute; top: 4px; bottom: 6px; left: 26%; width: 1.5px; background: var(--ph-red); pointer-events: none; transition: left .25s linear; }

/* ============================================================================
   CLIENT GALLERY PREVIEW (Tab B inside Delivery section)
   ========================================================================== */
.web-mode-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1px solid var(--line); margin-bottom: 18px; }
.web-mode-btn { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.web-mode-btn.active { background: var(--ink); color: #fff; }
.cg-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(20,20,19,0.12); background: #FAF9F6; }
.cg-bar { height: 36px; background: #EFECE5; border-bottom: 1px solid var(--line); padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.cg-dots { display: flex; gap: 6px; }
.cg-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(20,20,19,0.2); display: block; }
.cg-url { flex: 1; min-width: 0; max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-page { padding: 26px 26px 32px; background: #FAF9F6; color: #141413; text-align: center; }
.cg-hero-frame { max-width: 480px; margin: 0 auto 14px; position: relative; border: 1px solid #141413; background: #fff; }
.cg-hero-frame img { width: 100%; height: 225px; object-fit: cover; object-position: center 22%; }
.cg-hero-fade { position: absolute; inset: auto 0 0 0; height: 88px; background: linear-gradient(to top, #FAF9F6 16%, rgba(250,249,246,0)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.cg-hero-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; margin: 0; }
.cg-date { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #6B6A66; margin: 0 0 16px; }
.cg-btns { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.cg-btn { padding: 8px 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border: 1px solid #141413; background: #fff; color: #141413; cursor: pointer; }
.cg-btn.active { background: #141413; color: #fff; }
.cg-grid { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg-card { position: relative; border: 1px solid #141413; background: #fff; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; }
.cg-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: filter .2s ease; }
.cg-card.rejected img { filter: grayscale(0.85) brightness(0.65); }
.cg-card-lock { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 4px; background: rgba(20,20,19,0.64); color: #fff; display: flex; align-items: center; justify-content: center; }
.cg-card-reject-badge { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(201,42,42,0.28); }
.cg-card.rejected .cg-card-reject-badge { display: flex; }
.cg-card-reject-badge span { background: #C92A2A; color: #fff; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; }
.cg-card-hint { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; background: rgba(255,255,255,0.88); color: #141413; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================================
   PAY-AS-YOU-GO & FOOTER & /download COMPAT
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.pillar-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 0 0 6px; }
.pillar h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.pillar p { font-size: 14px; color: var(--ink-2); margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0; margin-top: 40px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 12.5px; color: var(--ink-3); }

/* /download compat */
.lx-nav { position: sticky; top: 0; z-index: 50; height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(246,245,241,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.lx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 14.5px; }
.lx-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.lx-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.lx-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.lx-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lx-btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.lx-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.lx-pill { padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.lx-pill.is-active, .lx-pill:hover { background: var(--ink); color: #fff; }
.lx-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 28px; position: relative; z-index: 4; }
.lx-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lx-hero-plants { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .desk-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .desk-inspector { display: none; }
  .ed-split { grid-template-columns: 1fr; }
  .sb-body { grid-template-columns: 1fr; }
  .sb-left, .sb-right { border: 0; border-bottom: 1px solid var(--app-hair); }
  .vl-upper { grid-template-columns: 1fr; }
  .vl-lib { display: none; }
  .and-tablet-split { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .site-nav-in { height: 56px; padding: 0 16px; gap: 10px; }
  .nav-jump, .release-pill { display: none; }
  .nav-links { gap: 14px; font-size: 13.5px; }
  .nav-cta { padding: 7px 14px; font-size: 12.5px; }
  .wrap, .foot-in { padding: 0 16px; }
  .hero { padding: 30px 0 28px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); letter-spacing: 0.14em; margin-bottom: 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; padding: 0 6px; }
  .hero-actions { gap: 10px; margin-bottom: 20px; }
  .btn-primary, .btn-ghost { height: 42px; padding: 0 18px; font-size: 13.5px; }
  .device-bar { margin-bottom: 16px; }
  .device-btn { padding: 6px 14px; font-size: 12.5px; }
  .studio-sec { padding: 52px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .sec-title { font-size: 1.55rem; }
  .desk-shell { grid-template-columns: 1fr; }
  .desk-side { display: none; }
  .ed-mode-seg { display: none; }
  .pillars, .cg-grid { grid-template-columns: 1fr; }
  .and-phone { border-width: 5px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .flora .bob, .flora .sway { animation: none !important; }
}
