/* A-Art adapter only. Shared universe files are copied unchanged. */
:root {
 --ui-font-family:var(--au-font);--font-main:var(--au-font);--font-display:var(--au-font);
 --ui-text:var(--au-text);--ui-muted:var(--au-secondary);--ui-surface:var(--au-bg);--ui-canvas:var(--au-bg-secondary);--ui-line:var(--au-outline);
 --ui-accent:var(--au-action);--ui-accent-hover:var(--au-accent-300);--ui-accent-soft:var(--au-accent-soft);--ui-focus:var(--au-focus);--ui-danger:var(--au-danger);
 --color-text:var(--au-text);--color-muted:var(--au-secondary);--color-soft:var(--au-caption);--color-bg:var(--au-bg);--color-bg-soft:var(--au-bg-secondary);
 --color-border:var(--au-divider);--color-border-strong:var(--au-outline);--color-purple:var(--au-accent-text);--color-purple-deep:var(--au-accent-300);
 --gradient-main:linear-gradient(90deg,var(--au-action),var(--au-action));--text:var(--au-text);--muted:var(--au-secondary);--surface:var(--au-bg);--canvas:var(--au-bg-secondary);
 --surface-raised:var(--au-bg-secondary);--surface-hover:var(--au-accent-soft);--line:var(--au-divider);--line-strong:var(--au-outline);
 --primary:var(--au-accent-text);--primary-hover:var(--au-accent-text);--on-accent:var(--au-action-ink);--accent-soft:var(--au-accent-soft);--glass:var(--au-glass);
 --bg:var(--au-bg);--subtle:var(--au-caption);--purple:var(--au-accent-text);--red:var(--au-danger);--green:var(--au-success);
 --line-soft:var(--au-divider);--accent-line:var(--au-outline);--focus-ring:var(--au-focus);--scrim:var(--au-overlay);
 --danger-soft:var(--au-danger-bg);--danger-line:var(--au-outline);--warning:var(--au-warning);--warning-soft:var(--au-warning-bg);--warning-line:var(--au-outline);
}
:root[data-au-product="art"] {scrollbar-gutter:stable}
body {background:var(--au-bg-secondary);color:var(--au-text)}
:root[data-au-product="art"] .button-danger {color:var(--au-bg)}
:root[data-au-product="art"] .button-danger:hover:not(:disabled) {color:var(--au-bg)}
/* Public screens use the shared page shell; only artwork and auth composition are local. */
.au-art-screen {width:100%;max-width:none;padding:0;gap:0;align-items:stretch;align-content:normal;justify-content:normal;background:var(--au-bg-secondary)}
:is(#landing-screen,#login-screen) {--entry-line:var(--au-outline);--entry-shadow:var(--au-shadow)}
.au-art-scope {display:flex;flex-wrap:wrap;gap:var(--au-space-3) var(--au-space-6);padding:var(--au-space-4);margin-top:var(--au-space-6);border:1px solid var(--au-outline);border-radius:var(--au-radius-card);background:var(--au-bg);color:var(--au-secondary);font:400 var(--au-font-caption)/var(--au-line-body) var(--au-font)}
.au-art-scope>span::before {content:"";display:inline-block;width:4px;height:4px;margin-right:var(--au-space-2);border-radius:50%;background:var(--au-accent)}
.au-art-process>div>span {font:500 var(--au-font-caption)/var(--au-line-body) var(--au-font);color:var(--au-accent-text)}
.au-art-process h2 {margin:var(--au-space-3) 0 var(--au-space-2);font:600 var(--au-font-subtitle)/var(--au-line-heading) var(--au-font);color:var(--au-heading)}
.au-art-process p {margin:0;font:400 var(--au-font-body)/var(--au-line-body) var(--au-font);color:var(--au-secondary)}
.au-art-login-content {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:var(--au-layout-gap)}
#login-screen :is(.login-art,.login-side) {min-height:0;width:100%;max-width:none;margin:0;padding:var(--au-panel-padding);border:1px solid var(--au-outline);border-radius:var(--au-radius-card);background:var(--au-bg);color:var(--au-text);box-shadow:var(--au-shadow)}
#login-screen .login-art {display:flex;flex-direction:column;justify-content:center;gap:var(--au-layout-gap)}
#login-screen .login-side {display:flex;flex-direction:column;align-self:start}
#login-screen .login-copy h1 {margin:0 0 var(--au-space-3);font:700 var(--au-font-title)/var(--au-line-heading) var(--au-font);color:var(--au-heading)}
#login-screen .login-copy p {font:400 var(--au-font-body)/var(--au-line-body) var(--au-font);color:var(--au-secondary)}
#login-screen .au-art-login-header #login-back {margin:0}
:is(#landing-screen,#login-screen) :is(.section-kicker,.entry-series-heading>strong) {color:var(--au-accent-text)}
:is(#landing-screen,#login-screen) :is(.entry-series-heading,.entry-series-foot,.entry-login-example-note) {color:var(--au-secondary);border-color:var(--au-outline)}
#login-screen .entry-login-story :is(h2,p) {color:var(--au-text)}
#login-screen .entry-login-story h2 em {background:none;color:var(--au-accent-text)}
#login-screen :is(.login-help,.login-divider,.login-footer) {color:var(--au-secondary)}
.workspace {
 --canvas:var(--au-bg-secondary);--surface:var(--au-bg);--surface-raised:var(--au-bg-secondary);--surface-hover:var(--au-accent-soft);
 --text:var(--au-text);--muted:var(--au-secondary);--line:var(--au-divider);--line-strong:var(--au-outline);--accent-soft:var(--au-accent-soft);--accent-line:var(--au-outline);
 background:var(--au-bg-secondary)
}
.workspace > .au-art-workspace-header {display:block;height:auto;min-height:0;margin:0;padding:0;top:0;position:sticky;z-index:40;border-radius:0;backdrop-filter:none}
.au-art-workspace-header #workspace-actions-open {width:min(240px,20vw);min-width:44px;background:var(--au-bg-secondary);color:var(--au-secondary);border-color:var(--au-outline)}
.au-art-workspace-header .au-art-controls {margin:0;gap:6px;flex-shrink:0}
.au-art-workspace-header .au-art-controls :is(.button,.icon-button) {min-height:44px;background:transparent;color:var(--au-text)}
.au-art-workspace-header .au-art-controls .profile-name {max-width:100px;overflow:hidden;text-overflow:ellipsis}
.au-art-workspace-header .au-nav {margin-left:auto}
.au-art-workspace-header #menu-toggle {flex:none}
.workspace :is(.cabinet-switch,.home-project-scopes) {background:var(--au-bg);color:var(--au-secondary)}
.workspace :is(.projects-home-button,.button-new,.text-button,.profile-avatar) {color:var(--au-accent-text)}
.workspace .empty-state-icon {color:var(--au-accent-text)}
.workspace .notice-error {background:var(--au-danger-bg);color:var(--au-danger);border-color:var(--au-outline)}
.workspace .notice-error .text-button {color:var(--au-danger)}
@media(max-width:1100px) {
 .au-art-workspace-header #workspace-actions-open {width:44px;padding:10px;justify-content:center}
 .au-art-workspace-header #workspace-actions-open > :is(span,kbd) {display:none}
 .au-art-workspace-header .au-brand small {display:none}
}
@media(max-width:760px) {
 .au-art-workspace-header .au-art-controls .profile {display:none}
 .au-art-workspace-header .au-art-controls .topbar-separator {display:none}
 .au-art-workspace-header .au-art-controls .telegram-button {display:none}
}

/* Universe 1.2 workspace adapter. Product data, artwork, preview pixels and event IDs stay unchanged. */
:root[data-au-product="art"] {
 --ui-control-height:var(--au-control-height);--ui-compact-height:var(--au-control-compact);
 --ui-control-font:var(--au-font-label);--ui-control-weight:var(--au-control-weight);--ui-control-line:20px;--ui-control-radius:var(--au-radius-control);
 --ui-control-padding-y:var(--au-control-py);--ui-control-padding-x:var(--au-control-px);--ui-field-padding-x:var(--au-control-px);
 --ui-label-font:var(--au-font-caption);--ui-label-line:18px;--ui-panel-radius:var(--au-radius-card);
 --ui-dialog-radius:var(--au-radius-large);--ui-dialog-padding:var(--au-panel-padding);--ui-section-gap:var(--au-layout-gap);
 --ui-space-1:var(--au-space-2);--ui-space-2:var(--au-space-3);--ui-space-3:var(--au-space-4);--ui-space-4:var(--au-space-6);
 --ui-danger-hover:var(--au-danger);--universe-panel:var(--au-bg);--universe-floating:var(--au-floating);
}
.workspace {
 --sidebar-width:var(--au-sidebar-width);--workspace-gutter:var(--au-page-padding);
 --radius-md:var(--au-radius-card);--radius-lg:var(--au-radius-large);--control-radius:var(--au-radius-control);
 --art-workspace-header-height:var(--au-header-height,88px);
 --universe-header:var(--art-workspace-header-height);--shadow-soft:var(--au-shadow);
 --focus-ring:var(--au-focus);--scrim:var(--au-overlay);
 grid-template-columns:var(--au-sidebar-width) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
 font:400 var(--au-font-body)/var(--au-line-body) var(--au-font);color:var(--au-text);
}
.workspace > .au-art-workspace-header {grid-column:1/-1;min-width:0}
.au-art-workspace-header .au-art-controls {gap:var(--au-space-2)}
.au-art-workspace-header :is(.button,.icon-button,.workspace-action-trigger) {min-height:var(--au-control-height);line-height:20px}
.au-art-workspace-header :is(.button,.icon-button,.workspace-action-trigger) > .icon {width:var(--au-icon-size);height:var(--au-icon-size);flex:none}
.workspace > .sidebar {
 top:var(--art-workspace-header-height);height:calc(100dvh - var(--art-workspace-header-height));min-height:0;
 width:auto;margin:0;padding:var(--au-space-4);border:0;border-right:1px solid var(--au-outline);
 border-radius:0;background:var(--au-bg);color:var(--au-text);overflow-y:auto;overscroll-behavior:contain;
}
.workspace .sidebar :is(.sidebar-nav-action,.projects-archive-button,.project-item) {
 min-height:var(--au-control-height);padding:10px 12px;border-radius:var(--au-radius-control);
 font-size:var(--au-font-label);line-height:20px;gap:var(--au-space-3);
}
.workspace .sidebar :is(.project-list,#designer-sidebar,#customer-sidebar) {gap:var(--au-space-2)}
.workspace .sidebar .project-list {margin-top:var(--au-space-4)}
.workspace .sidebar :is(.sidebar-heading h2,.sidebar-current>span,.sidebar-foot,.project-item-text small) {font-size:var(--au-font-caption);line-height:18px}
.workspace .sidebar .project-item.active {background:var(--au-accent-soft);color:var(--au-accent-text)}
.workspace > .main {display:flex;flex-direction:column;min-height:calc(100dvh - var(--art-workspace-header-height));width:100%;max-width:var(--au-content-width);min-width:0;margin-inline:auto;padding:var(--au-page-padding);background:var(--au-bg-secondary)}
.workspace .main > :is(.projects-home-view,.customer-home-view,.customer-project-view,.project-view,.new-project-view) {width:100%;max-width:none;margin:0;padding:0;min-width:0}
.workspace :is(.home-heading,.workspace-screen-heading,.project-titlebar,.panel-heading,.home-project-toolbar,.card-titlebar,.card-slides-heading) {gap:var(--au-card-gap)}
.workspace :is(.home-heading,.workspace-screen-heading,.project-titlebar) {margin:0 0 var(--au-layout-gap);padding:0;flex-wrap:wrap}
.workspace :is(.home-heading h1,.new-project-content h1,.project-heading h1) {margin:0;font:700 var(--au-font-title)/var(--au-line-heading) var(--au-font);letter-spacing:-.02em;color:var(--au-heading)}
.workspace :is(.workspace-screen-heading h2,.cards-panel>.figma-intro h2,.home-projects-heading h2) {font-size:var(--au-font-section);line-height:var(--au-line-heading);color:var(--au-heading)}
.workspace :is(.panel-heading h2,.panel-heading h3,.card-titlebar h3,.home-resume-main h2) {font-size:var(--au-font-subtitle);line-height:var(--au-line-heading);color:var(--au-heading)}
.workspace :is(.home-heading p,.hero-description,.workspace-screen-heading p,.home-project-card>p) {font-size:var(--au-font-body);line-height:var(--au-line-body);color:var(--au-secondary)}
.workspace :is(.section-kicker,.home-card-top small,.home-card-bottom,.sidebar-foot small,.cabinet-breadcrumb) {font-size:var(--au-font-caption);line-height:18px}
.workspace :is(.home-projects,.home-resume-steps ol) {gap:var(--au-card-gap)}
.workspace .home-projects {grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.workspace :is(.home-project-card,.home-empty,.cabinet-panel,.project-settings,.file-imports-panel,.first-start-panel,.first-setup-panel,.first-result-panel,.cards-sidebar,.home-resume) {
 padding:var(--au-panel-padding);border:1px solid var(--au-outline);border-radius:var(--au-radius-card);
 background:var(--au-bg);color:var(--au-text);box-shadow:var(--au-shadow);
}
.workspace :is(.home-project-card,.home-resume,.home-empty) {margin-bottom:var(--au-layout-gap)}
.workspace .home-project-card {margin-bottom:0}
.workspace .home-project-card:hover {background:var(--au-bg);border-color:var(--au-accent);transform:none;box-shadow:var(--au-shadow)}
.workspace :is(.home-resume-main,.home-resume-steps) {padding:0}
.workspace .home-resume-steps {margin-top:var(--au-card-gap)}
.workspace .home-resume-main>.button:hover {background:var(--au-accent-soft)}
.workspace :is(.designer-summary,.home-project-toolbar,.project-source-choice) {margin-block:0 var(--au-layout-gap)}
.workspace :is(.home-project-scopes,.production-workspace-tabs) {background:var(--au-bg);border-color:var(--au-outline)}
.workspace .home-project-toolbar {padding-bottom:var(--au-card-gap);flex-wrap:wrap}
.workspace .project-tabs.workspace-project-nav {
 top:var(--art-workspace-header-height);margin:0 0 var(--au-layout-gap);padding:var(--au-space-1);
 gap:var(--au-space-2);border:1px solid var(--au-outline);border-radius:var(--au-radius-card);
 background:var(--au-bg);backdrop-filter:none;box-shadow:none;
}
.workspace .workspace-project-nav .project-tab {min-height:var(--au-control-height);padding:10px 12px;border-radius:var(--au-radius-control);font-size:var(--au-font-label)}
.workspace .workspace-project-nav strong {font-size:var(--au-font-label);line-height:20px}
.workspace .workspace-project-nav small {font-size:var(--au-font-caption);line-height:18px}
.workspace .workspace-project-nav .project-tab.active {background:var(--au-accent-soft);color:var(--au-accent-text)}
.workspace .project-view :is(.figma-panel,.production-panel,.cards-panel,#assets-panel,#events-panel) {padding:var(--au-panel-padding);margin:0;min-width:0;border:1px solid var(--au-outline);border-radius:var(--au-radius-card);background:var(--au-bg);box-shadow:var(--au-shadow)}
.workspace :is(.project-layout,.cards-layout) {gap:var(--au-layout-gap);padding:0;margin:0}
.workspace .project-layout:not(.figma-layout):not(.has-ready-import) {grid-template-columns:var(--au-sidebar-width) minmax(0,1fr)}
.workspace .cards-layout {grid-template-columns:var(--au-sidebar-width) minmax(0,1fr)}
.workspace :is(.edit-project-form,.slide-save-form,.card-create-form) {gap:var(--au-space-2)}
:root[data-au-product="art"] :is(.button,.text-button,.icon-button,.dialog-close,.notification-bell,.notification-close,input,select,textarea):focus-visible {outline:3px solid var(--au-focus);outline-offset:3px}
.workspace :is(.button,.icon-button,.text-button) > .icon {width:var(--au-icon-size);height:var(--au-icon-size);flex:none}
.workspace #prod-editor-view {--editor-line:var(--au-outline);--editor-muted:var(--au-secondary)}
.workspace #prod-editor-view :is(#prod-product-form,.production-field-card,.production-data-save) {background:var(--au-bg);color:var(--au-text);border-color:var(--au-outline)}
/* Responsive header keeps 44px controls; shared observer measures actual visible header height. */
@media(max-width:1440px) {
 .au-art-workspace-header #workspace-actions-open {width:var(--au-control-height);min-width:var(--au-control-height);padding:var(--au-space-2);justify-content:center}
 .au-art-workspace-header #workspace-actions-open>:is(span,kbd),.au-art-workspace-header .au-brand small,.au-art-workspace-header .profile {display:none}
 .au-art-workspace-header .au-art-controls :is(.account-button,.telegram-button,.figma-connection-trigger) {width:var(--au-control-height);min-width:var(--au-control-height);flex:0 0 var(--au-control-height);padding:var(--au-space-2);justify-content:center}
 .au-art-workspace-header .au-art-controls :is(.account-button,.telegram-button)>span,.au-art-workspace-header .figma-connection-trigger>span {display:none}
 .au-art-workspace-header .figma-connection-trigger::after {content:"F";font:700 16px/20px var(--au-font)}
 .workspace :is(.project-layout:not(.figma-layout):not(.has-ready-import),.cards-layout) {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px) {
 .workspace {grid-template-columns:minmax(0,1fr)}
 .au-art-workspace-header .au-header-inner {display:grid;grid-template-columns:44px minmax(0,1fr) 64px 44px;grid-template-rows:44px 44px;padding:12px 16px;gap:8px;align-items:center}
 .au-art-workspace-header #menu-toggle {display:inline-flex;grid-column:1;grid-row:1}
 .au-art-workspace-header .au-brand {grid-column:2;grid-row:1;gap:8px;min-width:0;font-size:21px}
 .au-art-workspace-header .au-brand>span:last-child {white-space:nowrap;min-width:0}
 .au-art-workspace-header #workspace-actions-open {grid-column:4;grid-row:1}
 .au-art-workspace-header .au-header-actions {display:contents}
 .au-art-workspace-header .au-theme {grid-column:3;grid-row:1;margin:0;order:0}
 .au-art-workspace-header .au-nav {grid-column:1/3;grid-row:2;justify-self:start;margin:0;order:0}
 .au-art-workspace-header .au-art-controls {grid-column:1/-1;grid-row:2;justify-self:end;max-width:calc(100% - 124px);margin:0;flex-wrap:nowrap;order:0;gap:8px}
 .au-art-workspace-header .topbar-separator {display:none}
 .au-art-workspace-header .au-projects {position:static}
 .au-art-workspace-header .au-projects-panel {left:16px;right:16px;top:calc(100% + 4px);width:auto;max-width:none;min-width:0;max-height:calc(100dvh - var(--art-workspace-header-height) - 24px);overflow-y:auto}
 .workspace>.sidebar {position:fixed;z-index:39;top:calc(var(--art-workspace-header-height) + 16px);bottom:16px;left:16px;width:var(--au-sidebar-width);max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - var(--art-workspace-header-height) - 32px);margin:0;border:1px solid var(--au-outline);border-radius:var(--au-radius-card);padding:var(--au-space-4)}
 .workspace>.sidebar:not(.open) {transform:translateX(calc(-100% - 32px))}
 .workspace>.sidebar.open {transform:none}
 .workspace>.sidebar-scrim:not([hidden]) {display:block;position:fixed;inset:var(--art-workspace-header-height) 0 0;z-index:38;background:var(--au-overlay);border:0}
 .workspace .home-search {width:100%;margin-left:0}
}
@media(max-width:600px) {
 .workspace .main :is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],[type=color]),select,textarea) {font-size:16px}
 .workspace .home-resume-main {grid-template-columns:minmax(0,1fr)}
 .workspace .home-resume-main>.button {grid-column:1;grid-row:auto;justify-self:start}
 .au-art-workspace-header .au-brand-mark {width:40px;height:40px}
}
@media(max-width:380px) {
 .au-art-workspace-header .au-header-inner {grid-template-rows:44px 44px 44px}
 .au-art-workspace-header .au-nav {grid-column:1/-1;grid-row:2}
 .au-art-workspace-header .au-art-controls {grid-column:1/-1;grid-row:3;max-width:100%;justify-self:end}
 .au-art-workspace-header .au-brand {font-size:19px}
}

/* Remaining chrome variants share scale; image thumbnails and rendered preview content are excluded. */
.workspace .sidebar .project-item-text strong {font-size:var(--au-font-label);font-weight:500;line-height:20px}
.workspace .sidebar .project-item>.icon {width:var(--au-icon-size);height:var(--au-icon-size)}
.workspace :is(.count-badge,.project-format-badge,.designer-summary span,.file-imports-panel small) {font-size:var(--au-font-caption);line-height:18px}
.workspace .new-project-content {max-width:none;margin:0;padding:0}
.workspace .project-source-choice {gap:var(--au-card-gap)}
.workspace .home-resume-steps[open] {padding-top:var(--au-card-gap)}
.workspace :is(.designer-summary>button,.production-source-toolbar button) {min-height:var(--au-control-compact);font-size:var(--au-font-caption)}
@media(max-width:600px) {.workspace :is(.designer-summary>button,.production-source-toolbar button) {min-height:var(--au-control-height)}}

.workspace .workspace-route {margin:0 0 var(--au-layout-gap);padding:var(--au-panel-padding);border:1px solid var(--au-outline);border-radius:var(--au-radius-card);background:var(--au-bg);box-shadow:var(--au-shadow)}

/* Footer belongs to the page flow and stays below content on short workspace screens. */
.workspace>.main>.au-art-workspace-footer {padding-inline:0;padding-bottom:0}
.workspace .main>section {flex-shrink:0}
@media(max-width:900px) {
 .au-art-login-content {grid-template-columns:minmax(0,1fr)}
 #login-screen .login-art {display:none}
 #login-screen .login-side {max-width:520px;justify-self:center}
}

/* Standalone invitations, viewer, download and import help share the same theme. */
.au-art-delivery .cabinet-panel {max-width:720px;margin-inline:auto;padding:var(--au-panel-padding);border-radius:var(--au-radius-card)}
.invite-page :is(.invite-tabs,.invite-password-row) {background:var(--au-bg-secondary)}
.invite-page .invite-tabs>button {min-height:var(--au-control-height);font:500 var(--au-font-label)/20px var(--au-font);border-radius:var(--au-radius-control)}
.invite-page .invite-tabs>button[aria-selected=true] {background:var(--au-bg);color:var(--au-text)}
.invite-page .invite-card {padding:var(--au-panel-padding);border-radius:var(--au-radius-card);box-shadow:var(--au-shadow)}
.invite-page .invite-card h1,.delivery-page h1,.browser-import-page h1 {font:700 var(--au-font-title)/var(--au-line-heading) var(--au-font);color:var(--au-heading)}
.browser-import-page .kicker {margin-top:0}
.browser-import-page section {padding:var(--au-panel-padding);border-radius:var(--au-radius-card)}
.browser-import-page .au-art-import-note {margin:var(--au-layout-gap) 0 0;font:400 var(--au-font-caption)/var(--au-line-body) var(--au-font);color:var(--au-secondary)}
.review-page #review-lightbox-close {color:#f8faff}
