/* Presentation Studio 3.6 — one visual system for the application chrome (UX audit, 15.10.2026).
   Neutral zinc greys, hairline borders, 6/8/12px radii and quiet shadows in the spirit of Notion and shadcn/ui; the brand
   blue #4460ac is the accent of the single primary action, the selection and the current step. This file is loaded last.
   It never selects inside a slide (.slide-scene, [data-fit-scene], .library-frame): slides keep the People renderer. */

/* ---------------------------------------------------------------- tokens */
:root{
 --surface:#ffffff;--surface-alt:#fafafa;--surface-raised:#ffffff;--surface-hover:#f4f4f5;--surface-active:#e4e4e7;
 --ink:#18181b;--muted:#71717a;--subtle:#a1a1aa;--line:#e4e4e7;--line-strong:#d4d4d8;
 --blue:#4460ac;--blue-fill:#4460ac;--blue-hover:#3b5499;--blue-soft:#eef1f8;--on-blue:#ffffff;
 --danger:#dc2626;--danger-fill:#dc2626;--danger-soft:#fef2f2;--success:#16a34a;--success-soft:#f0fdf4;--warning:#b45309;--warning-soft:#fffbeb;
 --overlay:#09090b66;--toast-bg:#18181b;--toast-fg:#fafafa;
 --radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-full:999px;
 --shadow-xs:0 1px 2px #0000000d;--shadow-md:0 4px 12px -2px #0000001a,0 2px 4px -2px #0000000f;--shadow-lg:0 16px 48px -12px #00000038;
 --font-ui:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 /* Names used by the earlier stylesheets read the same tokens. */
 --border:var(--line);--hover:var(--surface-hover);--font:var(--font-ui);--ui-font:var(--font-ui);--shadow:var(--shadow-md);--pale:var(--surface-alt);--sidebar:var(--surface-alt);
 --prep-ink:var(--ink);--prep-blue:var(--blue);--prep-blue-soft:var(--blue-soft);--prep-red:var(--danger);--prep-amber:var(--warning);--prep-line:var(--line);
 color-scheme:light;
}
:root[data-theme=dark]{
 --surface:#18181b;--surface-alt:#1f1f23;--surface-raised:#232327;--surface-hover:#2a2a2f;--surface-active:#3a3a40;
 --ink:#f4f4f5;--muted:#a1a1aa;--subtle:#71717a;--line:#2e2e33;--line-strong:#3f3f46;
 --blue:#9db0ec;--blue-fill:#4a66b4;--blue-hover:#5671bf;--blue-soft:#23293b;--on-blue:#ffffff;
 --danger:#f87171;--danger-fill:#b91c1c;--danger-soft:#3b1a1a;--success:#4ade80;--success-soft:#14261a;--warning:#fbbf24;--warning-soft:#2d2410;
 --overlay:#000000a6;--toast-bg:#f4f4f5;--toast-fg:#18181b;
 --shadow-xs:none;--shadow-md:0 8px 24px -4px #00000099;--shadow-lg:0 24px 64px -12px #000000b3;
 color-scheme:dark;
}

/* ---------------------------------------------------------------- base */
body{font-family:var(--font-ui);color:var(--ink);background:var(--surface);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
::selection{background:#4460ac33}

/* ---------------------------------------------------------------- top bars */
/* Home: the logo on the left, «Шаблоны» and the avatar on the right. */
.topbar{display:flex;align-items:center;gap:12px;height:52px;min-height:52px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:none;position:relative;z-index:20;flex:none}
.topbar-end{display:flex;align-items:center;gap:8px;margin-left:auto}
.studio-header .studio-brand{font-size:14px;letter-spacing:-.01em;color:var(--ink)}
.studio-header .studio-brand img{width:22px;height:24px}
/* Projects: name and space | the three steps | actions. The steps stay centred while there is room; the actions never
   shrink, the name does. */
.topbar.editor-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(max-content,1fr);gap:16px}
.editor-start{display:flex;align-items:center;gap:6px;min-width:0}
.editor-home{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;cursor:pointer}
.editor-home:hover{background:var(--surface-hover)}
.editor-home img{width:22px;height:22px}
.editor-title{display:block;min-width:0;max-width:420px;padding:6px 8px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink);font-size:14px;font-weight:600;line-height:20px;text-align:left;cursor:pointer}
.editor-title>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
button.editor-title:hover{background:var(--surface-hover)}
.editor-title.is-static{cursor:default}
.editor-space{display:inline-flex;align-items:center;gap:6px;flex:none;height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--radius-full);background:var(--surface);color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer}
.editor-space span{max-width:140px;overflow:hidden;text-overflow:ellipsis}
button.editor-space:hover{background:var(--surface-hover);color:var(--ink)}
.editor-space.is-static{cursor:default}
.editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.editor-actions .btn{min-height:32px}
.editor-actions [data-action="project-history"]{margin-right:4px}
.editor-actions .editor-export{margin:0 4px}
.editor-save{min-width:116px}
.editor-save.quiet:disabled{opacity:1;color:var(--muted);background:transparent}
.editor-save .save-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-full);background:#ffffff2e;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.account-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:var(--radius-full);background:transparent;cursor:pointer}
.account-button:hover{background:var(--surface-hover)}
.account-button .avatar{width:28px;height:28px;font:600 12px/1 var(--font-ui);background:var(--surface-active);color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1280px){.editor-space span{display:none}.editor-space{width:24px;padding:0;justify-content:center}}
@media(max-width:1180px){.editor-topbar .step:not(.current) .step-name{display:none}.editor-topbar .steps>i{width:12px}.editor-present>span{display:none}.editor-present{padding:0 8px}}
@media(max-width:900px){.editor-export>span{display:none}.editor-actions .editor-export{padding:0 8px}.editor-space{display:none}}
@media(max-width:760px){.editor-topbar [data-hide="760"]{display:none}}
/* Phones: name and actions in the first row, the three steps in a second row of their own (they are never hidden). */
@media(max-width:640px){
 .topbar{height:48px;min-height:48px;padding:0 8px}
 .topbar.editor-topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"start actions" "steps steps";height:auto;min-height:0;padding:0;gap:0}
 .editor-start{grid-area:start;height:48px;padding-left:8px}
 .editor-actions{grid-area:actions;height:48px;padding-right:8px;gap:2px}
 .editor-topbar .steps{grid-area:steps;justify-content:center;height:40px;border-top:1px solid var(--line)}
 .editor-topbar [data-hide="640"]{display:none}
 .editor-save{min-width:0}
 .editor-save.quiet>span{display:none}
 .editor-save.quiet{width:32px;padding:0}
 .editor-step-action{display:none}
 .header-templates>span{display:none}
 .header-templates{width:32px;padding:0}
}

