/* Two-position vertical theme control; existing bar dimensions and spacing remain independent. */
.profile-toolbar{display:flex;align-items:flex-end;gap:4px;width:max-content;position:relative;left:50%;transform:translateX(-50%)}
.profile-toolbar>.profile-actions{flex:none;margin-inline:0}
.theme-toggle{display:grid;place-items:center;flex:none;align-self:flex-end;width:44px;height:58px;margin:0;padding:0;border:0;border-radius:17px;background:none;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-appearance:none;appearance:none}
.theme-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.theme-track{display:block;position:relative;width:32px;height:58px;border:1px solid #d6dcd5;border-radius:18px;background:#e1e6e0;box-shadow:inset 2px 3px 4px #64716a40,inset -2px -3px 4px #ffffffde,0 1px 0 #fff}
.theme-thumb{position:absolute;left:2px;top:2px;width:26px;height:26px;border:1px solid #ffffffc4;border-radius:50%;background:linear-gradient(135deg,#fff,#eef2ed);box-shadow:1px 2px 4px #4b585c45,inset 0 1px 1px #fff;transform:translateY(0);transition:transform 180ms cubic-bezier(.2,.7,.25,1)}
.theme-icon{position:absolute;left:7px;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;opacity:.8}
.theme-sun{top:7px;color:#526156}
.theme-moon{bottom:7px;color:#63736a;transform:translate(.8px,-.8px)}
html[data-theme="dark"] .theme-thumb{transform:translateY(26px);background:linear-gradient(135deg,#858b94,#747b86);border-color:#b2bbc966;box-shadow:1px 2px 4px #040609b3,inset 0 1px 1px #c9d0d9a6}
html[data-theme="dark"] .theme-track{background:#111317;border-color:#272b32;box-shadow:inset 2px 3px 4px #040609b3,inset -1px -1px 3px #444a5410}
html[data-theme="dark"] .theme-sun{color:#aeb4be}
html[data-theme="dark"] .theme-moon{color:#f4f5f7}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}

/* Match the three-tab frame to the accepted inset theme track. Hire is untouched. */
.profile-actions{background:#e1e6e0;border-color:#d6dcd5;box-shadow:inset 2px 3px 4px #64716a40,inset -2px -3px 4px #ffffffde,0 1px 0 #fff}
.profile-actions::before{box-sizing:border-box;border:1px solid #ffffffc4;background:linear-gradient(135deg,#fff,#eef2ed);box-shadow:1px 2px 4px #4b585c45,inset 0 1px 1px #fff}
.profile-actions .navigation a{text-shadow:0 1px 0 #ffffffb3}
.profile-actions .navigation a.active{text-shadow:none}

/* Near-black charcoal with a restrained blue hint; accepted depth and light mode stay intact. */
html[data-theme="dark"]{color-scheme:dark;--paper:#181a1f;--ink:#eceef1;--muted:#b7bbc4;--line:#383c45;--blue:#9eabc5;--social-gray:#c3c7d0;--theme-surface:#202227;--theme-raised:#292c32;--theme-hover:#32363e;--theme-frame:#262930;--theme-border:#424750}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] .profile-actions{background:#111317;border-color:#272b32;box-shadow:inset 2px 3px 4px #040609b3,inset -1px -1px 3px #444a5410}
html[data-theme="dark"] .profile-actions::before{background:linear-gradient(135deg,#858b94,#747b86);border-color:#b2bbc966;box-shadow:1px 2px 4px #040609b3,inset 0 1px 1px #c9d0d9a6}
html[data-theme="dark"] .profile-actions .navigation a{color:var(--muted);text-shadow:0 1px 1px #04060999}
html[data-theme="dark"] .profile-actions .navigation a:is(:hover,:focus-visible){color:var(--ink)}
html[data-theme="dark"] .profile-actions .navigation a.active{color:#080a0f;text-shadow:0 1px 0 #cbd1d966}

html[data-theme="dark"] .social-button{background:linear-gradient(180deg,#2c3036,#24272d);border-color:var(--line);color:var(--ink);box-shadow:0 1px 2px #04060933,inset 0 1px 0 #c7cdd60f}
html[data-theme="dark"] .social-youtube{--brand:#ffb0a9;--tint:#49333e}
html[data-theme="dark"] .social-behance{--brand:#b4caff;--tint:#303c5b}
html[data-theme="dark"] .featured-socials .social-gumroad{--brand:#ffc7ed;--tint:#48364d;--gumroad-pink:#bf80aa}
html[data-theme="dark"] .social-button[href]:is(:hover,:focus-visible){background:var(--tint);border-color:var(--brand);color:var(--brand);box-shadow:0 2px 5px #04060940,inset 0 1px 0 #c7cdd61a}
html[data-theme="dark"] .secondary-socials .social-icon{background:#1e2126;border-color:var(--line);color:var(--social-gray)}
html[data-theme="dark"] .secondary-socials .social-icon[href]:is(:hover,:focus-visible){background:var(--theme-hover);border-color:#87909e}
html[data-theme="dark"] .secondary-socials .social-icon img{filter:brightness(0) invert(.83);opacity:1}

html[data-theme="dark"] #work-grid .folder-link,
html[data-theme="dark"] .coverflow-card .store-preview-item{border-color:var(--theme-frame);background:var(--theme-frame);box-shadow:0 0 0 1px var(--line),0 6px 16px #04060926}
html[data-theme="dark"] #work-grid [data-platform="Behance"] .folder-link:is(:hover,:focus-visible){border-color:#465f8c;background:#465f8c;box-shadow:0 0 0 1px #718fc0}
html[data-theme="dark"] #work-grid [data-platform="YouTube"] .folder-link:is(:hover,:focus-within){border-color:#79504d;background:#79504d;box-shadow:0 0 0 1px #ae7470}
html[data-theme="dark"] #store-grid .product-card{background:var(--theme-surface);border-color:var(--line);box-shadow:0 2px 4px #04060930}
html[data-theme="dark"] .card-visual{background:#101217}
html[data-theme="dark"] #store-grid .marketplace-link{background:var(--theme-raised);border-color:var(--theme-border);color:var(--ink)}
html[data-theme="dark"] .marketplace-gumroad{--market-tint:#49374e;--market-ink:#ffc6ec;--market-border:#b77da4}
html[data-theme="dark"] .marketplace-patreon{--market-tint:#34383f;--market-ink:#eceef1;--market-border:#808995}
html[data-theme="dark"] .marketplace-superhive{--market-tint:#40364f;--market-ink:#e0d2ff;--market-border:#a18bbf}
html[data-theme="dark"] #store-grid .marketplace-link:is(:hover,:focus-visible){background:var(--market-tint);border-color:var(--market-border);color:var(--market-ink)}
html[data-theme="dark"] #store-grid .marketplace-link img,
html[data-theme="dark"] #store-grid .marketplace-disabled img{filter:brightness(0) invert(.87)}
html[data-theme="dark"] #store-grid .marketplace-disabled{background:#1e2126;border-color:#353a43;color:#a2a8b2}
html[data-theme="dark"] #store-grid .marketplace-disabled:hover{background:#1e2126;border-color:#353a43;color:#a2a8b2}
html[data-theme="dark"] .product-video-trigger{background:rgb(22 25 31 / .82);border-color:#afb7c34d;color:var(--ink)}
html[data-theme="dark"] .product-video-trigger:is(:hover,:focus-visible){background:rgb(42 46 54 / .96);border-color:#b7beca80}
html[data-theme="dark"] .product-video-trigger-icon{color:#d6dbe3}

html[data-theme="dark"] .blog-empty,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .blog-post>.blog-cover,
html[data-theme="dark"] .blog-video-screen{border-color:var(--theme-frame);box-shadow:0 0 0 1px var(--line)}
html[data-theme="dark"] .blog-card{background:var(--theme-surface)}
html[data-theme="dark"] .blog-thumbnail{background:#2c3037}
html[data-theme="dark"] .blog-expanded{border-color:var(--line)}
html[data-theme="dark"] .bottom-dock{background:var(--paper)}
html[data-theme="dark"] .client-logo{color:#bbc1cb}
html[data-theme="dark"] #clients-section .client-logo img{opacity:.53}
html[data-theme="dark"] #clients-section .client-logo img[src$=".svg"]{filter:grayscale(1) brightness(0) invert(1)}
/* The three opaque JPEG marks need their original luminance/polarity preserved. */
html[data-theme="dark"] #clients-section .client-brand:has(>img[src$=".jpg"]){background:var(--paper);isolation:isolate}
html[data-theme="dark"] #clients-section .client-logo img[src$="/platform.jpg"],
html[data-theme="dark"] #clients-section .client-logo img[src$="/one-net-inc.jpg"]{filter:grayscale(1) invert(1) contrast(3);mix-blend-mode:screen}
html[data-theme="dark"] #clients-section .client-logo img[src$="/desales-media-group.jpg"]{filter:grayscale(1) contrast(5);mix-blend-mode:screen}

html[data-theme="dark"] .hire-dialog,
html[data-theme="dark"] .product-video-dialog,
html[data-theme="dark"] .home-video-dialog{background:var(--theme-surface);border-color:var(--line);color:var(--ink);box-shadow:0 24px 80px #04060980,0 4px 12px #0406094d}
html[data-theme="dark"] :is(.hire-dialog,.product-video-dialog,.home-video-dialog)::backdrop{background:#080a0fb8}
html[data-theme="dark"] .hire-option,
html[data-theme="dark"] .product-video-choice{background:var(--theme-raised);border-color:var(--theme-border);color:var(--ink)}
html[data-theme="dark"] .hire-option:hover{background:var(--theme-hover);border-color:#87909e}
html[data-theme="dark"] :is(.hire-close,.product-video-close,.home-video-close){background:var(--theme-raised);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .hire-close:hover{background:var(--theme-hover);border-color:#87909e}
html[data-theme="dark"] .hire-eyebrow,
html[data-theme="dark"] .contact-hint,
html[data-theme="dark"] .hire-footer{color:var(--muted)}
html[data-theme="dark"] .drawer-handle{background:#626b79}
html[data-theme="dark"] .contact-logo{background:#343941}
html[data-theme="dark"] .telegram-logo{background:#25313c}
html[data-theme="dark"] .whatsapp-logo{background:#293039}
html[data-theme="dark"] .email-logo img{filter:brightness(0) invert(.86)}
html[data-theme="dark"] .product-video-choice[aria-pressed="true"]{background:#333944;border-color:var(--blue)}
html[data-theme="dark"] .home-video-header>img{content:url("assets/icons/youtube-wordmark-dark.svg")}
html[data-theme="dark"] .skip-link{background:var(--theme-raised);color:var(--ink)}


html[data-theme="dark"] .profile-bio{border-color:var(--theme-frame);background:var(--theme-surface)}
