/* The profile shares the graphite glass and silver edges of the dark navigation. */
html[data-theme="dark"] #root#root#root [data-profile-surface]{--surface-hi:#292d36e3!important;--surface-low:#11141cbd!important;--surface-edge:#d5deed9e!important;--surface-accent:#d5deed!important;--profile-button-hi:#292d36e3;--profile-button-low:#11141cbd;--profile-button-edge:#bfc7d3;--profile-button-ink:#d5deed;--profile-ink:#e9edf4;--profile-muted:#cdd5e2;--fs-card-muted:#cdd5e2;background:linear-gradient(160deg,var(--surface-hi),var(--surface-low) 68%)!important;border-color:var(--surface-edge)!important;color:var(--profile-ink)!important;box-shadow:inset 0 1px #ffffff12,inset 0 0 12px #d5deed0f,0 3px 8px #00000040,0 0 8px #d5deed14!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] button,html[data-theme="dark"] #root#root#root [data-profile-surface] [title="Настройка профиля"]{background:linear-gradient(160deg,var(--profile-button-hi),var(--profile-button-low) 68%)!important;border-color:var(--profile-button-edge)!important;color:var(--profile-button-ink)!important;box-shadow:inset 0 1px #ffffff18,0 3px 8px #00000040,0 0 8px #c4cddd24!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] button:hover,html[data-theme="dark"] #root#root#root [data-profile-surface] [title="Настройка профиля"]:hover{background:linear-gradient(160deg,#3e4652e8,#242b37de 78%)!important;border-color:#edf3fc!important;color:#f5f7fb!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] button:focus-visible,html[data-theme="dark"] #root#root#root [data-profile-surface] [title="Настройка профиля"]:focus-visible{outline:2px solid #e9eff8!important;outline-offset:2px!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] button *,html[data-theme="dark"] #root#root#root [data-profile-surface] [title="Настройка профиля"] *{color:inherit!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface]:not([data-profile-surface="identity"])>div:first-child{border-bottom-color:#aebaca45!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface]:not([data-profile-surface="identity"])>div:first-child>span:first-child{color:#d5deed!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] [data-empty-surface]{background:#0d10154d!important;border-color:#bfc7d329!important;box-shadow:inset 0 1px 3px #00000026!important;}
html[data-theme="dark"] #root#root#root [data-profile-surface] [data-empty-surface],html[data-theme="dark"] #root#root#root [data-profile-surface] [data-empty-surface] p{color:#cdd5e2!important;}

/* Original calligraphy remains gold in light themes and becomes pale silver in dark. */
html[data-theme="dark"] #root#root#root .black-piano-key.black-piano-key span,html[data-theme="dark"] #root#root#root .black-piano-key-description{color:#edf2fa!important;text-shadow:0 1px 2px #00000066!important;}
html[data-theme="dark"] #root#root#root .black-piano-key.black-piano-key svg{color:#d5deed!important;}
html[data-theme="dark"] #root#root#root .piano-entity-icon{background:linear-gradient(145deg,#3a414dcc,#202631d9)!important;border-color:#bfc7d38f!important;color:#d5deed!important;box-shadow:inset 0 1px #ffffff14!important;}
html[data-theme="dark"] #root#root#root .piano-entity-icon svg{color:inherit!important;}
/* Silver metal replaces the antique-gold hanging ornament above the piano. */
html[data-theme="dark"] #noble-gold-grad-valance stop:nth-child(1){stop-color:#8591a2!important;}
html[data-theme="dark"] #noble-gold-grad-valance stop:nth-child(2){stop-color:#d5deeb!important;}
html[data-theme="dark"] #noble-gold-grad-valance stop:nth-child(3){stop-color:#f7faff!important;}
html[data-theme="dark"] #noble-gold-grad-valance stop:nth-child(4){stop-color:#c1cbd9!important;}
html[data-theme="dark"] #noble-gold-grad-valance stop:nth-child(5){stop-color:#8591a2!important;}
html[data-theme="dark"] #drapery-shadow-valance stop:first-child{stop-color:#d5deeb!important;stop-opacity:0!important;}
html[data-theme="dark"] #drapery-shadow-valance stop:last-child{stop-color:#aeb9c9!important;stop-opacity:.1!important;}
html[data-theme="dark"] #root svg:has(#noble-gold-grad-valance)+div{background:linear-gradient(to right,transparent,#bdc8daaa,transparent)!important;}

/* Only the opened entity key and its own confirmation action receive blue selection. */
html #root#root#root .white-piano-key-selected{background:linear-gradient(105deg,#d6e5f5,#edf5fd)!important;border-color:#6590be!important;box-shadow:inset 0 3px 9px #315c8c33,inset 0 -1px 2px #ffffff80,0 0 8px #5489c52e!important;}
html[data-theme="dark"] #root#root#root .white-piano-key-selected{background:linear-gradient(105deg,#233b57,#314b69)!important;border-color:#76a7dc!important;box-shadow:inset 0 3px 9px #0a1b3180,inset 0 -1px 2px #abcfff26,0 0 8px #5489c53d!important;}
html #root#root#root .black-piano-key[class~="ring-1"]{--tw-ring-color:#73a7e5!important;box-shadow:0 0 0 1px #73a7e5,0 4px 14px #2e7dcc66!important;}
html #root#root#root div:has(>div>.black-piano-key)>div.absolute button.bg-crimson{background:linear-gradient(160deg,#418bdf,#205cad)!important;border-color:#73a8ed!important;color:#fff!important;box-shadow:inset 0 1px #c7e0ff66,0 3px 8px #00000040,0 0 10px #438de44d!important;}
html #root#root#root div:has(>div>.black-piano-key)>div.absolute button.bg-crimson:hover{background:linear-gradient(160deg,#549dea,#2d70c7)!important;border-color:#a7cfff!important;}
html #root#root#root div:has(>div>.black-piano-key)>div.absolute button.bg-crimson *{color:#fff!important;}

/* Porcelain search and the left menu use the same background as the profile. */
html[data-theme="porcelain"] #root#root#root .fc-directory,html[data-theme="porcelain"] #root#root#root .fc-shell:has(>.fc-menu-scroll){background:radial-gradient(ellipse at 50% 0%,#f2f6fc 0%,#fff 48%,#edf3fa 100%)!important;}
html[data-theme="porcelain"] #root#root#root .fc-directory>.fc-scroll,html[data-theme="porcelain"] #root#root#root .fc-shell>.fc-menu-scroll{background:transparent!important;}
html[data-theme="porcelain"] #root#root#root .fc-directory>.fc-head,html[data-theme="porcelain"] #root#root#root .fc-shell:has(>.fc-menu-scroll)>.fc-head{background:linear-gradient(#fff,#f2f6fc)!important;}