/* ---------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius-sm);font-size:14px;font-weight:500;line-height:1.2;box-shadow:none;cursor:pointer;white-space:nowrap}
.btn svg{flex:none;width:16px;height:16px}
.btn.small{min-height:32px;padding:0 12px;font-size:13px}
.btn.large{min-height:40px;padding:0 18px}
.btn.primary{background:var(--blue-fill);border-color:var(--blue-fill);color:var(--on-blue)}
.btn.primary:hover:not(:disabled){background:var(--blue-hover);border-color:var(--blue-hover)}
.btn.secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.btn.secondary:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong);color:var(--ink)}
.btn.quiet{background:transparent;border-color:transparent;color:var(--muted)}
.btn.quiet:hover:not(:disabled){background:var(--surface-hover);color:var(--ink)}
.btn.danger{background:var(--danger-fill);border-color:var(--danger-fill);color:#fff}
.btn.danger:hover:not(:disabled){filter:brightness(.92)}
.btn.danger-text{color:var(--danger)}
.btn:disabled,.btn[aria-disabled=true]{opacity:.5;cursor:default}
.btn.primary:disabled{background:var(--surface-hover);border-color:var(--surface-hover);color:var(--subtle);opacity:1}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);cursor:pointer}
.icon-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--ink)}
.icon-btn:disabled{opacity:.4;cursor:default}
.icon-btn svg{width:18px;height:18px}

/* ---------------------------------------------------------------- fields */
input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=number],select,textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background-color:var(--surface);color:var(--ink);font-size:14px;box-shadow:none}
input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=number],select{min-height:36px}
input::placeholder,textarea::placeholder{color:var(--subtle)}
/* A field inside a composite control (search with an icon) has no frame of its own. */
:is(.slide-search,.library-search) input{height:100%;min-height:0;padding-top:0;padding-bottom:0;border:0;background:transparent;font-size:13px}
.slide-search{height:32px;margin:0 12px 10px;padding:0 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--subtle)}
.slide-search:focus-within{border-color:var(--blue)}
.library-search{height:36px}
:root[data-theme=dark] :is(.slide-search,.library-search,.hub-search) input:not([type=checkbox]):not([type=radio]){background:transparent}
input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:none;outline:none}
.control-label,.field label{font-size:13px;font-weight:500;color:var(--ink)}
.field-help,.control-note{font-size:13px;color:var(--muted)}

