/* ==========================================================================
   Cinedrop — design system
   Calm "Eucalyptus" green on warm paper, Apple-inspired type, depth and motion
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --condensed: "Avenir Next Condensed", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --ink: #1d1d1f;
  --ink-2: #5f6368;
  --ink-3: #8e9196;
  --line: rgba(29, 35, 32, .09);
  --line-2: rgba(29, 35, 32, .14);
  --paper: #ffffff;
  --bg: #f7f7f4;
  --mist: #eff2ef;
  --sand: #f1ece3;

  --sage: #2f6b5e;
  --sage-700: #24564b;
  --sage-500: #3f8272;
  --sage-300: #9cc2b5;
  --sage-100: #dde9e3;
  --sage-50: #eef4f1;
  --night: #0f1714;
  --night-2: #17211d;

  --amber: #c9892f;
  --amber-50: #fbf2e2;
  --rose: #c2453a;
  --rose-50: #fbeceb;
  --ok: #2f8a4f;
  --ok-50: #e7f4ea;

  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(20, 30, 25, .05), 0 1px 1px rgba(20, 30, 25, .03);
  --sh-2: 0 4px 14px rgba(20, 30, 25, .06), 0 1px 3px rgba(20, 30, 25, .05);
  --sh-3: 0 18px 50px rgba(20, 30, 25, .12), 0 4px 12px rgba(20, 30, 25, .05);
  --sh-4: 0 40px 100px rgba(15, 25, 20, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 15px; line-height: 1.5; letter-spacing: -.005em; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--sage-100); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sage) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.mark { display: inline-grid; color: var(--ink); flex-shrink: 0; }
.mark svg { width: 100%; height: 100%; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-2); }
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--paper); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { border-color: rgba(0,0,0,.22); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.primary { --b-bg: var(--sage); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 1px 2px rgba(20,60,50,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.primary:hover { --b-bg: var(--sage-700); }
.btn.dark { --b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent; }
.btn.dark:hover { --b-bg: #000; }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; }
.btn.ghost:hover { --b-bg: rgba(0,0,0,.05); }
.btn.soft { --b-bg: var(--sage-50); --b-fg: var(--sage-700); --b-bd: transparent; }
.btn.soft:hover { --b-bg: var(--sage-100); }
.btn.danger { --b-fg: var(--rose); }
.btn.danger-fill { --b-bg: var(--rose); --b-fg: #fff; --b-bd: transparent; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.block { width: 100%; }
.link { color: var(--sage); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: -.005em; }
.label small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 14%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 70px; }
.input-wrap .peek { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--sage); padding: 6px 8px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.help { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }
.error { font-size: 13px; color: var(--rose); margin: 4px 0 12px; min-height: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(118,118,128,.12); }
.seg button { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink); transition: background .2s, box-shadow .2s; white-space: nowrap; }
.seg button.on { background: var(--paper); box-shadow: 0 3px 8px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.05); font-weight: 600; }
.seg.full { display: flex; } .seg.full button { flex: 1; }

.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(118,118,128,.24); transition: background .25s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--sage); }
.switch input:checked + i::after { transform: translateX(18px); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.pill.sent { background: var(--sage-50); color: var(--sage-700); }
.pill.ready { background: #eaf0fb; color: #3a5ba0; }
.pill.draft { background: var(--mist); color: var(--ink-2); }
.pill.expired { background: var(--rose-50); color: var(--rose); }
.pill.notes { background: var(--amber-50); color: #8d5a12; }
.pill.ok { background: var(--ok-50); color: var(--ok); }

/* ==========================================================================
   Landing page
   ========================================================================== */
.l-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 60px; transition: background .3s, box-shadow .3s; }
.l-nav.scrolled { background: rgba(247,247,244,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.l-nav-in { max-width: 1160px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.03em; text-decoration: none; }
.l-links { display: flex; gap: 26px; font-size: 14px; }
.l-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.l-links a:hover { color: var(--ink); }
.l-nav .spacer { flex: 1; }
.l-nav .btn { height: 36px; font-size: 13.5px; }
@media (max-width: 820px) { .l-links { display: none; } .l-nav .btn.ghost { display: none; } }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--sage); margin: 0 0 14px; }
.h-display { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0; }
.h-1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; margin: 0 0 16px; }
.h-2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; margin: 0 0 10px; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.012em; margin: 0; }
.grad { background: linear-gradient(100deg, var(--sage) 0%, #5b9f8c 50%, #8cbfae 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-l { position: relative; padding: 150px 0 60px; text-align: center; overflow: hidden; }
.hero-l::before { content: ""; position: absolute; left: 50%; top: -240px; width: 1300px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(156,194,181,.45), rgba(156,194,181,0)); pointer-events: none; z-index: -1; }
.hero-l .lead { max-width: 640px; margin: 22px auto 34px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* product stage */
.stage { position: relative; max-width: 1060px; margin: 70px auto 0; height: 600px; }
.stage-desk { position: absolute; left: 0; right: 90px; top: 30px; bottom: 30px; border-radius: 22px; background: var(--paper); box-shadow: var(--sh-4); overflow: hidden; display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); text-align: left; }
.sd-side { background: #fafaf8; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.sd-side .brand { font-size: 14px; margin: 0 6px 14px; }
.sd-side span { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); }
.sd-side span.on { background: var(--sage-50); color: var(--sage-700); font-weight: 600; }
.sd-side svg { width: 15px; height: 15px; }
.sd-main { padding: 24px 26px; overflow: hidden; }
.sd-main h4 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 4px; }
.sd-main p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }
.sd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.sd-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sd-stats b { display: block; font-size: 18px; letter-spacing: -.03em; }
.sd-stats small { font-size: 11px; color: var(--ink-3); }
.sd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sd-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.sd-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sd-card div { padding: 8px 10px; font-size: 11.5px; font-weight: 600; }
.sd-card small { display: block; font-weight: 400; color: var(--ink-3); }
.stage-phone { position: absolute; right: 0; top: 0; width: 290px; height: 600px; border-radius: 48px; background: #0d0d0d; padding: 11px; box-shadow: var(--sh-4), inset 0 0 0 2px #2a2a2a; }
.stage-phone .screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; position: relative; background: #f7f4ee; text-align: left; }
.stage-phone .notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; border-radius: 20px; background: #0d0d0d; transform: translateX(-50%); z-index: 3; }
.sp-hero { position: relative; height: 330px; }
.sp-hero img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.sp-hero div { position: absolute; left: 18px; bottom: 18px; color: #fff; z-index: 1; }
.sp-hero small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.sp-hero h5 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 4px 0 0; letter-spacing: -.02em; line-height: 1; }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px; }
.sp-grid img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 9px; }
.sp-grid img.w { grid-column: 1 / -1; aspect-ratio: 16/9; }
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--sh-3); font-size: 13px; text-align: left; animation: floaty 6s ease-in-out infinite; }
.float b { display: block; font-size: 13px; }
.float small { color: var(--ink-3); font-size: 12px; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-50); color: var(--ok); flex-shrink: 0; }
.float .ic svg { width: 18px; height: 18px; }
.float .ic.amber { background: var(--amber-50); color: var(--amber); }
.float.f1 { right: 250px; top: 120px; }
.float.f2 { right: 230px; bottom: 90px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .stage { height: 560px; }
  .stage-desk { display: none; }
  .stage-phone { left: 50%; right: auto; transform: translateX(-50%); width: 270px; height: 560px; }
  .float.f1 { right: auto; left: calc(50% + 70px); top: 90px; }
  .float.f2 { right: auto; left: calc(50% - 230px); bottom: 70px; }
}
@media (max-width: 560px) { .float.f1 { left: auto; right: 6px; } .float.f2 { left: 6px; } .float { padding: 8px 10px 8px 8px; } .float small { display: none; } }

