/* New look (graphite redesign). Everything is scoped to html.nl, so this file does nothing
 * until the look is switched on (?look=new, remembered per browser). Colours that live in
 * inline styles and older stylesheets are mapped at runtime by new-look.js; this file owns
 * the tokens, the fonts, the app shell (icon rail, top bar) and shared components.
 * Figtree, Instrument Sans and JetBrains Mono are licensed under the SIL Open Font License 1.1. */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(./fonts/figtree-latin-ext-var-bf7828e2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(./fonts/figtree-latin-var-4ba7d3d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(./fonts/instrument-sans-latin-ext-var-c4fcfea4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(./fonts/instrument-sans-latin-var-2ee17598.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(./fonts/jetbrains-mono-latin-ext-var-79bfdab9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(./fonts/jetbrains-mono-latin-var-18be4527.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Tokens ── */
html.nl {
  --nl-bg: #0d0e11; --nl-surface: #101216; --nl-s2: #14161b; --nl-s3: #191c22; --nl-s4: #1f232a;
  --nl-line: #1e2127; --nl-line-strong: #282c34;
  --nl-fg: #e8e6e1; --nl-fg2: #a3a09a; --nl-fg3: #75736c; --nl-fg4: #514f49;
  --nl-signal: #9d8cff; --nl-signal-ink: #0b0820; --nl-signal-soft: rgba(157,140,255,0.16);
  --nl-ok: #2ee6a6; --nl-warn: #f2b84b; --nl-bad: #ff5c6c; --nl-info: #58b4ff;
  --nl-primary-bg: #e8e6e1; --nl-primary-fg: #0d0e11;
  --nl-ig: #e4405f; --nl-tt: #25f4ee; --nl-fb: #1877f2;
  --nl-display: 'Figtree', 'Instrument Sans', system-ui, sans-serif;
  --nl-body: 'Instrument Sans', 'Figtree', system-ui, sans-serif;
  --nl-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
html.nl[data-nl-theme="day"] {
  --nl-bg: #f4f3ef; --nl-surface: #ffffff; --nl-s2: #fbfaf7; --nl-s3: #f3f1ec; --nl-s4: #e9e6df;
  --nl-line: #e6e3dc; --nl-line-strong: #d6d2c8;
  --nl-fg: #1b1a17; --nl-fg2: #55524b; --nl-fg3: #7a776f; --nl-fg4: #a8a49b;
  --nl-signal: #5b47d6; --nl-signal-ink: #ffffff; --nl-signal-soft: rgba(91,71,214,0.10);
  --nl-ok: #0f8f63; --nl-warn: #b7791f; --nl-bad: #c2414f; --nl-info: #2a74c4;
  --nl-primary-bg: #1b1a17; --nl-primary-fg: #ffffff;
  --nl-tt: #0fb5b0;
  color-scheme: light;
}

/* The site's own tokens, pointed at the new palette. */
html.nl, html.nl[data-theme], html.nl [data-theme] {
  --bg-primary: var(--nl-bg); --bg-surface: var(--nl-surface); --bg-surface-raised: var(--nl-s2); --bg-surface-hover: var(--nl-s3);
  --border-subtle: var(--nl-line); --border-default: var(--nl-line-strong); --border-strong: var(--nl-fg4);
  --text-primary: var(--nl-fg); --text-secondary: var(--nl-fg2); --text-tertiary: var(--nl-fg3);
  --primary: var(--nl-signal); --primary-hover: var(--nl-signal); --primary-strong: var(--nl-signal);
  --primary-muted: var(--nl-signal-soft); --primary-glow: transparent;
  --cta: var(--nl-signal); --cta-hover: var(--nl-signal); --cta-soft: var(--nl-signal); --cta-glow: transparent;
  --accent-cyan: var(--nl-info); --accent-cyan-muted: transparent; --accent-cyan-glow: transparent;
  --success: var(--nl-ok); --warning: var(--nl-warn); --error: var(--nl-bad);
  --gradient-ai: linear-gradient(0deg, var(--nl-signal), var(--nl-signal));
  --gradient-cta: linear-gradient(0deg, var(--nl-signal), var(--nl-signal));
  --gradient-indigo: linear-gradient(0deg, var(--nl-signal), var(--nl-signal));
  --dark-bg: var(--nl-bg); --dark-surface: var(--nl-surface); --dark-surface-2: var(--nl-s2);
  --dark-border: var(--nl-line); --dark-border-hover: var(--nl-line-strong);
  --dark-text: var(--nl-fg); --dark-muted: var(--nl-fg2); --dark-faint: var(--nl-fg3);
  --color-bg: var(--nl-bg); --color-surface: var(--nl-surface); --color-surface-2: var(--nl-s2);
  --color-border: var(--nl-line); --color-border-hover: var(--nl-line-strong);
  --color-text: var(--nl-fg); --color-muted: var(--nl-fg2); --color-faint: var(--nl-fg3);
  --color-text-muted: var(--nl-fg2); --color-text-faint: var(--nl-fg3);
  --color-accent: var(--nl-signal); --color-primary: var(--nl-signal); --color-accent-hover: var(--nl-signal);
  --glow-primary: transparent; --glow-accent: transparent;
  --font-display: var(--nl-display); --font-body: var(--nl-body);
}

html.nl body {
  background: var(--nl-bg) !important;
  color: var(--nl-fg);
  font-family: var(--nl-body);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}
html.nl ::selection { background: var(--nl-signal-soft); color: var(--nl-fg); }
html.nl ::-webkit-scrollbar-thumb { background: var(--nl-line-strong); }
html.nl :focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }

/* ── Shell: labelled sidebar (redesign), collapses to a 68px rail on work screens ── */
html.nl .dashboard.active { grid-template-columns: 220px minmax(0, 1fr); transition: grid-template-columns .22s cubic-bezier(.2,.8,.2,1); }
html.nl .dashboard.active.nl-min { grid-template-columns: 68px minmax(0, 1fr); }
html.nl .dash-sidebar {
  box-sizing: border-box; width: auto; padding: 14px 10px !important; gap: 0; height: 100vh; min-height: 0; overflow: visible;
  background: var(--nl-bg) !important; border-right: 1px solid var(--nl-line) !important; z-index: 40;
}
html.nl .nl-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 18px 10px; }
html.nl .dash-sidebar__logo { display: flex !important; align-items: center; gap: 9px !important; margin: 0 !important; padding: 0 !important; color: var(--nl-fg) !important; font: 600 15px var(--nl-display) !important; letter-spacing: 0 !important; text-decoration: none; }
html.nl .dash-sidebar__logo svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 6px; background: var(--nl-fg); color: var(--nl-bg); }
html.nl .dash-sidebar__logo svg rect { stroke: transparent; }
html.nl .nl-railtog { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--nl-fg3); display: grid; place-items: center; cursor: pointer; }
html.nl .nl-railtog:hover { background: var(--nl-s2); color: var(--nl-fg); }
html.nl .nl-railtog svg { width: 16px; height: 16px; }
html.nl .dash-sidebar__nav { display: grid !important; gap: 1px !important; flex: 0 0 auto; align-content: start; }
html.nl .nl-gap { height: 14px; }
html.nl .dash-nav-item {
  position: relative; display: flex !important; align-items: center; gap: 10px !important; width: auto !important; height: auto; padding: 7px 10px !important;
  border: 0 !important; border-radius: 7px !important; background: transparent !important; box-shadow: none !important;
  color: var(--nl-fg2) !important; font: 400 13.5px var(--nl-body) !important; text-align: left;
}
html.nl .dash-nav-item i, html.nl .dash-nav-item svg { flex: 0 0 16px; width: 16px !important; height: 16px !important; color: inherit !important; opacity: .8; }
html.nl .dash-nav-item:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }
html.nl .dash-nav-item.active { color: var(--nl-fg) !important; background: var(--nl-s3) !important; box-shadow: inset 0 0 0 1px var(--nl-line-strong) !important; font-weight: 400 !important; }
html.nl .dash-nav-item.active i, html.nl .dash-nav-item.active svg { opacity: 1; color: var(--nl-fg) !important; }
html.nl .dash-nav-item::before { display: none !important; }
html.nl .nl-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-badge, html.nl .dash-nav-item .engage-badge {
  margin-left: auto !important; position: static !important; min-width: 0 !important; height: auto !important; padding: 1px 7px !important;
  border-radius: 999px !important; background: rgba(242,184,75,0.14) !important; color: var(--nl-warn) !important; font: 500 10px/1.5 var(--nl-mono) !important; box-shadow: none !important;
}
html.nl[data-nl-theme="day"] .nl-badge, html.nl[data-nl-theme="day"] .dash-nav-item .engage-badge { background: rgba(183,121,31,0.12) !important; }
html.nl .nl-badge[hidden] { display: none !important; }
html.nl #sidebar-credits { display: none !important; }
html.nl .nl-foot { margin-top: auto; display: grid; gap: 4px; }
html.nl .nl-foot__link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--nl-fg3); font: 400 13px var(--nl-body); cursor: pointer; text-align: left; }
html.nl .nl-foot__link:hover { background: var(--nl-s2); color: var(--nl-fg); }
html.nl .nl-foot__link svg { flex: 0 0 16px; width: 16px; height: 16px; }
html.nl .dash-sidebar__user { position: relative; display: flex !important; align-items: center; gap: 9px !important; padding: 8px 10px !important; margin-top: 6px; border-top: 1px solid var(--nl-line) !important; border-radius: 0; cursor: pointer; }
html.nl .dash-sidebar__user:hover { background: var(--nl-s2); }
html.nl .dash-sidebar__avatar { flex: 0 0 26px; width: 26px !important; height: 26px !important; border-radius: 50% !important; background: var(--nl-s4) !important; border: 1px solid var(--nl-line-strong); color: var(--nl-fg2) !important; font: 500 9px/1 var(--nl-mono) !important; letter-spacing: 0 !important; }
html.nl .dash-sidebar__user-info { min-width: 0; display: flex !important; flex-direction: column; }
html.nl .dash-sidebar__user-name { font: 500 12.5px var(--nl-body) !important; color: var(--nl-fg) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .dash-sidebar__user-email { display: none !important; }
html.nl .nl-plan { font-size: 11px; color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-acctmenu { position: absolute; left: 0; bottom: calc(100% + 6px); width: 232px; z-index: 60; display: grid; padding: 6px; border-radius: 12px; border: 1px solid var(--nl-line-strong); background: var(--nl-s3); box-shadow: 0 24px 48px -20px rgba(0,0,0,0.9); }
html.nl .nl-acctmenu[hidden] { display: none; }
html.nl .nl-acctmenu__hd { padding: 8px 10px 10px; border-bottom: 1px solid var(--nl-line); margin-bottom: 4px; }
html.nl .nl-acctmenu__hd b { display: block; font: 500 12.5px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-acctmenu__hd span { font-size: 11px; color: var(--nl-fg3); }
html.nl .nl-acctmenu button { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--nl-fg2); font: 400 12.5px var(--nl-body); cursor: pointer; text-align: left; }
html.nl .nl-acctmenu button:hover { background: var(--nl-s4); color: var(--nl-fg); }
html.nl .nl-acctmenu button span { color: var(--nl-fg4); font-size: 11.5px; }
/* Collapsed: icons only, labels as hover tips, badges as dots. */
html.nl .nl-min .dash-sidebar { padding: 14px 8px !important; }
html.nl .nl-min .nl-brand { flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 16px; }
html.nl .nl-min .dash-sidebar__logo > :not(svg), html.nl .nl-min .nl-lbl, html.nl .nl-min .dash-sidebar__user-info { display: none !important; }
html.nl .nl-min .dash-sidebar__logo { font-size: 0 !important; }
html.nl .nl-min .dash-nav-item, html.nl .nl-min .nl-foot__link { justify-content: center; padding: 9px 0 !important; }
html.nl .nl-min .dash-sidebar__user { justify-content: center; padding: 8px 0 !important; }
html.nl .nl-min .nl-badge, html.nl .nl-min .dash-nav-item .engage-badge { position: absolute !important; top: 6px; right: 13px; width: 7px; height: 7px !important; padding: 0 !important; font-size: 0 !important; background: var(--nl-warn) !important; border-radius: 50% !important; }
html.nl .nl-min .dash-nav-item::after {
  content: attr(data-nl-label); position: absolute; left: 50px; top: 50%; transform: translateY(-50%); padding: 5px 9px; border-radius: 6px;
  background: var(--nl-fg); color: var(--nl-bg); font: 500 12px/1.2 var(--nl-body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 60;
}
html.nl .nl-min .dash-nav-item:hover::after { opacity: 1; }

/* ── Shell: top bar ── */
html.nl .dash-main { background: var(--nl-bg) !important; }
html.nl .dash-topbar {
  background: var(--nl-bg) !important; border-bottom: 1px solid var(--nl-line) !important;
  padding: 10px 24px !important; min-height: 56px !important; gap: 16px; flex-wrap: wrap;
}
html.nl .dash-topbar > div:first-child { display: none !important; }
html.nl .dash-topbar__greeting { font: 400 20px/1.2 var(--nl-display) !important; letter-spacing: -0.015em !important; color: var(--nl-fg) !important; }
html.nl .dash-topbar__subtitle { font-size: 12px !important; color: var(--nl-fg3) !important; }
html.nl .dash-topbar__breadcrumb-home { color: var(--nl-fg2) !important; }
html.nl .dash-topbar__actions { gap: 8px !important; }
html.nl .dash-logout-btn {
  height: 32px; padding: 0 12px !important; border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important;
  background: transparent !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important;
}
html.nl .dash-logout-btn:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }

.nl-cmd { display: none; }
html.nl .nl-cmd { display: block; position: relative; flex: 0 1 380px; min-width: 200px; }
html.nl .nl-cmd__box {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid var(--nl-line-strong); border-radius: 8px; background: var(--nl-s2); color: var(--nl-fg3);
}
html.nl .nl-cmd__box:focus-within { border-color: var(--nl-fg4); }
html.nl .nl-cmd__box input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--nl-fg); font: 13px var(--nl-body); outline: none; }
html.nl .nl-cmd__box input::placeholder { color: var(--nl-fg3); }
html.nl .nl-kbd { font: 10px/1 var(--nl-mono); border: 1px solid var(--nl-line-strong); border-radius: 4px; padding: 3px 6px; color: var(--nl-fg3); }
html.nl .nl-cmd__list {
  position: absolute; top: 42px; left: 0; right: 0; z-index: 80; margin: 0; padding: 6px; list-style: none;
  background: var(--nl-surface); border: 1px solid var(--nl-line-strong); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35); max-height: 360px; overflow: auto;
}
html.nl .nl-cmd__list[hidden] { display: none; }
html.nl .nl-cmd__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--nl-fg); font: 13px var(--nl-body); text-align: left; cursor: pointer;
}
html.nl .nl-cmd__item small { margin-left: auto; color: var(--nl-fg3); font: 11px var(--nl-mono); }
html.nl .nl-cmd__item[aria-selected="true"], html.nl .nl-cmd__item:hover { background: var(--nl-s3); }
html.nl .nl-cmd__empty { padding: 10px; color: var(--nl-fg3); font-size: 12.5px; }

.nl-theme-btn { display: none; }
html.nl .nl-theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 1px solid var(--nl-line-strong); border-radius: 8px; background: transparent; color: var(--nl-fg2);
  font: 500 12.5px var(--nl-body); cursor: pointer;
}
html.nl .nl-theme-btn:hover { color: var(--nl-fg); background: var(--nl-s2); }
html.nl .nl-theme-btn svg { width: 15px; height: 15px; }

/* ── Content: type and shared components ── */
html.nl .dash-content { padding: 24px 24px 48px !important; }
html.nl h1, html.nl h2, html.nl h3, html.nl .section-title, html.nl [class*="__title"] { font-family: var(--nl-display); letter-spacing: -0.01em; }
html.nl h1 { font-weight: 400; }
html.nl code, html.nl kbd, html.nl pre { font-family: var(--nl-mono); }
html.nl input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html.nl textarea, html.nl select {
  font-family: var(--nl-body);
}
html.nl input[type="checkbox"], html.nl input[type="radio"], html.nl input[type="range"] { accent-color: var(--nl-signal); }

/* Mobile: the sidebar is the labelled drawer it always was. */
@media (max-width: 768px) {
  html.nl .dashboard.active, html.nl .dashboard.active.nl-min { grid-template-columns: minmax(0, 1fr); }
  html.nl .dash-sidebar { width: 240px; }
  html.nl .nl-railtog { display: none; }
  html.nl .nl-cmd { flex-basis: 100%; order: 3; }
  html.nl .dash-topbar { padding: 10px 16px 10px 60px !important; }
}

/* ── Shared pieces for rebuilt pages ── */
html.nl .nl-h1 { margin: 0; font: 400 28px/1.1 var(--nl-display); letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .nl-muted { color: var(--nl-fg3); font-size: 12.5px; }
html.nl .nl-card { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 14px; }
html.nl .nl-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
html.nl .nl-card__head h2 { margin: 0; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; box-sizing: border-box;
  border-radius: 8px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg);
  font: 500 13px var(--nl-body); cursor: pointer; white-space: nowrap;
}
html.nl .nl-btn:hover { background: var(--nl-s3); }
html.nl .nl-btn--primary { background: var(--nl-primary-bg); color: var(--nl-primary-fg); border-color: transparent; font-weight: 600; }
html.nl .nl-btn--primary:hover { background: var(--nl-primary-bg); filter: brightness(1.06); }
html.nl .nl-btn--signal { background: var(--nl-signal); color: var(--nl-signal-ink); border-color: transparent; font-weight: 600; }
html.nl .nl-btn--icon { width: 30px; height: 30px; padding: 0; }
html.nl .nl-link { border: 0; background: none; padding: 6px 0 0; color: var(--nl-fg2); font: 500 12.5px var(--nl-body); cursor: pointer; }
html.nl .nl-link:hover { color: var(--nl-fg); }
html.nl .nl-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
html.nl .nl-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--nl-line-strong); background: transparent; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); cursor: pointer;
}
html.nl .nl-chip[aria-pressed="true"] { background: var(--nl-s3); color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-chip__tab { width: 3px; height: 14px; border-radius: 2px; background: var(--nl-fg4); }
html.nl .nl-chip--instagram .nl-chip__tab { background: var(--nl-ig); }
html.nl .nl-chip--facebook .nl-chip__tab { background: var(--nl-fb); }
html.nl .nl-chip--tiktok .nl-chip__tab { background: var(--nl-tt); }
html.nl .nl-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); }
html.nl .nl-seg button { height: 28px; min-width: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--nl-fg2); font: 500 12.5px var(--nl-body); cursor: pointer; }
html.nl .nl-seg button:hover, html.nl .nl-seg button[aria-pressed="true"] { background: var(--nl-s4); color: var(--nl-fg); }
html.nl .nl-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--nl-fg3); }
html.nl .nl-dot--review { background: var(--nl-warn); }
html.nl .nl-dot--scheduled { background: var(--nl-fg2); }
html.nl .nl-dot--live { background: transparent; box-shadow: inset 0 0 0 2px var(--nl-ok); width: 9px; height: 9px; }
html.nl .nl-dot--failed { background: var(--nl-bad); }
html.nl .nl-dot--draft { background: var(--nl-fg4); }