/* ---------------------------------------------------------------- dialogs */
.modal{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}
.modal::backdrop{background:var(--overlay);backdrop-filter:none}
.modal .modal-header{min-height:0;padding:20px 24px 4px;border-bottom:0}
.modal .modal-header h2{font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.modal .modal-body{padding:16px 24px 20px}
.modal .modal-footer{min-height:0;padding:0 24px 20px;gap:8px;border-top:0;background:transparent}
.modal-intro{font-size:14px;color:var(--muted);line-height:1.5}
/* A footer whose only button closes the dialog is not shown: ×, Esc and the backdrop close it (shadcn). */
.modal .modal-footer:has(> .btn[data-action="close-dialog"]:only-child){display:none}
.modal:has(.modal-footer > .btn[data-action="close-dialog"]:only-child) .modal-body{padding-bottom:24px}
:is(.modal.source-sync-dialog,.modal.library320,.modal.review-dialog,.modal.preflight-dialog,.modal.trash-dialog,.template-library.modal,.history-modal.modal,.users-dialog.modal,.user-settings-dialog.modal){border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border-color:var(--line)}

/* ---------------------------------------------------------------- popovers and menus (class names stay JS hooks) */
:is(.slide-popover,.text-edit-popover,.block-menu,.font-popover,.image-popover,.free-image-popover,.text-move-menu),:root[data-theme=dark] :is(.slide-popover,.text-edit-popover,.block-menu,.font-popover,.image-popover,.free-image-popover,.text-move-menu){background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}

/* ---------------------------------------------------------------- toast */
.toast{background:var(--toast-bg);color:var(--toast-fg);border-radius:var(--radius-md);box-shadow:var(--shadow-md);font-size:13px;padding:10px 16px}
.toast.error{background:var(--danger-fill);color:#fff}
.toast .toast-action{color:var(--toast-fg);opacity:.85}

/* ---------------------------------------------------------------- steps */
.steps{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.step{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}
.step b{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border:1px solid var(--line-strong);border-radius:var(--radius-full);background:var(--surface);color:var(--muted);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.step b svg{width:12px;height:12px}
.step.current{color:var(--ink)}
.step.current b{background:var(--blue-fill);border-color:var(--blue-fill);color:var(--on-blue)}
.steps>i{display:block;flex:none;width:20px;height:1px;background:var(--line-strong)}
.step-link{margin:-4px -8px -4px -4px;padding:4px 8px 4px 4px;border:0;border-radius:var(--radius-full);background:none;font:inherit;cursor:pointer}
.step-link:hover{background:var(--surface-hover);color:var(--ink)}

/* ---------------------------------------------------------------- dropdown menus (header ⋯, account) */
.app-menu{position:fixed;z-index:70;min-width:224px;max-width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow-y:auto;padding:4px;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-md);animation:menu-in .12s ease-out}
.menu-group+.menu-group{margin-top:4px;padding-top:4px;border-top:1px solid var(--line)}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:32px;padding:0 8px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--ink);font-size:13px;font-weight:400;text-align:left;white-space:nowrap;cursor:pointer}
.menu-item svg{flex:none;color:var(--muted)}
.menu-item:hover:not(:disabled),.menu-item:focus{background:var(--surface-hover)}
.menu-item:disabled,.menu-item:disabled svg{color:var(--subtle);cursor:default}
.menu-item.is-danger,.menu-item.is-danger svg{color:var(--danger)}
.menu-label{display:flex;flex-direction:column;gap:2px;min-width:0;padding:6px 8px 8px}
.menu-label b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-label span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-menu .menu-overflow,.app-menu [data-overflow]{display:none}
@media(max-width:760px){.app-menu .menu-overflow{display:block}.app-menu [data-overflow="760"]{display:flex}}
@media(max-width:640px){
 .app-menu [data-overflow="640"]{display:flex}
 .app-menu{left:0!important;right:0;top:auto!important;bottom:0;width:auto;max-width:none;max-height:80dvh;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 0 0 100vmax var(--overlay);animation:sheet-in .16s ease-out}
 .menu-item{min-height:44px;font-size:14px}
}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}}
@keyframes sheet-in{from{opacity:.6;transform:translateY(16px)}}

/* ---------------------------------------------------------------- export */
.modal.export-dialog{width:min(560px,calc(100vw - 32px))}
.export-check{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-alt);color:var(--ink);text-align:left;cursor:pointer}
.export-check:hover{background:var(--surface-hover)}
.export-check>svg{flex:none;color:var(--success)}
.export-check.has-major>svg{color:var(--warning)}
.export-check.has-critical>svg{color:var(--danger)}
.export-check>span:first-of-type{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.export-check b{font-size:14px;font-weight:500}
.export-check small{font-size:12px;color:var(--muted)}
.export-check-more{flex:none;font-size:13px;font-weight:500;color:var(--blue)}
.export-group{margin-top:20px}
.export-group h3{margin:0 0 4px;font-size:12px;font-weight:500;color:var(--muted)}
.export-row{display:flex;align-items:center;gap:12px;width:calc(100% + 16px);margin:0 -8px;padding:10px 8px;border:0;border-radius:var(--radius-md);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.export-row:hover{background:var(--surface-hover)}
.export-row>svg{flex:none;color:var(--muted)}
.export-row>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.export-row b{font-size:14px;font-weight:500}
.export-row small{font-size:12px;line-height:1.4;color:var(--muted)}

/* ---------------------------------------------------------------- tabs (settings) */
.tabs{display:flex;gap:20px;margin:0 0 20px;border-bottom:1px solid var(--line)}
.tab{position:relative;padding:8px 0 10px;border:0;background:none;color:var(--muted);font-size:13px;font-weight:500;cursor:pointer}
.tab:hover,.tab[aria-selected="true"]{color:var(--ink)}
.tab[aria-selected="true"]::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--ink)}
.modal .modal-footer[hidden]{display:none}
.settings-panel .inline-note{margin:12px 0;padding:10px 12px;border:0;border-radius:var(--radius-md);background:var(--warning-soft);color:var(--warning);font-size:13px;line-height:1.45}
.settings-panel>.btn{margin-top:4px}
.settings-dialog .settings-local-fonts{border:0;padding:0}
.settings-dialog .settings-version{padding-top:0;font-size:13px}

/* ---------------------------------------------------------------- cards */



/* ---------------------------------------------------------------- segmented switch (shadcn Tabs list) */
.segmented{display:inline-flex;align-items:center;gap:2px;padding:3px;border:0;border-radius:var(--radius-md);background:var(--surface-hover)}
.segmented label{flex:1;margin:0;cursor:pointer}
.segmented input{position:absolute;width:0;height:0;opacity:0}
.segmented label>span{display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:0 12px;border-radius:var(--radius-sm);color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}
.segmented input:checked+span{background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow-xs)}
.segmented input:disabled+span{opacity:.5;cursor:default}
.segmented>button{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.segmented>button:hover{color:var(--ink)}
.segmented>button.selected,.segmented>button[aria-selected="true"]{background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow-xs)}