.made-for { padding: 50px 0 20px; text-align: center; }
.made-for p { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }

.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section.tint { background: var(--paper); }
.section.dark { background: var(--night); color: #f2f4f2; }
.section.dark .lead { color: rgba(242,244,242,.65); }
.section.dark .eyebrow { color: var(--sage-300); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile-b { position: relative; border-radius: var(--r-xl); background: var(--paper); padding: 32px; overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; }
.section.tint .tile-b { background: var(--bg); }
.tile-b h3 { font-size: 26px; letter-spacing: -.035em; line-height: 1.12; margin: 0 0 10px; }
.tile-b p { color: var(--ink-2); margin: 0; font-size: 15.5px; max-width: 420px; }
.tile-b .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--sage-50); color: var(--sage); display: grid; place-items: center; margin-bottom: 18px; }
.tile-b .ic svg { width: 22px; height: 22px; }
.b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .b-4, .b-2, .b-3 { grid-column: auto; } }
.tile-b .art { margin-top: auto; padding-top: 26px; }
.shape-row { display: flex; gap: 12px; align-items: flex-end; }
.shape-row img { border-radius: 14px; object-fit: cover; box-shadow: var(--sh-2); }
.shape-row .v { width: 96px; aspect-ratio: 9/16; }
.shape-row .h { width: 220px; aspect-ratio: 16/9; }
.shape-row .tag { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 6px; }
.note-demo { display: flex; flex-direction: column; gap: 10px; }
.note-demo .bubble { align-self: flex-start; background: var(--mist); padding: 10px 14px; border-radius: 16px 16px 16px 6px; font-size: 14px; max-width: 280px; }
.note-demo .bubble .chip { background: var(--sage); }
.note-demo .done { align-self: flex-end; display: inline-flex; gap: 8px; align-items: center; background: var(--ok-50); color: var(--ok); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.note-demo .done svg { width: 15px; height: 15px; }
.swatches { display: flex; gap: 10px; }
.swatches i { width: 38px; height: 54px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); display: flex; align-items: flex-end; padding: 6px; }
.swatches i::after { content: ""; width: 100%; height: 6px; border-radius: 3px; background: var(--a); }
.lock-art { display: flex; gap: 10px; flex-wrap: wrap; }
.lock-art span { display: inline-flex; gap: 7px; align-items: center; padding: 9px 13px; border-radius: 12px; background: var(--mist); font-size: 13px; font-weight: 500; }
.lock-art svg { width: 16px; height: 16px; color: var(--sage); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--sage-300), var(--sage)); }
.tile-b.feature-dark { background: var(--night); color: #fff; border-color: transparent; }
.tile-b.feature-dark p { color: rgba(255,255,255,.7); }
.tile-b.feature-dark .ic { background: rgba(156,194,181,.16); color: var(--sage-300); }
.cap-demo { background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.cap-demo button { display: inline-flex; gap: 6px; align-items: center; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.cap-demo svg { width: 14px; height: 14px; }

/* layout showcase */
.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 40px; } }
.lo-list { display: flex; flex-direction: column; gap: 8px; }
.lo-item { text-align: left; padding: 18px 20px; border-radius: var(--r-lg); transition: background .25s; display: block; width: 100%; }
.lo-item h4 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 4px; color: rgba(242,244,242,.5); transition: color .25s; }
.lo-item p { margin: 0; color: rgba(242,244,242,.45); font-size: 15px; transition: color .25s; }
.lo-item.on { background: rgba(255,255,255,.06); }
.lo-item.on h4 { color: #fff; }
.lo-item.on p { color: rgba(242,244,242,.7); }
.demo-phone { width: 300px; height: 620px; margin: 0 auto; border-radius: 50px; background: #000; padding: 11px; box-shadow: 0 50px 100px rgba(0,0,0,.5), inset 0 0 0 2px #333; }
.demo-phone .screen { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; position: relative; background: #f7f4ee; }
.dp-view { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .5s var(--ease), transform .6s var(--ease); overflow: hidden; }
.dp-view.on { opacity: 1; transform: none; }
.dp-head { padding: 54px 18px 12px; }
.dp-head small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8b867c; }
.dp-head h6 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 4px 0 0; letter-spacing: -.02em; color: #1d1d1f; }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 12px; }
.dp-grid img { border-radius: 10px; width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.dp-grid img.w { grid-column: 1/-1; aspect-ratio: 16/9; }
.dp-reel { position: absolute; inset: 0; }
.dp-reel img { width: 100%; height: 100%; object-fit: cover; }
.dp-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.dp-reel .info { position: absolute; left: 16px; right: 70px; bottom: 30px; color: #fff; z-index: 1; font-size: 12px; }
.dp-reel .info b { display: block; font-size: 15px; margin-bottom: 4px; }
.dp-reel .acts { position: absolute; right: 12px; bottom: 30px; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.dp-reel .acts i { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; }
.dp-reel .acts i.ok { background: var(--ok); }
.dp-reel .acts svg { width: 18px; height: 18px; }
.dp-cinema img.f { width: calc(100% - 24px); margin: 0 12px; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.dp-cinema .t { padding: 12px 16px 10px; font-family: var(--serif); font-size: 20px; }
.dp-cinema .row { display: flex; gap: 7px; padding: 0 12px; }
.dp-cinema .row img { width: 33%; aspect-ratio: 9/16; object-fit: cover; border-radius: 9px; }
.dp-feed { padding: 0 14px; display: flex; flex-direction: column; gap: 14px; }
.dp-feed img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; }
.dp-feed .cap { font-size: 12px; color: #6e6a62; }
.dp-feed .acts { display: flex; gap: 6px; margin-top: 6px; }
.dp-feed .acts span { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid #e0dbd0; color: #1d1d1f; }
.dp-feed .acts span.p { background: #1d1d1f; color: #fff; border-color: transparent; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 22px; }
.step h3 { font-size: 21px; letter-spacing: -.03em; margin: 0 0 8px; }
.step p { color: var(--ink-2); margin: 0; }
.step img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; margin-top: 22px; }

/* pricing */
.price-toggle { display: flex; justify-content: center; margin: -24px 0 40px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; position: relative; }
.price.best { background: var(--night); color: #fff; border-color: transparent; box-shadow: var(--sh-3); }
.price .badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--sage-300); color: var(--night); }
.price h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.02em; }
.price .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 22px; }
.price.best .sub { color: rgba(255,255,255,.55); }
.price .amt { font-size: 52px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price .amt small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price.best .amt small { color: rgba(255,255,255,.55); }
.price ul { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; margin-top: 1px; }
.price.best li svg { color: var(--sage-300); }
.price .btn { margin-top: auto; }
.price.best .btn.primary { --b-bg: #fff; --b-fg: var(--night); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: -8px 4px 24px; color: var(--ink-2); font-size: 16px; max-width: 640px; }

.final-cta { text-align: center; padding: 120px 22px; background: radial-gradient(80% 120% at 50% 0%, #1f3a32 0%, var(--night) 60%); color: #fff; }
.final-cta .lead { color: rgba(255,255,255,.65); max-width: 540px; margin: 0 auto 34px; }
.final-cta .btn.primary { --b-bg: #fff; --b-fg: var(--night); }
.final-cta .btn:not(.primary) { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.3); }

.l-foot { background: var(--night); color: rgba(255,255,255,.55); font-size: 13px; padding: 50px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.l-foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.l-foot .brand { color: #fff; }
.l-foot .brand .mark { color: var(--sage-500); }
.l-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.l-foot a { text-decoration: none; }
.l-foot a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.auth-art { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand { color: #fff; position: relative; z-index: 2; }
.auth-art .brand .mark { color: var(--sage-500); }
.auth-mosaic { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-8deg) scale(1.15); opacity: .9; }
.auth-mosaic div { display: flex; flex-direction: column; gap: 14px; animation: drift 40s linear infinite; }
.auth-mosaic div:nth-child(2) { animation-direction: reverse; animation-duration: 50s; }
.auth-mosaic img { width: 100%; aspect-ratio: 9/14; object-fit: cover; border-radius: 18px; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,20,.55) 0%, rgba(15,23,20,.1) 40%, rgba(15,23,20,.92) 100%); z-index: 1; }
.auth-quote { position: relative; z-index: 2; max-width: 440px; }
.auth-quote h2 { font-size: 38px; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 12px; }
.auth-quote p { color: rgba(255,255,255,.7); margin: 0; font-size: 16px; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-box .brand { margin-bottom: 40px; }
.auth-box h1 { font-size: 32px; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 8px; }
.auth-box .lead { font-size: 16px; margin-bottom: 30px; }
.auth-box .btn.block { margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.auth-fine { font-size: 12px; color: var(--ink-3); margin-top: 22px; text-align: center; line-height: 1.5; }
.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--mist); transition: background .3s; }
.strength.s1 i:nth-child(-n+1) { background: var(--rose); }
.strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.strength.s3 i:nth-child(-n+3) { background: var(--sage-500); }
.strength.s4 i { background: var(--sage); }

.setup { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 30px; background: radial-gradient(60% 60% at 50% 40%, var(--sage-50), var(--bg)); }
.setup-box { max-width: 420px; }
.setup .mark { width: 64px; height: 64px; margin: 0 auto 28px; color: var(--sage); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); } }
.setup h1 { font-size: 30px; letter-spacing: -.04em; margin: 0 0 8px; }
.progress { height: 6px; background: var(--sage-100); border-radius: 6px; overflow: hidden; margin: 28px auto 12px; width: 280px; }
.progress i { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 6px; transition: width .4s var(--ease); }
.setup-step { font-size: 13px; color: var(--ink-3); min-height: 20px; }

/* ==========================================================================
   Studio app shell
   ========================================================================== */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(250,250,248,.85); backdrop-filter: blur(20px); }
.side .brand { padding: 4px 10px 22px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a svg { width: 20px; height: 20px; }
.nav a:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.nav a.on { background: var(--sage-50); color: var(--sage-700); font-weight: 600; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side .new { margin: 18px 4px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.storage { padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; }
.storage b { display: block; font-size: 13px; margin-bottom: 8px; }
.meter { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; margin-bottom: 7px; }
.meter i { display: block; height: 100%; background: var(--sage); border-radius: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; }
.me:hover { background: rgba(0,0,0,.04); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sage-300), var(--sage)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me b { display: block; font-size: 13.5px; line-height: 1.2; }
.me small { color: var(--ink-3); font-size: 12px; }

.main { min-width: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 44px 40px 100px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.1; margin: 0; }
.page-head p { color: var(--ink-2); margin: 6px 0 0; font-size: 15.5px; }
.page-head .acts { display: flex; gap: 10px; }

.tabbar { display: none; }
.m-head { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .page { padding: 18px 18px 120px; }
  .page-head h1 { font-size: 30px; }
  .m-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; height: 54px; padding: 0 16px; background: rgba(247,247,244,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(250,250,248,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; font-size: 10.5px; font-weight: 500; color: var(--ink-3); position: relative; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--sage); }
  .tabbar .plus span { width: 46px; height: 34px; border-radius: 12px; background: var(--sage); color: #fff; display: grid; place-items: center; }
  .tabbar .plus svg { width: 22px; height: 22px; }
  .tabbar .dot { position: absolute; top: 4px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); border: 2px solid #fafaf8; }
}

/* cards */
.card { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.card-pad { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.card-head h2 { font-size: 17px; letter-spacing: -.02em; margin: 0; }
.card-head a { font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--sage-50); color: var(--sage); display: grid; place-items: center; margin-bottom: 14px; }
.stat .ic svg { width: 17px; height: 17px; }
.stat .ic.amber { background: var(--amber-50); color: var(--amber); }
.stat b { display: block; font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.stat span { font-size: 13px; color: var(--ink-2); }

.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }

.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.g-card { position: relative; display: block; text-decoration: none; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.g-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.g-cover { position: relative; aspect-ratio: 4/3; background: var(--mist); overflow: hidden; }
.g-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-card:hover .g-cover img { transform: scale(1.04); }
.g-cover .pills { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.g-cover .pills .pill { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.g-cover .count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 5px; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600; }
.g-cover .count svg { width: 13px; height: 13px; }
.g-body { padding: 16px 18px 18px; }
.g-body h3 { font-size: 16.5px; letter-spacing: -.02em; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-body p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.g-meta { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.g-meta span { display: inline-flex; gap: 5px; align-items: center; }
.g-meta svg { width: 14px; height: 14px; }
.g-menu { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.g-menu svg { width: 18px; height: 18px; }
.g-card:hover .g-menu, .g-menu:focus-visible { opacity: 1; }
@media (hover: none) { .g-menu { opacity: 1; } }
.g-new { display: grid; place-items: center; text-align: center; min-height: 290px; border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; color: var(--ink-2); }
.g-new:hover { border-color: var(--sage-300); background: var(--sage-50); transform: none; box-shadow: none; }
.g-new .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 8px 20px rgba(47,107,94,.3); }
.g-new .ic svg { width: 24px; height: 24px; }
.g-new b { display: block; color: var(--ink); font-size: 16px; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .input { height: 40px; border-radius: 999px; background: var(--paper); }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 24px; text-decoration: none; transition: background .15s; }
.list-item + .list-item { border-top: 1px solid var(--line); }
a.list-item:hover { background: #fafaf8; }
.list-item .thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--mist); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .body b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.list-item .body p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-item .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.list-item .ic-c { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--amber-50); color: var(--amber); }
.list-item .ic-c.ok { background: var(--ok-50); color: var(--ok); }
.list-item .ic-c svg { width: 17px; height: 17px; }
.list-item.resolved { opacity: .55; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; vertical-align: 1px; }
.empty-s { padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty-s svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--sage-300); }

.tip { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night); color: #fff; padding: 24px; }
.tip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.tip > * { position: relative; }
.tip h3 { font-size: 20px; letter-spacing: -.03em; margin: 30px 0 6px; }
.tip p { margin: 0 0 18px; color: rgba(255,255,255,.75); font-size: 14px; }
.tip .btn { --b-bg: #fff; --b-fg: var(--ink); --b-bd: transparent; }

.recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 24px 24px; }
@media (max-width: 700px) { .recent { grid-template-columns: repeat(2, 1fr); } .recent > :nth-child(3) { display: none; } }
.recent a { text-decoration: none; }
.recent img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 8px; transition: transform .4s var(--ease); }
.recent a:hover img { transform: scale(1.03); }
.recent b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent small { color: var(--ink-3); font-size: 12px; }

/* settings layout */
.settings { display: grid; gap: 20px; max-width: 760px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row b { display: block; font-size: 14.5px; }
.set-row small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.logo-drop { display: flex; align-items: center; gap: 18px; }
.logo-box { width: 84px; height: 84px; border-radius: 20px; border: 1px dashed var(--line-2); display: grid; place-items: center; background: var(--bg); overflow: hidden; color: var(--ink-3); font-size: 12px; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.plan-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--sage-50), #fff); border: 1px solid var(--sage-100); }
.plan-card h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }

/* ==========================================================================
   Editor
   ========================================================================== */
.ed { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100svh; background: var(--bg); }
.ed-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(20px); position: relative; z-index: 5; }
.ed-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ed-title input { border: 0; background: transparent; font-size: 16px; font-weight: 600; letter-spacing: -.02em; padding: 2px 6px; margin-left: -6px; border-radius: 8px; width: 100%; max-width: 420px; }
.ed-title input:hover { background: rgba(0,0,0,.04); }
.ed-title input:focus { outline: none; background: var(--paper); box-shadow: 0 0 0 3px var(--sage-100); }
.ed-title small { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.saved { display: inline-flex; gap: 4px; align-items: center; }
.saved svg { width: 13px; height: 13px; color: var(--ok); }
.ed-body { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 0; }
.ed-panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.ed-tabs { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.ed-tabs::-webkit-scrollbar { display: none; }
.ed-tabs button { display: inline-flex; gap: 7px; align-items: center; height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; position: relative; }
.ed-tabs button svg { width: 17px; height: 17px; }
.ed-tabs button:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.ed-tabs button.on { background: var(--sage-50); color: var(--sage-700); font-weight: 600; }
.ed-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ed-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.ed-sec { margin-bottom: 30px; }
.ed-sec h3 { font-size: 15px; letter-spacing: -.015em; margin: 0 0 4px; }
.ed-sec > p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 16px; }
.ed-preview { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; min-height: 0; background: radial-gradient(70% 60% at 50% 45%, #fff 0%, var(--bg) 70%); overflow: hidden; }
.ed-preview .seg { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(118,118,128,.1); }
.ed-preview .seg button { display: inline-flex; gap: 6px; align-items: center; }
.ed-preview .seg svg { width: 15px; height: 15px; }
.device { transition: all .5s var(--ease); flex-shrink: 0; }
.device.phone { width: 340px; height: min(700px, calc(100vh - 160px)); border-radius: 48px; background: #0d0d0d; padding: 11px; box-shadow: var(--sh-4), inset 0 0 0 2px #2a2a2a; }
.device.desktop { width: min(100%, 1000px); height: min(620px, calc(100vh - 170px)); border-radius: 14px; background: #fff; padding: 28px 0 0; box-shadow: var(--sh-4); position: relative; border: 1px solid var(--line); }
.device.desktop::before { content: ""; position: absolute; top: 10px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 15px 0 #febc2e, 30px 0 #28c840; }
.device iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.device.phone iframe { border-radius: 38px; }
.device.desktop iframe { border-radius: 0 0 13px 13px; }
.preview-cap { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 1000px) {
  .ed-body { grid-template-columns: 1fr; }
  .ed-preview { display: none; }
  .ed-preview.mobile-on { display: flex; position: fixed; inset: 60px 0 0; z-index: 20; }
}
.m-only { display: none !important; }
@media (max-width: 1000px) { .m-only { display: inline-flex !important; } .d-only { display: none !important; } }

.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px 20px; text-align: center; transition: all .2s; cursor: pointer; background: var(--bg); }
.drop:hover, .drop.over { border-color: var(--sage-500); background: var(--sage-50); }
.drop .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); box-shadow: var(--sh-2); display: grid; place-items: center; margin: 0 auto 12px; color: var(--sage); }
.drop .ic svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: 15px; }
.drop small { color: var(--ink-3); font-size: 13px; }
.processing { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); padding: 14px 0 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sage-100); border-top-color: var(--sage); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.vids { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.vid { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); transition: box-shadow .2s, border-color .2s; }
.vid:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.vid-th { position: relative; width: 76px; height: 100px; border-radius: 11px; overflow: hidden; background: var(--mist); cursor: pointer; }
.vid-th img { width: 100%; height: 100%; object-fit: cover; }
.vid-th .d { position: absolute; left: 5px; bottom: 5px; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 5px; }
.vid-th .edit { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .2s; text-align: center; padding: 6px; }
.vid-th:hover .edit { opacity: 1; }
.vid-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vid-row1 { display: flex; gap: 8px; align-items: center; }
.vid-row1 input { flex: 1; min-width: 0; border: 0; font-weight: 600; font-size: 14.5px; padding: 4px 6px; margin-left: -6px; border-radius: 7px; background: transparent; }
.vid-row1 input:hover { background: var(--bg); }
.vid-row1 input:focus { outline: none; background: var(--bg); box-shadow: 0 0 0 3px var(--sage-100); }
.vid-row2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vid-row2 select { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; padding: 0 8px; }
.vid textarea { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; padding: 8px 10px; resize: vertical; }
.vid textarea:focus { outline: none; border-color: var(--sage-300); background: #fff; }
.vid .tools { display: flex; gap: 2px; margin-left: auto; }
.vid .tools .btn { color: var(--ink-3); }
.vid .tools .btn:hover { color: var(--ink); }
.vid .badges { display: flex; gap: 5px; flex-wrap: wrap; }
.vid .badges .pill { height: 22px; font-size: 11.5px; }

.cover-ed { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.cover-pv { position: relative; border-radius: 14px; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; box-shadow: var(--sh-2); }
.cover-pv.landscape { width: 220px; aspect-ratio: 16/10; }
.cover-pv.portrait { width: 130px; aspect-ratio: 9/16; }
.cover-pv img { width: 100%; height: 100%; object-fit: cover; cursor: crosshair; }
.focus-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.3); pointer-events: none; transition: left .3s var(--ease), top .3s var(--ease); }
.focus-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.cover-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-o { border-radius: 14px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); text-align: left; transition: box-shadow .2s, border-color .2s; }
.theme-o .sw { height: 64px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.theme-o .sw i { display: block; height: 6px; border-radius: 3px; }
.theme-o .sw i:first-child { width: 60%; height: 9px; }
.theme-o .sw i:last-child { width: 40%; }
.theme-o b { display: block; padding: 8px 10px; font-size: 12.5px; background: var(--paper); }
.theme-o.on { border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-50); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.opt { border-radius: 14px; border: 1px solid var(--line-2); padding: 12px; text-align: left; transition: all .2s; background: var(--paper); }
.opt:hover { border-color: var(--sage-300); }
.opt.on { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-50); background: var(--sage-50); }
.opt em { display: block; font-style: normal; font-size: 26px; line-height: 1.1; margin-bottom: 4px; }
.opt strong { display: block; font-size: 13px; }
.opt small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.f-serif em { font-family: var(--serif); }
.f-sans em { font-weight: 700; letter-spacing: -.045em; }
.f-display em { font-family: var(--condensed); font-weight: 800; font-stretch: condensed; text-transform: uppercase; }
.lo { display: grid; gap: 3px; height: 50px; margin-bottom: 10px; }
.lo b { display: block; background: var(--line-2); border-radius: 4px; }
.opt.on .lo b { background: var(--sage-300); }
.opt.on .lo b:first-child { background: var(--sage); }
.lo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lo-reels { grid-template-columns: 1fr; padding: 0 30%; }
.lo-reels b:not(:first-child) { display: none; }
.lo-cinema { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; }
.lo-cinema b:first-child { grid-column: 1 / -1; }
.lo-feed { grid-template-columns: 1fr; grid-template-rows: 3fr 1fr; padding: 0 22%; }
.lo-feed b:nth-child(n+3) { display: none; }

.credits-ed { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.credit { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.credit .input { height: 40px; font-size: 14px; }

.share-box { display: flex; gap: 8px; }
.share-box .input { font-size: 13.5px; color: var(--ink-2); background: var(--bg); }
.share-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.share-btns a, .share-btns button { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; font-size: 12.5px; font-weight: 500; background: var(--paper); transition: background .15s; }
.share-btns a:hover, .share-btns button:hover { background: var(--bg); }
.share-btns svg { width: 22px; height: 22px; color: var(--sage); }
.wa-prev { margin-top: 18px; border-radius: 18px; padding: 18px; background: #e8e1d9 radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { max-width: 290px; margin-left: auto; background: #d9fdd3; border-radius: 12px 12px 4px 12px; padding: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa-img { aspect-ratio: 1.91/1; border-radius: 9px; overflow: hidden; background: #c7d2cd; }
.wa-img img { width: 100%; height: 100%; object-fit: cover; }
.wa-txt { padding: 8px 8px 4px; font-size: 13px; line-height: 1.35; }
.wa-txt b { display: block; }
.wa-txt span { color: #4e5d4b; font-size: 12px; display: block; margin-top: 2px; }
.wa-txt small { color: #7a8a77; font-size: 11px; display: block; margin-top: 3px; }

.act-list .list-item { padding: 14px 0; }

/* ==========================================================================
   Modal, toast
   ========================================================================== */
.modal-bg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(15,23,20,0); backdrop-filter: blur(0); transition: background .25s, backdrop-filter .25s; }
.modal-bg.in { background: rgba(15,23,20,.4); backdrop-filter: blur(6px); }
.modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); border-radius: 24px; padding: 26px; box-shadow: var(--sh-4); transform: translateY(14px) scale(.98); opacity: 0; transition: transform .35s var(--spring), opacity .25s; }
.modal.wide { width: min(720px, 100%); }
.modal-bg.in .modal { transform: none; opacity: 1; }
.modal-title { font-size: 21px; letter-spacing: -.03em; margin: 0 0 6px; }
.modal-text { color: var(--ink-2); margin: 0 0 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal .x { position: absolute; right: 18px; top: 18px; }
.picker-stage { background: #000; border-radius: 16px; overflow: hidden; display: grid; place-items: center; max-height: 52vh; }
.picker-stage video { max-height: 52vh; width: auto; }
.range { width: 100%; margin: 16px 0 6px; accent-color: var(--sage); }
.picker-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.picker-src { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; }
.picker-src button { width: 54px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.picker-src button.on { border-color: var(--sage); opacity: 1; }
.picker-src img { width: 100%; height: 100%; object-fit: cover; }
.tpl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.tpl { border-radius: 14px; border: 1px solid var(--line-2); padding: 0; overflow: hidden; text-align: left; transition: all .2s; }
.tpl.on { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-50); }
.tpl .sw { height: 48px; }
.tpl b { display: block; font-size: 12px; padding: 7px 9px; }

#toast { position: fixed; left: 50%; bottom: 30px; z-index: 600; display: inline-flex; align-items: center; gap: 9px; transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none; background: rgba(29,29,31,.92); backdrop-filter: blur(20px); color: #fff; padding: 11px 18px 11px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .35s var(--spring); box-shadow: var(--sh-3); }
#toast svg { width: 17px; height: 17px; color: var(--sage-300); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 900px) { #toast { bottom: 96px; } }

.menu { position: fixed; z-index: 450; min-width: 210px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); box-shadow: var(--sh-3), 0 0 0 1px var(--line); animation: pop .18s var(--ease); }
.menu button, .menu a { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 14px; text-decoration: none; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--mist); }
.menu svg { width: 17px; height: 17px; color: var(--ink-2); }
.menu .danger { color: var(--rose); }
.menu .danger svg { color: var(--rose); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.m-only-auth { display: none; margin-bottom: 32px; }
@media (max-width: 900px) { .m-only-auth { display: inline-flex; } }
.auth-box .brand:not(.m-only-auth) { display: none; }
@media (max-width: 900px) { .auth-box .brand:not(.m-only-auth) { display: inline-flex; } }

/* editor preview spacing */
.ed-preview { justify-content: flex-start; padding: 70px 20px 16px; }
.device.phone { height: min(720px, calc(100vh - 190px)); }
.device.desktop { height: min(640px, calc(100vh - 190px)); }
.ed-tabs button { padding: 0 11px; }

/* =================== v5: cover tab, titles, crop, toggles =================== */
.card.flat { box-shadow: none; padding: 0 18px; border-radius: var(--r); }
.set-row.dim { opacity: .45; pointer-events: none; }
.row-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sage-50); color: var(--sage); display: grid; place-items: center; flex-shrink: 0; }
.row-ic svg { width: 17px; height: 17px; }
.logo-mini { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--ink-3); flex-shrink: 0; }
.logo-mini img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo-mini svg { width: 18px; height: 18px; }

/* cover preview as a button */
button.cover-pv { padding: 0; border: 0; cursor: pointer; }
button.cover-pv:disabled { cursor: default; }
.cover-pv .cz { position: absolute; inset: 0; }
.cover-pv .cz img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.cv-edit { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; gap: 5px; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cv-edit svg { width: 13px; height: 13px; }
button.cover-pv:hover .cv-edit { opacity: 1; }
@media (hover: none) { .cv-edit { opacity: 1; } }

/* title cards */
.tcard { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; background: linear-gradient(180deg, #fff, #fbfbf9); }
.tcard-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tcard-head b { font-size: 13.5px; }
.tcard-head small { color: var(--ink-3); font-size: 12px; }
.tinput { height: 50px; font-size: 22px; letter-spacing: -.01em; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.mini { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.mini em { font-style: normal; color: var(--ink-3); font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.tgrid .range { margin: 8px 0 0; }
.fontbtn { width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font-size: 17px; transition: border-color .15s; }
.fontbtn:hover { border-color: var(--sage-300); }
.fontbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontbtn svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.trow { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.seg.sm button { height: 28px; padding: 0 11px; font-size: 12.5px; }
.ibtn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .15s; }
.ibtn svg { width: 16px; height: 16px; }
.ibtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.colors { gap: 7px; }
.colors .sw { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative; transition: transform .2s var(--spring); cursor: pointer; flex-shrink: 0; }
.colors .sw:hover { transform: scale(1.1); }
.colors .sw.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px #fff, 0 0 0 4px var(--sage); }
.colors .sw.auto { width: auto; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--mist); }
.colors .sw.custom { background: conic-gradient(#f66, #fd5, #6d6, #5cf, #a6f, #f6a, #f66); overflow: hidden; }
.colors .sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

.fontmenu { width: 300px; overflow-y: auto; padding: 6px; }
.fm-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 4px; }
.fontmenu button { justify-content: space-between; padding: 8px 10px; }
.fontmenu button span { font-size: 21px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.fontmenu button small { font-size: 11.5px; color: var(--ink-3); flex-shrink: 0; margin-left: 10px; }
.fontmenu button.on { background: var(--sage-50); }
.fontmenu button.on small { color: var(--sage-700); font-weight: 600; }

/* crop tool */
.crop-wrap { display: grid; place-items: center; background: repeating-conic-gradient(#f1f1ee 0 25%, #fafaf8 0 50%) 50% / 18px 18px; border-radius: 16px; padding: 18px; }
.crop { position: relative; overflow: hidden; border-radius: 12px; cursor: grab; touch-action: none; box-shadow: 0 10px 30px rgba(0,0,0,.18); user-select: none; }
.crop.dragging { cursor: grabbing; }
.crop.portrait { width: min(240px, 60vw); aspect-ratio: 9/16; }
.crop.landscape { width: min(600px, 100%); aspect-ratio: 16/10; }
.crop .cz { position: absolute; inset: 0; }
.crop img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thirds { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.crop:hover .thirds, .crop.dragging .thirds { opacity: 1; }
.thirds i { position: absolute; background: rgba(255,255,255,.55); }
.thirds i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.thirds i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.thirds i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.thirds i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.crop-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.crop-hint svg { width: 14px; height: 14px; }
.crop.dragging .crop-hint { opacity: 0; }
.crop-zoom { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; font-weight: 600; }
.crop-zoom .range { flex: 1; margin: 0; }
.crop-zoom b { font-weight: 500; color: var(--ink-3); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* credits with instagram */
.credit { grid-template-columns: 1fr 1.3fr auto; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.credit .input { background: var(--paper); }
.ig-in { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-3); }
.ig-in:focus-within { border-color: var(--sage-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 14%, transparent); }
.ig-in svg { width: 16px; height: 16px; flex-shrink: 0; }
.ig-in input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.list-item .ic-c.dl { background: #eaf0fb; color: #3a5ba0; }

/* polish */
.btn.soft svg, .btn.primary svg { opacity: .95; }
.ed-sec h3 { font-size: 16px; }
.ed-sec + .ed-sec { padding-top: 26px; border-top: 1px solid var(--line); }
.opt small { line-height: 1.35; }
#b-font { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.logo-mini, .logo-box { background: repeating-conic-gradient(#a3a39f 0 25%, #bdbdb9 0 50%) 50% / 12px 12px; border-color: transparent; }
.logo-mini:not(:has(img)), .logo-box:not(:has(img)) { background: var(--bg); border: 1px dashed var(--line-2); }

/* =================== v6: save button, mode switch, suggestions, portfolio studio =================== */
.save-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: all .25s var(--ease); white-space: nowrap; }
.save-btn svg { width: 15px; height: 15px; }
.save-btn[data-state="saved"] { background: var(--ok-50); color: var(--ok); }
.save-btn[data-state="dirty"] { background: var(--sage); color: #fff; box-shadow: 0 4px 14px rgba(47,107,94,.3); }
.save-btn[data-state="saving"] { background: var(--mist); color: var(--ink-2); }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
.save-btn[data-state="saving"] .spinner { border-color: rgba(0,0,0,.12); border-top-color: var(--ink-2); }
.saved-time { color: var(--ink-3); font-size: 12px; }
@media (max-width: 600px) { .save-btn span { display: none; } .save-btn { width: 36px; padding: 0; justify-content: center; } .saved-time { display: none; } }

.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.12); margin: 0 4px 18px; }
.mode a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: all .2s; }
.mode a svg { width: 15px; height: 15px; }
.mode a.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.05); }
.m-head .mode { margin: 0; width: 210px; }

.menu.suggest { padding: 6px; max-height: 320px; overflow: auto; }
.menu.suggest button { gap: 10px; }
.menu.suggest button.on { background: var(--sage-50); }
.sv-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sage-300), var(--sage)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.sv-t { display: flex; flex-direction: column; min-width: 0; }
.sv-t b { font-size: 14px; }
.sv-t small { font-size: 12px; color: var(--ink-3); }

.list-item .ic-c.fav { background: #fdecef; color: #d0475f; }
.list-item .ic-c.rv { background: var(--amber-50); color: var(--amber); }

/* portfolio studio */
.pf-hero-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; background: var(--night); color: #fff; box-shadow: var(--sh-3); }
.pf-hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,12,.85) 0%, rgba(10,14,12,.45) 55%, rgba(10,14,12,.1) 100%); }
.pf-hc-in { position: relative; z-index: 1; padding: 34px; max-width: 620px; }
.pf-hc-in h2 { font-family: 'Cormorant Garamond', var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 14px 0 6px; letter-spacing: -.01em; }
.pf-hc-in p { margin: 0 0 18px; color: rgba(255,255,255,.75); font-size: 16px; }
.pf-hero-card .pill { background: rgba(255,255,255,.16); color: #fff; }
.pf-hero-card .pill.live { background: var(--ok); }
.pf-url { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 20px; }
.pf-url svg { width: 15px; height: 15px; }
.pf-hc-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.ghost-light { --b-bg: rgba(255,255,255,.12); --b-fg: #fff; --b-bd: rgba(255,255,255,.25); }
.pf-pub { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; margin-left: 6px; cursor: pointer; }
.check-item .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.check-item.ok .ck { background: var(--ok); border-color: var(--ok); }
.check-item .ck svg { width: 14px; height: 14px; }
.check-item.ok b { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.thumb.lg { width: 84px; height: 64px; }
.row-tools { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.story-row { flex-wrap: nowrap; }
@media (max-width: 600px) { .story-row { flex-wrap: wrap; } .row-tools { width: 100%; justify-content: flex-end; } }
.add-card .g-cover { aspect-ratio: 16/10; }
.story-ta { min-height: 260px; font-family: 'Cormorant Garamond', var(--serif); font-size: 19px; line-height: 1.55; }
.pick-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pick-v { position: relative; display: block; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .5; transition: all .2s; background: var(--mist); }
.pick-v.on { opacity: 1; border-color: var(--sage); }
.pick-v input { position: absolute; opacity: 0; }
.pick-v img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pick-v span { display: block; padding: 6px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--paper); }
.pick-v i { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.pick-v.on i { opacity: 1; }
.pick-v i svg { width: 13px; height: 13px; }
.slug-in { display: flex; align-items: center; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.slug-in span { padding: 0 4px 0 14px; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.slug-in input { flex: 1; min-width: 0; border: 0; outline: none; height: 100%; font-size: 15px; background: transparent; }
.slug-in:focus-within { border-color: var(--sage-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 14%, transparent); }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.svc-row .textarea { grid-column: 1; min-height: 60px; }
.svc-row .btn { grid-row: 1; grid-column: 2; }
.review-row { align-items: flex-start; }
.stars-s { color: var(--amber); font-size: 13px; letter-spacing: 1px; margin-left: 4px; }
.pf-show { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }

/* =================== v7: save bar, plans, lock, reorder, logo size =================== */
.savebar { position: sticky; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--sh-3), 0 0 0 1px var(--line); max-width: 760px; transition: box-shadow .3s; }
.savebar .sb-txt { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.savebar .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; transition: background .3s; }
.savebar[data-state="dirty"] .sb-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-50); }
.savebar[data-state="dirty"] .sb-txt { color: var(--ink); font-weight: 500; }
.savebar[data-state="saving"] .sb-dot { background: var(--ink-3); }
.savebar .sb-btn { min-width: 96px; }
.savebar .sb-btn:not(.primary) { --b-bg: var(--ok-50); --b-fg: var(--ok); --b-bd: transparent; }
@media (max-width: 900px) { .savebar { bottom: 88px; } }

.logo-size { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.logo-size .range { flex: 1; margin: 0; }
.logo-pv { position: relative; margin-top: 12px; height: 210px; border-radius: 16px; overflow: hidden; background: #2a332f; }
.logo-pv .lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.logo-pv .lp-bar { position: absolute; left: 16px; top: 14px; }
.logo-pv .lp-bar img { width: auto; max-width: 160px; object-fit: contain; transition: height .15s; }
.logo-pv .lp-hero { position: absolute; left: 18px; bottom: 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.logo-pv .lp-hero img { width: auto; max-width: 240px; object-fit: contain; margin-bottom: 10px; align-self: flex-start; transition: height .15s; }
.logo-pv .lp-hero span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.logo-pv .lp-hero b { font-family: 'Cormorant Garamond', var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.plan-o { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.plan-o.best { background: var(--night); color: #fff; border-color: transparent; box-shadow: var(--sh-3); }
.plan-o.current { box-shadow: 0 0 0 2px var(--sage); }
.plan-o .badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--sage-300); color: var(--night); }
.plan-o h3 { font-size: 16px; margin: 0 0 2px; letter-spacing: -.02em; }
.plan-o .sub { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.plan-o.best .sub { color: rgba(255,255,255,.55); }
.plan-o .amt { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.plan-o .amt small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-o.best .amt small { color: rgba(255,255,255,.55); }
.plan-o ul { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.plan-o li { display: flex; gap: 8px; align-items: flex-start; }
.plan-o li svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; margin-top: 1px; }
.plan-o.best li svg { color: var(--sage-300); }
.plan-o .btn { margin-top: auto; }
.plan-o.best .btn.primary { --b-bg: #fff; --b-fg: var(--night); }

.lock-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; padding: 34px; border-radius: var(--r-xl); background: radial-gradient(90% 90% at 0% 0%, var(--sage-50), var(--paper) 70%); border: 1px solid var(--line); }
@media (max-width: 900px) { .lock-hero { grid-template-columns: 1fr; padding: 22px; gap: 30px; } }
.lock-art { position: relative; height: 380px; }
.lock-art img { position: absolute; object-fit: cover; border-radius: 18px; box-shadow: var(--sh-3); }
.lock-art .la-0 { left: 0; top: 30px; width: 58%; height: 78%; }
.lock-art .la-1 { right: 0; top: 0; width: 46%; height: 52%; }
.lock-art .la-2 { right: 8%; bottom: 0; width: 40%; height: 42%; }
.lock-copy h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.04em; margin: 14px 0 12px; }
.lock-copy > p { color: var(--ink-2); font-size: 16px; margin: 0 0 18px; }
.lock-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.lock-list li { display: flex; gap: 10px; align-items: center; }
.lock-list svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; }
.lock-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lock-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--sage-50); border: 1px solid var(--sage-100); margin-bottom: 12px; }
.lock-note > svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; }
.lock-note div { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.lock-note b { color: var(--ink); font-size: 14px; }
.card.dim { opacity: .5; pointer-events: none; }
.trial-bar { display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 18px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(90deg, var(--amber-50), #fff); border: 1px solid #f1dfbd; font-size: 14px; }
.trial-bar > svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.trial-bar span { flex: 1; }

.back-btn { padding: 0 12px 0 8px; gap: 4px; }
@media (max-width: 600px) { .back-btn span { display: none; } }

.vid { grid-template-columns: 30px 76px 1fr; position: relative; }
.vid-order { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 9px; color: var(--ink-3); cursor: grab; user-select: none; touch-action: none; }
.vid-order:hover { background: var(--bg); color: var(--ink); }
.vid-order span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.vid-order svg { width: 16px; height: 16px; fill: currentColor; }
.vid.dragging { opacity: .4; }
.vid.drop-before::before, .vid.drop-after::after { content: ""; position: absolute; left: 8px; right: 8px; height: 3px; border-radius: 3px; background: var(--sage); }
.vid.drop-before::before { top: -8px; } .vid.drop-after::after { bottom: -8px; }
.menu button:disabled { opacity: .35; pointer-events: none; }
.pf-th .sw { height: 70px; justify-content: space-between; }
.pf-th .sw span { font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1; }
.pf-th .sw i { width: 30% !important; height: 4px !important; }

.prices.four { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prices.four .price { padding: 26px; }
.prices.four .price .amt { font-size: 44px; }
@media (max-width: 1100px) { .prices.four { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }
@media (max-width: 640px) { .prices.four { grid-template-columns: 1fr; max-width: 440px; } }

.vid.lifting { z-index: 5; box-shadow: var(--sh-3); border-color: var(--sage-300); transition: none; cursor: grabbing; }
.vid.lifting .vid-order { cursor: grabbing; color: var(--sage); }

/* =================== v9 =================== */
.logo-places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 0 16px; }
.logo-places button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.logo-places button.on { border-color: var(--sage); background: var(--sage-50); color: var(--sage-700); font-weight: 600; box-shadow: 0 0 0 3px var(--sage-50); }
.lpp { position: relative; display: block; width: 100%; aspect-ratio: 4/3; border-radius: 7px; background: linear-gradient(160deg, #9aa6a0, #4d5a54); }
.lpp b { position: absolute; width: 30%; height: 9%; border-radius: 2px; background: #fff; }
.lpp-bar b { left: 8%; top: 9%; } .lpp-center b { left: 35%; top: 9%; } .lpp-right b { right: 8%; top: 9%; }
.lpp-hero b { left: 10%; bottom: 34%; width: 36%; height: 13%; }
.lpp-hero::after { content: ""; position: absolute; left: 10%; bottom: 14%; width: 60%; height: 10%; border-radius: 2px; background: rgba(255,255,255,.55); }
.set-row.col { flex-direction: column; align-items: stretch; gap: 10px; }
.size-row { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.size-row .range { flex: 1; margin: 0; }
.size-row em { font-style: normal; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.custom-link { margin-top: 18px; }
.custom-link .slug-in { padding-right: 4px; }
.custom-link .slug-in input { padding-left: 2px; }
.slug-in.bad { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-50); }
.cl-msg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; min-height: 18px; }
.cl-msg svg { width: 14px; height: 14px; }
.cl-msg.ok { color: var(--ok); }
.cl-msg.bad { color: var(--rose); }
.cl-alt { color: var(--sage); font-weight: 600; text-decoration: underline; }
.g-meta .g-size { margin-left: auto; font-variant-numeric: tabular-nums; }
.g-seen { display: flex; gap: 5px; align-items: center; margin: 8px 0 0; font-size: 12px; color: var(--ok); }
.g-seen svg { width: 13px; height: 13px; }
.g-seen.quiet { color: var(--amber); }
.logo-places.dim { opacity: .45; pointer-events: none; }
