/* Reelsnip design system. One stylesheet for every screen.
   Warm cream canvas, pastel colour blocks (butter, pink, periwinkle, sage), ink-black pills for the strong actions,
   soft pink for selected states and the + button. Big rounded corners, playful shapes used sparingly.
   Type: an elegant serif for page titles, Inter for everything else; scale 34 / 22 / 17 / 15 / 13.
   Spacing: 8-point, 20-24px screen padding. Motion: 200-300ms ease-out. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Anton&family=Playfair+Display:ital,wght@1,500;1,600&display=swap");

:root {
  /* color: a light, photography-led palette; the footage brings the colour */
  --canvas: #FFFDFB; --surface: #FFFFFF; --surface-2: #F6E6E5; --fill: rgba(59,18,22,.07); --fill-2: rgba(59,18,22,.045);
  --ink: #3B1216; --ink-2: #5A2A30; --muted: #6E474D; --faint: #A88F92; --sep: #EBD9D6; --border: 1px solid #EBD9D6;
  /* soft pink for selected states and the + button; ink-black pills for the strong actions */
  --accent: #A10728; --accent-press: #860520; --accent-soft: #F6E6E5; --on-accent: #FFFDFB; --accent-text: #A10728;
  --primary: #A10728; --primary-press: #860520; --on-primary: #FFFDFB;
  /* the pastel colour blocks */
  --butter: #F2D76A; --butter-soft: #F8EAB2; --pink: #FEC6D3; --pink-soft: #F6E6E5; --peri: #B7CBEA; --peri-soft: #DDE6F5;
  --sage: #A3B172; --sage-soft: #DCE3C4; --tangerine: #FDC453;
  --accent-hi: var(--accent); --sun: var(--butter); --sun-soft: var(--butter-soft); --berry: #B4472F; --halo: 0 0 0 5px rgba(161,7,40,.14);
  --lite: #9A9A95;
  --danger: #C4161C; --ok: #2E7D4F; --glass: rgba(255,255,255,.82); --glass-dark: rgba(28,28,28,.5);
  /* shape */
  --r-xs: 10px; --r-sm: 16px; --r-md: 20px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(32,32,32,.04);
  --sh-2: 0 2px 6px rgba(32,32,32,.04), 0 16px 40px rgba(32,32,32,.08);
  --sh-float: 0 10px 30px rgba(32,32,32,.12);
  /* space (8-point); screen padding 20px on phones, 24px from tablets up */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --pad: 20px;
  /* type */
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif; --title: "Anton", "Impact", "Arial Narrow", sans-serif;
  /* motion */
  --ease: cubic-bezier(.22,1,.36,1); --dur: 240ms; --dur-fast: 160ms;
  /* layout */
  --nav-h: 84px; --side-w: 248px; --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);

  /* names older screens still use, mapped to the tokens above */
  --bg: var(--canvas); --panel: var(--surface); --panel-2: var(--surface-2); --line: var(--sep); --accent-ink: var(--on-accent);
  --soft: var(--accent-soft); --blush: var(--accent-soft); --brown: var(--ink-2); --bad: var(--danger); --cut: #D23A3A; --key: var(--accent-text); --zoom: #2F6FB0;
  --radius: var(--r-lg); --shadow-1: var(--sh-1); --shadow-2: var(--sh-2); --serif: var(--font); --sans: var(--font); --r-md2: var(--r-md);
  --t: var(--dur); --hair: var(--sep); --accent-2: var(--accent);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --pad: 24px; } }

/* ---------- reset and type ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { font: 400 15px/1.47 var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
h1, .t-xl { font: 400 36px/1.08 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 0 0 var(--s1); }
h2, .t-l { font: 500 22px/1.27 var(--font); letter-spacing: -.015em; margin: 0 0 var(--s1); }
h3, .t-m { font: 500 17px/1.4 var(--font); letter-spacing: -.01em; margin: 0; }
.t-b { font: 400 15px/1.47 var(--font); }
.t-s, .small { font-size: 13px; line-height: 1.38; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-select { user-select: none; -webkit-user-select: none; }

/* ---------- icons: thin line, one set ---------- */
.ic, .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Button ---------- */
button, .btn { font: 500 15px/1 var(--font); letter-spacing: -.005em; min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: var(--s1); transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-fast), opacity var(--dur-fast); }
button:hover, .btn:hover { text-decoration: none; }
button:active, .btn:active { transform: scale(.97); }
button.primary, .btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 24px rgba(31,31,33,.16); }
button.primary:active, .btn.primary:active { background: var(--primary-press); }
button.dark, .btn.dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(17,17,19,.18); }
button.ghost, .btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
button.quiet, .btn.quiet { background: var(--fill-2); box-shadow: none; }
button.big, .btn.big { min-height: 56px; font-size: 17px; padding: 0 var(--s4); }
button.small, .btn.small { min-height: 36px; font-size: 13px; padding: 0 var(--s2); }
button.wide, .btn.wide { width: 100%; }
button.danger { color: var(--danger); }
button:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn, .iconbtn { width: 44px; height: 44px; min-height: 44px; padding: 0 !important; border-radius: var(--r-pill); display: inline-grid; place-items: center; }

