/* macOS dark materials: window chrome, elevated groups and translucent menus. */
:root{color-scheme:dark;--mac-ink:#ebebed;--mac-muted:#a1a1a6;--mac-border:#454548;--mac-surface:#28282a}
.window:is(.finder,.editor,.email,.parametres,.terminal,.safari){background:#242426;border:1px solid #0009;box-shadow:0 24px 70px #0008,0 0 0 1px #ffffff20 inset;color:#ececee}
.window>.window__taskbar{background:#323234!important;border-bottom-color:#141416!important;color:#eee}.window__taskbar--content h2{color:#ddd!important}
.window .window__taskbar--actions{display:flex!important;align-items:center!important;gap:8px!important;min-width:60px;height:16px}
.window .window__taskbar--actions button{position:relative!important;display:block!important;width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important;border:1px solid #0002!important;border-radius:50%!important;padding:0!important;line-height:0!important;transform:none!important;box-shadow:inset 0 .5px #ffffff20!important}
.window__taskbar--actions button>*{display:none!important}.window__taskbar--actions button:before,.window__taskbar--actions button:after{content:''!important;position:absolute!important;opacity:0;inset:auto!important;transform:none!important;background:transparent!important}
.window__taskbar--actions:hover button:before,.window__taskbar--actions:hover button:after{opacity:1}.window__taskbar--actions button:first-child:before,.window__taskbar--actions button:first-child:after{width:7px;height:1px;left:1.5px!important;top:4.5px!important;background:#65120e!important;transform:rotate(45deg)!important}.window__taskbar--actions button:first-child:after{transform:rotate(-45deg)!important}
.window__taskbar--actions button:nth-child(2):before{width:7px;height:1px;left:1.5px!important;top:4.5px!important;background:#825509!important}.window__taskbar--actions button:nth-child(3):before{width:0;height:0;border-top:4px solid #075d13;border-right:4px solid transparent;left:2px!important;top:2px!important}.window__taskbar--actions button:nth-child(3):after{width:0;height:0;border-bottom:4px solid #075d13;border-left:4px solid transparent;right:2px!important;bottom:2px!important}
.window .sf-icon,.system-popover .sf-icon,.spotlight-panel .sf-icon{filter:brightness(0) invert(.86)}.settings-icon .sf-icon,.email-send-button .sf-icon{filter:brightness(0) invert(1)}
.native-button{background:linear-gradient(#626265,#505053);border-color:#ffffff12;color:#eee;box-shadow:0 1px 2px #0005}.native-button:hover{background:#6a6a6e}.native-tool:hover:not(:disabled){background:#ffffff12}.native-search{background:#ffffff0b;border-color:#ffffff10}.native-search input{color:#ddd}
.finder-navigation,.settings-sidebar,.safari-native-sidebar{background:#29292de8!important;border-color:#454548!important;backdrop-filter:blur(35px)}.finder-files,.settings-main{background:#232325}.finder-preview{background:#29292b;border-color:#414144}.finder-preview>p,.settings-introduction p,.settings-profile>p{color:#b4b4bb}.finder .file-card>span{color:#ddd}.finder .file-card:hover,.finder .file-card.selected{background:#ffffff0b}.finder .is-list [role=listitem]:nth-child(even){background:#ffffff05}.finder-footer,.finder-list-heading{background:#2d2d30;border-color:#424245;color:#aaa}.finder-view-control{background:#252528}.finder-view-control [aria-pressed=true]{background:#59595e}.finder-navigation>button{background:#ffffff13}
.settings-group{background:#303032;border-color:#464649}.setting-row,.setting-app-row{border-color:#454548}.setting-app-row:hover{background:#ffffff09}.settings-description,.settings-footnote,.settings-introduction p,.setting-row>span+span{color:#aaaab1}.settings-navigation>button:hover{background:#ffffff0a}.settings-navigation>button.selected{background:#145caf}.appearance-choice{display:flex;align-items:center;justify-content:space-between;padding:15px;gap:15px}.appearance-choice select{padding:5px 14px;border:1px solid #666;border-radius:5px;background:#555;color:#fff}
.mac-menubar.navbar{background:#1c1c2470;backdrop-filter:blur(35px) saturate(150%);color:#fff;box-shadow:0 1px #ffffff0b}.menubar-button:hover,.menubar-button[aria-expanded=true]{background:#ffffff24!important}
.system-popover{background:#303033e8!important;color:#f0f0f1;border:1px solid #ffffff28!important;outline:1px solid #0007;backdrop-filter:blur(45px) saturate(150%);box-shadow:0 14px 40px #0007;border-radius:7px;padding:5px;min-width:240px}.system-popover .menu-item{min-height:25px;padding:3px 10px;border-radius:4px;font-size:13px;color:#eee}.system-popover .menu-item:hover,.system-popover .menu-item:focus{background:#1767d2}.system-popover hr{background:#ffffff24;margin:5px 8px}.popover-heading{font-size:13px}.popover-detail{color:#b9b9bf;font-size:12px}.control-grid{width:310px;gap:8px;padding:5px}.control-tile{background:#48484ca8;border:1px solid #ffffff0b;box-shadow:0 1px 4px #0003;border-radius:10px;color:#eee;min-height:78px;font-size:12px;padding:12px}.control-tile:hover{background:#55555ab8}.control-tile small{color:#c0c0c7;font-size:10px}.control-wide{min-height:0;padding:13px}.control-wide>strong{font-size:12px}.control-tile.focus-on{background:#645183}.control-wide input{appearance:none;background:#222228;height:20px;border:1px solid #ffffff18;border-radius:20px}.control-wide input::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 5px #0005}.calendar-grid{font-size:12px;gap:5px}.spotlight-panel,.desktop-toast{background:#29292ded;border-color:#ffffff26;color:#eee}.spotlight-panel input{color:#fff}.spotlight-panel>label{border-color:#ffffff20}
.safari-native-toolbar,.safari-native-tabs{background:#303032!important;border-color:#444!important}.safari-address{background:#1e1e20!important;border:1px solid #ffffff15;color:#ccc}.safari-address input{color:#ddd}.safari-native-tabs button{color:#aaa!important;border-color:#4a4a4d!important}.safari-native-tabs button[aria-selected=true]{background:#454547!important;color:white!important}.safari-native-page,.safari-start{background:#202123;color:#eee}.safari-reading-list button{background:#303134;color:#eee}.safari-native-sidebar a{color:#b6becb}.cv-live{background:#242426;color:#ddd}.cv-live h1,.cv-live h2,.cv-live h3,.cv-live h4{color:#eee}.cv-browser-toolbar{background:#303033;color:#ddd;border-color:#444}
.window.email{width:780px;height:min(600px,calc(100dvh - 130px))}.email .mail-sidebar,.email .mail-list,.email #mail-welcome,.email #mail-empty,.email .mail-titlebar>.native-search,.email #mail-sidebar-toggle,.email #mail-reply,.email #mail-compose{display:none!important}.mail-layout{display:block;height:calc(100% - 48px)}.mail-reading{height:100%;width:100%;background:#242426}.email #contact-form{display:flex!important;background:#242426;padding:0 22px;min-height:0}.mail-titlebar h2{font-size:13px;font-weight:500;position:absolute;left:50%;transform:translateX(-50%)}.mail-field{border-color:#ffffff15;min-height:39px;font-size:13px}.mail-field input{color:#e2e2e6}.mail-field input[readonly]{color:#8cbbef}#contact-form textarea{background:#242426;color:#eee;font-size:14px;line-height:1.6;padding-top:20px}#contact-form>footer{border-color:#ffffff15}.mail-compose-header{justify-content:flex-start;padding:10px 0}.mail-compose-header>strong{display:none}.email-send-button{background:#48484c;color:#ddd!important;border:1px solid #ffffff12;box-shadow:0 1px 2px #0005;padding:0 12px 0 4px}.email-send-button:hover{background:#55555a}
.window.terminal{background:#1e1e1ff5}.terminal-tabs{display:none}.terminal .terminal_content{height:calc(100% - 36px);padding:8px 11px;font:12px/1.5 Menlo,Monaco,monospace;color:#dedede}.shell-host{font:12px/1.5 Menlo,Monaco,monospace}.shell-prompt-label{color:#dedede}.shell-form{flex-wrap:nowrap;align-items:baseline}.shell-form input,.shell-form input:focus-visible{outline:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;flex:1!important;flex-basis:auto!important;min-width:0;padding:0!important;height:auto!important;line-height:1.5;caret-color:#ddd}.shell-output.muted{color:#aaa}.terminal .window__taskbar{background:#373738!important}.shell-form:focus-within{outline:none}.vscode-panel{position:relative;flex-shrink:0;height:200px;min-height:95px;max-height:65%}.terminal-resize{position:absolute;top:-3px;left:0;right:0;height:6px;cursor:ns-resize;z-index:5;touch-action:none}.terminal-resize:hover,.terminal-resize:focus-visible{background:#007fd4;outline:0}.shell-cursor{display:inline-block;position:absolute;width:1ch;height:1.45em;pointer-events:none;border:1px solid #bfbfbf;top:0}.shell-input-wrap{position:relative;flex:1;min-width:0}.shell-input-wrap input{width:100%}.shell-input-wrap:focus-within .shell-cursor{background:#ddd8;animation:terminal-blink 1.1s step-end infinite}.shell-input-wrap input{caret-color:transparent!important}@keyframes terminal-blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.shell-input-wrap:focus-within .shell-cursor{animation:none}}
.word-tabs,.word-ribbon,.word-navigation,.word-status{background:#303032;color:#ddd;border-color:#49494c}.word-tabs>button:hover{background:#ffffff10}.word-tabs>[aria-selected=true],.word-tabs .word-open{color:#a8c7fa}.ribbon-group{border-color:#505054}.ribbon-group select,.word-styles button{background:#424245;border-color:#626266;color:#eee}.word-styles button:hover{background:#555}.word-styles button>span{color:#c1d7f9!important}.word-canvas{background:#19191b}.word-ruler{background:#343438;border-color:#555;color:#aaa}.word-navigation nav button,.word-navigation .outline-title{color:#bbb}.word-navigation nav button:hover{background:#ffffff12}.word-window .editor-area{color-scheme:light}.native-dialog{background:#303034;color:#eee;border-color:#555}.native-dialog input{background:#222;color:#eee}
@media(max-width:600px){.shell-prompt-label{font-size:11px}.window.email{max-width:calc(100vw - 16px)}.control-grid{width:min(310px,calc(100vw - 32px))}}
.email .mail-toolbar{margin-left:16px;margin-right:auto;display:flex}.email .email-send-button{background:transparent;border:0;box-shadow:none;font-size:0!important;padding:0 8px}.email .email-send-button .sf-icon{width:30px;height:30px;opacity:.85}.email .email-send-button:hover{background:#ffffff0d}.email .mail-compose-header[hidden]{display:none!important}.vscode-panel>header>button:last-child{font-size:20px;padding:0 7px}.vscode-panel>header>button#code-clear-terminal{margin-left:auto;font-size:11px}.system-popover[data-panel=control]{border-radius:15px;padding:5px}.system-popover[data-panel=calendar]{border-radius:14px}.control-grid>.control-tile:first-child{min-height:96px}.control-grid>.control-tile:nth-child(2){min-height:96px}.shell-form input{color:#dedede!important}.window__taskbar--actions button:nth-child(3):before,.window__taskbar--actions button:nth-child(3):after{border-radius:0!important}
/* Notes follows the same system appearance. */
.window.note,.note .content__sidebar,.note .content__list,.note .Parent__content--typing{background:#252527;color:#ddd;border-color:#414145}.note .content__sidebar{background:#2b2b2d}.note .notes-items-list li{border-color:#454549}.note .notes-items-list li.active{background:#665223}.note .notes-folders-list li.active{background:#ffffff12}.note .note-body,.note .note-body h1,.note .note-body h2,.note .note-body h3{color:#e8e8eb}.note .note-body p,.note .note-body li{color:#bdbdc4}.note .notes-sidebar-header,.note .notes-list-header{color:#999}.note .note-section{border-color:#444}.note .note-header,.note .note-toolbar{background:#303032;border-color:#444}
.control-grid{grid-template-rows:88px 70px auto}.control-grid>.control-tile:first-child{grid-column:1;grid-row:1/3;align-items:flex-start;flex-direction:column;justify-content:center;gap:13px}.control-grid>.control-tile:nth-child(2){grid-column:2;grid-row:1;min-height:0}.control-grid>.control-tile:nth-child(4){grid-column:2;grid-row:2;min-height:0}.control-grid>.control-wide{grid-row:3;grid-column:1/3}.control-grid>.control-tile:last-child{grid-row:4;grid-column:1/3;min-height:40px;padding:6px 12px}.control-grid>.control-tile:last-child span{display:flex;align-items:center;justify-content:space-between;flex:1}.control-grid>.control-tile:last-child small{margin:0}.control-tile>.sf-icon{width:32px;height:32px}.control-tile .control-round{width:35px;height:35px}.control-wide label{position:relative}.control-wide label>.sf-icon{position:absolute;left:5px;z-index:1;width:26px;pointer-events:none}.control-wide input{height:25px;background:linear-gradient(90deg,#888 0%,#555 100%);border:0}.control-wide input::-webkit-slider-thumb{width:25px;height:25px}
/* Word uses its independent light appearance, as requested. */
.window.editor{color-scheme:light;color:#28282b;background:#e7e7e9}.word-window>.window__taskbar{background:#285ba7!important;border-bottom-color:#234f92!important}.word-tabs,.word-ribbon,.word-navigation,.word-status{background:#f8f8f9;color:#333;border-color:#d0d0d4}.word-tabs>button:hover{background:#e8edf7}.word-tabs>[aria-selected=true],.word-tabs .word-open{color:#245fa9}.ribbon-group{border-color:#d8d8dd}.ribbon-group select,.word-styles button{background:#fff;border-color:#c5c5cb;color:#333}.word-styles button:hover{background:#eef4fb}.word-styles button>span{color:#285da4!important}.word-canvas{background:#e7e7e9}.word-ruler{background:#fafafa;border-color:#c2c2c8;color:#939399}.word-navigation nav button{color:#707078}.word-navigation .outline-title{color:#333}.word-navigation nav button:hover{background:#e6edf7;color:#225897}.editor .sf-icon{filter:none}.editor .word-quick-actions .sf-icon{filter:brightness(0) invert(1)}.editor .native-button{background:linear-gradient(#fff,#f7f7f7);color:#333;border-color:#c5c5c8}.editor .native-tool:hover{background:#0000000a}
/* Pane hierarchy matched to Ventura references; wallpaper tint lives in the sidebar. */
.window.parametres{background:#2c2828}.parametres>.window__taskbar{background:linear-gradient(90deg,#454143ed 0 212px,#2e2a2b 212px)!important;border-bottom:0!important}.parametres .settings-sidebar{background:#454143ed!important;border-right:1px solid #ffffff10!important}.parametres .settings-main{background:#2e2a2b;padding-top:15px}.parametres .settings-group{background:#ffffff03;border-color:#ffffff20;border-radius:7px}.parametres .setting-row,.parametres .setting-app-row{border-color:#ffffff0c}.parametres .settings-navigation>button{min-height:31px;font-weight:400}.parametres .settings-navigation>button.selected{background:#367bdd}.parametres .settings-main>h2{font-size:18px;font-weight:600}.parametres .settings-profile h1{font-weight:600}.parametres .settings-introduction h3{font-weight:600}.parametres .settings-sidebar .native-search{background:#ffffff0c;border-color:#ffffff16}.safari>.safari-native-toolbar{height:52px;min-height:52px;background:#343436!important;box-shadow:inset 0 1px #ffffff10}.safari .safari-native-tabs{background:#28282a!important;padding-top:3px;gap:3px}.safari .safari-native-tabs button{border-right:0!important;border-radius:7px 7px 0 0;font-size:11px}.safari .safari-native-tabs button[aria-selected=true]{background:#454547!important;box-shadow:0 -1px #ffffff0c,inset 1px 0 #ffffff05}.safari .safari-address{background:#252527!important;box-shadow:inset 0 1px 2px #0003;border-color:#ffffff07;border-radius:7px;height:30px}.email>.mail-titlebar{height:54px;min-height:54px;background:#38383a!important;box-shadow:inset 0 1px #ffffff0c}.email .mail-layout{height:calc(100% - 54px)}.email #contact-form,.email #contact-form textarea{background:#212123}.email .mail-field{border-color:#3b3b3d}.email .mail-field>span{color:#9d9da1}.email .mail-titlebar h2{color:#d3d3d6;font-weight:500}.finder>.finder-titlebar{background:linear-gradient(90deg,#38363ce8 0 178px,#303032 178px)!important}.finder .finder-navigation{background:#38363ce8!important}.finder .finder-files{background:#1e1e20}.finder .finder-preview{background:#242426}.finder .finder-footer{background:#303032}.window:is(.finder,.parametres,.safari,.email){box-shadow:0 22px 50px #0007,0 0 0 1px #ffffff25 inset}
@media(max-width:540px){.parametres>.window__taskbar{background:linear-gradient(90deg,#454143ed 0 120px,#2e2a2b 120px)!important}}
/* Dark-mode contrast fixes: texts that kept their light-theme colors. */
.finder-location{color:#a1a1a6}
.settings-sidebar small,.settings-profile>p{color:#b4afb1}.setting-row button,.setting-row kbd{color:#aeaeb2}
.Vscode .line-number{color:#858585}
.note .window__taskbar .material-icons{color:#c7c7cc}.note .window__taskbar--right .containerSearch{background:#1e1e20;border-color:#48484a}.note .window__taskbar--right .containerSearch svg{fill:#8e8e93}.note .window__taskbar--right input[type=search]{color:#ececee}.note .window__taskbar--right input[type=search]::placeholder{color:#8e8e93}
.note .notes-folders-list li,.note .notes-folders-list li span{color:#dcdce0}.note .notes-folders-list .material-icons-round{color:#e3b341}
.note .note-item-title{color:#ececee}.note .note-time{color:#c9c9ce}.note .note-preview-text{color:#9a9aa0}.note .notes-items-list li.active .note-item-title,.note .notes-items-list li.active span{color:#fff}
.note .experience-block h3,.note .education-block h3{color:#ececee}.note .experience-block .company,.note .education-block .school{color:#b9b9bf}.note .experience-block .date,.note .education-block .date{color:#8e8e93}.note .notes-intro{color:#e3b341}
.safari-start{background:linear-gradient(#1c1c1edd,#1c1c1ef2),url('../background/MontereyBackground.jpg') center/cover}.safari-start h1,.safari-start h2{color:#ececee}.safari-favorites button{color:#d1d1d6}.safari-reading-list button{background:#2c2c2ee6}.safari-reading-list span{color:#8e8e93}.safari-reading-list strong{color:#f2f2f4}.safari-reading-list small{color:#aeaeb2}
.cv-browser-toolbar a{color:#6cb0ff}.cv-overline,.cv-live header p{color:#9aa0a8}.cv-live header{border-color:#3d6fb0}.cv-summary,.cv-experience li,.cv-experience p,.cv-columns aside p{color:#c2c2c7}.cv-experience h5{color:#8fb8e6}.cv-experience>div>span{color:#9a9aa0}.cv-live h3{color:#8fb8e6!important;border-color:#3a3a3d}.cv-columns aside{border-color:#3a3a3d}
/* Traffic lights, matched to macOS Sonoma: 12px lights, 8px gaps, fixed colors, crisp SVG glyphs shown on group hover. */
.window .window__taskbar--actions{gap:8px!important;min-width:52px}
.window .window__taskbar--actions button,.window .window__taskbar--actions button:hover,.window .window__taskbar--actions button:focus{margin:0!important;width:12px!important;height:12px!important;box-shadow:none!important;filter:none!important;opacity:1!important}
.window .window__taskbar--actions button:nth-child(1),.window .window__taskbar--actions button:nth-child(1):hover{background:#ff5f57!important;border:.5px solid #e2463f!important}
.window .window__taskbar--actions button:nth-child(2),.window .window__taskbar--actions button:nth-child(2):hover{background:#febc2e!important;border:.5px solid #e1a116!important}
.window .window__taskbar--actions button:nth-child(3),.window .window__taskbar--actions button:nth-child(3):hover{background:#28c840!important;border:.5px solid #12ac28!important}
.window .window__taskbar--actions button:nth-child(1):active{background:#bf4942!important}.window .window__taskbar--actions button:nth-child(2):active{background:#bf8e22!important}.window .window__taskbar--actions button:nth-child(3):active{background:#1d9730!important}
.window .window__taskbar--actions button::after{display:none!important}
.window .window__taskbar--actions button::before{content:''!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border:0!important;transform:none!important;opacity:0;background:center/100% 100% no-repeat!important}
.window .window__taskbar--actions:hover button::before{opacity:1}
.window .window__taskbar--actions button:nth-child(1)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.75 3.75l4.5 4.5M8.25 3.75l-4.5 4.5' stroke='%234d0000' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E")!important}
.window .window__taskbar--actions button:nth-child(2)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6h5.6' stroke='%23995700' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E")!important}
.window .window__taskbar--actions button:nth-child(3)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.3 3.3h4.4L3.3 7.7z M8.7 8.7H4.3L8.7 4.3z' fill='%23006500'/%3E%3C/svg%3E")!important}
