.guest-tool-navigation{display:flex;gap:8px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}.guest-tool-navigation a{padding:10px 14px;border-radius:12px;text-decoration:none;color:inherit;background:var(--project-surface);border:1px solid var(--project-line);min-height:44px}.guest-tool-navigation .is-active{background:var(--project-blue);color:var(--portal-color-on-accent);border-color:var(--project-blue)}.guest-palette{margin:0 auto 24px}.guest-palette details{border:1px solid var(--project-line);background:var(--project-surface);border-radius:16px;overflow:hidden}.guest-palette summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px;cursor:pointer;min-height:56px}.guest-palette summary>span:last-child{font-size:13px;color:var(--project-muted)}.guest-palette__swatches{display:flex;gap:4px}.guest-palette__swatches i{display:block;width:22px;height:22px;border-radius:6px;border:1px solid #aaa4}.guest-palette__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 16px 16px}.guest-palette__field label{display:block;margin-bottom:8px;font-size:14px}.guest-palette__field>div{display:flex;gap:8px;align-items:center}.guest-palette__field input[type=color]{width:44px;min-width:44px;height:44px;padding:3px;border:1px solid var(--project-line);border-radius:8px;background:var(--project-surface);cursor:pointer}.guest-palette__field input[type=text]{width:100%;min-width:0;height:44px;border:1px solid var(--project-line);border-radius:8px;padding:8px 10px;font-family:monospace}.guest-palette__status{margin:0;padding:0 16px 16px;color:var(--project-muted);font-size:13px}.guest-session-note{font-size:13px;line-height:1.5;color:var(--project-muted);padding-top:16px;padding-bottom:24px}.guest-export-controls{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.guest-export-controls label{width:100%}.guest-export-controls select{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--project-line);border-radius:8px;background:#fff}.guest-export-controls__pending{width:100%;height:3px;background:var(--portal-color-blue-light);overflow:hidden}.guest-export-controls__pending i{display:block;width:40%;height:100%;background:var(--project-blue);animation:guest-export-pending 1s ease-in-out infinite alternate}.guest-export-controls__status{width:100%;font-size:13px}.guest-export-queue__summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.guest-export-queue__summary p{flex:1;min-width:150px;margin:0;padding:20px;background:var(--project-surface);border:1px solid var(--project-line);border-radius:16px}.guest-export-queue__summary strong{font-size:26px;display:block}.guest-export-job{padding:16px;border:1px solid var(--project-line);background:var(--project-surface);border-radius:16px;margin-bottom:12px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.guest-export-job__label{flex:1;min-width:160px}.guest-export-job__label strong,.guest-export-job__label small{display:block}.guest-export-job__label small{color:var(--project-muted);margin-top:5px}.guest-export-job__error{width:100%;color:var(--project-danger)}.guest-export-job a{min-height:44px;display:inline-flex;align-items:center;padding:10px 14px;border:1px solid var(--project-blue);border-radius:8px;text-decoration:none;color:var(--project-blue)}.guest-export-job__progress{width:100%;height:4px;background:var(--project-line);border-radius:2px;overflow:hidden}.guest-export-job__progress i{display:block;height:100%;background:var(--project-blue)}
[data-guest-workspace] [data-data-save],[data-guest-workspace] [data-data-reset],[data-guest-workspace] [data-chapter-submit],[data-guest-workspace] [data-text-save],[data-guest-workspace] #mb-save,[data-guest-workspace] #mb-save-new,[data-guest-workspace] #lt-save,[data-guest-workspace] #lt-duplicate,[data-guest-workspace] #so-save,[data-guest-workspace] #so-duplicate,[data-guest-workspace] .mb-saved,[data-guest-workspace] [data-data-import-panel],[data-guest-workspace] [data-chapter-tab=images],[data-guest-workspace] #chapter-panel-images,[data-guest-workspace] #text-tab-images,[data-guest-workspace] #text-panel-images,[data-guest-workspace] [data-video-export-open],[data-guest-workspace] [data-video-export-dialog]{display:none!important}
[data-guest-workspace] .mb-catalog .mb-check{display:none}[data-guest-workspace] .chapter-card__note{display:none}
@keyframes guest-export-pending{to{transform:translateX(150%)}}@media(max-width:650px){.guest-tool-navigation{flex-wrap:nowrap;overflow:auto}.guest-tool-navigation a{white-space:nowrap;font-size:13px}.guest-palette__fields{grid-template-columns:1fr}.guest-palette summary{gap:10px}.guest-export-job{align-items:flex-start}.guest-tools-page .project-header__inner{gap:12px;flex-wrap:wrap}}

[data-guest-workspace] .lt-image-field,[data-guest-workspace] input[type=file]{display:none!important}

.guest-catalog-access{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-top:24px}.guest-catalog-access a{max-width:100%;text-align:center}

.guest-export-controls__limits{width:100%;margin:0;font-size:13px;line-height:1.5;color:var(--project-muted)}.guest-export-job__label{overflow-wrap:anywhere}.guest-catalog-access p{font-size:13px;color:var(--project-muted)}

.guest-palette-packs{margin-top:24px;padding:0 2px;color:inherit}
.guest-palette-packs__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.guest-palette-packs__heading h2{margin:0 0 8px;font-size:18px;line-height:1.4}
.guest-palette-packs__heading p{margin:0;color:var(--project-muted);font-size:13px;line-height:1.6;max-width:650px}
.guest-palette-packs__count{flex-shrink:0;color:var(--project-muted);font-size:12px;padding-top:5px}
.guest-palette-packs__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.guest-palette-pack{appearance:none;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;min-height:110px;padding:10px;background:var(--project-surface);color:inherit;border:1px solid var(--project-line);border-radius:4px;text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,background-color .15s}
.guest-palette-pack[hidden]{display:none}
.guest-palette-pack:hover{border-color:var(--project-blue)}
.guest-palette-pack:focus-visible{outline:2px solid var(--project-blue);outline-offset:3px}
.guest-palette-pack[aria-pressed=true]{border-color:var(--project-blue);box-shadow:inset 0 0 0 1px var(--project-blue)}
.guest-palette-pack__colors{display:flex;height:32px;border-radius:3px;overflow:hidden;border:1px solid var(--project-line)}
.guest-palette-pack__colors i{display:block;flex:1;min-width:0}
.guest-palette-pack__name{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px;font-weight:600;line-height:1.5}
.guest-palette-pack__hint{color:var(--project-muted);font-size:12px;line-height:1.5}
.guest-palette-pack__selected{visibility:hidden;color:var(--project-blue)}
.guest-palette-pack[aria-pressed=true] .guest-palette-pack__selected{visibility:visible}
.guest-palette-packs__toggle{margin-top:16px;min-height:44px}
@media(max-width:700px){.guest-palette-packs__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-palette-packs__heading{gap:8px}.guest-palette-packs__heading h2{font-size:16px}.guest-palette-packs__count{font-size:11px}}
@media(prefers-reduced-motion:reduce){.guest-palette-pack{transition:none}}

.guest-palette>.guest-palette__status{padding:12px 2px 0}
.guest-catalog-back{margin-block:0 12px;font-size:14px}
.guest-palette[hidden]{display:none}
.guest-palette__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.guest-palette__actions button{white-space:normal;text-align:left;max-width:100%}
.guest-palette__hint{font-size:13px;line-height:1.6;color:var(--project-muted)}
.guest-palette>.guest-palette__actions{margin-bottom:16px}
.guest-palette__edit-actions{padding:0 16px 16px;margin-top:0}
.guest-palette [data-guest-palette-my][aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--project-blue)}
.guest-tools-page .project-header .project-header__quick-links{flex-wrap:wrap;gap:4px 14px}
.guest-tools-page .project-header__quick-link{white-space:nowrap;flex:none}