/* ---------- Inputs (16px so iOS never zooms) ---------- */
input:not([type]), input[type=email], input[type=text], input[type=number], input[type=search], input[type=url], input[type=password], input[type=tel], textarea, select {
  width: 100%; min-height: 48px; padding: 12px var(--s2); border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font); box-shadow: inset 0 0 0 1px var(--sep); transition: box-shadow var(--dur-fast); -webkit-appearance: none; appearance: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
label { font-size: 13px; color: var(--muted); }

/* ---------- Ruler slider: tick marks, a center marker, the value is an orange line ---------- */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 28px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(17,17,19,.22) 0 1px, transparent 1px 8px) center / 100% 12px no-repeat,
              repeating-linear-gradient(90deg, rgba(17,17,19,.32) 0 1.5px, transparent 1.5px 40px) center / 100% 20px no-repeat; }
input[type=range]::-moz-range-track { height: 28px; background: repeating-linear-gradient(90deg, rgba(17,17,19,.22) 0 1px, transparent 1px 8px) center / 100% 12px no-repeat; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 32px; margin-top: -2px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(161,7,40,.12); }
input[type=range]::-moz-range-thumb { width: 3px; height: 32px; border: 0; border-radius: 2px; background: var(--accent); }
.ruler, label.slider { position: relative; display: grid; gap: 4px; }
.ruler::after, label.slider::after { content: ""; position: absolute; left: 50%; bottom: 36px; width: 0; height: 0; transform: translateX(-50%);
  border: 4px solid transparent; border-top: 5px solid var(--ink); pointer-events: none; }

/* ---------- Card ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: var(--s3); border: 0; max-width: 480px; margin: var(--s5) auto; }
.card.flat { box-shadow: none; }
.stack { display: grid; gap: var(--s1); margin: var(--s2) 0; }
.group, .list { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s2); color: var(--ink); text-decoration: none; font-size: 15px; }
.list > * + * { box-shadow: inset 0 1px 0 var(--sep); }
.list > *::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--faint); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.list > .noarrow::after { display: none; }
.list > * .val { margin-left: auto; color: var(--muted); }
.list > * .val + ::after { display: none; }

/* ---------- Pill segmented control ---------- */
.seg2, .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--fill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg2::-webkit-scrollbar { display: none; }
.seg2 button, .seg button { min-height: 36px; padding: 0 var(--s2); border-radius: var(--r-pill); box-shadow: none; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; display: inline-flex; gap: 6px; }
.seg2 button .ic, .seg button .ic { width: 18px; height: 18px; }
.seg2 button.on, .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,19,.06), 0 4px 12px rgba(17,17,19,.08); }
.seg2.tabs { margin: var(--s2) 0 var(--s3); }

