/* A compact manual override; the first visit follows the browser's color scheme. */
.site-header{position:relative}
.site-header nav{flex:1;min-width:0;width:auto}
.theme-toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:34px;margin-left:auto;padding:5px 10px;border:1px solid #d6e2ea40;border-radius:2px;background:#ffffff05;color:#cbd4dc;cursor:pointer;font:500 10px/1.2 Manrope,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;transition:color .25s ease,background .25s ease,border-color .25s ease,transform .25s ease}
.theme-toggle:hover{color:#fff;background:#d6e5ef13;border-color:#d6e2ea88;transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid #e76b67;outline-offset:3px}
.theme-toggle-icon{display:block;width:16px;height:16px;position:relative;flex:none}
.theme-toggle-icon:before{content:'☼';position:absolute;inset:-3px 0 0;color:#e7b0a9;font:22px/1 Georgia,serif;text-align:center}
html[data-theme="light"] .theme-toggle-icon:before{content:'☾';font-size:21px;inset:-3px 0 0}
@media(max-width:600px){
  .site-header nav{gap:10px;justify-content:flex-start}
  .theme-toggle{width:32px;height:32px;min-height:32px;padding:0;margin-left:4px}
  .theme-toggle-label{display:none}
}
@media(max-width:360px){.site-header nav{gap:7px}.site-header nav a{font-size:9px;letter-spacing:.025em}.theme-toggle{width:28px;height:28px;min-height:28px;margin-left:2px}}

/* Daylight: matte paper, cool graphite and a restrained film-light highlight. */
html[data-theme="light"]{--background:#eeede9;--foreground:#27313a;--card:#faf9f6;--card-foreground:#27313a;--hero:#dfe3e5;--secondary:#e4e7e8;--muted:#e3e6e7;--muted-foreground:#596772;--primary:#a83e3e;--primary-foreground:#fff8f4;--accent:#d8e0e5;--border:#29384329;--border-strong:#29384348;--palette-rgb:168 62 62;--reflection-rgb:88 119 141;color-scheme:light}
html[data-theme="light"] body{background:#eeede9!important;color:#27313a}
html[data-theme="light"] .site-header nav a{color:#53616b}
html[data-theme="light"] .site-header nav a:hover{color:#17232d}
html[data-theme="light"] .theme-toggle{background:#f9f8f4;color:#394a55;border-color:#a9b6bd80}
html[data-theme="light"] .theme-toggle:hover{background:#fff;color:#17232d;border-color:#697d8b}
html[data-theme="light"] .theme-toggle-icon:before{color:#a83e3e}
html[data-theme="light"] .profile,html[data-theme="light"] .profile-facts{background:#dfe3e5}
html[data-theme="light"] .profile-main,html[data-theme="light"] .profile-main:before{background:radial-gradient(ellipse at 75% 38%,#f3f4f1 0%,#e0e5e7 45%,#d4dadd 100%)}
html[data-theme="light"] .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-idle-x) var(--beam-y),#ffffffb8 0%,#dce6ec5a 45%,transparent 80%);mix-blend-mode:soft-light}
html[data-theme="light"].light-interactive .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-x) var(--beam-y),#ffffffb8 0%,#dce6ec5a 45%,transparent 80%)}
html[data-theme="light"] .profile-copy h1{color:#1e2a33;text-shadow:0 1px #ffffff6b}
html[data-theme="light"] .profile-role{color:#253039}
html[data-theme="light"] .profile-value{color:#34414a}
html[data-theme="light"] .profile-detail{color:#53616b}
html[data-theme="light"] .profile .eyebrow{color:#596772}
html[data-theme="light"] .profile-role .role-divider{color:#a83e3e}
html[data-theme="light"] .profile-main:after{background:linear-gradient(to bottom,transparent,#a83e3e 30%,#a83e3e 62%,transparent)}
html[data-theme="light"] .portrait img{filter:contrast(1.02) saturate(.42) brightness(1.19);mix-blend-mode:multiply}
html[data-theme="light"] .portrait:after{background:linear-gradient(to bottom,transparent 78%,#dfe3e5 100%)}
html[data-theme="light"] .portrait figcaption{color:#52616b;text-shadow:0 1px 2px #f3f5f3}
html[data-theme="light"] .profile-actions .contact-button[href^="https://t.me"]{color:#27313a;border-bottom-color:#a83e3e}
html[data-theme="light"] .profile-actions .contact-button[href^="tel:"]{color:#4f5b64}
html[data-theme="light"] .profile-actions .contact-button:hover{color:#17232d;text-shadow:none}
html[data-theme="light"] .profile-fact-link{background:#ffffff45;border-top-color:#8c9ba553;border-bottom-color:#7c8a923b}
html[data-theme="light"] .profile-fact-link:hover,html[data-theme="light"] .profile-fact-link:focus-visible{background:#f9fbf9;border-top-color:#657b89;box-shadow:inset 0 1px #ffffff}
html[data-theme="light"] .profile-fact-link:active{background:#d0dce1}
html[data-theme="light"] .profile-facts dt:after{color:#1e2a33}
html[data-theme="light"] .profile-facts dd{color:#47545f}
html[data-theme="light"] .profile-fact-link:before{background:#a83e3e}
html[data-theme="light"] .profile-fact-link:hover dt:after{color:#17232d;text-shadow:none}
html[data-theme="light"] .about-section,html[data-theme="light"] .production-section,html[data-theme="light"] .contact-section,html[data-theme="light"] .works-section{border-top-color:#89969e75}
html[data-theme="light"] .contact-section{border-bottom-color:#89969e75}
html[data-theme="light"] .about-subtitle,html[data-theme="light"] .personal-details li>span{color:#687681}
html[data-theme="light"] .about-intro>p:not(.eyebrow),html[data-theme="light"] .education-item p,html[data-theme="light"] .resource p,html[data-theme="light"] .skills-description,html[data-theme="light"] .contact-intro>p:last-child{color:#4a5761}
html[data-theme="light"] .personal-details strong,html[data-theme="light"] .education-item h4,html[data-theme="light"] .resource h3{color:#25313a}
html[data-theme="light"] .education{border-left-color:#89969e75}
html[data-theme="light"] .education>.about-subtitle:not(:first-child),html[data-theme="light"] .education-item,html[data-theme="light"] .personal-panel{border-color:#89969e75}
html[data-theme="light"] .resource{background:#f7f7f3;border-color:#a2afb65c}
html[data-theme="light"] .resource:hover{border-color:#748c9c;background:#fbfcfa}
html[data-theme="light"] .skills-trigger,html[data-theme="light"] .additional-skills,html[data-theme="light"] .sheet-examples{background:#f7f7f3;color:#27313a;border-color:#a2afb65c}
html[data-theme="light"] .skills-trigger:hover{background:#fbfcfa}
html[data-theme="light"] .level-badge,html[data-theme="light"] .skills-hint{color:#5e6c76}
html[data-theme="light"] .works-section,html[data-theme="light"] .filmography,html[data-theme="light"] .featured-grid{border-color:#89969e75}
html[data-theme="light"] .featured-grid .film-card{background:#f7f7f4;border-color:#a2afb65c}
html[data-theme="light"] .featured-grid .film-card:hover,html[data-theme="light"] .featured-grid .film-card:focus-visible{background:linear-gradient(var(--beam-angle),#e2eaf0,#fffdf9,#e4eaed)!important;box-shadow:inset 0 1px #fff}
html[data-theme="light"] .film-info h3,html[data-theme="light"] .credit-title{color:#27313a}
html[data-theme="light"] .film-role,html[data-theme="light"] .film-source,html[data-theme="light"] .credit-year,html[data-theme="light"] .credit-role,html[data-theme="light"] .credit-company,html[data-theme="light"] .credit-note,html[data-theme="light"] .credits-heading p,html[data-theme="light"] .featured-heading>span{color:#65727b}
html[data-theme="light"] .credits-tabs-list button,html[data-theme="light"] .credits-tabs-list button[data-active]{color:#61717c!important}
html[data-theme="light"] .credits-tabs-list button[data-active],html[data-theme="light"] .credits-tabs-list button:hover{color:#27313a!important}
html[data-theme="light"] .credits-tabs-list button[data-active]{border-bottom-color:#a83e3e!important}
html[data-theme="light"] .credit-card{border-bottom-color:#a2afb66b}
html[data-theme="light"] .credit-row{background:#faf9f6;border:1px solid #c6cfd299;border-radius:2px;box-shadow:0 1px 0 #ffffffa8}
html[data-theme="light"] a.credit-card:hover,html[data-theme="light"] a.credit-card:focus-visible{background:linear-gradient(var(--beam-angle),#e2eaf0,#fffdf9,#e4eaed)!important;box-shadow:inset 0 1px #fff,inset 0 -1px #9eafb8}
html[data-theme="light"] .credit-poster{background:#dfe4e6;color:#72818a}
html[data-theme="light"] .film-card:hover .film-source svg,html[data-theme="light"] .film-card:focus-visible .film-source svg,html[data-theme="light"] a.credit-card:hover .credit-title svg,html[data-theme="light"] a.credit-card:focus-visible .credit-title svg{color:#a83e3e}
html[data-theme="light"] .production-section button:hover,html[data-theme="light"] .filmography-expansion button:hover{background:#dfe7eb;box-shadow:inset 0 1px #fff,inset 0 -1px #9eafb8}
html[data-theme="light"] .contact-section .contact-button[href^="https://t.me"]{color:#27313a;border-bottom-color:#a83e3e}
html[data-theme="light"] .contact-section .contact-button[href^="tel:"]{color:#53616b}
html[data-theme="light"] .light-permission{color:#53616b}
html[data-theme="light"] .light-permission:hover{color:#17232d}
@media(max-width:600px){
  html[data-theme="light"] .portrait:after{background:linear-gradient(to bottom,transparent 69%,#dfe3e5 100%)}
  html[data-theme="light"] .profile-copy h1{text-shadow:0 1px 8px #e7eae9c9}
  html[data-theme="light"] .education{border-left:0}
}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}.theme-toggle:hover{transform:none}}