/* ---------------------------------------------------------------- search field (home, users, library) */
.hub-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--subtle)}
.hub-search:focus-within{border-color:var(--blue)}
.hub-search input{flex:1;min-width:0;height:100%;min-height:0;padding:0;border:0;background:transparent;color:var(--ink);font-size:14px;outline:none}
.library-search-row .hub-search{flex:1;min-width:0}
.users-toolbar .hub-search{flex:1;max-width:360px}
@media(max-width:700px){.users-toolbar .hub-search{max-width:none;flex-basis:70%}}

/* ---------------------------------------------------------------- home (UX audit R08) */
.home360{max-width:1120px;margin:0 auto;padding:40px 32px 56px}
.home-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-top h1{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.home-top .hub-search{width:280px;height:32px}
.home-start{padding:16px 20px;border:1px dashed var(--line-strong);border-radius:var(--radius-lg);background:var(--surface-alt);transition:border-color .12s,background-color .12s}
.home-start.drag-over{border-color:var(--blue);background:var(--blue-soft)}
.home-start-row{display:flex;align-items:center;gap:14px}
.home-start-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--muted)}
.home-start-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.home-start-text b{font-size:14px;font-weight:600;color:var(--ink)}
.home-start-text span{font-size:13px;color:var(--muted)}
.home-start-actions{display:flex;flex:none;gap:8px}
.home-start-note{margin:10px 0 0 54px;font-size:12px;color:var(--muted)}
.home-start .inline-note{margin:12px 0 0 54px}
.home-import{display:inline-flex;align-items:center;gap:6px;margin:8px 0 0 54px;padding:2px 0;border:0;background:none;color:var(--muted);font-size:12px;cursor:pointer}
.home-import:hover:not(:disabled){color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.home-start.is-first{padding:56px 32px 40px;text-align:center}
.home-start.is-first h2{margin:0;font-size:32px;line-height:40px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.home-start.is-first>p{max-width:520px;margin:12px auto 0;font-size:15px;line-height:24px;color:var(--muted)}
.home-start.is-first .home-start-row{flex-direction:column-reverse;gap:12px;margin-top:28px}
.home-start.is-first :is(.home-start-icon,.home-start-text b){display:none}
.home-start.is-first :is(.home-start-note,.home-import,.inline-note){margin-left:0}
.project-hub{margin-top:32px}
.hub-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.workspace-trash.selected{background:var(--surface-hover);color:var(--ink)}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px}
.hub-project{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);transition:border-color .12s}
.hub-project:hover{border-color:var(--line-strong)}
.hub-project-open{display:flex;flex-direction:column;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.hub-preview{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid var(--line);background:var(--surface-alt)}
.hub-draft{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--subtle);font-size:12px}
.hub-project-info{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px 12px}
.hub-project-info b{overflow:hidden;color:var(--ink);font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.hub-meta{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.hub-date{margin-left:auto}
.stage-badge{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:var(--radius-sm);background:var(--surface-hover);color:var(--ink);font-weight:500}
.stage-badge.stage-deck{background:var(--blue-soft);color:var(--blue)}
.hub-project-trash{position:absolute;top:8px;right:8px;width:28px;height:28px;border:1px solid var(--line);background:var(--surface);opacity:0;transition:opacity .12s}
.hub-project:hover .hub-project-trash,.hub-project:focus-within .hub-project-trash{opacity:1}
.hub-project-trash svg{width:16px;height:16px}
.hub-empty{padding:48px 0;color:var(--muted);font-size:14px;text-align:center}
.hub-trash-panel .modal-body{padding:0}
@media(hover:none){.hub-project-trash{opacity:1}}
@media(max-width:640px){
 .home360{padding:20px 16px 40px}
 .home-top{flex-wrap:wrap}
 .home-top .hub-search{order:2;width:100%}
 .home-start{padding:16px}
 .home-start-row{flex-wrap:wrap}
 .home-start-actions{flex-direction:column;width:100%}
 .home-start-actions .btn{width:100%}
 .home-start-note,.home-start .inline-note,.home-import{margin-left:0}
 .home-start.is-first{padding:32px 16px 24px}
 .home-start.is-first h2{font-size:24px;line-height:32px}
 .workspace-trash>span{display:none}
}
@media(prefers-reduced-motion:reduce){.hub-project,.hub-project-trash,.home-start{transition:none}}

/* ---------------------------------------------------------------- template gallery cards (UX audit R09) */
.brand-choice{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);transition:border-color .12s}
.brand-choice:hover{border-color:var(--line-strong);box-shadow:none}
.brand-choice-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.brand-choice-art{display:block;padding:12px;border-bottom:1px solid var(--line);background:var(--surface-alt)}
.brand-choice-info{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.brand-choice-name{display:flex;align-items:center;gap:8px}
.brand-choice-name b{color:var(--ink);font-size:16px;font-weight:600}
.selected-pill{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:var(--radius-sm);background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:500}
.template-format{color:var(--muted);font-size:12px}
.brand-choice-description{color:var(--muted);font-size:13px;line-height:1.5}

/* ---------------------------------------------------------------- creation wizard (UX audit R10, R11) */
.creation-flow{max-width:1120px;padding:24px 32px 0;min-height:calc(100dvh - 53px)}
.creation-steps{display:flex;gap:24px;margin:0 0 28px;border-bottom:1px solid var(--line);overflow-x:auto}
.creation-steps button{position:relative;display:inline-flex;align-items:center;gap:6px;padding:10px 0 12px;border:0;background:none;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.creation-steps button svg{width:12px;height:12px}
.creation-steps button:hover:not(:disabled){color:var(--ink)}
.creation-steps button.current{color:var(--ink)}
.creation-steps button.current::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--ink)}
.creation-steps button:disabled:not(.current){opacity:.5;cursor:default}
.creation-steps-compact{display:none;margin:0 0 16px;color:var(--muted);font-size:13px;font-weight:500}
.creation-heading{display:block;margin-bottom:24px}
.creation-heading h1{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.creation-heading p{margin:6px 0 0;color:var(--muted);font-size:14px}
.creation-document{display:block}
.creation-preview{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface-alt)}
.creation-preview-bar{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px 6px 16px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--muted)}
.creation-preview-bar>b{min-width:0;overflow:hidden;color:var(--ink);font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.creation-facts{flex:none;font-size:12px;font-variant-numeric:tabular-nums}
.creation-preview-bar .segmented{margin-left:8px}
.segmented.compact>button{min-height:24px;padding:0 8px;font-size:12px}
.creation-preview-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.creation-preview>.creation-note{margin:0;padding:8px 16px;border-bottom:1px solid var(--line);background:var(--warning-soft);color:var(--warning);font-size:13px}
.creation-footer{position:sticky;bottom:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding:16px 0;border-top:1px solid var(--line);background:var(--surface)}
.creation-footer>div{display:flex;align-items:center;gap:12px}
.creation-footer-end{margin-left:auto}
.creation-footer .btn.primary{min-width:120px}
.creation-confirm-hint{color:var(--muted);font-size:12px}
.btn-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-full);background:#ffffff2e;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.btn:disabled .btn-count{background:var(--line)}
.plan-mode{width:fit-content}
.plan-mode+.field-help{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:8px}
.generation-status .task-card>.spinner{display:none}
/* Preparation: a quiet callout with one secondary action; the × hides it for this draft. */
.prep-offer{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;margin:0 0 20px;padding:16px 48px 16px 16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--blue-soft);color:var(--ink)}
.prep-offer-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--blue)}
.prep-offer h2{margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}
.prep-offer ul{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 4px;padding:0;list-style:none;font-size:13px}
.prep-offer li b{font-weight:600;font-variant-numeric:tabular-nums}
.prep-offer p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.prep-offer-actions{display:flex;align-items:center;gap:8px}
.prep-offer-close{position:absolute;top:8px;right:8px;width:28px;height:28px}
.prep-done{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;margin:0 0 20px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--success-soft);color:var(--muted);font-size:13px}
.prep-done-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--radius-full);background:var(--surface);color:var(--success)}
.prep-done b{color:var(--ink);font-size:14px;font-weight:600}
.prep-done p{margin:2px 0 0;line-height:1.5}
.prep-done-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.prep-tools{display:grid;justify-items:start;gap:4px;margin-top:12px}
.prep-tools .prep-ai{width:100%}
.prep-check{appearance:none;display:inline-grid;place-content:center;flex:none;width:16px;height:16px;margin:0;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);cursor:pointer}
.prep-check:checked,.prep-check:indeterminate{border-color:var(--blue-fill);background:var(--blue-fill)}
.prep-check:checked::after{content:'';width:8px;height:4px;margin-top:-2px;border:2px solid var(--on-blue);border-top:0;border-right:0;transform:rotate(-45deg)}
.prep-check:indeterminate::after{content:'';width:8px;height:2px;background:var(--on-blue)}
@media(max-width:860px){.prep-offer,.prep-done{grid-template-columns:auto 1fr}.prep-offer-actions,.prep-done-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:640px){
 .creation-flow{padding:16px 16px 0}
 .creation-steps{display:none}
 .creation-steps-compact{display:block}
 .creation-heading h1{font-size:22px;line-height:28px}
 .creation-preview-bar{flex-wrap:wrap;padding-left:12px}
 .creation-facts{display:none}
 .creation-confirm-hint{display:none}
 .creation-footer .btn.primary{min-width:0}
}