/* chips (filters): quiet pills, the chosen one is ink */
.chiprow { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow button, .mode { flex: none; min-height: 36px; padding: 0 var(--s2); font-size: 13px; font-weight: 500; background: var(--surface); box-shadow: var(--sh-1); color: var(--ink-2); border: 0; border-radius: var(--r-pill); }
.chiprow button.on, .mode.on { background: var(--ink); color: #fff; }
.modes { display: flex; gap: var(--s1); flex-wrap: wrap; margin: 0 0 var(--s2); }

/* ---------- Tool rail item: icon + tiny label, active icon sits in an orange circle ---------- */
.rail { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: var(--s1) var(--s1) calc(var(--s1) + var(--safe-b)); }
.rail::-webkit-scrollbar { display: none; }
.rail-item, .tool { flex: 0 0 64px; display: grid !important; justify-items: center; align-content: start; gap: 4px; padding: 2px 0 !important; min-height: 68px; overflow: visible; border: 0 !important;
  background: transparent !important; box-shadow: none !important; color: var(--muted) !important; font: 500 11px/1.2 var(--font) !important; border-radius: var(--r-sm) !important; }
.rail-item i, .tool .ico { width: 40px !important; height: 40px !important; padding: 9px; border-radius: var(--r-pill); display: grid; place-items: center;
  transition: background var(--dur-fast), color var(--dur-fast); box-sizing: border-box; }
.rail-item.on, .tool.on { color: var(--ink) !important; background: transparent !important; }
.rail-item.on i, .tool.on .ico { background: var(--accent); color: #fff; filter: none !important; }

/* ---------- Bottom sheet ---------- */
.sheet2 { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,19,.32); display: grid; align-items: end; justify-items: center; animation: fadeIn var(--dur) var(--ease); }
.sheet2[hidden] { display: none; }
.sheet2 > div { width: min(560px, 100%); background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s1) var(--s3) calc(var(--s3) + var(--safe-b));
  display: grid; gap: var(--s2); max-height: 90dvh; overflow-y: auto; animation: sheetUp 300ms var(--ease); box-shadow: var(--sh-2); overscroll-behavior: contain; }
.sheet2 > div::before { content: ""; width: 36px; height: 5px; border-radius: 9px; background: rgba(17,17,19,.14); justify-self: center; margin-bottom: var(--s1); }
.sheet2 h2 { margin: 0; font: 500 22px/1.27 var(--font); }
@media (min-width: 700px) { .sheet2 { align-items: center; } .sheet2 > div { border-radius: var(--r-lg); padding-bottom: var(--s3); } .sheet2 > div::before { display: none; } }
.opt-row { display: grid; grid-template-columns: 44px 1fr; gap: var(--s2); align-items: center; text-align: left; padding: var(--s1) 0; border-radius: var(--r-sm);
  background: transparent; box-shadow: none; color: var(--ink); text-decoration: none; min-height: 64px; font-weight: 400; justify-content: stretch; }
.opt-row:hover { text-decoration: none; background: var(--surface-2); }
.opt-row i { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.opt-row i svg { width: 22px; height: 22px; }
.opt-row b { display: block; font: 500 15px/1.3 var(--font); }
.opt-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }

/* ---------- Tab bar: a floating pill of thin icons, and one round orange action beside it ---------- */
.appnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 var(--s2); pointer-events: none; view-transition-name: tabbar; }
.navpill { pointer-events: auto; flex: 1; max-width: 340px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 5px; border-radius: var(--r-pill);
  background: var(--ink); box-shadow: var(--sh-float); }
.navpill a, .navpill button.tab { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px; padding: 0; background: none; box-shadow: none;
  border-radius: var(--r-pill); color: rgba(251,248,242,.72); font: 500 11px/1.2 var(--font); text-decoration: none; transition: background var(--dur-fast); }
.navpill a:hover { text-decoration: none; }
.navpill .on { background: rgba(251,248,242,.14); color: #FBF8F2; }
.navpill .on svg { color: var(--pink); }
.navpill svg { width: 24px; height: 24px; }
.appnav .plus { pointer-events: auto; flex: none; width: 64px; height: 64px; min-height: 64px; padding: 0; border-radius: var(--r-pill); background: var(--pink); color: var(--ink);
  box-shadow: 0 0 0 5px var(--ink), 0 12px 30px rgba(31,31,33,.25); display: grid; place-items: center; }
.appnav .plus svg { width: 28px; height: 28px; stroke-width: 2; }
.appnav .brandmark, .appnav .side-foot { display: none; }
@media (min-width: 1024px) {
  body.has-nav { padding-left: var(--side-w); }
  .appnav { top: 0; bottom: 0; left: 0; right: auto; width: var(--side-w); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: var(--s3) var(--s2); background: var(--surface); box-shadow: 1px 0 0 var(--sep); pointer-events: auto; }
  .appnav .brandmark { order: -2; display: flex; align-items: center; gap: 10px; margin: 0 var(--s1) var(--s3); font: 600 17px/1 var(--font); color: var(--ink); text-decoration: none; }
  .appnav .brandmark img { width: 32px; height: 32px; border-radius: 9px; }
  .appnav .plus { order: -1; width: auto; height: 48px; min-height: 48px; margin: 0 0 var(--s2); grid-auto-flow: column; gap: var(--s1); font: 500 15px/1 var(--font); box-shadow: none; }
  .appnav .plus::after { content: attr(data-label); }
  .appnav .plus svg { width: 20px; height: 20px; }
  .navpill { display: grid; grid-template-columns: 1fr; max-width: none; flex: none; padding: 0; background: none; box-shadow: none; backdrop-filter: none; border-radius: 0; gap: 4px; }
  .navpill a, .navpill button.tab { grid-auto-flow: column; justify-content: start; gap: 12px; padding: 0 12px; min-height: 44px; font-size: 15px; border-radius: var(--r-sm); }
  .navpill svg { width: 22px; height: 22px; }
  .navpill a:hover, .navpill button.tab:hover { background: var(--surface-2); }
  .navpill .on { background: var(--accent-soft); }
  .appnav .side-foot { display: grid; gap: 6px; margin-top: auto; padding: 0 var(--s1); }
  .appnav .side-foot a { font-size: 13px; color: var(--muted); }
}

/* ---------- Glass bar (top bars, controls over video) ---------- */
.glassbar, .top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s1); min-height: 56px;
  padding: calc(var(--s1) + var(--safe-t)) var(--s2) var(--s1); background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); }