/* ── Calendar ── */
html.nl .dash-content:has(> .nl-cal) { padding: 0 !important; }
html.nl .nl-cal { display: flex; min-height: calc(100vh - 57px); }
html.nl .nl-cal__col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 24px 24px 48px; gap: 16px; box-sizing: border-box; }
html.nl .nl-cal__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
html.nl .nl-cal__sub { margin: 6px 0 0; color: var(--nl-fg3); font-size: 13px; }
html.nl .nl-cal__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.nl .nl-cal__body { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
html.nl .nl-cal__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-cal__aside { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-cal__bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
html.nl .nl-month { border: 0; background: none; padding: 0; color: var(--nl-fg); font: 500 16px var(--nl-display); cursor: pointer; }
html.nl .nl-month span { color: var(--nl-fg3); font-size: 11px; }
html.nl .nl-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; color: var(--nl-fg3); font-size: 12px; }
html.nl .nl-legend span { display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-month-picker { position: absolute; top: 30px; left: 0; z-index: 50; min-width: 230px; padding: 12px; border-radius: 12px; border: 1px solid var(--nl-line-strong); background: var(--nl-surface); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
html.nl .nl-month-picker__year { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--nl-fg); font: 500 13px var(--nl-mono); }
html.nl .nl-month-picker__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
html.nl .nl-month-picker__grid button { height: 28px; border-radius: 6px; border: 1px solid var(--nl-line); background: transparent; color: var(--nl-fg2); font: 12px var(--nl-body); cursor: pointer; }
html.nl .nl-month-picker__grid button[aria-pressed="true"] { background: var(--nl-fg); color: var(--nl-bg); border-color: transparent; }
html.nl .nl-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--nl-line); border-left: 1px solid var(--nl-line); border-radius: 12px; overflow: hidden; background: var(--nl-surface); }
html.nl .nl-dow { padding: 8px 10px; border-right: 1px solid var(--nl-line); border-bottom: 1px solid var(--nl-line); color: var(--nl-fg3); font: 500 10.5px var(--nl-mono); text-transform: uppercase; letter-spacing: 0.06em; }
html.nl .nl-day {
  position: relative; min-height: 112px; padding: 8px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--nl-line); border-bottom: 1px solid var(--nl-line); cursor: pointer; transition: background 0.12s;
}
html.nl .nl-day:hover { background: var(--nl-s2); }
html.nl .nl-day--pad { background: var(--nl-bg); cursor: default; }
html.nl .nl-day.is-past .nl-day__num { color: var(--nl-fg4); }
html.nl .nl-day__num { align-self: flex-start; min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--nl-fg2); font: 500 11.5px var(--nl-mono); }
html.nl .nl-day.is-today .nl-day__num { background: var(--nl-signal); color: var(--nl-signal-ink); }
html.nl .nl-day.drag-over, html.nl .nl-day[data-drag-over] { background: var(--nl-signal-soft); }
html.nl .nl-day__more { color: var(--nl-fg3); font-size: 11.5px; padding-left: 4px; }
html.nl .nl-ev {
  display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; box-sizing: border-box; padding: 4px 6px 4px 7px;
  border: 1px solid var(--nl-line); border-left: 3px solid var(--nl-fg4); border-radius: 6px; background: var(--nl-s2);
  color: var(--nl-fg); font: 12px/1.25 var(--nl-body); text-align: left; cursor: pointer;
}
html.nl .nl-ev:hover { border-color: var(--nl-line-strong); background: var(--nl-s3); }
html.nl .nl-ev--instagram { border-left-color: var(--nl-ig); }
html.nl .nl-ev--facebook { border-left-color: var(--nl-fb); }
html.nl .nl-ev--tiktok { border-left-color: var(--nl-tt); }
html.nl .nl-ev--batch { border-style: dashed; border-left-style: solid; border-left-color: var(--nl-signal); color: var(--nl-fg2); }
html.nl .nl-ev__time { flex: 0 0 auto; color: var(--nl-fg3); font: 10.5px var(--nl-mono); }
html.nl .nl-ev__text { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.nl .nl-day .kd-badge { margin: 0 !important; padding: 2px 6px !important; border-radius: 5px !important; background: rgba(242,184,75,0.12) !important; color: var(--nl-warn) !important; font: 500 11px var(--nl-body) !important; }

/* This week on Meta */
html.nl .mwp { background: var(--nl-surface) !important; border: 1px solid var(--nl-line) !important; border-radius: 12px !important; padding: 14px 16px !important; margin: 0 !important; }
html.nl .mwp__title { font: 500 14px var(--nl-display) !important; color: var(--nl-fg) !important; }
html.nl .mwp__title span, html.nl .mwp__focus { color: var(--nl-fg3) !important; }
html.nl .mwp__meter-top strong { color: var(--nl-fg) !important; font-family: var(--nl-mono) !important; }
html.nl .mwp__meter-top em { color: var(--nl-fg2) !important; }
html.nl .mwp__track { background: var(--nl-s4) !important; border-radius: 3px !important; }
html.nl .mwp__fill { background: var(--nl-fg2) !important; border-radius: 3px !important; }
html.nl .mwp__meter.is-met .mwp__fill { background: var(--nl-ok) !important; }
html.nl .mwp__meter.is-met .mwp__meter-top strong { color: var(--nl-ok) !important; }
html.nl .mwp__slot { background: var(--nl-s2) !important; border: 1px solid var(--nl-line) !important; color: var(--nl-fg) !important; }
html.nl .mwp__slot--filled { box-shadow: inset 0 0 0 1px var(--nl-ok); }
html.nl .mwp__mode.is-on, html.nl .mwp__mode[aria-checked="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; border-color: var(--nl-line-strong) !important; }
html.nl .mwp__save { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border: 0 !important; }

/* Key dates in the aside */
html.nl .nl-cal__aside .kd-strip { margin: 0; padding: 14px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); }
html.nl .nl-cal__aside .kd-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
html.nl .nl-cal__aside .kd-title { font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-cal__aside .kd-sub { color: var(--nl-fg3); font-size: 12px; }
html.nl .nl-cal__aside .kd-country { margin: 4px 0 0; color: var(--nl-fg3); }
html.nl .nl-cal__aside .kd-country select { background: var(--nl-s2); border-color: var(--nl-line-strong); color: var(--nl-fg); }
html.nl .nl-cal__aside .kd-list { flex-direction: column; gap: 6px; overflow: visible; }
html.nl .nl-cal__aside .kd-chip {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  min-width: 0; max-width: none; width: 100%; padding: 8px; border-radius: 9px; border: 1px solid var(--nl-line); background: var(--nl-s2);
}
html.nl .nl-cal__aside .kd-chip:hover { border-color: var(--nl-line-strong); }
html.nl .nl-cal__aside .kd-tile {
  grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(242,184,75,0.14); color: var(--nl-warn); font: 500 9.5px/1 var(--nl-mono); text-transform: uppercase; letter-spacing: 0.04em;
}
html.nl .nl-cal__aside .kd-tile b { font: 600 15px/1.1 var(--nl-mono); color: var(--nl-warn); }
html.nl .nl-cal__aside .kd-chip > b { font: 500 12.5px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-cal__aside .kd-chip > span:not(.kd-tile) { color: var(--nl-fg3); font-size: 11.5px; }

/* Unscheduled */
html.nl .nl-unsched { display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-unsched[hidden] { display: none; }
html.nl .nl-draft { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 1px solid var(--nl-line); border-left: 3px solid var(--nl-fg4); border-radius: 8px; background: var(--nl-s2); color: var(--nl-fg); text-align: left; cursor: pointer; }
html.nl .nl-draft:hover { border-color: var(--nl-line-strong); }
html.nl .nl-draft--instagram { border-left-color: var(--nl-ig); }
html.nl .nl-draft--facebook { border-left-color: var(--nl-fb); }
html.nl .nl-draft--tiktok { border-left-color: var(--nl-tt); }
html.nl .nl-draft__thumb { flex: 0 0 36px; height: 44px; border-radius: 5px; overflow: hidden; background: var(--nl-s4); }
html.nl .nl-draft__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-draft__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.nl .nl-draft__text { font-size: 12.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.nl .nl-draft__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--nl-fg3); font-size: 11.5px; }

@media (max-width: 900px) {
  html.nl .nl-cal__aside { max-width: none; }
  html.nl .nl-day { min-height: 84px; padding: 5px; }
  html.nl .nl-ev__time { display: none; }
}

/* ── Create → Post ── */
html.nl .create-segments { background: var(--nl-bg) !important; border-bottom: 1px solid var(--nl-line) !important; padding: 10px 24px !important; gap: 2px !important; }
html.nl .create-seg { height: 32px; padding: 0 14px !important; border-radius: 7px !important; border: 0 !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 13px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
html.nl .create-seg.active, html.nl .create-seg[aria-selected="true"] { background: var(--nl-s3) !important; color: var(--nl-fg) !important; box-shadow: inset 0 0 0 1px var(--nl-line-strong) !important; }
html.nl .nl-post { gap: 14px; padding: 16px 24px 24px; box-sizing: border-box; background: var(--nl-bg); height: calc(100vh - 110px) !important; }
html.nl .nl-post > .atelier-essentials, html.nl .nl-post > .atelier-stage, html.nl .nl-post > .atelier-inspector {
  border: 1px solid var(--nl-line) !important; border-radius: 12px; background: var(--nl-surface) !important;
}
html.nl .nl-post > .atelier-essentials { width: 310px !important; padding: 16px !important; gap: 14px !important; }
html.nl .nl-post > .atelier-essentials > div:first-child > div:first-child { font: 400 22px/1.15 var(--nl-display) !important; letter-spacing: -0.02em !important; color: var(--nl-fg) !important; }
html.nl .nl-post textarea, html.nl .nl-post input[type="text"], html.nl .nl-post input[type="url"], html.nl .nl-post input[type="search"], html.nl .nl-post select {
  background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 9px !important; color: var(--nl-fg) !important; font-size: 13px !important;
}
html.nl .nl-post textarea:focus, html.nl .nl-post input:focus, html.nl .nl-post select:focus { border-color: var(--nl-fg4) !important; }
html.nl .nl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.nl .nl-field__label, html.nl .nl-post .atelier-essentials > div > div[style*="uppercase"] {
  font: 500 11.5px var(--nl-body) !important; color: var(--nl-fg3) !important; text-transform: none !important; letter-spacing: 0 !important;
}
html.nl .nl-post__opts { display: flex; flex-direction: column; gap: 12px; }
html.nl .nl-post__row { display: flex; gap: 12px; }
html.nl .nl-post__row > .nl-field { flex: 1 1 0; }
html.nl .nl-seg--fill { display: flex; }
html.nl .nl-seg--fill button { flex: 1 1 0; }
html.nl .nl-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
html.nl .nl-hint { font-size: 11.5px !important; color: var(--nl-fg3) !important; }
html.nl .nl-brand-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--nl-line-strong); color: var(--nl-fg2); font-size: 12px; }
html.nl .nl-brand-chip i { width: 6px; height: 6px; border-radius: 3px; background: var(--nl-ok); }
html.nl .nl-post #cs-generate {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 !important; border-radius: 10px !important;
  background: var(--nl-signal) !important; color: var(--nl-signal-ink) !important; font: 600 14px var(--nl-body) !important;
}
html.nl .nl-post .atelier-drawer { border: 1px solid var(--nl-line) !important; background: transparent !important; border-radius: 10px !important; }
html.nl .nl-post .atelier-drawer summary { color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .nl-post .atelier-essentials > div[style*="margin-top:auto"] { border-top: 1px solid var(--nl-line) !important; padding: 12px 0 0 !important; }
html.nl .nl-post #cs-ref-summary { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 10px !important; }
html.nl .nl-post #cs-new-post, html.nl .nl-post #cs-save-later, html.nl .nl-post #cs-archive-design, html.nl .nl-post #cs-delete-design { height: 30px; padding: 0 !important; border-radius: 7px !important; font: 500 12px var(--nl-body) !important; }

html.nl .nl-post > .atelier-stage { overflow: auto !important; }
html.nl .nl-post #cs-preview-header { padding: 10px 14px !important; border-bottom: 1px solid var(--nl-line) !important; color: var(--nl-fg3) !important; font: 500 11px var(--nl-mono) !important; letter-spacing: 0.04em !important; }
html.nl .nl-post #cs-preview-wrap { background: var(--nl-bg) !important; margin: 0; min-height: 360px; }
html.nl .nl-post #cs-empty > div:first-child { font: 400 22px var(--nl-display) !important; color: var(--nl-fg) !important; }
html.nl .nl-post #cs-finish-bar { border-top: 1px solid var(--nl-line) !important; padding: 12px 14px 14px !important; gap: 12px !important; }
html.nl .nl-post__actions button { height: 32px; padding: 0 12px !important; border-radius: 7px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg) !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .nl-post__actions button:disabled { color: var(--nl-fg4) !important; background: transparent !important; }
html.nl .nl-post__actions #cs-queue:not(:disabled) { order: 9; margin-left: auto; background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border-color: transparent !important; font-weight: 600 !important; }
html.nl .nl-caption { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 12px; }
html.nl .nl-caption__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.nl .nl-caption__head h2 { margin: 0 auto 0 0; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-caption #cs-caption { height: 28px; padding: 0 10px !important; border-radius: 6px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg) !important; font: 500 12px var(--nl-body) !important; }
html.nl .nl-caption #cs-caption:disabled { color: var(--nl-fg4) !important; }
html.nl .nl-caption #cs-caption-box { min-height: 88px !important; font-size: 13px !important; line-height: 1.55 !important; }

html.nl .nl-post > .atelier-inspector { width: 300px !important; }
html.nl .nl-coach__head { padding: 12px 14px !important; border-bottom: 1px solid var(--nl-line) !important; font: 500 14px var(--nl-display) !important; color: var(--nl-fg) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-post #cs-coach-send { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border: 0 !important; }
html.nl .nl-post #cs-coach-style { background: transparent !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg2) !important; }
html.nl .nl-post #cs-coach-apply { background: rgba(46,230,166,0.12) !important; border: 1px solid rgba(46,230,166,0.35) !important; color: var(--nl-ok) !important; }
html.nl[data-nl-theme="day"] .nl-post #cs-coach-apply { background: rgba(15,143,99,0.08) !important; border-color: rgba(15,143,99,0.35) !important; }
@media (max-width: 1100px) {
  html.nl .nl-post { flex-wrap: wrap; height: auto !important; overflow: visible !important; }
  html.nl .nl-post > .atelier-essentials, html.nl .nl-post > .atelier-inspector { width: 100% !important; }
  html.nl .nl-post > .atelier-stage { min-height: 70vh; }
}
html.nl .nl-post > .atelier-essentials { gap: 12px !important; }
html.nl .nl-post__row > .nl-field:first-child { flex: 0 0 auto; }
html.nl .nl-post__row > .nl-field:last-child { flex: 1 1 auto; }
html.nl .nl-post #cs-brief { min-height: 96px; }
html.nl .nl-post .nl-hint { display: none; }
html.nl .nl-post #cs-brief { height: 84px; min-height: 64px; }
html.nl .nl-brand-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }

/* ── Create → Animate ── */
html.nl .anim-shell.atelier-shell {
  background: var(--nl-bg) !important; gap: 14px !important; padding: 14px 24px 24px; box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 38%) !important;
}
html.nl .anim-canvas.atelier-stage, html.nl .anim-chat.atelier-inspector {
  border: 1px solid var(--nl-line) !important; border-radius: 12px; background: var(--nl-surface) !important; overflow: hidden;
}
html.nl .anim-canvas-header { flex-wrap: wrap; gap: 10px; background: transparent !important; border-bottom: 1px solid var(--nl-line) !important; padding: 12px 16px !important; }
html.nl .anim-canvas-header h2 { font: 400 22px/1.1 var(--nl-display) !important; letter-spacing: -0.02em !important; color: var(--nl-fg) !important; }
html.nl .nl-steps { list-style: none; margin: 0 auto 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
html.nl .nl-step { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid transparent; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); }
html.nl .nl-step__n { width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; border: 1.5px solid var(--nl-line-strong); display: flex; align-items: center; justify-content: center; font: 500 10px var(--nl-mono); }
html.nl .nl-step--done { color: var(--nl-fg); }
html.nl .nl-step--done .nl-step__n { border-color: var(--nl-ok); color: var(--nl-ok); }
html.nl .nl-step--now { color: var(--nl-fg); border-color: var(--nl-line-strong); background: var(--nl-s3); }
html.nl .nl-step--now .nl-step__n { border-color: var(--nl-signal); color: var(--nl-fg); }
html.nl .anim-canvas-body { background: transparent !important; }
html.nl .anim-chat-header { border-bottom: 1px solid var(--nl-line) !important; padding: 12px 16px !important; }
html.nl .anim-chat-header h3 { font: 500 14px var(--nl-display) !important; color: var(--nl-fg) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .anim-chat-header p { color: var(--nl-fg3) !important; font-size: 12px !important; }
html.nl .anim-chat-compose { background: var(--nl-surface) !important; border-top: 1px solid var(--nl-line) !important; }
html.nl .anim-chat-settings, html.nl .anim-drawer, html.nl .anim-lane__more, html.nl .anim-story__why { border: 1px solid var(--nl-line) !important; background: transparent !important; border-radius: 10px !important; }
html.nl .anim-chat-settings > summary, html.nl .anim-drawer > summary, html.nl .anim-lane__more > summary, html.nl .anim-story__why summary { color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .anim-select, html.nl .anim-prompt, html.nl .anim-ref-url, html.nl .anim-ref-role, html.nl .anim-story__field input, html.nl .anim-arc__row textarea, html.nl .anim-shot__prompt-edit, html.nl .anim-brief-edit {
  background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg) !important; border-radius: 9px !important; font-family: var(--nl-body) !important;
}
html.nl .anim-prompt { border-radius: 14px !important; font-size: 13.5px !important; }
html.nl .anim-prompt:focus, html.nl .anim-shot__prompt-edit:focus { border-color: var(--nl-fg4) !important; box-shadow: none !important; }
html.nl .anim-btn { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border-radius: 9px !important; font-family: var(--nl-body) !important; font-weight: 600 !important; }
html.nl .anim-btn--ghost { background: transparent !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg2) !important; font-weight: 500 !important; }
html.nl .anim-btn--ghost:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }
html.nl #anim-send, html.nl #anim-brief-actions .anim-btn:not(.anim-btn--ghost) { background: var(--nl-signal) !important; color: var(--nl-signal-ink) !important; }
html.nl .anim-entry-mode { display: flex; padding: 3px; gap: 2px; border-radius: 9px; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; margin-bottom: 8px; }
html.nl .anim-entry-seg { flex: 1 1 0; height: 30px; border: 0 !important; border-radius: 7px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .anim-entry-seg.active, html.nl .anim-entry-seg[aria-selected="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .anim-msg--user { background: var(--nl-signal-soft) !important; border: 1px solid transparent !important; }
html.nl .anim-msg--agent { background: var(--nl-s3) !important; border: 1px solid var(--nl-line) !important; }
html.nl .anim-msg__role { color: var(--nl-fg3) !important; font: 500 10.5px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .anim-msg__text { color: var(--nl-fg) !important; font-size: 13px !important; }
html.nl .anim-section__label, html.nl .anim-lane__label, html.nl .anim-shot__prompt-label {
  font: 500 11.5px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--nl-fg3) !important;
}
html.nl .anim-canvas-top > div > div:last-child { font: 400 18px var(--nl-display) !important; color: var(--nl-fg) !important; }
html.nl .anim-shot { background: var(--nl-s2) !important; border: 1px solid var(--nl-line) !important; border-radius: 12px !important; }
html.nl .anim-shot__title { color: var(--nl-fg) !important; font: 500 13.5px var(--nl-body) !important; }
html.nl .anim-shot__prompt { color: var(--nl-fg2) !important; }
html.nl .anim-tile img, html.nl .anim-shot__media img, html.nl .anim-shot__media video, html.nl .anim-saved-shot img, html.nl .anim-saved-shot video { background: var(--nl-s4) !important; }
html.nl .anim-tile__cap { color: var(--nl-fg3) !important; }
html.nl .anim-tile__ph { background: var(--nl-s3) !important; border: 1px dashed var(--nl-line-strong) !important; color: var(--nl-fg3) !important; }
html.nl .anim-tile__ph--gen { background: linear-gradient(120deg, var(--nl-s3) 0%, var(--nl-s4) 45%, var(--nl-s3) 100%) !important; background-size: 220% 220% !important; color: var(--nl-fg) !important; border: 0 !important; }
html.nl .anim-ref-chip { border-color: var(--nl-line-strong) !important; }
html.nl .anim-brief-card { border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; }
html.nl .anim-brief-card__title { color: var(--nl-fg) !important; font-family: var(--nl-display) !important; font-weight: 500 !important; }
html.nl .anim-brief-shot-line { color: var(--nl-fg2) !important; border-top-color: var(--nl-line) !important; }
html.nl .anim-lane-tabs { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 9px !important; }
html.nl .anim-lane-tab { color: var(--nl-fg3) !important; font: 500 12px var(--nl-body) !important; border-radius: 7px !important; }
html.nl .anim-lane-tab.is-on { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .anim-layer { border-color: var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg3) !important; }
html.nl .anim-layer.is-on { background: var(--nl-s3) !important; color: var(--nl-fg) !important; }
html.nl .anim-layer em { color: var(--nl-fg3) !important; }
html.nl .anim-layer input { accent-color: var(--nl-signal) !important; }
html.nl .anim-assemble-panel, html.nl .anim-saved-shot { background: var(--nl-s2) !important; border: 1px solid var(--nl-line) !important; }
html.nl .anim-recent__item { background: var(--nl-s2) !important; border: 1px solid var(--nl-line) !important; color: var(--nl-fg) !important; }
html.nl .anim-recent__item:hover { background: var(--nl-s3) !important; border-color: var(--nl-line-strong) !important; }
html.nl .anim-recent__title { color: var(--nl-fg) !important; }
html.nl .anim-recent__mode { color: var(--nl-fg3) !important; font-family: var(--nl-mono) !important; }
html.nl .anim-empty__title { font: 400 26px var(--nl-display) !important; letter-spacing: -0.02em; color: var(--nl-fg) !important; }
html.nl .anim-empty__desc { color: var(--nl-fg2) !important; }
html.nl .anim-empty__hint { color: var(--nl-fg3) !important; }
html.nl .anim-model-line { color: var(--nl-fg3) !important; }
@media (max-width: 1000px) {
  html.nl .anim-shell.atelier-shell { grid-template-columns: minmax(0, 1fr) !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 12px 16px 24px; }
}

/* Top bar extras (redesign): Connected pill, icon theme button, sign out lives in the account menu. */
html.nl .dash-logout-btn { display: none !important; }
html.nl .nl-conn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg2); font: 500 11.5px var(--nl-body); cursor: pointer; white-space: nowrap; }
html.nl .nl-conn i { width: 6px; height: 6px; border-radius: 3px; background: var(--nl-ok); }
html.nl .nl-conn.is-off { color: var(--nl-warn); }
html.nl .nl-conn.is-off i { background: var(--nl-warn); }
.nl-conn { display: none; }
html.nl .nl-theme-btn { width: 32px; padding: 0 !important; }
html.nl .nl-theme-btn span { display: none; }
html.nl .dash-topbar { justify-content: flex-start !important; }
html.nl .dash-topbar__actions { margin-left: auto; }

/* ── Home (redesign) ── */
html.nl .nl-page { max-width: 1180px; display: flex; flex-direction: column; gap: 12px; }
html.nl .nl-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
html.nl .nl-sub { margin: 6px 0 0; color: var(--nl-fg2); font-size: 13px; }
html.nl .nl-card--flush { padding: 0; overflow: hidden; }
html.nl .nl-sechd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-sechd h2 { margin: 0; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-sechd .nl-link { padding: 0; font-size: 12.5px; color: var(--nl-fg3); }
html.nl .nl-sechd .nl-link:hover { color: var(--nl-fg); }
html.nl .nl-empty { padding: 22px 16px; color: var(--nl-fg3); font-size: 13px; }
html.nl .nl-empty .nl-link { padding: 0 0 0 4px; }
html.nl .nl-qrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-qrow:last-child { border-bottom: 0; }
html.nl .nl-qrow__thumb { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--nl-s4); cursor: pointer; }
html.nl .nl-qrow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-qrow__ph { display: block; width: 100%; height: 100%; background: var(--nl-s4); }
html.nl .nl-qrow__main { min-width: 0; cursor: pointer; }
html.nl .nl-qrow__text { font-size: 13px; color: var(--nl-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-qrow__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; color: var(--nl-fg3); font-size: 11.5px; }
html.nl .nl-qrow__acts { display: flex; gap: 6px; }
html.nl .nl-pf { display: inline-flex; align-items: center; gap: 6px; color: var(--nl-fg2); }
html.nl .nl-pf::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--nl-fg4); flex: 0 0 auto; }
html.nl .nl-pf--ig::before { background: var(--nl-ig); }
html.nl .nl-pf--fb::before { background: var(--nl-fb); }
html.nl .nl-pf--tt::before { background: var(--nl-tt); }
html.nl .nl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg2); font: 500 11px var(--nl-body); white-space: nowrap; }
html.nl .nl-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html.nl .nl-pill--warn { color: var(--nl-warn); border-color: rgba(242,184,75,0.35); background: rgba(242,184,75,0.10); }
html.nl .nl-pill--ok { color: var(--nl-ok); border-color: rgba(46,230,166,0.35); background: rgba(46,230,166,0.10); }
html.nl .nl-pill--info { color: var(--nl-info); border-color: rgba(88,180,255,0.35); background: rgba(88,180,255,0.10); }
html.nl[data-nl-theme="day"] .nl-pill--warn { border-color: rgba(183,121,31,0.35); background: rgba(183,121,31,0.08); }
html.nl[data-nl-theme="day"] .nl-pill--ok { border-color: rgba(15,143,99,0.35); background: rgba(15,143,99,0.08); }
html.nl[data-nl-theme="day"] .nl-pill--info { border-color: rgba(42,116,196,0.35); background: rgba(42,116,196,0.08); }
html.nl .nl-btn--xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
html.nl .nl-btn--xs.nl-btn--icon { width: 28px; padding: 0; }
html.nl .nl-btn--ok { background: var(--nl-primary-bg); color: var(--nl-primary-fg); border-color: transparent; font-weight: 600; }
html.nl .nl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
html.nl .nl-lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-lrow:last-child { border-bottom: 0; }
html.nl .nl-lrow__main { min-width: 0; }
html.nl .nl-lrow__main .nl-pf { color: var(--nl-fg); font-size: 13px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.nl .nl-lrow__sub { margin-top: 2px; color: var(--nl-fg3); font-size: 11.5px; }
html.nl .nl-coach { padding: 12px 16px; display: grid; gap: 10px; }
html.nl .nl-coach__msg { padding: 10px 12px; border-radius: 10px; background: var(--nl-s3); border: 1px solid var(--nl-line); font-size: 13px; line-height: 1.5; color: var(--nl-fg); }
html.nl .nl-coach__who { font-size: 11px; color: var(--nl-fg3); margin-bottom: 4px; }
html.nl .nl-coach__acts { display: flex; gap: 8px; }
html.nl .nl-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 12px 16px; }
html.nl .nl-stat > div { display: flex; flex-direction: column; gap: 2px; }
html.nl .nl-stat > button { margin-left: auto; }
html.nl .nl-stat__k { font-size: 11px; color: var(--nl-fg3); }
html.nl .nl-stat__v { font: 400 20px/1.2 var(--nl-display); color: var(--nl-fg); }
html.nl .nl-stat__v--info { color: var(--nl-info); }
html.nl .nl-stat__v--warn { color: var(--nl-warn); }
@media (max-width: 700px) {
  html.nl .nl-qrow { grid-template-columns: 40px minmax(0, 1fr); }
  html.nl .nl-qrow > .nl-pill, html.nl .nl-qrow__acts { grid-column: 2; }
}

