/* NEXUS brand layer — loaded last on every page.
   One palette, one type family, one header/footer look across the site. */
:root{
 --b-bg:#f5f6fa;--b-surface:#fff;--b-soft:#eef0f8;--b-ink:#151a2d;--b-muted:#596078;--b-line:#e3e6ef;
 --b-blue:#3346d3;--b-blue-hover:#2737b8;--b-blue-ink:#fff;--b-blue-soft:#eaedff;--b-yellow:#ffd43b;
 --b-radius:16px;--b-shadow:0 1px 2px rgba(21,26,45,.04),0 8px 24px rgba(21,26,45,.06);
 --b-font:"Wanted Sans Variable","Wanted Sans","Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
}
html[data-theme=dark]{
 --b-bg:#0e1120;--b-surface:#161a2c;--b-soft:#1c2136;--b-ink:#eef0fa;--b-muted:#a7adc4;--b-line:#2a3049;
 --b-blue:#8c9bff;--b-blue-hover:#a6b2ff;--b-blue-ink:#0e1120;--b-blue-soft:#232a4a;
 --b-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
}
html,body{--nx-font:var(--b-font);--paper-serif:var(--b-font);--writer-font:var(--b-font);font-family:var(--b-font)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body :is(h1,h2,h3,h4,p,a,button,input,textarea,select,summary,label,li,small,span,strong,em,td,th){font-family:inherit}
::selection{background:#d9deff;color:#151a2d}

/* ---------- page palettes mapped onto the brand ---------- */
#nexus-shared-header{--ns-bg:rgba(255,255,255,.86);--ns-ink:var(--b-ink);--ns-muted:var(--b-muted);--ns-line:var(--b-line);--ns-active:var(--b-blue-soft)}
html[data-theme=dark] #nexus-shared-header{--ns-bg:rgba(14,17,32,.86);--ns-ink:var(--b-ink);--ns-muted:var(--b-muted);--ns-line:var(--b-line);--ns-active:var(--b-blue-soft)}
body.nx-landing-ready,body.nx-landing-ready.nexus-night{--nl-bg:var(--b-surface);--nl-soft:var(--b-bg);--nl-ink:var(--b-ink);--nl-muted:var(--b-muted);--nl-line:var(--b-line);--nl-accent:var(--b-blue);--nl-input:var(--b-surface)}
:root,:root[data-theme=dark]{--kh-bg:var(--b-surface);--kh-ink:var(--b-ink);--kh-muted:var(--b-muted);--kh-line:var(--b-line);--kh-soft:var(--b-bg);--kh-button:var(--b-blue);--kh-button-ink:var(--b-blue-ink)}
body.knowhow-page{--bg:var(--b-bg);--surface:var(--b-surface);--ink:var(--b-ink);--muted:var(--b-muted);--line:var(--b-line);--blue:var(--b-blue);--soft:var(--b-blue-soft);--accent:#fff1b0}
html[data-theme=dark] body.knowhow-page{--accent:#4a3f12}
body.sf-page{--sf-bg:var(--b-bg);--sf-card:var(--b-surface);--sf-ink:var(--b-ink);--sf-muted:var(--b-muted);--sf-line:var(--b-line);--sf-soft:var(--b-soft);--sf-accent:var(--b-blue);--sf-accent-ink:var(--b-blue-ink);--sf-pressed:var(--b-blue-soft)}
body:is(.nexus-magazine-page,.blog-admin){--ink:var(--b-ink);--muted:var(--b-muted);--line:var(--b-line);--paper:var(--b-surface);--accent:var(--b-blue);--soft:var(--b-bg)}
body.nx-checkout{--line:var(--b-line);--muted:var(--b-muted);--accent:var(--b-blue)}

/* ---------- shared header ---------- */
#nexus-shared-header{--ns-announcement-height:0px;background:var(--ns-bg)!important;-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--ns-line)!important;font-family:var(--b-font)!important}
:root{--ns-announcement-height:0px!important}
#nexus-shared-header .ns-announcement:not(.ns-wadiz){display:none!important}
/* Wadiz funding strip above the navigation: shown on public pages, the home and plans; hidden on focused work pages
   (tool tabs here, the shortform and image editors and blog management are stripped at build). site-navigation.js sets the
   wording by date and hides it after the funding or when the operator turns it off. The bar grows instead of clipping. */
#nexus-shared-header .ns-wadiz{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:36px;height:auto;padding:6px 16px;font-size:13px;line-height:22px}
#nexus-shared-header .ns-wadiz .ns-wadiz-full{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
#nexus-shared-header .ns-wadiz .ns-wadiz-short{display:none}
#nexus-shared-header .ns-wadiz[hidden],body[data-page]:not([data-page=home]):not([data-page=plans]) #nexus-shared-header .ns-wadiz{display:none!important}
:root:has(#nexus-shared-header .ns-wadiz:not([hidden])){--ns-announcement-height:36px!important}
:root:has(body[data-page]:not([data-page=home]):not([data-page=plans]) #nexus-shared-header){--ns-announcement-height:0px!important}
/* Anchor jumps land below the taller sticky header while the strip shows. */
html:has(#nexus-shared-header .ns-wadiz:not([hidden])):not(:has(body[data-page]:not([data-page=home]):not([data-page=plans]))){scroll-padding-top:112px!important}
@media(max-width:650px){html:has(#nexus-shared-header .ns-wadiz:not([hidden])):not(:has(body[data-page]:not([data-page=home]):not([data-page=plans]))){scroll-padding-top:100px!important}}
@media(max-width:650px){#nexus-shared-header .ns-wadiz{flex-direction:row;min-height:36px;padding:7px 12px;font-size:13px;line-height:22px}#nexus-shared-header .ns-wadiz .ns-wadiz-full{display:none}#nexus-shared-header .ns-wadiz .ns-wadiz-short{display:inline}}
#nexus-shared-header .ns-header-inner{max-width:1200px;min-height:68px;padding:0 28px;gap:28px}
#nexus-shared-header .ns-brand{gap:9px;font-size:16px;letter-spacing:.08em;font-weight:800;color:var(--b-ink)}
#nexus-shared-header .ns-brand img{width:32px;height:32px}
#nexus-shared-header .ns-navigation{gap:2px}
#nexus-shared-header .ns-navigation a,#nexus-shared-header .ns-tool-menu>summary{font-size:14px;font-weight:600;color:var(--b-muted);border-radius:999px;padding:9px 14px;min-height:40px}
#nexus-shared-header .ns-navigation a:hover,#nexus-shared-header .ns-navigation a[aria-current=page],#nexus-shared-header .ns-tool-menu>summary:hover,#nexus-shared-header .ns-tool-menu[open]>summary,#nexus-shared-header .ns-tool-menu[data-current=true]>summary{color:var(--b-blue);background:var(--b-blue-soft)}
#nexus-shared-header .ns-tool-popover{border-radius:16px;border:1px solid var(--b-line);background:var(--b-surface);box-shadow:var(--b-shadow);padding:8px}
#nexus-shared-header .ns-tool-popover a{border-radius:10px;font-size:14px;color:var(--b-ink)}
#nexus-shared-header .ns-tool-popover a:hover{background:var(--b-blue-soft);color:var(--b-blue)}
#nexus-shared-header .ns-tool-popover small{background:var(--b-yellow);color:#151a2d;border-radius:999px;padding:1px 7px;font-weight:700}
#nexus-shared-header .ns-header-actions{gap:8px}
#nexus-shared-header .ns-theme{width:40px;min-height:40px;height:40px;padding:0;justify-content:center;border-radius:999px;border:1px solid var(--b-line);background:transparent;color:var(--b-muted)}
#nexus-shared-header .ns-theme [data-theme-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#nexus-shared-header .ns-theme>span:first-child{display:block!important;font-size:16px}
#nexus-shared-header .ns-service-link{font-size:14px;font-weight:600;color:var(--b-muted);text-decoration:none;padding:9px 8px}
#nexus-shared-header .ns-service-link:hover{color:var(--b-blue)}
#nexus-shared-header .ns-account-link,#nexus-shared-header .nexus-account-menu>summary{min-height:40px;padding:8px 18px;border-radius:999px;border:0!important;background:var(--b-blue)!important;color:var(--b-blue-ink)!important;font-size:14px;font-weight:700}
#nexus-shared-header .ns-account-link:hover,#nexus-shared-header .nexus-account-menu>summary:hover{background:var(--b-blue-hover)!important}
#nexus-shared-header :is(a,button,summary):focus-visible{outline:3px solid #9aa6ff;outline-offset:2px}
@media(max-width:980px){
 #nexus-shared-header .ns-header-inner{padding:8px 20px;gap:6px 16px;min-height:0}
 #nexus-shared-header .ns-navigation{justify-content:flex-start;padding-bottom:6px}
}
@media(max-width:650px){
 #nexus-shared-header .ns-header-inner{padding:8px 14px 6px;gap:4px 8px}
 #nexus-shared-header .ns-brand{font-size:14px}
 #nexus-shared-header .ns-brand span{font-size:14px!important}
 #nexus-shared-header .ns-brand img{width:28px;height:28px}
 #nexus-shared-header .ns-service-link{display:none}
 #nexus-shared-header .ns-theme{width:36px;height:36px;min-height:36px}
 #nexus-shared-header .ns-account-link,#nexus-shared-header .nexus-account-menu>summary{min-height:36px;padding:6px 14px;font-size:13px}
 #nexus-shared-header .ns-navigation{display:flex!important;gap:4px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;flex-wrap:nowrap}
 #nexus-shared-header .ns-navigation::-webkit-scrollbar{display:none}
 #nexus-shared-header .ns-navigation a,#nexus-shared-header .ns-tool-menu>summary{font-size:13px;padding:6px 12px;min-height:34px;white-space:nowrap}
 #nexus-shared-header .ns-tool-menu{position:static}
 #nexus-shared-header .ns-tool-popover{left:12px;right:12px;width:auto}
}

/* ---------- shared footer ---------- */
#nexus-site-footer{width:100%!important;max-width:none!important;margin:72px 0 0!important;padding:44px max(24px,calc((100% - 1144px)/2)) 32px!important;border-top:1px solid var(--b-line)!important;background:var(--b-bg)!important;color:var(--b-muted)!important;font-family:var(--b-font)!important;font-size:13px!important}
#nexus-site-footer .nexus-footer-brand{color:var(--b-ink)!important;letter-spacing:.06em}
#nexus-site-footer a{color:var(--b-ink)!important}
#nexus-site-footer a:hover{color:var(--b-blue)!important}
#nexus-site-footer .nexus-footer-links a{font-size:13px!important;min-height:36px}
@media(prefers-color-scheme:dark){html:not([data-theme=dark]) #nexus-site-footer{background:var(--b-bg)!important;color:var(--b-muted)!important;border-color:var(--b-line)!important}html:not([data-theme=dark]) #nexus-site-footer a{color:var(--b-ink)!important}}

/* ---------- workspace sign-in / membership notice ---------- */
body.reference-first #text[data-access-locked=true]>.ns-access-notice:not([hidden]),[data-access-locked=true]>.ns-access-notice:not([hidden]){display:block!important}
.ns-access-notice{max-width:640px;margin:56px auto;padding:48px 36px;text-align:center;background:var(--b-surface);border:1px solid var(--b-line);border-radius:24px;box-shadow:var(--b-shadow);color:var(--b-ink)}
.ns-access-notice::before{content:"";display:block;width:64px;height:64px;margin:0 auto 18px;background:url(/nexus-mark-025b257c77a25a1a.png) center/contain no-repeat}
.ns-access-kicker{color:var(--b-blue)!important;letter-spacing:.16em}
.ns-access-notice p{color:var(--b-muted)!important}
.ns-access-notice a{border-radius:999px!important;border:1px solid var(--b-line)!important;background:var(--b-surface)!important;color:var(--b-ink)!important;font-weight:700}
.ns-access-notice a.ns-access-primary{background:var(--b-blue)!important;border-color:var(--b-blue)!important;color:var(--b-blue-ink)!important}
html[data-theme=dark] .ns-access-notice{background:var(--b-surface);border-color:var(--b-line);color:var(--b-ink)}

/* ---------- home ---------- */
body.nx-landing-ready{background:var(--b-surface)}
.nx-landing .nx-hero{position:relative;overflow:hidden;background:radial-gradient(1200px 520px at 78% 10%,var(--b-blue-soft),transparent 60%),var(--b-bg);padding:72px 0 80px!important;border:0}
.nx-landing .nx-hero-inner{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:40px;text-align:left!important;max-width:1144px}
.nx-landing .nx-hero-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.nx-landing .nx-announcement{margin:0 0 22px!important;border-radius:999px!important;background:var(--b-surface)!important;border:1px solid var(--b-line)!important;color:var(--b-muted)!important;font-size:13px!important;padding:6px 14px 6px 6px!important;box-shadow:var(--b-shadow)}
.nx-landing .nx-announcement span{background:var(--b-yellow)!important;color:#151a2d!important;border:0!important;border-radius:999px!important;font-weight:800;padding:3px 10px!important}
.nx-landing .nx-hero h1{font-size:clamp(38px,5.4vw,64px)!important;line-height:1.14!important;letter-spacing:-.045em!important;font-weight:800!important;color:var(--b-ink)!important;margin:0!important;text-align:left!important}
.nx-landing .nx-hero-description{margin:22px 0 0!important;font-size:18px!important;line-height:1.7!important;color:var(--b-muted)!important;text-align:left!important}
.nx-landing .nx-start{width:100%;max-width:560px;margin:34px 0 0!important;text-align:left}
.nx-landing .nx-start-options{justify-content:flex-start!important;gap:6px!important;margin-bottom:12px!important;border:0!important}
.nx-landing .nx-start-options button{border-radius:999px!important;border:1px solid var(--b-line)!important;background:var(--b-surface)!important;color:var(--b-muted)!important;padding:8px 16px!important;font-size:14px!important;font-weight:700!important;min-height:38px}
.nx-landing .nx-start-options button::after{display:none!important}
.nx-landing .nx-start-options button[aria-pressed=true]{background:var(--b-ink)!important;color:var(--b-surface)!important;border-color:var(--b-ink)!important}
.nx-landing .nx-start-options small{background:var(--b-yellow);color:#151a2d;border-radius:999px;padding:1px 7px;margin-left:4px;font-weight:800}
.nx-landing #nx-start-form{display:flex!important;align-items:stretch;gap:8px;background:var(--b-surface)!important;border:1px solid var(--b-line)!important;border-radius:20px!important;padding:8px!important;box-shadow:var(--b-shadow)!important}
.nx-landing #nx-start-input{flex:1;min-height:56px!important;border:0!important;background:transparent!important;padding:12px 12px!important;font-size:16px!important;color:var(--b-ink)!important;resize:none;box-shadow:none!important}
.nx-landing #nx-start-form .nx-button{border-radius:14px!important;padding:0 22px!important;min-height:56px;white-space:nowrap}
.nx-landing #nx-start-hint{margin:12px 4px 0!important;font-size:13px!important;color:var(--b-muted)!important;text-align:left!important}
.nx-landing .nx-example-link{margin-top:22px!important;font-size:14px!important;color:var(--b-blue)!important;font-weight:700}
.nx-landing .nx-hero-visual{position:relative;display:grid;place-items:center;min-height:420px}
.nx-landing .nx-hero-visual img{width:min(420px,100%);height:auto;filter:drop-shadow(0 40px 48px rgba(51,70,211,.28));animation:nxFloat 6s ease-in-out infinite}
@keyframes nxFloat{50%{transform:translateY(-10px)}}
@media(prefers-reduced-motion:reduce){.nx-landing .nx-hero-visual img{animation:none}}
.nx-landing .nx-button-dark{background:var(--b-blue)!important;border-color:var(--b-blue)!important;color:var(--b-blue-ink)!important}
.nx-landing .nx-button-dark:hover{background:var(--b-blue-hover)!important}
.nx-landing .nx-button-outline{border-radius:999px!important;border:1px solid var(--b-line)!important;background:var(--b-surface)!important;color:var(--b-ink)!important}
.nx-landing .nx-button-outline:hover{border-color:var(--b-blue)!important;color:var(--b-blue)!important}
.nx-landing .nx-eyebrow{color:var(--b-blue)!important;font-weight:800!important;letter-spacing:.12em!important;font-size:12px!important}
.nx-landing h2{letter-spacing:-.04em!important;font-weight:800!important;color:var(--b-ink)!important}
.nx-landing .nx-short-gallery{background:var(--b-surface)!important;padding-top:88px!important}
.nx-landing .nx-short-film{border-radius:22px!important;overflow:hidden}
.nx-landing .nx-gallery-arrows button,#nx-motion-toggle{border-radius:999px!important;border:1px solid var(--b-line)!important;background:var(--b-surface)!important;color:var(--b-ink)!important}
.nx-landing .nx-text-link{color:var(--b-blue)!important;font-weight:800!important}
.nx-landing .nx-how-band{background:var(--b-bg)!important;border:0!important}
.nx-landing .nx-steps{gap:16px!important;border:0!important}
.nx-landing .nx-steps li{background:var(--b-surface);border:1px solid var(--b-line)!important;border-radius:var(--b-radius);padding:28px 26px!important;box-shadow:var(--b-shadow)}
.nx-landing .nx-steps li>span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--b-blue-soft);color:var(--b-blue)!important;font-weight:800;font-size:13px}
.nx-landing .nx-tool-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0!important}
.nx-landing .nx-tool-list>a{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:14px;padding:26px!important;border:1px solid var(--b-line)!important;border-radius:var(--b-radius);background:var(--b-surface);box-shadow:var(--b-shadow);transition:transform .15s ease,border-color .15s ease;min-height:180px;position:relative}
.nx-landing .nx-tool-list>a:hover{transform:translateY(-2px);border-color:var(--b-blue)!important}
.nx-landing .nx-tool-list>a>span:last-child{position:absolute;right:22px;top:22px;color:var(--b-blue)}
.nx-landing .nx-tool-number{color:var(--b-blue)!important;font-weight:800;letter-spacing:.1em;font-size:11px!important}
.nx-landing .nx-tool-list h3{font-size:20px!important;letter-spacing:-.03em;color:var(--b-ink)!important}
.nx-landing .nx-tool-list small{background:var(--b-yellow);color:#151a2d;border-radius:999px;padding:1px 7px;font-weight:800;font-size:11px}
.nx-landing .nx-secondary-links a{border-radius:999px;border:1px solid var(--b-line);padding:8px 14px;background:var(--b-surface);color:var(--b-ink)!important;text-decoration:none}
.nx-landing .nx-secondary-links a:hover{border-color:var(--b-blue);color:var(--b-blue)!important}
.nx-landing .nx-book-band{background:linear-gradient(180deg,var(--b-bg),var(--b-blue-soft))!important;border:0!important}
.nx-landing .nx-book-cover{display:block;width:min(300px,70vw);height:auto;border-radius:10px;box-shadow:0 30px 60px rgba(21,26,45,.18),0 2px 6px rgba(21,26,45,.08);transform:rotate(-3deg)}
.nx-landing .nx-book-inner{align-items:center!important;gap:64px!important}
.nx-landing .nx-faq details,.nx-landing .nx-recent details{border-color:var(--b-line)!important}
.nx-landing .nx-faq summary{font-weight:700;color:var(--b-ink)}
@media(max-width:900px){
 .nx-landing .nx-hero{padding:40px 0 48px!important}
 .nx-landing .nx-hero-inner{grid-template-columns:1fr;gap:8px}
 .nx-landing .nx-hero-visual{order:-1;min-height:0;height:150px;justify-items:start}
 .nx-landing .nx-hero-visual img{width:132px}
 .nx-landing .nx-tool-list{grid-template-columns:1fr}
 .nx-landing .nx-tool-list>a{min-height:0}
}
@media(max-width:650px){
 .nx-landing .nx-hero{padding:28px 0 40px!important}
 .nx-landing .nx-hero-inner{padding:0 18px!important}
 .nx-landing .nx-hero-visual{height:104px}
 .nx-landing .nx-hero-visual img{width:96px}
 .nx-landing .nx-hero h1{font-size:34px!important}
 .nx-landing .nx-hero h1 br{display:block}
 .nx-landing .nx-hero-description{font-size:16px!important;margin-top:14px!important}
 .nx-landing .nx-hero-description br{display:none}
 .nx-landing .nx-start{margin-top:24px!important}
 .nx-landing #nx-start-form{flex-direction:column;border-radius:18px!important}
 .nx-landing #nx-start-form .nx-button{min-height:50px;justify-content:center}
 .nx-landing .nx-start-options{overflow-x:auto;flex-wrap:nowrap!important}
 .nx-landing .nx-start-options button{white-space:nowrap}
 .nx-landing .nx-short-gallery{padding-top:56px!important}
 .nx-landing .nx-steps li{padding:22px 20px!important}
 .nx-landing .nx-book-inner{gap:32px!important;text-align:left;flex-direction:column!important;align-items:flex-start!important}
 .nx-landing .nx-book-cover{width:200px;margin:0 auto}
 .nx-landing .nx-book-inner>div{width:100%}
}

/* ---------- know-how / e-book pages ---------- */
body.knowhow-page{background:var(--b-bg)}
body.knowhow-page :is(.kh-button,.ebook-button,a.button,.button-primary){border-radius:999px}
body.knowhow-page :is(h1,h2){letter-spacing:-.04em}

/* ---------- info pages (about, policy, support) ---------- */
body.nexus-info-page{background:var(--b-bg)!important;color:var(--b-ink)}
body.nexus-info-page :is(h1,h2){letter-spacing:-.04em;color:var(--b-ink)}

/* ---------- shortform ---------- */
body.sf-page{background:var(--b-bg)}

/* ---------- workspace app: buttons and accents ---------- */
body.nexus-writing-only :is(.primary-button,.button-primary,.btn-primary,button.primary,.run-button,.generate-button){background:var(--b-blue)!important;border-color:var(--b-blue)!important;color:var(--b-blue-ink)!important;border-radius:12px}

/* signed-out workspace: keep only the sign-in card */
body:has([data-access-locked=true]>.ns-access-notice:not([hidden])) .privacy-note{display:none!important}
/* Inline SVG icons work with the magazine's self-only image policy. */
#nexus-shared-header .ns-theme>span:first-child{display:flex!important;align-items:center;justify-content:center;width:18px;height:18px;font-size:0!important;background:none;-webkit-mask:none;mask:none;flex:none}
#nexus-shared-header .ns-theme .ns-theme-icon svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor}
#nexus-shared-header .ns-theme .ns-theme-icon .ns-theme-sun{display:none}
html[data-theme=dark] #nexus-shared-header .ns-theme .ns-theme-icon .ns-theme-moon{display:none}
html[data-theme=dark] #nexus-shared-header .ns-theme .ns-theme-icon .ns-theme-sun{display:block}
#nexus-shared-header .ns-theme:hover{color:var(--b-blue);border-color:var(--b-blue)}
.nx-landing .nx-announcement>span{white-space:nowrap;flex-shrink:0}
body.nexus-info-page{--info-bg:var(--b-bg);--info-surface:var(--b-surface);--info-text:var(--b-ink);--info-muted:var(--b-muted);--info-line:var(--b-line);--info-soft:var(--b-soft);--info-accent:var(--b-blue);--info-button:var(--b-blue);--info-button-text:var(--b-blue-ink)}
body.nexus-info-page .info-primary-action{border-radius:999px!important}
@media(max-width:650px){.nx-landing .nx-announcement{font-size:12px!important;gap:8px!important;padding:6px 12px 6px 6px!important}}
/* workspace canvas: same calm background as the rest of the site */
html:not([data-theme=dark]) body.nexus-paper:not(.nexus-night){background:var(--b-bg)!important}
html:not([data-theme=dark]) body.nexus-paper:not(.nexus-night)>main{background:var(--b-bg)!important}
/* one typeface everywhere (video font samples, mock covers and code keep their own) */
body :not(code,pre,kbd,samp,svg,svg *,[style*="font-family"],.ebook-cover-title,.kh-visual-blog>strong,.preset-sample,#clip-preview-caption,.channel-preview-header strong,.nexus-video-font,[data-font-sample]){font-family:var(--b-font)!important}
body :is(h1,h2,h3){font-style:normal}
#trends .category-chips button{border-radius:999px}
#trends .category-chips button.active{background:var(--b-blue)!important;border-color:var(--b-blue)!important;color:var(--b-blue-ink)!important}
/* ---------- login ---------- */
#login{padding:40px 0 24px}
#login .auth-shell{max-width:980px;border:1px solid var(--b-line)!important;border-radius:28px!important;background:var(--b-surface)!important;box-shadow:0 30px 70px rgba(21,26,45,.10);overflow:hidden}
#login .auth-story{position:relative;overflow:hidden;min-height:560px;padding:44px 44px 40px!important;border-radius:0!important;color:#fff!important;background:radial-gradient(70% 60% at 78% 26%,rgba(124,140,255,.45) 0%,rgba(124,140,255,0) 70%),linear-gradient(165deg,#1f2a7a 0%,#141a4d 100%)!important}
#login .auth-wordmark{position:relative;z-index:1;font-size:15px!important;letter-spacing:.14em!important;color:rgba(255,255,255,.82)!important;font-weight:700}
#login .auth-mark{position:absolute;z-index:0;right:34px;top:58px;width:220px;height:auto;animation:nxFloat 6s ease-in-out infinite;filter:drop-shadow(0 30px 40px rgba(10,16,70,.45));opacity:.98}
#login .auth-story h2{position:relative;z-index:1;margin:auto 0 22px!important;font-size:38px!important;line-height:1.32!important;letter-spacing:-.04em!important;font-weight:800!important;color:#fff!important}
#login .auth-points{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:grid;gap:12px}
#login .auth-points li{display:flex;align-items:center;gap:10px;font-size:15px;color:rgba(255,255,255,.88)}
#login .auth-points li::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffd43b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center/14px no-repeat}
#login .auth-form{display:flex;flex-direction:column;justify-content:center;padding:56px 52px!important;background:var(--b-surface)!important;border:0!important;box-shadow:none!important}
#login .auth-form h2{font-size:26px!important;font-weight:800!important;letter-spacing:-.035em!important;color:var(--b-ink)!important;margin:0 0 8px!important}
#login .auth-form>p{color:var(--b-muted)!important;font-size:15px;margin:0}
#login .auth-notice{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;margin:18px 0 26px!important;padding:7px 12px;border-radius:999px;background:var(--b-blue-soft);color:var(--b-blue)!important;font-size:13px!important;font-weight:600}
#login .auth-notice::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--b-blue)}
#login .social-login-buttons{display:grid;gap:10px}
#login [data-social]{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin:0!important;padding:0 20px;border-radius:14px!important;font-size:15.5px!important;font-weight:700!important;letter-spacing:-.01em;box-shadow:none!important;transition:transform .15s ease,filter .15s ease}
#login [data-social]::before{content:"";position:absolute;left:20px;top:50%;width:22px;height:22px;transform:translateY(-50%);background:center/contain no-repeat}
#login [data-social]:not(:disabled):hover{transform:translateY(-1px);filter:brightness(.97)}
#login [data-social]:disabled{opacity:.55;cursor:not-allowed}
#login [data-social=google]{background:#fff!important;color:#1f1f1f!important;border:1px solid #dadce0!important}
#login [data-social=google]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.6 5.4 2.7 13.2l7.9 6.2C12.5 13.6 17.8 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.7 6c4.5-4.2 6.9-10.3 6.9-17.7z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.4-.8-3-.8-4.6s.3-3.2.8-4.6l-7.9-6.2C1 16.5 0 20.1 0 24s1 7.5 2.7 10.8l7.8-6.2z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.7-6c-2.2 1.5-5 2.3-8.2 2.3-6.2 0-11.5-4.1-13.4-9.8l-7.9 6.2C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E")}
#login [data-social="custom:naver"]{background:#03c75a!important;color:#fff!important;border:1px solid #03c75a!important}
#login [data-social="custom:naver"]::before{width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M13.6 10.7 6.1 0H0v20h6.4V9.3L13.9 20H20V0h-6.4z'/%3E%3C/svg%3E")}
#login [data-social=kakao]{background:#fee500!important;color:rgba(0,0,0,.85)!important;border:1px solid #fee500!important}
#login [data-social=kakao]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3C6.5 3 2 6.5 2 10.8c0 2.8 1.9 5.2 4.7 6.6l-1 3.6c-.1.3.3.6.6.4l4.2-2.8c.5.1 1 .1 1.5.1 5.5 0 10-3.5 10-7.9S17.5 3 12 3z'/%3E%3C/svg%3E")}
#login #social-login-status{min-height:0;margin:14px 0 0!important;color:var(--b-muted)!important}
#login #social-login-status:empty{display:none}
#login .auth-terms{margin-top:26px!important;padding-top:20px;border-top:1px solid var(--b-line);font-size:13px!important;color:var(--b-muted)!important}
#login .auth-terms a{color:var(--b-ink)!important;font-weight:600;text-decoration:underline;text-underline-offset:3px}
html[data-theme=dark] #login .auth-shell{box-shadow:0 30px 70px rgba(0,0,0,.35)}
html[data-theme=dark] #login [data-social=google]{border-color:#fff!important}
@media(max-width:760px){
 #login{padding:12px 0}
 #login .auth-shell{grid-template-columns:1fr!important;border-radius:22px!important}
 #login .auth-story{min-height:0;padding:28px 24px!important}
 #login .auth-mark{width:104px;top:18px;right:18px}
 #login .auth-story h2{margin:34px 0 16px!important;font-size:26px!important}
 #login .auth-story h2 br{display:inline!important}
 #login .auth-points li{font-size:14px}
 #login .auth-form{padding:30px 22px!important}
 #login .auth-form h2{font-size:22px!important}
}
@media(prefers-reduced-motion:reduce){#login .auth-mark{animation:none}}
/* admin dashboard numbers stay readable in both themes */
#admin .admin-metrics>.panel{background:var(--b-surface)!important;border:1px solid var(--b-line)!important;border-radius:16px!important}
#admin .admin-metrics span{color:var(--b-muted)!important}
#admin .admin-metrics strong{color:var(--b-ink)!important;font-weight:800}
/* blog photo ratio picker */
.blog-photo-ratio{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:10px 0 4px}
.blog-photo-ratio button{flex:1;min-height:38px;border-radius:999px;border:1px solid var(--b-line);background:var(--b-surface);color:var(--b-muted);font-size:13px;font-weight:600;cursor:pointer}
.blog-photo-ratio button[aria-pressed=true]{background:var(--b-blue-soft);border-color:var(--b-blue);color:var(--b-blue)}
#blog-photo-result img{width:100%;height:auto;border-radius:12px}
/* Phones: sign-in buttons first, the brand story shortened underneath */
@media(max-width:650px){
 #login .auth-shell{display:flex!important;flex-direction:column}
 #login .auth-form{order:-1;padding:24px 20px 22px!important}
 #login .auth-form h2{font-size:22px!important}
 #login .auth-notice{margin:14px 0 18px!important}
 #login .auth-story{padding:20px!important}
 #login .auth-mark{width:64px;top:14px;right:14px}
 #login .auth-story h2{margin:14px 0 12px!important;font-size:19px!important;padding-right:64px}
 #login .auth-points{gap:8px}
 #login .auth-points li{font-size:14px}
 #login .auth-terms{margin-top:18px!important;padding-top:14px}
 #login .auth-terms a{display:inline-flex;align-items:center;min-height:44px}
}