.glassbar .title, .top .title { flex: 1; min-width: 0; text-align: center; font: 500 17px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glassbar.dark { background: var(--glass-dark); color: #fff; }
.top { justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font); color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.top-r { display: flex; align-items: center; gap: var(--s1); }
.navback { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink); background: var(--surface); box-shadow: var(--sh-1); flex: none; }
.navback:hover { text-decoration: none; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; z-index: 90; left: 0; right: 0; top: calc(var(--s1) + var(--safe-t)); display: grid; justify-items: center; gap: var(--s1); pointer-events: none; padding: 0 var(--s2); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 440px; width: 100%; min-height: 56px; padding: 10px 10px 10px var(--s2); border-radius: var(--r-md);
  background: rgba(28,28,30,.92); color: #fff; box-shadow: var(--sh-float); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 15px;
  animation: toastIn 320ms var(--ease); }
.toast.out { animation: toastOut 200ms ease-in forwards; }
.toast .tic { width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--accent); display: grid; place-items: center; flex: none; }
.toast .tic svg { width: 18px; height: 18px; stroke: #fff; }
.toast span { flex: 1; }
.toast a, .toast button { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #fff; box-shadow: none; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(100deg, #EAEAED 30%, #F4F4F6 50%, #EAEAED 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); }
.skel.line { height: 12px; border-radius: 6px; }

/* ---------- Progress steps (AI working) ---------- */
.psteps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.psteps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--faint); transition: color var(--dur); }
.psteps li i { width: 24px; height: 24px; border-radius: var(--r-pill); flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(17,17,19,.14); }
.psteps li.done { color: var(--ink-2); }
.psteps li.done i { background: var(--accent); box-shadow: none; }
.psteps li.done i::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: translateY(-1px) rotate(45deg); }
.psteps li.now { color: var(--ink); font-weight: 500; }
.psteps li.now i { box-shadow: inset 0 0 0 2px rgba(242,188,216,.18); position: relative; }
.psteps li.now i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin .9s linear infinite; }
.pbar { height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.pbar > div { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 400ms var(--ease); }
.bar { width: 100%; height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; margin-top: var(--s1); }
.bar > div { height: 100%; background: var(--accent); width: 0; transition: width 300ms var(--ease); }
.spinner { width: 24px; height: 24px; border: 2px solid rgba(17,17,19,.1); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; display: inline-block; }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; gap: var(--s1); text-align: center; padding: var(--s5) var(--s3); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.empty .eic { width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: var(--s1); }
.empty p { margin: 0; color: var(--muted); max-width: 30ch; }
.empty button, .empty .btn { margin-top: var(--s2); }

/* ---------- Media tile: rounded thumbnail, label on the picture ---------- */
.mtile { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: #E6E6EA; aspect-ratio: 9 / 16; color: #fff; text-decoration: none;
  box-shadow: var(--sh-1); transition: transform var(--dur-fast) var(--ease); }
.mtile:active { transform: scale(.98); }
.mtile:hover { text-decoration: none; }
.mtile img, .mtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mtile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.mtile .lbl { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font: 500 13px/1.3 var(--font); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.mtile .lbl small { display: block; font-weight: 400; opacity: .8; font-size: 11px; margin-top: 2px; }
.mtile .corner { position: absolute; z-index: 1; top: 10px; right: 10px; }

/* ---------- Section header ---------- */
.shead { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: var(--s4) 0 var(--s2); flex-wrap: wrap; }
.shead h2 { margin: 0; font: 500 17px/1.3 var(--font); }
.shead > a, .shead > button.link { font: 500 13px/1 var(--font); color: var(--accent-text); background: none; box-shadow: none; min-height: 32px; padding: 0; }
.addnew::before { content: "+ "; }

/* ---------- Stat card ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
.stat { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s2); display: grid; gap: 4px; }
.stat b { font: 500 22px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* ---------- Page layout ---------- */
.narrow, .page { max-width: 760px; margin: 0 auto; padding: calc(var(--s2) + var(--safe-t)) var(--s2) calc(var(--nav-h) + var(--s5) + var(--safe-b)); }
.top ~ .narrow, .top ~ main { padding-top: var(--s2); }
body.has-nav .narrow { padding-bottom: calc(var(--nav-h) + var(--s5) + var(--safe-b)); }
@media (min-width: 1024px) { body.has-nav .narrow, body.has-nav .page { max-width: 1120px; padding: var(--s5) var(--s5) var(--s6); } }
.pg-h { font: 500 28px/1.2 var(--font); letter-spacing: -.02em; margin: var(--s1) 0 4px; }
.pg-sub { color: var(--muted); margin: 0 0 var(--s3); }

/* ---------- older screens: same look ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.drop, .drop2 { display: grid; justify-items: center; gap: var(--s1); text-align: center; border: 1.5px dashed rgba(17,17,19,.14); border-radius: var(--r-lg); padding: var(--s5) var(--s2); cursor: pointer; background: var(--surface); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; line-height: 52px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 var(--s3); padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--r-md); padding: var(--s2); font-size: 13px; box-shadow: var(--sh-1); }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: var(--s3); }
.tile { background: var(--surface); border-radius: var(--r-md); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.tile-thumb { position: relative; aspect-ratio: 9 / 12; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.tile-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 10px var(--s2) var(--s2); display: grid; gap: 2px; }
.play { font-size: 13px; font-weight: 500; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-pill); position: relative; z-index: 1; }
.install { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-md); padding: 12px var(--s2); margin: 0 0 var(--s2); box-shadow: var(--sh-1); font-size: 13px; }
.install img { border-radius: 12px; flex: none; }
.install span { flex: 1; }
.install strong { color: var(--ink); font-weight: 600; }
.install button { min-height: 36px; }
.share-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 5px; font-size: 11px; vertical-align: middle; }
.lang-sw { min-height: 36px !important; padding: 0 12px !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .04em; box-shadow: none !important; background: var(--fill-2) !important; }
.lang-sw::after { content: "EN"; }
html[lang=en] .lang-sw::after { content: "RO"; }
.tpl-pick { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.tpl-pick img { width: 48px; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; }
.tpl-pick strong, .tpl-pick span { display: block; }
.backpill { position: fixed; z-index: 30; top: calc(12px + var(--safe-t)); right: 16px; background: var(--surface); box-shadow: var(--sh-1); border-radius: var(--r-pill);
  padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; color: var(--ink); font-size: 13px; font-weight: 500; }
details.card > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s1); min-height: 32px; padding-right: 24px; position: relative; }
details.card > summary strong { font-weight: 500; }
details.card > summary .small { flex-basis: 100%; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ""; position: absolute; right: 4px; top: 12px; width: 8px; height: 8px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform var(--dur); }
details.card[open] > summary::after { transform: rotate(-135deg); }

/* round icon chips with a label under (People row) */
.circles { display: flex; gap: var(--s2); overflow-x: auto; padding: 4px 2px var(--s1); scrollbar-width: none; margin: var(--s3) 0 0; }
.circles::-webkit-scrollbar { display: none; }
.circ { flex: none; display: grid; justify-items: center; gap: var(--s1); width: 68px; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none;
  color: var(--muted); font: 400 11px/1.25 var(--font); text-align: center; text-decoration: none; }
.circ:hover { text-decoration: none; }
.circ i { width: 56px; height: 56px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); transition: transform var(--dur-fast) var(--ease); }
.circ:active i { transform: scale(.94); }
.circ i svg { width: 24px; height: 24px; }
.circ.on i { background: var(--accent); color: #fff; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.rise > * { animation: rise 280ms var(--ease) both; }
.rise > *:nth-child(2) { animation-delay: 30ms; } .rise > *:nth-child(3) { animation-delay: 60ms; } .rise > *:nth-child(4) { animation-delay: 90ms; }
.rise > *:nth-child(n+5) { animation-delay: 120ms; }

/* screen to screen: the browser keeps the old screen until the new one is ready, then slides or fades */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease); }
html[data-dir=fwd]::view-transition-old(root) { animation-name: vtOutLeft; }
html[data-dir=fwd]::view-transition-new(root) { animation-name: vtInRight; }
html[data-dir=back]::view-transition-old(root) { animation-name: vtOutRight; }
html[data-dir=back]::view-transition-new(root) { animation-name: vtInLeft; }
html[data-dir=fade]::view-transition-old(root) { animation: 180ms ease-out both vtFadeOut; }
html[data-dir=fade]::view-transition-new(root) { animation: 220ms ease-out both vtFadeIn; }
::view-transition-group(tabbar) { animation: none; }
@keyframes vtInRight { from { transform: translateX(100%); } }
@keyframes vtOutLeft { to { transform: translateX(-28%); opacity: .7; } }
@keyframes vtInLeft { from { transform: translateX(-28%); opacity: .7; } }
@keyframes vtOutRight { to { transform: translateX(100%); } }
@keyframes vtFadeIn { from { opacity: 0; } }
@keyframes vtFadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- posting sheet ---------- */
.postsheet textarea { min-height: 120px; resize: vertical; }
.postsheet h3 { font: 500 15px/1.3 var(--font); }
.accs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.acc-t { justify-content: flex-start; gap: 10px; min-height: 56px; padding: 0 12px; border-radius: var(--r-md); text-align: left; font-weight: 400; box-shadow: inset 0 0 0 1px var(--sep); background: var(--surface); }
.acc-t span, .list .acc span, .list .prow span { display: grid; min-width: 0; line-height: 1.25; }
.acc-t b, .list .acc b, .list .prow b { font: 500 13px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-t small, .list .acc small, .list .prow small { font-size: 11px; color: var(--muted); }
.acc-t.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.acc-t .ic, .list .acc .ic, .list .prow .ic { width: 22px; height: 22px; color: var(--ink-2); }
.row2 { display: flex; gap: var(--s1); flex-wrap: wrap; }
.row2 > button, .row2 > .btn { flex: 1; }
.pcon { display: grid; gap: 12px; }
.psteps2 { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.perr:empty { display: none; }
input[type=datetime-local] { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); font: 400 16px var(--font); color: var(--ink); }

.list .trk { gap: 8px; }
.list .trk span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.list .trk select { width: auto; min-height: 36px; padding: 0 32px 0 12px; font-size: 13px; background-position: right 10px center; }
.list .trk .icon-btn { width: 36px; height: 36px; min-height: 36px; }

/* moving previews over the still */
[data-pv] { position: relative; }
[data-pv] video.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
[data-pv].playing video.pv { opacity: 1; }

/* post results under each post */
.pmet { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 0 12px 52px; font: 400 13px/1.3 var(--font); color: var(--muted); }
.pmet b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= camera-kit refinement (Pinterest refs) ================= */
/* Two-weight headlines: the start in soft gray, the last word bold ink. app.js splits every h1.duo. */
h1.duo, .duo { font: 700 32px/1.12 var(--font); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.duo .lite { color: var(--lite); font-weight: 600; }
.duo .em { font-style: normal; }
@media (min-width: 1024px) { h1.duo, .duo { font-size: 40px; } }

/* active tool: bright orange circle with a soft halo, the label turns orange */
.rail-item.on i, .tool.on .ico { background: var(--accent-hi); box-shadow: var(--halo); }
.rail-item.on, .tool.on { color: var(--accent-text) !important; }
.circ.on i { background: var(--accent-hi); box-shadow: var(--halo); }
.appnav .plus { background: var(--pink); box-shadow: 0 0 0 5px var(--ink), 0 12px 30px rgba(31,31,33,.25); }
.toast .tic, .psteps li.done i { background: var(--accent-hi); }

/* tab bar: plain icons, the active one orange with a short bar above it */
.navpill { background: rgba(255,255,255,.94); }
.navpill a, .navpill button.tab { position: relative; }
.navpill .on { background: none; color: var(--ink); }
.navpill .on svg { color: var(--accent-hi); }
.navpill .on::before { content: ""; position: absolute; top: 2px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--sun); }
@media (min-width: 1024px) { .navpill .on { background: var(--accent-soft); } .navpill .on::before { display: none; } }

/* photo tiles: the label sits in a frosted chip on the picture */
.mtile::after { inset: 62% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.28)); }
.mtile .lbl { left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 10px; border-radius: 12px; background: rgba(30,30,32,.34);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); text-shadow: none; font-size: 12px; }
.mtile .lbl small { font-size: 10px; opacity: .78; }