/* ── Create → Animate: the board layout (nl-anim, built by animation-studio.js) ── */
html.nl .anim-shell.nl-anim-on {
  display: block !important; height: auto !important; max-height: none !important; min-height: 0 !important;
  overflow: visible !important; padding: 20px 24px 48px !important; max-width: 1340px; margin: 0 auto; background: transparent !important;
}
html.nl .anim-shell.nl-anim-on > .anim-chat { display: none !important; }
html.nl .anim-shell.nl-anim-on > .anim-canvas { border: 0 !important; background: transparent !important; overflow: visible !important; height: auto !important; border-radius: 0; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header { padding: 0 0 14px !important; border-bottom: 0 !important; gap: 10px 12px; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header h2 { font: 400 28px/1.1 var(--nl-display) !important; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header .nl-steps { order: 3; flex: 1 1 100%; margin: 2px 0 0; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header > div:last-of-type { margin-left: auto; }
html.nl .anim-shell.nl-anim-on .anim-canvas-body, html.nl .anim-shell.nl-anim-on #anim-home { display: none !important; }
html.nl .anim-shell.nl-anim-on #anim-new { height: 36px; padding: 0 12px !important; font-size: 12.5px !important; }
html.nl .nl-aproj { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg); font: 400 12.5px var(--nl-body); cursor: pointer; max-width: 320px; }
html.nl .nl-aproj[hidden] { display: none; }
html.nl .nl-aproj__l { color: var(--nl-fg3); }
html.nl .nl-aproj__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-aproj:hover { border-color: var(--nl-fg4); }

html.nl .nl-anim { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
html.nl .nl-anim__main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.nl .nl-anim__side { flex: 1 1 300px; max-width: 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-anim.is-home .nl-anim__side, html.nl .nl-anim.is-home .nl-ashots, html.nl .nl-anim.is-home .nl-atl { display: none; }
html.nl .nl-anim.is-home .nl-anim__main { max-width: 920px; margin: 0 auto; }
html.nl .nl-grow { flex: 1 1 auto; }
html.nl .nl-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; padding: 0 !important; margin: -1px !important; }
html.nl .nl-acard { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); }
html.nl .nl-acard__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-acard__h--flat { padding: 0; border: 0; }
html.nl .nl-acard__h h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; font: 500 15px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-acard__meta { font: 400 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-acard__tools { display: flex; gap: 6px; }
html.nl .nl-abtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--nl-line-strong); background: transparent; color: var(--nl-fg2); font: 500 12.5px var(--nl-body); cursor: pointer; white-space: nowrap; }
html.nl .nl-abtn:hover { color: var(--nl-fg); background: var(--nl-s2); }
html.nl .nl-abtn[aria-expanded="true"] { color: var(--nl-fg); background: var(--nl-s3); }
html.nl .nl-abtn--dash { border-style: dashed; }
html.nl .nl-abtn[hidden] { display: none; }
html.nl .nl-acard__tools .nl-abtn { height: 30px; padding: 0 10px; font-size: 12px; }

/* Brief card */
html.nl .nl-abrief { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-abrief__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
html.nl .nl-afield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.nl .nl-afield__l { font: 500 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-abrief .anim-entry-mode, html.nl .nl-aseg { display: inline-flex !important; margin: 0 !important; padding: 3px; gap: 2px; border-radius: 8px; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; }
html.nl .nl-abrief .anim-entry-seg, html.nl .nl-aseg button { flex: 0 0 auto; height: 30px; padding: 0 12px; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; cursor: pointer; }
html.nl .nl-aseg button[aria-pressed="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-alook { position: relative; }
html.nl .nl-abrief #anim-story-type, html.nl .nl-alook select:not(.nl-sr) { height: 36px; min-width: 160px; padding: 0 8px !important; font-size: 13px !important; margin: 0 !important; }
html.nl .nl-abrief #anim-story { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
html.nl .nl-abrief #anim-story:empty { display: none; }
html.nl .nl-abrief .anim-story__why { flex: 1 1 100%; }
html.nl .nl-abrief .anim-story__why[open] { padding-bottom: 8px; }
html.nl .nl-abrief .anim-story__why summary { padding: 8px 12px; cursor: pointer; }
html.nl .nl-abrief .anim-story__field { padding: 0 12px; }
html.nl .nl-abrief .anim-story__nudge { background: transparent !important; border: 1px dashed var(--nl-warn) !important; color: var(--nl-warn) !important; border-radius: 8px !important; padding: 6px 10px !important; font: 500 12px var(--nl-body) !important; }
html.nl .nl-abrief__more[hidden] { display: none; }
html.nl .nl-abrief__more .anim-chat-settings { margin: 0 !important; border: 1px solid var(--nl-line) !important; background: var(--nl-s2) !important; }
html.nl .nl-abrief__more .anim-chat-settings > summary { display: none; }
html.nl .nl-abrief__more .anim-chat-settings__body { max-height: none !important; padding: 12px !important; overflow: visible !important; }
html.nl .nl-abrief__more .anim-row { display: flex; flex-wrap: wrap; gap: 8px; }
html.nl .nl-abrief__more .anim-select { height: 34px; flex: 1 1 160px; }
html.nl .nl-abrief #anim-drive-wrap { padding: 10px 12px; border: 1px dashed var(--nl-line-strong); border-radius: 10px; margin: 0 !important; }
html.nl .nl-abrief #anim-drive-wrap[hidden] { display: none; }
html.nl .nl-acast { display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-acast__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.nl .nl-acast__lock { display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px var(--nl-body); color: var(--nl-ok); }
html.nl .nl-acast__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
html.nl .nl-acast #anim-refs { display: contents; }
html.nl .nl-acast .anim-refs-empty { flex: 1 1 260px; align-self: center; font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-acast .anim-ref-card { flex: 1 1 150px; max-width: 220px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px; border-radius: 9px; border: 1px solid var(--nl-line); background: var(--nl-s2); box-sizing: border-box; }
html.nl .nl-acast .anim-ref-chip { grid-row: 1 / span 2; width: 40px !important; height: 40px !important; border-radius: 7px !important; border: 0 !important; overflow: visible !important; }
html.nl .nl-acast .anim-ref-chip img { border-radius: 7px; }
html.nl .nl-acast .anim-ref-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--nl-s2) !important; background: var(--nl-s4) !important; color: var(--nl-fg) !important; font-size: 11px; line-height: 1; padding: 0; display: grid; place-items: center; }
html.nl .nl-acast .anim-ref-name { display: block; font: 500 12.5px var(--nl-body); color: var(--nl-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-acast .anim-ref-role { height: 20px; padding: 0 2px !important; border: 0 !important; background: transparent !important; color: var(--nl-fg3) !important; font: 400 10px var(--nl-mono) !important; letter-spacing: 0.04em; text-transform: uppercase; justify-self: start; }
html.nl .nl-acast .anim-ref-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 !important; }
html.nl .nl-acast .anim-ref-tools .anim-btn { height: 54px; border-style: dashed !important; padding: 0 14px !important; font-size: 12.5px !important; }
html.nl .nl-acast .anim-ref-url { height: 36px; width: 190px; padding: 0 10px !important; }
html.nl .nl-acast .anim-ref-tools #anim-ref-add-url { height: 36px; border-style: solid !important; }
html.nl .nl-achar { margin: 0 !important; padding-top: 12px; border-top: 1px solid var(--nl-line); }
html.nl .nl-achar .anim-strip { gap: 8px; }
html.nl .nl-achar .anim-tile { width: 72px; }
html.nl .nl-achar .anim-tile img, html.nl .nl-achar .anim-tile .anim-tile__ph { aspect-ratio: 1; border-radius: 8px; }
html.nl .nl-achar .anim-tile__cap { font-size: 11px; margin-top: 4px; }
html.nl .nl-achar .anim-placeholder-row { padding: 10px 12px; font-size: 12.5px !important; }
html.nl .nl-aarc { border-top: 1px solid var(--nl-line); padding-top: 10px; }
html.nl .nl-aarc > summary { cursor: pointer; font: 500 12.5px var(--nl-body); color: var(--nl-fg2); list-style: none; }
html.nl .nl-aarc > summary::-webkit-details-marker { display: none; }
html.nl .nl-aarc > summary::before { content: '▸'; display: inline-block; width: 14px; color: var(--nl-fg3); }
html.nl .nl-aarc[open] > summary::before { content: '▾'; }
html.nl .nl-aarc > .anim-section { margin: 10px 0 0 !important; }
html.nl .anim-placeholder-row { border-color: var(--nl-line-strong) !important; color: var(--nl-fg3) !important; font-size: 13px !important; }

/* Shots card */
html.nl .nl-ashots__grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; }
html.nl .nl-ashots__grid > .anim-placeholder-row { flex: 1 1 100%; }
html.nl .nl-ashots__grid > .anim-timeline--ghost { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; margin: 0; }
html.nl .nl-ashots__grid .anim-shot--ghost { width: 160px !important; padding: 6px !important; }
html.nl .nl-ashots__grid .anim-shot--ghost .anim-tile__ph { aspect-ratio: auto; height: 240px; }
html.nl .nl-ashots__grid .anim-shot:not(.anim-shot--ghost) {
  display: flex !important; flex-direction: column; gap: 8px; flex: 0 0 160px; width: 160px; box-sizing: border-box;
  padding: 6px 6px 10px !important; border-radius: 11px !important; cursor: pointer; position: relative;
}
html.nl .nl-ashots__grid .anim-shot:not(.anim-shot--ghost):hover { border-color: var(--nl-line-strong) !important; }
html.nl .nl-ashots__grid .anim-shot.is-sel { border-color: var(--nl-fg) !important; box-shadow: 0 0 0 1px var(--nl-fg); }
html.nl .nl-ashots__grid .anim-shot__media { position: relative; height: 252px; border-radius: 8px; overflow: hidden; background: var(--nl-s4); }
html.nl .nl-ashots__grid .anim-shot__media > img, html.nl .nl-ashots__grid .anim-shot__media > video, html.nl .nl-ashots__grid .anim-shot__media .anim-shot__updating img,
html.nl .nl-ashots__grid .anim-shot__media > .anim-tile__ph { width: 100% !important; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0 !important; }
html.nl .nl-ashots__grid .anim-shot__updating { height: 100%; }
html.nl .nl-ashots__grid .anim-shot__meta { display: none !important; }
html.nl .nl-shot__num { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 2px 7px; border-radius: 5px; background: rgba(8,9,12,0.62); color: #f3f1ec; font: 400 10.5px var(--nl-mono); pointer-events: none; }
html.nl .nl-shot__gen { position: absolute; inset: 0; z-index: 1; background: rgba(8,9,12,0.5); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; color: #f3f1ec; font: 400 11.5px var(--nl-body); pointer-events: none; }
html.nl .nl-shot__gen i { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); overflow: hidden; position: relative; }
html.nl .nl-shot__gen i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--nl-signal); border-radius: 2px; animation: nlIndet 1.4s ease-in-out infinite; }
@keyframes nlIndet { 0% { left: -40%; } 100% { left: 100%; } }
html.nl .nl-ashots__grid .anim-take-nav { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; margin: 0 !important; gap: 4px; justify-content: space-between; flex-wrap: nowrap; }
html.nl .nl-ashots__grid .anim-take-nav__btn { width: 24px; height: 24px; border-radius: 6px; border: 0 !important; background: rgba(8,9,12,0.62) !important; color: #f3f1ec !important; font-size: 14px; }
html.nl .nl-ashots__grid .anim-take-nav__label { color: #f3f1ec !important; font: 400 10.5px var(--nl-mono); background: rgba(8,9,12,0.62); border-radius: 5px; padding: 3px 5px; min-width: 0; }
html.nl .nl-ashots__grid .anim-expand-btn { height: 24px; padding: 0 7px !important; border: 0 !important; background: rgba(8,9,12,0.62) !important; color: #f3f1ec !important; font: 500 10.5px var(--nl-body) !important; margin-left: auto; }
html.nl .nl-ashots__grid .anim-shot__updating-badge { display: none; }
html.nl .nl-shot__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px; }
html.nl .nl-shot__st { display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-shot__dot { width: 7px; height: 7px; border-radius: 4px; background: var(--nl-fg4); }
html.nl .nl-shot__dot--ok { background: var(--nl-ok); }
html.nl .nl-shot__dot--gen { background: var(--nl-signal); }
html.nl .nl-shot__dot--bad { background: var(--nl-bad); }
html.nl .nl-shot__dot--pass { background: var(--nl-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nl-ok) 22%, transparent); }
html.nl .nl-shot__dot--minor { background: var(--nl-ok); }
html.nl .nl-shot__dot--warn { background: var(--nl-warn); }
html.nl .nl-shot__dot--chk { background: var(--nl-signal); animation: nl-chk-pulse 1.1s ease-in-out infinite; }
@keyframes nl-chk-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { html.nl .nl-shot__dot--chk { animation: none; } }
html.nl .nl-shot__st[data-check="warn"] { color: var(--nl-warn); }
html.nl .nl-shot__chk { display: flex; align-items: flex-start; gap: 5px; margin: 0; padding: 0 4px; font: 400 11.5px/1.4 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-shot__chk svg { flex: 0 0 auto; margin-top: 2px; }
html.nl .nl-shot__chk--warn { color: var(--nl-warn); }
html.nl .nl-shotchk { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; padding: 9px 11px; border: 1px solid var(--nl-line); border-radius: 9px; background: var(--nl-s2); font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-shotchk > i, html.nl .nl-shotchk__h > i { flex: 0 0 auto; margin-top: 5px; }
html.nl .nl-shotchk--checking, html.nl .nl-shotchk--redoing, html.nl .nl-shotchk--skipped { flex-direction: row; align-items: flex-start; gap: 8px; }
html.nl .nl-shotchk__h { display: flex; align-items: flex-start; gap: 8px; }
html.nl .nl-shotchk__h b { color: var(--nl-fg); font-weight: 600; }
html.nl .nl-shotchk--flagged .nl-shotchk__h b { color: var(--nl-warn); }
html.nl .nl-shotchk__list { margin: 0; padding: 0 0 0 15px; list-style: none; display: flex; flex-direction: column; gap: 3px; }
html.nl .nl-shotchk__list b { color: var(--nl-fg2); font-weight: 500; margin-right: 4px; }
html.nl .nl-shotchk__err { margin: 0; padding-left: 15px; color: var(--nl-fg4); }
html.nl .nl-mynotes { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
html.nl .nl-mynotes__h { font: 600 12px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-mynotes__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: none; }
html.nl .nl-mynotes__list li { box-sizing: border-box; width: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--nl-line); border-left: 2px solid var(--nl-warn); border-radius: 7px; background: var(--nl-s2); font: 400 12.5px/1.4 var(--nl-body); color: var(--nl-fg); }
html.nl .nl-mynotes__x { flex: 0 0 auto; width: 24px; height: 24px; border: none; border-radius: 6px; background: transparent; color: var(--nl-fg3); cursor: pointer; font-size: 15px; line-height: 1; }
html.nl .nl-mynotes__x:hover { background: var(--nl-s3, rgba(255,255,255,0.06)); color: var(--nl-fg); }
html.nl .nl-mynotes__add { display: flex; gap: 8px; }
html.nl .nl-mynotes__add input { flex: 1; min-width: 0; height: 32px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--nl-line-strong); border-radius: 7px; background: var(--nl-surface); color: var(--nl-fg); font: 400 12.5px var(--nl-body); }
html.nl .nl-mynotes__add input:focus { outline: none; border-color: var(--nl-fg4); }
html.nl .nl-mynotes__hint { margin: 0; font: 400 11.5px/1.4 var(--nl-body); color: var(--nl-fg4); }
html.nl .nl-shot__takes { font: 400 10.5px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-shot__what { margin: 0; padding: 0 4px; font: 400 12px/1.4 var(--nl-body); color: var(--nl-fg2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.nl .nl-ashots__grid .anim-add-scene-wrap { flex: 0 0 120px; margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-ashots__grid #anim-add-scene { flex: 1 1 auto; min-height: 252px; border: 1px dashed var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg3) !important; border-radius: 11px !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .nl-ashots__grid #anim-add-scene:not(:disabled):hover { color: var(--nl-fg) !important; border-color: var(--nl-fg4) !important; }
html.nl .nl-ashots__grid .anim-add-scene-hint { color: var(--nl-fg3) !important; font-size: 11px !important; }
html.nl .nl-asaved { padding: 12px 14px 0; }
html.nl .nl-asaved[hidden] { display: none; }
html.nl .nl-asaved .anim-saved-shots { margin: 0; }
html.nl .nl-shotbar { margin: 0 14px 14px; padding: 12px; border-radius: 10px; border: 1px solid var(--nl-line-strong); background: var(--nl-s3); display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-shotbar__h { font: 500 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-shotbar .anim-shot__meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; }
html.nl .nl-shotbar .anim-shot__title, html.nl .nl-shotbar .anim-shot__prompt-label { display: none !important; }
html.nl .nl-shotbar .anim-shot__prompt-edit { flex: 1 1 100%; min-height: 40px; margin: 0 !important; font-size: 13px !important; padding: 8px 10px !important; resize: vertical; }
html.nl .nl-shotbar .anim-shot__meta > div[style] { flex: 1 1 100%; margin: 0 !important; }
html.nl .nl-shotbar .anim-shot__overrides { display: flex; gap: 6px; margin: 0 !important; }
html.nl .nl-shotbar .anim-shot__overrides .anim-select { height: 34px; font-size: 12px !important; padding: 0 8px !important; }
html.nl .nl-shotbar .anim-shot__actions { margin-left: auto; gap: 6px; }
html.nl .nl-shotbar .anim-shot__actions .anim-btn { height: 34px; padding: 0 11px !important; font-size: 12px !important; width: auto !important; }
html.nl .nl-shotbar .anim-shot-delete { color: var(--nl-bad) !important; }

/* Ask bar */
html.nl .nl-aask { border: 1px solid var(--nl-line-strong); border-radius: 14px; background: var(--nl-s2); padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-aask__log #anim-chat-log { max-height: 136px; overflow-y: auto; padding: 0 !important; gap: 8px !important; }
html.nl .nl-aask .anim-msg { padding: 8px 10px !important; border-radius: 10px !important; }
html.nl .nl-aask #anim-brief-actions { padding: 0 !important; }
html.nl .nl-aask #anim-brief-actions:empty { display: none; }
html.nl .nl-aask .anim-brief-card { margin: 0 !important; }
html.nl .nl-aask #anim-prompt { width: 100%; box-sizing: border-box; height: auto !important; field-sizing: content; min-height: 52px; max-height: 260px; resize: none; border: 0 !important; background: transparent !important; padding: 2px 4px !important; font-size: 13.5px !important; outline: none; }
html.nl .nl-aask__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html.nl .nl-aask__tokens { display: flex; flex-wrap: wrap; gap: 6px; }
html.nl .nl-atok { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--nl-s3); border: 1px solid var(--nl-line); font: 400 12px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-aask #anim-pending-packs { margin: 0 !important; }
html.nl .nl-aask #anim-send { height: 36px; padding: 0 16px !important; width: auto !important; border-radius: 9px !important; font-size: 13px !important; display: inline-flex; align-items: center; gap: 8px; }
html.nl .nl-aask #anim-send::before { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Timeline tracks */
html.nl .nl-atl { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-atl[hidden] { display: none; }
html.nl .nl-acard__h--flat h2 { font-size: 14px; }
html.nl .nl-atl__ticks { position: relative; height: 14px; margin-left: 84px; font: 400 10px var(--nl-mono); color: var(--nl-fg4); }
html.nl .nl-atl__ticks span { position: absolute; top: 0; }
html.nl .nl-atl__row { display: flex; align-items: center; gap: 10px; }
html.nl .nl-atl__l { flex: 0 0 74px; font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-atl__lane { position: relative; flex: 1 1 auto; height: 26px; border-radius: 6px; background: var(--nl-s2); min-width: 0; }
html.nl .nl-atl__b { position: absolute; top: 3px; bottom: 3px; box-sizing: border-box; border-radius: 4px; border: 1px solid var(--nl-line); background: var(--nl-s3); color: var(--nl-fg2); font: 400 10.5px/18px var(--nl-body); padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-atl__b--shot { background: var(--nl-s4); border-color: var(--nl-line-strong); }
html.nl .nl-atl__b--shot.is-sel { border-color: var(--nl-fg); color: var(--nl-fg); }
html.nl .nl-atl__b--gen { background: transparent; border-color: var(--nl-signal); color: var(--nl-signal); }
html.nl .nl-atl__b--bad { border-color: var(--nl-bad); color: var(--nl-bad); }
html.nl .nl-atl__b--todo { background: transparent; border-style: dashed; color: var(--nl-fg3); }
html.nl .nl-atl__b--vo { background: color-mix(in srgb, var(--nl-ok) 10%, transparent); border-color: color-mix(in srgb, var(--nl-ok) 35%, transparent); }
html.nl .nl-atl__b--music { color: var(--nl-fg3); }
html.nl .nl-atl__empty { display: block; padding: 0 8px; font: 400 11px/26px var(--nl-body); color: var(--nl-fg4); }

/* Sound and finish */
html.nl .nl-alanes { display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-alanes__note { margin: 0 2px; font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-lane { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-lane__h { display: flex; align-items: center; gap: 9px; }
html.nl .nl-lane__ic { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 13px; box-sizing: border-box; border: 1.5px solid var(--nl-line-strong); display: flex; align-items: center; justify-content: center; color: var(--nl-fg2); }
html.nl .nl-lane.is-ready:not(.is-off) .nl-lane__ic { border-color: var(--nl-ok); color: var(--nl-ok); }
html.nl .nl-lane__t { margin: 0; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-lane__state { margin-left: auto; font: 400 11.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; }
html.nl .nl-lane.is-ready:not(.is-off) .nl-lane__state { color: var(--nl-ok); }
html.nl .nl-lane.is-off .nl-lane__state { color: var(--nl-fg4); }
html.nl .nl-lane__sw:empty { display: none; }
html.nl .nl-lane__sw .anim-layer { display: inline-flex !important; align-items: center; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; cursor: pointer; }
html.nl .nl-lane__sw .anim-layer span, html.nl .nl-lane__sw .anim-layer em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.nl .nl-lane__sw .anim-layer input { -webkit-appearance: none; appearance: none; margin: 0; width: 30px; height: 18px; border-radius: 9px; background: var(--nl-line-strong); position: relative; cursor: pointer; transition: background .15s; }
html.nl .nl-lane__sw .anim-layer input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 7px; background: var(--nl-fg); transition: transform .15s; }
html.nl .nl-lane__sw .anim-layer input:checked { background: var(--nl-ok); }
html.nl .nl-lane__sw .anim-layer input:checked::after { transform: translateX(12px); background: var(--nl-bg); }
html.nl .nl-lane__edit { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--nl-line-strong); background: transparent; color: var(--nl-fg2); font: 500 11.5px var(--nl-body); cursor: pointer; }
html.nl .nl-lane__edit:hover, html.nl .nl-lane__edit[aria-expanded="true"] { color: var(--nl-fg); background: var(--nl-s3); }
html.nl .nl-lane__sum { margin: 0; font: 400 12.5px/1.5 var(--nl-body); color: var(--nl-fg2); overflow-wrap: anywhere; }
html.nl .nl-lane.is-off .nl-lane__sum, html.nl .nl-lane.is-locked .nl-lane__sum { color: var(--nl-fg3); }
html.nl .nl-lane.is-open .nl-lane__sum { display: none; }
html.nl .nl-lane:not(.is-open) .nl-lane__body { display: none; }
html.nl .nl-lane__body .anim-lane { padding: 0 !important; border: 0 !important; background: transparent !important; }
html.nl .nl-lane__body .anim-lane__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.nl .nl-lane__body .anim-btn { width: auto !important; height: 32px; padding: 0 10px !important; font-size: 12px !important; }
html.nl .nl-lane__body .anim-brief-edit { width: 100%; box-sizing: border-box; min-height: 90px; font-size: 12.5px !important; }
html.nl .nl-afinal { border: 1px solid var(--nl-line-strong); border-radius: 12px; background: var(--nl-s2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-afinal__top { display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-afinal__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.nl .nl-afinal__h h2 { margin: 0; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-afinal__h span { font: 400 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-afinal__bar { display: flex; gap: 4px; }
html.nl .nl-afinal__seg { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--nl-line-strong); }
html.nl .nl-afinal__seg--ok { background: var(--nl-ok); }
html.nl .nl-afinal__seg--gen { background: var(--nl-signal); }
html.nl .nl-afinal__seg--bad { background: var(--nl-bad); }
html.nl .nl-afinal__count, html.nl .nl-afinal__ph { margin: 0; font: 400 11.5px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-afinal .anim-final__stage, html.nl .nl-afinal .anim-final__video { width: 100% !important; max-width: 100% !important; }
html.nl .nl-afinal .anim-placeholder-row { padding: 10px 12px; font-size: 12.5px !important; }
html.nl .nl-afinal__btns { display: flex !important; flex-direction: column; gap: 8px !important; margin: 0 !important; }
html.nl .nl-afinal__btns > .anim-btn { width: 100% !important; height: 36px; font-size: 13px !important; }
html.nl .nl-afinal__btns > #anim-rebuild-final { order: -1; height: 40px; font-size: 13.5px !important; }
html.nl .nl-afinal__btns > #anim-expand-final { order: 2; }
html.nl .nl-afinal__btns > div { order: 3; margin: 0 !important; font-size: 11.5px !important; }
html.nl .nl-afinal .anim-past-finals { border-top: 1px solid var(--nl-line); padding-top: 8px; margin: 0; }
html.nl .nl-afinal .anim-past-finals__summary { color: var(--nl-fg2) !important; font: 500 12px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-ahome:empty { display: none; }
html.nl .nl-ahome { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 18px; }
html.nl .nl-ahome .anim-empty { text-align: left; padding: 0 !important; margin: 0 0 14px; }
html.nl .nl-ahome .anim-recent { margin: 0; }
html.nl .nl-ahome .anim-placeholder-row { margin: 0 !important; max-width: none !important; }
@media (max-width: 960px) {
  html.nl .anim-shell.nl-anim-on { padding: 14px 16px 32px !important; }
  html.nl .nl-anim__side { max-width: none; flex-basis: 100%; }
  html.nl .nl-ashots__grid .anim-shot:not(.anim-shot--ghost) { flex-basis: 140px; width: 140px; }
  html.nl .nl-ashots__grid .anim-shot__media { height: 220px; }
  html.nl .nl-atl__ticks { margin-left: 70px; }
  html.nl .nl-atl__l { flex-basis: 60px; }
}
html.nl .nl-abrief .anim-entry-seg.active, html.nl .nl-abrief .anim-entry-seg[aria-selected="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-ashots__grid .anim-take-nav { opacity: 0; transition: opacity .12s; }
html.nl .nl-ashots__grid .anim-shot:hover .anim-take-nav, html.nl .nl-ashots__grid .anim-shot:focus-within .anim-take-nav, html.nl .nl-ashots__grid .anim-shot.is-sel .anim-take-nav { opacity: 1; }
html.nl .nl-abrief > [data-slot]:empty, html.nl .nl-abrief > [data-slot="drive"]:not(:has(> :not([hidden]))) { display: none; }

/* ── Review (Content Review) in the redesign layout ── */
html.nl .nl-rv { max-width: 1340px; margin: 0 auto; }
html.nl .nl-rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
html.nl .nl-rv-sub { margin: 6px 0 0; font: 400 13.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-rv-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.nl .nl-rv-head__tools .nl-btn { height: 36px; }
html.nl .nl-rv-head__tools .nl-btn--icon { width: 36px; }
html.nl .nl-rv-credits:empty { display: none; }
html.nl .nl-rv-credits { font: 400 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
html.nl .nl-rv-bar .studio-filters { margin: 0 !important; flex-wrap: wrap; }
html.nl .nl-rv-bar .studio-filter { height: 30px !important; padding: 0 12px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; box-shadow: none !important; display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-rv-bar .studio-filter.active { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-rv-bar .studio-filter__count { background: transparent !important; color: var(--nl-fg3) !important; font: 400 10.5px var(--nl-mono) !important; padding: 0 !important; }
html.nl .nl-rv-select { height: 36px; padding: 0 28px 0 11px; border-radius: 8px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2375736c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--nl-fg2); font: 400 12.5px var(--nl-body); -webkit-appearance: none; appearance: none; cursor: pointer; }
html.nl .nl-rv-select:hover { color: var(--nl-fg); }
html.nl .nl-rv-view { margin-left: auto; }
html.nl .nl-rv-view .studio-view-btn { height: 28px !important; padding: 0 12px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .nl-rv-view .studio-view-btn.active { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-rv #studio-content-area { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 14px; }
html.nl .nl-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
html.nl .nl-rv-card { display: flex; flex-direction: column; gap: 9px; padding: 0 0 11px; border-radius: 11px; border: 1px solid var(--nl-line); background: var(--nl-s2); overflow: hidden; min-width: 0; }
html.nl .nl-rv-card:hover { border-color: var(--nl-line-strong); }
html.nl .nl-rv-card.is-sel { border-color: var(--nl-fg3); box-shadow: 0 0 0 1px var(--nl-fg3); }
html.nl .nl-rv-card__media { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--nl-s4); cursor: pointer; overflow: hidden; }
html.nl .nl-rv-card__media img, html.nl .nl-rv-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-rv-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-rv-card__badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(8,9,12,0.7); color: #f3f1ec; font: 500 11px var(--nl-body); }
html.nl .nl-rv-card__meta { display: flex; align-items: center; gap: 8px; padding: 0 11px; min-width: 0; }
html.nl .nl-rv-card__plat { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--nl-body); color: var(--nl-fg); white-space: nowrap; }
html.nl .nl-pdot { width: 6px; height: 6px; border-radius: 3px; background: var(--nl-fg3); flex: 0 0 auto; }
html.nl .nl-pdot--ig { background: var(--nl-ig); }
html.nl .nl-pdot--fb { background: var(--nl-fb); }
html.nl .nl-pdot--tt { background: var(--nl-tt); }
html.nl .nl-rv-card__when { font: 400 12px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-rv-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--nl-line-strong); font: 500 10.5px var(--nl-body); color: var(--nl-fg2); white-space: nowrap; }
html.nl .nl-rv-pill i { width: 6px; height: 6px; border-radius: 3px; background: var(--nl-fg3); }
html.nl .nl-rv-pill--review i { background: var(--nl-warn); }
html.nl .nl-rv-pill--scheduled i { background: var(--nl-fg2); }
html.nl .nl-rv-pill--live i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--nl-ok); }
html.nl .nl-rv-pill--failed { color: var(--nl-bad); }
html.nl .nl-rv-pill--failed i { background: var(--nl-bad); }
html.nl .nl-rv-pill--archived { color: var(--nl-fg3); }
html.nl .nl-rv-card__cap { margin: 0; padding: 0 11px; font: 400 13px/1.45 var(--nl-body); color: var(--nl-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; min-height: 2.9em; }
html.nl .nl-rv-card__r5 { padding: 0 11px; }
html.nl .nl-rv-card__acts { display: flex; align-items: center; gap: 6px; padding: 0 11px; margin-top: auto; }
html.nl .nl-rv-card__acts .nl-btn:not(.nl-btn--icon) { flex: 1 1 0; }
html.nl .nl-rv-card__busy { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 8px; height: 28px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-rv-card__busy i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--nl-line-strong); border-top-color: var(--nl-fg2); animation: spin 0.8s linear infinite; }
html.nl .nl-rv-list { display: flex; flex-direction: column; }
html.nl .nl-rv-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--nl-line); cursor: pointer; border-radius: 8px; }
html.nl .nl-rv-row:last-child { border-bottom: 0; }
html.nl .nl-rv-row:hover, html.nl .nl-rv-row.is-sel { background: var(--nl-s2); }
html.nl .nl-rv-row__thumb { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--nl-s4); }
html.nl .nl-rv-row__thumb img, html.nl .nl-rv-row__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-rv-row__thumb .nl-rv-card__ph { font-size: 0; }
html.nl .nl-rv-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.nl .nl-rv-row__cap { font: 400 13px var(--nl-body); color: var(--nl-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-rv-row__meta { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-rv-row .nl-rv-pill { margin-left: 0; }
html.nl .nl-rv-row__acts { display: flex; gap: 6px; }
html.nl .nl-rv #studio-content-area .empty-state { border: 0; background: transparent; }

/* Post detail: the studio modal shown inline under the grid */
html.nl .nl-rv-detail { margin-top: 14px; }
html.nl .nl-rv-detail:not(:has(.studio-modal.active)) { display: none; }
html.nl .studio-modal.nl-inline { position: static !important; inset: auto; z-index: auto; display: none; opacity: 1 !important; transform: none !important; }
html.nl .studio-modal.nl-inline.active { display: block; }
html.nl .studio-modal.nl-inline .studio-modal__backdrop { display: none; }
html.nl .studio-modal.nl-inline .studio-modal__panel { max-width: none !important; width: 100%; height: auto !important; margin: 0 !important; border-radius: 12px !important; border: 1px solid var(--nl-line) !important; box-shadow: none !important; background: var(--nl-surface) !important; overflow: hidden; }
html.nl .studio-modal.nl-inline .studio-modal__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); border: 0 !important; box-shadow: none !important; overflow: visible; }
html.nl .studio-modal.nl-inline .studio-modal__preview { border-radius: 0 !important; background: var(--nl-bg) !important; min-height: 460px; padding: 28px; }
/* Inline Review detail: panel height is auto, so max-height:100% on <img> does not
   cap tall 9:16 Story assets. Beat the inline style so Stories match other formats. */
html.nl .studio-modal.nl-inline .studio-modal__preview img,
html.nl .studio-modal.nl-inline .studio-modal__preview video {
  max-width: 100% !important;
  max-height: 560px !important;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
html.nl .studio-modal.nl-inline .studio-modal__details { border-left: 1px solid var(--nl-line); padding: 16px 18px !important; overflow: visible; max-height: none; }
html.nl .studio-modal.nl-inline .studio-modal__close { top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; background: transparent !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg2) !important; backdrop-filter: none; }
html.nl .studio-modal.nl-inline .studio-modal__meta-row { padding-right: 40px; }
html.nl .studio-modal__caption-label { font: 500 11.5px var(--nl-body) !important; color: var(--nl-fg3) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .studio-modal__caption-area { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 9px !important; color: var(--nl-fg) !important; font: 400 13px/1.55 var(--nl-body) !important; max-height: 220px; }
html.nl .studio-modal__caption-hint { color: var(--nl-fg3) !important; font-size: 11.5px !important; }
/* A caption for each platform (TikTok, ...) under the main caption */
html.nl .se-platcap { border: 1px solid var(--nl-line) !important; background: transparent !important; }
html.nl .se-platcap__state { font: 500 11px var(--nl-body) !important; }
html.nl .se-platcap__state--ok { color: var(--nl-ok) !important; }
html.nl .se-platcap__state--warn { color: var(--nl-warn) !important; }
html.nl .se-platcap__state--muted { color: var(--nl-fg3) !important; }
html.nl .se-platcap__write { background: var(--nl-s3) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg) !important; font: 600 11.5px var(--nl-body) !important; border-radius: 7px !important; padding: 4px 10px !important; }
html.nl .se-platcap__write.is-lit { background: var(--nl-signal) !important; color: var(--nl-signal-ink) !important; border-color: transparent !important; box-shadow: 0 0 0 3px var(--nl-signal-soft); }
html.nl .se-platcap__write:disabled { opacity: .6; cursor: default !important; }
html.nl .studio-modal__actions { border-top: 1px solid var(--nl-line) !important; gap: 6px !important; }
html.nl .studio-modal__btn { height: 36px; padding: 0 14px !important; border-radius: 9px !important; font: 500 13px var(--nl-body) !important; background: transparent !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg) !important; transform: none !important; box-shadow: none !important; }
html.nl .studio-modal__btn--approve { flex: 1 1 auto; justify-content: center; background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border-color: transparent !important; font-weight: 600 !important; }
html.nl .studio-modal__nav-btn { color: var(--nl-fg2) !important; }
html.nl .studio-modal__counter { color: var(--nl-fg3) !important; font-family: var(--nl-mono) !important; }
@media (max-width: 900px) {
  html.nl .studio-modal.nl-inline .studio-modal__body { grid-template-columns: 1fr; }
  html.nl .studio-modal.nl-inline .studio-modal__details { border-left: 0; border-top: 1px solid var(--nl-line); }
  html.nl .studio-modal.nl-inline .studio-modal__preview { min-height: 280px; }
  html.nl .nl-rv-view { margin-left: 0; }
}

/* ── Inbox in the redesign layout ── */
html.nl .ibx { max-width: 1340px; margin: 0 auto; }
html.nl .ibx-head { margin-bottom: 18px !important; align-items: flex-end; }
html.nl .ibx-title { font: 400 28px/1.1 var(--nl-display) !important; letter-spacing: -0.02em !important; color: var(--nl-fg) !important; }
html.nl .ibx-sync { font: 400 13.5px var(--nl-body) !important; color: var(--nl-fg2) !important; margin-top: 6px !important; }
html.nl .ibx-head-actions { gap: 8px !important; }
html.nl #inbox-settings-btn { display: none !important; }
html.nl .nl-ibx-ai { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-ibx-ai .nl-seg button { height: 30px; padding: 0 12px; }
html.nl .ibx-btn { min-height: 36px; border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; }
html.nl .ibx-btn:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }
html.nl .ibx-primary { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border-color: transparent !important; font-weight: 600 !important; }
html.nl .ibx-primary:hover { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; filter: brightness(1.06); }
html.nl .ibx-done-btn { color: var(--nl-ok) !important; border-color: color-mix(in srgb, var(--nl-ok) 40%, transparent) !important; }
html.nl .ibx-icon-btn { border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg2) !important; }
html.nl .ibx-icon-btn:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }
html.nl .ibx-panes { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important; border: 1px solid var(--nl-line) !important; border-radius: 12px !important; background: var(--nl-surface) !important; min-height: 560px !important; }
html.nl .ibx-list { border-right: 1px solid var(--nl-line) !important; }
html.nl .ibx-tabs { display: flex !important; margin: 12px 12px 8px !important; padding: 3px !important; gap: 2px !important; border-radius: 9px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); }
html.nl .ibx-tab { flex: 1 1 auto !important; min-height: 28px !important; border-radius: 6px !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; background: transparent !important; }
html.nl .ibx-tab.active { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .ibx-tab b, html.nl .ibx-tab.active b { color: var(--nl-fg3) !important; font: 400 10.5px var(--nl-mono) !important; margin-left: 4px; }
html.nl .ibx-tools { padding: 0 12px 10px !important; gap: 6px !important; }
html.nl .ibx-tools input, html.nl .ibx-tools select { min-height: 32px !important; border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg2) !important; font: 400 12.5px var(--nl-body) !important; }
html.nl .ibx-rows { border-top: 1px solid var(--nl-line) !important; }
html.nl .ibx-row { padding: 12px 30px 12px 14px !important; border-bottom: 1px solid var(--nl-line) !important; }
html.nl .ibx-row:hover { background: var(--nl-s2) !important; }
html.nl .ibx-row[aria-current="true"] { background: var(--nl-s3) !important; }
html.nl .ibx-av { width: 30px !important; height: 30px !important; background: var(--nl-s4) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg2) !important; font: 500 10px var(--nl-mono) !important; }
html.nl .ibx-name { font: 500 13px var(--nl-body) !important; color: var(--nl-fg) !important; }
html.nl .ibx-name.is-unread { font-weight: 600 !important; }
html.nl .ibx-row-top .ibx-tag[title] { order: -1; flex: 0 0 6px; width: 6px; height: 6px; padding: 0 !important; border: 0 !important; border-radius: 3px !important; font-size: 0 !important; background: var(--nl-fg3); }
html.nl .ibx-row-top .ibx-tag[title="Instagram"] { background: var(--nl-ig); }
html.nl .ibx-row-top .ibx-tag[title="Facebook"] { background: var(--nl-fb); }
html.nl .ibx-row-top .ibx-tag[title="TikTok"] { background: var(--nl-tt); }
html.nl .ibx-row-top .ibx-tag:not([title]) { border: 0 !important; padding: 0 !important; color: var(--nl-fg3) !important; font: 400 11px var(--nl-body) !important; letter-spacing: 0 !important; }
html.nl .ibx-time { font: 400 10.5px var(--nl-mono) !important; color: var(--nl-fg3) !important; }
html.nl .ibx-preview { font: 400 12.5px var(--nl-body) !important; color: var(--nl-fg2) !important; }
html.nl .ibx-wait { color: var(--nl-warn) !important; font-weight: 500 !important; }
html.nl .ibx-donemark { color: var(--nl-ok) !important; font-weight: 500 !important; }
html.nl .ibx-dot { background: var(--nl-warn) !important; width: 7px !important; height: 7px !important; top: 16px !important; }
html.nl .ibx-foot { border-top: 1px solid var(--nl-line) !important; color: var(--nl-fg3) !important; font-size: 11.5px !important; }
html.nl .ibx-link { color: var(--nl-fg2) !important; font: 500 12px var(--nl-body) !important; }
html.nl .ibx-link:hover { color: var(--nl-fg) !important; }
html.nl .ibx-thread-head { padding: 14px 16px !important; border-bottom: 1px solid var(--nl-line) !important; }
html.nl .ibx-thread-name { font: 500 14px var(--nl-body) !important; color: var(--nl-fg) !important; }
html.nl .ibx-thread-sub { font: 400 12px var(--nl-body) !important; color: var(--nl-fg3) !important; }
html.nl .ibx-context { margin: 14px 16px 0 !important; background: var(--nl-s2) !important; border: 1px solid var(--nl-line); color: var(--nl-fg3) !important; font-size: 12.5px !important; }
html.nl .ibx-context span { color: var(--nl-fg2) !important; }
html.nl .ibx-msgs { padding: 16px !important; }
html.nl .ibx-msg-meta { color: var(--nl-fg3) !important; font-size: 11px !important; }
html.nl .ibx-bubble { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 10px !important; color: var(--nl-fg) !important; font: 400 13px/1.5 var(--nl-body) !important; }
html.nl .ibx-msg.me .ibx-bubble { background: var(--nl-s3) !important; border-color: var(--nl-line-strong) !important; }
html.nl .ibx-window { border-color: color-mix(in srgb, var(--nl-warn) 35%, transparent) !important; background: color-mix(in srgb, var(--nl-warn) 8%, transparent) !important; color: var(--nl-fg2) !important; }
html.nl .ibx-window a { color: var(--nl-warn) !important; }
html.nl .ibx-compose { border-top: 1px solid var(--nl-line) !important; padding: 12px 16px 14px !important; }
html.nl .ibx-chip { min-height: 30px !important; border-radius: 7px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg2) !important; font: 400 12px var(--nl-body) !important; }
html.nl .ibx-chip:hover { color: var(--nl-fg) !important; }
html.nl .ibx-compose textarea { min-height: 64px !important; border-radius: 9px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg) !important; font: 400 13px/1.5 var(--nl-body) !important; }
html.nl .ibx-compose textarea:focus { border-color: var(--nl-fg4) !important; }
html.nl .ibx-compose-actions .ibx-link { text-decoration: none !important; height: 36px; padding: 0 12px !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 8px; }
html.nl .ibx-empty { color: var(--nl-fg3) !important; }
html.nl .ibx-empty strong { color: var(--nl-fg) !important; font: 500 15px var(--nl-display) !important; }
html.nl .ibx-tip { color: var(--nl-fg3) !important; font-size: 12px !important; }
html.nl .inbox-hidden-badge { background: color-mix(in srgb, var(--nl-bad) 12%, transparent) !important; color: var(--nl-bad) !important; }

/* ── Analytics in the redesign layout (analytics-cockpit.js, html.nl branch) ── */
html.nl .nl-an { max-width: 1340px; margin: 0 auto; }
html.nl .nl-an-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
html.nl .nl-an-sub { margin: 6px 0 0; font: 400 13.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-an-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.nl .nl-an-tools .grow-updated { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); margin-right: 4px; }
html.nl .nl-an-tools .nl-btn { height: 36px; }
html.nl .nl-an-tools .nl-btn--icon { width: 36px; }
html.nl .nl-an-tools .nl-btn[aria-pressed="true"] { background: var(--nl-s3); color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-an .nl-seg .grow-pill { height: 30px !important; min-width: 0; padding: 0 12px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; box-shadow: none !important; }
html.nl .nl-an .nl-seg .grow-pill.active { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-an-body { display: flex; flex-direction: column; gap: 12px; }
html.nl .nl-an-lens { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
html.nl .nl-an-lens .nl-seg button { height: 30px; padding: 0 12px; color: var(--nl-fg3); }
html.nl .nl-an-lens .nl-seg button.is-on { background: var(--nl-s4); color: var(--nl-fg); }
html.nl .nl-an-live { display: flex; flex-wrap: wrap; gap: 12px; }
html.nl .nl-an-src { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-an-src i { width: 6px; height: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--nl-fg4); }
html.nl .nl-an-src--connected { color: var(--nl-fg2); }
html.nl .nl-an-src--connected i { background: var(--nl-ok); box-shadow: none; }
html.nl .nl-an-src--thin i { background: var(--nl-warn); box-shadow: none; }
html.nl .nl-an-card { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 16px; min-width: 0; }
html.nl .nl-an-card__t { font: 500 12.5px var(--nl-body); color: var(--nl-fg2); margin: 0 0 14px; }
html.nl .nl-an-plain { padding: 0; overflow: hidden; }
html.nl .nl-an-plain > div { padding: 24px 24px !important; }
html.nl .nl-an-main { display: flex; flex-direction: column; gap: 12px; }
html.nl .nl-an-verdict { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 16px 18px; font: 400 17px/1.5 var(--nl-display); letter-spacing: -0.01em; }
html.nl .nl-an-verdict b { font-weight: 500; color: var(--nl-fg); }
html.nl .nl-an-verdict span { color: var(--nl-fg3); }
html.nl .nl-an-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
html.nl .nl-an-kpi { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-an-kpi span { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-an-kpi b { font: 400 28px/1.1 var(--nl-display) !important; letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .nl-an-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 12px; align-items: start; }
html.nl .nl-an-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html.nl .nl-an-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; border-bottom: 1px solid var(--nl-line); padding-bottom: 2px; }
html.nl .nl-an-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; }
html.nl .nl-an-bar__stack { display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; }
html.nl .nl-an-bar__stack i { display: block; min-height: 1px; }
html.nl .nl-an-bar > span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font: 400 9.5px var(--nl-mono); color: var(--nl-fg4); }
html.nl .nl-an-seg--ig { background: color-mix(in srgb, var(--nl-ig) 70%, var(--nl-surface)); }
html.nl .nl-an-seg--fb { background: color-mix(in srgb, var(--nl-fb) 70%, var(--nl-surface)); }
html.nl .nl-an-legend { display: flex; gap: 14px; margin-top: 26px; font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-an-legend span { display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-an-legend i { width: 7px; height: 7px; border-radius: 4px; }
html.nl .nl-an-moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html.nl .nl-an-move { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--nl-line); background: var(--nl-surface); color: var(--nl-fg); font: inherit; cursor: pointer; min-width: 0; }
html.nl .nl-an-move:hover:not(:disabled) { border-color: var(--nl-line-strong); background: var(--nl-s2); }
html.nl .nl-an-move:disabled { cursor: default; }
html.nl .nl-an-move__l { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-an-move__l::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--nl-fg4); }
html.nl .nl-an-move--ok .nl-an-move__l::before { background: var(--nl-ok); }
html.nl .nl-an-move--bad .nl-an-move__l::before { background: var(--nl-bad); }
html.nl .nl-an-move--info .nl-an-move__l::before { background: var(--nl-info); }
html.nl .nl-an-move b { font: 500 13px var(--nl-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-an-move__m { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-an-move__go { font: 500 11.5px var(--nl-body); color: var(--nl-fg2); margin-top: 2px; }
html.nl .nl-an-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.nl .nl-an-mini { padding: 12px; }
html.nl .nl-an-table { padding: 0; overflow: hidden; }
html.nl .nl-an-table__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--nl-line); font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-an-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 56px 74px; gap: 8px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--nl-line); font: 400 13px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-an-row:last-child { border-bottom: 0; }
html.nl .nl-an-row[data-permalink]:not([data-permalink=""]) { cursor: pointer; }
html.nl .nl-an-row[data-permalink]:not([data-permalink=""]):hover { background: var(--nl-s2); }
html.nl .nl-an-row--head { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); padding-top: 9px; padding-bottom: 9px; }
html.nl .nl-an-row__t { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-an-row__t em { font: normal 400 11px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-an-num { text-align: right; font-family: var(--nl-mono); font-size: 12px; color: var(--nl-fg2); }
html.nl .nl-an-call { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--nl-line-strong); font: normal 500 11px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-an-call::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: var(--nl-fg4); }
html.nl .nl-an-call--ok::before { background: var(--nl-ok); }
html.nl .nl-an-call--bad::before { background: var(--nl-bad); }
html.nl .nl-an-call--info::before { background: var(--nl-info); }
html.nl .nl-an-none { margin: 0; padding: 18px 16px; font: 400 12.5px var(--nl-body); color: var(--nl-fg3); }
@media (max-width: 1000px) {
  html.nl .nl-an-two { grid-template-columns: 1fr; }
  html.nl .nl-an-moves, html.nl .nl-an-charts { grid-template-columns: 1fr; }
}
html.nl .nl-an-row--head .nl-an-num { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }

/* ── Coach in the redesign layout ── */
html.nl .chat-page.nl-cp { max-width: 1340px; width: 100%; margin: 0 auto; }
html.nl .nl-cp-head { position: relative; flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
html.nl .nl-cp-sub { margin: 6px 0 0; font: 400 13.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-cp-tools { display: flex; gap: 8px; align-items: center; }
html.nl .nl-cp-tools .nl-btn { height: 34px; gap: 8px; }
html.nl .nl-cp .chat-free-pill { margin-top: 8px; }
html.nl .nl-cp .chat-workspace-rail { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; max-height: 420px; overflow-y: auto; border: 1px solid var(--nl-line-strong) !important; border-radius: 12px; background: var(--nl-surface) !important; box-shadow: 0 18px 40px rgba(0,0,0,0.35); padding: 10px !important; }
html.nl .nl-cp.nl-cp--past .chat-workspace-rail { display: flex; }
html.nl .nl-cp .chat-workspace-rail__title { font: 500 12px var(--nl-body) !important; color: var(--nl-fg3) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-cp .chat-workspace-rail__btn { border: 1px solid var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg2) !important; font: 500 12px var(--nl-body) !important; border-radius: 7px !important; padding: 4px 9px !important; }
html.nl .nl-cp .chat-ws-project__btn { color: var(--nl-fg) !important; font: 500 13px var(--nl-body) !important; }
html.nl .nl-cp .chat-ws-project__btn:hover, html.nl .nl-cp .chat-ws-project.is-open > .chat-ws-project__btn { background: var(--nl-s2) !important; }
html.nl .nl-cp .chat-ws-thread { color: var(--nl-fg2) !important; font: 400 12.5px var(--nl-body) !important; }
html.nl .nl-cp .chat-ws-thread.is-active { background: var(--nl-s3) !important; color: var(--nl-fg) !important; }
html.nl .nl-cp .chat-workspace { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); overflow: hidden; }
html.nl .nl-cp .chat-workspace-main { padding: 0 !important; }
html.nl .nl-cp .chat-page-header { display: none !important; }
html.nl .nl-cp .chat-project-strip { margin: 0 !important; padding: 9px 16px !important; border: 0 !important; border-bottom: 1px solid var(--nl-line) !important; border-radius: 0 !important; background: transparent !important; }
html.nl .nl-cp .chat-project-strip__label { font: 400 12px var(--nl-body) !important; color: var(--nl-fg3) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-cp .chat-project-strip__name { font: 500 12.5px var(--nl-body) !important; color: var(--nl-fg) !important; }
html.nl .nl-cp .chat-project-strip__brief { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg) !important; }
html.nl .nl-cp .chat-container { height: auto !important; flex: 1 1 auto; min-height: 0 !important; display: flex; flex-direction: column; }
html.nl .nl-cp .chat-container > .chat-suggestions { flex: 0 0 auto; margin: 0 !important; padding: 12px 16px !important; border-bottom: 1px solid var(--nl-line); flex-wrap: wrap !important; gap: 6px !important; }
html.nl .nl-cp .chat-chip { height: 30px; padding: 0 11px !important; border-radius: 7px !important; border: 1px solid var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg2) !important; font: 400 12.5px var(--nl-body) !important; box-shadow: none !important; }
html.nl .nl-cp .chat-chip:hover { color: var(--nl-fg) !important; background: var(--nl-s2) !important; }
html.nl .nl-cp .chat-messages { padding: 18px 16px !important; gap: 12px !important; }
html.nl .nl-cp .chat-avatar { display: none !important; }
html.nl .nl-cp .chat-msg { max-width: min(640px, 78%) !important; border-radius: 10px !important; font: 400 13.5px/1.55 var(--nl-body) !important; box-shadow: none !important; }
html.nl .nl-cp .chat-msg--ai { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg2) !important; padding: 12px 14px !important; }
html.nl .nl-cp .chat-msg--ai::before { content: 'Coach'; display: block; margin: 0 0 6px; font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-cp .chat-msg--ai strong, html.nl .nl-cp .chat-msg--ai b { color: var(--nl-fg) !important; font-weight: 500; }
html.nl .nl-cp .chat-msg--user { background: var(--nl-s3) !important; border: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg) !important; padding: 9px 12px !important; }
html.nl .nl-cp .chat-input-area { border-top: 1px solid var(--nl-line) !important; padding: 12px 16px 14px !important; background: transparent !important; }
html.nl .nl-cp .chat-input-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
html.nl .nl-cp #chat-attach-toolbar { margin: 0 !important; gap: 6px !important; flex: 0 0 auto; }
html.nl .nl-cp .nl-cp-attach { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--nl-line-strong); background: transparent; color: var(--nl-fg2); font: 500 12px var(--nl-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
html.nl .nl-cp .nl-cp-attach:hover { color: var(--nl-fg); background: var(--nl-s2); }
html.nl .nl-cp .chat-input { flex: 1 1 240px; min-height: 36px; border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-s2) !important; color: var(--nl-fg) !important; font: 400 13.5px var(--nl-body) !important; padding: 8px 12px !important; box-shadow: none !important; }
html.nl .nl-cp .chat-send-btn { width: 36px !important; height: 36px !important; border-radius: 8px !important; background: var(--nl-signal) !important; color: var(--nl-signal-ink) !important; box-shadow: none !important; border: 0 !important; }
html.nl .nl-cp #chat-attachment-chips:empty { display: none !important; }
html.nl .dash-content.dash-content--chat { padding-top: 24px !important; }

/* ── Settings and Brand in the redesign layout ── */
html.nl .nl-set { max-width: 1100px; margin: 0 auto; }
html.nl .nl-set-head { margin: 0 0 16px; }
html.nl .nl-set-sub { margin: 6px 0 0; font: 400 13.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-set .settings-tabs.nl-seg { display: inline-flex !important; margin: 0 0 16px !important; border-bottom: 1px solid var(--nl-line-strong) !important; padding: 3px !important; gap: 2px !important; }
html.nl .nl-set .settings-tab { height: 30px !important; padding: 0 12px !important; margin: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; box-shadow: none !important; }
html.nl .nl-set .settings-tab::after { display: none !important; }
html.nl .nl-set .settings-tab.active, html.nl .nl-set .settings-tab[aria-selected="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-set:not(.nl-set--brand) .settings-tab[data-settings-tab="brand"] { display: none !important; }
html.nl .nl-set.nl-set--brand .settings-tabs { display: none !important; }
html.nl .nl-set .settings-panel > div[style], html.nl .nl-set .settings-panel > section > div[style*="border-radius"] {
  background: var(--nl-surface) !important; border: 1px solid var(--nl-line) !important; border-radius: 12px !important; box-shadow: none !important;
}
html.nl .nl-set .settings-panel > div[style] > div:first-child[style*="border-bottom"] { background: transparent !important; border-bottom: 1px solid var(--nl-line) !important; padding: 12px 16px !important; }
html.nl .nl-set .settings-panel h3 { font: 500 14px var(--nl-display) !important; color: var(--nl-fg) !important; letter-spacing: 0 !important; }
html.nl .nl-set .settings-panel > div[style] > div:nth-child(2)[style*="padding"] { padding: 16px !important; }
html.nl .nl-set .settings-panel button[style*="linear-gradient"] { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border: 0 !important; box-shadow: none !important; }
html.nl .nl-set .settings-panel input[style], html.nl .nl-set .settings-panel select[style], html.nl .nl-set .settings-panel textarea[style] { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 8px !important; color: var(--nl-fg) !important; }
html.nl .nl-set [data-settings-panel="connections"] { border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); overflow: hidden; }
html.nl .nl-set [data-settings-panel="connections"][hidden] { display: none; }
html.nl .nl-set .nl-conn-card { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--nl-line) !important; border-radius: 0 !important; background: transparent !important; }
html.nl .nl-set .nl-conn-card:last-of-type { border-bottom: 0 !important; }
html.nl .nl-set .nl-conn-card > div:first-child { padding: 12px 16px !important; border-bottom: 0 !important; gap: 12px !important; }
html.nl .nl-set .nl-conn-card.is-open > div:first-child { border-bottom: 1px solid var(--nl-line) !important; }
html.nl .nl-set .nl-conn-card:not(.is-open) > :not(:first-child) { display: none !important; }
html.nl .nl-set .nl-conn-card > div:first-child > div[style*="margin-left:auto"] { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--nl-line-strong); font: 500 11px var(--nl-body) !important; }
html.nl .nl-set .nl-conn-card__go { flex: 0 0 auto; min-width: 74px; }
html.nl .nl-set [data-settings-panel="connections"] > p { padding: 12px 16px; margin: 0 !important; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-set > p:last-child { color: var(--nl-fg3) !important; }
html.nl .nl-set [style*="text-transform:uppercase"] { text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-set [data-settings-panel="billing"] > div:first-child h3 { font: 400 24px var(--nl-display) !important; letter-spacing: -0.02em !important; }
html.nl .nl-set #settings-brand-panel h2 { font: 400 22px var(--nl-display) !important; letter-spacing: -0.02em !important; color: var(--nl-fg) !important; }

/* ── Create header (all modes): "Create" title with the mode segment and Video Studio on the right ── */
html.nl .create-segments:not([hidden]) { display: flex !important; align-items: center; flex-wrap: wrap; row-gap: 10px; padding: 22px 24px 2px !important; border-bottom: 0 !important; max-width: 1340px; width: 100%; margin: 0 auto; box-sizing: border-box; gap: 0 !important; background: transparent !important; }
html.nl .create-segments::before { content: 'Create'; margin-right: auto; padding-right: 16px; font: 400 28px/1.1 var(--nl-display); letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .create-seg:not(.create-seg--studio) { height: 38px !important; padding: 0 14px !important; border-radius: 0 !important; background: var(--nl-s2) !important; border-top: 1px solid var(--nl-line-strong) !important; border-bottom: 1px solid var(--nl-line-strong) !important; color: var(--nl-fg3) !important; font: 500 13px var(--nl-body) !important; box-shadow: inset 0 0 0 3px var(--nl-s2) !important; }
html.nl .create-seg:not(.create-seg--studio)::after { display: none !important; }
html.nl .create-seg:first-child { border-left: 1px solid var(--nl-line-strong) !important; border-radius: 9px 0 0 9px !important; }
html.nl .create-seg:nth-last-child(2) { border-right: 1px solid var(--nl-line-strong) !important; border-radius: 0 9px 9px 0 !important; }
html.nl .create-seg:not(.create-seg--studio).active, html.nl .create-seg:not(.create-seg--studio)[aria-selected="true"] { background: var(--nl-s4) !important; color: var(--nl-fg) !important; border-radius: 9px !important; }
html.nl .create-seg:first-child.active { border-radius: 9px !important; }
html.nl .create-seg--studio { margin-left: 8px !important; height: 38px !important; padding: 0 12px !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 8px !important; background: transparent !important; color: var(--nl-fg) !important; font: 500 13px var(--nl-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header h2 { display: none !important; }
html.nl .anim-shell.nl-anim-on { padding-top: 14px !important; }

/* Video (Create) polish: card columns, plain-case labels */
html.nl .atelier-shell [style*="text-transform:uppercase"], html.nl .atelier-shell [class*="eyebrow"], html.nl .atelier-inspector__title { text-transform: none !important; letter-spacing: 0 !important; }

/* Ads polish */
html.nl #dash-content > div > h2:first-child, html.nl .ads-head h2 { font: 400 28px/1.1 var(--nl-display) !important; letter-spacing: -0.02em !important; }

/* ── Create → Video: the same three-card layout as Post ── */
html.nl .create-seg::before { display: none !important; }
html.nl #dash-content:has(> .atelier-shell:not(.anim-shell)) { padding: 0 !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) { gap: 14px; padding: 14px 24px 24px !important; box-sizing: border-box; max-width: 1340px; margin: 0 auto; width: 100%; height: calc(100vh - 140px) !important; background: transparent !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-essentials,
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-stage,
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-inspector { border: 1px solid var(--nl-line) !important; border-radius: 12px; background: var(--nl-surface) !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-essentials { padding: 16px !important; gap: 14px !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-essentials > div:first-child > div:first-child { font: 400 22px/1.15 var(--nl-display) !important; letter-spacing: -0.02em !important; color: var(--nl-fg) !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-stage > div:first-child { border-bottom: 1px solid var(--nl-line) !important; color: var(--nl-fg3) !important; font: 500 11px var(--nl-mono) !important; letter-spacing: 0.04em !important; text-transform: none !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-inspector > div:first-child { font: 500 14px var(--nl-display) !important; color: var(--nl-fg) !important; border-bottom: 1px solid var(--nl-line) !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) .dash-card { background: var(--nl-s2) !important; border: 1px solid var(--nl-line) !important; border-radius: 10px !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) .dash-card:hover { border-color: var(--nl-line-strong) !important; }
html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) textarea, html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) select, html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) input[type="text"] { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 9px !important; color: var(--nl-fg) !important; }
html.nl #dash-content.dash-content--animate { padding: 0 !important; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header .nl-steps { order: 0 !important; flex: 1 1 auto !important; margin: 0 !important; }
@media (max-width: 1100px) {
  html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) { flex-wrap: wrap; height: auto !important; overflow: visible !important; }
  html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-essentials, html.nl #dash-content > .atelier-shell:not(.anim-shell):not(.nl-post) > .atelier-inspector { width: 100% !important; }
}
html.nl .anim-shell.nl-anim-on { width: 100% !important; box-sizing: border-box !important; }

/* ── Analytics: the daily chart (validated categorical steps: Instagram magenta, Facebook blue) ── */
html.nl { --nl-dc-instagram: #d55181; --nl-dc-facebook: #3987e5; }
html.nl[data-nl-theme="day"] { --nl-dc-instagram: #e87ba4; --nl-dc-facebook: #2a78d6; }
html.nl .nl-an-left .nl-an-moves { grid-template-columns: 1fr; }
html.nl .nl-dc { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-dc__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
html.nl .nl-dc__title { margin: 0; font: 500 15px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-dc__sub { margin: 3px 0 0; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-dc__head .nl-seg button[aria-pressed="true"] { background: var(--nl-s4); color: var(--nl-fg); }
html.nl .nl-dc__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--nl-line); border-radius: 10px; overflow: hidden; }
html.nl .nl-dc__stats > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-right: 1px solid var(--nl-line); min-width: 0; }
html.nl .nl-dc__stats > div:last-child { border-right: 0; }
html.nl .nl-dc__stats span { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-dc__stats b { font: 500 22px/1.15 var(--nl-display); color: var(--nl-fg); letter-spacing: -0.01em; white-space: nowrap; }
html.nl .nl-dc__stats em { font: normal 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-dc__stats em.is-up { color: var(--nl-ok); }
html.nl .nl-dc__stats em.is-down { color: var(--nl-bad); }
html.nl .nl-dc__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 12px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__legend span { display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-dc__legend b { font-weight: 500; color: var(--nl-fg); }
html.nl .nl-dc__legend em { font-style: normal; color: var(--nl-fg3); }
html.nl .nl-dc__key { width: 10px; height: 10px; border-radius: 2px; background: var(--nl-fg4); }
html.nl .nl-dc__key--instagram { background: var(--nl-dc-instagram); }
html.nl .nl-dc__key--facebook { background: var(--nl-dc-facebook); }
html.nl .nl-dc__key--avg { height: 0; border-top: 1.5px solid var(--nl-fg2); border-radius: 0; width: 14px; background: transparent; }
html.nl .nl-dc__chart { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 236px auto; column-gap: 8px; }
html.nl .nl-dc__y { position: relative; grid-row: 1; height: calc(100% - 16px); }
html.nl .nl-dc__y span { position: absolute; right: 0; transform: translateY(50%); font: 400 10.5px var(--nl-mono); color: var(--nl-fg3); font-variant-numeric: tabular-nums; }
html.nl .nl-dc__plot { position: relative; grid-row: 1; grid-column: 2; }
html.nl .nl-dc__area { position: absolute; left: 0; right: 0; top: 0; bottom: 16px; pointer-events: none; }
html.nl .nl-dc__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--nl-line); }
html.nl .nl-dc__grid:first-child { border-top-color: var(--nl-line-strong); }
html.nl .nl-dc__avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--nl-fg2); opacity: 0.75; z-index: 2; }
html.nl .nl-dc__avg span { position: absolute; right: 0; bottom: 3px; padding: 1px 6px; border-radius: 4px; background: var(--nl-surface); font: 500 10.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); z-index: 1; }
html.nl .nl-dc__col { position: relative; display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; background: transparent; cursor: default; min-width: 0; }
html.nl .nl-dc__col:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: -2px; border-radius: 4px; }
html.nl .nl-dc__col.is-on { background: color-mix(in srgb, var(--nl-fg) 5%, transparent); border-radius: 4px; }
html.nl .nl-dc__bar { position: relative; flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; }
html.nl .nl-dc__stack { width: min(24px, 72%); display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
html.nl .nl-dc__seg { display: block; min-height: 1px; background: var(--nl-fg4); }
html.nl .nl-dc__seg--instagram { background: var(--nl-dc-instagram); }
html.nl .nl-dc__seg--facebook { background: var(--nl-dc-facebook); }
html.nl .nl-dc__col.is-on .nl-dc__stack { filter: brightness(1.15); }
html.nl .nl-dc__peak { position: absolute; left: 50%; transform: translateX(-50%); font: 500 11px var(--nl-body); color: var(--nl-fg); white-space: nowrap; pointer-events: none; }
html.nl .nl-dc__mk { flex: 0 0 16px; display: flex; align-items: center; justify-content: center; }
html.nl .nl-dc__mk i { width: 6px; height: 6px; border-radius: 3px; background: var(--nl-fg2); box-shadow: 0 0 0 2px var(--nl-surface); }
html.nl .nl-dc__x { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 4px; }
html.nl .nl-dc__x span { font: 400 10.5px var(--nl-mono); color: var(--nl-fg3); white-space: nowrap; overflow: visible; text-align: left; }
html.nl .nl-dc__tip { position: absolute; top: 6px; z-index: 5; min-width: 180px; max-width: 280px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); box-shadow: 0 12px 30px rgba(0,0,0,0.28); pointer-events: none; display: flex; flex-direction: column; gap: 5px; }
html.nl .nl-dc__tip[hidden] { display: none; }
html.nl .nl-dc__tip-h { font: 500 12.5px var(--nl-body); color: var(--nl-fg); margin-bottom: 2px; }
html.nl .nl-dc__tip-r { display: flex; align-items: center; gap: 8px; font: 400 12px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__tip-r b { font-weight: 600; color: var(--nl-fg); font-variant-numeric: tabular-nums; min-width: 52px; }
html.nl .nl-dc__tip-k { width: 12px; height: 0; border-top: 2px solid transparent; }
html.nl .nl-dc__tip-k--instagram { border-top-color: var(--nl-dc-instagram); }
html.nl .nl-dc__tip-k--facebook { border-top-color: var(--nl-dc-facebook); }
html.nl .nl-dc__tip-vs { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-dc__tip-posts { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--nl-line); font: 400 11.5px/1.4 var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__tip-pt { font: 500 11.5px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-dc__finds { margin: 0; padding: 12px 14px 12px 30px; border-radius: 10px; background: var(--nl-s2); border: 1px solid var(--nl-line); display: flex; flex-direction: column; gap: 6px; font: 400 13px/1.5 var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__finds li::marker { color: var(--nl-fg4); }
html.nl .nl-dc__table summary { cursor: pointer; font: 500 12.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__table summary:hover { color: var(--nl-fg); }
html.nl .nl-dc__tablewrap { margin-top: 10px; max-height: 320px; overflow: auto; border: 1px solid var(--nl-line); border-radius: 10px; }
html.nl .nl-dc__table table { width: 100%; border-collapse: collapse; font: 400 12.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-dc__table th { position: sticky; top: 0; background: var(--nl-s2); text-align: left; font-weight: 500; color: var(--nl-fg3); padding: 8px 12px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-dc__table td { padding: 7px 12px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-dc__num { text-align: right !important; font-variant-numeric: tabular-nums; color: var(--nl-fg); white-space: nowrap; }
@media (max-width: 700px) {
  html.nl .nl-dc__chart { grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 200px auto; }
  html.nl .nl-dc__stats > div { border-right: 0; border-bottom: 1px solid var(--nl-line); }
}

/* ── Post, minimal canvas (claude-studio arrangePostMinimalNL) ───────────── */
html.nl .nl-p2 [hidden] { display: none !important; }
html.nl .nl-p2 { max-width: 1480px; margin: 0 auto; width: 100%; }
html.nl .nl-p2 > .atelier-stage { position: relative; display: flex !important; flex-direction: column; overflow: hidden !important; border-radius: 16px !important;
  background: radial-gradient(900px 520px at 50% 34%, var(--nl-signal-soft), transparent 62%), var(--nl-surface) !important; }
html.nl[data-nl-theme="day"] .nl-p2 > .atelier-stage { background: radial-gradient(900px 520px at 50% 34%, rgba(91,71,214,0.06), transparent 62%), var(--nl-surface) !important; }
html.nl .nl-p2 > .atelier-inspector { width: 340px !important; min-width: 300px !important; border-radius: 16px !important; }

/* Toolbar */
html.nl .nl-p2-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--nl-line); flex: none; }
html.nl .nl-p2-sp { flex: 1 1 auto; }
html.nl .nl-p2-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: transparent; color: var(--nl-fg2); font: 500 13px var(--nl-body); cursor: pointer; width: auto; white-space: nowrap; }
html.nl .nl-p2-chip:hover, html.nl .nl-p2-chip[aria-expanded="true"] { color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-p2-chip--icon { width: 32px; padding: 0; justify-content: center; }
html.nl .nl-p2-more { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
html.nl .nl-p2-more:empty { display: none; }
html.nl .nl-p2-moreref { position: relative; display: inline-flex; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); }
html.nl .nl-p2-moreref img { width: 100%; height: 100%; object-fit: cover; }
html.nl .nl-p2-moreref button { position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; padding: 0; border: none; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; line-height: 16px; cursor: pointer; }
html.nl .nl-p2-moreref .cs-more-logo { top: auto; right: auto; left: 1px; bottom: 1px; width: auto; height: 13px; padding: 0 3px; border-radius: 4px; font-size: 9px; line-height: 13px; }
html.nl .nl-p2-moreref.is-logo { border-color: var(--nl-accent, #7C3AED); }
html.nl .nl-p2-moreref.is-logo .cs-more-logo { background: var(--nl-accent, #7C3AED); }
@media (max-width: 640px) { html.nl .nl-p2-moreref { width: 38px; height: 38px; } }
html.nl .nl-p2-title { font: 500 14px var(--nl-display); color: var(--nl-fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
html.nl .nl-p2-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--nl-fg2); white-space: nowrap; min-width: 0; }
html.nl .nl-p2-brand span { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
html.nl .nl-p2-brand i { width: 7px; height: 7px; border-radius: 50%; background: var(--nl-ok); flex: none; }
html.nl .nl-p2-ws { display: block !important; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-color: var(--nl-line-strong) !important; background: transparent !important; color: var(--nl-fg2) !important; }
html.nl .nl-p2-ws:empty { display: none !important; }
html.nl .nl-p2-size { display: inline-flex; border: 1px solid var(--nl-line-strong); border-radius: 9px; padding: 2px; gap: 2px; }
html.nl .nl-p2-size button { border: 0; background: transparent; color: var(--nl-fg3); font: 500 12px var(--nl-mono); padding: 6px 10px; border-radius: 7px; cursor: pointer; width: auto; }
html.nl .nl-p2-size button[aria-pressed="true"] { background: var(--nl-s4); color: var(--nl-fg); }

/* Menus */
html.nl .nl-p2-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
html.nl .nl-p2-pop--wide { min-width: 300px; max-width: 380px; }
html.nl .nl-ideas { display: flex; flex-direction: column; max-height: 240px; overflow: auto; }
html.nl .nl-idea { display: flex; align-items: center; gap: 4px; }
html.nl .nl-idea .nl-p2-item { flex: 1 1 auto; min-width: 0; }
html.nl .nl-idea__x { flex: 0 0 auto; border: 0; background: transparent; color: var(--nl-fg3); font: 500 11px var(--nl-body); padding: 6px; cursor: pointer; }
html.nl .nl-stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 8px 8px; }
html.nl .nl-stock button { padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--nl-s3); aspect-ratio: 1; cursor: pointer; }
html.nl .nl-stock img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-p2-menu { position: relative; }
html.nl .nl-p2-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 240px; max-width: 320px; max-height: min(70vh, 560px); overflow: auto; padding: 6px; border: 1px solid var(--nl-line-strong); border-radius: 12px; background: var(--nl-s2); box-shadow: 0 18px 48px rgba(0,0,0,0.35); }
html.nl .nl-p2-pop--right { left: auto; right: 0; }
html.nl .nl-p2-item { display: block; width: 100%; text-align: left; padding: 8px 10px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--nl-fg) !important; font: 500 13px var(--nl-body) !important; cursor: pointer; height: auto !important; opacity: 1 !important; }
html.nl .nl-p2-item:hover { background: var(--nl-s4) !important; }
html.nl .nl-p2-item--danger { color: var(--nl-bad) !important; }
html.nl .nl-p2-pophead { padding: 10px 10px 4px; font: 500 11px var(--nl-body); color: var(--nl-fg3); letter-spacing: 0.04em; }
html.nl .nl-p2-sep { height: 1px; background: var(--nl-line); margin: 6px 4px; }
html.nl .nl-p2-saved { padding: 2px 4px 4px; font-size: 12.5px; color: var(--nl-fg3); }
html.nl .nl-p2-saved * { color: inherit; }
html.nl .nl-p2-saved button, html.nl .nl-p2-saved [role="button"] { border-radius: 8px !important; border-color: var(--nl-line) !important; background: transparent !important; color: var(--nl-fg2) !important; }
html.nl .nl-p2-field { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px 10px; }
html.nl .nl-p2-field label { font: 500 12px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-p2-field select, html.nl .nl-p2-field input { width: 100%; height: 34px; padding: 0 10px !important; border-radius: 8px !important; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-surface) !important; color: var(--nl-fg) !important; font: 400 13px var(--nl-body) !important; box-sizing: border-box; }
html.nl .nl-p2-hint { font-size: 11.5px; color: var(--nl-fg3); line-height: 1.45; }
html.nl .nl-p2-inline { display: flex; gap: 6px; }
html.nl .nl-p2-btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--nl-line-strong); background: var(--nl-s4); color: var(--nl-fg); font: 500 12.5px var(--nl-body); cursor: pointer; width: auto; }

/* Composer */
html.nl .nl-p2-compose { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
html.nl .nl-p2-compose__in { width: min(660px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
html.nl .nl-p2-compose h2 { margin: 0 0 6px; font: 500 34px/1.1 var(--nl-display); letter-spacing: -0.025em; color: var(--nl-fg); }
html.nl .nl-p2-sub { margin: 0 0 24px; font-size: 14px; color: var(--nl-fg3); }
html.nl .nl-p2-box { width: 100%; text-align: left; border: 1px solid var(--nl-line-strong); border-radius: 16px; background: var(--nl-s2); box-shadow: 0 24px 60px rgba(0,0,0,0.28); transition: border-color 0.15s; }
html.nl[data-nl-theme="day"] .nl-p2-box { box-shadow: 0 18px 48px rgba(27,26,23,0.08); }
html.nl .nl-p2-box:focus-within { border-color: var(--nl-fg4); }
html.nl .nl-p2 #cs-brief { display: block; width: 100%; height: auto !important; min-height: 92px !important; max-height: 240px; resize: none !important; border: 0 !important; background: transparent !important; padding: 18px 18px 6px !important; color: var(--nl-fg) !important; font: 400 16px/1.5 var(--nl-body) !important; box-shadow: none !important; outline: none; }
html.nl .nl-p2 #cs-brief::placeholder { color: var(--nl-fg4); }
html.nl .nl-p2-box > .dg-attach, html.nl .nl-p2-box > .mp-ck-btn, html.nl .nl-p2-box > .mr-attach { display: none !important; }
html.nl .nl-p2-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; }
html.nl .nl-p2-ref img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; margin-left: -6px; }
html.nl .nl-p2-ref span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-p2 #cs-generate { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; height: 38px; padding: 0 18px !important; border: 0 !important; border-radius: 10px !important; background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; font: 600 14px var(--nl-body) !important; cursor: pointer; }
html.nl .nl-p2 #cs-generate:disabled { opacity: 0.6; cursor: progress; }
html.nl .nl-p2-ghost { height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--nl-fg2); font: 500 13px var(--nl-body); cursor: pointer; width: auto; }
html.nl .nl-p2-starts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
html.nl .nl-p2-starts button { height: 32px; padding: 0 13px; border: 1px solid var(--nl-line); border-radius: 999px; background: transparent; color: var(--nl-fg2); font: 500 13px var(--nl-body); cursor: pointer; width: auto; }
html.nl .nl-p2-starts button:hover { color: var(--nl-fg); border-color: var(--nl-line-strong); background: var(--nl-s2); }
html.nl .nl-p2-starts--small { justify-content: flex-start; margin: 0; padding: 0 10px 10px; gap: 6px; }
html.nl .nl-p2-starts--small button { height: 28px; font-size: 12px; padding: 0 10px; }
html.nl .nl-p2-drop { margin-top: 22px; font-size: 12.5px; color: var(--nl-fg4); }
html.nl .nl-p2-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nl-fg2) !important; font: 500 13px var(--nl-body) !important; cursor: pointer; width: auto !important; height: auto !important; opacity: 1 !important; }
html.nl .nl-p2-link:hover:not(:disabled) { color: var(--nl-fg) !important; }
html.nl .nl-p2-link:disabled { color: var(--nl-fg4) !important; cursor: default !important; }
html.nl .nl-p2-drop .nl-p2-link { color: var(--nl-fg3) !important; font-size: 12.5px !important; text-decoration: underline; text-underline-offset: 3px; }
html.nl .nl-p2-link--sig { color: var(--nl-signal) !important; }
html.nl .nl-p2--drop::after { content: 'Drop to use this graphic as your post'; position: absolute; inset: 8px; border: 1.5px dashed var(--nl-signal); border-radius: 12px; background: var(--nl-signal-soft); display: flex; align-items: center; justify-content: center; font: 500 15px var(--nl-display); color: var(--nl-fg); z-index: 30; pointer-events: none; }

/* Views */
html.nl .nl-p2--compose .nl-p2-result { display: none !important; }
html.nl .nl-p2--result:not(.nl-p2--editing) .nl-p2-compose { display: none !important; }
html.nl .nl-p2--editing .nl-p2-compose { position: absolute; z-index: 20; inset: 57px 0 0 0; align-items: flex-start; padding-top: 48px; background: color-mix(in srgb, var(--nl-surface) 86%, transparent); backdrop-filter: blur(6px); }
html.nl .nl-p2--editing .nl-p2-drop, html.nl .nl-p2--editing .nl-p2-starts:not(.nl-p2-starts--small) { display: none; }

/* Result: the post beside its caption */
html.nl .nl-p2-result { flex: 1 1 auto; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 36px; align-items: center; padding: 24px 36px; }
html.nl .nl-p2 #cs-preview-wrap { background: transparent !important; padding: 0 !important; min-height: 0 !important; overflow: visible !important; }
html.nl .nl-p2 #cs-original-preview img, html.nl .nl-p2 #cs-scene-preview img { max-height: calc(100vh - 300px) !important; border-radius: 12px !important; border: 0 !important; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
html.nl[data-nl-theme="day"] .nl-p2 #cs-original-preview img { box-shadow: 0 24px 60px rgba(27,26,23,0.14); }
html.nl .nl-p2 #cs-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
html.nl .nl-p2 #cs-loading-msg { color: var(--nl-fg2) !important; }
html.nl .nl-p2-side { display: flex; flex-direction: column; align-self: center; min-width: 0; }
html.nl .nl-p2-caphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
html.nl .nl-p2-caphead h2 { margin: 0; font: 500 12px var(--nl-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nl-fg3); }
html.nl .nl-p2-capbox { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
html.nl .nl-p2 #cs-caption-box { flex: 1 1 100%; width: 100%; min-height: 180px !important; max-height: 340px; padding: 14px !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 12px !important; background: var(--nl-s2) !important; color: var(--nl-fg) !important; font: 400 14px/1.55 var(--nl-body) !important; resize: vertical !important; }
html.nl .nl-p2-capbox > .mp-ck-btn, html.nl .nl-p2-capbox > .mr-attach, html.nl .nl-p2-capbox > .dg-attach { order: 3; margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; height: auto !important; }
html.nl .nl-p2-capbox > .mp-ck-btn:hover, html.nl .nl-p2-capbox > .mr-attach:hover, html.nl .nl-p2-capbox > .dg-attach:hover { color: var(--nl-fg) !important; }
html.nl .nl-p2-capbox > :not(textarea):not(button) { flex: 1 1 100%; order: 4; }
html.nl .nl-p2-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--nl-fg3); font-variant-numeric: tabular-nums; }
html.nl .nl-p2-over { color: var(--nl-bad); }
html.nl .nl-p2-plats { display: flex; gap: 8px; margin-top: 18px; }
html.nl .nl-p2-plat { height: 32px; padding: 0 12px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: transparent; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); cursor: pointer; width: auto; }
html.nl .nl-p2-plat[aria-pressed="true"] { color: var(--nl-fg); border-color: var(--nl-fg4); background: var(--nl-s2); }
html.nl .nl-p2-plat[aria-pressed="true"]::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--nl-ok); margin-right: 7px; vertical-align: 1px; }
html.nl .nl-p2-cta { display: flex; gap: 8px; margin-top: 18px; }
html.nl .nl-p2-primary { flex: 1 1 auto; height: 44px !important; border: 0 !important; border-radius: 11px !important; background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; font: 600 14.5px var(--nl-body) !important; cursor: pointer; padding: 0 16px !important; }
html.nl .nl-p2-primary:disabled { opacity: 0.4; cursor: not-allowed; }
html.nl .nl-p2-secondary { height: 44px !important; padding: 0 16px !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 11px !important; background: transparent !important; color: var(--nl-fg2) !important; font: 500 13.5px var(--nl-body) !important; cursor: pointer; width: auto !important; }
html.nl .nl-p2-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
html.nl .nl-p2-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }

/* Coach */
html.nl .nl-p2 .nl-coach__head { display: flex !important; align-items: center; gap: 8px; color: var(--nl-fg) !important; font: 500 15px var(--nl-display) !important; padding: 14px 16px !important; text-transform: none !important; letter-spacing: 0 !important; }
html.nl .nl-p2 .nl-coach__head svg { color: var(--nl-signal); }
html.nl .nl-p2-coachin { display: flex !important; align-items: flex-end; gap: 8px !important; border: 1px solid var(--nl-line-strong); border-radius: 12px; padding: 8px; background: var(--nl-s2); }
html.nl .nl-p2-coachin:focus-within { border-color: var(--nl-fg4); }
html.nl .nl-p2-coachin #cs-coach-input { flex: 1 1 auto; order: 2; border: 0 !important; background: transparent !important; padding: 7px 4px !important; min-height: 36px !important; box-shadow: none !important; font-size: 13px !important; }
html.nl .nl-p2-coachin #cs-coach-style { order: 1; flex: none !important; width: 32px; height: 32px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px !important; }
html.nl .nl-p2-coachin #cs-coach-send { order: 3; flex: none !important; width: 32px; height: 32px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px !important; }

@media (max-width: 1100px) {
  html.nl .nl-p2 > .atelier-stage { min-height: 78vh; overflow: visible !important; }
  html.nl .nl-p2-result { overflow: visible; }
  html.nl .nl-p2 > .atelier-inspector { width: 100% !important; min-height: 420px; }
  html.nl .nl-p2-result { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
  html.nl .nl-p2 #cs-original-preview img { max-height: 62vh !important; }
}
@media (max-width: 640px) {
  html.nl .nl-p2-bar { flex-wrap: wrap; }
  html.nl .nl-p2-title { order: 9; flex-basis: 100%; max-width: none; }
  html.nl .nl-p2-brand { display: none; }
  html.nl .nl-p2-compose h2 { font-size: 26px; }
  html.nl .nl-p2-row { flex-wrap: wrap; }
  html.nl .nl-p2-row .nl-p2-sp { display: none; }
  html.nl .nl-p2 #cs-generate { flex: 1 1 100%; justify-content: center; }
}
html.nl .nl-p2 .nl-p2-pop #cs-new-post, html.nl .nl-p2 .nl-p2-pop #cs-save-later, html.nl .nl-p2 .nl-p2-pop #cs-archive-design, html.nl .nl-p2 .nl-p2-pop #cs-delete-design, html.nl .nl-p2 .nl-p2-pop #cs-save-template {
  display: block; width: 100%; height: auto !important; text-align: left; padding: 8px 10px !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--nl-fg) !important; font: 500 13px var(--nl-body) !important; }
html.nl .nl-p2 .nl-p2-pop #cs-delete-design { color: var(--nl-bad) !important; }
html.nl .nl-p2 .nl-p2-pop #cs-new-post:hover, html.nl .nl-p2 .nl-p2-pop #cs-save-later:hover, html.nl .nl-p2 .nl-p2-pop #cs-archive-design:hover, html.nl .nl-p2 .nl-p2-pop #cs-delete-design:hover, html.nl .nl-p2 .nl-p2-pop #cs-save-template:hover { background: var(--nl-s4) !important; }

/* Post: review polish */
html.nl .nl-p2-na { display: none !important; }
html.nl #nl-p2-style { min-width: 320px; }
html.nl .nl-p2 #cs-loading { position: relative; height: min(calc(100vh - 320px), 620px); width: auto; aspect-ratio: var(--nl-p2-ratio, 9 / 16); border-radius: 12px; border: 1px solid var(--nl-line-strong); overflow: hidden;
  background: linear-gradient(110deg, var(--nl-s2) 30%, var(--nl-s3) 50%, var(--nl-s2) 70%) 0 0 / 300% 100%; animation: nlP2Shimmer 1.8s ease-in-out infinite; }
html.nl .nl-p2 #cs-loading > div:first-child { position: absolute; top: calc(50% - 26px); left: calc(50% - 26px); margin: 0 !important; border-color: var(--nl-signal-soft) !important; border-top-color: var(--nl-signal) !important; }
html.nl .nl-p2 #cs-loading-msg { position: absolute; left: 16px; right: 16px; bottom: 18px; font: 500 13px var(--nl-body) !important; color: var(--nl-fg2) !important; text-align: center; }
@keyframes nlP2Shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { html.nl .nl-p2 #cs-loading { animation: none; } }
html.nl .nl-p2 .cs-cb { font: 400 13px/1.5 var(--nl-body) !important; padding: 9px 12px !important; border-radius: 12px !important; max-width: 88% !important; }
html.nl .nl-p2 .cs-cb--me { background: var(--nl-signal-soft) !important; color: var(--nl-fg) !important; border-radius: 12px 12px 4px 12px !important; }
html.nl .nl-p2 .cs-cb--ai { background: var(--nl-s3) !important; color: var(--nl-fg2) !important; border-radius: 12px 12px 12px 4px !important; }
/* Coach actions: the carousel button and the posts card (several single posts at once) */
html.nl .cs-coach-act { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border: 0 !important; border-radius: 9px !important; font: 600 12.5px var(--nl-body) !important; padding: 8px 13px !important; }
html.nl .cs-coach-act:disabled { opacity: .55; cursor: default !important; }
html.nl .cs-posts { border: 1px solid var(--nl-line) !important; background: var(--nl-s2) !important; border-radius: 12px !important; }
html.nl .cs-posts__head { color: var(--nl-fg2) !important; font: 400 12.5px/1.45 var(--nl-body) !important; }
html.nl .cs-post__img { background: var(--nl-s3) !important; border: 1px solid var(--nl-line); }
html.nl .cs-post__t { color: var(--nl-fg) !important; font: 600 12px/1.3 var(--nl-body) !important; }
html.nl .cs-post__btn { background: transparent !important; color: var(--nl-fg2) !important; border: 1px solid var(--nl-line-strong) !important; font: 500 11.5px var(--nl-body) !important; border-radius: 7px !important; }
html.nl .cs-post__btn--main { background: var(--nl-primary-bg) !important; color: var(--nl-primary-fg) !important; border-color: transparent !important; font-weight: 600 !important; }
html.nl .cs-post__btn:disabled { opacity: .55; cursor: default !important; }
html.nl .cs-post__spin { border-color: var(--nl-line-strong) !important; border-top-color: var(--nl-signal) !important; }
html.nl .cs-post__note { color: var(--nl-fg3) !important; font-family: var(--nl-body) !important; }
html.nl .cs-post[data-status="failed"] .cs-post__img span { color: var(--nl-bad) !important; }
html.nl .nl-p2-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
html.nl .nl-p2-sugs button { height: 28px; padding: 0 10px; border: 1px solid var(--nl-line); border-radius: 999px; background: transparent; color: var(--nl-fg2); font: 500 12px var(--nl-body); cursor: pointer; width: auto; }
html.nl .nl-p2-sugs button:hover { color: var(--nl-fg); border-color: var(--nl-line-strong); background: var(--nl-s2); }
html.nl .nl-p2 :is(.nl-p2-chip, .nl-p2-size button, .nl-p2-starts button, .nl-p2-sugs button, .nl-p2-plat, .nl-p2-item, .nl-p2-link, .nl-p2-primary, .nl-p2-secondary, .nl-p2-ghost, .nl-p2-btn, #cs-generate, #cs-coach-send, #cs-coach-style):focus-visible { outline: 2px solid var(--nl-signal) !important; outline-offset: 2px; }
@media (max-width: 640px) {
  html.nl .nl-p2-size button { padding: 9px 12px; }
  html.nl .nl-p2-chip { height: 38px; }
  html.nl .nl-p2-chip--icon { width: 38px; }
  html.nl .nl-p2-starts button, html.nl .nl-p2-plat, html.nl .nl-p2-sugs button { height: 38px; }
  html.nl .nl-p2 #cs-loading { height: min(62vh, 520px); }
}
html.nl .nl-p2-bar > * { flex-shrink: 0; }
html.nl .nl-p2-bar > .nl-p2-title, html.nl .nl-p2-bar > .nl-p2-brand, html.nl .nl-p2-bar > .nl-p2-ws { flex-shrink: 1; min-width: 0; }
html.nl .nl-p2-bar > .nl-p2-sp { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) {
  /* Create header: the title on its own row, the four tabs on one row, Video Studio beside them. */
  html.nl .create-segments:not([hidden]) { padding: 16px 16px 2px !important; }
  html.nl .create-segments::before { flex-basis: 100%; margin-bottom: 10px; font-size: 26px; }
  html.nl .create-seg:not(.create-seg--studio) { padding: 0 11px !important; }
  html.nl .create-seg--studio { margin-left: auto !important; padding: 0 10px !important; }
}

/* ── Calendar side panels: the day panel and the post detail panel ─────── */
html.nl #schedule-date-panel, html.nl #cal-panel { width: 400px !important; max-width: 100vw; background: var(--nl-surface) !important; border-left: 1px solid var(--nl-line-strong) !important; box-shadow: -24px 0 64px rgba(0,0,0,0.35) !important; color: var(--nl-fg); font-family: var(--nl-body); }
html.nl[data-nl-theme="day"] #schedule-date-panel, html.nl[data-nl-theme="day"] #cal-panel { box-shadow: -18px 0 48px rgba(27,26,23,0.10) !important; }
html.nl #schedule-date-panel-content { padding: 0 !important; }
html.nl #cal-panel { padding: 0 !important; }
html.nl #schedule-date-overlay { background: rgba(0,0,0,0.35) !important; }
html.nl .nl-dp { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-dp__head { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-dp__headtext { flex: 1 1 auto; min-width: 0; }
html.nl .nl-dp__eyebrow { font: 500 11px var(--nl-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nl-fg3); margin-bottom: 4px; }
html.nl .nl-dp__eyebrow--today { color: var(--nl-signal); }
html.nl .nl-dp__eyebrow--upcoming { color: var(--nl-ok); }
html.nl .nl-dp__title { margin: 0; font: 500 22px/1.15 var(--nl-display); letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .nl-dp__title--sm { font-size: 17px; }
html.nl .nl-dp__meta { margin-top: 4px; font-size: 12.5px; color: var(--nl-fg3); }
html.nl .nl-dp__x, html.nl .nl-dp__back { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: transparent; color: var(--nl-fg2); cursor: pointer; padding: 0; }
html.nl .nl-dp__x:hover, html.nl .nl-dp__back:hover { color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-dp__sec { margin: 6px 0 -2px; font: 500 11.5px var(--nl-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nl-fg3); }
html.nl .nl-dp__block { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--nl-line); }
html.nl .nl-dp__dayacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.nl .nl-dp__insight:empty { display: none; }
html.nl .nl-dp__insight > div { background: var(--nl-s2) !important; border: 1px solid var(--nl-line-strong) !important; border-radius: 10px !important; margin-bottom: 8px; }
html.nl .nl-dp__insight > div > div:first-child { color: var(--nl-signal) !important; }
html.nl .nl-dp__insight > div > div:last-child { color: var(--nl-fg2) !important; }
html.nl .nl-dp__insight button { color: var(--nl-signal) !important; }
html.nl .nl-dp__empty { text-align: center; padding: 28px 12px; border: 1px dashed var(--nl-line-strong); border-radius: 12px; }
html.nl .nl-dp__emptyt { font: 500 14px var(--nl-display); color: var(--nl-fg); margin-bottom: 4px; }
html.nl .nl-dp__emptys { font-size: 12.5px; color: var(--nl-fg3); line-height: 1.5; }

/* Buttons */
html.nl .nl-dpb { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: var(--nl-s2); color: var(--nl-fg); font: 500 12.5px var(--nl-body); cursor: pointer; white-space: nowrap; width: auto; text-decoration: none; }
html.nl .nl-dpb:hover { border-color: var(--nl-fg4); }
html.nl .nl-dpb:disabled { opacity: 0.5; cursor: progress; }
html.nl .nl-dpb--primary { background: var(--nl-primary-bg); color: var(--nl-primary-fg); border-color: transparent; font-weight: 600; }
html.nl .nl-dpb--primary:hover { border-color: transparent; opacity: 0.92; }
html.nl .nl-dpb--ghost { background: transparent; color: var(--nl-fg2); }
html.nl .nl-dpb--ghost:hover { color: var(--nl-fg); }
html.nl .nl-dpb--sm { height: 28px; padding: 0 10px; font-size: 12px; }
html.nl .nl-dpb--wide { flex: 1 1 auto; width: 100%; height: 40px; font-size: 13.5px; }
html.nl .nl-dpb__dot, html.nl .nl-dpc__dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--nl-fg3); }
html.nl [data-p="instagram"] { background: var(--nl-ig) !important; }
html.nl [data-p="facebook"] { background: var(--nl-fb) !important; }
html.nl [data-p="tiktok"] { background: var(--nl-tt) !important; }
html.nl .nl-dpl { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); cursor: pointer; text-decoration: none; width: auto; }
html.nl .nl-dpl:hover { color: var(--nl-fg); }
html.nl .nl-dpl--bad { color: var(--nl-bad); opacity: 0.85; }
html.nl .nl-dpl--bad:hover { color: var(--nl-bad); opacity: 1; }
html.nl :is(.nl-dpb, .nl-dpl, .nl-dp__x, .nl-dp__back, .nl-dpc__thumb):focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }

/* A post on the day */
html.nl .nl-dpc { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-s2); }
html.nl .nl-dpc--batch { border-style: dashed; border-color: var(--nl-line-strong); background: transparent; }
html.nl .nl-dpc__top { display: flex; gap: 12px; min-width: 0; }
html.nl .nl-dpc__thumb { position: relative; flex: none; width: 64px; height: 80px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--nl-s4); cursor: pointer; }
html.nl .nl-dpc__thumb img, html.nl .nl-dpc__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-dpc__badge { position: absolute; left: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: flex; align-items: center; justify-content: center; }
html.nl .nl-dpc__badge svg { width: 10px; height: 10px; margin-left: 1px; }
html.nl .nl-dpc__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--nl-fg3); }
html.nl .nl-dpc__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
html.nl .nl-dpc__line { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; }
html.nl .nl-dpc__dots { display: inline-flex; gap: 3px; }
html.nl .nl-dpc__plat { font-weight: 600; color: var(--nl-fg); white-space: nowrap; }
html.nl .nl-dpc__sub { color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.nl .nl-dpc__line .nl-pill { margin-left: auto; }
html.nl .nl-dpc__file { font-size: 11.5px; color: var(--nl-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.nl .nl-dpc__cap { margin: 0; font-size: 13px; line-height: 1.5; color: var(--nl-fg2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
html.nl .nl-dpc__cap--none { color: var(--nl-fg4); cursor: default; }
html.nl .nl-dpc__stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--nl-fg3); font-variant-numeric: tabular-nums; }
html.nl .nl-dpc__stats--none { color: var(--nl-fg4); }
html.nl .nl-dpc__note { font-size: 12px; line-height: 1.45; color: var(--nl-fg2); padding: 8px 10px; border-radius: 8px; background: var(--nl-s3); }
html.nl .nl-dpc__note--bad { color: var(--nl-fg); border: 1px solid color-mix(in srgb, var(--nl-bad) 40%, transparent); background: color-mix(in srgb, var(--nl-bad) 8%, transparent); }
html.nl .nl-dpc__acts { display: flex; flex-wrap: wrap; gap: 6px; }
html.nl .nl-dpc__acts > .nl-dpb { flex: 1 1 0; min-width: 0; }
html.nl .nl-dpc__acts--three { display: grid; grid-template-columns: repeat(3, 1fr); }
html.nl .nl-dpc__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 2px; }
html.nl .nl-dpc__links .nl-dpl--bad { margin-left: auto; }

/* Status pills */
html.nl .nl-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px var(--nl-body); white-space: nowrap; border: 1px solid var(--nl-line-strong); color: var(--nl-fg2); }
html.nl .nl-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html.nl .nl-pill--live { color: var(--nl-ok); border-color: color-mix(in srgb, var(--nl-ok) 35%, transparent); }
html.nl .nl-pill--sched { color: var(--nl-info); border-color: color-mix(in srgb, var(--nl-info) 35%, transparent); }
html.nl .nl-pill--busy { color: var(--nl-signal); border-color: color-mix(in srgb, var(--nl-signal) 35%, transparent); }
html.nl .nl-pill--bad { color: var(--nl-bad); border-color: color-mix(in srgb, var(--nl-bad) 40%, transparent); }
html.nl .nl-pill--muted { color: var(--nl-fg3); }

/* Ready to schedule */
html.nl .nl-dpr { display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-dpr__row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--nl-line); border-radius: 10px; }
html.nl .nl-dpr__row--on { border-color: var(--nl-signal); background: var(--nl-signal-soft); }
html.nl .nl-dpr__cap { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--nl-fg2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Schedule for this day */
html.nl .nl-dps__tip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--nl-fg3); }
html.nl .nl-dps__tip b { color: var(--nl-fg); font-weight: 600; }
html.nl .nl-dps textarea { width: 100%; box-sizing: border-box; min-height: 104px; padding: 12px; border: 1px solid var(--nl-line-strong); border-radius: 10px; background: var(--nl-s2); color: var(--nl-fg); font: 400 13.5px/1.5 var(--nl-body); resize: vertical; outline: none; }
html.nl .nl-dps textarea:focus { border-color: var(--nl-fg4); }
html.nl .nl-dps > .mp-ck-btn, html.nl .nl-dps > .mr-attach, html.nl .nl-dps > .dg-attach { align-self: flex-start; margin: -2px 14px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nl-fg2) !important; font: 500 12.5px var(--nl-body) !important; height: auto !important; }
html.nl .nl-dps > .mp-ck-btn + .mr-attach, html.nl .nl-dps > .mr-attach + .dg-attach { margin-top: -8px !important; }
html.nl .nl-dps:has(> .mp-ck-btn) { display: grid; grid-template-columns: auto auto auto 1fr; column-gap: 16px; row-gap: 10px; }
html.nl .nl-dps:has(> .mp-ck-btn) > :not(.mp-ck-btn):not(.mr-attach):not(.dg-attach) { grid-column: 1 / -1; }
html.nl .nl-dps:has(> .mp-ck-btn) > :is(.mp-ck-btn, .mr-attach, .dg-attach) { margin: 0 !important; }
html.nl .nl-dps__file { display: flex; align-items: center; gap: 10px; cursor: pointer; }
html.nl .nl-dps__fbtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px dashed var(--nl-line-strong); border-radius: 9px; color: var(--nl-fg2); font: 500 12.5px var(--nl-body); }
html.nl .nl-dps__file:hover .nl-dps__fbtn, html.nl .nl-dps__file:focus-within .nl-dps__fbtn { color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-dps__file:focus-within .nl-dps__fbtn { outline: 2px solid var(--nl-signal); outline-offset: 2px; }
html.nl .nl-dps__file--set .nl-dps__fbtn { border-style: solid; }
html.nl .nl-dps__fname { min-width: 0; font-size: 12.5px; color: var(--nl-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.nl .nl-dps__hint { font-size: 12px; color: var(--nl-fg3); line-height: 1.45; margin-top: -4px; }
html.nl .nl-dps__row { display: flex; gap: 8px; }
html.nl .nl-dps__row input[type="time"] { flex: none; width: 124px; height: 40px; padding: 0 10px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: var(--nl-s2); color: var(--nl-fg); font: 500 13px var(--nl-mono); color-scheme: dark; }
html.nl[data-nl-theme="day"] .nl-dps__row input[type="time"] { color-scheme: light; }
html.nl .nl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Post detail */
html.nl .nl-dpd__media { border-radius: 12px; overflow: hidden; background: var(--nl-s4); display: flex; justify-content: center; }
html.nl .nl-dpd__media img, html.nl .nl-dpd__media video { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #000; }
html.nl .nl-dpd__media--none { padding: 28px; color: var(--nl-fg3); font-size: 12.5px; }
html.nl .nl-dpd__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--nl-fg3); }
html.nl .nl-dpd__plat { display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-dpd__fmt { text-transform: capitalize; }
html.nl .nl-dpd__cap { font-size: 13.5px; line-height: 1.6; color: var(--nl-fg2); white-space: pre-wrap; max-height: 260px; overflow-y: auto; }
html.nl .nl-dpd__none { color: var(--nl-fg4); }
html.nl .nl-dpd__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
html.nl .nl-dpd__stat { padding: 10px; border: 1px solid var(--nl-line); border-radius: 10px; background: var(--nl-s2); }
html.nl .nl-dpd__stat b { display: block; font: 600 17px var(--nl-display); color: var(--nl-fg); font-variant-numeric: tabular-nums; }
html.nl .nl-dpd__stat span { font-size: 11.5px; color: var(--nl-fg3); }
html.nl .nl-dpd__acts { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
html.nl .nl-dpd__acts > .nl-dpl--bad { align-self: center; margin-top: 4px; }
@media (max-width: 520px) {
  html.nl #schedule-date-panel, html.nl #cal-panel { width: 100vw !important; }
  html.nl .nl-dpb { height: 38px; }
}
html.nl .nl-dpc__stats b { color: var(--nl-fg); font-weight: 600; }
html.nl .nl-dpc__acts > .nl-dpb--icon { flex: none; width: 34px; padding: 0; color: var(--nl-fg3); }
html.nl .nl-dpc__acts > .nl-dpb--icon:hover { color: var(--nl-bad); border-color: color-mix(in srgb, var(--nl-bad) 45%, transparent); }
html.nl :is(.nl-dpb, .nl-dpl, .nl-dps__tip, .nl-dps__fbtn, .nl-dp__x, .nl-dp__back) svg { flex: none; }
html.nl .nl-dpr__row > .nl-dpb { flex: none; }

/* ── Animate: the prompt leads (nl-ahero) ─────────────────────────────── */
html.nl .nl-aask.nl-ahero { border: 0; background: transparent; padding: 4px 0 2px; gap: 12px; }
html.nl .nl-ahero__t { margin: 0; font: 400 30px/1.1 var(--nl-display); letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .nl-ahero--edit .nl-ahero__t { font-size: 22px; }
html.nl .nl-ahero__s { margin: 6px 0 0; font: 400 13.5px/1.5 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-ahero__box { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; border: 1px solid var(--nl-line-strong); border-radius: 16px; background: var(--nl-s2); transition: border-color .15s; }
html.nl .nl-ahero__box:focus-within { border-color: var(--nl-fg4); }
html.nl .nl-ahero #anim-prompt { min-height: 104px; font: 400 15px/1.55 var(--nl-body) !important; padding: 2px 2px !important; color: var(--nl-fg) !important; }
html.nl .nl-ahero--edit #anim-prompt { min-height: 56px; font-size: 14px !important; }
html.nl .nl-ahero #anim-prompt::placeholder { color: var(--nl-fg4); }
html.nl .nl-ahero__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--nl-line); }
html.nl .nl-ahero .anim-entry-mode { display: inline-flex !important; margin: 0 !important; padding: 3px; gap: 2px; border-radius: 8px; border: 1px solid var(--nl-line-strong) !important; background: var(--nl-surface) !important; }
html.nl .nl-ahero .anim-entry-seg { flex: 0 0 auto; height: 28px; padding: 0 11px; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--nl-fg3) !important; font: 500 12.5px var(--nl-body) !important; cursor: pointer; }
html.nl .nl-ahero .anim-entry-seg.active { background: var(--nl-s4) !important; color: var(--nl-fg) !important; }
html.nl .nl-ahero .nl-aseg { background: var(--nl-surface) !important; }
html.nl .nl-ahero .nl-aseg button { height: 28px; padding: 0 11px; }
html.nl .nl-ahero #anim-story-type { height: 36px; min-width: 150px; max-width: 200px; padding: 0 8px !important; font-size: 12.5px !important; margin: 0 !important; background-color: var(--nl-surface) !important; }
html.nl .nl-ahero #anim-send { height: 38px; padding: 0 18px !important; font-size: 13.5px !important; }
html.nl .nl-ahero__ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html.nl .nl-ahero__ideas[hidden], html.nl .nl-ahero:has(#anim-brief-actions:not(:empty)) .nl-ahero__ideas, html.nl .nl-ahero:has(.anim-msg--user) .nl-ahero__ideas { display: none; }
html.nl .nl-ahero__try { font: 500 12px var(--nl-body); color: var(--nl-fg3); margin-right: 2px; }
html.nl .nl-aidea { height: 30px; max-width: 100%; padding: 0 12px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: transparent; color: var(--nl-fg2); font: 400 12.5px var(--nl-body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-aidea:hover { color: var(--nl-fg); border-color: var(--nl-fg4); background: var(--nl-s2); }
html.nl .nl-aidea:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }
html.nl .nl-ahero .anim-msg--intro { display: none !important; }
html.nl .nl-ahero .nl-aask__tokens[hidden] { display: none; }
html.nl .nl-abrief .nl-abrief__row { align-items: center; }
html.nl .nl-abrief .nl-acast__h { gap: 12px; }
@media (max-width: 700px) {
  html.nl .nl-ahero__t { font-size: 24px; }
  html.nl .nl-ahero #anim-prompt { min-height: 88px; }
  html.nl .nl-ahero__bar > .nl-grow { display: none; }
  html.nl .nl-ahero__bar [data-slot="send"] { flex: 1 1 100%; }
  html.nl .nl-ahero #anim-send { width: 100% !important; justify-content: center; }
}
html.nl .nl-ahome .anim-empty { display: none; }
/* Once there are shots: prompt, then the shots, then cast and settings */
html.nl .nl-anim--shots .nl-anim__main > .nl-abrief { order: 5; }
html.nl .nl-ahero--edit .nl-ahero__s { margin-top: 4px; }
/* Create → Animate: the board is taller than the screen, so the content area scrolls under the fixed header
   (.dash-main--create clips overflow for the old full-height studio layout). */
html.nl .dash-main--create #dash-content.dash-content--animate:has(> .anim-shell.nl-anim-on) { overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior: contain; }

/* ── Animate: editor chat, thread, cast fold, timeline editing ───────────── */
html.nl .nl-abtn--sm { height: 30px; padding: 0 10px; font-size: 12px; }
html.nl .nl-abtn--icon { padding: 0 9px; }
html.nl .nl-abtn--primary { background: var(--nl-primary-bg); color: var(--nl-primary-fg); border-color: transparent; font-weight: 600; }
html.nl .nl-abtn--primary:hover { background: var(--nl-primary-bg); color: var(--nl-primary-fg); opacity: .92; }
html.nl .nl-abtn--bad { color: var(--nl-bad); }
html.nl .nl-abtn:disabled { opacity: .45; cursor: not-allowed; }
html.nl .nl-abtn svg { flex: none; }
html.nl .nl-alink { border: 0; background: none; padding: 0 4px; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--nl-line-strong); }
html.nl .nl-alink:hover { color: var(--nl-fg); }
html.nl .nl-alink[hidden] { display: none; }
html.nl :is(.nl-abtn, .nl-alink, .nl-abrief__toggle, .nl-tle__b, .nl-tplan > summary):focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }

/* Reference button in the prompt bar */
html.nl .nl-aref { height: 36px; background: var(--nl-surface); color: var(--nl-fg2); }
html.nl .nl-aref__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nl-signal); color: var(--nl-signal-ink, #0b0b0c); font: 600 11px/18px var(--nl-body); text-align: center; box-sizing: border-box; }
html.nl .nl-aref__n[hidden] { display: none; }
html.nl [data-nl-attach][hidden] { display: none; }
html.nl .nl-attach { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; color: var(--nl-fg2); font: 500 12.5px/1.4 var(--nl-body); }
html.nl .nl-attach[hidden] { display: none; }
html.nl .nl-attach button { border: 0; background: none; padding: 0; color: var(--nl-fg3); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Chat mode: thread first, then the box */
html.nl .nl-ahero--chat > .nl-ahero__h { order: 0; }
html.nl .nl-ahero--chat > [data-slot="log"] { order: 1; }
html.nl .nl-ahero--chat > [data-slot="actions"] { order: 2; }
html.nl .nl-ahero--chat > .nl-ahero__box { order: 3; }
html.nl .nl-ahero--chat > .nl-ahero__edits { order: 4; }
html.nl .nl-ahero--chat .nl-ahero__t { font-size: 22px; }
html.nl .nl-ahero--chat .nl-ahero__bar > :is([data-slot="entry"], [data-slot="look"], [data-slot="story"], [data-nl-cast]) { display: none; }
html.nl .nl-ahero--chat .nl-ahero__bar { border-top: 0; padding-top: 0; }
html.nl .nl-ahero--chat #anim-prompt { min-height: 48px; }
html.nl .nl-ahero__edits[hidden] { display: none; }
html.nl .nl-ahero [data-slot="log"]:has(#anim-chat-log:empty), html.nl .nl-ahero [data-slot="actions"]:not(:has(#anim-brief-actions:not(:empty))) { display: none; }
html.nl .nl-ahero:has(.nl-tmsg--me) .nl-ahero__ideas:not(.nl-ahero__edits) { display: none; }

/* Thread */
html.nl .nl-ahero #anim-chat-log { display: flex !important; flex-direction: column; gap: 12px !important; max-height: 420px; overflow-y: auto; padding: 2px 4px 2px 0 !important; scroll-behavior: smooth; }
html.nl .nl-tmsg { display: flex; gap: 10px; min-width: 0; }
html.nl .nl-tmsg--me { flex-direction: column; align-items: flex-end; }
html.nl .nl-tmsg__l { font: 500 11px var(--nl-body); color: var(--nl-fg3); margin: 0 2px 4px 0; }
html.nl .nl-tmsg--me .nl-tmsg__b { max-width: min(78%, 620px); padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--nl-s3); border: 1px solid var(--nl-line); color: var(--nl-fg); font: 400 13.5px/1.5 var(--nl-body); white-space: pre-wrap; overflow-wrap: anywhere; }
html.nl .nl-tmsg--ai { align-items: flex-start; }
html.nl .nl-tav { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--nl-signal-soft); color: var(--nl-signal); }
html.nl .nl-tmsg__c { min-width: 0; max-width: min(88%, 680px); }
html.nl .nl-tmsg--ai .nl-tmsg__b { padding-top: 3px; color: var(--nl-fg); font: 400 13.5px/1.55 var(--nl-body); overflow-wrap: anywhere; }
html.nl .nl-tmsg__s { margin-top: 6px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html.nl .nl-tchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg2); font: 500 12px var(--nl-body); }
html.nl .nl-tchip svg { color: var(--nl-ok); }
html.nl .nl-tchip.is-live { color: var(--nl-fg); border-color: color-mix(in srgb, var(--nl-signal) 45%, transparent); }
html.nl .nl-tspin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--nl-signal); border-right-color: transparent; animation: nl-tspin .8s linear infinite; }
@keyframes nl-tspin { to { transform: rotate(360deg); } }
html.nl .nl-tmsg.is-typing .nl-tmsg__b { display: inline-flex; gap: 4px; padding: 9px 0 0; }
html.nl .nl-tmsg.is-typing .nl-tmsg__b i { width: 6px; height: 6px; border-radius: 50%; background: var(--nl-fg3); animation: nl-tdot 1.2s infinite ease-in-out; }
html.nl .nl-tmsg.is-typing .nl-tmsg__b i:nth-child(2) { animation-delay: .15s; }
html.nl .nl-tmsg.is-typing .nl-tmsg__b i:nth-child(3) { animation-delay: .3s; }
@keyframes nl-tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
html.nl .nl-tsys { display: flex; align-items: flex-start; gap: 8px; padding-left: 34px; font: 400 12px/1.5 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tsys svg { flex: none; margin-top: 3px; color: var(--nl-fg4); }
html.nl .nl-tsys--ok svg { color: var(--nl-ok); }
html.nl .nl-tsys--vo svg { color: var(--nl-signal); }
html.nl .nl-tsys--warn svg { color: var(--nl-warn); }
html.nl .nl-tplan { margin-left: 34px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface); }
html.nl .nl-tplan > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; color: var(--nl-fg); font: 500 13px var(--nl-body); border-radius: 12px; }
html.nl .nl-tplan > summary::-webkit-details-marker { display: none; }
html.nl .nl-tplan > summary:hover { background: var(--nl-s2); }
html.nl .nl-tplan__i { display: inline-flex; color: var(--nl-signal); }
html.nl .nl-tplan__m { font: 400 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-tplan__more { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tplan[open] .nl-tplan__more { display: none; }
html.nl .nl-tplan > summary > svg:last-child { color: var(--nl-fg3); transition: transform .15s; }
html.nl .nl-tplan[open] > summary > svg:last-child { transform: rotate(180deg); }
html.nl .nl-tplan__body { padding: 2px 12px 12px; border-top: 1px solid var(--nl-line); }
html.nl .nl-tplan__shots { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
html.nl .nl-tplan__shots li { display: flex; gap: 10px; font: 400 13px/1.5 var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-tplan__shots li span { flex: none; width: 18px; font: 500 11px/20px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-tplan__h { margin: 12px 0 4px; font: 500 11px var(--nl-body); letter-spacing: .04em; text-transform: uppercase; color: var(--nl-fg3); }
html.nl .nl-tplan__body p { margin: 0; max-height: 220px; overflow-y: auto; font: 400 12.5px/1.6 var(--nl-body); color: var(--nl-fg2); white-space: pre-wrap; }

/* Cast and settings fold */
html.nl .nl-abrief { padding: 10px 14px; gap: 14px; }
html.nl .nl-abrief__toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 34px; padding: 0 4px 0 0; border: 0; background: none; color: var(--nl-fg); font: 500 13.5px var(--nl-body); cursor: pointer; }
html.nl .nl-abrief__toggle > svg { flex: none; color: var(--nl-fg3); transform: rotate(-90deg); transition: transform .15s; }
html.nl .nl-abrief__toggle[aria-expanded="true"] > svg { transform: rotate(0); }
html.nl .nl-abrief__t { flex: none; }
html.nl .nl-abrief__sum { min-width: 0; font: 400 12.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-abrief .nl-abrief__row { flex-wrap: nowrap; min-width: 0; }
html.nl .nl-anim:not(.nl-abrief-open) .nl-abrief :is([data-nl-more], [data-nl-drive]) { display: none; }
html.nl .nl-abrief__body { display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }
html.nl .nl-abrief__body[hidden] { display: none; }

/* Timeline: Edit */
html.nl .nl-atl .nl-acard__h--flat h2 { display: flex; align-items: baseline; gap: 10px; }
html.nl .nl-tle__rows { display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-tle__row { display: flex; align-items: stretch; gap: 10px; }
html.nl .nl-tle__row > .nl-tle__lane { flex: 1 1 auto; min-width: 0; }
html.nl .nl-tle__rl { flex: 0 0 74px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--nl-fg3); font: 400 11.5px var(--nl-body); text-align: left; cursor: pointer; }
html.nl .nl-tle__rl:hover { color: var(--nl-fg); background: var(--nl-s2); }
html.nl .nl-tle__rl.is-sel { color: var(--nl-fg); background: var(--nl-s3); }
html.nl .nl-tle__rl small { font: 400 10px var(--nl-body); color: var(--nl-fg4); }
html.nl .nl-tle__alane { position: relative; flex: 1 1 auto; min-width: 0; height: 42px; border-radius: 8px; background: var(--nl-s2); user-select: none; touch-action: none; }
html.nl .nl-tle__alane--cap { height: 28px; cursor: pointer; }
html.nl .nl-tle__ab { position: absolute; top: 3px; bottom: 3px; box-sizing: border-box; border-radius: 6px; border: 2px solid transparent; overflow: hidden; cursor: grab; --wave: var(--nl-fg3); background: var(--nl-s3); }
html.nl .nl-tle__ab--vo { --wave: var(--nl-ok); background: color-mix(in srgb, var(--nl-ok) 14%, var(--nl-s3)); }
html.nl .nl-tle__ab--music { --wave: var(--nl-signal); background: color-mix(in srgb, var(--nl-signal) 12%, var(--nl-s3)); }
html.nl .nl-tle__ab:hover { border-color: var(--nl-line-strong); }
html.nl .nl-tle__ab.is-sel { border-color: var(--nl-fg); }
html.nl .nl-tle__ab.is-moving { cursor: grabbing; border-color: var(--nl-fg); }
html.nl .nl-tle__ab.is-off { opacity: .45; filter: grayscale(1); }
html.nl .nl-tle__ab.is-over { border-right-color: var(--nl-bad); border-right-style: dashed; }
html.nl .nl-tle__ab:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }
html.nl .nl-tle__wave { position: absolute; left: 4px; right: 4px; top: 18px; bottom: 4px; background: var(--wave); opacity: .6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='20' viewBox='0 0 64 20'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='7' width='2' height='6' rx='1'/%3E%3Crect x='4' y='4' width='2' height='12' rx='1'/%3E%3Crect x='8' y='1' width='2' height='18' rx='1'/%3E%3Crect x='12' y='5' width='2' height='10' rx='1'/%3E%3Crect x='16' y='8' width='2' height='4' rx='1'/%3E%3Crect x='20' y='3' width='2' height='14' rx='1'/%3E%3Crect x='24' y='6' width='2' height='8' rx='1'/%3E%3Crect x='28' y='2' width='2' height='16' rx='1'/%3E%3Crect x='32' y='5' width='2' height='10' rx='1'/%3E%3Crect x='36' y='8' width='2' height='4' rx='1'/%3E%3Crect x='40' y='4' width='2' height='12' rx='1'/%3E%3Crect x='44' y='0' width='2' height='20' rx='1'/%3E%3Crect x='48' y='6' width='2' height='8' rx='1'/%3E%3Crect x='52' y='3' width='2' height='14' rx='1'/%3E%3Crect x='56' y='7' width='2' height='6' rx='1'/%3E%3Crect x='60' y='5' width='2' height='10' rx='1'/%3E%3C/g%3E%3C/svg%3E") repeat-x left center / auto 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='20' viewBox='0 0 64 20'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='7' width='2' height='6' rx='1'/%3E%3Crect x='4' y='4' width='2' height='12' rx='1'/%3E%3Crect x='8' y='1' width='2' height='18' rx='1'/%3E%3Crect x='12' y='5' width='2' height='10' rx='1'/%3E%3Crect x='16' y='8' width='2' height='4' rx='1'/%3E%3Crect x='20' y='3' width='2' height='14' rx='1'/%3E%3Crect x='24' y='6' width='2' height='8' rx='1'/%3E%3Crect x='28' y='2' width='2' height='16' rx='1'/%3E%3Crect x='32' y='5' width='2' height='10' rx='1'/%3E%3Crect x='36' y='8' width='2' height='4' rx='1'/%3E%3Crect x='40' y='4' width='2' height='12' rx='1'/%3E%3Crect x='44' y='0' width='2' height='20' rx='1'/%3E%3Crect x='48' y='6' width='2' height='8' rx='1'/%3E%3Crect x='52' y='3' width='2' height='14' rx='1'/%3E%3Crect x='56' y='7' width='2' height='6' rx='1'/%3E%3Crect x='60' y='5' width='2' height='10' rx='1'/%3E%3C/g%3E%3C/svg%3E") repeat-x left center / auto 100%; pointer-events: none; }
html.nl .nl-tle__alab { position: absolute; left: 6px; right: 6px; top: 2px; z-index: 1; font: 500 11px/15px var(--nl-body); color: var(--nl-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
html.nl .nl-tle__fade { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; }
html.nl .nl-tle__fade--in { left: 0; background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--nl-fg2) 50%, transparent calc(50% + 1px)), linear-gradient(to right, color-mix(in srgb, var(--nl-s2) 80%, transparent), transparent); }
html.nl .nl-tle__fade--out { right: 0; background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--nl-fg2) 50%, transparent calc(50% + 1px)), linear-gradient(to left, color-mix(in srgb, var(--nl-s2) 80%, transparent), transparent); }
html.nl .nl-tle__cap { position: absolute; top: 4px; bottom: 4px; box-sizing: border-box; border-radius: 4px; border: 1px solid var(--nl-line); background: var(--nl-s3); color: var(--nl-fg2); font: 400 10px/18px var(--nl-body); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-tle__row.is-off .nl-tle__cap { opacity: .35; }
html.nl .nl-tle__ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--nl-signal); z-index: 4; pointer-events: none; }
html.nl .nl-tle__ph[hidden] { display: none; }
html.nl .nl-tle__insp.nl-tle__insp--audio { flex-direction: column; align-items: stretch; }
html.nl .nl-tle__irow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
html.nl .nl-tle__sw { position: relative; display: inline-flex; align-items: center; gap: 7px; font: 400 12px var(--nl-body); color: var(--nl-fg2); cursor: pointer; }
html.nl .nl-tle__sw input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
html.nl .nl-tle__sw span { position: relative; flex: 0 0 auto; width: 28px; height: 16px; border-radius: 999px; background: var(--nl-s4); transition: background .15s; }
html.nl .nl-tle__sw span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--nl-fg3); transition: transform .15s, background .15s; }
html.nl .nl-tle__sw input:checked + span { background: var(--nl-ok); }
html.nl .nl-tle__sw input:checked + span::after { transform: translateX(12px); background: #fff; }
html.nl .nl-tle__sw input:focus-visible + span { outline: 2px solid var(--nl-signal); outline-offset: 2px; }
html.nl .nl-tle__f--vol input[type="range"] { width: 112px; height: 18px; padding: 0; border: 0; background: none; accent-color: var(--nl-fg); }
html.nl .nl-tle__f output { min-width: 34px; font: 500 12px var(--nl-mono); color: var(--nl-fg2); }
html.nl .nl-tle__script { display: flex; flex-direction: column; gap: 5px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tle__script textarea { width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; padding: 8px 10px; border: 1px solid var(--nl-line-strong); border-radius: 8px; background: var(--nl-surface); color: var(--nl-fg); font: 400 13px/1.5 var(--nl-body); }
html.nl .nl-tle__script textarea:focus { outline: none; border-color: var(--nl-fg4); }
html.nl .nl-tle__note { margin: 0; font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tle__note b { color: var(--nl-bad); font-weight: 600; }
@media (max-width: 960px) {
  html.nl .nl-tle__rl { flex-basis: 60px; padding: 0 4px; }
  html.nl .nl-tle__f--vol input[type="range"] { width: 90px; }
}
html.nl .nl-tle__badge { font: 500 11px var(--nl-body); color: var(--nl-signal); border: 1px solid color-mix(in srgb, var(--nl-signal) 40%, transparent); border-radius: 999px; padding: 1px 8px; }
html.nl .nl-tle__lane { position: relative; height: 84px; border-radius: 10px; background: var(--nl-s2); user-select: none; touch-action: none; }
html.nl .nl-tle__lane.is-trimming, html.nl .nl-tle__lane.is-trimming * { cursor: ew-resize !important; }
html.nl .nl-tle__b { position: absolute; top: 5px; bottom: 5px; box-sizing: border-box; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--nl-s4); cursor: grab; }
html.nl .nl-tle__b + .nl-tle__b { margin-left: 2px; }
html.nl .nl-tle__b:hover { border-color: var(--nl-line-strong); }
html.nl .nl-tle__b.is-sel { border-color: var(--nl-fg); }
html.nl .nl-tle__b.is-drag { opacity: .35; }
html.nl .nl-tle__thumb { position: absolute; inset: 0; background-image: var(--thumb); background-size: auto 100%; background-repeat: repeat-x; background-position: left center; opacity: .6; }
html.nl .nl-tle__b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.55)); pointer-events: none; }
html.nl .nl-tle__lab { position: absolute; left: 10px; bottom: 6px; z-index: 1; display: flex; align-items: baseline; gap: 6px; font: 500 11px var(--nl-mono); color: #fff; white-space: nowrap; }
html.nl .nl-tle__lab b { font: 600 12px var(--nl-body); }
html.nl .nl-tle__h { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2; cursor: ew-resize; }
html.nl .nl-tle__h--in { left: 0; }
html.nl .nl-tle__h--out { right: 0; }
html.nl .nl-tle__h::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 26px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); opacity: 0; transition: opacity .12s; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
html.nl .nl-tle__b:hover .nl-tle__h::after, html.nl .nl-tle__b.is-sel .nl-tle__h::after { opacity: .95; }
html.nl .nl-tle__b--end { cursor: default; background: repeating-linear-gradient(135deg, var(--nl-s3) 0 8px, var(--nl-s2) 8px 16px); }
html.nl .nl-tle__b--end::after { display: none; }
html.nl .nl-tle__b--end .nl-tle__lab { color: var(--nl-fg3); font-family: var(--nl-body); }
html.nl .nl-tle__drop { position: absolute; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--nl-signal); z-index: 3; pointer-events: none; }
html.nl .nl-tle__drop[hidden] { display: none; }
html.nl .nl-tle__insp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--nl-line); border-radius: 10px; background: var(--nl-s2); }
html.nl .nl-tle__it { font: 600 13px var(--nl-body); color: var(--nl-fg); margin-right: 4px; }
html.nl .nl-tle__f { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tle__f input { width: 64px; height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--nl-line-strong); border-radius: 7px; background: var(--nl-surface); color: var(--nl-fg); font: 500 12.5px var(--nl-mono); }
html.nl .nl-tle__f input:focus { outline: none; border-color: var(--nl-fg4); }
html.nl .nl-tle__f select { height: 30px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--nl-line-strong); border-radius: 7px; background: var(--nl-surface); color: var(--nl-fg); font: 500 12.5px var(--nl-body); max-width: 190px; }
html.nl .nl-tle__f select:focus { outline: none; border-color: var(--nl-fg4); }
html.nl .nl-tle__len { font: 400 12px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-tle__removed { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tle__hint { margin: 0; font: 400 12px/1.5 var(--nl-body); color: var(--nl-fg3); }
@media (max-width: 700px) {
  html.nl .nl-tmsg--me .nl-tmsg__b, html.nl .nl-tmsg__c { max-width: 92%; }
  html.nl .nl-abrief__sum { display: none; }
  html.nl .nl-aref__l { display: none; }
}
html.nl .nl-ahero--chat #anim-send::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
html.nl .nl-tplan__vo { display: block; margin-top: 3px; quotes: '\201C' '\201D'; font: italic 400 12.5px/1.5 var(--nl-body); color: var(--nl-fg3); }
html.nl .anim-brief-shot-line .nl-tplan__vo { margin-left: 18px; }
html.nl .anim-brief-shot-secs { font: 500 11px var(--nl-mono); color: var(--nl-fg3); }

/* ── Create → Animate: Build a Story (story-builder.js) ───────────────────── */
html.nl .anim-shell.nl-anim-on .anim-canvas-header { align-items: center; }
html.nl .anim-shell.nl-anim-on .anim-canvas-header .nl-sbar { order: -1; }
html.nl .nl-sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; flex: 1 1 auto; min-width: 0; }
html.nl .nl-sbar__new { margin-left: auto; }
html.nl .nl-sbar[hidden] { display: none; }
html.nl .anim-shell.nl-story-mode .anim-canvas-header .nl-steps,
html.nl .anim-shell.nl-story-mode .anim-canvas-header .nl-aproj,
html.nl .anim-shell.nl-story-mode #anim-new { display: none !important; }
html.nl .anim-shell.nl-story-mode:not(.nl-story-board) > .anim-canvas > .nl-anim { display: none !important; }
html.nl .nl-story[hidden] { display: none !important; }
html.nl .nl-story { display: flex; flex-direction: column; gap: 14px; }
html.nl .nl-skitpick { position: relative; }
html.nl .nl-skitpick__b { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 6px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: transparent; color: var(--nl-fg); font: 500 13.5px var(--nl-body); cursor: pointer; max-width: 280px; }
html.nl .nl-skitpick__b:hover { background: var(--nl-s2); }
html.nl .nl-skitpick__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-skitpick__menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 6px; border: 1px solid var(--nl-line-strong); border-radius: 12px; background: var(--nl-surface); box-shadow: 0 20px 50px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 2px; }
html.nl .nl-skitpick__menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--nl-fg); font: 500 13px var(--nl-body); cursor: pointer; text-align: left; }
html.nl .nl-skitpick__menu button:not(:has(.nl-skitpick__mt)) { flex-direction: row; align-items: center; gap: 8px; color: var(--nl-fg2); }
html.nl .nl-skitpick__menu button:hover, html.nl .nl-skitpick__menu button.is-on { background: var(--nl-s3); }
html.nl .nl-skitpick__ms { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-skitpick__menu hr { width: 100%; border: 0; border-top: 1px solid var(--nl-line); margin: 4px 0; }
html.nl .nl-sfaces { display: inline-flex; align-items: center; }
html.nl .nl-sfaces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--nl-surface); margin-left: -7px; background: var(--nl-s3); }
html.nl .nl-sfaces img:first-child { margin-left: 0; }
html.nl .nl-sfaces--none { width: 24px; height: 24px; border-radius: 7px; background: var(--nl-s3); justify-content: center; color: var(--nl-fg3); }
html.nl .nl-ssteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
html.nl .nl-ssteps li { max-width: none; }
html.nl .nl-ssteps .nl-step { padding: 0; height: auto; border: 0; }
html.nl .nl-ssteps .nl-step button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit; font: 500 13px var(--nl-body); cursor: pointer; }
html.nl .nl-ssteps .nl-step button:disabled { cursor: default; }
html.nl .nl-ssteps .nl-step--now button { background: var(--nl-s3); border-color: var(--nl-line-strong); color: var(--nl-fg); }
html.nl .nl-ssteps .nl-step--done button { color: var(--nl-fg2); }
html.nl .nl-ssteps .nl-step--done .nl-step__n { background: var(--nl-ok); border-color: var(--nl-ok); color: #06261a; }
html.nl .nl-ssteps .nl-step--now .nl-step__n { border-color: var(--nl-signal); color: var(--nl-signal); }
html.nl .nl-ssteps .nl-step:not(.nl-step--now) button:not(:disabled):hover { color: var(--nl-fg); }
html.nl .nl-step__sep { width: 18px; height: 1px; background: var(--nl-line-strong); }
html.nl .nl-skitlook { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--nl-line-strong); border-radius: 9px; color: var(--nl-fg3); font: 500 13px var(--nl-body); }
html.nl .nl-skitlook select { appearance: none; border: 0; background: transparent; color: var(--nl-fg); font: 500 13px var(--nl-body); padding: 0 16px 0 0; margin-right: -16px; cursor: pointer; }
html.nl .nl-skitlook svg { pointer-events: none; color: var(--nl-fg3); }

