/* Separate geometry for art and labels: no image can enter the caption row. */
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] {
 display:grid!important;grid-template-rows:minmax(0,1fr) 38px!important;align-items:stretch!important;justify-items:center!important;gap:6px!important;padding:3px!important;min-width:0!important;overflow:visible!important;transform:none!important;
}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] .creative-item-art.creative-item-art {
 display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:130px!important;max-height:120px!important;align-self:center!important;transform:none!important;background:none!important;filter:none!important;position:relative!important;
}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] .creative-item-art.creative-item-art img {
 width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important;max-width:100%!important;max-height:100%!important;filter:none!important;transform:none!important;
}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] span.creative-record-caption.creative-record-caption[class] {
 box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;line-height:10px!important;font-size:8px!important;padding:3px 4px!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;margin:0!important;transform:none!important;z-index:1!important;
}
/* Award record: glass-fronted square plaque, inside its own illustration row. */
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .record-award-frame {
 box-sizing:border-box;position:relative;display:grid;place-items:center;align-self:center;justify-self:center;height:clamp(28px,calc((100cqh - 28px)/var(--service-rows) - 50px),80px);max-height:100%;aspect-ratio:1;width:auto;max-width:100%;border:3px solid #66503b;border-radius:2px;padding:7px 7px 11px;background:linear-gradient(135deg,#fcf7e8,#d1c5ac 55%,#f8edda);box-shadow:0 3px 5px #33220c2b,inset 0 0 0 1px #bba06b,inset 0 0 8px #7f69452b;isolation:isolate;
}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .record-award-frame::after {content:"";position:absolute;bottom:4px;left:30%;right:30%;height:3px;background:linear-gradient(100deg,#90703c,#f4df9c,#ab8449);border:1px solid #a2834e;box-shadow:0 1px 1px #fff9;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .chain-board.chain-board button.creative-record-control.creative-record-control[class] .creative-record-disc {
 width:100%!important;height:auto!important;max-height:100%!important;aspect-ratio:1!important;transform:none!important;box-shadow:0 2px 3px #0006!important;
}
/* Scene captions and performers stay within each floor, clear of the curtains. */
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024][data-creative-entity="venue"] .creative-record-section.creative-record-section {
 padding:10px 16px 10px!important;gap:7px!important;grid-template-rows:20px minmax(0,1fr)!important;
}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024][data-creative-entity="venue"] .creative-record-section>.grid {min-width:0!important;gap:7px 6px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024][data-creative-entity="venue"] .chain-board.chain-board button.creative-record-control.creative-record-control[class] {padding:0!important;grid-template-rows:minmax(0,1fr) 36px!important;gap:4px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024][data-creative-entity="venue"] .chain-board.chain-board button.creative-record-control.creative-record-control[class] span.creative-record-caption.creative-record-caption[class] {
 height:36px!important;min-height:36px!important;border:1px solid #c3a16c8c!important;border-radius:6px!important;background:linear-gradient(#412933ed,#2b1b25ed)!important;font-size:7.5px!important;line-height:9px!important;color:#fff4da!important;
}
/* Portrait and art are no longer enlarged or shifted independently by old rules. */
:is(#root,.score-host) .chain-page.chain-page.chain-page .creative-item-art .creative-record-check {right:2px!important;bottom:2px!important;}
@media(max-height:700px){
 :is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board {min-height:430px!important;flex:none!important;}
 :is(#root,.score-host) .chain-page.chain-page.chain-page .chain-body.chain-body {overflow-y:auto!important;}
}
/* More numerous teacher functions have a readable inner scroll, while the shared field stays the same size. */
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="teacher"] .chain-board.chain-board {display:block!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#b8a88b transparent;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="teacher"] .creative-record-section.creative-record-section {display:grid!important;grid-template-rows:20px auto!important;gap:8px!important;margin-bottom:14px!important;container-type:normal!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="teacher"] .creative-record-section>.grid {grid-template-rows:repeat(var(--service-rows),105px)!important;gap:8px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .record-award-frame {height:66px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .chain-board.chain-board .creative-record-label.creative-record-label {width:44%!important;height:44%!important;font-size:6px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] {width:100%!important;justify-self:stretch!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-services-20261024] .chain-board.chain-board button.creative-record-control.creative-record-control[class] .creative-record-caption.creative-record-caption[class] {justify-self:stretch!important;align-self:stretch!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .chain-board.chain-board {grid-template-rows:minmax(0,3fr) minmax(0,1.25fr)!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="music"] .record-award-frame {height:58px!important;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="teacher"] .chain-board::-webkit-scrollbar {width:5px;}
:is(#root,.score-host) .chain-page.chain-page.chain-page[data-creative-entity="teacher"] .chain-board::-webkit-scrollbar-thumb {background:#a18d69;border-radius:5px;}

/* Four equally weighted raised surfaces, differentiated by restrained material tint. */
:root {--fs-card-ink:#3a3430;--fs-card-muted:#756b60;}
html #root [data-profile-surface],html #root .fc-menu-scroll>.fc-notifications,html #root .fc-community-tiles>section,html #root .fc-menu-recommendations {
 --surface-hi:#fffdf8;--surface-low:#eee3ce;--surface-edge:#c5ab7e;--surface-accent:#8e6d3d;
 box-sizing:border-box!important;position:relative;border:1px solid var(--surface-edge)!important;border-radius:18px!important;background:linear-gradient(145deg,var(--surface-hi),var(--surface-low))!important;
 box-shadow:0 6px 12px #49352014,0 1px 2px #4935201a,inset 0 1px 0 #fffffff0,inset 0 -2px 3px #80643916!important;
}
html #root [data-profile-surface]:not([data-profile-surface="identity"]){padding:14px!important;}
html #root [data-profile-surface="identity"] {--surface-hi:#fffaf0;--surface-low:#eee3cd;--surface-edge:#c7ae82;}
html #root [data-profile-surface="services"] {--surface-hi:#fff9f6;--surface-low:#efdedb;--surface-edge:#c8a19a;--surface-accent:#893d48;}
html #root [data-profile-surface="interests"] {--surface-hi:#fafcf8;--surface-low:#e0e9df;--surface-edge:#a2b29e;--surface-accent:#4e6e5a;}
html #root [data-profile-surface="portfolio"] {--surface-hi:#fafaff;--surface-low:#e2e4ed;--surface-edge:#a6abc0;--surface-accent:#5c6080;}
html #root [data-profile-surface]:not([data-profile-surface="identity"])>div:first-child {border-bottom:1px solid color-mix(in srgb,var(--surface-edge) 70%,transparent)!important;padding-bottom:10px!important;margin-bottom:10px!important;gap:8px!important;}
html #root [data-profile-surface]:not([data-profile-surface="identity"])>div:first-child>span:first-child {color:var(--surface-accent)!important;font-size:10px!important;line-height:15px!important;letter-spacing:.35px;}
html #root [data-profile-surface] [data-empty-surface] {background:#fffdf884!important;border:1px solid #ffffffb8!important;box-shadow:inset 0 1px 4px #6a4d2110!important;color:var(--fs-card-muted)!important;font-style:normal!important;}
html #root [data-profile-surface="identity"] [title="Настройка профиля"] {background:linear-gradient(#fffdf5,#e4d5b5)!important;border-color:#bba170!important;box-shadow:0 3px 5px #5c43192a,inset 0 1px #fff!important;padding:10px 16px!important;}
html #root .fc-menu-scroll {padding:12px 14px 22px!important;}
html #root .fc-menu-scroll>.fc-notifications,html #root .fc-menu-recommendations {padding:14px!important;margin:0 0 16px!important;}
html #root .fc-menu-scroll>.fc-notifications {--surface-hi:#fff9f5;--surface-low:#ecdcd7;--surface-edge:#c6a097;--surface-accent:#8a4448;}
html #root .fc-community-tiles>section:first-child {--surface-hi:#fafcf7;--surface-low:#dfe8dd;--surface-edge:#a3b39d;--surface-accent:#4c6b57;}
html #root .fc-community-tiles>section:last-child {--surface-hi:#fafaff;--surface-low:#e1e3ee;--surface-edge:#a9adc5;--surface-accent:#606785;}
html #root .fc-menu-recommendations {--surface-hi:#fffaf1;--surface-low:#eddfbf;--surface-edge:#c6ac77;--surface-accent:#8d6d38;margin-top:16px!important;}
html #root .fc-community-tiles {gap:12px!important;align-items:stretch!important;}
html #root .fc-community-tiles>section {overflow:hidden!important;}
html #root .fc-tile-door {min-height:65px!important;background:linear-gradient(#ffffff80,#ffffff08)!important;color:var(--surface-accent)!important;border-bottom:1px solid var(--surface-edge)!important;box-shadow:inset 0 1px #fffc!important;}
html #root .fc-tile-door strong {font-size:11px!important;letter-spacing:.35px!important;}
html #root .fc-tile-door svg {background:#fff9;border:1px solid color-mix(in srgb,var(--surface-edge) 65%,transparent);border-radius:9px;padding:5px;width:29px!important;height:29px!important;box-sizing:border-box;box-shadow:0 2px 3px #49352014;}
html #root .fc-tile-previews {padding:4px 11px 8px!important;}
html #root .fc-tile-previews button {border-color:color-mix(in srgb,var(--surface-edge) 45%,transparent)!important;}
html #root .fc-menu-scroll .fc-section-title h2 {color:var(--surface-accent)!important;font-size:12px!important;}
html #root .fc-notice {background:#fffdf890!important;border-color:#ffffffa8!important;box-shadow:inset 0 1px #fff8!important;}
html #root .fc-notice.unread {border-left-color:var(--surface-accent)!important;}
html #root .fc-menu-recommendations .fc-banner-wrap.expanded>.fc-banner {border-color:#bba16f!important;box-shadow:0 3px 7px #775a2820,inset 0 1px #fff!important;}
html[data-theme="dark"] #root [data-profile-surface],html[data-theme="dark"] #root .fc-menu-scroll>.fc-notifications,html[data-theme="dark"] #root .fc-community-tiles>section,html[data-theme="dark"] #root .fc-menu-recommendations {
 --surface-hi:#37312f;--surface-low:#242328;--surface-edge:#766451;--surface-accent:#dfbf8a;--fs-card-muted:#d4ccc0;box-shadow:0 6px 13px #0005,inset 0 1px #ffffff14,inset 0 -2px 3px #0004!important;
}
html[data-theme="dark"] #root [data-profile-surface="services"],html[data-theme="dark"] #root .fc-menu-scroll>.fc-notifications {--surface-hi:#443038;--surface-low:#2c252e;--surface-edge:#855966;--surface-accent:#e5b4bd;}
html[data-theme="dark"] #root [data-profile-surface="interests"],html[data-theme="dark"] #root .fc-community-tiles>section:first-child {--surface-hi:#303e36;--surface-low:#242e2b;--surface-edge:#657e6c;--surface-accent:#bcd6bc;}
html[data-theme="dark"] #root [data-profile-surface="portfolio"],html[data-theme="dark"] #root .fc-community-tiles>section:last-child {--surface-hi:#353748;--surface-low:#272b38;--surface-edge:#71778d;--surface-accent:#c6cce8;}
html[data-theme="dark"] #root [data-profile-surface] [data-empty-surface],html[data-theme="dark"] #root .fc-notice {background:#151b1e52!important;border-color:#ffffff10!important;color:#d3ccc3!important;}
html[data-theme="dark"] #root [data-profile-surface="identity"] [title="Настройка профиля"] {background:linear-gradient(#534536,#372f29)!important;border-color:#957a52!important;color:#f5e6ca!important;}
html[data-theme="dark"] #root .fc-tile-door {background:linear-gradient(#ffffff0b,#00000008)!important;}
html[data-theme="dark"] #root .fc-tile-door svg {background:#ffffff0c;}
html[data-theme="porcelain"] #root [data-profile-surface],html[data-theme="porcelain"] #root .fc-community-tiles>section,html[data-theme="porcelain"] #root .fc-menu-scroll>.fc-notifications,html[data-theme="porcelain"] #root .fc-menu-recommendations {box-shadow:0 7px 14px #43576916,inset 0 1px #fff,inset 0 -2px 4px #607b8b12!important;}
html #root [data-profile-surface="interests"]>div:first-child {display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;}
html #root [data-profile-surface="interests"]>div:first-child>span {position:static!important;inset:auto!important;}
html #root .fc-menu-scroll .fc-notifications .fc-text {border:0!important;background:transparent!important;box-shadow:none!important;color:var(--surface-accent)!important;}
html[data-theme="dark"] #root .fc-menu-scroll .fc-notice p {color:#cec5bd!important;}
html[data-theme="dark"] #root [data-profile-surface]:not([data-profile-surface="identity"]) button[class~="bg-crimson"] {background:linear-gradient(#874555,#602d3e)!important;color:#fff2e9!important;border:1px solid #b78487!important;box-shadow:inset 0 1px #ffffff25,0 2px 4px #0003!important;}
/* Keep surface treatment above inherited flat-panel rules in every theme. */
html[data-theme] #root [data-profile-surface][data-profile-surface][data-profile-surface] {background:linear-gradient(145deg,var(--surface-hi),var(--surface-low))!important;border:1px solid var(--surface-edge)!important;box-shadow:0 6px 12px #49352014,0 1px 2px #4935201a,inset 0 1px 0 #fffffff0,inset 0 -2px 3px #80643916!important;}
html[data-theme="porcelain"] #root [data-profile-surface="identity"] {--surface-hi:#ffffff;--surface-low:#e7eef6;--surface-edge:#b2c2d6;--surface-accent:#566d87;}
html[data-theme="dark"] #root [data-profile-surface][data-profile-surface][data-profile-surface] {box-shadow:0 6px 13px #0005,inset 0 1px #ffffff14,inset 0 -2px 3px #0004!important;}