/* search pill with a round orange action, like the kit's album search */
.searchpill { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1); }
.searchpill svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchpill input { flex: 1; min-height: 44px; padding: 0; box-shadow: none !important; background: transparent; }
.searchpill .go { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); box-shadow: none; flex: none; }

/* frosted dark controls over a camera or video */
.frost { background: rgba(40,40,44,.42); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.frost-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.shutter { width: 68px; height: 68px; min-height: 68px; padding: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 8px 24px rgba(0,0,0,.25);
  display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease); }
.shutter::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #E5322D; transition: border-radius var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); transform: scale(.0); }
.shutter.stop::after { transform: scale(1); border-radius: 6px; }
.modes-txt { display: flex; justify-content: center; gap: 22px; }
.modes-txt button { min-height: 32px; padding: 0 2px; background: none; box-shadow: none; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; border-radius: 6px; }
.modes-txt button.on { color: #fff; }
.frost input[type=range]::-webkit-slider-runnable-track { background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, transparent 1px 8px) center / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 1.5px, transparent 1.5px 40px) center / 100% 20px no-repeat; }
.frost input[type=range]::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.frost input[type=range]::-moz-range-thumb { background: #fff; }

/* ================= soft photo-app layer (final) ================= */
/* strong actions: dark buttons */
button.primary, .btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: none; }
button.primary:active, .btn.primary:active { background: var(--primary-press); }
button.dark, .btn.dark { box-shadow: none; }
.appnav .plus { background: var(--primary); color: #fff; box-shadow: var(--sh-float); }
/* hairline cards instead of floating shadows */
button, .btn { box-shadow: none; border: var(--border); }
button.ghost, button.quiet, .btn.ghost, .icon-btn.bare, .opt-row, .circ, .tool, .rail-item, .navpill a, .navpill button.tab, .seg button, .seg2 button, .modes-txt button, .mthumb { border: 0; }
.card, .group, .list, .empty, .tile, .stat, .searchpill, .upcard, .install, .tpl-pick, .navback, .toast { box-shadow: none; border: var(--border); }
.toast { border: 0; }
input:not([type]), input[type=email], input[type=text], input[type=number], input[type=search], input[type=url], input[type=password], input[type=tel], textarea, select {
  box-shadow: none; border: var(--border); border-radius: var(--r-sm); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
:focus-visible { outline-color: var(--accent-text); }
a, .shead > a, .shead > button.link { color: var(--accent-text); }
/* selected tools: a peach circle with the icon in ink, and a pale peach halo */
.rail-item.on i, .tool.on .ico, .circ.on i { background: var(--accent); color: var(--ink); box-shadow: var(--halo); }
.rail-item.on, .tool.on { color: var(--ink) !important; }
/* filters and tabs: pale peach when chosen, white pill inside segmented controls */
.chiprow button.on, .mode.on { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.chiprow button, .mode { box-shadow: none; border: var(--border); }
.seg2, .seg { background: var(--surface-2); }
.seg2 button.on, .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(32,32,32,.08); }
/* progress, sliders and done steps in peach */
input[type=range]::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=range]::-moz-range-thumb { background: var(--accent); }
.pbar > div, .bar > div, .dot { background: var(--accent); }
.psteps li.done i, .toast .tic { background: var(--accent); }
.psteps li.done i::after { border-color: var(--ink); }
.toast .tic svg { stroke: var(--ink); }
.psteps li.now i::after { border-top-color: var(--accent-press); }
.spinner { border-top-color: var(--accent); }
.empty .eic { background: var(--accent-soft); color: var(--accent-text); }
.searchpill .go { background: var(--accent-soft); color: var(--ink); }
.drop-icon { background: var(--primary); }
/* sheets and menus: white, hairline, generous padding */
.sheet2 > div { padding: var(--s1) var(--pad) calc(var(--s3) + var(--safe-b)); }
.sheet2 h2 { font: 700 22px/1.25 var(--font); letter-spacing: -.02em; }
.opt-row i { background: var(--surface-2); }
.navpill { box-shadow: var(--sh-float); border: var(--border); }
.navpill .on svg { color: var(--accent-text); }
.navpill .on::before { background: var(--accent); }
.narrow, .page { padding-left: var(--pad); padding-right: var(--pad); }
/* media tiles: rounded, the footage is the colour, small labels */
.mtile { border-radius: var(--r-md); box-shadow: none; }
.mtile .lbl { border-radius: 10px; }

/* iPhone app: no links to buy plans or credits (App Store guideline 3.1.1) */
.native-ios #upgrade:not(.iap), .native-ios #buy, .native-ios [data-buy], .native-ios a[href*="/offers/"], .native-ios a[href*="checkout"] { display: none !important; }
.searchpill input, .searchpill input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.searchpill:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- theme (the reference: pastel blocks on cream, an ink tab bar, a pink + button). Last, so it wins ---------- */
.navpill { background: var(--ink); border: 0; box-shadow: var(--sh-float); }
.navpill a, .navpill button.tab { color: rgba(251,248,242,.72); }
.navpill .on { background: rgba(251,248,242,.14); color: #FBF8F2; }
.navpill .on svg { color: var(--pink); }
.navpill .on::before { background: var(--pink); }
.appnav .plus { background: var(--pink); color: var(--ink); box-shadow: 0 0 0 4px var(--canvas), 0 12px 30px rgba(31,31,33,.22); }
h1, h1.duo, .duo { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
@media (min-width: 1024px) {
  .navpill { background: none; box-shadow: none; }
  .navpill a, .navpill button.tab { color: var(--ink-2); }
  .navpill .on { background: var(--accent-soft); color: var(--ink); }
  .navpill .on svg { color: var(--accent-text); }
  .appnav .plus { box-shadow: none; }
}

/* ---------- theme details measured against the reference (REA screenshots of every screen) ---------- */
/* selected tab or filter: an ink pill, like the reference's chips */
.seg2 button.on, .seg button.on { background: var(--ink); color: var(--surface); box-shadow: none; }
/* text fields on soft cream, a thin warm border */
input:not([type]), input[type=email], input[type=text], input[type=number], input[type=search], input[type=url],
input[type=password], input[type=tel], textarea, select { background: var(--surface); }
/* checkboxes and radios in ink */
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }
/* on/off rows become the reference's pill switch: ink when on, a cream knob */
label.toggle input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; width: 46px; height: 28px; margin: 0;
  border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--sep); position: relative; cursor: pointer;
  transition: background var(--dur-fast) var(--ease); }