/* ---------------------------------------------------------------- Text step (UX audit R13; document surfaces, never slides) */
.outline260{--doc-col:760px;max-width:none;min-height:calc(100dvh - 53px);margin:0;padding:0 64px 96px;background:var(--surface)}
.document-toolbar{position:sticky;top:0;z-index:25;margin:0 -64px 40px;padding:0 64px;border-bottom:1px solid var(--line);background:var(--surface);backdrop-filter:none}
.document-toolbar-inner{display:flex;align-items:center;gap:2px;max-width:var(--doc-col);min-height:44px;margin:0 auto}
.doc-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:32px;height:32px;padding:0 8px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.doc-tool:hover:not(:disabled){background:var(--surface-hover);color:var(--ink)}
.doc-tool:disabled{opacity:.45;cursor:default}
.doc-tool b,.doc-tool i,.doc-tool u{font-size:14px;line-height:1}
.doc-tool[aria-pressed="true"]{background:var(--surface-hover);color:var(--ink)}
.toolbar-separator{flex:none;width:1px;height:16px;margin:0 6px;background:var(--line)}
/* The block type is a select trigger (shadcn): icon, name, chevron. */
.doc-block-menu .doc-tool{min-width:144px;justify-content:flex-start;padding:0 8px;border:1px solid var(--line-strong);color:var(--ink)}
.doc-block-menu .doc-tool>span:not(.block-type-icon){flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis}
.doc-block-menu .doc-tool>svg{flex:none;color:var(--muted)}
.block-type-icon{display:flex;flex:none;align-items:center;justify-content:center;min-width:20px;height:20px;color:var(--muted);font:600 11px/1 var(--font-ui);letter-spacing:-.02em}
.node-gutter .doc-tool{width:24px;min-width:24px;height:26px;padding:0;color:var(--subtle)}
/* The document column: body 16/26, headings 600 in the text colour. */
.document-flow{max-width:var(--doc-col);margin:0 auto;padding:0;color:var(--ink)}
.doc-editable{min-height:26px;margin:0;padding:3px 0;color:var(--ink);font-size:16px;line-height:26px;white-space:pre-wrap;overflow-wrap:anywhere;caret-color:var(--blue);outline:0;tab-size:4}
.document-flow :is(h1,h2,h3,h4,h5,h6).doc-editable{padding:.9em 0 .15em;color:var(--ink);font-weight:600}
.document-flow h1.doc-editable{font-size:28px;line-height:36px;letter-spacing:-.02em}
.document-flow h2.doc-editable{font-size:22px;line-height:30px;letter-spacing:-.01em}
.document-flow h3.doc-editable{font-size:18px;line-height:26px}
.document-flow :is(h4,h5,h6).doc-editable{font-size:16px;line-height:24px}
.document-flow .doc-title.doc-editable{padding:0 0 4px;font-size:30px;line-height:38px;font-weight:600;letter-spacing:-.02em}
.document-flow .doc-title u{text-decoration-thickness:1px;text-underline-offset:4px}
.doc-list:before{color:var(--muted)}
.doc-editable:focus,:root[data-theme=dark] .doc-editable:focus{background:transparent}
:root[data-theme=dark] .document-flow{background:transparent;box-shadow:none}
/* A slide boundary: a hairline with «Слайд N» on the left; the grip in the gutter, × on the right on hover. */
.document-start,.slide-break-node{display:flex;align-items:center;gap:10px;color:var(--muted)}
.document-start{margin:0 0 8px}
.slide-break-node{position:relative;min-height:28px;margin:32px 0 12px;padding:4px 0;cursor:grab;user-select:none}
.slide-break-node>.break-line:first-of-type{display:none}
.break-line{flex:1;height:0;border-top:1px solid var(--line)}
.slide-break-node:hover .break-line,.slide-break-node:focus .break-line{border-color:var(--muted)}
.slide-break-node.node-dragging .break-line{border-color:var(--blue)}
.break-label,:root[data-theme=dark] .break-label{padding:0;border:0;background:none;color:var(--muted);font-size:12px;font-weight:500;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.break-handle{position:absolute;right:100%;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:4px;padding:0;border:0;border-radius:var(--radius-sm);background:none;color:var(--subtle);opacity:0;cursor:grab}
.slide-break-node:hover .break-handle,.slide-break-node:focus-within .break-handle{opacity:1}
.document-node.drop-before:before,.document-node.drop-after:after{height:2px;background:var(--blue)}
.document-add-end{display:flex;align-items:center;gap:8px;width:100%;max-width:var(--doc-col);margin:24px auto 0;padding:8px 0;border:0;background:none;color:var(--subtle);font-size:14px;text-align:left;cursor:pointer}
.document-add-end:hover:not(:disabled){color:var(--ink)}
.document-error{max-width:var(--doc-col);color:var(--danger)}
/* Tables in the document. */
.doc-table-scroll{max-width:100%;margin:8px 0;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md)}
.doc-table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--ink);font-size:14px;line-height:22px}
.doc-table :is(td,th){min-width:70px;padding:0;border:1px solid var(--line);text-align:left;vertical-align:top}
.doc-table tr:first-child :is(td,th){border-top:0}
.doc-table tr:last-child td{border-bottom:0}
.doc-table :is(td,th):first-child{border-left:0}
.doc-table :is(td,th):last-child{border-right:0}
.doc-table th{background:var(--surface-alt);font-weight:600}
.doc-table [contenteditable]{min-height:38px;padding:8px 12px;font-weight:inherit;white-space:pre-wrap;overflow-wrap:anywhere;outline:0}
.doc-table [contenteditable]:focus{background:var(--surface-alt)}
/* The block menu on the shared menu surface. */
.block-menu{padding:4px}
.block-menu>button{min-height:32px;padding:0 8px;gap:10px;border-radius:var(--radius-sm);color:var(--ink);font-size:13px}
.block-menu>button:hover{background:var(--surface-hover);color:var(--ink)}
.block-menu>button.selected{background:transparent;color:var(--ink);font-weight:500}
.block-menu>button.selected::after{content:'✓';margin-left:auto;color:var(--muted)}
.block-menu-tabs{position:sticky;top:0;z-index:1;display:flex;gap:2px;margin:0 0 4px;padding:3px;border-radius:var(--radius-md);background:var(--surface-hover)}
.block-menu-tabs>button{flex:1;min-height:26px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-size:12px;font-weight:500}
.block-menu-tabs>button.selected{background:var(--surface-raised);color:var(--ink);box-shadow:var(--shadow-xs)}
@media(max-width:1000px){.outline260{padding:0 48px 80px}.document-toolbar{margin:0 -48px 32px;padding:0 48px}}
@media(max-width:850px){.document-toolbar [data-doc-action="insert-break"]>span{display:none}}
@media(max-width:640px){
 .outline260{padding:0 12px 64px}
 .document-toolbar{margin:0 -12px 24px;padding:0 4px}
 .document-toolbar-inner{overflow-x:auto}
 .document-flow{padding-left:28px}
 .doc-editable{font-size:15px;line-height:24px}
 .document-flow h1.doc-editable,.document-flow .doc-title.doc-editable{font-size:24px;line-height:32px}
 .document-flow h2.doc-editable{font-size:20px;line-height:28px}
}
@media(hover:none){.node-gutter,.slide-break-node>.doc-tool,.break-handle{opacity:0}.content-node:focus-within>.node-gutter,.slide-break-node:focus-within>.doc-tool,.slide-break-node:focus-within .break-handle{opacity:1}}