/* Палитры сразу слева; редактор и карточки образуют общую правую колонку. */
.guest-tools-page{--workspace-width:min(91vw,80rem)}
.guest-tools-page .project-content:has(.guest-tools-layout){padding-top:0}
.guest-tools-layout{display:grid;grid-template-columns:18rem minmax(0,1fr);gap:32px;align-items:start}
.guest-tools-main{min-width:0}
.guest-tools-main>[data-guest-draft-status]{margin-block:0 12px;padding-block:0}
.guest-tools-main>.workspace-width{width:100%;margin-inline:0}
.guest-tools-main>:is(.mb-editor,.data-creator,.chapter-catalog,.lt-editor,.so-editor){padding-top:0}
.guest-tools-main :is(.mb-heading,.lt-heading,.so-heading,.workspace-heading){margin-top:0;margin-bottom:16px}
.guest-tools-main :is(.mb-heading,.lt-heading,.so-heading,.workspace-heading) h1{margin-top:0;margin-bottom:0}
.guest-tools-main :is(.mb-catalog,.data-kind-catalog,.animated-text__catalog,.lt-catalog,.so-catalog){margin-top:24px;padding-top:24px;border-top:1px solid var(--project-line)}
.guest-tools-layout :is(.data-kind-catalog__grid,.animated-text__cards,.lt-catalog-grid,.so-catalog-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
/* Карточки фонов ограничены 320 px; число колонок зависит от доступного места, включая сайдбар. */
.guest-tools-layout .mb-catalog{container-type:inline-size}
.guest-tools-layout .mb-scenes{grid-template-columns:repeat(3,minmax(0,320px))}
@container (width < 752px){.guest-tools-layout .mb-scenes{grid-template-columns:repeat(2,minmax(0,320px))}}
@container (width < 496px){.guest-tools-layout .mb-scenes{grid-template-columns:minmax(0,320px)}}
.guest-palette-sidebar{min-width:0;color:var(--project-ink)}
.guest-palette-sidebar>[data-guest-palette-layout]{margin:0;padding:0;border:0}
.guest-palette-sidebar>[data-guest-palette-layout]>summary{display:none}
.guest-palette-sidebar .guest-palette-sidebar__title{margin:0 0 20px;font-size:20px;line-height:1.4;letter-spacing:normal}
.guest-palette-sidebar .guest-palette{margin:0}
.guest-palette-sidebar .guest-palette details{padding:0;border:1px solid var(--project-line);border-radius:8px;background:var(--project-surface)}
.guest-palette-sidebar .guest-palette summary{display:flex;align-items:center;flex-wrap:wrap;padding:16px;gap:8px}
.guest-palette-sidebar .guest-palette__swatches{flex-basis:100%}
.guest-palette-sidebar .guest-palette__fields{grid-template-columns:minmax(0,1fr)}
.guest-palette-sidebar .guest-palette__field{margin:0}
.guest-palette-sidebar .guest-palette__field label{margin:0 0 8px}
.guest-palette-sidebar .guest-palette__field input[type=text]{font-size:14px}
.guest-palette-sidebar .guest-palette__actions{gap:8px}
.guest-palette-sidebar .guest-palette__actions button{width:100%;min-height:44px;justify-content:flex-start;line-height:1.5;font-weight:600}
.guest-palette-sidebar .guest-palette__actions:first-child{margin-top:0}
.guest-palette-sidebar .guest-palette-packs__heading{flex-wrap:wrap;gap:4px}
.guest-palette-sidebar .guest-palette-packs__heading h2{font-size:18px;letter-spacing:normal}
.guest-palette-sidebar .guest-palette-packs__grid{grid-template-columns:minmax(0,1fr);gap:8px}
.guest-palette-sidebar .guest-palette-pack{min-height:0}
/* Общий выбор не наследует тёмные кнопки внутренних панелей семейства. */
.guest-tools-layout .guest-palette-sidebar .guest-palette button.guest-palette-pack{padding:10px;border:1px solid var(--project-line);background:var(--project-surface);color:var(--project-ink);font:inherit}
.guest-tools-layout .guest-palette-sidebar .guest-palette button.guest-palette-pack:is(:hover,[aria-pressed=true]){border-color:var(--project-blue)}
.guest-palette-sidebar>[data-guest-palette-layout]>summary::before{content:none}
@media(max-width:959px){
    .guest-tools-layout{grid-template-columns:minmax(0,1fr);gap:16px}
    .guest-palette-sidebar>[data-guest-palette-layout]{border-block:1px solid var(--project-line)}
    .guest-palette-sidebar>[data-guest-palette-layout]>summary{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:12px 0;cursor:pointer;font-weight:600}
    .guest-palette-sidebar>[data-guest-palette-layout]>summary::marker{content:''}
    .guest-palette-sidebar>[data-guest-palette-layout]>summary::-webkit-details-marker{display:none}
    .guest-palette-sidebar>[data-guest-palette-layout][open]>summary span{transform:rotate(180deg)}
    .guest-palette-sidebar .guest-palette-sidebar__title{display:none}
    .guest-palette-sidebar .guest-palette{padding-block:12px 24px}
    .guest-palette-sidebar .guest-palette-packs__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
    .guest-tools-layout :is(.data-kind-catalog__grid,.animated-text__cards,.lt-catalog-grid,.so-catalog-grid){grid-template-columns:minmax(0,1fr)}
}

.guest-tools-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem; }