label.toggle input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(31,31,33,.25); transition: transform var(--dur-fast) var(--ease); }
label.toggle input[type=checkbox]:checked { background: var(--ink); box-shadow: none; }
label.toggle input[type=checkbox]:checked::after { transform: translateX(18px); background: var(--surface); }
label.toggle input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { label.toggle input[type=checkbox], label.toggle input[type=checkbox]::after { transition: none; } }
/* pastel colour blocks for feature cards */
.tint-butter { background: var(--butter-soft) !important; border-color: transparent !important; }
.tint-pink { background: var(--pink-soft) !important; border-color: transparent !important; }
.tint-peri { background: var(--peri-soft) !important; border-color: transparent !important; }
.tint-sage { background: var(--sage-soft) !important; border-color: transparent !important; }

/* ---------- app-quality pass: one title per screen, readable type, the main action always in reach ---------- */
body { font-size: 16px; line-height: 1.5; }
.t-s, .small { font-size: 14px; line-height: 1.45; }
/* headlines in one ink colour; the last word in italic, like a magazine cover */
.duo .lite { color: inherit; font-weight: inherit; }
.duo .em { font-style: italic; }
/* the bar's small title shows only once the page's big title has scrolled away (app.js) */
.glassbar .title.bar-title { opacity: 0; transform: translateY(4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.glassbar .title.bar-title.shown { opacity: 1; transform: none; }
/* the screen's main button stays in reach at the bottom while you scroll the form above it */
.stickyact { position: sticky; bottom: calc(14px + var(--safe-b)); z-index: 20; box-shadow: 0 10px 30px rgba(31,31,33,.22); }
/* home: search sits with your reels, not above the first choice */
.homesearch { margin: var(--s4) 0 var(--s2); }
.home .hhead { margin: var(--s2) 0 var(--s2); }
.home .hsub { margin: var(--s2) 0 0; }

/* ---------- brand: flaviapopescu.eu (red on cream). Last, so it wins ---------- */
/* titles like the site: the start in Anton capitals, the last word in Playfair italic, red */
h1, h1.duo, .duo { font: 400 36px/1.02 var(--title); text-transform: uppercase; letter-spacing: .005em; color: var(--ink); }
.duo .lite { font: inherit; color: var(--ink); }
.duo .em { display: block; font: italic 500 .82em/1.1 var(--display); text-transform: none; letter-spacing: 0; color: var(--accent); margin-top: 2px; }
@media (min-width: 1024px) { h1, h1.duo, .duo { font-size: 46px; } }
/* red fills carry cream text and icons */
.rail-item.on i, .tool.on .ico, .circ.on i { color: var(--on-accent); }
.rail-item.on, .tool.on { color: var(--accent-text) !important; }
.psteps li.done i::after { border-color: var(--on-accent); }
.toast .tic svg { stroke: var(--on-accent); }
.toppill .go.peach { color: var(--on-accent); }
/* tab bar: white with a hairline, the chosen tab red, a round red + */
.navpill { background: rgba(255,255,255,.96); border: var(--border); box-shadow: 0 10px 30px rgba(59,18,22,.10); }
.navpill a, .navpill button.tab { color: var(--faint); }
.navpill .on { background: none; color: var(--accent); }
.navpill .on svg { color: var(--accent); }
.navpill .on::before { background: var(--accent); }
.appnav .plus { background: var(--accent); color: var(--on-accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--canvas), 0 12px 26px rgba(161,7,40,.32); }
@media (min-width: 1024px) { .navpill { background: none; border: 0; box-shadow: none; } .navpill .on { background: var(--accent-soft); color: var(--accent); } .appnav .plus { box-shadow: none; } }
/* chosen chips and segments in the deep wine of the site */
.seg2 button.on, .seg button.on { background: var(--ink); color: var(--canvas); }
.chiprow button.on, .mode.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