/* shared pieces */
html.nl .nl-scard { border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-surface); }
html.nl .nl-sh1 { margin: 0; font: 400 30px/1.1 var(--nl-display); letter-spacing: -0.02em; color: var(--nl-fg); }
html.nl .nl-ssub { margin: 6px 0 0; color: var(--nl-fg3); font: 400 13.5px/1.5 var(--nl-body); max-width: 640px; }
html.nl .nl-shead { font: 500 15px var(--nl-display); color: var(--nl-fg); margin-bottom: 10px; }
html.nl .nl-sempty { padding: 14px; border: 1px dashed var(--nl-line-strong); border-radius: 12px; color: var(--nl-fg3); font-size: 12.5px; }
html.nl .nl-sloading { padding: 40px; color: var(--nl-fg3); }
html.nl .nl-sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: transparent; color: var(--nl-fg2); font: 500 13px var(--nl-body); cursor: pointer; white-space: nowrap; }
html.nl .nl-sbtn:hover:not(:disabled) { color: var(--nl-fg); background: var(--nl-s2); }
html.nl .nl-sbtn:disabled { opacity: 0.45; cursor: not-allowed; }
html.nl .nl-sbtn--sm { height: 30px; padding: 0 10px; font-size: 12px; }
html.nl .nl-sbtn--primary { background: var(--nl-signal); border-color: transparent; color: var(--nl-signal-ink); font-weight: 600; }
html.nl .nl-sbtn--primary:hover:not(:disabled) { background: var(--nl-signal); color: var(--nl-signal-ink); filter: brightness(1.08); }
html.nl .nl-sbtn--light { background: var(--nl-primary-bg); border-color: transparent; color: var(--nl-primary-fg); font-weight: 600; }
html.nl .nl-sbtn--light:hover:not(:disabled) { background: var(--nl-primary-bg); color: var(--nl-primary-fg); filter: brightness(0.95); }
html.nl .nl-sbtn--danger { color: var(--nl-bad); border-color: color-mix(in srgb, var(--nl-bad) 40%, transparent); }
html.nl .nl-sbtn--danger:hover:not(:disabled) { color: var(--nl-bad); background: color-mix(in srgb, var(--nl-bad) 8%, transparent); }
html.nl .nl-sbtn--wide { width: 100%; height: 42px; }
html.nl .nl-sicon { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--nl-fg3); cursor: pointer; }
html.nl .nl-sicon:hover { background: var(--nl-s3); color: var(--nl-fg); }
html.nl .nl-sicon--sm { width: 26px; height: 26px; }
html.nl .nl-slink { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--nl-fg2); font: 500 12px var(--nl-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--nl-line-strong); cursor: pointer; }
html.nl .nl-slink:hover { color: var(--nl-fg); }
html.nl .nl-slabel { font: 500 11px var(--nl-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--nl-fg3); }
html.nl .nl-slabel em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--nl-fg4); }
html.nl .nl-slabel--row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.nl .nl-slabel--row .nl-slink, html.nl .nl-slabel .nl-smono { text-transform: none; letter-spacing: 0; }
html.nl .nl-sinput { width: 100%; box-sizing: border-box; border: 1px solid var(--nl-line-strong); border-radius: 10px; background: var(--nl-s2); padding: 9px 12px; color: var(--nl-fg); font: 400 13.5px/1.5 var(--nl-body); }
html.nl .nl-sinput:focus { outline: none; border-color: var(--nl-fg4); }
html.nl .nl-sinput[readonly] { color: var(--nl-fg2); }
html.nl .nl-sarea { resize: vertical; min-height: 64px; }
html.nl .nl-sseg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: var(--nl-s2); }
html.nl .nl-sseg button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--nl-fg3); font: 500 12.5px var(--nl-body); cursor: pointer; white-space: nowrap; }
html.nl .nl-sseg button[aria-pressed="true"] { background: var(--nl-s4); color: var(--nl-fg); }
html.nl .nl-sseg button:disabled { cursor: default; }
html.nl .nl-sseg--full { display: flex; }
html.nl .nl-sseg--full button { flex: 1 1 0; padding: 0 6px; }
html.nl .nl-srow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.nl .nl-scol { display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-scol .nl-sbtn { justify-content: flex-start; }
html.nl .nl-snote { display: inline-flex; align-items: center; gap: 7px; font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-snote--c { justify-content: center; text-align: center; width: 100%; }
html.nl .nl-snote--lib { align-items: flex-start; }
html.nl .nl-snote--lib svg { flex: 0 0 auto; margin-top: 3px; }
html.nl .nl-smono { font: 400 11.5px var(--nl-mono); color: var(--nl-fg3); white-space: nowrap; }
html.nl .nl-spill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--nl-line-strong); color: var(--nl-fg2); font: 500 10.5px var(--nl-body); white-space: nowrap; }
html.nl .nl-spill--ok { color: var(--nl-ok); border-color: color-mix(in srgb, var(--nl-ok) 40%, transparent); }
html.nl .nl-spill--gen { color: var(--nl-signal); border-color: color-mix(in srgb, var(--nl-signal) 40%, transparent); }
html.nl .nl-spill--bad { color: var(--nl-bad); border-color: color-mix(in srgb, var(--nl-bad) 40%, transparent); }
html.nl .nl-schip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: var(--nl-s2); color: var(--nl-fg2); font: 500 12px var(--nl-body); white-space: nowrap; text-transform: none; letter-spacing: 0; }
html.nl .nl-schip i { width: 7px; height: 7px; border-radius: 50%; background: var(--nl-fg4); }
html.nl .nl-schip--ok i { background: var(--nl-ok); }
html.nl .nl-schip--warn { color: var(--nl-warn); }
html.nl .nl-schip--warn i { background: var(--nl-warn); }
html.nl .nl-schip--line { height: 22px; padding: 0 8px; font-size: 11px; }
html.nl .nl-schip--line i { background: var(--c); border-radius: 2px; }
html.nl .nl-sstate { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; }
html.nl .nl-sstate i { width: 7px; height: 7px; border-radius: 50%; background: var(--nl-fg4); }
html.nl .nl-sstate--ok { color: var(--nl-ok); }
html.nl .nl-sstate--ok i { background: var(--nl-ok); }
html.nl .nl-sstate--warn { color: var(--nl-warn); }
html.nl .nl-sstate--warn i { background: var(--nl-warn); }
html.nl .nl-ssave { font-weight: 400; font-size: 12px; }
html.nl .nl-ssave:empty { display: none; }
html.nl .nl-sspin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: nlSpin 0.8s linear infinite; flex: none; }
@keyframes nlSpin { to { transform: rotate(360deg); } }
html.nl .nl-sshim { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.06) 45%, transparent 70%) var(--nl-s3); background-size: 220% 100%; animation: nlShim 1.4s ease-in-out infinite; }
@keyframes nlShim { 0% { background-position: 120% 0; } 100% { background-position: -100% 0; } }
html.nl .nl-sban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--nl-signal) 35%, transparent); background: var(--nl-signal-soft); color: var(--nl-fg); font: 400 13px var(--nl-body); }
html.nl .nl-sban--quiet { border-color: var(--nl-line); background: var(--nl-s2); color: var(--nl-fg2); }
html.nl .nl-sban--need { border-style: dashed; border-color: color-mix(in srgb, var(--nl-warn) 55%, transparent); background: color-mix(in srgb, var(--nl-warn) 6%, transparent); }
html.nl .nl-sban--need > span { flex: 1 1 260px; }