/* ---------------------------------------------------------------- deck: rail and slide toolbar (UX audit R14) */
.editor250 .slides-sidebar,:root[data-theme=dark] .editor250 .slides-sidebar{background:var(--surface-alt);border-right:1px solid var(--line)}
:root[data-theme=dark] .editor250 .thumbnail-rail{background:transparent;color:var(--ink);border-color:var(--line)}
.editor250 .slides-sidebar>header{padding:16px 16px 8px;color:var(--ink);font-size:13px;font-weight:600}
.editor250 .slides-sidebar>header>span{color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}
.editor250 .thumb-frame{border-radius:var(--radius-sm);outline:1px solid var(--line);outline-offset:0}
.editor250 .selected>.thumbnail .thumb-frame{outline:2px solid var(--blue);outline-offset:2px}
.editor250 .thumb-caption{gap:6px;margin-top:6px;color:var(--muted);font-size:12px;line-height:16px}
.editor250 .thumb-caption>b{color:var(--muted);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.editor250 .selected .thumb-caption,.editor250 .selected .thumb-caption>b{color:var(--ink)}
.editor250 .thumb-row.drop-before:before,.editor250 .thumb-row.drop-after:after{height:2px;background:var(--blue)}
.deck360 .rail-add{border:1px solid var(--line-strong);background:var(--surface);color:var(--muted)}
.deck360 .rail-add:hover:not(:disabled){color:var(--ink)}
.deck360 .thumb-row:focus-within .rail-add{opacity:1}
.deck360 .rail-add-end{height:32px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:500 13px/1 var(--font-ui)}
.deck360 .rail-add-end:hover:not(:disabled){border-style:solid;background:var(--surface-hover)}
.deck360 .slide-tool{height:32px;padding:0 8px;border-radius:var(--radius-sm);color:var(--muted);font:500 13px/1 var(--font-ui)}
.deck360 .slide-tool svg{color:currentColor}
.deck360 .slide-tool:hover:not(:disabled){background:var(--surface-hover);color:var(--ink)}
.deck360 .slide-tool[aria-expanded="true"]{background:var(--blue-soft);color:var(--blue)}
/* The layout split button: the name opens the gallery, the shuffle picks another layout. */
.deck360 .layout-split{display:inline-flex;flex:0 1 auto;align-items:stretch;min-width:0;margin-right:6px;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface)}
.deck360 .layout-split .slide-tool{height:30px;margin:0;border-radius:0;background:transparent;box-shadow:none}
.deck360 .layout-split .slide-tool:hover:not(:disabled){background:var(--surface-hover);box-shadow:none}
.deck360 .layout-split .layout-tool{flex:0 1 auto;gap:6px;min-width:0;color:var(--ink)}
.deck360 .layout-split .layout-tool b{min-width:0;overflow:hidden;color:var(--ink);font-weight:500;text-overflow:ellipsis}
.deck360 .layout-split .layout-tool>svg:last-child{color:var(--muted)}
.deck360 .layout-split .variant-tool{flex:none;padding:0 8px;border-left:1px solid var(--line-strong)}
.slide-popover .popover-hint{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.modal .modal-footer .modal-footer-note{margin-right:auto;color:var(--muted);font-size:12px}

/* ---------------------------------------------------------------- fields inside framed controls and forms (review 15.10) */
.image-coordinate-grid input[type=number]{min-height:35px;padding:8px 9px;border:0;background:transparent;box-shadow:none;font-size:12px}
.account-form :is(input:not([type=checkbox]):not([type=radio]),select),#account-auth input:not([type=checkbox]):not([type=radio]){min-height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);font-size:14px}
.account-form textarea{border-radius:var(--radius-sm);font-size:14px}
:root[data-theme=dark] .account-form :is(input:not([type=checkbox]):not([type=radio]),select),:root[data-theme=dark] #account-auth input:not([type=checkbox]):not([type=radio]){border-color:var(--line-strong)}
.account-form :is(input:not([type=checkbox]):not([type=radio]),select):focus,#account-auth input:not([type=checkbox]):not([type=radio]):focus,:root[data-theme=dark] .account-form :is(input:not([type=checkbox]):not([type=radio]),select):focus,:root[data-theme=dark] #account-auth input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--blue)}
.image-coordinate-grid label>div:focus-within{border-color:var(--blue)}
:root[data-theme=dark] .image-coordinate-grid input[type=number]{background:transparent}
@media(max-width:720px){.editor250 .thumb-caption>.service-lock{display:inline-flex}}
.editor250 .thumb-caption .service-lock{width:auto;height:auto;margin-left:auto;color:var(--subtle)}
.home-links{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0 54px}
.home-links .home-import{margin:0}
.home-start.is-first .home-links{justify-content:center;margin:16px 0 0}
@media(max-width:640px){.home-links{margin-left:0}}

/* ---------------------------------------------------------------- reduced motion */
/* Text-step block controls align with the first line, including headings and empty inputs. */
.content-node{--node-first-line:26px;--node-text-top:3px}
.content-node.doc-heading-1{--node-first-line:36px;--node-text-top:25.2px}
.content-node.doc-heading-2{--node-first-line:30px;--node-text-top:19.8px}
.content-node.doc-heading-3{--node-first-line:26px;--node-text-top:16.2px}
.content-node:is(.doc-heading-4,.doc-heading-5,.doc-heading-6){--node-first-line:24px;--node-text-top:14.4px}
.content-node.doc-first-title{--node-first-line:38px;--node-text-top:0px}
.content-node.table-node{--node-first-line:22px;--node-text-top:27px}
.document-flow .content-node>.node-gutter{top:calc(var(--node-text-top) + (var(--node-first-line) - 26px)/2);width:76px;flex-direction:row;padding-right:4px}
.node-gutter .doc-tool:disabled{opacity:.28;cursor:default}
.document-flow .is-empty:not(:focus-within){--node-first-line:26px;--node-text-top:3px}
.document-flow .is-empty:not(:focus-within) .doc-editable{height:auto;min-height:32px;padding:3px 0;font-size:16px;line-height:26px}
.doc-list-body{display:grid;grid-template-columns:minmax(2.5ch,max-content) minmax(0,1fr);column-gap:12px;padding-left:calc(var(--list-level,0)*20px)}
.document-flow .doc-list{padding-left:0}
.document-flow .doc-list:before{content:none}
.doc-list-marker{padding-top:3px;text-align:right;white-space:nowrap;font-size:16px;line-height:26px;color:var(--ink);user-select:none;pointer-events:none}
.doc-placeholder-note{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0 0 6px;color:var(--muted);font-size:12px;line-height:20px}
.doc-placeholder-note .doc-tool{display:inline;padding:0;min-width:0;height:auto;color:var(--blue);font-size:12px;line-height:20px;text-decoration:underline}
.doc-placeholder-note[hidden]{display:none}
.contact-controls{max-width:760px;margin:0 auto}
.contact-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}
.contact-toggle b{font-size:15px;font-weight:500}.contact-toggle small{display:block;margin-top:5px;color:var(--muted);font-size:13px}
.contact-toggle input[role=switch]{appearance:none;flex:none;width:36px;height:22px;margin:0;border:0;border-radius:11px;background:var(--line-strong);cursor:pointer;position:relative}
.contact-toggle input[role=switch]:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface)}
.contact-toggle input[role=switch]:checked{background:var(--blue)}.contact-toggle input[role=switch]:checked:before{left:17px}
.contact-form{display:grid;gap:18px;padding-top:22px}.contact-form[hidden]{display:none}
.contact-form .field{display:grid;gap:7px;margin:0}.contact-form :is(input,textarea){width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
.contact-form textarea{resize:vertical;line-height:1.5}.contact-form .btn{justify-self:start}
.contact-lock{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 8px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.contact-lock:hover{background:var(--surface-hover);color:var(--ink)}.contact-lock[aria-pressed=true]{color:var(--blue)}
.service-row .thumb-caption{padding-right:22px}
.service-row>.contact-lock{position:absolute;right:0;bottom:0;padding:0;min-height:20px}.service-row{position:relative}
.contact-edit-status{color:var(--danger);font-size:12px;line-height:18px}.contact-edit-hint{color:var(--muted);font-size:12px}
.slide-scene [data-contact-field]{cursor:text;outline:0;white-space:pre-wrap}
.slide-scene [data-contact-field]:hover{background:#4460ac0b}.slide-scene [data-contact-field]:focus{background:#4460ac12}
.slide-scene [data-contact-field][data-empty=true]:before{content:attr(aria-label);opacity:.45;pointer-events:none}
@media(max-width:1100px){.outline260{padding-left:92px}.document-toolbar{margin-left:-92px;padding-left:92px}}
@media(max-width:640px){
 .outline260{padding:0 12px 64px 84px}.document-toolbar{margin-left:-84px;padding-left:12px}
 .document-flow{padding-left:0}.content-node{--node-first-line:24px}
 .content-node.doc-heading-1,.content-node.doc-first-title{--node-first-line:32px}
 .content-node.doc-heading-1{--node-text-top:21.6px}.content-node.doc-heading-2{--node-first-line:28px;--node-text-top:18px}
 .content-node.doc-first-title{--node-text-top:0px}.doc-list-marker{font-size:15px;line-height:24px}
 .doc-list-body{padding-left:calc(var(--list-level,0)*12px);column-gap:8px}
}
@media(prefers-reduced-motion:reduce){.modal[open],.modal::backdrop,.slide-popover,.app-menu{animation:none}}
/* Authored block size stays next to the paragraph tools, in points. */
.text-edit-popover .text-size-controls{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.text-size-controls label,.text-size-controls small{font-size:12px;color:var(--muted)}
.text-size-controls input{width:74px;min-width:0;height:32px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit}

/* Editable cover furniture: editor chrome only; slide output stays unchanged. */
.cover-plate-edit{border:0;background:transparent;border-radius:22px;cursor:pointer;padding:0;text-align:right;color:var(--blue);}
.cover-plate-edit span{position:absolute;right:16px;top:8px;font:16px Arial,sans-serif;opacity:0;background:var(--surface,#fff);padding:4px 8px;border-radius:4px;}
.cover-plate-edit:hover span,.cover-plate-edit:focus span{opacity:1;}
.cover-plate-edit:disabled{cursor:default;}
.cover-plate-fields{display:grid;gap:14px;margin-top:18px;}
.cover-plate-fields label{display:grid;gap:6px;}
.cover-plate-fields input{width:100%;min-width:0;}
