/* SH-LOCKED-SCHEME — shared heading + stage pills KEEP. */

/* SH-TOOLS-CHROME-HEADER-WIDTH-THEME: self-contained like app-shell.css's
   --app-shell-menu-hover-* pair — standalone viewer pages that skip
   style.css still load this file. Dark matches the old hardcoded literals
   (previous behaviour); light is the only new value. */
:root {
    --chrome-bg: #1a1a1a;
    --chrome-text: #f3f3f3;
    --chrome-muted: #cfcfcf;
    --chrome-border: #4c4c4c;
    --chrome-mode-bg: #2a2a2a;
    --chrome-mode-border: #555;
    --chrome-logo-filter: brightness(0) invert(1);
}
html[data-theme="light"] {
    --chrome-bg: #ffffff;
    --chrome-text: #282828;
    --chrome-muted: #5f5f5f;
    --chrome-border: #dddddd;
    --chrome-mode-bg: #f3f3f3;
    --chrome-mode-border: #ccc;
    --chrome-logo-filter: none;
}
.ws-strip {
    position: sticky;
    top: 0;
    z-index: 54;
    display: grid;
    /* SH-TOOLS-CHROME-HEADER-WIDTH-THEME: without an explicit column, this
       single-column grid sizes to the widest row's max-content instead of
       the container's full width (a stray justify-content: space-between
       leaks in from workspace.css's older flex .ws-strip and no rule here
       ever reset it) — row-primary's content happens to nearly fill that
       auto width so it reads as full-bleed, but the sparser menu row
       exposes the true, narrower track. Force the track to the container
       width so every row actually matches the tool content below it. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--chrome-bg);
    color: var(--chrome-text);
    /* Keep the sticky container unclipped: non-visible overflow makes sticky
       positioning bind to that container rather than the viewport. */
    isolation: isolate;
}
.ws-strip-row {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
}
.ws-strip-row-primary {
    gap: 0.6rem;
    white-space: nowrap;
}
.ws-strip-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 32px;
    color: inherit;
    line-height: 0;
}
.ws-strip-brand-logo {
    display: block;
    width: 101px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
    filter: var(--chrome-logo-filter);
}
.ws-strip-row-messages {
    gap: 0.55rem;
    color: var(--chrome-muted);
    font-size: 0.75rem;
    line-height: 1.2;
    overflow: hidden;
    border: 0;
    border-top: 0;
    border-bottom: 0;
}
.ws-strip-row-messages .ws-strip-chip {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.ws-strip-row-messages > *:not(.ws-strip-chip) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ws-strip-row-menu {
    padding: 0;
    min-height: 40px;
    /* This row, unlike .ws-strip-menu, spans the whole workspace strip.
       It is the sole workspace owner of the menubar frame. */
    --menubar-frame-border: 1px solid var(--chrome-border);
    border: var(--menubar-frame-border);
}
.ws-strip-file {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.ws-strip-file > * {
    flex: 0 0 auto;
    min-width: 0;
}
.ws-strip-file .ws-strip-name {
    flex: 0 1 auto;
}
.ws-strip-name,
.ws-strip .muted:not(.ws-strip-chip),
.ws-strip .ws-filebar-dd {
    color: inherit;
}
.ws-strip-name {
    color: var(--chrome-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(32vw, 28rem);
}
.ws-strip-title {
    flex: 0 1 auto;
    color: var(--chrome-text);
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ws-strip-title { display: none; }
}
.ws-filebar-dd {
    color: #f89938;
}

.ws-strip-modes {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 58vw;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent 100%);
}
.ws-strip-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.ws-strip-actions .app-shell-btn {
    min-height: 28px;
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
}
/* .theme-toggle (style.css) hardcodes --sal-light/white for icon+border,
   invisible once .ws-strip's own background follows the light theme. */
.ws-strip-actions .theme-toggle {
    color: var(--chrome-text);
    border-color: var(--chrome-border);
}
.ws-strip-actions .theme-toggle:hover,
.ws-strip-actions .theme-toggle:focus-visible {
    border-color: var(--sal-accent, #f89938);
    color: var(--sal-accent, #f89938);
}
.ws-strip-menu {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0;
}

@media (max-width: 720px) {
    .ws-strip {
        grid-template-rows: auto auto auto;
    }
    .ws-strip-file {
        flex: 0 1 auto;
    }
    .ws-strip-modes {
        flex: 0 0 auto;
        max-width: 50vw;
    }
}

@media (max-width: 900px) {
    .ws-strip-row-primary {
        flex-wrap: wrap;
    }
    .ws-strip-file {
        flex: 1 1 auto;
    }
    .ws-strip-modes {
        flex: 1 1 auto;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 640px) {
    .ws-strip-row-primary {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand file actions" "modes modes modes";
        gap: 0.35rem 0.5rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }
    .ws-strip-brand { grid-area: brand; }
    .ws-strip-file { grid-area: file; min-width: 0; }
    .ws-strip-modes {
        grid-area: modes;
        width: 100%;
        max-width: none;
        min-height: 40px;
    }
    .ws-strip-actions { grid-area: actions; margin-left: 0; }
    .ws-strip-row-menu { grid-row: 2; }
    .ws-strip-row-messages {
        grid-row: 3;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    .ws-strip-row-messages .ws-strip-chip {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* SH-TOOLS-CHROME-HEADER-WIDTH-THEME: .ws-strip's own bg/text now follow
   --chrome-bg/--chrome-text (data-theme), but this hover pill stays the
   fixed light/cream + dark-text pairing on purpose in both themes — never
   the dark-canvas wash a themed .app-shell-menubar can pick up from
   html[data-theme="dark"] (SH-UI-FIX-PASS: was cream pill / white text
   because that dark-theme override reached in here and repainted only the
   text, not the background — see apps/_shared/app-shell.css). */
.ws-strip-menu {
    /* SH-MENU-HOVER-ALIGN: literal cream+dark — same as Viewer Issue A prove
       rgb(255,244,232) / rgb(28,20,12). Never inherit dark-theme rgba soft. */
    --app-shell-menu-hover-bg: #fff4e8;
    --app-shell-menu-hover-text: #1c140c;
}
html[data-theme="dark"] .ws-strip-menu {
    --app-shell-menu-hover-bg: rgba(255, 255, 255, .08);
    --app-shell-menu-hover-text: var(--chrome-text);
}
.ws-strip-menu .app-shell-menubar {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}
.ws-strip-menu .app-shell-menu-btn {
    /* Idle/blurred label follows the strip's own theme now; the shared
       interactive-state rule below is the only place that uses --on-accent
       for this control. */
    color: var(--chrome-text);
}
.ws-strip-menu .app-shell-menu-btn:hover,
.ws-strip-menu .app-shell-menu-btn:focus-visible,
.ws-strip-menu .app-shell-menu-btn[aria-expanded="true"],
.ws-strip-menu .app-shell-menu-btn.is-open,
.ws-strip-menu .app-shell-menu-btn.open {
    color: var(--app-shell-menu-hover-text, var(--on-accent, #1c140c));
}
.ws-strip-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border: 1px solid #f89938;
    border-radius: 999px;
    color: #f89938;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.ws-strip-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: auto;
    padding: 0.1rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
.export-ready-chip {
    gap: 0.35em;
}
.ws-strip-chip.ws-strip-chip--error,
.ws-strip-chip.muted.ws-strip-chip--error {
    background: #3a1414;
    border-color: #c0392b;
    color: #ff8a7a;
}
.ws-strip-chip.ws-strip-chip--warn,
.ws-strip-chip.muted.ws-strip-chip--warn,
.ws-strip-chip.sal-retain-warn.is-warning {
    background: #3a2c10;
    border-color: #f0c14b;
    color: #ffb347;
}
.ws-strip-chip.ws-strip-chip--info,
.ws-strip-chip.muted.ws-strip-chip--info,
.ws-strip-chip.muted,
.ws-strip-chip.sal-retain-paid,
.ws-strip-chip.sal-retain-warn:not(.is-warning) {
    background: #13291b;
    border-color: #3fae63;
    color: #8fe0ab;
}
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--error,
html[data-theme="light"] .ws-strip-chip.muted.ws-strip-chip--error {
    background: #fde8e6;
    border-color: #c0392b;
    color: #8b1a12;
}
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--warn,
html[data-theme="light"] .ws-strip-chip.muted.ws-strip-chip--warn,
html[data-theme="light"] .ws-strip-chip.sal-retain-warn.is-warning {
    background: #fff4d6;
    border-color: #d97706;
    color: #92400e;
}
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--info,
html[data-theme="light"] .ws-strip-chip.muted.ws-strip-chip--info,
html[data-theme="light"] .ws-strip-chip.muted,
html[data-theme="light"] .ws-strip-chip.sal-retain-paid,
html[data-theme="light"] .ws-strip-chip.sal-retain-warn:not(.is-warning) {
    background: #e6f6ea;
    border-color: #2e8b57;
    color: #14532d;
}
.ws-strip .ws-mode {
    display: inline-block;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid var(--chrome-mode-border);
    color: var(--chrome-text);
    background: var(--chrome-mode-bg);
    text-decoration: none;
    white-space: nowrap;
}
/* SH-J-1003-SAL-MOBILE-FIX1: app stages and File menu controls remain easy
   to tap, while the stage rail can scroll instead of clipping later stages. */
.ws-strip .ws-mode,
.ws-strip-menu .app-shell-menu-btn,
.ws-strip-menu .app-shell-menu-drop button,
.ws-strip-menu .app-shell-menu-drop a.app-shell-menu-item {
    min-height: 40px;
}
.ws-strip-modes {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.1rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.1rem), transparent 100%);
}
.ws-strip .ws-mode:hover {
    border-color: #f89938;
}
.ws-strip .ws-mode.is-current {
    background: #f89938;
    border-color: #f89938;
    color: #1a1a1a;
    font-weight: 600;
}
.sal-retain-warn:not(.ws-strip-chip) {
    color: #f0c14b;
}
.sal-retain-warn.is-warning:not(.ws-strip-chip) {
    color: #ffb347;
    font-weight: 600;
}
.sal-retain-paid:not(.ws-strip-chip) {
    color: #cfcfcf;
}
.ws-strip-chip.sal-retain-paid,
.ws-strip-chip.ws-strip-chip--info.sal-retain-paid {
    background: #13291b;
    border-color: #3fae63;
    color: #8fe0ab;
}
html[data-theme="light"] .ws-strip-chip.sal-retain-paid,
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--info.sal-retain-paid {
    background: #e6f6ea;
    border-color: #2e8b57;
    color: #14532d;
}
.ws-strip-chip.sal-retain-warn:not(.is-warning),
.ws-strip-chip.ws-strip-chip--info.sal-retain-warn {
    background: #13291b;
    border-color: #3fae63;
    color: #8fe0ab;
}
.ws-strip-chip.sal-retain-warn.is-warning,
.ws-strip-chip.ws-strip-chip--warn.sal-retain-warn {
    background: #3a2c10;
    border-color: #f0c14b;
    color: #ffb347;
}
html[data-theme="light"] .ws-strip-chip.sal-retain-warn:not(.is-warning),
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--info.sal-retain-warn {
    background: #e6f6ea;
    border-color: #2e8b57;
    color: #14532d;
}
html[data-theme="light"] .ws-strip-chip.sal-retain-warn.is-warning,
html[data-theme="light"] .ws-strip-chip.ws-strip-chip--warn.sal-retain-warn {
    background: #fff4d6;
    border-color: #d97706;
    color: #92400e;
}
.ws-strip-row-messages .ws-strip-chip.sal-retain-paid,
.ws-strip-row-messages .ws-strip-chip.muted,
.ws-strip-row-messages .ws-strip-chip.ws-strip-chip--info {
    color: #8fe0ab;
    background: #13291b;
    border-color: #3fae63;
}
html[data-theme="light"] .ws-strip-row-messages .ws-strip-chip.sal-retain-paid,
html[data-theme="light"] .ws-strip-row-messages .ws-strip-chip.muted,
html[data-theme="light"] .ws-strip-row-messages .ws-strip-chip.ws-strip-chip--info {
    color: #14532d;
    background: #e6f6ea;
    border-color: #2e8b57;
}
.sal-run-lock-wrap {
    margin: 0;
    padding: 0.35rem 0.7rem;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}
.sal-run-lock {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: #f89938;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}
.sal-run-lock:hover {
    filter: brightness(1.05);
}
body.sal-actions-locked .btn-primary,
body.sal-actions-locked .app-shell-btn-primary,
body.sal-actions-locked .tk-continue,
body.sal-actions-locked .cln-clean,
body.sal-actions-locked .xf-start,
body.sal-actions-locked .conv-cta,
body.sal-actions-locked .wbs-apply {
    opacity: 0.45;
    filter: grayscale(0.4);
}
.ws-stage-panel {
    box-sizing: border-box;
    margin: 0 0 var(--main-pad);
    padding: var(--main-pad);
    border: var(--content-frame-border);
    text-align: left;
}
.ws-stage-panel .ws-tools-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

body.sal-app .site-header {
    display: none;
}
body.sal-app .site-footer,
body.sal-app .howto-topbtn {
    display: none;
}
body.sal-app .main-content.container {
    width: 100%;
    max-width: none;
    padding: 0 0 2rem;
}
/* Sticky children must not bind to a clipped main-content scrolling box. */
body.sal-app .main-content {
    overflow: visible;
}
/* Inspect leftover: html:has(body.app-shell-on){overflow:hidden} bound sticky
   to that box so .ws-strip scrolled away (sticky_top negative). Viewport is
   the scroller; strip is a sibling of main (layout.php). */
html:has(.ws-strip),
html:has(body.app-shell-on) {
    overflow: visible;
    height: auto;
}
body.sal-app,
body.app-shell-on,
html:has(.ws-strip) body {
    overflow: visible;
    height: auto;
    max-height: none;
}
body.sal-app .main-content.container {
    overflow: visible;
}
body.sal-app.menu-page .main-content {
    padding: 0 1rem 2rem;
}

.sal-library-shell {
    flex: 0 0 auto;
    margin: 0 0 0.75rem;
}
body.sal-app .sal-library-shell .app-shell-title,
body.sal-app .app-shell-title {
    background: #282828;
}

.sal-close-form,
.sal-toolbar-close {
    display: inline;
    margin: 0;
}
.sal-close-form .app-shell-menu-item {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sal-import {
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0;
    background: #1c1c1c;
    color: #f3f3f3;
    max-width: 28rem;
    width: calc(100% - 2rem);
}
.sal-import::backdrop {
    background: rgba(0, 0, 0, 0.55);
}
.sal-import-form {
    padding: 1rem 1.1rem 1.1rem;
}
.sal-import-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
}
.sal-import-head h2 {
    margin: 0;
    font-size: 1.05rem;
}
.sal-import-x {
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.sal-import-drop {
    display: block;
    margin: 0.75rem 0;
    padding: 1.4rem 1rem;
    border: 1px dashed #666;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}
.sal-import-drop.is-over {
    border-color: #f89938;
    background: rgba(248, 153, 56, 0.12);
}
.sal-import-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.sal-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.sal-inline-open-door {
    margin-bottom: 1rem;
}
.sal-inline-open-door .sal-import-head {
    margin-bottom: 0.25rem;
}
.sal-inline-open-door h1 {
    margin: 0;
    font-size: 1.15rem;
}
.sal-inline-open-form {
    display: grid;
    gap: 0.75rem;
}
.menu-workspace-cta {
    display: none;
}


/* SH-SAL-TOOLS-CONCEPT-IMPL — open-door empty desk */
.sal-inline-open-door.empty-desk-panel {
    border: var(--content-frame-border, 1px solid var(--border));
    background: var(--surface);
    padding: var(--main-pad, 10px);
}
.sal-inline-open-door .empty-desk h1 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.empty-desk-mark.sal-empty-mark { width: 3.5rem; height: 3.5rem; font-size: 0; }
.empty-desk-mark.sal-empty-mark svg { width: 40px; height: 40px; color: var(--muted); }
.empty-desk-mark.sal-empty-mark svg .sal-empty-acc { stroke: var(--es-accent, #f89938); }

/* SAL-OPEN-SCHEDULE-ALL-MAINS: shared educational banner, compact door, and
   duplicate-friendly local section navigation. */
.sal-section-cycle {
    display: grid;
    grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
    gap: 0.7rem 1rem;
    align-items: center;
    margin: 0 0 0.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--chrome-border, var(--border));
    border-radius: var(--radius);
    background: var(--chrome-bg, var(--surface));
}
.sal-section-cycle-copy { min-width: 0; }
.sal-section-eyebrow {
    margin: 0 0 0.15rem;
    color: var(--sal-accent, #f89938);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sal-section-cycle h1 {
    margin: 0;
    color: var(--chrome-text, var(--text));
    font-size: 1.08rem;
}
.sal-section-cycle-copy > p:last-child {
    margin: 0.22rem 0 0;
    color: var(--chrome-text, var(--text));
    font-size: 0.8rem;
    line-height: 1.35;
}
.sal-cycle-steps {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}
.sal-cycle-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.sal-cycle-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 58%;
    width: 84%;
    height: 1px;
    background: var(--chrome-border, var(--border));
}
.sal-cycle-step a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    color: var(--chrome-text, var(--text));
    font-size: 0.7rem;
    text-decoration: none;
}
.sal-cycle-node {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid var(--chrome-border, var(--border));
    border-radius: 50%;
    background: var(--chrome-bg, var(--surface));
    font-size: 0.68rem;
    font-weight: 700;
}
.sal-cycle-step.is-current a { color: var(--sal-accent, #f89938); font-weight: 700; }
.sal-cycle-step.is-current .sal-cycle-node {
    border-color: var(--sal-accent, #f89938);
    background: var(--sal-accent, #f89938);
    color: #1a1a1a;
}
.sal-section-open {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.6rem;
    margin: 0 0 0.4rem;
    padding: 0.28rem 0.5rem;
    border: 1px solid var(--chrome-border, var(--border));
    border-radius: var(--radius);
    background: var(--surface);
}
.sal-section-open h2 { margin: 0; font-size: 0.86rem; }
.sal-section-open p { margin: 0.08rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.2; }
.sal-section-open-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.sal-section-open-actions .btn { min-height: 24px; padding: 0.18rem 0.5rem; font-size: 0.7rem; }
.sal-section-mode-chip {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--sal-accent, #f89938);
    border-radius: 999px;
    color: var(--sal-accent, #f89938);
    font-size: 0.68rem;
    font-weight: 700;
}
.sal-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0 0 0.8rem;
}
.sal-section-links .menu-jump { font-size: 0.76rem; }
@media (max-width: 760px) {
    .sal-section-cycle { grid-template-columns: 1fr; }
    .sal-cycle-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem 0.2rem;
        overflow: visible;
        padding-bottom: 0.15rem;
    }
    .sal-cycle-step { min-width: 0; }
}

/* Keep the signed-in library's left-anchored main surface inside the viewport
   after the app-shell's full-width rule has been applied. */
body.sal-app.menu-page .main-content.container {
    width: calc(100% - 2rem);
    max-width: none;
    margin-left: 1rem;
    margin-right: auto;
}