/* start */
html.nl .nl-sstart { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
html.nl .nl-sstart__h { margin-bottom: 18px; }
html.nl .nl-skits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
html.nl .nl-skc { border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-surface); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; min-height: 214px; text-align: left; }
html.nl .nl-skc:hover { border-color: var(--nl-line-strong); }
html.nl .nl-skc:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 2px; }
html.nl .nl-skc__art { height: 150px; display: grid; gap: 2px; background: var(--nl-line); }
html.nl .nl-skc__art--1 { grid-template-columns: 1fr; }
html.nl .nl-skc__art--2 { grid-template-columns: 1fr 1fr; }
html.nl .nl-skc__art--3 { grid-template-columns: 1fr 1fr 1fr; }
html.nl .nl-skc__art--4 { grid-template-columns: repeat(4, 1fr); }
html.nl .nl-skc__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; min-width: 0; }
html.nl .nl-skc__empty { display: grid; place-items: center; background: var(--nl-s2); color: var(--nl-fg4); }
html.nl .nl-skc__b { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
html.nl .nl-skc__t { display: block; font: 500 14px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-skc__s { display: block; font: 400 12px/1.45 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-skc--new { cursor: default; border-style: dashed; border-color: var(--nl-line-strong); background: transparent; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; }
html.nl .nl-skc__newb { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; padding: 6px; max-width: 240px; }
html.nl .nl-skc__plus { width: 40px; height: 40px; border-radius: 12px; background: var(--nl-signal-soft); color: var(--nl-signal); display: grid; place-items: center; }
html.nl .nl-skc--form { align-items: stretch; justify-content: flex-start; text-align: left; gap: 8px; }
html.nl .nl-skc--form .nl-srow { margin-top: 4px; }
html.nl .nl-srrs { border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-surface); padding: 6px; display: flex; flex-direction: column; }
html.nl .nl-srr { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--nl-fg); cursor: pointer; text-align: left; }
html.nl .nl-srr + .nl-srr { border-top: 1px solid var(--nl-line); border-radius: 0; }
html.nl .nl-srr:hover { background: var(--nl-s2); }
html.nl .nl-srr__th { width: 40px; height: 64px; border-radius: 6px; background: var(--nl-s3); display: grid; place-items: center; overflow: hidden; color: var(--nl-fg4); flex: none; }
html.nl .nl-srr__th img { width: 100%; height: 100%; object-fit: cover; }
html.nl .nl-srr__b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
html.nl .nl-srr__t { font: 500 13px var(--nl-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-srr__s { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Reels home: recent on the right */
@media (min-width: 1180px) {
  html.nl .nl-anim.is-home .nl-anim__main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; row-gap: 14px; max-width: 1240px; align-items: start; }
  html.nl .nl-anim.is-home .nl-anim__main > * { grid-column: 1; }
  html.nl .nl-anim.is-home .nl-anim__main > [data-slot="err"]:empty { display: none; }
  html.nl .nl-anim.is-home .nl-anim__main > .nl-ahome { grid-column: 2; grid-row: 1 / span 8; border: 0; background: transparent; padding: 0; }
}
html.nl .nl-ahome .anim-recent__list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-surface); padding: 6px; }
html.nl .nl-ahome .anim-recent .anim-section__label { font: 500 15px var(--nl-display) !important; color: var(--nl-fg) !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0 0 10px !important; }
html.nl .nl-ahome .anim-recent__row { display: flex; align-items: center; gap: 4px; position: relative; }
html.nl .nl-ahome .anim-recent__row + .anim-recent__row { border-top: 1px solid var(--nl-line); }
html.nl .nl-ahome .anim-recent__item { flex: 1 1 auto; min-width: 0; display: flex !important; align-items: center; gap: 10px; padding: 8px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; text-align: left; }
html.nl .nl-ahome .anim-recent__item:hover { background: var(--nl-s2) !important; }
html.nl .nl-ahome .anim-recent__th { width: 40px; height: 64px; border-radius: 6px; background: var(--nl-s3); overflow: hidden; flex: none; }
html.nl .nl-ahome .anim-recent__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-ahome .anim-recent__tb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
html.nl .nl-ahome .anim-recent__title { font: 500 13px var(--nl-body) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-ahome .anim-recent__sub { font: 400 11.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-ahome .anim-recent__meta { margin-left: auto; flex: none; }
html.nl .nl-ahome .anim-recent__del { position: absolute; right: 4px; top: 4px; width: 22px !important; height: 22px !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: var(--nl-s4) !important; color: var(--nl-fg2) !important; font-size: 11px !important; opacity: 0; transition: opacity 0.15s; }
html.nl .nl-ahome .anim-recent__row:hover .anim-recent__del, html.nl .nl-ahome .anim-recent__del:focus-visible { opacity: 1; }

/* 1 Cast and world */
html.nl .nl-skit { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
html.nl .nl-skit__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.nl .nl-skit__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
html.nl .nl-skit__side { position: sticky; top: 12px; }
html.nl .nl-ssec { padding: 14px 16px 16px; min-width: 0; }
html.nl .nl-ssec__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
html.nl .nl-ssec__h h3 { margin: 0; font: 500 14.5px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-ssec__h h3 span { font: 400 11px var(--nl-mono); color: var(--nl-fg3); margin-left: 6px; }
html.nl .nl-ssec__hint { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-ssec__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
html.nl .nl-ssec--character .nl-ssec__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 168px)); }
html.nl .nl-sel { position: relative; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-s2); overflow: hidden; cursor: pointer; text-align: left; color: var(--nl-fg); }
html.nl .nl-sel:hover { border-color: var(--nl-line-strong); }
html.nl .nl-sel.is-sel { border-color: var(--nl-fg); box-shadow: 0 0 0 1px var(--nl-fg); }
html.nl .nl-sel__art { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--nl-s3); }
html.nl .nl-sel__art > img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
html.nl .nl-sel__art--item > img { object-fit: contain; padding: 8px; box-sizing: border-box; }
html.nl .nl-sbadge { position: absolute; top: 7px; left: 7px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(13,14,17,0.78); color: #f3f1ec; font: 500 10.5px var(--nl-body); display: inline-flex; align-items: center; gap: 5px; }
html.nl .nl-sbadge i { width: 6px; height: 6px; border-radius: 50%; background: var(--nl-ok); }
html.nl .nl-sel__sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 46px; border-radius: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,0.22); background: #efe7da; }
html.nl .nl-sel__sheet img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-sel__sheetw { position: absolute; left: 6px; bottom: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(13,14,17,0.78); color: #f3f1ec; font: 500 10.5px var(--nl-body); display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-sel__sheetw .nl-sspin { width: 9px; height: 9px; border-width: 1.5px; }
html.nl .nl-sel__t { display: block; padding: 8px 10px 0; font: 500 13px var(--nl-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-sel__s { display: block; padding: 0 10px 10px; font: 400 11.5px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-snew { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 230px; padding: 10px; border: 1px dashed var(--nl-line-strong); border-radius: 12px; background: transparent; color: var(--nl-fg2); cursor: pointer; text-align: center; }
html.nl .nl-ssec--place .nl-snew, html.nl .nl-ssec--item .nl-snew { min-height: 0; aspect-ratio: auto; }
html.nl .nl-snew:hover { color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-snew.is-on { border-color: var(--nl-signal); color: var(--nl-fg); background: var(--nl-signal-soft); }
html.nl .nl-snew .nl-skc__plus { width: 32px; height: 32px; border-radius: 50%; border: 1px dashed var(--nl-fg4); background: transparent; color: inherit; }
html.nl .nl-snew__t { font: 500 13px var(--nl-body); }
html.nl .nl-snew__s { font: 400 11.5px/1.4 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-sneed { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 200px; padding: 12px; border: 1px dashed color-mix(in srgb, var(--nl-warn) 55%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--nl-warn) 5%, transparent); }
html.nl .nl-sneed__k { font: 600 10.5px var(--nl-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--nl-warn); }
html.nl .nl-sneed__t { font: 500 13px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-sneed__s { font: 400 11.5px/1.4 var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-sneed .nl-sbtn { margin-top: 4px; }
html.nl .nl-spanel { display: flex; flex-direction: column; border-color: var(--nl-line-strong); }
html.nl .nl-spanel__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-spanel__h h3 { margin: 0; font: 500 16px var(--nl-display); color: var(--nl-fg); display: flex; align-items: baseline; gap: 8px; min-width: 0; }
html.nl .nl-spanel__k { font: 400 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-spanel__b { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-spanel__b > .nl-slabel { margin-top: 2px; }
html.nl .nl-spanel__f { padding: 12px 16px 14px; border-top: 1px solid var(--nl-line); display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-spanel__f--row { flex-direction: row; align-items: center; }
html.nl .nl-spanel--idle .nl-ssub { margin: 0 0 12px; }
html.nl .nl-spanel__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 10px; background: var(--nl-s3); }
html.nl .nl-spanel__img--item { object-fit: contain; aspect-ratio: 1; }
html.nl .nl-ssheet { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #efe7da; position: relative; overflow: hidden; }
html.nl .nl-ssheet--wait { display: grid; place-items: center; background: var(--nl-s3); }
html.nl .nl-ssheet--wait span { position: relative; font: 400 12px var(--nl-body); color: var(--nl-fg3); padding: 0 12px; text-align: center; }
html.nl .nl-sdrop { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px dashed var(--nl-line-strong); border-radius: 10px; }
html.nl .nl-sdrop img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
html.nl .nl-slooks { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; }
html.nl .nl-slook { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--nl-s3); }
html.nl .nl-slook__pick { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
html.nl .nl-slook__pick:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: -2px; }
html.nl .nl-slook img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
html.nl .nl-slook__n { position: absolute; z-index: 1; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(13,14,17,0.75); color: #f3f1ec; font: 500 10.5px var(--nl-mono); display: grid; place-items: center; }
html.nl .nl-slook.is-on { border-color: var(--nl-fg); }
html.nl .nl-slook.is-on .nl-slook__n { background: var(--nl-fg); color: var(--nl-bg); }
html.nl .nl-slook__zoom { position: absolute; z-index: 2; right: 5px; bottom: 5px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(13,14,17,0.72); color: #f3f1ec; display: grid; place-items: center; cursor: zoom-in; opacity: 0; transition: opacity .12s; }
html.nl .nl-slook:hover .nl-slook__zoom, html.nl .nl-slook:focus-within .nl-slook__zoom { opacity: 1; }
html.nl .nl-slook__zoom:focus-visible { outline: 2px solid var(--nl-signal); outline-offset: 1px; }
@media (hover: none) { html.nl .nl-slook__zoom { opacity: 1; } }
/* Look closer */
.nl-sview { position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; padding: 20px; }
.nl-sview__bg { position: absolute; inset: 0; background: rgba(5,6,8,0.82); backdrop-filter: blur(4px); }
html.nl .nl-sview__p { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border: 1px solid var(--nl-line-strong); border-radius: 16px; background: var(--nl-surface); box-shadow: 0 30px 90px rgba(0,0,0,0.55); overflow: hidden; }
html.nl .nl-sview__h { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-sview__h h3 { margin: 0; font: 500 16px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-sview__h h3 span { color: var(--nl-fg3); font-weight: 400; }
html.nl .nl-sview__stage { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 14px 64px; background: var(--nl-bg); }
html.nl .nl-sview__stage img { max-width: 100%; max-height: calc(100vh - 260px); object-fit: contain; border-radius: 10px; display: block; }
html.nl .nl-sview__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--nl-line-strong); background: var(--nl-surface); color: var(--nl-fg); display: grid; place-items: center; cursor: pointer; }
html.nl .nl-sview__nav:hover:not(:disabled) { border-color: var(--nl-fg4); }
html.nl .nl-sview__nav:disabled { opacity: .3; cursor: default; }
html.nl .nl-sview__nav--prev { left: 14px; }
html.nl .nl-sview__nav--next { right: 14px; }
html.nl .nl-sview__strip { display: flex; gap: 6px; padding: 10px 18px 0; overflow-x: auto; }
html.nl .nl-sview__th { position: relative; flex: 0 0 52px; height: 65px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--nl-s3); cursor: pointer; opacity: .65; }
html.nl .nl-sview__th img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
html.nl .nl-sview__th span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(13,14,17,0.75); color: #f3f1ec; font: 500 9px var(--nl-mono); display: grid; place-items: center; }
html.nl .nl-sview__th.is-cur { opacity: 1; border-color: var(--nl-fg3); }
html.nl .nl-sview__th.is-on span { background: var(--nl-fg); color: var(--nl-bg); }
html.nl .nl-sview__th.is-on { opacity: 1; border-color: var(--nl-fg); }
html.nl .nl-sview__f { display: flex; align-items: center; gap: 8px; padding: 12px 18px; }
@media (max-width: 640px) {
  html.nl .nl-sview__stage { padding: 10px 10px 54px; }
  html.nl .nl-sview__nav { top: auto; bottom: 8px; transform: none; }
  html.nl .nl-sview__nav--prev { left: calc(50% - 46px); }
  html.nl .nl-sview__nav--next { right: calc(50% - 46px); }
}
html.nl .nl-slook--wait, html.nl .nl-slook--bad { cursor: default; }
html.nl .nl-slook--bad { display: grid; place-items: center; }
html.nl .nl-slook--bad em { font: 400 10.5px var(--nl-body); font-style: normal; color: var(--nl-fg3); text-align: center; padding: 0 4px; }

/* starting images, looks count */
html.nl .nl-srefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px dashed var(--nl-line-strong); border-radius: 10px; }
html.nl .nl-srefs.is-empty { flex-direction: column; align-items: flex-start; }
html.nl .nl-srefs .nl-snote { margin: 0; }
html.nl .nl-sref { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; background: var(--nl-s3); flex: none; }
html.nl .nl-sref img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-sref__k { position: absolute; left: 3px; bottom: 3px; height: 16px; padding: 0 5px; border-radius: 5px; background: rgba(13,14,17,0.8); color: #f3f1ec; font: 500 9.5px var(--nl-body); display: inline-flex; align-items: center; }
html.nl .nl-sref__x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(13,14,17,0.8); color: #f3f1ec; display: grid; place-items: center; cursor: pointer; padding: 0; }
html.nl .nl-sref__add { gap: 6px; }
html.nl .nl-srefs:not(.is-empty) .nl-sref__add { flex-direction: column; align-items: stretch; margin-left: auto; }
html.nl .nl-scount { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html.nl .nl-sstep { display: inline-flex; align-items: center; border: 1px solid var(--nl-line-strong); border-radius: 9px; background: var(--nl-s2); overflow: hidden; }
html.nl .nl-sstep button { width: 34px; height: 32px; border: 0; background: transparent; color: var(--nl-fg2); font: 500 16px var(--nl-body); cursor: pointer; }
html.nl .nl-sstep button:hover:not(:disabled) { background: var(--nl-s3); color: var(--nl-fg); }
html.nl .nl-sstep button:disabled { opacity: 0.35; cursor: default; }
html.nl .nl-sstep output { min-width: 30px; text-align: center; font: 500 13px var(--nl-mono); color: var(--nl-fg); }
html.nl .nl-slink--c { align-self: center; }
.nl-spick { position: fixed; inset: 0; z-index: 10055; display: grid; place-items: center; padding: 20px; }
.nl-spick__bg { position: absolute; inset: 0; background: rgba(5,6,8,0.72); backdrop-filter: blur(4px); }
html.nl .nl-spick__p { position: relative; width: min(760px, 100%); max-height: min(82vh, 760px); display: flex; flex-direction: column; border: 1px solid var(--nl-line-strong); border-radius: 16px; background: var(--nl-surface); box-shadow: 0 30px 90px rgba(0,0,0,0.5); overflow: hidden; }
html.nl .nl-spick__h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-spick__h h3 { margin: 0; font: 500 16px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-spick__bar { padding: 12px 18px 0; }
html.nl .nl-spick__grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 18px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; }
html.nl .nl-spick__it { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px; border: 1px solid var(--nl-line); border-radius: 11px; background: var(--nl-s2); color: var(--nl-fg); cursor: pointer; text-align: left; overflow: hidden; }
html.nl .nl-spick__it:hover { border-color: var(--nl-line-strong); }
html.nl .nl-spick__it.is-on { border-color: var(--nl-fg); box-shadow: 0 0 0 1px var(--nl-fg); }
html.nl .nl-spick__im { position: relative; display: block; flex: 0 0 auto; aspect-ratio: 1; background: var(--nl-s3); margin-bottom: 6px; overflow: hidden; }
html.nl .nl-spick__im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-spick__im i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.8); background: rgba(13,14,17,0.45); display: grid; place-items: center; color: var(--nl-bg); }
html.nl .nl-spick__it.is-on .nl-spick__im i { background: var(--nl-fg); border-color: var(--nl-fg); }
html.nl .nl-spick__t { padding: 0 9px; font: 500 12.5px var(--nl-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-spick__s { padding: 0 9px; font: 400 11px var(--nl-body); color: var(--nl-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-spick__empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 30px 4px; color: var(--nl-fg3); font: 400 13px var(--nl-body); }
html.nl .nl-spick__f { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--nl-line); }

/* 2 Story */
html.nl .nl-sstory { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 16px; align-items: start; border: 0; margin: 0; padding: 0; min-width: 0; }
html.nl .nl-sstory > .nl-sban { grid-column: 1 / -1; }
html.nl .nl-sstory__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.nl .nl-sstory__side { position: sticky; top: 12px; }
html.nl .nl-sstory[disabled] .nl-sstory__main, html.nl .nl-sstory[disabled] .nl-sstory__side { opacity: 0.7; }
html.nl .nl-sscript { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-sscript__h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.nl .nl-sscript__t { display: inline-flex; align-items: center; gap: 8px; font: 500 14.5px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-swriter { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-s2); }
html.nl .nl-slines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-sline { max-width: none; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 2px 10px 2px 10px; border-radius: 8px; border-left: 3px solid var(--c); background: var(--nl-s2); }
html.nl .nl-sline.is-sel { background: var(--nl-s3); }
html.nl .nl-sline__n { font: 500 11px var(--nl-mono); color: var(--nl-fg3); padding-top: 10px; }
html.nl .nl-sline__t { display: block; width: 100%; min-width: 0; height: 34px; border: 0; background: transparent; color: var(--nl-fg); font: 400 14px/20px var(--nl-body); padding: 7px 0; box-sizing: border-box; resize: none; overflow: hidden; }
html.nl .nl-sline__t:focus { outline: none; }
html.nl .nl-sline__t::placeholder { color: var(--nl-fg4); }
html.nl .nl-sline__s { font: 500 11px var(--nl-mono); color: var(--nl-fg3); padding-top: 10px; }
html.nl .nl-sscenes { padding: 14px; }
html.nl .nl-sscenes__grid { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 2px; align-items: flex-start; }
html.nl .nl-sscene { flex: 0 0 188px; width: 188px; cursor: pointer; text-align: left; outline: none; }
html.nl .nl-sscene__m { position: relative; height: 334px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--nl-s3); }
html.nl .nl-sscene.is-sel .nl-sscene__m { border-color: var(--nl-fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nl-fg) 8%, transparent); }
html.nl .nl-sscene:focus-visible .nl-sscene__m { border-color: var(--nl-signal); }
html.nl .nl-sscene__m > img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nl .nl-sscene__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--nl-fg3); font: 400 12px var(--nl-body); }
html.nl .nl-sscene__ph > span { position: relative; }
html.nl .nl-sscene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.4); }
html.nl .nl-sscene__ph .nl-sbtn { background: var(--nl-surface); }
html.nl .nl-sscene__num { position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 7px; background: rgba(13,14,17,0.78); color: #f3f1ec; font: 500 11px var(--nl-mono); display: inline-flex; align-items: center; gap: 6px; }
html.nl .nl-sscene__num i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
html.nl .nl-sscene__stale { position: absolute; top: 8px; right: 8px; height: 22px; padding: 0 8px; border-radius: 7px; background: rgba(13,14,17,0.78); color: var(--nl-warn); font: 500 10.5px var(--nl-body); display: inline-flex; align-items: center; }
html.nl .nl-sscene__cast { position: absolute; left: 8px; bottom: 8px; }
html.nl .nl-sscene__cast img { width: 26px; height: 26px; border-color: rgba(13,14,17,0.9); }
html.nl .nl-sscene__p { margin-top: 8px; font: 500 12px var(--nl-body); color: var(--nl-fg); }
html.nl .nl-sscene__w { margin-top: 2px; font: 400 12.5px/1.45 var(--nl-body); color: var(--nl-fg2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.nl .nl-sneedchip { display: inline-flex; margin-top: 6px; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--nl-warn) 60%, transparent); color: var(--nl-warn); font: 500 10.5px var(--nl-body); align-items: center; }
html.nl .nl-sscene--add { height: 334px; flex-basis: 150px; width: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--nl-line-strong); border-radius: 12px; background: transparent; color: var(--nl-fg2); font: 500 13px var(--nl-body); }
html.nl .nl-sscene--add:hover { color: var(--nl-fg); border-color: var(--nl-fg4); }
html.nl .nl-sinsp { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
html.nl .nl-sinsp--idle { padding: 18px; }
html.nl .nl-sinsp__h { display: flex; align-items: baseline; gap: 10px; }
html.nl .nl-sinsp__h h3 { margin: 0; font: 500 16px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-sinels { display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-sinel { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 6px; border: 1px solid var(--nl-line); border-radius: 9px; background: var(--nl-s2); }
html.nl .nl-sinel img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; object-position: center 22%; }
html.nl .nl-sinel__t { font: 500 13px var(--nl-body); color: var(--nl-fg); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nl .nl-sinel__k { margin-left: auto; font: 400 11px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-saddmenu { display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--nl-line-strong); border-radius: 10px; background: var(--nl-s2); max-height: 260px; overflow-y: auto; }
html.nl .nl-saddmenu__h { padding: 6px 6px 2px; font: 500 10.5px var(--nl-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--nl-fg3); }
html.nl .nl-saddmenu button { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 0; border-radius: 7px; background: transparent; color: var(--nl-fg); font: 500 12.5px var(--nl-body); cursor: pointer; text-align: left; }
html.nl .nl-saddmenu button:hover { background: var(--nl-s3); }
html.nl .nl-saddmenu button img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; object-position: center 22%; }
html.nl .nl-saddmenu__new { color: var(--nl-fg2) !important; border-top: 1px solid var(--nl-line) !important; border-radius: 0 0 7px 7px !important; margin-top: 4px; padding-top: 8px !important; }
html.nl .nl-squote { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--nl-line-strong); border-left: 3px solid var(--c); background: var(--nl-s2); font: italic 400 13px/1.5 var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-sinsp__row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; }
html.nl .nl-sinsp__row > div { display: flex; flex-direction: column; gap: 8px; }
html.nl .nl-slen { flex: 1 1 110px; min-width: 110px; }
html.nl .nl-slen input[type="range"] { width: 100%; accent-color: var(--nl-fg); margin: 6px 0 0; }
html.nl .nl-sinsp__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }

/* bottom bar */
html.nl .nl-sfoot { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 62px; box-sizing: border-box; padding: 10px 12px 10px 18px; border: 1px solid var(--nl-line-strong); border-radius: 14px; background: color-mix(in srgb, var(--nl-surface) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
html.nl .nl-sfoot__t { font: 500 14px var(--nl-display); color: var(--nl-fg); border: 0; background: transparent; padding: 0; cursor: default; }
html.nl button.nl-sfoot__t { cursor: pointer; text-decoration: underline dotted var(--nl-line-strong); text-underline-offset: 4px; }
html.nl .nl-sfoot__sep { width: 1px; height: 22px; background: var(--nl-line-strong); }
html.nl .nl-sfoot__m { font: 400 12.5px var(--nl-body); color: var(--nl-fg3); }

/* animatic */
.nl-sanim { position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; }
.nl-sanim__bg { position: absolute; inset: 0; background: rgba(5,6,8,0.84); }
.nl-sanim__p { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(360px, 92vw); }
.nl-sanim__stage { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #111318; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.nl-sanim__frame, .nl-sanim__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-sanim__frame img { animation: nlKen 6s ease-out both; }
@keyframes nlKen { from { transform: scale(1); } to { transform: scale(1.06); } }
.nl-sanim__blank { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; color: #e8e6e1; font: 400 14px/1.5 'Instrument Sans', system-ui, sans-serif; border-top: 4px solid var(--c, #9d8cff); }
.nl-sanim__blank b { font: 500 18px 'Figtree', system-ui, sans-serif; }
.nl-sanim__cap { position: absolute; left: 12%; right: 12%; bottom: 18%; text-align: center; color: #fff; font: 700 17px/1.3 'Figtree', system-ui, sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.nl-sanim__wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #a3a09a; font: 400 13px 'Instrument Sans', system-ui, sans-serif; background: #111318; }
.nl-sanim__wait[hidden] { display: none; }
.nl-sanim__ctl { display: flex; align-items: center; gap: 10px; color: #e8e6e1; }
.nl-sanim__ctl .nl-sicon { color: #e8e6e1; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,0.08); display: grid; place-items: center; cursor: pointer; }
.nl-sanim__bar { flex: 1 1 auto; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden; }
.nl-sanim__bar i { display: block; height: 100%; width: 0; background: #e8e6e1; }
.nl-sanim .nl-smono { font: 400 11.5px 'JetBrains Mono', monospace; color: #a3a09a; }
.nl-sanim .nl-sspin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: nlSpin 0.8s linear infinite; }

@media (max-width: 1100px) {
  html.nl .nl-skit, html.nl .nl-sstory { grid-template-columns: minmax(0, 1fr); }
  html.nl .nl-skit__side, html.nl .nl-sstory__side { position: static; }
  html.nl .nl-sstart { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  html.nl .nl-skit__pair { grid-template-columns: minmax(0, 1fr); }
  html.nl .nl-ssec__grid, html.nl .nl-ssec--character .nl-ssec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.nl .nl-sscene { flex-basis: 150px; width: 150px; }
  html.nl .nl-sscene__m, html.nl .nl-sscene--add { height: 266px; }
  html.nl .nl-sfoot { padding: 10px 12px; position: static; }
  html.nl .nl-sfoot__sep { display: none; }
  html.nl .nl-sfoot .nl-grow { display: none; }
  html.nl .nl-sfoot > .nl-sbtn { flex: 1 1 auto; }
  html.nl .nl-skitlook { margin-left: 0; }
}

/* ── Reels: reel length and the editable shot plan ───────────────────────── */
html.nl .nl-alen { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 10px; border: 1px solid var(--nl-line-strong); border-radius: 8px; background: var(--nl-surface); color: var(--nl-fg3); font: 500 12.5px var(--nl-body); }
html.nl .nl-alen[hidden] { display: none; }
html.nl .nl-alen select { border: 0 !important; background: transparent !important; color: var(--nl-fg) !important; font: 500 12.5px var(--nl-body) !important; height: 32px; padding: 0 4px !important; margin: 0 !important; cursor: pointer; }
html.nl .nl-plan { display: flex; flex-direction: column; border-top: 1px solid var(--nl-line); }
html.nl .nl-tplan--edit { border-color: var(--nl-line-strong); }
html.nl .nl-tplan--edit > summary { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px 10px 14px; }
html.nl .nl-tplan--edit[open] > summary { border-radius: 12px 12px 0 0; }
html.nl .nl-tplan__t { font: 500 14px var(--nl-display); }
html.nl .nl-tplan__wait { font: 400 12px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-tplan--edit:not([open]) .nl-tplan__wait { display: none; }
html.nl .nl-tplan--edit[open] .nl-tplan__go { display: none; }
html.nl .nl-plan__art { padding: 0 14px 12px; }
html.nl .nl-plan__art > summary { cursor: pointer; font: 500 12px var(--nl-body); color: var(--nl-fg3); list-style: none; }
html.nl .nl-plan__art > summary::-webkit-details-marker { display: none; }
html.nl .nl-plan__art > summary::before { content: '▸'; display: inline-block; width: 14px; }
html.nl .nl-plan__art[open] > summary::before { content: '▾'; }
html.nl .nl-plan__art p { margin: 8px 0 0; max-height: 200px; overflow-y: auto; font: 400 12.5px/1.6 var(--nl-body); color: var(--nl-fg2); white-space: pre-wrap; }
html.nl .nl-plan__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-plan__h h3 { margin: 0; font: 500 15px var(--nl-display); color: var(--nl-fg); }
html.nl .nl-plan__undo { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--nl-line); background: var(--nl-s2); font: 400 12.5px var(--nl-body); color: var(--nl-fg2); }
html.nl .nl-plan__list { list-style: none; margin: 0; padding: 0; }
html.nl .nl-plan__row { max-width: none; border-bottom: 1px solid var(--nl-line); }
html.nl .nl-plan__row.is-open { background: var(--nl-s2); }
html.nl .nl-plan__row.is-new { box-shadow: inset 3px 0 0 var(--nl-ok); }
html.nl .nl-plan__main { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; }
html.nl .nl-plan__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--nl-line-strong); display: grid; place-items: center; font: 500 11px var(--nl-mono); color: var(--nl-fg2); }
html.nl .nl-plan__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html.nl .nl-plan__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html.nl .nl-plan__tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--nl-signal) 40%, transparent); color: var(--nl-signal); font: 500 10.5px var(--nl-body); }
html.nl .nl-plan__what { margin: 0; max-width: none; font: 400 13.5px/1.5 var(--nl-body); color: var(--nl-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.nl .nl-plan__row.is-open .nl-plan__what, html.nl .nl-plan__row:hover .nl-plan__what { -webkit-line-clamp: unset; }
html.nl .nl-plan__vo { font: italic 400 13px/1.45 var(--nl-body); color: var(--nl-fg2); quotes: '\201C' '\201D'; }
html.nl .nl-plan__novo { font: 400 12px var(--nl-body); color: var(--nl-fg4); }
html.nl .nl-plan__note { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font: 500 12px var(--nl-body); color: var(--nl-ok); }
html.nl .nl-plan__acts { display: flex; align-items: center; gap: 2px; }
html.nl .nl-plan__btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--nl-fg2); font: 500 12px var(--nl-body); cursor: pointer; white-space: nowrap; }
html.nl .nl-plan__btn:hover, html.nl .nl-plan__btn[aria-expanded="true"] { background: var(--nl-s3); color: var(--nl-fg); border-color: var(--nl-line-strong); }
html.nl .nl-plan__ico { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--nl-fg3); cursor: pointer; }
html.nl .nl-plan__ico:hover:not(:disabled) { background: var(--nl-s3); color: var(--nl-fg); }
html.nl .nl-plan__ico:disabled { opacity: 0.3; cursor: default; }
html.nl .nl-plan__ed { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px 50px; }
html.nl .nl-plan__ask { display: flex; flex-wrap: wrap; gap: 8px; }
html.nl .nl-plan__ask .nl-sinput { flex: 1 1 260px; }
html.nl .nl-plan__edrow { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; }
html.nl .nl-plan__edrow > div { display: flex; flex-direction: column; gap: 6px; }
html.nl .nl-plan__chips { display: flex; flex-wrap: wrap; gap: 6px; }
html.nl .nl-plan__chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--nl-line-strong); border-radius: 999px; background: transparent; color: var(--nl-fg2); font: 500 12px var(--nl-body); cursor: pointer; }
html.nl .nl-plan__chip[aria-pressed="true"] { border-color: var(--nl-signal); color: var(--nl-fg); background: var(--nl-signal-soft); }
html.nl .nl-plan__add { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--nl-line); background: var(--nl-s2); }
html.nl .nl-plan__f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
html.nl .nl-plan__row:last-child { border-bottom: 1px solid var(--nl-line); }
html.nl .nl-plan__f #anim-accept { height: 40px; padding: 0 18px; }
@media (max-width: 700px) {
  html.nl .nl-plan__main { grid-template-columns: 24px minmax(0, 1fr); }
  html.nl .nl-plan__acts { grid-column: 2; flex-wrap: wrap; }
  html.nl .nl-plan__ed { padding-left: 14px; }
  html.nl .nl-plan__f .nl-grow { display: none; }
}
/* A plan waiting for Accept is the main thing on the page: the thread grows to show it whole. */
html.nl .nl-ahero #anim-chat-log:has(.nl-tplan--edit) { max-height: none; overflow: visible; }

/* ── Voiceover and caption words: Save, the change box with Tweak, caption lines ── */
html.nl .nl-lane__body .anim-vo-save { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 6px 0 10px; }
html.nl .anim-vo-save__state { margin-right: auto; font: 500 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-lane__body .anim-vo-tweak { display: flex; gap: 8px; align-items: stretch; margin: 0 0 10px; }
html.nl .nl-lane__body .anim-vo-tweak .anim-brief-edit { flex: 1 1 auto; min-height: 54px; }
html.nl .nl-lane__body .anim-vo-tweak .anim-btn { height: auto !important; min-width: 74px; }
html.nl .anim-btn.is-lit { background: var(--nl-signal) !important; color: var(--nl-signal-ink) !important; border: 1px solid transparent !important; box-shadow: 0 0 0 3px var(--nl-signal-soft); }
html.nl .anim-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
html.nl .anim-cap-words { display: flex; flex-direction: column; gap: 5px; font: 500 11.5px var(--nl-body); color: var(--nl-fg3); }
html.nl .nl-lane__body .anim-cap-words .anim-brief-edit { min-height: 72px; }
html.nl .nl-tle__insp.nl-tle__insp--cap { flex-direction: column; align-items: stretch; }
html.nl .nl-tle__caplines { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 6px 12px; max-height: 280px; overflow: auto; }
html.nl .nl-tle__capline { display: flex; align-items: center; gap: 8px; }
html.nl .nl-tle__captime { flex: 0 0 auto; width: 42px; font: 500 11px var(--nl-mono); color: var(--nl-fg3); }
html.nl .nl-tle__capline input { flex: 1 1 auto; min-width: 0; height: 30px; box-sizing: border-box; padding: 0 9px; border: 1px solid var(--nl-line-strong); border-radius: 7px; background: var(--nl-surface); color: var(--nl-fg); font: 400 13px var(--nl-body); }
html.nl .nl-tle__capline input:focus { outline: none; border-color: var(--nl-fg4); }
